@ember-finance/sdk 1.0.10 → 1.0.12

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 (84) hide show
  1. package/dist/src/vaults/api/api.d.ts +2 -2
  2. package/dist/src/vaults/api/apis/accounts-api.d.ts +112 -89
  3. package/dist/src/vaults/api/apis/accounts-api.js +288 -82
  4. package/dist/src/vaults/api/apis/vaults-api.d.ts +17 -154
  5. package/dist/src/vaults/api/apis/vaults-api.js +220 -121
  6. package/dist/src/vaults/api/base.d.ts +2 -2
  7. package/dist/src/vaults/api/base.js +1 -2
  8. package/dist/src/vaults/api/common.d.ts +1 -1
  9. package/dist/src/vaults/api/common.js +17 -10
  10. package/dist/src/vaults/api/configuration.js +5 -4
  11. package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +5 -5
  12. package/dist/src/vaults/api/models/account-transaction.d.ts +11 -14
  13. package/dist/src/vaults/api/models/account-transaction.js +7 -12
  14. package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +23 -26
  15. package/dist/src/vaults/api/models/account-withdrawal-request.js +8 -13
  16. package/dist/src/vaults/api/models/apy-history.d.ts +4 -4
  17. package/dist/src/vaults/api/models/asset.d.ts +7 -7
  18. package/dist/src/vaults/api/models/borrowed.d.ts +5 -5
  19. package/dist/src/vaults/api/models/coin-price.d.ts +2 -2
  20. package/dist/src/vaults/api/models/deposit-transaction.d.ts +10 -10
  21. package/dist/src/vaults/api/models/exposure-coin.d.ts +4 -4
  22. package/dist/src/vaults/api/models/exposure-protocol.d.ts +13 -13
  23. package/dist/src/vaults/api/models/exposure.d.ts +5 -5
  24. package/dist/src/vaults/api/models/fee.d.ts +4 -4
  25. package/dist/src/vaults/api/models/history-interval.d.ts +7 -6
  26. package/dist/src/vaults/api/models/history-interval.js +6 -7
  27. package/dist/src/vaults/api/models/index.d.ts +62 -60
  28. package/dist/src/vaults/api/models/index.js +2 -0
  29. package/dist/src/vaults/api/models/lp.d.ts +13 -13
  30. package/dist/src/vaults/api/models/manager.d.ts +4 -4
  31. package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +4 -4
  32. package/dist/src/vaults/api/models/perps.d.ts +3 -3
  33. package/dist/src/vaults/api/models/pnl-history-interval.d.ts +6 -5
  34. package/dist/src/vaults/api/models/pnl-history-interval.js +5 -6
  35. package/dist/src/vaults/api/models/pnl-history.d.ts +3 -3
  36. package/dist/src/vaults/api/models/position-history-interval.d.ts +22 -0
  37. package/dist/src/vaults/api/models/position-history-interval.js +26 -0
  38. package/dist/src/vaults/api/models/position-history.d.ts +65 -0
  39. package/dist/src/vaults/api/models/position-history.js +20 -0
  40. package/dist/src/vaults/api/models/position-value.d.ts +17 -6
  41. package/dist/src/vaults/api/models/position-value.js +5 -0
  42. package/dist/src/vaults/api/models/position.d.ts +4 -4
  43. package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +10 -10
  44. package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +7 -7
  45. package/dist/src/vaults/api/models/protocol-info.d.ts +6 -6
  46. package/dist/src/vaults/api/models/protocol.d.ts +4 -4
  47. package/dist/src/vaults/api/models/raw-event-event-data.d.ts +17 -17
  48. package/dist/src/vaults/api/models/raw-event.d.ts +25 -28
  49. package/dist/src/vaults/api/models/raw-event.js +19 -24
  50. package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +8 -8
  51. package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +10 -10
  52. package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +8 -8
  53. package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +8 -8
  54. package/dist/src/vaults/api/models/reported-apy.d.ts +2 -2
  55. package/dist/src/vaults/api/models/request-processed-event.d.ts +10 -10
  56. package/dist/src/vaults/api/models/request-redeemed-event.d.ts +9 -9
  57. package/dist/src/vaults/api/models/reward-token.d.ts +5 -5
  58. package/dist/src/vaults/api/models/reward.d.ts +4 -4
  59. package/dist/src/vaults/api/models/share-price-history.d.ts +2 -2
  60. package/dist/src/vaults/api/models/strategy.d.ts +7 -7
  61. package/dist/src/vaults/api/models/sub-account.d.ts +3 -3
  62. package/dist/src/vaults/api/models/supplied.d.ts +5 -5
  63. package/dist/src/vaults/api/models/tvl-history.d.ts +2 -2
  64. package/dist/src/vaults/api/models/ultra-coin-info.d.ts +6 -6
  65. package/dist/src/vaults/api/models/update-vault-strategies.d.ts +6 -6
  66. package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +4 -4
  67. package/dist/src/vaults/api/models/vault-created-event.d.ts +7 -7
  68. package/dist/src/vaults/api/models/vault-deposit-event.d.ts +9 -9
  69. package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +7 -7
  70. package/dist/src/vaults/api/models/vault-detail.d.ts +37 -40
  71. package/dist/src/vaults/api/models/vault-detail.js +6 -11
  72. package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +4 -4
  73. package/dist/src/vaults/api/models/vault-info.d.ts +11 -11
  74. package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +4 -4
  75. package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +4 -4
  76. package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +3 -3
  77. package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +5 -5
  78. package/dist/src/vaults/api/models/vault-protocol.d.ts +4 -4
  79. package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +4 -4
  80. package/dist/src/vaults/api/models/vault-slice.d.ts +5 -5
  81. package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +6 -6
  82. package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +7 -7
  83. package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +10 -4
  84. package/package.json +1 -1
