@northstake/northstakeapi 1.0.38 → 1.0.40

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 (492) hide show
  1. package/.openapi-generator/FILES +69 -21
  2. package/.openapi-generator/VERSION +1 -1
  3. package/api/accountApi.ts +1 -1
  4. package/api/accountApiKeysApi.ts +1 -1
  5. package/api/apis.ts +11 -11
  6. package/api/lidoReadApi.ts +646 -0
  7. package/api/{smartContractsApi.ts → lidoRewardsApi.ts} +106 -88
  8. package/api/{validatorMarketplaceSellersApi.ts → lidoStakingVaultsApi.ts} +74 -89
  9. package/api/lidoWriteApi.ts +2773 -0
  10. package/api/linkedWalletsApi.ts +93 -1
  11. package/api/{validatorMarketplaceBuyersApi.ts → organizationApi.ts} +140 -62
  12. package/api/validatorsApi.ts +27 -110
  13. package/api.ts +84 -36
  14. package/dist/api/accountApi.d.ts +1 -1
  15. package/dist/api/accountApi.js +1 -1
  16. package/dist/api/accountApiKeysApi.d.ts +1 -1
  17. package/dist/api/accountApiKeysApi.js +1 -1
  18. package/dist/api/apis.d.ts +11 -11
  19. package/dist/api/apis.js +11 -11
  20. package/dist/api/lidoReadApi.d.ts +138 -0
  21. package/dist/api/lidoReadApi.js +494 -0
  22. package/dist/api/lidoRewardsApi.d.ts +135 -0
  23. package/dist/api/{smartContractsApi.js → lidoRewardsApi.js} +83 -71
  24. package/dist/api/lidoStakingVaultsApi.d.ts +121 -0
  25. package/dist/api/{validatorMarketplaceSellersApi.js → lidoStakingVaultsApi.js} +64 -83
  26. package/dist/api/lidoWriteApi.d.ts +469 -0
  27. package/dist/api/lidoWriteApi.js +2172 -0
  28. package/dist/api/linkedWalletsApi.d.ts +16 -1
  29. package/dist/api/linkedWalletsApi.js +73 -1
  30. package/dist/api/organizationApi.d.ts +107 -0
  31. package/dist/api/{validatorMarketplaceBuyersApi.js → organizationApi.js} +115 -57
  32. package/dist/api/validatorsApi.d.ts +11 -26
  33. package/dist/api/validatorsApi.js +25 -87
  34. package/dist/api.d.ts +74 -26
  35. package/dist/api.js +79 -31
  36. package/dist/model/acceptedQuote.d.ts +1 -1
  37. package/dist/model/acceptedQuote.js +1 -1
  38. package/dist/model/accountEntity.d.ts +11 -3
  39. package/dist/model/accountEntity.js +6 -6
  40. package/dist/model/addLinkedWalletRequest.d.ts +1 -1
  41. package/dist/model/addLinkedWalletRequest.js +1 -1
  42. package/dist/model/apiKey.d.ts +4 -4
  43. package/dist/model/apiKey.js +7 -7
  44. package/dist/model/approveStETH.d.ts +32 -0
  45. package/dist/model/approveStETH.js +33 -0
  46. package/dist/model/approveWstETH.d.ts +36 -0
  47. package/dist/model/approveWstETH.js +38 -0
  48. package/dist/model/asset.d.ts +1 -1
  49. package/dist/model/asset.js +1 -1
  50. package/dist/model/burnShares.d.ts +32 -0
  51. package/dist/model/burnShares.js +33 -0
  52. package/dist/model/burnStETH.d.ts +32 -0
  53. package/dist/model/burnStETH.js +33 -0
  54. package/dist/model/burnWstETH.d.ts +32 -0
  55. package/dist/model/burnWstETH.js +33 -0
  56. package/dist/model/changeTier.d.ts +36 -0
  57. package/dist/model/changeTier.js +38 -0
  58. package/dist/model/collectERC20FromVault.d.ts +40 -0
  59. package/dist/model/collectERC20FromVault.js +43 -0
  60. package/dist/model/consolidateValidators.d.ts +36 -0
  61. package/dist/model/consolidateValidators.js +38 -0
  62. package/dist/model/consolidateValidatorsErrorResponse.d.ts +32 -0
  63. package/dist/model/consolidateValidatorsErrorResponse.js +33 -0
  64. package/dist/model/consolidateValidatorsResponse.d.ts +29 -0
  65. package/dist/model/consolidateValidatorsResponse.js +28 -0
  66. package/dist/model/createLidoStakingContractsRequest.d.ts +35 -0
  67. package/dist/model/createLidoStakingContractsRequest.js +36 -0
  68. package/dist/model/createVaultRequest.d.ts +39 -0
  69. package/dist/model/createVaultRequest.js +41 -0
  70. package/dist/model/dailyRewardSummaryStats.d.ts +55 -0
  71. package/dist/model/dailyRewardSummaryStats.js +61 -0
  72. package/dist/model/errorResponse.d.ts +1 -1
  73. package/dist/model/errorResponse.js +1 -1
  74. package/dist/model/errorWithTransactionResponse.d.ts +30 -0
  75. package/dist/model/errorWithTransactionResponse.js +36 -0
  76. package/dist/model/escrowPayment.d.ts +1 -1
  77. package/dist/model/escrowPayment.js +1 -1
  78. package/dist/model/escrowReleased.d.ts +1 -1
  79. package/dist/model/escrowReleased.js +1 -1
  80. package/dist/model/ethereumValidatorKey.d.ts +1 -1
  81. package/dist/model/ethereumValidatorKey.js +1 -1
  82. package/dist/model/ethereumValidatorKeyKeystore.d.ts +1 -1
  83. package/dist/model/ethereumValidatorKeyKeystore.js +1 -1
  84. package/dist/model/ethereumValidatorKeyKeystoreCrypto.d.ts +1 -1
  85. package/dist/model/ethereumValidatorKeyKeystoreCrypto.js +1 -1
  86. package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.d.ts +1 -1
  87. package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.js +1 -1
  88. package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.d.ts +1 -1
  89. package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.js +1 -1
  90. package/dist/model/ethereumValidatorKeyKeystoreCryptoCipherParams.d.ts +1 -1
  91. package/dist/model/ethereumValidatorKeyKeystoreCryptoCipherParams.js +1 -1
  92. package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.d.ts +1 -1
  93. package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.js +1 -1
  94. package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.d.ts +1 -1
  95. package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.js +1 -1
  96. package/dist/model/exitEstimateBase.d.ts +1 -1
  97. package/dist/model/exitEstimateBase.js +1 -1
  98. package/dist/model/exitEstimateSeller.d.ts +1 -1
  99. package/dist/model/exitEstimateSeller.js +1 -1
  100. package/dist/model/exitProposal.d.ts +1 -1
  101. package/dist/model/exitProposal.js +1 -1
  102. package/dist/model/fundVault.d.ts +32 -0
  103. package/dist/model/fundVault.js +33 -0
  104. package/dist/model/generateApiKeyRequest.d.ts +1 -1
  105. package/dist/model/generateApiKeyRequest.js +1 -1
  106. package/dist/model/getLazyOracleReportCallData200Response.d.ts +28 -0
  107. package/dist/model/getLazyOracleReportCallData200Response.js +38 -0
  108. package/dist/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.d.ts +31 -0
  109. package/dist/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.js +58 -0
  110. package/dist/model/getLazyOracleReportData200Response.d.ts +27 -0
  111. package/dist/model/getLazyOracleReportData200Response.js +33 -0
  112. package/dist/model/getLazyOracleReportData200ResponseReportData.d.ts +27 -0
  113. package/dist/model/getLazyOracleReportData200ResponseReportData.js +38 -0
  114. package/dist/model/{getSmartContractTransactions200Response.d.ts → getLidoTransactions200Response.d.ts} +2 -2
  115. package/dist/model/{getSmartContractTransactions200Response.js → getLidoTransactions200Response.js} +7 -7
  116. package/dist/model/getQuarantineInfo200Response.d.ts +29 -0
  117. package/dist/model/getQuarantineInfo200Response.js +48 -0
  118. package/dist/model/getStETHPerWstETHRate200Response.d.ts +28 -0
  119. package/dist/model/getStETHPerWstETHRate200Response.js +28 -0
  120. package/dist/model/getWithdrawalsResponse.d.ts +1 -1
  121. package/dist/model/getWithdrawalsResponse.js +1 -1
  122. package/dist/model/grantRole.d.ts +36 -0
  123. package/dist/model/grantRole.js +38 -0
  124. package/dist/model/internalTransaction.d.ts +1 -1
  125. package/dist/model/internalTransaction.js +1 -1
  126. package/dist/model/inviteMemberRequest.d.ts +41 -0
  127. package/dist/model/inviteMemberRequest.js +36 -0
  128. package/dist/model/lidoContracts.d.ts +39 -0
  129. package/dist/model/lidoContracts.js +46 -0
  130. package/dist/model/{minedBlock.d.ts → lidoContractsDashboard.d.ts} +3 -10
  131. package/dist/model/lidoContractsDashboard.js +28 -0
  132. package/dist/model/{smartContract.d.ts → lidoContractsStakingVault.d.ts} +5 -13
  133. package/dist/model/lidoContractsStakingVault.js +28 -0
  134. package/dist/model/lidoStakingContracts.d.ts +33 -0
  135. package/dist/model/lidoStakingContracts.js +36 -0
  136. package/dist/model/lidoStakingContractsWithData.d.ts +39 -0
  137. package/dist/model/lidoStakingContractsWithData.js +46 -0
  138. package/dist/model/lidoStakingContractsWithDataVaultData.d.ts +112 -0
  139. package/dist/model/lidoStakingContractsWithDataVaultData.js +133 -0
  140. package/dist/model/mintShares.d.ts +36 -0
  141. package/dist/model/mintShares.js +38 -0
  142. package/dist/model/mintStETH.d.ts +36 -0
  143. package/dist/model/mintStETH.js +38 -0
  144. package/dist/model/mintWstETH.d.ts +36 -0
  145. package/dist/model/mintWstETH.js +38 -0
  146. package/dist/model/models.d.ts +64 -16
  147. package/dist/model/models.js +194 -48
  148. package/dist/model/organizationMember.d.ts +53 -0
  149. package/dist/model/organizationMember.js +51 -0
  150. package/dist/model/{getMarketplaceMetadata200Response.d.ts → organizationNameResponse.d.ts} +7 -12
  151. package/dist/model/organizationNameResponse.js +31 -0
  152. package/dist/model/partialTransaction.d.ts +31 -0
  153. package/dist/model/partialTransaction.js +46 -0
  154. package/dist/model/presignedExitKey.d.ts +1 -1
  155. package/dist/model/presignedExitKey.js +1 -1
  156. package/dist/model/presignedExitKeyMessage.d.ts +1 -1
  157. package/dist/model/presignedExitKeyMessage.js +1 -1
  158. package/dist/model/quote.d.ts +1 -1
  159. package/dist/model/quote.js +1 -1
  160. package/dist/model/rFQBidFacilitator.d.ts +1 -1
  161. package/dist/model/rFQBidFacilitator.js +1 -1
  162. package/dist/model/rFQBids.d.ts +1 -1
  163. package/dist/model/rFQBids.js +1 -1
  164. package/dist/model/rFQDocumentBase.d.ts +1 -1
  165. package/dist/model/rFQDocumentBase.js +1 -1
  166. package/dist/model/rFQDocumentBaseUniqueEscrowVault.d.ts +1 -1
  167. package/dist/model/rFQDocumentBaseUniqueEscrowVault.js +1 -1
  168. package/dist/model/rFQDocumentBuyer.d.ts +1 -1
  169. package/dist/model/rFQDocumentBuyer.js +1 -1
  170. package/dist/model/rFQDocumentBuyerAllOfValidators.d.ts +1 -1
  171. package/dist/model/rFQDocumentBuyerAllOfValidators.js +1 -1
  172. package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +1 -1
  173. package/dist/model/rFQDocumentBuyerStatusFilter.js +1 -1
  174. package/dist/model/rFQDocumentFacilitator.d.ts +1 -1
  175. package/dist/model/rFQDocumentFacilitator.js +1 -1
  176. package/dist/model/rFQDocumentFacilitatorStatusFilter.d.ts +1 -1
  177. package/dist/model/rFQDocumentFacilitatorStatusFilter.js +1 -1
  178. package/dist/model/rFQDocumentFacilitatorValidatorsInner.d.ts +1 -1
  179. package/dist/model/rFQDocumentFacilitatorValidatorsInner.js +1 -1
  180. package/dist/model/rFQDocumentSeller.d.ts +1 -1
  181. package/dist/model/rFQDocumentSeller.js +1 -1
  182. package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +1 -1
  183. package/dist/model/rFQDocumentSellerAllOfValidators.js +1 -1
  184. package/dist/model/rFQDocumentSellerStatusFilter.d.ts +1 -1
  185. package/dist/model/rFQDocumentSellerStatusFilter.js +1 -1
  186. package/dist/model/rFQDocumentStatus.d.ts +1 -1
  187. package/dist/model/rFQDocumentStatus.js +1 -1
  188. package/dist/model/rFQDocumentUpdate.d.ts +1 -1
  189. package/dist/model/rFQDocumentUpdate.js +1 -1
  190. package/dist/model/rFQUpdatePayload.d.ts +1 -1
  191. package/dist/model/rFQUpdatePayload.js +1 -1
  192. package/dist/model/rFQWebhookEventType.d.ts +1 -1
  193. package/dist/model/rFQWebhookEventType.js +1 -1
  194. package/dist/model/rebalanceVaultWithEther.d.ts +32 -0
  195. package/dist/model/rebalanceVaultWithEther.js +33 -0
  196. package/dist/model/rebalanceVaultWithShares.d.ts +32 -0
  197. package/dist/model/rebalanceVaultWithShares.js +33 -0
  198. package/dist/model/recoverERC20.d.ts +40 -0
  199. package/dist/model/recoverERC20.js +43 -0
  200. package/dist/model/{webhookPayloadData.d.ts → renameVaultRequest.d.ts} +5 -13
  201. package/dist/model/renameVaultRequest.js +31 -0
  202. package/dist/model/revokeRole.d.ts +36 -0
  203. package/dist/model/revokeRole.js +38 -0
  204. package/dist/model/settlementSteps.d.ts +1 -1
  205. package/dist/model/settlementSteps.js +1 -1
  206. package/dist/model/stakeEthRequest.d.ts +31 -0
  207. package/dist/model/stakeEthRequest.js +31 -0
  208. package/dist/model/stakeEthResponse.d.ts +32 -0
  209. package/dist/model/stakeEthResponse.js +43 -0
  210. package/dist/model/stakeEthResponseDestructuredCallDataInner.d.ts +40 -0
  211. package/dist/model/stakeEthResponseDestructuredCallDataInner.js +43 -0
  212. package/dist/model/stakingRequest.d.ts +34 -0
  213. package/dist/model/stakingRequest.js +38 -0
  214. package/dist/model/stakingRequestStatus.d.ts +15 -0
  215. package/dist/model/stakingRequestStatus.js +13 -0
  216. package/dist/model/supportedValidatorProvidersResponse.d.ts +29 -0
  217. package/dist/model/supportedValidatorProvidersResponse.js +31 -0
  218. package/dist/model/transaction.d.ts +14 -2
  219. package/dist/model/transaction.js +16 -1
  220. package/dist/model/triggerValidatorWithdrawals.d.ts +40 -0
  221. package/dist/model/triggerValidatorWithdrawals.js +43 -0
  222. package/dist/model/unwrapWstETH.d.ts +32 -0
  223. package/dist/model/unwrapWstETH.js +33 -0
  224. package/dist/model/{getSmartContractMinedBlocks200Response.d.ts → updateLinkedWalletNameRequest.d.ts} +4 -14
  225. package/dist/model/updateLinkedWalletNameRequest.js +28 -0
  226. package/dist/model/updateMemberRoleRequest.d.ts +37 -0
  227. package/dist/model/updateMemberRoleRequest.js +31 -0
  228. package/dist/model/updateOrganizationNameRequest.d.ts +31 -0
  229. package/dist/model/updateOrganizationNameRequest.js +31 -0
  230. package/dist/model/updateShareLimit.d.ts +32 -0
  231. package/dist/model/updateShareLimit.js +33 -0
  232. package/dist/model/validateConsolidationRequestsResponse.d.ts +33 -0
  233. package/dist/model/validateConsolidationRequestsResponse.js +33 -0
  234. package/dist/model/validateConsolidationRequestsResponseConsolidationDetailsInner.d.ts +48 -0
  235. package/dist/model/validateConsolidationRequestsResponseConsolidationDetailsInner.js +53 -0
  236. package/dist/model/validatorDailyReward.d.ts +63 -0
  237. package/dist/model/validatorDailyReward.js +71 -0
  238. package/dist/model/validatorInfo.d.ts +14 -11
  239. package/dist/model/validatorInfo.js +16 -21
  240. package/dist/model/validatorKeyHolder.d.ts +1 -1
  241. package/dist/model/validatorKeyHolder.js +1 -1
  242. package/dist/model/validatorProvider.d.ts +15 -0
  243. package/dist/model/validatorProvider.js +13 -0
  244. package/dist/model/validatorRewardRaw.d.ts +73 -0
  245. package/dist/model/validatorRewardRaw.js +76 -0
  246. package/dist/model/validatorRewardsDaily.d.ts +50 -0
  247. package/dist/model/validatorRewardsDaily.js +48 -0
  248. package/dist/model/{getSmartContractMEVRewards200Response.d.ts → validatorRewardsDailyResponse.d.ts} +4 -13
  249. package/dist/model/validatorRewardsDailyResponse.js +43 -0
  250. package/dist/model/validatorRewardsRaw.d.ts +44 -0
  251. package/dist/model/validatorRewardsRaw.js +46 -0
  252. package/dist/model/validatorType.d.ts +1 -1
  253. package/dist/model/validatorType.js +1 -1
  254. package/dist/model/validatorWithdrawal.d.ts +7 -7
  255. package/dist/model/validatorWithdrawal.js +13 -13
  256. package/dist/model/vaultCreationStartResponse.d.ts +26 -0
  257. package/dist/model/vaultCreationStartResponse.js +28 -0
  258. package/dist/model/wallet.d.ts +1 -1
  259. package/dist/model/wallet.js +1 -1
  260. package/dist/model/webHookLookupAnswer.d.ts +1 -1
  261. package/dist/model/webHookLookupAnswer.js +1 -1
  262. package/dist/model/webhookPayload.d.ts +3 -3
  263. package/dist/model/webhookPayload.js +2 -2
  264. package/dist/model/webhookPayloadRFQAvailable.d.ts +1 -1
  265. package/dist/model/webhookPayloadRFQAvailable.js +1 -1
  266. package/dist/model/webhookPayloadRFQBidAccepted.d.ts +1 -1
  267. package/dist/model/webhookPayloadRFQBidAccepted.js +1 -1
  268. package/dist/model/webhookPayloadRFQBidAcceptedDetails.d.ts +1 -1
  269. package/dist/model/webhookPayloadRFQBidAcceptedDetails.js +1 -1
  270. package/dist/model/webhookPayloadRFQBidReceived.d.ts +1 -1
  271. package/dist/model/webhookPayloadRFQBidReceived.js +1 -1
  272. package/dist/model/webhookPayloadRFQBidReceivedDetails.d.ts +1 -1
  273. package/dist/model/webhookPayloadRFQBidReceivedDetails.js +1 -1
  274. package/dist/model/webhookPayloadRFQEscrowEvent.d.ts +1 -1
  275. package/dist/model/webhookPayloadRFQEscrowEvent.js +1 -1
  276. package/dist/model/webhookPayloadRFQEscrowEventDetails.d.ts +1 -1
  277. package/dist/model/webhookPayloadRFQEscrowEventDetails.js +1 -1
  278. package/dist/model/webhookPayloadRFQEscrowReleased.d.ts +1 -1
  279. package/dist/model/webhookPayloadRFQEscrowReleased.js +1 -1
  280. package/dist/model/webhookPayloadRFQEscrowReleasedDetails.d.ts +1 -1
  281. package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +1 -1
  282. package/dist/model/webhookPayloadRFQTransferProposalReceived.d.ts +1 -1
  283. package/dist/model/webhookPayloadRFQTransferProposalReceived.js +1 -1
  284. package/dist/model/webhookPayloadRFQTransferProposalReceivedDetails.d.ts +1 -1
  285. package/dist/model/webhookPayloadRFQTransferProposalReceivedDetails.js +1 -1
  286. package/dist/model/webhookPayloadRFQValidatorExited.d.ts +1 -1
  287. package/dist/model/webhookPayloadRFQValidatorExited.js +1 -1
  288. package/dist/model/webhookPayloadRFQValidatorExitedDetails.d.ts +1 -1
  289. package/dist/model/webhookPayloadRFQValidatorExitedDetails.js +1 -1
  290. package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +1 -1
  291. package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +1 -1
  292. package/dist/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.d.ts +1 -1
  293. package/dist/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.js +1 -1
  294. package/dist/model/webhookPayloadRFQWithdrawalClaimable.d.ts +1 -1
  295. package/dist/model/webhookPayloadRFQWithdrawalClaimable.js +1 -1
  296. package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.d.ts +1 -1
  297. package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.js +1 -1
  298. package/dist/model/webhookRegistration.d.ts +1 -1
  299. package/dist/model/webhookRegistration.js +1 -1
  300. package/dist/model/webhookRegistrationDetails.d.ts +1 -1
  301. package/dist/model/webhookRegistrationDetails.js +1 -1
  302. package/dist/model/withdrawFromVault.d.ts +36 -0
  303. package/dist/model/withdrawFromVault.js +38 -0
  304. package/dist/model/withdrawalClaimable.d.ts +1 -1
  305. package/dist/model/withdrawalClaimable.js +1 -1
  306. package/dist/model/withdrawalRecipientSettlement.d.ts +1 -1
  307. package/dist/model/withdrawalRecipientSettlement.js +1 -1
  308. package/dist/model/wrapStETH.d.ts +32 -0
  309. package/dist/model/wrapStETH.js +33 -0
  310. package/model/acceptedQuote.ts +1 -1
  311. package/model/accountEntity.ts +24 -8
  312. package/model/addLinkedWalletRequest.ts +1 -1
  313. package/model/apiKey.ts +10 -10
  314. package/model/approveStETH.ts +43 -0
  315. package/model/approveWstETH.ts +52 -0
  316. package/model/asset.ts +1 -1
  317. package/model/burnShares.ts +43 -0
  318. package/model/burnStETH.ts +43 -0
  319. package/model/burnWstETH.ts +43 -0
  320. package/model/changeTier.ts +52 -0
  321. package/model/collectERC20FromVault.ts +61 -0
  322. package/model/consolidateValidators.ts +52 -0
  323. package/model/consolidateValidatorsErrorResponse.ts +43 -0
  324. package/model/consolidateValidatorsResponse.ts +35 -0
  325. package/model/createLidoStakingContractsRequest.ts +46 -0
  326. package/model/createVaultRequest.ts +55 -0
  327. package/model/dailyRewardSummaryStats.ts +91 -0
  328. package/model/errorResponse.ts +1 -1
  329. package/model/errorWithTransactionResponse.ts +41 -0
  330. package/model/escrowPayment.ts +1 -1
  331. package/model/escrowReleased.ts +1 -1
  332. package/model/ethereumValidatorKey.ts +1 -1
  333. package/model/ethereumValidatorKeyKeystore.ts +1 -1
  334. package/model/ethereumValidatorKeyKeystoreCrypto.ts +1 -1
  335. package/model/ethereumValidatorKeyKeystoreCryptoChecksum.ts +1 -1
  336. package/model/ethereumValidatorKeyKeystoreCryptoCipher.ts +1 -1
  337. package/model/ethereumValidatorKeyKeystoreCryptoCipherParams.ts +1 -1
  338. package/model/ethereumValidatorKeyKeystoreCryptoKdf.ts +1 -1
  339. package/model/ethereumValidatorKeyKeystoreCryptoKdfParams.ts +1 -1
  340. package/model/exitEstimateBase.ts +1 -1
  341. package/model/exitEstimateSeller.ts +1 -1
  342. package/model/exitProposal.ts +1 -1
  343. package/model/fundVault.ts +43 -0
  344. package/model/generateApiKeyRequest.ts +1 -1
  345. package/model/getLazyOracleReportCallData200Response.ts +44 -0
  346. package/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.ts +67 -0
  347. package/model/getLazyOracleReportData200Response.ts +38 -0
  348. package/model/getLazyOracleReportData200ResponseReportData.ts +43 -0
  349. package/model/{getSmartContractTransactions200Response.ts → getLidoTransactions200Response.ts} +3 -3
  350. package/model/getQuarantineInfo200Response.ts +55 -0
  351. package/model/getStETHPerWstETHRate200Response.ts +34 -0
  352. package/model/getWithdrawalsResponse.ts +1 -1
  353. package/model/grantRole.ts +52 -0
  354. package/model/internalTransaction.ts +1 -1
  355. package/model/inviteMemberRequest.ts +54 -0
  356. package/model/lidoContracts.ts +60 -0
  357. package/model/{smartContractDetailedWhitelistedDepositorsInner.ts → lidoContractsDashboard.ts} +6 -15
  358. package/model/lidoContractsStakingVault.ts +34 -0
  359. package/model/lidoStakingContracts.ts +44 -0
  360. package/model/lidoStakingContractsWithData.ts +60 -0
  361. package/model/lidoStakingContractsWithDataVaultData.ts +223 -0
  362. package/model/mintShares.ts +52 -0
  363. package/model/mintStETH.ts +52 -0
  364. package/model/mintWstETH.ts +52 -0
  365. package/model/models.ts +296 -52
  366. package/model/organizationMember.ts +81 -0
  367. package/model/organizationNameResponse.ts +37 -0
  368. package/model/partialTransaction.ts +52 -0
  369. package/model/presignedExitKey.ts +1 -1
  370. package/model/presignedExitKeyMessage.ts +1 -1
  371. package/model/quote.ts +1 -1
  372. package/model/rFQBidFacilitator.ts +1 -1
  373. package/model/rFQBids.ts +1 -1
  374. package/model/rFQDocumentBase.ts +1 -1
  375. package/model/rFQDocumentBaseUniqueEscrowVault.ts +1 -1
  376. package/model/rFQDocumentBuyer.ts +1 -1
  377. package/model/rFQDocumentBuyerAllOfValidators.ts +1 -1
  378. package/model/rFQDocumentBuyerStatusFilter.ts +1 -1
  379. package/model/rFQDocumentFacilitator.ts +1 -1
  380. package/model/rFQDocumentFacilitatorStatusFilter.ts +1 -1
  381. package/model/rFQDocumentFacilitatorValidatorsInner.ts +1 -1
  382. package/model/rFQDocumentSeller.ts +1 -1
  383. package/model/rFQDocumentSellerAllOfValidators.ts +1 -1
  384. package/model/rFQDocumentSellerStatusFilter.ts +1 -1
  385. package/model/rFQDocumentStatus.ts +1 -1
  386. package/model/rFQDocumentUpdate.ts +1 -1
  387. package/model/rFQUpdatePayload.ts +1 -1
  388. package/model/rFQWebhookEventType.ts +1 -1
  389. package/model/rebalanceVaultWithEther.ts +43 -0
  390. package/model/rebalanceVaultWithShares.ts +43 -0
  391. package/model/recoverERC20.ts +61 -0
  392. package/model/renameVaultRequest.ts +37 -0
  393. package/model/revokeRole.ts +52 -0
  394. package/model/settlementSteps.ts +1 -1
  395. package/model/stakeEthRequest.ts +37 -0
  396. package/model/stakeEthResponse.ts +53 -0
  397. package/model/stakeEthResponseDestructuredCallDataInner.ts +61 -0
  398. package/model/stakingRequest.ts +50 -0
  399. package/model/stakingRequestStatus.ts +24 -0
  400. package/model/supportedValidatorProvidersResponse.ts +35 -0
  401. package/model/transaction.ts +29 -2
  402. package/model/triggerValidatorWithdrawals.ts +61 -0
  403. package/model/unwrapWstETH.ts +43 -0
  404. package/model/updateLinkedWalletNameRequest.ts +34 -0
  405. package/model/updateMemberRoleRequest.ts +45 -0
  406. package/model/updateOrganizationNameRequest.ts +37 -0
  407. package/model/updateShareLimit.ts +43 -0
  408. package/model/validateConsolidationRequestsResponse.ts +44 -0
  409. package/model/validateConsolidationRequestsResponseConsolidationDetailsInner.ts +79 -0
  410. package/model/validatorDailyReward.ts +109 -0
  411. package/model/validatorInfo.ts +29 -31
  412. package/model/validatorKeyHolder.ts +1 -1
  413. package/model/validatorProvider.ts +23 -0
  414. package/model/validatorRewardRaw.ts +127 -0
  415. package/model/validatorRewardsDaily.ts +79 -0
  416. package/model/{getSmartContractMinedBlocks200Response.ts → validatorRewardsDailyResponse.ts} +8 -17
  417. package/model/{getSmartContractMEVRewards200Response.ts → validatorRewardsRaw.ts} +15 -9
  418. package/model/validatorType.ts +1 -1
  419. package/model/validatorWithdrawal.ts +19 -19
  420. package/model/vaultCreationStartResponse.ts +32 -0
  421. package/model/wallet.ts +1 -1
  422. package/model/webHookLookupAnswer.ts +1 -1
  423. package/model/webhookPayload.ts +4 -4
  424. package/model/webhookPayloadRFQAvailable.ts +1 -1
  425. package/model/webhookPayloadRFQBidAccepted.ts +1 -1
  426. package/model/webhookPayloadRFQBidAcceptedDetails.ts +1 -1
  427. package/model/webhookPayloadRFQBidReceived.ts +1 -1
  428. package/model/webhookPayloadRFQBidReceivedDetails.ts +1 -1
  429. package/model/webhookPayloadRFQEscrowEvent.ts +1 -1
  430. package/model/webhookPayloadRFQEscrowEventDetails.ts +1 -1
  431. package/model/webhookPayloadRFQEscrowReleased.ts +1 -1
  432. package/model/webhookPayloadRFQEscrowReleasedDetails.ts +1 -1
  433. package/model/webhookPayloadRFQTransferProposalReceived.ts +1 -1
  434. package/model/webhookPayloadRFQTransferProposalReceivedDetails.ts +1 -1
  435. package/model/webhookPayloadRFQValidatorExited.ts +1 -1
  436. package/model/webhookPayloadRFQValidatorExitedDetails.ts +1 -1
  437. package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +1 -1
  438. package/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.ts +1 -1
  439. package/model/webhookPayloadRFQWithdrawalClaimable.ts +1 -1
  440. package/model/webhookPayloadRFQWithdrawalClaimableDetails.ts +1 -1
  441. package/model/webhookRegistration.ts +1 -1
  442. package/model/webhookRegistrationDetails.ts +1 -1
  443. package/model/withdrawFromVault.ts +52 -0
  444. package/model/withdrawalClaimable.ts +1 -1
  445. package/model/withdrawalRecipientSettlement.ts +1 -1
  446. package/model/wrapStETH.ts +43 -0
  447. package/package.json +3 -3
  448. package/api/validatorMarketplaceFacilitatorApi.ts +0 -360
  449. package/api/validatorMarketplaceWebhooksApi.ts +0 -351
  450. package/dist/api/smartContractsApi.d.ts +0 -125
  451. package/dist/api/validatorMarketplaceBuyersApi.d.ts +0 -95
  452. package/dist/api/validatorMarketplaceFacilitatorApi.d.ts +0 -80
  453. package/dist/api/validatorMarketplaceFacilitatorApi.js +0 -280
  454. package/dist/api/validatorMarketplaceSellersApi.d.ts +0 -122
  455. package/dist/api/validatorMarketplaceWebhooksApi.d.ts +0 -77
  456. package/dist/api/validatorMarketplaceWebhooksApi.js +0 -272
  457. package/dist/model/createRFQRequest.d.ts +0 -26
  458. package/dist/model/createRFQRequest.js +0 -33
  459. package/dist/model/getMarketplaceMetadata200Response.js +0 -38
  460. package/dist/model/getSmartContractMEVRewards200Response.js +0 -43
  461. package/dist/model/getSmartContractMinedBlocks200Response.js +0 -43
  462. package/dist/model/listAllRFQsForFacilitator200Response.d.ts +0 -38
  463. package/dist/model/listAllRFQsForFacilitator200Response.js +0 -43
  464. package/dist/model/mEVReward.d.ts +0 -45
  465. package/dist/model/mEVReward.js +0 -83
  466. package/dist/model/minedBlock.js +0 -48
  467. package/dist/model/provideEscrowHashForRFQDocumentRequest.d.ts +0 -25
  468. package/dist/model/provideEscrowHashForRFQDocumentRequest.js +0 -28
  469. package/dist/model/registerWithdrawalRecipientSettlementRequest.d.ts +0 -25
  470. package/dist/model/registerWithdrawalRecipientSettlementRequest.js +0 -28
  471. package/dist/model/smartContract.js +0 -56
  472. package/dist/model/smartContractDetailed.d.ts +0 -47
  473. package/dist/model/smartContractDetailed.js +0 -71
  474. package/dist/model/smartContractDetailedStats.d.ts +0 -72
  475. package/dist/model/smartContractDetailedStats.js +0 -83
  476. package/dist/model/smartContractDetailedWhitelistedDepositorsInner.d.ts +0 -27
  477. package/dist/model/smartContractDetailedWhitelistedDepositorsInner.js +0 -38
  478. package/dist/model/submittedQuote.d.ts +0 -26
  479. package/dist/model/submittedQuote.js +0 -33
  480. package/dist/model/webhookPayloadData.js +0 -41
  481. package/model/createRFQRequest.ts +0 -37
  482. package/model/getMarketplaceMetadata200Response.ts +0 -52
  483. package/model/listAllRFQsForFacilitator200Response.ts +0 -59
  484. package/model/mEVReward.ts +0 -106
  485. package/model/minedBlock.ts +0 -61
  486. package/model/provideEscrowHashForRFQDocumentRequest.ts +0 -31
  487. package/model/registerWithdrawalRecipientSettlementRequest.ts +0 -31
  488. package/model/smartContract.ts +0 -67
  489. package/model/smartContractDetailed.ts +0 -93
  490. package/model/smartContractDetailedStats.ts +0 -133
  491. package/model/submittedQuote.ts +0 -37
  492. package/model/webhookPayloadData.ts +0 -56
