@northstake/northstakeapi 1.0.38 → 1.0.39

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 (482) hide show
  1. package/.openapi-generator/FILES +66 -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/{validatorMarketplaceSellersApi.ts → lidoReadApi.ts} +105 -91
  7. package/api/{smartContractsApi.ts → lidoRewardsApi.ts} +106 -88
  8. package/api/lidoStakingVaultsApi.ts +536 -0
  9. package/api/lidoWriteApi.ts +2473 -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 +81 -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/{validatorMarketplaceSellersApi.js → lidoReadApi.js} +82 -82
  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 +108 -0
  25. package/dist/api/{validatorMarketplaceFacilitatorApi.js → lidoStakingVaultsApi.js} +174 -40
  26. package/dist/api/lidoWriteApi.d.ts +404 -0
  27. package/dist/api/lidoWriteApi.js +1931 -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 +71 -26
  35. package/dist/api.js +76 -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/collectERC20FromVault.d.ts +40 -0
  57. package/dist/model/collectERC20FromVault.js +43 -0
  58. package/dist/model/consolidateValidators.d.ts +36 -0
  59. package/dist/model/consolidateValidators.js +38 -0
  60. package/dist/model/consolidateValidatorsErrorResponse.d.ts +32 -0
  61. package/dist/model/consolidateValidatorsErrorResponse.js +33 -0
  62. package/dist/model/consolidateValidatorsResponse.d.ts +29 -0
  63. package/dist/model/consolidateValidatorsResponse.js +28 -0
  64. package/dist/model/createLidoStakingContractsRequest.d.ts +35 -0
  65. package/dist/model/createLidoStakingContractsRequest.js +36 -0
  66. package/dist/model/createVaultRequest.d.ts +39 -0
  67. package/dist/model/createVaultRequest.js +41 -0
  68. package/dist/model/dailyRewardSummaryStats.d.ts +55 -0
  69. package/dist/model/dailyRewardSummaryStats.js +61 -0
  70. package/dist/model/errorResponse.d.ts +1 -1
  71. package/dist/model/errorResponse.js +1 -1
  72. package/dist/model/errorWithTransactionResponse.d.ts +30 -0
  73. package/dist/model/errorWithTransactionResponse.js +36 -0
  74. package/dist/model/escrowPayment.d.ts +1 -1
  75. package/dist/model/escrowPayment.js +1 -1
  76. package/dist/model/escrowReleased.d.ts +1 -1
  77. package/dist/model/escrowReleased.js +1 -1
  78. package/dist/model/ethereumValidatorKey.d.ts +1 -1
  79. package/dist/model/ethereumValidatorKey.js +1 -1
  80. package/dist/model/ethereumValidatorKeyKeystore.d.ts +1 -1
  81. package/dist/model/ethereumValidatorKeyKeystore.js +1 -1
  82. package/dist/model/ethereumValidatorKeyKeystoreCrypto.d.ts +1 -1
  83. package/dist/model/ethereumValidatorKeyKeystoreCrypto.js +1 -1
  84. package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.d.ts +1 -1
  85. package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.js +1 -1
  86. package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.d.ts +1 -1
  87. package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.js +1 -1
  88. package/dist/model/ethereumValidatorKeyKeystoreCryptoCipherParams.d.ts +1 -1
  89. package/dist/model/ethereumValidatorKeyKeystoreCryptoCipherParams.js +1 -1
  90. package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.d.ts +1 -1
  91. package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.js +1 -1
  92. package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.d.ts +1 -1
  93. package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.js +1 -1
  94. package/dist/model/exitEstimateBase.d.ts +1 -1
  95. package/dist/model/exitEstimateBase.js +1 -1
  96. package/dist/model/exitEstimateSeller.d.ts +1 -1
  97. package/dist/model/exitEstimateSeller.js +1 -1
  98. package/dist/model/exitProposal.d.ts +1 -1
  99. package/dist/model/exitProposal.js +1 -1
  100. package/dist/model/fundVault.d.ts +32 -0
  101. package/dist/model/fundVault.js +33 -0
  102. package/dist/model/generateApiKeyRequest.d.ts +1 -1
  103. package/dist/model/generateApiKeyRequest.js +1 -1
  104. package/dist/model/getLazyOracleReportCallData200Response.d.ts +28 -0
  105. package/dist/model/getLazyOracleReportCallData200Response.js +38 -0
  106. package/dist/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.d.ts +31 -0
  107. package/dist/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.js +58 -0
  108. package/dist/model/getLazyOracleReportData200Response.d.ts +27 -0
  109. package/dist/model/getLazyOracleReportData200Response.js +33 -0
  110. package/dist/model/getLazyOracleReportData200ResponseReportData.d.ts +27 -0
  111. package/dist/model/getLazyOracleReportData200ResponseReportData.js +38 -0
  112. package/dist/model/{getSmartContractTransactions200Response.d.ts → getLidoTransactions200Response.d.ts} +2 -2
  113. package/dist/model/{getSmartContractTransactions200Response.js → getLidoTransactions200Response.js} +7 -7
  114. package/dist/model/getQuarantineInfo200Response.d.ts +29 -0
  115. package/dist/model/getQuarantineInfo200Response.js +48 -0
  116. package/dist/model/{getMarketplaceMetadata200Response.d.ts → getStETHPerWstETHRate200Response.d.ts} +4 -12
  117. package/dist/model/getStETHPerWstETHRate200Response.js +28 -0
  118. package/dist/model/getWithdrawalsResponse.d.ts +1 -1
  119. package/dist/model/getWithdrawalsResponse.js +1 -1
  120. package/dist/model/grantRole.d.ts +36 -0
  121. package/dist/model/grantRole.js +38 -0
  122. package/dist/model/internalTransaction.d.ts +1 -1
  123. package/dist/model/internalTransaction.js +1 -1
  124. package/dist/model/inviteMemberRequest.d.ts +41 -0
  125. package/dist/model/inviteMemberRequest.js +36 -0
  126. package/dist/model/lidoContracts.d.ts +39 -0
  127. package/dist/model/lidoContracts.js +46 -0
  128. package/dist/model/{minedBlock.d.ts → lidoContractsDashboard.d.ts} +3 -10
  129. package/dist/model/lidoContractsDashboard.js +28 -0
  130. package/dist/model/{smartContract.d.ts → lidoContractsStakingVault.d.ts} +5 -13
  131. package/dist/model/lidoContractsStakingVault.js +28 -0
  132. package/dist/model/lidoStakingContracts.d.ts +33 -0
  133. package/dist/model/lidoStakingContracts.js +36 -0
  134. package/dist/model/lidoStakingContractsWithData.d.ts +39 -0
  135. package/dist/model/lidoStakingContractsWithData.js +46 -0
  136. package/dist/model/lidoStakingContractsWithDataVaultData.d.ts +112 -0
  137. package/dist/model/lidoStakingContractsWithDataVaultData.js +133 -0
  138. package/dist/model/mintShares.d.ts +36 -0
  139. package/dist/model/mintShares.js +38 -0
  140. package/dist/model/mintStETH.d.ts +36 -0
  141. package/dist/model/mintStETH.js +38 -0
  142. package/dist/model/mintWstETH.d.ts +36 -0
  143. package/dist/model/mintWstETH.js +38 -0
  144. package/dist/model/models.d.ts +61 -16
  145. package/dist/model/models.js +185 -48
  146. package/dist/model/organizationMember.d.ts +53 -0
  147. package/dist/model/organizationMember.js +51 -0
  148. package/dist/model/organizationNameResponse.d.ts +31 -0
  149. package/dist/model/organizationNameResponse.js +31 -0
  150. package/dist/model/partialTransaction.d.ts +31 -0
  151. package/dist/model/partialTransaction.js +46 -0
  152. package/dist/model/presignedExitKey.d.ts +1 -1
  153. package/dist/model/presignedExitKey.js +1 -1
  154. package/dist/model/presignedExitKeyMessage.d.ts +1 -1
  155. package/dist/model/presignedExitKeyMessage.js +1 -1
  156. package/dist/model/quote.d.ts +1 -1
  157. package/dist/model/quote.js +1 -1
  158. package/dist/model/rFQBidFacilitator.d.ts +1 -1
  159. package/dist/model/rFQBidFacilitator.js +1 -1
  160. package/dist/model/rFQBids.d.ts +1 -1
  161. package/dist/model/rFQBids.js +1 -1
  162. package/dist/model/rFQDocumentBase.d.ts +1 -1
  163. package/dist/model/rFQDocumentBase.js +1 -1
  164. package/dist/model/rFQDocumentBaseUniqueEscrowVault.d.ts +1 -1
  165. package/dist/model/rFQDocumentBaseUniqueEscrowVault.js +1 -1
  166. package/dist/model/rFQDocumentBuyer.d.ts +1 -1
  167. package/dist/model/rFQDocumentBuyer.js +1 -1
  168. package/dist/model/rFQDocumentBuyerAllOfValidators.d.ts +1 -1
  169. package/dist/model/rFQDocumentBuyerAllOfValidators.js +1 -1
  170. package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +1 -1
  171. package/dist/model/rFQDocumentBuyerStatusFilter.js +1 -1
  172. package/dist/model/rFQDocumentFacilitator.d.ts +1 -1
  173. package/dist/model/rFQDocumentFacilitator.js +1 -1
  174. package/dist/model/rFQDocumentFacilitatorStatusFilter.d.ts +1 -1
  175. package/dist/model/rFQDocumentFacilitatorStatusFilter.js +1 -1
  176. package/dist/model/rFQDocumentFacilitatorValidatorsInner.d.ts +1 -1
  177. package/dist/model/rFQDocumentFacilitatorValidatorsInner.js +1 -1
  178. package/dist/model/rFQDocumentSeller.d.ts +1 -1
  179. package/dist/model/rFQDocumentSeller.js +1 -1
  180. package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +1 -1
  181. package/dist/model/rFQDocumentSellerAllOfValidators.js +1 -1
  182. package/dist/model/rFQDocumentSellerStatusFilter.d.ts +1 -1
  183. package/dist/model/rFQDocumentSellerStatusFilter.js +1 -1
  184. package/dist/model/rFQDocumentStatus.d.ts +1 -1
  185. package/dist/model/rFQDocumentStatus.js +1 -1
  186. package/dist/model/rFQDocumentUpdate.d.ts +1 -1
  187. package/dist/model/rFQDocumentUpdate.js +1 -1
  188. package/dist/model/rFQUpdatePayload.d.ts +1 -1
  189. package/dist/model/rFQUpdatePayload.js +1 -1
  190. package/dist/model/rFQWebhookEventType.d.ts +1 -1
  191. package/dist/model/rFQWebhookEventType.js +1 -1
  192. package/dist/model/rebalanceVaultWithEther.d.ts +32 -0
  193. package/dist/model/rebalanceVaultWithEther.js +33 -0
  194. package/dist/model/rebalanceVaultWithShares.d.ts +32 -0
  195. package/dist/model/rebalanceVaultWithShares.js +33 -0
  196. package/dist/model/recoverERC20.d.ts +40 -0
  197. package/dist/model/recoverERC20.js +43 -0
  198. package/dist/model/{webhookPayloadData.d.ts → renameVaultRequest.d.ts} +5 -13
  199. package/dist/model/renameVaultRequest.js +31 -0
  200. package/dist/model/revokeRole.d.ts +36 -0
  201. package/dist/model/revokeRole.js +38 -0
  202. package/dist/model/settlementSteps.d.ts +1 -1
  203. package/dist/model/settlementSteps.js +1 -1
  204. package/dist/model/stakeEthRequest.d.ts +31 -0
  205. package/dist/model/stakeEthRequest.js +31 -0
  206. package/dist/model/stakeEthResponse.d.ts +32 -0
  207. package/dist/model/stakeEthResponse.js +43 -0
  208. package/dist/model/stakeEthResponseDestructuredCallDataInner.d.ts +40 -0
  209. package/dist/model/stakeEthResponseDestructuredCallDataInner.js +43 -0
  210. package/dist/model/stakingRequest.d.ts +34 -0
  211. package/dist/model/stakingRequest.js +38 -0
  212. package/dist/model/stakingRequestStatus.d.ts +15 -0
  213. package/dist/model/stakingRequestStatus.js +13 -0
  214. package/dist/model/transaction.d.ts +14 -2
  215. package/dist/model/transaction.js +16 -1
  216. package/dist/model/triggerValidatorWithdrawals.d.ts +40 -0
  217. package/dist/model/triggerValidatorWithdrawals.js +43 -0
  218. package/dist/model/unwrapWstETH.d.ts +32 -0
  219. package/dist/model/unwrapWstETH.js +33 -0
  220. package/dist/model/{getSmartContractMinedBlocks200Response.d.ts → updateLinkedWalletNameRequest.d.ts} +4 -14
  221. package/dist/model/updateLinkedWalletNameRequest.js +28 -0
  222. package/dist/model/updateMemberRoleRequest.d.ts +37 -0
  223. package/dist/model/updateMemberRoleRequest.js +31 -0
  224. package/dist/model/updateOrganizationNameRequest.d.ts +31 -0
  225. package/dist/model/updateOrganizationNameRequest.js +31 -0
  226. package/dist/model/validateConsolidationRequestsResponse.d.ts +33 -0
  227. package/dist/model/validateConsolidationRequestsResponse.js +33 -0
  228. package/dist/model/validateConsolidationRequestsResponseConsolidationDetailsInner.d.ts +48 -0
  229. package/dist/model/validateConsolidationRequestsResponseConsolidationDetailsInner.js +53 -0
  230. package/dist/model/validatorDailyReward.d.ts +63 -0
  231. package/dist/model/validatorDailyReward.js +71 -0
  232. package/dist/model/validatorInfo.d.ts +14 -11
  233. package/dist/model/validatorInfo.js +16 -21
  234. package/dist/model/validatorKeyHolder.d.ts +1 -1
  235. package/dist/model/validatorKeyHolder.js +1 -1
  236. package/dist/model/validatorProvider.d.ts +15 -0
  237. package/dist/model/validatorProvider.js +13 -0
  238. package/dist/model/validatorRewardRaw.d.ts +73 -0
  239. package/dist/model/validatorRewardRaw.js +76 -0
  240. package/dist/model/validatorRewardsDaily.d.ts +50 -0
  241. package/dist/model/validatorRewardsDaily.js +48 -0
  242. package/dist/model/{getSmartContractMEVRewards200Response.d.ts → validatorRewardsDailyResponse.d.ts} +4 -13
  243. package/dist/model/validatorRewardsDailyResponse.js +43 -0
  244. package/dist/model/validatorRewardsRaw.d.ts +44 -0
  245. package/dist/model/validatorRewardsRaw.js +46 -0
  246. package/dist/model/validatorType.d.ts +1 -1
  247. package/dist/model/validatorType.js +1 -1
  248. package/dist/model/validatorWithdrawal.d.ts +7 -7
  249. package/dist/model/validatorWithdrawal.js +13 -13
  250. package/dist/model/vaultCreationStartResponse.d.ts +26 -0
  251. package/dist/model/vaultCreationStartResponse.js +28 -0
  252. package/dist/model/wallet.d.ts +1 -1
  253. package/dist/model/wallet.js +1 -1
  254. package/dist/model/webHookLookupAnswer.d.ts +1 -1
  255. package/dist/model/webHookLookupAnswer.js +1 -1
  256. package/dist/model/webhookPayload.d.ts +3 -3
  257. package/dist/model/webhookPayload.js +2 -2
  258. package/dist/model/webhookPayloadRFQAvailable.d.ts +1 -1
  259. package/dist/model/webhookPayloadRFQAvailable.js +1 -1
  260. package/dist/model/webhookPayloadRFQBidAccepted.d.ts +1 -1
  261. package/dist/model/webhookPayloadRFQBidAccepted.js +1 -1
  262. package/dist/model/webhookPayloadRFQBidAcceptedDetails.d.ts +1 -1
  263. package/dist/model/webhookPayloadRFQBidAcceptedDetails.js +1 -1
  264. package/dist/model/webhookPayloadRFQBidReceived.d.ts +1 -1
  265. package/dist/model/webhookPayloadRFQBidReceived.js +1 -1
  266. package/dist/model/webhookPayloadRFQBidReceivedDetails.d.ts +1 -1
  267. package/dist/model/webhookPayloadRFQBidReceivedDetails.js +1 -1
  268. package/dist/model/webhookPayloadRFQEscrowEvent.d.ts +1 -1
  269. package/dist/model/webhookPayloadRFQEscrowEvent.js +1 -1
  270. package/dist/model/webhookPayloadRFQEscrowEventDetails.d.ts +1 -1
  271. package/dist/model/webhookPayloadRFQEscrowEventDetails.js +1 -1
  272. package/dist/model/webhookPayloadRFQEscrowReleased.d.ts +1 -1
  273. package/dist/model/webhookPayloadRFQEscrowReleased.js +1 -1
  274. package/dist/model/webhookPayloadRFQEscrowReleasedDetails.d.ts +1 -1
  275. package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +1 -1
  276. package/dist/model/webhookPayloadRFQTransferProposalReceived.d.ts +1 -1
  277. package/dist/model/webhookPayloadRFQTransferProposalReceived.js +1 -1
  278. package/dist/model/webhookPayloadRFQTransferProposalReceivedDetails.d.ts +1 -1
  279. package/dist/model/webhookPayloadRFQTransferProposalReceivedDetails.js +1 -1
  280. package/dist/model/webhookPayloadRFQValidatorExited.d.ts +1 -1
  281. package/dist/model/webhookPayloadRFQValidatorExited.js +1 -1
  282. package/dist/model/webhookPayloadRFQValidatorExitedDetails.d.ts +1 -1
  283. package/dist/model/webhookPayloadRFQValidatorExitedDetails.js +1 -1
  284. package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +1 -1
  285. package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +1 -1
  286. package/dist/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.d.ts +1 -1
  287. package/dist/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.js +1 -1
  288. package/dist/model/webhookPayloadRFQWithdrawalClaimable.d.ts +1 -1
  289. package/dist/model/webhookPayloadRFQWithdrawalClaimable.js +1 -1
  290. package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.d.ts +1 -1
  291. package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.js +1 -1
  292. package/dist/model/webhookRegistration.d.ts +1 -1
  293. package/dist/model/webhookRegistration.js +1 -1
  294. package/dist/model/webhookRegistrationDetails.d.ts +1 -1
  295. package/dist/model/webhookRegistrationDetails.js +1 -1
  296. package/dist/model/withdrawFromVault.d.ts +36 -0
  297. package/dist/model/withdrawFromVault.js +38 -0
  298. package/dist/model/withdrawalClaimable.d.ts +1 -1
  299. package/dist/model/withdrawalClaimable.js +1 -1
  300. package/dist/model/withdrawalRecipientSettlement.d.ts +1 -1
  301. package/dist/model/withdrawalRecipientSettlement.js +1 -1
  302. package/dist/model/wrapStETH.d.ts +32 -0
  303. package/dist/model/wrapStETH.js +33 -0
  304. package/model/acceptedQuote.ts +1 -1
  305. package/model/accountEntity.ts +24 -8
  306. package/model/addLinkedWalletRequest.ts +1 -1
  307. package/model/apiKey.ts +10 -10
  308. package/model/approveStETH.ts +43 -0
  309. package/model/approveWstETH.ts +52 -0
  310. package/model/asset.ts +1 -1
  311. package/model/burnShares.ts +43 -0
  312. package/model/burnStETH.ts +43 -0
  313. package/model/burnWstETH.ts +43 -0
  314. package/model/collectERC20FromVault.ts +61 -0
  315. package/model/consolidateValidators.ts +52 -0
  316. package/model/consolidateValidatorsErrorResponse.ts +43 -0
  317. package/model/consolidateValidatorsResponse.ts +35 -0
  318. package/model/createLidoStakingContractsRequest.ts +46 -0
  319. package/model/createVaultRequest.ts +55 -0
  320. package/model/dailyRewardSummaryStats.ts +91 -0
  321. package/model/errorResponse.ts +1 -1
  322. package/model/errorWithTransactionResponse.ts +41 -0
  323. package/model/escrowPayment.ts +1 -1
  324. package/model/escrowReleased.ts +1 -1
  325. package/model/ethereumValidatorKey.ts +1 -1
  326. package/model/ethereumValidatorKeyKeystore.ts +1 -1
  327. package/model/ethereumValidatorKeyKeystoreCrypto.ts +1 -1
  328. package/model/ethereumValidatorKeyKeystoreCryptoChecksum.ts +1 -1
  329. package/model/ethereumValidatorKeyKeystoreCryptoCipher.ts +1 -1
  330. package/model/ethereumValidatorKeyKeystoreCryptoCipherParams.ts +1 -1
  331. package/model/ethereumValidatorKeyKeystoreCryptoKdf.ts +1 -1
  332. package/model/ethereumValidatorKeyKeystoreCryptoKdfParams.ts +1 -1
  333. package/model/exitEstimateBase.ts +1 -1
  334. package/model/exitEstimateSeller.ts +1 -1
  335. package/model/exitProposal.ts +1 -1
  336. package/model/fundVault.ts +43 -0
  337. package/model/generateApiKeyRequest.ts +1 -1
  338. package/model/getLazyOracleReportCallData200Response.ts +44 -0
  339. package/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.ts +67 -0
  340. package/model/getLazyOracleReportData200Response.ts +38 -0
  341. package/model/getLazyOracleReportData200ResponseReportData.ts +43 -0
  342. package/model/{getSmartContractTransactions200Response.ts → getLidoTransactions200Response.ts} +3 -3
  343. package/model/getQuarantineInfo200Response.ts +55 -0
  344. package/model/getStETHPerWstETHRate200Response.ts +34 -0
  345. package/model/getWithdrawalsResponse.ts +1 -1
  346. package/model/grantRole.ts +52 -0
  347. package/model/internalTransaction.ts +1 -1
  348. package/model/inviteMemberRequest.ts +54 -0
  349. package/model/lidoContracts.ts +60 -0
  350. package/model/{smartContractDetailedWhitelistedDepositorsInner.ts → lidoContractsDashboard.ts} +6 -15
  351. package/model/lidoContractsStakingVault.ts +34 -0
  352. package/model/lidoStakingContracts.ts +44 -0
  353. package/model/lidoStakingContractsWithData.ts +60 -0
  354. package/model/lidoStakingContractsWithDataVaultData.ts +223 -0
  355. package/model/mintShares.ts +52 -0
  356. package/model/mintStETH.ts +52 -0
  357. package/model/mintWstETH.ts +52 -0
  358. package/model/models.ts +281 -52
  359. package/model/organizationMember.ts +81 -0
  360. package/model/organizationNameResponse.ts +37 -0
  361. package/model/partialTransaction.ts +52 -0
  362. package/model/presignedExitKey.ts +1 -1
  363. package/model/presignedExitKeyMessage.ts +1 -1
  364. package/model/quote.ts +1 -1
  365. package/model/rFQBidFacilitator.ts +1 -1
  366. package/model/rFQBids.ts +1 -1
  367. package/model/rFQDocumentBase.ts +1 -1
  368. package/model/rFQDocumentBaseUniqueEscrowVault.ts +1 -1
  369. package/model/rFQDocumentBuyer.ts +1 -1
  370. package/model/rFQDocumentBuyerAllOfValidators.ts +1 -1
  371. package/model/rFQDocumentBuyerStatusFilter.ts +1 -1
  372. package/model/rFQDocumentFacilitator.ts +1 -1
  373. package/model/rFQDocumentFacilitatorStatusFilter.ts +1 -1
  374. package/model/rFQDocumentFacilitatorValidatorsInner.ts +1 -1
  375. package/model/rFQDocumentSeller.ts +1 -1
  376. package/model/rFQDocumentSellerAllOfValidators.ts +1 -1
  377. package/model/rFQDocumentSellerStatusFilter.ts +1 -1
  378. package/model/rFQDocumentStatus.ts +1 -1
  379. package/model/rFQDocumentUpdate.ts +1 -1
  380. package/model/rFQUpdatePayload.ts +1 -1
  381. package/model/rFQWebhookEventType.ts +1 -1
  382. package/model/rebalanceVaultWithEther.ts +43 -0
  383. package/model/rebalanceVaultWithShares.ts +43 -0
  384. package/model/recoverERC20.ts +61 -0
  385. package/model/renameVaultRequest.ts +37 -0
  386. package/model/revokeRole.ts +52 -0
  387. package/model/settlementSteps.ts +1 -1
  388. package/model/stakeEthRequest.ts +37 -0
  389. package/model/stakeEthResponse.ts +53 -0
  390. package/model/stakeEthResponseDestructuredCallDataInner.ts +61 -0
  391. package/model/stakingRequest.ts +50 -0
  392. package/model/stakingRequestStatus.ts +24 -0
  393. package/model/transaction.ts +29 -2
  394. package/model/triggerValidatorWithdrawals.ts +61 -0
  395. package/model/unwrapWstETH.ts +43 -0
  396. package/model/updateLinkedWalletNameRequest.ts +34 -0
  397. package/model/updateMemberRoleRequest.ts +45 -0
  398. package/model/updateOrganizationNameRequest.ts +37 -0
  399. package/model/validateConsolidationRequestsResponse.ts +44 -0
  400. package/model/validateConsolidationRequestsResponseConsolidationDetailsInner.ts +79 -0
  401. package/model/validatorDailyReward.ts +109 -0
  402. package/model/validatorInfo.ts +29 -31
  403. package/model/validatorKeyHolder.ts +1 -1
  404. package/model/validatorProvider.ts +22 -0
  405. package/model/validatorRewardRaw.ts +127 -0
  406. package/model/validatorRewardsDaily.ts +79 -0
  407. package/model/{getSmartContractMinedBlocks200Response.ts → validatorRewardsDailyResponse.ts} +8 -17
  408. package/model/{getSmartContractMEVRewards200Response.ts → validatorRewardsRaw.ts} +15 -9
  409. package/model/validatorType.ts +1 -1
  410. package/model/validatorWithdrawal.ts +19 -19
  411. package/model/vaultCreationStartResponse.ts +32 -0
  412. package/model/wallet.ts +1 -1
  413. package/model/webHookLookupAnswer.ts +1 -1
  414. package/model/webhookPayload.ts +4 -4
  415. package/model/webhookPayloadRFQAvailable.ts +1 -1
  416. package/model/webhookPayloadRFQBidAccepted.ts +1 -1
  417. package/model/webhookPayloadRFQBidAcceptedDetails.ts +1 -1
  418. package/model/webhookPayloadRFQBidReceived.ts +1 -1
  419. package/model/webhookPayloadRFQBidReceivedDetails.ts +1 -1
  420. package/model/webhookPayloadRFQEscrowEvent.ts +1 -1
  421. package/model/webhookPayloadRFQEscrowEventDetails.ts +1 -1
  422. package/model/webhookPayloadRFQEscrowReleased.ts +1 -1
  423. package/model/webhookPayloadRFQEscrowReleasedDetails.ts +1 -1
  424. package/model/webhookPayloadRFQTransferProposalReceived.ts +1 -1
  425. package/model/webhookPayloadRFQTransferProposalReceivedDetails.ts +1 -1
  426. package/model/webhookPayloadRFQValidatorExited.ts +1 -1
  427. package/model/webhookPayloadRFQValidatorExitedDetails.ts +1 -1
  428. package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +1 -1
  429. package/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.ts +1 -1
  430. package/model/webhookPayloadRFQWithdrawalClaimable.ts +1 -1
  431. package/model/webhookPayloadRFQWithdrawalClaimableDetails.ts +1 -1
  432. package/model/webhookRegistration.ts +1 -1
  433. package/model/webhookRegistrationDetails.ts +1 -1
  434. package/model/withdrawFromVault.ts +52 -0
  435. package/model/withdrawalClaimable.ts +1 -1
  436. package/model/withdrawalRecipientSettlement.ts +1 -1
  437. package/model/wrapStETH.ts +43 -0
  438. package/package.json +3 -3
  439. package/api/validatorMarketplaceFacilitatorApi.ts +0 -360
  440. package/api/validatorMarketplaceWebhooksApi.ts +0 -351
  441. package/dist/api/smartContractsApi.d.ts +0 -125
  442. package/dist/api/validatorMarketplaceBuyersApi.d.ts +0 -95
  443. package/dist/api/validatorMarketplaceFacilitatorApi.d.ts +0 -80
  444. package/dist/api/validatorMarketplaceSellersApi.d.ts +0 -122
  445. package/dist/api/validatorMarketplaceWebhooksApi.d.ts +0 -77
  446. package/dist/api/validatorMarketplaceWebhooksApi.js +0 -272
  447. package/dist/model/createRFQRequest.d.ts +0 -26
  448. package/dist/model/createRFQRequest.js +0 -33
  449. package/dist/model/getMarketplaceMetadata200Response.js +0 -38
  450. package/dist/model/getSmartContractMEVRewards200Response.js +0 -43
  451. package/dist/model/getSmartContractMinedBlocks200Response.js +0 -43
  452. package/dist/model/listAllRFQsForFacilitator200Response.d.ts +0 -38
  453. package/dist/model/listAllRFQsForFacilitator200Response.js +0 -43
  454. package/dist/model/mEVReward.d.ts +0 -45
  455. package/dist/model/mEVReward.js +0 -83
  456. package/dist/model/minedBlock.js +0 -48
  457. package/dist/model/provideEscrowHashForRFQDocumentRequest.d.ts +0 -25
  458. package/dist/model/provideEscrowHashForRFQDocumentRequest.js +0 -28
  459. package/dist/model/registerWithdrawalRecipientSettlementRequest.d.ts +0 -25
  460. package/dist/model/registerWithdrawalRecipientSettlementRequest.js +0 -28
  461. package/dist/model/smartContract.js +0 -56
  462. package/dist/model/smartContractDetailed.d.ts +0 -47
  463. package/dist/model/smartContractDetailed.js +0 -71
  464. package/dist/model/smartContractDetailedStats.d.ts +0 -72
  465. package/dist/model/smartContractDetailedStats.js +0 -83
  466. package/dist/model/smartContractDetailedWhitelistedDepositorsInner.d.ts +0 -27
  467. package/dist/model/smartContractDetailedWhitelistedDepositorsInner.js +0 -38
  468. package/dist/model/submittedQuote.d.ts +0 -26
  469. package/dist/model/submittedQuote.js +0 -33
  470. package/dist/model/webhookPayloadData.js +0 -41
  471. package/model/createRFQRequest.ts +0 -37
  472. package/model/getMarketplaceMetadata200Response.ts +0 -52
  473. package/model/listAllRFQsForFacilitator200Response.ts +0 -59
  474. package/model/mEVReward.ts +0 -106
  475. package/model/minedBlock.ts +0 -61
  476. package/model/provideEscrowHashForRFQDocumentRequest.ts +0 -31
  477. package/model/registerWithdrawalRecipientSettlementRequest.ts +0 -31
  478. package/model/smartContract.ts +0 -67
  479. package/model/smartContractDetailed.ts +0 -93
  480. package/model/smartContractDetailedStats.ts +0 -133
  481. package/model/submittedQuote.ts +0 -37
  482. package/model/webhookPayloadData.ts +0 -56
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -0,0 +1,52 @@
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
+ export class WithdrawFromVault {
15
+ /**
16
+ * Amount of Eth to withdraw denominated in Wei
17
+ */
18
+ 'ether': string;
19
+ /**
20
+ * Address of the receiving address
21
+ */
22
+ 'recipient': string;
23
+ /**
24
+ * Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
25
+ */
26
+ 'simulateAddress'?: string;
27
+
28
+ static discriminator: string | undefined = undefined;
29
+
30
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
31
+ {
32
+ "name": "ether",
33
+ "baseName": "ether",
34
+ "type": "string"
35
+ },
36
+ {
37
+ "name": "recipient",
38
+ "baseName": "recipient",
39
+ "type": "string"
40
+ },
41
+ {
42
+ "name": "simulateAddress",
43
+ "baseName": "simulateAddress",
44
+ "type": "string"
45
+ } ];
46
+
47
+ static getAttributeTypeMap() {
48
+ return WithdrawFromVault.attributeTypeMap;
49
+ }
50
+ }
51
+
52
+
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Northstake
3
- * Northstake api
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  *
@@ -0,0 +1,43 @@
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
+ export class WrapStETH {
15
+ /**
16
+ * Amount of STETH (18 decimals) to wrap into WSTETH.
17
+ */
18
+ 'stETHAmount': string;
19
+ /**
20
+ * Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
21
+ */
22
+ 'simulateAddress'?: string;
23
+
24
+ static discriminator: string | undefined = undefined;
25
+
26
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
27
+ {
28
+ "name": "stETHAmount",
29
+ "baseName": "stETHAmount",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "simulateAddress",
34
+ "baseName": "simulateAddress",
35
+ "type": "string"
36
+ } ];
37
+
38
+ static getAttributeTypeMap() {
39
+ return WrapStETH.attributeTypeMap;
40
+ }
41
+ }
42
+
43
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "Northstake SDK",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",
@@ -21,7 +21,7 @@
21
21
  "author": "Northstake build process <buildadmin@northstake.dk>",
