@nemtus/symbol-rest-api-client-fetch 1.0.1 → 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 +23 -7
|
@@ -21,11 +21,9 @@ import type { LinkActionEnum } from './LinkActionEnum';
|
|
|
21
21
|
*/
|
|
22
22
|
export interface VrfKeyLinkTransactionDTO {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
24
|
+
* Total size of the serialized entity in bytes. Includes the full binary payload,
|
|
25
|
+
* including the 4-byte size field itself.
|
|
26
26
|
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof VrfKeyLinkTransactionDTO
|
|
29
27
|
*/
|
|
30
28
|
size: number;
|
|
31
29
|
/**
|
|
@@ -33,77 +31,47 @@ export interface VrfKeyLinkTransactionDTO {
|
|
|
33
31
|
* over the serialized entity payload. Can be verified with the signer's public key (`signerPublicKey`).
|
|
34
32
|
* Used for blocks, transactions, and cosignatures.
|
|
35
33
|
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof VrfKeyLinkTransactionDTO
|
|
38
34
|
*/
|
|
39
35
|
signature: string;
|
|
40
36
|
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof VrfKeyLinkTransactionDTO
|
|
37
|
+
* Public key of the account that signed the entity (e.g. block harvester, transaction signer).
|
|
44
38
|
*/
|
|
45
39
|
signerPublicKey: string;
|
|
46
40
|
/**
|
|
47
41
|
* Entity version. Indicates the schema variant for serialization and validation.
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof VrfKeyLinkTransactionDTO
|
|
50
42
|
*/
|
|
51
43
|
version: number;
|
|
52
44
|
/**
|
|
53
45
|
* Network type (mainnet or testnet). Ensures the entity targets the correct network.
|
|
54
|
-
* @type {NetworkTypeEnum}
|
|
55
|
-
* @memberof VrfKeyLinkTransactionDTO
|
|
56
46
|
*/
|
|
57
47
|
network: NetworkTypeEnum;
|
|
58
48
|
/**
|
|
59
49
|
* Entity type identifier (e.g. transaction type code, block type). Determines the entity schema.
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof VrfKeyLinkTransactionDTO
|
|
62
50
|
*/
|
|
63
51
|
type: number;
|
|
64
52
|
/**
|
|
65
|
-
*
|
|
66
|
-
* For example, an amount of `123456789` for a mosaic with divisibility 6 represents
|
|
67
|
-
* `123.456789` whole units. Encoded as a string to preserve precision, since the value
|
|
68
|
-
* is an unsigned 64-bit integer.
|
|
69
|
-
*
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof VrfKeyLinkTransactionDTO
|
|
53
|
+
* Maximum fee the signer is willing to pay for this transaction, in smallest (atomic) units.
|
|
72
54
|
*/
|
|
73
55
|
maxFee: string;
|
|
74
56
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* **Finding the nemesis block time:** The `epochAdjustment` field returned by the
|
|
79
|
-
* [`/network/properties`] endpoint gives the nemesis block creation time in seconds since the
|
|
80
|
-
* [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). For Symbol MAINNET this is
|
|
81
|
-
* always `1615853185` (15 March 2021, 00:06:25 UTC).
|
|
82
|
-
*
|
|
83
|
-
* **Converting to real time:** Add this timestamp (ms) to `epochAdjustment × 1000` (ms), then use standard date functions.
|
|
84
|
-
* Note: `epochAdjustment` may be returned as a string like `"1615853185s"`; use the numeric part.
|
|
57
|
+
* Latest network time at which the transaction can still be included in a block, expressed in milliseconds
|
|
58
|
+
* since the creation of the nemesis (first) block.
|
|
85
59
|
*
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof VrfKeyLinkTransactionDTO
|
|
88
60
|
*/
|
|
89
61
|
deadline: string;
|
|
90
62
|
/**
|
|
91
63
|
* 256-bit public key encoded as a hexadecimal string (64 hex characters).
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof VrfKeyLinkTransactionDTO
|
|
94
64
|
*/
|
|
95
65
|
linkedPublicKey: string;
|
|
96
66
|
/**
|
|
97
67
|
*
|
|
98
|
-
* @type {LinkActionEnum}
|
|
99
|
-
* @memberof VrfKeyLinkTransactionDTO
|
|
100
68
|
*/
|
|
101
69
|
linkAction: LinkActionEnum;
|
|
102
70
|
}
|
|
103
71
|
/**
|
|
104
72
|
* Check if a given object implements the VrfKeyLinkTransactionDTO interface.
|
|
105
73
|
*/
|
|
106
|
-
export declare function instanceOfVrfKeyLinkTransactionDTO(value:
|
|
74
|
+
export declare function instanceOfVrfKeyLinkTransactionDTO(value: object): value is VrfKeyLinkTransactionDTO;
|
|
107
75
|
export declare function VrfKeyLinkTransactionDTOFromJSON(json: any): VrfKeyLinkTransactionDTO;
|
|
108
76
|
export declare function VrfKeyLinkTransactionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): VrfKeyLinkTransactionDTO;
|
|
109
77
|
export declare function VrfKeyLinkTransactionDTOToJSON(json: any): VrfKeyLinkTransactionDTO;
|
package/cjs/api/runtime.d.ts
CHANGED
|
@@ -124,9 +124,21 @@ export interface RequestOpts {
|
|
|
124
124
|
}
|
|
125
125
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
126
126
|
export declare function exists(json: any, key: string): boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Every generated date call site routes through these.
|
|
129
|
+
*
|
|
130
|
+
* `format: date` is a calendar date, with no time and no offset, so it is converted
|
|
131
|
+
* against the local calendar on both ends: they have to agree or the date shifts by
|
|
132
|
+
* a day. `format: date-time` is an instant and uses UTC.
|
|
133
|
+
*/
|
|
134
|
+
export declare function serializeDateTime(value: Date): string;
|
|
135
|
+
export declare function serializeDate(value: Date): string;
|
|
136
|
+
export declare function parseDate(value: Date | string): Date;
|
|
137
|
+
export declare function parseDateTime(value: any): Date;
|
|
127
138
|
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
139
|
[key: string]: any;
|
|
129
140
|
};
|
|
141
|
+
export declare function anyToJSON(value: any): any;
|
|
130
142
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
143
|
export interface Consume {
|
|
132
144
|
contentType: string;
|
|
@@ -172,11 +184,32 @@ export declare class VoidApiResponse {
|
|
|
172
184
|
constructor(raw: Response);
|
|
173
185
|
value(): Promise<void>;
|
|
174
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* A Blob carrying the file name the server advertised, empty when it did not send one. It is a File
|
|
189
|
+
* wherever one can be built, and the bare Blob given a name otherwise. Same name and shape as the
|
|
190
|
+
* `typescript` generator's browser HttpFile.
|
|
191
|
+
*/
|
|
192
|
+
export type HttpFile = Blob & {
|
|
193
|
+
readonly name: string;
|
|
194
|
+
};
|
|
175
195
|
export declare class BlobApiResponse {
|
|
176
196
|
raw: Response;
|
|
177
197
|
constructor(raw: Response);
|
|
178
|
-
|
|
198
|
+
/**
|
|
199
|
+
* The body named after the Content-Disposition header, so that a download keeps the name the
|
|
200
|
+
* server gave it. A File is built from a native Blob; the Blob itself is named where there is no
|
|
201
|
+
* global File (Node.js before 20), where File cannot be constructed, or where the Blob is not the
|
|
202
|
+
* native one, as returned by an injected fetch implementation such as node-fetch, which a File
|
|
203
|
+
* would stringify instead of wrapping.
|
|
204
|
+
*/
|
|
205
|
+
value(): Promise<HttpFile>;
|
|
179
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* The file name advertised by a Content-Disposition header (RFC 6266): the RFC 5987 encoded
|
|
209
|
+
* `filename*` parameter first, falling back to the plain `filename` when it is malformed, not UTF-8
|
|
210
|
+
* or has no usable name. Any directory part is dropped; undefined when no usable name is advertised.
|
|
211
|
+
*/
|
|
212
|
+
export declare function parseContentDispositionFilename(headers: Headers): string | undefined;
|
|
180
213
|
export declare class TextApiResponse {
|
|
181
214
|
raw: Response;
|
|
182
215
|
constructor(raw: Response);
|
package/cjs/api/runtime.js
CHANGED
|
@@ -25,8 +25,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
26
26
|
exports.querystring = querystring;
|
|
27
27
|
exports.exists = exists;
|
|
28
|
+
exports.serializeDateTime = serializeDateTime;
|
|
29
|
+
exports.serializeDate = serializeDate;
|
|
30
|
+
exports.parseDate = parseDate;
|
|
31
|
+
exports.parseDateTime = parseDateTime;
|
|
28
32
|
exports.mapValues = mapValues;
|
|
33
|
+
exports.anyToJSON = anyToJSON;
|
|
29
34
|
exports.canConsumeForm = canConsumeForm;
|
|
35
|
+
exports.parseContentDispositionFilename = parseContentDispositionFilename;
|
|
30
36
|
exports.BASE_PATH = "https://reference.symboltest.net:3001".replace(/\/+$/, "");
|
|
31
37
|
class Configuration {
|
|
32
38
|
constructor(configuration = {}) {
|
|
@@ -219,7 +225,7 @@ class BaseAPI {
|
|
|
219
225
|
}
|
|
220
226
|
}
|
|
221
227
|
exports.BaseAPI = BaseAPI;
|
|
222
|
-
BaseAPI.jsonRegex =
|
|
228
|
+
BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
223
229
|
;
|
|
224
230
|
function isBlob(value) {
|
|
225
231
|
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
@@ -232,6 +238,11 @@ class ResponseError extends Error {
|
|
|
232
238
|
super(msg);
|
|
233
239
|
this.response = response;
|
|
234
240
|
this.name = "ResponseError";
|
|
241
|
+
// restore prototype chain
|
|
242
|
+
const actualProto = new.target.prototype;
|
|
243
|
+
if (Object.setPrototypeOf) {
|
|
244
|
+
Object.setPrototypeOf(this, actualProto);
|
|
245
|
+
}
|
|
235
246
|
}
|
|
236
247
|
}
|
|
237
248
|
exports.ResponseError = ResponseError;
|
|
@@ -240,6 +251,11 @@ class FetchError extends Error {
|
|
|
240
251
|
super(msg);
|
|
241
252
|
this.cause = cause;
|
|
242
253
|
this.name = "FetchError";
|
|
254
|
+
// restore prototype chain
|
|
255
|
+
const actualProto = new.target.prototype;
|
|
256
|
+
if (Object.setPrototypeOf) {
|
|
257
|
+
Object.setPrototypeOf(this, actualProto);
|
|
258
|
+
}
|
|
243
259
|
}
|
|
244
260
|
}
|
|
245
261
|
exports.FetchError = FetchError;
|
|
@@ -248,6 +264,11 @@ class RequiredError extends Error {
|
|
|
248
264
|
super(msg);
|
|
249
265
|
this.field = field;
|
|
250
266
|
this.name = "RequiredError";
|
|
267
|
+
// restore prototype chain
|
|
268
|
+
const actualProto = new.target.prototype;
|
|
269
|
+
if (Object.setPrototypeOf) {
|
|
270
|
+
Object.setPrototypeOf(this, actualProto);
|
|
271
|
+
}
|
|
251
272
|
}
|
|
252
273
|
}
|
|
253
274
|
exports.RequiredError = RequiredError;
|
|
@@ -275,7 +296,7 @@ function querystringSingleKey(key, value, keyPrefix = '') {
|
|
|
275
296
|
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
276
297
|
}
|
|
277
298
|
if (value instanceof Date) {
|
|
278
|
-
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value
|
|
299
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(serializeDateTime(value))}`;
|
|
279
300
|
}
|
|
280
301
|
if (value instanceof Object) {
|
|
281
302
|
return querystring(value, fullKey);
|
|
@@ -286,6 +307,52 @@ function exists(json, key) {
|
|
|
286
307
|
const value = json[key];
|
|
287
308
|
return value !== null && value !== undefined;
|
|
288
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Every generated date call site routes through these.
|
|
312
|
+
*
|
|
313
|
+
* `format: date` is a calendar date, with no time and no offset, so it is converted
|
|
314
|
+
* against the local calendar on both ends: they have to agree or the date shifts by
|
|
315
|
+
* a day. `format: date-time` is an instant and uses UTC.
|
|
316
|
+
*/
|
|
317
|
+
function serializeDateTime(value) {
|
|
318
|
+
return value.toISOString();
|
|
319
|
+
}
|
|
320
|
+
function serializeDate(value) {
|
|
321
|
+
if (isNaN(value.getTime())) {
|
|
322
|
+
throw new RangeError('Invalid time value');
|
|
323
|
+
}
|
|
324
|
+
const year = ('000' + value.getFullYear()).slice(-4);
|
|
325
|
+
const month = ('0' + (value.getMonth() + 1)).slice(-2);
|
|
326
|
+
const day = ('0' + value.getDate()).slice(-2);
|
|
327
|
+
return `${year}-${month}-${day}`;
|
|
328
|
+
}
|
|
329
|
+
function parseDate(value) {
|
|
330
|
+
if (value instanceof Date) {
|
|
331
|
+
return value;
|
|
332
|
+
}
|
|
333
|
+
// `new Date("2026-08-05")` would parse as UTC midnight: a different day west of UTC.
|
|
334
|
+
// Local midnight is the stated day everywhere. setFullYear avoids the 1900 offset the
|
|
335
|
+
// multi-argument constructor applies to years 0-99.
|
|
336
|
+
const fullDate = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value));
|
|
337
|
+
if (fullDate) {
|
|
338
|
+
const year = Number(fullDate[1]);
|
|
339
|
+
const month = Number(fullDate[2]) - 1;
|
|
340
|
+
const day = Number(fullDate[3]);
|
|
341
|
+
const date = new Date(0);
|
|
342
|
+
date.setFullYear(year, month, day);
|
|
343
|
+
date.setHours(0, 0, 0, 0);
|
|
344
|
+
// Out-of-range components (or a day the local zone skipped) silently roll over,
|
|
345
|
+
// which would hand back a date the server never sent.
|
|
346
|
+
if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
|
|
347
|
+
return new Date(NaN);
|
|
348
|
+
}
|
|
349
|
+
return date;
|
|
350
|
+
}
|
|
351
|
+
return new Date(value);
|
|
352
|
+
}
|
|
353
|
+
function parseDateTime(value) {
|
|
354
|
+
return new Date(value);
|
|
355
|
+
}
|
|
289
356
|
function mapValues(data, fn) {
|
|
290
357
|
const result = {};
|
|
291
358
|
for (const key of Object.keys(data)) {
|
|
@@ -293,9 +360,14 @@ function mapValues(data, fn) {
|
|
|
293
360
|
}
|
|
294
361
|
return result;
|
|
295
362
|
}
|
|
363
|
+
// Pass-through serializer for `any`-typed properties in form data. See #1877.
|
|
364
|
+
function anyToJSON(value) {
|
|
365
|
+
return value;
|
|
366
|
+
}
|
|
296
367
|
function canConsumeForm(consumes) {
|
|
368
|
+
var _a;
|
|
297
369
|
for (const consume of consumes) {
|
|
298
|
-
if ('multipart/form-data'
|
|
370
|
+
if (((_a = consume.contentType) === null || _a === void 0 ? void 0 : _a.startsWith('multipart/form-data')) == true) {
|
|
299
371
|
return true;
|
|
300
372
|
}
|
|
301
373
|
}
|
|
@@ -328,14 +400,74 @@ class BlobApiResponse {
|
|
|
328
400
|
constructor(raw) {
|
|
329
401
|
this.raw = raw;
|
|
330
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* The body named after the Content-Disposition header, so that a download keeps the name the
|
|
405
|
+
* server gave it. A File is built from a native Blob; the Blob itself is named where there is no
|
|
406
|
+
* global File (Node.js before 20), where File cannot be constructed, or where the Blob is not the
|
|
407
|
+
* native one, as returned by an injected fetch implementation such as node-fetch, which a File
|
|
408
|
+
* would stringify instead of wrapping.
|
|
409
|
+
*/
|
|
331
410
|
value() {
|
|
332
411
|
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
-
|
|
412
|
+
var _a;
|
|
413
|
+
const blob = yield this.raw.blob();
|
|
414
|
+
const name = (_a = parseContentDispositionFilename(this.raw.headers)) !== null && _a !== void 0 ? _a : '';
|
|
415
|
+
if (typeof File !== 'undefined' && blob instanceof Blob) {
|
|
416
|
+
try {
|
|
417
|
+
return new File([blob], name, { type: blob.type });
|
|
418
|
+
}
|
|
419
|
+
catch (_b) {
|
|
420
|
+
// File cannot be constructed: name the Blob itself
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
return Object.assign(blob, { name });
|
|
334
424
|
});
|
|
335
425
|
}
|
|
336
426
|
;
|
|
337
427
|
}
|
|
338
428
|
exports.BlobApiResponse = BlobApiResponse;
|
|
429
|
+
/**
|
|
430
|
+
* The file name advertised by a Content-Disposition header (RFC 6266): the RFC 5987 encoded
|
|
431
|
+
* `filename*` parameter first, falling back to the plain `filename` when it is malformed, not UTF-8
|
|
432
|
+
* or has no usable name. Any directory part is dropped; undefined when no usable name is advertised.
|
|
433
|
+
*/
|
|
434
|
+
function parseContentDispositionFilename(headers) {
|
|
435
|
+
var _a, _b;
|
|
436
|
+
const params = parseHeaderParameters((_a = headers.get('Content-Disposition')) !== null && _a !== void 0 ? _a : '');
|
|
437
|
+
return (_b = basename(decodeExtValue(params.get('filename*')))) !== null && _b !== void 0 ? _b : basename(params.get('filename'));
|
|
438
|
+
}
|
|
439
|
+
/** The decoded RFC 5987 ext-value, or undefined when it is not UTF-8 or its percent-encoding is malformed. */
|
|
440
|
+
function decodeExtValue(value) {
|
|
441
|
+
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
442
|
+
try {
|
|
443
|
+
return match ? decodeURIComponent(match[1]) : undefined;
|
|
444
|
+
}
|
|
445
|
+
catch (_a) {
|
|
446
|
+
return undefined;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* The `name=value` parameters of a header value, consumed one at a time so that a quoted-string is
|
|
451
|
+
* taken whole, `;` included. Names are lower-cased, quoted-string values are unquoted with their
|
|
452
|
+
* backslash escapes resolved, and the first occurrence of a name wins.
|
|
453
|
+
*/
|
|
454
|
+
function parseHeaderParameters(value) {
|
|
455
|
+
const params = new Map();
|
|
456
|
+
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
457
|
+
let match;
|
|
458
|
+
while ((match = parameter.exec(value)) !== null) {
|
|
459
|
+
const name = match[1].toLowerCase();
|
|
460
|
+
if (!params.has(name)) {
|
|
461
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
return params;
|
|
465
|
+
}
|
|
466
|
+
/** The last `/` or `\` separated segment of a file name, or undefined when it is not a file name. */
|
|
467
|
+
function basename(name) {
|
|
468
|
+
const base = name === null || name === void 0 ? void 0 : name.split(/[\\/]/).pop();
|
|
469
|
+
return !base || base === '.' || base === '..' ? undefined : base;
|
|
470
|
+
}
|
|
339
471
|
class TextApiResponse {
|
|
340
472
|
constructor(raw) {
|
|
341
473
|
this.raw = raw;
|
|
@@ -10,29 +10,110 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type AccountIds } from '../models/AccountIds';
|
|
14
|
+
import { type AccountInfoDTO } from '../models/AccountInfoDTO';
|
|
15
|
+
import { type AccountOrderByEnum } from '../models/AccountOrderByEnum';
|
|
16
|
+
import { type AccountPage } from '../models/AccountPage';
|
|
17
|
+
import { type MerkleStateInfoDTO } from '../models/MerkleStateInfoDTO';
|
|
18
|
+
import { type Order } from '../models/Order';
|
|
14
19
|
export interface GetAccountInfoRequest {
|
|
20
|
+
/**
|
|
21
|
+
* Account public key as 64 hexadecimal characters, or account address as 39 Base32
|
|
22
|
+
* (network prefix `T` for testnet, `N` for mainnet).
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
15
25
|
accountId: string;
|
|
16
26
|
}
|
|
17
27
|
export interface GetAccountInfoMerkleRequest {
|
|
28
|
+
/**
|
|
29
|
+
* Account public key as 64 hexadecimal characters, or account address as 39 Base32
|
|
30
|
+
* (network prefix `T` for testnet, `N` for mainnet).
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
18
33
|
accountId: string;
|
|
19
34
|
}
|
|
20
35
|
export interface GetAccountsInfoRequest {
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
21
39
|
accountIds?: AccountIds;
|
|
22
40
|
}
|
|
23
41
|
export interface SearchAccountsRequest {
|
|
42
|
+
/**
|
|
43
|
+
* Filter by address (include), in Base32 format.
|
|
44
|
+
*
|
|
45
|
+
* The exact meaning depends on the endpoint:
|
|
46
|
+
* - transaction search: returns transactions where the address appears as the sender, recipient, or cosigner
|
|
47
|
+
* - account search: matches the account address
|
|
48
|
+
* - account restriction search: matches the restricted account address
|
|
49
|
+
* - hash lock and secret lock search: matches the lock owner address
|
|
50
|
+
*
|
|
51
|
+
* On transaction search endpoints, this filter cannot be combined with `recipientAddress` and
|
|
52
|
+
* `signerPublicKey`.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
24
55
|
address?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Select the number of entries to return per page.
|
|
58
|
+
* Values outside the allowed range are clamped to the schema minimum or maximum.
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
25
61
|
pageSize?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Page number for numbered pagination (1-based).
|
|
64
|
+
*
|
|
65
|
+
* Numbered and cursor pagination can be combined, but this is not recommended because the semantics
|
|
66
|
+
* are harder to reason about. For cursor-style flows, keep `pageNumber=1` and advance pages by
|
|
67
|
+
* updating only `offset`. For numbered pagination flows, omit `offset` and advance pages by
|
|
68
|
+
* incrementing `pageNumber`.
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
26
71
|
pageNumber?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Cursor for pagination. Provide the value of the sort field (`orderBy`) from the
|
|
74
|
+
* last entry of the previous page. **The offset type must match `orderBy`:**
|
|
75
|
+
* - `orderBy=id`: use the entry's `id` (ObjectId, 24-char hex).
|
|
76
|
+
* - `orderBy=height`: use the block height (string, e.g. `"17592"`).
|
|
77
|
+
* - `orderBy=balance`: use the mosaic balance amount (string, e.g. `"1000000"`).
|
|
78
|
+
*
|
|
79
|
+
* Allowed `orderBy` values depend on the endpoint. If `orderBy` is omitted, `id` is used by default.
|
|
80
|
+
*
|
|
81
|
+
* Set `offset` to the sort-field value of the last entry from the previous page. Across pages,
|
|
82
|
+
* this value decreases with `order=desc` and increases with `order=asc`.
|
|
83
|
+
*
|
|
84
|
+
* Numbered and cursor pagination can be combined, but this is not recommended because the semantics
|
|
85
|
+
* are harder to reason about. For cursor-style flows, keep `pageNumber=1` and advance pages by
|
|
86
|
+
* updating only `offset`. For numbered pagination flows, omit `offset` and advance pages by
|
|
87
|
+
* incrementing `pageNumber`.
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
27
90
|
offset?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Sort responses in ascending or descending order based on the collection property set on the param `orderBy`.
|
|
93
|
+
* If the request does not specify `orderBy`, REST returns the collection ordered by id.
|
|
94
|
+
* The default sort direction depends on the endpoint implementation.
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
28
97
|
order?: Order;
|
|
98
|
+
/**
|
|
99
|
+
* Sort responses by the property set.
|
|
100
|
+
* If `balance` option is selected, the request must define the `mosaicId` filter.
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
29
103
|
orderBy?: AccountOrderByEnum;
|
|
104
|
+
/**
|
|
105
|
+
* Filter by mosaic identifier (include).
|
|
106
|
+
*/
|
|
30
107
|
mosaicId?: string;
|
|
31
108
|
}
|
|
32
109
|
/**
|
|
33
110
|
*
|
|
34
111
|
*/
|
|
35
112
|
export declare class AccountRoutesApi extends runtime.BaseAPI {
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for getAccountInfo without sending the request
|
|
115
|
+
*/
|
|
116
|
+
getAccountInfoRequestOpts(requestParameters: GetAccountInfoRequest): Promise<runtime.RequestOpts>;
|
|
36
117
|
/**
|
|
37
118
|
* Retrieves account data for a given account identifier. The response contains the account state including balance, importance, public key, linked keys, and activity buckets. The `accountId` path parameter accepts either a public key or a Base32-encoded address.
|
|
38
119
|
* Get account information
|
|
@@ -43,6 +124,10 @@ export declare class AccountRoutesApi extends runtime.BaseAPI {
|
|
|
43
124
|
* Get account information
|
|
44
125
|
*/
|
|
45
126
|
getAccountInfo(requestParameters: GetAccountInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountInfoDTO>;
|
|
127
|
+
/**
|
|
128
|
+
* Creates request options for getAccountInfoMerkle without sending the request
|
|
129
|
+
*/
|
|
130
|
+
getAccountInfoMerkleRequestOpts(requestParameters: GetAccountInfoMerkleRequest): Promise<runtime.RequestOpts>;
|
|
46
131
|
/**
|
|
47
132
|
* Retrieves the Merkle proof data for a given account. The Merkle path can be used to independently verify that the account state is included in the block state hash. If no account state entry exists for the supplied account ID, the endpoint still returns a Merkle proof response, but it is a negative proof showing that no account state entry exists for the requested account. The `accountId` path parameter accepts either a public key or a Base32-encoded address.
|
|
48
133
|
* Get account Merkle information
|
|
@@ -53,6 +138,10 @@ export declare class AccountRoutesApi extends runtime.BaseAPI {
|
|
|
53
138
|
* Get account Merkle information
|
|
54
139
|
*/
|
|
55
140
|
getAccountInfoMerkle(requestParameters: GetAccountInfoMerkleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MerkleStateInfoDTO>;
|
|
141
|
+
/**
|
|
142
|
+
* Creates request options for getAccountsInfo without sending the request
|
|
143
|
+
*/
|
|
144
|
+
getAccountsInfoRequestOpts(requestParameters: GetAccountsInfoRequest): Promise<runtime.RequestOpts>;
|
|
56
145
|
/**
|
|
57
146
|
* Retrieves account data for multiple accounts in a single request. This is the batch equivalent of the single-account endpoint. The request body accepts either an array of public keys or an array of addresses (not both). If both `publicKeys` and `addresses` are provided, the request is invalid and the server returns `409` error.
|
|
58
147
|
* Get accounts information
|
|
@@ -63,6 +152,10 @@ export declare class AccountRoutesApi extends runtime.BaseAPI {
|
|
|
63
152
|
* Get accounts information
|
|
64
153
|
*/
|
|
65
154
|
getAccountsInfo(requestParameters?: GetAccountsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountInfoDTO>>;
|
|
155
|
+
/**
|
|
156
|
+
* Creates request options for searchAccounts without sending the request
|
|
157
|
+
*/
|
|
158
|
+
searchAccountsRequestOpts(requestParameters: SearchAccountsRequest): Promise<runtime.RequestOpts>;
|
|
66
159
|
/**
|
|
67
160
|
* Returns a paginated list of accounts matching the given criteria. Results can be filtered by `address` and `mosaicId` (mosaic ownership), and ordered by `id` or `balance`. Standard pagination parameters (`pageSize`, `pageNumber`, `offset`, `order`) apply. The `orderBy` parameter supports `id` and `balance`; when using `orderBy=balance`, the `mosaicId` filter is required. The `offset` value must match the `orderBy` field.
|
|
68
161
|
* Search accounts
|
|
@@ -12,29 +12,39 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { AccountIdsToJSON,
|
|
15
|
+
import { AccountIdsToJSON, } from '../models/AccountIds';
|
|
16
|
+
import { AccountInfoDTOFromJSON, } from '../models/AccountInfoDTO';
|
|
17
|
+
import { AccountPageFromJSON, } from '../models/AccountPage';
|
|
18
|
+
import { MerkleStateInfoDTOFromJSON, } from '../models/MerkleStateInfoDTO';
|
|
16
19
|
/**
|
|
17
20
|
*
|
|
18
21
|
*/
|
|
19
22
|
export class AccountRoutesApi extends runtime.BaseAPI {
|
|
20
23
|
/**
|
|
21
|
-
*
|
|
22
|
-
* Get account information
|
|
24
|
+
* Creates request options for getAccountInfo without sending the request
|
|
23
25
|
*/
|
|
24
|
-
async
|
|
26
|
+
async getAccountInfoRequestOpts(requestParameters) {
|
|
25
27
|
if (requestParameters['accountId'] == null) {
|
|
26
28
|
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountInfo().');
|
|
27
29
|
}
|
|
28
30
|
const queryParameters = {};
|
|
29
31
|
const headerParameters = {};
|
|
30
32
|
let urlPath = `/accounts/{accountId}`;
|
|
31
|
-
urlPath = urlPath.replace(
|
|
32
|
-
|
|
33
|
+
urlPath = urlPath.replace('{accountId}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
34
|
+
return {
|
|
33
35
|
path: urlPath,
|
|
34
36
|
method: 'GET',
|
|
35
37
|
headers: headerParameters,
|
|
36
38
|
query: queryParameters,
|
|
37
|
-
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves account data for a given account identifier. The response contains the account state including balance, importance, public key, linked keys, and activity buckets. The `accountId` path parameter accepts either a public key or a Base32-encoded address.
|
|
43
|
+
* Get account information
|
|
44
|
+
*/
|
|
45
|
+
async getAccountInfoRaw(requestParameters, initOverrides) {
|
|
46
|
+
const requestOptions = await this.getAccountInfoRequestOpts(requestParameters);
|
|
47
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
38
48
|
return new runtime.JSONApiResponse(response, (jsonValue) => AccountInfoDTOFromJSON(jsonValue));
|
|
39
49
|
}
|
|
40
50
|
/**
|
|
@@ -46,23 +56,30 @@ export class AccountRoutesApi extends runtime.BaseAPI {
|
|
|
46
56
|
return await response.value();
|
|
47
57
|
}
|
|
48
58
|
/**
|
|
49
|
-
*
|
|
50
|
-
* Get account Merkle information
|
|
59
|
+
* Creates request options for getAccountInfoMerkle without sending the request
|
|
51
60
|
*/
|
|
52
|
-
async
|
|
61
|
+
async getAccountInfoMerkleRequestOpts(requestParameters) {
|
|
53
62
|
if (requestParameters['accountId'] == null) {
|
|
54
63
|
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountInfoMerkle().');
|
|
55
64
|
}
|
|
56
65
|
const queryParameters = {};
|
|
57
66
|
const headerParameters = {};
|
|
58
67
|
let urlPath = `/accounts/{accountId}/merkle`;
|
|
59
|
-
urlPath = urlPath.replace(
|
|
60
|
-
|
|
68
|
+
urlPath = urlPath.replace('{accountId}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
69
|
+
return {
|
|
61
70
|
path: urlPath,
|
|
62
71
|
method: 'GET',
|
|
63
72
|
headers: headerParameters,
|
|
64
73
|
query: queryParameters,
|
|
65
|
-
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Retrieves the Merkle proof data for a given account. The Merkle path can be used to independently verify that the account state is included in the block state hash. If no account state entry exists for the supplied account ID, the endpoint still returns a Merkle proof response, but it is a negative proof showing that no account state entry exists for the requested account. The `accountId` path parameter accepts either a public key or a Base32-encoded address.
|
|
78
|
+
* Get account Merkle information
|
|
79
|
+
*/
|
|
80
|
+
async getAccountInfoMerkleRaw(requestParameters, initOverrides) {
|
|
81
|
+
const requestOptions = await this.getAccountInfoMerkleRequestOpts(requestParameters);
|
|
82
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
66
83
|
return new runtime.JSONApiResponse(response, (jsonValue) => MerkleStateInfoDTOFromJSON(jsonValue));
|
|
67
84
|
}
|
|
68
85
|
/**
|
|
@@ -74,21 +91,28 @@ export class AccountRoutesApi extends runtime.BaseAPI {
|
|
|
74
91
|
return await response.value();
|
|
75
92
|
}
|
|
76
93
|
/**
|
|
77
|
-
*
|
|
78
|
-
* Get accounts information
|
|
94
|
+
* Creates request options for getAccountsInfo without sending the request
|
|
79
95
|
*/
|
|
80
|
-
async
|
|
96
|
+
async getAccountsInfoRequestOpts(requestParameters) {
|
|
81
97
|
const queryParameters = {};
|
|
82
98
|
const headerParameters = {};
|
|
83
99
|
headerParameters['Content-Type'] = 'application/json';
|
|
84
100
|
let urlPath = `/accounts`;
|
|
85
|
-
|
|
101
|
+
return {
|
|
86
102
|
path: urlPath,
|
|
87
103
|
method: 'POST',
|
|
88
104
|
headers: headerParameters,
|
|
89
105
|
query: queryParameters,
|
|
90
106
|
body: AccountIdsToJSON(requestParameters['accountIds']),
|
|
91
|
-
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Retrieves account data for multiple accounts in a single request. This is the batch equivalent of the single-account endpoint. The request body accepts either an array of public keys or an array of addresses (not both). If both `publicKeys` and `addresses` are provided, the request is invalid and the server returns `409` error.
|
|
111
|
+
* Get accounts information
|
|
112
|
+
*/
|
|
113
|
+
async getAccountsInfoRaw(requestParameters, initOverrides) {
|
|
114
|
+
const requestOptions = await this.getAccountsInfoRequestOpts(requestParameters);
|
|
115
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
92
116
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountInfoDTOFromJSON));
|
|
93
117
|
}
|
|
94
118
|
/**
|
|
@@ -100,10 +124,9 @@ export class AccountRoutesApi extends runtime.BaseAPI {
|
|
|
100
124
|
return await response.value();
|
|
101
125
|
}
|
|
102
126
|
/**
|
|
103
|
-
*
|
|
104
|
-
* Search accounts
|
|
127
|
+
* Creates request options for searchAccounts without sending the request
|
|
105
128
|
*/
|
|
106
|
-
async
|
|
129
|
+
async searchAccountsRequestOpts(requestParameters) {
|
|
107
130
|
const queryParameters = {};
|
|
108
131
|
if (requestParameters['address'] != null) {
|
|
109
132
|
queryParameters['address'] = requestParameters['address'];
|
|
@@ -128,12 +151,20 @@ export class AccountRoutesApi extends runtime.BaseAPI {
|
|
|
128
151
|
}
|
|
129
152
|
const headerParameters = {};
|
|
130
153
|
let urlPath = `/accounts`;
|
|
131
|
-
|
|
154
|
+
return {
|
|
132
155
|
path: urlPath,
|
|
133
156
|
method: 'GET',
|
|
134
157
|
headers: headerParameters,
|
|
135
158
|
query: queryParameters,
|
|
136
|
-
}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Returns a paginated list of accounts matching the given criteria. Results can be filtered by `address` and `mosaicId` (mosaic ownership), and ordered by `id` or `balance`. Standard pagination parameters (`pageSize`, `pageNumber`, `offset`, `order`) apply. The `orderBy` parameter supports `id` and `balance`; when using `orderBy=balance`, the `mosaicId` filter is required. The `offset` value must match the `orderBy` field.
|
|
163
|
+
* Search accounts
|
|
164
|
+
*/
|
|
165
|
+
async searchAccountsRaw(requestParameters, initOverrides) {
|
|
166
|
+
const requestOptions = await this.searchAccountsRequestOpts(requestParameters);
|
|
167
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
137
168
|
return new runtime.JSONApiResponse(response, (jsonValue) => AccountPageFromJSON(jsonValue));
|
|
138
169
|
}
|
|
139
170
|
/**
|