@northstake/northstakeapi 1.0.12 → 1.0.13
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 +30 -27
- package/api/accountApi.ts +38 -18
- package/api/apis.ts +17 -17
- package/api/depositAddressesApi.ts +71 -34
- package/api/linkedWalletsApi.ts +104 -50
- package/api/liquidityProviderApi.ts +37 -17
- package/api/{stakingPartnerManagedUsersApi.ts → managedUsersApi.ts} +151 -82
- package/api/{stakingPartnerManagedUsersDepositAddressesApi.ts → managedUsersDepositAddressesApi.ts} +44 -25
- package/api/{stakingPartnerManagedUsersLinkedWalletsApi.ts → managedUsersLinkedWalletsApi.ts} +115 -65
- package/api/{stakingPartnerManagedUsersOrdersApi.ts → managedUsersOrdersApi.ts} +151 -84
- 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 +145 -77
- package/api/validatorMarketplaceSellersApi.ts +228 -128
- package/api/validatorMarketplaceWebhooksApi.ts +106 -52
- package/api/validatorsApi.ts +42 -24
- package/api.ts +174 -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 +8 -10
- package/dist/api/depositAddressesApi.js +8 -6
- package/dist/api/linkedWalletsApi.d.ts +11 -13
- 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} +18 -20
- package/dist/api/{stakingPartnerManagedUsersApi.js → managedUsersApi.js} +34 -30
- package/dist/api/{stakingPartnerManagedUsersDepositAddressesApi.d.ts → managedUsersDepositAddressesApi.d.ts} +11 -13
- package/dist/api/{stakingPartnerManagedUsersDepositAddressesApi.js → managedUsersDepositAddressesApi.js} +15 -14
- package/dist/api/{stakingPartnerManagedUsersLinkedWalletsApi.d.ts → managedUsersLinkedWalletsApi.d.ts} +13 -15
- package/dist/api/{stakingPartnerManagedUsersLinkedWalletsApi.js → managedUsersLinkedWalletsApi.js} +32 -29
- package/dist/api/managedUsersOrdersApi.d.ts +94 -0
- package/dist/api/{stakingPartnerManagedUsersOrdersApi.js → managedUsersOrdersApi.js} +39 -35
- package/dist/api/{stakingPartnerManagedUsersPortfolioApi.d.ts → managedUsersPortfolioApi.d.ts} +10 -12
- package/dist/api/{stakingPartnerManagedUsersPortfolioApi.js → managedUsersPortfolioApi.js} +15 -14
- 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} +9 -11
- package/dist/api/{stakingPartnerManagedUsersValidatorsApi.js → managedUsersValidatorsApi.js} +14 -13
- 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 +15 -17
- package/dist/api/validatorMarketplaceBuyersApi.js +26 -22
- package/dist/api/validatorMarketplaceSellersApi.d.ts +29 -32
- package/dist/api/validatorMarketplaceSellersApi.js +58 -52
- package/dist/api/validatorMarketplaceWebhooksApi.d.ts +15 -17
- package/dist/api/validatorMarketplaceWebhooksApi.js +17 -14
- package/dist/api/validatorsApi.d.ts +7 -9
- package/dist/api/validatorsApi.js +3 -2
- package/dist/api.d.ts +130 -89
- package/dist/api.js +153 -90
- package/dist/model/accountEntity.d.ts +3 -1
- package/dist/model/accountEntity.js +3 -5
- package/dist/model/{getAllManagedUsers200Response.d.ts → allManagedUsersResponse.d.ts} +1 -1
- package/dist/model/{getAllManagedUsers200Response.js → allManagedUsersResponse.js} +6 -6
- package/dist/model/baseOrder.d.ts +6 -11
- package/dist/model/baseOrder.js +0 -13
- package/dist/model/createManagedUserRequest.d.ts +1 -1
- package/dist/model/createManagedUserRequest.js +1 -1
- package/dist/model/createOrderForManagedUserRequest.d.ts +8 -11
- package/dist/model/createOrderForManagedUserRequest.js +3 -11
- 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 +3 -0
- package/dist/model/depositAccount.js +3 -0
- package/dist/model/{getDepositAddressesForManagedUser200Response.d.ts → depositAddressesForManagedUserResponse.d.ts} +1 -1
- package/dist/model/{getDepositAddressesForManagedUser200Response.js → depositAddressesForManagedUserResponse.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/ethereumValidatorKeyKeystoreCrypto.d.ts +30 -0
- 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 +28 -25
- package/dist/model/models.js +99 -103
- package/dist/model/{createNewOrderRequest.d.ts → newOrderRequest.d.ts} +10 -13
- package/dist/model/{rewardStat.js → newOrderRequest.js} +18 -18
- package/dist/model/orderDocument.d.ts +17 -18
- package/dist/model/orderDocument.js +10 -20
- package/dist/model/portfolioEntity.d.ts +3 -0
- package/dist/model/portfolioEntity.js +3 -0
- 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 +5 -5
- package/dist/model/rFQDocumentBase.js +5 -5
- package/dist/model/rFQDocumentBaseUniqueEscrowVault.d.ts +1 -1
- package/dist/model/rFQDocumentBaseUniqueEscrowVault.js +1 -1
- package/dist/model/rFQDocumentBuyer.d.ts +5 -5
- package/dist/model/rFQDocumentBuyer.js +5 -5
- package/dist/model/rFQDocumentBuyerAllOfValidators.d.ts +2 -2
- package/dist/model/rFQDocumentBuyerAllOfValidators.js +2 -2
- package/dist/model/rFQDocumentBuyerStatusFilterEnum.d.ts +1 -8
- package/dist/model/rFQDocumentBuyerStatusFilterEnum.js +0 -10
- package/dist/model/rFQDocumentSeller.d.ts +7 -7
- package/dist/model/rFQDocumentSeller.js +7 -7
- package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +2 -2
- package/dist/model/rFQDocumentSellerAllOfValidators.js +2 -2
- package/dist/model/rFQDocumentSellerStatusFilterEnum.d.ts +1 -9
- package/dist/model/rFQDocumentSellerStatusFilterEnum.js +0 -11
- package/dist/model/rFQDocumentStatusEnum.d.ts +1 -6
- package/dist/model/rFQDocumentStatusEnum.js +0 -8
- 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/stakeOrder.d.ts +11 -14
- package/dist/model/stakeOrder.js +6 -11
- 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/tokenEnum.d.ts +1 -11
- package/dist/model/tokenEnum.js +0 -16
- package/dist/model/{transactionStat.d.ts → transaction.d.ts} +16 -15
- package/dist/model/transaction.js +56 -0
- package/dist/model/transactionEventTypeEnum.d.ts +15 -0
- package/dist/model/{configSource.d.ts → transactionEventTypeEnum.js} +2 -4
- package/dist/model/transactionsForManagedUser.d.ts +38 -0
- package/dist/model/transactionsForManagedUser.js +43 -0
- package/dist/model/unstakeOrder.d.ts +6 -11
- package/dist/model/unstakeOrder.js +0 -13
- package/dist/model/unstakeStepType.d.ts +1 -16
- package/dist/model/unstakeStepType.js +0 -21
- package/dist/model/validatorContractTypeEnum.d.ts +1 -4
- package/dist/model/validatorContractTypeEnum.js +0 -6
- package/dist/model/validatorInfo.d.ts +20 -18
- package/dist/model/validatorInfo.js +10 -20
- package/dist/model/validatorInfoValidatorType.d.ts +1 -1
- package/dist/model/validatorInfoValidatorType.js +1 -1
- package/dist/model/validatorInfoValidatorTypeContract.d.ts +1 -1
- package/dist/model/validatorInfoValidatorTypeContract.js +1 -1
- package/dist/model/validatorKeyHolderEnum.d.ts +1 -4
- package/dist/model/validatorKeyHolderEnum.js +0 -6
- 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/withdrawalOrder.d.ts +6 -11
- package/dist/model/withdrawalOrder.js +0 -13
- package/dist/model/withdrawalStepType.d.ts +1 -8
- package/dist/model/withdrawalStepType.js +0 -13
- package/model/accountEntity.ts +8 -11
- package/model/addLinkedWalletForManagedUserRequest.ts +3 -3
- package/model/addLinkedWalletRequest.ts +4 -4
- package/model/{getAllManagedUsers200Response.ts → allManagedUsersResponse.ts} +7 -7
- package/model/baseOrder.ts +11 -18
- package/model/createManagedUserRequest.ts +3 -3
- package/model/createOrderForManagedUserRequest.ts +17 -17
- package/model/{createRFQDocumentRequest.ts → createRFQRequest.ts} +7 -7
- package/model/depositAccount.ts +6 -3
- package/model/{getDepositAddressesForManagedUser200Response.ts → depositAddressesForManagedUserResponse.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 +270 -93
- package/model/{createNewOrderRequest.ts → newOrderRequest.ts} +21 -21
- package/model/orderDocument.ts +39 -25
- package/model/orderDocumentSteps.ts +3 -3
- package/model/orderUpdatePayload.ts +4 -4
- package/model/portfolioEntity.ts +7 -4
- package/model/provideEscrowHashForRFQDocumentRequest.ts +3 -3
- package/model/quote.ts +5 -5
- package/model/rFQBids.ts +8 -8
- package/model/rFQDocumentBase.ts +13 -13
- package/model/rFQDocumentBaseUniqueEscrowVault.ts +3 -3
- package/model/rFQDocumentBuyer.ts +15 -15
- package/model/rFQDocumentBuyerAllOfValidators.ts +6 -6
- package/model/rFQDocumentBuyerStatusFilterEnum.ts +8 -9
- package/model/rFQDocumentSeller.ts +18 -18
- package/model/rFQDocumentSellerAllOfValidators.ts +6 -6
- package/model/rFQDocumentSellerStatusFilterEnum.ts +9 -10
- package/model/rFQDocumentStatusEnum.ts +6 -7
- 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/stakeOrder.ts +19 -19
- 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/tokenEnum.ts +11 -12
- package/model/transaction.ts +80 -0
- package/model/{configSource.ts → transactionEventTypeEnum.ts} +10 -5
- package/model/transactionsForManagedUser.ts +59 -0
- package/model/unstakeOrder.ts +11 -18
- package/model/unstakeStep.ts +3 -3
- package/model/unstakeStepElement.ts +3 -3
- package/model/unstakeStepType.ts +16 -17
- package/model/validatorContractTypeEnum.ts +4 -5
- package/model/validatorInfo.ts +34 -27
- package/model/validatorInfoValidatorType.ts +4 -4
- package/model/validatorInfoValidatorTypeContract.ts +4 -4
- package/model/validatorKeyHolderEnum.ts +4 -5
- 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/withdrawalOrder.ts +12 -19
- package/model/withdrawalStep.ts +3 -3
- package/model/withdrawalStepElement.ts +3 -3
- package/model/withdrawalStepType.ts +8 -9
- package/package.json +1 -1
- 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/configSource.js +0 -19
- package/dist/model/createNewOrderRequest.js +0 -56
- package/dist/model/getTransactionStatistics200ResponseInner.js +0 -53
- package/dist/model/rejectQuoteForRFQDocumentRequest.js +0 -28
- package/dist/model/rewardStat.d.ts +0 -44
- package/dist/model/transactionStat.js +0 -53
- 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/model/getTransactionStatistics200ResponseInner.ts +0 -61
- package/model/rewardStat.ts +0 -70
- package/model/transactionStat.ts +0 -79
- package/model/validatorKeyKeystoreCrypto.ts +0 -46
|
@@ -34,13 +34,15 @@ export enum ValidatorMarketplaceWebhooksApiApiKeys {
|
|
|
34
34
|
ApiKeyAuth,
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
|
|
38
|
+
|
|
37
39
|
export class ValidatorMarketplaceWebhooksApi {
|
|
38
40
|
protected _basePath = defaultBasePath;
|
|
39
41
|
protected _defaultHeaders : any = {};
|
|
40
42
|
protected _useQuerystring : boolean = false;
|
|
41
43
|
|
|
42
44
|
protected authentications = {
|
|
43
|
-
'default': new JWTAuth('your_api_key', 'your_private_key'),
|
|
45
|
+
'default': <Authentication>new JWTAuth('your_api_key', 'your_private_key'),
|
|
44
46
|
'bearerTokenAuth': new HttpBearerAuth(),
|
|
45
47
|
'ApiKeyAuth': new ApiKeyAuth('header', 'x-api-key'),
|
|
46
48
|
}
|
|
@@ -80,11 +82,11 @@ export class ValidatorMarketplaceWebhooksApi {
|
|
|
80
82
|
return this._basePath;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
public setDefaultAuthentication(auth:
|
|
85
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
84
86
|
this.authentications.default = auth;
|
|
85
87
|
}
|
|
86
88
|
|
|
87
|
-
|
|
89
|
+
public setApiKey(key: ValidatorMarketplaceWebhooksApiApiKeys, value: string) {
|
|
88
90
|
(this.authentications as any)[ValidatorMarketplaceWebhooksApiApiKeys[key]].apiKey = value;
|
|
89
91
|
}
|
|
90
92
|
|
|
@@ -92,22 +94,28 @@ export class ValidatorMarketplaceWebhooksApi {
|
|
|
92
94
|
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
93
95
|
}
|
|
94
96
|
|
|
95
|
-
|
|
97
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
96
98
|
this.interceptors.push(interceptor);
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
/**
|
|
100
102
|
*
|
|
101
|
-
* @summary Delete a registered
|
|
103
|
+
* @summary Delete a registered Validator Marketplace webhook
|
|
102
104
|
* @param webhookId Unique identifier of the registered webhook
|
|
103
105
|
*/
|
|
104
|
-
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
public async deleteWebhook (webhookId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: any, status: number }> {
|
|
112
|
+
|
|
105
113
|
const localVarPath = this.basePath + '/validatorMarketplace/webhooks/{webhookId}'
|
|
106
114
|
.replace('{' + 'webhookId' + '}', encodeURIComponent(String(webhookId)));
|
|
115
|
+
|
|
107
116
|
let localVarQueryParameters: any = {};
|
|
108
117
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
109
118
|
const produces = ['application/json'];
|
|
110
|
-
// give precedence to 'application/json'
|
|
111
119
|
if (produces.indexOf('application/json') >= 0) {
|
|
112
120
|
localVarHeaderParams.Accept = 'application/json';
|
|
113
121
|
} else {
|
|
@@ -115,15 +123,24 @@ export class ValidatorMarketplaceWebhooksApi {
|
|
|
115
123
|
}
|
|
116
124
|
let localVarFormParams: any = {};
|
|
117
125
|
|
|
118
|
-
|
|
126
|
+
|
|
127
|
+
// Verify required parameter 'webhookId' is not null or undefined
|
|
119
128
|
if (webhookId === null || webhookId === undefined) {
|
|
120
|
-
throw new Error('Required parameter webhookId was null or undefined when calling deleteWebhook.');
|
|
129
|
+
throw new Error('Required parameter "webhookId" was null or undefined when calling deleteWebhook.');
|
|
121
130
|
}
|
|
122
131
|
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
123
138
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
124
139
|
|
|
125
140
|
let localVarUseFormData = false;
|
|
126
141
|
|
|
142
|
+
|
|
143
|
+
|
|
127
144
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
128
145
|
method: 'DELETE',
|
|
129
146
|
qs: localVarQueryParameters,
|
|
@@ -149,31 +166,39 @@ export class ValidatorMarketplaceWebhooksApi {
|
|
|
149
166
|
localVarRequestOptions.form = localVarFormParams;
|
|
150
167
|
}
|
|
151
168
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
169
|
+
return new Promise<{ body: any, status: number }>((resolve, reject) => {
|
|
170
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
171
|
+
if (error) {
|
|
172
|
+
console.error('API call error:', error);
|
|
173
|
+
reject(error);
|
|
174
|
+
} else {
|
|
175
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
176
|
+
resolve({ body: body, status: response.statusCode });
|
|
156
177
|
} else {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
} else {
|
|
160
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
161
|
-
}
|
|
178
|
+
console.error('API response error:', response.statusCode);
|
|
179
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
162
180
|
}
|
|
163
|
-
}
|
|
181
|
+
}
|
|
164
182
|
});
|
|
165
183
|
});
|
|
166
|
-
}
|
|
184
|
+
} )
|
|
185
|
+
}
|
|
167
186
|
/**
|
|
168
187
|
*
|
|
169
|
-
* @summary List all registered
|
|
188
|
+
* @summary List all registered validator marketplace webhooks for the user
|
|
170
189
|
*/
|
|
171
|
-
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
public async listRegisteredWebhooks (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<WebHookLookupAnswer>, status: number }> {
|
|
196
|
+
|
|
172
197
|
const localVarPath = this.basePath + '/validatorMarketplace/webhooks';
|
|
198
|
+
|
|
173
199
|
let localVarQueryParameters: any = {};
|
|
174
200
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
175
201
|
const produces = ['application/json'];
|
|
176
|
-
// give precedence to 'application/json'
|
|
177
202
|
if (produces.indexOf('application/json') >= 0) {
|
|
178
203
|
localVarHeaderParams.Accept = 'application/json';
|
|
179
204
|
} else {
|
|
@@ -181,10 +206,20 @@ export class ValidatorMarketplaceWebhooksApi {
|
|
|
181
206
|
}
|
|
182
207
|
let localVarFormParams: any = {};
|
|
183
208
|
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
184
217
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
185
218
|
|
|
186
219
|
let localVarUseFormData = false;
|
|
187
220
|
|
|
221
|
+
|
|
222
|
+
|
|
188
223
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
189
224
|
method: 'GET',
|
|
190
225
|
qs: localVarQueryParameters,
|
|
@@ -210,33 +245,41 @@ export class ValidatorMarketplaceWebhooksApi {
|
|
|
210
245
|
localVarRequestOptions.form = localVarFormParams;
|
|
211
246
|
}
|
|
212
247
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
248
|
+
return new Promise<{ body: Array<WebHookLookupAnswer>, status: number }>((resolve, reject) => {
|
|
249
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
250
|
+
if (error) {
|
|
251
|
+
console.error('API call error:', error);
|
|
252
|
+
reject(error);
|
|
253
|
+
} else {
|
|
254
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
255
|
+
body = ObjectSerializer.deserialize(body, "Array<WebHookLookupAnswer>");
|
|
256
|
+
resolve({ body: body, status: response.statusCode });
|
|
217
257
|
} else {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
resolve({ response: response, body: body });
|
|
221
|
-
} else {
|
|
222
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
223
|
-
}
|
|
258
|
+
console.error('API response error:', response.statusCode);
|
|
259
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
224
260
|
}
|
|
225
|
-
}
|
|
261
|
+
}
|
|
226
262
|
});
|
|
227
263
|
});
|
|
228
|
-
}
|
|
264
|
+
} )
|
|
265
|
+
}
|
|
229
266
|
/**
|
|
230
|
-
* Registers a webhook URL for receiving push notifications from Northstake regarding events in the
|
|
231
|
-
* @summary Register a webhook to track Northstake
|
|
267
|
+
* Registers a webhook URL for receiving push notifications from Northstake regarding events in the Validator Marketplace. When registered events occur, webhooks are triggered, and JSON payloads are sent as POST requests to the specified URL. A webhook can subscribe to different event types. Here are descriptions and example payloads for each supported event. These payloads are what will be POST\'ed to your Webhook endpoint. (For more details regarding webhook payloads, refer to the schemas for the WebhookPayload_XXXX types in documentation) - `RFQAvailable`: Triggered when a new RFQ document becomes available. The payload includes detailed information about validators, their balances, exit estimates, and other RFQ-specific details. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQAvailable\", \"details\": { \"id\": \"rfq123\", \"validators\": [ { \"validator_index\": 1, \"balance\": 32, \"exit_estimates\": [ { \"estimated_exit_time\": \"2025-03-01T12:00:00Z\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"timestamp\": \"2024-03-01T12:00:00Z\" } ] } ], \"total_balance\": 32, \"payment_address\": \"0xabcd\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"estimated_all_validators_exited_at\": \"2025-03-01T12:00:00Z\", \"unique_escrow_vault\": \"vault123\" } } ``` - `RFQBidReceived`: Triggered when a new bid is received on an RFQ. Includes the latest quote ID and the bid amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidReceived\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-01T13:00:00Z\" } } ``` - `RFQBidAccepted`: Triggered when a bid is accepted. Includes the quote ID and the accepted amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidAccepted\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-02T14:30:00Z\" } } ``` - `RFQEscrowEvent`: Triggered when an escrow payment is made. Includes transaction hash and payment amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowEvent\", \"details\": { \"transaction_hash\": \"0xabc123\", \"amount\": 5000, \"timestamp\": \"2024-03-03T15:45:00Z\" } } ``` - `RFQTransferProposalReceived`: Notifies an RFQ seller of a new transfer proposal on their RFQ ```json { \"document_id\": \"rfq123\", \"event\": \"RFQTransferProposalReceived\", \"details\": { \"transaction_hash\": \"0xabc123\", \"timestamp\": \"2024-03-03T15:45:00Z\" } } ``` - `RFQValidatorWithdrawalChange`: Triggered when a validator withdrawal status changes. Includes transaction hash and validator index. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorWithdrawalChange\", \"details\": [{ \"transaction_hash\": \"0xdef456\", \"validator_index\": 1, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef457\", \"validator_index\": 2, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef458\", \"validator_index\": 3, \"timestamp\": \"2024-03-04T16:50:00Z\" }, ] } ``` - `RFQEscrowReleased`: Triggered when escrow funds are released. Includes transaction hash and the released amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowReleased\", \"details\": { \"transaction_hash\": \"0xghi789\", \"amount\": 5000, \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` - `RFQValidatorExited `: Notifies the owner whenever a validator exits the ethereum network ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorExited\", \"details\": { \"validator_index\": \"0xghi789\", \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` **Webhook Security Note:** All webhook requests include a `Bearer` token in the `Authorization` header. Recipients must validate this token to ensure the notifications are from a trusted source.
|
|
268
|
+
* @summary Register a webhook to track Northstake validator marketplace events
|
|
232
269
|
* @param webhookRegistration
|
|
233
270
|
*/
|
|
234
|
-
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
public async registerWebhook (webhookRegistration: WebhookRegistration, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: any, status: number }> {
|
|
277
|
+
|
|
235
278
|
const localVarPath = this.basePath + '/validatorMarketplace/webhooks';
|
|
279
|
+
|
|
236
280
|
let localVarQueryParameters: any = {};
|
|
237
281
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
238
282
|
const produces = ['application/json'];
|
|
239
|
-
// give precedence to 'application/json'
|
|
240
283
|
if (produces.indexOf('application/json') >= 0) {
|
|
241
284
|
localVarHeaderParams.Accept = 'application/json';
|
|
242
285
|
} else {
|
|
@@ -244,15 +287,24 @@ export class ValidatorMarketplaceWebhooksApi {
|
|
|
244
287
|
}
|
|
245
288
|
let localVarFormParams: any = {};
|
|
246
289
|
|
|
247
|
-
|
|
290
|
+
|
|
291
|
+
// Verify required parameter 'webhookRegistration' is not null or undefined
|
|
248
292
|
if (webhookRegistration === null || webhookRegistration === undefined) {
|
|
249
|
-
throw new Error('Required parameter webhookRegistration was null or undefined when calling registerWebhook.');
|
|
293
|
+
throw new Error('Required parameter "webhookRegistration" was null or undefined when calling registerWebhook.');
|
|
250
294
|
}
|
|
251
295
|
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
252
302
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
253
303
|
|
|
254
304
|
let localVarUseFormData = false;
|
|
255
305
|
|
|
306
|
+
|
|
307
|
+
|
|
256
308
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
257
309
|
method: 'POST',
|
|
258
310
|
qs: localVarQueryParameters,
|
|
@@ -279,19 +331,21 @@ export class ValidatorMarketplaceWebhooksApi {
|
|
|
279
331
|
localVarRequestOptions.form = localVarFormParams;
|
|
280
332
|
}
|
|
281
333
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
334
|
+
return new Promise<{ body: any, status: number }>((resolve, reject) => {
|
|
335
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
336
|
+
if (error) {
|
|
337
|
+
console.error('API call error:', error);
|
|
338
|
+
reject(error);
|
|
339
|
+
} else {
|
|
340
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
341
|
+
resolve({ body: body, status: response.statusCode });
|
|
286
342
|
} else {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
} else {
|
|
290
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
291
|
-
}
|
|
343
|
+
console.error('API response error:', response.statusCode);
|
|
344
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
292
345
|
}
|
|
293
|
-
}
|
|
346
|
+
}
|
|
294
347
|
});
|
|
295
348
|
});
|
|
296
|
-
}
|
|
349
|
+
} )
|
|
350
|
+
}
|
|
297
351
|
}
|
package/api/validatorsApi.ts
CHANGED
|
@@ -35,13 +35,15 @@ export enum ValidatorsApiApiKeys {
|
|
|
35
35
|
ApiKeyAuth,
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
|
|
39
|
+
|
|
38
40
|
export class ValidatorsApi {
|
|
39
41
|
protected _basePath = defaultBasePath;
|
|
40
42
|
protected _defaultHeaders : any = {};
|
|
41
43
|
protected _useQuerystring : boolean = false;
|
|
42
44
|
|
|
43
45
|
protected authentications = {
|
|
44
|
-
'default': new JWTAuth('your_api_key', 'your_private_key'),
|
|
46
|
+
'default': <Authentication>new JWTAuth('your_api_key', 'your_private_key'),
|
|
45
47
|
'bearerTokenAuth': new HttpBearerAuth(),
|
|
46
48
|
'ApiKeyAuth': new ApiKeyAuth('header', 'x-api-key'),
|
|
47
49
|
}
|
|
@@ -81,11 +83,11 @@ export class ValidatorsApi {
|
|
|
81
83
|
return this._basePath;
|
|
82
84
|
}
|
|
83
85
|
|
|
84
|
-
public setDefaultAuthentication(auth:
|
|
86
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
85
87
|
this.authentications.default = auth;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
|
-
|
|
90
|
+
public setApiKey(key: ValidatorsApiApiKeys, value: string) {
|
|
89
91
|
(this.authentications as any)[ValidatorsApiApiKeys[key]].apiKey = value;
|
|
90
92
|
}
|
|
91
93
|
|
|
@@ -93,7 +95,7 @@ export class ValidatorsApi {
|
|
|
93
95
|
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
|
-
|
|
98
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
97
99
|
this.interceptors.push(interceptor);
|
|
98
100
|
}
|
|
99
101
|
|
|
@@ -103,12 +105,18 @@ export class ValidatorsApi {
|
|
|
103
105
|
* @param keyHolder Filter by key holder
|
|
104
106
|
* @param contractType Filter by contract type
|
|
105
107
|
*/
|
|
106
|
-
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
public async getValidators (keyHolder?: ValidatorKeyHolderEnum, contractType?: ValidatorContractTypeEnum, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<ValidatorInfo>, status: number }> {
|
|
114
|
+
|
|
107
115
|
const localVarPath = this.basePath + '/validators';
|
|
116
|
+
|
|
108
117
|
let localVarQueryParameters: any = {};
|
|
109
118
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
110
119
|
const produces = ['application/json'];
|
|
111
|
-
// give precedence to 'application/json'
|
|
112
120
|
if (produces.indexOf('application/json') >= 0) {
|
|
113
121
|
localVarHeaderParams.Accept = 'application/json';
|
|
114
122
|
} else {
|
|
@@ -116,18 +124,26 @@ export class ValidatorsApi {
|
|
|
116
124
|
}
|
|
117
125
|
let localVarFormParams: any = {};
|
|
118
126
|
|
|
119
|
-
if (keyHolder !== undefined) {
|
|
120
|
-
localVarQueryParameters['key_holder'] = ObjectSerializer.serialize(keyHolder, "ValidatorKeyHolderEnum");
|
|
121
|
-
}
|
|
122
127
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
if (keyHolder !== undefined) {
|
|
132
|
+
localVarQueryParameters['key_holder'] = ObjectSerializer.serialize(keyHolder, "ValidatorKeyHolderEnum");
|
|
133
|
+
}
|
|
134
|
+
if (contractType !== undefined) {
|
|
135
|
+
localVarQueryParameters['contract_type'] = ObjectSerializer.serialize(contractType, "ValidatorContractTypeEnum");
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
126
140
|
|
|
127
141
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
128
142
|
|
|
129
143
|
let localVarUseFormData = false;
|
|
130
144
|
|
|
145
|
+
|
|
146
|
+
|
|
131
147
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
132
148
|
method: 'GET',
|
|
133
149
|
qs: localVarQueryParameters,
|
|
@@ -153,20 +169,22 @@ export class ValidatorsApi {
|
|
|
153
169
|
localVarRequestOptions.form = localVarFormParams;
|
|
154
170
|
}
|
|
155
171
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
172
|
+
return new Promise<{ body: Array<ValidatorInfo>, status: number }>((resolve, reject) => {
|
|
173
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
174
|
+
if (error) {
|
|
175
|
+
console.error('API call error:', error);
|
|
176
|
+
reject(error);
|
|
177
|
+
} else {
|
|
178
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
179
|
+
body = ObjectSerializer.deserialize(body, "Array<ValidatorInfo>");
|
|
180
|
+
resolve({ body: body, status: response.statusCode });
|
|
160
181
|
} else {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
resolve({ response: response, body: body });
|
|
164
|
-
} else {
|
|
165
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
166
|
-
}
|
|
182
|
+
console.error('API response error:', response.statusCode);
|
|
183
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
167
184
|
}
|
|
168
|
-
}
|
|
185
|
+
}
|
|
169
186
|
});
|
|
170
187
|
});
|
|
171
|
-
}
|
|
188
|
+
} )
|
|
189
|
+
}
|
|
172
190
|
}
|