22
22
  "license": "ISC",
23
23
  "devDependencies": {
24
- "@types/node": "^22.13.9",
25
- "typescript": "^5.8.2"
24
+ "@types/node": "^25.3.0",
25
+ "typescript": "^5.9.3"
26
26
  }
27
27
  }
@@ -1,360 +0,0 @@
1
- /**
2
- * Northstake
3
- * Northstake api
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 { GetMarketplaceMetadata200Response } from '../model/getMarketplaceMetadata200Response';
20
- import { ListAllRFQsForFacilitator200Response } from '../model/listAllRFQsForFacilitator200Response';
21
- import { RFQDocumentFacilitator } from '../model/rFQDocumentFacilitator';
22
-
23
- import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
24
- import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
25
-
26
- import { HttpError, RequestFile } from './apis';
27
-
28
- let defaultBasePath = 'https://api.northstake.dk/v1';
29
-
30
- // ===============================================
31
- // This file is autogenerated - Please do not edit
32
- // ===============================================
33
-
34
- export enum ValidatorMarketplaceFacilitatorApiApiKeys {
35
- ApiKeyAuth,
36
- }
37
-
38
-
39
-
40
- export class ValidatorMarketplaceFacilitatorApi {
41
- protected _basePath = defaultBasePath;
42
- protected _defaultHeaders : any = {};
43
- protected _useQuerystring : boolean = false;
44
-
45
- protected authentications = {
46
- 'default': <Authentication>new JWTAuth('your_api_key', 'your_private_key'),
47
- 'bearerTokenAuth': new HttpBearerAuth(),
48
- 'ApiKeyAuth': new ApiKeyAuth('header', 'x-api-key'),
49
- }
50
-
51
- protected interceptors: Interceptor[] = [];
52
-
53
- constructor(basePath?: string);
54
- constructor(basePathOrUsername: string, password?: string, basePath?: string) {
55
- if (password) {
56
- if (basePath) {
57
- this.basePath = basePath;
58
- }
59
- } else {
60
- if (basePathOrUsername) {
61
- this.basePath = basePathOrUsername
62
- }
63
- }
64
- }
65
-
66
- set useQuerystring(value: boolean) {
67
- this._useQuerystring = value;
68
- }
69
-
70
- set basePath(basePath: string) {
71
- this._basePath = basePath;
72
- }
73
-
74
- set defaultHeaders(defaultHeaders: any) {
75
- this._defaultHeaders = defaultHeaders;
76
- }
77
-
78
- get defaultHeaders() {
79
- return this._defaultHeaders;
80
- }
81
-
82
- get basePath() {
83
- return this._basePath;
84
- }
85
-
86
- public setDefaultAuthentication(auth: Authentication) {
87
- this.authentications.default = auth;
88
- }
89
-
90
- public setApiKey(key: ValidatorMarketplaceFacilitatorApiApiKeys, value: string) {
91
- (this.authentications as any)[ValidatorMarketplaceFacilitatorApiApiKeys[key]].apiKey = value;
92
- }
93
-
94
- set accessToken(accessToken: string | (() => string)) {
95
- this.authentications.bearerTokenAuth.accessToken = accessToken;
96
- }
97
-
98
- public addInterceptor(interceptor: Interceptor) {
99
- this.interceptors.push(interceptor);
100
- }
101
-
102
- /**
103
- * Retrieves metadata information for the entire marketplace.
104
- * @summary Get metadata for the entire marketplace
105
- */
106
-
107
-
108
-
109
-
110
-
111
- public async getMarketplaceMetadata (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: GetMarketplaceMetadata200Response, status: number }> {
112
-
113
- const localVarPath = this.basePath + '/validatorMarketplace/facilitator/metadata';
114
-
115
- let localVarQueryParameters: any = {};
116
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
117
- const produces = ['application/json'];
118
- if (produces.indexOf('application/json') >= 0) {
119
- localVarHeaderParams.Accept = 'application/json';
120
- } else {
121
- localVarHeaderParams.Accept = produces.join(',');
122
- }
123
- let localVarFormParams: any = {};
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
- (<any>Object).assign(localVarHeaderParams, options.headers);
134
-
135
- let localVarUseFormData = false;
136
-
137
-
138
-
139
- let localVarRequestOptions: localVarRequest.Options = {
140
- method: 'GET',
141
- qs: localVarQueryParameters,
142
- headers: localVarHeaderParams,
143
- uri: localVarPath,
144
- useQuerystring: this._useQuerystring,
145
- json: true,
146
- };
147
-
148
- let authenticationPromise = Promise.resolve();
149
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
150
-
151
- let interceptorPromise = authenticationPromise;
152
- for (const interceptor of this.interceptors) {
153
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
154
- }
155
-
156
- return interceptorPromise.then(() => {
157
- if (Object.keys(localVarFormParams).length) {
158
- if (localVarUseFormData) {
159
- (<any>localVarRequestOptions).formData = localVarFormParams;
160
- } else {
161
- localVarRequestOptions.form = localVarFormParams;
162
- }
163
- }
164
- return new Promise<{ body: GetMarketplaceMetadata200Response, status: number }>((resolve, reject) => {
165
- localVarRequest(localVarRequestOptions, (error, response, body) => {
166
- if (error) {
167
- console.error('API call error:', error);
168
- reject(error);
169
- } else {
170
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
171
- body = ObjectSerializer.deserialize(body, "GetMarketplaceMetadata200Response");
172
- resolve({ body: body, status: response.statusCode });
173
- } else {
174
- console.error('API response error:', response.statusCode);
175
- resolve({ body: body, status: response.statusCode });
176
- }
177
- }
178
- });
179
- });
180
- } )
181
- }
182
- /**
183
- * Retrieves detailed information about an RFQ by its ID.
184
- * @summary Get detailed information about a specific RFQ
185
- * @param rfqId The unique identifier of the RFQ
186
- */
187
-
188
-
189
-
190
-
191
-
192
- public async getRFQDetailsForFacilitator (rfqId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: RFQDocumentFacilitator, status: number }> {
193
-
194
- const localVarPath = this.basePath + '/validatorMarketplace/facilitator/{rfqId}'
195
- .replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
196
-
197
- let localVarQueryParameters: any = {};
198
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
199
- const produces = ['application/json'];
200
- if (produces.indexOf('application/json') >= 0) {
201
- localVarHeaderParams.Accept = 'application/json';
202
- } else {
203
- localVarHeaderParams.Accept = produces.join(',');
204
- }
205
- let localVarFormParams: any = {};
206
-
207
-
208
- // Verify required parameter 'rfqId' is not null or undefined
209
- if (rfqId === null || rfqId === undefined) {
210
- throw new Error('Required parameter "rfqId" was null or undefined when calling getRFQDetailsForFacilitator.');
211
- }
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
- (<any>Object).assign(localVarHeaderParams, options.headers);
220
-
221
- let localVarUseFormData = false;
222
-
223
-
224
-
225
- let localVarRequestOptions: localVarRequest.Options = {
226
- method: 'GET',
227
- qs: localVarQueryParameters,
228
- headers: localVarHeaderParams,
229
- uri: localVarPath,
230
- useQuerystring: this._useQuerystring,
231
- json: true,
232
- };
233
-
234
- let authenticationPromise = Promise.resolve();
235
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
236
-
237
- let interceptorPromise = authenticationPromise;
238
- for (const interceptor of this.interceptors) {
239
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
240
- }
241
-
242
- return interceptorPromise.then(() => {
243
- if (Object.keys(localVarFormParams).length) {
244
- if (localVarUseFormData) {
245
- (<any>localVarRequestOptions).formData = localVarFormParams;
246
- } else {
247
- localVarRequestOptions.form = localVarFormParams;
248
- }
249
- }
250
- return new Promise<{ body: RFQDocumentFacilitator, status: number }>((resolve, reject) => {
251
- localVarRequest(localVarRequestOptions, (error, response, body) => {
252
- if (error) {
253
- console.error('API call error:', error);
254
- reject(error);
255
- } else {
256
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
257
- body = ObjectSerializer.deserialize(body, "RFQDocumentFacilitator");
258
- resolve({ body: body, status: response.statusCode });
259
- } else {
260
- console.error('API response error:', response.statusCode);
261
- resolve({ body: body, status: response.statusCode });
262
- }
263
- }
264
- });
265
- });
266
- } )
267
- }
268
- /**
269
- * Retrieves a list of all RFQs available in the Northstake marketplace.
270
- * @summary List all RFQs in the marketplace
271
- * @param status
272
- * @param page
273
- * @param limit
274
- */
275
-
276
-
277
-
278
-
279
-
280
- public async listAllRFQsForFacilitator (status?: 'active' | 'expired' | 'finished', page?: number, limit?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: ListAllRFQsForFacilitator200Response, status: number }> {
281
-
282
- const localVarPath = this.basePath + '/validatorMarketplace/facilitator';
283
-
284
- let localVarQueryParameters: any = {};
285
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
286
- const produces = ['application/json'];
287
- if (produces.indexOf('application/json') >= 0) {
288
- localVarHeaderParams.Accept = 'application/json';
289
- } else {
290
- localVarHeaderParams.Accept = produces.join(',');
291
- }
292
- let localVarFormParams: any = {};
293
-
294
-
295
-
296
-
297
-
298
- if (status !== undefined) {
299
- localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "'active' | 'expired' | 'finished'");
300
- }
301
- if (page !== undefined) {
302
- localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number");
303
- }
304
- if (limit !== undefined) {
305
- localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
306
- }
307
-
308
-
309
-
310
-
311
- (<any>Object).assign(localVarHeaderParams, options.headers);
312
-
313
- let localVarUseFormData = false;
314
-
315
-
316
-
317
- let localVarRequestOptions: localVarRequest.Options = {
318
- method: 'GET',
319
- qs: localVarQueryParameters,
320
- headers: localVarHeaderParams,
321
- uri: localVarPath,
322
- useQuerystring: this._useQuerystring,
323
- json: true,
324
- };
325
-
326
- let authenticationPromise = Promise.resolve();
327
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
328
-
329
- let interceptorPromise = authenticationPromise;
330
- for (const interceptor of this.interceptors) {
331
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
332
- }
333
-
334
- return interceptorPromise.then(() => {
335
- if (Object.keys(localVarFormParams).length) {
336
- if (localVarUseFormData) {
337
- (<any>localVarRequestOptions).formData = localVarFormParams;
338
- } else {
339
- localVarRequestOptions.form = localVarFormParams;
340
- }
341
- }
342
- return new Promise<{ body: ListAllRFQsForFacilitator200Response, status: number }>((resolve, reject) => {
343
- localVarRequest(localVarRequestOptions, (error, response, body) => {
344
- if (error) {
345
- console.error('API call error:', error);
346
- reject(error);
347
- } else {
348
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
349
- body = ObjectSerializer.deserialize(body, "ListAllRFQsForFacilitator200Response");
350
- resolve({ body: body, status: response.statusCode });
351
- } else {
352
- console.error('API response error:', response.statusCode);
353
- resolve({ body: body, status: response.statusCode });
354
- }
355
- }
356
- });
357
- });
358
- } )
359
- }
360
- }