@northstake/northstakeapi 1.0.12 → 1.0.14
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 +39 -39
- package/api/accountApi.ts +38 -18
- package/api/apis.ts +17 -17
- package/api/depositAddressesApi.ts +72 -35
- package/api/linkedWalletsApi.ts +105 -51
- package/api/liquidityProviderApi.ts +37 -17
- package/api/{stakingPartnerManagedUsersApi.ts → managedUsersApi.ts} +156 -87
- package/api/{stakingPartnerManagedUsersDepositAddressesApi.ts → managedUsersDepositAddressesApi.ts} +44 -25
- package/api/{stakingPartnerManagedUsersLinkedWalletsApi.ts → managedUsersLinkedWalletsApi.ts} +120 -70
- package/api/{stakingPartnerManagedUsersOrdersApi.ts → managedUsersOrdersApi.ts} +155 -88
- package/api/{stakingPartnerManagedUsersPortfolioApi.ts → managedUsersPortfolioApi.ts} +44 -25
- package/api/{stakingPartnerManagedUsersStatsApi.ts → managedUsersTransactionsApi.ts} +83 -28
- package/api/{stakingPartnerManagedUsersValidatorsApi.ts → managedUsersValidatorsApi.ts} +43 -24
- package/api/ordersApi.ts +141 -69
- package/api/portfolioApi.ts +38 -18
- package/api/{statsApi.ts → transactionsApi.ts} +73 -33
- package/api/validatorMarketplaceBuyersApi.ts +146 -78
- package/api/validatorMarketplaceSellersApi.ts +229 -129
- package/api/validatorMarketplaceWebhooksApi.ts +106 -52
- package/api/validatorsApi.ts +44 -26
- package/api.ts +171 -89
- package/dist/api/accountApi.d.ts +7 -9
- package/dist/api/accountApi.js +3 -2
- package/dist/api/apis.d.ts +17 -17
- package/dist/api/apis.js +17 -17
- package/dist/api/depositAddressesApi.d.ts +11 -13
- package/dist/api/depositAddressesApi.js +9 -7
- package/dist/api/linkedWalletsApi.d.ts +13 -15
- package/dist/api/linkedWalletsApi.js +15 -11
- package/dist/api/liquidityProviderApi.d.ts +8 -10
- package/dist/api/liquidityProviderApi.js +3 -2
- package/dist/api/{stakingPartnerManagedUsersApi.d.ts → managedUsersApi.d.ts} +26 -28
- package/dist/api/{stakingPartnerManagedUsersApi.js → managedUsersApi.js} +49 -45
- package/dist/api/{stakingPartnerManagedUsersDepositAddressesApi.d.ts → managedUsersDepositAddressesApi.d.ts} +12 -14
- package/dist/api/{stakingPartnerManagedUsersDepositAddressesApi.js → managedUsersDepositAddressesApi.js} +16 -15
- package/dist/api/{stakingPartnerManagedUsersLinkedWalletsApi.d.ts → managedUsersLinkedWalletsApi.d.ts} +19 -21
- package/dist/api/{stakingPartnerManagedUsersLinkedWalletsApi.js → managedUsersLinkedWalletsApi.js} +38 -35
- package/dist/api/managedUsersOrdersApi.d.ts +94 -0
- package/dist/api/{stakingPartnerManagedUsersOrdersApi.js → managedUsersOrdersApi.js} +46 -42
- package/dist/api/{stakingPartnerManagedUsersPortfolioApi.d.ts → managedUsersPortfolioApi.d.ts} +11 -13
- package/dist/api/{stakingPartnerManagedUsersPortfolioApi.js → managedUsersPortfolioApi.js} +16 -15
- package/dist/api/managedUsersTransactionsApi.d.ts +68 -0
- package/dist/api/{stakingPartnerManagedUsersStatsApi.js → managedUsersTransactionsApi.js} +43 -18
- package/dist/api/{stakingPartnerManagedUsersValidatorsApi.d.ts → managedUsersValidatorsApi.d.ts} +10 -12
- package/dist/api/{stakingPartnerManagedUsersValidatorsApi.js → managedUsersValidatorsApi.js} +15 -14
- package/dist/api/ordersApi.d.ts +15 -17
- package/dist/api/ordersApi.js +23 -18
- package/dist/api/portfolioApi.d.ts +7 -9
- package/dist/api/portfolioApi.js +3 -2
- package/dist/api/{statsApi.d.ts → transactionsApi.d.ts} +26 -15
- package/dist/api/{statsApi.js → transactionsApi.js} +33 -20
- package/dist/api/validatorMarketplaceBuyersApi.d.ts +17 -19
- package/dist/api/validatorMarketplaceBuyersApi.js +27 -23
- package/dist/api/validatorMarketplaceSellersApi.d.ts +30 -33
- package/dist/api/validatorMarketplaceSellersApi.js +59 -53
- package/dist/api/validatorMarketplaceWebhooksApi.d.ts +15 -17
- package/dist/api/validatorMarketplaceWebhooksApi.js +17 -14
- package/dist/api/validatorsApi.d.ts +10 -12
- package/dist/api/validatorsApi.js +5 -4
- package/dist/api.d.ts +127 -89
- package/dist/api.js +150 -90
- package/dist/model/accountEntity.d.ts +5 -1
- package/dist/model/accountEntity.js +8 -5
- package/dist/model/{addLinkedWalletForManagedUserRequest.d.ts → addLinkedWalletForUserRequest.d.ts} +4 -4
- package/dist/model/{addLinkedWalletForManagedUserRequest.js → addLinkedWalletForUserRequest.js} +7 -7
- package/dist/model/addLinkedWalletRequest.d.ts +2 -2
- package/dist/model/addLinkedWalletRequest.js +1 -1
- package/dist/model/{getAllManagedUsers200Response.d.ts → allManagedUsersResponse.d.ts} +1 -1
- package/dist/model/{getAllManagedUsers200Response.js → allManagedUsersResponse.js} +6 -6
- package/dist/model/{tokenEnum.d.ts → asset.d.ts} +1 -11
- package/dist/model/{validatorKeyHolderEnum.d.ts → asset.js} +2 -4
- package/dist/model/createManagedUserRequest.d.ts +1 -1
- package/dist/model/createManagedUserRequest.js +1 -1
- package/dist/model/{validatorKeyKeystoreCryptoChecksum.d.ts → createRFQRequest.d.ts} +3 -3
- package/dist/model/{createRFQDocumentRequest.js → createRFQRequest.js} +8 -8
- package/dist/model/depositAccount.d.ts +5 -2
- package/dist/model/depositAccount.js +4 -1
- package/dist/model/{getDepositAddressesForManagedUser200Response.d.ts → depositAddressesForUserResponse.d.ts} +1 -1
- package/dist/model/{getDepositAddressesForManagedUser200Response.js → depositAddressesForUserResponse.js} +6 -6
- package/dist/model/errorResponse.d.ts +3 -0
- package/dist/model/errorResponse.js +3 -0
- package/dist/model/{validatorKey.d.ts → ethereumValidatorKey.d.ts} +6 -14
- package/dist/model/{validatorKey.js → ethereumValidatorKey.js} +10 -17
- package/dist/model/ethereumValidatorKeyKeystore.d.ts +31 -0
- package/dist/model/{validatorKeyKeystore.js → ethereumValidatorKeyKeystore.js} +7 -7
- package/dist/model/{baseOrder.d.ts → ethereumValidatorKeyKeystoreCrypto.d.ts} +7 -24
- package/dist/model/{validatorKeyKeystoreCrypto.js → ethereumValidatorKeyKeystoreCrypto.js} +9 -9
- package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.d.ts +27 -0
- package/dist/model/{validatorKeyKeystoreCryptoCipher.js → ethereumValidatorKeyKeystoreCryptoChecksum.js} +8 -8
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.d.ts +28 -0
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.js +38 -0
- package/dist/model/{submitQuoteForRFQDocumentRequest.d.ts → ethereumValidatorKeyKeystoreCryptoCipherParams.d.ts} +2 -2
- package/dist/model/{validatorKeyKeystoreCryptoCipherParams.js → ethereumValidatorKeyKeystoreCryptoCipherParams.js} +6 -6
- package/dist/model/{getTransactionStatistics200ResponseInner.d.ts → ethereumValidatorKeyKeystoreCryptoKdf.d.ts} +5 -7
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.js +38 -0
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.d.ts +29 -0
- package/dist/model/{validatorKeyKeystoreCryptoKdfParams.js → ethereumValidatorKeyKeystoreCryptoKdfParams.js} +6 -6
- package/dist/model/exitEstimateBase.d.ts +1 -1
- package/dist/model/exitEstimateBase.js +1 -1
- package/dist/model/exitEstimateSeller.d.ts +2 -2
- package/dist/model/exitEstimateSeller.js +2 -2
- package/dist/model/getTransactionsResponse.d.ts +38 -0
- package/dist/model/getTransactionsResponse.js +43 -0
- package/dist/model/managedUser.d.ts +4 -1
- package/dist/model/managedUser.js +4 -1
- package/dist/model/models.d.ts +37 -37
- package/dist/model/models.js +106 -127
- package/dist/model/{unstakeOrder.d.ts → order.d.ts} +11 -16
- package/dist/model/{rewardStat.js → order.js} +18 -18
- package/dist/model/orderDocument.d.ts +18 -19
- package/dist/model/orderDocument.js +11 -21
- package/dist/model/{validatorContractTypeEnum.d.ts → orderType.d.ts} +4 -4
- package/dist/model/{rFQDocumentStatusEnum.d.ts → orderType.js} +2 -6
- package/dist/model/portfolioEntity.d.ts +5 -2
- package/dist/model/portfolioEntity.js +4 -1
- package/dist/model/provideEscrowHashForRFQDocumentRequest.d.ts +1 -1
- package/dist/model/provideEscrowHashForRFQDocumentRequest.js +1 -1
- package/dist/model/quote.d.ts +1 -1
- package/dist/model/quote.js +1 -1
- package/dist/model/rFQBids.d.ts +3 -3
- package/dist/model/rFQBids.js +3 -3
- package/dist/model/rFQDocumentBase.d.ts +7 -7
- package/dist/model/rFQDocumentBase.js +6 -6
- package/dist/model/rFQDocumentBaseUniqueEscrowVault.d.ts +1 -1
- package/dist/model/rFQDocumentBaseUniqueEscrowVault.js +1 -1
- package/dist/model/rFQDocumentBuyer.d.ts +7 -7
- package/dist/model/rFQDocumentBuyer.js +6 -6
- package/dist/model/rFQDocumentBuyerAllOfValidators.d.ts +2 -2
- package/dist/model/rFQDocumentBuyerAllOfValidators.js +2 -2
- package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +12 -0
- package/dist/model/rFQDocumentBuyerStatusFilter.js +13 -0
- package/dist/model/rFQDocumentSeller.d.ts +9 -9
- package/dist/model/rFQDocumentSeller.js +8 -8
- package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +2 -2
- package/dist/model/rFQDocumentSellerAllOfValidators.js +2 -2
- package/dist/model/{rFQDocumentBuyerStatusFilterEnum.d.ts → rFQDocumentSellerStatusFilter.d.ts} +1 -8
- package/dist/model/rFQDocumentSellerStatusFilter.js +13 -0
- package/dist/model/rFQDocumentStatus.d.ts +12 -0
- package/dist/model/rFQDocumentStatus.js +13 -0
- package/dist/model/rFQDocumentUpdate.d.ts +5 -5
- package/dist/model/rFQDocumentUpdate.js +5 -5
- package/dist/model/rFQUpdatePayload.d.ts +2 -2
- package/dist/model/rFQWebhookEventType.d.ts +4 -8
- package/dist/model/rFQWebhookEventType.js +0 -10
- package/dist/model/{validatorKeyKeystoreCryptoCipherParams.d.ts → registerWithdrawalRecipientSettlementRequest.d.ts} +2 -2
- package/dist/model/registerWithdrawalRecipientSettlementRequest.js +28 -0
- package/dist/model/settlementStepAcceptedQuote.d.ts +1 -1
- package/dist/model/settlementStepAcceptedQuote.js +1 -1
- package/dist/model/settlementStepEscrowPayment.d.ts +1 -1
- package/dist/model/settlementStepEscrowPayment.js +1 -1
- package/dist/model/settlementStepEscrowReleased.d.ts +2 -2
- package/dist/model/settlementStepEscrowReleased.js +2 -2
- package/dist/model/settlementStepWithdrawalRecipientSettlement.d.ts +1 -1
- package/dist/model/settlementStepWithdrawalRecipientSettlement.js +1 -1
- package/dist/model/settlementSteps.d.ts +4 -4
- package/dist/model/settlementSteps.js +4 -4
- package/dist/model/smartContract.d.ts +36 -0
- package/dist/model/{transactionStat.js → smartContract.js} +25 -22
- package/dist/model/stepStatus.d.ts +1 -5
- package/dist/model/stepStatus.js +0 -10
- package/dist/model/{rejectQuoteForRFQDocumentRequest.d.ts → submittedQuote.d.ts} +2 -2
- package/dist/model/{submitQuoteForRFQDocumentRequest.js → submittedQuote.js} +7 -7
- package/dist/model/{transactionStat.d.ts → transaction.d.ts} +16 -15
- package/dist/model/transaction.js +56 -0
- package/dist/model/transactionEventType.d.ts +15 -0
- package/dist/model/transactionEventType.js +13 -0
- package/dist/model/transactionsforUser.d.ts +38 -0
- package/dist/model/transactionsforUser.js +43 -0
- package/dist/model/unstakeStepType.d.ts +1 -16
- package/dist/model/unstakeStepType.js +0 -21
- package/dist/model/validatorContractType.d.ts +12 -0
- package/dist/model/validatorContractType.js +13 -0
- package/dist/model/validatorInfo.d.ts +20 -18
- package/dist/model/validatorInfo.js +10 -20
- package/dist/model/validatorInfoValidatorType.d.ts +2 -2
- package/dist/model/validatorInfoValidatorType.js +2 -2
- package/dist/model/validatorInfoValidatorTypeContract.d.ts +2 -2
- package/dist/model/validatorInfoValidatorTypeContract.js +2 -2
- package/dist/model/{configSource.d.ts → validatorKeyHolder.d.ts} +1 -4
- package/dist/model/validatorKeyHolder.js +13 -0
- package/dist/model/wallet.d.ts +3 -0
- package/dist/model/wallet.js +3 -0
- package/dist/model/webhookPayload.d.ts +3 -0
- package/dist/model/webhookPayload.js +3 -0
- package/dist/model/webhookPayloadData.d.ts +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/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 +2 -2
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +2 -2
- package/dist/model/webhookPayloadRFQTransferProposalReceived.d.ts +31 -0
- package/dist/model/webhookPayloadRFQTransferProposalReceived.js +38 -0
- package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetails.d.ts → webhookPayloadRFQTransferProposalReceivedDetails.d.ts} +2 -2
- package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetails.js → webhookPayloadRFQTransferProposalReceivedDetails.js} +7 -7
- package/dist/model/webhookPayloadRFQValidatorExited.d.ts +31 -0
- package/dist/model/webhookPayloadRFQValidatorExited.js +38 -0
- package/dist/model/{createRFQDocumentRequest.d.ts → webhookPayloadRFQValidatorExitedDetails.d.ts} +3 -3
- package/dist/model/webhookPayloadRFQValidatorExitedDetails.js +33 -0
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +3 -3
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +2 -2
- package/dist/model/withdrawalStepType.d.ts +1 -8
- package/dist/model/withdrawalStepType.js +0 -13
- package/model/accountEntity.ts +15 -11
- package/model/{addLinkedWalletForManagedUserRequest.ts → addLinkedWalletForUserRequest.ts} +8 -8
- package/model/addLinkedWalletRequest.ts +6 -6
- package/model/{getAllManagedUsers200Response.ts → allManagedUsersResponse.ts} +7 -7
- package/model/asset.ts +27 -0
- package/model/createManagedUserRequest.ts +3 -3
- package/model/{createRFQDocumentRequest.ts → createRFQRequest.ts} +7 -7
- package/model/depositAccount.ts +8 -5
- package/model/{getDepositAddressesForManagedUser200Response.ts → depositAddressesForUserResponse.ts} +5 -5
- package/model/errorResponse.ts +5 -2
- package/model/{validatorKey.ts → ethereumValidatorKey.ts} +11 -29
- package/model/{validatorKeyKeystore.ts → ethereumValidatorKeyKeystore.ts} +11 -11
- package/model/ethereumValidatorKeyKeystoreCrypto.ts +46 -0
- package/model/{validatorKeyKeystoreCryptoChecksum.ts → ethereumValidatorKeyKeystoreCryptoChecksum.ts} +12 -6
- package/model/{validatorKeyKeystoreCryptoKdf.ts → ethereumValidatorKeyKeystoreCryptoCipher.ts} +14 -8
- package/model/{validatorKeyKeystoreCryptoCipherParams.ts → ethereumValidatorKeyKeystoreCryptoCipherParams.ts} +4 -4
- package/model/{validatorKeyKeystoreCryptoCipher.ts → ethereumValidatorKeyKeystoreCryptoKdf.ts} +9 -9
- package/model/{validatorKeyKeystoreCryptoKdfParams.ts → ethereumValidatorKeyKeystoreCryptoKdfParams.ts} +8 -8
- package/model/exitEstimateBase.ts +4 -4
- package/model/exitEstimateSeller.ts +6 -6
- package/model/getTransactionsResponse.ts +59 -0
- package/model/managedUser.ts +7 -4
- package/model/models.ts +278 -123
- package/model/{withdrawalOrder.ts → order.ts} +18 -27
- package/model/orderDocument.ts +41 -27
- package/model/orderDocumentSteps.ts +3 -3
- package/model/orderType.ts +21 -0
- package/model/orderUpdatePayload.ts +4 -4
- package/model/portfolioEntity.ts +9 -6
- package/model/provideEscrowHashForRFQDocumentRequest.ts +3 -3
- package/model/quote.ts +5 -5
- package/model/rFQBids.ts +8 -8
- package/model/rFQDocumentBase.ts +15 -15
- package/model/rFQDocumentBaseUniqueEscrowVault.ts +3 -3
- package/model/rFQDocumentBuyer.ts +17 -17
- package/model/rFQDocumentBuyerAllOfValidators.ts +6 -6
- package/model/{configSource.ts → rFQDocumentBuyerStatusFilter.ts} +8 -5
- package/model/rFQDocumentSeller.ts +20 -20
- package/model/rFQDocumentSellerAllOfValidators.ts +6 -6
- package/model/{validatorKeyHolderEnum.ts → rFQDocumentSellerStatusFilter.ts} +9 -5
- package/model/rFQDocumentStatus.ts +19 -0
- package/model/rFQDocumentUpdate.ts +11 -11
- package/model/rFQUpdatePayload.ts +6 -6
- package/model/rFQWebhookEventType.ts +13 -9
- package/model/{rejectQuoteForRFQDocumentRequest.ts → registerWithdrawalRecipientSettlementRequest.ts} +6 -6
- package/model/settlementStepAcceptedQuote.ts +5 -5
- package/model/settlementStepEscrowPayment.ts +5 -5
- package/model/settlementStepEscrowReleased.ts +7 -7
- package/model/settlementStepWithdrawalRecipientSettlement.ts +4 -4
- package/model/settlementSteps.ts +9 -9
- package/model/{getTransactionStatistics200ResponseInner.ts → smartContract.ts} +31 -25
- package/model/stakeStep.ts +3 -3
- package/model/stakeStepElement.ts +3 -3
- package/model/stepStatus.ts +5 -6
- package/model/{submitQuoteForRFQDocumentRequest.ts → submittedQuote.ts} +5 -5
- package/model/transaction.ts +80 -0
- package/model/transactionEventType.ts +23 -0
- package/model/transactionsforUser.ts +59 -0
- package/model/unstakeStep.ts +3 -3
- package/model/unstakeStepElement.ts +3 -3
- package/model/unstakeStepType.ts +16 -17
- package/model/validatorContractType.ts +17 -0
- package/model/validatorInfo.ts +34 -27
- package/model/validatorInfoValidatorType.ts +6 -6
- package/model/validatorInfoValidatorTypeContract.ts +6 -6
- package/model/validatorKeyHolder.ts +17 -0
- package/model/wallet.ts +7 -4
- package/model/webHookLookupAnswer.ts +5 -5
- package/model/webhookPayload.ts +7 -4
- package/model/webhookPayloadData.ts +8 -8
- package/model/webhookPayloadRFQAvailable.ts +5 -5
- package/model/webhookPayloadRFQBidAccepted.ts +5 -5
- package/model/webhookPayloadRFQBidAcceptedDetails.ts +5 -5
- package/model/webhookPayloadRFQBidReceived.ts +5 -5
- package/model/webhookPayloadRFQEscrowEvent.ts +5 -5
- package/model/webhookPayloadRFQEscrowEventDetails.ts +5 -5
- package/model/webhookPayloadRFQEscrowReleased.ts +5 -5
- package/model/webhookPayloadRFQEscrowReleasedDetails.ts +7 -7
- package/model/webhookPayloadRFQTransferProposalReceived.ts +47 -0
- package/model/{webhookPayloadRFQValidatorWithdrawalChangeDetails.ts → webhookPayloadRFQTransferProposalReceivedDetails.ts} +6 -6
- package/model/webhookPayloadRFQValidatorExited.ts +47 -0
- package/model/webhookPayloadRFQValidatorExitedDetails.ts +37 -0
- package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +7 -7
- package/model/webhookRegistration.ts +4 -4
- package/model/webhookRegistrationDetails.ts +4 -4
- package/model/withdrawalStep.ts +3 -3
- package/model/withdrawalStepElement.ts +3 -3
- package/model/withdrawalStepType.ts +8 -9
- package/package.json +2 -2
- package/api/northstake.ts +0 -116
- package/dist/api/northstake.d.ts +0 -39
- package/dist/api/northstake.js +0 -82
- package/dist/api/stakingPartnerManagedUsersOrdersApi.d.ts +0 -96
- package/dist/api/stakingPartnerManagedUsersStatsApi.d.ts +0 -53
- package/dist/model/baseOrder.js +0 -51
- package/dist/model/configSource.js +0 -19
- package/dist/model/createNewOrderRequest.d.ts +0 -51
- package/dist/model/createNewOrderRequest.js +0 -56
- package/dist/model/createOrderForManagedUserRequest.d.ts +0 -51
- package/dist/model/createOrderForManagedUserRequest.js +0 -56
- package/dist/model/getTransactionStatistics200ResponseInner.js +0 -53
- package/dist/model/rFQDocumentBuyerStatusFilterEnum.js +0 -23
- package/dist/model/rFQDocumentSellerStatusFilterEnum.d.ts +0 -20
- package/dist/model/rFQDocumentSellerStatusFilterEnum.js +0 -24
- package/dist/model/rFQDocumentStatusEnum.js +0 -21
- package/dist/model/rejectQuoteForRFQDocumentRequest.js +0 -28
- package/dist/model/rewardStat.d.ts +0 -44
- package/dist/model/stakeOrder.d.ts +0 -47
- package/dist/model/stakeOrder.js +0 -51
- package/dist/model/tokenEnum.js +0 -29
- package/dist/model/unstakeOrder.js +0 -51
- package/dist/model/validatorContractTypeEnum.js +0 -19
- package/dist/model/validatorKeyHolderEnum.js +0 -19
- package/dist/model/validatorKeyKeystore.d.ts +0 -31
- package/dist/model/validatorKeyKeystoreCrypto.d.ts +0 -30
- package/dist/model/validatorKeyKeystoreCryptoChecksum.js +0 -33
- package/dist/model/validatorKeyKeystoreCryptoCipher.d.ts +0 -28
- package/dist/model/validatorKeyKeystoreCryptoKdf.d.ts +0 -27
- package/dist/model/validatorKeyKeystoreCryptoKdf.js +0 -33
- package/dist/model/validatorKeyKeystoreCryptoKdfParams.d.ts +0 -29
- package/dist/model/withdrawalOrder.d.ts +0 -51
- package/dist/model/withdrawalOrder.js +0 -56
- package/model/baseOrder.ts +0 -68
- package/model/createNewOrderRequest.ts +0 -80
- package/model/createOrderForManagedUserRequest.ts +0 -80
- package/model/rFQDocumentBuyerStatusFilterEnum.ts +0 -22
- package/model/rFQDocumentSellerStatusFilterEnum.ts +0 -23
- package/model/rFQDocumentStatusEnum.ts +0 -20
- package/model/rewardStat.ts +0 -70
- package/model/stakeOrder.ts +0 -68
- package/model/tokenEnum.ts +0 -28
- package/model/transactionStat.ts +0 -79
- package/model/unstakeOrder.ts +0 -68
- package/model/validatorContractTypeEnum.ts +0 -18
- package/model/validatorKeyKeystoreCrypto.ts +0 -46
|
@@ -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.ManagedUsersDepositAddressesApi = exports.ManagedUsersDepositAddressesApiApiKeys = 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");
|
|
@@ -23,11 +23,11 @@ let defaultBasePath = '/v1';
|
|
|
23
23
|
// ===============================================
|
|
24
24
|
// This file is autogenerated - Please do not edit
|
|
25
25
|
// ===============================================
|
|
26
|
-
var
|
|
27
|
-
(function (
|
|
28
|
-
|
|
29
|
-
})(
|
|
30
|
-
class
|
|
26
|
+
var ManagedUsersDepositAddressesApiApiKeys;
|
|
27
|
+
(function (ManagedUsersDepositAddressesApiApiKeys) {
|
|
28
|
+
ManagedUsersDepositAddressesApiApiKeys[ManagedUsersDepositAddressesApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
29
|
+
})(ManagedUsersDepositAddressesApiApiKeys || (exports.ManagedUsersDepositAddressesApiApiKeys = ManagedUsersDepositAddressesApiApiKeys = {}));
|
|
30
|
+
class ManagedUsersDepositAddressesApi {
|
|
31
31
|
constructor(basePathOrUsername, password, basePath) {
|
|
32
32
|
this._basePath = defaultBasePath;
|
|
33
33
|
this._defaultHeaders = {};
|
|
@@ -68,7 +68,7 @@ class StakingPartnerManagedUsersDepositAddressesApi {
|
|
|
68
68
|
this.authentications.default = auth;
|
|
69
69
|
}
|
|
70
70
|
setApiKey(key, value) {
|
|
71
|
-
this.authentications[
|
|
71
|
+
this.authentications[ManagedUsersDepositAddressesApiApiKeys[key]].apiKey = value;
|
|
72
72
|
}
|
|
73
73
|
set accessToken(accessToken) {
|
|
74
74
|
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
@@ -81,13 +81,12 @@ class StakingPartnerManagedUsersDepositAddressesApi {
|
|
|
81
81
|
* @summary Get deposit addresses for a managed user
|
|
82
82
|
* @param userId The ID of the managed user
|
|
83
83
|
*/
|
|
84
|
-
async
|
|
85
|
-
const localVarPath = this.basePath + '/
|
|
84
|
+
async getDepositAddressesForUser(userId, options = { headers: {} }) {
|
|
85
|
+
const localVarPath = this.basePath + '/managedUsers/{userId}/depositAddresses'
|
|
86
86
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
87
87
|
let localVarQueryParameters = {};
|
|
88
88
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
89
89
|
const produces = ['application/json'];
|
|
90
|
-
// give precedence to 'application/json'
|
|
91
90
|
if (produces.indexOf('application/json') >= 0) {
|
|
92
91
|
localVarHeaderParams.Accept = 'application/json';
|
|
93
92
|
}
|
|
@@ -95,9 +94,9 @@ class StakingPartnerManagedUsersDepositAddressesApi {
|
|
|
95
94
|
localVarHeaderParams.Accept = produces.join(',');
|
|
96
95
|
}
|
|
97
96
|
let localVarFormParams = {};
|
|
98
|
-
//
|
|
97
|
+
// Verify required parameter 'userId' is not null or undefined
|
|
99
98
|
if (userId === null || userId === undefined) {
|
|
100
|
-
throw new Error('Required parameter userId was null or undefined when calling
|
|
99
|
+
throw new Error('Required parameter "userId" was null or undefined when calling getDepositAddressesForUser.');
|
|
101
100
|
}
|
|
102
101
|
Object.assign(localVarHeaderParams, options.headers);
|
|
103
102
|
let localVarUseFormData = false;
|
|
@@ -127,14 +126,16 @@ class StakingPartnerManagedUsersDepositAddressesApi {
|
|
|
127
126
|
return new Promise((resolve, reject) => {
|
|
128
127
|
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
129
128
|
if (error) {
|
|
129
|
+
console.error('API call error:', error);
|
|
130
130
|
reject(error);
|
|
131
131
|
}
|
|
132
132
|
else {
|
|
133
133
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
134
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
135
|
-
resolve({
|
|
134
|
+
body = models_1.ObjectSerializer.deserialize(body, "DepositAddressesForUserResponse");
|
|
135
|
+
resolve({ body: body, status: response.statusCode });
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
|
+
console.error('API response error:', response.statusCode);
|
|
138
139
|
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
139
140
|
}
|
|
140
141
|
}
|
|
@@ -143,4 +144,4 @@ class StakingPartnerManagedUsersDepositAddressesApi {
|
|
|
143
144
|
});
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
|
-
exports.
|
|
147
|
+
exports.ManagedUsersDepositAddressesApi = ManagedUsersDepositAddressesApi;
|
|
@@ -9,22 +9,20 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
import
|
|
14
|
-
import { AddLinkedWalletForManagedUserRequest } from '../model/addLinkedWalletForManagedUserRequest';
|
|
15
|
-
import { TokenEnum } from '../model/tokenEnum';
|
|
12
|
+
import { AddLinkedWalletForUserRequest } from '../model/addLinkedWalletForUserRequest';
|
|
13
|
+
import { Asset } from '../model/asset';
|
|
16
14
|
import { Wallet } from '../model/wallet';
|
|
17
|
-
import { Interceptor } from '../model/models';
|
|
18
|
-
import { HttpBearerAuth, ApiKeyAuth
|
|
19
|
-
export declare enum
|
|
15
|
+
import { Authentication, Interceptor } from '../model/models';
|
|
16
|
+
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
17
|
+
export declare enum ManagedUsersLinkedWalletsApiApiKeys {
|
|
20
18
|
ApiKeyAuth = 0
|
|
21
19
|
}
|
|
22
|
-
export declare class
|
|
20
|
+
export declare class ManagedUsersLinkedWalletsApi {
|
|
23
21
|
protected _basePath: string;
|
|
24
22
|
protected _defaultHeaders: any;
|
|
25
23
|
protected _useQuerystring: boolean;
|
|
26
24
|
protected authentications: {
|
|
27
|
-
default:
|
|
25
|
+
default: Authentication;
|
|
28
26
|
bearerTokenAuth: HttpBearerAuth;
|
|
29
27
|
ApiKeyAuth: ApiKeyAuth;
|
|
30
28
|
};
|
|
@@ -35,23 +33,23 @@ export declare class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
35
33
|
set defaultHeaders(defaultHeaders: any);
|
|
36
34
|
get defaultHeaders(): any;
|
|
37
35
|
get basePath(): string;
|
|
38
|
-
setDefaultAuthentication(auth:
|
|
39
|
-
|
|
36
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
37
|
+
setApiKey(key: ManagedUsersLinkedWalletsApiApiKeys, value: string): void;
|
|
40
38
|
set accessToken(accessToken: string | (() => string));
|
|
41
|
-
|
|
39
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
42
40
|
/**
|
|
43
41
|
*
|
|
44
42
|
* @summary Add a new linked wallet for a managed user
|
|
45
43
|
* @param userId The unique identifier for the managed user
|
|
46
|
-
* @param
|
|
44
|
+
* @param addLinkedWalletForUserRequest
|
|
47
45
|
*/
|
|
48
|
-
|
|
46
|
+
addLinkedWalletForUser(userId: string, addLinkedWalletForUserRequest: AddLinkedWalletForUserRequest, options?: {
|
|
49
47
|
headers: {
|
|
50
48
|
[name: string]: string;
|
|
51
49
|
};
|
|
52
50
|
}): Promise<{
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
body: any;
|
|
52
|
+
status: number;
|
|
55
53
|
}>;
|
|
56
54
|
/**
|
|
57
55
|
*
|
|
@@ -60,25 +58,25 @@ export declare class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
60
58
|
* @param walletAddress The wallet address of the linked wallet to delete
|
|
61
59
|
* @param walletType
|
|
62
60
|
*/
|
|
63
|
-
|
|
61
|
+
deleteLinkedWalletForUser(userId: string, walletAddress: string, walletType: Asset, options?: {
|
|
64
62
|
headers: {
|
|
65
63
|
[name: string]: string;
|
|
66
64
|
};
|
|
67
65
|
}): Promise<{
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
body: any;
|
|
67
|
+
status: number;
|
|
70
68
|
}>;
|
|
71
69
|
/**
|
|
72
70
|
*
|
|
73
71
|
* @summary List linked wallets for a managed user
|
|
74
72
|
* @param userId The unique identifier for the managed user
|
|
75
73
|
*/
|
|
76
|
-
|
|
74
|
+
listLinkedWalletsForUser(userId: string, options?: {
|
|
77
75
|
headers: {
|
|
78
76
|
[name: string]: string;
|
|
79
77
|
};
|
|
80
78
|
}): Promise<{
|
|
81
|
-
response: http.IncomingMessage;
|
|
82
79
|
body: Array<Wallet>;
|
|
80
|
+
status: number;
|
|
83
81
|
}>;
|
|
84
82
|
}
|
package/dist/api/{stakingPartnerManagedUsersLinkedWalletsApi.js → managedUsersLinkedWalletsApi.js}
RENAMED
|
@@ -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.ManagedUsersLinkedWalletsApi = exports.ManagedUsersLinkedWalletsApiApiKeys = 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");
|
|
@@ -23,11 +23,11 @@ let defaultBasePath = '/v1';
|
|
|
23
23
|
// ===============================================
|
|
24
24
|
// This file is autogenerated - Please do not edit
|
|
25
25
|
// ===============================================
|
|
26
|
-
var
|
|
27
|
-
(function (
|
|
28
|
-
|
|
29
|
-
})(
|
|
30
|
-
class
|
|
26
|
+
var ManagedUsersLinkedWalletsApiApiKeys;
|
|
27
|
+
(function (ManagedUsersLinkedWalletsApiApiKeys) {
|
|
28
|
+
ManagedUsersLinkedWalletsApiApiKeys[ManagedUsersLinkedWalletsApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
29
|
+
})(ManagedUsersLinkedWalletsApiApiKeys || (exports.ManagedUsersLinkedWalletsApiApiKeys = ManagedUsersLinkedWalletsApiApiKeys = {}));
|
|
30
|
+
class ManagedUsersLinkedWalletsApi {
|
|
31
31
|
constructor(basePathOrUsername, password, basePath) {
|
|
32
32
|
this._basePath = defaultBasePath;
|
|
33
33
|
this._defaultHeaders = {};
|
|
@@ -68,7 +68,7 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
68
68
|
this.authentications.default = auth;
|
|
69
69
|
}
|
|
70
70
|
setApiKey(key, value) {
|
|
71
|
-
this.authentications[
|
|
71
|
+
this.authentications[ManagedUsersLinkedWalletsApiApiKeys[key]].apiKey = value;
|
|
72
72
|
}
|
|
73
73
|
set accessToken(accessToken) {
|
|
74
74
|
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
@@ -80,15 +80,14 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
80
80
|
*
|
|
81
81
|
* @summary Add a new linked wallet for a managed user
|
|
82
82
|
* @param userId The unique identifier for the managed user
|
|
83
|
-
* @param
|
|
83
|
+
* @param addLinkedWalletForUserRequest
|
|
84
84
|
*/
|
|
85
|
-
async
|
|
86
|
-
const localVarPath = this.basePath + '/
|
|
85
|
+
async addLinkedWalletForUser(userId, addLinkedWalletForUserRequest, options = { headers: {} }) {
|
|
86
|
+
const localVarPath = this.basePath + '/managedUsers/{userId}/linkedWallets'
|
|
87
87
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
88
88
|
let localVarQueryParameters = {};
|
|
89
89
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
90
90
|
const produces = ['application/json'];
|
|
91
|
-
// give precedence to 'application/json'
|
|
92
91
|
if (produces.indexOf('application/json') >= 0) {
|
|
93
92
|
localVarHeaderParams.Accept = 'application/json';
|
|
94
93
|
}
|
|
@@ -96,13 +95,13 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
96
95
|
localVarHeaderParams.Accept = produces.join(',');
|
|
97
96
|
}
|
|
98
97
|
let localVarFormParams = {};
|
|
99
|
-
//
|
|
98
|
+
// Verify required parameter 'userId' is not null or undefined
|
|
100
99
|
if (userId === null || userId === undefined) {
|
|
101
|
-
throw new Error('Required parameter userId was null or undefined when calling
|
|
100
|
+
throw new Error('Required parameter "userId" was null or undefined when calling addLinkedWalletForUser.');
|
|
102
101
|
}
|
|
103
|
-
//
|
|
104
|
-
if (
|
|
105
|
-
throw new Error('Required parameter
|
|
102
|
+
// Verify required parameter 'addLinkedWalletForUserRequest' is not null or undefined
|
|
103
|
+
if (addLinkedWalletForUserRequest === null || addLinkedWalletForUserRequest === undefined) {
|
|
104
|
+
throw new Error('Required parameter "addLinkedWalletForUserRequest" was null or undefined when calling addLinkedWalletForUser.');
|
|
106
105
|
}
|
|
107
106
|
Object.assign(localVarHeaderParams, options.headers);
|
|
108
107
|
let localVarUseFormData = false;
|
|
@@ -113,7 +112,7 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
113
112
|
uri: localVarPath,
|
|
114
113
|
useQuerystring: this._useQuerystring,
|
|
115
114
|
json: true,
|
|
116
|
-
body: models_1.ObjectSerializer.serialize(
|
|
115
|
+
body: models_1.ObjectSerializer.serialize(addLinkedWalletForUserRequest, "AddLinkedWalletForUserRequest")
|
|
117
116
|
};
|
|
118
117
|
let authenticationPromise = Promise.resolve();
|
|
119
118
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
@@ -133,13 +132,15 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
133
132
|
return new Promise((resolve, reject) => {
|
|
134
133
|
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
135
134
|
if (error) {
|
|
135
|
+
console.error('API call error:', error);
|
|
136
136
|
reject(error);
|
|
137
137
|
}
|
|
138
138
|
else {
|
|
139
139
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
140
|
-
resolve({
|
|
140
|
+
resolve({ body: body, status: response.statusCode });
|
|
141
141
|
}
|
|
142
142
|
else {
|
|
143
|
+
console.error('API response error:', response.statusCode);
|
|
143
144
|
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
144
145
|
}
|
|
145
146
|
}
|
|
@@ -154,15 +155,14 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
154
155
|
* @param walletAddress The wallet address of the linked wallet to delete
|
|
155
156
|
* @param walletType
|
|
156
157
|
*/
|
|
157
|
-
async
|
|
158
|
-
const localVarPath = this.basePath + '/
|
|
158
|
+
async deleteLinkedWalletForUser(userId, walletAddress, walletType, options = { headers: {} }) {
|
|
159
|
+
const localVarPath = this.basePath + '/managedUsers/{userId}/linkedWallets/{walletType}/{walletAddress}'
|
|
159
160
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
|
|
160
161
|
.replace('{' + 'walletAddress' + '}', encodeURIComponent(String(walletAddress)))
|
|
161
162
|
.replace('{' + 'walletType' + '}', encodeURIComponent(String(walletType)));
|
|
162
163
|
let localVarQueryParameters = {};
|
|
163
164
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
164
165
|
const produces = ['application/json'];
|
|
165
|
-
// give precedence to 'application/json'
|
|
166
166
|
if (produces.indexOf('application/json') >= 0) {
|
|
167
167
|
localVarHeaderParams.Accept = 'application/json';
|
|
168
168
|
}
|
|
@@ -170,17 +170,17 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
170
170
|
localVarHeaderParams.Accept = produces.join(',');
|
|
171
171
|
}
|
|
172
172
|
let localVarFormParams = {};
|
|
173
|
-
//
|
|
173
|
+
// Verify required parameter 'userId' is not null or undefined
|
|
174
174
|
if (userId === null || userId === undefined) {
|
|
175
|
-
throw new Error('Required parameter userId was null or undefined when calling
|
|
175
|
+
throw new Error('Required parameter "userId" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
176
176
|
}
|
|
177
|
-
//
|
|
177
|
+
// Verify required parameter 'walletAddress' is not null or undefined
|
|
178
178
|
if (walletAddress === null || walletAddress === undefined) {
|
|
179
|
-
throw new Error('Required parameter walletAddress was null or undefined when calling
|
|
179
|
+
throw new Error('Required parameter "walletAddress" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
180
180
|
}
|
|
181
|
-
//
|
|
181
|
+
// Verify required parameter 'walletType' is not null or undefined
|
|
182
182
|
if (walletType === null || walletType === undefined) {
|
|
183
|
-
throw new Error('Required parameter walletType was null or undefined when calling
|
|
183
|
+
throw new Error('Required parameter "walletType" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
184
184
|
}
|
|
185
185
|
Object.assign(localVarHeaderParams, options.headers);
|
|
186
186
|
let localVarUseFormData = false;
|
|
@@ -210,13 +210,15 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
210
210
|
return new Promise((resolve, reject) => {
|
|
211
211
|
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
212
212
|
if (error) {
|
|
213
|
+
console.error('API call error:', error);
|
|
213
214
|
reject(error);
|
|
214
215
|
}
|
|
215
216
|
else {
|
|
216
217
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
217
|
-
resolve({
|
|
218
|
+
resolve({ body: body, status: response.statusCode });
|
|
218
219
|
}
|
|
219
220
|
else {
|
|
221
|
+
console.error('API response error:', response.statusCode);
|
|
220
222
|
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
221
223
|
}
|
|
222
224
|
}
|
|
@@ -229,13 +231,12 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
229
231
|
* @summary List linked wallets for a managed user
|
|
230
232
|
* @param userId The unique identifier for the managed user
|
|
231
233
|
*/
|
|
232
|
-
async
|
|
233
|
-
const localVarPath = this.basePath + '/
|
|
234
|
+
async listLinkedWalletsForUser(userId, options = { headers: {} }) {
|
|
235
|
+
const localVarPath = this.basePath + '/managedUsers/{userId}/linkedWallets'
|
|
234
236
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
235
237
|
let localVarQueryParameters = {};
|
|
236
238
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
237
239
|
const produces = ['application/json'];
|
|
238
|
-
// give precedence to 'application/json'
|
|
239
240
|
if (produces.indexOf('application/json') >= 0) {
|
|
240
241
|
localVarHeaderParams.Accept = 'application/json';
|
|
241
242
|
}
|
|
@@ -243,9 +244,9 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
243
244
|
localVarHeaderParams.Accept = produces.join(',');
|
|
244
245
|
}
|
|
245
246
|
let localVarFormParams = {};
|
|
246
|
-
//
|
|
247
|
+
// Verify required parameter 'userId' is not null or undefined
|
|
247
248
|
if (userId === null || userId === undefined) {
|
|
248
|
-
throw new Error('Required parameter userId was null or undefined when calling
|
|
249
|
+
throw new Error('Required parameter "userId" was null or undefined when calling listLinkedWalletsForUser.');
|
|
249
250
|
}
|
|
250
251
|
Object.assign(localVarHeaderParams, options.headers);
|
|
251
252
|
let localVarUseFormData = false;
|
|
@@ -275,14 +276,16 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
275
276
|
return new Promise((resolve, reject) => {
|
|
276
277
|
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
277
278
|
if (error) {
|
|
279
|
+
console.error('API call error:', error);
|
|
278
280
|
reject(error);
|
|
279
281
|
}
|
|
280
282
|
else {
|
|
281
283
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
282
284
|
body = models_1.ObjectSerializer.deserialize(body, "Array<Wallet>");
|
|
283
|
-
resolve({
|
|
285
|
+
resolve({ body: body, status: response.statusCode });
|
|
284
286
|
}
|
|
285
287
|
else {
|
|
288
|
+
console.error('API response error:', response.statusCode);
|
|
286
289
|
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
287
290
|
}
|
|
288
291
|
}
|
|
@@ -291,4 +294,4 @@ class StakingPartnerManagedUsersLinkedWalletsApi {
|
|
|
291
294
|
});
|
|
292
295
|
}
|
|
293
296
|
}
|
|
294
|
-
exports.
|
|
297
|
+
exports.ManagedUsersLinkedWalletsApi = ManagedUsersLinkedWalletsApi;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Order } from '../model/order';
|
|
13
|
+
import { OrderDocument } from '../model/orderDocument';
|
|
14
|
+
import { Authentication, Interceptor } from '../model/models';
|
|
15
|
+
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
16
|
+
export declare enum ManagedUsersOrdersApiApiKeys {
|
|
17
|
+
ApiKeyAuth = 0
|
|
18
|
+
}
|
|
19
|
+
export declare class ManagedUsersOrdersApi {
|
|
20
|
+
protected _basePath: string;
|
|
21
|
+
protected _defaultHeaders: any;
|
|
22
|
+
protected _useQuerystring: boolean;
|
|
23
|
+
protected authentications: {
|
|
24
|
+
default: Authentication;
|
|
25
|
+
bearerTokenAuth: HttpBearerAuth;
|
|
26
|
+
ApiKeyAuth: ApiKeyAuth;
|
|
27
|
+
};
|
|
28
|
+
protected interceptors: Interceptor[];
|
|
29
|
+
constructor(basePath?: string);
|
|
30
|
+
set useQuerystring(value: boolean);
|
|
31
|
+
set basePath(basePath: string);
|
|
32
|
+
set defaultHeaders(defaultHeaders: any);
|
|
33
|
+
get defaultHeaders(): any;
|
|
34
|
+
get basePath(): string;
|
|
35
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
36
|
+
setApiKey(key: ManagedUsersOrdersApiApiKeys, value: string): void;
|
|
37
|
+
set accessToken(accessToken: string | (() => string));
|
|
38
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @summary Cancel a submitted order by ID for a particular managed user
|
|
42
|
+
* @param userId
|
|
43
|
+
* @param orderId
|
|
44
|
+
*/
|
|
45
|
+
cancelOrderForUser(userId: string, orderId: string, options?: {
|
|
46
|
+
headers: {
|
|
47
|
+
[name: string]: string;
|
|
48
|
+
};
|
|
49
|
+
}): Promise<{
|
|
50
|
+
body: any;
|
|
51
|
+
status: number;
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* This endpoint allows the client to create a staking, unstaking, or withdrawal order on behalf of a managed user. One key feature of this endpoint is the ability to include an optional `validatorKey` field when creating a staking order. ### Including a Validator Key (Ethereum only) By including a `validatorKey` in the staking order, the client specifies a pre-generated and signed Ethereum validator key that should be used for the staking transaction. This key must meet all required security and operational standards, as it will be directly used for staking on the Ethereum blockchain. The `validatorKey` object includes cryptographic details such as the keystore information, public key, and the cryptographic path. Including this key is beneficial for users who prefer to maintain a level of control over their staking operations and ensure that their specific validators are utilized. ### Without a Validator Key If no `validatorKey` is provided, Northstake handles the staking operation internally. This process requires that the managed user\'s account must have sufficient balance in their deposit account to cover the staking transaction and any associated fees. In this case, Northstake will generate the necessary validator keys, handle the cryptographic operations, and ensure the validator is registered correctly on the blockchain. ### Usage Scenarios - **With Validator Key**: Ensures that a specific, pre-approved validator key is used, providing transparency and control to the user. - **Without Validator Key**: Ideal for users who prefer a hands-off approach, allowing Northstake to manage the technical and operational complexities of staking on their behalf. Clients are advised to ensure that all provided validator keys are secure and generated according to best security practices. Improper handling or exposure of validator keys can lead to significant security risks, including loss of staked assets.
|
|
55
|
+
* @summary Create an order on behalf of a managed user
|
|
56
|
+
* @param userId
|
|
57
|
+
* @param order
|
|
58
|
+
*/
|
|
59
|
+
createOrderForUser(userId: string, order: Order, options?: {
|
|
60
|
+
headers: {
|
|
61
|
+
[name: string]: string;
|
|
62
|
+
};
|
|
63
|
+
}): Promise<{
|
|
64
|
+
body: OrderDocument;
|
|
65
|
+
status: number;
|
|
66
|
+
}>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @summary Get all orders for a particular managed user
|
|
70
|
+
* @param userId
|
|
71
|
+
*/
|
|
72
|
+
getAllOrdersForUser(userId: string, options?: {
|
|
73
|
+
headers: {
|
|
74
|
+
[name: string]: string;
|
|
75
|
+
};
|
|
76
|
+
}): Promise<{
|
|
77
|
+
body: Array<OrderDocument>;
|
|
78
|
+
status: number;
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @summary Get details of an order by ID for a particular managed user
|
|
83
|
+
* @param userId
|
|
84
|
+
* @param orderId
|
|
85
|
+
*/
|
|
86
|
+
getOrderDetailsForUser(userId: string, orderId: string, options?: {
|
|
87
|
+
headers: {
|
|
88
|
+
[name: string]: string;
|
|
89
|
+
};
|
|
90
|
+
}): Promise<{
|
|
91
|
+
body: OrderDocument;
|
|
92
|
+
status: number;
|
|
93
|
+
}>;
|
|
94
|
+
}
|