@nemtus/symbol-rest-api-client-fetch 1.0.0 → 1.0.2
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/cjs/api/apis/AccountRoutesApi.d.ts +94 -1
- package/cjs/api/apis/AccountRoutesApi.js +67 -28
- package/cjs/api/apis/BlockRoutesApi.d.ts +94 -1
- package/cjs/api/apis/BlockRoutesApi.js +68 -30
- package/cjs/api/apis/ChainRoutesApi.d.ts +5 -1
- package/cjs/api/apis/ChainRoutesApi.js +16 -7
- package/cjs/api/apis/FinalizationRoutesApi.d.ts +17 -1
- package/cjs/api/apis/FinalizationRoutesApi.js +33 -15
- package/cjs/api/apis/HashLockRoutesApi.d.ts +126 -1
- package/cjs/api/apis/HashLockRoutesApi.js +83 -35
- package/cjs/api/apis/MetadataRoutesApi.d.ts +107 -3
- package/cjs/api/apis/MetadataRoutesApi.js +82 -34
- package/cjs/api/apis/MosaicRoutesApi.d.ts +71 -1
- package/cjs/api/apis/MosaicRoutesApi.js +67 -28
- package/cjs/api/apis/MultisigRoutesApi.d.ts +24 -1
- package/cjs/api/apis/MultisigRoutesApi.js +51 -22
- package/cjs/api/apis/NamespaceRoutesApi.d.ts +108 -1
- package/cjs/api/apis/NamespaceRoutesApi.js +104 -42
- package/cjs/api/apis/NetworkRoutesApi.d.ts +44 -1
- package/cjs/api/apis/NetworkRoutesApi.js +138 -53
- package/cjs/api/apis/NodeRoutesApi.d.ts +38 -1
- package/cjs/api/apis/NodeRoutesApi.js +125 -48
- package/cjs/api/apis/ReceiptRoutesApi.d.ts +171 -1
- package/cjs/api/apis/ReceiptRoutesApi.js +47 -19
- package/cjs/api/apis/RestrictionAccountRoutesApi.d.ts +81 -1
- package/cjs/api/apis/RestrictionAccountRoutesApi.js +67 -28
- package/cjs/api/apis/RestrictionMosaicRoutesApi.d.ts +78 -1
- package/cjs/api/apis/RestrictionMosaicRoutesApi.js +67 -28
- package/cjs/api/apis/SecretLockRoutesApi.d.ts +132 -1
- package/cjs/api/apis/SecretLockRoutesApi.js +83 -35
- package/cjs/api/apis/TransactionRoutesApi.d.ts +416 -1
- package/cjs/api/apis/TransactionRoutesApi.js +195 -82
- package/cjs/api/apis/TransactionStatusRoutesApi.d.ts +16 -1
- package/cjs/api/apis/TransactionStatusRoutesApi.js +34 -15
- package/cjs/api/models/AccountAddressRestrictionTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AccountAddressRestrictionTransactionDTO.d.ts +7 -41
- package/cjs/api/models/AccountDTO.d.ts +4 -32
- package/cjs/api/models/AccountIds.d.ts +1 -5
- package/cjs/api/models/AccountInfoDTO.d.ts +1 -5
- package/cjs/api/models/AccountKeyLinkNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/AccountKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/AccountKeyLinkTransactionDTO.d.ts +7 -39
- package/cjs/api/models/AccountLinkPublicKeyDTO.d.ts +1 -3
- package/cjs/api/models/AccountLinkVotingKeyDTO.d.ts +3 -15
- package/cjs/api/models/AccountLinkVotingKeysDTO.d.ts +1 -3
- package/cjs/api/models/AccountMetadataTransactionBodyDTO.d.ts +1 -11
- package/cjs/api/models/AccountMetadataTransactionDTO.d.ts +7 -45
- package/cjs/api/models/AccountMosaicRestrictionTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AccountMosaicRestrictionTransactionDTO.d.ts +7 -41
- package/cjs/api/models/AccountNamesDTO.d.ts +2 -8
- package/cjs/api/models/AccountOperationRestrictionTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AccountOperationRestrictionTransactionDTO.d.ts +7 -41
- package/cjs/api/models/AccountOrderByEnum.js +1 -1
- package/cjs/api/models/AccountPage.d.ts +1 -5
- package/cjs/api/models/AccountRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/AccountRestrictionDTOValuesInner.d.ts +1 -1
- package/cjs/api/models/AccountRestrictionFlagsEnum.js +1 -1
- package/cjs/api/models/AccountRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/AccountRestrictionsDTO.d.ts +1 -7
- package/cjs/api/models/AccountRestrictionsInfoDTO.d.ts +1 -3
- package/cjs/api/models/AccountRestrictionsPage.d.ts +1 -5
- package/cjs/api/models/AccountTypeEnum.js +1 -1
- package/cjs/api/models/AccountsNamesDTO.d.ts +1 -3
- package/cjs/api/models/ActivityBucketDTO.d.ts +13 -25
- package/cjs/api/models/AddressAliasTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AddressAliasTransactionDTO.d.ts +7 -41
- package/cjs/api/models/Addresses.d.ts +1 -3
- package/cjs/api/models/AggregateNetworkPropertiesDTO.d.ts +1 -11
- package/cjs/api/models/AggregateTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/AggregateTransactionBodyExtendedDTO.d.ts +1 -7
- package/cjs/api/models/AggregateTransactionDTO.d.ts +7 -39
- package/cjs/api/models/AggregateTransactionExtendedDTO.d.ts +7 -41
- package/cjs/api/models/AliasActionEnum.js +1 -1
- package/cjs/api/models/AliasDTO.d.ts +3 -14
- package/cjs/api/models/AliasTypeEnum.js +1 -1
- package/cjs/api/models/AnnounceTransactionInfoDTO.d.ts +1 -3
- package/cjs/api/models/BalanceChangeReceiptDTO.d.ts +4 -23
- package/cjs/api/models/BalanceTransferReceiptDTO.d.ts +5 -28
- package/cjs/api/models/BlockDTO.d.ts +8 -45
- package/cjs/api/models/BlockInfoDTO.d.ts +1 -7
- package/cjs/api/models/BlockInfoDTOBlock.d.ts +12 -64
- package/cjs/api/models/BlockMetaDTO.d.ts +2 -20
- package/cjs/api/models/BlockOrderByEnum.js +1 -1
- package/cjs/api/models/BlockPage.d.ts +1 -5
- package/cjs/api/models/BmTreeSignature.d.ts +1 -5
- package/cjs/api/models/BsonLongDTO.d.ts +1 -7
- package/cjs/api/models/ChainInfoDTO.d.ts +5 -16
- package/cjs/api/models/ChainPropertiesDTO.d.ts +3 -71
- package/cjs/api/models/CommunicationTimestampsDTO.d.ts +4 -26
- package/cjs/api/models/CompositeHashes.d.ts +1 -3
- package/cjs/api/models/Cosignature.d.ts +3 -11
- package/cjs/api/models/CosignatureDTO.d.ts +1 -7
- package/cjs/api/models/DeploymentDTO.d.ts +1 -7
- package/cjs/api/models/EmbeddedAccountAddressRestrictionTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedAccountKeyLinkTransactionDTO.d.ts +2 -14
- package/cjs/api/models/EmbeddedAccountMetadataTransactionDTO.d.ts +2 -20
- package/cjs/api/models/EmbeddedAccountMosaicRestrictionTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedAccountOperationRestrictionTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedAddressAliasTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedHashLockTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedMosaicAddressRestrictionTransactionDTO.d.ts +2 -20
- package/cjs/api/models/EmbeddedMosaicAliasTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedMosaicDefinitionTransactionDTO.d.ts +3 -23
- package/cjs/api/models/EmbeddedMosaicGlobalRestrictionTransactionDTO.d.ts +2 -24
- package/cjs/api/models/EmbeddedMosaicMetadataTransactionDTO.d.ts +2 -22
- package/cjs/api/models/EmbeddedMosaicSupplyChangeTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedMosaicSupplyRevocationTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedMultisigAccountModificationTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedNamespaceMetadataTransactionDTO.d.ts +2 -22
- package/cjs/api/models/EmbeddedNamespaceRegistrationTransactionDTO.d.ts +2 -20
- package/cjs/api/models/EmbeddedNodeKeyLinkTransactionDTO.d.ts +2 -14
- package/cjs/api/models/EmbeddedSecretLockTransactionDTO.d.ts +2 -22
- package/cjs/api/models/EmbeddedSecretProofTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedTransactionBodyDTO.d.ts +1 -3
- package/cjs/api/models/EmbeddedTransactionDTO.d.ts +2 -10
- package/cjs/api/models/EmbeddedTransactionInfoDTO.d.ts +1 -7
- package/cjs/api/models/EmbeddedTransactionInfoDTOTransaction.d.ts +3 -107
- package/cjs/api/models/EmbeddedTransactionMetaDTO.d.ts +8 -43
- package/cjs/api/models/EmbeddedTransferTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedVotingKeyLinkTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedVrfKeyLinkTransactionDTO.d.ts +2 -14
- package/cjs/api/models/EntityDTO.d.ts +2 -10
- package/cjs/api/models/FinalizationProofDTO.d.ts +1 -13
- package/cjs/api/models/FinalizedBlockDTO.d.ts +1 -9
- package/cjs/api/models/ForkHeightsDTO.d.ts +1 -15
- package/cjs/api/models/HashLockEntryDTO.d.ts +6 -31
- package/cjs/api/models/HashLockInfoDTO.d.ts +1 -5
- package/cjs/api/models/HashLockNetworkPropertiesDTO.d.ts +1 -5
- package/cjs/api/models/HashLockPage.d.ts +1 -5
- package/cjs/api/models/HashLockTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/HashLockTransactionDTO.d.ts +7 -43
- package/cjs/api/models/ImportanceBlockDTO.d.ts +12 -64
- package/cjs/api/models/InflationReceiptDTO.d.ts +3 -18
- package/cjs/api/models/LinkActionEnum.js +1 -1
- package/cjs/api/models/LockHashAlgorithmEnum.js +1 -1
- package/cjs/api/models/LockStatus.js +1 -1
- package/cjs/api/models/MerklePathItemDTO.d.ts +2 -6
- package/cjs/api/models/MerkleProofInfoDTO.d.ts +1 -3
- package/cjs/api/models/MerkleStateInfoDTO.d.ts +1 -5
- package/cjs/api/models/MerkleStateInfoDTOTreeInner.d.ts +3 -21
- package/cjs/api/models/MerkleTreeBranchDTO.d.ts +2 -16
- package/cjs/api/models/MerkleTreeBranchLinkDTO.d.ts +2 -6
- package/cjs/api/models/MerkleTreeLeafDTO.d.ts +2 -14
- package/cjs/api/models/MerkleTreeNodeTypeEnum.js +1 -1
- package/cjs/api/models/MessageGroup.d.ts +2 -12
- package/cjs/api/models/MetadataEntryDTO.d.ts +7 -25
- package/cjs/api/models/MetadataEntryDTOTargetId.d.ts +1 -1
- package/cjs/api/models/MetadataInfoDTO.d.ts +1 -5
- package/cjs/api/models/MetadataNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/MetadataPage.d.ts +1 -5
- package/cjs/api/models/MetadataTypeEnum.js +1 -1
- package/cjs/api/models/ModelError.d.ts +1 -5
- package/cjs/api/models/Mosaic.d.ts +1 -5
- package/cjs/api/models/MosaicAddressRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/MosaicAddressRestrictionEntryDTO.d.ts +1 -5
- package/cjs/api/models/MosaicAddressRestrictionEntryWrapperDTO.d.ts +4 -21
- package/cjs/api/models/MosaicAddressRestrictionTransactionBodyDTO.d.ts +1 -11
- package/cjs/api/models/MosaicAddressRestrictionTransactionDTO.d.ts +7 -45
- package/cjs/api/models/MosaicAliasTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/MosaicAliasTransactionDTO.d.ts +7 -41
- package/cjs/api/models/MosaicDTO.d.ts +7 -33
- package/cjs/api/models/MosaicDefinitionTransactionBodyDTO.d.ts +2 -14
- package/cjs/api/models/MosaicDefinitionTransactionDTO.d.ts +8 -48
- package/cjs/api/models/MosaicExpiryReceiptDTO.d.ts +2 -11
- package/cjs/api/models/MosaicGlobalRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/MosaicGlobalRestrictionEntryDTO.d.ts +1 -5
- package/cjs/api/models/MosaicGlobalRestrictionEntryRestrictionDTO.d.ts +4 -10
- package/cjs/api/models/MosaicGlobalRestrictionEntryWrapperDTO.d.ts +3 -16
- package/cjs/api/models/MosaicGlobalRestrictionTransactionBodyDTO.d.ts +1 -15
- package/cjs/api/models/MosaicGlobalRestrictionTransactionDTO.d.ts +7 -49
- package/cjs/api/models/MosaicIds.d.ts +1 -3
- package/cjs/api/models/MosaicInfoDTO.d.ts +1 -5
- package/cjs/api/models/MosaicMetadataTransactionBodyDTO.d.ts +1 -13
- package/cjs/api/models/MosaicMetadataTransactionDTO.d.ts +7 -47
- package/cjs/api/models/MosaicNamesDTO.d.ts +2 -9
- package/cjs/api/models/MosaicNetworkPropertiesDTO.d.ts +5 -27
- package/cjs/api/models/MosaicPage.d.ts +1 -5
- package/cjs/api/models/MosaicRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/MosaicRestrictionEntryTypeEnum.js +1 -1
- package/cjs/api/models/MosaicRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/MosaicRestrictionTypeEnum.js +1 -1
- package/cjs/api/models/MosaicRestrictionsPage.d.ts +1 -5
- package/cjs/api/models/MosaicRestrictionsPageDataInner.d.ts +1 -5
- package/cjs/api/models/MosaicSupplyChangeActionEnum.js +1 -1
- package/cjs/api/models/MosaicSupplyChangeTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/MosaicSupplyChangeTransactionDTO.d.ts +7 -41
- package/cjs/api/models/MosaicSupplyRevocationTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/MosaicSupplyRevocationTransactionDTO.d.ts +7 -41
- package/cjs/api/models/MosaicsNamesDTO.d.ts +1 -3
- package/cjs/api/models/MultisigAccountGraphInfoDTO.d.ts +1 -5
- package/cjs/api/models/MultisigAccountInfoDTO.d.ts +1 -3
- package/cjs/api/models/MultisigAccountModificationTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/MultisigAccountModificationTransactionDTO.d.ts +7 -43
- package/cjs/api/models/MultisigDTO.d.ts +3 -19
- package/cjs/api/models/MultisigNetworkPropertiesDTO.d.ts +1 -7
- package/cjs/api/models/NamespaceDTO.d.ts +8 -48
- package/cjs/api/models/NamespaceExpiryReceiptDTO.d.ts +2 -11
- package/cjs/api/models/NamespaceIds.d.ts +1 -3
- package/cjs/api/models/NamespaceInfoDTO.d.ts +1 -7
- package/cjs/api/models/NamespaceMetaDTO.d.ts +1 -5
- package/cjs/api/models/NamespaceMetadataTransactionBodyDTO.d.ts +1 -13
- package/cjs/api/models/NamespaceMetadataTransactionDTO.d.ts +7 -47
- package/cjs/api/models/NamespaceNameDTO.d.ts +3 -15
- package/cjs/api/models/NamespaceNetworkPropertiesDTO.d.ts +5 -43
- package/cjs/api/models/NamespacePage.d.ts +1 -5
- package/cjs/api/models/NamespaceRegistrationTransactionBodyDTO.d.ts +1 -11
- package/cjs/api/models/NamespaceRegistrationTransactionDTO.d.ts +7 -45
- package/cjs/api/models/NamespaceRegistrationTypeEnum.js +1 -1
- package/cjs/api/models/NetworkConfigurationDTO.d.ts +1 -13
- package/cjs/api/models/NetworkInflationDTO.d.ts +3 -13
- package/cjs/api/models/NetworkPropertiesDTO.d.ts +1 -11
- package/cjs/api/models/NetworkTypeDTO.d.ts +1 -5
- package/cjs/api/models/NetworkTypeDTO.js +1 -1
- package/cjs/api/models/NetworkTypeEnum.js +1 -1
- package/cjs/api/models/NodeHealthDTO.d.ts +1 -5
- package/cjs/api/models/NodeHealthInfoDTO.d.ts +1 -3
- package/cjs/api/models/NodeIdentityEqualityStrategy.js +1 -1
- package/cjs/api/models/NodeInfoDTO.d.ts +1 -19
- package/cjs/api/models/NodeKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/NodeKeyLinkTransactionDTO.d.ts +7 -39
- package/cjs/api/models/NodeStatusEnum.js +1 -1
- package/cjs/api/models/NodeTimeDTO.d.ts +1 -3
- package/cjs/api/models/Order.js +1 -1
- package/cjs/api/models/Pagination.d.ts +1 -5
- package/cjs/api/models/ParentPublicKeySignaturePair.d.ts +1 -5
- package/cjs/api/models/PluginsPropertiesDTO.d.ts +1 -23
- package/cjs/api/models/PositionEnum.js +1 -1
- package/cjs/api/models/ReceiptDTO.d.ts +1 -5
- package/cjs/api/models/ReceiptTypeEnum.js +1 -1
- package/cjs/api/models/RentalFeesDTO.d.ts +4 -22
- package/cjs/api/models/ResolutionEntryDTO.d.ts +1 -5
- package/cjs/api/models/ResolutionEntryDTOResolved.d.ts +1 -1
- package/cjs/api/models/ResolutionStatementDTO.d.ts +2 -10
- package/cjs/api/models/ResolutionStatementDTOUnresolved.d.ts +1 -1
- package/cjs/api/models/ResolutionStatementInfoDTO.d.ts +1 -7
- package/cjs/api/models/ResolutionStatementPage.d.ts +1 -5
- package/cjs/api/models/SecretLockEntryDTO.d.ts +10 -40
- package/cjs/api/models/SecretLockInfoDTO.d.ts +1 -5
- package/cjs/api/models/SecretLockNetworkPropertiesDTO.d.ts +1 -7
- package/cjs/api/models/SecretLockPage.d.ts +1 -5
- package/cjs/api/models/SecretLockTransactionBodyDTO.d.ts +1 -13
- package/cjs/api/models/SecretLockTransactionDTO.d.ts +7 -47
- package/cjs/api/models/SecretProofTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/SecretProofTransactionDTO.d.ts +7 -43
- package/cjs/api/models/ServerDTO.d.ts +1 -5
- package/cjs/api/models/ServerInfoDTO.d.ts +1 -3
- package/cjs/api/models/SizePrefixedEntityDTO.d.ts +3 -5
- package/cjs/api/models/SourceDTO.d.ts +11 -9
- package/cjs/api/models/StageEnum.js +1 -1
- package/cjs/api/models/StatementMetaDTO.d.ts +2 -14
- package/cjs/api/models/StorageInfoDTO.d.ts +1 -9
- package/cjs/api/models/StorageInfoDatabaseDTO.d.ts +1 -11
- package/cjs/api/models/SupplementalPublicKeysDTO.d.ts +1 -9
- package/cjs/api/models/TransactionBodyDTO.d.ts +4 -20
- package/cjs/api/models/TransactionDTO.d.ts +7 -35
- package/cjs/api/models/TransactionFeesDTO.d.ts +6 -76
- package/cjs/api/models/TransactionGroupEnum.js +1 -1
- package/cjs/api/models/TransactionHashes.d.ts +1 -3
- package/cjs/api/models/TransactionIds.d.ts +1 -3
- package/cjs/api/models/TransactionInfoDTO.d.ts +1 -7
- package/cjs/api/models/TransactionInfoDTOMeta.d.ts +12 -49
- package/cjs/api/models/TransactionInfoDTOTransaction.d.ts +8 -138
- package/cjs/api/models/TransactionMetaDTO.d.ts +10 -41
- package/cjs/api/models/TransactionPage.d.ts +1 -5
- package/cjs/api/models/TransactionPayload.d.ts +1 -3
- package/cjs/api/models/TransactionStatementDTO.d.ts +2 -10
- package/cjs/api/models/TransactionStatementDTOReceiptsInner.d.ts +7 -39
- package/cjs/api/models/TransactionStatementInfoDTO.d.ts +1 -7
- package/cjs/api/models/TransactionStatementPage.d.ts +1 -5
- package/cjs/api/models/TransactionStatusDTO.d.ts +4 -26
- package/cjs/api/models/TransactionStatusEnum.js +1 -1
- package/cjs/api/models/TransactionTypeEnum.js +1 -1
- package/cjs/api/models/TransferNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/TransferTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/TransferTransactionDTO.d.ts +7 -41
- package/cjs/api/models/UnlockedAccountDTO.d.ts +1 -3
- package/cjs/api/models/UnresolvedMosaic.d.ts +1 -5
- package/cjs/api/models/VerifiableEntityDTO.d.ts +1 -3
- package/cjs/api/models/VotingKeyLinkTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/VotingKeyLinkTransactionDTO.d.ts +7 -43
- package/cjs/api/models/VrfKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/VrfKeyLinkTransactionDTO.d.ts +7 -39
- package/cjs/api/runtime.d.ts +34 -1
- package/cjs/api/runtime.js +136 -4
- package/esm/api/apis/AccountRoutesApi.d.ts +94 -1
- package/esm/api/apis/AccountRoutesApi.js +54 -23
- package/esm/api/apis/BlockRoutesApi.d.ts +94 -1
- package/esm/api/apis/BlockRoutesApi.js +56 -26
- package/esm/api/apis/ChainRoutesApi.d.ts +5 -1
- package/esm/api/apis/ChainRoutesApi.js +13 -6
- package/esm/api/apis/FinalizationRoutesApi.d.ts +17 -1
- package/esm/api/apis/FinalizationRoutesApi.js +27 -13
- package/esm/api/apis/HashLockRoutesApi.d.ts +126 -1
- package/esm/api/apis/HashLockRoutesApi.js +67 -29
- package/esm/api/apis/MetadataRoutesApi.d.ts +107 -3
- package/esm/api/apis/MetadataRoutesApi.js +67 -29
- package/esm/api/apis/MosaicRoutesApi.d.ts +71 -1
- package/esm/api/apis/MosaicRoutesApi.js +54 -23
- package/esm/api/apis/MultisigRoutesApi.d.ts +24 -1
- package/esm/api/apis/MultisigRoutesApi.js +42 -19
- package/esm/api/apis/NamespaceRoutesApi.d.ts +108 -1
- package/esm/api/apis/NamespaceRoutesApi.js +83 -33
- package/esm/api/apis/NetworkRoutesApi.d.ts +44 -1
- package/esm/api/apis/NetworkRoutesApi.js +114 -47
- package/esm/api/apis/NodeRoutesApi.d.ts +38 -1
- package/esm/api/apis/NodeRoutesApi.js +102 -41
- package/esm/api/apis/ReceiptRoutesApi.d.ts +171 -1
- package/esm/api/apis/ReceiptRoutesApi.js +38 -16
- package/esm/api/apis/RestrictionAccountRoutesApi.d.ts +81 -1
- package/esm/api/apis/RestrictionAccountRoutesApi.js +54 -23
- package/esm/api/apis/RestrictionMosaicRoutesApi.d.ts +78 -1
- package/esm/api/apis/RestrictionMosaicRoutesApi.js +54 -23
- package/esm/api/apis/SecretLockRoutesApi.d.ts +132 -1
- package/esm/api/apis/SecretLockRoutesApi.js +67 -29
- package/esm/api/apis/TransactionRoutesApi.d.ts +416 -1
- package/esm/api/apis/TransactionRoutesApi.js +153 -64
- package/esm/api/apis/TransactionStatusRoutesApi.d.ts +16 -1
- package/esm/api/apis/TransactionStatusRoutesApi.js +27 -12
- package/esm/api/models/AccountAddressRestrictionTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AccountAddressRestrictionTransactionDTO.d.ts +7 -41
- package/esm/api/models/AccountDTO.d.ts +4 -32
- package/esm/api/models/AccountIds.d.ts +1 -5
- package/esm/api/models/AccountInfoDTO.d.ts +1 -5
- package/esm/api/models/AccountKeyLinkNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/AccountKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/AccountKeyLinkTransactionDTO.d.ts +7 -39
- package/esm/api/models/AccountLinkPublicKeyDTO.d.ts +1 -3
- package/esm/api/models/AccountLinkVotingKeyDTO.d.ts +3 -15
- package/esm/api/models/AccountLinkVotingKeysDTO.d.ts +1 -3
- package/esm/api/models/AccountMetadataTransactionBodyDTO.d.ts +1 -11
- package/esm/api/models/AccountMetadataTransactionDTO.d.ts +7 -45
- package/esm/api/models/AccountMosaicRestrictionTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AccountMosaicRestrictionTransactionDTO.d.ts +7 -41
- package/esm/api/models/AccountNamesDTO.d.ts +2 -8
- package/esm/api/models/AccountOperationRestrictionTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AccountOperationRestrictionTransactionDTO.d.ts +7 -41
- package/esm/api/models/AccountOrderByEnum.js +1 -1
- package/esm/api/models/AccountPage.d.ts +1 -5
- package/esm/api/models/AccountRestrictionDTO.d.ts +1 -5
- package/esm/api/models/AccountRestrictionDTOValuesInner.d.ts +1 -1
- package/esm/api/models/AccountRestrictionFlagsEnum.js +1 -1
- package/esm/api/models/AccountRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/AccountRestrictionsDTO.d.ts +1 -7
- package/esm/api/models/AccountRestrictionsInfoDTO.d.ts +1 -3
- package/esm/api/models/AccountRestrictionsPage.d.ts +1 -5
- package/esm/api/models/AccountTypeEnum.js +1 -1
- package/esm/api/models/AccountsNamesDTO.d.ts +1 -3
- package/esm/api/models/ActivityBucketDTO.d.ts +13 -25
- package/esm/api/models/AddressAliasTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AddressAliasTransactionDTO.d.ts +7 -41
- package/esm/api/models/Addresses.d.ts +1 -3
- package/esm/api/models/AggregateNetworkPropertiesDTO.d.ts +1 -11
- package/esm/api/models/AggregateTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/AggregateTransactionBodyExtendedDTO.d.ts +1 -7
- package/esm/api/models/AggregateTransactionDTO.d.ts +7 -39
- package/esm/api/models/AggregateTransactionExtendedDTO.d.ts +7 -41
- package/esm/api/models/AliasActionEnum.js +1 -1
- package/esm/api/models/AliasDTO.d.ts +3 -14
- package/esm/api/models/AliasTypeEnum.js +1 -1
- package/esm/api/models/AnnounceTransactionInfoDTO.d.ts +1 -3
- package/esm/api/models/BalanceChangeReceiptDTO.d.ts +4 -23
- package/esm/api/models/BalanceTransferReceiptDTO.d.ts +5 -28
- package/esm/api/models/BlockDTO.d.ts +8 -45
- package/esm/api/models/BlockInfoDTO.d.ts +1 -7
- package/esm/api/models/BlockInfoDTOBlock.d.ts +12 -64
- package/esm/api/models/BlockMetaDTO.d.ts +2 -20
- package/esm/api/models/BlockOrderByEnum.js +1 -1
- package/esm/api/models/BlockPage.d.ts +1 -5
- package/esm/api/models/BmTreeSignature.d.ts +1 -5
- package/esm/api/models/BsonLongDTO.d.ts +1 -7
- package/esm/api/models/ChainInfoDTO.d.ts +5 -16
- package/esm/api/models/ChainPropertiesDTO.d.ts +3 -71
- package/esm/api/models/CommunicationTimestampsDTO.d.ts +4 -26
- package/esm/api/models/CompositeHashes.d.ts +1 -3
- package/esm/api/models/Cosignature.d.ts +3 -11
- package/esm/api/models/CosignatureDTO.d.ts +1 -7
- package/esm/api/models/DeploymentDTO.d.ts +1 -7
- package/esm/api/models/EmbeddedAccountAddressRestrictionTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedAccountKeyLinkTransactionDTO.d.ts +2 -14
- package/esm/api/models/EmbeddedAccountMetadataTransactionDTO.d.ts +2 -20
- package/esm/api/models/EmbeddedAccountMosaicRestrictionTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedAccountOperationRestrictionTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedAddressAliasTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedHashLockTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedMosaicAddressRestrictionTransactionDTO.d.ts +2 -20
- package/esm/api/models/EmbeddedMosaicAliasTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedMosaicDefinitionTransactionDTO.d.ts +3 -23
- package/esm/api/models/EmbeddedMosaicGlobalRestrictionTransactionDTO.d.ts +2 -24
- package/esm/api/models/EmbeddedMosaicMetadataTransactionDTO.d.ts +2 -22
- package/esm/api/models/EmbeddedMosaicSupplyChangeTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedMosaicSupplyRevocationTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedMultisigAccountModificationTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedNamespaceMetadataTransactionDTO.d.ts +2 -22
- package/esm/api/models/EmbeddedNamespaceRegistrationTransactionDTO.d.ts +2 -20
- package/esm/api/models/EmbeddedNodeKeyLinkTransactionDTO.d.ts +2 -14
- package/esm/api/models/EmbeddedSecretLockTransactionDTO.d.ts +2 -22
- package/esm/api/models/EmbeddedSecretProofTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedTransactionBodyDTO.d.ts +1 -3
- package/esm/api/models/EmbeddedTransactionDTO.d.ts +2 -10
- package/esm/api/models/EmbeddedTransactionInfoDTO.d.ts +1 -7
- package/esm/api/models/EmbeddedTransactionInfoDTOTransaction.d.ts +3 -107
- package/esm/api/models/EmbeddedTransactionMetaDTO.d.ts +8 -43
- package/esm/api/models/EmbeddedTransferTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedVotingKeyLinkTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedVrfKeyLinkTransactionDTO.d.ts +2 -14
- package/esm/api/models/EntityDTO.d.ts +2 -10
- package/esm/api/models/FinalizationProofDTO.d.ts +1 -13
- package/esm/api/models/FinalizedBlockDTO.d.ts +1 -9
- package/esm/api/models/ForkHeightsDTO.d.ts +1 -15
- package/esm/api/models/HashLockEntryDTO.d.ts +6 -31
- package/esm/api/models/HashLockInfoDTO.d.ts +1 -5
- package/esm/api/models/HashLockNetworkPropertiesDTO.d.ts +1 -5
- package/esm/api/models/HashLockPage.d.ts +1 -5
- package/esm/api/models/HashLockTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/HashLockTransactionDTO.d.ts +7 -43
- package/esm/api/models/ImportanceBlockDTO.d.ts +12 -64
- package/esm/api/models/InflationReceiptDTO.d.ts +3 -18
- package/esm/api/models/LinkActionEnum.js +1 -1
- package/esm/api/models/LockHashAlgorithmEnum.js +1 -1
- package/esm/api/models/LockStatus.js +1 -1
- package/esm/api/models/MerklePathItemDTO.d.ts +2 -6
- package/esm/api/models/MerkleProofInfoDTO.d.ts +1 -3
- package/esm/api/models/MerkleStateInfoDTO.d.ts +1 -5
- package/esm/api/models/MerkleStateInfoDTOTreeInner.d.ts +3 -21
- package/esm/api/models/MerkleTreeBranchDTO.d.ts +2 -16
- package/esm/api/models/MerkleTreeBranchLinkDTO.d.ts +2 -6
- package/esm/api/models/MerkleTreeLeafDTO.d.ts +2 -14
- package/esm/api/models/MerkleTreeNodeTypeEnum.js +1 -1
- package/esm/api/models/MessageGroup.d.ts +2 -12
- package/esm/api/models/MetadataEntryDTO.d.ts +7 -25
- package/esm/api/models/MetadataEntryDTOTargetId.d.ts +1 -1
- package/esm/api/models/MetadataInfoDTO.d.ts +1 -5
- package/esm/api/models/MetadataNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/MetadataPage.d.ts +1 -5
- package/esm/api/models/MetadataTypeEnum.js +1 -1
- package/esm/api/models/ModelError.d.ts +1 -5
- package/esm/api/models/Mosaic.d.ts +1 -5
- package/esm/api/models/MosaicAddressRestrictionDTO.d.ts +1 -5
- package/esm/api/models/MosaicAddressRestrictionEntryDTO.d.ts +1 -5
- package/esm/api/models/MosaicAddressRestrictionEntryWrapperDTO.d.ts +4 -21
- package/esm/api/models/MosaicAddressRestrictionTransactionBodyDTO.d.ts +1 -11
- package/esm/api/models/MosaicAddressRestrictionTransactionDTO.d.ts +7 -45
- package/esm/api/models/MosaicAliasTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/MosaicAliasTransactionDTO.d.ts +7 -41
- package/esm/api/models/MosaicDTO.d.ts +7 -33
- package/esm/api/models/MosaicDefinitionTransactionBodyDTO.d.ts +2 -14
- package/esm/api/models/MosaicDefinitionTransactionDTO.d.ts +8 -48
- package/esm/api/models/MosaicExpiryReceiptDTO.d.ts +2 -11
- package/esm/api/models/MosaicGlobalRestrictionDTO.d.ts +1 -5
- package/esm/api/models/MosaicGlobalRestrictionEntryDTO.d.ts +1 -5
- package/esm/api/models/MosaicGlobalRestrictionEntryRestrictionDTO.d.ts +4 -10
- package/esm/api/models/MosaicGlobalRestrictionEntryWrapperDTO.d.ts +3 -16
- package/esm/api/models/MosaicGlobalRestrictionTransactionBodyDTO.d.ts +1 -15
- package/esm/api/models/MosaicGlobalRestrictionTransactionDTO.d.ts +7 -49
- package/esm/api/models/MosaicIds.d.ts +1 -3
- package/esm/api/models/MosaicInfoDTO.d.ts +1 -5
- package/esm/api/models/MosaicMetadataTransactionBodyDTO.d.ts +1 -13
- package/esm/api/models/MosaicMetadataTransactionDTO.d.ts +7 -47
- package/esm/api/models/MosaicNamesDTO.d.ts +2 -9
- package/esm/api/models/MosaicNetworkPropertiesDTO.d.ts +5 -27
- package/esm/api/models/MosaicPage.d.ts +1 -5
- package/esm/api/models/MosaicRestrictionDTO.d.ts +1 -5
- package/esm/api/models/MosaicRestrictionEntryTypeEnum.js +1 -1
- package/esm/api/models/MosaicRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/MosaicRestrictionTypeEnum.js +1 -1
- package/esm/api/models/MosaicRestrictionsPage.d.ts +1 -5
- package/esm/api/models/MosaicRestrictionsPageDataInner.d.ts +1 -5
- package/esm/api/models/MosaicSupplyChangeActionEnum.js +1 -1
- package/esm/api/models/MosaicSupplyChangeTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/MosaicSupplyChangeTransactionDTO.d.ts +7 -41
- package/esm/api/models/MosaicSupplyRevocationTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/MosaicSupplyRevocationTransactionDTO.d.ts +7 -41
- package/esm/api/models/MosaicsNamesDTO.d.ts +1 -3
- package/esm/api/models/MultisigAccountGraphInfoDTO.d.ts +1 -5
- package/esm/api/models/MultisigAccountInfoDTO.d.ts +1 -3
- package/esm/api/models/MultisigAccountModificationTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/MultisigAccountModificationTransactionDTO.d.ts +7 -43
- package/esm/api/models/MultisigDTO.d.ts +3 -19
- package/esm/api/models/MultisigNetworkPropertiesDTO.d.ts +1 -7
- package/esm/api/models/NamespaceDTO.d.ts +8 -48
- package/esm/api/models/NamespaceExpiryReceiptDTO.d.ts +2 -11
- package/esm/api/models/NamespaceIds.d.ts +1 -3
- package/esm/api/models/NamespaceInfoDTO.d.ts +1 -7
- package/esm/api/models/NamespaceMetaDTO.d.ts +1 -5
- package/esm/api/models/NamespaceMetadataTransactionBodyDTO.d.ts +1 -13
- package/esm/api/models/NamespaceMetadataTransactionDTO.d.ts +7 -47
- package/esm/api/models/NamespaceNameDTO.d.ts +3 -15
- package/esm/api/models/NamespaceNetworkPropertiesDTO.d.ts +5 -43
- package/esm/api/models/NamespacePage.d.ts +1 -5
- package/esm/api/models/NamespaceRegistrationTransactionBodyDTO.d.ts +1 -11
- package/esm/api/models/NamespaceRegistrationTransactionDTO.d.ts +7 -45
- package/esm/api/models/NamespaceRegistrationTypeEnum.js +1 -1
- package/esm/api/models/NetworkConfigurationDTO.d.ts +1 -13
- package/esm/api/models/NetworkInflationDTO.d.ts +3 -13
- package/esm/api/models/NetworkPropertiesDTO.d.ts +1 -11
- package/esm/api/models/NetworkTypeDTO.d.ts +1 -5
- package/esm/api/models/NetworkTypeDTO.js +1 -1
- package/esm/api/models/NetworkTypeEnum.js +1 -1
- package/esm/api/models/NodeHealthDTO.d.ts +1 -5
- package/esm/api/models/NodeHealthInfoDTO.d.ts +1 -3
- package/esm/api/models/NodeIdentityEqualityStrategy.js +1 -1
- package/esm/api/models/NodeInfoDTO.d.ts +1 -19
- package/esm/api/models/NodeKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/NodeKeyLinkTransactionDTO.d.ts +7 -39
- package/esm/api/models/NodeStatusEnum.js +1 -1
- package/esm/api/models/NodeTimeDTO.d.ts +1 -3
- package/esm/api/models/Order.js +1 -1
- package/esm/api/models/Pagination.d.ts +1 -5
- package/esm/api/models/ParentPublicKeySignaturePair.d.ts +1 -5
- package/esm/api/models/PluginsPropertiesDTO.d.ts +1 -23
- package/esm/api/models/PositionEnum.js +1 -1
- package/esm/api/models/ReceiptDTO.d.ts +1 -5
- package/esm/api/models/ReceiptTypeEnum.js +1 -1
- package/esm/api/models/RentalFeesDTO.d.ts +4 -22
- package/esm/api/models/ResolutionEntryDTO.d.ts +1 -5
- package/esm/api/models/ResolutionEntryDTOResolved.d.ts +1 -1
- package/esm/api/models/ResolutionStatementDTO.d.ts +2 -10
- package/esm/api/models/ResolutionStatementDTOUnresolved.d.ts +1 -1
- package/esm/api/models/ResolutionStatementInfoDTO.d.ts +1 -7
- package/esm/api/models/ResolutionStatementPage.d.ts +1 -5
- package/esm/api/models/SecretLockEntryDTO.d.ts +10 -40
- package/esm/api/models/SecretLockInfoDTO.d.ts +1 -5
- package/esm/api/models/SecretLockNetworkPropertiesDTO.d.ts +1 -7
- package/esm/api/models/SecretLockPage.d.ts +1 -5
- package/esm/api/models/SecretLockTransactionBodyDTO.d.ts +1 -13
- package/esm/api/models/SecretLockTransactionDTO.d.ts +7 -47
- package/esm/api/models/SecretProofTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/SecretProofTransactionDTO.d.ts +7 -43
- package/esm/api/models/ServerDTO.d.ts +1 -5
- package/esm/api/models/ServerInfoDTO.d.ts +1 -3
- package/esm/api/models/SizePrefixedEntityDTO.d.ts +3 -5
- package/esm/api/models/SourceDTO.d.ts +11 -9
- package/esm/api/models/StageEnum.js +1 -1
- package/esm/api/models/StatementMetaDTO.d.ts +2 -14
- package/esm/api/models/StorageInfoDTO.d.ts +1 -9
- package/esm/api/models/StorageInfoDatabaseDTO.d.ts +1 -11
- package/esm/api/models/SupplementalPublicKeysDTO.d.ts +1 -9
- package/esm/api/models/TransactionBodyDTO.d.ts +4 -20
- package/esm/api/models/TransactionDTO.d.ts +7 -35
- package/esm/api/models/TransactionFeesDTO.d.ts +6 -76
- package/esm/api/models/TransactionGroupEnum.js +1 -1
- package/esm/api/models/TransactionHashes.d.ts +1 -3
- package/esm/api/models/TransactionIds.d.ts +1 -3
- package/esm/api/models/TransactionInfoDTO.d.ts +1 -7
- package/esm/api/models/TransactionInfoDTOMeta.d.ts +12 -49
- package/esm/api/models/TransactionInfoDTOTransaction.d.ts +8 -138
- package/esm/api/models/TransactionMetaDTO.d.ts +10 -41
- package/esm/api/models/TransactionPage.d.ts +1 -5
- package/esm/api/models/TransactionPayload.d.ts +1 -3
- package/esm/api/models/TransactionStatementDTO.d.ts +2 -10
- package/esm/api/models/TransactionStatementDTOReceiptsInner.d.ts +7 -39
- package/esm/api/models/TransactionStatementInfoDTO.d.ts +1 -7
- package/esm/api/models/TransactionStatementPage.d.ts +1 -5
- package/esm/api/models/TransactionStatusDTO.d.ts +4 -26
- package/esm/api/models/TransactionStatusEnum.js +1 -1
- package/esm/api/models/TransactionTypeEnum.js +1 -1
- package/esm/api/models/TransferNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/TransferTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/TransferTransactionDTO.d.ts +7 -41
- package/esm/api/models/UnlockedAccountDTO.d.ts +1 -3
- package/esm/api/models/UnresolvedMosaic.d.ts +1 -5
- package/esm/api/models/VerifiableEntityDTO.d.ts +1 -3
- package/esm/api/models/VotingKeyLinkTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/VotingKeyLinkTransactionDTO.d.ts +7 -43
- package/esm/api/models/VrfKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/VrfKeyLinkTransactionDTO.d.ts +7 -39
- package/esm/api/runtime.d.ts +34 -1
- package/esm/api/runtime.js +127 -4
- package/index.min.js +1 -1
- package/package.json +26 -10
|
@@ -12,29 +12,38 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { MerkleStateInfoDTOFromJSON,
|
|
15
|
+
import { MerkleStateInfoDTOFromJSON, } from '../models/MerkleStateInfoDTO';
|
|
16
|
+
import { MultisigAccountGraphInfoDTOFromJSON, } from '../models/MultisigAccountGraphInfoDTO';
|
|
17
|
+
import { MultisigAccountInfoDTOFromJSON, } from '../models/MultisigAccountInfoDTO';
|
|
16
18
|
/**
|
|
17
19
|
*
|
|
18
20
|
*/
|
|
19
21
|
export class MultisigRoutesApi extends runtime.BaseAPI {
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
22
|
-
* Get multisig account information
|
|
23
|
+
* Creates request options for getAccountMultisig without sending the request
|
|
23
24
|
*/
|
|
24
|
-
async
|
|
25
|
+
async getAccountMultisigRequestOpts(requestParameters) {
|
|
25
26
|
if (requestParameters['address'] == null) {
|
|
26
27
|
throw new runtime.RequiredError('address', 'Required parameter "address" was null or undefined when calling getAccountMultisig().');
|
|
27
28
|
}
|
|
28
29
|
const queryParameters = {};
|
|
29
30
|
const headerParameters = {};
|
|
30
31
|
let urlPath = `/account/{address}/multisig`;
|
|
31
|
-
urlPath = urlPath.replace(
|
|
32
|
-
|
|
32
|
+
urlPath = urlPath.replace('{address}', encodeURIComponent(String(requestParameters['address'])));
|
|
33
|
+
return {
|
|
33
34
|
path: urlPath,
|
|
34
35
|
method: 'GET',
|
|
35
36
|
headers: headerParameters,
|
|
36
37
|
query: queryParameters,
|
|
37
|
-
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns the current multisig state for an account. The response includes the approval thresholds for the multisig account, its direct cosignatories, and the multisig accounts where the queried account is itself acting as a cosignatory. If the queried account is only a cosignatory, the endpoint still returns `200`, with `minApproval = 0`, `minRemoval = 0`, an empty `cosignatoryAddresses` array, and the related multisig accounts listed in `multisigAddresses`. If the account is neither a multisig account nor a cosignatory of any multisig account, the endpoint returns `404`.
|
|
42
|
+
* Get multisig account information
|
|
43
|
+
*/
|
|
44
|
+
async getAccountMultisigRaw(requestParameters, initOverrides) {
|
|
45
|
+
const requestOptions = await this.getAccountMultisigRequestOpts(requestParameters);
|
|
46
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
38
47
|
return new runtime.JSONApiResponse(response, (jsonValue) => MultisigAccountInfoDTOFromJSON(jsonValue));
|
|
39
48
|
}
|
|
40
49
|
/**
|
|
@@ -46,23 +55,30 @@ export class MultisigRoutesApi extends runtime.BaseAPI {
|
|
|
46
55
|
return await response.value();
|
|
47
56
|
}
|
|
48
57
|
/**
|
|
49
|
-
*
|
|
50
|
-
* Get multisig account graph information
|
|
58
|
+
* Creates request options for getAccountMultisigGraph without sending the request
|
|
51
59
|
*/
|
|
52
|
-
async
|
|
60
|
+
async getAccountMultisigGraphRequestOpts(requestParameters) {
|
|
53
61
|
if (requestParameters['address'] == null) {
|
|
54
62
|
throw new runtime.RequiredError('address', 'Required parameter "address" was null or undefined when calling getAccountMultisigGraph().');
|
|
55
63
|
}
|
|
56
64
|
const queryParameters = {};
|
|
57
65
|
const headerParameters = {};
|
|
58
66
|
let urlPath = `/account/{address}/multisig/graph`;
|
|
59
|
-
urlPath = urlPath.replace(
|
|
60
|
-
|
|
67
|
+
urlPath = urlPath.replace('{address}', encodeURIComponent(String(requestParameters['address'])));
|
|
68
|
+
return {
|
|
61
69
|
path: urlPath,
|
|
62
70
|
method: 'GET',
|
|
63
71
|
headers: headerParameters,
|
|
64
72
|
query: queryParameters,
|
|
65
|
-
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns the multisig graph centered on the requested account. Level `0` contains the requested account. Negative levels contain multisig accounts for which the queried account acts as a cosignatory. Positive levels contain multisig relationships discovered through the queried account\'s cosignatories. If the requested account is a cosignatory but is not itself managed as a multisig account, the response still includes level `0` for that account. In this case, the level `0` entry has `minApproval = 0`, `minRemoval = 0`, an empty `cosignatoryAddresses` array, and `multisigAddresses` listing the multisig accounts it can cosign. If the requested account is neither a multisig account nor a cosignatory of any multisig account, no multisig state entry exists for it and the endpoint returns `404`. If the requested account is itself a multisig account, the response includes its multisig state at level `0` together with any reachable negative and positive graph levels.
|
|
77
|
+
* Get multisig account graph information
|
|
78
|
+
*/
|
|
79
|
+
async getAccountMultisigGraphRaw(requestParameters, initOverrides) {
|
|
80
|
+
const requestOptions = await this.getAccountMultisigGraphRequestOpts(requestParameters);
|
|
81
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
66
82
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MultisigAccountGraphInfoDTOFromJSON));
|
|
67
83
|
}
|
|
68
84
|
/**
|
|
@@ -74,23 +90,30 @@ export class MultisigRoutesApi extends runtime.BaseAPI {
|
|
|
74
90
|
return await response.value();
|
|
75
91
|
}
|
|
76
92
|
/**
|
|
77
|
-
*
|
|
78
|
-
* Get multisig account Merkle information
|
|
93
|
+
* Creates request options for getAccountMultisigMerkle without sending the request
|
|
79
94
|
*/
|
|
80
|
-
async
|
|
95
|
+
async getAccountMultisigMerkleRequestOpts(requestParameters) {
|
|
81
96
|
if (requestParameters['address'] == null) {
|
|
82
97
|
throw new runtime.RequiredError('address', 'Required parameter "address" was null or undefined when calling getAccountMultisigMerkle().');
|
|
83
98
|
}
|
|
84
99
|
const queryParameters = {};
|
|
85
100
|
const headerParameters = {};
|
|
86
101
|
let urlPath = `/account/{address}/multisig/merkle`;
|
|
87
|
-
urlPath = urlPath.replace(
|
|
88
|
-
|
|
102
|
+
urlPath = urlPath.replace('{address}', encodeURIComponent(String(requestParameters['address'])));
|
|
103
|
+
return {
|
|
89
104
|
path: urlPath,
|
|
90
105
|
method: 'GET',
|
|
91
106
|
headers: headerParameters,
|
|
92
107
|
query: queryParameters,
|
|
93
|
-
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Returns the [Merkle proof](https://docs.symbol.dev/concepts/data-validation.html#merkle-proof) for the multisig state entry associated with the requested account. If the requested account is a cosignatory, the endpoint returns the Merkle proof for that account\'s multisig state entry. Cosignatory-only accounts still have a multisig state entry with `minApproval = 0`, `minRemoval = 0`, an empty `cosignatoryAddresses` array, and `multisigAddresses` listing the multisig accounts they can cosign. If the requested account is itself a multisig account, the endpoint returns the Merkle proof for that multisig account state entry. If the requested account is neither a multisig account nor a cosignatory, the endpoint still returns a Merkle proof response, but it is a negative proof showing that no multisig state entry exists for the supplied address.
|
|
112
|
+
* Get multisig account Merkle information
|
|
113
|
+
*/
|
|
114
|
+
async getAccountMultisigMerkleRaw(requestParameters, initOverrides) {
|
|
115
|
+
const requestOptions = await this.getAccountMultisigMerkleRequestOpts(requestParameters);
|
|
116
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
94
117
|
return new runtime.JSONApiResponse(response, (jsonValue) => MerkleStateInfoDTOFromJSON(jsonValue));
|
|
95
118
|
}
|
|
96
119
|
/**
|
|
@@ -10,36 +10,123 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type AccountsNamesDTO } from '../models/AccountsNamesDTO';
|
|
14
|
+
import { type Addresses } from '../models/Addresses';
|
|
15
|
+
import { type AliasTypeEnum } from '../models/AliasTypeEnum';
|
|
16
|
+
import { type MerkleStateInfoDTO } from '../models/MerkleStateInfoDTO';
|
|
17
|
+
import { type MosaicIds } from '../models/MosaicIds';
|
|
18
|
+
import { type MosaicsNamesDTO } from '../models/MosaicsNamesDTO';
|
|
19
|
+
import { type NamespaceIds } from '../models/NamespaceIds';
|
|
20
|
+
import { type NamespaceInfoDTO } from '../models/NamespaceInfoDTO';
|
|
21
|
+
import { type NamespaceNameDTO } from '../models/NamespaceNameDTO';
|
|
22
|
+
import { type NamespacePage } from '../models/NamespacePage';
|
|
23
|
+
import { type NamespaceRegistrationTypeEnum } from '../models/NamespaceRegistrationTypeEnum';
|
|
24
|
+
import { type Order } from '../models/Order';
|
|
14
25
|
export interface GetAccountsNamesRequest {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
15
29
|
addresses: Addresses;
|
|
16
30
|
}
|
|
17
31
|
export interface GetMosaicsNamesRequest {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
18
35
|
mosaicIds: MosaicIds;
|
|
19
36
|
}
|
|
20
37
|
export interface GetNamespaceRequest {
|
|
38
|
+
/**
|
|
39
|
+
* Namespace identifier encoded as a 16-character hexadecimal string.
|
|
40
|
+
*/
|
|
21
41
|
namespaceId: string;
|
|
22
42
|
}
|
|
23
43
|
export interface GetNamespaceMerkleRequest {
|
|
44
|
+
/**
|
|
45
|
+
* Namespace identifier encoded as a 16-character hexadecimal string.
|
|
46
|
+
*/
|
|
24
47
|
namespaceId: string;
|
|
25
48
|
}
|
|
26
49
|
export interface GetNamespacesNamesRequest {
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
27
53
|
namespaceIds: NamespaceIds;
|
|
28
54
|
}
|
|
29
55
|
export interface SearchNamespacesRequest {
|
|
56
|
+
/**
|
|
57
|
+
* Filter by owner address in Base32 format (include).
|
|
58
|
+
*/
|
|
30
59
|
ownerAddress?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Filter by namespace registration type (include).
|
|
62
|
+
* - 0: Root namespace.
|
|
63
|
+
* - 1: Subnamespace.
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
31
66
|
registrationType?: NamespaceRegistrationTypeEnum;
|
|
67
|
+
/**
|
|
68
|
+
* Filter by the root namespace identifier (include).
|
|
69
|
+
*/
|
|
32
70
|
level0?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Filter by alias type (include).
|
|
73
|
+
* - 0: Namespace has no alias.
|
|
74
|
+
* - 1: Namespace is linked to a mosaic ID.
|
|
75
|
+
* - 2: Namespace is linked to an address.
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
33
78
|
aliasType?: AliasTypeEnum;
|
|
79
|
+
/**
|
|
80
|
+
* Select the number of entries to return per page.
|
|
81
|
+
* Values outside the allowed range are clamped to the schema minimum or maximum.
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
34
84
|
pageSize?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Page number for numbered pagination (1-based).
|
|
87
|
+
*
|
|
88
|
+
* Numbered and cursor pagination can be combined, but this is not recommended because the semantics
|
|
89
|
+
* are harder to reason about. For cursor-style flows, keep `pageNumber=1` and advance pages by
|
|
90
|
+
* updating only `offset`. For numbered pagination flows, omit `offset` and advance pages by
|
|
91
|
+
* incrementing `pageNumber`.
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
35
94
|
pageNumber?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Cursor for pagination. Provide the value of the sort field (`orderBy`) from the
|
|
97
|
+
* last entry of the previous page. **The offset type must match `orderBy`:**
|
|
98
|
+
* - `orderBy=id`: use the entry's `id` (ObjectId, 24-char hex).
|
|
99
|
+
* - `orderBy=height`: use the block height (string, e.g. `"17592"`).
|
|
100
|
+
* - `orderBy=balance`: use the mosaic balance amount (string, e.g. `"1000000"`).
|
|
101
|
+
*
|
|
102
|
+
* Allowed `orderBy` values depend on the endpoint. If `orderBy` is omitted, `id` is used by default.
|
|
103
|
+
*
|
|
104
|
+
* Set `offset` to the sort-field value of the last entry from the previous page. Across pages,
|
|
105
|
+
* this value decreases with `order=desc` and increases with `order=asc`.
|
|
106
|
+
*
|
|
107
|
+
* Numbered and cursor pagination can be combined, but this is not recommended because the semantics
|
|
108
|
+
* are harder to reason about. For cursor-style flows, keep `pageNumber=1` and advance pages by
|
|
109
|
+
* updating only `offset`. For numbered pagination flows, omit `offset` and advance pages by
|
|
110
|
+
* incrementing `pageNumber`.
|
|
111
|
+
*
|
|
112
|
+
*/
|
|
36
113
|
offset?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Sort responses in ascending or descending order based on the collection property set on the param `orderBy`.
|
|
116
|
+
* If the request does not specify `orderBy`, REST returns the collection ordered by id.
|
|
117
|
+
* The default sort direction depends on the endpoint implementation.
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
37
120
|
order?: Order;
|
|
38
121
|
}
|
|
39
122
|
/**
|
|
40
123
|
*
|
|
41
124
|
*/
|
|
42
125
|
export declare class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
126
|
+
/**
|
|
127
|
+
* Creates request options for getAccountsNames without sending the request
|
|
128
|
+
*/
|
|
129
|
+
getAccountsNamesRequestOpts(requestParameters: GetAccountsNamesRequest): Promise<runtime.RequestOpts>;
|
|
43
130
|
/**
|
|
44
131
|
* Resolves namespace names linked to account addresses. Submit an array of addresses in the request body. For each address, the response returns the namespace names currently linked to that account.
|
|
45
132
|
* Get readable names for a set of accounts
|
|
@@ -50,6 +137,10 @@ export declare class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
50
137
|
* Get readable names for a set of accounts
|
|
51
138
|
*/
|
|
52
139
|
getAccountsNames(requestParameters: GetAccountsNamesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountsNamesDTO>;
|
|
140
|
+
/**
|
|
141
|
+
* Creates request options for getMosaicsNames without sending the request
|
|
142
|
+
*/
|
|
143
|
+
getMosaicsNamesRequestOpts(requestParameters: GetMosaicsNamesRequest): Promise<runtime.RequestOpts>;
|
|
53
144
|
/**
|
|
54
145
|
* Resolves namespace names linked to mosaic identifiers. Submit an array of mosaic identifiers in the request body. For each requested mosaic identifier, the response returns one entry in the same order as the request. Each entry contains the namespace names currently linked to that identifier. An empty `names` array means no namespace aliases were resolved for that identifier.
|
|
55
146
|
* Get readable names for a set of mosaics
|
|
@@ -60,6 +151,10 @@ export declare class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
60
151
|
* Get readable names for a set of mosaics
|
|
61
152
|
*/
|
|
62
153
|
getMosaicsNames(requestParameters: GetMosaicsNamesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MosaicsNamesDTO>;
|
|
154
|
+
/**
|
|
155
|
+
* Creates request options for getNamespace without sending the request
|
|
156
|
+
*/
|
|
157
|
+
getNamespaceRequestOpts(requestParameters: GetNamespaceRequest): Promise<runtime.RequestOpts>;
|
|
63
158
|
/**
|
|
64
159
|
* Retrieves the current on-chain state for a namespace.
|
|
65
160
|
* Get namespace information
|
|
@@ -70,6 +165,10 @@ export declare class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
70
165
|
* Get namespace information
|
|
71
166
|
*/
|
|
72
167
|
getNamespace(requestParameters: GetNamespaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamespaceInfoDTO>;
|
|
168
|
+
/**
|
|
169
|
+
* Creates request options for getNamespaceMerkle without sending the request
|
|
170
|
+
*/
|
|
171
|
+
getNamespaceMerkleRequestOpts(requestParameters: GetNamespaceMerkleRequest): Promise<runtime.RequestOpts>;
|
|
73
172
|
/**
|
|
74
173
|
* Returns the [Merkle proof](https://docs.symbol.dev/concepts/data-validation.html#merkle-proof) for a namespace. Clients can use this information to verify that the namespace state is included in the node\'s state Merkle tree. If the supplied namespace ID does not exist, the endpoint still returns a Merkle proof response, but it is a negative proof showing that no namespace state entry exists for the requested namespace ID. See [Data Validation](https://docs.symbol.dev/concepts/data-validation.html) for an overview of Patricia Merkle trees and state proofs on Symbol.
|
|
75
174
|
* Get namespace Merkle information
|
|
@@ -80,6 +179,10 @@ export declare class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
80
179
|
* Get namespace Merkle information
|
|
81
180
|
*/
|
|
82
181
|
getNamespaceMerkle(requestParameters: GetNamespaceMerkleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MerkleStateInfoDTO>;
|
|
182
|
+
/**
|
|
183
|
+
* Creates request options for getNamespacesNames without sending the request
|
|
184
|
+
*/
|
|
185
|
+
getNamespacesNamesRequestOpts(requestParameters: GetNamespacesNamesRequest): Promise<runtime.RequestOpts>;
|
|
83
186
|
/**
|
|
84
187
|
* Resolves human-readable namespace names for namespace identifiers. Submit an array of namespace identifiers in the request body. For each matching identifier, the response returns the namespace name. When a matching identifier is a subnamespace, the response will also include its parent namespace entry and parent namespace identifier. Identifiers that cannot be resolved are omitted from the response.
|
|
85
188
|
* Get readable names for a set of namespaces
|
|
@@ -90,6 +193,10 @@ export declare class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
90
193
|
* Get readable names for a set of namespaces
|
|
91
194
|
*/
|
|
92
195
|
getNamespacesNames(requestParameters: GetNamespacesNamesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<NamespaceNameDTO>>;
|
|
196
|
+
/**
|
|
197
|
+
* Creates request options for searchNamespaces without sending the request
|
|
198
|
+
*/
|
|
199
|
+
searchNamespacesRequestOpts(requestParameters: SearchNamespacesRequest): Promise<runtime.RequestOpts>;
|
|
93
200
|
/**
|
|
94
201
|
* Returns a paginated list of namespaces matching the given criteria.
|
|
95
202
|
* Search namespaces
|
|
@@ -12,16 +12,23 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { AccountsNamesDTOFromJSON,
|
|
15
|
+
import { AccountsNamesDTOFromJSON, } from '../models/AccountsNamesDTO';
|
|
16
|
+
import { AddressesToJSON, } from '../models/Addresses';
|
|
17
|
+
import { MerkleStateInfoDTOFromJSON, } from '../models/MerkleStateInfoDTO';
|
|
18
|
+
import { MosaicIdsToJSON, } from '../models/MosaicIds';
|
|
19
|
+
import { MosaicsNamesDTOFromJSON, } from '../models/MosaicsNamesDTO';
|
|
20
|
+
import { NamespaceIdsToJSON, } from '../models/NamespaceIds';
|
|
21
|
+
import { NamespaceInfoDTOFromJSON, } from '../models/NamespaceInfoDTO';
|
|
22
|
+
import { NamespaceNameDTOFromJSON, } from '../models/NamespaceNameDTO';
|
|
23
|
+
import { NamespacePageFromJSON, } from '../models/NamespacePage';
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
*/
|
|
19
27
|
export class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
20
28
|
/**
|
|
21
|
-
*
|
|
22
|
-
* Get readable names for a set of accounts
|
|
29
|
+
* Creates request options for getAccountsNames without sending the request
|
|
23
30
|
*/
|
|
24
|
-
async
|
|
31
|
+
async getAccountsNamesRequestOpts(requestParameters) {
|
|
25
32
|
if (requestParameters['addresses'] == null) {
|
|
26
33
|
throw new runtime.RequiredError('addresses', 'Required parameter "addresses" was null or undefined when calling getAccountsNames().');
|
|
27
34
|
}
|
|
@@ -29,13 +36,21 @@ export class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
29
36
|
const headerParameters = {};
|
|
30
37
|
headerParameters['Content-Type'] = 'application/json';
|
|
31
38
|
let urlPath = `/namespaces/account/names`;
|
|
32
|
-
|
|
39
|
+
return {
|
|
33
40
|
path: urlPath,
|
|
34
41
|
method: 'POST',
|
|
35
42
|
headers: headerParameters,
|
|
36
43
|
query: queryParameters,
|
|
37
44
|
body: AddressesToJSON(requestParameters['addresses']),
|
|
38
|
-
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Resolves namespace names linked to account addresses. Submit an array of addresses in the request body. For each address, the response returns the namespace names currently linked to that account.
|
|
49
|
+
* Get readable names for a set of accounts
|
|
50
|
+
*/
|
|
51
|
+
async getAccountsNamesRaw(requestParameters, initOverrides) {
|
|
52
|
+
const requestOptions = await this.getAccountsNamesRequestOpts(requestParameters);
|
|
53
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
39
54
|
return new runtime.JSONApiResponse(response, (jsonValue) => AccountsNamesDTOFromJSON(jsonValue));
|
|
40
55
|
}
|
|
41
56
|
/**
|
|
@@ -47,10 +62,9 @@ export class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
47
62
|
return await response.value();
|
|
48
63
|
}
|
|
49
64
|
/**
|
|
50
|
-
*
|
|
51
|
-
* Get readable names for a set of mosaics
|
|
65
|
+
* Creates request options for getMosaicsNames without sending the request
|
|
52
66
|
*/
|
|
53
|
-
async
|
|
67
|
+
async getMosaicsNamesRequestOpts(requestParameters) {
|
|
54
68
|
if (requestParameters['mosaicIds'] == null) {
|
|
55
69
|
throw new runtime.RequiredError('mosaicIds', 'Required parameter "mosaicIds" was null or undefined when calling getMosaicsNames().');
|
|
56
70
|
}
|
|
@@ -58,13 +72,21 @@ export class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
58
72
|
const headerParameters = {};
|
|
59
73
|
headerParameters['Content-Type'] = 'application/json';
|
|
60
74
|
let urlPath = `/namespaces/mosaic/names`;
|
|
61
|
-
|
|
75
|
+
return {
|
|
62
76
|
path: urlPath,
|
|
63
77
|
method: 'POST',
|
|
64
78
|
headers: headerParameters,
|
|
65
79
|
query: queryParameters,
|
|
66
80
|
body: MosaicIdsToJSON(requestParameters['mosaicIds']),
|
|
67
|
-
}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Resolves namespace names linked to mosaic identifiers. Submit an array of mosaic identifiers in the request body. For each requested mosaic identifier, the response returns one entry in the same order as the request. Each entry contains the namespace names currently linked to that identifier. An empty `names` array means no namespace aliases were resolved for that identifier.
|
|
85
|
+
* Get readable names for a set of mosaics
|
|
86
|
+
*/
|
|
87
|
+
async getMosaicsNamesRaw(requestParameters, initOverrides) {
|
|
88
|
+
const requestOptions = await this.getMosaicsNamesRequestOpts(requestParameters);
|
|
89
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
68
90
|
return new runtime.JSONApiResponse(response, (jsonValue) => MosaicsNamesDTOFromJSON(jsonValue));
|
|
69
91
|
}
|
|
70
92
|
/**
|
|
@@ -76,23 +98,30 @@ export class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
76
98
|
return await response.value();
|
|
77
99
|
}
|
|
78
100
|
/**
|
|
79
|
-
*
|
|
80
|
-
* Get namespace information
|
|
101
|
+
* Creates request options for getNamespace without sending the request
|
|
81
102
|
*/
|
|
82
|
-
async
|
|
103
|
+
async getNamespaceRequestOpts(requestParameters) {
|
|
83
104
|
if (requestParameters['namespaceId'] == null) {
|
|
84
105
|
throw new runtime.RequiredError('namespaceId', 'Required parameter "namespaceId" was null or undefined when calling getNamespace().');
|
|
85
106
|
}
|
|
86
107
|
const queryParameters = {};
|
|
87
108
|
const headerParameters = {};
|
|
88
109
|
let urlPath = `/namespaces/{namespaceId}`;
|
|
89
|
-
urlPath = urlPath.replace(
|
|
90
|
-
|
|
110
|
+
urlPath = urlPath.replace('{namespaceId}', encodeURIComponent(String(requestParameters['namespaceId'])));
|
|
111
|
+
return {
|
|
91
112
|
path: urlPath,
|
|
92
113
|
method: 'GET',
|
|
93
114
|
headers: headerParameters,
|
|
94
115
|
query: queryParameters,
|
|
95
|
-
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Retrieves the current on-chain state for a namespace.
|
|
120
|
+
* Get namespace information
|
|
121
|
+
*/
|
|
122
|
+
async getNamespaceRaw(requestParameters, initOverrides) {
|
|
123
|
+
const requestOptions = await this.getNamespaceRequestOpts(requestParameters);
|
|
124
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
96
125
|
return new runtime.JSONApiResponse(response, (jsonValue) => NamespaceInfoDTOFromJSON(jsonValue));
|
|
97
126
|
}
|
|
98
127
|
/**
|
|
@@ -104,23 +133,30 @@ export class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
104
133
|
return await response.value();
|
|
105
134
|
}
|
|
106
135
|
/**
|
|
107
|
-
*
|
|
108
|
-
* Get namespace Merkle information
|
|
136
|
+
* Creates request options for getNamespaceMerkle without sending the request
|
|
109
137
|
*/
|
|
110
|
-
async
|
|
138
|
+
async getNamespaceMerkleRequestOpts(requestParameters) {
|
|
111
139
|
if (requestParameters['namespaceId'] == null) {
|
|
112
140
|
throw new runtime.RequiredError('namespaceId', 'Required parameter "namespaceId" was null or undefined when calling getNamespaceMerkle().');
|
|
113
141
|
}
|
|
114
142
|
const queryParameters = {};
|
|
115
143
|
const headerParameters = {};
|
|
116
144
|
let urlPath = `/namespaces/{namespaceId}/merkle`;
|
|
117
|
-
urlPath = urlPath.replace(
|
|
118
|
-
|
|
145
|
+
urlPath = urlPath.replace('{namespaceId}', encodeURIComponent(String(requestParameters['namespaceId'])));
|
|
146
|
+
return {
|
|
119
147
|
path: urlPath,
|
|
120
148
|
method: 'GET',
|
|
121
149
|
headers: headerParameters,
|
|
122
150
|
query: queryParameters,
|
|
123
|
-
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Returns the [Merkle proof](https://docs.symbol.dev/concepts/data-validation.html#merkle-proof) for a namespace. Clients can use this information to verify that the namespace state is included in the node\'s state Merkle tree. If the supplied namespace ID does not exist, the endpoint still returns a Merkle proof response, but it is a negative proof showing that no namespace state entry exists for the requested namespace ID. See [Data Validation](https://docs.symbol.dev/concepts/data-validation.html) for an overview of Patricia Merkle trees and state proofs on Symbol.
|
|
155
|
+
* Get namespace Merkle information
|
|
156
|
+
*/
|
|
157
|
+
async getNamespaceMerkleRaw(requestParameters, initOverrides) {
|
|
158
|
+
const requestOptions = await this.getNamespaceMerkleRequestOpts(requestParameters);
|
|
159
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
124
160
|
return new runtime.JSONApiResponse(response, (jsonValue) => MerkleStateInfoDTOFromJSON(jsonValue));
|
|
125
161
|
}
|
|
126
162
|
/**
|
|
@@ -132,10 +168,9 @@ export class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
132
168
|
return await response.value();
|
|
133
169
|
}
|
|
134
170
|
/**
|
|
135
|
-
*
|
|
136
|
-
* Get readable names for a set of namespaces
|
|
171
|
+
* Creates request options for getNamespacesNames without sending the request
|
|
137
172
|
*/
|
|
138
|
-
async
|
|
173
|
+
async getNamespacesNamesRequestOpts(requestParameters) {
|
|
139
174
|
if (requestParameters['namespaceIds'] == null) {
|
|
140
175
|
throw new runtime.RequiredError('namespaceIds', 'Required parameter "namespaceIds" was null or undefined when calling getNamespacesNames().');
|
|
141
176
|
}
|
|
@@ -143,13 +178,21 @@ export class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
143
178
|
const headerParameters = {};
|
|
144
179
|
headerParameters['Content-Type'] = 'application/json';
|
|
145
180
|
let urlPath = `/namespaces/names`;
|
|
146
|
-
|
|
181
|
+
return {
|
|
147
182
|
path: urlPath,
|
|
148
183
|
method: 'POST',
|
|
149
184
|
headers: headerParameters,
|
|
150
185
|
query: queryParameters,
|
|
151
186
|
body: NamespaceIdsToJSON(requestParameters['namespaceIds']),
|
|
152
|
-
}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Resolves human-readable namespace names for namespace identifiers. Submit an array of namespace identifiers in the request body. For each matching identifier, the response returns the namespace name. When a matching identifier is a subnamespace, the response will also include its parent namespace entry and parent namespace identifier. Identifiers that cannot be resolved are omitted from the response.
|
|
191
|
+
* Get readable names for a set of namespaces
|
|
192
|
+
*/
|
|
193
|
+
async getNamespacesNamesRaw(requestParameters, initOverrides) {
|
|
194
|
+
const requestOptions = await this.getNamespacesNamesRequestOpts(requestParameters);
|
|
195
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
153
196
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(NamespaceNameDTOFromJSON));
|
|
154
197
|
}
|
|
155
198
|
/**
|
|
@@ -161,10 +204,9 @@ export class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
161
204
|
return await response.value();
|
|
162
205
|
}
|
|
163
206
|
/**
|
|
164
|
-
*
|
|
165
|
-
* Search namespaces
|
|
207
|
+
* Creates request options for searchNamespaces without sending the request
|
|
166
208
|
*/
|
|
167
|
-
async
|
|
209
|
+
async searchNamespacesRequestOpts(requestParameters) {
|
|
168
210
|
const queryParameters = {};
|
|
169
211
|
if (requestParameters['ownerAddress'] != null) {
|
|
170
212
|
queryParameters['ownerAddress'] = requestParameters['ownerAddress'];
|
|
@@ -192,12 +234,20 @@ export class NamespaceRoutesApi extends runtime.BaseAPI {
|
|
|
192
234
|
}
|
|
193
235
|
const headerParameters = {};
|
|
194
236
|
let urlPath = `/namespaces`;
|
|
195
|
-
|
|
237
|
+
return {
|
|
196
238
|
path: urlPath,
|
|
197
239
|
method: 'GET',
|
|
198
240
|
headers: headerParameters,
|
|
199
241
|
query: queryParameters,
|
|
200
|
-
}
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Returns a paginated list of namespaces matching the given criteria.
|
|
246
|
+
* Search namespaces
|
|
247
|
+
*/
|
|
248
|
+
async searchNamespacesRaw(requestParameters, initOverrides) {
|
|
249
|
+
const requestOptions = await this.searchNamespacesRequestOpts(requestParameters);
|
|
250
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
201
251
|
return new runtime.JSONApiResponse(response, (jsonValue) => NamespacePageFromJSON(jsonValue));
|
|
202
252
|
}
|
|
203
253
|
/**
|
|
@@ -10,14 +10,25 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type NetworkConfigurationDTO } from '../models/NetworkConfigurationDTO';
|
|
14
|
+
import { type NetworkInflationDTO } from '../models/NetworkInflationDTO';
|
|
15
|
+
import { type NetworkTypeDTO } from '../models/NetworkTypeDTO';
|
|
16
|
+
import { type RentalFeesDTO } from '../models/RentalFeesDTO';
|
|
17
|
+
import { type TransactionFeesDTO } from '../models/TransactionFeesDTO';
|
|
14
18
|
export interface GetNetworkInflationAtHeightRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Filter by block height (include). Sequential block position in the chain; starts at 1 and increments by one.
|
|
21
|
+
*/
|
|
15
22
|
height: string;
|
|
16
23
|
}
|
|
17
24
|
/**
|
|
18
25
|
*
|
|
19
26
|
*/
|
|
20
27
|
export declare class NetworkRoutesApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Creates request options for getCirculatingCurrencySupply without sending the request
|
|
30
|
+
*/
|
|
31
|
+
getCirculatingCurrencySupplyRequestOpts(): Promise<runtime.RequestOpts>;
|
|
21
32
|
/**
|
|
22
33
|
* Returns the current circulating supply of the network currency mosaic. Circulating supply represents the portion of total on-chain supply that is not held in designated uncirculating or reserved accounts (e.g. nemesis or treasury accounts). Data sources: - Mosaic supply and divisibility from blockchain state - Nemesis signer public key from network properties file - Uncirculating account public keys defined in rest.json (`uncirculatingAccountPublicKeys`)
|
|
23
34
|
* Returns circulating currency supply
|
|
@@ -28,6 +39,10 @@ export declare class NetworkRoutesApi extends runtime.BaseAPI {
|
|
|
28
39
|
* Returns circulating currency supply
|
|
29
40
|
*/
|
|
30
41
|
getCirculatingCurrencySupply(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Creates request options for getMaxCurrencySupply without sending the request
|
|
44
|
+
*/
|
|
45
|
+
getMaxCurrencySupplyRequestOpts(): Promise<runtime.RequestOpts>;
|
|
31
46
|
/**
|
|
32
47
|
* Returns the maximum possible supply of the network currency mosaic. Data sources: - Maximum supply (`chain.maxMosaicAtomicUnits`) defined in the network properties file - Network currency divisibility from blockchain state This represents the protocol-level supply cap configured for the network currency.
|
|
33
48
|
* Returns max currency supply
|
|
@@ -38,6 +53,10 @@ export declare class NetworkRoutesApi extends runtime.BaseAPI {
|
|
|
38
53
|
* Returns max currency supply
|
|
39
54
|
*/
|
|
40
55
|
getMaxCurrencySupply(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Creates request options for getNetworkInflation without sending the request
|
|
58
|
+
*/
|
|
59
|
+
getNetworkInflationRequestOpts(): Promise<runtime.RequestOpts>;
|
|
41
60
|
/**
|
|
42
61
|
* Retrieves the network inflation table, where each entry specifies a starting block height and the reward amount applied from that height onward.
|
|
43
62
|
* Returns the inflation distribution schedule
|
|
@@ -48,6 +67,10 @@ export declare class NetworkRoutesApi extends runtime.BaseAPI {
|
|
|
48
67
|
* Returns the inflation distribution schedule
|
|
49
68
|
*/
|
|
50
69
|
getNetworkInflation(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<NetworkInflationDTO>>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for getNetworkInflationAtHeight without sending the request
|
|
72
|
+
*/
|
|
73
|
+
getNetworkInflationAtHeightRequestOpts(requestParameters: GetNetworkInflationAtHeightRequest): Promise<runtime.RequestOpts>;
|
|
51
74
|
/**
|
|
52
75
|
* Retrieves network inflation parameters at a given block height.
|
|
53
76
|
* Returns the inflation distribution data at a specific height
|
|
@@ -58,6 +81,10 @@ export declare class NetworkRoutesApi extends runtime.BaseAPI {
|
|
|
58
81
|
* Returns the inflation distribution data at a specific height
|
|
59
82
|
*/
|
|
60
83
|
getNetworkInflationAtHeight(requestParameters: GetNetworkInflationAtHeightRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NetworkInflationDTO>;
|
|
84
|
+
/**
|
|
85
|
+
* Creates request options for getNetworkProperties without sending the request
|
|
86
|
+
*/
|
|
87
|
+
getNetworkPropertiesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
61
88
|
/**
|
|
62
89
|
* Returns the content from a catapult-server network configuration file (e.g. `config-network.properties`). To enable this feature, the REST setting `apiNode.networkPropertyFilePath` in the config file (e.g. `rest.json`) must define where the file is located.
|
|
63
90
|
* Get the network properties
|
|
@@ -68,6 +95,10 @@ export declare class NetworkRoutesApi extends runtime.BaseAPI {
|
|
|
68
95
|
* Get the network properties
|
|
69
96
|
*/
|
|
70
97
|
getNetworkProperties(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NetworkConfigurationDTO>;
|
|
98
|
+
/**
|
|
99
|
+
* Creates request options for getNetworkType without sending the request
|
|
100
|
+
*/
|
|
101
|
+
getNetworkTypeRequestOpts(): Promise<runtime.RequestOpts>;
|
|
71
102
|
/**
|
|
72
103
|
* Returns the current network type.
|
|
73
104
|
* Get the current network type of the chain
|
|
@@ -78,6 +109,10 @@ export declare class NetworkRoutesApi extends runtime.BaseAPI {
|
|
|
78
109
|
* Get the current network type of the chain
|
|
79
110
|
*/
|
|
80
111
|
getNetworkType(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NetworkTypeDTO>;
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for getRentalFees without sending the request
|
|
114
|
+
*/
|
|
115
|
+
getRentalFeesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
81
116
|
/**
|
|
82
117
|
* Returns the estimated effective rental fees for namespaces and mosaics. This endpoint is only available if the REST instance has access to catapult-server `resources/config-network.properties` file. To activate this feature, add the setting `network.propertiesFilePath` in the configuration file (`rest/resources/rest.json`).
|
|
83
118
|
* Get rental fees information
|
|
@@ -88,6 +123,10 @@ export declare class NetworkRoutesApi extends runtime.BaseAPI {
|
|
|
88
123
|
* Get rental fees information
|
|
89
124
|
*/
|
|
90
125
|
getRentalFees(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RentalFeesDTO>;
|
|
126
|
+
/**
|
|
127
|
+
* Creates request options for getTotalCurrencySupply without sending the request
|
|
128
|
+
*/
|
|
129
|
+
getTotalCurrencySupplyRequestOpts(): Promise<runtime.RequestOpts>;
|
|
91
130
|
/**
|
|
92
131
|
* Returns the total current on-chain supply of the network currency mosaic. Data sources: - Mosaic supply and divisibility from blockchain state This value includes both circulating and uncirculating balances and represents the full issued supply currently recorded on-chain.
|
|
93
132
|
* Returns total currency supply
|
|
@@ -98,6 +137,10 @@ export declare class NetworkRoutesApi extends runtime.BaseAPI {
|
|
|
98
137
|
* Returns total currency supply
|
|
99
138
|
*/
|
|
100
139
|
getTotalCurrencySupply(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
140
|
+
/**
|
|
141
|
+
* Creates request options for getTransactionFees without sending the request
|
|
142
|
+
*/
|
|
143
|
+
getTransactionFeesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
101
144
|
/**
|
|
102
145
|
* Returns the average, median, highest, and lowest fee multiplier over the last `numBlocksTransactionFeeStats` blocks. The setting `numBlocksTransactionFeeStats` is adjustable in the REST configuration file (`rest.json`) per REST instance.
|
|
103
146
|
* Get transaction fees information
|