@grvt/client 1.4.7 → 1.4.9

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.
Files changed (25) hide show
  1. package/TDG/index.d.ts +9 -1
  2. package/TDG/index.js +28 -0
  3. package/interfaces/codegen/data.interface.d.ts +54 -0
  4. package/interfaces/codegen/data.interface.js +2 -0
  5. package/interfaces/codegen/enum-int.js +1 -0
  6. package/interfaces/codegen/schema-maps/api_vault_burn_tokens_request.d.ts +2 -0
  7. package/interfaces/codegen/schema-maps/api_vault_burn_tokens_request.js +21 -0
  8. package/interfaces/codegen/schema-maps/api_vault_invest_request.d.ts +2 -0
  9. package/interfaces/codegen/schema-maps/api_vault_invest_request.js +21 -0
  10. package/interfaces/codegen/schema-maps/api_vault_investor_summary_request.d.ts +2 -0
  11. package/interfaces/codegen/schema-maps/api_vault_investor_summary_request.js +14 -0
  12. package/interfaces/codegen/schema-maps/api_vault_investor_summary_response.d.ts +2 -0
  13. package/interfaces/codegen/schema-maps/api_vault_investor_summary_response.js +13 -0
  14. package/interfaces/codegen/schema-maps/api_vault_redeem_cancel_request.d.ts +2 -0
  15. package/interfaces/codegen/schema-maps/api_vault_redeem_cancel_request.js +14 -0
  16. package/interfaces/codegen/schema-maps/api_vault_redeem_request.d.ts +2 -0
  17. package/interfaces/codegen/schema-maps/api_vault_redeem_request.js +21 -0
  18. package/interfaces/codegen/schema-maps/index.d.ts +8 -0
  19. package/interfaces/codegen/schema-maps/index.js +8 -0
  20. package/interfaces/codegen/schema-maps/snap_sub_account.js +6 -2
  21. package/interfaces/codegen/schema-maps/vault_investor_summary.d.ts +2 -0
  22. package/interfaces/codegen/schema-maps/vault_investor_summary.js +25 -0
  23. package/interfaces/codegen/schema-maps/vault_redemption.d.ts +2 -0
  24. package/interfaces/codegen/schema-maps/vault_redemption.js +14 -0
  25. package/package.json +1 -1
