@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.
- package/.openapi-generator/FILES +66 -21
- package/.openapi-generator/VERSION +1 -1
- package/api/accountApi.ts +1 -1
- package/api/accountApiKeysApi.ts +1 -1
- package/api/apis.ts +11 -11
- package/api/{validatorMarketplaceSellersApi.ts → lidoReadApi.ts} +105 -91
- package/api/{smartContractsApi.ts → lidoRewardsApi.ts} +106 -88
- package/api/lidoStakingVaultsApi.ts +536 -0
- package/api/lidoWriteApi.ts +2473 -0
- package/api/linkedWalletsApi.ts +93 -1
- package/api/{validatorMarketplaceBuyersApi.ts → organizationApi.ts} +140 -62
- package/api/validatorsApi.ts +27 -110
- package/api.ts +81 -36
- package/dist/api/accountApi.d.ts +1 -1
- package/dist/api/accountApi.js +1 -1
- package/dist/api/accountApiKeysApi.d.ts +1 -1
- package/dist/api/accountApiKeysApi.js +1 -1
- package/dist/api/apis.d.ts +11 -11
- package/dist/api/apis.js +11 -11
- package/dist/api/lidoReadApi.d.ts +138 -0
- package/dist/api/{validatorMarketplaceSellersApi.js → lidoReadApi.js} +82 -82
- package/dist/api/lidoRewardsApi.d.ts +135 -0
- package/dist/api/{smartContractsApi.js → lidoRewardsApi.js} +83 -71
- package/dist/api/lidoStakingVaultsApi.d.ts +108 -0
- package/dist/api/{validatorMarketplaceFacilitatorApi.js → lidoStakingVaultsApi.js} +174 -40
- package/dist/api/lidoWriteApi.d.ts +404 -0
- package/dist/api/lidoWriteApi.js +1931 -0
- package/dist/api/linkedWalletsApi.d.ts +16 -1
- package/dist/api/linkedWalletsApi.js +73 -1
- package/dist/api/organizationApi.d.ts +107 -0
- package/dist/api/{validatorMarketplaceBuyersApi.js → organizationApi.js} +115 -57
- package/dist/api/validatorsApi.d.ts +11 -26
- package/dist/api/validatorsApi.js +25 -87
- package/dist/api.d.ts +71 -26
- package/dist/api.js +76 -31
- package/dist/model/acceptedQuote.d.ts +1 -1
- package/dist/model/acceptedQuote.js +1 -1
- package/dist/model/accountEntity.d.ts +11 -3
- package/dist/model/accountEntity.js +6 -6
- package/dist/model/addLinkedWalletRequest.d.ts +1 -1
- package/dist/model/addLinkedWalletRequest.js +1 -1
- package/dist/model/apiKey.d.ts +4 -4
- package/dist/model/apiKey.js +7 -7
- package/dist/model/approveStETH.d.ts +32 -0
- package/dist/model/approveStETH.js +33 -0
- package/dist/model/approveWstETH.d.ts +36 -0
- package/dist/model/approveWstETH.js +38 -0
- package/dist/model/asset.d.ts +1 -1
- package/dist/model/asset.js +1 -1
- package/dist/model/burnShares.d.ts +32 -0
- package/dist/model/burnShares.js +33 -0
- package/dist/model/burnStETH.d.ts +32 -0
- package/dist/model/burnStETH.js +33 -0
- package/dist/model/burnWstETH.d.ts +32 -0
- package/dist/model/burnWstETH.js +33 -0
- package/dist/model/collectERC20FromVault.d.ts +40 -0
- package/dist/model/collectERC20FromVault.js +43 -0
- package/dist/model/consolidateValidators.d.ts +36 -0
- package/dist/model/consolidateValidators.js +38 -0
- package/dist/model/consolidateValidatorsErrorResponse.d.ts +32 -0
- package/dist/model/consolidateValidatorsErrorResponse.js +33 -0
- package/dist/model/consolidateValidatorsResponse.d.ts +29 -0
- package/dist/model/consolidateValidatorsResponse.js +28 -0
- package/dist/model/createLidoStakingContractsRequest.d.ts +35 -0
- package/dist/model/createLidoStakingContractsRequest.js +36 -0
- package/dist/model/createVaultRequest.d.ts +39 -0
- package/dist/model/createVaultRequest.js +41 -0
- package/dist/model/dailyRewardSummaryStats.d.ts +55 -0
- package/dist/model/dailyRewardSummaryStats.js +61 -0
- package/dist/model/errorResponse.d.ts +1 -1
- package/dist/model/errorResponse.js +1 -1
- package/dist/model/errorWithTransactionResponse.d.ts +30 -0
- package/dist/model/errorWithTransactionResponse.js +36 -0
- package/dist/model/escrowPayment.d.ts +1 -1
- package/dist/model/escrowPayment.js +1 -1
- package/dist/model/escrowReleased.d.ts +1 -1
- package/dist/model/escrowReleased.js +1 -1
- package/dist/model/ethereumValidatorKey.d.ts +1 -1
- package/dist/model/ethereumValidatorKey.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystore.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystore.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCrypto.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCrypto.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipherParams.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipherParams.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.js +1 -1
- package/dist/model/exitEstimateBase.d.ts +1 -1
- package/dist/model/exitEstimateBase.js +1 -1
- package/dist/model/exitEstimateSeller.d.ts +1 -1
- package/dist/model/exitEstimateSeller.js +1 -1
- package/dist/model/exitProposal.d.ts +1 -1
- package/dist/model/exitProposal.js +1 -1
- package/dist/model/fundVault.d.ts +32 -0
- package/dist/model/fundVault.js +33 -0
- package/dist/model/generateApiKeyRequest.d.ts +1 -1
- package/dist/model/generateApiKeyRequest.js +1 -1
- package/dist/model/getLazyOracleReportCallData200Response.d.ts +28 -0
- package/dist/model/getLazyOracleReportCallData200Response.js +38 -0
- package/dist/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.d.ts +31 -0
- package/dist/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.js +58 -0
- package/dist/model/getLazyOracleReportData200Response.d.ts +27 -0
- package/dist/model/getLazyOracleReportData200Response.js +33 -0
- package/dist/model/getLazyOracleReportData200ResponseReportData.d.ts +27 -0
- package/dist/model/getLazyOracleReportData200ResponseReportData.js +38 -0
- package/dist/model/{getSmartContractTransactions200Response.d.ts → getLidoTransactions200Response.d.ts} +2 -2
- package/dist/model/{getSmartContractTransactions200Response.js → getLidoTransactions200Response.js} +7 -7
- package/dist/model/getQuarantineInfo200Response.d.ts +29 -0
- package/dist/model/getQuarantineInfo200Response.js +48 -0
- package/dist/model/{getMarketplaceMetadata200Response.d.ts → getStETHPerWstETHRate200Response.d.ts} +4 -12
- package/dist/model/getStETHPerWstETHRate200Response.js +28 -0
- package/dist/model/getWithdrawalsResponse.d.ts +1 -1
- package/dist/model/getWithdrawalsResponse.js +1 -1
- package/dist/model/grantRole.d.ts +36 -0
- package/dist/model/grantRole.js +38 -0
- package/dist/model/internalTransaction.d.ts +1 -1
- package/dist/model/internalTransaction.js +1 -1
- package/dist/model/inviteMemberRequest.d.ts +41 -0
- package/dist/model/inviteMemberRequest.js +36 -0
- package/dist/model/lidoContracts.d.ts +39 -0
- package/dist/model/lidoContracts.js +46 -0
- package/dist/model/{minedBlock.d.ts → lidoContractsDashboard.d.ts} +3 -10
- package/dist/model/lidoContractsDashboard.js +28 -0
- package/dist/model/{smartContract.d.ts → lidoContractsStakingVault.d.ts} +5 -13
- package/dist/model/lidoContractsStakingVault.js +28 -0
- package/dist/model/lidoStakingContracts.d.ts +33 -0
- package/dist/model/lidoStakingContracts.js +36 -0
- package/dist/model/lidoStakingContractsWithData.d.ts +39 -0
- package/dist/model/lidoStakingContractsWithData.js +46 -0
- package/dist/model/lidoStakingContractsWithDataVaultData.d.ts +112 -0
- package/dist/model/lidoStakingContractsWithDataVaultData.js +133 -0
- package/dist/model/mintShares.d.ts +36 -0
- package/dist/model/mintShares.js +38 -0
- package/dist/model/mintStETH.d.ts +36 -0
- package/dist/model/mintStETH.js +38 -0
- package/dist/model/mintWstETH.d.ts +36 -0
- package/dist/model/mintWstETH.js +38 -0
- package/dist/model/models.d.ts +61 -16
- package/dist/model/models.js +185 -48
- package/dist/model/organizationMember.d.ts +53 -0
- package/dist/model/organizationMember.js +51 -0
- package/dist/model/organizationNameResponse.d.ts +31 -0
- package/dist/model/organizationNameResponse.js +31 -0
- package/dist/model/partialTransaction.d.ts +31 -0
- package/dist/model/partialTransaction.js +46 -0
- package/dist/model/presignedExitKey.d.ts +1 -1
- package/dist/model/presignedExitKey.js +1 -1
- package/dist/model/presignedExitKeyMessage.d.ts +1 -1
- package/dist/model/presignedExitKeyMessage.js +1 -1
- package/dist/model/quote.d.ts +1 -1
- package/dist/model/quote.js +1 -1
- package/dist/model/rFQBidFacilitator.d.ts +1 -1
- package/dist/model/rFQBidFacilitator.js +1 -1
- package/dist/model/rFQBids.d.ts +1 -1
- package/dist/model/rFQBids.js +1 -1
- package/dist/model/rFQDocumentBase.d.ts +1 -1
- package/dist/model/rFQDocumentBase.js +1 -1
- package/dist/model/rFQDocumentBaseUniqueEscrowVault.d.ts +1 -1
- package/dist/model/rFQDocumentBaseUniqueEscrowVault.js +1 -1
- package/dist/model/rFQDocumentBuyer.d.ts +1 -1
- package/dist/model/rFQDocumentBuyer.js +1 -1
- package/dist/model/rFQDocumentBuyerAllOfValidators.d.ts +1 -1
- package/dist/model/rFQDocumentBuyerAllOfValidators.js +1 -1
- package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +1 -1
- package/dist/model/rFQDocumentBuyerStatusFilter.js +1 -1
- package/dist/model/rFQDocumentFacilitator.d.ts +1 -1
- package/dist/model/rFQDocumentFacilitator.js +1 -1
- package/dist/model/rFQDocumentFacilitatorStatusFilter.d.ts +1 -1
- package/dist/model/rFQDocumentFacilitatorStatusFilter.js +1 -1
- package/dist/model/rFQDocumentFacilitatorValidatorsInner.d.ts +1 -1
- package/dist/model/rFQDocumentFacilitatorValidatorsInner.js +1 -1
- package/dist/model/rFQDocumentSeller.d.ts +1 -1
- package/dist/model/rFQDocumentSeller.js +1 -1
- package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +1 -1
- package/dist/model/rFQDocumentSellerAllOfValidators.js +1 -1
- package/dist/model/rFQDocumentSellerStatusFilter.d.ts +1 -1
- package/dist/model/rFQDocumentSellerStatusFilter.js +1 -1
- package/dist/model/rFQDocumentStatus.d.ts +1 -1
- package/dist/model/rFQDocumentStatus.js +1 -1
- package/dist/model/rFQDocumentUpdate.d.ts +1 -1
- package/dist/model/rFQDocumentUpdate.js +1 -1
- package/dist/model/rFQUpdatePayload.d.ts +1 -1
- package/dist/model/rFQUpdatePayload.js +1 -1
- package/dist/model/rFQWebhookEventType.d.ts +1 -1
- package/dist/model/rFQWebhookEventType.js +1 -1
- package/dist/model/rebalanceVaultWithEther.d.ts +32 -0
- package/dist/model/rebalanceVaultWithEther.js +33 -0
- package/dist/model/rebalanceVaultWithShares.d.ts +32 -0
- package/dist/model/rebalanceVaultWithShares.js +33 -0
- package/dist/model/recoverERC20.d.ts +40 -0
- package/dist/model/recoverERC20.js +43 -0
- package/dist/model/{webhookPayloadData.d.ts → renameVaultRequest.d.ts} +5 -13
- package/dist/model/renameVaultRequest.js +31 -0
- package/dist/model/revokeRole.d.ts +36 -0
- package/dist/model/revokeRole.js +38 -0
- package/dist/model/settlementSteps.d.ts +1 -1
- package/dist/model/settlementSteps.js +1 -1
- package/dist/model/stakeEthRequest.d.ts +31 -0
- package/dist/model/stakeEthRequest.js +31 -0
- package/dist/model/stakeEthResponse.d.ts +32 -0
- package/dist/model/stakeEthResponse.js +43 -0
- package/dist/model/stakeEthResponseDestructuredCallDataInner.d.ts +40 -0
- package/dist/model/stakeEthResponseDestructuredCallDataInner.js +43 -0
- package/dist/model/stakingRequest.d.ts +34 -0
- package/dist/model/stakingRequest.js +38 -0
- package/dist/model/stakingRequestStatus.d.ts +15 -0
- package/dist/model/stakingRequestStatus.js +13 -0
- package/dist/model/transaction.d.ts +14 -2
- package/dist/model/transaction.js +16 -1
- package/dist/model/triggerValidatorWithdrawals.d.ts +40 -0
- package/dist/model/triggerValidatorWithdrawals.js +43 -0
- package/dist/model/unwrapWstETH.d.ts +32 -0
- package/dist/model/unwrapWstETH.js +33 -0
- package/dist/model/{getSmartContractMinedBlocks200Response.d.ts → updateLinkedWalletNameRequest.d.ts} +4 -14
- package/dist/model/updateLinkedWalletNameRequest.js +28 -0
- package/dist/model/updateMemberRoleRequest.d.ts +37 -0
- package/dist/model/updateMemberRoleRequest.js +31 -0
- package/dist/model/updateOrganizationNameRequest.d.ts +31 -0
- package/dist/model/updateOrganizationNameRequest.js +31 -0
- package/dist/model/validateConsolidationRequestsResponse.d.ts +33 -0
- package/dist/model/validateConsolidationRequestsResponse.js +33 -0
- package/dist/model/validateConsolidationRequestsResponseConsolidationDetailsInner.d.ts +48 -0
- package/dist/model/validateConsolidationRequestsResponseConsolidationDetailsInner.js +53 -0
- package/dist/model/validatorDailyReward.d.ts +63 -0
- package/dist/model/validatorDailyReward.js +71 -0
- package/dist/model/validatorInfo.d.ts +14 -11
- package/dist/model/validatorInfo.js +16 -21
- package/dist/model/validatorKeyHolder.d.ts +1 -1
- package/dist/model/validatorKeyHolder.js +1 -1
- package/dist/model/validatorProvider.d.ts +15 -0
- package/dist/model/validatorProvider.js +13 -0
- package/dist/model/validatorRewardRaw.d.ts +73 -0
- package/dist/model/validatorRewardRaw.js +76 -0
- package/dist/model/validatorRewardsDaily.d.ts +50 -0
- package/dist/model/validatorRewardsDaily.js +48 -0
- package/dist/model/{getSmartContractMEVRewards200Response.d.ts → validatorRewardsDailyResponse.d.ts} +4 -13
- package/dist/model/validatorRewardsDailyResponse.js +43 -0
- package/dist/model/validatorRewardsRaw.d.ts +44 -0
- package/dist/model/validatorRewardsRaw.js +46 -0
- package/dist/model/validatorType.d.ts +1 -1
- package/dist/model/validatorType.js +1 -1
- package/dist/model/validatorWithdrawal.d.ts +7 -7
- package/dist/model/validatorWithdrawal.js +13 -13
- package/dist/model/vaultCreationStartResponse.d.ts +26 -0
- package/dist/model/vaultCreationStartResponse.js +28 -0
- package/dist/model/wallet.d.ts +1 -1
- package/dist/model/wallet.js +1 -1
- package/dist/model/webHookLookupAnswer.d.ts +1 -1
- package/dist/model/webHookLookupAnswer.js +1 -1
- package/dist/model/webhookPayload.d.ts +3 -3
- package/dist/model/webhookPayload.js +2 -2
- package/dist/model/webhookPayloadRFQAvailable.d.ts +1 -1
- package/dist/model/webhookPayloadRFQAvailable.js +1 -1
- package/dist/model/webhookPayloadRFQBidAccepted.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidAccepted.js +1 -1
- package/dist/model/webhookPayloadRFQBidAcceptedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidAcceptedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQBidReceived.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidReceived.js +1 -1
- package/dist/model/webhookPayloadRFQBidReceivedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidReceivedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowEvent.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowEvent.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowEventDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowEventDetails.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleased.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleased.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceived.d.ts +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceived.js +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceivedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceivedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorExited.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorExited.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorExitedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorExitedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.js +1 -1
- package/dist/model/webhookPayloadRFQWithdrawalClaimable.d.ts +1 -1
- package/dist/model/webhookPayloadRFQWithdrawalClaimable.js +1 -1
- package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.js +1 -1
- package/dist/model/webhookRegistration.d.ts +1 -1
- package/dist/model/webhookRegistration.js +1 -1
- package/dist/model/webhookRegistrationDetails.d.ts +1 -1
- package/dist/model/webhookRegistrationDetails.js +1 -1
- package/dist/model/withdrawFromVault.d.ts +36 -0
- package/dist/model/withdrawFromVault.js +38 -0
- package/dist/model/withdrawalClaimable.d.ts +1 -1
- package/dist/model/withdrawalClaimable.js +1 -1
- package/dist/model/withdrawalRecipientSettlement.d.ts +1 -1
- package/dist/model/withdrawalRecipientSettlement.js +1 -1
- package/dist/model/wrapStETH.d.ts +32 -0
- package/dist/model/wrapStETH.js +33 -0
- package/model/acceptedQuote.ts +1 -1
- package/model/accountEntity.ts +24 -8
- package/model/addLinkedWalletRequest.ts +1 -1
- package/model/apiKey.ts +10 -10
- package/model/approveStETH.ts +43 -0
- package/model/approveWstETH.ts +52 -0
- package/model/asset.ts +1 -1
- package/model/burnShares.ts +43 -0
- package/model/burnStETH.ts +43 -0
- package/model/burnWstETH.ts +43 -0
- package/model/collectERC20FromVault.ts +61 -0
- package/model/consolidateValidators.ts +52 -0
- package/model/consolidateValidatorsErrorResponse.ts +43 -0
- package/model/consolidateValidatorsResponse.ts +35 -0
- package/model/createLidoStakingContractsRequest.ts +46 -0
- package/model/createVaultRequest.ts +55 -0
- package/model/dailyRewardSummaryStats.ts +91 -0
- package/model/errorResponse.ts +1 -1
- package/model/errorWithTransactionResponse.ts +41 -0
- package/model/escrowPayment.ts +1 -1
- package/model/escrowReleased.ts +1 -1
- package/model/ethereumValidatorKey.ts +1 -1
- package/model/ethereumValidatorKeyKeystore.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCrypto.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoChecksum.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoCipher.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoCipherParams.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoKdf.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoKdfParams.ts +1 -1
- package/model/exitEstimateBase.ts +1 -1
- package/model/exitEstimateSeller.ts +1 -1
- package/model/exitProposal.ts +1 -1
- package/model/fundVault.ts +43 -0
- package/model/generateApiKeyRequest.ts +1 -1
- package/model/getLazyOracleReportCallData200Response.ts +44 -0
- package/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.ts +67 -0
- package/model/getLazyOracleReportData200Response.ts +38 -0
- package/model/getLazyOracleReportData200ResponseReportData.ts +43 -0
- package/model/{getSmartContractTransactions200Response.ts → getLidoTransactions200Response.ts} +3 -3
- package/model/getQuarantineInfo200Response.ts +55 -0
- package/model/getStETHPerWstETHRate200Response.ts +34 -0
- package/model/getWithdrawalsResponse.ts +1 -1
- package/model/grantRole.ts +52 -0
- package/model/internalTransaction.ts +1 -1
- package/model/inviteMemberRequest.ts +54 -0
- package/model/lidoContracts.ts +60 -0
- package/model/{smartContractDetailedWhitelistedDepositorsInner.ts → lidoContractsDashboard.ts} +6 -15
- package/model/lidoContractsStakingVault.ts +34 -0
- package/model/lidoStakingContracts.ts +44 -0
- package/model/lidoStakingContractsWithData.ts +60 -0
- package/model/lidoStakingContractsWithDataVaultData.ts +223 -0
- package/model/mintShares.ts +52 -0
- package/model/mintStETH.ts +52 -0
- package/model/mintWstETH.ts +52 -0
- package/model/models.ts +281 -52
- package/model/organizationMember.ts +81 -0
- package/model/organizationNameResponse.ts +37 -0
- package/model/partialTransaction.ts +52 -0
- package/model/presignedExitKey.ts +1 -1
- package/model/presignedExitKeyMessage.ts +1 -1
- package/model/quote.ts +1 -1
- package/model/rFQBidFacilitator.ts +1 -1
- package/model/rFQBids.ts +1 -1
- package/model/rFQDocumentBase.ts +1 -1
- package/model/rFQDocumentBaseUniqueEscrowVault.ts +1 -1
- package/model/rFQDocumentBuyer.ts +1 -1
- package/model/rFQDocumentBuyerAllOfValidators.ts +1 -1
- package/model/rFQDocumentBuyerStatusFilter.ts +1 -1
- package/model/rFQDocumentFacilitator.ts +1 -1
- package/model/rFQDocumentFacilitatorStatusFilter.ts +1 -1
- package/model/rFQDocumentFacilitatorValidatorsInner.ts +1 -1
- package/model/rFQDocumentSeller.ts +1 -1
- package/model/rFQDocumentSellerAllOfValidators.ts +1 -1
- package/model/rFQDocumentSellerStatusFilter.ts +1 -1
- package/model/rFQDocumentStatus.ts +1 -1
- package/model/rFQDocumentUpdate.ts +1 -1
- package/model/rFQUpdatePayload.ts +1 -1
- package/model/rFQWebhookEventType.ts +1 -1
- package/model/rebalanceVaultWithEther.ts +43 -0
- package/model/rebalanceVaultWithShares.ts +43 -0
- package/model/recoverERC20.ts +61 -0
- package/model/renameVaultRequest.ts +37 -0
- package/model/revokeRole.ts +52 -0
- package/model/settlementSteps.ts +1 -1
- package/model/stakeEthRequest.ts +37 -0
- package/model/stakeEthResponse.ts +53 -0
- package/model/stakeEthResponseDestructuredCallDataInner.ts +61 -0
- package/model/stakingRequest.ts +50 -0
- package/model/stakingRequestStatus.ts +24 -0
- package/model/transaction.ts +29 -2
- package/model/triggerValidatorWithdrawals.ts +61 -0
- package/model/unwrapWstETH.ts +43 -0
- package/model/updateLinkedWalletNameRequest.ts +34 -0
- package/model/updateMemberRoleRequest.ts +45 -0
- package/model/updateOrganizationNameRequest.ts +37 -0
- package/model/validateConsolidationRequestsResponse.ts +44 -0
- package/model/validateConsolidationRequestsResponseConsolidationDetailsInner.ts +79 -0
- package/model/validatorDailyReward.ts +109 -0
- package/model/validatorInfo.ts +29 -31
- package/model/validatorKeyHolder.ts +1 -1
- package/model/validatorProvider.ts +22 -0
- package/model/validatorRewardRaw.ts +127 -0
- package/model/validatorRewardsDaily.ts +79 -0
- package/model/{getSmartContractMinedBlocks200Response.ts → validatorRewardsDailyResponse.ts} +8 -17
- package/model/{getSmartContractMEVRewards200Response.ts → validatorRewardsRaw.ts} +15 -9
- package/model/validatorType.ts +1 -1
- package/model/validatorWithdrawal.ts +19 -19
- package/model/vaultCreationStartResponse.ts +32 -0
- package/model/wallet.ts +1 -1
- package/model/webHookLookupAnswer.ts +1 -1
- package/model/webhookPayload.ts +4 -4
- package/model/webhookPayloadRFQAvailable.ts +1 -1
- package/model/webhookPayloadRFQBidAccepted.ts +1 -1
- package/model/webhookPayloadRFQBidAcceptedDetails.ts +1 -1
- package/model/webhookPayloadRFQBidReceived.ts +1 -1
- package/model/webhookPayloadRFQBidReceivedDetails.ts +1 -1
- package/model/webhookPayloadRFQEscrowEvent.ts +1 -1
- package/model/webhookPayloadRFQEscrowEventDetails.ts +1 -1
- package/model/webhookPayloadRFQEscrowReleased.ts +1 -1
- package/model/webhookPayloadRFQEscrowReleasedDetails.ts +1 -1
- package/model/webhookPayloadRFQTransferProposalReceived.ts +1 -1
- package/model/webhookPayloadRFQTransferProposalReceivedDetails.ts +1 -1
- package/model/webhookPayloadRFQValidatorExited.ts +1 -1
- package/model/webhookPayloadRFQValidatorExitedDetails.ts +1 -1
- package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +1 -1
- package/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.ts +1 -1
- package/model/webhookPayloadRFQWithdrawalClaimable.ts +1 -1
- package/model/webhookPayloadRFQWithdrawalClaimableDetails.ts +1 -1
- package/model/webhookRegistration.ts +1 -1
- package/model/webhookRegistrationDetails.ts +1 -1
- package/model/withdrawFromVault.ts +52 -0
- package/model/withdrawalClaimable.ts +1 -1
- package/model/withdrawalRecipientSettlement.ts +1 -1
- package/model/wrapStETH.ts +43 -0
- package/package.json +3 -3
- package/api/validatorMarketplaceFacilitatorApi.ts +0 -360
- package/api/validatorMarketplaceWebhooksApi.ts +0 -351
- package/dist/api/smartContractsApi.d.ts +0 -125
- package/dist/api/validatorMarketplaceBuyersApi.d.ts +0 -95
- package/dist/api/validatorMarketplaceFacilitatorApi.d.ts +0 -80
- package/dist/api/validatorMarketplaceSellersApi.d.ts +0 -122
- package/dist/api/validatorMarketplaceWebhooksApi.d.ts +0 -77
- package/dist/api/validatorMarketplaceWebhooksApi.js +0 -272
- package/dist/model/createRFQRequest.d.ts +0 -26
- package/dist/model/createRFQRequest.js +0 -33
- package/dist/model/getMarketplaceMetadata200Response.js +0 -38
- package/dist/model/getSmartContractMEVRewards200Response.js +0 -43
- package/dist/model/getSmartContractMinedBlocks200Response.js +0 -43
- package/dist/model/listAllRFQsForFacilitator200Response.d.ts +0 -38
- package/dist/model/listAllRFQsForFacilitator200Response.js +0 -43
- package/dist/model/mEVReward.d.ts +0 -45
- package/dist/model/mEVReward.js +0 -83
- package/dist/model/minedBlock.js +0 -48
- package/dist/model/provideEscrowHashForRFQDocumentRequest.d.ts +0 -25
- package/dist/model/provideEscrowHashForRFQDocumentRequest.js +0 -28
- package/dist/model/registerWithdrawalRecipientSettlementRequest.d.ts +0 -25
- package/dist/model/registerWithdrawalRecipientSettlementRequest.js +0 -28
- package/dist/model/smartContract.js +0 -56
- package/dist/model/smartContractDetailed.d.ts +0 -47
- package/dist/model/smartContractDetailed.js +0 -71
- package/dist/model/smartContractDetailedStats.d.ts +0 -72
- package/dist/model/smartContractDetailedStats.js +0 -83
- package/dist/model/smartContractDetailedWhitelistedDepositorsInner.d.ts +0 -27
- package/dist/model/smartContractDetailedWhitelistedDepositorsInner.js +0 -38
- package/dist/model/submittedQuote.d.ts +0 -26
- package/dist/model/submittedQuote.js +0 -33
- package/dist/model/webhookPayloadData.js +0 -41
- package/model/createRFQRequest.ts +0 -37
- package/model/getMarketplaceMetadata200Response.ts +0 -52
- package/model/listAllRFQsForFacilitator200Response.ts +0 -59
- package/model/mEVReward.ts +0 -106
- package/model/minedBlock.ts +0 -61
- package/model/provideEscrowHashForRFQDocumentRequest.ts +0 -31
- package/model/registerWithdrawalRecipientSettlementRequest.ts +0 -31
- package/model/smartContract.ts +0 -67
- package/model/smartContractDetailed.ts +0 -93
- package/model/smartContractDetailedStats.ts +0 -133
- package/model/submittedQuote.ts +0 -37
- 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
|
*
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { AddLinkedWalletRequest } from '../model/addLinkedWalletRequest';
|
|
13
|
+
import { UpdateLinkedWalletNameRequest } from '../model/updateLinkedWalletNameRequest';
|
|
13
14
|
import { Wallet } from '../model/wallet';
|
|
14
15
|
import { Authentication, Interceptor } from '../model/models';
|
|
15
16
|
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
@@ -74,4 +75,18 @@ export declare class LinkedWalletsApi {
|
|
|
74
75
|
body: Array<Wallet>;
|
|
75
76
|
status: number;
|
|
76
77
|
}>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary Update the name of a linked/external wallet
|
|
81
|
+
* @param walletId The id of the wallet you wish to update
|
|
82
|
+
* @param updateLinkedWalletNameRequest
|
|
83
|
+
*/
|
|
84
|
+
updateLinkedWalletName(walletId: string, updateLinkedWalletNameRequest: UpdateLinkedWalletNameRequest, options?: {
|
|
85
|
+
headers: {
|
|
86
|
+
[name: string]: string;
|
|
87
|
+
};
|
|
88
|
+
}): Promise<{
|
|
89
|
+
body: any;
|
|
90
|
+
status: number;
|
|
91
|
+
}>;
|
|
77
92
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Northstake
|
|
4
|
-
* Northstake api
|
|
4
|
+
* 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.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 1.0
|
|
7
7
|
*
|
|
@@ -261,5 +261,77 @@ class LinkedWalletsApi {
|
|
|
261
261
|
});
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Update the name of a linked/external wallet
|
|
267
|
+
* @param walletId The id of the wallet you wish to update
|
|
268
|
+
* @param updateLinkedWalletNameRequest
|
|
269
|
+
*/
|
|
270
|
+
async updateLinkedWalletName(walletId, updateLinkedWalletNameRequest, options = { headers: {} }) {
|
|
271
|
+
const localVarPath = this.basePath + '/linkedWallets/{walletId}'
|
|
272
|
+
.replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
|
|
273
|
+
let localVarQueryParameters = {};
|
|
274
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
275
|
+
const produces = ['application/json'];
|
|
276
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
277
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
281
|
+
}
|
|
282
|
+
let localVarFormParams = {};
|
|
283
|
+
// Verify required parameter 'walletId' is not null or undefined
|
|
284
|
+
if (walletId === null || walletId === undefined) {
|
|
285
|
+
throw new Error('Required parameter "walletId" was null or undefined when calling updateLinkedWalletName.');
|
|
286
|
+
}
|
|
287
|
+
// Verify required parameter 'updateLinkedWalletNameRequest' is not null or undefined
|
|
288
|
+
if (updateLinkedWalletNameRequest === null || updateLinkedWalletNameRequest === undefined) {
|
|
289
|
+
throw new Error('Required parameter "updateLinkedWalletNameRequest" was null or undefined when calling updateLinkedWalletName.');
|
|
290
|
+
}
|
|
291
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
292
|
+
let localVarUseFormData = false;
|
|
293
|
+
let localVarRequestOptions = {
|
|
294
|
+
method: 'PATCH',
|
|
295
|
+
qs: localVarQueryParameters,
|
|
296
|
+
headers: localVarHeaderParams,
|
|
297
|
+
uri: localVarPath,
|
|
298
|
+
useQuerystring: this._useQuerystring,
|
|
299
|
+
json: true,
|
|
300
|
+
body: models_1.ObjectSerializer.serialize(updateLinkedWalletNameRequest, "UpdateLinkedWalletNameRequest")
|
|
301
|
+
};
|
|
302
|
+
let authenticationPromise = Promise.resolve();
|
|
303
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
304
|
+
let interceptorPromise = authenticationPromise;
|
|
305
|
+
for (const interceptor of this.interceptors) {
|
|
306
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
307
|
+
}
|
|
308
|
+
return interceptorPromise.then(() => {
|
|
309
|
+
if (Object.keys(localVarFormParams).length) {
|
|
310
|
+
if (localVarUseFormData) {
|
|
311
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
312
|
+
}
|
|
313
|
+
else {
|
|
314
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return new Promise((resolve, reject) => {
|
|
318
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
319
|
+
if (error) {
|
|
320
|
+
console.error('API call error:', error);
|
|
321
|
+
reject(error);
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
325
|
+
resolve({ body: body, status: response.statusCode });
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
console.error('API response error:', response.statusCode);
|
|
329
|
+
resolve({ body: body, status: response.statusCode });
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
}
|
|
264
336
|
}
|
|
265
337
|
exports.LinkedWalletsApi = LinkedWalletsApi;
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
import { InviteMemberRequest } from '../model/inviteMemberRequest';
|
|
13
|
+
import { OrganizationMember } from '../model/organizationMember';
|
|
14
|
+
import { OrganizationNameResponse } from '../model/organizationNameResponse';
|
|
15
|
+
import { UpdateMemberRoleRequest } from '../model/updateMemberRoleRequest';
|
|
16
|
+
import { UpdateOrganizationNameRequest } from '../model/updateOrganizationNameRequest';
|
|
17
|
+
import { Authentication, Interceptor } from '../model/models';
|
|
18
|
+
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
19
|
+
export declare enum OrganizationApiApiKeys {
|
|
20
|
+
ApiKeyAuth = 0
|
|
21
|
+
}
|
|
22
|
+
export declare class OrganizationApi {
|
|
23
|
+
protected _basePath: string;
|
|
24
|
+
protected _defaultHeaders: any;
|
|
25
|
+
protected _useQuerystring: boolean;
|
|
26
|
+
protected authentications: {
|
|
27
|
+
default: Authentication;
|
|
28
|
+
bearerTokenAuth: HttpBearerAuth;
|
|
29
|
+
ApiKeyAuth: ApiKeyAuth;
|
|
30
|
+
};
|
|
31
|
+
protected interceptors: Interceptor[];
|
|
32
|
+
constructor(basePath?: string);
|
|
33
|
+
set useQuerystring(value: boolean);
|
|
34
|
+
set basePath(basePath: string);
|
|
35
|
+
set defaultHeaders(defaultHeaders: any);
|
|
36
|
+
get defaultHeaders(): any;
|
|
37
|
+
get basePath(): string;
|
|
38
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
39
|
+
setApiKey(key: OrganizationApiApiKeys, value: string): void;
|
|
40
|
+
set accessToken(accessToken: string | (() => string));
|
|
41
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
42
|
+
/**
|
|
43
|
+
* Sends an invitation to join the organization. Only admins can invite members.
|
|
44
|
+
* @summary Invite a new member to the organization
|
|
45
|
+
* @param inviteMemberRequest
|
|
46
|
+
*/
|
|
47
|
+
inviteOrganizationMember(inviteMemberRequest: InviteMemberRequest, options?: {
|
|
48
|
+
headers: {
|
|
49
|
+
[name: string]: string;
|
|
50
|
+
};
|
|
51
|
+
}): Promise<{
|
|
52
|
+
body: OrganizationMember;
|
|
53
|
+
status: number;
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns a list of all members in the organization. Only available for organization accounts.
|
|
57
|
+
* @summary List organization members
|
|
58
|
+
*/
|
|
59
|
+
listOrganizationMembers(options?: {
|
|
60
|
+
headers: {
|
|
61
|
+
[name: string]: string;
|
|
62
|
+
};
|
|
63
|
+
}): Promise<{
|
|
64
|
+
body: Array<OrganizationMember>;
|
|
65
|
+
status: number;
|
|
66
|
+
}>;
|
|
67
|
+
/**
|
|
68
|
+
* Removes a member from the organization. Only admins can remove members.
|
|
69
|
+
* @summary Remove a member from the organization
|
|
70
|
+
* @param memberId The Auth0 user ID of the member to remove
|
|
71
|
+
*/
|
|
72
|
+
removeOrganizationMember(memberId: string, options?: {
|
|
73
|
+
headers: {
|
|
74
|
+
[name: string]: string;
|
|
75
|
+
};
|
|
76
|
+
}): Promise<{
|
|
77
|
+
body: any;
|
|
78
|
+
status: number;
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
* Changes the role of a member in the organization. Only admins can update roles.
|
|
82
|
+
* @summary Update a member\'s role
|
|
83
|
+
* @param memberId The Auth0 user ID of the member
|
|
84
|
+
* @param updateMemberRoleRequest
|
|
85
|
+
*/
|
|
86
|
+
updateMemberRole(memberId: string, updateMemberRoleRequest: UpdateMemberRoleRequest, options?: {
|
|
87
|
+
headers: {
|
|
88
|
+
[name: string]: string;
|
|
89
|
+
};
|
|
90
|
+
}): Promise<{
|
|
91
|
+
body: OrganizationMember;
|
|
92
|
+
status: number;
|
|
93
|
+
}>;
|
|
94
|
+
/**
|
|
95
|
+
* Changes the display name of the organization. Only admins can update the name.
|
|
96
|
+
* @summary Update organization name
|
|
97
|
+
* @param updateOrganizationNameRequest
|
|
98
|
+
*/
|
|
99
|
+
updateOrganizationName(updateOrganizationNameRequest: UpdateOrganizationNameRequest, options?: {
|
|
100
|
+
headers: {
|
|
101
|
+
[name: string]: string;
|
|
102
|
+
};
|
|
103
|
+
}): Promise<{
|
|
104
|
+
body: OrganizationNameResponse;
|
|
105
|
+
status: number;
|
|
106
|
+
}>;
|
|
107
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Northstake
|
|
4
|
-
* Northstake api
|
|
4
|
+
* 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.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 1.0
|
|
7
7
|
*
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.OrganizationApi = exports.OrganizationApiApiKeys = void 0;
|
|
18
18
|
const request_1 = __importDefault(require("request"));
|
|
19
19
|
const models_1 = require("../model/models");
|
|
20
20
|
const models_2 = require("../model/models");
|
|
@@ -22,11 +22,11 @@ let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
|
22
22
|
// ===============================================
|
|
23
23
|
// This file is autogenerated - Please do not edit
|
|
24
24
|
// ===============================================
|
|
25
|
-
var
|
|
26
|
-
(function (
|
|
27
|
-
|
|
28
|
-
})(
|
|
29
|
-
class
|
|
25
|
+
var OrganizationApiApiKeys;
|
|
26
|
+
(function (OrganizationApiApiKeys) {
|
|
27
|
+
OrganizationApiApiKeys[OrganizationApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
28
|
+
})(OrganizationApiApiKeys || (exports.OrganizationApiApiKeys = OrganizationApiApiKeys = {}));
|
|
29
|
+
class OrganizationApi {
|
|
30
30
|
constructor(basePathOrUsername, password, basePath) {
|
|
31
31
|
this._basePath = defaultBasePath;
|
|
32
32
|
this._defaultHeaders = {};
|
|
@@ -67,7 +67,7 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
67
67
|
this.authentications.default = auth;
|
|
68
68
|
}
|
|
69
69
|
setApiKey(key, value) {
|
|
70
|
-
this.authentications[
|
|
70
|
+
this.authentications[OrganizationApiApiKeys[key]].apiKey = value;
|
|
71
71
|
}
|
|
72
72
|
set accessToken(accessToken) {
|
|
73
73
|
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
@@ -76,13 +76,12 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
76
76
|
this.interceptors.push(interceptor);
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
80
|
-
* @summary
|
|
81
|
-
* @param
|
|
79
|
+
* Sends an invitation to join the organization. Only admins can invite members.
|
|
80
|
+
* @summary Invite a new member to the organization
|
|
81
|
+
* @param inviteMemberRequest
|
|
82
82
|
*/
|
|
83
|
-
async
|
|
84
|
-
const localVarPath = this.basePath + '/
|
|
85
|
-
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
83
|
+
async inviteOrganizationMember(inviteMemberRequest, options = { headers: {} }) {
|
|
84
|
+
const localVarPath = this.basePath + '/organization/members';
|
|
86
85
|
let localVarQueryParameters = {};
|
|
87
86
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
88
87
|
const produces = ['application/json'];
|
|
@@ -93,12 +92,74 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
93
92
|
localVarHeaderParams.Accept = produces.join(',');
|
|
94
93
|
}
|
|
95
94
|
let localVarFormParams = {};
|
|
96
|
-
// Verify required parameter '
|
|
97
|
-
if (
|
|
98
|
-
throw new Error('Required parameter "
|
|
95
|
+
// Verify required parameter 'inviteMemberRequest' is not null or undefined
|
|
96
|
+
if (inviteMemberRequest === null || inviteMemberRequest === undefined) {
|
|
97
|
+
throw new Error('Required parameter "inviteMemberRequest" was null or undefined when calling inviteOrganizationMember.');
|
|
99
98
|
}
|
|
100
99
|
Object.assign(localVarHeaderParams, options.headers);
|
|
101
100
|
let localVarUseFormData = false;
|
|
101
|
+
let localVarRequestOptions = {
|
|
102
|
+
method: 'POST',
|
|
103
|
+
qs: localVarQueryParameters,
|
|
104
|
+
headers: localVarHeaderParams,
|
|
105
|
+
uri: localVarPath,
|
|
106
|
+
useQuerystring: this._useQuerystring,
|
|
107
|
+
json: true,
|
|
108
|
+
body: models_1.ObjectSerializer.serialize(inviteMemberRequest, "InviteMemberRequest")
|
|
109
|
+
};
|
|
110
|
+
let authenticationPromise = Promise.resolve();
|
|
111
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
112
|
+
let interceptorPromise = authenticationPromise;
|
|
113
|
+
for (const interceptor of this.interceptors) {
|
|
114
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
115
|
+
}
|
|
116
|
+
return interceptorPromise.then(() => {
|
|
117
|
+
if (Object.keys(localVarFormParams).length) {
|
|
118
|
+
if (localVarUseFormData) {
|
|
119
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return new Promise((resolve, reject) => {
|
|
126
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
127
|
+
if (error) {
|
|
128
|
+
console.error('API call error:', error);
|
|
129
|
+
reject(error);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
133
|
+
body = models_1.ObjectSerializer.deserialize(body, "OrganizationMember");
|
|
134
|
+
resolve({ body: body, status: response.statusCode });
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
console.error('API response error:', response.statusCode);
|
|
138
|
+
resolve({ body: body, status: response.statusCode });
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Returns a list of all members in the organization. Only available for organization accounts.
|
|
147
|
+
* @summary List organization members
|
|
148
|
+
*/
|
|
149
|
+
async listOrganizationMembers(options = { headers: {} }) {
|
|
150
|
+
const localVarPath = this.basePath + '/organization/members';
|
|
151
|
+
let localVarQueryParameters = {};
|
|
152
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
153
|
+
const produces = ['application/json'];
|
|
154
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
155
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
159
|
+
}
|
|
160
|
+
let localVarFormParams = {};
|
|
161
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
162
|
+
let localVarUseFormData = false;
|
|
102
163
|
let localVarRequestOptions = {
|
|
103
164
|
method: 'GET',
|
|
104
165
|
qs: localVarQueryParameters,
|
|
@@ -130,7 +191,7 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
130
191
|
}
|
|
131
192
|
else {
|
|
132
193
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
133
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
194
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<OrganizationMember>");
|
|
134
195
|
resolve({ body: body, status: response.statusCode });
|
|
135
196
|
}
|
|
136
197
|
else {
|
|
@@ -143,12 +204,13 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
143
204
|
});
|
|
144
205
|
}
|
|
145
206
|
/**
|
|
146
|
-
*
|
|
147
|
-
* @summary
|
|
148
|
-
* @param
|
|
207
|
+
* Removes a member from the organization. Only admins can remove members.
|
|
208
|
+
* @summary Remove a member from the organization
|
|
209
|
+
* @param memberId The Auth0 user ID of the member to remove
|
|
149
210
|
*/
|
|
150
|
-
async
|
|
151
|
-
const localVarPath = this.basePath + '/
|
|
211
|
+
async removeOrganizationMember(memberId, options = { headers: {} }) {
|
|
212
|
+
const localVarPath = this.basePath + '/organization/members/{memberId}'
|
|
213
|
+
.replace('{' + 'memberId' + '}', encodeURIComponent(String(memberId)));
|
|
152
214
|
let localVarQueryParameters = {};
|
|
153
215
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
154
216
|
const produces = ['application/json'];
|
|
@@ -159,13 +221,14 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
159
221
|
localVarHeaderParams.Accept = produces.join(',');
|
|
160
222
|
}
|
|
161
223
|
let localVarFormParams = {};
|
|
162
|
-
|
|
163
|
-
|
|
224
|
+
// Verify required parameter 'memberId' is not null or undefined
|
|
225
|
+
if (memberId === null || memberId === undefined) {
|
|
226
|
+
throw new Error('Required parameter "memberId" was null or undefined when calling removeOrganizationMember.');
|
|
164
227
|
}
|
|
165
228
|
Object.assign(localVarHeaderParams, options.headers);
|
|
166
229
|
let localVarUseFormData = false;
|
|
167
230
|
let localVarRequestOptions = {
|
|
168
|
-
method: '
|
|
231
|
+
method: 'DELETE',
|
|
169
232
|
qs: localVarQueryParameters,
|
|
170
233
|
headers: localVarHeaderParams,
|
|
171
234
|
uri: localVarPath,
|
|
@@ -195,7 +258,6 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
195
258
|
}
|
|
196
259
|
else {
|
|
197
260
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
198
|
-
body = models_1.ObjectSerializer.deserialize(body, "Array<RFQDocumentBuyer>");
|
|
199
261
|
resolve({ body: body, status: response.statusCode });
|
|
200
262
|
}
|
|
201
263
|
else {
|
|
@@ -208,14 +270,14 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
208
270
|
});
|
|
209
271
|
}
|
|
210
272
|
/**
|
|
211
|
-
*
|
|
212
|
-
* @summary
|
|
213
|
-
* @param
|
|
214
|
-
* @param
|
|
273
|
+
* Changes the role of a member in the organization. Only admins can update roles.
|
|
274
|
+
* @summary Update a member\'s role
|
|
275
|
+
* @param memberId The Auth0 user ID of the member
|
|
276
|
+
* @param updateMemberRoleRequest
|
|
215
277
|
*/
|
|
216
|
-
async
|
|
217
|
-
const localVarPath = this.basePath + '/
|
|
218
|
-
.replace('{' + '
|
|
278
|
+
async updateMemberRole(memberId, updateMemberRoleRequest, options = { headers: {} }) {
|
|
279
|
+
const localVarPath = this.basePath + '/organization/members/{memberId}/role'
|
|
280
|
+
.replace('{' + 'memberId' + '}', encodeURIComponent(String(memberId)));
|
|
219
281
|
let localVarQueryParameters = {};
|
|
220
282
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
221
283
|
const produces = ['application/json'];
|
|
@@ -226,13 +288,13 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
226
288
|
localVarHeaderParams.Accept = produces.join(',');
|
|
227
289
|
}
|
|
228
290
|
let localVarFormParams = {};
|
|
229
|
-
// Verify required parameter '
|
|
230
|
-
if (
|
|
231
|
-
throw new Error('Required parameter "
|
|
291
|
+
// Verify required parameter 'memberId' is not null or undefined
|
|
292
|
+
if (memberId === null || memberId === undefined) {
|
|
293
|
+
throw new Error('Required parameter "memberId" was null or undefined when calling updateMemberRole.');
|
|
232
294
|
}
|
|
233
|
-
// Verify required parameter '
|
|
234
|
-
if (
|
|
235
|
-
throw new Error('Required parameter "
|
|
295
|
+
// Verify required parameter 'updateMemberRoleRequest' is not null or undefined
|
|
296
|
+
if (updateMemberRoleRequest === null || updateMemberRoleRequest === undefined) {
|
|
297
|
+
throw new Error('Required parameter "updateMemberRoleRequest" was null or undefined when calling updateMemberRole.');
|
|
236
298
|
}
|
|
237
299
|
Object.assign(localVarHeaderParams, options.headers);
|
|
238
300
|
let localVarUseFormData = false;
|
|
@@ -243,7 +305,7 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
243
305
|
uri: localVarPath,
|
|
244
306
|
useQuerystring: this._useQuerystring,
|
|
245
307
|
json: true,
|
|
246
|
-
body: models_1.ObjectSerializer.serialize(
|
|
308
|
+
body: models_1.ObjectSerializer.serialize(updateMemberRoleRequest, "UpdateMemberRoleRequest")
|
|
247
309
|
};
|
|
248
310
|
let authenticationPromise = Promise.resolve();
|
|
249
311
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
@@ -268,6 +330,7 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
268
330
|
}
|
|
269
331
|
else {
|
|
270
332
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
333
|
+
body = models_1.ObjectSerializer.deserialize(body, "OrganizationMember");
|
|
271
334
|
resolve({ body: body, status: response.statusCode });
|
|
272
335
|
}
|
|
273
336
|
else {
|
|
@@ -280,14 +343,12 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
280
343
|
});
|
|
281
344
|
}
|
|
282
345
|
/**
|
|
283
|
-
*
|
|
284
|
-
* @summary
|
|
285
|
-
* @param
|
|
286
|
-
* @param submittedQuote
|
|
346
|
+
* Changes the display name of the organization. Only admins can update the name.
|
|
347
|
+
* @summary Update organization name
|
|
348
|
+
* @param updateOrganizationNameRequest
|
|
287
349
|
*/
|
|
288
|
-
async
|
|
289
|
-
const localVarPath = this.basePath + '/
|
|
290
|
-
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
350
|
+
async updateOrganizationName(updateOrganizationNameRequest, options = { headers: {} }) {
|
|
351
|
+
const localVarPath = this.basePath + '/organization/name';
|
|
291
352
|
let localVarQueryParameters = {};
|
|
292
353
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
293
354
|
const produces = ['application/json'];
|
|
@@ -298,13 +359,9 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
298
359
|
localVarHeaderParams.Accept = produces.join(',');
|
|
299
360
|
}
|
|
300
361
|
let localVarFormParams = {};
|
|
301
|
-
// Verify required parameter '
|
|
302
|
-
if (
|
|
303
|
-
throw new Error('Required parameter "
|
|
304
|
-
}
|
|
305
|
-
// Verify required parameter 'submittedQuote' is not null or undefined
|
|
306
|
-
if (submittedQuote === null || submittedQuote === undefined) {
|
|
307
|
-
throw new Error('Required parameter "submittedQuote" was null or undefined when calling submitQuote.');
|
|
362
|
+
// Verify required parameter 'updateOrganizationNameRequest' is not null or undefined
|
|
363
|
+
if (updateOrganizationNameRequest === null || updateOrganizationNameRequest === undefined) {
|
|
364
|
+
throw new Error('Required parameter "updateOrganizationNameRequest" was null or undefined when calling updateOrganizationName.');
|
|
308
365
|
}
|
|
309
366
|
Object.assign(localVarHeaderParams, options.headers);
|
|
310
367
|
let localVarUseFormData = false;
|
|
@@ -315,7 +372,7 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
315
372
|
uri: localVarPath,
|
|
316
373
|
useQuerystring: this._useQuerystring,
|
|
317
374
|
json: true,
|
|
318
|
-
body: models_1.ObjectSerializer.serialize(
|
|
375
|
+
body: models_1.ObjectSerializer.serialize(updateOrganizationNameRequest, "UpdateOrganizationNameRequest")
|
|
319
376
|
};
|
|
320
377
|
let authenticationPromise = Promise.resolve();
|
|
321
378
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
@@ -340,6 +397,7 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
340
397
|
}
|
|
341
398
|
else {
|
|
342
399
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
400
|
+
body = models_1.ObjectSerializer.deserialize(body, "OrganizationNameResponse");
|
|
343
401
|
resolve({ body: body, status: response.statusCode });
|
|
344
402
|
}
|
|
345
403
|
else {
|
|
@@ -352,4 +410,4 @@ class ValidatorMarketplaceBuyersApi {
|
|
|
352
410
|
});
|
|
353
411
|
}
|
|
354
412
|
}
|
|
355
|
-
exports.
|
|
413
|
+
exports.OrganizationApi = OrganizationApi;
|
|
@@ -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
|
*
|
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { GetWithdrawalsResponse } from '../model/getWithdrawalsResponse';
|
|
13
|
-
import {
|
|
13
|
+
import { PartialTransaction } from '../model/partialTransaction';
|
|
14
14
|
import { ValidatorInfo } from '../model/validatorInfo';
|
|
15
|
-
import { ValidatorKeyHolder } from '../model/validatorKeyHolder';
|
|
16
|
-
import { ValidatorType } from '../model/validatorType';
|
|
17
15
|
import { Authentication, Interceptor } from '../model/models';
|
|
18
16
|
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
19
17
|
export declare enum ValidatorsApiApiKeys {
|
|
@@ -47,20 +45,6 @@ export declare class ValidatorsApi {
|
|
|
47
45
|
setApiKey(key: ValidatorsApiApiKeys, value: string): void;
|
|
48
46
|
set accessToken(accessToken: string | (() => string));
|
|
49
47
|
addInterceptor(interceptor: Interceptor): void;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @summary Get presigned exit key for a validator
|
|
53
|
-
* @param validatorIndex Validator index to get the presigned exit key for
|
|
54
|
-
* @param epoch Epoch to get the presigned exit key for, defaults to 1
|
|
55
|
-
*/
|
|
56
|
-
getPresignedExitKey(validatorIndex: number, epoch?: number, options?: {
|
|
57
|
-
headers: {
|
|
58
|
-
[name: string]: string;
|
|
59
|
-
};
|
|
60
|
-
}): Promise<{
|
|
61
|
-
body: PresignedExitKey;
|
|
62
|
-
status: number;
|
|
63
|
-
}>;
|
|
64
48
|
/**
|
|
65
49
|
* Retrieves a paginated list of validator withdrawals. The endpoint supports filtering by start and end date, page number, and limit. Additionally, it allows filtering by validator indices.
|
|
66
50
|
* @summary Get a list of validator withdrawals
|
|
@@ -81,11 +65,10 @@ export declare class ValidatorsApi {
|
|
|
81
65
|
}>;
|
|
82
66
|
/**
|
|
83
67
|
*
|
|
84
|
-
* @summary Get a list of validators
|
|
85
|
-
* @param
|
|
86
|
-
* @param contractType Filter by contract type
|
|
68
|
+
* @summary Get a list of validators
|
|
69
|
+
* @param stakingVaultId The id of the staking vault to get the validators for (optional)
|
|
87
70
|
*/
|
|
88
|
-
getValidators(
|
|
71
|
+
getValidators(stakingVaultId?: string, options?: {
|
|
89
72
|
headers: {
|
|
90
73
|
[name: string]: string;
|
|
91
74
|
};
|
|
@@ -95,15 +78,17 @@ export declare class ValidatorsApi {
|
|
|
95
78
|
}>;
|
|
96
79
|
/**
|
|
97
80
|
*
|
|
98
|
-
* @summary
|
|
99
|
-
* @param validatorIndex Validator index to
|
|
81
|
+
* @summary Top up a validator
|
|
82
|
+
* @param validatorIndex Validator index to top up
|
|
83
|
+
* @param amount Amount of ETH to top up the validator with
|
|
84
|
+
* @param simulateAddress Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
|
|
100
85
|
*/
|
|
101
|
-
|
|
86
|
+
topUpValidator(validatorIndex: number, amount: string, simulateAddress?: string, options?: {
|
|
102
87
|
headers: {
|
|
103
88
|
[name: string]: string;
|
|
104
89
|
};
|
|
105
90
|
}): Promise<{
|
|
106
|
-
body:
|
|
91
|
+
body: PartialTransaction;
|
|
107
92
|
status: number;
|
|
108
93
|
}>;
|
|
109
94
|
}
|