@northstake/northstakeapi 1.0.37 → 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 -19
- 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} +185 -56
- 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 -34
- 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} +141 -46
- 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 -24
- package/dist/api.js +76 -29
- 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 -14
- package/dist/model/models.js +185 -42
- 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/{listAllRFQsForFacilitator200Response.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/{getSmartContractMinedBlocks200Response.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 +285 -46
- 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/{listAllRFQsForFacilitator200Response.ts → validatorRewardsRaw.ts} +18 -12
- 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 -100
- 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/getSmartContractMinedBlocks200Response.js +0 -43
- package/dist/model/listAllRFQsForFacilitator200Response.js +0 -43
- 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/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
package/api/linkedWalletsApi.ts
CHANGED
|
@@ -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
|
*
|
|
@@ -17,6 +17,7 @@ import http from 'http';
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { AddLinkedWalletRequest } from '../model/addLinkedWalletRequest';
|
|
19
19
|
import { ErrorResponse } from '../model/errorResponse';
|
|
20
|
+
import { UpdateLinkedWalletNameRequest } from '../model/updateLinkedWalletNameRequest';
|
|
20
21
|
import { Wallet } from '../model/wallet';
|
|
21
22
|
|
|
22
23
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
@@ -341,5 +342,96 @@ export class LinkedWalletsApi {
|
|
|
341
342
|
});
|
|
342
343
|
});
|
|
343
344
|
} )
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
* @summary Update the name of a linked/external wallet
|
|
349
|
+
* @param walletId The id of the wallet you wish to update
|
|
350
|
+
* @param updateLinkedWalletNameRequest
|
|
351
|
+
*/
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
public async updateLinkedWalletName (walletId: string, updateLinkedWalletNameRequest: UpdateLinkedWalletNameRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: any, status: number }> {
|
|
358
|
+
|
|
359
|
+
const localVarPath = this.basePath + '/linkedWallets/{walletId}'
|
|
360
|
+
.replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
|
|
361
|
+
|
|
362
|
+
let localVarQueryParameters: any = {};
|
|
363
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
364
|
+
const produces = ['application/json'];
|
|
365
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
366
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
367
|
+
} else {
|
|
368
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
369
|
+
}
|
|
370
|
+
let localVarFormParams: any = {};
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
// Verify required parameter 'walletId' is not null or undefined
|
|
374
|
+
if (walletId === null || walletId === undefined) {
|
|
375
|
+
throw new Error('Required parameter "walletId" was null or undefined when calling updateLinkedWalletName.');
|
|
376
|
+
}
|
|
377
|
+
// Verify required parameter 'updateLinkedWalletNameRequest' is not null or undefined
|
|
378
|
+
if (updateLinkedWalletNameRequest === null || updateLinkedWalletNameRequest === undefined) {
|
|
379
|
+
throw new Error('Required parameter "updateLinkedWalletNameRequest" was null or undefined when calling updateLinkedWalletName.');
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
389
|
+
|
|
390
|
+
let localVarUseFormData = false;
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
395
|
+
method: 'PATCH',
|
|
396
|
+
qs: localVarQueryParameters,
|
|
397
|
+
headers: localVarHeaderParams,
|
|
398
|
+
uri: localVarPath,
|
|
399
|
+
useQuerystring: this._useQuerystring,
|
|
400
|
+
json: true,
|
|
401
|
+
body: ObjectSerializer.serialize(updateLinkedWalletNameRequest, "UpdateLinkedWalletNameRequest")
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
let authenticationPromise = Promise.resolve();
|
|
405
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
406
|
+
|
|
407
|
+
let interceptorPromise = authenticationPromise;
|
|
408
|
+
for (const interceptor of this.interceptors) {
|
|
409
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
return interceptorPromise.then(() => {
|
|
413
|
+
if (Object.keys(localVarFormParams).length) {
|
|
414
|
+
if (localVarUseFormData) {
|
|
415
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
416
|
+
} else {
|
|
417
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return new Promise<{ body: any, status: number }>((resolve, reject) => {
|
|
421
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
422
|
+
if (error) {
|
|
423
|
+
console.error('API call error:', error);
|
|
424
|
+
reject(error);
|
|
425
|
+
} else {
|
|
426
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
427
|
+
resolve({ body: body, status: response.statusCode });
|
|
428
|
+
} else {
|
|
429
|
+
console.error('API response error:', response.statusCode);
|
|
430
|
+
resolve({ body: body, status: response.statusCode });
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
});
|
|
435
|
+
} )
|
|
344
436
|
}
|
|
345
437
|
}
|
|
@@ -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
|
*
|
|
@@ -16,10 +16,11 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
19
|
+
import { InviteMemberRequest } from '../model/inviteMemberRequest';
|
|
20
|
+
import { OrganizationMember } from '../model/organizationMember';
|
|
21
|
+
import { OrganizationNameResponse } from '../model/organizationNameResponse';
|
|
22
|
+
import { UpdateMemberRoleRequest } from '../model/updateMemberRoleRequest';
|
|
23
|
+
import { UpdateOrganizationNameRequest } from '../model/updateOrganizationNameRequest';
|
|
23
24
|
|
|
24
25
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
25
26
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -32,13 +33,13 @@ let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
|
32
33
|
// This file is autogenerated - Please do not edit
|
|
33
34
|
// ===============================================
|
|
34
35
|
|
|
35
|
-
export enum
|
|
36
|
+
export enum OrganizationApiApiKeys {
|
|
36
37
|
ApiKeyAuth,
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
|
|
40
41
|
|
|
41
|
-
export class
|
|
42
|
+
export class OrganizationApi {
|
|
42
43
|
protected _basePath = defaultBasePath;
|
|
43
44
|
protected _defaultHeaders : any = {};
|
|
44
45
|
protected _useQuerystring : boolean = false;
|
|
@@ -88,8 +89,8 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
88
89
|
this.authentications.default = auth;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
public setApiKey(key:
|
|
92
|
-
(this.authentications as any)[
|
|
92
|
+
public setApiKey(key: OrganizationApiApiKeys, value: string) {
|
|
93
|
+
(this.authentications as any)[OrganizationApiApiKeys[key]].apiKey = value;
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
set accessToken(accessToken: string | (() => string)) {
|
|
@@ -101,19 +102,18 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
/**
|
|
104
|
-
*
|
|
105
|
-
* @summary
|
|
106
|
-
* @param
|
|
105
|
+
* Sends an invitation to join the organization. Only admins can invite members.
|
|
106
|
+
* @summary Invite a new member to the organization
|
|
107
|
+
* @param inviteMemberRequest
|
|
107
108
|
*/
|
|
108
109
|
|
|
109
110
|
|
|
110
111
|
|
|
111
112
|
|
|
112
113
|
|
|
113
|
-
public async
|
|
114
|
+
public async inviteOrganizationMember (inviteMemberRequest: InviteMemberRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: OrganizationMember, status: number }> {
|
|
114
115
|
|
|
115
|
-
const localVarPath = this.basePath + '/
|
|
116
|
-
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
116
|
+
const localVarPath = this.basePath + '/organization/members';
|
|
117
117
|
|
|
118
118
|
let localVarQueryParameters: any = {};
|
|
119
119
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -126,9 +126,9 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
126
126
|
let localVarFormParams: any = {};
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
// Verify required parameter '
|
|
130
|
-
if (
|
|
131
|
-
throw new Error('Required parameter "
|
|
129
|
+
// Verify required parameter 'inviteMemberRequest' is not null or undefined
|
|
130
|
+
if (inviteMemberRequest === null || inviteMemberRequest === undefined) {
|
|
131
|
+
throw new Error('Required parameter "inviteMemberRequest" was null or undefined when calling inviteOrganizationMember.');
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
|
|
@@ -144,12 +144,13 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
147
|
-
method: '
|
|
147
|
+
method: 'POST',
|
|
148
148
|
qs: localVarQueryParameters,
|
|
149
149
|
headers: localVarHeaderParams,
|
|
150
150
|
uri: localVarPath,
|
|
151
151
|
useQuerystring: this._useQuerystring,
|
|
152
152
|
json: true,
|
|
153
|
+
body: ObjectSerializer.serialize(inviteMemberRequest, "InviteMemberRequest")
|
|
153
154
|
};
|
|
154
155
|
|
|
155
156
|
let authenticationPromise = Promise.resolve();
|
|
@@ -168,14 +169,14 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
168
169
|
localVarRequestOptions.form = localVarFormParams;
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
|
-
return new Promise<{ body:
|
|
172
|
+
return new Promise<{ body: OrganizationMember, status: number }>((resolve, reject) => {
|
|
172
173
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
173
174
|
if (error) {
|
|
174
175
|
console.error('API call error:', error);
|
|
175
176
|
reject(error);
|
|
176
177
|
} else {
|
|
177
178
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
178
|
-
body = ObjectSerializer.deserialize(body, "
|
|
179
|
+
body = ObjectSerializer.deserialize(body, "OrganizationMember");
|
|
179
180
|
resolve({ body: body, status: response.statusCode });
|
|
180
181
|
} else {
|
|
181
182
|
console.error('API response error:', response.statusCode);
|
|
@@ -187,18 +188,17 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
187
188
|
} )
|
|
188
189
|
}
|
|
189
190
|
/**
|
|
190
|
-
*
|
|
191
|
-
* @summary List
|
|
192
|
-
* @param status Filter by RFQ status
|
|
191
|
+
* Returns a list of all members in the organization. Only available for organization accounts.
|
|
192
|
+
* @summary List organization members
|
|
193
193
|
*/
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
public async
|
|
199
|
+
public async listOrganizationMembers (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<OrganizationMember>, status: number }> {
|
|
200
200
|
|
|
201
|
-
const localVarPath = this.basePath + '/
|
|
201
|
+
const localVarPath = this.basePath + '/organization/members';
|
|
202
202
|
|
|
203
203
|
let localVarQueryParameters: any = {};
|
|
204
204
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -214,9 +214,6 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
214
214
|
|
|
215
215
|
|
|
216
216
|
|
|
217
|
-
if (status !== undefined) {
|
|
218
|
-
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "RFQDocumentBuyerStatusFilter");
|
|
219
|
-
}
|
|
220
217
|
|
|
221
218
|
|
|
222
219
|
|
|
@@ -252,14 +249,14 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
252
249
|
localVarRequestOptions.form = localVarFormParams;
|
|
253
250
|
}
|
|
254
251
|
}
|
|
255
|
-
return new Promise<{ body: Array<
|
|
252
|
+
return new Promise<{ body: Array<OrganizationMember>, status: number }>((resolve, reject) => {
|
|
256
253
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
257
254
|
if (error) {
|
|
258
255
|
console.error('API call error:', error);
|
|
259
256
|
reject(error);
|
|
260
257
|
} else {
|
|
261
258
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
262
|
-
body = ObjectSerializer.deserialize(body, "Array<
|
|
259
|
+
body = ObjectSerializer.deserialize(body, "Array<OrganizationMember>");
|
|
263
260
|
resolve({ body: body, status: response.statusCode });
|
|
264
261
|
} else {
|
|
265
262
|
console.error('API response error:', response.statusCode);
|
|
@@ -271,20 +268,19 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
271
268
|
} )
|
|
272
269
|
}
|
|
273
270
|
/**
|
|
274
|
-
*
|
|
275
|
-
* @summary
|
|
276
|
-
* @param
|
|
277
|
-
* @param provideEscrowHashForRFQDocumentRequest
|
|
271
|
+
* Removes a member from the organization. Only admins can remove members.
|
|
272
|
+
* @summary Remove a member from the organization
|
|
273
|
+
* @param memberId The Auth0 user ID of the member to remove
|
|
278
274
|
*/
|
|
279
275
|
|
|
280
276
|
|
|
281
277
|
|
|
282
278
|
|
|
283
279
|
|
|
284
|
-
public async
|
|
280
|
+
public async removeOrganizationMember (memberId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: any, status: number }> {
|
|
285
281
|
|
|
286
|
-
const localVarPath = this.basePath + '/
|
|
287
|
-
.replace('{' + '
|
|
282
|
+
const localVarPath = this.basePath + '/organization/members/{memberId}'
|
|
283
|
+
.replace('{' + 'memberId' + '}', encodeURIComponent(String(memberId)));
|
|
288
284
|
|
|
289
285
|
let localVarQueryParameters: any = {};
|
|
290
286
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -297,13 +293,9 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
297
293
|
let localVarFormParams: any = {};
|
|
298
294
|
|
|
299
295
|
|
|
300
|
-
// Verify required parameter '
|
|
301
|
-
if (
|
|
302
|
-
throw new Error('Required parameter "
|
|
303
|
-
}
|
|
304
|
-
// Verify required parameter 'provideEscrowHashForRFQDocumentRequest' is not null or undefined
|
|
305
|
-
if (provideEscrowHashForRFQDocumentRequest === null || provideEscrowHashForRFQDocumentRequest === undefined) {
|
|
306
|
-
throw new Error('Required parameter "provideEscrowHashForRFQDocumentRequest" was null or undefined when calling provideEscrowHashForRFQDocument.');
|
|
296
|
+
// Verify required parameter 'memberId' is not null or undefined
|
|
297
|
+
if (memberId === null || memberId === undefined) {
|
|
298
|
+
throw new Error('Required parameter "memberId" was null or undefined when calling removeOrganizationMember.');
|
|
307
299
|
}
|
|
308
300
|
|
|
309
301
|
|
|
@@ -319,13 +311,12 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
319
311
|
|
|
320
312
|
|
|
321
313
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
322
|
-
method: '
|
|
314
|
+
method: 'DELETE',
|
|
323
315
|
qs: localVarQueryParameters,
|
|
324
316
|
headers: localVarHeaderParams,
|
|
325
317
|
uri: localVarPath,
|
|
326
318
|
useQuerystring: this._useQuerystring,
|
|
327
319
|
json: true,
|
|
328
|
-
body: ObjectSerializer.serialize(provideEscrowHashForRFQDocumentRequest, "ProvideEscrowHashForRFQDocumentRequest")
|
|
329
320
|
};
|
|
330
321
|
|
|
331
322
|
let authenticationPromise = Promise.resolve();
|
|
@@ -362,20 +353,20 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
362
353
|
} )
|
|
363
354
|
}
|
|
364
355
|
/**
|
|
365
|
-
*
|
|
366
|
-
* @summary
|
|
367
|
-
* @param
|
|
368
|
-
* @param
|
|
356
|
+
* Changes the role of a member in the organization. Only admins can update roles.
|
|
357
|
+
* @summary Update a member\'s role
|
|
358
|
+
* @param memberId The Auth0 user ID of the member
|
|
359
|
+
* @param updateMemberRoleRequest
|
|
369
360
|
*/
|
|
370
361
|
|
|
371
362
|
|
|
372
363
|
|
|
373
364
|
|
|
374
365
|
|
|
375
|
-
public async
|
|
366
|
+
public async updateMemberRole (memberId: string, updateMemberRoleRequest: UpdateMemberRoleRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: OrganizationMember, status: number }> {
|
|
376
367
|
|
|
377
|
-
const localVarPath = this.basePath + '/
|
|
378
|
-
.replace('{' + '
|
|
368
|
+
const localVarPath = this.basePath + '/organization/members/{memberId}/role'
|
|
369
|
+
.replace('{' + 'memberId' + '}', encodeURIComponent(String(memberId)));
|
|
379
370
|
|
|
380
371
|
let localVarQueryParameters: any = {};
|
|
381
372
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -388,13 +379,13 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
388
379
|
let localVarFormParams: any = {};
|
|
389
380
|
|
|
390
381
|
|
|
391
|
-
// Verify required parameter '
|
|
392
|
-
if (
|
|
393
|
-
throw new Error('Required parameter "
|
|
382
|
+
// Verify required parameter 'memberId' is not null or undefined
|
|
383
|
+
if (memberId === null || memberId === undefined) {
|
|
384
|
+
throw new Error('Required parameter "memberId" was null or undefined when calling updateMemberRole.');
|
|
394
385
|
}
|
|
395
|
-
// Verify required parameter '
|
|
396
|
-
if (
|
|
397
|
-
throw new Error('Required parameter "
|
|
386
|
+
// Verify required parameter 'updateMemberRoleRequest' is not null or undefined
|
|
387
|
+
if (updateMemberRoleRequest === null || updateMemberRoleRequest === undefined) {
|
|
388
|
+
throw new Error('Required parameter "updateMemberRoleRequest" was null or undefined when calling updateMemberRole.');
|
|
398
389
|
}
|
|
399
390
|
|
|
400
391
|
|
|
@@ -416,7 +407,7 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
416
407
|
uri: localVarPath,
|
|
417
408
|
useQuerystring: this._useQuerystring,
|
|
418
409
|
json: true,
|
|
419
|
-
body: ObjectSerializer.serialize(
|
|
410
|
+
body: ObjectSerializer.serialize(updateMemberRoleRequest, "UpdateMemberRoleRequest")
|
|
420
411
|
};
|
|
421
412
|
|
|
422
413
|
let authenticationPromise = Promise.resolve();
|
|
@@ -435,13 +426,100 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
435
426
|
localVarRequestOptions.form = localVarFormParams;
|
|
436
427
|
}
|
|
437
428
|
}
|
|
438
|
-
return new Promise<{ body:
|
|
429
|
+
return new Promise<{ body: OrganizationMember, status: number }>((resolve, reject) => {
|
|
430
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
431
|
+
if (error) {
|
|
432
|
+
console.error('API call error:', error);
|
|
433
|
+
reject(error);
|
|
434
|
+
} else {
|
|
435
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
436
|
+
body = ObjectSerializer.deserialize(body, "OrganizationMember");
|
|
437
|
+
resolve({ body: body, status: response.statusCode });
|
|
438
|
+
} else {
|
|
439
|
+
console.error('API response error:', response.statusCode);
|
|
440
|
+
resolve({ body: body, status: response.statusCode });
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
});
|
|
445
|
+
} )
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Changes the display name of the organization. Only admins can update the name.
|
|
449
|
+
* @summary Update organization name
|
|
450
|
+
* @param updateOrganizationNameRequest
|
|
451
|
+
*/
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
public async updateOrganizationName (updateOrganizationNameRequest: UpdateOrganizationNameRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: OrganizationNameResponse, status: number }> {
|
|
458
|
+
|
|
459
|
+
const localVarPath = this.basePath + '/organization/name';
|
|
460
|
+
|
|
461
|
+
let localVarQueryParameters: any = {};
|
|
462
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
463
|
+
const produces = ['application/json'];
|
|
464
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
465
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
466
|
+
} else {
|
|
467
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
468
|
+
}
|
|
469
|
+
let localVarFormParams: any = {};
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
// Verify required parameter 'updateOrganizationNameRequest' is not null or undefined
|
|
473
|
+
if (updateOrganizationNameRequest === null || updateOrganizationNameRequest === undefined) {
|
|
474
|
+
throw new Error('Required parameter "updateOrganizationNameRequest" was null or undefined when calling updateOrganizationName.');
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
484
|
+
|
|
485
|
+
let localVarUseFormData = false;
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
490
|
+
method: 'PATCH',
|
|
491
|
+
qs: localVarQueryParameters,
|
|
492
|
+
headers: localVarHeaderParams,
|
|
493
|
+
uri: localVarPath,
|
|
494
|
+
useQuerystring: this._useQuerystring,
|
|
495
|
+
json: true,
|
|
496
|
+
body: ObjectSerializer.serialize(updateOrganizationNameRequest, "UpdateOrganizationNameRequest")
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
let authenticationPromise = Promise.resolve();
|
|
500
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
501
|
+
|
|
502
|
+
let interceptorPromise = authenticationPromise;
|
|
503
|
+
for (const interceptor of this.interceptors) {
|
|
504
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
return interceptorPromise.then(() => {
|
|
508
|
+
if (Object.keys(localVarFormParams).length) {
|
|
509
|
+
if (localVarUseFormData) {
|
|
510
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
511
|
+
} else {
|
|
512
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
return new Promise<{ body: OrganizationNameResponse, status: number }>((resolve, reject) => {
|
|
439
516
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
440
517
|
if (error) {
|
|
441
518
|
console.error('API call error:', error);
|
|
442
519
|
reject(error);
|
|
443
520
|
} else {
|
|
444
521
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
522
|
+
body = ObjectSerializer.deserialize(body, "OrganizationNameResponse");
|
|
445
523
|
resolve({ body: body, status: response.statusCode });
|
|
446
524
|
} else {
|
|
447
525
|
console.error('API response error:', response.statusCode);
|