package/TDG/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type AxiosRequestConfig } from 'axios';
2
- import { type IApiAggregatedAccountSummaryResponse, type IApiCancelAllOrdersRequest, type IApiCancelAllOrdersResponse, type IApiCancelOrderRequest, type IApiCancelOrderResponse, type IApiCreateBulkOrdersRequest, type IApiCreateBulkOrdersResponse, type IApiCreateOrderRequest, type IApiCreateOrderResponse, type IApiDedustPositionRequest, type IApiDedustPositionResponse, type IApiDepositHistoryRequest, type IApiDepositHistoryResponse, type IApiFillHistoryRequest, type IApiFillHistoryResponse, type IApiFundingAccountSummaryResponse, type IApiFundingPaymentHistoryRequest, type IApiFundingPaymentHistoryResponse, type IApiGetAllInitialLeverageRequest, type IApiGetAllInitialLeverageResponse, type IApiGetMarginTiersResponse, type IApiGetOrderGroupRequest, type IApiGetOrderGroupResponse, type IApiGetOrderRequest, type IApiGetOrderResponse, type IApiOpenOrdersRequest, type IApiOpenOrdersResponse, type IApiOrderHistoryRequest, type IApiOrderHistoryResponse, type IApiPositionsRequest, type IApiPositionsResponse, type IApiPreDepositCheckRequest, type IApiPreDepositCheckResponse, type IApiPreOrderCheckRequest, type IApiPreOrderCheckResponse, type IApiQueryListFundingAccountSummaryRequest, type IApiQueryListFundingAccountSummaryResponse, type IApiQueryListSubAccountSummaryRequest, type IApiQueryListSubAccountSummaryResponse, type IApiQueryTradingPerformanceRequest, type IApiQueryTradingPerformanceResponse, type IApiQueryTradingPerformanceTrendRequest, type IApiQueryTradingPerformanceTrendResponse, type IApiReplaceOrdersRequest, type IApiReplaceOrdersResponse, type IApiSetInitialLeverageRequest, type IApiSetInitialLeverageResponse, type IApiSocializedLossStatusResponse, type IApiSubAccountHistoryRequest, type IApiSubAccountHistoryResponse, type IApiSubAccountSummaryRequest, type IApiSubAccountSummaryResponse, type IApiTimedAssetExposureRequest, type IApiTimedAssetExposureResponse, type IApiTransferHistoryRequest, type IApiTransferHistoryResponse, type IApiTransferRequest, type IApiTransferResponse, type IApiWithdrawalHistoryRequest, type IApiWithdrawalHistoryResponse, type IApiWithdrawalRequest, type IConfig } from '../interfaces';
2
+ import { type IAckResponse, type IApiAggregatedAccountSummaryResponse, type IApiCancelAllOrdersRequest, type IApiCancelAllOrdersResponse, type IApiCancelOrderRequest, type IApiCancelOrderResponse, type IApiCreateBulkOrdersRequest, type IApiCreateBulkOrdersResponse, type IApiCreateOrderRequest, type IApiCreateOrderResponse, type IApiDedustPositionRequest, type IApiDedustPositionResponse, type IApiDepositHistoryRequest, type IApiDepositHistoryResponse, type IApiFillHistoryRequest, type IApiFillHistoryResponse, type IApiFundingAccountSummaryResponse, type IApiFundingPaymentHistoryRequest, type IApiFundingPaymentHistoryResponse, type IApiGetAllInitialLeverageRequest, type IApiGetAllInitialLeverageResponse, type IApiGetMarginTiersResponse, type IApiGetOrderGroupRequest, type IApiGetOrderGroupResponse, type IApiGetOrderRequest, type IApiGetOrderResponse, type IApiOpenOrdersRequest, type IApiOpenOrdersResponse, type IApiOrderHistoryRequest, type IApiOrderHistoryResponse, type IApiPositionsRequest, type IApiPositionsResponse, type IApiPreDepositCheckRequest, type IApiPreDepositCheckResponse, type IApiPreOrderCheckRequest, type IApiPreOrderCheckResponse, type IApiQueryListFundingAccountSummaryRequest, type IApiQueryListFundingAccountSummaryResponse, type IApiQueryListSubAccountSummaryRequest, type IApiQueryListSubAccountSummaryResponse, type IApiQueryTradingPerformanceRequest, type IApiQueryTradingPerformanceResponse, type IApiQueryTradingPerformanceTrendRequest, type IApiQueryTradingPerformanceTrendResponse, type IApiReplaceOrdersRequest, type IApiReplaceOrdersResponse, type IApiSetInitialLeverageRequest, type IApiSetInitialLeverageResponse, type IApiSocializedLossStatusResponse, type IApiSubAccountHistoryRequest, type IApiSubAccountHistoryResponse, type IApiSubAccountSummaryRequest, type IApiSubAccountSummaryResponse, type IApiTimedAssetExposureRequest, type IApiTimedAssetExposureResponse, type IApiTransferHistoryRequest, type IApiTransferHistoryResponse, type IApiTransferRequest, type IApiTransferResponse, type IApiVaultBurnTokensRequest, type IApiVaultInvestorSummaryRequest, type IApiVaultInvestorSummaryResponse, type IApiVaultInvestRequest, type IApiVaultRedeemCancelRequest, type IApiVaultRedeemRequest, type IApiWithdrawalHistoryRequest, type IApiWithdrawalHistoryResponse, type IApiWithdrawalRequest, type IConfig } from '../interfaces';
3
3
  export declare class TDG {
4
4
  private readonly _axios;
5
5
  private readonly _fullUrl;
@@ -110,4 +110,12 @@ export declare class TDG {
110
110
  tradingPerformance(payload: IApiQueryTradingPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQueryTradingPerformanceResponse>;
111
111
  tradingPerformanceTrend(payload: IApiQueryTradingPerformanceTrendRequest, config?: AxiosRequestConfig): Promise<IApiQueryTradingPerformanceTrendResponse>;
112
112
  assetExposure(payload: IApiTimedAssetExposureRequest, config?: AxiosRequestConfig): Promise<IApiTimedAssetExposureResponse>;
113
+ /**
114
+ * START: Vault
115
+ */
116
+ vaultBurnTokens(payload: IApiVaultBurnTokensRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
117
+ vaultInvest(payload: IApiVaultInvestRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
118
+ vaultInvestorSummary(payload: IApiVaultInvestorSummaryRequest, config?: AxiosRequestConfig): Promise<IApiVaultInvestorSummaryResponse>;
119
+ vaultRedeem(payload: IApiVaultRedeemRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
120
+ vaultRedeemCancel(payload: IApiVaultRedeemCancelRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
113
121
  }
package/TDG/index.js CHANGED
@@ -248,5 +248,33 @@ class TDG {
248
248
  return utils_1.Utils.schemaMap(response.data, interfaces_1.API_TIMED_ASSET_EXPOSURE_RESPONSE_MAP.LITE_TO_FULL);
249
249
  }).catch(utils_1.Utils.coverApiError);
250
250
  }
251
+ /**
252
+ * START: Vault
253
+ */
254
+ vaultBurnTokens(payload, config) {
255
+ return this._axios.post(this._liteUrl + '/vault_burn_tokens', utils_1.Utils.schemaMap(payload, interfaces_1.API_VAULT_BURN_TOKENS_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
256
+ return utils_1.Utils.schemaMap(response.data, interfaces_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
257
+ }).catch(utils_1.Utils.coverApiError);
258
+ }
259
+ vaultInvest(payload, config) {
260
+ return this._axios.post(this._liteUrl + '/vault_invest', utils_1.Utils.schemaMap(payload, interfaces_1.API_VAULT_INVEST_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
261
+ return utils_1.Utils.schemaMap(response.data, interfaces_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
262
+ }).catch(utils_1.Utils.coverApiError);
263
+ }
264
+ vaultInvestorSummary(payload, config) {
265
+ return this._axios.post(this._liteUrl + '/vault_investor_summary', utils_1.Utils.schemaMap(payload, interfaces_1.API_VAULT_INVESTOR_SUMMARY_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
266
+ return utils_1.Utils.schemaMap(response.data, interfaces_1.API_VAULT_INVESTOR_SUMMARY_RESPONSE_MAP.LITE_TO_FULL);
267
+ }).catch(utils_1.Utils.coverApiError);
268
+ }
269
+ vaultRedeem(payload, config) {
270
+ return this._axios.post(this._liteUrl + '/vault_redeem', utils_1.Utils.schemaMap(payload, interfaces_1.API_VAULT_REDEEM_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
271
+ return utils_1.Utils.schemaMap(response.data, interfaces_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
272
+ }).catch(utils_1.Utils.coverApiError);
273
+ }
274
+ vaultRedeemCancel(payload, config) {
275
+ return this._axios.post(this._liteUrl + '/vault_redeem_cancel', utils_1.Utils.schemaMap(payload, interfaces_1.API_VAULT_REDEEM_CANCEL_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
276
+ return utils_1.Utils.schemaMap(response.data, interfaces_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
277
+ }).catch(utils_1.Utils.coverApiError);
278
+ }
251
279
  }
252
280
  exports.TDG = TDG;
@@ -189,6 +189,7 @@ export declare enum ETimeInterval {
189
189
  INTERVAL_90_D = "INTERVAL_90_D"
190
190
  }
191
191
  export declare enum ETransferType {
192
+ UNSPECIFIED = "UNSPECIFIED",
192
193
  STANDARD = "STANDARD",
193
194
  FAST_ARB_DEPOSIT = "FAST_ARB_DEPOSIT",
194
195
  FAST_ARB_WITHDRAWAL = "FAST_ARB_WITHDRAWAL",
@@ -784,6 +785,38 @@ export interface IApiUserCategoryAffinityScoreRequest {
784
785
  export interface IApiUserCategoryAffinityScoreResponse {
785
786
  result?: IUserCategoryAffinityScore[];
786
787
  }
788
+ export interface IApiVaultBurnTokensRequest {
789
+ main_account_id?: string;
790
+ vault_id?: string;
791
+ currency?: ECurrency;
792
+ num_tokens?: string;
793
+ signature?: ISignature;
794
+ }
795
+ export interface IApiVaultInvestRequest {
796
+ main_account_id?: string;
797
+ vault_id?: string;
798
+ currency?: ECurrency;
799
+ num_tokens?: string;
800
+ signature?: ISignature;
801
+ }
802
+ export interface IApiVaultInvestorSummaryRequest {
803
+ main_account_id?: string;
804
+ vault_id?: string;
805
+ }
806
+ export interface IApiVaultInvestorSummaryResponse {
807
+ vault_investor_summary?: IVaultInvestorSummary[];
808
+ }
809
+ export interface IApiVaultRedeemCancelRequest {
810
+ main_account_id?: string;
811
+ vault_id?: string;
812
+ }
813
+ export interface IApiVaultRedeemRequest {
814
+ main_account_id?: string;
815
+ vault_id?: string;
816
+ currency?: ECurrency;
817
+ num_tokens?: string;
818
+ signature?: ISignature;
819
+ }
787
820
  export interface IApiWithdrawalHistoryRequest {
788
821
  currency?: ECurrency[];
789
822
  start_time?: string;
@@ -905,6 +938,8 @@ export interface IEcosystemPoint {
905
938
  referee_kyc_point?: string;
906
939
  referrer_kyc_point?: string;
907
940
  }
941
+ export interface IEmptyRequest {
942
+ }
908
943
  export interface IEpoch {
909
944
  epoch?: number;
910
945
  start_time?: string;
@@ -1268,6 +1303,8 @@ export interface ISubAccount {
1268
1303
  spot_balances?: ISpotBalance[];
1269
1304
  positions?: IPositions[];
1270
1305
  settle_index_price?: string;
1306
+ is_vault?: boolean;
1307
+ vault_im_additions?: string;
1271
1308
  }
1272
1309
  export interface ISubAccountTradeAggregation {
1273
1310
  sub_account_id?: string;
@@ -1396,6 +1433,15 @@ export interface IVaultInvestResults {
1396
1433
  vault_share_price?: string;
1397
1434
  num_lp_tokens?: string;
1398
1435
  }
1436
+ export interface IVaultInvestorSummary {
1437
+ sub_account_id?: string;
1438
+ num_lp_tokens?: string;
1439
+ avg_entry_price?: string;
1440
+ current_price?: string;
1441
+ total_equity?: string;
1442
+ all_time_realized_pnl?: string;
1443
+ pending_redemption?: IVaultRedemption;
1444
+ }
1399
1445
  export interface IVaultManagementFeeTickResults {
1400
1446
  vault_total_equity?: string;
1401
1447
  vault_share_price?: string;
@@ -1421,6 +1467,10 @@ export interface IVaultRedeemResults {
1421
1467
  avg_entry_price?: string;
1422
1468
  fees_charged?: string;
1423
1469
  }
1470
+ export interface IVaultRedemption {
1471
+ num_lp_tokens?: string;
1472
+ request_valuation?: string;
1473
+ }
1424
1474
  export interface IWSCancelFeedDataV1 {
1425
1475
  stream?: string;
1426
1476
  selector?: string;
@@ -1464,6 +1514,8 @@ export interface IWSFillFeedSelectorV1 {
1464
1514
  sub_account_id?: string;
1465
1515
  instrument?: string;
1466
1516
  }
1517
+ export interface IWSListStreamsParams {
1518
+ }
1467
1519
  export interface IWSListStreamsResult {
1468
1520
  stream_reference?: IStreamReference[];
1469
1521
  }
@@ -1595,6 +1647,8 @@ export interface IWSTransferFeedSelectorV1 {
1595
1647
  main_account_id?: string;
1596
1648
  sub_account_id?: string;
1597
1649
  }
1650
+ export interface IWSUnsubscribeAllParams {
1651
+ }
1598
1652
  export interface IWSUnsubscribeAllResult {
1599
1653
  stream_reference?: IStreamReference[];
1600
1654
  }
@@ -372,6 +372,8 @@ var ETimeInterval;
372
372
  })(ETimeInterval || (exports.ETimeInterval = ETimeInterval = {}));
373
373
  var ETransferType;
374
374
  (function (ETransferType) {
375
+ // Default transfer that has nothing to do with bridging
376
+ ETransferType["UNSPECIFIED"] = "UNSPECIFIED";
375
377
  // Standard transfer that has nothing to do with bridging
376
378
  ETransferType["STANDARD"] = "STANDARD";
377
379
  // Fast Arb Deposit Metadata type
@@ -193,6 +193,7 @@ exports.ETimeIntervalInt = Object.freeze({
193
193
  [data_interface_1.ETimeInterval.INTERVAL_90_D]: 4
194
194
  });
195
195
  exports.ETransferTypeInt = Object.freeze({
196
+ [data_interface_1.ETransferType.UNSPECIFIED]: 0,
196
197
  [data_interface_1.ETransferType.STANDARD]: 1,
197
198
  [data_interface_1.ETransferType.FAST_ARB_DEPOSIT]: 2,
198
199
  [data_interface_1.ETransferType.FAST_ARB_WITHDRAWAL]: 3,
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_VAULT_BURN_TOKENS_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_VAULT_BURN_TOKENS_REQUEST_MAP = void 0;
4
+ const signature_1 = require("./signature");
5
+ // Schema map for the 'API_VAULT_BURN_TOKENS_REQUEST' struct.
6
+ exports.API_VAULT_BURN_TOKENS_REQUEST_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ main_account_id: 'ma',
9
+ vault_id: 'vi',
10
+ currency: 'c',
11
+ num_tokens: 'nt',
12
+ signature: ['s', signature_1.SIGNATURE_MAP.FULL_TO_LITE]
13
+ },
14
+ LITE_TO_FULL: {
15
+ ma: 'main_account_id',
16
+ vi: 'vault_id',
17
+ c: 'currency',
18
+ nt: 'num_tokens',
19
+ s: ['signature', signature_1.SIGNATURE_MAP.LITE_TO_FULL]
20
+ }
21
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_VAULT_INVEST_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_VAULT_INVEST_REQUEST_MAP = void 0;
4
+ const signature_1 = require("./signature");
5
+ // Schema map for the 'API_VAULT_INVEST_REQUEST' struct.
6
+ exports.API_VAULT_INVEST_REQUEST_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ main_account_id: 'ma',
9
+ vault_id: 'vi',
10
+ currency: 'c',
11
+ num_tokens: 'nt',
12
+ signature: ['s', signature_1.SIGNATURE_MAP.FULL_TO_LITE]
13
+ },
14
+ LITE_TO_FULL: {
15
+ ma: 'main_account_id',
16
+ vi: 'vault_id',
17
+ c: 'currency',
18
+ nt: 'num_tokens',
19
+ s: ['signature', signature_1.SIGNATURE_MAP.LITE_TO_FULL]
20
+ }
21
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_VAULT_INVESTOR_SUMMARY_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_VAULT_INVESTOR_SUMMARY_REQUEST_MAP = void 0;
4
+ // Schema map for the 'API_VAULT_INVESTOR_SUMMARY_REQUEST' struct.
5
+ exports.API_VAULT_INVESTOR_SUMMARY_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ main_account_id: 'ma',
8
+ vault_id: 'vi'
9
+ },
10
+ LITE_TO_FULL: {
11
+ ma: 'main_account_id',
12
+ vi: 'vault_id'
13
+ }
14
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_VAULT_INVESTOR_SUMMARY_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_VAULT_INVESTOR_SUMMARY_RESPONSE_MAP = void 0;
4
+ const vault_investor_summary_1 = require("./vault_investor_summary");
5
+ // Schema map for the 'API_VAULT_INVESTOR_SUMMARY_RESPONSE' struct.
6
+ exports.API_VAULT_INVESTOR_SUMMARY_RESPONSE_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ vault_investor_summary: ['vi', [vault_investor_summary_1.VAULT_INVESTOR_SUMMARY_MAP.FULL_TO_LITE]]
9
+ },
10
+ LITE_TO_FULL: {
11
+ vi: ['vault_investor_summary', [vault_investor_summary_1.VAULT_INVESTOR_SUMMARY_MAP.LITE_TO_FULL]]
12
+ }
13
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_VAULT_REDEEM_CANCEL_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_VAULT_REDEEM_CANCEL_REQUEST_MAP = void 0;
4
+ // Schema map for the 'API_VAULT_REDEEM_CANCEL_REQUEST' struct.
5
+ exports.API_VAULT_REDEEM_CANCEL_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ main_account_id: 'ma',
8
+ vault_id: 'vi'
9
+ },
10
+ LITE_TO_FULL: {
11
+ ma: 'main_account_id',
12
+ vi: 'vault_id'
13
+ }
14
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_VAULT_REDEEM_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_VAULT_REDEEM_REQUEST_MAP = void 0;
4
+ const signature_1 = require("./signature");
5
+ // Schema map for the 'API_VAULT_REDEEM_REQUEST' struct.
6
+ exports.API_VAULT_REDEEM_REQUEST_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ main_account_id: 'ma',
9
+ vault_id: 'vi',
10
+ currency: 'c',
11
+ num_tokens: 'nt',
12
+ signature: ['s', signature_1.SIGNATURE_MAP.FULL_TO_LITE]
13
+ },
14
+ LITE_TO_FULL: {
15
+ ma: 'main_account_id',
16
+ vi: 'vault_id',
17
+ c: 'currency',
18
+ nt: 'num_tokens',
19
+ s: ['signature', signature_1.SIGNATURE_MAP.LITE_TO_FULL]
20
+ }
21
+ });
@@ -129,6 +129,12 @@ export * from './api_transfer_request';
129
129
  export * from './api_transfer_response';
130
130
  export * from './api_user_category_affinity_score_request';
131
131
  export * from './api_user_category_affinity_score_response';
132
+ export * from './api_vault_burn_tokens_request';
133
+ export * from './api_vault_invest_request';
134
+ export * from './api_vault_investor_summary_request';
135
+ export * from './api_vault_investor_summary_response';
136
+ export * from './api_vault_redeem_cancel_request';
137
+ export * from './api_vault_redeem_request';
132
138
  export * from './api_withdrawal_history_request';
133
139
  export * from './api_withdrawal_history_response';
134
140
  export * from './api_withdrawal_request';
@@ -211,9 +217,11 @@ export * from './user_category_affinity_score';
211
217
  export * from './user_tracking_event';
212
218
  export * from './user_vault_category_event_pay_load';
213
219
  export * from './vault_invest_results';
220
+ export * from './vault_investor_summary';
214
221
  export * from './vault_management_fee_tick_results';
215
222
  export * from './vault_params';
216
223
  export * from './vault_redeem_results';
224
+ export * from './vault_redemption';
217
225
  export * from './ws_cancel_feed_data_v_1';
218
226
  export * from './ws_cancel_feed_selector_v_1';
219
227
  export * from './ws_candlestick_feed_data_v_1';
@@ -145,6 +145,12 @@ __exportStar(require("./api_transfer_request"), exports);
145
145
  __exportStar(require("./api_transfer_response"), exports);
146
146
  __exportStar(require("./api_user_category_affinity_score_request"), exports);
147
147
  __exportStar(require("./api_user_category_affinity_score_response"), exports);
148
+ __exportStar(require("./api_vault_burn_tokens_request"), exports);
149
+ __exportStar(require("./api_vault_invest_request"), exports);
150
+ __exportStar(require("./api_vault_investor_summary_request"), exports);
151
+ __exportStar(require("./api_vault_investor_summary_response"), exports);
152
+ __exportStar(require("./api_vault_redeem_cancel_request"), exports);
153
+ __exportStar(require("./api_vault_redeem_request"), exports);
148
154
  __exportStar(require("./api_withdrawal_history_request"), exports);
149
155
  __exportStar(require("./api_withdrawal_history_response"), exports);
150
156
  __exportStar(require("./api_withdrawal_request"), exports);
@@ -227,9 +233,11 @@ __exportStar(require("./user_category_affinity_score"), exports);
227
233
  __exportStar(require("./user_tracking_event"), exports);
228
234
  __exportStar(require("./user_vault_category_event_pay_load"), exports);
229
235
  __exportStar(require("./vault_invest_results"), exports);
236
+ __exportStar(require("./vault_investor_summary"), exports);
230
237
  __exportStar(require("./vault_management_fee_tick_results"), exports);
231
238
  __exportStar(require("./vault_params"), exports);
232
239
  __exportStar(require("./vault_redeem_results"), exports);
240
+ __exportStar(require("./vault_redemption"), exports);
233
241
  __exportStar(require("./ws_cancel_feed_data_v_1"), exports);
234
242
  __exportStar(require("./ws_cancel_feed_selector_v_1"), exports);
235
243
  __exportStar(require("./ws_candlestick_feed_data_v_1"), exports);
@@ -17,7 +17,9 @@ exports.SUB_ACCOUNT_MAP = Object.freeze({
17
17
  available_balance: 'ab',
18
18
  spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]],
19
19
  positions: ['p', [api_position_1.POSITIONS_MAP.FULL_TO_LITE]],
20
- settle_index_price: 'si'
20
+ settle_index_price: 'si',
21
+ is_vault: 'iv',
22
+ vault_im_additions: 'vi'
21
23
  },
22
24
  LITE_TO_FULL: {
23
25
  et: 'event_time',
@@ -31,6 +33,8 @@ exports.SUB_ACCOUNT_MAP = Object.freeze({
31
33
  ab: 'available_balance',
32
34
  sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]],
33
35
  p: ['positions', [api_position_1.POSITIONS_MAP.LITE_TO_FULL]],
34
- si: 'settle_index_price'
36
+ si: 'settle_index_price',
37
+ iv: 'is_vault',
38
+ vi: 'vault_im_additions'
35
39
  }
36
40
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const VAULT_INVESTOR_SUMMARY_MAP: SchemaPairMap;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VAULT_INVESTOR_SUMMARY_MAP = void 0;
4
+ const vault_redemption_1 = require("./vault_redemption");
5
+ // Schema map for the 'VAULT_INVESTOR_SUMMARY' struct.
6
+ exports.VAULT_INVESTOR_SUMMARY_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ sub_account_id: 'sa',
9
+ num_lp_tokens: 'nl',
10
+ avg_entry_price: 'ae',
11
+ current_price: 'cp',
12
+ total_equity: 'te',
13
+ all_time_realized_pnl: 'at',
14
+ pending_redemption: ['pr', vault_redemption_1.VAULT_REDEMPTION_MAP.FULL_TO_LITE]
15
+ },
16
+ LITE_TO_FULL: {
17
+ sa: 'sub_account_id',
18
+ nl: 'num_lp_tokens',
19
+ ae: 'avg_entry_price',
20
+ cp: 'current_price',
21
+ te: 'total_equity',
22
+ at: 'all_time_realized_pnl',
23
+ pr: ['pending_redemption', vault_redemption_1.VAULT_REDEMPTION_MAP.LITE_TO_FULL]
24
+ }
25
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const VAULT_REDEMPTION_MAP: SchemaPairMap;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VAULT_REDEMPTION_MAP = void 0;
4
+ // Schema map for the 'VAULT_REDEMPTION' struct.
5
+ exports.VAULT_REDEMPTION_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ num_lp_tokens: 'nl',
8
+ request_valuation: 'rv'
9
+ },
10
+ LITE_TO_FULL: {
11
+ nl: 'num_lp_tokens',
12
+ rv: 'request_valuation'
13
+ }
14
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.4.7",
3
+ "version": "1.4.9",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",