@cobo/cobo-waas2 1.35.0 → 1.36.0
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/README.md +25 -1
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +0 -41
- package/dist/api/AppWorkflowsApi.js +0 -42
- package/dist/api/AutoSweepApi.js +0 -41
- package/dist/api/ComplianceApi.js +0 -107
- package/dist/api/DevelopersApi.js +0 -8
- package/dist/api/DevelopersWebhooksApi.js +0 -64
- package/dist/api/FeeStationApi.js +0 -45
- package/dist/api/GraphQLApi.js +0 -22
- package/dist/api/OAuthApi.js +0 -30
- package/dist/api/OrganizationsApi.js +0 -6
- package/dist/api/PaymentApi.js +53 -486
- package/dist/api/PrimeBrokerApi.js +0 -26
- package/dist/api/StakingsApi.js +0 -167
- package/dist/api/SwapsApi.js +0 -26
- package/dist/api/TokenizationApi.js +0 -161
- package/dist/api/TransactionsApi.js +0 -144
- package/dist/api/TravelRuleApi.js +293 -46
- package/dist/api/WalletsApi.js +0 -165
- package/dist/api/WalletsExchangeWalletApi.js +0 -10
- package/dist/api/WalletsMPCWalletsApi.js +0 -130
- package/dist/api/WalletsSmartContractWalletsApi.js +0 -22
- package/dist/index.js +119 -0
- package/dist/model/Account.js +4 -4
- package/dist/model/Activity.js +8 -14
- package/dist/model/ActivityExtra.js +0 -5
- package/dist/model/AddressBalance.js +8 -3
- package/dist/model/AddressBook.js +7 -10
- package/dist/model/AddressInfo.js +5 -8
- package/dist/model/AddressTransferDestinationAccountOutput.js +2 -2
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +2 -2
- package/dist/model/AddressVerification.js +172 -0
- package/dist/model/AddressVerificationDetail.js +204 -0
- package/dist/model/AddressVerificationDetailSatoshiTestDetail.js +299 -0
- package/dist/model/AddressVerificationDetailSignatureDetail.js +172 -0
- package/dist/model/AddressVerificationMethod.js +61 -0
- package/dist/model/AddressVerificationStatus.js +66 -0
- package/dist/model/AddressesEventData.js +1 -1
- package/dist/model/AddressesEventDataAllOfAddresses.js +6 -9
- package/dist/model/AllocationItem.js +5 -5
- package/dist/model/AllocationParam.js +5 -5
- package/dist/model/AmountDetailsInner.js +1 -1
- package/dist/model/ApiLogDetails.js +8 -8
- package/dist/model/ApiLogSummary.js +2 -2
- package/dist/model/AppWorkflow.js +22 -19
- package/dist/model/AppWorkflowField.js +2 -2
- package/dist/model/AppWorkflowPolicy.js +7 -2
- package/dist/model/ApprovalRequest.js +21 -18
- package/dist/model/ApprovalRequestDetail.js +7 -2
- package/dist/model/ApprovalUser.js +1 -1
- package/dist/model/ApprovalUserDetail.js +9 -0
- package/dist/model/AssetBalance.js +8 -3
- package/dist/model/AssetInfo.js +1 -1
- package/dist/model/AutoSweepTask.js +9 -15
- package/dist/model/BTCBIP137MessageSignDestination.js +1 -1
- package/dist/model/BTCBIP322MessageSignDestination.js +1 -1
- package/dist/model/BabylonAirdropPop.js +6 -6
- package/dist/model/BabylonCreateStakingExpansion.js +8 -3
- package/dist/model/BabylonStakeExtra.js +4 -7
- package/dist/model/BabylonStakingExtra.js +1 -1
- package/dist/model/BabylonValidator.js +4 -7
- package/dist/model/Balance.js +2 -2
- package/dist/model/BalanceUpdateInfo.js +10 -5
- package/dist/model/BalanceUpdateInfoEventData.js +11 -6
- package/dist/model/BankAccount.js +1 -1
- package/dist/model/BaseContractCallSource.js +2 -2
- package/dist/model/BaseStakeSource.js +2 -2
- package/dist/model/BatchAllocation.js +2 -2
- package/dist/model/BatchAllocationDetail.js +2 -2
- package/dist/model/BatchCheckUtxoRequest.js +20 -17
- package/dist/model/BatchUTXOParam.js +4 -7
- package/dist/model/BridgingFee.js +1 -1
- package/dist/model/BroadcastSignedTransactions201ResponseInner.js +2 -2
- package/dist/model/BroadcastSignedTransactionsRequest.js +3 -6
- package/dist/model/CallbackMessage.js +12 -7
- package/dist/model/CancelSatoshiTestChallengeRequest.js +111 -0
- package/dist/model/ChainInfo.js +1 -1
- package/dist/model/ChainsEventData.js +22 -22
- package/dist/model/ChangeGuardPubkey200Response.js +1 -1
- package/dist/model/CheckAddressChainsValidity200ResponseInner.js +1 -1
- package/dist/model/CheckAddressesValidity200ResponseInner.js +1 -1
- package/dist/model/CoboSafeDelegate.js +0 -5
- package/dist/model/CommissionFee.js +1 -1
- package/dist/model/ComplianceDispositionUpdateEventData.js +2 -2
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +4 -4
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +2 -2
- package/dist/model/ContractCallDestination.js +0 -5
- package/dist/model/ContractCallParams.js +19 -12
- package/dist/model/ContractCallSource.js +0 -5
- package/dist/model/CoreStakeExtra.js +2 -2
- package/dist/model/CoreStakingExtra.js +4 -4
- package/dist/model/CosmosAdr36MessageSignDestination.js +1 -1
- package/dist/model/CosmosContractCallDestination.js +19 -16
- package/dist/model/CosmosContractCallMessage.js +2 -2
- package/dist/model/Counterparty.js +1 -1
- package/dist/model/CounterpartyDetail.js +20 -17
- package/dist/model/CounterpartyWalletAddressDetail.js +5 -5
- package/dist/model/CreateAddressBookParam.js +1 -1
- package/dist/model/CreateAddressBooksParam.js +19 -16
- package/dist/model/CreateAddressRequest.js +4 -7
- package/dist/model/CreateApprovalRequest201Response.js +1 -1
- package/dist/model/CreateAutoSweepTask.js +2 -2
- package/dist/model/CreateBatchAllocationRequest.js +20 -17
- package/dist/model/CreateBulkSendRequest.js +33 -17
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +3 -3
- package/dist/model/CreateClaimActivity.js +1 -1
- package/dist/model/CreateClaimActivityRequest.js +1 -1
- package/dist/model/CreateCounterpartyEntry201Response.js +20 -17
- package/dist/model/CreateCounterpartyEntryRequest.js +1 -1
- package/dist/model/CreateCounterpartyRequest.js +20 -17
- package/dist/model/CreateCryptoAddressRequest.js +2 -2
- package/dist/model/CreateCustodialWalletParams.js +1 -1
- package/dist/model/CreateDestinationBankAccount.js +8 -8
- package/dist/model/CreateDestinationEntry201Response.js +1 -1
- package/dist/model/CreateDestinationEntryRequest.js +1 -1
- package/dist/model/CreateDestinationRequest.js +1 -1
- package/dist/model/CreateExchangeWalletParams.js +3 -3
- package/dist/model/CreateKeyShareHolderGroupRequest.js +19 -16
- package/dist/model/CreateKyaScreeningsBody.js +19 -16
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreateMpcProjectRequest.js +1 -1
- package/dist/model/CreateMpcVaultRequest.js +1 -1
- package/dist/model/CreateMpcWalletParams.js +2 -2
- package/dist/model/CreateOrderLinkRequest.js +7 -2
- package/dist/model/CreatePaymentOrderRequest.js +4 -4
- package/dist/model/CreatePayoutRequest.js +27 -19
- package/dist/model/CreatePrimeBrokerAddress201Response.js +1 -1
- package/dist/model/CreateRefundLinkRequest.js +7 -2
- package/dist/model/CreateRefundRequest.js +3 -3
- package/dist/model/CreateReportRequest.js +3 -6
- package/dist/model/CreateSafeWalletParams.js +5 -8
- package/dist/model/CreateSatoshiTestChallengeRequest.js +176 -0
- package/dist/model/CreateSettlement.js +4 -7
- package/dist/model/CreateSettlementRequestRequest.js +20 -17
- package/dist/model/CreateSmartContractWalletParams.js +0 -5
- package/dist/model/CreateStakeActivity.js +8 -3
- package/dist/model/CreateStakeActivity201Response.js +1 -1
- package/dist/model/CreateStakeActivityExtra.js +0 -5
- package/dist/model/CreateStakeActivityRequest.js +8 -3
- package/dist/model/CreateSwapActivityRequest.js +2 -2
- package/dist/model/CreateSweepToAddress.js +2 -2
- package/dist/model/CreateTokenListingRequest201Response.js +1 -1
- package/dist/model/CreateTokenListingRequestRequest.js +2 -2
- package/dist/model/CreateTopUpAddresses.js +1 -1
- package/dist/model/CreateTransferTransaction201Response.js +2 -2
- package/dist/model/CreateTssRequestRequest.js +1 -1
- package/dist/model/CreateUnstakeActivity.js +1 -1
- package/dist/model/CreateUnstakeActivityExtra.js +0 -5
- package/dist/model/CreateUnstakeActivityRequest.js +1 -1
- package/dist/model/CreateWalletAddress.js +2 -2
- package/dist/model/CreateWalletParams.js +0 -5
- package/dist/model/CreateWebhookEndpointRequest.js +1 -1
- package/dist/model/CreateWithdrawActivity.js +8 -3
- package/dist/model/CreateWithdrawActivityRequest.js +8 -3
- package/dist/model/CreatedWalletInfo.js +0 -5
- package/dist/model/CryptoAddress.js +3 -3
- package/dist/model/CustodialTransferDestination.js +2 -2
- package/dist/model/CustodialTransferSource.js +1 -1
- package/dist/model/CustodialWalletInfo.js +3 -3
- package/dist/model/CustodialWeb3ContractCallSource.js +2 -2
- package/dist/model/CustodialWeb3MessageSignSource.js +2 -2
- package/dist/model/CustodialWeb3TransferSource.js +1 -1
- package/dist/model/DeleteCounterpartyById200Response.js +1 -1
- package/dist/model/DeleteCounterpartyEntry200Response.js +1 -1
- package/dist/model/DeleteCryptoAddress201Response.js +1 -1
- package/dist/model/DeleteDestinationById200Response.js +1 -1
- package/dist/model/DeleteDestinationEntry200Response.js +1 -1
- package/dist/model/DeleteGuardPubkey201Response.js +1 -1
- package/dist/model/Destination.js +1 -1
- package/dist/model/DestinationBankAccount.js +9 -9
- package/dist/model/DestinationBankAccountDetail.js +11 -11
- package/dist/model/DestinationDetail.js +2 -2
- package/dist/model/DestinationWalletAddressDetail.js +5 -5
- package/dist/model/DispositionEventData.js +1 -1
- package/dist/model/DispositionQueryResponse.js +1 -1
- package/dist/model/DispositionResponse.js +1 -1
- package/dist/model/EigenlayerValidator.js +3 -3
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/EstimateContractCallFeeParams.js +8 -3
- package/dist/model/EstimateFeeParams.js +0 -5
- package/dist/model/EstimateStakeFee.js +8 -3
- package/dist/model/EstimateTransferFeeParams.js +8 -3
- package/dist/model/EstimateUnstakeFee.js +1 -1
- package/dist/model/EstimateWithdrawFee.js +8 -3
- package/dist/model/EstimatedEvmEip1559Fee.js +8 -3
- package/dist/model/EstimatedEvmEip1559FeeSlow.js +3 -3
- package/dist/model/EstimatedEvmLegacyFee.js +8 -3
- package/dist/model/EstimatedEvmLegacyFeeSlow.js +2 -2
- package/dist/model/EstimatedFILFee.js +8 -3
- package/dist/model/EstimatedFILFeeSlow.js +4 -4
- package/dist/model/EstimatedFee.js +0 -5
- package/dist/model/EstimatedFixedFee.js +2 -2
- package/dist/model/EstimatedSOLFee.js +8 -3
- package/dist/model/EstimatedSOLFeeSlow.js +3 -3
- package/dist/model/EstimatedUtxoFee.js +8 -3
- package/dist/model/EstimatedUtxoFeeSlow.js +2 -2
- package/dist/model/EthStakeEstimatedFee.js +3 -6
- package/dist/model/EthStakeExtra.js +1 -1
- package/dist/model/EthStakingActivityDetailExtra.js +3 -6
- package/dist/model/EthStakingExtra.js +1 -1
- package/dist/model/EvmContractCallDestination.js +2 -2
- package/dist/model/EvmEIP191MessageSignDestination.js +1 -1
- package/dist/model/EvmEip1559FeeRate.js +8 -3
- package/dist/model/EvmLegacyFeeRate.js +8 -3
- package/dist/model/ExchangePermissionTokenRequest.js +1 -1
- package/dist/model/ExchangeRate.js +3 -3
- package/dist/model/ExchangeTransferDestination.js +3 -3
- package/dist/model/ExchangeTransferSource.js +2 -2
- package/dist/model/ExchangeWalletInfo.js +4 -4
- package/dist/model/ExtendedTokenInfo.js +2 -2
- package/dist/model/FeeRate.js +0 -5
- package/dist/model/FeeStationCheckFeeStationUsage.js +4 -4
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +4 -4
- package/dist/model/FeeStationDestination.js +1 -1
- package/dist/model/FeeStationFiatTransaction.js +7 -10
- package/dist/model/FeeStationSponsorTransactionDescription.js +2 -2
- package/dist/model/FeeStationTransfer.js +1 -1
- package/dist/model/FixedFeeRate.js +1 -1
- package/dist/model/ForcedSweep.js +2 -2
- package/dist/model/ForcedSweepRequest.js +4 -4
- package/dist/model/GetApiKeyInfo200Response.js +6 -9
- package/dist/model/GetExchangeRate200Response.js +3 -3
- package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +9 -4
- package/dist/model/GetStakingEstimationFee201Response.js +0 -5
- package/dist/model/GetStakingEstimationFeeRequest.js +0 -5
- package/dist/model/GetToken4XXResponse.js +2 -2
- package/dist/model/GetTransactionLimitation200Response.js +13 -7
- package/dist/model/GraphQLError.js +3 -6
- package/dist/model/GraphQLRequest.js +1 -1
- package/dist/model/IntermediaryBankInfo.js +2 -2
- package/dist/model/IsolateDisposition.js +6 -9
- package/dist/model/KyaRiskDetail.js +2 -2
- package/dist/model/KyaScreeningRequest.js +3 -3
- package/dist/model/KyaScreeningResult.js +5 -5
- package/dist/model/KyaScreeningsEventData.js +3 -3
- package/dist/model/KytScreeningsEventData.js +1 -1
- package/dist/model/KytScreeningsTransaction.js +1 -1
- package/dist/model/Link.js +2 -2
- package/dist/model/ListAddressVerifications200Response.js +147 -0
- package/dist/model/ListBulkSends200Response.js +123 -0
- package/dist/model/ListCallbackMessages200Response.js +25 -17
- package/dist/model/ListKyaScreenings200Response.js +25 -17
- package/dist/model/ListSupportedCountries200ResponseInner.js +3 -3
- package/dist/model/ListTokenBalancesForFeeStation200ResponseDataInner.js +8 -3
- package/dist/model/ListTokenizationBlocklistAddresses200Response.js +25 -17
- package/dist/model/ListTopUpPayers200ResponseDataInner.js +3 -3
- package/dist/model/LockUtxosRequest.js +19 -16
- package/dist/model/LockUtxosRequestUtxosInner.js +2 -2
- package/dist/model/MPCDelegate.js +2 -2
- package/dist/model/MPCVaultEventData.js +1 -1
- package/dist/model/MPCWalletInfo.js +4 -4
- package/dist/model/Merchant.js +3 -3
- package/dist/model/MerchantBalance.js +2 -2
- package/dist/model/MessageSignDestination.js +0 -5
- package/dist/model/MessageSignParams.js +19 -12
- package/dist/model/MessageSignSource.js +0 -5
- package/dist/model/MpcContractCallSource.js +2 -2
- package/dist/model/MpcMessageSignSource.js +2 -2
- package/dist/model/MpcSigningGroup.js +4 -7
- package/dist/model/MpcStakeSource.js +2 -2
- package/dist/model/MpcTransferSource.js +1 -1
- package/dist/model/Order.js +8 -8
- package/dist/model/OrderLinkBusinessInfo.js +8 -11
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -2
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +2 -2
- package/dist/model/OrgInfo.js +1 -1
- package/dist/model/OtcFee.js +1 -1
- package/dist/model/Pagination.js +2 -2
- package/dist/model/PayerAccount.js +3 -3
- package/dist/model/PaymentAddressUpdateEventData.js +6 -6
- package/dist/model/PaymentAllocationAmount.js +2 -2
- package/dist/model/PaymentBulkSend.js +15 -2
- package/dist/model/PaymentBulkSendEvent.js +21 -3
- package/dist/model/PaymentBulkSendItem.js +4 -4
- package/dist/model/PaymentEstimateFee.js +2 -2
- package/dist/model/PaymentEstimateFeeRequest.js +19 -16
- package/dist/model/PaymentEstimatedFee.js +2 -2
- package/dist/model/PaymentOrderEventData.js +9 -9
- package/dist/model/PaymentPayout.js +2 -2
- package/dist/model/PaymentPayoutDetail.js +2 -2
- package/dist/model/PaymentPayoutEvent.js +3 -3
- package/dist/model/PaymentPayoutItem.js +2 -2
- package/dist/model/PaymentPayoutParam.js +2 -2
- package/dist/model/PaymentRefundEventData.js +6 -6
- package/dist/model/PaymentSettlementEvent.js +22 -19
- package/dist/model/PaymentTransaction.js +4 -4
- package/dist/model/PaymentTransactionEventData.js +26 -25
- package/dist/model/PaymentWalletBalance.js +2 -2
- package/dist/model/PolicyActionContent.js +7 -13
- package/dist/model/PolicyCondition.js +2 -2
- package/dist/model/PoolDetails.js +24 -21
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +0 -5
- package/dist/model/PoolSummary.js +5 -5
- package/dist/model/PreCheck.js +3 -6
- package/dist/model/PspBalance.js +1 -1
- package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +2 -2
- package/dist/model/RefreshPermissionTokenRequest.js +1 -1
- package/dist/model/Refund.js +5 -5
- package/dist/model/RefundDisposition.js +6 -9
- package/dist/model/RefundLinkBusinessInfo.js +1 -1
- package/dist/model/Report.js +2 -2
- package/dist/model/RequestApproval.js +23 -20
- package/dist/model/RevokeApprovalRequest201Response.js +1 -1
- package/dist/model/RevokeApprovalRequestRequest.js +1 -1
- package/dist/model/RoleScopes.js +8 -3
- package/dist/model/SafeContractCallSource.js +9 -4
- package/dist/model/SafeTransferSource.js +9 -4
- package/dist/model/SafeTxExtraData.js +8 -8
- package/dist/model/SafeWallet.js +6 -9
- package/dist/model/SafeWalletDelegates.js +0 -5
- package/dist/model/SafeWalletDelegatesTransfer.js +1 -1
- package/dist/model/SatoshiTestCancelResult.js +144 -0
- package/dist/model/SatoshiTestChallenge.js +239 -0
- package/dist/model/SatoshiTestChallengeAction.js +61 -0
- package/dist/model/SatoshiTestChallengeStatus.js +81 -0
- package/dist/model/Scopes.js +15 -30
- package/dist/model/SelfCustodyWallet.js +3 -3
- package/dist/model/Settlement.js +21 -18
- package/dist/model/SettlementDetail.js +3 -6
- package/dist/model/SettlementInfo.js +1 -1
- package/dist/model/SignatureChallenge.js +137 -0
- package/dist/model/SignatureDetail.js +146 -0
- package/dist/model/SmartContractInitiator.js +2 -2
- package/dist/model/SmartContractWalletInfo.js +0 -5
- package/dist/model/SolContractCallAccount.js +1 -1
- package/dist/model/SolContractCallAddressLookupTableAccount.js +1 -1
- package/dist/model/SolContractCallDestination.js +21 -18
- package/dist/model/SolContractCallInstruction.js +21 -18
- package/dist/model/SourceGroup.js +4 -7
- package/dist/model/StakingSource.js +0 -5
- package/dist/model/Stakings.js +25 -22
- package/dist/model/StakingsExtra.js +0 -5
- package/dist/model/StellarContractCallContractParam.js +0 -5
- package/dist/model/StellarContractCallDestination.js +7 -2
- package/dist/model/StellarContractCallTrustLineParam.js +1 -1
- package/dist/model/SubWalletAssetBalance.js +8 -3
- package/dist/model/SubmitKytResponse.js +1 -1
- package/dist/model/SubmitKytScreeningsDecisionsBody.js +1 -1
- package/dist/model/SubmitKytScreeningsReviewBody.js +1 -1
- package/dist/model/SupportedToken.js +6 -6
- package/dist/model/SuspendedTokenEventData.js +2 -2
- package/dist/model/SwapActivityApprovers.js +1 -1
- package/dist/model/SwapActivityTimeline.js +2 -2
- package/dist/model/SwapEstimateFee.js +2 -2
- package/dist/model/SwapQuote.js +7 -7
- package/dist/model/SwapReceivingTransaction.js +1 -1
- package/dist/model/SwapToken.js +3 -3
- package/dist/model/SweepToAddress.js +2 -2
- package/dist/model/TSSEventData.js +0 -5
- package/dist/model/TSSKeyGenRequest.js +3 -6
- package/dist/model/TSSKeyReshareRequest.js +6 -12
- package/dist/model/TSSKeySignRequest.js +12 -24
- package/dist/model/TSSRequestWebhookEventData.js +1 -1
- package/dist/model/TokenBalance.js +8 -3
- package/dist/model/TokenInfo.js +2 -2
- package/dist/model/TokenListing.js +3 -3
- package/dist/model/TokenListingEventData.js +4 -4
- package/dist/model/TokenizationActivityInfo.js +10 -5
- package/dist/model/TokenizationAddressPermission.js +1 -1
- package/dist/model/TokenizationAllowlistActivationParams.js +7 -2
- package/dist/model/TokenizationAllowlistActivationRequest.js +14 -4
- package/dist/model/TokenizationAllowlistAddressNote.js +1 -1
- package/dist/model/TokenizationAllowlistAddressesResponse.js +25 -17
- package/dist/model/TokenizationBlocklistAddressNote.js +1 -1
- package/dist/model/TokenizationBurnEstimateFeeParams.js +26 -18
- package/dist/model/TokenizationBurnTokenParams.js +25 -17
- package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +2 -2
- package/dist/model/TokenizationBurnTokenRequest.js +32 -19
- package/dist/model/TokenizationContractCallEstimateFeeParams.js +1 -1
- package/dist/model/TokenizationContractCallParamsData.js +0 -5
- package/dist/model/TokenizationContractCallRequest.js +7 -2
- package/dist/model/TokenizationERC20TokenParams.js +2 -2
- package/dist/model/TokenizationERC20TokenPermissionParams.js +21 -42
- package/dist/model/TokenizationERC20WrappedTokenParams.js +3 -3
- package/dist/model/TokenizationERC20WrappedTokenPermissionParams.js +21 -42
- package/dist/model/TokenizationEstimateFeeRequest.js +7 -2
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +0 -5
- package/dist/model/TokenizationEvmContractCallParams.js +1 -1
- package/dist/model/TokenizationHoldingInfo.js +3 -3
- package/dist/model/TokenizationIssueEstimateFeeParams.js +15 -5
- package/dist/model/TokenizationIssueTokenParams.js +15 -5
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +0 -5
- package/dist/model/TokenizationIssuedTokenRequest.js +22 -7
- package/dist/model/TokenizationListActivitiesResponse.js +25 -17
- package/dist/model/TokenizationListEnabledChainsResponse.js +7 -2
- package/dist/model/TokenizationListHoldingsResponse.js +25 -17
- package/dist/model/TokenizationListPermissionsResponse.js +25 -17
- package/dist/model/TokenizationListPermissionsResponseDataInner.js +1 -1
- package/dist/model/TokenizationListTokenInfoResponse.js +25 -17
- package/dist/model/TokenizationMintEstimateFeeParams.js +26 -18
- package/dist/model/TokenizationMintTokenParams.js +25 -17
- package/dist/model/TokenizationMintTokenParamsMintsInner.js +2 -2
- package/dist/model/TokenizationMintTokenRequest.js +32 -19
- package/dist/model/TokenizationMpcOperationSource.js +2 -2
- package/dist/model/TokenizationOperationResponse.js +1 -1
- package/dist/model/TokenizationPauseEstimateFeeParams.js +8 -3
- package/dist/model/TokenizationPauseTokenParams.js +7 -2
- package/dist/model/TokenizationPauseTokenRequest.js +14 -4
- package/dist/model/TokenizationSOLTokenParams.js +2 -2
- package/dist/model/TokenizationSOLWrappedTokenParams.js +3 -3
- package/dist/model/TokenizationSolContractCallParams.js +19 -16
- package/dist/model/TokenizationSolWrappedTokenPermissionParams.js +3 -6
- package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +8 -3
- package/dist/model/TokenizationTokenDetailInfo.js +3 -3
- package/dist/model/TokenizationTokenInfo.js +3 -3
- package/dist/model/TokenizationTokenOperationSource.js +0 -5
- package/dist/model/TokenizationTokenPermission.js +2 -2
- package/dist/model/TokenizationUnpauseEstimateFeeParams.js +8 -3
- package/dist/model/TokenizationUnpauseTokenParams.js +7 -2
- package/dist/model/TokenizationUnpauseTokenRequest.js +14 -4
- package/dist/model/TokenizationUpdateAddressPermissions.js +1 -1
- package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +26 -18
- package/dist/model/TokenizationUpdateAllowlistAddressesParams.js +25 -17
- package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +32 -19
- package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +26 -18
- package/dist/model/TokenizationUpdateBlocklistAddressesParams.js +25 -17
- package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +32 -19
- package/dist/model/TokenizationUpdatePermissionsEstimateFeeParams.js +26 -18
- package/dist/model/TokenizationUpdatePermissionsParams.js +25 -17
- package/dist/model/TokenizationUpdatePermissionsRequest.js +32 -19
- package/dist/model/TokenizationWeb3OperationSource.js +2 -2
- package/dist/model/TokensEventData.js +22 -22
- package/dist/model/TopUpAddress.js +6 -6
- package/dist/model/Transaction.js +25 -24
- package/dist/model/TransactionBIP137Destination.js +1 -1
- package/dist/model/TransactionBIP322Destination.js +1 -1
- package/dist/model/TransactionCosmosAdr36Destination.js +1 -1
- package/dist/model/TransactionCosmosContractDestination.js +19 -16
- package/dist/model/TransactionCosmosMessage.js +2 -2
- package/dist/model/TransactionCustodialAssetWalletSource.js +1 -1
- package/dist/model/TransactionCustodialWeb3WalletSource.js +1 -1
- package/dist/model/TransactionDepositFromWalletSource.js +1 -1
- package/dist/model/TransactionDepositToAddressDestination.js +3 -3
- package/dist/model/TransactionDepositToWalletDestination.js +2 -2
- package/dist/model/TransactionDestination.js +0 -5
- package/dist/model/TransactionDetail.js +25 -24
- package/dist/model/TransactionDetails.js +25 -24
- package/dist/model/TransactionEvmContractDestination.js +2 -2
- package/dist/model/TransactionExchangeWalletSource.js +1 -1
- package/dist/model/TransactionExtra.js +0 -5
- package/dist/model/TransactionFee.js +0 -5
- package/dist/model/TransactionFeeStationWalletSource.js +1 -1
- package/dist/model/TransactionMPCWalletSource.js +1 -1
- package/dist/model/TransactionMessageSignEIP191Destination.js +1 -1
- package/dist/model/TransactionRbf.js +11 -9
- package/dist/model/TransactionRbfSource.js +0 -5
- package/dist/model/TransactionRequestEvmEip1559Fee.js +3 -3
- package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
- package/dist/model/TransactionRequestFILFee.js +3 -3
- package/dist/model/TransactionRequestFee.js +0 -5
- package/dist/model/TransactionRequestFixedFee.js +1 -1
- package/dist/model/TransactionRequestSOLFee.js +3 -3
- package/dist/model/TransactionRequestUtxoFee.js +1 -1
- package/dist/model/TransactionResend.js +1 -1
- package/dist/model/TransactionResult.js +0 -5
- package/dist/model/TransactionSignatureResult.js +1 -1
- package/dist/model/TransactionSmartContractSafeWalletSource.js +2 -2
- package/dist/model/TransactionSolContractAddressLookupTableAccount.js +1 -1
- package/dist/model/TransactionSource.js +0 -5
- package/dist/model/TransactionStellarContractParam.js +0 -5
- package/dist/model/TransactionStellarDestination.js +7 -2
- package/dist/model/TransactionStellarTrustLineParam.js +1 -1
- package/dist/model/TransactionTokeApproval.js +2 -2
- package/dist/model/TransactionTokenAmount.js +2 -2
- package/dist/model/TransactionTransferToWalletDestination.js +2 -2
- package/dist/model/TransactionTronContractDestination.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +26 -25
- package/dist/model/TransferDestination.js +0 -5
- package/dist/model/TransferParams.js +17 -10
- package/dist/model/TransferSource.js +0 -5
- package/dist/model/TravelRuleDepositExchangesOrVASP.js +9 -4
- package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +0 -5
- package/dist/model/TravelRuleDepositLegalEntity.js +2 -2
- package/dist/model/TravelRuleDepositNaturalEntity.js +3 -3
- package/dist/model/TravelRuleDepositRequest.js +8 -3
- package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +0 -5
- package/dist/model/TravelRuleTransactionType.js +61 -0
- package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +9 -4
- package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +0 -5
- package/dist/model/TravelRuleWithdrawLegalEntity.js +1 -1
- package/dist/model/TravelRuleWithdrawNaturalEntity.js +2 -2
- package/dist/model/TravelRuleWithdrawRequest.js +8 -3
- package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +0 -5
- package/dist/model/TronContractCallDestination.js +2 -2
- package/dist/model/UnfreezeDisposition.js +1 -1
- package/dist/model/UpdateCounterpartyRequest.js +1 -1
- package/dist/model/UpdateDestinationBankAccount.js +8 -8
- package/dist/model/UpdateDestinationEntryRequest.js +1 -1
- package/dist/model/UpdateDestinationRequest.js +1 -1
- package/dist/model/UpdateExchangeWalletParams.js +1 -1
- package/dist/model/UpdateMpcProjectByIdRequest.js +1 -1
- package/dist/model/UpdateMpcVaultByIdRequest.js +1 -1
- package/dist/model/UpdateRefundByIdRequest.js +1 -1
- package/dist/model/UpdateSmartContractWalletParams.js +1 -1
- package/dist/model/UpdateTopUpAddress.js +2 -2
- package/dist/model/UpdateWalletParams.js +0 -5
- package/dist/model/UpdateWebhookEndpointByIdRequest.js +3 -6
- package/dist/model/UtxoFeeRate.js +8 -3
- package/dist/model/Vasp.js +3 -3
- package/dist/model/WalletAddress.js +3 -3
- package/dist/model/WalletInfo.js +0 -5
- package/dist/model/WalletInfoEventData.js +1 -1
- package/dist/model/WebhookEndpoint.js +1 -1
- package/dist/model/WebhookEvent.js +8 -3
- package/dist/model/WebhookEventData.js +1 -6
- package/dist/model/WebhookEventDataType.js +1 -1
- package/dist/model/WebhookEventLog.js +8 -3
- package/docs/AddressVerification.md +14 -0
- package/docs/AddressVerificationDetail.md +16 -0
- package/docs/AddressVerificationDetailSatoshiTestDetail.md +19 -0
- package/docs/AddressVerificationDetailSignatureDetail.md +12 -0
- package/docs/AddressVerificationMethod.md +12 -0
- package/docs/AddressVerificationStatus.md +14 -0
- package/docs/ApprovalUserDetail.md +1 -0
- package/docs/CancelSatoshiTestChallengeRequest.md +9 -0
- package/docs/CreateBulkSendRequest.md +1 -0
- package/docs/CreateSatoshiTestChallengeRequest.md +14 -0
- package/docs/GetTransactionLimitation200Response.md +2 -1
- package/docs/ListAddressVerifications200Response.md +10 -0
- package/docs/ListBulkSends200Response.md +10 -0
- package/docs/PaymentApi.md +59 -0
- package/docs/PaymentBulkSend.md +1 -0
- package/docs/PaymentBulkSendEvent.md +1 -0
- package/docs/SatoshiTestCancelResult.md +21 -0
- package/docs/SatoshiTestChallenge.md +19 -0
- package/docs/SatoshiTestChallengeAction.md +12 -0
- package/docs/SatoshiTestChallengeStatus.md +20 -0
- package/docs/SignatureChallenge.md +11 -0
- package/docs/SignatureDetail.md +12 -0
- package/docs/TravelRuleApi.md +325 -1
- package/docs/TravelRuleTransactionType.md +12 -0
- package/docs/WebhookEventData.md +1 -1
- package/package.json +1 -1
|
@@ -41,30 +41,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
41
41
|
* Do not edit the class manually.
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
// Model class table — access class refs by name to avoid parameter-name shadowing
|
|
45
|
-
var _modelClasses = {
|
|
46
|
-
'ApprovalDetail': _ApprovalDetail["default"],
|
|
47
|
-
'ApprovalTemplate': _ApprovalTemplate["default"],
|
|
48
|
-
'BroadcastSignedTransactions201ResponseInner': _BroadcastSignedTransactions201ResponseInner["default"],
|
|
49
|
-
'BroadcastSignedTransactionsRequest': _BroadcastSignedTransactionsRequest["default"],
|
|
50
|
-
'CheckLoopTransfers200ResponseInner': _CheckLoopTransfers200ResponseInner["default"],
|
|
51
|
-
'ContractCallParams': _ContractCallParams["default"],
|
|
52
|
-
'CreateTransferTransaction201Response': _CreateTransferTransaction201Response["default"],
|
|
53
|
-
'ErrorResponse': _ErrorResponse["default"],
|
|
54
|
-
'EstimateFeeParams': _EstimateFeeParams["default"],
|
|
55
|
-
'EstimatedFee': _EstimatedFee["default"],
|
|
56
|
-
'ListTransactionApprovalDetails200Response': _ListTransactionApprovalDetails200Response["default"],
|
|
57
|
-
'ListTransactions200Response': _ListTransactions200Response["default"],
|
|
58
|
-
'MessageSignParams': _MessageSignParams["default"],
|
|
59
|
-
'TransactionApprovalDetail': _TransactionApprovalDetail["default"],
|
|
60
|
-
'TransactionDetail': _TransactionDetail["default"],
|
|
61
|
-
'TransactionRbf': _TransactionRbf["default"],
|
|
62
|
-
'TransactionResend': _TransactionResend["default"],
|
|
63
|
-
'TransferParams': _TransferParams["default"],
|
|
64
|
-
'WalletSubtype': _WalletSubtype["default"],
|
|
65
|
-
'WalletType': _WalletType["default"]
|
|
66
|
-
};
|
|
67
|
-
|
|
68
44
|
/**
|
|
69
45
|
* Transactions service.
|
|
70
46
|
* @module api/TransactionsApi
|
|
@@ -97,21 +73,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
97
73
|
if (postBody && postBody.toJSON) {
|
|
98
74
|
postBody = postBody.toJSON();
|
|
99
75
|
}
|
|
100
|
-
// Validate opts key — must be exactly 'BroadcastSignedTransactionsRequest'
|
|
101
|
-
if (postBody === undefined && opts) {
|
|
102
|
-
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
103
|
-
return k !== '_base_path_index';
|
|
104
|
-
});
|
|
105
|
-
if (_providedKeys.length > 0) {
|
|
106
|
-
throw new Error('broadcastSignedTransactions(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "BroadcastSignedTransactionsRequest".');
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
// Validate request body before sending
|
|
110
|
-
if (postBody !== null && postBody !== undefined) {
|
|
111
|
-
if (_modelClasses['BroadcastSignedTransactionsRequest'] && typeof _modelClasses['BroadcastSignedTransactionsRequest'].validateJSON === 'function') {
|
|
112
|
-
_modelClasses['BroadcastSignedTransactionsRequest'].validateJSON(postBody);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
76
|
var pathParams = {};
|
|
116
77
|
var queryParams = {};
|
|
117
78
|
var headerParams = {};
|
|
@@ -255,21 +216,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
255
216
|
if (postBody && postBody.toJSON) {
|
|
256
217
|
postBody = postBody.toJSON();
|
|
257
218
|
}
|
|
258
|
-
// Validate opts key — must be exactly 'ContractCallParams'
|
|
259
|
-
if (postBody === undefined && opts) {
|
|
260
|
-
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
261
|
-
return k !== '_base_path_index';
|
|
262
|
-
});
|
|
263
|
-
if (_providedKeys.length > 0) {
|
|
264
|
-
throw new Error('createContractCallTransaction(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "ContractCallParams".');
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
// Validate request body before sending
|
|
268
|
-
if (postBody !== null && postBody !== undefined) {
|
|
269
|
-
if (_modelClasses['ContractCallParams'] && typeof _modelClasses['ContractCallParams'].validateJSON === 'function') {
|
|
270
|
-
_modelClasses['ContractCallParams'].validateJSON(postBody);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
219
|
var pathParams = {};
|
|
274
220
|
var queryParams = {};
|
|
275
221
|
var headerParams = {};
|
|
@@ -311,21 +257,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
311
257
|
if (postBody && postBody.toJSON) {
|
|
312
258
|
postBody = postBody.toJSON();
|
|
313
259
|
}
|
|
314
|
-
// Validate opts key — must be exactly 'MessageSignParams'
|
|
315
|
-
if (postBody === undefined && opts) {
|
|
316
|
-
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
317
|
-
return k !== '_base_path_index';
|
|
318
|
-
});
|
|
319
|
-
if (_providedKeys.length > 0) {
|
|
320
|
-
throw new Error('createMessageSignTransaction(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "MessageSignParams".');
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
// Validate request body before sending
|
|
324
|
-
if (postBody !== null && postBody !== undefined) {
|
|
325
|
-
if (_modelClasses['MessageSignParams'] && typeof _modelClasses['MessageSignParams'].validateJSON === 'function') {
|
|
326
|
-
_modelClasses['MessageSignParams'].validateJSON(postBody);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
260
|
var pathParams = {};
|
|
330
261
|
var queryParams = {};
|
|
331
262
|
var headerParams = {};
|
|
@@ -367,21 +298,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
367
298
|
if (postBody && postBody.toJSON) {
|
|
368
299
|
postBody = postBody.toJSON();
|
|
369
300
|
}
|
|
370
|
-
// Validate opts key — must be exactly 'TransferParams'
|
|
371
|
-
if (postBody === undefined && opts) {
|
|
372
|
-
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
373
|
-
return k !== '_base_path_index';
|
|
374
|
-
});
|
|
375
|
-
if (_providedKeys.length > 0) {
|
|
376
|
-
throw new Error('createTransferTransaction(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "TransferParams".');
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
// Validate request body before sending
|
|
380
|
-
if (postBody !== null && postBody !== undefined) {
|
|
381
|
-
if (_modelClasses['TransferParams'] && typeof _modelClasses['TransferParams'].validateJSON === 'function') {
|
|
382
|
-
_modelClasses['TransferParams'].validateJSON(postBody);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
301
|
var pathParams = {};
|
|
386
302
|
var queryParams = {};
|
|
387
303
|
var headerParams = {};
|
|
@@ -428,21 +344,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
428
344
|
if (transaction_id === undefined || transaction_id === null) {
|
|
429
345
|
throw new Error("Missing the required parameter 'transaction_id' when calling dropTransactionById");
|
|
430
346
|
}
|
|
431
|
-
// Validate opts key — must be exactly 'TransactionRbf'
|
|
432
|
-
if (postBody === undefined && opts) {
|
|
433
|
-
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
434
|
-
return k !== '_base_path_index';
|
|
435
|
-
});
|
|
436
|
-
if (_providedKeys.length > 0) {
|
|
437
|
-
throw new Error('dropTransactionById(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "TransactionRbf".');
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
// Validate request body before sending
|
|
441
|
-
if (postBody !== null && postBody !== undefined) {
|
|
442
|
-
if (_modelClasses['TransactionRbf'] && typeof _modelClasses['TransactionRbf'].validateJSON === 'function') {
|
|
443
|
-
_modelClasses['TransactionRbf'].validateJSON(postBody);
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
347
|
var pathParams = {
|
|
447
348
|
'transaction_id': transaction_id
|
|
448
349
|
};
|
|
@@ -487,21 +388,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
487
388
|
if (postBody && postBody.toJSON) {
|
|
488
389
|
postBody = postBody.toJSON();
|
|
489
390
|
}
|
|
490
|
-
// Validate opts key — must be exactly 'EstimateFeeParams'
|
|
491
|
-
if (postBody === undefined && opts) {
|
|
492
|
-
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
493
|
-
return k !== '_base_path_index';
|
|
494
|
-
});
|
|
495
|
-
if (_providedKeys.length > 0) {
|
|
496
|
-
throw new Error('estimateFee(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "EstimateFeeParams".');
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
// Validate request body before sending
|
|
500
|
-
if (postBody !== null && postBody !== undefined) {
|
|
501
|
-
if (_modelClasses['EstimateFeeParams'] && typeof _modelClasses['EstimateFeeParams'].validateJSON === 'function') {
|
|
502
|
-
_modelClasses['EstimateFeeParams'].validateJSON(postBody);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
391
|
var pathParams = {};
|
|
506
392
|
var queryParams = {};
|
|
507
393
|
var headerParams = {};
|
|
@@ -881,21 +767,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
881
767
|
if (transaction_id === undefined || transaction_id === null) {
|
|
882
768
|
throw new Error("Missing the required parameter 'transaction_id' when calling resendTransactionById");
|
|
883
769
|
}
|
|
884
|
-
// Validate opts key — must be exactly 'TransactionResend'
|
|
885
|
-
if (postBody === undefined && opts) {
|
|
886
|
-
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
887
|
-
return k !== '_base_path_index';
|
|
888
|
-
});
|
|
889
|
-
if (_providedKeys.length > 0) {
|
|
890
|
-
throw new Error('resendTransactionById(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "TransactionResend".');
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
// Validate request body before sending
|
|
894
|
-
if (postBody !== null && postBody !== undefined) {
|
|
895
|
-
if (_modelClasses['TransactionResend'] && typeof _modelClasses['TransactionResend'].validateJSON === 'function') {
|
|
896
|
-
_modelClasses['TransactionResend'].validateJSON(postBody);
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
770
|
var pathParams = {
|
|
900
771
|
'transaction_id': transaction_id
|
|
901
772
|
};
|
|
@@ -989,21 +860,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
989
860
|
if (transaction_id === undefined || transaction_id === null) {
|
|
990
861
|
throw new Error("Missing the required parameter 'transaction_id' when calling speedupTransactionById");
|
|
991
862
|
}
|
|
992
|
-
// Validate opts key — must be exactly 'TransactionRbf'
|
|
993
|
-
if (postBody === undefined && opts) {
|
|
994
|
-
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
995
|
-
return k !== '_base_path_index';
|
|
996
|
-
});
|
|
997
|
-
if (_providedKeys.length > 0) {
|
|
998
|
-
throw new Error('speedupTransactionById(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "TransactionRbf".');
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
// Validate request body before sending
|
|
1002
|
-
if (postBody !== null && postBody !== undefined) {
|
|
1003
|
-
if (_modelClasses['TransactionRbf'] && typeof _modelClasses['TransactionRbf'].validateJSON === 'function') {
|
|
1004
|
-
_modelClasses['TransactionRbf'].validateJSON(postBody);
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
863
|
var pathParams = {
|
|
1008
864
|
'transaction_id': transaction_id
|
|
1009
865
|
};
|
|
@@ -5,9 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AddressVerificationDetail = _interopRequireDefault(require("../model/AddressVerificationDetail"));
|
|
9
|
+
var _AddressVerificationStatus = _interopRequireDefault(require("../model/AddressVerificationStatus"));
|
|
10
|
+
var _CancelSatoshiTestChallengeRequest = _interopRequireDefault(require("../model/CancelSatoshiTestChallengeRequest"));
|
|
11
|
+
var _CreateSatoshiTestChallengeRequest = _interopRequireDefault(require("../model/CreateSatoshiTestChallengeRequest"));
|
|
8
12
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
9
13
|
var _GetTransactionLimitation200Response = _interopRequireDefault(require("../model/GetTransactionLimitation200Response"));
|
|
14
|
+
var _ListAddressVerifications200Response = _interopRequireDefault(require("../model/ListAddressVerifications200Response"));
|
|
10
15
|
var _ListSupportedCountries200ResponseInner = _interopRequireDefault(require("../model/ListSupportedCountries200ResponseInner"));
|
|
16
|
+
var _SatoshiTestCancelResult = _interopRequireDefault(require("../model/SatoshiTestCancelResult"));
|
|
17
|
+
var _SatoshiTestChallenge = _interopRequireDefault(require("../model/SatoshiTestChallenge"));
|
|
18
|
+
var _SignatureChallenge = _interopRequireDefault(require("../model/SignatureChallenge"));
|
|
11
19
|
var _SubmitDepositTravelRuleInfo201Response = _interopRequireDefault(require("../model/SubmitDepositTravelRuleInfo201Response"));
|
|
12
20
|
var _TravelRuleDepositRequest = _interopRequireDefault(require("../model/TravelRuleDepositRequest"));
|
|
13
21
|
var _TravelRuleWithdrawRequest = _interopRequireDefault(require("../model/TravelRuleWithdrawRequest"));
|
|
@@ -27,16 +35,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
35
|
* Do not edit the class manually.
|
|
28
36
|
*
|
|
29
37
|
*/
|
|
30
|
-
// Model class table — access class refs by name to avoid parameter-name shadowing
|
|
31
|
-
var _modelClasses = {
|
|
32
|
-
'ErrorResponse': _ErrorResponse["default"],
|
|
33
|
-
'GetTransactionLimitation200Response': _GetTransactionLimitation200Response["default"],
|
|
34
|
-
'ListSupportedCountries200ResponseInner': _ListSupportedCountries200ResponseInner["default"],
|
|
35
|
-
'SubmitDepositTravelRuleInfo201Response': _SubmitDepositTravelRuleInfo201Response["default"],
|
|
36
|
-
'TravelRuleDepositRequest': _TravelRuleDepositRequest["default"],
|
|
37
|
-
'TravelRuleWithdrawRequest': _TravelRuleWithdrawRequest["default"]
|
|
38
|
-
};
|
|
39
|
-
|
|
40
38
|
/**
|
|
41
39
|
* TravelRule service.
|
|
42
40
|
* @module api/TravelRuleApi
|
|
@@ -55,13 +53,234 @@ var TravelRuleApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
/**
|
|
58
|
-
*
|
|
59
|
-
* This operation
|
|
60
|
-
* @param {
|
|
61
|
-
* @param {
|
|
62
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
56
|
+
* Cancel Satoshi Test challenge
|
|
57
|
+
* This operation cancels a Satoshi Test challenge that is currently in `PREPARE` or `PENDING` status. Typical use case: the counterparty decides to switch verification methods before transferring. Once cancelled, the challenge status becomes `DELETED` and the on-chain match will no longer be observed. Challenges already in `MATCHED`, `VERIFIED`, `EXPIRED`, or `DELETED` state cannot be cancelled.
|
|
58
|
+
* @param {Object} opts Optional parameters
|
|
59
|
+
* @param {module:model/CancelSatoshiTestChallengeRequest} [CancelSatoshiTestChallengeRequest]
|
|
60
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SatoshiTestCancelResult} and HTTP response
|
|
63
61
|
*/
|
|
64
62
|
return _createClass(TravelRuleApi, [{
|
|
63
|
+
key: "cancelSatoshiTestChallengeWithHttpInfo",
|
|
64
|
+
value: function cancelSatoshiTestChallengeWithHttpInfo(opts) {
|
|
65
|
+
opts = opts || {};
|
|
66
|
+
var postBody = opts['CancelSatoshiTestChallengeRequest'];
|
|
67
|
+
if (postBody && postBody.toJSON) {
|
|
68
|
+
postBody = postBody.toJSON();
|
|
69
|
+
}
|
|
70
|
+
var pathParams = {};
|
|
71
|
+
var queryParams = {};
|
|
72
|
+
var headerParams = {};
|
|
73
|
+
var formParams = {};
|
|
74
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
75
|
+
var contentTypes = ['application/json'];
|
|
76
|
+
var accepts = ['application/json'];
|
|
77
|
+
var returnType = _SatoshiTestCancelResult["default"];
|
|
78
|
+
return this.apiClient.callApi('/travel_rule/satoshi_test/challenge/cancel', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Cancel Satoshi Test challenge
|
|
83
|
+
* This operation cancels a Satoshi Test challenge that is currently in `PREPARE` or `PENDING` status. Typical use case: the counterparty decides to switch verification methods before transferring. Once cancelled, the challenge status becomes `DELETED` and the on-chain match will no longer be observed. Challenges already in `MATCHED`, `VERIFIED`, `EXPIRED`, or `DELETED` state cannot be cancelled.
|
|
84
|
+
* @param {Object} opts Optional parameters
|
|
85
|
+
* @param {module:model/CancelSatoshiTestChallengeRequest} opts.CancelSatoshiTestChallengeRequest
|
|
86
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SatoshiTestCancelResult}
|
|
87
|
+
*/
|
|
88
|
+
}, {
|
|
89
|
+
key: "cancelSatoshiTestChallenge",
|
|
90
|
+
value: function cancelSatoshiTestChallenge(opts) {
|
|
91
|
+
return this.cancelSatoshiTestChallengeWithHttpInfo(opts).then(function (response_and_data) {
|
|
92
|
+
return response_and_data.data;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Create Satoshi Test challenge
|
|
98
|
+
* This operation creates a Satoshi Test challenge for self-custody address verification. Satoshi Test verifies address ownership by having the counterparty transfer a small, uniquely-generated amount from their wallet to a Cobo-controlled verification address. A single endpoint covers both flows via the `action` parameter: - **Two-step flow** (`action=PREPARE` then `action=SUBMIT`): Preview the verification details first, then activate. The 180-minute countdown only starts on `SUBMIT`. The server uses `(chain_id, from_address)` as the idempotency key, so the second call automatically targets the prepared challenge. For extra safety, pass the `challenge_id` returned by `PREPARE` in the subsequent `SUBMIT` call — it pins the activation to that specific challenge. - **One-shot flow** (`action=SUBMIT` directly, without `challenge_id`): Prepare and submit in a single call. The challenge is created directly in `PENDING` state with the countdown started. If the counterparty address has already been verified, the operation returns HTTP 400 `ADDRESS_ALREADY_VERIFIED`. Call [List address verifications](#operation/list_address_verifications) with `chain_id`, `address`, and `status=VERIFIED` first to pre-check. Supported chains: `BTC`, `ETH`, `BASE_ETH`, `BSC_BNB`, `TRON`.
|
|
99
|
+
* @param {Object} opts Optional parameters
|
|
100
|
+
* @param {module:model/CreateSatoshiTestChallengeRequest} [CreateSatoshiTestChallengeRequest]
|
|
101
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SatoshiTestChallenge} and HTTP response
|
|
102
|
+
*/
|
|
103
|
+
}, {
|
|
104
|
+
key: "createSatoshiTestChallengeWithHttpInfo",
|
|
105
|
+
value: function createSatoshiTestChallengeWithHttpInfo(opts) {
|
|
106
|
+
opts = opts || {};
|
|
107
|
+
var postBody = opts['CreateSatoshiTestChallengeRequest'];
|
|
108
|
+
if (postBody && postBody.toJSON) {
|
|
109
|
+
postBody = postBody.toJSON();
|
|
110
|
+
}
|
|
111
|
+
var pathParams = {};
|
|
112
|
+
var queryParams = {};
|
|
113
|
+
var headerParams = {};
|
|
114
|
+
var formParams = {};
|
|
115
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
116
|
+
var contentTypes = ['application/json'];
|
|
117
|
+
var accepts = ['application/json'];
|
|
118
|
+
var returnType = _SatoshiTestChallenge["default"];
|
|
119
|
+
return this.apiClient.callApi('/travel_rule/satoshi_test/challenge', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Create Satoshi Test challenge
|
|
124
|
+
* This operation creates a Satoshi Test challenge for self-custody address verification. Satoshi Test verifies address ownership by having the counterparty transfer a small, uniquely-generated amount from their wallet to a Cobo-controlled verification address. A single endpoint covers both flows via the `action` parameter: - **Two-step flow** (`action=PREPARE` then `action=SUBMIT`): Preview the verification details first, then activate. The 180-minute countdown only starts on `SUBMIT`. The server uses `(chain_id, from_address)` as the idempotency key, so the second call automatically targets the prepared challenge. For extra safety, pass the `challenge_id` returned by `PREPARE` in the subsequent `SUBMIT` call — it pins the activation to that specific challenge. - **One-shot flow** (`action=SUBMIT` directly, without `challenge_id`): Prepare and submit in a single call. The challenge is created directly in `PENDING` state with the countdown started. If the counterparty address has already been verified, the operation returns HTTP 400 `ADDRESS_ALREADY_VERIFIED`. Call [List address verifications](#operation/list_address_verifications) with `chain_id`, `address`, and `status=VERIFIED` first to pre-check. Supported chains: `BTC`, `ETH`, `BASE_ETH`, `BSC_BNB`, `TRON`.
|
|
125
|
+
* @param {Object} opts Optional parameters
|
|
126
|
+
* @param {module:model/CreateSatoshiTestChallengeRequest} opts.CreateSatoshiTestChallengeRequest
|
|
127
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SatoshiTestChallenge}
|
|
128
|
+
*/
|
|
129
|
+
}, {
|
|
130
|
+
key: "createSatoshiTestChallenge",
|
|
131
|
+
value: function createSatoshiTestChallenge(opts) {
|
|
132
|
+
return this.createSatoshiTestChallengeWithHttpInfo(opts).then(function (response_and_data) {
|
|
133
|
+
return response_and_data.data;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Get address verification
|
|
139
|
+
* Retrieve a single self-custody address verification record by its `verification_id`, including method-specific provenance: - `verification_method=SIGNATURE` → `signature_detail` is populated. - `verification_method=SATOSHI_TEST` → `satoshi_test_detail` carries the latest challenge state (`status`, `remaining_seconds`, `matched_txid`). Use [List address verifications](#operation/list_address_verifications) to discover `verification_id` values.
|
|
140
|
+
* @param {String} verification_id The unique identifier of the address verification record.
|
|
141
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddressVerificationDetail} and HTTP response
|
|
142
|
+
*/
|
|
143
|
+
}, {
|
|
144
|
+
key: "getAddressVerificationWithHttpInfo",
|
|
145
|
+
value: function getAddressVerificationWithHttpInfo(verification_id) {
|
|
146
|
+
var postBody = null;
|
|
147
|
+
if (postBody && postBody.toJSON) {
|
|
148
|
+
postBody = postBody.toJSON();
|
|
149
|
+
}
|
|
150
|
+
// verify the required parameter 'verification_id' is set
|
|
151
|
+
if (verification_id === undefined || verification_id === null) {
|
|
152
|
+
throw new Error("Missing the required parameter 'verification_id' when calling getAddressVerification");
|
|
153
|
+
}
|
|
154
|
+
var pathParams = {
|
|
155
|
+
'verification_id': verification_id
|
|
156
|
+
};
|
|
157
|
+
var queryParams = {};
|
|
158
|
+
var headerParams = {};
|
|
159
|
+
var formParams = {};
|
|
160
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
161
|
+
var contentTypes = [];
|
|
162
|
+
var accepts = ['application/json'];
|
|
163
|
+
var returnType = _AddressVerificationDetail["default"];
|
|
164
|
+
return this.apiClient.callApi('/travel_rule/address_verifications/{verification_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Get address verification
|
|
169
|
+
* Retrieve a single self-custody address verification record by its `verification_id`, including method-specific provenance: - `verification_method=SIGNATURE` → `signature_detail` is populated. - `verification_method=SATOSHI_TEST` → `satoshi_test_detail` carries the latest challenge state (`status`, `remaining_seconds`, `matched_txid`). Use [List address verifications](#operation/list_address_verifications) to discover `verification_id` values.
|
|
170
|
+
* @param {String} verification_id The unique identifier of the address verification record.
|
|
171
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddressVerificationDetail}
|
|
172
|
+
*/
|
|
173
|
+
}, {
|
|
174
|
+
key: "getAddressVerification",
|
|
175
|
+
value: function getAddressVerification(verification_id) {
|
|
176
|
+
return this.getAddressVerificationWithHttpInfo(verification_id).then(function (response_and_data) {
|
|
177
|
+
return response_and_data.data;
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Get Satoshi Test challenge
|
|
183
|
+
* This operation returns the current state of a Satoshi Test challenge — useful for polling after submission. The response contains the challenge `status` and `remaining_seconds`. Recommended polling interval: 10–30 seconds. The challenge will transition through `PENDING` → `MATCHED` → `VERIFIED` once the counterparty's transfer is observed and confirmed on chain. If the challenge is not matched within 180 minutes, the status becomes `EXPIRED`.
|
|
184
|
+
* @param {String} challenge_id The Satoshi Test challenge ID returned by the `prepare` or `submit` operation.
|
|
185
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SatoshiTestChallenge} and HTTP response
|
|
186
|
+
*/
|
|
187
|
+
}, {
|
|
188
|
+
key: "getSatoshiTestChallengeWithHttpInfo",
|
|
189
|
+
value: function getSatoshiTestChallengeWithHttpInfo(challenge_id) {
|
|
190
|
+
var postBody = null;
|
|
191
|
+
if (postBody && postBody.toJSON) {
|
|
192
|
+
postBody = postBody.toJSON();
|
|
193
|
+
}
|
|
194
|
+
// verify the required parameter 'challenge_id' is set
|
|
195
|
+
if (challenge_id === undefined || challenge_id === null) {
|
|
196
|
+
throw new Error("Missing the required parameter 'challenge_id' when calling getSatoshiTestChallenge");
|
|
197
|
+
}
|
|
198
|
+
var pathParams = {};
|
|
199
|
+
var queryParams = {
|
|
200
|
+
'challenge_id': challenge_id
|
|
201
|
+
};
|
|
202
|
+
var headerParams = {};
|
|
203
|
+
var formParams = {};
|
|
204
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
205
|
+
var contentTypes = [];
|
|
206
|
+
var accepts = ['application/json'];
|
|
207
|
+
var returnType = _SatoshiTestChallenge["default"];
|
|
208
|
+
return this.apiClient.callApi('/travel_rule/satoshi_test/challenge/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Get Satoshi Test challenge
|
|
213
|
+
* This operation returns the current state of a Satoshi Test challenge — useful for polling after submission. The response contains the challenge `status` and `remaining_seconds`. Recommended polling interval: 10–30 seconds. The challenge will transition through `PENDING` → `MATCHED` → `VERIFIED` once the counterparty's transfer is observed and confirmed on chain. If the challenge is not matched within 180 minutes, the status becomes `EXPIRED`.
|
|
214
|
+
* @param {String} challenge_id The Satoshi Test challenge ID returned by the `prepare` or `submit` operation.
|
|
215
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SatoshiTestChallenge}
|
|
216
|
+
*/
|
|
217
|
+
}, {
|
|
218
|
+
key: "getSatoshiTestChallenge",
|
|
219
|
+
value: function getSatoshiTestChallenge(challenge_id) {
|
|
220
|
+
return this.getSatoshiTestChallengeWithHttpInfo(challenge_id).then(function (response_and_data) {
|
|
221
|
+
return response_and_data.data;
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Get self-custody signature challenge
|
|
227
|
+
* This operation issues a one-time, time-bounded message for a self-custody wallet address to sign, in order to prove wallet ownership. The signature is then submitted via [Submit Travel Rule information for deposits](#operation/submit_deposit_travel_rule_info) or [withdrawals](#operation/submit_withdraw_travel_rule_info). Use this endpoint when you want to verify the counterparty's self-custody address via off-chain signature. For address verification via on-chain micro-deposit, use the Satoshi Test endpoints (`/travel_rule/satoshi_test/...`) instead. The challenge is valid for a short window (returned as `expires_in`, currently 30 seconds). Calling this endpoint again for the same transaction rotates the challenge — only the latest issued value will verify.
|
|
228
|
+
* @param {module:model/String} transaction_type The transaction type. Possible values include: - `DEPOSIT`: A deposit transaction. - `WITHDRAW`: A withdrawal transaction.
|
|
229
|
+
* @param {String} transaction_id The transaction ID.
|
|
230
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignatureChallenge} and HTTP response
|
|
231
|
+
*/
|
|
232
|
+
}, {
|
|
233
|
+
key: "getSignatureChallengeWithHttpInfo",
|
|
234
|
+
value: function getSignatureChallengeWithHttpInfo(transaction_type, transaction_id) {
|
|
235
|
+
var postBody = null;
|
|
236
|
+
if (postBody && postBody.toJSON) {
|
|
237
|
+
postBody = postBody.toJSON();
|
|
238
|
+
}
|
|
239
|
+
// verify the required parameter 'transaction_type' is set
|
|
240
|
+
if (transaction_type === undefined || transaction_type === null) {
|
|
241
|
+
throw new Error("Missing the required parameter 'transaction_type' when calling getSignatureChallenge");
|
|
242
|
+
}
|
|
243
|
+
// verify the required parameter 'transaction_id' is set
|
|
244
|
+
if (transaction_id === undefined || transaction_id === null) {
|
|
245
|
+
throw new Error("Missing the required parameter 'transaction_id' when calling getSignatureChallenge");
|
|
246
|
+
}
|
|
247
|
+
var pathParams = {};
|
|
248
|
+
var queryParams = {
|
|
249
|
+
'transaction_type': transaction_type,
|
|
250
|
+
'transaction_id': transaction_id
|
|
251
|
+
};
|
|
252
|
+
var headerParams = {};
|
|
253
|
+
var formParams = {};
|
|
254
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
255
|
+
var contentTypes = [];
|
|
256
|
+
var accepts = ['application/json'];
|
|
257
|
+
var returnType = _SignatureChallenge["default"];
|
|
258
|
+
return this.apiClient.callApi('/travel_rule/signature_challenge', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Get self-custody signature challenge
|
|
263
|
+
* This operation issues a one-time, time-bounded message for a self-custody wallet address to sign, in order to prove wallet ownership. The signature is then submitted via [Submit Travel Rule information for deposits](#operation/submit_deposit_travel_rule_info) or [withdrawals](#operation/submit_withdraw_travel_rule_info). Use this endpoint when you want to verify the counterparty's self-custody address via off-chain signature. For address verification via on-chain micro-deposit, use the Satoshi Test endpoints (`/travel_rule/satoshi_test/...`) instead. The challenge is valid for a short window (returned as `expires_in`, currently 30 seconds). Calling this endpoint again for the same transaction rotates the challenge — only the latest issued value will verify.
|
|
264
|
+
* @param {module:model/String} transaction_type The transaction type. Possible values include: - `DEPOSIT`: A deposit transaction. - `WITHDRAW`: A withdrawal transaction.
|
|
265
|
+
* @param {String} transaction_id The transaction ID.
|
|
266
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignatureChallenge}
|
|
267
|
+
*/
|
|
268
|
+
}, {
|
|
269
|
+
key: "getSignatureChallenge",
|
|
270
|
+
value: function getSignatureChallenge(transaction_type, transaction_id) {
|
|
271
|
+
return this.getSignatureChallengeWithHttpInfo(transaction_type, transaction_id).then(function (response_and_data) {
|
|
272
|
+
return response_and_data.data;
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Retrieve transaction limitations
|
|
278
|
+
* <Note>The `self_custody_wallet_challenge` field in the response is deprecated. To obtain a signature challenge, call [Get self-custody signature challenge](#operation/get_signature_challenge) instead. This operation itself is not deprecated and continues to return the VASP list, threshold info, connect wallet list, and Satoshi Test support.</Note> This operation retrieves Travel Rule requirements and available options for a transaction based on its transaction type and ID. Use this endpoint before submitting Travel Rule information to understand the requirements and available options for your transaction.
|
|
279
|
+
* @param {module:model/String} transaction_type The transaction type. Possible values include: - `DEPOSIT`: A deposit transaction. - `WITHDRAW`: A withdrawal transaction.
|
|
280
|
+
* @param {String} transaction_id The transaction ID.
|
|
281
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTransactionLimitation200Response} and HTTP response
|
|
282
|
+
*/
|
|
283
|
+
}, {
|
|
65
284
|
key: "getTransactionLimitationWithHttpInfo",
|
|
66
285
|
value: function getTransactionLimitationWithHttpInfo(transaction_type, transaction_id) {
|
|
67
286
|
var postBody = null;
|
|
@@ -92,7 +311,7 @@ var TravelRuleApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
92
311
|
|
|
93
312
|
/**
|
|
94
313
|
* Retrieve transaction limitations
|
|
95
|
-
* This operation retrieves Travel Rule requirements and available options for a transaction based on its transaction type and ID. Use this endpoint before submitting Travel Rule information to understand the requirements and available options for your transaction.
|
|
314
|
+
* <Note>The `self_custody_wallet_challenge` field in the response is deprecated. To obtain a signature challenge, call [Get self-custody signature challenge](#operation/get_signature_challenge) instead. This operation itself is not deprecated and continues to return the VASP list, threshold info, connect wallet list, and Satoshi Test support.</Note> This operation retrieves Travel Rule requirements and available options for a transaction based on its transaction type and ID. Use this endpoint before submitting Travel Rule information to understand the requirements and available options for your transaction.
|
|
96
315
|
* @param {module:model/String} transaction_type The transaction type. Possible values include: - `DEPOSIT`: A deposit transaction. - `WITHDRAW`: A withdrawal transaction.
|
|
97
316
|
* @param {String} transaction_id The transaction ID.
|
|
98
317
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTransactionLimitation200Response}
|
|
@@ -105,6 +324,64 @@ var TravelRuleApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
105
324
|
});
|
|
106
325
|
}
|
|
107
326
|
|
|
327
|
+
/**
|
|
328
|
+
* List address verifications
|
|
329
|
+
* List self-custody address verification records under the current organization with optional filters and cursor-based pagination. Records are sorted by creation time descending (most recent first). Use `limit` plus `before` / `after` cursors from the previous page's `pagination` block to traverse pages. Each record's `status` is one of `PENDING`, `VERIFIED`, or `FAILED`.
|
|
330
|
+
* @param {Object} opts Optional parameters
|
|
331
|
+
* @param {module:model/AddressVerificationStatus} [status] Filter by verification status. Allowed values: - `PENDING`: A Satoshi Test challenge is in progress (countdown active or awaiting confirmation). - `VERIFIED`: The address ownership has been confirmed (by signature or by a matched Satoshi Test transfer). - `FAILED`: The verification attempt did not succeed (Satoshi Test expired without match, or signature verification rejected). Omit this parameter to return records of all three statuses.
|
|
332
|
+
* @param {String} [chain_id] Filter by chain ID (e.g. `BTC`, `ETH`, `BASE_ETH`, `BSC_BNB`, `TRON`).
|
|
333
|
+
* @param {String} [address] Filter by counterparty (self-custody) wallet address.
|
|
334
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
335
|
+
* @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
336
|
+
* @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
337
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAddressVerifications200Response} and HTTP response
|
|
338
|
+
*/
|
|
339
|
+
}, {
|
|
340
|
+
key: "listAddressVerificationsWithHttpInfo",
|
|
341
|
+
value: function listAddressVerificationsWithHttpInfo(opts) {
|
|
342
|
+
opts = opts || {};
|
|
343
|
+
var postBody = null;
|
|
344
|
+
if (postBody && postBody.toJSON) {
|
|
345
|
+
postBody = postBody.toJSON();
|
|
346
|
+
}
|
|
347
|
+
var pathParams = {};
|
|
348
|
+
var queryParams = {
|
|
349
|
+
'status': opts['status'],
|
|
350
|
+
'chain_id': opts['chain_id'],
|
|
351
|
+
'address': opts['address'],
|
|
352
|
+
'limit': opts['limit'],
|
|
353
|
+
'before': opts['before'],
|
|
354
|
+
'after': opts['after']
|
|
355
|
+
};
|
|
356
|
+
var headerParams = {};
|
|
357
|
+
var formParams = {};
|
|
358
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
359
|
+
var contentTypes = [];
|
|
360
|
+
var accepts = ['application/json'];
|
|
361
|
+
var returnType = _ListAddressVerifications200Response["default"];
|
|
362
|
+
return this.apiClient.callApi('/travel_rule/address_verifications', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* List address verifications
|
|
367
|
+
* List self-custody address verification records under the current organization with optional filters and cursor-based pagination. Records are sorted by creation time descending (most recent first). Use `limit` plus `before` / `after` cursors from the previous page's `pagination` block to traverse pages. Each record's `status` is one of `PENDING`, `VERIFIED`, or `FAILED`.
|
|
368
|
+
* @param {Object} opts Optional parameters
|
|
369
|
+
* @param {module:model/AddressVerificationStatus} opts.status Filter by verification status. Allowed values: - `PENDING`: A Satoshi Test challenge is in progress (countdown active or awaiting confirmation). - `VERIFIED`: The address ownership has been confirmed (by signature or by a matched Satoshi Test transfer). - `FAILED`: The verification attempt did not succeed (Satoshi Test expired without match, or signature verification rejected). Omit this parameter to return records of all three statuses.
|
|
370
|
+
* @param {String} opts.chain_id Filter by chain ID (e.g. `BTC`, `ETH`, `BASE_ETH`, `BSC_BNB`, `TRON`).
|
|
371
|
+
* @param {String} opts.address Filter by counterparty (self-custody) wallet address.
|
|
372
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
373
|
+
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
374
|
+
* @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
375
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAddressVerifications200Response}
|
|
376
|
+
*/
|
|
377
|
+
}, {
|
|
378
|
+
key: "listAddressVerifications",
|
|
379
|
+
value: function listAddressVerifications(opts) {
|
|
380
|
+
return this.listAddressVerificationsWithHttpInfo(opts).then(function (response_and_data) {
|
|
381
|
+
return response_and_data.data;
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
|
|
108
385
|
/**
|
|
109
386
|
* List supported countries
|
|
110
387
|
* This operation retrieves a list of supported countries that can be used when submitting Travel Rule information. Use this endpoint to obtain valid country values for: - Place of incorporation of a legal entity - Place of birth of a natural person
|
|
@@ -156,21 +433,6 @@ var TravelRuleApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
156
433
|
if (postBody && postBody.toJSON) {
|
|
157
434
|
postBody = postBody.toJSON();
|
|
158
435
|
}
|
|
159
|
-
// Validate opts key — must be exactly 'TravelRuleDepositRequest'
|
|
160
|
-
if (postBody === undefined && opts) {
|
|
161
|
-
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
162
|
-
return k !== '_base_path_index';
|
|
163
|
-
});
|
|
164
|
-
if (_providedKeys.length > 0) {
|
|
165
|
-
throw new Error('submitDepositTravelRuleInfo(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "TravelRuleDepositRequest".');
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
// Validate request body before sending
|
|
169
|
-
if (postBody !== null && postBody !== undefined) {
|
|
170
|
-
if (_modelClasses['TravelRuleDepositRequest'] && typeof _modelClasses['TravelRuleDepositRequest'].validateJSON === 'function') {
|
|
171
|
-
_modelClasses['TravelRuleDepositRequest'].validateJSON(postBody);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
436
|
var pathParams = {};
|
|
175
437
|
var queryParams = {};
|
|
176
438
|
var headerParams = {};
|
|
@@ -212,21 +474,6 @@ var TravelRuleApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
212
474
|
if (postBody && postBody.toJSON) {
|
|
213
475
|
postBody = postBody.toJSON();
|
|
214
476
|
}
|
|
215
|
-
// Validate opts key — must be exactly 'TravelRuleWithdrawRequest'
|
|
216
|
-
if (postBody === undefined && opts) {
|
|
217
|
-
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
218
|
-
return k !== '_base_path_index';
|
|
219
|
-
});
|
|
220
|
-
if (_providedKeys.length > 0) {
|
|
221
|
-
throw new Error('submitWithdrawTravelRuleInfo(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "TravelRuleWithdrawRequest".');
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
// Validate request body before sending
|
|
225
|
-
if (postBody !== null && postBody !== undefined) {
|
|
226
|
-
if (_modelClasses['TravelRuleWithdrawRequest'] && typeof _modelClasses['TravelRuleWithdrawRequest'].validateJSON === 'function') {
|
|
227
|
-
_modelClasses['TravelRuleWithdrawRequest'].validateJSON(postBody);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
477
|
var pathParams = {};
|
|
231
478
|
var queryParams = {};
|
|
232
479
|
var headerParams = {};
|