@ember-finance/sdk 1.0.8 → 1.0.10

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 (105) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -1
  3. package/dist/src/common/types.d.ts +0 -1
  4. package/dist/src/common/types.js +0 -1
  5. package/dist/src/vaults/api/api.d.ts +2 -2
  6. package/dist/src/vaults/api/apis/accounts-api.d.ts +178 -27
  7. package/dist/src/vaults/api/apis/accounts-api.js +208 -77
  8. package/dist/src/vaults/api/apis/vaults-api.d.ts +270 -40
  9. package/dist/src/vaults/api/apis/vaults-api.js +267 -194
  10. package/dist/src/vaults/api/base.d.ts +26 -2
  11. package/dist/src/vaults/api/base.js +21 -1
  12. package/dist/src/vaults/api/common.d.ts +38 -1
  13. package/dist/src/vaults/api/common.js +47 -17
  14. package/dist/src/vaults/api/configuration.d.ts +17 -0
  15. package/dist/src/vaults/api/configuration.js +4 -5
  16. package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +6 -5
  17. package/dist/src/vaults/api/models/account-transaction.d.ts +26 -11
  18. package/dist/src/vaults/api/models/account-transaction.js +12 -7
  19. package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +64 -23
  20. package/dist/src/vaults/api/models/account-withdrawal-request.js +13 -8
  21. package/dist/src/vaults/api/models/apy-history.d.ts +42 -0
  22. package/dist/src/vaults/api/models/apy-history.js +15 -0
  23. package/dist/src/vaults/api/models/asset.d.ts +26 -7
  24. package/dist/src/vaults/api/models/borrowed.d.ts +43 -0
  25. package/dist/src/vaults/api/models/borrowed.js +15 -0
  26. package/dist/src/vaults/api/models/coin-price.d.ts +30 -0
  27. package/dist/src/vaults/api/models/coin-price.js +15 -0
  28. package/dist/src/vaults/api/models/deposit-transaction.d.ts +40 -10
  29. package/dist/src/vaults/api/models/exposure-coin.d.ts +18 -4
  30. package/dist/src/vaults/api/models/exposure-protocol.d.ts +50 -3
  31. package/dist/src/vaults/api/models/exposure.d.ts +16 -5
  32. package/dist/src/vaults/api/models/fee.d.ts +37 -0
  33. package/dist/src/vaults/api/models/fee.js +15 -0
  34. package/dist/src/vaults/api/models/history-interval.d.ts +11 -7
  35. package/dist/src/vaults/api/models/history-interval.js +12 -6
  36. package/dist/src/vaults/api/models/index.d.ts +60 -43
  37. package/dist/src/vaults/api/models/index.js +17 -0
  38. package/dist/src/vaults/api/models/lp.d.ts +81 -0
  39. package/dist/src/vaults/api/models/lp.js +15 -0
  40. package/dist/src/vaults/api/models/manager.d.ts +26 -4
  41. package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +17 -4
  42. package/dist/src/vaults/api/models/perps.d.ts +31 -0
  43. package/dist/src/vaults/api/models/perps.js +15 -0
  44. package/dist/src/vaults/api/models/pnl-history-interval.d.ts +21 -0
  45. package/dist/src/vaults/api/models/pnl-history-interval.js +27 -0
  46. package/dist/src/vaults/api/models/pnl-history.d.ts +17 -2
  47. package/dist/src/vaults/api/models/position-value.d.ts +54 -0
  48. package/dist/src/vaults/api/models/position-value.js +15 -0
  49. package/dist/src/vaults/api/models/position.d.ts +42 -0
  50. package/dist/src/vaults/api/models/position.js +15 -0
  51. package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +78 -0
  52. package/dist/src/vaults/api/models/process-requests-summary-event.js +15 -0
  53. package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +60 -0
  54. package/dist/src/vaults/api/models/protocol-fee-collected-event.js +15 -0
  55. package/dist/src/vaults/api/models/protocol-info.d.ts +20 -6
  56. package/dist/src/vaults/api/models/protocol.d.ts +17 -13
  57. package/dist/src/vaults/api/models/protocol.js +0 -8
  58. package/dist/src/vaults/api/models/raw-event-event-data.d.ts +19 -13
  59. package/dist/src/vaults/api/models/raw-event.d.ts +44 -20
  60. package/dist/src/vaults/api/models/raw-event.js +24 -14
  61. package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +31 -8
  62. package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +40 -10
  63. package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +31 -8
  64. package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +31 -8
  65. package/dist/src/vaults/api/models/reported-apy.d.ts +17 -2
  66. package/dist/src/vaults/api/models/request-processed-event.d.ts +35 -10
  67. package/dist/src/vaults/api/models/request-redeemed-event.d.ts +32 -9
  68. package/dist/src/vaults/api/models/reward-token.d.ts +26 -5
  69. package/dist/src/vaults/api/models/reward.d.ts +37 -0
  70. package/dist/src/vaults/api/models/reward.js +15 -0
  71. package/dist/src/vaults/api/models/share-price-history.d.ts +11 -2
  72. package/dist/src/vaults/api/models/strategy.d.ts +26 -7
  73. package/dist/src/vaults/api/models/sub-account.d.ts +15 -3
  74. package/dist/src/vaults/api/models/supplied.d.ts +43 -0
  75. package/dist/src/vaults/api/models/supplied.js +15 -0
  76. package/dist/src/vaults/api/models/tvl-history.d.ts +11 -2
  77. package/dist/src/vaults/api/models/ultra-coin-info.d.ts +23 -6
  78. package/dist/src/vaults/api/models/update-vault-strategies.d.ts +24 -6
  79. package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +17 -4
  80. package/dist/src/vaults/api/models/vault-created-event.d.ts +29 -7
  81. package/dist/src/vaults/api/models/vault-deposit-event.d.ts +32 -9
  82. package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +60 -0
  83. package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.js +15 -0
  84. package/dist/src/vaults/api/models/vault-detail.d.ts +125 -37
  85. package/dist/src/vaults/api/models/vault-detail.js +11 -6
  86. package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +17 -4
  87. package/dist/src/vaults/api/models/vault-info.d.ts +38 -11
  88. package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +17 -4
  89. package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +17 -4
  90. package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +14 -3
  91. package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +48 -0
  92. package/dist/src/vaults/api/models/vault-platform-fee-charged-event.js +15 -0
  93. package/dist/src/vaults/api/models/vault-protocol.d.ts +17 -4
  94. package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +17 -4
  95. package/dist/src/vaults/api/models/vault-slice.d.ts +20 -5
  96. package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +23 -6
  97. package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +60 -0
  98. package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.js +15 -0
  99. package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +42 -0
  100. package/dist/src/vaults/api/models/yield-aggregate-value.js +15 -0
  101. package/dist/src/vaults/on-chain-calls/tx-builder.d.ts +8 -0
  102. package/dist/src/vaults/on-chain-calls/tx-builder.js +35 -0
  103. package/dist/src/vaults/on-chain-calls/user.d.ts +9 -0
  104. package/dist/src/vaults/on-chain-calls/user.js +16 -0
  105. package/package.json +5 -3