@@ -9,5 +9,5 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export * from './apis/accounts-api';
13
- export * from './apis/vaults-api';
12
+ export * from "./apis/accounts-api";
13
+ export * from "./apis/vaults-api";
@@ -9,14 +9,16 @@
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 { type RequestArgs, BaseAPI } from '../base';
15
- import type { AccountTransaction } from '../models';
16
- import type { AccountWithdrawalRequest } from '../models';
17
- import type { Exposure } from '../models';
18
- import type { PositionValue } from '../models';
19
- import type { YieldAggregateValue } 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 { AccountTransaction } from "../models";
16
+ import type { AccountWithdrawalRequest } from "../models";
17
+ import type { Exposure } from "../models";
18
+ import type { PositionHistory } from "../models";
19
+ import type { PositionHistoryInterval } from "../models";
20
+ import type { PositionValue } from "../models";
21
+ import type { YieldAggregateValue } from "../models";
20
22
  /**
21
23
  * AccountsApi - axios parameter creator
22
24
  * @export
@@ -44,6 +46,16 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
44
46
  * @throws {RequiredError}
45
47
  */
46
48
  getAccountHistory: (accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
49
+ /**
50
+ *
51
+ * @summary Get the positions history of the account
52
+ * @param {string} accountAddress The address of the account
53
+ * @param {number} [limit] The limit of the rows
54
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ getAccountPositionsHistory: (accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
59
  /**
48
60
  *
49
61
  * @summary Get the positions value of the account
@@ -75,6 +87,17 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
75
87
  * @throws {RequiredError}
76
88
  */
77
89
  getAccountYieldValue: (accountAddress: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
90
+ /**
91
+ *
92
+ * @summary Get the positions history of the account for a given vault
93
+ * @param {string} vaultId The id of the vault
94
+ * @param {string} [accountAddress] The address of the account
95
+ * @param {number} [limit] The limit of the rows
96
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ getVaultAccountPositionsHistory: (vaultId: string, accountAddress?: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
78
101
  };
79
102
  /**
80
103
  * AccountsApi - functional programming interface
@@ -103,6 +126,16 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
103
126
  * @throws {RequiredError}
104
127
  */
105
128
  getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountTransaction>>>;
129
+ /**
130
+ *
131
+ * @summary Get the positions history of the account
132
+ * @param {string} accountAddress The address of the account
133
+ * @param {number} [limit] The limit of the rows
134
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ getAccountPositionsHistory(accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PositionHistory>>>;
106
139
  /**
107
140
  *
108
141
  * @summary Get the positions value of the account
@@ -134,6 +167,17 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
134
167
  * @throws {RequiredError}
135
168
  */
136
169
  getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<YieldAggregateValue>>;
170
+ /**
171
+ *
172
+ * @summary Get the positions history of the account for a given vault
173
+ * @param {string} vaultId The id of the vault
174
+ * @param {string} [accountAddress] The address of the account
175
+ * @param {number} [limit] The limit of the rows
176
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ getVaultAccountPositionsHistory(vaultId: string, accountAddress?: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PositionHistory>>>;
137
181
  };
138
182
  /**
139
183
  * AccountsApi - factory interface
@@ -164,66 +208,14 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
164
208
  getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountTransaction>>;
165
209
  /**
166
210
  *
167
- * @summary Get the positions value of the account
211
+ * @summary Get the positions history of the account
168
212
  * @param {string} accountAddress The address of the account
169
- * @param {string} [vaultId] The id of the vault
213
+ * @param {number} [limit] The limit of the rows
214
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
170
215
  * @param {*} [options] Override http request option.
171
216
  * @throws {RequiredError}
172
217
  */
173
- getAccountPositionsValue(accountAddress: string, vaultId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PositionValue>>;
174
- /**
175
- *
176
- * @summary Get withdrawal requests of the account
177
- * @param {string} accountAddress The address of the account
178
- * @param {number} startTimeInMs The start time of the events
179
- * @param {number} [endTimeInMs] The end time of the events
180
- * @param {number} [limit] The limit of the events
181
- * @param {number} [page] Use when provided time range and limit exceed max page size
182
- * @param {string} [vaultId] The id of the vault
183
- * @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
184
- * @param {*} [options] Override http request option.
185
- * @throws {RequiredError}
186
- */
187
- getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountWithdrawalRequest>>;
188
- /**
189
- *
190
- * @summary Get the yield value of the account
191
- * @param {string} accountAddress The address of the account
192
- * @param {*} [options] Override http request option.
193
- * @throws {RequiredError}
194
- */
195
- getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<YieldAggregateValue>;
196
- };
197
- /**
198
- * AccountsApi - interface
199
- * @export
200
- * @interface AccountsApi
201
- */
202
- export interface AccountsApiInterface {
203
- /**
204
- *
205
- * @summary Get the exposure of the account
206
- * @param {string} accountAddress The address of the account
207
- * @param {*} [options] Override http request option.
208
- * @throws {RequiredError}
209
- * @memberof AccountsApiInterface
210
- */
211
- getAccountExposure(accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<Exposure>;
212
- /**
213
- *
214
- * @summary Get history of the account
215
- * @param {string} accountAddress The address of the account
216
- * @param {number} startTimeInMs The start time of the events
217
- * @param {number} [endTimeInMs] The end time of the events
218
- * @param {number} [limit] The limit of the events
219
- * @param {number} [page] Use when provided time range and limit exceed max page size
220
- * @param {string} [vaultId] The id of the vault
221
- * @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
222
- * @param {*} [options] Override http request option.
223
- * @throws {RequiredError}
224
- * @memberof AccountsApiInterface
225
- */
226
- getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountTransaction>>;
218
+ getAccountPositionsHistory(accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PositionHistory>>;
227
219
  /**
228
220
  *
229
221
  * @summary Get the positions value of the account
@@ -231,7 +223,6 @@ export interface AccountsApiInterface {
231
223
  * @param {string} [vaultId] The id of the vault
232
224
  * @param {*} [options] Override http request option.
233
225
  * @throws {RequiredError}
234
- * @memberof AccountsApiInterface
235
226
  */
236
227
  getAccountPositionsValue(accountAddress: string, vaultId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PositionValue>>;
237
228
  /**
@@ -246,7 +237,6 @@ export interface AccountsApiInterface {
246
237
  * @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
247
238
  * @param {*} [options] Override http request option.
248
239
  * @throws {RequiredError}
249
- * @memberof AccountsApiInterface
250
240
  */
251
241
  getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountWithdrawalRequest>>;
252
242
  /**
@@ -255,17 +245,27 @@ export interface AccountsApiInterface {
255
245
  * @param {string} accountAddress The address of the account
256
246
  * @param {*} [options] Override http request option.
257
247
  * @throws {RequiredError}
258
- * @memberof AccountsApiInterface
259
248
  */
260
249
  getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<YieldAggregateValue>;
261
- }
250
+ /**
251
+ *
252
+ * @summary Get the positions history of the account for a given vault
253
+ * @param {string} vaultId The id of the vault
254
+ * @param {string} [accountAddress] The address of the account
255
+ * @param {number} [limit] The limit of the rows
256
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ getVaultAccountPositionsHistory(vaultId: string, accountAddress?: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PositionHistory>>;
261
+ };
262
262
  /**
263
263
  * AccountsApi - object-oriented interface
264
264
  * @export
265
265
  * @class AccountsApi
266
266
  * @extends {BaseAPI}
267
267
  */
268
- export declare class AccountsApi extends BaseAPI implements AccountsApiInterface {
268
+ export declare class AccountsApi extends BaseAPI {
269
269
  /**
270
270
  *
271
271
  * @summary Get the exposure of the account
@@ -290,6 +290,17 @@ export declare class AccountsApi extends BaseAPI implements AccountsApiInterface
290
290
  * @memberof AccountsApi
291
291
  */
292
292
  getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountTransaction[], any, {}>>;
293
+ /**
294
+ *
295
+ * @summary Get the positions history of the account
296
+ * @param {string} accountAddress The address of the account
297
+ * @param {number} [limit] The limit of the rows
298
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ * @memberof AccountsApi
302
+ */
303
+ getAccountPositionsHistory(accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PositionHistory[], any, {}>>;
293
304
  /**
294
305
  *
295
306
  * @summary Get the positions value of the account
@@ -324,26 +335,38 @@ export declare class AccountsApi extends BaseAPI implements AccountsApiInterface
324
335
  * @memberof AccountsApi
325
336
  */
326
337
  getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<YieldAggregateValue, any, {}>>;
338
+ /**
339
+ *
340
+ * @summary Get the positions history of the account for a given vault
341
+ * @param {string} vaultId The id of the vault
342
+ * @param {string} [accountAddress] The address of the account
343
+ * @param {number} [limit] The limit of the rows
344
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ * @memberof AccountsApi
348
+ */
349
+ getVaultAccountPositionsHistory(vaultId: string, accountAddress?: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PositionHistory[], any, {}>>;
327
350
  }
328
351
  /**
329
- * @export
330
- * @enum {string}
331
- */
332
- export declare enum GetAccountHistoryTypeEnum {
333
- Deposit = "Deposit",
334
- RedeemRequest = "RedeemRequest",
335
- RedeemRequestProcessed = "RedeemRequestProcessed",
336
- RedeemRequestSkipped = "RedeemRequestSkipped",
337
- RedeemRequestCancelled = "RedeemRequestCancelled"
338
- }
352
+ * @export
353
+ */
354
+ export declare const GetAccountHistoryTypeEnum: {
355
+ readonly Deposit: "Deposit";
356
+ readonly RedeemRequest: "RedeemRequest";
357
+ readonly RedeemRequestProcessed: "RedeemRequestProcessed";
358
+ readonly RedeemRequestSkipped: "RedeemRequestSkipped";
359
+ readonly RedeemRequestCancelled: "RedeemRequestCancelled";
360
+ };
361
+ export type GetAccountHistoryTypeEnum = (typeof GetAccountHistoryTypeEnum)[keyof typeof GetAccountHistoryTypeEnum];
339
362
  /**
340
- * @export
341
- * @enum {string}
342
- */
343
- export declare enum GetAccountWithdrawalRequestsStatusEnum {
344
- Pending = "Pending",
345
- PendingCancelling = "PendingCancelling",
346
- Cancelled = "Cancelled",
347
- Skipped = "Skipped",
348
- Processed = "Processed"
349
- }
363
+ * @export
364
+ */
365
+ export declare const GetAccountWithdrawalRequestsStatusEnum: {
366
+ readonly Pending: "Pending";
367
+ readonly PendingCancelling: "PendingCancelling";
368
+ readonly Cancelled: "Cancelled";
369
+ readonly Skipped: "Skipped";
370
+ readonly Processed: "Processed";
371
+ };
372
+ export type GetAccountWithdrawalRequestsStatusEnum = (typeof GetAccountWithdrawalRequestsStatusEnum)[keyof typeof GetAccountWithdrawalRequestsStatusEnum];