@ember-finance/sdk 1.0.25 → 1.0.26

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 (205) hide show
  1. package/dist/src/vaults/api/v2/api.d.ts +13 -0
  2. package/dist/src/vaults/api/v2/api.js +31 -0
  3. package/dist/src/vaults/api/v2/apis/accounts-api.d.ts +351 -0
  4. package/dist/src/vaults/api/v2/apis/accounts-api.js +656 -0
  5. package/dist/src/vaults/api/v2/apis/vaults-api.d.ts +570 -0
  6. package/dist/src/vaults/api/v2/apis/vaults-api.js +1150 -0
  7. package/dist/src/vaults/api/v2/base.d.ts +66 -0
  8. package/dist/src/vaults/api/v2/base.js +66 -0
  9. package/dist/src/vaults/api/v2/common.d.ts +65 -0
  10. package/dist/src/vaults/api/v2/common.js +152 -0
  11. package/dist/src/vaults/api/v2/configuration.d.ts +91 -0
  12. package/dist/src/vaults/api/v2/configuration.js +49 -0
  13. package/dist/src/vaults/api/v2/index.d.ts +14 -0
  14. package/dist/src/vaults/api/v2/index.js +32 -0
  15. package/dist/src/vaults/api/v2/models/account-transaction-transaction-data.d.ts +22 -0
  16. package/dist/src/vaults/api/v2/models/account-transaction-transaction-data.js +15 -0
  17. package/dist/src/vaults/api/v2/models/account-transaction.d.ts +45 -0
  18. package/dist/src/vaults/api/v2/models/account-transaction.js +23 -0
  19. package/dist/src/vaults/api/v2/models/account-vault-position-history.d.ts +89 -0
  20. package/dist/src/vaults/api/v2/models/account-vault-position-history.js +20 -0
  21. package/dist/src/vaults/api/v2/models/account-withdrawal-request.d.ts +107 -0
  22. package/dist/src/vaults/api/v2/models/account-withdrawal-request.js +24 -0
  23. package/dist/src/vaults/api/v2/models/aggregated-account-position-history.d.ts +59 -0
  24. package/dist/src/vaults/api/v2/models/aggregated-account-position-history.js +20 -0
  25. package/dist/src/vaults/api/v2/models/apy-history-response.d.ts +73 -0
  26. package/dist/src/vaults/api/v2/models/apy-history-response.js +15 -0
  27. package/dist/src/vaults/api/v2/models/apy-history.d.ts +42 -0
  28. package/dist/src/vaults/api/v2/models/apy-history.js +15 -0
  29. package/dist/src/vaults/api/v2/models/asset.d.ts +66 -0
  30. package/dist/src/vaults/api/v2/models/asset.js +15 -0
  31. package/dist/src/vaults/api/v2/models/borrowed.d.ts +43 -0
  32. package/dist/src/vaults/api/v2/models/borrowed.js +15 -0
  33. package/dist/src/vaults/api/v2/models/chain-vault-details.d.ts +74 -0
  34. package/dist/src/vaults/api/v2/models/chain-vault-details.js +15 -0
  35. package/dist/src/vaults/api/v2/models/chain.d.ts +60 -0
  36. package/dist/src/vaults/api/v2/models/chain.js +21 -0
  37. package/dist/src/vaults/api/v2/models/coin-price.d.ts +36 -0
  38. package/dist/src/vaults/api/v2/models/coin-price.js +15 -0
  39. package/dist/src/vaults/api/v2/models/deposit-transaction.d.ts +68 -0
  40. package/dist/src/vaults/api/v2/models/deposit-transaction.js +15 -0
  41. package/dist/src/vaults/api/v2/models/ember-position.d.ts +31 -0
  42. package/dist/src/vaults/api/v2/models/ember-position.js +15 -0
  43. package/dist/src/vaults/api/v2/models/evm-contracts.d.ts +61 -0
  44. package/dist/src/vaults/api/v2/models/evm-contracts.js +15 -0
  45. package/dist/src/vaults/api/v2/models/evm-deposit-token.d.ts +66 -0
  46. package/dist/src/vaults/api/v2/models/evm-deposit-token.js +15 -0
  47. package/dist/src/vaults/api/v2/models/evm-price-feed.d.ts +54 -0
  48. package/dist/src/vaults/api/v2/models/evm-price-feed.js +15 -0
  49. package/dist/src/vaults/api/v2/models/evm-protocol-config.d.ts +48 -0
  50. package/dist/src/vaults/api/v2/models/evm-protocol-config.js +15 -0
  51. package/dist/src/vaults/api/v2/models/evm-protocol-info.d.ts +37 -0
  52. package/dist/src/vaults/api/v2/models/evm-protocol-info.js +15 -0
  53. package/dist/src/vaults/api/v2/models/evm-receipt-token.d.ts +72 -0
  54. package/dist/src/vaults/api/v2/models/evm-receipt-token.js +15 -0
  55. package/dist/src/vaults/api/v2/models/evm-vault.d.ts +114 -0
  56. package/dist/src/vaults/api/v2/models/evm-vault.js +15 -0
  57. package/dist/src/vaults/api/v2/models/exposure-coin.d.ts +37 -0
  58. package/dist/src/vaults/api/v2/models/exposure-coin.js +15 -0
  59. package/dist/src/vaults/api/v2/models/exposure-protocol.d.ts +66 -0
  60. package/dist/src/vaults/api/v2/models/exposure-protocol.js +15 -0
  61. package/dist/src/vaults/api/v2/models/exposure.d.ts +38 -0
  62. package/dist/src/vaults/api/v2/models/exposure.js +15 -0
  63. package/dist/src/vaults/api/v2/models/fee.d.ts +37 -0
  64. package/dist/src/vaults/api/v2/models/fee.js +15 -0
  65. package/dist/src/vaults/api/v2/models/fees.d.ts +42 -0
  66. package/dist/src/vaults/api/v2/models/fees.js +15 -0
  67. package/dist/src/vaults/api/v2/models/history-interval.d.ts +23 -0
  68. package/dist/src/vaults/api/v2/models/history-interval.js +27 -0
  69. package/dist/src/vaults/api/v2/models/index.d.ts +94 -0
  70. package/dist/src/vaults/api/v2/models/index.js +110 -0
  71. package/dist/src/vaults/api/v2/models/lp.d.ts +81 -0
  72. package/dist/src/vaults/api/v2/models/lp.js +15 -0
  73. package/dist/src/vaults/api/v2/models/manager.d.ts +42 -0
  74. package/dist/src/vaults/api/v2/models/manager.js +15 -0
  75. package/dist/src/vaults/api/v2/models/min-withdrawal-shares-updated-event.d.ts +42 -0
  76. package/dist/src/vaults/api/v2/models/min-withdrawal-shares-updated-event.js +15 -0
  77. package/dist/src/vaults/api/v2/models/perps.d.ts +31 -0
  78. package/dist/src/vaults/api/v2/models/perps.js +15 -0
  79. package/dist/src/vaults/api/v2/models/pnl-by-chain.d.ts +48 -0
  80. package/dist/src/vaults/api/v2/models/pnl-by-chain.js +15 -0
  81. package/dist/src/vaults/api/v2/models/pnl-history-interval.d.ts +22 -0
  82. package/dist/src/vaults/api/v2/models/pnl-history-interval.js +26 -0
  83. package/dist/src/vaults/api/v2/models/pnl-history.d.ts +48 -0
  84. package/dist/src/vaults/api/v2/models/pnl-history.js +15 -0
  85. package/dist/src/vaults/api/v2/models/poc-report-asset.d.ts +54 -0
  86. package/dist/src/vaults/api/v2/models/poc-report-asset.js +15 -0
  87. package/dist/src/vaults/api/v2/models/poc-report-assets.d.ts +37 -0
  88. package/dist/src/vaults/api/v2/models/poc-report-assets.js +15 -0
  89. package/dist/src/vaults/api/v2/models/poc-report-exchange.d.ts +43 -0
  90. package/dist/src/vaults/api/v2/models/poc-report-exchange.js +15 -0
  91. package/dist/src/vaults/api/v2/models/poc-report-exchanges.d.ts +37 -0
  92. package/dist/src/vaults/api/v2/models/poc-report-exchanges.js +15 -0
  93. package/dist/src/vaults/api/v2/models/poc-report-protocol.d.ts +36 -0
  94. package/dist/src/vaults/api/v2/models/poc-report-protocol.js +15 -0
  95. package/dist/src/vaults/api/v2/models/poc-report-token.d.ts +36 -0
  96. package/dist/src/vaults/api/v2/models/poc-report-token.js +15 -0
  97. package/dist/src/vaults/api/v2/models/poc-report-wallet.d.ts +80 -0
  98. package/dist/src/vaults/api/v2/models/poc-report-wallet.js +15 -0
  99. package/dist/src/vaults/api/v2/models/poc-report-wallets.d.ts +37 -0
  100. package/dist/src/vaults/api/v2/models/poc-report-wallets.js +15 -0
  101. package/dist/src/vaults/api/v2/models/position-history-interval.d.ts +22 -0
  102. package/dist/src/vaults/api/v2/models/position-history-interval.js +26 -0
  103. package/dist/src/vaults/api/v2/models/position-value.d.ts +89 -0
  104. package/dist/src/vaults/api/v2/models/position-value.js +20 -0
  105. package/dist/src/vaults/api/v2/models/position.d.ts +42 -0
  106. package/dist/src/vaults/api/v2/models/position.js +15 -0
  107. package/dist/src/vaults/api/v2/models/process-requests-summary-event.d.ts +78 -0
  108. package/dist/src/vaults/api/v2/models/process-requests-summary-event.js +15 -0
  109. package/dist/src/vaults/api/v2/models/proof-of-capital-report.d.ts +69 -0
  110. package/dist/src/vaults/api/v2/models/proof-of-capital-report.js +15 -0
  111. package/dist/src/vaults/api/v2/models/protocol-fee-collected-event.d.ts +60 -0
  112. package/dist/src/vaults/api/v2/models/protocol-fee-collected-event.js +15 -0
  113. package/dist/src/vaults/api/v2/models/protocol-pnl-history.d.ts +36 -0
  114. package/dist/src/vaults/api/v2/models/protocol-pnl-history.js +15 -0
  115. package/dist/src/vaults/api/v2/models/protocol-tvl-history.d.ts +30 -0
  116. package/dist/src/vaults/api/v2/models/protocol-tvl-history.js +15 -0
  117. package/dist/src/vaults/api/v2/models/protocol.d.ts +42 -0
  118. package/dist/src/vaults/api/v2/models/protocol.js +15 -0
  119. package/dist/src/vaults/api/v2/models/raw-event-event-data.d.ts +34 -0
  120. package/dist/src/vaults/api/v2/models/raw-event-event-data.js +15 -0
  121. package/dist/src/vaults/api/v2/models/raw-event.d.ts +63 -0
  122. package/dist/src/vaults/api/v2/models/raw-event.js +35 -0
  123. package/dist/src/vaults/api/v2/models/redeem-request-cancelled-transaction.d.ts +56 -0
  124. package/dist/src/vaults/api/v2/models/redeem-request-cancelled-transaction.js +15 -0
  125. package/dist/src/vaults/api/v2/models/redeem-request-processed-transaction.d.ts +68 -0
  126. package/dist/src/vaults/api/v2/models/redeem-request-processed-transaction.js +15 -0
  127. package/dist/src/vaults/api/v2/models/redeem-request-skipped-transaction.d.ts +56 -0
  128. package/dist/src/vaults/api/v2/models/redeem-request-skipped-transaction.js +15 -0
  129. package/dist/src/vaults/api/v2/models/redeem-request-transaction.d.ts +56 -0
  130. package/dist/src/vaults/api/v2/models/redeem-request-transaction.js +15 -0
  131. package/dist/src/vaults/api/v2/models/reported-apy.d.ts +42 -0
  132. package/dist/src/vaults/api/v2/models/reported-apy.js +15 -0
  133. package/dist/src/vaults/api/v2/models/request-processed-event.d.ts +78 -0
  134. package/dist/src/vaults/api/v2/models/request-processed-event.js +15 -0
  135. package/dist/src/vaults/api/v2/models/request-redeemed-event.d.ts +72 -0
  136. package/dist/src/vaults/api/v2/models/request-redeemed-event.js +15 -0
  137. package/dist/src/vaults/api/v2/models/reward-token.d.ts +48 -0
  138. package/dist/src/vaults/api/v2/models/reward-token.js +15 -0
  139. package/dist/src/vaults/api/v2/models/reward.d.ts +37 -0
  140. package/dist/src/vaults/api/v2/models/reward.js +15 -0
  141. package/dist/src/vaults/api/v2/models/share-price-history.d.ts +30 -0
  142. package/dist/src/vaults/api/v2/models/share-price-history.js +15 -0
  143. package/dist/src/vaults/api/v2/models/strategy-account.d.ts +49 -0
  144. package/dist/src/vaults/api/v2/models/strategy-account.js +15 -0
  145. package/dist/src/vaults/api/v2/models/strategy.d.ts +60 -0
  146. package/dist/src/vaults/api/v2/models/strategy.js +15 -0
  147. package/dist/src/vaults/api/v2/models/sub-account.d.ts +31 -0
  148. package/dist/src/vaults/api/v2/models/sub-account.js +15 -0
  149. package/dist/src/vaults/api/v2/models/sui-protocol-info.d.ts +41 -0
  150. package/dist/src/vaults/api/v2/models/sui-protocol-info.js +15 -0
  151. package/dist/src/vaults/api/v2/models/supplied.d.ts +43 -0
  152. package/dist/src/vaults/api/v2/models/supplied.js +15 -0
  153. package/dist/src/vaults/api/v2/models/tag.d.ts +60 -0
  154. package/dist/src/vaults/api/v2/models/tag.js +15 -0
  155. package/dist/src/vaults/api/v2/models/tvl-by-chain.d.ts +36 -0
  156. package/dist/src/vaults/api/v2/models/tvl-by-chain.js +15 -0
  157. package/dist/src/vaults/api/v2/models/tvl-history.d.ts +43 -0
  158. package/dist/src/vaults/api/v2/models/tvl-history.js +15 -0
  159. package/dist/src/vaults/api/v2/models/ultra-coin-info.d.ts +54 -0
  160. package/dist/src/vaults/api/v2/models/ultra-coin-info.js +15 -0
  161. package/dist/src/vaults/api/v2/models/update-vault-strategies.d.ts +61 -0
  162. package/dist/src/vaults/api/v2/models/update-vault-strategies.js +15 -0
  163. package/dist/src/vaults/api/v2/models/vault-admin-changed-event.d.ts +42 -0
  164. package/dist/src/vaults/api/v2/models/vault-admin-changed-event.js +15 -0
  165. package/dist/src/vaults/api/v2/models/vault-created-event.d.ts +60 -0
  166. package/dist/src/vaults/api/v2/models/vault-created-event.js +15 -0
  167. package/dist/src/vaults/api/v2/models/vault-deposit-event.d.ts +72 -0
  168. package/dist/src/vaults/api/v2/models/vault-deposit-event.js +15 -0
  169. package/dist/src/vaults/api/v2/models/vault-deposit-without-minting-shares-event.d.ts +60 -0
  170. package/dist/src/vaults/api/v2/models/vault-deposit-without-minting-shares-event.js +15 -0
  171. package/dist/src/vaults/api/v2/models/vault-detail.d.ts +196 -0
  172. package/dist/src/vaults/api/v2/models/vault-detail.js +22 -0
  173. package/dist/src/vaults/api/v2/models/vault-fee-percentage-updated-event.d.ts +42 -0
  174. package/dist/src/vaults/api/v2/models/vault-fee-percentage-updated-event.js +15 -0
  175. package/dist/src/vaults/api/v2/models/vault-info.d.ts +84 -0
  176. package/dist/src/vaults/api/v2/models/vault-info.js +15 -0
  177. package/dist/src/vaults/api/v2/models/vault-max-tvl-updated-event.d.ts +42 -0
  178. package/dist/src/vaults/api/v2/models/vault-max-tvl-updated-event.js +15 -0
  179. package/dist/src/vaults/api/v2/models/vault-operator-changed-event.d.ts +42 -0
  180. package/dist/src/vaults/api/v2/models/vault-operator-changed-event.js +15 -0
  181. package/dist/src/vaults/api/v2/models/vault-paused-status-updated-event.d.ts +36 -0
  182. package/dist/src/vaults/api/v2/models/vault-paused-status-updated-event.js +15 -0
  183. package/dist/src/vaults/api/v2/models/vault-platform-fee-charged-event.d.ts +48 -0
  184. package/dist/src/vaults/api/v2/models/vault-platform-fee-charged-event.js +15 -0
  185. package/dist/src/vaults/api/v2/models/vault-protocol.d.ts +42 -0
  186. package/dist/src/vaults/api/v2/models/vault-protocol.js +15 -0
  187. package/dist/src/vaults/api/v2/models/vault-rate-updated-event.d.ts +42 -0
  188. package/dist/src/vaults/api/v2/models/vault-rate-updated-event.js +15 -0
  189. package/dist/src/vaults/api/v2/models/vault-slice.d.ts +48 -0
  190. package/dist/src/vaults/api/v2/models/vault-slice.js +15 -0
  191. package/dist/src/vaults/api/v2/models/vault-sub-account-updated-event.d.ts +54 -0
  192. package/dist/src/vaults/api/v2/models/vault-sub-account-updated-event.js +15 -0
  193. package/dist/src/vaults/api/v2/models/vault-tag.d.ts +48 -0
  194. package/dist/src/vaults/api/v2/models/vault-tag.js +15 -0
  195. package/dist/src/vaults/api/v2/models/vault-withdrawal-without-redeeming-shares-event.d.ts +60 -0
  196. package/dist/src/vaults/api/v2/models/vault-withdrawal-without-redeeming-shares-event.js +15 -0
  197. package/dist/src/vaults/api/v2/models/vaults-deployment-config-config.d.ts +19 -0
  198. package/dist/src/vaults/api/v2/models/vaults-deployment-config-config.js +15 -0
  199. package/dist/src/vaults/api/v2/models/vaults-deployment-config.d.ts +42 -0
  200. package/dist/src/vaults/api/v2/models/vaults-deployment-config.js +20 -0
  201. package/dist/src/vaults/api/v2/models/vaults-stats.d.ts +42 -0
  202. package/dist/src/vaults/api/v2/models/vaults-stats.js +15 -0
  203. package/dist/src/vaults/api/v2/models/yield-aggregate-value.d.ts +48 -0
  204. package/dist/src/vaults/api/v2/models/yield-aggregate-value.js +15 -0
  205. package/package.json +3 -2
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from "./configuration";
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from "axios";
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: RawAxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
21
+ exports.BASE_PATH = "https://vaults.api.sui-staging.bluefin.io".replace(/\/+$/, "");
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.COLLECTION_FORMATS = {
27
+ csv: ",",
28
+ ssv: " ",
29
+ tsv: "\t",
30
+ pipes: "|"
31
+ };
32
+ /**
33
+ *
34
+ * @export
35
+ * @class BaseAPI
36
+ */
37
+ class BaseAPI {
38
+ constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
39
+ this.basePath = basePath;
40
+ this.axios = axios;
41
+ if (configuration) {
42
+ this.configuration = configuration;
43
+ this.basePath = configuration.basePath ?? basePath;
44
+ }
45
+ }
46
+ }
47
+ exports.BaseAPI = BaseAPI;
48
+ /**
49
+ *
50
+ * @export
51
+ * @class RequiredError
52
+ * @extends {Error}
53
+ */
54
+ class RequiredError extends Error {
55
+ constructor(field, msg) {
56
+ super(msg);
57
+ this.field = field;
58
+ this.name = "RequiredError";
59
+ }
60
+ }
61
+ exports.RequiredError = RequiredError;
62
+ /**
63
+ *
64
+ * @export
65
+ */
66
+ exports.operationServerMap = {};
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from "./configuration";
13
+ import type { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from "axios";
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const DUMMY_BASE_URL = "https://example.com";
20
+ /**
21
+ *
22
+ * @throws {RequiredError}
23
+ * @export
24
+ */
25
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
+ /**
27
+ *
28
+ * @export
29
+ */
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
+ /**
32
+ *
33
+ * @export
34
+ */
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
+ /**
37
+ *
38
+ * @export
39
+ */
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
+ /**
42
+ *
43
+ * @export
44
+ */
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
+ /**
47
+ *
48
+ * @export
49
+ */
50
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
+ /**
52
+ *
53
+ * @export
54
+ */
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export declare const toPathString: (url: URL) => string;
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
17
+ const base_1 = require("./base");
18
+ /**
19
+ *
20
+ * @export
21
+ */
22
+ exports.DUMMY_BASE_URL = "https://example.com";
23
+ /**
24
+ *
25
+ * @throws {RequiredError}
26
+ * @export
27
+ */
28
+ const assertParamExists = function (functionName, paramName, paramValue) {
29
+ if (paramValue === null || paramValue === undefined) {
30
+ throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
31
+ }
32
+ };
33
+ exports.assertParamExists = assertParamExists;
34
+ /**
35
+ *
36
+ * @export
37
+ */
38
+ const setApiKeyToObject = async function (object, keyParamName, configuration) {
39
+ if (configuration && configuration.apiKey) {
40
+ const localVarApiKeyValue = typeof configuration.apiKey === "function"
41
+ ? await configuration.apiKey(keyParamName)
42
+ : await configuration.apiKey;
43
+ object[keyParamName] = localVarApiKeyValue;
44
+ }
45
+ };
46
+ exports.setApiKeyToObject = setApiKeyToObject;
47
+ /**
48
+ *
49
+ * @export
50
+ */
51
+ const setBasicAuthToObject = function (object, configuration) {
52
+ if (configuration && (configuration.username || configuration.password)) {
53
+ object["auth"] = {
54
+ username: configuration.username,
55
+ password: configuration.password
56
+ };
57
+ }
58
+ };
59
+ exports.setBasicAuthToObject = setBasicAuthToObject;
60
+ /**
61
+ *
62
+ * @export
63
+ */
64
+ const setBearerAuthToObject = async function (object, configuration) {
65
+ if (configuration && configuration.accessToken) {
66
+ const accessToken = typeof configuration.accessToken === "function"
67
+ ? await configuration.accessToken()
68
+ : await configuration.accessToken;
69
+ object["Authorization"] = "Bearer " + accessToken;
70
+ }
71
+ };
72
+ exports.setBearerAuthToObject = setBearerAuthToObject;
73
+ /**
74
+ *
75
+ * @export
76
+ */
77
+ const setOAuthToObject = async function (object, name, scopes, configuration) {
78
+ if (configuration && configuration.accessToken) {
79
+ const localVarAccessTokenValue = typeof configuration.accessToken === "function"
80
+ ? await configuration.accessToken(name, scopes)
81
+ : await configuration.accessToken;
82
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
83
+ }
84
+ };
85
+ exports.setOAuthToObject = setOAuthToObject;
86
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
87
+ if (parameter == null)
88
+ return;
89
+ if (typeof parameter === "object") {
90
+ if (Array.isArray(parameter)) {
91
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
92
+ }
93
+ else {
94
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
95
+ }
96
+ }
97
+ else {
98
+ if (urlSearchParams.has(key)) {
99
+ urlSearchParams.append(key, parameter);
100
+ }
101
+ else {
102
+ urlSearchParams.set(key, parameter);
103
+ }
104
+ }
105
+ }
106
+ /**
107
+ *
108
+ * @export
109
+ */
110
+ const setSearchParams = function (url, ...objects) {
111
+ const searchParams = new URLSearchParams(url.search);
112
+ setFlattenedQueryParams(searchParams, objects);
113
+ url.search = searchParams.toString();
114
+ };
115
+ exports.setSearchParams = setSearchParams;
116
+ /**
117
+ *
118
+ * @export
119
+ */
120
+ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
121
+ const nonString = typeof value !== "string";
122
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
123
+ ? configuration.isJsonMime(requestOptions.headers["Content-Type"])
124
+ : nonString;
125
+ return needsSerialization
126
+ ? JSON.stringify(value !== undefined ? value : {})
127
+ : value || "";
128
+ };
129
+ exports.serializeDataIfNeeded = serializeDataIfNeeded;
130
+ /**
131
+ *
132
+ * @export
133
+ */
134
+ const toPathString = function (url) {
135
+ return url.pathname + url.search + url.hash;
136
+ };
137
+ exports.toPathString = toPathString;
138
+ /**
139
+ *
140
+ * @export
141
+ */
142
+ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
143
+ return (axios = globalAxios, basePath = BASE_PATH) => {
144
+ const axiosRequestArgs = {
145
+ ...axiosArgs.options,
146
+ url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) +
147
+ axiosArgs.url
148
+ };
149
+ return axios.request(axiosRequestArgs);
150
+ };
151
+ };
152
+ exports.createRequestFunction = createRequestFunction;
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface ConfigurationParameters {
13
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
+ username?: string;
15
+ password?: string;
16
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
+ basePath?: string;
18
+ serverIndex?: number;
19
+ baseOptions?: any;
20
+ formDataCtor?: new () => any;
21
+ }
22
+ export declare class Configuration {
23
+ /**
24
+ * parameter for apiKey security
25
+ * @param name security name
26
+ * @memberof Configuration
27
+ */
28
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
+ /**
30
+ * parameter for basic security
31
+ *
32
+ * @type {string}
33
+ * @memberof Configuration
34
+ */
35
+ username?: string;
36
+ /**
37
+ * parameter for basic security
38
+ *
39
+ * @type {string}
40
+ * @memberof Configuration
41
+ */
42
+ password?: string;
43
+ /**
44
+ * parameter for oauth2 security
45
+ * @param name security name
46
+ * @param scopes oauth2 scope
47
+ * @memberof Configuration
48
+ */
49
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
+ /**
51
+ * override base path
52
+ *
53
+ * @type {string}
54
+ * @memberof Configuration
55
+ */
56
+ basePath?: string;
57
+ /**
58
+ * override server index
59
+ *
60
+ * @type {number}
61
+ * @memberof Configuration
62
+ */
63
+ serverIndex?: number;
64
+ /**
65
+ * base options for axios calls
66
+ *
67
+ * @type {any}
68
+ * @memberof Configuration
69
+ */
70
+ baseOptions?: any;
71
+ /**
72
+ * The FormData constructor that will be used to create multipart form data
73
+ * requests. You can inject this here so that execution environments that
74
+ * do not support the FormData class can still run the generated client.
75
+ *
76
+ * @type {new () => FormData}
77
+ */
78
+ formDataCtor?: new () => any;
79
+ constructor(param?: ConfigurationParameters);
80
+ /**
81
+ * Check if the given MIME is a JSON MIME.
82
+ * JSON MIME examples:
83
+ * application/json
84
+ * application/json; charset=UTF8
85
+ * APPLICATION/JSON
86
+ * application/vnd.company+json
87
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
88
+ * @return True if the given MIME is JSON, false otherwise.
89
+ */
90
+ isJsonMime(mime: string): boolean;
91
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Configuration = void 0;
17
+ class Configuration {
18
+ constructor(param = {}) {
19
+ this.apiKey = param.apiKey;
20
+ this.username = param.username;
21
+ this.password = param.password;
22
+ this.accessToken = param.accessToken;
23
+ this.basePath = param.basePath;
24
+ this.serverIndex = param.serverIndex;
25
+ this.baseOptions = {
26
+ ...param.baseOptions,
27
+ headers: {
28
+ ...param.baseOptions?.headers
29
+ }
30
+ };
31
+ this.formDataCtor = param.formDataCtor;
32
+ }
33
+ /**
34
+ * Check if the given MIME is a JSON MIME.
35
+ * JSON MIME examples:
36
+ * application/json
37
+ * application/json; charset=UTF8
38
+ * APPLICATION/JSON
39
+ * application/vnd.company+json
40
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
41
+ * @return True if the given MIME is JSON, false otherwise.
42
+ */
43
+ isJsonMime(mime) {
44
+ const jsonMime = new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$", "i");
45
+ return (mime !== null &&
46
+ (jsonMime.test(mime) || mime.toLowerCase() === "application/json-patch+json"));
47
+ }
48
+ }
49
+ exports.Configuration = Configuration;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export * from "./api";
13
+ export * from "./configuration";
14
+ export * from "./models";
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api"), exports);
31
+ __exportStar(require("./configuration"), exports);
32
+ __exportStar(require("./models"), exports);
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { DepositTransaction } from "./deposit-transaction";
13
+ import type { RedeemRequestCancelledTransaction } from "./redeem-request-cancelled-transaction";
14
+ import type { RedeemRequestProcessedTransaction } from "./redeem-request-processed-transaction";
15
+ import type { RedeemRequestSkippedTransaction } from "./redeem-request-skipped-transaction";
16
+ import type { RedeemRequestTransaction } from "./redeem-request-transaction";
17
+ /**
18
+ * @type AccountTransactionTransactionData
19
+ * The data of the transaction
20
+ * @export
21
+ */
22
+ export type AccountTransactionTransactionData = DepositTransaction | RedeemRequestCancelledTransaction | RedeemRequestProcessedTransaction | RedeemRequestSkippedTransaction | RedeemRequestTransaction;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AccountTransactionTransactionData } from "./account-transaction-transaction-data";
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AccountTransaction
17
+ */
18
+ export interface AccountTransaction {
19
+ /**
20
+ * The type of the transaction
21
+ * @type {string}
22
+ * @memberof AccountTransaction
23
+ */
24
+ transactionType: AccountTransactionTransactionTypeEnum;
25
+ /**
26
+ *
27
+ * @type {AccountTransactionTransactionData}
28
+ * @memberof AccountTransaction
29
+ */
30
+ transactionData?: AccountTransactionTransactionData;
31
+ /**
32
+ * chain identifier
33
+ * @type {string}
34
+ * @memberof AccountTransaction
35
+ */
36
+ chain: string;
37
+ }
38
+ export declare const AccountTransactionTransactionTypeEnum: {
39
+ readonly Deposit: "Deposit";
40
+ readonly RedeemRequest: "RedeemRequest";
41
+ readonly RedeemRequestProcessed: "RedeemRequestProcessed";
42
+ readonly RedeemRequestSkipped: "RedeemRequestSkipped";
43
+ readonly RedeemRequestCancelled: "RedeemRequestCancelled";
44
+ };
45
+ export type AccountTransactionTransactionTypeEnum = (typeof AccountTransactionTransactionTypeEnum)[keyof typeof AccountTransactionTransactionTypeEnum];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AccountTransactionTransactionTypeEnum = void 0;
17
+ exports.AccountTransactionTransactionTypeEnum = {
18
+ Deposit: "Deposit",
19
+ RedeemRequest: "RedeemRequest",
20
+ RedeemRequestProcessed: "RedeemRequestProcessed",
21
+ RedeemRequestSkipped: "RedeemRequestSkipped",
22
+ RedeemRequestCancelled: "RedeemRequestCancelled"
23
+ };