@@ -9,33 +9,44 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Configuration } from "../configuration";
13
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios";
14
- import globalAxios from "axios";
15
- import { type RequestArgs, BaseAPI } from "../base";
16
- import type { Exposure } from "../models";
17
- import type { HistoryInterval } from "../models";
18
- import type { PnlHistory } from "../models";
19
- import type { ProtocolInfo } from "../models";
20
- import type { RawEvent } from "../models";
21
- import type { SharePriceHistory } from "../models";
22
- import type { Strategy } from "../models";
23
- import type { TvlHistory } from "../models";
24
- import type { UpdateVaultStrategies } from "../models";
25
- import type { VaultDetail } from "../models";
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { ApyHistory } from '../models';
16
+ import type { CoinPrice } from '../models';
17
+ import type { Exposure } from '../models';
18
+ import type { HistoryInterval } from '../models';
19
+ import type { PnlHistory } from '../models';
20
+ import type { PnlHistoryInterval } from '../models';
21
+ import type { ProtocolInfo } from '../models';
22
+ import type { RawEvent } from '../models';
23
+ import type { SharePriceHistory } from '../models';
24
+ import type { Strategy } from '../models';
25
+ import type { TvlHistory } from '../models';
26
+ import type { UpdateVaultStrategies } from '../models';
27
+ import type { VaultDetail } from '../models';
26
28
  /**
27
29
  * VaultsApi - axios parameter creator
30
+ * @export
28
31
  */
