@openweb3-io/wallet 0.1.1 → 0.1.3

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 (274) hide show
  1. package/README.md +2 -2
  2. package/dist/index.d.ts +2 -20
  3. package/dist/index.js +88 -179
  4. package/dist/index.js.map +1 -1
  5. package/dist/openapi/apis/AddressesApi.js +170 -203
  6. package/dist/openapi/apis/AddressesApi.js.map +1 -1
  7. package/dist/openapi/apis/CurrenciesApi.js +94 -119
  8. package/dist/openapi/apis/CurrenciesApi.js.map +1 -1
  9. package/dist/openapi/apis/ExchangesApi.js +278 -311
  10. package/dist/openapi/apis/ExchangesApi.js.map +1 -1
  11. package/dist/openapi/apis/NetworksApi.js +48 -65
  12. package/dist/openapi/apis/NetworksApi.js.map +1 -1
  13. package/dist/openapi/apis/RatesApi.js +105 -130
  14. package/dist/openapi/apis/RatesApi.js.map +1 -1
  15. package/dist/openapi/apis/TransactionsApi.js +256 -297
  16. package/dist/openapi/apis/TransactionsApi.js.map +1 -1
  17. package/dist/openapi/apis/WalletsApi.js +243 -292
  18. package/dist/openapi/apis/WalletsApi.js.map +1 -1
  19. package/dist/openapi/apis/WebhookEndpointsApi.js +190 -239
  20. package/dist/openapi/apis/WebhookEndpointsApi.js.map +1 -1
  21. package/dist/openapi/apis/WebhookEventTypesApi.js +31 -48
  22. package/dist/openapi/apis/WebhookEventTypesApi.js.map +1 -1
  23. package/dist/openapi/apis/WebhookEventsApi.js +83 -108
  24. package/dist/openapi/apis/WebhookEventsApi.js.map +1 -1
  25. package/dist/openapi/auth/auth.d.ts +0 -8
  26. package/dist/openapi/auth/auth.js +1 -16
  27. package/dist/openapi/auth/auth.js.map +1 -1
  28. package/dist/openapi/dist/apis/AddressesApi.d.ts +12 -0
  29. package/dist/openapi/dist/apis/AddressesApi.js +222 -0
  30. package/dist/openapi/dist/apis/AddressesApi.js.map +1 -0
  31. package/dist/openapi/dist/apis/CurrenciesApi.d.ts +10 -0
  32. package/dist/openapi/dist/apis/CurrenciesApi.js +140 -0
  33. package/dist/openapi/dist/apis/CurrenciesApi.js.map +1 -0
  34. package/dist/openapi/dist/apis/ExchangesApi.d.ts +18 -0
  35. package/dist/openapi/dist/apis/ExchangesApi.js +348 -0
  36. package/dist/openapi/dist/apis/ExchangesApi.js.map +1 -0
  37. package/dist/openapi/dist/apis/NetworksApi.d.ts +8 -0
  38. package/dist/openapi/dist/apis/NetworksApi.js +88 -0
  39. package/dist/openapi/dist/apis/NetworksApi.js.map +1 -0
  40. package/dist/openapi/dist/apis/RatesApi.d.ts +10 -0
  41. package/dist/openapi/dist/apis/RatesApi.js +151 -0
  42. package/dist/openapi/dist/apis/RatesApi.js.map +1 -0
  43. package/dist/openapi/dist/apis/TransactionsApi.d.ts +16 -0
  44. package/dist/openapi/dist/apis/TransactionsApi.js +320 -0
  45. package/dist/openapi/dist/apis/TransactionsApi.js.map +1 -0
  46. package/dist/openapi/dist/apis/WalletsApi.d.ts +16 -0
  47. package/dist/openapi/dist/apis/WalletsApi.js +307 -0
  48. package/dist/openapi/dist/apis/WalletsApi.js.map +1 -0
  49. package/dist/openapi/dist/apis/WebhookEndpointsApi.d.ts +16 -0
  50. package/dist/openapi/dist/apis/WebhookEndpointsApi.js +254 -0
  51. package/dist/openapi/dist/apis/WebhookEndpointsApi.js.map +1 -0
  52. package/dist/openapi/dist/apis/WebhookEventTypesApi.d.ts +8 -0
  53. package/dist/openapi/dist/apis/WebhookEventTypesApi.js +71 -0
  54. package/dist/openapi/dist/apis/WebhookEventTypesApi.js.map +1 -0
  55. package/dist/openapi/dist/apis/WebhookEventsApi.d.ts +10 -0
  56. package/dist/openapi/dist/apis/WebhookEventsApi.js +129 -0
  57. package/dist/openapi/dist/apis/WebhookEventsApi.js.map +1 -0
  58. package/dist/openapi/dist/apis/baseapi.d.ts +14 -0
  59. package/dist/openapi/dist/apis/baseapi.js +25 -0
  60. package/dist/openapi/dist/apis/baseapi.js.map +1 -0
  61. package/dist/openapi/dist/apis/exception.d.ts +5 -0
  62. package/dist/openapi/dist/apis/exception.js +12 -0
  63. package/dist/openapi/dist/apis/exception.js.map +1 -0
  64. package/dist/openapi/dist/auth/auth.d.ts +9 -0
  65. package/dist/openapi/dist/auth/auth.js +27 -0
  66. package/dist/openapi/dist/auth/auth.js.map +1 -0
  67. package/dist/openapi/dist/configuration.d.ts +6 -0
  68. package/dist/openapi/dist/configuration.js +21 -0
  69. package/dist/openapi/dist/configuration.js.map +1 -0
  70. package/dist/openapi/dist/http/http.d.ts +40 -0
  71. package/dist/openapi/dist/http/http.js +171 -0
  72. package/dist/openapi/dist/http/http.js.map +1 -0
  73. package/dist/openapi/dist/http/isomorphic-fetch.d.ts +3 -0
  74. package/dist/openapi/dist/http/isomorphic-fetch.js +31 -0
  75. package/dist/openapi/dist/http/isomorphic-fetch.js.map +1 -0
  76. package/dist/openapi/dist/index.d.ts +7 -0
  77. package/dist/openapi/dist/index.js +31 -0
  78. package/dist/openapi/dist/index.js.map +1 -0
  79. package/dist/openapi/dist/middleware.d.ts +6 -0
  80. package/dist/openapi/dist/middleware.js +17 -0
  81. package/dist/openapi/dist/middleware.js.map +1 -0
  82. package/dist/openapi/dist/models/Account.d.ts +17 -0
  83. package/dist/openapi/dist/models/Account.js +51 -0
  84. package/dist/openapi/dist/models/Account.js.map +1 -0
  85. package/dist/openapi/dist/models/Address.d.ts +17 -0
  86. package/dist/openapi/dist/models/Address.js +33 -0
  87. package/dist/openapi/dist/models/Address.js.map +1 -0
  88. package/dist/openapi/dist/models/ChainNetwork.d.ts +17 -0
  89. package/dist/openapi/dist/models/ChainNetwork.js +63 -0
  90. package/dist/openapi/dist/models/ChainNetwork.js.map +1 -0
  91. package/dist/openapi/dist/models/CreateEndpoint.d.ts +17 -0
  92. package/dist/openapi/dist/models/CreateEndpoint.js +57 -0
  93. package/dist/openapi/dist/models/CreateEndpoint.js.map +1 -0
  94. package/dist/openapi/dist/models/CreateExchange.d.ts +17 -0
  95. package/dist/openapi/dist/models/CreateExchange.js +45 -0
  96. package/dist/openapi/dist/models/CreateExchange.js.map +1 -0
  97. package/dist/openapi/dist/models/CreateTransferRequest.d.ts +17 -0
  98. package/dist/openapi/dist/models/CreateTransferRequest.js +39 -0
  99. package/dist/openapi/dist/models/CreateTransferRequest.js.map +1 -0
  100. package/dist/openapi/dist/models/CreateTransferResponse.d.ts +17 -0
  101. package/dist/openapi/dist/models/CreateTransferResponse.js +21 -0
  102. package/dist/openapi/dist/models/CreateTransferResponse.js.map +1 -0
  103. package/dist/openapi/dist/models/CreateWalletRequest.d.ts +17 -0
  104. package/dist/openapi/dist/models/CreateWalletRequest.js +27 -0
  105. package/dist/openapi/dist/models/CreateWalletRequest.js.map +1 -0
  106. package/dist/openapi/dist/models/CreateWithdrawReply.d.ts +17 -0
  107. package/dist/openapi/dist/models/CreateWithdrawReply.js +21 -0
  108. package/dist/openapi/dist/models/CreateWithdrawReply.js.map +1 -0
  109. package/dist/openapi/dist/models/CreateWithdrawRequest.d.ts +17 -0
  110. package/dist/openapi/dist/models/CreateWithdrawRequest.js +57 -0
  111. package/dist/openapi/dist/models/CreateWithdrawRequest.js.map +1 -0
  112. package/dist/openapi/dist/models/Currency.d.ts +17 -0
  113. package/dist/openapi/dist/models/Currency.js +135 -0
  114. package/dist/openapi/dist/models/Currency.js.map +1 -0
  115. package/dist/openapi/dist/models/CurrencyNetwork.d.ts +17 -0
  116. package/dist/openapi/dist/models/CurrencyNetwork.js +135 -0
  117. package/dist/openapi/dist/models/CurrencyNetwork.js.map +1 -0
  118. package/dist/openapi/dist/models/CurrencyPair.d.ts +17 -0
  119. package/dist/openapi/dist/models/CurrencyPair.js +27 -0
  120. package/dist/openapi/dist/models/CurrencyPair.js.map +1 -0
  121. package/dist/openapi/dist/models/CursorPageAccount.d.ts +17 -0
  122. package/dist/openapi/dist/models/CursorPageAccount.js +39 -0
  123. package/dist/openapi/dist/models/CursorPageAccount.js.map +1 -0
  124. package/dist/openapi/dist/models/CursorPageAddress.d.ts +17 -0
  125. package/dist/openapi/dist/models/CursorPageAddress.js +39 -0
  126. package/dist/openapi/dist/models/CursorPageAddress.js.map +1 -0
  127. package/dist/openapi/dist/models/CursorPageChainNetwork.d.ts +17 -0
  128. package/dist/openapi/dist/models/CursorPageChainNetwork.js +39 -0
  129. package/dist/openapi/dist/models/CursorPageChainNetwork.js.map +1 -0
  130. package/dist/openapi/dist/models/CursorPageCurrency.d.ts +17 -0
  131. package/dist/openapi/dist/models/CursorPageCurrency.js +39 -0
  132. package/dist/openapi/dist/models/CursorPageCurrency.js.map +1 -0
  133. package/dist/openapi/dist/models/CursorPageEndpoint.d.ts +17 -0
  134. package/dist/openapi/dist/models/CursorPageEndpoint.js +39 -0
  135. package/dist/openapi/dist/models/CursorPageEndpoint.js.map +1 -0
  136. package/dist/openapi/dist/models/CursorPageExchange.d.ts +17 -0
  137. package/dist/openapi/dist/models/CursorPageExchange.js +39 -0
  138. package/dist/openapi/dist/models/CursorPageExchange.js.map +1 -0
  139. package/dist/openapi/dist/models/CursorPageTransaction.d.ts +17 -0
  140. package/dist/openapi/dist/models/CursorPageTransaction.js +39 -0
  141. package/dist/openapi/dist/models/CursorPageTransaction.js.map +1 -0
  142. package/dist/openapi/dist/models/CursorPageWallet.d.ts +17 -0
  143. package/dist/openapi/dist/models/CursorPageWallet.js +39 -0
  144. package/dist/openapi/dist/models/CursorPageWallet.js.map +1 -0
  145. package/dist/openapi/dist/models/CursorPageWebhookEvent.d.ts +17 -0
  146. package/dist/openapi/dist/models/CursorPageWebhookEvent.js +39 -0
  147. package/dist/openapi/dist/models/CursorPageWebhookEvent.js.map +1 -0
  148. package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.d.ts +17 -0
  149. package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.js +21 -0
  150. package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.js.map +1 -0
  151. package/dist/openapi/dist/models/Endpoint.d.ts +17 -0
  152. package/dist/openapi/dist/models/Endpoint.js +69 -0
  153. package/dist/openapi/dist/models/Endpoint.js.map +1 -0
  154. package/dist/openapi/dist/models/EstimateFeeRequest.d.ts +17 -0
  155. package/dist/openapi/dist/models/EstimateFeeRequest.js +45 -0
  156. package/dist/openapi/dist/models/EstimateFeeRequest.js.map +1 -0
  157. package/dist/openapi/dist/models/EstimateFeeResponse.d.ts +17 -0
  158. package/dist/openapi/dist/models/EstimateFeeResponse.js +27 -0
  159. package/dist/openapi/dist/models/EstimateFeeResponse.js.map +1 -0
  160. package/dist/openapi/dist/models/EstimateResponse.d.ts +17 -0
  161. package/dist/openapi/dist/models/EstimateResponse.js +45 -0
  162. package/dist/openapi/dist/models/EstimateResponse.js.map +1 -0
  163. package/dist/openapi/dist/models/EventType.d.ts +17 -0
  164. package/dist/openapi/dist/models/EventType.js +27 -0
  165. package/dist/openapi/dist/models/EventType.js.map +1 -0
  166. package/dist/openapi/dist/models/Exchange.d.ts +17 -0
  167. package/dist/openapi/dist/models/Exchange.js +99 -0
  168. package/dist/openapi/dist/models/Exchange.js.map +1 -0
  169. package/dist/openapi/dist/models/ExchangeCurrencyPairs.d.ts +17 -0
  170. package/dist/openapi/dist/models/ExchangeCurrencyPairs.js +27 -0
  171. package/dist/openapi/dist/models/ExchangeCurrencyPairs.js.map +1 -0
  172. package/dist/openapi/dist/models/ExchangeSubmitResponse.d.ts +17 -0
  173. package/dist/openapi/dist/models/ExchangeSubmitResponse.js +21 -0
  174. package/dist/openapi/dist/models/ExchangeSubmitResponse.js.map +1 -0
  175. package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.d.ts +17 -0
  176. package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.js +51 -0
  177. package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.js.map +1 -0
  178. package/dist/openapi/dist/models/GetRatesRequest.d.ts +17 -0
  179. package/dist/openapi/dist/models/GetRatesRequest.js +21 -0
  180. package/dist/openapi/dist/models/GetRatesRequest.js.map +1 -0
  181. package/dist/openapi/dist/models/GetRatesResponse.d.ts +17 -0
  182. package/dist/openapi/dist/models/GetRatesResponse.js +21 -0
  183. package/dist/openapi/dist/models/GetRatesResponse.js.map +1 -0
  184. package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.d.ts +17 -0
  185. package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.js +21 -0
  186. package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.js.map +1 -0
  187. package/dist/openapi/dist/models/ModelError.d.ts +17 -0
  188. package/dist/openapi/dist/models/ModelError.js +27 -0
  189. package/dist/openapi/dist/models/ModelError.js.map +1 -0
  190. package/dist/openapi/dist/models/ObjectSerializer.d.ts +55 -0
  191. package/dist/openapi/dist/models/ObjectSerializer.js +330 -0
  192. package/dist/openapi/dist/models/ObjectSerializer.js.map +1 -0
  193. package/dist/openapi/dist/models/Rate.d.ts +17 -0
  194. package/dist/openapi/dist/models/Rate.js +27 -0
  195. package/dist/openapi/dist/models/Rate.js.map +1 -0
  196. package/dist/openapi/dist/models/ResendWebhookEventRequest.d.ts +17 -0
  197. package/dist/openapi/dist/models/ResendWebhookEventRequest.js +27 -0
  198. package/dist/openapi/dist/models/ResendWebhookEventRequest.js.map +1 -0
  199. package/dist/openapi/dist/models/ResendWebhookEventResponse.d.ts +17 -0
  200. package/dist/openapi/dist/models/ResendWebhookEventResponse.js +21 -0
  201. package/dist/openapi/dist/models/ResendWebhookEventResponse.js.map +1 -0
  202. package/dist/openapi/dist/models/Transaction.d.ts +17 -0
  203. package/dist/openapi/dist/models/Transaction.js +99 -0
  204. package/dist/openapi/dist/models/Transaction.js.map +1 -0
  205. package/dist/openapi/dist/models/TransactionDirection.d.ts +0 -0
  206. package/dist/openapi/dist/models/TransactionDirection.js +2 -0
  207. package/dist/openapi/dist/models/TransactionDirection.js.map +1 -0
  208. package/dist/openapi/dist/models/TransactionStatus.d.ts +0 -0
  209. package/dist/openapi/dist/models/TransactionStatus.js +2 -0
  210. package/dist/openapi/dist/models/TransactionStatus.js.map +1 -0
  211. package/dist/openapi/dist/models/UpdateEndpoint.d.ts +17 -0
  212. package/dist/openapi/dist/models/UpdateEndpoint.js +57 -0
  213. package/dist/openapi/dist/models/UpdateEndpoint.js.map +1 -0
  214. package/dist/openapi/dist/models/UpdateWalletRequest.d.ts +17 -0
  215. package/dist/openapi/dist/models/UpdateWalletRequest.js +27 -0
  216. package/dist/openapi/dist/models/UpdateWalletRequest.js.map +1 -0
  217. package/dist/openapi/dist/models/Wallet.d.ts +17 -0
  218. package/dist/openapi/dist/models/Wallet.js +39 -0
  219. package/dist/openapi/dist/models/Wallet.js.map +1 -0
  220. package/dist/openapi/dist/models/WebhookEvent.d.ts +17 -0
  221. package/dist/openapi/dist/models/WebhookEvent.js +39 -0
  222. package/dist/openapi/dist/models/WebhookEvent.js.map +1 -0
  223. package/dist/openapi/dist/models/all.d.ts +46 -0
  224. package/dist/openapi/dist/models/all.js +59 -0
  225. package/dist/openapi/dist/models/all.js.map +1 -0
  226. package/dist/openapi/dist/rxjsStub.d.ts +10 -0
  227. package/dist/openapi/dist/rxjsStub.js +32 -0
  228. package/dist/openapi/dist/rxjsStub.js.map +1 -0
  229. package/dist/openapi/dist/servers.d.ts +12 -0
  230. package/dist/openapi/dist/servers.js +31 -0
  231. package/dist/openapi/dist/servers.js.map +1 -0
  232. package/dist/openapi/dist/types/ObjectParamAPI.d.ts +82 -0
  233. package/dist/openapi/dist/types/ObjectParamAPI.js +170 -0
  234. package/dist/openapi/dist/types/ObjectParamAPI.js.map +1 -0
  235. package/dist/openapi/dist/types/ObservableAPI.d.ts +92 -0
  236. package/dist/openapi/dist/types/ObservableAPI.js +576 -0
  237. package/dist/openapi/dist/types/ObservableAPI.js.map +1 -0
  238. package/dist/openapi/dist/types/PromiseAPI.d.ts +82 -0
  239. package/dist/openapi/dist/types/PromiseAPI.js +202 -0
  240. package/dist/openapi/dist/types/PromiseAPI.js.map +1 -0
  241. package/dist/openapi/dist/util.d.ts +1 -0
  242. package/dist/openapi/dist/util.js +25 -0
  243. package/dist/openapi/dist/util.js.map +1 -0
  244. package/dist/openapi/http/http.js +23 -36
  245. package/dist/openapi/http/http.js.map +1 -1
  246. package/dist/openapi/index.d.ts +1 -1
  247. package/dist/openapi/index.js +0 -2
  248. package/dist/openapi/index.js.map +1 -1
  249. package/dist/openapi/models/CreateTransferRequest.d.ts +3 -0
  250. package/dist/openapi/models/CreateTransferRequest.js +6 -0
  251. package/dist/openapi/models/CreateTransferRequest.js.map +1 -1
  252. package/dist/openapi/models/Currency.d.ts +2 -0
  253. package/dist/openapi/models/Currency.js +12 -0
  254. package/dist/openapi/models/Currency.js.map +1 -1
  255. package/dist/openapi/models/CurrencyNetwork.d.ts +1 -0
  256. package/dist/openapi/models/CurrencyNetwork.js +6 -0
  257. package/dist/openapi/models/CurrencyNetwork.js.map +1 -1
  258. package/dist/openapi/models/EstimateFeeResponse.js.map +1 -1
  259. package/dist/openapi/models/ObjectSerializer.d.ts +0 -9
  260. package/dist/openapi/models/ObjectSerializer.js +0 -27
  261. package/dist/openapi/models/ObjectSerializer.js.map +1 -1
  262. package/dist/openapi/models/all.d.ts +0 -9
  263. package/dist/openapi/models/all.js +0 -9
  264. package/dist/openapi/models/all.js.map +1 -1
  265. package/dist/openapi/types/ObjectParamAPI.d.ts +0 -49
  266. package/dist/openapi/types/ObjectParamAPI.js +14 -49
  267. package/dist/openapi/types/ObjectParamAPI.js.map +1 -1
  268. package/dist/openapi/types/ObservableAPI.d.ts +0 -29
  269. package/dist/openapi/types/ObservableAPI.js +1 -124
  270. package/dist/openapi/types/ObservableAPI.js.map +1 -1
  271. package/dist/openapi/types/PromiseAPI.d.ts +0 -25
  272. package/dist/openapi/types/PromiseAPI.js +14 -56
  273. package/dist/openapi/types/PromiseAPI.js.map +1 -1
  274. package/package.json +2 -1