@@ -0,0 +1,646 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
4
+ *
5
+ * The version of the OpenAPI document: 1.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
+
13
+
14
+ import localVarRequest from 'request';
15
+ import http from 'http';
16
+
17
+ /* tslint:disable:no-unused-locals */
18
+ import { ErrorResponse } from '../model/errorResponse';
19
+ import { GetLazyOracleReportData200Response } from '../model/getLazyOracleReportData200Response';
20
+ import { GetLidoTransactions200Response } from '../model/getLidoTransactions200Response';
21
+ import { GetQuarantineInfo200Response } from '../model/getQuarantineInfo200Response';
22
+ import { GetStETHPerWstETHRate200Response } from '../model/getStETHPerWstETHRate200Response';
23
+
24
+ import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
25
+ import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
26
+
27
+ import { HttpError, RequestFile } from './apis';
28
+
29
+ let defaultBasePath = 'https://api.northstake.dk/v1';
30
+
31
+ // ===============================================
32
+ // This file is autogenerated - Please do not edit
33
+ // ===============================================
34
+
35
+ export enum LidoReadApiApiKeys {
36
+ ApiKeyAuth,
37
+ }
38
+
39
+
40
+ // If vendorExtensions.x-packageParams is true, use a single object to pass parameters
41
+ export interface LidoReadApiParams {
42
+ contractsId?: string;
43
+ startDate?: Date;
44
+ endDate?: Date;
45
+ page?: number;
46
+ limit?: number;
47
+ }
48
+ // If vendorExtensions.x-packageParams is true, use a single object to pass parameters
49
+ export interface LidoReadApiParams {
50
+ contractsId?: string;
51
+ startDate?: Date;
52
+ endDate?: Date;
53
+ }
54
+
55
+ export class LidoReadApi {
56
+ protected _basePath = defaultBasePath;
57
+ protected _defaultHeaders : any = {};
58
+ protected _useQuerystring : boolean = false;
59
+
60
+ protected authentications = {
61
+ 'default': <Authentication>new JWTAuth('your_api_key', 'your_private_key'),
62
+ 'bearerTokenAuth': new HttpBearerAuth(),
63
+ 'ApiKeyAuth': new ApiKeyAuth('header', 'x-api-key'),
64
+ }
65
+
66
+ protected interceptors: Interceptor[] = [];
67
+
68
+ constructor(basePath?: string);
69
+ constructor(basePathOrUsername: string, password?: string, basePath?: string) {
70
+ if (password) {
71
+ if (basePath) {
72
+ this.basePath = basePath;
73
+ }
74
+ } else {
75
+ if (basePathOrUsername) {
76
+ this.basePath = basePathOrUsername
77
+ }
78
+ }
79
+ }
80
+
81
+ set useQuerystring(value: boolean) {
82
+ this._useQuerystring = value;
83
+ }
84
+
85
+ set basePath(basePath: string) {
86
+ this._basePath = basePath;
87
+ }
88
+
89
+ set defaultHeaders(defaultHeaders: any) {
90
+ this._defaultHeaders = defaultHeaders;
91
+ }
92
+
93
+ get defaultHeaders() {
94
+ return this._defaultHeaders;
95
+ }
96
+
97
+ get basePath() {
98
+ return this._basePath;
99
+ }
100
+
101
+ public setDefaultAuthentication(auth: Authentication) {
102
+ this.authentications.default = auth;
103
+ }
104
+
105
+ public setApiKey(key: LidoReadApiApiKeys, value: string) {
106
+ (this.authentications as any)[LidoReadApiApiKeys[key]].apiKey = value;
107
+ }
108
+
109
+ set accessToken(accessToken: string | (() => string)) {
110
+ this.authentications.bearerTokenAuth.accessToken = accessToken;
111
+ }
112
+
113
+ public addInterceptor(interceptor: Interceptor) {
114
+ this.interceptors.push(interceptor);
115
+ }
116
+
117
+ /**
118
+ *
119
+ * @summary Get dashboard role members for a vault
120
+ * @param contractsId The unique identifier of the Lido staking contracts
121
+ */
122
+
123
+
124
+
125
+
126
+
127
+ public async getAllDashboardRoleMembers (contractsId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: { [key: string]: Array<string>; }, status: number }> {
128
+
129
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/all-dashboard-role-members'
130
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
131
+
132
+ let localVarQueryParameters: any = {};
133
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
134
+ const produces = ['application/json'];
135
+ if (produces.indexOf('application/json') >= 0) {
136
+ localVarHeaderParams.Accept = 'application/json';
137
+ } else {
138
+ localVarHeaderParams.Accept = produces.join(',');
139
+ }
140
+ let localVarFormParams: any = {};
141
+
142
+
143
+ // Verify required parameter 'contractsId' is not null or undefined
144
+ if (contractsId === null || contractsId === undefined) {
145
+ throw new Error('Required parameter "contractsId" was null or undefined when calling getAllDashboardRoleMembers.');
146
+ }
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+ (<any>Object).assign(localVarHeaderParams, options.headers);
155
+
156
+ let localVarUseFormData = false;
157
+
158
+
159
+
160
+ let localVarRequestOptions: localVarRequest.Options = {
161
+ method: 'GET',
162
+ qs: localVarQueryParameters,
163
+ headers: localVarHeaderParams,
164
+ uri: localVarPath,
165
+ useQuerystring: this._useQuerystring,
166
+ json: true,
167
+ };
168
+
169
+ let authenticationPromise = Promise.resolve();
170
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
171
+
172
+ let interceptorPromise = authenticationPromise;
173
+ for (const interceptor of this.interceptors) {
174
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
175
+ }
176
+
177
+ return interceptorPromise.then(() => {
178
+ if (Object.keys(localVarFormParams).length) {
179
+ if (localVarUseFormData) {
180
+ (<any>localVarRequestOptions).formData = localVarFormParams;
181
+ } else {
182
+ localVarRequestOptions.form = localVarFormParams;
183
+ }
184
+ }
185
+ return new Promise<{ body: { [key: string]: Array<string>; }, status: number }>((resolve, reject) => {
186
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
187
+ if (error) {
188
+ console.error('API call error:', error);
189
+ reject(error);
190
+ } else {
191
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
192
+ body = ObjectSerializer.deserialize(body, "{ [key: string]: Array<string>; }");
193
+ resolve({ body: body, status: response.statusCode });
194
+ } else {
195
+ console.error('API response error:', response.statusCode);
196
+ resolve({ body: body, status: response.statusCode });
197
+ }
198
+ }
199
+ });
200
+ });
201
+ } )
202
+ }
203
+ /**
204
+ *
205
+ * @summary Get vault report data from lazy oracle
206
+ * @param contractsId The unique identifier of the Lido staking contracts
207
+ */
208
+
209
+
210
+
211
+
212
+
213
+ public async getLazyOracleReportData (contractsId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: GetLazyOracleReportData200Response, status: number }> {
214
+
215
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/vault-report-data'
216
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
217
+
218
+ let localVarQueryParameters: any = {};
219
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
220
+ const produces = ['application/json'];
221
+ if (produces.indexOf('application/json') >= 0) {
222
+ localVarHeaderParams.Accept = 'application/json';
223
+ } else {
224
+ localVarHeaderParams.Accept = produces.join(',');
225
+ }
226
+ let localVarFormParams: any = {};
227
+
228
+
229
+ // Verify required parameter 'contractsId' is not null or undefined
230
+ if (contractsId === null || contractsId === undefined) {
231
+ throw new Error('Required parameter "contractsId" was null or undefined when calling getLazyOracleReportData.');
232
+ }
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+ (<any>Object).assign(localVarHeaderParams, options.headers);
241
+
242
+ let localVarUseFormData = false;
243
+
244
+
245
+
246
+ let localVarRequestOptions: localVarRequest.Options = {
247
+ method: 'GET',
248
+ qs: localVarQueryParameters,
249
+ headers: localVarHeaderParams,
250
+ uri: localVarPath,
251
+ useQuerystring: this._useQuerystring,
252
+ json: true,
253
+ };
254
+
255
+ let authenticationPromise = Promise.resolve();
256
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
257
+
258
+ let interceptorPromise = authenticationPromise;
259
+ for (const interceptor of this.interceptors) {
260
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
261
+ }
262
+
263
+ return interceptorPromise.then(() => {
264
+ if (Object.keys(localVarFormParams).length) {
265
+ if (localVarUseFormData) {
266
+ (<any>localVarRequestOptions).formData = localVarFormParams;
267
+ } else {
268
+ localVarRequestOptions.form = localVarFormParams;
269
+ }
270
+ }
271
+ return new Promise<{ body: GetLazyOracleReportData200Response, status: number }>((resolve, reject) => {
272
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
273
+ if (error) {
274
+ console.error('API call error:', error);
275
+ reject(error);
276
+ } else {
277
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
278
+ body = ObjectSerializer.deserialize(body, "GetLazyOracleReportData200Response");
279
+ resolve({ body: body, status: response.statusCode });
280
+ } else {
281
+ console.error('API response error:', response.statusCode);
282
+ resolve({ body: body, status: response.statusCode });
283
+ }
284
+ }
285
+ });
286
+ });
287
+ } )
288
+ }
289
+ /**
290
+ * Retrieves transactions for all staking vaults. Optionally filter by a specific contractsId.
291
+ * @summary Get transactions related to Lido staking contract sets
292
+ * @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, returns transactions for all staking vaults.
293
+ * @param startDate Start date for filtering transactions
294
+ * @param endDate End date for filtering transactions
295
+ * @param page Page number for pagination
296
+ * @param limit Number of transactions per page
297
+ */
298
+
299
+
300
+
301
+
302
+
303
+ public async getLidoTransactions(params?: LidoReadApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: GetLidoTransactions200Response, status: number }> {
304
+
305
+ const localVarPath = this.basePath + '/lidov3/transactions';
306
+
307
+ let localVarQueryParameters: any = {};
308
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
309
+ const produces = ['application/json'];
310
+ if (produces.indexOf('application/json') >= 0) {
311
+ localVarHeaderParams.Accept = 'application/json';
312
+ } else {
313
+ localVarHeaderParams.Accept = produces.join(',');
314
+ }
315
+ let localVarFormParams: any = {};
316
+
317
+
318
+
319
+
320
+
321
+ if (params?.contractsId !== undefined) {
322
+ localVarQueryParameters['contractsId'] = ObjectSerializer.serialize(params?.contractsId, "string");
323
+ }
324
+ if (params?.startDate !== undefined) {
325
+ localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "Date");
326
+ }
327
+ if (params?.endDate !== undefined) {
328
+ localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "Date");
329
+ }
330
+ if (params?.page !== undefined) {
331
+ localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
332
+ }
333
+ if (params?.limit !== undefined) {
334
+ localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
335
+ }
336
+
337
+
338
+
339
+
340
+ (<any>Object).assign(localVarHeaderParams, options.headers);
341
+
342
+ let localVarUseFormData = false;
343
+
344
+
345
+
346
+ let localVarRequestOptions: localVarRequest.Options = {
347
+ method: 'GET',
348
+ qs: localVarQueryParameters,
349
+ headers: localVarHeaderParams,
350
+ uri: localVarPath,
351
+ useQuerystring: this._useQuerystring,
352
+ json: true,
353
+ };
354
+
355
+ let authenticationPromise = Promise.resolve();
356
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
357
+
358
+ let interceptorPromise = authenticationPromise;
359
+ for (const interceptor of this.interceptors) {
360
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
361
+ }
362
+
363
+ return interceptorPromise.then(() => {
364
+ if (Object.keys(localVarFormParams).length) {
365
+ if (localVarUseFormData) {
366
+ (<any>localVarRequestOptions).formData = localVarFormParams;
367
+ } else {
368
+ localVarRequestOptions.form = localVarFormParams;
369
+ }
370
+ }
371
+ return new Promise<{ body: GetLidoTransactions200Response, status: number }>((resolve, reject) => {
372
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
373
+ if (error) {
374
+ console.error('API call error:', error);
375
+ reject(error);
376
+ } else {
377
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
378
+ body = ObjectSerializer.deserialize(body, "GetLidoTransactions200Response");
379
+ resolve({ body: body, status: response.statusCode });
380
+ } else {
381
+ console.error('API response error:', response.statusCode);
382
+ resolve({ body: body, status: response.statusCode });
383
+ }
384
+ }
385
+ });
386
+ });
387
+ } )
388
+ }
389
+ /**
390
+ *
391
+ * @summary Get quarantine info for a vault
392
+ * @param contractsId The unique identifier of the Lido staking contracts
393
+ */
394
+
395
+
396
+
397
+
398
+
399
+ public async getQuarantineInfo (contractsId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: GetQuarantineInfo200Response, status: number }> {
400
+
401
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/quarantine-info'
402
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
403
+
404
+ let localVarQueryParameters: any = {};
405
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
406
+ const produces = ['application/json'];
407
+ if (produces.indexOf('application/json') >= 0) {
408
+ localVarHeaderParams.Accept = 'application/json';
409
+ } else {
410
+ localVarHeaderParams.Accept = produces.join(',');
411
+ }
412
+ let localVarFormParams: any = {};
413
+
414
+
415
+ // Verify required parameter 'contractsId' is not null or undefined
416
+ if (contractsId === null || contractsId === undefined) {
417
+ throw new Error('Required parameter "contractsId" was null or undefined when calling getQuarantineInfo.');
418
+ }
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+ (<any>Object).assign(localVarHeaderParams, options.headers);
427
+
428
+ let localVarUseFormData = false;
429
+
430
+
431
+
432
+ let localVarRequestOptions: localVarRequest.Options = {
433
+ method: 'GET',
434
+ qs: localVarQueryParameters,
435
+ headers: localVarHeaderParams,
436
+ uri: localVarPath,
437
+ useQuerystring: this._useQuerystring,
438
+ json: true,
439
+ };
440
+
441
+ let authenticationPromise = Promise.resolve();
442
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
443
+
444
+ let interceptorPromise = authenticationPromise;
445
+ for (const interceptor of this.interceptors) {
446
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
447
+ }
448
+
449
+ return interceptorPromise.then(() => {
450
+ if (Object.keys(localVarFormParams).length) {
451
+ if (localVarUseFormData) {
452
+ (<any>localVarRequestOptions).formData = localVarFormParams;
453
+ } else {
454
+ localVarRequestOptions.form = localVarFormParams;
455
+ }
456
+ }
457
+ return new Promise<{ body: GetQuarantineInfo200Response, status: number }>((resolve, reject) => {
458
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
459
+ if (error) {
460
+ console.error('API call error:', error);
461
+ reject(error);
462
+ } else {
463
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
464
+ body = ObjectSerializer.deserialize(body, "GetQuarantineInfo200Response");
465
+ resolve({ body: body, status: response.statusCode });
466
+ } else {
467
+ console.error('API response error:', response.statusCode);
468
+ resolve({ body: body, status: response.statusCode });
469
+ }
470
+ }
471
+ });
472
+ });
473
+ } )
474
+ }
475
+ /**
476
+ *
477
+ * @summary Get the current stETH per wstETH exchange rate
478
+ */
479
+
480
+
481
+
482
+
483
+
484
+ public async getStETHPerWstETHRate (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: GetStETHPerWstETHRate200Response, status: number }> {
485
+
486
+ const localVarPath = this.basePath + '/lidov3/steth-per-wsteth-rate';
487
+
488
+ let localVarQueryParameters: any = {};
489
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
490
+ const produces = ['application/json'];
491
+ if (produces.indexOf('application/json') >= 0) {
492
+ localVarHeaderParams.Accept = 'application/json';
493
+ } else {
494
+ localVarHeaderParams.Accept = produces.join(',');
495
+ }
496
+ let localVarFormParams: any = {};
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+ (<any>Object).assign(localVarHeaderParams, options.headers);
507
+
508
+ let localVarUseFormData = false;
509
+
510
+
511
+
512
+ let localVarRequestOptions: localVarRequest.Options = {
513
+ method: 'GET',
514
+ qs: localVarQueryParameters,
515
+ headers: localVarHeaderParams,
516
+ uri: localVarPath,
517
+ useQuerystring: this._useQuerystring,
518
+ json: true,
519
+ };
520
+
521
+ let authenticationPromise = Promise.resolve();
522
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
523
+
524
+ let interceptorPromise = authenticationPromise;
525
+ for (const interceptor of this.interceptors) {
526
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
527
+ }
528
+
529
+ return interceptorPromise.then(() => {
530
+ if (Object.keys(localVarFormParams).length) {
531
+ if (localVarUseFormData) {
532
+ (<any>localVarRequestOptions).formData = localVarFormParams;
533
+ } else {
534
+ localVarRequestOptions.form = localVarFormParams;
535
+ }
536
+ }
537
+ return new Promise<{ body: GetStETHPerWstETHRate200Response, status: number }>((resolve, reject) => {
538
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
539
+ if (error) {
540
+ console.error('API call error:', error);
541
+ reject(error);
542
+ } else {
543
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
544
+ body = ObjectSerializer.deserialize(body, "GetStETHPerWstETHRate200Response");
545
+ resolve({ body: body, status: response.statusCode });
546
+ } else {
547
+ console.error('API response error:', response.statusCode);
548
+ resolve({ body: body, status: response.statusCode });
549
+ }
550
+ }
551
+ });
552
+ });
553
+ } )
554
+ }
555
+ /**
556
+ * Creates an internal order document for CSV export of transactions. The backend janitor will process this order and send the CSV via email.
557
+ * @summary Request CSV export for transactions
558
+ * @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, exports transactions for all staking vaults.
559
+ * @param startDate Start date for filtering transactions
560
+ * @param endDate End date for filtering transactions
561
+ */
562
+
563
+
564
+
565
+
566
+
567
+ public async requestTransactionsCsvExport(params?: LidoReadApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: any, status: number }> {
568
+
569
+ const localVarPath = this.basePath + '/lidov3/transactions/csv-export';
570
+
571
+ let localVarQueryParameters: any = {};
572
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
573
+ const produces = ['application/json'];
574
+ if (produces.indexOf('application/json') >= 0) {
575
+ localVarHeaderParams.Accept = 'application/json';
576
+ } else {
577
+ localVarHeaderParams.Accept = produces.join(',');
578
+ }
579
+ let localVarFormParams: any = {};
580
+
581
+
582
+
583
+
584
+
585
+ if (params?.contractsId !== undefined) {
586
+ localVarQueryParameters['contractsId'] = ObjectSerializer.serialize(params?.contractsId, "string");
587
+ }
588
+ if (params?.startDate !== undefined) {
589
+ localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "Date");
590
+ }
591
+ if (params?.endDate !== undefined) {
592
+ localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "Date");
593
+ }
594
+
595
+
596
+
597
+
598
+ (<any>Object).assign(localVarHeaderParams, options.headers);
599
+
600
+ let localVarUseFormData = false;
601
+
602
+
603
+
604
+ let localVarRequestOptions: localVarRequest.Options = {
605
+ method: 'POST',
606
+ qs: localVarQueryParameters,
607
+ headers: localVarHeaderParams,
608
+ uri: localVarPath,
609
+ useQuerystring: this._useQuerystring,
610
+ json: true,
611
+ };
612
+
613
+ let authenticationPromise = Promise.resolve();
614
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
615
+
616
+ let interceptorPromise = authenticationPromise;
617
+ for (const interceptor of this.interceptors) {
618
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
619
+ }
620
+
621
+ return interceptorPromise.then(() => {
622
+ if (Object.keys(localVarFormParams).length) {
623
+ if (localVarUseFormData) {
624
+ (<any>localVarRequestOptions).formData = localVarFormParams;
625
+ } else {
626
+ localVarRequestOptions.form = localVarFormParams;
627
+ }
628
+ }
629
+ return new Promise<{ body: any, status: number }>((resolve, reject) => {
630
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
631
+ if (error) {
632
+ console.error('API call error:', error);
633
+ reject(error);
634
+ } else {
635
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
636
+ resolve({ body: body, status: response.statusCode });
637
+ } else {
638
+ console.error('API response error:', response.statusCode);
639
+ resolve({ body: body, status: response.statusCode });
640
+ }
641
+ }
642
+ });
643
+ });
644
+ } )
645
+ }
646
+ }