@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cCredentialService.js","sourceRoot":"","sources":["../../../src/modules/vc/W3cCredentialService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,uCAAwC;AACxC,2CAA0C;AAE1C,2CAAwD;AACxD,qDAAgE;AAChE,4FAAwF;AACxF,6GAAyG;AACzG,qCAAmF;AACnF,8EAA0E;AAC1E,qCAAsC;AACtC,2EAAuE;AACvE,6CAA2E;AAGpE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAK/B,YACE,uBAAgD,EAChD,0BAAsD,EACtD,uBAAgD;QAEhD,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAA;QACtD,IAAI,CAAC,0BAA0B,GAAG,0BAA0B,CAAA;QAC5D,IAAI,CAAC,uBAAuB,GAAG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 @@ import type { W3cCredential } from './models/credential/W3cCredential';
|
|
|
7
7
|
import type { W3cPresentation } from './models/presentation/W3cPresentation';
|
|
8
8
|
import type { JwaSignatureAlgorithm } from '../../crypto/jose/jwa';
|
|
9
9
|
import type { SingleOrArray } from '../../utils/type';
|
|
10
|
+
import type { EncodedX509Certificate } from '../x509';
|
|
10
11
|
export type W3cSignCredentialOptions<Format extends ClaimFormat.JwtVc | ClaimFormat.LdpVc | undefined = undefined> = Format extends ClaimFormat.JwtVc ? W3cJwtSignCredentialOptions : Format extends ClaimFormat.LdpVc ? W3cJsonLdSignCredentialOptions : W3cJwtSignCredentialOptions | W3cJsonLdSignCredentialOptions;
|
|
11
12
|
export type W3cVerifyCredentialOptions<Format extends ClaimFormat.JwtVc | ClaimFormat.LdpVc | undefined = undefined> = Format extends ClaimFormat.JwtVc ? W3cJwtVerifyCredentialOptions : Format extends ClaimFormat.LdpVc ? W3cJsonLdVerifyCredentialOptions : W3cJwtVerifyCredentialOptions | W3cJsonLdVerifyCredentialOptions;
|
|
12
13
|
export type W3cSignPresentationOptions<Format extends ClaimFormat.JwtVp | ClaimFormat.LdpVp | undefined = undefined> = Format extends ClaimFormat.JwtVp ? W3cJwtSignPresentationOptions : Format extends ClaimFormat.LdpVp ? W3cJsonLdSignPresentationOptions : W3cJwtSignPresentationOptions | W3cJsonLdSignPresentationOptions;
|
|
@@ -135,20 +136,9 @@ interface W3cVerifyPresentationOptionsBase {
|
|
|
135
136
|
*/
|
|
136
137
|
verifyCredentialStatus?: boolean;
|
|
137
138
|
}
|
|
138
|
-
export interface VerificationContext {
|
|
139
|
-
/**
|
|
140
|
-
* The `id` of the `ProofRecord` that this verification is bound to.
|
|
141
|
-
*/
|
|
142
|
-
didcommProofRecordId?: string;
|
|
143
|
-
/**
|
|
144
|
-
* The `id` of the `OpenId4VcVerificationSessionRecord` that this verification is bound to.
|
|
145
|
-
*/
|
|
146
|
-
openId4VcVerificationSessionId?: string;
|
|
147
|
-
}
|
|
148
139
|
export interface W3cJwtVerifyPresentationOptions extends W3cVerifyPresentationOptionsBase {
|
|
149
140
|
presentation: W3cJwtVerifiablePresentation | string;
|
|
150
|
-
trustedCertificates?: [
|
|
151
|
-
verificationContext?: VerificationContext;
|
|
141
|
+
trustedCertificates?: EncodedX509Certificate[];
|
|
152
142
|
}
|
|
153
143
|
export interface W3cJsonLdVerifyPresentationOptions extends W3cVerifyPresentationOptionsBase {
|
|
154
144
|
presentation: W3cJsonLdVerifiablePresentation;
|
|
@@ -4,12 +4,11 @@ exports.W3cCredentialsModuleConfig = void 0;
|
|
|
4
4
|
const documentLoader_1 = require("./data-integrity/libraries/documentLoader");
|
|
5
5
|
class W3cCredentialsModuleConfig {
|
|
6
6
|
constructor(options) {
|
|
7
|
-
this.options = options
|
|
7
|
+
this.options = options ?? {};
|
|
8
8
|
}
|
|
9
9
|
/** See {@link W3cCredentialsModuleConfigOptions.documentLoader} */
|
|
10
10
|
get documentLoader() {
|
|
11
|
-
|
|
12
|
-
return (_a = this.options.documentLoader) !== null && _a !== void 0 ? _a : documentLoader_1.defaultDocumentLoader;
|
|
11
|
+
return this.options.documentLoader ?? documentLoader_1.defaultDocumentLoader;
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
14
|
exports.W3cCredentialsModuleConfig = W3cCredentialsModuleConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cCredentialsModuleConfig.js","sourceRoot":"","sources":["../../../src/modules/vc/W3cCredentialsModuleConfig.ts"],"names":[],"mappings":";;;AAEA,8EAAiF;AAgCjF,MAAa,0BAA0B;IAGrC,YAAmB,OAA2C;QAC5D,IAAI,CAAC,OAAO,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"W3cCredentialsModuleConfig.js","sourceRoot":"","sources":["../../../src/modules/vc/W3cCredentialsModuleConfig.ts"],"names":[],"mappings":";;;AAEA,8EAAiF;AAgCjF,MAAa,0BAA0B;IAGrC,YAAmB,OAA2C;QAC5D,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAA;IAC9B,CAAC;IAED,mEAAmE;IACnE,IAAW,cAAc;QACvB,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,IAAI,sCAAqB,CAAA;IAC7D,CAAC;CACF;AAXD,gEAWC"}
|
|
@@ -8,17 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
11
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
13
|
};
|
|
@@ -52,7 +41,6 @@ let W3cJsonLdCredentialService = class W3cJsonLdCredentialService {
|
|
|
52
41
|
* Signs a credential
|
|
53
42
|
*/
|
|
54
43
|
async signCredential(agentContext, options) {
|
|
55
|
-
var _a;
|
|
56
44
|
const WalletKeyPair = (0, WalletKeyPair_1.createWalletKeyPairClass)(agentContext.wallet);
|
|
57
45
|
const signingKey = await this.getPublicKeyFromVerificationMethod(agentContext, options.verificationMethod);
|
|
58
46
|
const suiteInfo = this.signatureSuiteRegistry.getByProofType(options.proofType);
|
|
@@ -73,7 +61,7 @@ let W3cJsonLdCredentialService = class W3cJsonLdCredentialService {
|
|
|
73
61
|
verificationMethod: options.verificationMethod,
|
|
74
62
|
},
|
|
75
63
|
useNativeCanonize: false,
|
|
76
|
-
date:
|
|
64
|
+
date: options.created ?? (0, util_1.w3cDate)(),
|
|
77
65
|
});
|
|
78
66
|
const result = await vc_1.default.issue({
|
|
79
67
|
credential: utils_1.JsonTransformer.toJSON(options.credential),
|
|
@@ -90,9 +78,8 @@ let W3cJsonLdCredentialService = class W3cJsonLdCredentialService {
|
|
|
90
78
|
* @returns the verification result
|
|
91
79
|
*/
|
|
92
80
|
async verifyCredential(agentContext, options) {
|
|
93
|
-
var _a, _b, _c;
|
|
94
81
|
try {
|
|
95
|
-
const verifyCredentialStatus =
|
|
82
|
+
const verifyCredentialStatus = options.verifyCredentialStatus ?? true;
|
|
96
83
|
const suites = this.getSignatureSuitesForCredential(agentContext, options.credential);
|
|
97
84
|
const verifyOptions = {
|
|
98
85
|
credential: utils_1.JsonTransformer.toJSON(options.credential),
|
|
@@ -113,10 +100,10 @@ let W3cJsonLdCredentialService = class W3cJsonLdCredentialService {
|
|
|
113
100
|
verifyOptions['purpose'] = options.proofPurpose;
|
|
114
101
|
}
|
|
115
102
|
const result = await vc_1.default.verifyCredential(verifyOptions);
|
|
116
|
-
const { verified: isValid
|
|
103
|
+
const { verified: isValid, ...remainingResult } = result;
|
|
117
104
|
if (!isValid) {
|
|
118
|
-
agentContext.config.logger.debug(`Credential verification failed: ${
|
|
119
|
-
stack:
|
|
105
|
+
agentContext.config.logger.debug(`Credential verification failed: ${result.error?.message}`, {
|
|
106
|
+
stack: result.error?.stack,
|
|
120
107
|
});
|
|
121
108
|
}
|
|
122
109
|
// We map the result to our own result type to make it easier to work with
|
|
@@ -125,7 +112,10 @@ let W3cJsonLdCredentialService = class W3cJsonLdCredentialService {
|
|
|
125
112
|
return {
|
|
126
113
|
isValid,
|
|
127
114
|
validations: {
|
|
128
|
-
vcJs:
|
|
115
|
+
vcJs: {
|
|
116
|
+
isValid,
|
|
117
|
+
...remainingResult,
|
|
118
|
+
},
|
|
129
119
|
},
|
|
130
120
|
error: result.error,
|
|
131
121
|
};
|
|
@@ -225,18 +215,17 @@ let W3cJsonLdCredentialService = class W3cJsonLdCredentialService {
|
|
|
225
215
|
verifyOptions['presentationPurpose'] = options.purpose;
|
|
226
216
|
}
|
|
227
217
|
const result = await vc_1.default.verify(verifyOptions);
|
|
228
|
-
const { verified: isValid
|
|
229
|
-
// We map the result to our own result type to make it easier to work with
|
|
230
|
-
// however, for now we just add a single vcJs validation result as we don't
|
|
231
|
-
// have access to the internal validation results of vc-js
|
|
232
|
-
, ["verified"]);
|
|
218
|
+
const { verified: isValid, ...remainingResult } = result;
|
|
233
219
|
// We map the result to our own result type to make it easier to work with
|
|
234
220
|
// however, for now we just add a single vcJs validation result as we don't
|
|
235
221
|
// have access to the internal validation results of vc-js
|
|
236
222
|
return {
|
|
237
223
|
isValid,
|
|
238
224
|
validations: {
|
|
239
|
-
vcJs:
|
|
225
|
+
vcJs: {
|
|
226
|
+
isValid,
|
|
227
|
+
...remainingResult,
|
|
228
|
+
},
|
|
240
229
|
},
|
|
241
230
|
error: result.error,
|
|
242
231
|
};
|
|
@@ -287,8 +276,7 @@ let W3cJsonLdCredentialService = class W3cJsonLdCredentialService {
|
|
|
287
276
|
proofs = [proofs];
|
|
288
277
|
}
|
|
289
278
|
return proofs.map((proof) => {
|
|
290
|
-
|
|
291
|
-
const SuiteClass = (_a = this.signatureSuiteRegistry.getByProofType(proof.type)) === null || _a === void 0 ? void 0 : _a.suiteClass;
|
|
279
|
+
const SuiteClass = this.signatureSuiteRegistry.getByProofType(proof.type)?.suiteClass;
|
|
292
280
|
if (SuiteClass) {
|
|
293
281
|
return new SuiteClass({
|
|
294
282
|
LDKeyClass: WalletKeyPair,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cJsonLdCredentialService.js","sourceRoot":"","sources":["../../../../src/modules/vc/data-integrity/W3cJsonLdCredentialService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"W3cJsonLdCredentialService.js","sourceRoot":"","sources":["../../../../src/modules/vc/data-integrity/W3cJsonLdCredentialService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAaA,iEAAwE;AACxE,0CAA2C;AAC3C,8CAA6C;AAC7C,0CAAyD;AACzD,qCAA+C;AAC/C,yDAAyE;AACzE,8EAA0E;AAC1E,kCAAiC;AAEjC,qEAAiE;AACjE,+CAA2C;AAC3C,6CAAuE;AACvE,gEAAuC;AACvC,wDAA+B;AAC/B,qCAAwD;AACxD,8FAA0F;AAE1F;;;GAGG;AAEI,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAIrC,YACE,sBAA8C,EAC9C,0BAAsD;QAEtD,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAA;QACpD,IAAI,CAAC,0BAA0B,GAAG,0BAA0B,CAAA;IAC9D,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,cAAc,CACzB,YAA0B,EAC1B,OAAuC;QAEvC,MAAM,aAAa,GAAG,IAAA,wCAAwB,EAAC,YAAY,CAAC,MAAM,CAAC,CAAA;QAEnE,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,kCAAkC,CAAC,YAAY,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;QAC1G,MAAM,SAAS,GAAG,IAAI,CAAC,sBAAsB,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QAE/E,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YACrD,MAAM,IAAI,kBAAU,CAAC,kEAAkE,CAAC,CAAA;QAC1F,CAAC;QAED,MAAM,OAAO,GAAG,IAAI,aAAa,CAAC;YAChC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,kEAAkE;YAC3G,EAAE,EAAE,OAAO,CAAC,kBAAkB;YAC9B,GAAG,EAAE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,6 @@ const W3cJsonLdVerifiableCredential_1 = require("./models/W3cJsonLdVerifiableCre
|
|
|
33
33
|
const deriveProof = async (proofDocument, revealDocument,
|
|
34
34
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
35
|
{ suite, skipProofCompaction, documentLoader, nonce }) => {
|
|
36
|
-
var _a;
|
|
37
36
|
if (!suite) {
|
|
38
37
|
throw new TypeError('"options.suite" is required.');
|
|
39
38
|
}
|
|
@@ -57,7 +56,7 @@ const deriveProof = async (proofDocument, revealDocument,
|
|
|
57
56
|
});
|
|
58
57
|
if (proofs.length > 1) {
|
|
59
58
|
// convert the proof property value from object ot array of objects
|
|
60
|
-
derivedProof =
|
|
59
|
+
derivedProof = { ...derivedProof, proof: [derivedProof.proof] };
|
|
61
60
|
// drop the first proof because it's already been processed
|
|
62
61
|
proofs.splice(0, 1);
|
|
63
62
|
// add all the additional proofs to the derivedProof document
|
|
@@ -95,7 +94,7 @@ const deriveProof = async (proofDocument, revealDocument,
|
|
|
95
94
|
* @included tag messes up the canonicalized bytes leading to a bad
|
|
96
95
|
* signature that won't verify.
|
|
97
96
|
**/
|
|
98
|
-
if (
|
|
97
|
+
if (compactProof.proof?.['@included']) {
|
|
99
98
|
compactProof.proof = compactProof.proof['@included'];
|
|
100
99
|
}
|
|
101
100
|
// add proof to document
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deriveProof.js","sourceRoot":"","sources":["../../../../src/modules/vc/data-integrity/deriveProof.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;AAIH,0CAAgD;AAChD,4CAAiD;AAEjD,6CAAqD;AACrD,gEAAuC;AACvC,0FAAsF;AAQtF;;;;;;;;GAQG;AACI,MAAM,WAAW,GAAG,KAAK,EAC9B,aAAyB,EACzB,cAA0B;AAC1B,8DAA8D;AAC9D,EAAE,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,KAAK,EAAO,EAClB,EAAE
|
|
1
|
+
{"version":3,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AAC,CAAC,CAAA;QACxC,gBAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAA;IAChE,CAAC;SAAM,CAAC;QACN,OAAO,YAAY,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QACrC,gBAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,CAAA;IACrE,CAAC;IAED,OAAO,uBAAe,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,6DAA6B,CAAC,CAAA;AACvF,CAAC,CAAA;AA/FY,QAAA,WAAW,eA+FvB"}
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.SignatureSuiteRegistry = exports.SignatureSuiteToken = void 0;
|
|
17
|
+
exports.W3cJsonLdCredentialService = exports.SignatureSuiteRegistry = exports.SignatureSuiteToken = void 0;
|
|
18
18
|
var SignatureSuiteRegistry_1 = require("./SignatureSuiteRegistry");
|
|
19
19
|
Object.defineProperty(exports, "SignatureSuiteToken", { enumerable: true, get: function () { return SignatureSuiteRegistry_1.SignatureSuiteToken; } });
|
|
20
20
|
Object.defineProperty(exports, "SignatureSuiteRegistry", { enumerable: true, get: function () { return SignatureSuiteRegistry_1.SignatureSuiteRegistry; } });
|
|
@@ -23,4 +23,6 @@ __exportStar(require("./libraries"), exports);
|
|
|
23
23
|
__exportStar(require("./models"), exports);
|
|
24
24
|
__exportStar(require("./proof-purposes"), exports);
|
|
25
25
|
__exportStar(require("./deriveProof"), exports);
|
|
26
|
+
var W3cJsonLdCredentialService_1 = require("./W3cJsonLdCredentialService");
|
|
27
|
+
Object.defineProperty(exports, "W3cJsonLdCredentialService", { enumerable: true, get: function () { return W3cJsonLdCredentialService_1.W3cJsonLdCredentialService; } });
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/vc/data-integrity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,mEAAiG;AAA7E,6HAAA,mBAAmB,OAAA;AAAE,gIAAA,sBAAsB,OAAA;AAC/D,qDAAkC;AAClC,8CAA2B;AAC3B,2CAAwB;AACxB,mDAAgC;AAChC,gDAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/vc/data-integrity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,mEAAiG;AAA7E,6HAAA,mBAAmB,OAAA;AAAE,gIAAA,sBAAsB,OAAA;AAC/D,qDAAkC;AAClC,8CAA2B;AAC3B,2CAAwB;AACxB,mDAAgC;AAChC,gDAA6B;AAC7B,2EAAyE;AAAhE,wIAAA,0BAA0B,OAAA"}
|
|
@@ -63,7 +63,10 @@ const getProofs = async (options) => {
|
|
|
63
63
|
if (Array.isArray(proofType)) {
|
|
64
64
|
proofs = proofs.filter((_) => proofType.includes(_.type));
|
|
65
65
|
}
|
|
66
|
-
proofs = proofs.map((matchedProof) => (
|
|
66
|
+
proofs = proofs.map((matchedProof) => ({
|
|
67
|
+
'@context': constants_1.SECURITY_CONTEXT_URL,
|
|
68
|
+
...matchedProof,
|
|
69
|
+
}));
|
|
67
70
|
return {
|
|
68
71
|
proofs,
|
|
69
72
|
document,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonldUtil.js","sourceRoot":"","sources":["../../../../src/modules/vc/data-integrity/jsonldUtil.ts"],"names":[],"mappings":";;;;;;AAoCA,4FAMC;AArCD,0CAA2C;AAC3C,4CAAmD;AAEnD,gEAAuC;AACvC,0FAAsF;AAqB/E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|
exports.vcLibraries = {
|
|
36
36
|
jsonldSignatures,
|
|
37
|
-
jsonld:
|
|
38
|
-
|
|
37
|
+
jsonld: {
|
|
38
|
+
...jsonld,
|
|
39
|
+
...jsonld.default,
|
|
40
|
+
},
|
|
41
|
+
vc: {
|
|
42
|
+
...vc,
|
|
43
|
+
...vc.default,
|
|
44
|
+
},
|
|
39
45
|
};
|
|
40
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/vc/data-integrity/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAkC;AAClC,sEAAuD;AACvD,yCAA0B;AAE1B,8DAA8D;AAC9D,sEAAsE;AACtE,sEAAsE;AACtE,0EAA0E;AAC1E,0EAA0E;AAC7D,QAAA,WAAW,GAAG;IACzB,gBAAgB;IAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/vc/data-integrity/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAkC;AAClC,sEAAuD;AACvD,yCAA0B;AAE1B,8DAA8D;AAC9D,sEAAsE;AACtE,sEAAsE;AACtE,0EAA0E;AAC1E,0EAA0E;AAC7D,QAAA,WAAW,GAAG;IACzB,gBAAgB;IAChB,MAAM,EAAE;QACN,GAAG,MAAM;QACT,GAAG,MAAM,CAAC,OAAO;KAClB;IACD,EAAE,EAAE;QACF,GAAG,EAAE;QACL,GAAG,EAAE,CAAC,OAAO;KACd;CACF,CAAA"}
|
|
@@ -30,13 +30,11 @@ class W3cJsonLdVerifiableCredential extends W3cCredential_1.W3cCredential {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
get proofTypes() {
|
|
33
|
-
|
|
34
|
-
const proofArray = (_a = (0, utils_1.asArray)(this.proof)) !== null && _a !== void 0 ? _a : [];
|
|
33
|
+
const proofArray = (0, utils_1.asArray)(this.proof) ?? [];
|
|
35
34
|
return proofArray.map((proof) => proof.type);
|
|
36
35
|
}
|
|
37
36
|
get dataIntegrityCryptosuites() {
|
|
38
|
-
|
|
39
|
-
const proofArray = (_a = (0, utils_1.asArray)(this.proof)) !== null && _a !== void 0 ? _a : [];
|
|
37
|
+
const proofArray = (0, utils_1.asArray)(this.proof) ?? [];
|
|
40
38
|
return proofArray
|
|
41
39
|
.filter((proof) => proof.type === 'DataIntegrityProof' && 'cryptosuite' in proof)
|
|
42
40
|
.map((proof) => proof.cryptosuite);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cJsonLdVerifiableCredential.js","sourceRoot":"","sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,qDAAgD;AAEhD,6CAM0B;AAC1B,0DAAsD;AACtD,yEAAqE;AAErE,6DAAyD;AACzD,uDAAmD;AACnD,yDAAqD;AAMrD,MAAa,6BAA8B,SAAQ,6BAAa;IAC9D,YAAmB,OAA6C;QAC9D,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,KAAK,GAAG,IAAA,wBAAgB,EAAC,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;gBACrD,IAAI,KAAK,CAAC,WAAW;oBAAE,OAAO,IAAI,uCAAkB,CAAC,KAAK,CAAC,CAAA;;oBACtD,OAAO,IAAI,iCAAe,CAAC,KAA+B,CAAC,CAAA;YAClE,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IAOD,IAAW,UAAU
|
|
1
|
+
{"version":3,"file":"W3cJsonLdVerifiableCredential.js","sourceRoot":"","sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,qDAAgD;AAEhD,6CAM0B;AAC1B,0DAA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;QACpB,OAAO,yBAAW,CAAC,KAAK,CAAA;IAC1B,CAAC;IAED;;;OAGG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAA;IACtB,CAAC;IAED,IAAW,cAAc;QACvB,OAAO,IAAI,CAAC,MAAM,EAAuB,CAAA;IAC3C,CAAC;CACF;AAtDD,sEAsDC;AAxCQ;IAHN,IAAA,mCAAgB,GAAE;IAClB,IAAA,oCAA4B,EAAC,EAAE,SAAS,EAAE,CAAC,iCAAe,EAAE,uCAAkB,CAAC,EAAE,CAAC;IAClF,IAAA,gCAAc,GAAE;;4DACiD"}
|
|
@@ -27,13 +27,11 @@ class W3cJsonLdVerifiablePresentation extends W3cPresentation_1.W3cPresentation
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
get proofTypes() {
|
|
30
|
-
|
|
31
|
-
const proofArray = (_a = (0, utils_1.asArray)(this.proof)) !== null && _a !== void 0 ? _a : [];
|
|
30
|
+
const proofArray = (0, utils_1.asArray)(this.proof) ?? [];
|
|
32
31
|
return proofArray.map((proof) => proof.type);
|
|
33
32
|
}
|
|
34
33
|
get dataIntegrityCryptosuites() {
|
|
35
|
-
|
|
36
|
-
const proofArray = (_a = (0, utils_1.asArray)(this.proof)) !== null && _a !== void 0 ? _a : [];
|
|
34
|
+
const proofArray = (0, utils_1.asArray)(this.proof) ?? [];
|
|
37
35
|
return proofArray
|
|
38
36
|
.filter((proof) => proof.type === 'DataIntegrityProof' && 'cryptosuite' in proof)
|
|
39
37
|
.map((proof) => proof.cryptosuite);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cJsonLdVerifiablePresentation.js","sourceRoot":"","sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,6CAAyG;AACzG,yCAA0C;AAC1C,+EAA2E;AAE3E,6DAAyD;AACzD,uDAAmD;AACnD,yDAAqD;AAMrD,MAAa,+BAAgC,SAAQ,iCAAe;IAClE,YAAmB,OAA+C;QAChE,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW;gBAAE,IAAI,CAAC,KAAK,GAAG,IAAI,uCAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;;gBAC5E,IAAI,CAAC,KAAK,GAAG,IAAI,iCAAe,CAAC,OAAO,CAAC,KAA+B,CAAC,CAAA;QAChF,CAAC;IACH,CAAC;IAMD,IAAW,UAAU
|
|
1
|
+
{"version":3,"file":"W3cJsonLdVerifiablePresentation.js","sourceRoot":"","sources":["../../../../../src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,6CAAyG;AACzG,yCAA0C;AAC1C,+EAA2E;AAE3E,6DAAyD;AACzD,uDAAmD;AACnD,yDAAqD;AAMrD,MAAa,+BAAgC,SAAQ,iCAAe;IAClE,YAAmB,OAA+C;QAChE,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW;gBAAE,IAAI,CAAC,KAAK,GAAG,IAAI,uCAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;;gBAC5E,IAAI,CAAC,KAAK,GAAG,IAAI,iCAAe,CAAC,OAAO,CAAC,KAA+B,CAAC,CAAA;QAChF,CAAC;IACH,CAAC;IAMD,IAAW,UAAU;QACnB,MAAM,UAAU,GAAG,IAAA,eAAO,EAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;QAC5C,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAC9C,CAAC;IAED,IAAW,yBAAyB;QAClC,MAAM,UAAU,GAAG,IAAA,eAAO,EAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;QAC5C,OAAO,UAAU;aACd,MAAM,CAAC,CAAC,KAAK,EAA+B,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,oBAAoB,IAAI,aAAa,IAAI,KAAK,CAAC;aAC7G,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;IACtC,CAAC;IAEM,MAAM;QACX,OAAO,uBAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACrC,CAAC;IAED;;OAEG;IACH,IAAW,WAAW;QACpB,OAAO,oBAAW,CAAC,KAAK,CAAA;IAC1B,CAAC;IAED;;;OAGG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAA;IACtB,CAAC;CACF;AA3CD,0EA2CC;AAhCQ;IAFN,IAAA,mCAAgB,GAAE;IAClB,IAAA,oCAA4B,EAAC,EAAE,SAAS,EAAE,CAAC,iCAAe,EAAE,uCAAkB,CAAC,EAAE,CAAC;;8DACjB"}
|
|
@@ -90,7 +90,11 @@ class Ed25519Signature2018 extends JwsLinkedDataSignature_1.JwsLinkedDataSignatu
|
|
|
90
90
|
verificationMethod['@context'].push(constants_2.ED25519_SUITE_CONTEXT_URL_2018);
|
|
91
91
|
// -- update type
|
|
92
92
|
verificationMethod.type = 'Ed25519VerificationKey2018';
|
|
93
|
-
verificationMethod =
|
|
93
|
+
verificationMethod = {
|
|
94
|
+
...verificationMethod,
|
|
95
|
+
publicKeyMultibase: undefined,
|
|
96
|
+
publicKeyBase58: utils_1.TypedArrayEncoder.toBase58(publicKeyBuffer.data),
|
|
97
|
+
};
|
|
94
98
|
}
|
|
95
99
|
return verificationMethod;
|
|
96
100
|
}
|
package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ed25519Signature2018.js","sourceRoot":"","sources":["../../../../../../src/modules/vc/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|
|
82
82
|
const publicKeyBase58 = crypto_1.Key.fromFingerprint(verificationMethod.publicKeyMultibase).publicKeyBase58;
|
|
83
83
|
// -- update type
|
|
84
84
|
verificationMethod.type = 'Ed25519VerificationKey2018';
|
|
85
|
-
verificationMethod =
|
|
85
|
+
verificationMethod = {
|
|
86
|
+
...verificationMethod,
|
|
87
|
+
publicKeyMultibase: undefined,
|
|
88
|
+
publicKeyBase58,
|
|
89
|
+
};
|
|
86
90
|
}
|
|
87
91
|
return verificationMethod;
|
|
88
92
|
}
|
package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ed25519Signature2020.js","sourceRoot":"","sources":["../../../../../../src/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.ts"],"names":[],"mappings":";;;;;;AAGA,kDAA2C;AAC3C,gDAAuD;AACvD,kDAAqF;AACrF,iDAAmD;AACnD,oEAA2C;AAC3C,sEAAkE;AAElE,2CAA4D;AAC5D,+CAA2D;AAO3D,MAAa,oBAAqB,SAAQ,+CAAsB;IAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,YAAmB,OAAoC;QACrD,KAAK,CAAC;YACJ,IAAI,EAAE,sBAAsB;YAC5B,SAAS,EAAE,OAAO;YAClB,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,UAAU,EAAE,0CAA8B;YAC1C,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;SAC7C,CAAC,CAAA;QACF,IAAI,CAAC,eAAe,GAAG,4BAA4B,CAAA;IACrD,CAAC;IAEM,KAAK,CAAC,wBAAwB,CAAC,QAAmB;QACvD,IAAI,CAAC,0BAA0B,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE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ugins_1 = require("../../../plugins");
|
|
|
17
17
|
const utils_1 = require("../../../utils");
|
|
18
18
|
const dids_1 = require("../../dids");
|
|
19
19
|
const x509_1 = require("../../x509");
|
|
20
|
+
const extraction_1 = require("../../x509/extraction");
|
|
20
21
|
const data_integrity_1 = require("../data-integrity");
|
|
21
22
|
const W3cJwtVerifiableCredential_1 = require("./W3cJwtVerifiableCredential");
|
|
22
23
|
const W3cJwtVerifiablePresentation_1 = require("./W3cJwtVerifiablePresentation");
|
|
@@ -67,11 +68,10 @@ let W3cJwtCredentialService = class W3cJwtCredentialService {
|
|
|
67
68
|
* @returns the verification result
|
|
68
69
|
*/
|
|
69
70
|
async verifyCredential(agentContext, options) {
|
|
70
|
-
var _a;
|
|
71
71
|
// NOTE: this is mostly from the JSON-LD service that adds this option. Once we support
|
|
72
72
|
// the same granular validation results, we can remove this and the user could just check
|
|
73
73
|
// which of the validations failed. Supporting for consistency with the JSON-LD service for now.
|
|
74
|
-
const verifyCredentialStatus =
|
|
74
|
+
const verifyCredentialStatus = options.verifyCredentialStatus ?? true;
|
|
75
75
|
const validationResults = {
|
|
76
76
|
isValid: false,
|
|
77
77
|
validations: {},
|
|
@@ -146,7 +146,7 @@ let W3cJwtCredentialService = class W3cJwtCredentialService {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
// Validate whether the `issuer` of the credential is also the signer
|
|
149
|
-
const issuerIsSigner = signatureResult
|
|
149
|
+
const issuerIsSigner = signatureResult?.signerKeys.some((signerKey) => signerKey.fingerprint === issuerPublicKey.fingerprint);
|
|
150
150
|
if (!issuerIsSigner) {
|
|
151
151
|
validationResults.validations.issuerIsSigner = {
|
|
152
152
|
isValid: false,
|
|
@@ -217,7 +217,6 @@ let W3cJwtCredentialService = class W3cJwtCredentialService {
|
|
|
217
217
|
* @returns the verification result
|
|
218
218
|
*/
|
|
219
219
|
async verifyPresentation(agentContext, options) {
|
|
220
|
-
var _a;
|
|
221
220
|
const validationResults = {
|
|
222
221
|
isValid: false,
|
|
223
222
|
validations: {},
|
|
@@ -260,9 +259,18 @@ let W3cJwtCredentialService = class W3cJwtCredentialService {
|
|
|
260
259
|
});
|
|
261
260
|
const proverPublicKey = (0, dids_1.getKeyFromVerificationMethod)(proverVerificationMethod);
|
|
262
261
|
const proverPublicJwk = (0, jwk_1.getJwkFromKey)(proverPublicKey);
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
const x509Config = agentContext.dependencyManager.resolve(x509_1.X509ModuleConfig);
|
|
263
|
+
let trustedCertificates = options.trustedCertificates;
|
|
264
|
+
const certificateChain = (0, extraction_1.extractX509CertificatesFromJwt)(presentation.jwt);
|
|
265
|
+
if (certificateChain && !trustedCertificates) {
|
|
266
|
+
trustedCertificates = await x509Config.getTrustedCertificatesForVerification?.(agentContext, {
|
|
267
|
+
certificateChain,
|
|
268
|
+
verification: {
|
|
269
|
+
type: 'credential',
|
|
270
|
+
credential: presentation,
|
|
271
|
+
},
|
|
272
|
+
});
|
|
273
|
+
}
|
|
266
274
|
let signatureResult = undefined;
|
|
267
275
|
try {
|
|
268
276
|
// Verify the JWS signature
|
|
@@ -270,7 +278,7 @@ let W3cJwtCredentialService = class W3cJwtCredentialService {
|
|
|
270
278
|
jws: presentation.jwt.serializedJwt,
|
|
271
279
|
// We have pre-fetched the key based on the singer/holder of the presentation
|
|
272
280
|
jwkResolver: () => proverPublicJwk,
|
|
273
|
-
trustedCertificates
|
|
281
|
+
trustedCertificates,
|
|
274
282
|
});
|
|
275
283
|
if (!signatureResult.isValid) {
|
|
276
284
|
validationResults.validations.presentationSignature = {
|
|
@@ -341,7 +349,14 @@ let W3cJwtCredentialService = class W3cJwtCredentialService {
|
|
|
341
349
|
isValid: true,
|
|
342
350
|
};
|
|
343
351
|
}
|
|
344
|
-
return
|
|
352
|
+
return {
|
|
353
|
+
...credentialResult,
|
|
354
|
+
isValid: credentialResult.isValid && credentialSubjectAuthentication.isValid,
|
|
355
|
+
validations: {
|
|
356
|
+
...credentialResult.validations,
|
|
357
|
+
credentialSubjectAuthentication,
|
|
358
|
+
},
|
|
359
|
+
};
|
|
345
360
|
}));
|
|
346
361
|
// Deeply nested check whether all validations have passed
|
|
347
362
|
validationResults.isValid = Object.values(validationResults.validations).every((v) => Array.isArray(v) ? v.every((vv) => vv.isValid) : v.isValid);
|
|
@@ -380,7 +395,6 @@ let W3cJwtCredentialService = class W3cJwtCredentialService {
|
|
|
380
395
|
* - does not have an `iss` field and MUST have an absolute `kid`
|
|
381
396
|
*/
|
|
382
397
|
async getVerificationMethodForJwtCredential(agentContext, options) {
|
|
383
|
-
var _a, _b;
|
|
384
398
|
const { credential, purpose } = options;
|
|
385
399
|
const kid = credential.jwt.header.kid;
|
|
386
400
|
const didResolver = agentContext.dependencyManager.resolve(dids_1.DidResolverService);
|
|
@@ -389,7 +403,7 @@ let W3cJwtCredentialService = class W3cJwtCredentialService {
|
|
|
389
403
|
const signerId = credential.jwt.payload.iss;
|
|
390
404
|
let verificationMethod;
|
|
391
405
|
// If the kid starts with # we assume it is a relative did url, and we resolve it based on the `iss` and the `kid`
|
|
392
|
-
if (kid
|
|
406
|
+
if (kid?.startsWith('#')) {
|
|
393
407
|
if (!signerId) {
|
|
394
408
|
throw new error_1.CredoError(`JWT 'kid' MUST be absolute when when no 'iss' is present in JWT payload`);
|
|
395
409
|
}
|
|
@@ -414,7 +428,9 @@ let W3cJwtCredentialService = class W3cJwtCredentialService {
|
|
|
414
428
|
throw new error_1.CredoError(`Unsupported JWT alg '${credential.jwt.header.alg}'`);
|
|
415
429
|
const { supportedVerificationMethodTypes } = (0, dids_1.getKeyDidMappingByKeyType)(jwkClass.keyType);
|
|
416
430
|
const didDocument = await didResolver.resolveDidDocument(agentContext, signerId);
|
|
417
|
-
const verificationMethods =
|
|
431
|
+
const verificationMethods = didDocument.assertionMethod
|
|
432
|
+
?.map((v) => (typeof v === 'string' ? didDocument.dereferenceVerificationMethod(v) : v))
|
|
433
|
+
.filter((v) => supportedVerificationMethodTypes.includes(v.type)) ?? [];
|
|
418
434
|
if (verificationMethods.length === 0) {
|
|
419
435
|
throw new error_1.CredoError(`No verification methods found for signer '${signerId}' and key type '${jwkClass.keyType}' for alg '${credential.jwt.header.alg}'. Unable to determine which public key is associated with the credential.`);
|
|
420
436
|
}
|