@@ -0,0 +1,307 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WalletsApiResponseProcessor = exports.WalletsApiRequestFactory = void 0;
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try {
8
+ step(generator.next(value));
9
+ }
10
+ catch (e) {
11
+ reject(e);
12
+ } }
13
+ function rejected(value) { try {
14
+ step(generator["throw"](value));
15
+ }
16
+ catch (e) {
17
+ reject(e);
18
+ } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ const baseapi_1 = require("./baseapi");
24
+ const http_1 = require("../http/http");
25
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
26
+ const exception_1 = require("./exception");
27
+ const util_1 = require("../util");
28
+ class WalletsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
29
+ v1WalletsCreate(request, _options) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ let _config = _options || this.configuration;
32
+ if (request === null || request === undefined) {
33
+ throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1WalletsCreate.');
34
+ }
35
+ const localVarPath = '/api/v1/wallets';
36
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
37
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
38
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
39
+ "application/json"
40
+ ]);
41
+ requestContext.setHeaderParam("Content-Type", contentType);
42
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "CreateWalletRequest", ""), contentType);
43
+ requestContext.setBody(serializedBody);
44
+ let authMethod = null;
45
+ authMethod = _config.authMethods["ApiKeyAuth"];
46
+ if (authMethod) {
47
+ yield authMethod.applySecurityAuthentication(requestContext);
48
+ }
49
+ return requestContext;
50
+ });
51
+ }
52
+ v1WalletsList(limit, cursor, _options) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ let _config = _options || this.configuration;
55
+ if (limit === null || limit === undefined) {
56
+ throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1WalletsList.');
57
+ }
58
+ const localVarPath = '/api/v1/wallets';
59
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
60
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
61
+ if (cursor !== undefined) {
62
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
63
+ }
64
+ if (limit !== undefined) {
65
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
66
+ }
67
+ let authMethod = null;
68
+ authMethod = _config.authMethods["ApiKeyAuth"];
69
+ if (authMethod) {
70
+ yield authMethod.applySecurityAuthentication(requestContext);
71
+ }
72
+ return requestContext;
73
+ });
74
+ }
75
+ v1WalletsListAccounts(walletId, limit, cursor, _options) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ let _config = _options || this.configuration;
78
+ if (walletId === null || walletId === undefined) {
79
+ throw new baseapi_1.RequiredError('Required parameter walletId was null or undefined when calling v1WalletsListAccounts.');
80
+ }
81
+ if (limit === null || limit === undefined) {
82
+ throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1WalletsListAccounts.');
83
+ }
84
+ const localVarPath = '/api/v1/wallets/{walletId}/accounts'
85
+ .replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
86
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
87
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
88
+ if (cursor !== undefined) {
89
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
90
+ }
91
+ if (limit !== undefined) {
92
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
93
+ }
94
+ let authMethod = null;
95
+ authMethod = _config.authMethods["ApiKeyAuth"];
96
+ if (authMethod) {
97
+ yield authMethod.applySecurityAuthentication(requestContext);
98
+ }
99
+ return requestContext;
100
+ });
101
+ }
102
+ v1WalletsRetrieve(walletId, _options) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ let _config = _options || this.configuration;
105
+ if (walletId === null || walletId === undefined) {
106
+ throw new baseapi_1.RequiredError('Required parameter walletId was null or undefined when calling v1WalletsRetrieve.');
107
+ }
108
+ const localVarPath = '/api/v1/wallets/{walletId}'
109
+ .replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
110
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
111
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
112
+ let authMethod = null;
113
+ authMethod = _config.authMethods["ApiKeyAuth"];
114
+ if (authMethod) {
115
+ yield authMethod.applySecurityAuthentication(requestContext);
116
+ }
117
+ return requestContext;
118
+ });
119
+ }
120
+ v1WalletsUpdate(walletId, request, _options) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ let _config = _options || this.configuration;
123
+ if (walletId === null || walletId === undefined) {
124
+ throw new baseapi_1.RequiredError('Required parameter walletId was null or undefined when calling v1WalletsUpdate.');
125
+ }
126
+ if (request === null || request === undefined) {
127
+ throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1WalletsUpdate.');
128
+ }
129
+ const localVarPath = '/api/v1/wallets/{walletId}'
130
+ .replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
131
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
132
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
133
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
134
+ "application/json"
135
+ ]);
136
+ requestContext.setHeaderParam("Content-Type", contentType);
137
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "UpdateWalletRequest", ""), contentType);
138
+ requestContext.setBody(serializedBody);
139
+ let authMethod = null;
140
+ authMethod = _config.authMethods["ApiKeyAuth"];
141
+ if (authMethod) {
142
+ yield authMethod.applySecurityAuthentication(requestContext);
143
+ }
144
+ return requestContext;
145
+ });
146
+ }
147
+ }
148
+ exports.WalletsApiRequestFactory = WalletsApiRequestFactory;
149
+ class WalletsApiResponseProcessor {
150
+ v1WalletsCreate(response) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
153
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
154
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Wallet", "");
155
+ return body;
156
+ }
157
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
158
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
159
+ throw new exception_1.ApiException(400, body);
160
+ }
161
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
162
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
163
+ throw new exception_1.ApiException(401, body);
164
+ }
165
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
166
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
167
+ throw new exception_1.ApiException(404, body);
168
+ }
169
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
170
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
171
+ throw new exception_1.ApiException(500, body);
172
+ }
173
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
174
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Wallet", "");
175
+ return body;
176
+ }
177
+ let body = response.body || "";
178
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
179
+ });
180
+ }
181
+ v1WalletsList(response) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
184
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
185
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageWallet", "");
186
+ return body;
187
+ }
188
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
189
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
190
+ throw new exception_1.ApiException(400, body);
191
+ }
192
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
193
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
194
+ throw new exception_1.ApiException(401, body);
195
+ }
196
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
197
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
198
+ throw new exception_1.ApiException(404, body);
199
+ }
200
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
201
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
202
+ throw new exception_1.ApiException(500, body);
203
+ }
204
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
205
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageWallet", "");
206
+ return body;
207
+ }
208
+ let body = response.body || "";
209
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
210
+ });
211
+ }
212
+ v1WalletsListAccounts(response) {
213
+ return __awaiter(this, void 0, void 0, function* () {
214
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
215
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
216
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageAccount", "");
217
+ return body;
218
+ }
219
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
220
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
221
+ throw new exception_1.ApiException(400, body);
222
+ }
223
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
224
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
225
+ throw new exception_1.ApiException(401, body);
226
+ }
227
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
228
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
229
+ throw new exception_1.ApiException(404, body);
230
+ }
231
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
232
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
233
+ throw new exception_1.ApiException(500, body);
234
+ }
235
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
236
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageAccount", "");
237
+ return body;
238
+ }
239
+ let body = response.body || "";
240
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
241
+ });
242
+ }
243
+ v1WalletsRetrieve(response) {
244
+ return __awaiter(this, void 0, void 0, function* () {
245
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
246
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
247
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Wallet", "");
248
+ return body;
249
+ }
250
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
251
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
252
+ throw new exception_1.ApiException(400, body);
253
+ }
254
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
255
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
256
+ throw new exception_1.ApiException(401, body);
257
+ }
258
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
259
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
260
+ throw new exception_1.ApiException(404, body);
261
+ }
262
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
263
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
264
+ throw new exception_1.ApiException(500, body);
265
+ }
266
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
267
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Wallet", "");
268
+ return body;
269
+ }
270
+ let body = response.body || "";
271
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
272
+ });
273
+ }
274
+ v1WalletsUpdate(response) {
275
+ return __awaiter(this, void 0, void 0, function* () {
276
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
277
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
278
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Wallet", "");
279
+ return body;
280
+ }
281
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
282
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
283
+ throw new exception_1.ApiException(400, body);
284
+ }
285
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
286
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
287
+ throw new exception_1.ApiException(401, body);
288
+ }
289
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
290
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
291
+ throw new exception_1.ApiException(404, body);
292
+ }
293
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
294
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
295
+ throw new exception_1.ApiException(500, body);
296
+ }
297
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
298
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Wallet", "");
299
+ return body;
300
+ }
301
+ let body = response.body || "";
302
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
303
+ });
304
+ }
305
+ }
306
+ exports.WalletsApiResponseProcessor = WalletsApiResponseProcessor;
307
+ //# sourceMappingURL=WalletsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WalletsApi.js","sourceRoot":"","sources":["../../../../src/openapi/dist/apis/WalletsApi.js"],"names":[],"mappings":";;;AAAA,IAAI,SAAS,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS;IACnF,SAAS,KAAK,CAAC,KAAK,IAAI,OAAO,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5G,OAAO,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,UAAU,OAAO,EAAE,MAAM;QACrD,SAAS,SAAS,CAAC,KAAK,IAAI,IAAI;YAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;SAAE;QAAC,OAAO,CAAC,EAAE;YAAE,MAAM,CAAC,CAAC,CAAC,CAAC;SAAE,CAAC,CAAC;QAC3F,SAAS,QAAQ,CAAC,KAAK,IAAI,IAAI;YAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;SAAE;QAAC,OAAO,CAAC,EAAE;YAAE,MAAM,CAAC,CAAC,CAAC,CAAC;SAAE,CAAC,CAAC;QAC9F,SAAS,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC9G,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EA4JC"}
@@ -0,0 +1,16 @@
1
+ export class WebhookEndpointsApiRequestFactory extends BaseAPIRequestFactory {
2
+ constructor(configuration: import("..").Configuration);
3
+ v1WebhooksCreate(request: any, _options: any): any;
4
+ v1WebhooksDelete(endpointId: any, _options: any): any;
5
+ v1WebhooksList(limit: any, cursor: any, _options: any): any;
6
+ v1WebhooksRetrieve(endpointId: any, _options: any): any;
7
+ v1WebhooksUpdate(endpointId: any, request: any, _options: any): any;
8
+ }
9
+ export class WebhookEndpointsApiResponseProcessor {
10
+ v1WebhooksCreate(response: any): any;
11
+ v1WebhooksDelete(response: any): any;
12
+ v1WebhooksList(response: any): any;
13
+ v1WebhooksRetrieve(response: any): any;
14
+ v1WebhooksUpdate(response: any): any;
15
+ }
16
+ import { BaseAPIRequestFactory } from "./baseapi";
@@ -0,0 +1,254 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookEndpointsApiResponseProcessor = exports.WebhookEndpointsApiRequestFactory = void 0;
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try {
8
+ step(generator.next(value));
9
+ }
10
+ catch (e) {
11
+ reject(e);
12
+ } }
13
+ function rejected(value) { try {
14
+ step(generator["throw"](value));
15
+ }
16
+ catch (e) {
17
+ reject(e);
18
+ } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ const baseapi_1 = require("./baseapi");
24
+ const http_1 = require("../http/http");
25
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
26
+ const exception_1 = require("./exception");
27
+ const util_1 = require("../util");
28
+ class WebhookEndpointsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
29
+ v1WebhooksCreate(request, _options) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ let _config = _options || this.configuration;
32
+ if (request === null || request === undefined) {
33
+ throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1WebhooksCreate.');
34
+ }
35
+ const localVarPath = '/api/v1/webhook/endpoints';
36
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
37
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
38
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
39
+ "application/json"
40
+ ]);
41
+ requestContext.setHeaderParam("Content-Type", contentType);
42
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "CreateEndpoint", ""), contentType);
43
+ requestContext.setBody(serializedBody);
44
+ let authMethod = null;
45
+ authMethod = _config.authMethods["ApiKeyAuth"];
46
+ if (authMethod) {
47
+ yield authMethod.applySecurityAuthentication(requestContext);
48
+ }
49
+ return requestContext;
50
+ });
51
+ }
52
+ v1WebhooksDelete(endpointId, _options) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ let _config = _options || this.configuration;
55
+ if (endpointId === null || endpointId === undefined) {
56
+ throw new baseapi_1.RequiredError('Required parameter endpointId was null or undefined when calling v1WebhooksDelete.');
57
+ }
58
+ const localVarPath = '/api/v1/webhook/endpoints/{endpointId}'
59
+ .replace('{' + 'endpointId' + '}', encodeURIComponent(String(endpointId)));
60
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
61
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
62
+ let authMethod = null;
63
+ authMethod = _config.authMethods["ApiKeyAuth"];
64
+ if (authMethod) {
65
+ yield authMethod.applySecurityAuthentication(requestContext);
66
+ }
67
+ return requestContext;
68
+ });
69
+ }
70
+ v1WebhooksList(limit, cursor, _options) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ let _config = _options || this.configuration;
73
+ if (limit === null || limit === undefined) {
74
+ throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1WebhooksList.');
75
+ }
76
+ const localVarPath = '/api/v1/webhook/endpoints';
77
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
78
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
79
+ if (cursor !== undefined) {
80
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
81
+ }
82
+ if (limit !== undefined) {
83
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
84
+ }
85
+ let authMethod = null;
86
+ authMethod = _config.authMethods["ApiKeyAuth"];
87
+ if (authMethod) {
88
+ yield authMethod.applySecurityAuthentication(requestContext);
89
+ }
90
+ return requestContext;
91
+ });
92
+ }
93
+ v1WebhooksRetrieve(endpointId, _options) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ let _config = _options || this.configuration;
96
+ if (endpointId === null || endpointId === undefined) {
97
+ throw new baseapi_1.RequiredError('Required parameter endpointId was null or undefined when calling v1WebhooksRetrieve.');
98
+ }
99
+ const localVarPath = '/api/v1/webhook/endpoints/{endpointId}'
100
+ .replace('{' + 'endpointId' + '}', encodeURIComponent(String(endpointId)));
101
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
102
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
103
+ let authMethod = null;
104
+ authMethod = _config.authMethods["ApiKeyAuth"];
105
+ if (authMethod) {
106
+ yield authMethod.applySecurityAuthentication(requestContext);
107
+ }
108
+ return requestContext;
109
+ });
110
+ }
111
+ v1WebhooksUpdate(endpointId, request, _options) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ let _config = _options || this.configuration;
114
+ if (endpointId === null || endpointId === undefined) {
115
+ throw new baseapi_1.RequiredError('Required parameter endpointId was null or undefined when calling v1WebhooksUpdate.');
116
+ }
117
+ if (request === null || request === undefined) {
118
+ throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1WebhooksUpdate.');
119
+ }
120
+ const localVarPath = '/api/v1/webhook/endpoints/{endpointId}'
121
+ .replace('{' + 'endpointId' + '}', encodeURIComponent(String(endpointId)));
122
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
123
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
124
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
125
+ "application/json"
126
+ ]);
127
+ requestContext.setHeaderParam("Content-Type", contentType);
128
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "UpdateEndpoint", ""), contentType);
129
+ requestContext.setBody(serializedBody);
130
+ let authMethod = null;
131
+ authMethod = _config.authMethods["ApiKeyAuth"];
132
+ if (authMethod) {
133
+ yield authMethod.applySecurityAuthentication(requestContext);
134
+ }
135
+ return requestContext;
136
+ });
137
+ }
138
+ }
139
+ exports.WebhookEndpointsApiRequestFactory = WebhookEndpointsApiRequestFactory;
140
+ class WebhookEndpointsApiResponseProcessor {
141
+ v1WebhooksCreate(response) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
144
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
145
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
146
+ return body;
147
+ }
148
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
149
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
150
+ throw new exception_1.ApiException(400, body);
151
+ }
152
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
153
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
154
+ throw new exception_1.ApiException(500, body);
155
+ }
156
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
157
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
158
+ return body;
159
+ }
160
+ let body = response.body || "";
161
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
162
+ });
163
+ }
164
+ v1WebhooksDelete(response) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
167
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
168
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteWebhookEndpointResponse", "");
169
+ return body;
170
+ }
171
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
172
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
173
+ throw new exception_1.ApiException(400, body);
174
+ }
175
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
176
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
177
+ throw new exception_1.ApiException(500, body);
178
+ }
179
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
180
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteWebhookEndpointResponse", "");
181
+ return body;
182
+ }
183
+ let body = response.body || "";
184
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
185
+ });
186
+ }
187
+ v1WebhooksList(response) {
188
+ return __awaiter(this, void 0, void 0, function* () {
189
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
190
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
191
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageEndpoint", "");
192
+ return body;
193
+ }
194
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
195
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
196
+ throw new exception_1.ApiException(400, body);
197
+ }
198
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
199
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
200
+ throw new exception_1.ApiException(500, body);
201
+ }
202
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
203
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageEndpoint", "");
204
+ return body;
205
+ }
206
+ let body = response.body || "";
207
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
208
+ });
209
+ }
210
+ v1WebhooksRetrieve(response) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
213
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
214
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
215
+ return body;
216
+ }
217
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
218
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
219
+ throw new exception_1.ApiException(400, body);
220
+ }
221
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
222
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
223
+ throw new exception_1.ApiException(404, body);
224
+ }
225
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
226
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
227
+ throw new exception_1.ApiException(500, body);
228
+ }
229
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
230
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
231
+ return body;
232
+ }
233
+ let body = response.body || "";
234
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
235
+ });
236
+ }
237
+ v1WebhooksUpdate(response) {
238
+ return __awaiter(this, void 0, void 0, function* () {
239
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
240
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
241
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
242
+ return body;
243
+ }
244
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
245
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Endpoint", "");
246
+ return body;
247
+ }
248
+ let body = response.body || "";
249
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
250
+ });
251
+ }
252
+ }
253
+ exports.WebhookEndpointsApiResponseProcessor = WebhookEndpointsApiResponseProcessor;
254
+ //# sourceMappingURL=WebhookEndpointsApi.js.map