@brightchain/brightchain-lib 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/brightchain-lib/BROWSER_COMPAT.md +54 -0
- package/package.json +15 -4
- package/src/browser.d.ts +1 -1
- package/src/browser.d.ts.map +1 -1
- package/src/browser.js +3 -3
- package/src/browser.js.map +1 -1
- package/src/lib/blocks/cblBase.d.ts +16 -1
- package/src/lib/blocks/cblBase.d.ts.map +1 -1
- package/src/lib/blocks/cblBase.js +33 -4
- package/src/lib/blocks/cblBase.js.map +1 -1
- package/src/lib/blocks/encryptedBlockFactory.d.ts +6 -1
- package/src/lib/blocks/encryptedBlockFactory.d.ts.map +1 -1
- package/src/lib/blocks/encryptedBlockFactory.js +14 -5
- package/src/lib/blocks/encryptedBlockFactory.js.map +1 -1
- package/src/lib/blocks/extendedCbl.d.ts.map +1 -1
- package/src/lib/blocks/extendedCbl.js +2 -1
- package/src/lib/blocks/extendedCbl.js.map +1 -1
- package/src/lib/blocks/handle.d.ts +5 -0
- package/src/lib/blocks/handle.d.ts.map +1 -1
- package/src/lib/blocks/handle.js.map +1 -1
- package/src/lib/blocks/handleTuple.d.ts +9 -1
- package/src/lib/blocks/handleTuple.d.ts.map +1 -1
- package/src/lib/blocks/handleTuple.js +23 -1
- package/src/lib/blocks/handleTuple.js.map +1 -1
- package/src/lib/blocks/index.d.ts +1 -0
- package/src/lib/blocks/index.d.ts.map +1 -1
- package/src/lib/blocks/index.js +1 -0
- package/src/lib/blocks/index.js.map +1 -1
- package/src/lib/blocks/memoryTuple.d.ts +9 -2
- package/src/lib/blocks/memoryTuple.d.ts.map +1 -1
- package/src/lib/blocks/memoryTuple.js +12 -3
- package/src/lib/blocks/memoryTuple.js.map +1 -1
- package/src/lib/blocks/vcbl.d.ts +27 -0
- package/src/lib/blocks/vcbl.d.ts.map +1 -0
- package/src/lib/blocks/vcbl.js +107 -0
- package/src/lib/blocks/vcbl.js.map +1 -0
- package/src/lib/constants.d.ts +5 -1
- package/src/lib/constants.d.ts.map +1 -1
- package/src/lib/constants.js +4 -0
- package/src/lib/constants.js.map +1 -1
- package/src/lib/crypto/index.d.ts +12 -0
- package/src/lib/crypto/index.d.ts.map +1 -0
- package/src/lib/crypto/index.js +23 -0
- package/src/lib/crypto/index.js.map +1 -0
- package/src/lib/crypto/platformCrypto.d.ts +132 -0
- package/src/lib/crypto/platformCrypto.d.ts.map +1 -0
- package/src/lib/crypto/platformCrypto.js +181 -0
- package/src/lib/crypto/platformCrypto.js.map +1 -0
- package/src/lib/enumeration-translations/blockType.d.ts.map +1 -1
- package/src/lib/enumeration-translations/blockType.js +16 -0
- package/src/lib/enumeration-translations/blockType.js.map +1 -1
- package/src/lib/enumerations/blockType.d.ts +12 -0
- package/src/lib/enumerations/blockType.d.ts.map +1 -1
- package/src/lib/enumerations/blockType.js +14 -0
- package/src/lib/enumerations/blockType.js.map +1 -1
- package/src/lib/enumerations/brightChainStrings.d.ts +5 -1
- package/src/lib/enumerations/brightChainStrings.d.ts.map +1 -1
- package/src/lib/enumerations/brightChainStrings.js +5 -1
- package/src/lib/enumerations/brightChainStrings.js.map +1 -1
- package/src/lib/enumerations/cblErrorType.d.ts +2 -1
- package/src/lib/enumerations/cblErrorType.d.ts.map +1 -1
- package/src/lib/enumerations/cblErrorType.js +1 -0
- package/src/lib/enumerations/cblErrorType.js.map +1 -1
- package/src/lib/enumerations/communication.d.ts +57 -0
- package/src/lib/enumerations/communication.d.ts.map +1 -0
- package/src/lib/enumerations/communication.js +89 -0
- package/src/lib/enumerations/communication.js.map +1 -0
- package/src/lib/enumerations/deviceType.d.ts +15 -0
- package/src/lib/enumerations/deviceType.d.ts.map +1 -0
- package/src/lib/enumerations/deviceType.js +19 -0
- package/src/lib/enumerations/deviceType.js.map +1 -0
- package/src/lib/enumerations/handleTupleErrorType.d.ts +2 -1
- package/src/lib/enumerations/handleTupleErrorType.d.ts.map +1 -1
- package/src/lib/enumerations/handleTupleErrorType.js +1 -0
- package/src/lib/enumerations/handleTupleErrorType.js.map +1 -1
- package/src/lib/enumerations/index.d.ts +6 -0
- package/src/lib/enumerations/index.d.ts.map +1 -1
- package/src/lib/enumerations/index.js +11 -0
- package/src/lib/enumerations/index.js.map +1 -1
- package/src/lib/enumerations/messaging/deliveryStatus.d.ts +50 -0
- package/src/lib/enumerations/messaging/deliveryStatus.d.ts.map +1 -0
- package/src/lib/enumerations/messaging/deliveryStatus.js +68 -0
- package/src/lib/enumerations/messaging/deliveryStatus.js.map +1 -0
- package/src/lib/enumerations/messaging/emailErrorType.d.ts +36 -0
- package/src/lib/enumerations/messaging/emailErrorType.d.ts.map +1 -0
- package/src/lib/enumerations/messaging/emailErrorType.js +46 -0
- package/src/lib/enumerations/messaging/emailErrorType.js.map +1 -0
- package/src/lib/enumerations/messaging/index.d.ts +2 -1
- package/src/lib/enumerations/messaging/index.d.ts.map +1 -1
- package/src/lib/enumerations/messaging/index.js +2 -1
- package/src/lib/enumerations/messaging/index.js.map +1 -1
- package/src/lib/enumerations/messaging/messageEncryptionScheme.d.ts +4 -2
- package/src/lib/enumerations/messaging/messageEncryptionScheme.d.ts.map +1 -1
- package/src/lib/enumerations/messaging/messageEncryptionScheme.js +3 -1
- package/src/lib/enumerations/messaging/messageEncryptionScheme.js.map +1 -1
- package/src/lib/enumerations/paperKeyPurpose.d.ts +15 -0
- package/src/lib/enumerations/paperKeyPurpose.d.ts.map +1 -0
- package/src/lib/enumerations/paperKeyPurpose.js +19 -0
- package/src/lib/enumerations/paperKeyPurpose.js.map +1 -0
- package/src/lib/enumerations/proofPlatform.d.ts +24 -0
- package/src/lib/enumerations/proofPlatform.d.ts.map +1 -0
- package/src/lib/enumerations/proofPlatform.js +28 -0
- package/src/lib/enumerations/proofPlatform.js.map +1 -0
- package/src/lib/enumerations/readConcern.d.ts +22 -0
- package/src/lib/enumerations/readConcern.d.ts.map +1 -0
- package/src/lib/enumerations/readConcern.js +26 -0
- package/src/lib/enumerations/readConcern.js.map +1 -0
- package/src/lib/enumerations/tupleErrorType.d.ts +2 -1
- package/src/lib/enumerations/tupleErrorType.d.ts.map +1 -1
- package/src/lib/enumerations/tupleErrorType.js +1 -0
- package/src/lib/enumerations/tupleErrorType.js.map +1 -1
- package/src/lib/enumerations/verificationStatus.d.ts +17 -0
- package/src/lib/enumerations/verificationStatus.d.ts.map +1 -0
- package/src/lib/enumerations/verificationStatus.js +21 -0
- package/src/lib/enumerations/verificationStatus.js.map +1 -0
- package/src/lib/errors/blockFetchError.d.ts +51 -0
- package/src/lib/errors/blockFetchError.d.ts.map +1 -0
- package/src/lib/errors/blockFetchError.js +63 -0
- package/src/lib/errors/blockFetchError.js.map +1 -0
- package/src/lib/errors/cblError.d.ts.map +1 -1
- package/src/lib/errors/cblError.js +1 -0
- package/src/lib/errors/cblError.js.map +1 -1
- package/src/lib/errors/handleTupleError.d.ts +10 -1
- package/src/lib/errors/handleTupleError.d.ts.map +1 -1
- package/src/lib/errors/handleTupleError.js +10 -1
- package/src/lib/errors/handleTupleError.js.map +1 -1
- package/src/lib/errors/index.d.ts +16 -0
- package/src/lib/errors/index.d.ts.map +1 -1
- package/src/lib/errors/index.js +22 -0
- package/src/lib/errors/index.js.map +1 -1
- package/src/lib/errors/messaging/emailError.d.ts +55 -0
- package/src/lib/errors/messaging/emailError.d.ts.map +1 -0
- package/src/lib/errors/messaging/emailError.js +64 -0
- package/src/lib/errors/messaging/emailError.js.map +1 -0
- package/src/lib/errors/messaging/index.d.ts +1 -0
- package/src/lib/errors/messaging/index.d.ts.map +1 -1
- package/src/lib/errors/messaging/index.js +1 -0
- package/src/lib/errors/messaging/index.js.map +1 -1
- package/src/lib/errors/poolDeletionError.d.ts +10 -0
- package/src/lib/errors/poolDeletionError.d.ts.map +1 -0
- package/src/lib/errors/poolDeletionError.js +16 -0
- package/src/lib/errors/poolDeletionError.js.map +1 -0
- package/src/lib/errors/poolDeletionTombstoneError.d.ts +12 -0
- package/src/lib/errors/poolDeletionTombstoneError.d.ts.map +1 -0
- package/src/lib/errors/poolDeletionTombstoneError.js +18 -0
- package/src/lib/errors/poolDeletionTombstoneError.js.map +1 -0
- package/src/lib/errors/tupleError.d.ts.map +1 -1
- package/src/lib/errors/tupleError.js +1 -0
- package/src/lib/errors/tupleError.js.map +1 -1
- package/src/lib/i18n/i18n-setup.d.ts +7 -2
- package/src/lib/i18n/i18n-setup.d.ts.map +1 -1
- package/src/lib/i18n/i18n-setup.js +84 -24
- package/src/lib/i18n/i18n-setup.js.map +1 -1
- package/src/lib/i18n/strings/englishUs.d.ts.map +1 -1
- package/src/lib/i18n/strings/englishUs.js +4 -0
- package/src/lib/i18n/strings/englishUs.js.map +1 -1
- package/src/lib/i18n/strings/french.d.ts.map +1 -1
- package/src/lib/i18n/strings/french.js +4 -0
- package/src/lib/i18n/strings/french.js.map +1 -1
- package/src/lib/i18n/strings/german.d.ts.map +1 -1
- package/src/lib/i18n/strings/german.js +4 -0
- package/src/lib/i18n/strings/german.js.map +1 -1
- package/src/lib/i18n/strings/japanese.d.ts.map +1 -1
- package/src/lib/i18n/strings/japanese.js +4 -0
- package/src/lib/i18n/strings/japanese.js.map +1 -1
- package/src/lib/i18n/strings/mandarin.d.ts.map +1 -1
- package/src/lib/i18n/strings/mandarin.js +4 -0
- package/src/lib/i18n/strings/mandarin.js.map +1 -1
- package/src/lib/i18n/strings/spanish.d.ts.map +1 -1
- package/src/lib/i18n/strings/spanish.js +4 -0
- package/src/lib/i18n/strings/spanish.js.map +1 -1
- package/src/lib/i18n/strings/ukrainian.d.ts.map +1 -1
- package/src/lib/i18n/strings/ukrainian.js +4 -0
- package/src/lib/i18n/strings/ukrainian.js.map +1 -1
- package/src/lib/index.d.ts +4 -0
- package/src/lib/index.d.ts.map +1 -1
- package/src/lib/index.js +4 -0
- package/src/lib/index.js.map +1 -1
- package/src/lib/interfaces/auth/index.d.ts +4 -0
- package/src/lib/interfaces/auth/index.d.ts.map +1 -0
- package/src/lib/interfaces/auth/index.js +8 -0
- package/src/lib/interfaces/auth/index.js.map +1 -0
- package/src/lib/interfaces/auth/nodeAuthenticator.d.ts +19 -0
- package/src/lib/interfaces/auth/nodeAuthenticator.d.ts.map +1 -0
- package/src/lib/interfaces/auth/nodeAuthenticator.js +3 -0
- package/src/lib/interfaces/auth/nodeAuthenticator.js.map +1 -0
- package/src/lib/interfaces/auth/poolAcl.d.ts +65 -0
- package/src/lib/interfaces/auth/poolAcl.d.ts.map +1 -0
- package/src/lib/interfaces/auth/poolAcl.js +52 -0
- package/src/lib/interfaces/auth/poolAcl.js.map +1 -0
- package/src/lib/interfaces/availability/availabilityService.d.ts +5 -3
- package/src/lib/interfaces/availability/availabilityService.d.ts.map +1 -1
- package/src/lib/interfaces/availability/availabilityService.js.map +1 -1
- package/src/lib/interfaces/availability/blockRegistry.d.ts +52 -3
- package/src/lib/interfaces/availability/blockRegistry.d.ts.map +1 -1
- package/src/lib/interfaces/availability/blockRegistry.js +1 -1
- package/src/lib/interfaces/availability/discoveryProtocol.d.ts +81 -3
- package/src/lib/interfaces/availability/discoveryProtocol.d.ts.map +1 -1
- package/src/lib/interfaces/availability/discoveryProtocol.js.map +1 -1
- package/src/lib/interfaces/availability/gossipService.d.ts +279 -8
- package/src/lib/interfaces/availability/gossipService.d.ts.map +1 -1
- package/src/lib/interfaces/availability/gossipService.js +232 -0
- package/src/lib/interfaces/availability/gossipService.js.map +1 -1
- package/src/lib/interfaces/availability/index.d.ts +1 -0
- package/src/lib/interfaces/availability/index.d.ts.map +1 -1
- package/src/lib/interfaces/availability/index.js +1 -0
- package/src/lib/interfaces/availability/index.js.map +1 -1
- package/src/lib/interfaces/availability/locationRecord.d.ts +6 -0
- package/src/lib/interfaces/availability/locationRecord.d.ts.map +1 -1
- package/src/lib/interfaces/availability/locationRecord.js +12 -0
- package/src/lib/interfaces/availability/locationRecord.js.map +1 -1
- package/src/lib/interfaces/availability/poolDeletionTombstone.d.ts +40 -0
- package/src/lib/interfaces/availability/poolDeletionTombstone.d.ts.map +1 -0
- package/src/lib/interfaces/availability/poolDeletionTombstone.js +19 -0
- package/src/lib/interfaces/availability/poolDeletionTombstone.js.map +1 -0
- package/src/lib/interfaces/availability/reconciliationService.d.ts +52 -0
- package/src/lib/interfaces/availability/reconciliationService.d.ts.map +1 -1
- package/src/lib/interfaces/availability/reconciliationService.js.map +1 -1
- package/src/lib/interfaces/blockCapacity.d.ts +9 -0
- package/src/lib/interfaces/blockCapacity.d.ts.map +1 -1
- package/src/lib/interfaces/blockEncryption.d.ts +4 -2
- package/src/lib/interfaces/blockEncryption.d.ts.map +1 -1
- package/src/lib/interfaces/blockFetch/blockFetchTransport.d.ts +26 -0
- package/src/lib/interfaces/blockFetch/blockFetchTransport.d.ts.map +1 -0
- package/src/lib/interfaces/blockFetch/blockFetchTransport.js +12 -0
- package/src/lib/interfaces/blockFetch/blockFetchTransport.js.map +1 -0
- package/src/lib/interfaces/blockFetch/blockFetcher.d.ts +71 -0
- package/src/lib/interfaces/blockFetch/blockFetcher.d.ts.map +1 -0
- package/src/lib/interfaces/blockFetch/blockFetcher.js +22 -0
- package/src/lib/interfaces/blockFetch/blockFetcher.js.map +1 -0
- package/src/lib/interfaces/blockFetch/enrichedQueryResult.d.ts +43 -0
- package/src/lib/interfaces/blockFetch/enrichedQueryResult.d.ts.map +1 -0
- package/src/lib/interfaces/blockFetch/enrichedQueryResult.js +13 -0
- package/src/lib/interfaces/blockFetch/enrichedQueryResult.js.map +1 -0
- package/src/lib/interfaces/blockFetch/fetchQueue.d.ts +70 -0
- package/src/lib/interfaces/blockFetch/fetchQueue.d.ts.map +1 -0
- package/src/lib/interfaces/blockFetch/fetchQueue.js +18 -0
- package/src/lib/interfaces/blockFetch/fetchQueue.js.map +1 -0
- package/src/lib/interfaces/blockFetch/index.d.ts +10 -0
- package/src/lib/interfaces/blockFetch/index.d.ts.map +1 -0
- package/src/lib/interfaces/blockFetch/index.js +13 -0
- package/src/lib/interfaces/blockFetch/index.js.map +1 -0
- package/src/lib/interfaces/blocks/index.d.ts +1 -0
- package/src/lib/interfaces/blocks/index.d.ts.map +1 -1
- package/src/lib/interfaces/blocks/vcbl.d.ts +16 -0
- package/src/lib/interfaces/blocks/vcbl.d.ts.map +1 -0
- package/src/lib/interfaces/{messaging/messageRouter.js → blocks/vcbl.js} +1 -1
- package/src/lib/interfaces/blocks/vcbl.js.map +1 -0
- package/src/lib/interfaces/brightpass/auditLog.d.ts +25 -0
- package/src/lib/interfaces/brightpass/auditLog.d.ts.map +1 -0
- package/src/lib/interfaces/brightpass/auditLog.js +21 -0
- package/src/lib/interfaces/brightpass/auditLog.js.map +1 -0
- package/src/lib/interfaces/brightpass/emergencyAccess.d.ts +11 -0
- package/src/lib/interfaces/brightpass/emergencyAccess.d.ts.map +1 -0
- package/src/lib/interfaces/{network/networkTransport.js → brightpass/emergencyAccess.js} +1 -1
- package/src/lib/interfaces/brightpass/emergencyAccess.js.map +1 -0
- package/src/lib/interfaces/brightpass/entryPropertyRecord.d.ts +11 -0
- package/src/lib/interfaces/brightpass/entryPropertyRecord.d.ts.map +1 -0
- package/src/lib/interfaces/brightpass/entryPropertyRecord.js +3 -0
- package/src/lib/interfaces/brightpass/entryPropertyRecord.js.map +1 -0
- package/src/lib/interfaces/brightpass/importTypes.d.ts +10 -0
- package/src/lib/interfaces/brightpass/importTypes.d.ts.map +1 -0
- package/src/lib/interfaces/brightpass/importTypes.js +3 -0
- package/src/lib/interfaces/brightpass/importTypes.js.map +1 -0
- package/src/lib/interfaces/brightpass/index.d.ts +7 -0
- package/src/lib/interfaces/brightpass/index.d.ts.map +1 -0
- package/src/lib/interfaces/brightpass/index.js +10 -0
- package/src/lib/interfaces/brightpass/index.js.map +1 -0
- package/src/lib/interfaces/brightpass/vaultEntry.d.ts +48 -0
- package/src/lib/interfaces/brightpass/vaultEntry.d.ts.map +1 -0
- package/src/lib/interfaces/brightpass/vaultEntry.js +3 -0
- package/src/lib/interfaces/brightpass/vaultEntry.js.map +1 -0
- package/src/lib/interfaces/brightpass/vaultMetadata.d.ts +34 -0
- package/src/lib/interfaces/brightpass/vaultMetadata.d.ts.map +1 -0
- package/src/lib/interfaces/brightpass/vaultMetadata.js +3 -0
- package/src/lib/interfaces/brightpass/vaultMetadata.js.map +1 -0
- package/src/lib/interfaces/clusterKeys.d.ts +4 -2
- package/src/lib/interfaces/clusterKeys.d.ts.map +1 -1
- package/src/lib/interfaces/communication.d.ts +173 -0
- package/src/lib/interfaces/communication.d.ts.map +1 -0
- package/src/lib/interfaces/communication.js +17 -0
- package/src/lib/interfaces/communication.js.map +1 -0
- package/src/lib/interfaces/communicationEvents.d.ts +168 -0
- package/src/lib/interfaces/communicationEvents.d.ts.map +1 -0
- package/src/lib/interfaces/communicationEvents.js +12 -0
- package/src/lib/interfaces/communicationEvents.js.map +1 -0
- package/src/lib/interfaces/crypto/ethereumWallet.d.ts +72 -0
- package/src/lib/interfaces/crypto/ethereumWallet.d.ts.map +1 -0
- package/src/lib/interfaces/crypto/ethereumWallet.js +12 -0
- package/src/lib/interfaces/crypto/ethereumWallet.js.map +1 -0
- package/src/lib/interfaces/crypto/gitSignature.d.ts +95 -0
- package/src/lib/interfaces/crypto/gitSignature.d.ts.map +1 -0
- package/src/lib/interfaces/crypto/gitSignature.js +12 -0
- package/src/lib/interfaces/crypto/gitSignature.js.map +1 -0
- package/src/lib/interfaces/crypto/index.d.ts +3 -0
- package/src/lib/interfaces/crypto/index.d.ts.map +1 -0
- package/src/lib/interfaces/crypto/index.js +3 -0
- package/src/lib/interfaces/crypto/index.js.map +1 -0
- package/src/lib/interfaces/dataKeyComponents.d.ts +7 -2
- package/src/lib/interfaces/dataKeyComponents.d.ts.map +1 -1
- package/src/lib/interfaces/encryptedBlockCreator.d.ts +4 -2
- package/src/lib/interfaces/encryptedBlockCreator.d.ts.map +1 -1
- package/src/lib/interfaces/events/communicationEventEmitter.d.ts +65 -0
- package/src/lib/interfaces/events/communicationEventEmitter.d.ts.map +1 -0
- package/src/lib/interfaces/events/communicationEventEmitter.js +60 -0
- package/src/lib/interfaces/events/communicationEventEmitter.js.map +1 -0
- package/src/lib/interfaces/events/index.d.ts +2 -0
- package/src/lib/interfaces/events/index.d.ts.map +1 -0
- package/src/lib/interfaces/events/index.js +5 -0
- package/src/lib/interfaces/events/index.js.map +1 -0
- package/src/lib/interfaces/failableResult.d.ts +15 -0
- package/src/lib/interfaces/failableResult.d.ts.map +1 -0
- package/src/lib/interfaces/failableResult.js +3 -0
- package/src/lib/interfaces/failableResult.js.map +1 -0
- package/src/lib/interfaces/identity/device.d.ts +59 -0
- package/src/lib/interfaces/identity/device.d.ts.map +1 -0
- package/src/lib/interfaces/identity/device.js +17 -0
- package/src/lib/interfaces/identity/device.js.map +1 -0
- package/src/lib/interfaces/identity/deviceKeyStorage.d.ts +71 -0
- package/src/lib/interfaces/identity/deviceKeyStorage.d.ts.map +1 -0
- package/src/lib/interfaces/identity/deviceKeyStorage.js +16 -0
- package/src/lib/interfaces/identity/deviceKeyStorage.js.map +1 -0
- package/src/lib/interfaces/identity/identityProof.d.ts +90 -0
- package/src/lib/interfaces/identity/identityProof.d.ts.map +1 -0
- package/src/lib/interfaces/identity/identityProof.js +18 -0
- package/src/lib/interfaces/identity/identityProof.js.map +1 -0
- package/src/lib/interfaces/identity/index.d.ts +7 -0
- package/src/lib/interfaces/identity/index.d.ts.map +1 -0
- package/src/lib/interfaces/identity/index.js +3 -0
- package/src/lib/interfaces/identity/index.js.map +1 -0
- package/src/lib/interfaces/identity/paperKey.d.ts +97 -0
- package/src/lib/interfaces/identity/paperKey.d.ts.map +1 -0
- package/src/lib/interfaces/identity/paperKey.js +17 -0
- package/src/lib/interfaces/identity/paperKey.js.map +1 -0
- package/src/lib/interfaces/identity/publicProfile.d.ts +74 -0
- package/src/lib/interfaces/identity/publicProfile.d.ts.map +1 -0
- package/src/lib/interfaces/identity/publicProfile.js +18 -0
- package/src/lib/interfaces/identity/publicProfile.js.map +1 -0
- package/src/lib/interfaces/identity/splitPaperKey.d.ts +73 -0
- package/src/lib/interfaces/identity/splitPaperKey.d.ts.map +1 -0
- package/src/lib/interfaces/identity/splitPaperKey.js +20 -0
- package/src/lib/interfaces/identity/splitPaperKey.js.map +1 -0
- package/src/lib/interfaces/index.d.ts +11 -2
- package/src/lib/interfaces/index.d.ts.map +1 -1
- package/src/lib/interfaces/index.js +12 -0
- package/src/lib/interfaces/index.js.map +1 -1
- package/src/lib/interfaces/messaging/attachmentMetadata.d.ts +47 -0
- package/src/lib/interfaces/messaging/attachmentMetadata.d.ts.map +1 -0
- package/src/lib/interfaces/messaging/attachmentMetadata.js +3 -0
- package/src/lib/interfaces/messaging/attachmentMetadata.js.map +1 -0
- package/src/lib/interfaces/messaging/emailAddress.d.ts +210 -0
- package/src/lib/interfaces/messaging/emailAddress.d.ts.map +1 -0
- package/src/lib/interfaces/messaging/emailAddress.js +213 -0
- package/src/lib/interfaces/messaging/emailAddress.js.map +1 -0
- package/src/lib/interfaces/messaging/emailDelivery.d.ts +80 -0
- package/src/lib/interfaces/messaging/emailDelivery.d.ts.map +1 -0
- package/src/lib/interfaces/messaging/emailDelivery.js +50 -0
- package/src/lib/interfaces/messaging/emailDelivery.js.map +1 -0
- package/src/lib/interfaces/messaging/emailMetadata.d.ts +269 -0
- package/src/lib/interfaces/messaging/emailMetadata.d.ts.map +1 -0
- package/src/lib/interfaces/messaging/emailMetadata.js +16 -0
- package/src/lib/interfaces/messaging/emailMetadata.js.map +1 -0
- package/src/lib/interfaces/messaging/index.d.ts +5 -1
- package/src/lib/interfaces/messaging/index.d.ts.map +1 -1
- package/src/lib/interfaces/messaging/index.js +5 -1
- package/src/lib/interfaces/messaging/index.js.map +1 -1
- package/src/lib/interfaces/messaging/messageMetadata.d.ts +2 -2
- package/src/lib/interfaces/messaging/messageMetadata.d.ts.map +1 -1
- package/src/lib/interfaces/messaging/messageMetadataStore.d.ts +2 -2
- package/src/lib/interfaces/messaging/messageMetadataStore.d.ts.map +1 -1
- package/src/lib/interfaces/messaging/mimePart.d.ts +214 -0
- package/src/lib/interfaces/messaging/mimePart.d.ts.map +1 -0
- package/src/lib/interfaces/messaging/mimePart.js +71 -0
- package/src/lib/interfaces/messaging/mimePart.js.map +1 -0
- package/src/lib/interfaces/network/index.d.ts +0 -1
- package/src/lib/interfaces/network/index.d.ts.map +1 -1
- package/src/lib/interfaces/network/node.d.ts +4 -2
- package/src/lib/interfaces/network/node.d.ts.map +1 -1
- package/src/lib/interfaces/network/nodeAdvertisement.d.ts +4 -2
- package/src/lib/interfaces/network/nodeAdvertisement.d.ts.map +1 -1
- package/src/lib/interfaces/privateVotingDerivation.d.ts +7 -2
- package/src/lib/interfaces/privateVotingDerivation.d.ts.map +1 -1
- package/src/lib/interfaces/requests/communicationRequests.d.ts +154 -0
- package/src/lib/interfaces/requests/communicationRequests.d.ts.map +1 -0
- package/src/lib/interfaces/requests/communicationRequests.js +10 -0
- package/src/lib/interfaces/requests/communicationRequests.js.map +1 -0
- package/src/lib/interfaces/requests/index.d.ts +2 -0
- package/src/lib/interfaces/requests/index.d.ts.map +1 -0
- package/src/lib/interfaces/requests/index.js +3 -0
- package/src/lib/interfaces/requests/index.js.map +1 -0
- package/src/lib/interfaces/responses/blockDataResponse.d.ts +11 -0
- package/src/lib/interfaces/responses/blockDataResponse.d.ts.map +1 -0
- package/src/lib/interfaces/responses/blockDataResponse.js +3 -0
- package/src/lib/interfaces/responses/blockDataResponse.js.map +1 -0
- package/src/lib/interfaces/responses/communicationResponses.d.ts +82 -0
- package/src/lib/interfaces/responses/communicationResponses.d.ts.map +1 -0
- package/src/lib/interfaces/responses/communicationResponses.js +17 -0
- package/src/lib/interfaces/responses/communicationResponses.js.map +1 -0
- package/src/lib/interfaces/responses/cryptoResponses.d.ts +30 -0
- package/src/lib/interfaces/responses/cryptoResponses.d.ts.map +1 -0
- package/src/lib/interfaces/responses/cryptoResponses.js +12 -0
- package/src/lib/interfaces/responses/cryptoResponses.js.map +1 -0
- package/src/lib/interfaces/responses/deviceResponses.d.ts +26 -0
- package/src/lib/interfaces/responses/deviceResponses.d.ts.map +1 -0
- package/src/lib/interfaces/responses/deviceResponses.js +15 -0
- package/src/lib/interfaces/responses/deviceResponses.js.map +1 -0
- package/src/lib/interfaces/responses/directoryResponses.d.ts +26 -0
- package/src/lib/interfaces/responses/directoryResponses.d.ts.map +1 -0
- package/src/lib/interfaces/responses/directoryResponses.js +12 -0
- package/src/lib/interfaces/responses/directoryResponses.js.map +1 -0
- package/src/lib/interfaces/responses/emailResponses.d.ts +40 -0
- package/src/lib/interfaces/responses/emailResponses.d.ts.map +1 -0
- package/src/lib/interfaces/responses/emailResponses.js +18 -0
- package/src/lib/interfaces/responses/emailResponses.js.map +1 -0
- package/src/lib/interfaces/responses/explodingMessageResponses.d.ts +42 -0
- package/src/lib/interfaces/responses/explodingMessageResponses.d.ts.map +1 -0
- package/src/lib/interfaces/responses/explodingMessageResponses.js +11 -0
- package/src/lib/interfaces/responses/explodingMessageResponses.js.map +1 -0
- package/src/lib/interfaces/responses/identityProofResponses.d.ts +33 -0
- package/src/lib/interfaces/responses/identityProofResponses.d.ts.map +1 -0
- package/src/lib/interfaces/responses/identityProofResponses.js +12 -0
- package/src/lib/interfaces/responses/identityProofResponses.js.map +1 -0
- package/src/lib/interfaces/responses/index.d.ts +3 -1
- package/src/lib/interfaces/responses/index.d.ts.map +1 -1
- package/src/lib/interfaces/sealResults.d.ts +7 -2
- package/src/lib/interfaces/sealResults.d.ts.map +1 -1
- package/src/lib/interfaces/services/fecService.d.ts +7 -5
- package/src/lib/interfaces/services/fecService.d.ts.map +1 -1
- package/src/lib/interfaces/services/fecService.js +2 -0
- package/src/lib/interfaces/services/fecService.js.map +1 -1
- package/src/lib/interfaces/singleEncryptedBlockDetails.d.ts +7 -2
- package/src/lib/interfaces/singleEncryptedBlockDetails.d.ts.map +1 -1
- package/src/lib/interfaces/storage/blockMetadata.d.ts +8 -1
- package/src/lib/interfaces/storage/blockMetadata.d.ts.map +1 -1
- package/src/lib/interfaces/storage/blockMetadata.js +3 -1
- package/src/lib/interfaces/storage/blockMetadata.js.map +1 -1
- package/src/lib/interfaces/storage/cblIndex.d.ts +141 -0
- package/src/lib/interfaces/storage/cblIndex.d.ts.map +1 -0
- package/src/lib/interfaces/storage/cblIndex.js +28 -0
- package/src/lib/interfaces/storage/cblIndex.js.map +1 -0
- package/src/lib/interfaces/storage/clientSession.d.ts +22 -0
- package/src/lib/interfaces/storage/clientSession.d.ts.map +1 -0
- package/src/lib/interfaces/storage/clientSession.js +3 -0
- package/src/lib/interfaces/storage/clientSession.js.map +1 -0
- package/src/lib/interfaces/storage/collection.d.ts +80 -0
- package/src/lib/interfaces/storage/collection.d.ts.map +1 -0
- package/src/lib/interfaces/storage/collection.js +3 -0
- package/src/lib/interfaces/storage/collection.js.map +1 -0
- package/src/lib/interfaces/storage/database.d.ts +30 -0
- package/src/lib/interfaces/storage/database.d.ts.map +1 -0
- package/src/lib/interfaces/storage/database.js +3 -0
- package/src/lib/interfaces/storage/database.js.map +1 -0
- package/src/lib/interfaces/storage/databaseLifecycleHooks.d.ts +43 -0
- package/src/lib/interfaces/storage/databaseLifecycleHooks.d.ts.map +1 -0
- package/src/lib/interfaces/storage/databaseLifecycleHooks.js +3 -0
- package/src/lib/interfaces/storage/databaseLifecycleHooks.js.map +1 -0
- package/src/lib/interfaces/storage/documentTypes.d.ts +413 -0
- package/src/lib/interfaces/storage/documentTypes.d.ts.map +1 -0
- package/src/lib/interfaces/storage/documentTypes.js +8 -0
- package/src/lib/interfaces/storage/documentTypes.js.map +1 -0
- package/src/lib/interfaces/storage/encryptedPool.d.ts +64 -0
- package/src/lib/interfaces/storage/encryptedPool.d.ts.map +1 -0
- package/src/lib/interfaces/storage/encryptedPool.js +26 -0
- package/src/lib/interfaces/storage/encryptedPool.js.map +1 -0
- package/src/lib/interfaces/storage/headRegistry.d.ts +128 -0
- package/src/lib/interfaces/storage/headRegistry.d.ts.map +1 -0
- package/src/lib/interfaces/storage/headRegistry.js +3 -0
- package/src/lib/interfaces/storage/headRegistry.js.map +1 -0
- package/src/lib/interfaces/storage/index.d.ts +14 -0
- package/src/lib/interfaces/storage/index.d.ts.map +1 -1
- package/src/lib/interfaces/storage/index.js +14 -1
- package/src/lib/interfaces/storage/index.js.map +1 -1
- package/src/lib/interfaces/storage/pooledBlockStore.d.ts +163 -0
- package/src/lib/interfaces/storage/pooledBlockStore.d.ts.map +1 -0
- package/src/lib/interfaces/storage/pooledBlockStore.js +77 -0
- package/src/lib/interfaces/storage/pooledBlockStore.js.map +1 -0
- package/src/lib/interfaces/storage/readConcernBlockStore.d.ts +47 -0
- package/src/lib/interfaces/storage/readConcernBlockStore.d.ts.map +1 -0
- package/src/lib/interfaces/storage/readConcernBlockStore.js +29 -0
- package/src/lib/interfaces/storage/readConcernBlockStore.js.map +1 -0
- package/src/lib/interfaces/symmetricEncryptionResults.d.ts +7 -5
- package/src/lib/interfaces/symmetricEncryptionResults.d.ts.map +1 -1
- package/src/lib/schemas/messaging/messageMetadataSchema.d.ts.map +1 -1
- package/src/lib/schemas/messaging/messageMetadataSchema.js.map +1 -1
- package/src/lib/services/blockCapacity.service.d.ts.map +1 -1
- package/src/lib/services/blockCapacity.service.js +15 -0
- package/src/lib/services/blockCapacity.service.js.map +1 -1
- package/src/lib/services/brightpass/auditLogger.d.ts +41 -0
- package/src/lib/services/brightpass/auditLogger.d.ts.map +1 -0
- package/src/lib/services/brightpass/auditLogger.js +47 -0
- package/src/lib/services/brightpass/auditLogger.js.map +1 -0
- package/src/lib/services/brightpass/breachDetector.d.ts +68 -0
- package/src/lib/services/brightpass/breachDetector.d.ts.map +1 -0
- package/src/lib/services/brightpass/breachDetector.js +102 -0
- package/src/lib/services/brightpass/breachDetector.js.map +1 -0
- package/src/lib/services/brightpass/importParser.d.ts +105 -0
- package/src/lib/services/brightpass/importParser.d.ts.map +1 -0
- package/src/lib/services/brightpass/importParser.js +380 -0
- package/src/lib/services/brightpass/importParser.js.map +1 -0
- package/src/lib/services/brightpass/index.d.ts +16 -0
- package/src/lib/services/brightpass/index.d.ts.map +1 -0
- package/src/lib/services/brightpass/index.js +19 -0
- package/src/lib/services/brightpass/index.js.map +1 -0
- package/src/lib/services/brightpass/passwordGenerator.d.ts +111 -0
- package/src/lib/services/brightpass/passwordGenerator.d.ts.map +1 -0
- package/src/lib/services/brightpass/passwordGenerator.js +162 -0
- package/src/lib/services/brightpass/passwordGenerator.js.map +1 -0
- package/src/lib/services/brightpass/totpEngine.d.ts +191 -0
- package/src/lib/services/brightpass/totpEngine.d.ts.map +1 -0
- package/src/lib/services/brightpass/totpEngine.js +198 -0
- package/src/lib/services/brightpass/totpEngine.js.map +1 -0
- package/src/lib/services/brightpass/vaultKeyDerivation.d.ts +26 -0
- package/src/lib/services/brightpass/vaultKeyDerivation.d.ts.map +1 -0
- package/src/lib/services/brightpass/vaultKeyDerivation.js +42 -0
- package/src/lib/services/brightpass/vaultKeyDerivation.js.map +1 -0
- package/src/lib/services/brightpass/vaultSerializer.d.ts +14 -0
- package/src/lib/services/brightpass/vaultSerializer.d.ts.map +1 -0
- package/src/lib/services/brightpass/vaultSerializer.js +77 -0
- package/src/lib/services/brightpass/vaultSerializer.js.map +1 -0
- package/src/lib/services/cblService.d.ts +4 -2
- package/src/lib/services/cblService.d.ts.map +1 -1
- package/src/lib/services/cblService.js +8 -4
- package/src/lib/services/cblService.js.map +1 -1
- package/src/lib/services/communication/channelService.d.ts +208 -0
- package/src/lib/services/communication/channelService.d.ts.map +1 -0
- package/src/lib/services/communication/channelService.js +575 -0
- package/src/lib/services/communication/channelService.js.map +1 -0
- package/src/lib/services/communication/conversationService.d.ts +130 -0
- package/src/lib/services/communication/conversationService.d.ts.map +1 -0
- package/src/lib/services/communication/conversationService.js +279 -0
- package/src/lib/services/communication/conversationService.js.map +1 -0
- package/src/lib/services/communication/explodingMessageService.d.ts +168 -0
- package/src/lib/services/communication/explodingMessageService.d.ts.map +1 -0
- package/src/lib/services/communication/explodingMessageService.js +287 -0
- package/src/lib/services/communication/explodingMessageService.js.map +1 -0
- package/src/lib/services/communication/groupService.d.ts +165 -0
- package/src/lib/services/communication/groupService.d.ts.map +1 -0
- package/src/lib/services/communication/groupService.js +437 -0
- package/src/lib/services/communication/groupService.js.map +1 -0
- package/src/lib/services/communication/index.d.ts +16 -0
- package/src/lib/services/communication/index.d.ts.map +1 -0
- package/src/lib/services/communication/index.js +63 -0
- package/src/lib/services/communication/index.js.map +1 -0
- package/src/lib/services/communication/messageOperationsService.d.ts +81 -0
- package/src/lib/services/communication/messageOperationsService.d.ts.map +1 -0
- package/src/lib/services/communication/messageOperationsService.js +162 -0
- package/src/lib/services/communication/messageOperationsService.js.map +1 -0
- package/src/lib/services/communication/permissionService.d.ts +47 -0
- package/src/lib/services/communication/permissionService.d.ts.map +1 -0
- package/src/lib/services/communication/permissionService.js +82 -0
- package/src/lib/services/communication/permissionService.js.map +1 -0
- package/src/lib/services/communication/searchService.d.ts +30 -0
- package/src/lib/services/communication/searchService.d.ts.map +1 -0
- package/src/lib/services/communication/searchService.js +83 -0
- package/src/lib/services/communication/searchService.js.map +1 -0
- package/src/lib/services/crypto/ethereumWalletService.d.ts +159 -0
- package/src/lib/services/crypto/ethereumWalletService.d.ts.map +1 -0
- package/src/lib/services/crypto/ethereumWalletService.js +345 -0
- package/src/lib/services/crypto/ethereumWalletService.js.map +1 -0
- package/src/lib/services/crypto/gitSigningService.d.ts +145 -0
- package/src/lib/services/crypto/gitSigningService.d.ts.map +1 -0
- package/src/lib/services/crypto/gitSigningService.js +291 -0
- package/src/lib/services/crypto/gitSigningService.js.map +1 -0
- package/src/lib/services/crypto/index.d.ts +3 -0
- package/src/lib/services/crypto/index.d.ts.map +1 -0
- package/src/lib/services/crypto/index.js +6 -0
- package/src/lib/services/crypto/index.js.map +1 -0
- package/src/lib/services/identity/deviceProvisioningService.d.ts +146 -0
- package/src/lib/services/identity/deviceProvisioningService.d.ts.map +1 -0
- package/src/lib/services/identity/deviceProvisioningService.js +219 -0
- package/src/lib/services/identity/deviceProvisioningService.js.map +1 -0
- package/src/lib/services/identity/identityProofService.d.ts +139 -0
- package/src/lib/services/identity/identityProofService.d.ts.map +1 -0
- package/src/lib/services/identity/identityProofService.js +245 -0
- package/src/lib/services/identity/identityProofService.js.map +1 -0
- package/src/lib/services/identity/index.d.ts +14 -0
- package/src/lib/services/identity/index.d.ts.map +1 -0
- package/src/lib/services/identity/index.js +17 -0
- package/src/lib/services/identity/index.js.map +1 -0
- package/src/lib/services/identity/memberIdentityProofService.d.ts +179 -0
- package/src/lib/services/identity/memberIdentityProofService.d.ts.map +1 -0
- package/src/lib/services/identity/memberIdentityProofService.js +232 -0
- package/src/lib/services/identity/memberIdentityProofService.js.map +1 -0
- package/src/lib/services/identity/memberPaperKeyService.d.ts +223 -0
- package/src/lib/services/identity/memberPaperKeyService.d.ts.map +1 -0
- package/src/lib/services/identity/memberPaperKeyService.js +279 -0
- package/src/lib/services/identity/memberPaperKeyService.js.map +1 -0
- package/src/lib/services/identity/paperKeyService.d.ts +106 -0
- package/src/lib/services/identity/paperKeyService.d.ts.map +1 -0
- package/src/lib/services/identity/paperKeyService.js +161 -0
- package/src/lib/services/identity/paperKeyService.js.map +1 -0
- package/src/lib/services/identity/publicKeyDirectoryService.d.ts +210 -0
- package/src/lib/services/identity/publicKeyDirectoryService.d.ts.map +1 -0
- package/src/lib/services/identity/publicKeyDirectoryService.js +328 -0
- package/src/lib/services/identity/publicKeyDirectoryService.js.map +1 -0
- package/src/lib/services/identity/splitPaperKeyService.d.ts +92 -0
- package/src/lib/services/identity/splitPaperKeyService.d.ts.map +1 -0
- package/src/lib/services/identity/splitPaperKeyService.js +305 -0
- package/src/lib/services/identity/splitPaperKeyService.js.map +1 -0
- package/src/lib/services/index.d.ts +4 -0
- package/src/lib/services/index.d.ts.map +1 -1
- package/src/lib/services/index.js +7 -0
- package/src/lib/services/index.js.map +1 -1
- package/src/lib/services/messaging/deliveryTimeoutService.js +2 -2
- package/src/lib/services/messaging/deliveryTimeoutService.js.map +1 -1
- package/src/lib/services/messaging/emailEncryptionService.d.ts +250 -0
- package/src/lib/services/messaging/emailEncryptionService.d.ts.map +1 -0
- package/src/lib/services/messaging/emailEncryptionService.js +420 -0
- package/src/lib/services/messaging/emailEncryptionService.js.map +1 -0
- package/src/lib/services/messaging/emailMessageService.d.ts +669 -0
- package/src/lib/services/messaging/emailMessageService.d.ts.map +1 -0
- package/src/lib/services/messaging/emailMessageService.js +1030 -0
- package/src/lib/services/messaging/emailMessageService.js.map +1 -0
- package/src/lib/services/messaging/emailParser.d.ts +476 -0
- package/src/lib/services/messaging/emailParser.d.ts.map +1 -0
- package/src/lib/services/messaging/emailParser.js +1316 -0
- package/src/lib/services/messaging/emailParser.js.map +1 -0
- package/src/lib/services/messaging/emailSerializer.d.ts +403 -0
- package/src/lib/services/messaging/emailSerializer.d.ts.map +1 -0
- package/src/lib/services/messaging/emailSerializer.js +852 -0
- package/src/lib/services/messaging/emailSerializer.js.map +1 -0
- package/src/lib/services/messaging/emailValidator.d.ts +448 -0
- package/src/lib/services/messaging/emailValidator.d.ts.map +1 -0
- package/src/lib/services/messaging/emailValidator.js +810 -0
- package/src/lib/services/messaging/emailValidator.js.map +1 -0
- package/src/lib/services/messaging/gossipRetryService.d.ts +204 -0
- package/src/lib/services/messaging/gossipRetryService.d.ts.map +1 -0
- package/src/lib/services/messaging/gossipRetryService.js +319 -0
- package/src/lib/services/messaging/gossipRetryService.js.map +1 -0
- package/src/lib/services/messaging/inMemoryEmailMetadataStore.d.ts +60 -0
- package/src/lib/services/messaging/inMemoryEmailMetadataStore.d.ts.map +1 -0
- package/src/lib/services/messaging/inMemoryEmailMetadataStore.js +281 -0
- package/src/lib/services/messaging/inMemoryEmailMetadataStore.js.map +1 -0
- package/src/lib/services/messaging/index.d.ts +11 -5
- package/src/lib/services/messaging/index.d.ts.map +1 -1
- package/src/lib/services/messaging/index.js +19 -5
- package/src/lib/services/messaging/index.js.map +1 -1
- package/src/lib/services/messaging/messageCBLService.js +2 -2
- package/src/lib/services/messaging/messageCBLService.js.map +1 -1
- package/src/lib/services/tuple.service.d.ts +27 -2
- package/src/lib/services/tuple.service.d.ts.map +1 -1
- package/src/lib/services/tuple.service.js +62 -20
- package/src/lib/services/tuple.service.js.map +1 -1
- package/src/lib/services/vcblService.d.ts +36 -0
- package/src/lib/services/vcblService.d.ts.map +1 -0
- package/src/lib/services/vcblService.js +326 -0
- package/src/lib/services/vcblService.js.map +1 -0
- package/src/lib/stores/index.d.ts +1 -0
- package/src/lib/stores/index.d.ts.map +1 -1
- package/src/lib/stores/index.js +1 -0
- package/src/lib/stores/index.js.map +1 -1
- package/src/lib/stores/messaging/memoryMessageMetadataStore.d.ts +2 -2
- package/src/lib/stores/messaging/memoryMessageMetadataStore.d.ts.map +1 -1
- package/src/lib/stores/messaging/memoryMessageMetadataStore.js +2 -2
- package/src/lib/stores/messaging/memoryMessageMetadataStore.js.map +1 -1
- package/src/lib/stores/pooledMemoryBlockStore.d.ts +134 -0
- package/src/lib/stores/pooledMemoryBlockStore.d.ts.map +1 -0
- package/src/lib/stores/pooledMemoryBlockStore.js +583 -0
- package/src/lib/stores/pooledMemoryBlockStore.js.map +1 -0
- package/src/lib/types/checksum.d.ts +11 -0
- package/src/lib/types/checksum.d.ts.map +1 -1
- package/src/lib/types/checksum.js +11 -0
- package/src/lib/types/checksum.js.map +1 -1
- package/src/lib/utils/index.d.ts +9 -0
- package/src/lib/utils/index.d.ts.map +1 -1
- package/src/lib/utils/index.js +12 -0
- package/src/lib/utils/index.js.map +1 -1
- package/src/lib/utils/pagination.d.ts +27 -0
- package/src/lib/utils/pagination.d.ts.map +1 -0
- package/src/lib/utils/pagination.js +38 -0
- package/src/lib/utils/pagination.js.map +1 -0
- package/src/lib/enumerations/messaging/messageDeliveryStatus.d.ts +0 -18
- package/src/lib/enumerations/messaging/messageDeliveryStatus.d.ts.map +0 -1
- package/src/lib/enumerations/messaging/messageDeliveryStatus.js +0 -22
- package/src/lib/enumerations/messaging/messageDeliveryStatus.js.map +0 -1
- package/src/lib/enumerations/messaging/routingStrategy.d.ts +0 -12
- package/src/lib/enumerations/messaging/routingStrategy.d.ts.map +0 -1
- package/src/lib/enumerations/messaging/routingStrategy.js +0 -16
- package/src/lib/enumerations/messaging/routingStrategy.js.map +0 -1
- package/src/lib/interfaces/messaging/messageRouter.d.ts +0 -48
- package/src/lib/interfaces/messaging/messageRouter.d.ts.map +0 -1
- package/src/lib/interfaces/messaging/messageRouter.js.map +0 -1
- package/src/lib/interfaces/network/networkTransport.d.ts +0 -19
- package/src/lib/interfaces/network/networkTransport.d.ts.map +0 -1
- package/src/lib/interfaces/network/networkTransport.js.map +0 -1
- package/src/lib/services/messaging/broadcastMessageRouter.d.ts +0 -18
- package/src/lib/services/messaging/broadcastMessageRouter.d.ts.map +0 -1
- package/src/lib/services/messaging/broadcastMessageRouter.js +0 -32
- package/src/lib/services/messaging/broadcastMessageRouter.js.map +0 -1
- package/src/lib/services/messaging/directMessageRouter.d.ts +0 -25
- package/src/lib/services/messaging/directMessageRouter.d.ts.map +0 -1
- package/src/lib/services/messaging/directMessageRouter.js +0 -58
- package/src/lib/services/messaging/directMessageRouter.js.map +0 -1
- package/src/lib/services/messaging/messageForwardingService.d.ts +0 -40
- package/src/lib/services/messaging/messageForwardingService.d.ts.map +0 -1
- package/src/lib/services/messaging/messageForwardingService.js +0 -74
- package/src/lib/services/messaging/messageForwardingService.js.map +0 -1
- package/src/lib/services/messaging/messageRouter.d.ts +0 -24
- package/src/lib/services/messaging/messageRouter.d.ts.map +0 -1
- package/src/lib/services/messaging/messageRouter.js +0 -111
- package/src/lib/services/messaging/messageRouter.js.map +0 -1
- package/src/lib/services/messaging/webSocketTransport.d.ts +0 -34
- package/src/lib/services/messaging/webSocketTransport.d.ts.map +0 -1
- package/src/lib/services/messaging/webSocketTransport.js +0 -115
- package/src/lib/services/messaging/webSocketTransport.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
|
|
2
|
+
/**
|
|
3
|
+
* Response for GET /api/sync/blocks/:blockId
|
|
4
|
+
* Returns raw block data as base64-encoded string.
|
|
5
|
+
*/
|
|
6
|
+
export interface IBlockDataResponse extends IApiMessageResponse {
|
|
7
|
+
blockId: string;
|
|
8
|
+
data: string;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=blockDataResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockDataResponse.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/blockDataResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockDataResponse.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/blockDataResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Communication API response interfaces.
|
|
3
|
+
* All responses use the IApiEnvelope wrapper defined in communication.ts.
|
|
4
|
+
*
|
|
5
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
6
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
7
|
+
* (extending Response) live in brightchain-api-lib.
|
|
8
|
+
*
|
|
9
|
+
* Generic parameters:
|
|
10
|
+
* TId – identifier type (string on frontend, GuidV4Buffer on backend)
|
|
11
|
+
* TData – binary-data type (string/base64 on frontend, Buffer on backend)
|
|
12
|
+
*
|
|
13
|
+
* Requirements: 10.1
|
|
14
|
+
*/
|
|
15
|
+
import { IApiEnvelope, IChannel, ICommunicationMessage, IConversation, IGroup, IInviteToken, IPaginatedResult, ISearchResultItem } from '../communication';
|
|
16
|
+
export type ISendDirectMessageResponse<TId = string, TData = string> = IApiEnvelope<ICommunicationMessage<TId, TData>>;
|
|
17
|
+
export type IListConversationsResponse<TId = string> = IApiEnvelope<IPaginatedResult<IConversation<TId>>>;
|
|
18
|
+
export type IGetMessagesResponse<TId = string, TData = string> = IApiEnvelope<IPaginatedResult<ICommunicationMessage<TId, TData>>>;
|
|
19
|
+
export type IDeleteMessageResponse = IApiEnvelope<{
|
|
20
|
+
deleted: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
export type IPromoteToGroupResponse<TId = string, TData = string> = IApiEnvelope<IGroup<TId, TData>>;
|
|
23
|
+
export type ICreateGroupResponse<TId = string, TData = string> = IApiEnvelope<IGroup<TId, TData>>;
|
|
24
|
+
export type IGetGroupResponse<TId = string, TData = string> = IApiEnvelope<IGroup<TId, TData>>;
|
|
25
|
+
export type ISendGroupMessageResponse<TId = string, TData = string> = IApiEnvelope<ICommunicationMessage<TId, TData>>;
|
|
26
|
+
export type IGetGroupMessagesResponse<TId = string, TData = string> = IApiEnvelope<IPaginatedResult<ICommunicationMessage<TId, TData>>>;
|
|
27
|
+
export type IAddGroupMembersResponse = IApiEnvelope<{
|
|
28
|
+
added: string[];
|
|
29
|
+
}>;
|
|
30
|
+
export type IRemoveGroupMemberResponse = IApiEnvelope<{
|
|
31
|
+
removed: string;
|
|
32
|
+
}>;
|
|
33
|
+
export type ILeaveGroupResponse = IApiEnvelope<{
|
|
34
|
+
left: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
export type IAssignRoleResponse = IApiEnvelope<{
|
|
37
|
+
memberId: string;
|
|
38
|
+
role: string;
|
|
39
|
+
}>;
|
|
40
|
+
export type ICreateChannelResponse<TId = string, TData = string> = IApiEnvelope<IChannel<TId, TData>>;
|
|
41
|
+
export type IListChannelsResponse<TId = string, TData = string> = IApiEnvelope<IPaginatedResult<IChannel<TId, TData>>>;
|
|
42
|
+
export type IGetChannelResponse<TId = string, TData = string> = IApiEnvelope<IChannel<TId, TData>>;
|
|
43
|
+
export type IUpdateChannelResponse<TId = string, TData = string> = IApiEnvelope<IChannel<TId, TData>>;
|
|
44
|
+
export type IDeleteChannelResponse = IApiEnvelope<{
|
|
45
|
+
deleted: boolean;
|
|
46
|
+
}>;
|
|
47
|
+
export type IJoinChannelResponse = IApiEnvelope<{
|
|
48
|
+
joined: boolean;
|
|
49
|
+
}>;
|
|
50
|
+
export type ILeaveChannelResponse = IApiEnvelope<{
|
|
51
|
+
left: boolean;
|
|
52
|
+
}>;
|
|
53
|
+
export type ISendChannelMessageResponse<TId = string, TData = string> = IApiEnvelope<ICommunicationMessage<TId, TData>>;
|
|
54
|
+
export type IGetChannelMessagesResponse<TId = string, TData = string> = IApiEnvelope<IPaginatedResult<ICommunicationMessage<TId, TData>>>;
|
|
55
|
+
export type ISearchMessagesResponse<TId = string, TData = string> = IApiEnvelope<IPaginatedResult<ICommunicationMessage<TId, TData>>>;
|
|
56
|
+
export type ICreateInviteResponse<TId = string> = IApiEnvelope<IInviteToken<TId>>;
|
|
57
|
+
export type IRedeemInviteResponse = IApiEnvelope<{
|
|
58
|
+
redeemed: boolean;
|
|
59
|
+
}>;
|
|
60
|
+
export type IMuteChannelMemberResponse = IApiEnvelope<{
|
|
61
|
+
muted: boolean;
|
|
62
|
+
until: string;
|
|
63
|
+
}>;
|
|
64
|
+
export type IKickChannelMemberResponse = IApiEnvelope<{
|
|
65
|
+
kicked: boolean;
|
|
66
|
+
}>;
|
|
67
|
+
export type IEditMessageResponse<TId = string, TData = string> = IApiEnvelope<ICommunicationMessage<TId, TData>>;
|
|
68
|
+
export type IAddReactionResponse = IApiEnvelope<{
|
|
69
|
+
reactionId: string;
|
|
70
|
+
emoji: string;
|
|
71
|
+
}>;
|
|
72
|
+
export type IRemoveReactionResponse = IApiEnvelope<{
|
|
73
|
+
removed: boolean;
|
|
74
|
+
}>;
|
|
75
|
+
export type IPinMessageResponse = IApiEnvelope<{
|
|
76
|
+
pinned: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
export type IUnpinMessageResponse = IApiEnvelope<{
|
|
79
|
+
unpinned: boolean;
|
|
80
|
+
}>;
|
|
81
|
+
export type ISearchAllMessagesResponse<TId = string, TData = string> = IApiEnvelope<IPaginatedResult<ISearchResultItem<TId, TData>>>;
|
|
82
|
+
//# sourceMappingURL=communicationResponses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communicationResponses.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/communicationResponses.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Communication API response interfaces.
|
|
4
|
+
* All responses use the IApiEnvelope wrapper defined in communication.ts.
|
|
5
|
+
*
|
|
6
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
7
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
8
|
+
* (extending Response) live in brightchain-api-lib.
|
|
9
|
+
*
|
|
10
|
+
* Generic parameters:
|
|
11
|
+
* TId – identifier type (string on frontend, GuidV4Buffer on backend)
|
|
12
|
+
* TData – binary-data type (string/base64 on frontend, Buffer on backend)
|
|
13
|
+
*
|
|
14
|
+
* Requirements: 10.1
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
//# sourceMappingURL=communicationResponses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communicationResponses.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/communicationResponses.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cryptocurrency and Git signing API response interfaces.
|
|
3
|
+
*
|
|
4
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
5
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
6
|
+
* (extending Response) live in brightchain-api-lib.
|
|
7
|
+
*
|
|
8
|
+
* Requirements: 6.1-6.10, 7.1-7.10
|
|
9
|
+
*/
|
|
10
|
+
import { IApiEnvelope } from '../communication';
|
|
11
|
+
import { IEthereumWallet } from '../crypto/ethereumWallet';
|
|
12
|
+
import { IGitPublicKeyExport, IGitSignature, IGitSignedObject, IGitVerificationResult } from '../crypto/gitSignature';
|
|
13
|
+
export type IDeriveAddressResponse<TId = string> = IApiEnvelope<IEthereumWallet<TId>>;
|
|
14
|
+
export type ISignMessageResponse<TId = string> = IApiEnvelope<{
|
|
15
|
+
memberId: TId;
|
|
16
|
+
message: string;
|
|
17
|
+
signature: string;
|
|
18
|
+
recoveryParam: number;
|
|
19
|
+
}>;
|
|
20
|
+
export type IVerifySignatureResponse = IApiEnvelope<{
|
|
21
|
+
valid: boolean;
|
|
22
|
+
recoveredAddress: string;
|
|
23
|
+
}>;
|
|
24
|
+
export type IGetWalletResponse<TId = string> = IApiEnvelope<IEthereumWallet<TId>>;
|
|
25
|
+
export type ISignCommitResponse<TId = string> = IApiEnvelope<IGitSignedObject<TId>>;
|
|
26
|
+
export type ISignTagResponse<TId = string> = IApiEnvelope<IGitSignedObject<TId>>;
|
|
27
|
+
export type IVerifyGitSignatureResponse<TId = string> = IApiEnvelope<IGitVerificationResult<TId>>;
|
|
28
|
+
export type IExportGitPublicKeyResponse<TId = string> = IApiEnvelope<IGitPublicKeyExport<TId>>;
|
|
29
|
+
export type IGetGitSigningKeyResponse<TId = string> = IApiEnvelope<IGitSignature<TId>>;
|
|
30
|
+
//# sourceMappingURL=cryptoResponses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cryptoResponses.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/cryptoResponses.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAIhC,MAAM,MAAM,sBAAsB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAC7D,eAAe,CAAC,GAAG,CAAC,CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAAC;IAC5D,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC;IAClD,KAAK,EAAE,OAAO,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CACzD,eAAe,CAAC,GAAG,CAAC,CACrB,CAAC;AAIF,MAAM,MAAM,mBAAmB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAC1D,gBAAgB,CAAC,GAAG,CAAC,CACtB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CACvD,gBAAgB,CAAC,GAAG,CAAC,CACtB,CAAC;AAEF,MAAM,MAAM,2BAA2B,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAClE,sBAAsB,CAAC,GAAG,CAAC,CAC5B,CAAC;AAEF,MAAM,MAAM,2BAA2B,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAClE,mBAAmB,CAAC,GAAG,CAAC,CACzB,CAAC;AAEF,MAAM,MAAM,yBAAyB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAChE,aAAa,CAAC,GAAG,CAAC,CACnB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Cryptocurrency and Git signing API response interfaces.
|
|
4
|
+
*
|
|
5
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
6
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
7
|
+
* (extending Response) live in brightchain-api-lib.
|
|
8
|
+
*
|
|
9
|
+
* Requirements: 6.1-6.10, 7.1-7.10
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
//# sourceMappingURL=cryptoResponses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cryptoResponses.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/cryptoResponses.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Device provisioning API response interfaces.
|
|
3
|
+
*
|
|
4
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
5
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
6
|
+
* (extending Response) live in brightchain-api-lib.
|
|
7
|
+
*
|
|
8
|
+
* Generic parameters:
|
|
9
|
+
* TId – identifier type (string on frontend, GuidV4Buffer on backend)
|
|
10
|
+
*
|
|
11
|
+
* Requirements: 3.1-3.8
|
|
12
|
+
*/
|
|
13
|
+
import { IApiEnvelope } from '../communication';
|
|
14
|
+
import { IDeviceMetadata } from '../identity/device';
|
|
15
|
+
export type IProvisionDeviceResponse<TId = string> = IApiEnvelope<{
|
|
16
|
+
device: IDeviceMetadata<TId>;
|
|
17
|
+
publicKeyHex: string;
|
|
18
|
+
derivationPath: string;
|
|
19
|
+
}>;
|
|
20
|
+
export type IListDevicesResponse<TId = string> = IApiEnvelope<ReadonlyArray<IDeviceMetadata<TId>>>;
|
|
21
|
+
export type IRevokeDeviceResponse = IApiEnvelope<{
|
|
22
|
+
revoked: boolean;
|
|
23
|
+
revokedAt: string;
|
|
24
|
+
}>;
|
|
25
|
+
export type IRenameDeviceResponse<TId = string> = IApiEnvelope<IDeviceMetadata<TId>>;
|
|
26
|
+
//# sourceMappingURL=deviceResponses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceResponses.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/deviceResponses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAIrD,MAAM,MAAM,wBAAwB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAAC;IAChE,MAAM,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,MAAM,oBAAoB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAC3D,aAAa,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CACpC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAC5D,eAAe,CAAC,GAAG,CAAC,CACrB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Device provisioning API response interfaces.
|
|
4
|
+
*
|
|
5
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
6
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
7
|
+
* (extending Response) live in brightchain-api-lib.
|
|
8
|
+
*
|
|
9
|
+
* Generic parameters:
|
|
10
|
+
* TId – identifier type (string on frontend, GuidV4Buffer on backend)
|
|
11
|
+
*
|
|
12
|
+
* Requirements: 3.1-3.8
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
//# sourceMappingURL=deviceResponses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceResponses.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/deviceResponses.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public key directory API response interfaces.
|
|
3
|
+
*
|
|
4
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
5
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
6
|
+
* (extending Response) live in brightchain-api-lib.
|
|
7
|
+
*
|
|
8
|
+
* Requirements: 5.1-5.10
|
|
9
|
+
*/
|
|
10
|
+
import { IApiEnvelope } from '../communication';
|
|
11
|
+
import { IPublicProfile } from '../identity/publicProfile';
|
|
12
|
+
export interface IDirectorySearchResultItem<TId = string> {
|
|
13
|
+
profile: IPublicProfile<TId>;
|
|
14
|
+
relevanceScore: number;
|
|
15
|
+
}
|
|
16
|
+
export type ISearchDirectoryResponse<TId = string> = IApiEnvelope<{
|
|
17
|
+
results: ReadonlyArray<IDirectorySearchResultItem<TId>>;
|
|
18
|
+
totalCount: number;
|
|
19
|
+
hasMore: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
export type IGetProfileResponse<TId = string> = IApiEnvelope<IPublicProfile<TId>>;
|
|
22
|
+
export type IUpdateProfileResponse<TId = string> = IApiEnvelope<IPublicProfile<TId>>;
|
|
23
|
+
export type ITogglePrivacyResponse = IApiEnvelope<{
|
|
24
|
+
privacyMode: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
//# sourceMappingURL=directoryResponses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directoryResponses.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/directoryResponses.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAI3D,MAAM,WAAW,0BAA0B,CAAC,GAAG,GAAG,MAAM;IACtD,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;CACxB;AAID,MAAM,MAAM,wBAAwB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAAC;IAChE,OAAO,EAAE,aAAa,CAAC,0BAA0B,CAAC,GAAG,CAAC,CAAC,CAAC;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAC1D,cAAc,CAAC,GAAG,CAAC,CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAC7D,cAAc,CAAC,GAAG,CAAC,CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC;IAChD,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Public key directory API response interfaces.
|
|
4
|
+
*
|
|
5
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
6
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
7
|
+
* (extending Response) live in brightchain-api-lib.
|
|
8
|
+
*
|
|
9
|
+
* Requirements: 5.1-5.10
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
//# sourceMappingURL=directoryResponses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directoryResponses.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/directoryResponses.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Email API response interfaces.
|
|
3
|
+
* All responses use the IApiEnvelope wrapper defined in communication.ts.
|
|
4
|
+
*
|
|
5
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
6
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
7
|
+
* (extending Response) live in brightchain-api-lib.
|
|
8
|
+
*
|
|
9
|
+
* Note: The underlying email interfaces (IEmailMetadata, ISendEmailResult,
|
|
10
|
+
* IEmailContent, IInboxResult, IDeliveryReceipt) are not currently generic
|
|
11
|
+
* over TId/TData. When those interfaces gain generic parameters in the future,
|
|
12
|
+
* these response types should be updated to thread them through.
|
|
13
|
+
*
|
|
14
|
+
* Requirements: 12.1, 12.2
|
|
15
|
+
*/
|
|
16
|
+
import { IEmailContent, IInboxResult, ISendEmailResult } from '../../services/messaging/emailMessageService';
|
|
17
|
+
import { IApiEnvelope } from '../communication';
|
|
18
|
+
import { IDeliveryReceipt } from '../messaging/emailDelivery';
|
|
19
|
+
import { IEmailMetadata } from '../messaging/emailMetadata';
|
|
20
|
+
export interface ISendEmailResultSerialized extends Omit<ISendEmailResult, 'deliveryStatus'> {
|
|
21
|
+
deliveryStatus: Record<string, IDeliveryReceipt>;
|
|
22
|
+
}
|
|
23
|
+
export type ISendEmailResponse = IApiEnvelope<ISendEmailResultSerialized>;
|
|
24
|
+
export type IReplyToEmailResponse = IApiEnvelope<ISendEmailResultSerialized>;
|
|
25
|
+
export type IForwardEmailResponse = IApiEnvelope<ISendEmailResultSerialized>;
|
|
26
|
+
export type IGetEmailResponse = IApiEnvelope<IEmailMetadata>;
|
|
27
|
+
export type IGetEmailContentResponse = IApiEnvelope<IEmailContent>;
|
|
28
|
+
export type IGetEmailThreadResponse = IApiEnvelope<IEmailMetadata[]>;
|
|
29
|
+
export type IQueryInboxResponse = IApiEnvelope<IInboxResult>;
|
|
30
|
+
export type IGetUnreadCountResponse = IApiEnvelope<{
|
|
31
|
+
unreadCount: number;
|
|
32
|
+
}>;
|
|
33
|
+
export type IDeleteEmailResponse = IApiEnvelope<{
|
|
34
|
+
deleted: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
export type IMarkAsReadResponse = IApiEnvelope<{
|
|
37
|
+
markedAsRead: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
export type IGetDeliveryStatusResponse = IApiEnvelope<Record<string, IDeliveryReceipt>>;
|
|
40
|
+
//# sourceMappingURL=emailResponses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emailResponses.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/emailResponses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,YAAY,EACZ,gBAAgB,EACjB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAO5D,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CACtD,gBAAgB,EAChB,gBAAgB,CACjB;IACC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CAClD;AAID,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,0BAA0B,CAAC,CAAC;AAE1E,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,0BAA0B,CAAC,CAAC;AAE7E,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,0BAA0B,CAAC,CAAC;AAI7E,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC;AAE7D,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,cAAc,EAAE,CAAC,CAAC;AAIrE,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;AAE7D,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAI5E,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAEtE,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAI1E,MAAM,MAAM,0BAA0B,GAAG,YAAY,CACnD,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CACjC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Email API response interfaces.
|
|
4
|
+
* All responses use the IApiEnvelope wrapper defined in communication.ts.
|
|
5
|
+
*
|
|
6
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
7
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
8
|
+
* (extending Response) live in brightchain-api-lib.
|
|
9
|
+
*
|
|
10
|
+
* Note: The underlying email interfaces (IEmailMetadata, ISendEmailResult,
|
|
11
|
+
* IEmailContent, IInboxResult, IDeliveryReceipt) are not currently generic
|
|
12
|
+
* over TId/TData. When those interfaces gain generic parameters in the future,
|
|
13
|
+
* these response types should be updated to thread them through.
|
|
14
|
+
*
|
|
15
|
+
* Requirements: 12.1, 12.2
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=emailResponses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emailResponses.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/emailResponses.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exploding message API response interfaces.
|
|
3
|
+
*
|
|
4
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
5
|
+
* frontend and backend can consume them.
|
|
6
|
+
*
|
|
7
|
+
* Requirements: 8.1-8.9
|
|
8
|
+
*/
|
|
9
|
+
import { IApiEnvelope } from '../communication';
|
|
10
|
+
export type ISetExpirationResponse = IApiEnvelope<{
|
|
11
|
+
messageId: string;
|
|
12
|
+
expiresAt?: string;
|
|
13
|
+
maxReads?: number;
|
|
14
|
+
}>;
|
|
15
|
+
export type IMarkReadResponse = IApiEnvelope<{
|
|
16
|
+
messageId: string;
|
|
17
|
+
readCount: number;
|
|
18
|
+
shouldExplode: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
export type IGetExpiredResponse = IApiEnvelope<{
|
|
21
|
+
expired: ReadonlyArray<{
|
|
22
|
+
messageId: string;
|
|
23
|
+
reason: 'time_expired' | 'read_count_exceeded';
|
|
24
|
+
}>;
|
|
25
|
+
totalCount: number;
|
|
26
|
+
}>;
|
|
27
|
+
export type IExplodeMessageResponse = IApiEnvelope<{
|
|
28
|
+
messageId: string;
|
|
29
|
+
exploded: boolean;
|
|
30
|
+
explodedAt: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type IGetExpirationInfoResponse = IApiEnvelope<{
|
|
33
|
+
messageId: string;
|
|
34
|
+
isExploding: boolean;
|
|
35
|
+
expiresAt?: string;
|
|
36
|
+
maxReads?: number;
|
|
37
|
+
readCount?: number;
|
|
38
|
+
remainingTimeMs?: number | null;
|
|
39
|
+
remainingReads?: number | null;
|
|
40
|
+
exploded: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
//# sourceMappingURL=explodingMessageResponses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explodingMessageResponses.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/explodingMessageResponses.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIhD,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC;IAC7C,OAAO,EAAE,aAAa,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,cAAc,GAAG,qBAAqB,CAAC;KAChD,CAAC,CAAC;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,YAAY,CAAC;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Exploding message API response interfaces.
|
|
4
|
+
*
|
|
5
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
6
|
+
* frontend and backend can consume them.
|
|
7
|
+
*
|
|
8
|
+
* Requirements: 8.1-8.9
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
//# sourceMappingURL=explodingMessageResponses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explodingMessageResponses.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/explodingMessageResponses.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity proof API response interfaces.
|
|
3
|
+
*
|
|
4
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
5
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
6
|
+
* (extending Response) live in brightchain-api-lib.
|
|
7
|
+
*
|
|
8
|
+
* Requirements: 4.1-4.10
|
|
9
|
+
*/
|
|
10
|
+
import { IApiEnvelope } from '../communication';
|
|
11
|
+
import { IIdentityProof } from '../identity/identityProof';
|
|
12
|
+
export type ICreateProofResponse<TId = string> = IApiEnvelope<{
|
|
13
|
+
proof: IIdentityProof<TId>;
|
|
14
|
+
instructions: string;
|
|
15
|
+
}>;
|
|
16
|
+
export type IVerifyProofResponse = IApiEnvelope<{
|
|
17
|
+
verified: boolean;
|
|
18
|
+
proofId: string;
|
|
19
|
+
}>;
|
|
20
|
+
export type ICheckProofUrlResponse = IApiEnvelope<{
|
|
21
|
+
valid: boolean;
|
|
22
|
+
proofId: string;
|
|
23
|
+
}>;
|
|
24
|
+
export type IRevokeProofResponse = IApiEnvelope<{
|
|
25
|
+
revoked: boolean;
|
|
26
|
+
revokedAt: string;
|
|
27
|
+
}>;
|
|
28
|
+
export type IGetInstructionsResponse = IApiEnvelope<{
|
|
29
|
+
platform: string;
|
|
30
|
+
instructions: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type IListProofsResponse<TId = string> = IApiEnvelope<ReadonlyArray<IIdentityProof<TId>>>;
|
|
33
|
+
//# sourceMappingURL=identityProofResponses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identityProofResponses.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/identityProofResponses.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAI3D,MAAM,MAAM,oBAAoB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAAC;IAC5D,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC;IAChD,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,CAAC,GAAG,GAAG,MAAM,IAAI,YAAY,CAC1D,aAAa,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CACnC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Identity proof API response interfaces.
|
|
4
|
+
*
|
|
5
|
+
* These are the data-shape types that live in brightchain-lib so both
|
|
6
|
+
* frontend and backend can consume them. The Express-specific wrappers
|
|
7
|
+
* (extending Response) live in brightchain-api-lib.
|
|
8
|
+
*
|
|
9
|
+
* Requirements: 4.1-4.10
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
//# sourceMappingURL=identityProofResponses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identityProofResponses.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/identityProofResponses.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export type * from './apiError';
|
|
2
2
|
export type * from './apiExpressValidationError';
|
|
3
|
+
export type * from './blockDataResponse';
|
|
3
4
|
export type * from './blockLocationResponse';
|
|
4
|
-
export type * from './
|
|
5
|
+
export type * from './communicationResponses';
|
|
5
6
|
export type * from './detailedHealthResponse';
|
|
6
7
|
export type * from './discoverBlockResponse';
|
|
8
|
+
export type * from './emailResponses';
|
|
7
9
|
export type * from './getBlock';
|
|
8
10
|
export type * from './getCbl';
|
|
9
11
|
export type * from './getMessageResponse';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,0BAA0B,CAAC;AAI9C,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result of a seal (encrypt + wrap key) operation.
|
|
3
|
+
*
|
|
4
|
+
* Uses Uint8Array for browser compatibility (Requirement 18.6).
|
|
5
|
+
*/
|
|
1
6
|
export interface ISealResults {
|
|
2
|
-
encryptedData:
|
|
3
|
-
encryptedKey:
|
|
7
|
+
encryptedData: Uint8Array;
|
|
8
|
+
encryptedKey: Uint8Array;
|
|
4
9
|
}
|
|
5
10
|
//# sourceMappingURL=sealResults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sealResults.d.ts","sourceRoot":"","sources":["../../../../../brightchain-lib/src/lib/interfaces/sealResults.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"sealResults.d.ts","sourceRoot":"","sources":["../../../../../brightchain-lib/src/lib/interfaces/sealResults.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,UAAU,CAAC;IAC1B,YAAY,EAAE,UAAU,CAAC;CAC1B"}
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* - WasmFecService (brightchain-api-lib) - Cross-platform WASM implementation
|
|
8
8
|
* - NativeRsFecService (brightchain-api-lib) - Apple Silicon hardware acceleration
|
|
9
9
|
*
|
|
10
|
+
* Uses Uint8Array for browser compatibility (Requirement 18.6).
|
|
11
|
+
*
|
|
10
12
|
* @requirements 1.8, 4.5, 4.6, 4.8
|
|
11
13
|
*/
|
|
12
14
|
/**
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
*/
|
|
15
17
|
export interface ParityData {
|
|
16
18
|
/** The parity data bytes */
|
|
17
|
-
data:
|
|
19
|
+
data: Uint8Array;
|
|
18
20
|
/** The index of this parity shard (0-based) */
|
|
19
21
|
index: number;
|
|
20
22
|
}
|
|
@@ -23,7 +25,7 @@ export interface ParityData {
|
|
|
23
25
|
*/
|
|
24
26
|
export interface FecRecoveryResult {
|
|
25
27
|
/** The recovered data */
|
|
26
|
-
data:
|
|
28
|
+
data: Uint8Array;
|
|
27
29
|
/** Whether recovery was successful */
|
|
28
30
|
recovered: boolean;
|
|
29
31
|
}
|
|
@@ -69,7 +71,7 @@ export interface IFecService {
|
|
|
69
71
|
* // parity[0] and parity[1] can be stored separately for recovery
|
|
70
72
|
* ```
|
|
71
73
|
*/
|
|
72
|
-
createParityData(blockData:
|
|
74
|
+
createParityData(blockData: Uint8Array, parityCount: number): Promise<ParityData[]>;
|
|
73
75
|
/**
|
|
74
76
|
* Recover block data using parity data.
|
|
75
77
|
*
|
|
@@ -92,7 +94,7 @@ export interface IFecService {
|
|
|
92
94
|
* }
|
|
93
95
|
* ```
|
|
94
96
|
*/
|
|
95
|
-
recoverFileData(corruptedData:
|
|
97
|
+
recoverFileData(corruptedData: Uint8Array | null, parityData: ParityData[], originalSize: number): Promise<FecRecoveryResult>;
|
|
96
98
|
/**
|
|
97
99
|
* Verify block integrity against its parity data.
|
|
98
100
|
*
|
|
@@ -111,6 +113,6 @@ export interface IFecService {
|
|
|
111
113
|
* }
|
|
112
114
|
* ```
|
|
113
115
|
*/
|
|
114
|
-
verifyFileIntegrity(blockData:
|
|
116
|
+
verifyFileIntegrity(blockData: Uint8Array, parityData: ParityData[]): Promise<boolean>;
|
|
115
117
|
}
|
|
116
118
|
//# sourceMappingURL=fecService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fecService.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/fecService.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"fecService.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/fecService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,4BAA4B;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,yBAAyB;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,sCAAsC;IACtC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;OASG;IACH,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhC;;;;;;;;;;;;;;;;OAgBG;IACH,gBAAgB,CACd,SAAS,EAAE,UAAU,EACrB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAEzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,eAAe,CACb,aAAa,EAAE,UAAU,GAAG,IAAI,EAChC,UAAU,EAAE,UAAU,EAAE,EACxB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE9B;;;;;;;;;;;;;;;;;OAiBG;IACH,mBAAmB,CACjB,SAAS,EAAE,UAAU,EACrB,UAAU,EAAE,UAAU,EAAE,GACvB,OAAO,CAAC,OAAO,CAAC,CAAC;CACrB"}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* - WasmFecService (brightchain-api-lib) - Cross-platform WASM implementation
|
|
9
9
|
* - NativeRsFecService (brightchain-api-lib) - Apple Silicon hardware acceleration
|
|
10
10
|
*
|
|
11
|
+
* Uses Uint8Array for browser compatibility (Requirement 18.6).
|
|
12
|
+
*
|
|
11
13
|
* @requirements 1.8, 4.5, 4.6, 4.8
|
|
12
14
|
*/
|
|
13
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fecService.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/fecService.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"fecService.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/fecService.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Details of a single encrypted block including the ephemeral public key.
|
|
3
|
+
*
|
|
4
|
+
* Uses Uint8Array for browser compatibility (Requirement 18.6).
|
|
5
|
+
*/
|
|
1
6
|
export interface ISingleEncryptedBlockDetails {
|
|
2
|
-
encryptedData:
|
|
3
|
-
ephemeralPublicKey:
|
|
7
|
+
encryptedData: Uint8Array;
|
|
8
|
+
ephemeralPublicKey: Uint8Array;
|
|
4
9
|
}
|
|
5
10
|
//# sourceMappingURL=singleEncryptedBlockDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"singleEncryptedBlockDetails.d.ts","sourceRoot":"","sources":["../../../../../brightchain-lib/src/lib/interfaces/singleEncryptedBlockDetails.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"singleEncryptedBlockDetails.d.ts","sourceRoot":"","sources":["../../../../../brightchain-lib/src/lib/interfaces/singleEncryptedBlockDetails.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,UAAU,CAAC;IAC1B,kBAAkB,EAAE,UAAU,CAAC;CAChC"}
|