@credo-ts/core 0.6.0-pr-2134-20241217213340 → 0.6.0-pr-2195-20250217170804
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/build/agent/Agent.d.ts +0 -15
- package/build/agent/Agent.js +5 -102
- package/build/agent/Agent.js.map +1 -1
- package/build/agent/AgentConfig.d.ts +0 -24
- package/build/agent/AgentConfig.js +19 -53
- package/build/agent/AgentConfig.js.map +1 -1
- package/build/agent/AgentModules.d.ts +3 -26
- package/build/agent/AgentModules.js +4 -19
- package/build/agent/AgentModules.js.map +1 -1
- package/build/agent/BaseAgent.d.ts +1 -36
- package/build/agent/BaseAgent.js +0 -48
- package/build/agent/BaseAgent.js.map +1 -1
- package/build/agent/EventEmitter.js +5 -2
- package/build/agent/EventEmitter.js.map +1 -1
- package/build/agent/Events.d.ts +0 -36
- package/build/agent/Events.js +0 -7
- package/build/agent/Events.js.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.js +1 -1
- package/build/agent/context/DefaultAgentContextProvider.js.map +1 -1
- package/build/constants.d.ts +0 -1
- package/build/constants.js +2 -3
- package/build/constants.js.map +1 -1
- package/build/crypto/JwsService.d.ts +3 -2
- package/build/crypto/JwsService.js +18 -9
- package/build/crypto/JwsService.js.map +1 -1
- package/build/crypto/Key.d.ts +3 -3
- package/build/crypto/Key.js +10 -5
- package/build/crypto/Key.js.map +1 -1
- package/build/crypto/WalletKeyPair.js +1 -2
- package/build/crypto/WalletKeyPair.js.map +1 -1
- package/build/crypto/index.d.ts +1 -1
- package/build/crypto/jose/jwk/Ed25519Jwk.d.ts +5 -5
- package/build/crypto/jose/jwk/Ed25519Jwk.js +11 -6
- package/build/crypto/jose/jwk/Ed25519Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/Jwk.d.ts +1 -2
- package/build/crypto/jose/jwk/Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/K256Jwk.d.ts +12 -11
- package/build/crypto/jose/jwk/K256Jwk.js +34 -18
- package/build/crypto/jose/jwk/K256Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/P256Jwk.d.ts +12 -11
- package/build/crypto/jose/jwk/P256Jwk.js +34 -18
- package/build/crypto/jose/jwk/P256Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/P384Jwk.d.ts +12 -11
- package/build/crypto/jose/jwk/P384Jwk.js +34 -18
- package/build/crypto/jose/jwk/P384Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/P521Jwk.d.ts +12 -11
- package/build/crypto/jose/jwk/P521Jwk.js +34 -18
- package/build/crypto/jose/jwk/P521Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/X25519Jwk.d.ts +5 -5
- package/build/crypto/jose/jwk/X25519Jwk.js +11 -6
- package/build/crypto/jose/jwk/X25519Jwk.js.map +1 -1
- package/build/crypto/jose/jwk/transform.d.ts +3 -3
- package/build/crypto/jose/jwt/Jwt.d.ts +1 -0
- package/build/crypto/jose/jwt/Jwt.js.map +1 -1
- package/build/crypto/jose/jwt/JwtPayload.js +20 -25
- package/build/crypto/jose/jwt/JwtPayload.js.map +1 -1
- package/build/error/ClassValidationError.js +5 -4
- package/build/error/ClassValidationError.js.map +1 -1
- package/build/error/index.d.ts +0 -1
- package/build/error/index.js +0 -1
- package/build/error/index.js.map +1 -1
- package/build/index.d.ts +24 -35
- package/build/index.js +39 -56
- package/build/index.js.map +1 -1
- package/build/modules/cache/CacheModule.js +7 -4
- package/build/modules/cache/CacheModule.js.map +1 -1
- package/build/modules/cache/InMemoryLruCache.js +1 -1
- package/build/modules/cache/InMemoryLruCache.js.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.js +6 -5
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.js.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.js +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.js.map +1 -1
- package/build/modules/dcql/DcqlError.d.ts +8 -0
- package/build/modules/dcql/DcqlError.js +12 -0
- package/build/modules/dcql/DcqlError.js.map +1 -0
- package/build/modules/dcql/DcqlModule.d.ts +10 -0
- package/build/modules/dcql/DcqlModule.js +23 -0
- package/build/modules/dcql/DcqlModule.js.map +1 -0
- package/build/modules/dcql/DcqlService.d.ts +339 -0
- package/build/modules/dcql/DcqlService.js +301 -0
- package/build/modules/dcql/DcqlService.js.map +1 -0
- package/build/modules/dcql/index.d.ts +5 -0
- package/build/modules/{problem-reports → dcql}/index.js +4 -2
- package/build/modules/dcql/index.js.map +1 -0
- package/build/modules/dcql/models/DcqlCredentialsForRequest.d.ts +20 -0
- package/build/modules/{connections/models/InvitationDetails.js → dcql/models/DcqlCredentialsForRequest.js} +1 -1
- package/build/modules/dcql/models/DcqlCredentialsForRequest.js.map +1 -0
- package/build/modules/dcql/models/index.d.ts +23 -0
- package/build/modules/{basic-messages/services → dcql/models}/index.js +1 -1
- package/build/modules/dcql/models/index.js.map +1 -0
- package/build/modules/dcql/utils/DcqlPresentationsToCreate.d.ts +34 -0
- package/build/modules/dcql/utils/DcqlPresentationsToCreate.js +42 -0
- package/build/modules/dcql/utils/DcqlPresentationsToCreate.js.map +1 -0
- package/build/modules/dcql/utils/index.d.ts +1 -0
- package/build/modules/{basic-messages/handlers → dcql/utils}/index.js +1 -1
- package/build/modules/dcql/utils/index.js.map +1 -0
- package/build/modules/dids/DidsModuleConfig.js +3 -5
- package/build/modules/dids/DidsModuleConfig.js.map +1 -1
- package/build/modules/dids/domain/DidDocument.js +14 -52
- package/build/modules/dids/domain/DidDocument.js.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.js +8 -2
- package/build/modules/dids/domain/key-type/keyDidMapping.js.map +1 -1
- package/build/modules/dids/domain/service/DidCommV1Service.js +1 -1
- package/build/modules/dids/domain/service/DidCommV1Service.js.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.js +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.js.map +1 -1
- package/build/modules/dids/domain/service/IndyAgentService.js +1 -1
- package/build/modules/dids/domain/service/IndyAgentService.js.map +1 -1
- package/build/modules/dids/domain/service/NewDidCommV2Service.js +1 -1
- package/build/modules/dids/domain/service/NewDidCommV2Service.js.map +1 -1
- package/build/modules/dids/domain/service/ServiceTransformer.js +3 -3
- package/build/modules/dids/domain/service/ServiceTransformer.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.js +2 -3
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.js.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.js +2 -2
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.js.map +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.js +4 -5
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.js.map +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.js +4 -5
- package/build/modules/dids/methods/key/KeyDidRegistrar.js.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.js +7 -8
- package/build/modules/dids/methods/peer/PeerDidRegistrar.js.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.ts +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.js +1 -2
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.js.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.js +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.js.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.d.ts +0 -3
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.js +15 -48
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.js.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.d.ts +0 -5
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.js +0 -25
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.js.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.js +5 -3
- package/build/modules/dids/methods/web/WebDidResolver.js.map +1 -1
- package/build/modules/dids/repository/DidRecord.js +12 -6
- package/build/modules/dids/repository/DidRecord.js.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.js +54 -16
- package/build/modules/dids/services/DidRegistrarService.js.map +1 -1
- package/build/modules/dids/services/DidResolverService.js +30 -10
- package/build/modules/dids/services/DidResolverService.js.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.ts +8 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.js +37 -22
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.js.map +1 -1
- package/build/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.d.ts +4 -8
- package/build/modules/dif-presentation-exchange/models/TransactionData.d.ts +36 -0
- package/build/{agent/MessageHandler.js → modules/dif-presentation-exchange/models/TransactionData.js} +1 -1
- package/build/modules/dif-presentation-exchange/models/TransactionData.js.map +1 -0
- package/build/modules/dif-presentation-exchange/models/index.d.ts +3 -2
- package/build/modules/dif-presentation-exchange/models/index.js.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/credentialSelection.js +27 -23
- package/build/modules/dif-presentation-exchange/utils/credentialSelection.js.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.ts +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.d.ts +6 -4
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.js +11 -3
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.js.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/transform.d.ts +1 -1
- package/build/modules/dif-presentation-exchange/utils/transform.js +2 -19
- package/build/modules/dif-presentation-exchange/utils/transform.js.map +1 -1
- package/build/modules/generic-records/repository/GenericRecord.js +6 -5
- package/build/modules/generic-records/repository/GenericRecord.js.map +1 -1
- package/build/modules/mdoc/Mdoc.d.ts +15 -1
- package/build/modules/mdoc/Mdoc.js +43 -21
- package/build/modules/mdoc/Mdoc.js.map +1 -1
- package/build/modules/mdoc/MdocContext.js +4 -1
- package/build/modules/mdoc/MdocContext.js.map +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.ts +15 -1
- package/build/modules/mdoc/MdocDeviceResponse.js +163 -38
- package/build/modules/mdoc/MdocDeviceResponse.js.map +1 -1
- package/build/modules/mdoc/MdocOptions.d.ts +23 -11
- package/build/modules/mdoc/MdocOptions.js +3 -0
- package/build/modules/mdoc/MdocOptions.js.map +1 -1
- package/build/modules/mdoc/MdocService.d.ts +2 -1
- package/build/modules/mdoc/MdocService.js +3 -0
- package/build/modules/mdoc/MdocService.js.map +1 -1
- package/build/modules/mdoc/index.d.ts +2 -0
- package/build/modules/mdoc/index.js +5 -0
- package/build/modules/mdoc/index.js.map +1 -1
- package/build/modules/mdoc/mdocSupportedAlgs.d.ts +4 -0
- package/build/modules/mdoc/mdocSupportedAlgs.js +15 -0
- package/build/modules/mdoc/mdocSupportedAlgs.js.map +1 -0
- package/build/modules/mdoc/mdocUtil.d.ts +1 -0
- package/build/modules/mdoc/mdocUtil.js +7 -0
- package/build/modules/mdoc/mdocUtil.js.map +1 -0
- package/build/modules/mdoc/repository/MdocRecord.d.ts +8 -0
- package/build/modules/mdoc/repository/MdocRecord.js +20 -6
- package/build/modules/mdoc/repository/MdocRecord.js.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts +6 -0
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts +5 -1
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts +23 -2
- package/build/modules/sd-jwt-vc/SdJwtVcService.js +84 -34
- package/build/modules/sd-jwt-vc/SdJwtVcService.js.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcTransactionData.d.ts +10 -0
- package/build/modules/sd-jwt-vc/SdJwtVcTransactionData.js +43 -0
- package/build/modules/sd-jwt-vc/SdJwtVcTransactionData.js.map +1 -0
- package/build/modules/sd-jwt-vc/decodeSdJwtVc.d.ts +2 -7
- package/build/modules/sd-jwt-vc/decodeSdJwtVc.js +7 -2
- package/build/modules/sd-jwt-vc/decodeSdJwtVc.js.map +1 -1
- package/build/modules/sd-jwt-vc/disclosureFrame.d.ts +6 -0
- package/build/modules/sd-jwt-vc/disclosureFrame.js +21 -0
- package/build/modules/sd-jwt-vc/disclosureFrame.js.map +1 -0
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts +8 -0
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.js +21 -5
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.js.map +1 -1
- package/build/modules/vc/W3cCredentialService.js +1 -1
- package/build/modules/vc/W3cCredentialService.js.map +1 -1
- package/build/modules/vc/W3cCredentialServiceOptions.d.ts +2 -12
- package/build/modules/vc/W3cCredentialsModuleConfig.js +2 -3
- package/build/modules/vc/W3cCredentialsModuleConfig.js.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.js +15 -27
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.js.map +1 -1
- package/build/modules/vc/data-integrity/deriveProof.js +2 -3
- package/build/modules/vc/data-integrity/deriveProof.js.map +1 -1
- package/build/modules/vc/data-integrity/index.d.ts +1 -0
- package/build/modules/vc/data-integrity/index.js +3 -1
- package/build/modules/vc/data-integrity/index.js.map +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.js +4 -1
- package/build/modules/vc/data-integrity/jsonldUtil.js.map +1 -1
- package/build/modules/vc/data-integrity/libraries/index.js +8 -2
- package/build/modules/vc/data-integrity/libraries/index.js.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.js +2 -4
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.js.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.js +2 -4
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.js.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.js +5 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.js.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.js +5 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.js.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.js +28 -12
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.js.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.ts +1 -1
- package/build/modules/vc/jwt-vc/credentialTransformer.js +10 -4
- package/build/modules/vc/jwt-vc/credentialTransformer.js.map +1 -1
- package/build/modules/vc/jwt-vc/presentationTransformer.js +5 -1
- package/build/modules/vc/jwt-vc/presentationTransformer.js.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.js +1 -2
- package/build/modules/vc/models/credential/W3cCredential.js.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.js +3 -15
- package/build/modules/vc/models/credential/W3cCredentialSubject.js.map +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.js +2 -3
- package/build/modules/vc/models/presentation/W3cPresentation.js.map +1 -1
- package/build/modules/vc/models/presentation/index.d.ts +1 -0
- package/build/modules/vc/models/presentation/index.js +1 -0
- package/build/modules/vc/models/presentation/index.js.map +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.d.ts +4 -0
- package/build/modules/vc/repository/W3cCredentialRecord.js +18 -4
- package/build/modules/vc/repository/W3cCredentialRecord.js.map +1 -1
- package/build/modules/x509/X509Api.d.ts +2 -4
- package/build/modules/x509/X509Api.js +3 -6
- package/build/modules/x509/X509Api.js.map +1 -1
- package/build/modules/x509/X509Certificate.d.ts +13 -4
- package/build/modules/x509/X509Certificate.js +31 -31
- package/build/modules/x509/X509Certificate.js.map +1 -1
- package/build/modules/x509/X509ModuleConfig.d.ts +46 -8
- package/build/modules/x509/X509ModuleConfig.js +31 -9
- package/build/modules/x509/X509ModuleConfig.js.map +1 -1
- package/build/modules/x509/X509ServiceOptions.d.ts +6 -2
- package/build/modules/x509/extraction.d.ts +3 -0
- package/build/modules/x509/extraction.js +8 -0
- package/build/modules/x509/extraction.js.map +1 -0
- package/build/modules/x509/index.d.ts +1 -0
- package/build/modules/x509/index.js +1 -0
- package/build/modules/x509/index.js.map +1 -1
- package/build/plugins/DependencyManager.d.ts +0 -11
- package/build/plugins/DependencyManager.js +6 -30
- package/build/plugins/DependencyManager.js.map +1 -1
- package/build/plugins/Module.d.ts +2 -2
- package/build/storage/BaseRecord.js +4 -1
- package/build/storage/BaseRecord.js.map +1 -1
- package/build/storage/Metadata.js +5 -3
- package/build/storage/Metadata.js.map +1 -1
- package/build/storage/index.d.ts +0 -1
- package/build/storage/index.js +0 -1
- package/build/storage/index.js.map +1 -1
- package/build/storage/migration/UpdateAssistant.d.ts +2 -2
- package/build/storage/migration/UpdateAssistant.js +5 -7
- package/build/storage/migration/UpdateAssistant.js.map +1 -1
- package/build/storage/migration/isUpToDate.js +1 -1
- package/build/storage/migration/isUpToDate.js.map +1 -1
- package/build/storage/migration/repository/StorageVersionRecord.js +2 -3
- package/build/storage/migration/repository/StorageVersionRecord.js.map +1 -1
- package/build/storage/migration/updates/0.4-0.5/index.js +0 -4
- package/build/storage/migration/updates/0.4-0.5/index.js.map +1 -1
- package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.js +1 -2
- package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.js.map +1 -1
- package/build/storage/migration/updates.d.ts +7 -7
- package/build/storage/migration/updates.js +2 -4
- package/build/storage/migration/updates.js.map +1 -1
- package/build/types.d.ts +22 -52
- package/build/types.js +1 -6
- package/build/types.js.map +1 -1
- package/build/utils/MultiHashEncoder.js +1 -1
- package/build/utils/MultiHashEncoder.js.map +1 -1
- package/build/utils/fetch.js +5 -3
- package/build/utils/fetch.js.map +1 -1
- package/build/utils/index.d.ts +1 -1
- package/build/utils/index.js +1 -1
- package/build/utils/index.js.map +1 -1
- package/build/utils/transformers.d.ts +0 -1
- package/build/utils/transformers.js +2 -19
- package/build/utils/transformers.js.map +1 -1
- package/build/utils/validators.js +3 -4
- package/build/utils/validators.js.map +1 -1
- package/build/utils/version.js +1 -1
- package/build/utils/version.js.map +1 -1
- package/build/wallet/Wallet.d.ts +1 -1
- package/build/wallet/WalletApi.js +8 -2
- package/build/wallet/WalletApi.js.map +1 -1
- package/package.json +19 -20
- package/build/agent/AgentMessage.d.ts +0 -92
- package/build/agent/AgentMessage.js +0 -66
- package/build/agent/AgentMessage.js.map +0 -1
- package/build/agent/BaseMessage.d.ts +0 -11
- package/build/agent/BaseMessage.js +0 -34
- package/build/agent/BaseMessage.js.map +0 -1
- package/build/agent/Dispatcher.d.ts +0 -15
- package/build/agent/Dispatcher.js +0 -132
- package/build/agent/Dispatcher.js.map +0 -1
- package/build/agent/EnvelopeService.d.ts +0 -21
- package/build/agent/EnvelopeService.js +0 -66
- package/build/agent/EnvelopeService.js.map +0 -1
- package/build/agent/FeatureRegistry.d.ts +0 -21
- package/build/agent/FeatureRegistry.js +0 -66
- package/build/agent/FeatureRegistry.js.map +0 -1
- package/build/agent/MessageHandler.d.ts +0 -14
- package/build/agent/MessageHandler.js.map +0 -1
- package/build/agent/MessageHandlerMiddleware.d.ts +0 -7
- package/build/agent/MessageHandlerMiddleware.js +0 -26
- package/build/agent/MessageHandlerMiddleware.js.map +0 -1
- package/build/agent/MessageHandlerRegistry.d.ts +0 -30
- package/build/agent/MessageHandlerRegistry.js +0 -98
- package/build/agent/MessageHandlerRegistry.js.map +0 -1
- package/build/agent/MessageReceiver.d.ts +0 -63
- package/build/agent/MessageReceiver.js +0 -245
- package/build/agent/MessageReceiver.js.map +0 -1
- package/build/agent/MessageSender.d.ts +0 -56
- package/build/agent/MessageSender.js +0 -472
- package/build/agent/MessageSender.js.map +0 -1
- package/build/agent/TransportService.d.ts +0 -32
- package/build/agent/TransportService.js +0 -78
- package/build/agent/TransportService.js.map +0 -1
- package/build/agent/getOutboundMessageContext.d.ts +0 -27
- package/build/agent/getOutboundMessageContext.js +0 -198
- package/build/agent/getOutboundMessageContext.js.map +0 -1
- package/build/agent/models/InboundMessageContext.d.ts +0 -46
- package/build/agent/models/InboundMessageContext.js +0 -48
- package/build/agent/models/InboundMessageContext.js.map +0 -1
- package/build/agent/models/OutboundMessageContext.d.ts +0 -51
- package/build/agent/models/OutboundMessageContext.js +0 -46
- package/build/agent/models/OutboundMessageContext.js.map +0 -1
- package/build/agent/models/OutboundMessageSendStatus.d.ts +0 -6
- package/build/agent/models/OutboundMessageSendStatus.js +0 -11
- package/build/agent/models/OutboundMessageSendStatus.js.map +0 -1
- package/build/agent/models/features/Feature.d.ts +0 -18
- package/build/agent/models/features/Feature.js +0 -62
- package/build/agent/models/features/Feature.js.map +0 -1
- package/build/agent/models/features/FeatureQuery.d.ts +0 -9
- package/build/agent/models/features/FeatureQuery.js +0 -33
- package/build/agent/models/features/FeatureQuery.js.map +0 -1
- package/build/agent/models/features/GoalCode.d.ts +0 -7
- package/build/agent/models/features/GoalCode.js +0 -12
- package/build/agent/models/features/GoalCode.js.map +0 -1
- package/build/agent/models/features/GovernanceFramework.d.ts +0 -7
- package/build/agent/models/features/GovernanceFramework.js +0 -12
- package/build/agent/models/features/GovernanceFramework.js.map +0 -1
- package/build/agent/models/features/Protocol.d.ts +0 -10
- package/build/agent/models/features/Protocol.js +0 -30
- package/build/agent/models/features/Protocol.js.map +0 -1
- package/build/agent/models/features/index.d.ts +0 -5
- package/build/agent/models/features/index.js +0 -22
- package/build/agent/models/features/index.js.map +0 -1
- package/build/agent/models/index.d.ts +0 -4
- package/build/agent/models/index.js +0 -21
- package/build/agent/models/index.js.map +0 -1
- package/build/crypto/jose/jwk/ecCompression.d.ts +0 -5
- package/build/crypto/jose/jwk/ecCompression.js +0 -108
- package/build/crypto/jose/jwk/ecCompression.js.map +0 -1
- package/build/decorators/ack/AckDecorator.d.ts +0 -13
- package/build/decorators/ack/AckDecorator.js +0 -38
- package/build/decorators/ack/AckDecorator.js.map +0 -1
- package/build/decorators/ack/AckDecoratorExtension.d.ts +0 -13
- package/build/decorators/ack/AckDecoratorExtension.js +0 -38
- package/build/decorators/ack/AckDecoratorExtension.js.map +0 -1
- package/build/decorators/attachment/Attachment.d.ts +0 -75
- package/build/decorators/attachment/Attachment.js +0 -168
- package/build/decorators/attachment/Attachment.js.map +0 -1
- package/build/decorators/attachment/AttachmentExtension.d.ts +0 -15
- package/build/decorators/attachment/AttachmentExtension.js +0 -41
- package/build/decorators/attachment/AttachmentExtension.js.map +0 -1
- package/build/decorators/l10n/L10nDecorator.d.ts +0 -7
- package/build/decorators/l10n/L10nDecorator.js +0 -13
- package/build/decorators/l10n/L10nDecorator.js.map +0 -1
- package/build/decorators/l10n/L10nDecoratorExtension.d.ts +0 -12
- package/build/decorators/l10n/L10nDecoratorExtension.js +0 -40
- package/build/decorators/l10n/L10nDecoratorExtension.js.map +0 -1
- package/build/decorators/service/ServiceDecorator.d.ts +0 -20
- package/build/decorators/service/ServiceDecorator.js +0 -63
- package/build/decorators/service/ServiceDecorator.js.map +0 -1
- package/build/decorators/service/ServiceDecoratorExtension.d.ts +0 -12
- package/build/decorators/service/ServiceDecoratorExtension.js +0 -31
- package/build/decorators/service/ServiceDecoratorExtension.js.map +0 -1
- package/build/decorators/signature/SignatureDecorator.d.ts +0 -11
- package/build/decorators/signature/SignatureDecorator.js +0 -55
- package/build/decorators/signature/SignatureDecorator.js.map +0 -1
- package/build/decorators/signature/SignatureDecoratorUtils.d.ts +0 -21
- package/build/decorators/signature/SignatureDecoratorUtils.js +0 -58
- package/build/decorators/signature/SignatureDecoratorUtils.js.map +0 -1
- package/build/decorators/thread/ThreadDecorator.d.ts +0 -26
- package/build/decorators/thread/ThreadDecorator.js +0 -52
- package/build/decorators/thread/ThreadDecorator.js.map +0 -1
- package/build/decorators/thread/ThreadDecoratorExtension.d.ts +0 -15
- package/build/decorators/thread/ThreadDecoratorExtension.js +0 -36
- package/build/decorators/thread/ThreadDecoratorExtension.js.map +0 -1
- package/build/decorators/timing/TimingDecorator.d.ts +0 -38
- package/build/decorators/timing/TimingDecorator.js +0 -93
- package/build/decorators/timing/TimingDecorator.js.map +0 -1
- package/build/decorators/timing/TimingDecoratorExtension.d.ts +0 -14
- package/build/decorators/timing/TimingDecoratorExtension.js +0 -32
- package/build/decorators/timing/TimingDecoratorExtension.js.map +0 -1
- package/build/decorators/transport/TransportDecorator.d.ts +0 -20
- package/build/decorators/transport/TransportDecorator.js +0 -51
- package/build/decorators/transport/TransportDecorator.js.map +0 -1
- package/build/decorators/transport/TransportDecoratorExtension.d.ts +0 -13
- package/build/decorators/transport/TransportDecoratorExtension.js +0 -54
- package/build/decorators/transport/TransportDecoratorExtension.js.map +0 -1
- package/build/error/MessageSendingError.d.ts +0 -9
- package/build/error/MessageSendingError.js +0 -12
- package/build/error/MessageSendingError.js.map +0 -1
- package/build/modules/basic-messages/BasicMessageEvents.d.ts +0 -13
- package/build/modules/basic-messages/BasicMessageEvents.js +0 -8
- package/build/modules/basic-messages/BasicMessageEvents.js.map +0 -1
- package/build/modules/basic-messages/BasicMessageRole.d.ts +0 -4
- package/build/modules/basic-messages/BasicMessageRole.js +0 -9
- package/build/modules/basic-messages/BasicMessageRole.js.map +0 -1
- package/build/modules/basic-messages/BasicMessagesApi.d.ts +0 -58
- package/build/modules/basic-messages/BasicMessagesApi.js +0 -103
- package/build/modules/basic-messages/BasicMessagesApi.js.map +0 -1
- package/build/modules/basic-messages/BasicMessagesModule.d.ts +0 -10
- package/build/modules/basic-messages/BasicMessagesModule.js +0 -29
- package/build/modules/basic-messages/BasicMessagesModule.js.map +0 -1
- package/build/modules/basic-messages/handlers/BasicMessageHandler.d.ts +0 -9
- package/build/modules/basic-messages/handlers/BasicMessageHandler.js +0 -16
- package/build/modules/basic-messages/handlers/BasicMessageHandler.js.map +0 -1
- package/build/modules/basic-messages/handlers/index.d.ts +0 -1
- package/build/modules/basic-messages/handlers/index.js.map +0 -1
- package/build/modules/basic-messages/index.d.ts +0 -7
- package/build/modules/basic-messages/index.js +0 -24
- package/build/modules/basic-messages/index.js.map +0 -1
- package/build/modules/basic-messages/messages/BasicMessage.d.ts +0 -19
- package/build/modules/basic-messages/messages/BasicMessage.js +0 -53
- package/build/modules/basic-messages/messages/BasicMessage.js.map +0 -1
- package/build/modules/basic-messages/messages/index.d.ts +0 -1
- package/build/modules/basic-messages/messages/index.js +0 -18
- package/build/modules/basic-messages/messages/index.js.map +0 -1
- package/build/modules/basic-messages/repository/BasicMessageRecord.d.ts +0 -39
- package/build/modules/basic-messages/repository/BasicMessageRecord.js +0 -29
- package/build/modules/basic-messages/repository/BasicMessageRecord.js.map +0 -1
- package/build/modules/basic-messages/repository/BasicMessageRepository.d.ts +0 -7
- package/build/modules/basic-messages/repository/BasicMessageRepository.js +0 -32
- package/build/modules/basic-messages/repository/BasicMessageRepository.js.map +0 -1
- package/build/modules/basic-messages/repository/index.d.ts +0 -2
- package/build/modules/basic-messages/repository/index.js +0 -19
- package/build/modules/basic-messages/repository/index.js.map +0 -1
- package/build/modules/basic-messages/services/BasicMessageService.d.ts +0 -26
- package/build/modules/basic-messages/services/BasicMessageService.js +0 -86
- package/build/modules/basic-messages/services/BasicMessageService.js.map +0 -1
- package/build/modules/basic-messages/services/index.d.ts +0 -1
- package/build/modules/basic-messages/services/index.js.map +0 -1
- package/build/modules/common/index.d.ts +0 -1
- package/build/modules/common/index.js +0 -18
- package/build/modules/common/index.js.map +0 -1
- package/build/modules/common/messages/AckMessage.d.ts +0 -26
- package/build/modules/common/messages/AckMessage.js +0 -54
- package/build/modules/common/messages/AckMessage.js.map +0 -1
- package/build/modules/connections/ConnectionEvents.d.ts +0 -28
- package/build/modules/connections/ConnectionEvents.js +0 -9
- package/build/modules/connections/ConnectionEvents.js.map +0 -1
- package/build/modules/connections/ConnectionsApi.d.ts +0 -195
- package/build/modules/connections/ConnectionsApi.js +0 -450
- package/build/modules/connections/ConnectionsApi.js.map +0 -1
- package/build/modules/connections/ConnectionsModule.d.ts +0 -14
- package/build/modules/connections/ConnectionsModule.js +0 -43
- package/build/modules/connections/ConnectionsModule.js.map +0 -1
- package/build/modules/connections/ConnectionsModuleConfig.d.ts +0 -47
- package/build/modules/connections/ConnectionsModuleConfig.js +0 -57
- package/build/modules/connections/ConnectionsModuleConfig.js.map +0 -1
- package/build/modules/connections/DidExchangeProtocol.d.ts +0 -60
- package/build/modules/connections/DidExchangeProtocol.js +0 -484
- package/build/modules/connections/DidExchangeProtocol.js.map +0 -1
- package/build/modules/connections/DidExchangeStateMachine.d.ts +0 -10
- package/build/modules/connections/DidExchangeStateMachine.js +0 -78
- package/build/modules/connections/DidExchangeStateMachine.js.map +0 -1
- package/build/modules/connections/TrustPingEvents.d.ts +0 -21
- package/build/modules/connections/TrustPingEvents.js +0 -9
- package/build/modules/connections/TrustPingEvents.js.map +0 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.ts +0 -13
- package/build/modules/connections/errors/ConnectionProblemReportError.js +0 -19
- package/build/modules/connections/errors/ConnectionProblemReportError.js.map +0 -1
- package/build/modules/connections/errors/ConnectionProblemReportReason.d.ts +0 -11
- package/build/modules/connections/errors/ConnectionProblemReportReason.js +0 -16
- package/build/modules/connections/errors/ConnectionProblemReportReason.js.map +0 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts +0 -13
- package/build/modules/connections/errors/DidExchangeProblemReportError.js +0 -19
- package/build/modules/connections/errors/DidExchangeProblemReportError.js.map +0 -1
- package/build/modules/connections/errors/DidExchangeProblemReportReason.d.ts +0 -12
- package/build/modules/connections/errors/DidExchangeProblemReportReason.js +0 -17
- package/build/modules/connections/errors/DidExchangeProblemReportReason.js.map +0 -1
- package/build/modules/connections/errors/index.d.ts +0 -4
- package/build/modules/connections/errors/index.js +0 -21
- package/build/modules/connections/errors/index.js.map +0 -1
- package/build/modules/connections/handlers/AckMessageHandler.d.ts +0 -9
- package/build/modules/connections/handlers/AckMessageHandler.js +0 -15
- package/build/modules/connections/handlers/AckMessageHandler.js.map +0 -1
- package/build/modules/connections/handlers/ConnectionProblemReportHandler.d.ts +0 -9
- package/build/modules/connections/handlers/ConnectionProblemReportHandler.js +0 -15
- package/build/modules/connections/handlers/ConnectionProblemReportHandler.js.map +0 -1
- package/build/modules/connections/handlers/ConnectionRequestHandler.d.ts +0 -18
- package/build/modules/connections/handlers/ConnectionRequestHandler.js +0 -69
- package/build/modules/connections/handlers/ConnectionRequestHandler.js.map +0 -1
- package/build/modules/connections/handlers/ConnectionResponseHandler.d.ts +0 -16
- package/build/modules/connections/handlers/ConnectionResponseHandler.js +0 -62
- package/build/modules/connections/handlers/ConnectionResponseHandler.js.map +0 -1
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.d.ts +0 -11
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.js +0 -41
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.js.map +0 -1
- package/build/modules/connections/handlers/DidExchangeRequestHandler.d.ts +0 -18
- package/build/modules/connections/handlers/DidExchangeRequestHandler.js +0 -77
- package/build/modules/connections/handlers/DidExchangeRequestHandler.js.map +0 -1
- package/build/modules/connections/handlers/DidExchangeResponseHandler.d.ts +0 -18
- package/build/modules/connections/handlers/DidExchangeResponseHandler.js +0 -78
- package/build/modules/connections/handlers/DidExchangeResponseHandler.js.map +0 -1
- package/build/modules/connections/handlers/DidRotateAckHandler.d.ts +0 -9
- package/build/modules/connections/handlers/DidRotateAckHandler.js +0 -15
- package/build/modules/connections/handlers/DidRotateAckHandler.js.map +0 -1
- package/build/modules/connections/handlers/DidRotateHandler.d.ts +0 -11
- package/build/modules/connections/handlers/DidRotateHandler.js +0 -21
- package/build/modules/connections/handlers/DidRotateHandler.js.map +0 -1
- package/build/modules/connections/handlers/DidRotateProblemReportHandler.d.ts +0 -9
- package/build/modules/connections/handlers/DidRotateProblemReportHandler.js +0 -15
- package/build/modules/connections/handlers/DidRotateProblemReportHandler.js.map +0 -1
- package/build/modules/connections/handlers/HangupHandler.d.ts +0 -9
- package/build/modules/connections/handlers/HangupHandler.js +0 -15
- package/build/modules/connections/handlers/HangupHandler.js.map +0 -1
- package/build/modules/connections/handlers/TrustPingMessageHandler.d.ts +0 -11
- package/build/modules/connections/handlers/TrustPingMessageHandler.js +0 -27
- package/build/modules/connections/handlers/TrustPingMessageHandler.js.map +0 -1
- package/build/modules/connections/handlers/TrustPingResponseMessageHandler.d.ts +0 -9
- package/build/modules/connections/handlers/TrustPingResponseMessageHandler.js +0 -15
- package/build/modules/connections/handlers/TrustPingResponseMessageHandler.js.map +0 -1
- package/build/modules/connections/handlers/index.d.ts +0 -13
- package/build/modules/connections/handlers/index.js +0 -30
- package/build/modules/connections/handlers/index.js.map +0 -1
- package/build/modules/connections/index.d.ts +0 -10
- package/build/modules/connections/index.js +0 -27
- package/build/modules/connections/index.js.map +0 -1
- package/build/modules/connections/messages/ConnectionInvitationMessage.d.ts +0 -55
- package/build/modules/connections/messages/ConnectionInvitationMessage.js +0 -141
- package/build/modules/connections/messages/ConnectionInvitationMessage.js.map +0 -1
- package/build/modules/connections/messages/ConnectionProblemReportMessage.d.ts +0 -16
- package/build/modules/connections/messages/ConnectionProblemReportMessage.js +0 -35
- package/build/modules/connections/messages/ConnectionProblemReportMessage.js.map +0 -1
- package/build/modules/connections/messages/ConnectionRequestMessage.d.ts +0 -28
- package/build/modules/connections/messages/ConnectionRequestMessage.js +0 -64
- package/build/modules/connections/messages/ConnectionRequestMessage.js.map +0 -1
- package/build/modules/connections/messages/ConnectionResponseMessage.d.ts +0 -23
- package/build/modules/connections/messages/ConnectionResponseMessage.js +0 -52
- package/build/modules/connections/messages/ConnectionResponseMessage.js.map +0 -1
- package/build/modules/connections/messages/DidExchangeCompleteMessage.d.ts +0 -14
- package/build/modules/connections/messages/DidExchangeCompleteMessage.js +0 -38
- package/build/modules/connections/messages/DidExchangeCompleteMessage.js.map +0 -1
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.d.ts +0 -11
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.js +0 -30
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.js.map +0 -1
- package/build/modules/connections/messages/DidExchangeRequestMessage.d.ts +0 -29
- package/build/modules/connections/messages/DidExchangeRequestMessage.js +0 -73
- package/build/modules/connections/messages/DidExchangeRequestMessage.js.map +0 -1
- package/build/modules/connections/messages/DidExchangeResponseMessage.d.ts +0 -24
- package/build/modules/connections/messages/DidExchangeResponseMessage.js +0 -64
- package/build/modules/connections/messages/DidExchangeResponseMessage.js.map +0 -1
- package/build/modules/connections/messages/DidRotateAckMessage.d.ts +0 -12
- package/build/modules/connections/messages/DidRotateAckMessage.js +0 -31
- package/build/modules/connections/messages/DidRotateAckMessage.js.map +0 -1
- package/build/modules/connections/messages/DidRotateMessage.d.ts +0 -20
- package/build/modules/connections/messages/DidRotateMessage.js +0 -47
- package/build/modules/connections/messages/DidRotateMessage.js.map +0 -1
- package/build/modules/connections/messages/DidRotateProblemReportMessage.d.ts +0 -11
- package/build/modules/connections/messages/DidRotateProblemReportMessage.js +0 -30
- package/build/modules/connections/messages/DidRotateProblemReportMessage.js.map +0 -1
- package/build/modules/connections/messages/HangupMessage.d.ts +0 -19
- package/build/modules/connections/messages/HangupMessage.js +0 -40
- package/build/modules/connections/messages/HangupMessage.js.map +0 -1
- package/build/modules/connections/messages/TrustPingMessage.d.ts +0 -26
- package/build/modules/connections/messages/TrustPingMessage.js +0 -63
- package/build/modules/connections/messages/TrustPingMessage.js.map +0 -1
- package/build/modules/connections/messages/TrustPingResponseMessage.d.ts +0 -25
- package/build/modules/connections/messages/TrustPingResponseMessage.js +0 -57
- package/build/modules/connections/messages/TrustPingResponseMessage.js.map +0 -1
- package/build/modules/connections/messages/index.d.ts +0 -14
- package/build/modules/connections/messages/index.js +0 -31
- package/build/modules/connections/messages/index.js.map +0 -1
- package/build/modules/connections/models/Connection.d.ts +0 -10
- package/build/modules/connections/models/Connection.js +0 -38
- package/build/modules/connections/models/Connection.js.map +0 -1
- package/build/modules/connections/models/ConnectionRole.d.ts +0 -4
- package/build/modules/connections/models/ConnectionRole.js +0 -9
- package/build/modules/connections/models/ConnectionRole.js.map +0 -1
- package/build/modules/connections/models/ConnectionState.d.ts +0 -14
- package/build/modules/connections/models/ConnectionState.js +0 -33
- package/build/modules/connections/models/ConnectionState.js.map +0 -1
- package/build/modules/connections/models/ConnectionType.d.ts +0 -3
- package/build/modules/connections/models/ConnectionType.js +0 -8
- package/build/modules/connections/models/ConnectionType.js.map +0 -1
- package/build/modules/connections/models/DidExchangeRole.d.ts +0 -4
- package/build/modules/connections/models/DidExchangeRole.js +0 -9
- package/build/modules/connections/models/DidExchangeRole.js.map +0 -1
- package/build/modules/connections/models/DidExchangeState.d.ts +0 -16
- package/build/modules/connections/models/DidExchangeState.js +0 -21
- package/build/modules/connections/models/DidExchangeState.js.map +0 -1
- package/build/modules/connections/models/DidRotateRole.d.ts +0 -4
- package/build/modules/connections/models/DidRotateRole.js +0 -9
- package/build/modules/connections/models/DidRotateRole.js.map +0 -1
- package/build/modules/connections/models/HandshakeProtocol.d.ts +0 -8
- package/build/modules/connections/models/HandshakeProtocol.js +0 -13
- package/build/modules/connections/models/HandshakeProtocol.js.map +0 -1
- package/build/modules/connections/models/InvitationDetails.d.ts +0 -6
- package/build/modules/connections/models/InvitationDetails.js.map +0 -1
- package/build/modules/connections/models/did/DidDoc.d.ts +0 -37
- package/build/modules/connections/models/did/DidDoc.js +0 -94
- package/build/modules/connections/models/did/DidDoc.js.map +0 -1
- package/build/modules/connections/models/did/authentication/Authentication.d.ts +0 -4
- package/build/modules/connections/models/did/authentication/Authentication.js +0 -7
- package/build/modules/connections/models/did/authentication/Authentication.js.map +0 -1
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.d.ts +0 -6
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js +0 -29
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js.map +0 -1
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.d.ts +0 -7
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js +0 -35
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js.map +0 -1
- package/build/modules/connections/models/did/authentication/index.d.ts +0 -19
- package/build/modules/connections/models/did/authentication/index.js +0 -59
- package/build/modules/connections/models/did/authentication/index.js.map +0 -1
- package/build/modules/connections/models/did/index.d.ts +0 -3
- package/build/modules/connections/models/did/index.js +0 -20
- package/build/modules/connections/models/did/index.js.map +0 -1
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.d.ts +0 -10
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js +0 -35
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js.map +0 -1
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.d.ts +0 -10
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js +0 -35
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js.map +0 -1
- package/build/modules/connections/models/did/publicKey/PublicKey.d.ts +0 -12
- package/build/modules/connections/models/did/publicKey/PublicKey.js +0 -42
- package/build/modules/connections/models/did/publicKey/PublicKey.js.map +0 -1
- package/build/modules/connections/models/did/publicKey/RsaSig2018.d.ts +0 -10
- package/build/modules/connections/models/did/publicKey/RsaSig2018.js +0 -35
- package/build/modules/connections/models/did/publicKey/RsaSig2018.js.map +0 -1
- package/build/modules/connections/models/did/publicKey/index.d.ts +0 -18
- package/build/modules/connections/models/did/publicKey/index.js +0 -40
- package/build/modules/connections/models/did/publicKey/index.js.map +0 -1
- package/build/modules/connections/models/index.d.ts +0 -9
- package/build/modules/connections/models/index.js +0 -26
- package/build/modules/connections/models/index.js.map +0 -1
- package/build/modules/connections/repository/ConnectionMetadataTypes.d.ts +0 -14
- package/build/modules/connections/repository/ConnectionMetadataTypes.js +0 -9
- package/build/modules/connections/repository/ConnectionMetadataTypes.js.map +0 -1
- package/build/modules/connections/repository/ConnectionRecord.d.ts +0 -70
- package/build/modules/connections/repository/ConnectionRecord.js +0 -90
- package/build/modules/connections/repository/ConnectionRecord.js.map +0 -1
- package/build/modules/connections/repository/ConnectionRepository.d.ts +0 -15
- package/build/modules/connections/repository/ConnectionRepository.js +0 -50
- package/build/modules/connections/repository/ConnectionRepository.js.map +0 -1
- package/build/modules/connections/repository/index.d.ts +0 -2
- package/build/modules/connections/repository/index.js +0 -19
- package/build/modules/connections/repository/index.js.map +0 -1
- package/build/modules/connections/services/ConnectionService.d.ts +0 -181
- package/build/modules/connections/services/ConnectionService.js +0 -692
- package/build/modules/connections/services/ConnectionService.js.map +0 -1
- package/build/modules/connections/services/DidRotateService.d.ts +0 -54
- package/build/modules/connections/services/DidRotateService.js +0 -242
- package/build/modules/connections/services/DidRotateService.js.map +0 -1
- package/build/modules/connections/services/TrustPingService.d.ts +0 -12
- package/build/modules/connections/services/TrustPingService.js +0 -54
- package/build/modules/connections/services/TrustPingService.js.map +0 -1
- package/build/modules/connections/services/helpers.d.ts +0 -16
- package/build/modules/connections/services/helpers.js +0 -155
- package/build/modules/connections/services/helpers.js.map +0 -1
- package/build/modules/connections/services/index.d.ts +0 -3
- package/build/modules/connections/services/index.js +0 -20
- package/build/modules/connections/services/index.js.map +0 -1
- package/build/modules/credentials/CredentialEvents.d.ts +0 -20
- package/build/modules/credentials/CredentialEvents.js +0 -9
- package/build/modules/credentials/CredentialEvents.js.map +0 -1
- package/build/modules/credentials/CredentialsApi.d.ts +0 -60
- package/build/modules/credentials/CredentialsApi.js +0 -511
- package/build/modules/credentials/CredentialsApi.js.map +0 -1
- package/build/modules/credentials/CredentialsApiOptions.d.ts +0 -128
- package/build/modules/credentials/CredentialsApiOptions.js +0 -3
- package/build/modules/credentials/CredentialsApiOptions.js.map +0 -1
- package/build/modules/credentials/CredentialsModule.d.ts +0 -22
- package/build/modules/credentials/CredentialsModule.js +0 -45
- package/build/modules/credentials/CredentialsModule.js.map +0 -1
- package/build/modules/credentials/CredentialsModuleConfig.d.ts +0 -34
- package/build/modules/credentials/CredentialsModuleConfig.js +0 -20
- package/build/modules/credentials/CredentialsModuleConfig.js.map +0 -1
- package/build/modules/credentials/formats/CredentialFormat.d.ts +0 -40
- package/build/modules/credentials/formats/CredentialFormat.js +0 -3
- package/build/modules/credentials/formats/CredentialFormat.js.map +0 -1
- package/build/modules/credentials/formats/CredentialFormatService.d.ts +0 -23
- package/build/modules/credentials/formats/CredentialFormatService.js +0 -3
- package/build/modules/credentials/formats/CredentialFormatService.js.map +0 -1
- package/build/modules/credentials/formats/CredentialFormatServiceOptions.d.ts +0 -117
- package/build/modules/credentials/formats/CredentialFormatServiceOptions.js +0 -3
- package/build/modules/credentials/formats/CredentialFormatServiceOptions.js.map +0 -1
- package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.d.ts +0 -51
- package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.js +0 -3
- package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.js.map +0 -1
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.d.ts +0 -77
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js +0 -129
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js.map +0 -1
- package/build/modules/credentials/formats/dataIntegrity/index.d.ts +0 -2
- package/build/modules/credentials/formats/dataIntegrity/index.js +0 -19
- package/build/modules/credentials/formats/dataIntegrity/index.js.map +0 -1
- package/build/modules/credentials/formats/index.d.ts +0 -5
- package/build/modules/credentials/formats/index.js +0 -22
- package/build/modules/credentials/formats/index.js.map +0 -1
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.d.ts +0 -15
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.js +0 -38
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.js.map +0 -1
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.d.ts +0 -24
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.js +0 -67
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.js.map +0 -1
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.d.ts +0 -92
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.js +0 -3
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.js.map +0 -1
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.d.ts +0 -71
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js +0 -300
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js.map +0 -1
- package/build/modules/credentials/formats/jsonld/index.d.ts +0 -4
- package/build/modules/credentials/formats/jsonld/index.js +0 -21
- package/build/modules/credentials/formats/jsonld/index.js.map +0 -1
- package/build/modules/credentials/index.d.ts +0 -9
- package/build/modules/credentials/index.js +0 -26
- package/build/modules/credentials/index.js.map +0 -1
- package/build/modules/credentials/models/CredentialAutoAcceptType.d.ts +0 -11
- package/build/modules/credentials/models/CredentialAutoAcceptType.js +0 -16
- package/build/modules/credentials/models/CredentialAutoAcceptType.js.map +0 -1
- package/build/modules/credentials/models/CredentialFormatSpec.d.ts +0 -9
- package/build/modules/credentials/models/CredentialFormatSpec.js +0 -35
- package/build/modules/credentials/models/CredentialFormatSpec.js.map +0 -1
- package/build/modules/credentials/models/CredentialPreviewAttribute.d.ts +0 -15
- package/build/modules/credentials/models/CredentialPreviewAttribute.js +0 -44
- package/build/modules/credentials/models/CredentialPreviewAttribute.js.map +0 -1
- package/build/modules/credentials/models/CredentialProblemReportReason.d.ts +0 -8
- package/build/modules/credentials/models/CredentialProblemReportReason.js +0 -13
- package/build/modules/credentials/models/CredentialProblemReportReason.js.map +0 -1
- package/build/modules/credentials/models/CredentialRole.d.ts +0 -4
- package/build/modules/credentials/models/CredentialRole.js +0 -9
- package/build/modules/credentials/models/CredentialRole.js.map +0 -1
- package/build/modules/credentials/models/CredentialState.d.ts +0 -18
- package/build/modules/credentials/models/CredentialState.js +0 -23
- package/build/modules/credentials/models/CredentialState.js.map +0 -1
- package/build/modules/credentials/models/RevocationNotification.d.ts +0 -5
- package/build/modules/credentials/models/RevocationNotification.js +0 -11
- package/build/modules/credentials/models/RevocationNotification.js.map +0 -1
- package/build/modules/credentials/models/index.d.ts +0 -7
- package/build/modules/credentials/models/index.js +0 -24
- package/build/modules/credentials/models/index.js.map +0 -1
- package/build/modules/credentials/protocol/BaseCredentialProtocol.d.ts +0 -112
- package/build/modules/credentials/protocol/BaseCredentialProtocol.js +0 -169
- package/build/modules/credentials/protocol/BaseCredentialProtocol.js.map +0 -1
- package/build/modules/credentials/protocol/CredentialProtocol.d.ts +0 -54
- package/build/modules/credentials/protocol/CredentialProtocol.js +0 -3
- package/build/modules/credentials/protocol/CredentialProtocol.js.map +0 -1
- package/build/modules/credentials/protocol/CredentialProtocolOptions.d.ts +0 -143
- package/build/modules/credentials/protocol/CredentialProtocolOptions.js +0 -3
- package/build/modules/credentials/protocol/CredentialProtocolOptions.js.map +0 -1
- package/build/modules/credentials/protocol/index.d.ts +0 -6
- package/build/modules/credentials/protocol/index.js +0 -40
- package/build/modules/credentials/protocol/index.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.d.ts +0 -9
- package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.js +0 -15
- package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.d.ts +0 -9
- package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.js +0 -15
- package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/index.d.ts +0 -2
- package/build/modules/credentials/protocol/revocation-notification/handlers/index.js +0 -19
- package/build/modules/credentials/protocol/revocation-notification/handlers/index.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/index.d.ts +0 -1
- package/build/modules/credentials/protocol/revocation-notification/index.js +0 -18
- package/build/modules/credentials/protocol/revocation-notification/index.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.d.ts +0 -15
- package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.js +0 -46
- package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.d.ts +0 -17
- package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.js +0 -52
- package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/index.d.ts +0 -2
- package/build/modules/credentials/protocol/revocation-notification/messages/index.js +0 -19
- package/build/modules/credentials/protocol/revocation-notification/messages/index.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.d.ts +0 -36
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.js +0 -143
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationServiceOptions.d.ts +0 -6
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationServiceOptions.js +0 -3
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationServiceOptions.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/services/index.d.ts +0 -2
- package/build/modules/credentials/protocol/revocation-notification/services/index.js +0 -19
- package/build/modules/credentials/protocol/revocation-notification/services/index.js.map +0 -1
- package/build/modules/credentials/protocol/revocation-notification/util/revocationIdentifier.d.ts +0 -5
- package/build/modules/credentials/protocol/revocation-notification/util/revocationIdentifier.js +0 -13
- package/build/modules/credentials/protocol/revocation-notification/util/revocationIdentifier.js.map +0 -1
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.d.ts +0 -100
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.js +0 -365
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.js.map +0 -1
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.d.ts +0 -178
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js +0 -946
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js.map +0 -1
- package/build/modules/credentials/protocol/v2/errors/V2CredentialProblemReportError.d.ts +0 -11
- package/build/modules/credentials/protocol/v2/errors/V2CredentialProblemReportError.js +0 -18
- package/build/modules/credentials/protocol/v2/errors/V2CredentialProblemReportError.js.map +0 -1
- package/build/modules/credentials/protocol/v2/errors/index.d.ts +0 -1
- package/build/modules/credentials/protocol/v2/errors/index.js +0 -6
- package/build/modules/credentials/protocol/v2/errors/index.js.map +0 -1
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.d.ts +0 -9
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.js +0 -15
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.js.map +0 -1
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.d.ts +0 -9
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.js +0 -15
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.js.map +0 -1
- package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.d.ts +0 -11
- package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.js +0 -41
- package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.js.map +0 -1
- package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.d.ts +0 -11
- package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.js +0 -33
- package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.js.map +0 -1
- package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.d.ts +0 -12
- package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.js +0 -36
- package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.js.map +0 -1
- package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.d.ts +0 -11
- package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.js +0 -41
- package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.js.map +0 -1
- package/build/modules/credentials/protocol/v2/handlers/index.d.ts +0 -6
- package/build/modules/credentials/protocol/v2/handlers/index.js +0 -23
- package/build/modules/credentials/protocol/v2/handlers/index.js.map +0 -1
- package/build/modules/credentials/protocol/v2/index.d.ts +0 -3
- package/build/modules/credentials/protocol/v2/index.js +0 -20
- package/build/modules/credentials/protocol/v2/index.js.map +0 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.d.ts +0 -15
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js +0 -34
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js.map +0 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.d.ts +0 -26
- package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.js +0 -71
- package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.js.map +0 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.d.ts +0 -15
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js +0 -34
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js.map +0 -1
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.d.ts +0 -22
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.js +0 -76
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.js.map +0 -1
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.d.ts +0 -27
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.js +0 -92
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.js.map +0 -1
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.d.ts +0 -30
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.js +0 -87
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.js.map +0 -1
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.d.ts +0 -27
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.js +0 -77
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.js.map +0 -1
- package/build/modules/credentials/protocol/v2/messages/index.d.ts +0 -7
- package/build/modules/credentials/protocol/v2/messages/index.js +0 -24
- package/build/modules/credentials/protocol/v2/messages/index.js.map +0 -1
- package/build/modules/credentials/repository/CredentialExchangeRecord.d.ts +0 -66
- package/build/modules/credentials/repository/CredentialExchangeRecord.js +0 -80
- package/build/modules/credentials/repository/CredentialExchangeRecord.js.map +0 -1
- package/build/modules/credentials/repository/CredentialRepository.d.ts +0 -7
- package/build/modules/credentials/repository/CredentialRepository.js +0 -32
- package/build/modules/credentials/repository/CredentialRepository.js.map +0 -1
- package/build/modules/credentials/repository/index.d.ts +0 -2
- package/build/modules/credentials/repository/index.js +0 -19
- package/build/modules/credentials/repository/index.js.map +0 -1
- package/build/modules/credentials/util/composeAutoAccept.d.ts +0 -8
- package/build/modules/credentials/util/composeAutoAccept.js +0 -15
- package/build/modules/credentials/util/composeAutoAccept.js.map +0 -1
- package/build/modules/credentials/util/previewAttributes.d.ts +0 -2
- package/build/modules/credentials/util/previewAttributes.js +0 -24
- package/build/modules/credentials/util/previewAttributes.js.map +0 -1
- package/build/modules/didcomm/index.d.ts +0 -2
- package/build/modules/didcomm/index.js +0 -19
- package/build/modules/didcomm/index.js.map +0 -1
- package/build/modules/didcomm/services/DidCommDocumentService.d.ts +0 -8
- package/build/modules/didcomm/services/DidCommDocumentService.js +0 -83
- package/build/modules/didcomm/services/DidCommDocumentService.js.map +0 -1
- package/build/modules/didcomm/services/index.d.ts +0 -1
- package/build/modules/didcomm/services/index.js +0 -18
- package/build/modules/didcomm/services/index.js.map +0 -1
- package/build/modules/didcomm/types.d.ts +0 -7
- package/build/modules/didcomm/types.js +0 -3
- package/build/modules/didcomm/types.js.map +0 -1
- package/build/modules/didcomm/util/matchingEd25519Key.d.ts +0 -9
- package/build/modules/didcomm/util/matchingEd25519Key.js +0 -33
- package/build/modules/didcomm/util/matchingEd25519Key.js.map +0 -1
- package/build/modules/discover-features/DiscoverFeaturesApi.d.ts +0 -31
- package/build/modules/discover-features/DiscoverFeaturesApi.js +0 -133
- package/build/modules/discover-features/DiscoverFeaturesApi.js.map +0 -1
- package/build/modules/discover-features/DiscoverFeaturesApiOptions.d.ts +0 -39
- package/build/modules/discover-features/DiscoverFeaturesApiOptions.js +0 -3
- package/build/modules/discover-features/DiscoverFeaturesApiOptions.js.map +0 -1
- package/build/modules/discover-features/DiscoverFeaturesEvents.d.ts +0 -28
- package/build/modules/discover-features/DiscoverFeaturesEvents.js +0 -9
- package/build/modules/discover-features/DiscoverFeaturesEvents.js.map +0 -1
- package/build/modules/discover-features/DiscoverFeaturesModule.d.ts +0 -14
- package/build/modules/discover-features/DiscoverFeaturesModule.js +0 -34
- package/build/modules/discover-features/DiscoverFeaturesModule.js.map +0 -1
- package/build/modules/discover-features/DiscoverFeaturesModuleConfig.d.ts +0 -18
- package/build/modules/discover-features/DiscoverFeaturesModuleConfig.js +0 -15
- package/build/modules/discover-features/DiscoverFeaturesModuleConfig.js.map +0 -1
- package/build/modules/discover-features/DiscoverFeaturesServiceOptions.d.ts +0 -13
- package/build/modules/discover-features/DiscoverFeaturesServiceOptions.js +0 -3
- package/build/modules/discover-features/DiscoverFeaturesServiceOptions.js.map +0 -1
- package/build/modules/discover-features/index.d.ts +0 -4
- package/build/modules/discover-features/index.js +0 -21
- package/build/modules/discover-features/index.js.map +0 -1
- package/build/modules/discover-features/protocol/index.d.ts +0 -2
- package/build/modules/discover-features/protocol/index.js +0 -19
- package/build/modules/discover-features/protocol/index.js.map +0 -1
- package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.d.ts +0 -22
- package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.js +0 -116
- package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.js.map +0 -1
- package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.d.ts +0 -9
- package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.js +0 -15
- package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.js.map +0 -1
- package/build/modules/discover-features/protocol/v1/handlers/V1QueryMessageHandler.d.ts +0 -10
- package/build/modules/discover-features/protocol/v1/handlers/V1QueryMessageHandler.js +0 -23
- package/build/modules/discover-features/protocol/v1/handlers/V1QueryMessageHandler.js.map +0 -1
- package/build/modules/discover-features/protocol/v1/handlers/index.d.ts +0 -2
- package/build/modules/discover-features/protocol/v1/handlers/index.js +0 -19
- package/build/modules/discover-features/protocol/v1/handlers/index.js.map +0 -1
- package/build/modules/discover-features/protocol/v1/index.d.ts +0 -2
- package/build/modules/discover-features/protocol/v1/index.js +0 -19
- package/build/modules/discover-features/protocol/v1/index.js.map +0 -1
- package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.d.ts +0 -21
- package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.js +0 -61
- package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.js.map +0 -1
- package/build/modules/discover-features/protocol/v1/messages/QueryMessage.d.ts +0 -13
- package/build/modules/discover-features/protocol/v1/messages/QueryMessage.js +0 -43
- package/build/modules/discover-features/protocol/v1/messages/QueryMessage.js.map +0 -1
- package/build/modules/discover-features/protocol/v1/messages/index.d.ts +0 -2
- package/build/modules/discover-features/protocol/v1/messages/index.js +0 -19
- package/build/modules/discover-features/protocol/v1/messages/index.js.map +0 -1
- package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.d.ts +0 -21
- package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.js +0 -96
- package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.js.map +0 -1
- package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.d.ts +0 -9
- package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.js +0 -15
- package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.js.map +0 -1
- package/build/modules/discover-features/protocol/v2/handlers/V2QueriesMessageHandler.d.ts +0 -10
- package/build/modules/discover-features/protocol/v2/handlers/V2QueriesMessageHandler.js +0 -23
- package/build/modules/discover-features/protocol/v2/handlers/V2QueriesMessageHandler.js.map +0 -1
- package/build/modules/discover-features/protocol/v2/handlers/index.d.ts +0 -2
- package/build/modules/discover-features/protocol/v2/handlers/index.js +0 -19
- package/build/modules/discover-features/protocol/v2/handlers/index.js.map +0 -1
- package/build/modules/discover-features/protocol/v2/index.d.ts +0 -2
- package/build/modules/discover-features/protocol/v2/index.js +0 -19
- package/build/modules/discover-features/protocol/v2/index.js.map +0 -1
- package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.d.ts +0 -13
- package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.js +0 -45
- package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.js.map +0 -1
- package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.d.ts +0 -14
- package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.js +0 -41
- package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.js.map +0 -1
- package/build/modules/discover-features/protocol/v2/messages/index.d.ts +0 -2
- package/build/modules/discover-features/protocol/v2/messages/index.js +0 -19
- package/build/modules/discover-features/protocol/v2/messages/index.js.map +0 -1
- package/build/modules/discover-features/services/DiscoverFeaturesService.d.ts +0 -19
- package/build/modules/discover-features/services/DiscoverFeaturesService.js +0 -13
- package/build/modules/discover-features/services/DiscoverFeaturesService.js.map +0 -1
- package/build/modules/discover-features/services/index.d.ts +0 -1
- package/build/modules/discover-features/services/index.js +0 -18
- package/build/modules/discover-features/services/index.js.map +0 -1
- package/build/modules/message-pickup/MessagePickupApi.d.ts +0 -36
- package/build/modules/message-pickup/MessagePickupApi.js +0 -208
- package/build/modules/message-pickup/MessagePickupApi.js.map +0 -1
- package/build/modules/message-pickup/MessagePickupApiOptions.d.ts +0 -39
- package/build/modules/message-pickup/MessagePickupApiOptions.js +0 -3
- package/build/modules/message-pickup/MessagePickupApiOptions.js.map +0 -1
- package/build/modules/message-pickup/MessagePickupEvents.d.ts +0 -27
- package/build/modules/message-pickup/MessagePickupEvents.js +0 -10
- package/build/modules/message-pickup/MessagePickupEvents.js.map +0 -1
- package/build/modules/message-pickup/MessagePickupModule.d.ts +0 -23
- package/build/modules/message-pickup/MessagePickupModule.js +0 -41
- package/build/modules/message-pickup/MessagePickupModule.js.map +0 -1
- package/build/modules/message-pickup/MessagePickupModuleConfig.d.ts +0 -41
- package/build/modules/message-pickup/MessagePickupModuleConfig.js +0 -23
- package/build/modules/message-pickup/MessagePickupModuleConfig.js.map +0 -1
- package/build/modules/message-pickup/MessagePickupSession.d.ts +0 -12
- package/build/modules/message-pickup/MessagePickupSession.js +0 -9
- package/build/modules/message-pickup/MessagePickupSession.js.map +0 -1
- package/build/modules/message-pickup/index.d.ts +0 -8
- package/build/modules/message-pickup/index.js +0 -27
- package/build/modules/message-pickup/index.js.map +0 -1
- package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.d.ts +0 -17
- package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.js +0 -11
- package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.js.map +0 -1
- package/build/modules/message-pickup/protocol/MessagePickupProtocol.d.ts +0 -12
- package/build/modules/message-pickup/protocol/MessagePickupProtocol.js +0 -3
- package/build/modules/message-pickup/protocol/MessagePickupProtocol.js.map +0 -1
- package/build/modules/message-pickup/protocol/MessagePickupProtocolOptions.d.ts +0 -27
- package/build/modules/message-pickup/protocol/MessagePickupProtocolOptions.js +0 -3
- package/build/modules/message-pickup/protocol/MessagePickupProtocolOptions.js.map +0 -1
- package/build/modules/message-pickup/protocol/index.d.ts +0 -2
- package/build/modules/message-pickup/protocol/index.js +0 -19
- package/build/modules/message-pickup/protocol/index.js.map +0 -1
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.d.ts +0 -24
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js +0 -126
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js.map +0 -1
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchHandler.d.ts +0 -10
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchHandler.js +0 -23
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchHandler.js.map +0 -1
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchPickupHandler.d.ts +0 -9
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchPickupHandler.js +0 -16
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchPickupHandler.js.map +0 -1
- package/build/modules/message-pickup/protocol/v1/handlers/index.d.ts +0 -2
- package/build/modules/message-pickup/protocol/v1/handlers/index.js +0 -19
- package/build/modules/message-pickup/protocol/v1/handlers/index.js.map +0 -1
- package/build/modules/message-pickup/protocol/v1/index.d.ts +0 -2
- package/build/modules/message-pickup/protocol/v1/index.js +0 -19
- package/build/modules/message-pickup/protocol/v1/index.js.map +0 -1
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.d.ts +0 -27
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.js +0 -71
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.js.map +0 -1
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.d.ts +0 -22
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.js +0 -49
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.js.map +0 -1
- package/build/modules/message-pickup/protocol/v1/messages/index.d.ts +0 -2
- package/build/modules/message-pickup/protocol/v1/messages/index.js +0 -19
- package/build/modules/message-pickup/protocol/v1/messages/index.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.d.ts +0 -28
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js +0 -240
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/handlers/V2DeliveryRequestHandler.d.ts +0 -10
- package/build/modules/message-pickup/protocol/v2/handlers/V2DeliveryRequestHandler.js +0 -16
- package/build/modules/message-pickup/protocol/v2/handlers/V2DeliveryRequestHandler.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/handlers/V2LiveDeliveryChangeHandler.d.ts +0 -10
- package/build/modules/message-pickup/protocol/v2/handlers/V2LiveDeliveryChangeHandler.js +0 -16
- package/build/modules/message-pickup/protocol/v2/handlers/V2LiveDeliveryChangeHandler.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessageDeliveryHandler.d.ts +0 -11
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessageDeliveryHandler.js +0 -23
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessageDeliveryHandler.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessagesReceivedHandler.d.ts +0 -10
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessagesReceivedHandler.js +0 -16
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessagesReceivedHandler.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusHandler.d.ts +0 -11
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusHandler.js +0 -23
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusHandler.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusRequestHandler.d.ts +0 -10
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusRequestHandler.js +0 -16
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusRequestHandler.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/handlers/index.d.ts +0 -6
- package/build/modules/message-pickup/protocol/v2/handlers/index.js +0 -23
- package/build/modules/message-pickup/protocol/v2/handlers/index.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/index.d.ts +0 -2
- package/build/modules/message-pickup/protocol/v2/index.js +0 -19
- package/build/modules/message-pickup/protocol/v2/index.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.d.ts +0 -14
- package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.js +0 -47
- package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.d.ts +0 -12
- package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.js +0 -41
- package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.d.ts +0 -15
- package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.js +0 -48
- package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.d.ts +0 -12
- package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.js +0 -41
- package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.d.ts +0 -25
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.js +0 -89
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.d.ts +0 -12
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.js +0 -40
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.js.map +0 -1
- package/build/modules/message-pickup/protocol/v2/messages/index.d.ts +0 -6
- package/build/modules/message-pickup/protocol/v2/messages/index.js +0 -23
- package/build/modules/message-pickup/protocol/v2/messages/index.js.map +0 -1
- package/build/modules/message-pickup/services/MessagePickupSessionService.d.ts +0 -27
- package/build/modules/message-pickup/services/MessagePickupSessionService.js +0 -91
- package/build/modules/message-pickup/services/MessagePickupSessionService.js.map +0 -1
- package/build/modules/message-pickup/services/index.d.ts +0 -1
- package/build/modules/message-pickup/services/index.js +0 -18
- package/build/modules/message-pickup/services/index.js.map +0 -1
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.d.ts +0 -13
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js +0 -77
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js.map +0 -1
- package/build/modules/message-pickup/storage/MessagePickupRepository.d.ts +0 -8
- package/build/modules/message-pickup/storage/MessagePickupRepository.js +0 -3
- package/build/modules/message-pickup/storage/MessagePickupRepository.js.map +0 -1
- package/build/modules/message-pickup/storage/MessagePickupRepositoryOptions.d.ts +0 -20
- package/build/modules/message-pickup/storage/MessagePickupRepositoryOptions.js +0 -3
- package/build/modules/message-pickup/storage/MessagePickupRepositoryOptions.js.map +0 -1
- package/build/modules/message-pickup/storage/QueuedMessage.d.ts +0 -12
- package/build/modules/message-pickup/storage/QueuedMessage.js +0 -3
- package/build/modules/message-pickup/storage/QueuedMessage.js.map +0 -1
- package/build/modules/message-pickup/storage/index.d.ts +0 -4
- package/build/modules/message-pickup/storage/index.js +0 -21
- package/build/modules/message-pickup/storage/index.js.map +0 -1
- package/build/modules/oob/OutOfBandApi.d.ts +0 -276
- package/build/modules/oob/OutOfBandApi.js +0 -722
- package/build/modules/oob/OutOfBandApi.js.map +0 -1
- package/build/modules/oob/OutOfBandModule.d.ts +0 -10
- package/build/modules/oob/OutOfBandModule.js +0 -28
- package/build/modules/oob/OutOfBandModule.js.map +0 -1
- package/build/modules/oob/OutOfBandService.d.ts +0 -51
- package/build/modules/oob/OutOfBandService.js +0 -224
- package/build/modules/oob/OutOfBandService.js.map +0 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.d.ts +0 -18
- package/build/modules/oob/domain/OutOfBandDidCommService.js +0 -77
- package/build/modules/oob/domain/OutOfBandDidCommService.js.map +0 -1
- package/build/modules/oob/domain/OutOfBandEvents.d.ts +0 -23
- package/build/modules/oob/domain/OutOfBandEvents.js +0 -9
- package/build/modules/oob/domain/OutOfBandEvents.js.map +0 -1
- package/build/modules/oob/domain/OutOfBandRole.d.ts +0 -4
- package/build/modules/oob/domain/OutOfBandRole.js +0 -9
- package/build/modules/oob/domain/OutOfBandRole.js.map +0 -1
- package/build/modules/oob/domain/OutOfBandState.d.ts +0 -6
- package/build/modules/oob/domain/OutOfBandState.js +0 -11
- package/build/modules/oob/domain/OutOfBandState.js.map +0 -1
- package/build/modules/oob/domain/index.d.ts +0 -4
- package/build/modules/oob/domain/index.js +0 -21
- package/build/modules/oob/domain/index.js.map +0 -1
- package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.d.ts +0 -10
- package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.js +0 -16
- package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.js.map +0 -1
- package/build/modules/oob/handlers/HandshakeReuseHandler.d.ts +0 -11
- package/build/modules/oob/handlers/HandshakeReuseHandler.js +0 -21
- package/build/modules/oob/handlers/HandshakeReuseHandler.js.map +0 -1
- package/build/modules/oob/handlers/index.d.ts +0 -1
- package/build/modules/oob/handlers/index.js +0 -18
- package/build/modules/oob/handlers/index.js.map +0 -1
- package/build/modules/oob/helpers.d.ts +0 -4
- package/build/modules/oob/helpers.js +0 -71
- package/build/modules/oob/helpers.js.map +0 -1
- package/build/modules/oob/index.d.ts +0 -6
- package/build/modules/oob/index.js +0 -23
- package/build/modules/oob/index.js.map +0 -1
- package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.d.ts +0 -11
- package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.js +0 -35
- package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.js.map +0 -1
- package/build/modules/oob/messages/HandshakeReuseMessage.d.ts +0 -10
- package/build/modules/oob/messages/HandshakeReuseMessage.js +0 -34
- package/build/modules/oob/messages/HandshakeReuseMessage.js.map +0 -1
- package/build/modules/oob/messages/OutOfBandInvitation.d.ts +0 -55
- package/build/modules/oob/messages/OutOfBandInvitation.js +0 -181
- package/build/modules/oob/messages/OutOfBandInvitation.js.map +0 -1
- package/build/modules/oob/messages/index.d.ts +0 -2
- package/build/modules/oob/messages/index.js +0 -19
- package/build/modules/oob/messages/index.js.map +0 -1
- package/build/modules/oob/repository/OutOfBandRecord.d.ts +0 -59
- package/build/modules/oob/repository/OutOfBandRecord.js +0 -63
- package/build/modules/oob/repository/OutOfBandRecord.js.map +0 -1
- package/build/modules/oob/repository/OutOfBandRepository.d.ts +0 -7
- package/build/modules/oob/repository/OutOfBandRepository.js +0 -32
- package/build/modules/oob/repository/OutOfBandRepository.js.map +0 -1
- package/build/modules/oob/repository/index.d.ts +0 -2
- package/build/modules/oob/repository/index.js +0 -19
- package/build/modules/oob/repository/index.js.map +0 -1
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.d.ts +0 -19
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.js +0 -9
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.js.map +0 -1
- package/build/modules/problem-reports/errors/ProblemReportError.d.ts +0 -9
- package/build/modules/problem-reports/errors/ProblemReportError.js +0 -18
- package/build/modules/problem-reports/errors/ProblemReportError.js.map +0 -1
- package/build/modules/problem-reports/errors/index.d.ts +0 -1
- package/build/modules/problem-reports/errors/index.js +0 -18
- package/build/modules/problem-reports/errors/index.js.map +0 -1
- package/build/modules/problem-reports/index.d.ts +0 -3
- package/build/modules/problem-reports/index.js.map +0 -1
- package/build/modules/problem-reports/messages/ProblemReportMessage.d.ts +0 -63
- package/build/modules/problem-reports/messages/ProblemReportMessage.js +0 -119
- package/build/modules/problem-reports/messages/ProblemReportMessage.js.map +0 -1
- package/build/modules/problem-reports/messages/index.d.ts +0 -1
- package/build/modules/problem-reports/messages/index.js +0 -18
- package/build/modules/problem-reports/messages/index.js.map +0 -1
- package/build/modules/problem-reports/models/ProblemReportReason.d.ts +0 -3
- package/build/modules/problem-reports/models/ProblemReportReason.js +0 -8
- package/build/modules/problem-reports/models/ProblemReportReason.js.map +0 -1
- package/build/modules/problem-reports/models/index.d.ts +0 -1
- package/build/modules/problem-reports/models/index.js +0 -18
- package/build/modules/problem-reports/models/index.js.map +0 -1
- package/build/modules/proofs/ProofEvents.d.ts +0 -13
- package/build/modules/proofs/ProofEvents.js +0 -8
- package/build/modules/proofs/ProofEvents.js.map +0 -1
- package/build/modules/proofs/ProofsApi.d.ts +0 -68
- package/build/modules/proofs/ProofsApi.js +0 -478
- package/build/modules/proofs/ProofsApi.js.map +0 -1
- package/build/modules/proofs/ProofsApiOptions.d.ts +0 -141
- package/build/modules/proofs/ProofsApiOptions.js +0 -3
- package/build/modules/proofs/ProofsApiOptions.js.map +0 -1
- package/build/modules/proofs/ProofsModule.d.ts +0 -23
- package/build/modules/proofs/ProofsModule.js +0 -31
- package/build/modules/proofs/ProofsModule.js.map +0 -1
- package/build/modules/proofs/ProofsModuleConfig.d.ts +0 -34
- package/build/modules/proofs/ProofsModuleConfig.js +0 -20
- package/build/modules/proofs/ProofsModuleConfig.js.map +0 -1
- package/build/modules/proofs/errors/PresentationProblemReportReason.d.ts +0 -8
- package/build/modules/proofs/errors/PresentationProblemReportReason.js +0 -13
- package/build/modules/proofs/errors/PresentationProblemReportReason.js.map +0 -1
- package/build/modules/proofs/errors/index.d.ts +0 -1
- package/build/modules/proofs/errors/index.js +0 -18
- package/build/modules/proofs/errors/index.js.map +0 -1
- package/build/modules/proofs/formats/ProofFormat.d.ts +0 -66
- package/build/modules/proofs/formats/ProofFormat.js +0 -3
- package/build/modules/proofs/formats/ProofFormat.js.map +0 -1
- package/build/modules/proofs/formats/ProofFormatService.d.ts +0 -19
- package/build/modules/proofs/formats/ProofFormatService.js +0 -3
- package/build/modules/proofs/formats/ProofFormatService.js.map +0 -1
- package/build/modules/proofs/formats/ProofFormatServiceOptions.d.ts +0 -103
- package/build/modules/proofs/formats/ProofFormatServiceOptions.js +0 -3
- package/build/modules/proofs/formats/ProofFormatServiceOptions.js.map +0 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.d.ts +0 -53
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.js +0 -3
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.js.map +0 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.d.ts +0 -32
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js +0 -285
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js.map +0 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/index.d.ts +0 -2
- package/build/modules/proofs/formats/dif-presentation-exchange/index.js +0 -19
- package/build/modules/proofs/formats/dif-presentation-exchange/index.js.map +0 -1
- package/build/modules/proofs/formats/index.d.ts +0 -6
- package/build/modules/proofs/formats/index.js +0 -36
- package/build/modules/proofs/formats/index.js.map +0 -1
- package/build/modules/proofs/index.d.ts +0 -10
- package/build/modules/proofs/index.js +0 -29
- package/build/modules/proofs/index.js.map +0 -1
- package/build/modules/proofs/models/ProofAutoAcceptType.d.ts +0 -8
- package/build/modules/proofs/models/ProofAutoAcceptType.js +0 -16
- package/build/modules/proofs/models/ProofAutoAcceptType.js.map +0 -1
- package/build/modules/proofs/models/ProofFormatSpec.d.ts +0 -9
- package/build/modules/proofs/models/ProofFormatSpec.js +0 -35
- package/build/modules/proofs/models/ProofFormatSpec.js.map +0 -1
- package/build/modules/proofs/models/ProofRole.d.ts +0 -4
- package/build/modules/proofs/models/ProofRole.js +0 -9
- package/build/modules/proofs/models/ProofRole.js.map +0 -1
- package/build/modules/proofs/models/ProofState.d.ts +0 -16
- package/build/modules/proofs/models/ProofState.js +0 -21
- package/build/modules/proofs/models/ProofState.js.map +0 -1
- package/build/modules/proofs/models/index.d.ts +0 -4
- package/build/modules/proofs/models/index.js +0 -21
- package/build/modules/proofs/models/index.js.map +0 -1
- package/build/modules/proofs/protocol/BaseProofProtocol.d.ts +0 -98
- package/build/modules/proofs/protocol/BaseProofProtocol.js +0 -151
- package/build/modules/proofs/protocol/BaseProofProtocol.js.map +0 -1
- package/build/modules/proofs/protocol/ProofProtocol.d.ts +0 -52
- package/build/modules/proofs/protocol/ProofProtocol.js +0 -3
- package/build/modules/proofs/protocol/ProofProtocol.js.map +0 -1
- package/build/modules/proofs/protocol/ProofProtocolOptions.d.ts +0 -128
- package/build/modules/proofs/protocol/ProofProtocolOptions.js +0 -3
- package/build/modules/proofs/protocol/ProofProtocolOptions.js.map +0 -1
- package/build/modules/proofs/protocol/index.d.ts +0 -5
- package/build/modules/proofs/protocol/index.js +0 -39
- package/build/modules/proofs/protocol/index.js.map +0 -1
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.d.ts +0 -93
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js +0 -307
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js.map +0 -1
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.d.ts +0 -114
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.js +0 -800
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.js.map +0 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.ts +0 -13
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.js +0 -19
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.js.map +0 -1
- package/build/modules/proofs/protocol/v2/errors/index.d.ts +0 -1
- package/build/modules/proofs/protocol/v2/errors/index.js +0 -18
- package/build/modules/proofs/protocol/v2/errors/index.js.map +0 -1
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.d.ts +0 -9
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.js +0 -15
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.js.map +0 -1
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.d.ts +0 -10
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.js +0 -43
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.js.map +0 -1
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.d.ts +0 -9
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.js +0 -15
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.js.map +0 -1
- package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.d.ts +0 -11
- package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.js +0 -36
- package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.js.map +0 -1
- package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.d.ts +0 -10
- package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.js +0 -36
- package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.js.map +0 -1
- package/build/modules/proofs/protocol/v2/index.d.ts +0 -3
- package/build/modules/proofs/protocol/v2/index.js +0 -20
- package/build/modules/proofs/protocol/v2/index.js.map +0 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.d.ts +0 -5
- package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.js +0 -27
- package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.js.map +0 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.d.ts +0 -24
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.js +0 -85
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.js.map +0 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.d.ts +0 -8
- package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.js +0 -30
- package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.js.map +0 -1
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.d.ts +0 -22
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.js +0 -77
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.js.map +0 -1
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.d.ts +0 -26
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.js +0 -92
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.js.map +0 -1
- package/build/modules/proofs/protocol/v2/messages/index.d.ts +0 -5
- package/build/modules/proofs/protocol/v2/messages/index.js +0 -22
- package/build/modules/proofs/protocol/v2/messages/index.js.map +0 -1
- package/build/modules/proofs/repository/ProofExchangeRecord.d.ts +0 -50
- package/build/modules/proofs/repository/ProofExchangeRecord.js +0 -54
- package/build/modules/proofs/repository/ProofExchangeRecord.js.map +0 -1
- package/build/modules/proofs/repository/ProofRepository.d.ts +0 -26
- package/build/modules/proofs/repository/ProofRepository.js +0 -54
- package/build/modules/proofs/repository/ProofRepository.js.map +0 -1
- package/build/modules/proofs/repository/index.d.ts +0 -2
- package/build/modules/proofs/repository/index.js +0 -19
- package/build/modules/proofs/repository/index.js.map +0 -1
- package/build/modules/proofs/utils/composeAutoAccept.d.ts +0 -8
- package/build/modules/proofs/utils/composeAutoAccept.js +0 -15
- package/build/modules/proofs/utils/composeAutoAccept.js.map +0 -1
- package/build/modules/proofs/utils/index.d.ts +0 -1
- package/build/modules/proofs/utils/index.js +0 -18
- package/build/modules/proofs/utils/index.js.map +0 -1
- package/build/modules/routing/MediationRecipientApi.d.ts +0 -89
- package/build/modules/routing/MediationRecipientApi.js +0 -425
- package/build/modules/routing/MediationRecipientApi.js.map +0 -1
- package/build/modules/routing/MediationRecipientModule.d.ts +0 -14
- package/build/modules/routing/MediationRecipientModule.js +0 -34
- package/build/modules/routing/MediationRecipientModule.js.map +0 -1
- package/build/modules/routing/MediationRecipientModuleConfig.d.ts +0 -79
- package/build/modules/routing/MediationRecipientModuleConfig.js +0 -38
- package/build/modules/routing/MediationRecipientModuleConfig.js.map +0 -1
- package/build/modules/routing/MediatorApi.d.ts +0 -18
- package/build/modules/routing/MediatorApi.js +0 -69
- package/build/modules/routing/MediatorApi.js.map +0 -1
- package/build/modules/routing/MediatorModule.d.ts +0 -14
- package/build/modules/routing/MediatorModule.js +0 -34
- package/build/modules/routing/MediatorModule.js.map +0 -1
- package/build/modules/routing/MediatorModuleConfig.d.ts +0 -33
- package/build/modules/routing/MediatorModuleConfig.js +0 -21
- package/build/modules/routing/MediatorModuleConfig.js.map +0 -1
- package/build/modules/routing/MediatorPickupStrategy.d.ts +0 -7
- package/build/modules/routing/MediatorPickupStrategy.js +0 -19
- package/build/modules/routing/MediatorPickupStrategy.js.map +0 -1
- package/build/modules/routing/MessageForwardingStrategy.d.ts +0 -5
- package/build/modules/routing/MessageForwardingStrategy.js +0 -16
- package/build/modules/routing/MessageForwardingStrategy.js.map +0 -1
- package/build/modules/routing/RoutingEvents.d.ts +0 -30
- package/build/modules/routing/RoutingEvents.js +0 -10
- package/build/modules/routing/RoutingEvents.js.map +0 -1
- package/build/modules/routing/error/RoutingProblemReportReason.d.ts +0 -3
- package/build/modules/routing/error/RoutingProblemReportReason.js +0 -8
- package/build/modules/routing/error/RoutingProblemReportReason.js.map +0 -1
- package/build/modules/routing/error/index.d.ts +0 -1
- package/build/modules/routing/error/index.js +0 -18
- package/build/modules/routing/error/index.js.map +0 -1
- package/build/modules/routing/handlers/ForwardHandler.d.ts +0 -9
- package/build/modules/routing/handlers/ForwardHandler.js +0 -15
- package/build/modules/routing/handlers/ForwardHandler.js.map +0 -1
- package/build/modules/routing/handlers/KeylistUpdateHandler.d.ts +0 -10
- package/build/modules/routing/handlers/KeylistUpdateHandler.js +0 -21
- package/build/modules/routing/handlers/KeylistUpdateHandler.js.map +0 -1
- package/build/modules/routing/handlers/KeylistUpdateResponseHandler.d.ts +0 -9
- package/build/modules/routing/handlers/KeylistUpdateResponseHandler.js +0 -16
- package/build/modules/routing/handlers/KeylistUpdateResponseHandler.js.map +0 -1
- package/build/modules/routing/handlers/MediationDenyHandler.d.ts +0 -9
- package/build/modules/routing/handlers/MediationDenyHandler.js +0 -16
- package/build/modules/routing/handlers/MediationDenyHandler.js.map +0 -1
- package/build/modules/routing/handlers/MediationGrantHandler.d.ts +0 -9
- package/build/modules/routing/handlers/MediationGrantHandler.js +0 -16
- package/build/modules/routing/handlers/MediationGrantHandler.js.map +0 -1
- package/build/modules/routing/handlers/MediationRequestHandler.d.ts +0 -12
- package/build/modules/routing/handlers/MediationRequestHandler.js +0 -26
- package/build/modules/routing/handlers/MediationRequestHandler.js.map +0 -1
- package/build/modules/routing/handlers/index.d.ts +0 -6
- package/build/modules/routing/handlers/index.js +0 -23
- package/build/modules/routing/handlers/index.js.map +0 -1
- package/build/modules/routing/index.d.ts +0 -10
- package/build/modules/routing/index.js +0 -27
- package/build/modules/routing/index.js.map +0 -1
- package/build/modules/routing/messages/ForwardMessage.d.ts +0 -23
- package/build/modules/routing/messages/ForwardMessage.js +0 -52
- package/build/modules/routing/messages/ForwardMessage.js.map +0 -1
- package/build/modules/routing/messages/KeylistMessage.d.ts +0 -20
- package/build/modules/routing/messages/KeylistMessage.js +0 -49
- package/build/modules/routing/messages/KeylistMessage.js.map +0 -1
- package/build/modules/routing/messages/KeylistUpdateMessage.d.ts +0 -29
- package/build/modules/routing/messages/KeylistUpdateMessage.js +0 -68
- package/build/modules/routing/messages/KeylistUpdateMessage.js.map +0 -1
- package/build/modules/routing/messages/KeylistUpdateResponseMessage.d.ts +0 -34
- package/build/modules/routing/messages/KeylistUpdateResponseMessage.js +0 -79
- package/build/modules/routing/messages/KeylistUpdateResponseMessage.js.map +0 -1
- package/build/modules/routing/messages/MediationDenyMessage.d.ts +0 -14
- package/build/modules/routing/messages/MediationDenyMessage.js +0 -35
- package/build/modules/routing/messages/MediationDenyMessage.js.map +0 -1
- package/build/modules/routing/messages/MediationGrantMessage.d.ts +0 -20
- package/build/modules/routing/messages/MediationGrantMessage.js +0 -55
- package/build/modules/routing/messages/MediationGrantMessage.js.map +0 -1
- package/build/modules/routing/messages/MediationRequestMessage.d.ts +0 -22
- package/build/modules/routing/messages/MediationRequestMessage.js +0 -42
- package/build/modules/routing/messages/MediationRequestMessage.js.map +0 -1
- package/build/modules/routing/messages/index.d.ts +0 -6
- package/build/modules/routing/messages/index.js +0 -23
- package/build/modules/routing/messages/index.js.map +0 -1
- package/build/modules/routing/models/MediationRole.d.ts +0 -9
- package/build/modules/routing/models/MediationRole.js +0 -14
- package/build/modules/routing/models/MediationRole.js.map +0 -1
- package/build/modules/routing/models/MediationState.d.ts +0 -10
- package/build/modules/routing/models/MediationState.js +0 -15
- package/build/modules/routing/models/MediationState.js.map +0 -1
- package/build/modules/routing/models/index.d.ts +0 -2
- package/build/modules/routing/models/index.js +0 -19
- package/build/modules/routing/models/index.js.map +0 -1
- package/build/modules/routing/repository/MediationRecord.d.ts +0 -53
- package/build/modules/routing/repository/MediationRecord.js +0 -87
- package/build/modules/routing/repository/MediationRecord.js.map +0 -1
- package/build/modules/routing/repository/MediationRepository.d.ts +0 -10
- package/build/modules/routing/repository/MediationRepository.js +0 -40
- package/build/modules/routing/repository/MediationRepository.js.map +0 -1
- package/build/modules/routing/repository/MediatorRoutingRecord.d.ts +0 -15
- package/build/modules/routing/repository/MediatorRoutingRecord.js +0 -23
- package/build/modules/routing/repository/MediatorRoutingRecord.js.map +0 -1
- package/build/modules/routing/repository/MediatorRoutingRepository.d.ts +0 -8
- package/build/modules/routing/repository/MediatorRoutingRepository.js +0 -33
- package/build/modules/routing/repository/MediatorRoutingRepository.js.map +0 -1
- package/build/modules/routing/repository/index.d.ts +0 -4
- package/build/modules/routing/repository/index.js +0 -21
- package/build/modules/routing/repository/index.js.map +0 -1
- package/build/modules/routing/services/MediationRecipientService.d.ts +0 -57
- package/build/modules/routing/services/MediationRecipientService.js +0 -276
- package/build/modules/routing/services/MediationRecipientService.js.map +0 -1
- package/build/modules/routing/services/MediatorService.d.ts +0 -39
- package/build/modules/routing/services/MediatorService.js +0 -253
- package/build/modules/routing/services/MediatorService.js.map +0 -1
- package/build/modules/routing/services/RoutingService.d.ts +0 -33
- package/build/modules/routing/services/RoutingService.js +0 -54
- package/build/modules/routing/services/RoutingService.js.map +0 -1
- package/build/modules/routing/services/helpers.d.ts +0 -3
- package/build/modules/routing/services/helpers.js +0 -13
- package/build/modules/routing/services/helpers.js.map +0 -1
- package/build/modules/routing/services/index.d.ts +0 -3
- package/build/modules/routing/services/index.js +0 -20
- package/build/modules/routing/services/index.js.map +0 -1
- package/build/storage/didcomm/DidCommMessageRecord.d.ts +0 -48
- package/build/storage/didcomm/DidCommMessageRecord.js +0 -49
- package/build/storage/didcomm/DidCommMessageRecord.js.map +0 -1
- package/build/storage/didcomm/DidCommMessageRepository.d.ts +0 -24
- package/build/storage/didcomm/DidCommMessageRepository.js +0 -78
- package/build/storage/didcomm/DidCommMessageRepository.js.map +0 -1
- package/build/storage/didcomm/DidCommMessageRole.d.ts +0 -4
- package/build/storage/didcomm/DidCommMessageRole.js +0 -9
- package/build/storage/didcomm/DidCommMessageRole.js.map +0 -1
- package/build/storage/didcomm/index.d.ts +0 -3
- package/build/storage/didcomm/index.js +0 -20
- package/build/storage/didcomm/index.js.map +0 -1
- package/build/storage/migration/updates/0.1-0.2/connection.d.ts +0 -119
- package/build/storage/migration/updates/0.1-0.2/connection.js +0 -380
- package/build/storage/migration/updates/0.1-0.2/connection.js.map +0 -1
- package/build/storage/migration/updates/0.1-0.2/credential.d.ts +0 -80
- package/build/storage/migration/updates/0.1-0.2/credential.js +0 -215
- package/build/storage/migration/updates/0.1-0.2/credential.js.map +0 -1
- package/build/storage/migration/updates/0.1-0.2/index.d.ts +0 -6
- package/build/storage/migration/updates/0.1-0.2/index.js +0 -12
- package/build/storage/migration/updates/0.1-0.2/index.js.map +0 -1
- package/build/storage/migration/updates/0.1-0.2/mediation.d.ts +0 -30
- package/build/storage/migration/updates/0.1-0.2/mediation.js +0 -67
- package/build/storage/migration/updates/0.1-0.2/mediation.js.map +0 -1
- package/build/storage/migration/updates/0.2-0.3/connection.d.ts +0 -14
- package/build/storage/migration/updates/0.2-0.3/connection.js +0 -47
- package/build/storage/migration/updates/0.2-0.3/connection.js.map +0 -1
- package/build/storage/migration/updates/0.2-0.3/index.d.ts +0 -2
- package/build/storage/migration/updates/0.2-0.3/index.js +0 -10
- package/build/storage/migration/updates/0.2-0.3/index.js.map +0 -1
- package/build/storage/migration/updates/0.2-0.3/proof.d.ts +0 -42
- package/build/storage/migration/updates/0.2-0.3/proof.js +0 -131
- package/build/storage/migration/updates/0.2-0.3/proof.js.map +0 -1
- package/build/storage/migration/updates/0.4-0.5/credentialExchangeRecord.d.ts +0 -17
- package/build/storage/migration/updates/0.4-0.5/credentialExchangeRecord.js +0 -106
- package/build/storage/migration/updates/0.4-0.5/credentialExchangeRecord.js.map +0 -1
- package/build/storage/migration/updates/0.4-0.5/proofExchangeRecord.d.ts +0 -17
- package/build/storage/migration/updates/0.4-0.5/proofExchangeRecord.js +0 -87
- package/build/storage/migration/updates/0.4-0.5/proofExchangeRecord.js.map +0 -1
- package/build/transport/HttpOutboundTransport.d.ts +0 -15
- package/build/transport/HttpOutboundTransport.js +0 -123
- package/build/transport/HttpOutboundTransport.js.map +0 -1
- package/build/transport/InboundTransport.d.ts +0 -5
- package/build/transport/InboundTransport.js +0 -3
- package/build/transport/InboundTransport.js.map +0 -1
- package/build/transport/OutboundTransport.d.ts +0 -8
- package/build/transport/OutboundTransport.js +0 -3
- package/build/transport/OutboundTransport.js.map +0 -1
- package/build/transport/TransportEventTypes.d.ts +0 -34
- package/build/transport/TransportEventTypes.js +0 -11
- package/build/transport/TransportEventTypes.js.map +0 -1
- package/build/transport/WsOutboundTransport.d.ts +0 -19
- package/build/transport/WsOutboundTransport.js +0 -139
- package/build/transport/WsOutboundTransport.js.map +0 -1
- package/build/transport/index.d.ts +0 -5
- package/build/transport/index.js +0 -22
- package/build/transport/index.js.map +0 -1
- package/build/utils/JWE.d.ts +0 -2
- package/build/utils/JWE.js +0 -14
- package/build/utils/JWE.js.map +0 -1
- package/build/utils/LinkedAttachment.d.ts +0 -23
- package/build/utils/LinkedAttachment.js +0 -51
- package/build/utils/LinkedAttachment.js.map +0 -1
- package/build/utils/attachment.d.ts +0 -19
- package/build/utils/attachment.js +0 -39
- package/build/utils/attachment.js.map +0 -1
- package/build/utils/messageType.d.ts +0 -138
- package/build/utils/messageType.js +0 -179
- package/build/utils/messageType.js.map +0 -1
- package/build/utils/parseInvitation.d.ts +0 -30
- package/build/utils/parseInvitation.js +0 -173
- package/build/utils/parseInvitation.js.map +0 -1
- package/build/utils/thread.d.ts +0 -2
- package/build/utils/thread.js +0 -8
- package/build/utils/thread.js.map +0 -1
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MediationRecipientService = void 0;
|
|
13
|
-
const rxjs_1 = require("rxjs");
|
|
14
|
-
const operators_1 = require("rxjs/operators");
|
|
15
|
-
const EventEmitter_1 = require("../../../agent/EventEmitter");
|
|
16
|
-
const Events_1 = require("../../../agent/Events");
|
|
17
|
-
const MessageSender_1 = require("../../../agent/MessageSender");
|
|
18
|
-
const models_1 = require("../../../agent/models");
|
|
19
|
-
const crypto_1 = require("../../../crypto");
|
|
20
|
-
const error_1 = require("../../../error");
|
|
21
|
-
const plugins_1 = require("../../../plugins");
|
|
22
|
-
const ConnectionType_1 = require("../../connections/models/ConnectionType");
|
|
23
|
-
const ConnectionMetadataTypes_1 = require("../../connections/repository/ConnectionMetadataTypes");
|
|
24
|
-
const ConnectionService_1 = require("../../connections/services/ConnectionService");
|
|
25
|
-
const dids_1 = require("../../dids");
|
|
26
|
-
const helpers_1 = require("../../dids/helpers");
|
|
27
|
-
const RoutingEvents_1 = require("../RoutingEvents");
|
|
28
|
-
const messages_1 = require("../messages");
|
|
29
|
-
const KeylistUpdateMessage_1 = require("../messages/KeylistUpdateMessage");
|
|
30
|
-
const models_2 = require("../models");
|
|
31
|
-
const MediationRecord_1 = require("../repository/MediationRecord");
|
|
32
|
-
const MediationRepository_1 = require("../repository/MediationRepository");
|
|
33
|
-
let MediationRecipientService = class MediationRecipientService {
|
|
34
|
-
constructor(connectionService, messageSender, mediatorRepository, eventEmitter) {
|
|
35
|
-
this.mediationRepository = mediatorRepository;
|
|
36
|
-
this.eventEmitter = eventEmitter;
|
|
37
|
-
this.connectionService = connectionService;
|
|
38
|
-
this.messageSender = messageSender;
|
|
39
|
-
}
|
|
40
|
-
async createRequest(agentContext, connection) {
|
|
41
|
-
const message = new messages_1.MediationRequestMessage({});
|
|
42
|
-
const mediationRecord = new MediationRecord_1.MediationRecord({
|
|
43
|
-
threadId: message.threadId,
|
|
44
|
-
state: models_2.MediationState.Requested,
|
|
45
|
-
role: models_2.MediationRole.Recipient,
|
|
46
|
-
connectionId: connection.id,
|
|
47
|
-
});
|
|
48
|
-
await this.connectionService.addConnectionType(agentContext, connection, ConnectionType_1.ConnectionType.Mediator);
|
|
49
|
-
await this.mediationRepository.save(agentContext, mediationRecord);
|
|
50
|
-
this.emitStateChangedEvent(agentContext, mediationRecord, null);
|
|
51
|
-
return { mediationRecord, message };
|
|
52
|
-
}
|
|
53
|
-
async processMediationGrant(messageContext) {
|
|
54
|
-
// Assert ready connection
|
|
55
|
-
const connection = messageContext.assertReadyConnection();
|
|
56
|
-
// Mediation record must already exists to be updated to granted status
|
|
57
|
-
const mediationRecord = await this.mediationRepository.getByConnectionId(messageContext.agentContext, connection.id);
|
|
58
|
-
// Assert
|
|
59
|
-
mediationRecord.assertState(models_2.MediationState.Requested);
|
|
60
|
-
mediationRecord.assertRole(models_2.MediationRole.Recipient);
|
|
61
|
-
// Update record
|
|
62
|
-
mediationRecord.endpoint = messageContext.message.endpoint;
|
|
63
|
-
// Update connection metadata to use their key format in further protocol messages
|
|
64
|
-
const connectionUsesDidKey = messageContext.message.routingKeys.some(helpers_1.isDidKey);
|
|
65
|
-
await this.updateUseDidKeysFlag(messageContext.agentContext, connection, messages_1.MediationGrantMessage.type.protocolUri, connectionUsesDidKey);
|
|
66
|
-
// According to RFC 0211 keys should be a did key, but base58 encoded verkey was used before
|
|
67
|
-
// RFC was accepted. This converts the key to a public key base58 if it is a did key.
|
|
68
|
-
mediationRecord.routingKeys = messageContext.message.routingKeys.map(helpers_1.didKeyToVerkey);
|
|
69
|
-
return await this.updateState(messageContext.agentContext, mediationRecord, models_2.MediationState.Granted);
|
|
70
|
-
}
|
|
71
|
-
async processKeylistUpdateResults(messageContext) {
|
|
72
|
-
// Assert ready connection
|
|
73
|
-
const connection = messageContext.assertReadyConnection();
|
|
74
|
-
const mediationRecord = await this.mediationRepository.getByConnectionId(messageContext.agentContext, connection.id);
|
|
75
|
-
// Assert
|
|
76
|
-
mediationRecord.assertReady();
|
|
77
|
-
mediationRecord.assertRole(models_2.MediationRole.Recipient);
|
|
78
|
-
const keylist = messageContext.message.updated;
|
|
79
|
-
// Update connection metadata to use their key format in further protocol messages
|
|
80
|
-
const connectionUsesDidKey = keylist.some((key) => (0, helpers_1.isDidKey)(key.recipientKey));
|
|
81
|
-
await this.updateUseDidKeysFlag(messageContext.agentContext, connection, messages_1.KeylistUpdateResponseMessage.type.protocolUri, connectionUsesDidKey);
|
|
82
|
-
// update keylist in mediationRecord
|
|
83
|
-
for (const update of keylist) {
|
|
84
|
-
if (update.action === messages_1.KeylistUpdateAction.add) {
|
|
85
|
-
mediationRecord.addRecipientKey((0, helpers_1.didKeyToVerkey)(update.recipientKey));
|
|
86
|
-
}
|
|
87
|
-
else if (update.action === messages_1.KeylistUpdateAction.remove) {
|
|
88
|
-
mediationRecord.removeRecipientKey((0, helpers_1.didKeyToVerkey)(update.recipientKey));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
await this.mediationRepository.update(messageContext.agentContext, mediationRecord);
|
|
92
|
-
this.eventEmitter.emit(messageContext.agentContext, {
|
|
93
|
-
type: RoutingEvents_1.RoutingEventTypes.RecipientKeylistUpdated,
|
|
94
|
-
payload: {
|
|
95
|
-
mediationRecord,
|
|
96
|
-
keylist,
|
|
97
|
-
},
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
async keylistUpdateAndAwait(agentContext, mediationRecord, updates, timeoutMs = 15000 // TODO: this should be a configurable value in agent config
|
|
101
|
-
) {
|
|
102
|
-
var _a;
|
|
103
|
-
const connection = await this.connectionService.getById(agentContext, mediationRecord.connectionId);
|
|
104
|
-
// Use our useDidKey configuration unless we know the key formatting other party is using
|
|
105
|
-
let useDidKey = agentContext.config.useDidKeyInProtocols;
|
|
106
|
-
const useDidKeysConnectionMetadata = connection.metadata.get(ConnectionMetadataTypes_1.ConnectionMetadataKeys.UseDidKeysForProtocol);
|
|
107
|
-
if (useDidKeysConnectionMetadata) {
|
|
108
|
-
useDidKey = (_a = useDidKeysConnectionMetadata[KeylistUpdateMessage_1.KeylistUpdateMessage.type.protocolUri]) !== null && _a !== void 0 ? _a : useDidKey;
|
|
109
|
-
}
|
|
110
|
-
const message = this.createKeylistUpdateMessage(updates.map((item) => new KeylistUpdateMessage_1.KeylistUpdate({
|
|
111
|
-
action: item.action,
|
|
112
|
-
recipientKey: useDidKey ? new dids_1.DidKey(item.recipientKey).did : item.recipientKey.publicKeyBase58,
|
|
113
|
-
})));
|
|
114
|
-
mediationRecord.assertReady();
|
|
115
|
-
mediationRecord.assertRole(models_2.MediationRole.Recipient);
|
|
116
|
-
// Create observable for event
|
|
117
|
-
const observable = this.eventEmitter.observable(RoutingEvents_1.RoutingEventTypes.RecipientKeylistUpdated);
|
|
118
|
-
const subject = new rxjs_1.ReplaySubject(1);
|
|
119
|
-
// Apply required filters to observable stream and create promise to subscribe to observable
|
|
120
|
-
observable
|
|
121
|
-
.pipe((0, Events_1.filterContextCorrelationId)(agentContext.contextCorrelationId),
|
|
122
|
-
// Only take event for current mediation record
|
|
123
|
-
(0, operators_1.filter)((event) => mediationRecord.id === event.payload.mediationRecord.id),
|
|
124
|
-
// Only wait for first event that matches the criteria
|
|
125
|
-
(0, operators_1.first)(),
|
|
126
|
-
// Do not wait for longer than specified timeout
|
|
127
|
-
(0, operators_1.timeout)({
|
|
128
|
-
first: timeoutMs,
|
|
129
|
-
meta: 'MediationRecipientService.keylistUpdateAndAwait',
|
|
130
|
-
}))
|
|
131
|
-
.subscribe(subject);
|
|
132
|
-
const outboundMessageContext = new models_1.OutboundMessageContext(message, { agentContext, connection });
|
|
133
|
-
await this.messageSender.sendMessage(outboundMessageContext);
|
|
134
|
-
const keylistUpdate = await (0, rxjs_1.firstValueFrom)(subject);
|
|
135
|
-
return keylistUpdate.payload.mediationRecord;
|
|
136
|
-
}
|
|
137
|
-
createKeylistUpdateMessage(updates) {
|
|
138
|
-
const keylistUpdateMessage = new KeylistUpdateMessage_1.KeylistUpdateMessage({
|
|
139
|
-
updates,
|
|
140
|
-
});
|
|
141
|
-
return keylistUpdateMessage;
|
|
142
|
-
}
|
|
143
|
-
async addMediationRouting(agentContext, routing, { mediatorId, useDefaultMediator = true } = {}) {
|
|
144
|
-
let mediationRecord = null;
|
|
145
|
-
if (mediatorId) {
|
|
146
|
-
mediationRecord = await this.getById(agentContext, mediatorId);
|
|
147
|
-
}
|
|
148
|
-
else if (useDefaultMediator) {
|
|
149
|
-
// If no mediatorId is provided, and useDefaultMediator is true (default)
|
|
150
|
-
// We use the default mediator if available
|
|
151
|
-
mediationRecord = await this.findDefaultMediator(agentContext);
|
|
152
|
-
}
|
|
153
|
-
// Return early if no mediation record
|
|
154
|
-
if (!mediationRecord)
|
|
155
|
-
return routing;
|
|
156
|
-
// new did has been created and mediator needs to be updated with the public key.
|
|
157
|
-
mediationRecord = await this.keylistUpdateAndAwait(agentContext, mediationRecord, [
|
|
158
|
-
{
|
|
159
|
-
recipientKey: routing.recipientKey,
|
|
160
|
-
action: messages_1.KeylistUpdateAction.add,
|
|
161
|
-
},
|
|
162
|
-
]);
|
|
163
|
-
return Object.assign(Object.assign({}, routing), { mediatorId: mediationRecord.id, endpoints: mediationRecord.endpoint ? [mediationRecord.endpoint] : routing.endpoints, routingKeys: mediationRecord.routingKeys.map((key) => crypto_1.Key.fromPublicKeyBase58(key, crypto_1.KeyType.Ed25519)) });
|
|
164
|
-
}
|
|
165
|
-
async removeMediationRouting(agentContext, { recipientKeys, mediatorId }) {
|
|
166
|
-
const mediationRecord = await this.getById(agentContext, mediatorId);
|
|
167
|
-
if (!mediationRecord) {
|
|
168
|
-
throw new error_1.CredoError('No mediation record to remove routing from has been found');
|
|
169
|
-
}
|
|
170
|
-
await this.keylistUpdateAndAwait(agentContext, mediationRecord, recipientKeys.map((item) => {
|
|
171
|
-
return {
|
|
172
|
-
recipientKey: item,
|
|
173
|
-
action: messages_1.KeylistUpdateAction.remove,
|
|
174
|
-
};
|
|
175
|
-
}));
|
|
176
|
-
}
|
|
177
|
-
async processMediationDeny(messageContext) {
|
|
178
|
-
const connection = messageContext.assertReadyConnection();
|
|
179
|
-
// Mediation record already exists
|
|
180
|
-
const mediationRecord = await this.findByConnectionId(messageContext.agentContext, connection.id);
|
|
181
|
-
if (!mediationRecord) {
|
|
182
|
-
throw new Error(`No mediation has been requested for this connection id: ${connection.id}`);
|
|
183
|
-
}
|
|
184
|
-
// Assert
|
|
185
|
-
mediationRecord.assertRole(models_2.MediationRole.Recipient);
|
|
186
|
-
mediationRecord.assertState(models_2.MediationState.Requested);
|
|
187
|
-
// Update record
|
|
188
|
-
await this.updateState(messageContext.agentContext, mediationRecord, models_2.MediationState.Denied);
|
|
189
|
-
return mediationRecord;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Update the record to a new state and emit an state changed event. Also updates the record
|
|
193
|
-
* in storage.
|
|
194
|
-
*
|
|
195
|
-
* @param MediationRecord The proof record to update the state for
|
|
196
|
-
* @param newState The state to update to
|
|
197
|
-
*
|
|
198
|
-
*/
|
|
199
|
-
async updateState(agentContext, mediationRecord, newState) {
|
|
200
|
-
const previousState = mediationRecord.state;
|
|
201
|
-
mediationRecord.state = newState;
|
|
202
|
-
await this.mediationRepository.update(agentContext, mediationRecord);
|
|
203
|
-
this.emitStateChangedEvent(agentContext, mediationRecord, previousState);
|
|
204
|
-
return mediationRecord;
|
|
205
|
-
}
|
|
206
|
-
emitStateChangedEvent(agentContext, mediationRecord, previousState) {
|
|
207
|
-
this.eventEmitter.emit(agentContext, {
|
|
208
|
-
type: RoutingEvents_1.RoutingEventTypes.MediationStateChanged,
|
|
209
|
-
payload: {
|
|
210
|
-
mediationRecord: mediationRecord.clone(),
|
|
211
|
-
previousState,
|
|
212
|
-
},
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
async getById(agentContext, id) {
|
|
216
|
-
return this.mediationRepository.getById(agentContext, id);
|
|
217
|
-
}
|
|
218
|
-
async findByConnectionId(agentContext, connectionId) {
|
|
219
|
-
return this.mediationRepository.findSingleByQuery(agentContext, { connectionId });
|
|
220
|
-
}
|
|
221
|
-
async getMediators(agentContext) {
|
|
222
|
-
return this.mediationRepository.getAll(agentContext);
|
|
223
|
-
}
|
|
224
|
-
async findAllMediatorsByQuery(agentContext, query, queryOptions) {
|
|
225
|
-
return await this.mediationRepository.findByQuery(agentContext, query, queryOptions);
|
|
226
|
-
}
|
|
227
|
-
async findDefaultMediator(agentContext) {
|
|
228
|
-
return this.mediationRepository.findSingleByQuery(agentContext, { default: true });
|
|
229
|
-
}
|
|
230
|
-
async discoverMediation(agentContext, mediatorId) {
|
|
231
|
-
// If mediatorId is passed, always use it (and error if it is not found)
|
|
232
|
-
if (mediatorId) {
|
|
233
|
-
return this.mediationRepository.getById(agentContext, mediatorId);
|
|
234
|
-
}
|
|
235
|
-
const defaultMediator = await this.findDefaultMediator(agentContext);
|
|
236
|
-
if (defaultMediator) {
|
|
237
|
-
if (defaultMediator.state !== models_2.MediationState.Granted) {
|
|
238
|
-
throw new error_1.CredoError(`Mediation State for ${defaultMediator.id} is not granted, but is set as default mediator!`);
|
|
239
|
-
}
|
|
240
|
-
return defaultMediator;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
async setDefaultMediator(agentContext, mediator) {
|
|
244
|
-
const mediationRecords = await this.mediationRepository.findByQuery(agentContext, { default: true });
|
|
245
|
-
for (const record of mediationRecords) {
|
|
246
|
-
record.setTag('default', false);
|
|
247
|
-
await this.mediationRepository.update(agentContext, record);
|
|
248
|
-
}
|
|
249
|
-
// Set record coming in tag to true and then update.
|
|
250
|
-
mediator.setTag('default', true);
|
|
251
|
-
await this.mediationRepository.update(agentContext, mediator);
|
|
252
|
-
}
|
|
253
|
-
async clearDefaultMediator(agentContext) {
|
|
254
|
-
const mediationRecord = await this.findDefaultMediator(agentContext);
|
|
255
|
-
if (mediationRecord) {
|
|
256
|
-
mediationRecord.setTag('default', false);
|
|
257
|
-
await this.mediationRepository.update(agentContext, mediationRecord);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
async updateUseDidKeysFlag(agentContext, connection, protocolUri, connectionUsesDidKey) {
|
|
261
|
-
var _a;
|
|
262
|
-
const useDidKeysForProtocol = (_a = connection.metadata.get(ConnectionMetadataTypes_1.ConnectionMetadataKeys.UseDidKeysForProtocol)) !== null && _a !== void 0 ? _a : {};
|
|
263
|
-
useDidKeysForProtocol[protocolUri] = connectionUsesDidKey;
|
|
264
|
-
connection.metadata.set(ConnectionMetadataTypes_1.ConnectionMetadataKeys.UseDidKeysForProtocol, useDidKeysForProtocol);
|
|
265
|
-
await this.connectionService.update(agentContext, connection);
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
exports.MediationRecipientService = MediationRecipientService;
|
|
269
|
-
exports.MediationRecipientService = MediationRecipientService = __decorate([
|
|
270
|
-
(0, plugins_1.injectable)(),
|
|
271
|
-
__metadata("design:paramtypes", [ConnectionService_1.ConnectionService,
|
|
272
|
-
MessageSender_1.MessageSender,
|
|
273
|
-
MediationRepository_1.MediationRepository,
|
|
274
|
-
EventEmitter_1.EventEmitter])
|
|
275
|
-
], MediationRecipientService);
|
|
276
|
-
//# sourceMappingURL=MediationRecipientService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediationRecipientService.js","sourceRoot":"","sources":["../../../../src/modules/routing/services/MediationRecipientService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAUA,+BAAoD;AACpD,8CAAuD;AAEvD,8DAA0D;AAC1D,kDAAkE;AAClE,gEAA4D;AAC5D,kDAA8D;AAC9D,4CAA8C;AAC9C,0CAA2C;AAC3C,8CAA6C;AAC7C,4EAAwE;AACxE,kGAA6F;AAC7F,oFAAgF;AAChF,qCAAmC;AACnC,gDAA6D;AAC7D,oDAAoD;AACpD,0CAKoB;AACpB,2EAAsF;AACtF,sCAAyD;AACzD,mEAA+D;AAC/D,2EAAuE;AAGhE,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AAC,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;IAC/D,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,YAA0B;QAC1D,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAA;QAEpE,IAAI,eAAe,EAAE,CAAC;YACpB,eAAe,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;YACxC,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,CAAA;QACtE,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,oBAAoB,CAChC,YAA0B,EAC1B,UAA4B,EAC5B,WAAmB,EACnB,oBAA6B;;QAE7B,MAAM,qBAAqB,GAAG,MAAA,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,gDAAsB,CAAC,qBAAqB,CAAC,mCAAI,EAAE,CAAA;QACzG,qBAAqB,CAAC,WAAW,CAAC,GAAG,oBAAoB,CAAA;QACzD,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,gDAAsB,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAA;QAC5F,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;IAC/D,CAAC;CACF,CAAA;AApWY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,oBAAU,GAAE;qCAQU,qCAAiB;QACrB,6BAAa;QACR,yCAAmB;QACzB,2BAAY;GAVjB,yBAAyB,CAoWrC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { AgentContext } from '../../../agent';
|
|
2
|
-
import type { InboundMessageContext } from '../../../agent/models/InboundMessageContext';
|
|
3
|
-
import type { Query, QueryOptions } from '../../../storage/StorageService';
|
|
4
|
-
import type { ForwardMessage, MediationRequestMessage } from '../messages';
|
|
5
|
-
import { EventEmitter } from '../../../agent/EventEmitter';
|
|
6
|
-
import { Logger } from '../../../logger';
|
|
7
|
-
import { ConnectionService } from '../../connections';
|
|
8
|
-
import { MessagePickupApi } from '../../message-pickup';
|
|
9
|
-
import { KeylistUpdateMessage, KeylistUpdateResponseMessage, MediationGrantMessage } from '../messages';
|
|
10
|
-
import { MediatorRoutingRecord } from '../repository';
|
|
11
|
-
import { MediationRecord } from '../repository/MediationRecord';
|
|
12
|
-
import { MediationRepository } from '../repository/MediationRepository';
|
|
13
|
-
import { MediatorRoutingRepository } from '../repository/MediatorRoutingRepository';
|
|
14
|
-
export declare class MediatorService {
|
|
15
|
-
private logger;
|
|
16
|
-
private mediationRepository;
|
|
17
|
-
private mediatorRoutingRepository;
|
|
18
|
-
private messagePickupApi;
|
|
19
|
-
private eventEmitter;
|
|
20
|
-
private connectionService;
|
|
21
|
-
constructor(mediationRepository: MediationRepository, mediatorRoutingRepository: MediatorRoutingRepository, messagePickupApi: MessagePickupApi, eventEmitter: EventEmitter, logger: Logger, connectionService: ConnectionService);
|
|
22
|
-
private getRoutingKeys;
|
|
23
|
-
processForwardMessage(messageContext: InboundMessageContext<ForwardMessage>): Promise<void>;
|
|
24
|
-
processKeylistUpdateRequest(messageContext: InboundMessageContext<KeylistUpdateMessage>): Promise<KeylistUpdateResponseMessage>;
|
|
25
|
-
createGrantMediationMessage(agentContext: AgentContext, mediationRecord: MediationRecord): Promise<{
|
|
26
|
-
mediationRecord: MediationRecord;
|
|
27
|
-
message: MediationGrantMessage;
|
|
28
|
-
}>;
|
|
29
|
-
processMediationRequest(messageContext: InboundMessageContext<MediationRequestMessage>): Promise<MediationRecord>;
|
|
30
|
-
findById(agentContext: AgentContext, mediatorRecordId: string): Promise<MediationRecord | null>;
|
|
31
|
-
getById(agentContext: AgentContext, mediatorRecordId: string): Promise<MediationRecord>;
|
|
32
|
-
getAll(agentContext: AgentContext): Promise<MediationRecord[]>;
|
|
33
|
-
findMediatorRoutingRecord(agentContext: AgentContext): Promise<MediatorRoutingRecord | null>;
|
|
34
|
-
createMediatorRoutingRecord(agentContext: AgentContext): Promise<MediatorRoutingRecord | null>;
|
|
35
|
-
findAllByQuery(agentContext: AgentContext, query: Query<MediationRecord>, queryOptions?: QueryOptions): Promise<MediationRecord[]>;
|
|
36
|
-
private updateState;
|
|
37
|
-
private emitStateChangedEvent;
|
|
38
|
-
private updateUseDidKeysFlag;
|
|
39
|
-
}
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.MediatorService = void 0;
|
|
16
|
-
const EventEmitter_1 = require("../../../agent/EventEmitter");
|
|
17
|
-
const MessageSender_1 = require("../../../agent/MessageSender");
|
|
18
|
-
const constants_1 = require("../../../constants");
|
|
19
|
-
const crypto_1 = require("../../../crypto");
|
|
20
|
-
const error_1 = require("../../../error");
|
|
21
|
-
const plugins_1 = require("../../../plugins");
|
|
22
|
-
const connections_1 = require("../../connections");
|
|
23
|
-
const ConnectionMetadataTypes_1 = require("../../connections/repository/ConnectionMetadataTypes");
|
|
24
|
-
const helpers_1 = require("../../dids/helpers");
|
|
25
|
-
const message_pickup_1 = require("../../message-pickup");
|
|
26
|
-
const MessagePickupSession_1 = require("../../message-pickup/MessagePickupSession");
|
|
27
|
-
const MediatorModuleConfig_1 = require("../MediatorModuleConfig");
|
|
28
|
-
const MessageForwardingStrategy_1 = require("../MessageForwardingStrategy");
|
|
29
|
-
const RoutingEvents_1 = require("../RoutingEvents");
|
|
30
|
-
const messages_1 = require("../messages");
|
|
31
|
-
const MediationRole_1 = require("../models/MediationRole");
|
|
32
|
-
const MediationState_1 = require("../models/MediationState");
|
|
33
|
-
const repository_1 = require("../repository");
|
|
34
|
-
const MediationRecord_1 = require("../repository/MediationRecord");
|
|
35
|
-
const MediationRepository_1 = require("../repository/MediationRepository");
|
|
36
|
-
const MediatorRoutingRepository_1 = require("../repository/MediatorRoutingRepository");
|
|
37
|
-
let MediatorService = class MediatorService {
|
|
38
|
-
constructor(mediationRepository, mediatorRoutingRepository, messagePickupApi, eventEmitter, logger, connectionService) {
|
|
39
|
-
this.mediationRepository = mediationRepository;
|
|
40
|
-
this.mediatorRoutingRepository = mediatorRoutingRepository;
|
|
41
|
-
this.messagePickupApi = messagePickupApi;
|
|
42
|
-
this.eventEmitter = eventEmitter;
|
|
43
|
-
this.logger = logger;
|
|
44
|
-
this.connectionService = connectionService;
|
|
45
|
-
}
|
|
46
|
-
async getRoutingKeys(agentContext) {
|
|
47
|
-
const mediatorRoutingRecord = await this.findMediatorRoutingRecord(agentContext);
|
|
48
|
-
if (mediatorRoutingRecord) {
|
|
49
|
-
// Return the routing keys
|
|
50
|
-
this.logger.debug(`Returning mediator routing keys ${mediatorRoutingRecord.routingKeys}`);
|
|
51
|
-
return mediatorRoutingRecord.routingKeys;
|
|
52
|
-
}
|
|
53
|
-
throw new error_1.CredoError(`Mediator has not been initialized yet.`);
|
|
54
|
-
}
|
|
55
|
-
async processForwardMessage(messageContext) {
|
|
56
|
-
const { message, agentContext } = messageContext;
|
|
57
|
-
// TODO: update to class-validator validation
|
|
58
|
-
if (!message.to) {
|
|
59
|
-
throw new error_1.CredoError('Invalid Message: Missing required attribute "to"');
|
|
60
|
-
}
|
|
61
|
-
const mediationRecord = await this.mediationRepository.getSingleByRecipientKey(agentContext, message.to);
|
|
62
|
-
// Assert mediation record is ready to be used
|
|
63
|
-
mediationRecord.assertReady();
|
|
64
|
-
mediationRecord.assertRole(MediationRole_1.MediationRole.Mediator);
|
|
65
|
-
const connection = await this.connectionService.getById(agentContext, mediationRecord.connectionId);
|
|
66
|
-
connection.assertReady();
|
|
67
|
-
const messageForwardingStrategy = agentContext.dependencyManager.resolve(MediatorModuleConfig_1.MediatorModuleConfig).messageForwardingStrategy;
|
|
68
|
-
const messageSender = agentContext.dependencyManager.resolve(MessageSender_1.MessageSender);
|
|
69
|
-
switch (messageForwardingStrategy) {
|
|
70
|
-
case MessageForwardingStrategy_1.MessageForwardingStrategy.QueueOnly:
|
|
71
|
-
await this.messagePickupApi.queueMessage({
|
|
72
|
-
connectionId: mediationRecord.connectionId,
|
|
73
|
-
recipientDids: [(0, helpers_1.verkeyToDidKey)(message.to)],
|
|
74
|
-
message: message.message,
|
|
75
|
-
});
|
|
76
|
-
break;
|
|
77
|
-
case MessageForwardingStrategy_1.MessageForwardingStrategy.QueueAndLiveModeDelivery: {
|
|
78
|
-
await this.messagePickupApi.queueMessage({
|
|
79
|
-
connectionId: mediationRecord.connectionId,
|
|
80
|
-
recipientDids: [(0, helpers_1.verkeyToDidKey)(message.to)],
|
|
81
|
-
message: message.message,
|
|
82
|
-
});
|
|
83
|
-
const session = await this.messagePickupApi.getLiveModeSession({
|
|
84
|
-
connectionId: mediationRecord.connectionId,
|
|
85
|
-
role: MessagePickupSession_1.MessagePickupSessionRole.MessageHolder,
|
|
86
|
-
});
|
|
87
|
-
if (session) {
|
|
88
|
-
await this.messagePickupApi.deliverMessagesFromQueue({
|
|
89
|
-
pickupSessionId: session.id,
|
|
90
|
-
recipientDid: (0, helpers_1.verkeyToDidKey)(message.to),
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
case MessageForwardingStrategy_1.MessageForwardingStrategy.DirectDelivery:
|
|
96
|
-
// The message inside the forward message is packed so we just send the packed
|
|
97
|
-
// message to the connection associated with it
|
|
98
|
-
await messageSender.sendPackage(agentContext, {
|
|
99
|
-
connection,
|
|
100
|
-
recipientKey: (0, helpers_1.verkeyToDidKey)(message.to),
|
|
101
|
-
encryptedMessage: message.message,
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
async processKeylistUpdateRequest(messageContext) {
|
|
106
|
-
// Assert Ready connection
|
|
107
|
-
const connection = messageContext.assertReadyConnection();
|
|
108
|
-
const { message } = messageContext;
|
|
109
|
-
const keylist = [];
|
|
110
|
-
const mediationRecord = await this.mediationRepository.getByConnectionId(messageContext.agentContext, connection.id);
|
|
111
|
-
mediationRecord.assertReady();
|
|
112
|
-
mediationRecord.assertRole(MediationRole_1.MediationRole.Mediator);
|
|
113
|
-
// Update connection metadata to use their key format in further protocol messages
|
|
114
|
-
const connectionUsesDidKey = message.updates.some((update) => (0, helpers_1.isDidKey)(update.recipientKey));
|
|
115
|
-
await this.updateUseDidKeysFlag(messageContext.agentContext, connection, messages_1.KeylistUpdateMessage.type.protocolUri, connectionUsesDidKey);
|
|
116
|
-
for (const update of message.updates) {
|
|
117
|
-
const updated = new messages_1.KeylistUpdated({
|
|
118
|
-
action: update.action,
|
|
119
|
-
recipientKey: update.recipientKey,
|
|
120
|
-
result: messages_1.KeylistUpdateResult.NoChange,
|
|
121
|
-
});
|
|
122
|
-
// According to RFC 0211 key should be a did key, but base58 encoded verkey was used before
|
|
123
|
-
// RFC was accepted. This converts the key to a public key base58 if it is a did key.
|
|
124
|
-
const publicKeyBase58 = (0, helpers_1.didKeyToVerkey)(update.recipientKey);
|
|
125
|
-
if (update.action === messages_1.KeylistUpdateAction.add) {
|
|
126
|
-
mediationRecord.addRecipientKey(publicKeyBase58);
|
|
127
|
-
updated.result = messages_1.KeylistUpdateResult.Success;
|
|
128
|
-
keylist.push(updated);
|
|
129
|
-
}
|
|
130
|
-
else if (update.action === messages_1.KeylistUpdateAction.remove) {
|
|
131
|
-
const success = mediationRecord.removeRecipientKey(publicKeyBase58);
|
|
132
|
-
updated.result = success ? messages_1.KeylistUpdateResult.Success : messages_1.KeylistUpdateResult.NoChange;
|
|
133
|
-
keylist.push(updated);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
await this.mediationRepository.update(messageContext.agentContext, mediationRecord);
|
|
137
|
-
return new messages_1.KeylistUpdateResponseMessage({ keylist, threadId: message.threadId });
|
|
138
|
-
}
|
|
139
|
-
async createGrantMediationMessage(agentContext, mediationRecord) {
|
|
140
|
-
// Assert
|
|
141
|
-
mediationRecord.assertState(MediationState_1.MediationState.Requested);
|
|
142
|
-
mediationRecord.assertRole(MediationRole_1.MediationRole.Mediator);
|
|
143
|
-
await this.updateState(agentContext, mediationRecord, MediationState_1.MediationState.Granted);
|
|
144
|
-
// Use our useDidKey configuration, as this is the first interaction for this protocol
|
|
145
|
-
const useDidKey = agentContext.config.useDidKeyInProtocols;
|
|
146
|
-
const message = new messages_1.MediationGrantMessage({
|
|
147
|
-
endpoint: agentContext.config.endpoints[0],
|
|
148
|
-
routingKeys: useDidKey
|
|
149
|
-
? (await this.getRoutingKeys(agentContext)).map(helpers_1.verkeyToDidKey)
|
|
150
|
-
: await this.getRoutingKeys(agentContext),
|
|
151
|
-
threadId: mediationRecord.threadId,
|
|
152
|
-
});
|
|
153
|
-
return { mediationRecord, message };
|
|
154
|
-
}
|
|
155
|
-
async processMediationRequest(messageContext) {
|
|
156
|
-
// Assert ready connection
|
|
157
|
-
const connection = messageContext.assertReadyConnection();
|
|
158
|
-
const mediationRecord = new MediationRecord_1.MediationRecord({
|
|
159
|
-
connectionId: connection.id,
|
|
160
|
-
role: MediationRole_1.MediationRole.Mediator,
|
|
161
|
-
state: MediationState_1.MediationState.Requested,
|
|
162
|
-
threadId: messageContext.message.threadId,
|
|
163
|
-
});
|
|
164
|
-
await this.mediationRepository.save(messageContext.agentContext, mediationRecord);
|
|
165
|
-
this.emitStateChangedEvent(messageContext.agentContext, mediationRecord, null);
|
|
166
|
-
return mediationRecord;
|
|
167
|
-
}
|
|
168
|
-
async findById(agentContext, mediatorRecordId) {
|
|
169
|
-
return this.mediationRepository.findById(agentContext, mediatorRecordId);
|
|
170
|
-
}
|
|
171
|
-
async getById(agentContext, mediatorRecordId) {
|
|
172
|
-
return this.mediationRepository.getById(agentContext, mediatorRecordId);
|
|
173
|
-
}
|
|
174
|
-
async getAll(agentContext) {
|
|
175
|
-
return await this.mediationRepository.getAll(agentContext);
|
|
176
|
-
}
|
|
177
|
-
async findMediatorRoutingRecord(agentContext) {
|
|
178
|
-
const routingRecord = await this.mediatorRoutingRepository.findById(agentContext, this.mediatorRoutingRepository.MEDIATOR_ROUTING_RECORD_ID);
|
|
179
|
-
return routingRecord;
|
|
180
|
-
}
|
|
181
|
-
async createMediatorRoutingRecord(agentContext) {
|
|
182
|
-
const routingKey = await agentContext.wallet.createKey({
|
|
183
|
-
keyType: crypto_1.KeyType.Ed25519,
|
|
184
|
-
});
|
|
185
|
-
const routingRecord = new repository_1.MediatorRoutingRecord({
|
|
186
|
-
id: this.mediatorRoutingRepository.MEDIATOR_ROUTING_RECORD_ID,
|
|
187
|
-
// FIXME: update to fingerprint to include the key type
|
|
188
|
-
routingKeys: [routingKey.publicKeyBase58],
|
|
189
|
-
});
|
|
190
|
-
try {
|
|
191
|
-
await this.mediatorRoutingRepository.save(agentContext, routingRecord);
|
|
192
|
-
this.eventEmitter.emit(agentContext, {
|
|
193
|
-
type: RoutingEvents_1.RoutingEventTypes.RoutingCreatedEvent,
|
|
194
|
-
payload: {
|
|
195
|
-
routing: {
|
|
196
|
-
endpoints: agentContext.config.endpoints,
|
|
197
|
-
routingKeys: [],
|
|
198
|
-
recipientKey: routingKey,
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
catch (error) {
|
|
204
|
-
// This addresses some race conditions issues where we first check if the record exists
|
|
205
|
-
// then we create one if it doesn't, but another process has created one in the meantime
|
|
206
|
-
// Although not the most elegant solution, it addresses the issues
|
|
207
|
-
if (error instanceof error_1.RecordDuplicateError) {
|
|
208
|
-
// the record already exists, which is our intended end state
|
|
209
|
-
// we can ignore this error and fetch the existing record
|
|
210
|
-
return this.mediatorRoutingRepository.getById(agentContext, this.mediatorRoutingRepository.MEDIATOR_ROUTING_RECORD_ID);
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
throw error;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return routingRecord;
|
|
217
|
-
}
|
|
218
|
-
async findAllByQuery(agentContext, query, queryOptions) {
|
|
219
|
-
return await this.mediationRepository.findByQuery(agentContext, query, queryOptions);
|
|
220
|
-
}
|
|
221
|
-
async updateState(agentContext, mediationRecord, newState) {
|
|
222
|
-
const previousState = mediationRecord.state;
|
|
223
|
-
mediationRecord.state = newState;
|
|
224
|
-
await this.mediationRepository.update(agentContext, mediationRecord);
|
|
225
|
-
this.emitStateChangedEvent(agentContext, mediationRecord, previousState);
|
|
226
|
-
}
|
|
227
|
-
emitStateChangedEvent(agentContext, mediationRecord, previousState) {
|
|
228
|
-
this.eventEmitter.emit(agentContext, {
|
|
229
|
-
type: RoutingEvents_1.RoutingEventTypes.MediationStateChanged,
|
|
230
|
-
payload: {
|
|
231
|
-
mediationRecord: mediationRecord.clone(),
|
|
232
|
-
previousState,
|
|
233
|
-
},
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
async updateUseDidKeysFlag(agentContext, connection, protocolUri, connectionUsesDidKey) {
|
|
237
|
-
var _a;
|
|
238
|
-
const useDidKeysForProtocol = (_a = connection.metadata.get(ConnectionMetadataTypes_1.ConnectionMetadataKeys.UseDidKeysForProtocol)) !== null && _a !== void 0 ? _a : {};
|
|
239
|
-
useDidKeysForProtocol[protocolUri] = connectionUsesDidKey;
|
|
240
|
-
connection.metadata.set(ConnectionMetadataTypes_1.ConnectionMetadataKeys.UseDidKeysForProtocol, useDidKeysForProtocol);
|
|
241
|
-
await this.connectionService.update(agentContext, connection);
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
exports.MediatorService = MediatorService;
|
|
245
|
-
exports.MediatorService = MediatorService = __decorate([
|
|
246
|
-
(0, plugins_1.injectable)(),
|
|
247
|
-
__param(4, (0, plugins_1.inject)(constants_1.InjectionSymbols.Logger)),
|
|
248
|
-
__metadata("design:paramtypes", [MediationRepository_1.MediationRepository,
|
|
249
|
-
MediatorRoutingRepository_1.MediatorRoutingRepository,
|
|
250
|
-
message_pickup_1.MessagePickupApi,
|
|
251
|
-
EventEmitter_1.EventEmitter, Object, connections_1.ConnectionService])
|
|
252
|
-
], MediatorService);
|
|
253
|
-
//# sourceMappingURL=MediatorService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediatorService.js","sourceRoot":"","sources":["../../../../src/modules/routing/services/MediatorService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAOA,8DAA0D;AAC1D,gEAA4D;AAC5D,kDAAqD;AACrD,4CAAyC;AACzC,0CAAiE;AAEjE,8CAAqD;AACrD,mDAAqD;AACrD,kGAA6F;AAC7F,gDAA6E;AAC7E,yDAAuD;AACvD,oFAAoF;AACpF,kEAA8D;AAC9D,4EAAwE;AACxE,oDAAoD;AACpD,0CAOoB;AACpB,2DAAuD;AACvD,6DAAyD;AACzD,8CAAqD;AACrD,mEAA+D;AAC/D,2EAAuE;AACvE,uFAAmF;AAG5E,IAAM,eAAe,GAArB,MAAM,eAAe;IAQ1B,YACE,mBAAwC,EACxC,yBAAoD,EACpD,gBAAkC,EAClC,YAA0B,EACO,MAAc,EAC/C,iBAAoC;QAEpC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAA;QAC9C,IAAI,CA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AqB,EAAE,qBAAqB,CAAC,CAAA;QAC5F,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;IAC/D,CAAC;CACF,CAAA;AA9RY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,oBAAU,GAAE;IAcR,WAAA,IAAA,gBAAM,EAAC,4BAAgB,CAAC,MAAM,CAAC,CAAA;qCAJX,yCAAmB;QACb,qDAAyB;QAClC,iCAAgB;QACpB,2BAAY,UAEP,+BAAiB;GAd3B,eAAe,CA8R3B"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { AgentContext } from '../../../agent';
|
|
2
|
-
import type { Key } from '../../../crypto';
|
|
3
|
-
import type { Routing } from '../../connections';
|
|
4
|
-
import { EventEmitter } from '../../../agent/EventEmitter';
|
|
5
|
-
import { MediationRecipientService } from './MediationRecipientService';
|
|
6
|
-
export declare class RoutingService {
|
|
7
|
-
private mediationRecipientService;
|
|
8
|
-
private eventEmitter;
|
|
9
|
-
constructor(mediationRecipientService: MediationRecipientService, eventEmitter: EventEmitter);
|
|
10
|
-
getRouting(agentContext: AgentContext, { mediatorId, useDefaultMediator }?: GetRoutingOptions): Promise<Routing>;
|
|
11
|
-
removeRouting(agentContext: AgentContext, options: RemoveRoutingOptions): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
export interface GetRoutingOptions {
|
|
14
|
-
/**
|
|
15
|
-
* Identifier of the mediator to use when setting up routing
|
|
16
|
-
*/
|
|
17
|
-
mediatorId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether to use the default mediator if available and `mediatorId` has not been provided
|
|
20
|
-
* @default true
|
|
21
|
-
*/
|
|
22
|
-
useDefaultMediator?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface RemoveRoutingOptions {
|
|
25
|
-
/**
|
|
26
|
-
* Keys to remove routing from
|
|
27
|
-
*/
|
|
28
|
-
recipientKeys: Key[];
|
|
29
|
-
/**
|
|
30
|
-
* Identifier of the mediator used when routing has been set up
|
|
31
|
-
*/
|
|
32
|
-
mediatorId: string;
|
|
33
|
-
}
|