29
32
  export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration) => {
33
+ /**
34
+ *
35
+ * @summary Get the price of the coins
36
+ * @param {string} [coinTypes] The coin types of the coins
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ getCoinsPrice: (coinTypes?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30
41
  /**
31
42
  *
32
43
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
33
44
  * @param {number} [limit] The limit of the rows
34
- * @param {HistoryInterval} [interval] The interval of the rows
45
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
35
46
  * @param {*} [options] Override http request option.
36
47
  * @throws {RequiredError}
37
48
  */
38
- getProtocolPnlHistory: (limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
49
+ getProtocolPnlHistory: (limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
50
  /**
40
51
  *
41
52
  * @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
@@ -56,6 +67,16 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
56
67
  * @throws {RequiredError}
57
68
  */
58
69
  getRawEvents: (startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
70
+ /**
71
+ *
72
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
73
+ * @param {string} vaultId The id of the vault
74
+ * @param {number} [limit] The limit of the rows
75
+ * @param {HistoryInterval} [interval] The interval of the rows
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ getVaultApyHistory: (vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
59
80
  /**
60
81
  *
61
82
  * @summary Get the exposure of the vault
@@ -69,11 +90,11 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
69
90
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
70
91
  * @param {string} vaultId The id of the vault
71
92
  * @param {number} [limit] The limit of the rows
72
- * @param {HistoryInterval} [interval] The interval of the rows
93
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
73
94
  * @param {*} [options] Override http request option.
74
95
  * @throws {RequiredError}
75
96
  */
76
- getVaultPnlHistory: (vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
97
+ getVaultPnlHistory: (vaultId: string, limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
77
98
  /**
78
99
  *
79
100
  * @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -129,17 +150,26 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
129
150
  };
130
151
  /**
131
152
  * VaultsApi - functional programming interface
153
+ * @export
132
154
  */
133
155
  export declare const VaultsApiFp: (configuration?: Configuration) => {
156
+ /**
157
+ *
158
+ * @summary Get the price of the coins
159
+ * @param {string} [coinTypes] The coin types of the coins
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ getCoinsPrice(coinTypes?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CoinPrice>>>;
134
164
  /**
135
165
  *
136
166
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
137
167
  * @param {number} [limit] The limit of the rows
138
- * @param {HistoryInterval} [interval] The interval of the rows
168
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
139
169
  * @param {*} [options] Override http request option.
140
170
  * @throws {RequiredError}
141
171
  */
142
- getProtocolPnlHistory(limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PnlHistory>>>;
172
+ getProtocolPnlHistory(limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PnlHistory>>>;
143
173
  /**
144
174
  *
145
175
  * @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
@@ -160,6 +190,16 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
160
190
  * @throws {RequiredError}
161
191
  */
162
192
  getRawEvents(startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RawEvent>>>;
193
+ /**
194
+ *
195
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
196
+ * @param {string} vaultId The id of the vault
197
+ * @param {number} [limit] The limit of the rows
198
+ * @param {HistoryInterval} [interval] The interval of the rows
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ getVaultApyHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApyHistory>>>;
163
203
  /**
164
204
  *
165
205
  * @summary Get the exposure of the vault
@@ -173,11 +213,11 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
173
213
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
174
214
  * @param {string} vaultId The id of the vault
175
215
  * @param {number} [limit] The limit of the rows
176
- * @param {HistoryInterval} [interval] The interval of the rows
216
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
177
217
  * @param {*} [options] Override http request option.
178
218
  * @throws {RequiredError}
179
219
  */
180
- getVaultPnlHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PnlHistory>>>;
220
+ getVaultPnlHistory(vaultId: string, limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PnlHistory>>>;
181
221
  /**
182
222
  *
183
223
  * @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -233,17 +273,26 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
233
273
  };
234
274
  /**
235
275
  * VaultsApi - factory interface
276
+ * @export
236
277
  */
237
278
  export declare const VaultsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
279
+ /**
280
+ *
281
+ * @summary Get the price of the coins
282
+ * @param {string} [coinTypes] The coin types of the coins
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ getCoinsPrice(coinTypes?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CoinPrice>>;
238
287
  /**
239
288
  *
240
289
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
241
290
  * @param {number} [limit] The limit of the rows
242
- * @param {HistoryInterval} [interval] The interval of the rows
291
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
243
292
  * @param {*} [options] Override http request option.
244
293
  * @throws {RequiredError}
245
294
  */
246
- getProtocolPnlHistory(limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PnlHistory>>;
295
+ getProtocolPnlHistory(limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PnlHistory>>;
247
296
  /**
248
297
  *
249
298
  * @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
@@ -264,6 +313,16 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
264
313
  * @throws {RequiredError}
265
314
  */
266
315
  getRawEvents(startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<RawEvent>>;
316
+ /**
317
+ *
318
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
319
+ * @param {string} vaultId The id of the vault
320
+ * @param {number} [limit] The limit of the rows
321
+ * @param {HistoryInterval} [interval] The interval of the rows
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ getVaultApyHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApyHistory>>;
267
326
  /**
268
327
  *
269
328
  * @summary Get the exposure of the vault
@@ -277,11 +336,11 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
277
336
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
278
337
  * @param {string} vaultId The id of the vault
279
338
  * @param {number} [limit] The limit of the rows
280
- * @param {HistoryInterval} [interval] The interval of the rows
339
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
281
340
  * @param {*} [options] Override http request option.
282
341
  * @throws {RequiredError}
283
342
  */
284
- getVaultPnlHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PnlHistory>>;
343
+ getVaultPnlHistory(vaultId: string, limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PnlHistory>>;
285
344
  /**
286
345
  *
287
346
  * @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -336,18 +395,30 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
336
395
  updateVaultStrategy(updateVaultStrategies: UpdateVaultStrategies, options?: RawAxiosRequestConfig): AxiosPromise<Array<Strategy>>;
337
396
  };
338
397
  /**
339
- * VaultsApi - object-oriented interface
398
+ * VaultsApi - interface
399
+ * @export
400
+ * @interface VaultsApi
340
401
  */
341
- export declare class VaultsApi extends BaseAPI {
402
+ export interface VaultsApiInterface {
403
+ /**
404
+ *
405
+ * @summary Get the price of the coins
406
+ * @param {string} [coinTypes] The coin types of the coins
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ * @memberof VaultsApiInterface
410
+ */
411
+ getCoinsPrice(coinTypes?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CoinPrice>>;
342
412
  /**
343
413
  *
344
414
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
345
415
  * @param {number} [limit] The limit of the rows
346
- * @param {HistoryInterval} [interval] The interval of the rows
416
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
347
417
  * @param {*} [options] Override http request option.
348
418
  * @throws {RequiredError}
419
+ * @memberof VaultsApiInterface
349
420
  */
350
- getProtocolPnlHistory(limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PnlHistory[], any>>;
421
+ getProtocolPnlHistory(limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PnlHistory>>;
351
422
  /**
352
423
  *
353
424
  * @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
@@ -355,8 +426,9 @@ export declare class VaultsApi extends BaseAPI {
355
426
  * @param {HistoryInterval} [interval] The interval of the rows
356
427
  * @param {*} [options] Override http request option.
357
428
  * @throws {RequiredError}
429
+ * @memberof VaultsApiInterface
358
430
  */
359
- getProtocolTvlHistory(limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<TvlHistory[], any>>;
431
+ getProtocolTvlHistory(limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<TvlHistory>>;
360
432
  /**
361
433
  *
362
434
  * @summary Get raw events of the protocol
@@ -366,26 +438,178 @@ export declare class VaultsApi extends BaseAPI {
366
438
  * @param {number} [page] Use when provided time range and limit exceed max page size
367
439
  * @param {*} [options] Override http request option.
368
440
  * @throws {RequiredError}
441
+ * @memberof VaultsApiInterface
442
+ */
443
+ getRawEvents(startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<RawEvent>>;
444
+ /**
445
+ *
446
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
447
+ * @param {string} vaultId The id of the vault
448
+ * @param {number} [limit] The limit of the rows
449
+ * @param {HistoryInterval} [interval] The interval of the rows
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ * @memberof VaultsApiInterface
369
453
  */
370
- getRawEvents(startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<RawEvent[], any>>;
454
+ getVaultApyHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApyHistory>>;
371
455
  /**
372
456
  *
373
457
  * @summary Get the exposure of the vault
374
458
  * @param {string} vaultId The id of the vault
375
459
  * @param {*} [options] Override http request option.
376
460
  * @throws {RequiredError}
461
+ * @memberof VaultsApiInterface
377
462
  */
378
- getVaultExposure(vaultId: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Exposure, any>>;
463
+ getVaultExposure(vaultId: string, options?: RawAxiosRequestConfig): AxiosPromise<Exposure>;
379
464
  /**
380
465
  *
381
466
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
382
467
  * @param {string} vaultId The id of the vault
383
468
  * @param {number} [limit] The limit of the rows
469
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
470
+ * @param {*} [options] Override http request option.
471
+ * @throws {RequiredError}
472
+ * @memberof VaultsApiInterface
473
+ */
474
+ getVaultPnlHistory(vaultId: string, limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PnlHistory>>;
475
+ /**
476
+ *
477
+ * @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
478
+ * @param {string} vaultId The id of the vault
479
+ * @param {number} [limit] The limit of the rows
384
480
  * @param {HistoryInterval} [interval] The interval of the rows
385
481
  * @param {*} [options] Override http request option.
386
482
  * @throws {RequiredError}
483
+ * @memberof VaultsApiInterface
484
+ */
485
+ getVaultSharePriceHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<SharePriceHistory>>;
486
+ /**
487
+ *
488
+ * @summary Get the strategy of the vault
489
+ * @param {string} vaultId The id of the vault
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ * @memberof VaultsApiInterface
493
+ */
494
+ getVaultStrategy(vaultId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Strategy>>;
495
+ /**
496
+ *
497
+ * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
498
+ * @param {string} vaultId The id of the vault
499
+ * @param {number} [limit] The limit of the rows
500
+ * @param {HistoryInterval} [interval] The interval of the rows
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ * @memberof VaultsApiInterface
504
+ */
505
+ getVaultTvlHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<TvlHistory>>;
506
+ /**
507
+ *
508
+ * @summary Get details for all vaults or a specific vault
509
+ * @param {string} [vaultId] The ID of the vault
510
+ * @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ * @memberof VaultsApiInterface
514
+ */
515
+ getVaults(vaultId?: string, receiptCoinSymbol?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<VaultDetail>>;
516
+ /**
517
+ *
518
+ * @summary Get protocol info to initialize sdk
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ * @memberof VaultsApiInterface
522
+ */
523
+ getVaultsProtocolInfo(options?: RawAxiosRequestConfig): AxiosPromise<ProtocolInfo>;
524
+ /**
525
+ *
526
+ * @summary Update the strategy of the vault
527
+ * @param {UpdateVaultStrategies} updateVaultStrategies
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ * @memberof VaultsApiInterface
531
+ */
532
+ updateVaultStrategy(updateVaultStrategies: UpdateVaultStrategies, options?: RawAxiosRequestConfig): AxiosPromise<Array<Strategy>>;
533
+ }
534
+ /**
535
+ * VaultsApi - object-oriented interface
536
+ * @export
537
+ * @class VaultsApi
538
+ * @extends {BaseAPI}
539
+ */
540
+ export declare class VaultsApi extends BaseAPI implements VaultsApiInterface {
541
+ /**
542
+ *
543
+ * @summary Get the price of the coins
544
+ * @param {string} [coinTypes] The coin types of the coins
545
+ * @param {*} [options] Override http request option.
546
+ * @throws {RequiredError}
547
+ * @memberof VaultsApi
548
+ */
549
+ getCoinsPrice(coinTypes?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CoinPrice[], any, {}>>;
550
+ /**
551
+ *
552
+ * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
553
+ * @param {number} [limit] The limit of the rows
554
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ * @memberof VaultsApi
558
+ */
559
+ getProtocolPnlHistory(limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PnlHistory[], any, {}>>;
560
+ /**
561
+ *
562
+ * @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
563
+ * @param {number} [limit] The limit of the rows
564
+ * @param {HistoryInterval} [interval] The interval of the rows
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ * @memberof VaultsApi
568
+ */
569
+ getProtocolTvlHistory(limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TvlHistory[], any, {}>>;
570
+ /**
571
+ *
572
+ * @summary Get raw events of the protocol
573
+ * @param {number} startTimeInMs The start time of the events
574
+ * @param {number} [endTimeInMs] The end time of the events
575
+ * @param {number} [limit] The limit of the events
576
+ * @param {number} [page] Use when provided time range and limit exceed max page size
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ * @memberof VaultsApi
580
+ */
581
+ getRawEvents(startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RawEvent[], any, {}>>;
582
+ /**
583
+ *
584
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
585
+ * @param {string} vaultId The id of the vault
586
+ * @param {number} [limit] The limit of the rows
587
+ * @param {HistoryInterval} [interval] The interval of the rows
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ * @memberof VaultsApi
591
+ */
592
+ getVaultApyHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApyHistory[], any, {}>>;
593
+ /**
594
+ *
595
+ * @summary Get the exposure of the vault
596
+ * @param {string} vaultId The id of the vault
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ * @memberof VaultsApi
600
+ */
601
+ getVaultExposure(vaultId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Exposure, any, {}>>;
602
+ /**
603
+ *
604
+ * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
605
+ * @param {string} vaultId The id of the vault
606
+ * @param {number} [limit] The limit of the rows
607
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ * @memberof VaultsApi
387
611
  */
388
- getVaultPnlHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PnlHistory[], any>>;
612
+ getVaultPnlHistory(vaultId: string, limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PnlHistory[], any, {}>>;
389
613
  /**
390
614
  *
391
615
  * @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -394,16 +618,18 @@ export declare class VaultsApi extends BaseAPI {
394
618
  * @param {HistoryInterval} [interval] The interval of the rows
395
619
  * @param {*} [options] Override http request option.
396
620
  * @throws {RequiredError}
621
+ * @memberof VaultsApi
397
622
  */
398
- getVaultSharePriceHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SharePriceHistory[], any>>;
623
+ getVaultSharePriceHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SharePriceHistory[], any, {}>>;
399
624
  /**
400
625
  *
401
626
  * @summary Get the strategy of the vault
402
627
  * @param {string} vaultId The id of the vault
403
628
  * @param {*} [options] Override http request option.
404
629
  * @throws {RequiredError}
630
+ * @memberof VaultsApi
405
631
  */
406
- getVaultStrategy(vaultId: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Strategy[], any>>;
632
+ getVaultStrategy(vaultId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Strategy[], any, {}>>;
407
633
  /**
408
634
  *
409
635
  * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -412,8 +638,9 @@ export declare class VaultsApi extends BaseAPI {
412
638
  * @param {HistoryInterval} [interval] The interval of the rows
413
639
  * @param {*} [options] Override http request option.
414
640
  * @throws {RequiredError}
641
+ * @memberof VaultsApi
415
642
  */
416
- getVaultTvlHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<TvlHistory[], any>>;
643
+ getVaultTvlHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TvlHistory[], any, {}>>;
417
644
  /**
418
645
  *
419
646
  * @summary Get details for all vaults or a specific vault
@@ -421,21 +648,24 @@ export declare class VaultsApi extends BaseAPI {
421
648
  * @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
422
649
  * @param {*} [options] Override http request option.
423
650
  * @throws {RequiredError}
651
+ * @memberof VaultsApi
424
652
  */
425
- getVaults(vaultId?: string, receiptCoinSymbol?: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<VaultDetail[], any>>;
653
+ getVaults(vaultId?: string, receiptCoinSymbol?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VaultDetail[], any, {}>>;
426
654
  /**
427
655
  *
428
656
  * @summary Get protocol info to initialize sdk
429
657
  * @param {*} [options] Override http request option.
430
658
  * @throws {RequiredError}
659
+ * @memberof VaultsApi
431
660
  */
432
- getVaultsProtocolInfo(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ProtocolInfo, any>>;
661
+ getVaultsProtocolInfo(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProtocolInfo, any, {}>>;
433
662
  /**
434
663
  *
435
664
  * @summary Update the strategy of the vault
436
665
  * @param {UpdateVaultStrategies} updateVaultStrategies
437
666
  * @param {*} [options] Override http request option.
438
667
  * @throws {RequiredError}
668
+ * @memberof VaultsApi
439
669
  */
440
- updateVaultStrategy(updateVaultStrategies: UpdateVaultStrategies, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Strategy[], any>>;
670
+ updateVaultStrategy(updateVaultStrategies: UpdateVaultStrategies, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Strategy[], any, {}>>;
441
671
  }