@credo-ts/didcomm 0.7.2-pr-2704-20260918194459 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/build/BaseDidCommMessage.d.mts +1 -7
- package/build/BaseDidCommMessage.d.mts.map +1 -1
- package/build/BaseDidCommMessage.mjs +3 -6
- package/build/BaseDidCommMessage.mjs.map +1 -1
- package/build/DidCommApi.d.mts +3 -5
- package/build/DidCommApi.d.mts.map +1 -1
- package/build/DidCommApi.mjs +8 -10
- package/build/DidCommApi.mjs.map +1 -1
- package/build/DidCommDispatcher.d.mts +1 -3
- package/build/DidCommDispatcher.d.mts.map +1 -1
- package/build/DidCommDispatcher.mjs +13 -14
- package/build/DidCommDispatcher.mjs.map +1 -1
- package/build/DidCommEnvelopeService.d.mts +6 -18
- package/build/DidCommEnvelopeService.d.mts.map +1 -1
- package/build/DidCommEnvelopeService.mjs +16 -21
- package/build/DidCommEnvelopeService.mjs.map +1 -1
- package/build/DidCommEvents.d.mts +5 -7
- package/build/DidCommEvents.d.mts.map +1 -1
- package/build/DidCommEvents.mjs +1 -1
- package/build/DidCommEvents.mjs.map +1 -1
- package/build/DidCommFeatureRegistry.d.mts +1 -3
- package/build/DidCommFeatureRegistry.d.mts.map +1 -1
- package/build/DidCommFeatureRegistry.mjs +2 -3
- package/build/DidCommFeatureRegistry.mjs.map +1 -1
- package/build/DidCommMessage.d.mts +3 -27
- package/build/DidCommMessage.d.mts.map +1 -1
- package/build/DidCommMessage.mjs +3 -5
- package/build/DidCommMessage.mjs.map +1 -1
- package/build/DidCommMessageHandlerRegistry.d.mts +2 -4
- package/build/DidCommMessageHandlerRegistry.d.mts.map +1 -1
- package/build/DidCommMessageHandlerRegistry.mjs +2 -3
- package/build/DidCommMessageHandlerRegistry.mjs.map +1 -1
- package/build/DidCommMessageReceiver.d.mts +9 -28
- package/build/DidCommMessageReceiver.d.mts.map +1 -1
- package/build/DidCommMessageReceiver.mjs +35 -152
- package/build/DidCommMessageReceiver.mjs.map +1 -1
- package/build/DidCommMessageSender.d.mts +7 -30
- package/build/DidCommMessageSender.d.mts.map +1 -1
- package/build/DidCommMessageSender.mjs +40 -227
- package/build/DidCommMessageSender.mjs.map +1 -1
- package/build/DidCommModule.d.mts +1 -3
- package/build/DidCommModule.d.mts.map +1 -1
- package/build/DidCommModule.mjs +5 -18
- package/build/DidCommModule.mjs.map +1 -1
- package/build/DidCommModuleConfig.d.mts +8 -58
- package/build/DidCommModuleConfig.d.mts.map +1 -1
- package/build/DidCommModuleConfig.mjs +3 -28
- package/build/DidCommModuleConfig.mjs.map +1 -1
- package/build/DidCommTransportService.d.mts +2 -6
- package/build/DidCommTransportService.d.mts.map +1 -1
- package/build/DidCommTransportService.mjs +7 -9
- package/build/DidCommTransportService.mjs.map +1 -1
- package/build/_virtual/{_@oxc-project_runtime@0.112.0/helpers → _@oxc-project_runtime@0.151.0/helpers/esm}/assertClassBrand.mjs +2 -3
- package/build/_virtual/{_@oxc-project_runtime@0.112.0/helpers → _@oxc-project_runtime@0.151.0/helpers/esm}/checkPrivateRedeclaration.mjs +2 -3
- package/build/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/classPrivateFieldGet2.mjs +7 -0
- package/build/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/classPrivateFieldInitSpec.mjs +7 -0
- package/build/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/classPrivateFieldSet2.mjs +7 -0
- package/build/_virtual/{_@oxc-project_runtime@0.112.0/helpers → _@oxc-project_runtime@0.151.0/helpers/esm}/decorate.mjs +2 -3
- package/build/_virtual/{_@oxc-project_runtime@0.112.0/helpers → _@oxc-project_runtime@0.151.0/helpers/esm}/decorateMetadata.mjs +2 -3
- package/build/_virtual/{_@oxc-project_runtime@0.112.0/helpers → _@oxc-project_runtime@0.151.0/helpers/esm}/decorateParam.mjs +2 -3
- package/build/_virtual/_rolldown/runtime.mjs +6 -11
- package/build/constants.mjs +1 -1
- package/build/decorators/ack/AckDecorator.d.mts +2 -3
- package/build/decorators/ack/AckDecorator.d.mts.map +1 -1
- package/build/decorators/ack/AckDecorator.mjs +4 -5
- package/build/decorators/ack/AckDecorator.mjs.map +1 -1
- package/build/decorators/ack/AckDecoratorExtension.mjs +6 -8
- package/build/decorators/ack/AckDecoratorExtension.mjs.map +1 -1
- package/build/decorators/attachment/AttachmentExtension.mjs +3 -4
- package/build/decorators/attachment/AttachmentExtension.mjs.map +1 -1
- package/build/decorators/attachment/DidCommAttachment.d.mts +4 -6
- package/build/decorators/attachment/DidCommAttachment.d.mts.map +1 -1
- package/build/decorators/attachment/DidCommAttachment.mjs +5 -7
- package/build/decorators/attachment/DidCommAttachment.mjs.map +1 -1
- package/build/decorators/l10n/L10nDecorator.d.mts +1 -2
- package/build/decorators/l10n/L10nDecorator.d.mts.map +1 -1
- package/build/decorators/l10n/L10nDecorator.mjs +1 -1
- package/build/decorators/l10n/L10nDecorator.mjs.map +1 -1
- package/build/decorators/l10n/L10nDecoratorExtension.mjs +4 -6
- package/build/decorators/l10n/L10nDecoratorExtension.mjs.map +1 -1
- package/build/decorators/service/ServiceDecorator.d.mts +2 -4
- package/build/decorators/service/ServiceDecorator.d.mts.map +1 -1
- package/build/decorators/service/ServiceDecorator.mjs +3 -4
- package/build/decorators/service/ServiceDecorator.mjs.map +1 -1
- package/build/decorators/service/ServiceDecoratorExtension.mjs +4 -6
- package/build/decorators/service/ServiceDecoratorExtension.mjs.map +1 -1
- package/build/decorators/signature/SignatureDecorator.d.mts +1 -2
- package/build/decorators/signature/SignatureDecorator.d.mts.map +1 -1
- package/build/decorators/signature/SignatureDecorator.mjs +3 -4
- package/build/decorators/signature/SignatureDecorator.mjs.map +1 -1
- package/build/decorators/signature/SignatureDecoratorUtils.mjs +1 -2
- package/build/decorators/signature/SignatureDecoratorUtils.mjs.map +1 -1
- package/build/decorators/thread/ThreadDecorator.d.mts +1 -2
- package/build/decorators/thread/ThreadDecorator.d.mts.map +1 -1
- package/build/decorators/thread/ThreadDecorator.mjs +3 -4
- package/build/decorators/thread/ThreadDecorator.mjs.map +1 -1
- package/build/decorators/thread/ThreadDecoratorExtension.mjs +4 -6
- package/build/decorators/thread/ThreadDecoratorExtension.mjs.map +1 -1
- package/build/decorators/timing/TimingDecorator.d.mts +1 -2
- package/build/decorators/timing/TimingDecorator.d.mts.map +1 -1
- package/build/decorators/timing/TimingDecorator.mjs +8 -10
- package/build/decorators/timing/TimingDecorator.mjs.map +1 -1
- package/build/decorators/timing/TimingDecoratorExtension.mjs +4 -6
- package/build/decorators/timing/TimingDecoratorExtension.mjs.map +1 -1
- package/build/decorators/transport/TransportDecorator.d.mts +2 -3
- package/build/decorators/transport/TransportDecorator.d.mts.map +1 -1
- package/build/decorators/transport/TransportDecorator.mjs +5 -7
- package/build/decorators/transport/TransportDecorator.mjs.map +1 -1
- package/build/decorators/transport/TransportDecoratorExtension.mjs +9 -11
- package/build/decorators/transport/TransportDecoratorExtension.mjs.map +1 -1
- package/build/errors/MessageSendingError.d.mts +2 -7
- package/build/errors/MessageSendingError.d.mts.map +1 -1
- package/build/errors/MessageSendingError.mjs +1 -2
- package/build/errors/MessageSendingError.mjs.map +1 -1
- package/build/errors/index.d.mts +2 -1
- package/build/errors/index.mjs +1 -0
- package/build/errors/problem-reports/DidCommProblemReportError.d.mts +3 -7
- package/build/errors/problem-reports/DidCommProblemReportError.d.mts.map +1 -1
- package/build/errors/problem-reports/DidCommProblemReportError.mjs +1 -2
- package/build/errors/problem-reports/DidCommProblemReportError.mjs.map +1 -1
- package/build/errors/problem-reports/index.d.mts +2 -1
- package/build/errors/problem-reports/index.mjs +1 -0
- package/build/getDidCommOutboundMessageContext.d.mts +2 -10
- package/build/getDidCommOutboundMessageContext.d.mts.map +1 -1
- package/build/getDidCommOutboundMessageContext.mjs +32 -50
- package/build/getDidCommOutboundMessageContext.mjs.map +1 -1
- package/build/handlers/DidCommMessageHandler.d.mts +3 -5
- package/build/handlers/DidCommMessageHandler.d.mts.map +1 -1
- package/build/handlers/DidCommMessageHandlerMiddleware.d.mts +2 -4
- package/build/handlers/DidCommMessageHandlerMiddleware.d.mts.map +1 -1
- package/build/handlers/DidCommMessageHandlerMiddleware.mjs +1 -1
- package/build/handlers/DidCommMessageHandlerMiddleware.mjs.map +1 -1
- package/build/handlers/index.d.mts +2 -1
- package/build/index.d.mts +22 -62
- package/build/index.mjs +21 -62
- package/build/messages/common/DidCommAckMessage.d.mts +3 -5
- package/build/messages/common/DidCommAckMessage.d.mts.map +1 -1
- package/build/messages/common/DidCommAckMessage.mjs +4 -6
- package/build/messages/common/DidCommAckMessage.mjs.map +1 -1
- package/build/messages/common/index.d.mts +1 -1
- package/build/messages/common/index.mjs +1 -1
- package/build/messages/index.d.mts +2 -2
- package/build/messages/index.mjs +1 -1
- package/build/messages/problem-reports/DidCommProblemReportMessage.d.mts +8 -10
- package/build/messages/problem-reports/DidCommProblemReportMessage.d.mts.map +1 -1
- package/build/messages/problem-reports/DidCommProblemReportMessage.mjs +6 -8
- package/build/messages/problem-reports/DidCommProblemReportMessage.mjs.map +1 -1
- package/build/messages/problem-reports/index.d.mts +2 -1
- package/build/messages/problem-reports/index.mjs +1 -0
- package/build/models/DidCommInboundMessageContext.d.mts +8 -15
- package/build/models/DidCommInboundMessageContext.d.mts.map +1 -1
- package/build/models/DidCommInboundMessageContext.mjs +1 -3
- package/build/models/DidCommInboundMessageContext.mjs.map +1 -1
- package/build/models/DidCommOutboundMessageContext.d.mts +4 -8
- package/build/models/DidCommOutboundMessageContext.d.mts.map +1 -1
- package/build/models/DidCommOutboundMessageContext.mjs +1 -2
- package/build/models/DidCommOutboundMessageContext.mjs.map +1 -1
- package/build/models/DidCommOutboundMessageSendStatus.d.mts +1 -2
- package/build/models/DidCommOutboundMessageSendStatus.d.mts.map +1 -1
- package/build/models/DidCommOutboundMessageSendStatus.mjs +1 -1
- package/build/models/DidCommOutboundMessageSendStatus.mjs.map +1 -1
- package/build/models/DidCommRouting.d.mts +2 -24
- package/build/models/DidCommRouting.d.mts.map +1 -1
- package/build/models/features/DidCommFeature.d.mts +2 -3
- package/build/models/features/DidCommFeature.d.mts.map +1 -1
- package/build/models/features/DidCommFeature.mjs +4 -5
- package/build/models/features/DidCommFeature.mjs.map +1 -1
- package/build/models/features/DidCommFeatureQuery.d.mts +2 -3
- package/build/models/features/DidCommFeatureQuery.d.mts.map +1 -1
- package/build/models/features/DidCommFeatureQuery.mjs +3 -4
- package/build/models/features/DidCommFeatureQuery.mjs.map +1 -1
- package/build/models/features/DidCommGoalCode.d.mts +2 -4
- package/build/models/features/DidCommGoalCode.d.mts.map +1 -1
- package/build/models/features/DidCommGoalCode.mjs +1 -2
- package/build/models/features/DidCommGoalCode.mjs.map +1 -1
- package/build/models/features/DidCommGovernanceFramework.d.mts +2 -4
- package/build/models/features/DidCommGovernanceFramework.d.mts.map +1 -1
- package/build/models/features/DidCommGovernanceFramework.mjs +1 -2
- package/build/models/features/DidCommGovernanceFramework.mjs.map +1 -1
- package/build/models/features/DidCommProtocol.d.mts +2 -4
- package/build/models/features/DidCommProtocol.d.mts.map +1 -1
- package/build/models/features/DidCommProtocol.mjs +3 -4
- package/build/models/features/DidCommProtocol.mjs.map +1 -1
- package/build/models/features/index.mjs +1 -0
- package/build/models/index.d.mts +3 -2
- package/build/models/index.mjs +1 -0
- package/build/models/problem-reports/DidCommProblemReportReason.d.mts +1 -2
- package/build/models/problem-reports/DidCommProblemReportReason.d.mts.map +1 -1
- package/build/models/problem-reports/DidCommProblemReportReason.mjs +1 -1
- package/build/models/problem-reports/DidCommProblemReportReason.mjs.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessageEvents.d.mts +5 -17
- package/build/modules/basic-messages/DidCommBasicMessageEvents.d.mts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessageEvents.mjs +1 -2
- package/build/modules/basic-messages/DidCommBasicMessageEvents.mjs.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessageRole.d.mts +1 -2
- package/build/modules/basic-messages/DidCommBasicMessageRole.d.mts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessageRole.mjs +1 -1
- package/build/modules/basic-messages/DidCommBasicMessageRole.mjs.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesApi.d.mts +2 -11
- package/build/modules/basic-messages/DidCommBasicMessagesApi.d.mts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesApi.mjs +9 -21
- package/build/modules/basic-messages/DidCommBasicMessagesApi.mjs.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesModule.d.mts +1 -6
- package/build/modules/basic-messages/DidCommBasicMessagesModule.d.mts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesModule.mjs +13 -13
- package/build/modules/basic-messages/DidCommBasicMessagesModule.mjs.map +1 -1
- package/build/modules/basic-messages/{protocol/v1/handlers/DidCommBasicMessageHandler.mjs → handlers/BasicMessageHandler.mjs} +3 -4
- package/build/modules/basic-messages/handlers/BasicMessageHandler.mjs.map +1 -0
- package/build/modules/basic-messages/handlers/index.mjs +2 -0
- package/build/modules/basic-messages/index.d.mts +4 -7
- package/build/modules/basic-messages/index.mjs +3 -6
- package/build/modules/basic-messages/{protocol/v1/messages → messages}/DidCommBasicMessage.d.mts +5 -7
- package/build/modules/basic-messages/messages/DidCommBasicMessage.d.mts.map +1 -0
- package/build/modules/basic-messages/{protocol/v1/messages → messages}/DidCommBasicMessage.mjs +8 -10
- package/build/modules/basic-messages/messages/DidCommBasicMessage.mjs.map +1 -0
- package/build/modules/basic-messages/{protocol/v1/messages/index.mjs → messages/index.d.mts} +1 -0
- package/build/modules/basic-messages/{protocol/v1/messages/index.d.mts → messages/index.mjs} +2 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.d.mts +5 -9
- package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.d.mts.map +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.mjs +1 -3
- package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.mjs.map +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.d.mts +1 -3
- package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.d.mts.map +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.mjs +5 -7
- package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.mjs.map +1 -1
- package/build/modules/basic-messages/repository/index.d.mts +2 -1
- package/build/modules/basic-messages/repository/index.mjs +1 -0
- package/build/modules/basic-messages/services/DidCommBasicMessageService.d.mts +12 -15
- package/build/modules/basic-messages/services/DidCommBasicMessageService.d.mts.map +1 -1
- package/build/modules/basic-messages/services/DidCommBasicMessageService.mjs +33 -34
- package/build/modules/basic-messages/services/DidCommBasicMessageService.mjs.map +1 -1
- package/build/modules/basic-messages/services/index.d.mts +2 -2
- package/build/modules/basic-messages/services/index.mjs +1 -1
- package/build/modules/connections/DidCommConnectionEvents.d.mts +3 -5
- package/build/modules/connections/DidCommConnectionEvents.d.mts.map +1 -1
- package/build/modules/connections/DidCommConnectionEvents.mjs +1 -1
- package/build/modules/connections/DidCommConnectionEvents.mjs.map +1 -1
- package/build/modules/connections/DidCommConnectionsApi.d.mts +3 -8
- package/build/modules/connections/DidCommConnectionsApi.d.mts.map +1 -1
- package/build/modules/connections/DidCommConnectionsApi.mjs +44 -116
- package/build/modules/connections/DidCommConnectionsApi.mjs.map +1 -1
- package/build/modules/connections/DidCommConnectionsModule.d.mts +1 -3
- package/build/modules/connections/DidCommConnectionsModule.d.mts.map +1 -1
- package/build/modules/connections/DidCommConnectionsModule.mjs +8 -16
- package/build/modules/connections/DidCommConnectionsModule.mjs.map +1 -1
- package/build/modules/connections/DidCommConnectionsModuleConfig.d.mts +2 -13
- package/build/modules/connections/DidCommConnectionsModuleConfig.d.mts.map +1 -1
- package/build/modules/connections/DidCommConnectionsModuleConfig.mjs +4 -12
- package/build/modules/connections/DidCommConnectionsModuleConfig.mjs.map +1 -1
- package/build/modules/connections/DidCommTrustPingEvents.d.mts +3 -5
- package/build/modules/connections/DidCommTrustPingEvents.d.mts.map +1 -1
- package/build/modules/connections/DidCommTrustPingEvents.mjs +1 -1
- package/build/modules/connections/DidCommTrustPingEvents.mjs.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.d.mts +1 -3
- package/build/modules/connections/DidExchangeProtocol.d.mts.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.mjs +51 -46
- package/build/modules/connections/DidExchangeProtocol.mjs.map +1 -1
- package/build/modules/connections/DidExchangeStateMachine.mjs +21 -22
- package/build/modules/connections/DidExchangeStateMachine.mjs.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.mts +2 -6
- package/build/modules/connections/errors/ConnectionProblemReportError.d.mts.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.mjs +1 -2
- package/build/modules/connections/errors/ConnectionProblemReportError.mjs.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportReason.d.mts +1 -2
- package/build/modules/connections/errors/ConnectionProblemReportReason.d.mts.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportReason.mjs +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportReason.mjs.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.mts +2 -6
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.mts.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.mjs +1 -2
- package/build/modules/connections/errors/DidExchangeProblemReportError.mjs.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportReason.d.mts +1 -2
- package/build/modules/connections/errors/DidExchangeProblemReportReason.d.mts.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportReason.mjs +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportReason.mjs.map +1 -1
- package/build/modules/connections/errors/index.d.mts +2 -1
- package/build/modules/connections/errors/index.mjs +1 -0
- package/build/modules/connections/handlers/DidCommAckMessageHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommAckMessageHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommAckMessageHandler.mjs +1 -2
- package/build/modules/connections/handlers/DidCommAckMessageHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.mjs +1 -2
- package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.mjs +8 -9
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.mjs +9 -17
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.mjs +3 -4
- package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.mjs +10 -10
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.mjs +9 -10
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateAckHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommDidRotateAckHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateAckHandler.mjs +1 -2
- package/build/modules/connections/handlers/DidCommDidRotateAckHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommDidRotateHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateHandler.mjs +1 -2
- package/build/modules/connections/handlers/DidCommDidRotateHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.mjs +1 -2
- package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommHangupHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommHangupHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommHangupHandler.mjs +1 -2
- package/build/modules/connections/handlers/DidCommHangupHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.mjs +3 -4
- package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.mjs +1 -2
- package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/index.d.mts +2 -2
- package/build/modules/connections/handlers/index.mjs +1 -1
- package/build/modules/connections/index.d.mts +2 -3
- package/build/modules/connections/index.mjs +1 -2
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.d.mts +7 -12
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.mjs +3 -4
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionProblemReportMessage.d.mts +2 -4
- package/build/modules/connections/messages/DidCommConnectionProblemReportMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionProblemReportMessage.mjs +3 -4
- package/build/modules/connections/messages/DidCommConnectionProblemReportMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.d.mts +3 -12
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.mjs +4 -7
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionResponseMessage.d.mts +3 -11
- package/build/modules/connections/messages/DidCommConnectionResponseMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionResponseMessage.mjs +4 -7
- package/build/modules/connections/messages/DidCommConnectionResponseMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeCompleteMessage.d.mts +2 -4
- package/build/modules/connections/messages/DidCommDidExchangeCompleteMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeCompleteMessage.mjs +3 -4
- package/build/modules/connections/messages/DidCommDidExchangeCompleteMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeProblemReportMessage.d.mts +2 -4
- package/build/modules/connections/messages/DidCommDidExchangeProblemReportMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeProblemReportMessage.mjs +3 -4
- package/build/modules/connections/messages/DidCommDidExchangeProblemReportMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeRequestMessage.d.mts +3 -5
- package/build/modules/connections/messages/DidCommDidExchangeRequestMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeRequestMessage.mjs +4 -6
- package/build/modules/connections/messages/DidCommDidExchangeRequestMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeResponseMessage.d.mts +3 -5
- package/build/modules/connections/messages/DidCommDidExchangeResponseMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeResponseMessage.mjs +5 -7
- package/build/modules/connections/messages/DidCommDidExchangeResponseMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommDidRotateAckMessage.d.mts +2 -4
- package/build/modules/connections/messages/DidCommDidRotateAckMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommDidRotateAckMessage.mjs +3 -4
- package/build/modules/connections/messages/DidCommDidRotateAckMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommDidRotateMessage.d.mts +2 -4
- package/build/modules/connections/messages/DidCommDidRotateMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommDidRotateMessage.mjs +3 -4
- package/build/modules/connections/messages/DidCommDidRotateMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommDidRotateProblemReportMessage.d.mts +2 -4
- package/build/modules/connections/messages/DidCommDidRotateProblemReportMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommDidRotateProblemReportMessage.mjs +3 -4
- package/build/modules/connections/messages/DidCommDidRotateProblemReportMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommHangupMessage.d.mts +2 -4
- package/build/modules/connections/messages/DidCommHangupMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommHangupMessage.mjs +3 -4
- package/build/modules/connections/messages/DidCommHangupMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingMessage.d.mts +2 -4
- package/build/modules/connections/messages/DidCommTrustPingMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingMessage.mjs +3 -4
- package/build/modules/connections/messages/DidCommTrustPingMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.d.mts +2 -4
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.mjs +3 -4
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.mjs.map +1 -1
- package/build/modules/connections/messages/index.d.mts +2 -1
- package/build/modules/connections/messages/index.mjs +1 -0
- package/build/modules/connections/models/DidCommConnection.d.mts +2 -4
- package/build/modules/connections/models/DidCommConnection.d.mts.map +1 -1
- package/build/modules/connections/models/DidCommConnection.mjs +4 -6
- package/build/modules/connections/models/DidCommConnection.mjs.map +1 -1
- package/build/modules/connections/models/DidCommConnectionRole.d.mts +1 -2
- package/build/modules/connections/models/DidCommConnectionRole.d.mts.map +1 -1
- package/build/modules/connections/models/DidCommConnectionRole.mjs +1 -1
- package/build/modules/connections/models/DidCommConnectionRole.mjs.map +1 -1
- package/build/modules/connections/models/DidCommConnectionState.d.mts +2 -4
- package/build/modules/connections/models/DidCommConnectionState.d.mts.map +1 -1
- package/build/modules/connections/models/DidCommConnectionState.mjs +11 -12
- package/build/modules/connections/models/DidCommConnectionState.mjs.map +1 -1
- package/build/modules/connections/models/DidCommConnectionType.d.mts +1 -2
- package/build/modules/connections/models/DidCommConnectionType.d.mts.map +1 -1
- package/build/modules/connections/models/DidCommConnectionType.mjs +1 -1
- package/build/modules/connections/models/DidCommConnectionType.mjs.map +1 -1
- package/build/modules/connections/models/DidCommDidExchangeRole.d.mts +1 -2
- package/build/modules/connections/models/DidCommDidExchangeRole.d.mts.map +1 -1
- package/build/modules/connections/models/DidCommDidExchangeRole.mjs +1 -1
- package/build/modules/connections/models/DidCommDidExchangeRole.mjs.map +1 -1
- package/build/modules/connections/models/DidCommDidExchangeState.d.mts +1 -2
- package/build/modules/connections/models/DidCommDidExchangeState.d.mts.map +1 -1
- package/build/modules/connections/models/DidCommDidExchangeState.mjs +1 -1
- package/build/modules/connections/models/DidCommDidExchangeState.mjs.map +1 -1
- package/build/modules/connections/models/DidCommDidRotateRole.d.mts +1 -2
- package/build/modules/connections/models/DidCommDidRotateRole.d.mts.map +1 -1
- package/build/modules/connections/models/DidCommDidRotateRole.mjs +1 -1
- package/build/modules/connections/models/DidCommDidRotateRole.mjs.map +1 -1
- package/build/modules/connections/models/DidCommHandshakeProtocol.d.mts +2 -8
- package/build/modules/connections/models/DidCommHandshakeProtocol.d.mts.map +1 -1
- package/build/modules/connections/models/DidCommHandshakeProtocol.mjs +1 -6
- package/build/modules/connections/models/DidCommHandshakeProtocol.mjs.map +1 -1
- package/build/modules/connections/models/did/DidDoc.d.mts +1 -3
- package/build/modules/connections/models/did/DidDoc.d.mts.map +1 -1
- package/build/modules/connections/models/did/DidDoc.mjs +5 -6
- package/build/modules/connections/models/did/DidDoc.mjs.map +1 -1
- package/build/modules/connections/models/did/authentication/Authentication.d.mts +1 -3
- package/build/modules/connections/models/did/authentication/Authentication.d.mts.map +1 -1
- package/build/modules/connections/models/did/authentication/Authentication.mjs +1 -1
- package/build/modules/connections/models/did/authentication/Authentication.mjs.map +1 -1
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.d.mts +1 -3
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.d.mts.map +1 -1
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.mjs +4 -6
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.mjs.map +1 -1
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.d.mts +1 -3
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.d.mts.map +1 -1
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.mjs +4 -6
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.mjs.map +1 -1
- package/build/modules/connections/models/did/authentication/index.d.mts +3 -4
- package/build/modules/connections/models/did/authentication/index.d.mts.map +1 -1
- package/build/modules/connections/models/did/authentication/index.mjs +8 -5
- package/build/modules/connections/models/did/authentication/index.mjs.map +1 -1
- package/build/modules/connections/models/did/index.d.mts +2 -1
- package/build/modules/connections/models/did/index.mjs +1 -0
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.d.mts +1 -3
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.d.mts.map +1 -1
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.mjs +3 -4
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.mjs.map +1 -1
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.d.mts +1 -3
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.d.mts.map +1 -1
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.mjs +3 -4
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.mjs.map +1 -1
- package/build/modules/connections/models/did/publicKey/PublicKey.d.mts +1 -2
- package/build/modules/connections/models/did/publicKey/PublicKey.d.mts.map +1 -1
- package/build/modules/connections/models/did/publicKey/PublicKey.mjs +3 -4
- package/build/modules/connections/models/did/publicKey/PublicKey.mjs.map +1 -1
- package/build/modules/connections/models/did/publicKey/RsaSig2018.d.mts +1 -3
- package/build/modules/connections/models/did/publicKey/RsaSig2018.d.mts.map +1 -1
- package/build/modules/connections/models/did/publicKey/RsaSig2018.mjs +3 -4
- package/build/modules/connections/models/did/publicKey/RsaSig2018.mjs.map +1 -1
- package/build/modules/connections/models/did/publicKey/index.d.mts +3 -4
- package/build/modules/connections/models/did/publicKey/index.d.mts.map +1 -1
- package/build/modules/connections/models/did/publicKey/index.mjs +4 -4
- package/build/modules/connections/models/did/publicKey/index.mjs.map +1 -1
- package/build/modules/connections/models/index.d.mts +2 -1
- package/build/modules/connections/models/index.mjs +1 -0
- package/build/modules/connections/repository/DidCommConnectionMetadataTypes.d.mts +3 -10
- package/build/modules/connections/repository/DidCommConnectionMetadataTypes.d.mts.map +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.d.mts +4 -12
- package/build/modules/connections/repository/DidCommConnectionRecord.d.mts.map +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.mjs +9 -13
- package/build/modules/connections/repository/DidCommConnectionRecord.mjs.map +1 -1
- package/build/modules/connections/repository/DidCommConnectionRepository.d.mts +2 -7
- package/build/modules/connections/repository/DidCommConnectionRepository.d.mts.map +1 -1
- package/build/modules/connections/repository/DidCommConnectionRepository.mjs +5 -7
- package/build/modules/connections/repository/DidCommConnectionRepository.mjs.map +1 -1
- package/build/modules/connections/repository/index.d.mts +2 -1
- package/build/modules/connections/repository/index.mjs +1 -0
- package/build/modules/connections/services/DidCommConnectionService.d.mts +10 -30
- package/build/modules/connections/services/DidCommConnectionService.d.mts.map +1 -1
- package/build/modules/connections/services/DidCommConnectionService.mjs +61 -93
- package/build/modules/connections/services/DidCommConnectionService.mjs.map +1 -1
- package/build/modules/connections/services/DidCommDidRotateService.d.mts +1 -3
- package/build/modules/connections/services/DidCommDidRotateService.d.mts.map +1 -1
- package/build/modules/connections/services/DidCommDidRotateService.mjs +34 -32
- package/build/modules/connections/services/DidCommDidRotateService.mjs.map +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.d.mts +2 -7
- package/build/modules/connections/services/DidCommTrustPingService.d.mts.map +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.mjs +14 -13
- package/build/modules/connections/services/DidCommTrustPingService.mjs.map +1 -1
- package/build/modules/connections/services/helpers.mjs +22 -157
- package/build/modules/connections/services/helpers.mjs.map +1 -1
- package/build/modules/connections/services/index.d.mts +2 -2
- package/build/modules/connections/services/index.mjs +1 -1
- package/build/modules/credentials/DidCommCredentialEvents.d.mts +3 -5
- package/build/modules/credentials/DidCommCredentialEvents.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialEvents.mjs +1 -1
- package/build/modules/credentials/DidCommCredentialEvents.mjs.map +1 -1
- package/build/modules/credentials/DidCommCredentialsApi.d.mts +3 -5
- package/build/modules/credentials/DidCommCredentialsApi.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsApi.mjs +14 -16
- package/build/modules/credentials/DidCommCredentialsApi.mjs.map +1 -1
- package/build/modules/credentials/DidCommCredentialsApiOptions.d.mts +18 -19
- package/build/modules/credentials/DidCommCredentialsApiOptions.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModule.d.mts +3 -5
- package/build/modules/credentials/DidCommCredentialsModule.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModule.mjs +1 -2
- package/build/modules/credentials/DidCommCredentialsModule.mjs.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModuleConfig.d.mts +2 -4
- package/build/modules/credentials/DidCommCredentialsModuleConfig.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModuleConfig.mjs +3 -4
- package/build/modules/credentials/DidCommCredentialsModuleConfig.mjs.map +1 -1
- package/build/modules/credentials/formats/DidCommCredentialFormat.d.mts +2 -3
- package/build/modules/credentials/formats/DidCommCredentialFormat.d.mts.map +1 -1
- package/build/modules/credentials/formats/DidCommCredentialFormatService.d.mts +1 -3
- package/build/modules/credentials/formats/DidCommCredentialFormatService.d.mts.map +1 -1
- package/build/modules/credentials/formats/DidCommCredentialFormatServiceOptions.d.mts +17 -19
- package/build/modules/credentials/formats/DidCommCredentialFormatServiceOptions.d.mts.map +1 -1
- package/build/modules/credentials/formats/dataIntegrity/DidCommDataIntegrityCredentialFormat.d.mts +6 -8
- package/build/modules/credentials/formats/dataIntegrity/DidCommDataIntegrityCredentialFormat.d.mts.map +1 -1
- package/build/modules/credentials/formats/dataIntegrity/DidCommDataIntegrityCredentialFormatService.d.mts +10 -51
- package/build/modules/credentials/formats/dataIntegrity/DidCommDataIntegrityCredentialFormatService.d.mts.map +1 -1
- package/build/modules/credentials/formats/dataIntegrity/DidCommDataIntegrityCredentialFormatService.mjs +33 -119
- package/build/modules/credentials/formats/dataIntegrity/DidCommDataIntegrityCredentialFormatService.mjs.map +1 -1
- package/build/modules/credentials/formats/dataIntegrity/DidCommDataIntegrityLinkSecretBinding.d.mts +6 -8
- package/build/modules/credentials/formats/dataIntegrity/DidCommDataIntegrityLinkSecretBinding.d.mts.map +1 -1
- package/build/modules/credentials/formats/dataIntegrity/DidCommDataIntegrityLinkSecretBinding.mjs +1 -1
- package/build/modules/credentials/formats/dataIntegrity/DidCommDataIntegrityLinkSecretBinding.mjs.map +1 -1
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.d.mts +16 -18
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.d.mts.map +1 -1
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.mjs +7 -9
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.mjs.map +1 -1
- package/build/modules/credentials/formats/dataIntegrity/index.d.mts +2 -1
- package/build/modules/credentials/formats/dataIntegrity/index.mjs +1 -0
- package/build/modules/credentials/formats/index.d.mts +7 -1
- package/build/modules/credentials/formats/index.mjs +5 -0
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetail.d.mts +2 -4
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetail.d.mts.map +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetail.mjs +5 -7
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetail.mjs.map +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.d.mts +4 -5
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.d.mts.map +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.mjs +4 -6
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.mjs.map +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormat.d.mts +7 -9
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormat.d.mts.map +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.d.mts +15 -56
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.d.mts.map +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.mjs +1 -2
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.mjs.map +1 -1
- package/build/modules/credentials/formats/jsonld/index.d.mts +2 -1
- package/build/modules/credentials/formats/jsonld/index.mjs +1 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/DidCommW3cV2SdJwtCredentialFormat.d.mts +79 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/DidCommW3cV2SdJwtCredentialFormat.d.mts.map +1 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/DidCommW3cV2SdJwtCredentialFormatService.d.mts +28 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/DidCommW3cV2SdJwtCredentialFormatService.d.mts.map +1 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/DidCommW3cV2SdJwtCredentialFormatService.mjs +244 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/DidCommW3cV2SdJwtCredentialFormatService.mjs.map +1 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/disclosureFrame.d.mts +41 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/disclosureFrame.d.mts.map +1 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/disclosureFrame.mjs +92 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/disclosureFrame.mjs.map +1 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/index.d.mts +5 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/index.mjs +4 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/w3cV2SdJwtExchange.d.mts +68 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/w3cV2SdJwtExchange.d.mts.map +1 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/w3cV2SdJwtExchange.mjs +86 -0
- package/build/modules/credentials/formats/w3cV2SdJwt/w3cV2SdJwtExchange.mjs.map +1 -0
- package/build/modules/credentials/index.d.mts +6 -1
- package/build/modules/credentials/index.mjs +4 -0
- package/build/modules/credentials/models/DidCommCredentialAutoAcceptType.d.mts +1 -2
- package/build/modules/credentials/models/DidCommCredentialAutoAcceptType.d.mts.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialAutoAcceptType.mjs +1 -1
- package/build/modules/credentials/models/DidCommCredentialAutoAcceptType.mjs.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialFormatSpec.d.mts +2 -3
- package/build/modules/credentials/models/DidCommCredentialFormatSpec.d.mts.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialFormatSpec.mjs +3 -4
- package/build/modules/credentials/models/DidCommCredentialFormatSpec.mjs.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialPreviewAttribute.d.mts +3 -4
- package/build/modules/credentials/models/DidCommCredentialPreviewAttribute.d.mts.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialPreviewAttribute.mjs +3 -4
- package/build/modules/credentials/models/DidCommCredentialPreviewAttribute.mjs.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialProblemReportReason.d.mts +1 -2
- package/build/modules/credentials/models/DidCommCredentialProblemReportReason.d.mts.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialProblemReportReason.mjs +1 -1
- package/build/modules/credentials/models/DidCommCredentialProblemReportReason.mjs.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialRole.d.mts +1 -2
- package/build/modules/credentials/models/DidCommCredentialRole.d.mts.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialRole.mjs +1 -1
- package/build/modules/credentials/models/DidCommCredentialRole.mjs.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialState.d.mts +1 -2
- package/build/modules/credentials/models/DidCommCredentialState.d.mts.map +1 -1
- package/build/modules/credentials/models/DidCommCredentialState.mjs +1 -1
- package/build/modules/credentials/models/DidCommCredentialState.mjs.map +1 -1
- package/build/modules/credentials/models/DidCommRevocationNotification.d.mts +1 -2
- package/build/modules/credentials/models/DidCommRevocationNotification.d.mts.map +1 -1
- package/build/modules/credentials/models/DidCommRevocationNotification.mjs +4 -6
- package/build/modules/credentials/models/DidCommRevocationNotification.mjs.map +1 -1
- package/build/modules/credentials/models/index.mjs +1 -0
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.mts +3 -5
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.mts.map +1 -1
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.mjs +5 -6
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.mjs.map +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocol.d.mts +3 -5
- package/build/modules/credentials/protocol/DidCommCredentialProtocol.d.mts.map +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocolOptions.d.mts +17 -19
- package/build/modules/credentials/protocol/DidCommCredentialProtocolOptions.d.mts.map +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocolOptions.mjs +1 -2
- package/build/modules/credentials/protocol/index.d.mts +2 -1
- package/build/modules/credentials/protocol/index.mjs +1 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV1Handler.mjs +1 -2
- package/build/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV1Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV2Handler.mjs +1 -2
- package/build/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/index.mjs +1 -0
- package/build/modules/credentials/protocol/revocation-notification/index.d.mts +2 -1
- package/build/modules/credentials/protocol/revocation-notification/index.mjs +1 -0
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.d.mts +2 -4
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.d.mts.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.mjs +3 -4
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.mjs.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.d.mts +2 -4
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.d.mts.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.mjs +3 -4
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.mjs.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/index.d.mts +2 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/index.mjs +1 -0
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.mts +1 -3
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.mts.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.mjs +10 -12
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.mjs.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationServiceOptions.d.mts +1 -2
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationServiceOptions.d.mts.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/index.d.mts +2 -1
- package/build/modules/credentials/protocol/revocation-notification/services/index.mjs +1 -0
- package/build/modules/credentials/protocol/revocation-notification/util/revocationIdentifier.mjs +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.mjs +17 -18
- package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.mts +17 -82
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.mjs +69 -70
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.mts +3 -7
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.mjs +1 -2
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/errors/index.d.mts +2 -1
- package/build/modules/credentials/protocol/v2/errors/index.mjs +1 -0
- package/build/modules/credentials/protocol/v2/handlers/DidCommCredentialV2AckHandler.mjs +1 -2
- package/build/modules/credentials/protocol/v2/handlers/DidCommCredentialV2AckHandler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommCredentialV2ProblemReportHandler.mjs +1 -2
- package/build/modules/credentials/protocol/v2/handlers/DidCommCredentialV2ProblemReportHandler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommIssueCredentialV2Handler.mjs +1 -2
- package/build/modules/credentials/protocol/v2/handlers/DidCommIssueCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.d.mts +2 -4
- package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.mjs +1 -2
- package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommProposeCredentialV2Handler.mjs +1 -2
- package/build/modules/credentials/protocol/v2/handlers/DidCommProposeCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommRequestCredentialV2Handler.mjs +1 -2
- package/build/modules/credentials/protocol/v2/handlers/DidCommRequestCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/index.d.mts +2 -1
- package/build/modules/credentials/protocol/v2/handlers/index.mjs +1 -0
- package/build/modules/credentials/protocol/v2/index.d.mts +2 -1
- package/build/modules/credentials/protocol/v2/index.mjs +1 -0
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2AckMessage.d.mts +2 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2AckMessage.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2AckMessage.mjs +3 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2AckMessage.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.mts +1 -3
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.mjs +6 -6
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.d.mts +2 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.mjs +3 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommIssueCredentialV2Message.d.mts +3 -5
- package/build/modules/credentials/protocol/v2/messages/DidCommIssueCredentialV2Message.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommIssueCredentialV2Message.mjs +3 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommIssueCredentialV2Message.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.d.mts +3 -5
- package/build/modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.mjs +4 -6
- package/build/modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.d.mts +3 -5
- package/build/modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.mjs +4 -6
- package/build/modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommRequestCredentialV2Message.d.mts +3 -5
- package/build/modules/credentials/protocol/v2/messages/DidCommRequestCredentialV2Message.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommRequestCredentialV2Message.mjs +3 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommRequestCredentialV2Message.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/index.d.mts +2 -1
- package/build/modules/credentials/protocol/v2/messages/index.mjs +1 -0
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.mts +5 -7
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.mts.map +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.mjs +4 -6
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.mjs.map +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.d.mts +1 -3
- package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.d.mts.map +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.mjs +5 -7
- package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.mjs.map +1 -1
- package/build/modules/credentials/repository/index.d.mts +2 -1
- package/build/modules/credentials/repository/index.mjs +1 -0
- package/build/modules/credentials/util/composeAutoAccept.mjs +3 -4
- package/build/modules/credentials/util/composeAutoAccept.mjs.map +1 -1
- package/build/modules/credentials/util/credentialSubject.mjs +39 -0
- package/build/modules/credentials/util/credentialSubject.mjs.map +1 -0
- package/build/modules/credentials/util/didCommSignedAttachment.mjs +77 -0
- package/build/modules/credentials/util/didCommSignedAttachment.mjs.map +1 -0
- package/build/modules/credentials/util/formatData.mjs +21 -0
- package/build/modules/credentials/util/formatData.mjs.map +1 -0
- package/build/modules/credentials/util/previewAttributes.mjs +1 -1
- package/build/modules/credentials/util/previewAttributes.mjs.map +1 -1
- package/build/modules/credentials/util/signatureAlgorithm.mjs +36 -0
- package/build/modules/credentials/util/signatureAlgorithm.mjs.map +1 -0
- package/build/modules/credentials/util/verificationMethod.mjs +22 -0
- package/build/modules/credentials/util/verificationMethod.mjs.map +1 -0
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.mts +3 -5
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.mts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.mjs +14 -16
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.mjs.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesApiOptions.d.mts +3 -5
- package/build/modules/discover-features/DidCommDiscoverFeaturesApiOptions.d.mts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesEvents.d.mts +4 -6
- package/build/modules/discover-features/DidCommDiscoverFeaturesEvents.d.mts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesEvents.mjs +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesEvents.mjs.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.d.mts +1 -3
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.d.mts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.mjs +1 -2
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.mjs.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModuleConfig.d.mts +2 -3
- package/build/modules/discover-features/DidCommDiscoverFeaturesModuleConfig.d.mts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModuleConfig.mjs +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModuleConfig.mjs.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesServiceOptions.d.mts +3 -5
- package/build/modules/discover-features/DidCommDiscoverFeaturesServiceOptions.d.mts.map +1 -1
- package/build/modules/discover-features/index.d.mts +2 -1
- package/build/modules/discover-features/index.mjs +1 -0
- package/build/modules/discover-features/protocol/index.d.mts +2 -1
- package/build/modules/discover-features/protocol/index.mjs +1 -0
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.mts +2 -4
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.mjs +10 -12
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/handlers/DidCommFeaturesDiscloseMessageHandler.mjs +1 -2
- package/build/modules/discover-features/protocol/v1/handlers/DidCommFeaturesDiscloseMessageHandler.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/handlers/DidCommFeaturesQueryMessageHandler.mjs +1 -2
- package/build/modules/discover-features/protocol/v1/handlers/DidCommFeaturesQueryMessageHandler.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/handlers/index.mjs +1 -0
- package/build/modules/discover-features/protocol/v1/index.d.mts +2 -1
- package/build/modules/discover-features/protocol/v1/index.mjs +1 -0
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.d.mts +4 -6
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.mjs +3 -4
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesQueryMessage.d.mts +2 -4
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesQueryMessage.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesQueryMessage.mjs +3 -4
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesQueryMessage.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/messages/index.d.mts +2 -1
- package/build/modules/discover-features/protocol/v1/messages/index.mjs +1 -0
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.mts +1 -3
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.mjs +10 -12
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v2/handlers/DidCommFeaturesDisclosuresMessageHandler.mjs +1 -2
- package/build/modules/discover-features/protocol/v2/handlers/DidCommFeaturesDisclosuresMessageHandler.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v2/handlers/DidCommFeaturesQueriesMessageHandler.mjs +1 -2
- package/build/modules/discover-features/protocol/v2/handlers/DidCommFeaturesQueriesMessageHandler.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v2/handlers/index.mjs +1 -0
- package/build/modules/discover-features/protocol/v2/index.d.mts +2 -1
- package/build/modules/discover-features/protocol/v2/index.mjs +1 -0
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.d.mts +2 -4
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.mjs +3 -4
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.d.mts +2 -4
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.mjs +3 -4
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/index.d.mts +2 -1
- package/build/modules/discover-features/protocol/v2/messages/index.mjs +1 -0
- package/build/modules/discover-features/services/DidCommDiscoverFeaturesService.d.mts +2 -4
- package/build/modules/discover-features/services/DidCommDiscoverFeaturesService.d.mts.map +1 -1
- package/build/modules/discover-features/services/DidCommDiscoverFeaturesService.mjs +1 -1
- package/build/modules/discover-features/services/DidCommDiscoverFeaturesService.mjs.map +1 -1
- package/build/modules/discover-features/services/index.d.mts +2 -1
- package/build/modules/index.d.mts +15 -41
- package/build/modules/index.mjs +22 -49
- package/build/modules/message-pickup/DidCommMessagePickupApi.d.mts +2 -5
- package/build/modules/message-pickup/DidCommMessagePickupApi.d.mts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupApi.mjs +14 -26
- package/build/modules/message-pickup/DidCommMessagePickupApi.mjs.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupApiOptions.d.mts +11 -13
- package/build/modules/message-pickup/DidCommMessagePickupApiOptions.d.mts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupEvents.d.mts +4 -6
- package/build/modules/message-pickup/DidCommMessagePickupEvents.d.mts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupEvents.mjs +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupEvents.mjs.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.d.mts +3 -6
- package/build/modules/message-pickup/DidCommMessagePickupModule.d.mts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.mjs +2 -8
- package/build/modules/message-pickup/DidCommMessagePickupModule.mjs.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModuleConfig.d.mts +2 -4
- package/build/modules/message-pickup/DidCommMessagePickupModuleConfig.d.mts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModuleConfig.mjs +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModuleConfig.mjs.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupSession.d.mts +2 -4
- package/build/modules/message-pickup/DidCommMessagePickupSession.d.mts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupSession.mjs +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupSession.mjs.map +1 -1
- package/build/modules/message-pickup/index.d.mts +2 -16
- package/build/modules/message-pickup/index.mjs +1 -15
- package/build/modules/message-pickup/protocol/DidCommBaseMessagePickupProtocol.d.mts +2 -4
- package/build/modules/message-pickup/protocol/DidCommBaseMessagePickupProtocol.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/DidCommBaseMessagePickupProtocol.mjs +1 -1
- package/build/modules/message-pickup/protocol/DidCommBaseMessagePickupProtocol.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/DidCommMessagePickupProtocol.d.mts +2 -4
- package/build/modules/message-pickup/protocol/DidCommMessagePickupProtocol.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/DidCommMessagePickupProtocolOptions.d.mts +7 -10
- package/build/modules/message-pickup/protocol/DidCommMessagePickupProtocolOptions.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/index.d.mts +1 -16
- package/build/modules/message-pickup/protocol/index.mjs +1 -16
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.mts +2 -4
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.mjs +18 -17
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v1/handlers/DidCommBatchHandler.mjs +1 -2
- package/build/modules/message-pickup/protocol/v1/handlers/DidCommBatchHandler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v1/handlers/DidCommBatchPickupHandler.mjs +1 -2
- package/build/modules/message-pickup/protocol/v1/handlers/DidCommBatchPickupHandler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v1/handlers/index.mjs +1 -0
- package/build/modules/message-pickup/protocol/v1/index.d.mts +2 -1
- package/build/modules/message-pickup/protocol/v1/index.mjs +1 -0
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchMessage.d.mts +3 -7
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchMessage.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchMessage.mjs +3 -5
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchMessage.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.d.mts +2 -6
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.mjs +3 -5
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v1/messages/index.d.mts +2 -1
- package/build/modules/message-pickup/protocol/v1/messages/index.mjs +1 -0
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.mts +2 -4
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.mjs +24 -21
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommDeliveryRequestV2Handler.mjs +1 -2
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommDeliveryRequestV2Handler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommLiveDeliveryChangeV2Handler.mjs +1 -2
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommLiveDeliveryChangeV2Handler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommMessageDeliveryV2Handler.mjs +1 -2
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommMessageDeliveryV2Handler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommMessagesReceivedV2Handler.mjs +1 -2
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommMessagesReceivedV2Handler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommStatusRequestV2Handler.mjs +1 -2
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommStatusRequestV2Handler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommStatusV2Handler.mjs +1 -2
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommStatusV2Handler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/index.mjs +1 -0
- package/build/modules/message-pickup/protocol/v2/index.d.mts +2 -1
- package/build/modules/message-pickup/protocol/v2/index.mjs +1 -0
- package/build/modules/message-pickup/protocol/v2/messages/DidCommDeliveryRequestV2Message.d.mts +2 -6
- package/build/modules/message-pickup/protocol/v2/messages/DidCommDeliveryRequestV2Message.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommDeliveryRequestV2Message.mjs +5 -7
- package/build/modules/message-pickup/protocol/v2/messages/DidCommDeliveryRequestV2Message.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.d.mts +2 -6
- package/build/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.mjs +5 -7
- package/build/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.d.mts +3 -7
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.mjs +5 -7
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessagesReceivedV2Message.d.mts +2 -6
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessagesReceivedV2Message.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessagesReceivedV2Message.mjs +5 -7
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessagesReceivedV2Message.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusRequestV2Message.d.mts +2 -6
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusRequestV2Message.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusRequestV2Message.mjs +3 -5
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusRequestV2Message.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.d.mts +2 -6
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.mjs +7 -10
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/index.d.mts +2 -1
- package/build/modules/message-pickup/protocol/v2/messages/index.mjs +1 -0
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.d.mts +1 -3
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.d.mts.map +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.mjs +8 -9
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.mjs.map +1 -1
- package/build/modules/message-pickup/services/index.d.mts +2 -1
- package/build/modules/message-pickup/services/index.mjs +1 -0
- package/build/modules/oob/DidCommOutOfBandApi.d.mts +12 -46
- package/build/modules/oob/DidCommOutOfBandApi.d.mts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandApi.mjs +71 -209
- package/build/modules/oob/DidCommOutOfBandApi.mjs.map +1 -1
- package/build/modules/oob/DidCommOutOfBandModule.d.mts +1 -3
- package/build/modules/oob/DidCommOutOfBandModule.d.mts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandModule.mjs +1 -2
- package/build/modules/oob/DidCommOutOfBandModule.mjs.map +1 -1
- package/build/modules/oob/DidCommOutOfBandService.d.mts +12 -16
- package/build/modules/oob/DidCommOutOfBandService.d.mts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandService.mjs +30 -46
- package/build/modules/oob/DidCommOutOfBandService.mjs.map +1 -1
- package/build/modules/oob/converters.mjs +8 -47
- package/build/modules/oob/converters.mjs.map +1 -1
- package/build/modules/oob/domain/DidCommOutOfBandEvents.d.mts +3 -5
- package/build/modules/oob/domain/DidCommOutOfBandEvents.d.mts.map +1 -1
- package/build/modules/oob/domain/DidCommOutOfBandEvents.mjs +1 -1
- package/build/modules/oob/domain/DidCommOutOfBandEvents.mjs.map +1 -1
- package/build/modules/oob/domain/DidCommOutOfBandRole.d.mts +1 -2
- package/build/modules/oob/domain/DidCommOutOfBandRole.d.mts.map +1 -1
- package/build/modules/oob/domain/DidCommOutOfBandRole.mjs +1 -1
- package/build/modules/oob/domain/DidCommOutOfBandRole.mjs.map +1 -1
- package/build/modules/oob/domain/DidCommOutOfBandState.d.mts +1 -2
- package/build/modules/oob/domain/DidCommOutOfBandState.d.mts.map +1 -1
- package/build/modules/oob/domain/DidCommOutOfBandState.mjs +1 -1
- package/build/modules/oob/domain/DidCommOutOfBandState.mjs.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.d.mts +1 -3
- package/build/modules/oob/domain/OutOfBandDidCommService.d.mts.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.mjs +3 -4
- package/build/modules/oob/domain/OutOfBandDidCommService.mjs.map +1 -1
- package/build/modules/oob/domain/index.d.mts +2 -1
- package/build/modules/oob/domain/index.mjs +1 -0
- package/build/modules/oob/handlers/DidCommHandshakeReuseAcceptedHandler.mjs +1 -2
- package/build/modules/oob/handlers/DidCommHandshakeReuseAcceptedHandler.mjs.map +1 -1
- package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.mjs +3 -3
- package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.mjs.map +1 -1
- package/build/modules/oob/handlers/index.mjs +1 -0
- package/build/modules/oob/helpers.mjs +4 -4
- package/build/modules/oob/helpers.mjs.map +1 -1
- package/build/modules/oob/index.d.mts +2 -2
- package/build/modules/oob/index.mjs +2 -2
- package/build/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.d.mts +2 -4
- package/build/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.d.mts.map +1 -1
- package/build/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.mjs +3 -4
- package/build/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.mjs.map +1 -1
- package/build/modules/oob/messages/DidCommHandshakeReuseMessage.d.mts +2 -4
- package/build/modules/oob/messages/DidCommHandshakeReuseMessage.d.mts.map +1 -1
- package/build/modules/oob/messages/DidCommHandshakeReuseMessage.mjs +3 -4
- package/build/modules/oob/messages/DidCommHandshakeReuseMessage.mjs.map +1 -1
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.d.mts +6 -25
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.d.mts.map +1 -1
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.mjs +5 -21
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.mjs.map +1 -1
- package/build/modules/oob/messages/index.d.mts +2 -2
- package/build/modules/oob/messages/index.mjs +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRecord.d.mts +3 -11
- package/build/modules/oob/repository/DidCommOutOfBandRecord.d.mts.map +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRecord.mjs +5 -8
- package/build/modules/oob/repository/DidCommOutOfBandRecord.mjs.map +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRepository.d.mts +1 -3
- package/build/modules/oob/repository/DidCommOutOfBandRepository.d.mts.map +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRepository.mjs +5 -7
- package/build/modules/oob/repository/DidCommOutOfBandRepository.mjs.map +1 -1
- package/build/modules/oob/repository/index.d.mts +2 -1
- package/build/modules/oob/repository/index.mjs +1 -0
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.d.mts +3 -18
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofEvents.d.mts +2 -4
- package/build/modules/proofs/DidCommProofEvents.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofEvents.mjs +1 -1
- package/build/modules/proofs/DidCommProofEvents.mjs.map +1 -1
- package/build/modules/proofs/DidCommProofsApi.d.mts +3 -5
- package/build/modules/proofs/DidCommProofsApi.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofsApi.mjs +12 -14
- package/build/modules/proofs/DidCommProofsApi.mjs.map +1 -1
- package/build/modules/proofs/DidCommProofsApiOptions.d.mts +20 -21
- package/build/modules/proofs/DidCommProofsApiOptions.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofsModule.d.mts +3 -5
- package/build/modules/proofs/DidCommProofsModule.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofsModule.mjs +1 -2
- package/build/modules/proofs/DidCommProofsModule.mjs.map +1 -1
- package/build/modules/proofs/DidCommProofsModuleConfig.d.mts +2 -4
- package/build/modules/proofs/DidCommProofsModuleConfig.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofsModuleConfig.mjs +3 -4
- package/build/modules/proofs/DidCommProofsModuleConfig.mjs.map +1 -1
- package/build/modules/proofs/errors/DidCommPresentationProblemReportReason.d.mts +1 -2
- package/build/modules/proofs/errors/DidCommPresentationProblemReportReason.d.mts.map +1 -1
- package/build/modules/proofs/errors/DidCommPresentationProblemReportReason.mjs +1 -1
- package/build/modules/proofs/errors/DidCommPresentationProblemReportReason.mjs.map +1 -1
- package/build/modules/proofs/formats/DidCommProofFormat.d.mts +3 -4
- package/build/modules/proofs/formats/DidCommProofFormat.d.mts.map +1 -1
- package/build/modules/proofs/formats/DidCommProofFormatService.d.mts +1 -3
- package/build/modules/proofs/formats/DidCommProofFormatService.d.mts.map +1 -1
- package/build/modules/proofs/formats/DidCommProofFormatServiceOptions.d.mts +17 -19
- package/build/modules/proofs/formats/DidCommProofFormatServiceOptions.d.mts.map +1 -1
- package/build/modules/proofs/formats/DidCommProofFormatServiceOptions.mjs +1 -2
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormat.d.mts +5 -7
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormat.d.mts.map +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.d.mts +12 -47
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.d.mts.map +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.mjs +24 -22
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.mjs.map +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/index.d.mts +2 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/index.mjs +1 -0
- package/build/modules/proofs/formats/index.d.mts +2 -1
- package/build/modules/proofs/formats/index.mjs +1 -0
- package/build/modules/proofs/index.d.mts +2 -1
- package/build/modules/proofs/index.mjs +1 -0
- package/build/modules/proofs/models/DidCommProofAutoAcceptType.d.mts +1 -2
- package/build/modules/proofs/models/DidCommProofAutoAcceptType.d.mts.map +1 -1
- package/build/modules/proofs/models/DidCommProofAutoAcceptType.mjs +1 -1
- package/build/modules/proofs/models/DidCommProofAutoAcceptType.mjs.map +1 -1
- package/build/modules/proofs/models/DidCommProofFormatSpec.d.mts +2 -3
- package/build/modules/proofs/models/DidCommProofFormatSpec.d.mts.map +1 -1
- package/build/modules/proofs/models/DidCommProofFormatSpec.mjs +3 -4
- package/build/modules/proofs/models/DidCommProofFormatSpec.mjs.map +1 -1
- package/build/modules/proofs/models/DidCommProofRole.d.mts +1 -2
- package/build/modules/proofs/models/DidCommProofRole.d.mts.map +1 -1
- package/build/modules/proofs/models/DidCommProofRole.mjs +1 -1
- package/build/modules/proofs/models/DidCommProofRole.mjs.map +1 -1
- package/build/modules/proofs/models/DidCommProofState.d.mts +1 -2
- package/build/modules/proofs/models/DidCommProofState.d.mts.map +1 -1
- package/build/modules/proofs/models/DidCommProofState.mjs +1 -1
- package/build/modules/proofs/models/DidCommProofState.mjs.map +1 -1
- package/build/modules/proofs/models/index.mjs +1 -0
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.mts +2 -4
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.mts.map +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.mjs +5 -6
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.mjs.map +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocol.d.mts +2 -4
- package/build/modules/proofs/protocol/DidCommProofProtocol.d.mts.map +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocolOptions.d.mts +19 -21
- package/build/modules/proofs/protocol/DidCommProofProtocolOptions.d.mts.map +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocolOptions.mjs +1 -2
- package/build/modules/proofs/protocol/index.d.mts +2 -1
- package/build/modules/proofs/protocol/index.mjs +1 -0
- package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.mjs +16 -17
- package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.mts +14 -76
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.mjs +64 -65
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.mts +2 -6
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.mjs +1 -2
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/errors/index.d.mts +2 -1
- package/build/modules/proofs/protocol/v2/errors/index.mjs +1 -0
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2AckHandler.mjs +1 -2
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2AckHandler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.mjs +3 -4
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2ProblemReportHandler.mjs +1 -2
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2ProblemReportHandler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommProposePresentationV2Handler.mjs +1 -2
- package/build/modules/proofs/protocol/v2/handlers/DidCommProposePresentationV2Handler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommRequestPresentationV2Handler.mjs +1 -2
- package/build/modules/proofs/protocol/v2/handlers/DidCommRequestPresentationV2Handler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/index.d.mts +2 -1
- package/build/modules/proofs/protocol/v2/index.mjs +1 -0
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2AckMessage.d.mts +1 -3
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2AckMessage.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2AckMessage.mjs +3 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2AckMessage.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2Message.d.mts +3 -5
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2Message.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2Message.mjs +3 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2Message.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2ProblemReportMessage.d.mts +1 -3
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2ProblemReportMessage.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2ProblemReportMessage.mjs +3 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2ProblemReportMessage.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.d.mts +3 -5
- package/build/modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.mjs +3 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.d.mts +3 -5
- package/build/modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.mjs +3 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/index.d.mts +2 -1
- package/build/modules/proofs/protocol/v2/messages/index.mjs +1 -0
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.mts +4 -6
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.mts.map +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.mjs +1 -2
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.mjs.map +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRepository.d.mts +1 -3
- package/build/modules/proofs/repository/DidCommProofExchangeRepository.d.mts.map +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRepository.mjs +5 -7
- package/build/modules/proofs/repository/DidCommProofExchangeRepository.mjs.map +1 -1
- package/build/modules/proofs/repository/index.d.mts +2 -1
- package/build/modules/proofs/repository/index.mjs +1 -0
- package/build/modules/proofs/utils/composeAutoAccept.mjs +3 -4
- package/build/modules/proofs/utils/composeAutoAccept.mjs.map +1 -1
- package/build/modules/proofs/utils/index.mjs +1 -0
- package/build/modules/routing/DidCommMediationRecipientApi.d.mts +8 -43
- package/build/modules/routing/DidCommMediationRecipientApi.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientApi.mjs +63 -218
- package/build/modules/routing/DidCommMediationRecipientApi.mjs.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientModule.d.mts +1 -3
- package/build/modules/routing/DidCommMediationRecipientModule.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientModule.mjs +9 -25
- package/build/modules/routing/DidCommMediationRecipientModule.mjs.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientModuleConfig.d.mts +2 -16
- package/build/modules/routing/DidCommMediationRecipientModuleConfig.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientModuleConfig.mjs +1 -5
- package/build/modules/routing/DidCommMediationRecipientModuleConfig.mjs.map +1 -1
- package/build/modules/routing/DidCommMediatorApi.d.mts +1 -7
- package/build/modules/routing/DidCommMediatorApi.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediatorApi.mjs +9 -15
- package/build/modules/routing/DidCommMediatorApi.mjs.map +1 -1
- package/build/modules/routing/DidCommMediatorModule.d.mts +1 -3
- package/build/modules/routing/DidCommMediatorModule.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediatorModule.mjs +8 -22
- package/build/modules/routing/DidCommMediatorModule.mjs.map +1 -1
- package/build/modules/routing/DidCommMediatorModuleConfig.d.mts +2 -21
- package/build/modules/routing/DidCommMediatorModuleConfig.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediatorModuleConfig.mjs +3 -12
- package/build/modules/routing/DidCommMediatorModuleConfig.mjs.map +1 -1
- package/build/modules/routing/DidCommMediatorPickupStrategy.d.mts +1 -4
- package/build/modules/routing/DidCommMediatorPickupStrategy.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediatorPickupStrategy.mjs +1 -3
- package/build/modules/routing/DidCommMediatorPickupStrategy.mjs.map +1 -1
- package/build/modules/routing/DidCommMessageForwardingStrategy.d.mts +1 -2
- package/build/modules/routing/DidCommMessageForwardingStrategy.d.mts.map +1 -1
- package/build/modules/routing/DidCommMessageForwardingStrategy.mjs +1 -1
- package/build/modules/routing/DidCommMessageForwardingStrategy.mjs.map +1 -1
- package/build/modules/routing/DidCommRoutingEvents.d.mts +5 -16
- package/build/modules/routing/DidCommRoutingEvents.d.mts.map +1 -1
- package/build/modules/routing/DidCommRoutingEvents.mjs +1 -2
- package/build/modules/routing/DidCommRoutingEvents.mjs.map +1 -1
- package/build/modules/routing/{protocol/v1/handlers → handlers}/DidCommForwardHandler.mjs +3 -6
- package/build/modules/routing/handlers/DidCommForwardHandler.mjs.map +1 -0
- package/build/modules/routing/{protocol/v1/handlers → handlers}/DidCommKeylistUpdateHandler.mjs +6 -6
- package/build/modules/routing/handlers/DidCommKeylistUpdateHandler.mjs.map +1 -0
- package/build/modules/routing/{protocol/v1/handlers → handlers}/DidCommKeylistUpdateResponseHandler.mjs +2 -3
- package/build/modules/routing/handlers/DidCommKeylistUpdateResponseHandler.mjs.map +1 -0
- package/build/modules/routing/{protocol/v1/handlers → handlers}/DidCommMediationDenyHandler.mjs +2 -3
- package/build/modules/routing/handlers/DidCommMediationDenyHandler.mjs.map +1 -0
- package/build/modules/routing/{protocol/v1/handlers → handlers}/DidCommMediationGrantHandler.mjs +2 -3
- package/build/modules/routing/handlers/DidCommMediationGrantHandler.mjs.map +1 -0
- package/build/modules/routing/{protocol/v1/handlers → handlers}/DidCommMediationRequestHandler.mjs +4 -5
- package/build/modules/routing/handlers/DidCommMediationRequestHandler.mjs.map +1 -0
- package/build/modules/routing/{protocol/v1/handlers → handlers}/index.mjs +1 -0
- package/build/modules/routing/index.d.mts +10 -18
- package/build/modules/routing/index.mjs +12 -20
- package/build/modules/routing/messages/DidCommForwardMessage.d.mts +28 -0
- package/build/modules/routing/messages/DidCommForwardMessage.d.mts.map +1 -0
- package/build/modules/routing/{protocol/v1/messages → messages}/DidCommForwardMessage.mjs +6 -8
- package/build/modules/routing/messages/DidCommForwardMessage.mjs.map +1 -0
- package/build/modules/routing/messages/DidCommKeylistUpdateMessage.d.mts +34 -0
- package/build/modules/routing/messages/DidCommKeylistUpdateMessage.d.mts.map +1 -0
- package/build/modules/routing/{protocol/v1/messages → messages}/DidCommKeylistUpdateMessage.mjs +7 -10
- package/build/modules/routing/messages/DidCommKeylistUpdateMessage.mjs.map +1 -0
- package/build/modules/routing/{protocol/v1/messages → messages}/DidCommKeylistUpdateResponseMessage.d.mts +8 -12
- package/build/modules/routing/messages/DidCommKeylistUpdateResponseMessage.d.mts.map +1 -0
- package/build/modules/routing/{protocol/v1/messages → messages}/DidCommKeylistUpdateResponseMessage.mjs +8 -11
- package/build/modules/routing/messages/DidCommKeylistUpdateResponseMessage.mjs.map +1 -0
- package/build/modules/routing/messages/DidCommMediationDenyMessage.d.mts +19 -0
- package/build/modules/routing/messages/DidCommMediationDenyMessage.d.mts.map +1 -0
- package/build/modules/routing/{protocol/v1/messages → messages}/DidCommMediationDenyMessage.mjs +6 -8
- package/build/modules/routing/messages/DidCommMediationDenyMessage.mjs.map +1 -0
- package/build/modules/routing/messages/DidCommMediationGrantMessage.d.mts +25 -0
- package/build/modules/routing/messages/DidCommMediationGrantMessage.d.mts.map +1 -0
- package/build/modules/routing/{protocol/v1/messages → messages}/DidCommMediationGrantMessage.mjs +6 -8
- package/build/modules/routing/messages/DidCommMediationGrantMessage.mjs.map +1 -0
- package/build/modules/routing/{protocol/v1/messages → messages}/DidCommMediationRequestMessage.d.mts +6 -10
- package/build/modules/routing/messages/DidCommMediationRequestMessage.d.mts.map +1 -0
- package/build/modules/routing/{protocol/v1/messages → messages}/DidCommMediationRequestMessage.mjs +6 -8
- package/build/modules/routing/messages/DidCommMediationRequestMessage.mjs.map +1 -0
- package/build/modules/routing/{protocol/v1/messages → messages}/index.d.mts +2 -2
- package/build/modules/routing/{protocol/v1/messages → messages}/index.mjs +1 -1
- package/build/modules/routing/models/DidCommMediationRole.d.mts +1 -2
- package/build/modules/routing/models/DidCommMediationRole.d.mts.map +1 -1
- package/build/modules/routing/models/DidCommMediationRole.mjs +1 -1
- package/build/modules/routing/models/DidCommMediationRole.mjs.map +1 -1
- package/build/modules/routing/models/DidCommMediationState.d.mts +1 -2
- package/build/modules/routing/models/DidCommMediationState.d.mts.map +1 -1
- package/build/modules/routing/models/DidCommMediationState.mjs +1 -1
- package/build/modules/routing/models/DidCommMediationState.mjs.map +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.d.mts +4 -22
- package/build/modules/routing/repository/DidCommMediationRecord.d.mts.map +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.mjs +9 -30
- package/build/modules/routing/repository/DidCommMediationRecord.mjs.map +1 -1
- package/build/modules/routing/repository/DidCommMediationRepository.d.mts +1 -12
- package/build/modules/routing/repository/DidCommMediationRepository.d.mts.map +1 -1
- package/build/modules/routing/repository/DidCommMediationRepository.mjs +6 -25
- package/build/modules/routing/repository/DidCommMediationRepository.mjs.map +1 -1
- package/build/modules/routing/repository/DidCommMediatorRoutingRecord.d.mts +4 -6
- package/build/modules/routing/repository/DidCommMediatorRoutingRecord.d.mts.map +1 -1
- package/build/modules/routing/repository/DidCommMediatorRoutingRecord.mjs +1 -2
- package/build/modules/routing/repository/DidCommMediatorRoutingRecord.mjs.map +1 -1
- package/build/modules/routing/repository/DidCommMediatorRoutingRepository.d.mts +1 -3
- package/build/modules/routing/repository/DidCommMediatorRoutingRepository.d.mts.map +1 -1
- package/build/modules/routing/repository/DidCommMediatorRoutingRepository.mjs +5 -7
- package/build/modules/routing/repository/DidCommMediatorRoutingRepository.mjs.map +1 -1
- package/build/modules/routing/repository/index.d.mts +2 -1
- package/build/modules/routing/repository/index.mjs +1 -0
- package/build/modules/routing/services/DidCommMediationRecipientService.d.mts +11 -44
- package/build/modules/routing/services/DidCommMediationRecipientService.d.mts.map +1 -1
- package/build/modules/routing/services/DidCommMediationRecipientService.mjs +47 -175
- package/build/modules/routing/services/DidCommMediationRecipientService.mjs.map +1 -1
- package/build/modules/routing/services/DidCommMediatorService.d.mts +8 -36
- package/build/modules/routing/services/DidCommMediatorService.d.mts.map +1 -1
- package/build/modules/routing/services/DidCommMediatorService.mjs +55 -217
- package/build/modules/routing/services/DidCommMediatorService.mjs.map +1 -1
- package/build/modules/routing/services/DidCommRoutingService.d.mts +6 -19
- package/build/modules/routing/services/DidCommRoutingService.d.mts.map +1 -1
- package/build/modules/routing/services/DidCommRoutingService.mjs +9 -38
- package/build/modules/routing/services/DidCommRoutingService.mjs.map +1 -1
- package/build/modules/routing/services/helpers.mjs +3 -4
- package/build/modules/routing/services/helpers.mjs.map +1 -1
- package/build/modules/routing/services/index.d.mts +2 -1
- package/build/modules/routing/services/index.mjs +1 -0
- package/build/repository/DidCommMessageRecord.d.mts +3 -5
- package/build/repository/DidCommMessageRecord.d.mts.map +1 -1
- package/build/repository/DidCommMessageRecord.mjs +3 -3
- package/build/repository/DidCommMessageRecord.mjs.map +1 -1
- package/build/repository/DidCommMessageRepository.d.mts +6 -20
- package/build/repository/DidCommMessageRepository.d.mts.map +1 -1
- package/build/repository/DidCommMessageRepository.mjs +5 -7
- package/build/repository/DidCommMessageRepository.mjs.map +1 -1
- package/build/repository/DidCommMessageRole.d.mts +1 -2
- package/build/repository/DidCommMessageRole.d.mts.map +1 -1
- package/build/repository/DidCommMessageRole.mjs +1 -1
- package/build/repository/DidCommMessageRole.mjs.map +1 -1
- package/build/repository/index.d.mts +2 -1
- package/build/repository/index.mjs +1 -0
- package/build/services/DidCommDocumentService.d.mts +3 -55
- package/build/services/DidCommDocumentService.d.mts.map +1 -1
- package/build/services/DidCommDocumentService.mjs +22 -187
- package/build/services/DidCommDocumentService.mjs.map +1 -1
- package/build/services/index.d.mts +2 -1
- package/build/services/index.mjs +1 -0
- package/build/transport/DidCommHttpOutboundTransport.d.mts +1 -3
- package/build/transport/DidCommHttpOutboundTransport.d.mts.map +1 -1
- package/build/transport/DidCommHttpOutboundTransport.mjs +3 -4
- package/build/transport/DidCommHttpOutboundTransport.mjs.map +1 -1
- package/build/transport/DidCommInboundTransport.d.mts +1 -3
- package/build/transport/DidCommInboundTransport.d.mts.map +1 -1
- package/build/transport/DidCommOutboundTransport.d.mts +1 -3
- package/build/transport/DidCommOutboundTransport.d.mts.map +1 -1
- package/build/transport/DidCommTransportEventTypes.d.mts +5 -7
- package/build/transport/DidCommTransportEventTypes.d.mts.map +1 -1
- package/build/transport/DidCommTransportEventTypes.mjs +1 -1
- package/build/transport/DidCommTransportEventTypes.mjs.map +1 -1
- package/build/transport/DidCommWsOutboundTransport.d.mts +1 -3
- package/build/transport/DidCommWsOutboundTransport.d.mts.map +1 -1
- package/build/transport/DidCommWsOutboundTransport.mjs +6 -7
- package/build/transport/DidCommWsOutboundTransport.mjs.map +1 -1
- package/build/transport/index.d.mts +2 -1
- package/build/transport/index.mjs +1 -0
- package/build/transport/queue/DidCommQueueTransportRepository.d.mts +1 -3
- package/build/transport/queue/DidCommQueueTransportRepository.d.mts.map +1 -1
- package/build/transport/queue/DidCommQueueTransportRepository.mjs +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.d.mts +1 -3
- package/build/transport/queue/InMemoryQueueTransportRepository.d.mts.map +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.mjs +4 -5
- package/build/transport/queue/InMemoryQueueTransportRepository.mjs.map +1 -1
- package/build/transport/queue/QueueTransportRepositoryOptions.d.mts +4 -6
- package/build/transport/queue/QueueTransportRepositoryOptions.d.mts.map +1 -1
- package/build/transport/queue/QueuedDidCommMessage.d.mts +1 -3
- package/build/transport/queue/QueuedDidCommMessage.d.mts.map +1 -1
- package/build/transport/queue/index.d.mts +2 -1
- package/build/transport/queue/index.mjs +1 -0
- package/build/types.d.mts +5 -6
- package/build/types.d.mts.map +1 -1
- package/build/types.mjs +1 -1
- package/build/types.mjs.map +1 -1
- package/build/updates/0.1-0.2/connection.mjs +36 -36
- package/build/updates/0.1-0.2/connection.mjs.map +1 -1
- package/build/updates/0.1-0.2/credential.mjs +25 -30
- package/build/updates/0.1-0.2/credential.mjs.map +1 -1
- package/build/updates/0.1-0.2/index.d.mts +1 -3
- package/build/updates/0.1-0.2/index.d.mts.map +1 -1
- package/build/updates/0.1-0.2/index.mjs +1 -2
- package/build/updates/0.1-0.2/index.mjs.map +1 -1
- package/build/updates/0.1-0.2/mediation.mjs +12 -16
- package/build/updates/0.1-0.2/mediation.mjs.map +1 -1
- package/build/updates/0.2-0.3/connection.mjs +5 -6
- package/build/updates/0.2-0.3/connection.mjs.map +1 -1
- package/build/updates/0.2-0.3/index.d.mts +1 -3
- package/build/updates/0.2-0.3/index.d.mts.map +1 -1
- package/build/updates/0.2-0.3/index.mjs +1 -2
- package/build/updates/0.2-0.3/index.mjs.map +1 -1
- package/build/updates/0.2-0.3/proof.mjs +23 -28
- package/build/updates/0.2-0.3/proof.mjs.map +1 -1
- package/build/updates/0.4-0.5/credentialExchangeRecord.mjs +24 -25
- package/build/updates/0.4-0.5/credentialExchangeRecord.mjs.map +1 -1
- package/build/updates/0.4-0.5/index.d.mts +1 -3
- package/build/updates/0.4-0.5/index.d.mts.map +1 -1
- package/build/updates/0.4-0.5/index.mjs +1 -2
- package/build/updates/0.4-0.5/index.mjs.map +1 -1
- package/build/updates/0.4-0.5/proofExchangeRecord.mjs +18 -19
- package/build/updates/0.4-0.5/proofExchangeRecord.mjs.map +1 -1
- package/build/util/JWE.d.mts +1 -3
- package/build/util/JWE.d.mts.map +1 -1
- package/build/util/JWE.mjs +1 -1
- package/build/util/JWE.mjs.map +1 -1
- package/build/util/messageType.d.mts +8 -14
- package/build/util/messageType.d.mts.map +1 -1
- package/build/util/messageType.mjs +2 -3
- package/build/util/messageType.mjs.map +1 -1
- package/build/util/parseInvitation.d.mts +4 -6
- package/build/util/parseInvitation.d.mts.map +1 -1
- package/build/util/parseInvitation.mjs +20 -21
- package/build/util/parseInvitation.mjs.map +1 -1
- package/build/util/thread.mjs +1 -1
- package/build/util/thread.mjs.map +1 -1
- package/build/util/transformers.mjs +1 -2
- package/build/util/transformers.mjs.map +1 -1
- package/package.json +3 -5
- package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/classPrivateFieldGet2.mjs +0 -9
- package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/classPrivateFieldInitSpec.mjs +0 -9
- package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/classPrivateFieldSet2.mjs +0 -9
- package/build/envelope/DidCommEnvelope.d.mts +0 -69
- package/build/envelope/DidCommEnvelope.d.mts.map +0 -1
- package/build/envelope/DidCommEnvelopeRegistry.d.mts +0 -72
- package/build/envelope/DidCommEnvelopeRegistry.d.mts.map +0 -1
- package/build/envelope/DidCommEnvelopeRegistry.mjs +0 -84
- package/build/envelope/DidCommEnvelopeRegistry.mjs.map +0 -1
- package/build/envelope/DidCommV1Envelope.d.mts +0 -37
- package/build/envelope/DidCommV1Envelope.d.mts.map +0 -1
- package/build/envelope/DidCommV1Envelope.mjs +0 -48
- package/build/envelope/DidCommV1Envelope.mjs.map +0 -1
- package/build/envelope/DidCommV2Envelope.d.mts +0 -84
- package/build/envelope/DidCommV2Envelope.d.mts.map +0 -1
- package/build/envelope/DidCommV2Envelope.mjs +0 -231
- package/build/envelope/DidCommV2Envelope.mjs.map +0 -1
- package/build/envelope/index.d.mts +0 -4
- package/build/envelope/index.mjs +0 -3
- package/build/messages/common/DidCommEmptyMessage.d.mts +0 -23
- package/build/messages/common/DidCommEmptyMessage.d.mts.map +0 -1
- package/build/messages/common/DidCommEmptyMessage.mjs +0 -40
- package/build/messages/common/DidCommEmptyMessage.mjs.map +0 -1
- package/build/modules/basic-messages/DidCommBasicMessagesModuleConfig.d.mts +0 -27
- package/build/modules/basic-messages/DidCommBasicMessagesModuleConfig.d.mts.map +0 -1
- package/build/modules/basic-messages/DidCommBasicMessagesModuleConfig.mjs +0 -14
- package/build/modules/basic-messages/DidCommBasicMessagesModuleConfig.mjs.map +0 -1
- package/build/modules/basic-messages/protocol/index.d.mts +0 -5
- package/build/modules/basic-messages/protocol/index.mjs +0 -5
- package/build/modules/basic-messages/protocol/v1/handlers/DidCommBasicMessageHandler.mjs.map +0 -1
- package/build/modules/basic-messages/protocol/v1/handlers/index.mjs +0 -1
- package/build/modules/basic-messages/protocol/v1/index.d.mts +0 -2
- package/build/modules/basic-messages/protocol/v1/index.mjs +0 -2
- package/build/modules/basic-messages/protocol/v1/messages/DidCommBasicMessage.d.mts.map +0 -1
- package/build/modules/basic-messages/protocol/v1/messages/DidCommBasicMessage.mjs.map +0 -1
- package/build/modules/basic-messages/protocol/v2/DidCommBasicMessageV2Service.d.mts +0 -32
- package/build/modules/basic-messages/protocol/v2/DidCommBasicMessageV2Service.d.mts.map +0 -1
- package/build/modules/basic-messages/protocol/v2/DidCommBasicMessageV2Service.mjs +0 -81
- package/build/modules/basic-messages/protocol/v2/DidCommBasicMessageV2Service.mjs.map +0 -1
- package/build/modules/basic-messages/protocol/v2/handlers/DidCommBasicMessageV2Handler.mjs +0 -18
- package/build/modules/basic-messages/protocol/v2/handlers/DidCommBasicMessageV2Handler.mjs.map +0 -1
- package/build/modules/basic-messages/protocol/v2/handlers/index.mjs +0 -1
- package/build/modules/basic-messages/protocol/v2/index.d.mts +0 -3
- package/build/modules/basic-messages/protocol/v2/index.mjs +0 -3
- package/build/modules/basic-messages/protocol/v2/messages/DidCommBasicMessageV2.d.mts +0 -41
- package/build/modules/basic-messages/protocol/v2/messages/DidCommBasicMessageV2.d.mts.map +0 -1
- package/build/modules/basic-messages/protocol/v2/messages/DidCommBasicMessageV2.mjs +0 -72
- package/build/modules/basic-messages/protocol/v2/messages/DidCommBasicMessageV2.mjs.map +0 -1
- package/build/modules/basic-messages/protocol/v2/messages/index.d.mts +0 -1
- package/build/modules/basic-messages/protocol/v2/messages/index.mjs +0 -1
- package/build/modules/basic-messages/services/DidCommBaseBasicMessageService.d.mts +0 -23
- package/build/modules/basic-messages/services/DidCommBaseBasicMessageService.d.mts.map +0 -1
- package/build/modules/basic-messages/services/DidCommBaseBasicMessageService.mjs +0 -27
- package/build/modules/basic-messages/services/DidCommBaseBasicMessageService.mjs.map +0 -1
- package/build/modules/connections/handlers/DidCommEmptyMessageHandler.d.mts +0 -21
- package/build/modules/connections/handlers/DidCommEmptyMessageHandler.d.mts.map +0 -1
- package/build/modules/connections/handlers/DidCommEmptyMessageHandler.mjs +0 -22
- package/build/modules/connections/handlers/DidCommEmptyMessageHandler.mjs.map +0 -1
- package/build/modules/connections/repository/DidCommConnectionMetadataTypes.mjs +0 -11
- package/build/modules/connections/repository/DidCommConnectionMetadataTypes.mjs.map +0 -1
- package/build/modules/connections/services/DidCommDidRotateV2Service.d.mts +0 -105
- package/build/modules/connections/services/DidCommDidRotateV2Service.d.mts.map +0 -1
- package/build/modules/connections/services/DidCommDidRotateV2Service.mjs +0 -352
- package/build/modules/connections/services/DidCommDidRotateV2Service.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/DidCommMessagePickupV4Protocol.d.mts +0 -34
- package/build/modules/message-pickup/protocol/v4/DidCommMessagePickupV4Protocol.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/DidCommMessagePickupV4Protocol.mjs +0 -222
- package/build/modules/message-pickup/protocol/v4/DidCommMessagePickupV4Protocol.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/errors/DidCommMessagePickupV4ProblemReportError.mjs +0 -18
- package/build/modules/message-pickup/protocol/v4/errors/DidCommMessagePickupV4ProblemReportError.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/errors/DidCommMessagePickupV4ProblemReportReason.mjs +0 -9
- package/build/modules/message-pickup/protocol/v4/errors/DidCommMessagePickupV4ProblemReportReason.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/errors/index.mjs +0 -2
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommDeliveryRequestV4Handler.d.mts +0 -19
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommDeliveryRequestV4Handler.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommDeliveryRequestV4Handler.mjs +0 -18
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommDeliveryRequestV4Handler.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommLiveDeliveryChangeV4Handler.d.mts +0 -19
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommLiveDeliveryChangeV4Handler.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommLiveDeliveryChangeV4Handler.mjs +0 -18
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommLiveDeliveryChangeV4Handler.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessageDeliveryV4Handler.d.mts +0 -19
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessageDeliveryV4Handler.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessageDeliveryV4Handler.mjs +0 -38
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessageDeliveryV4Handler.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessagePickupV4ProblemReportHandler.d.mts +0 -13
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessagePickupV4ProblemReportHandler.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessagePickupV4ProblemReportHandler.mjs +0 -14
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessagePickupV4ProblemReportHandler.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessagesReceivedV4Handler.d.mts +0 -16
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessagesReceivedV4Handler.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessagesReceivedV4Handler.mjs +0 -18
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommMessagesReceivedV4Handler.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommStatusRequestV4Handler.d.mts +0 -19
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommStatusRequestV4Handler.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommStatusRequestV4Handler.mjs +0 -18
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommStatusRequestV4Handler.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommStatusV4Handler.d.mts +0 -20
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommStatusV4Handler.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommStatusV4Handler.mjs +0 -24
- package/build/modules/message-pickup/protocol/v4/handlers/DidCommStatusV4Handler.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/handlers/index.d.mts +0 -7
- package/build/modules/message-pickup/protocol/v4/handlers/index.mjs +0 -7
- package/build/modules/message-pickup/protocol/v4/index.d.mts +0 -17
- package/build/modules/message-pickup/protocol/v4/index.mjs +0 -17
- package/build/modules/message-pickup/protocol/v4/messages/DidCommDeliveryRequestV4Message.d.mts +0 -23
- package/build/modules/message-pickup/protocol/v4/messages/DidCommDeliveryRequestV4Message.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommDeliveryRequestV4Message.mjs +0 -40
- package/build/modules/message-pickup/protocol/v4/messages/DidCommDeliveryRequestV4Message.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommLiveDeliveryChangeV4Message.d.mts +0 -21
- package/build/modules/message-pickup/protocol/v4/messages/DidCommLiveDeliveryChangeV4Message.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommLiveDeliveryChangeV4Message.mjs +0 -33
- package/build/modules/message-pickup/protocol/v4/messages/DidCommLiveDeliveryChangeV4Message.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessageDeliveryV4Message.d.mts +0 -26
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessageDeliveryV4Message.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessageDeliveryV4Message.mjs +0 -48
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessageDeliveryV4Message.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessagePickupV4ProblemReportMessage.d.mts +0 -18
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessagePickupV4ProblemReportMessage.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessagePickupV4ProblemReportMessage.mjs +0 -33
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessagePickupV4ProblemReportMessage.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessagesReceivedV4Message.d.mts +0 -21
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessagesReceivedV4Message.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessagesReceivedV4Message.mjs +0 -31
- package/build/modules/message-pickup/protocol/v4/messages/DidCommMessagesReceivedV4Message.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommStatusRequestV4Message.d.mts +0 -21
- package/build/modules/message-pickup/protocol/v4/messages/DidCommStatusRequestV4Message.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommStatusRequestV4Message.mjs +0 -34
- package/build/modules/message-pickup/protocol/v4/messages/DidCommStatusRequestV4Message.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommStatusV4Message.d.mts +0 -32
- package/build/modules/message-pickup/protocol/v4/messages/DidCommStatusV4Message.d.mts.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/DidCommStatusV4Message.mjs +0 -67
- package/build/modules/message-pickup/protocol/v4/messages/DidCommStatusV4Message.mjs.map +0 -1
- package/build/modules/message-pickup/protocol/v4/messages/index.d.mts +0 -7
- package/build/modules/message-pickup/protocol/v4/messages/index.mjs +0 -7
- package/build/modules/oob/messages/DidCommOutOfBandInvitationV2.d.mts +0 -48
- package/build/modules/oob/messages/DidCommOutOfBandInvitationV2.d.mts.map +0 -1
- package/build/modules/oob/messages/DidCommOutOfBandInvitationV2.mjs +0 -114
- package/build/modules/oob/messages/DidCommOutOfBandInvitationV2.mjs.map +0 -1
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.mjs +0 -12
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.mjs.map +0 -1
- package/build/modules/routing/error/DidCommRoutingProblemReportReason.mjs +0 -9
- package/build/modules/routing/error/DidCommRoutingProblemReportReason.mjs.map +0 -1
- package/build/modules/routing/protocol/index.d.mts +0 -17
- package/build/modules/routing/protocol/index.mjs +0 -17
- package/build/modules/routing/protocol/v1/handlers/DidCommForwardHandler.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/handlers/DidCommKeylistUpdateHandler.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/handlers/DidCommKeylistUpdateResponseHandler.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/handlers/DidCommMediationDenyHandler.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/handlers/DidCommMediationGrantHandler.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/handlers/DidCommMediationRequestHandler.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/index.d.mts +0 -8
- package/build/modules/routing/protocol/v1/index.mjs +0 -8
- package/build/modules/routing/protocol/v1/messages/DidCommForwardMessage.d.mts +0 -32
- package/build/modules/routing/protocol/v1/messages/DidCommForwardMessage.d.mts.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommForwardMessage.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommKeylistMessage.d.mts +0 -27
- package/build/modules/routing/protocol/v1/messages/DidCommKeylistMessage.d.mts.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommKeylistMessage.mjs +0 -37
- package/build/modules/routing/protocol/v1/messages/DidCommKeylistMessage.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommKeylistUpdateMessage.d.mts +0 -38
- package/build/modules/routing/protocol/v1/messages/DidCommKeylistUpdateMessage.d.mts.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommKeylistUpdateMessage.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommKeylistUpdateResponseMessage.d.mts.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommKeylistUpdateResponseMessage.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommMediationDenyMessage.d.mts +0 -23
- package/build/modules/routing/protocol/v1/messages/DidCommMediationDenyMessage.d.mts.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommMediationDenyMessage.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommMediationGrantMessage.d.mts +0 -29
- package/build/modules/routing/protocol/v1/messages/DidCommMediationGrantMessage.d.mts.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommMediationGrantMessage.mjs.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommMediationRequestMessage.d.mts.map +0 -1
- package/build/modules/routing/protocol/v1/messages/DidCommMediationRequestMessage.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/handlers/DidCommKeylistQueryV2Handler.mjs +0 -23
- package/build/modules/routing/protocol/v2/handlers/DidCommKeylistQueryV2Handler.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/handlers/DidCommKeylistUpdateResponseV2Handler.mjs +0 -18
- package/build/modules/routing/protocol/v2/handlers/DidCommKeylistUpdateResponseV2Handler.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/handlers/DidCommKeylistUpdateV2Handler.mjs +0 -23
- package/build/modules/routing/protocol/v2/handlers/DidCommKeylistUpdateV2Handler.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/handlers/DidCommKeylistV2Handler.mjs +0 -18
- package/build/modules/routing/protocol/v2/handlers/DidCommKeylistV2Handler.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/handlers/DidCommMediationDenyV2Handler.mjs +0 -18
- package/build/modules/routing/protocol/v2/handlers/DidCommMediationDenyV2Handler.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/handlers/DidCommMediationGrantV2Handler.mjs +0 -18
- package/build/modules/routing/protocol/v2/handlers/DidCommMediationGrantV2Handler.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/handlers/DidCommMediationRequestV2Handler.mjs +0 -28
- package/build/modules/routing/protocol/v2/handlers/DidCommMediationRequestV2Handler.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/handlers/index.mjs +0 -7
- package/build/modules/routing/protocol/v2/index.d.mts +0 -9
- package/build/modules/routing/protocol/v2/index.mjs +0 -9
- package/build/modules/routing/protocol/v2/messages/DidCommForwardV2Message.d.mts +0 -60
- package/build/modules/routing/protocol/v2/messages/DidCommForwardV2Message.d.mts.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommForwardV2Message.mjs +0 -70
- package/build/modules/routing/protocol/v2/messages/DidCommForwardV2Message.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistQueryV2Message.d.mts +0 -35
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistQueryV2Message.d.mts.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistQueryV2Message.mjs +0 -50
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistQueryV2Message.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistUpdateResponseV2Message.d.mts +0 -45
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistUpdateResponseV2Message.d.mts.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistUpdateResponseV2Message.mjs +0 -64
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistUpdateResponseV2Message.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistUpdateV2Message.d.mts +0 -39
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistUpdateV2Message.d.mts.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistUpdateV2Message.mjs +0 -60
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistUpdateV2Message.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistV2Message.d.mts +0 -47
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistV2Message.d.mts.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistV2Message.mjs +0 -68
- package/build/modules/routing/protocol/v2/messages/DidCommKeylistV2Message.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommMediateDenyV2Message.d.mts +0 -25
- package/build/modules/routing/protocol/v2/messages/DidCommMediateDenyV2Message.d.mts.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommMediateDenyV2Message.mjs +0 -29
- package/build/modules/routing/protocol/v2/messages/DidCommMediateDenyV2Message.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommMediateGrantV2Message.d.mts +0 -27
- package/build/modules/routing/protocol/v2/messages/DidCommMediateGrantV2Message.d.mts.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommMediateGrantV2Message.mjs +0 -38
- package/build/modules/routing/protocol/v2/messages/DidCommMediateGrantV2Message.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommMediateRequestV2Message.d.mts +0 -24
- package/build/modules/routing/protocol/v2/messages/DidCommMediateRequestV2Message.d.mts.map +0 -1
- package/build/modules/routing/protocol/v2/messages/DidCommMediateRequestV2Message.mjs +0 -28
- package/build/modules/routing/protocol/v2/messages/DidCommMediateRequestV2Message.mjs.map +0 -1
- package/build/modules/routing/protocol/v2/messages/index.d.mts +0 -8
- package/build/modules/routing/protocol/v2/messages/index.mjs +0 -8
- package/build/util/didcommVersion.d.mts +0 -35
- package/build/util/didcommVersion.d.mts.map +0 -1
- package/build/util/didcommVersion.mjs +0 -71
- package/build/util/didcommVersion.mjs.map +0 -1
- package/build/v2/DidCommV2EnvelopeService.d.mts +0 -87
- package/build/v2/DidCommV2EnvelopeService.d.mts.map +0 -1
- package/build/v2/DidCommV2EnvelopeService.mjs +0 -345
- package/build/v2/DidCommV2EnvelopeService.mjs.map +0 -1
- package/build/v2/apuApv.mjs +0 -14
- package/build/v2/apuApv.mjs.map +0 -1
- package/build/v2/index.d.mts +0 -5
- package/build/v2/index.mjs +0 -5
- package/build/v2/normalize.d.mts +0 -16
- package/build/v2/normalize.d.mts.map +0 -1
- package/build/v2/normalize.mjs +0 -53
- package/build/v2/normalize.mjs.map +0 -1
- package/build/v2/plaintextBuilder.d.mts +0 -22
- package/build/v2/plaintextBuilder.d.mts.map +0 -1
- package/build/v2/plaintextBuilder.mjs +0 -86
- package/build/v2/plaintextBuilder.mjs.map +0 -1
- package/build/v2/resolveV2Keys.d.mts +0 -61
- package/build/v2/resolveV2Keys.d.mts.map +0 -1
- package/build/v2/resolveV2Keys.mjs +0 -237
- package/build/v2/resolveV2Keys.mjs.map +0 -1
- package/build/v2/types.d.mts +0 -89
- package/build/v2/types.d.mts.map +0 -1
- package/build/v2/types.mjs +0 -29
- package/build/v2/types.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -30,8 +30,6 @@
|
|
|
30
30
|
|
|
31
31
|
Base DIDComm package for [Credo](https://github.com/openwallet-foundation/credo-ts.git). Adds all [DIDComm v1](https://hyperledger.github.io/aries-rfcs/latest/concepts/0005-didcomm/) Core protocols, such as Connections, Out-of-Band, Discover Features, Mediation Coordination, Message Pickup, Proofs and Credentials as defined in [Aries RFCs](https://github.com/hyperledger/aries-rfcs/tree/main/features).
|
|
32
32
|
|
|
33
|
-
DIDComm v1 is the default. [DIDComm v2](https://identity.foundation/didcomm-messaging/spec/v2.0/) support is **opt-in** and experimental. See [DIDComm v2 Usage](../../docs/DIDCOMM-V2-USAGE.md) for how to enable it.
|
|
34
|
-
|
|
35
33
|
### Quick start
|
|
36
34
|
|
|
37
35
|
In order for this module to work, we have to inject it into the agent to access agent functionality. See the example for more information.
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { ParsedMessageType } from "./util/messageType.mjs";
|
|
2
2
|
import { Constructor } from "@credo-ts/core";
|
|
3
|
-
|
|
4
3
|
//#region src/BaseDidCommMessage.d.ts
|
|
5
|
-
declare class BaseDidCommMessage {
|
|
4
|
+
export declare class BaseDidCommMessage {
|
|
6
5
|
id: string;
|
|
7
6
|
readonly type: string;
|
|
8
7
|
static readonly type: ParsedMessageType;
|
|
9
|
-
/** Sender DID (DIDComm v2 plaintext). Set when normalized from v2 envelope. */
|
|
10
|
-
from?: string;
|
|
11
|
-
/** Recipient DID(s) (DIDComm v2 plaintext). Set when normalized from v2 envelope. */
|
|
12
|
-
to?: string | string[];
|
|
13
8
|
generateId(): string;
|
|
14
9
|
}
|
|
15
10
|
//#endregion
|
|
16
|
-
export { BaseDidCommMessage };
|
|
17
11
|
//# sourceMappingURL=BaseDidCommMessage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseDidCommMessage.d.mts","names":[],"sources":["../src/BaseDidCommMessage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseDidCommMessage.d.mts","names":[],"sources":["../src/BaseDidCommMessage.ts"],"mappings":";;;qBAWa;EAGJ;WAIS;kBACO,MAAM;EAEtB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import __decorate from "./_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorate.mjs";
|
|
2
|
+
import __decorateMetadata from "./_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateMetadata.mjs";
|
|
3
3
|
import { utils } from "@credo-ts/core";
|
|
4
4
|
import { Matches } from "class-validator";
|
|
5
5
|
import { Expose } from "class-transformer";
|
|
6
|
-
|
|
7
6
|
//#region src/BaseDidCommMessage.ts
|
|
8
7
|
const MessageIdRegExp = /[-_./a-zA-Z0-9]{8,64}/;
|
|
9
8
|
const MessageTypeRegExp = /(.*?)([a-zA-Z0-9._-]+)\/(\d[^/]*)\/([a-zA-Z0-9._-]+)$/;
|
|
@@ -22,9 +21,7 @@ __decorate([
|
|
|
22
21
|
Matches(MessageTypeRegExp),
|
|
23
22
|
__decorateMetadata("design:type", String)
|
|
24
23
|
], BaseDidCommMessage.prototype, "type", void 0);
|
|
25
|
-
__decorate([Expose(), __decorateMetadata("design:type", String)], BaseDidCommMessage.prototype, "from", void 0);
|
|
26
|
-
__decorate([Expose(), __decorateMetadata("design:type", Object)], BaseDidCommMessage.prototype, "to", void 0);
|
|
27
|
-
|
|
28
24
|
//#endregion
|
|
29
25
|
export { BaseDidCommMessage, MessageIdRegExp, MessageTypeRegExp };
|
|
26
|
+
|
|
30
27
|
//# sourceMappingURL=BaseDidCommMessage.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseDidCommMessage.mjs","names":[],"sources":["../src/BaseDidCommMessage.ts"],"sourcesContent":["import type { Constructor } from '@credo-ts/core'\nimport { utils } from '@credo-ts/core'\nimport { Expose } from 'class-transformer'\nimport { Matches } from 'class-validator'\nimport type { ParsedMessageType } from './util/messageType'\n\nexport const MessageIdRegExp = /[-_./a-zA-Z0-9]{8,64}/\nexport const MessageTypeRegExp = /(.*?)([a-zA-Z0-9._-]+)\\/(\\d[^/]*)\\/([a-zA-Z0-9._-]+)$/\n\nexport type BaseMessageConstructor = Constructor<BaseDidCommMessage>\n\nexport class BaseDidCommMessage {\n @Matches(MessageIdRegExp)\n @Expose({ name: '@id' })\n public id!: string\n\n @Expose({ name: '@type' })\n @Matches(MessageTypeRegExp)\n public readonly type!: string\n public static readonly type: ParsedMessageType\n\n
|
|
1
|
+
{"version":3,"file":"BaseDidCommMessage.mjs","names":[],"sources":["../src/BaseDidCommMessage.ts"],"sourcesContent":["import type { Constructor } from '@credo-ts/core'\nimport { utils } from '@credo-ts/core'\nimport { Expose } from 'class-transformer'\nimport { Matches } from 'class-validator'\nimport type { ParsedMessageType } from './util/messageType'\n\nexport const MessageIdRegExp = /[-_./a-zA-Z0-9]{8,64}/\nexport const MessageTypeRegExp = /(.*?)([a-zA-Z0-9._-]+)\\/(\\d[^/]*)\\/([a-zA-Z0-9._-]+)$/\n\nexport type BaseMessageConstructor = Constructor<BaseDidCommMessage>\n\nexport class BaseDidCommMessage {\n @Matches(MessageIdRegExp)\n @Expose({ name: '@id' })\n public id!: string\n\n @Expose({ name: '@type' })\n @Matches(MessageTypeRegExp)\n public readonly type!: string\n public static readonly type: ParsedMessageType\n\n public generateId() {\n return utils.uuid()\n }\n}\n"],"mappings":";;;;;;AAMA,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;AAIjC,IAAa,qBAAb,MAAgC;CAU9B,aAAoB;EAClB,OAAO,MAAM,KAAK;CACpB;AACF;;CAZG,QAAQ,eAAe;CACvB,OAAO,EAAE,MAAM,MAAM,CAAC;;;;CAGtB,OAAO,EAAE,MAAM,QAAQ,CAAC;CACxB,QAAQ,iBAAiB"}
|
package/build/DidCommApi.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DidCommMessageHandler } from "./handlers/DidCommMessageHandler.mjs";
|
|
2
2
|
import { DidCommMessageHandlerMiddleware } from "./handlers/DidCommMessageHandlerMiddleware.mjs";
|
|
3
|
-
import
|
|
3
|
+
import "./handlers/index.mjs";
|
|
4
4
|
import { DidCommBasicMessagesApi } from "./modules/basic-messages/DidCommBasicMessagesApi.mjs";
|
|
5
|
+
import { DidCommMessageHandlerRegistry } from "./DidCommMessageHandlerRegistry.mjs";
|
|
5
6
|
import { DidCommCredentialProtocol } from "./modules/credentials/protocol/DidCommCredentialProtocol.mjs";
|
|
6
7
|
import { DidCommCredentialsModuleConfigOptions } from "./modules/credentials/DidCommCredentialsModuleConfig.mjs";
|
|
7
8
|
import { DidCommCredentialsApi } from "./modules/credentials/DidCommCredentialsApi.mjs";
|
|
8
|
-
import "./handlers/index.mjs";
|
|
9
9
|
import { DefaultDidCommCredentialProtocols } from "./modules/credentials/DidCommCredentialsModule.mjs";
|
|
10
10
|
import { DidCommDiscoverFeaturesApi } from "./modules/discover-features/DidCommDiscoverFeaturesApi.mjs";
|
|
11
11
|
import { DidCommMessagePickupProtocol } from "./modules/message-pickup/protocol/DidCommMessagePickupProtocol.mjs";
|
|
@@ -32,10 +32,9 @@ import { DidCommFeatureRegistry } from "./DidCommFeatureRegistry.mjs";
|
|
|
32
32
|
import { DidCommDiscoverFeaturesService } from "./modules/discover-features/services/DidCommDiscoverFeaturesService.mjs";
|
|
33
33
|
import "./modules/discover-features/services/index.mjs";
|
|
34
34
|
import { AgentContext } from "@credo-ts/core";
|
|
35
|
-
|
|
36
35
|
//#region src/DidCommApi.d.ts
|
|
37
36
|
type ApiOrUndefined<Config, Api> = Config extends false ? never : Api;
|
|
38
|
-
declare class DidCommApi<Options extends DidCommModuleConfigOptions> {
|
|
37
|
+
export declare class DidCommApi<Options extends DidCommModuleConfigOptions> {
|
|
39
38
|
agentContext: AgentContext;
|
|
40
39
|
private messageHandlerRegistry;
|
|
41
40
|
private featureRegistry;
|
|
@@ -72,5 +71,4 @@ declare class DidCommApi<Options extends DidCommModuleConfigOptions> {
|
|
|
72
71
|
private apiOrUndefined;
|
|
73
72
|
}
|
|
74
73
|
//#endregion
|
|
75
|
-
export { DidCommApi };
|
|
76
74
|
//# sourceMappingURL=DidCommApi.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommApi.d.mts","names":[],"sources":["../src/DidCommApi.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DidCommApi.d.mts","names":[],"sources":["../src/DidCommApi.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BK,eAAe,QAAQ,OAAO,+BAA+B;qBAGrD,WAAW,gBAAgB;EA6C7B,cAAc;UACb;UACA;EACD,QAAQ;EA/CV,aAAW;EACX,KAAG;EACH,WAAS,2BADN;EAEH,QAAQ,eACb,mBACA,iBACE,0BAA0B,iCAAiC,0BACvD,sCACA;EAID,aAAa,eAClB,wBACA,sBACE,+BAA+B,sCAAsC,+BACjE,gDACA;EAID,eAAe,eACpB,0BACA,wBACE,iCAAiC,wCAAwC,kCACrE,wCACA;EAID,eAAe,eAAe,0BAA0B;EAKxD,UAAU,eAAe,qBAAqB;EAK9C,oBAAoB,eAAe,+BAA+B;EAIhE,YAAA,cAAc,cACb,wBAAwB,+BACxB,iBAAiB,wBAClB,QAAQ;EAGV,yBAAyB,kBAAkB;EAIrC,2BAA2B,kBAAkB,0BAAuB;MAKtE,qBAAiB;EAIrB,0BAA0B,mBAAmB;EAIvC,4BAA4B,mBAAmB,2BAAwB;MAMzE,sBAAkB;;;;EAOtB,wBAAwB,iBAAiB;EAMzC,iCAAiC,0BAA0B;MAIvD,4BAAsB,gBAJiC,iCAIjC,QAAA;MAItB,6BAAyB;;;;;EAQ7B,0BAA0B,wBAAwB;MAI9C,YAAQ;UAIX"}
|
package/build/DidCommApi.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import __decorate from "./_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorate.mjs";
|
|
2
2
|
import { DidCommFeatureRegistry } from "./DidCommFeatureRegistry.mjs";
|
|
3
3
|
import { DidCommMessageHandlerRegistry } from "./DidCommMessageHandlerRegistry.mjs";
|
|
4
|
-
import
|
|
4
|
+
import __decorateMetadata from "./_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateMetadata.mjs";
|
|
5
5
|
import { DidCommModuleConfig } from "./DidCommModuleConfig.mjs";
|
|
6
|
-
import { DidCommBasicMessagesApi } from "./modules/basic-messages/DidCommBasicMessagesApi.mjs";
|
|
7
6
|
import { DidCommConnectionsApi } from "./modules/connections/DidCommConnectionsApi.mjs";
|
|
7
|
+
import { DidCommBasicMessagesApi } from "./modules/basic-messages/DidCommBasicMessagesApi.mjs";
|
|
8
8
|
import { DidCommOutOfBandApi } from "./modules/oob/DidCommOutOfBandApi.mjs";
|
|
9
9
|
import { DidCommDiscoverFeaturesApi } from "./modules/discover-features/DidCommDiscoverFeaturesApi.mjs";
|
|
10
10
|
import { DidCommMessagePickupApi } from "./modules/message-pickup/DidCommMessagePickupApi.mjs";
|
|
@@ -14,9 +14,7 @@ import { DidCommCredentialsApi } from "./modules/credentials/DidCommCredentialsA
|
|
|
14
14
|
import { DidCommProofsApi } from "./modules/proofs/DidCommProofsApi.mjs";
|
|
15
15
|
import "./modules/index.mjs";
|
|
16
16
|
import { AgentContext, injectable } from "@credo-ts/core";
|
|
17
|
-
|
|
18
17
|
//#region src/DidCommApi.ts
|
|
19
|
-
var _ref, _ref2, _ref3, _ref4;
|
|
20
18
|
let DidCommApi = class DidCommApi {
|
|
21
19
|
constructor(agentContext, messageHandlerRegistry, featureRegistry, config) {
|
|
22
20
|
this.agentContext = agentContext;
|
|
@@ -82,12 +80,12 @@ let DidCommApi = class DidCommApi {
|
|
|
82
80
|
}
|
|
83
81
|
};
|
|
84
82
|
DidCommApi = __decorate([injectable(), __decorateMetadata("design:paramtypes", [
|
|
85
|
-
typeof
|
|
86
|
-
typeof
|
|
87
|
-
typeof
|
|
88
|
-
typeof
|
|
83
|
+
typeof AgentContext === "undefined" ? Object : AgentContext,
|
|
84
|
+
typeof DidCommMessageHandlerRegistry === "undefined" ? Object : DidCommMessageHandlerRegistry,
|
|
85
|
+
typeof DidCommFeatureRegistry === "undefined" ? Object : DidCommFeatureRegistry,
|
|
86
|
+
typeof DidCommModuleConfig === "undefined" ? Object : DidCommModuleConfig
|
|
89
87
|
])], DidCommApi);
|
|
90
|
-
|
|
91
88
|
//#endregion
|
|
92
89
|
export { DidCommApi };
|
|
90
|
+
|
|
93
91
|
//# sourceMappingURL=DidCommApi.mjs.map
|
package/build/DidCommApi.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommApi.mjs","names":[],"sources":["../src/DidCommApi.ts"],"sourcesContent":["import { AgentContext, type InjectionToken, injectable } from '@credo-ts/core'\nimport { DidCommFeatureRegistry } from './DidCommFeatureRegistry'\nimport { DidCommMessageHandlerRegistry } from './DidCommMessageHandlerRegistry'\nimport { DidCommModuleConfig, type DidCommModuleConfigOptions } from './DidCommModuleConfig'\nimport type { DidCommMessageHandler, DidCommMessageHandlerMiddleware } from './handlers'\nimport {\n type DefaultDidCommMessagePickupProtocols,\n type DefaultDidCommProofProtocols,\n DidCommBasicMessagesApi,\n DidCommConnectionsApi,\n type DidCommCredentialProtocol,\n DidCommDiscoverFeaturesApi,\n DidCommMessagePickupApi,\n type DidCommMessagePickupModuleConfigOptions,\n type DidCommMessagePickupProtocol,\n DidCommOutOfBandApi,\n type DidCommProofProtocol,\n DidCommProofsApi,\n type DidCommProofsModuleConfigOptions,\n} from './modules'\nimport { DidCommCredentialsApi } from './modules/credentials/DidCommCredentialsApi'\nimport type { DefaultDidCommCredentialProtocols } from './modules/credentials/DidCommCredentialsModule'\nimport type { DidCommCredentialsModuleConfigOptions } from './modules/credentials/DidCommCredentialsModuleConfig'\nimport { DidCommMediationRecipientApi } from './modules/routing/DidCommMediationRecipientApi'\nimport { DidCommMediatorApi } from './modules/routing/DidCommMediatorApi'\nimport type { DidCommInboundTransport, DidCommOutboundTransport } from './transport'\n\ntype ApiOrUndefined<Config, Api> = Config extends false ? never : Api\n\n@injectable()\nexport class DidCommApi<Options extends DidCommModuleConfigOptions> {\n public connections = this.agentContext.resolve(DidCommConnectionsApi)\n public oob = this.agentContext.resolve(DidCommOutOfBandApi)\n public discovery = this.agentContext.resolve(DidCommDiscoverFeaturesApi)\n public proofs: ApiOrUndefined<\n Options['proofs'],\n DidCommProofsApi<\n Options['proofs'] extends DidCommProofsModuleConfigOptions<DidCommProofProtocol[]>\n ? Options['proofs']['proofProtocols']\n : DefaultDidCommProofProtocols\n >\n > = this.apiOrUndefined(this.config.enabledModules.proofs, DidCommProofsApi)\n\n public credentials: ApiOrUndefined<\n Options['credentials'],\n DidCommCredentialsApi<\n Options['credentials'] extends DidCommCredentialsModuleConfigOptions<DidCommCredentialProtocol[]>\n ? Options['credentials']['credentialProtocols']\n : DefaultDidCommCredentialProtocols\n >\n > = this.apiOrUndefined(this.config.enabledModules.credentials, DidCommCredentialsApi)\n\n public messagePickup: ApiOrUndefined<\n Options['messagePickup'],\n DidCommMessagePickupApi<\n Options['messagePickup'] extends DidCommMessagePickupModuleConfigOptions<DidCommMessagePickupProtocol[]>\n ? Options['messagePickup']['protocols']\n : DefaultDidCommMessagePickupProtocols\n >\n > = this.apiOrUndefined(this.config.enabledModules.messagePickup, DidCommMessagePickupApi)\n\n public basicMessages: ApiOrUndefined<Options['basicMessages'], DidCommBasicMessagesApi> = this.apiOrUndefined(\n this.config.enabledModules.basicMessages,\n DidCommBasicMessagesApi\n )\n\n public mediator: ApiOrUndefined<Options['mediator'], DidCommMediatorApi> = this.apiOrUndefined(\n this.config.enabledModules.mediator,\n DidCommMediatorApi\n )\n\n public mediationRecipient: ApiOrUndefined<Options['mediationRecipient'], DidCommMediationRecipientApi> =\n this.apiOrUndefined(this.config.enabledModules.mediationRecipient, DidCommMediationRecipientApi)\n\n public constructor(\n public agentContext: AgentContext,\n private messageHandlerRegistry: DidCommMessageHandlerRegistry,\n private featureRegistry: DidCommFeatureRegistry,\n public config: DidCommModuleConfig\n ) {}\n\n public registerInboundTransport(inboundTransport: DidCommInboundTransport) {\n this.config.inboundTransports.push(inboundTransport)\n }\n\n public async unregisterInboundTransport(inboundTransport: DidCommInboundTransport) {\n this.config.inboundTransports = this.config.inboundTransports.filter((transport) => transport !== inboundTransport)\n await inboundTransport.stop()\n }\n\n public get inboundTransports() {\n return this.config.inboundTransports\n }\n\n public registerOutboundTransport(outboundTransport: DidCommOutboundTransport) {\n this.config.outboundTransports.push(outboundTransport)\n }\n\n public async unregisterOutboundTransport(outboundTransport: DidCommOutboundTransport) {\n this.config.outboundTransports = this.config.outboundTransports.filter(\n (transport) => transport !== outboundTransport\n )\n }\n\n public get outboundTransports() {\n return this.config.outboundTransports\n }\n\n /**\n * Agent's feature registry\n */\n public registerMessageHandlers(messageHandlers: DidCommMessageHandler[]) {\n for (const messageHandler of messageHandlers) {\n this.messageHandlerRegistry.registerMessageHandler(messageHandler)\n }\n }\n\n public registerMessageHandlerMiddleware(messageHandlerMiddleware: DidCommMessageHandlerMiddleware) {\n this.messageHandlerRegistry.registerMessageHandlerMiddleware(messageHandlerMiddleware)\n }\n\n public get fallbackMessageHandler() {\n return this.messageHandlerRegistry.fallbackMessageHandler\n }\n\n public get messageHandlerMiddlewares() {\n return this.messageHandlerRegistry.messageHandlerMiddlewares\n }\n\n /**\n * Sets the fallback message handler, the message handler that will be called if no handler\n * is registered for an incoming message type.\n */\n public setFallbackMessageHandler(fallbackMessageHandler: DidCommMessageHandler['handle']) {\n this.messageHandlerRegistry.setFallbackMessageHandler(fallbackMessageHandler)\n }\n\n public get features() {\n return this.featureRegistry\n }\n\n private apiOrUndefined(isEnabled: boolean, apiClass: InjectionToken) {\n if (isEnabled) {\n return this.agentContext.resolve(apiClass)\n }\n\n return undefined\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DidCommApi.mjs","names":[],"sources":["../src/DidCommApi.ts"],"sourcesContent":["import { AgentContext, type InjectionToken, injectable } from '@credo-ts/core'\nimport { DidCommFeatureRegistry } from './DidCommFeatureRegistry'\nimport { DidCommMessageHandlerRegistry } from './DidCommMessageHandlerRegistry'\nimport { DidCommModuleConfig, type DidCommModuleConfigOptions } from './DidCommModuleConfig'\nimport type { DidCommMessageHandler, DidCommMessageHandlerMiddleware } from './handlers'\nimport {\n type DefaultDidCommMessagePickupProtocols,\n type DefaultDidCommProofProtocols,\n DidCommBasicMessagesApi,\n DidCommConnectionsApi,\n type DidCommCredentialProtocol,\n DidCommDiscoverFeaturesApi,\n DidCommMessagePickupApi,\n type DidCommMessagePickupModuleConfigOptions,\n type DidCommMessagePickupProtocol,\n DidCommOutOfBandApi,\n type DidCommProofProtocol,\n DidCommProofsApi,\n type DidCommProofsModuleConfigOptions,\n} from './modules'\nimport { DidCommCredentialsApi } from './modules/credentials/DidCommCredentialsApi'\nimport type { DefaultDidCommCredentialProtocols } from './modules/credentials/DidCommCredentialsModule'\nimport type { DidCommCredentialsModuleConfigOptions } from './modules/credentials/DidCommCredentialsModuleConfig'\nimport { DidCommMediationRecipientApi } from './modules/routing/DidCommMediationRecipientApi'\nimport { DidCommMediatorApi } from './modules/routing/DidCommMediatorApi'\nimport type { DidCommInboundTransport, DidCommOutboundTransport } from './transport'\n\ntype ApiOrUndefined<Config, Api> = Config extends false ? never : Api\n\n@injectable()\nexport class DidCommApi<Options extends DidCommModuleConfigOptions> {\n public connections = this.agentContext.resolve(DidCommConnectionsApi)\n public oob = this.agentContext.resolve(DidCommOutOfBandApi)\n public discovery = this.agentContext.resolve(DidCommDiscoverFeaturesApi)\n public proofs: ApiOrUndefined<\n Options['proofs'],\n DidCommProofsApi<\n Options['proofs'] extends DidCommProofsModuleConfigOptions<DidCommProofProtocol[]>\n ? Options['proofs']['proofProtocols']\n : DefaultDidCommProofProtocols\n >\n > = this.apiOrUndefined(this.config.enabledModules.proofs, DidCommProofsApi)\n\n public credentials: ApiOrUndefined<\n Options['credentials'],\n DidCommCredentialsApi<\n Options['credentials'] extends DidCommCredentialsModuleConfigOptions<DidCommCredentialProtocol[]>\n ? Options['credentials']['credentialProtocols']\n : DefaultDidCommCredentialProtocols\n >\n > = this.apiOrUndefined(this.config.enabledModules.credentials, DidCommCredentialsApi)\n\n public messagePickup: ApiOrUndefined<\n Options['messagePickup'],\n DidCommMessagePickupApi<\n Options['messagePickup'] extends DidCommMessagePickupModuleConfigOptions<DidCommMessagePickupProtocol[]>\n ? Options['messagePickup']['protocols']\n : DefaultDidCommMessagePickupProtocols\n >\n > = this.apiOrUndefined(this.config.enabledModules.messagePickup, DidCommMessagePickupApi)\n\n public basicMessages: ApiOrUndefined<Options['basicMessages'], DidCommBasicMessagesApi> = this.apiOrUndefined(\n this.config.enabledModules.basicMessages,\n DidCommBasicMessagesApi\n )\n\n public mediator: ApiOrUndefined<Options['mediator'], DidCommMediatorApi> = this.apiOrUndefined(\n this.config.enabledModules.mediator,\n DidCommMediatorApi\n )\n\n public mediationRecipient: ApiOrUndefined<Options['mediationRecipient'], DidCommMediationRecipientApi> =\n this.apiOrUndefined(this.config.enabledModules.mediationRecipient, DidCommMediationRecipientApi)\n\n public constructor(\n public agentContext: AgentContext,\n private messageHandlerRegistry: DidCommMessageHandlerRegistry,\n private featureRegistry: DidCommFeatureRegistry,\n public config: DidCommModuleConfig\n ) {}\n\n public registerInboundTransport(inboundTransport: DidCommInboundTransport) {\n this.config.inboundTransports.push(inboundTransport)\n }\n\n public async unregisterInboundTransport(inboundTransport: DidCommInboundTransport) {\n this.config.inboundTransports = this.config.inboundTransports.filter((transport) => transport !== inboundTransport)\n await inboundTransport.stop()\n }\n\n public get inboundTransports() {\n return this.config.inboundTransports\n }\n\n public registerOutboundTransport(outboundTransport: DidCommOutboundTransport) {\n this.config.outboundTransports.push(outboundTransport)\n }\n\n public async unregisterOutboundTransport(outboundTransport: DidCommOutboundTransport) {\n this.config.outboundTransports = this.config.outboundTransports.filter(\n (transport) => transport !== outboundTransport\n )\n }\n\n public get outboundTransports() {\n return this.config.outboundTransports\n }\n\n /**\n * Agent's feature registry\n */\n public registerMessageHandlers(messageHandlers: DidCommMessageHandler[]) {\n for (const messageHandler of messageHandlers) {\n this.messageHandlerRegistry.registerMessageHandler(messageHandler)\n }\n }\n\n public registerMessageHandlerMiddleware(messageHandlerMiddleware: DidCommMessageHandlerMiddleware) {\n this.messageHandlerRegistry.registerMessageHandlerMiddleware(messageHandlerMiddleware)\n }\n\n public get fallbackMessageHandler() {\n return this.messageHandlerRegistry.fallbackMessageHandler\n }\n\n public get messageHandlerMiddlewares() {\n return this.messageHandlerRegistry.messageHandlerMiddlewares\n }\n\n /**\n * Sets the fallback message handler, the message handler that will be called if no handler\n * is registered for an incoming message type.\n */\n public setFallbackMessageHandler(fallbackMessageHandler: DidCommMessageHandler['handle']) {\n this.messageHandlerRegistry.setFallbackMessageHandler(fallbackMessageHandler)\n }\n\n public get features() {\n return this.featureRegistry\n }\n\n private apiOrUndefined(isEnabled: boolean, apiClass: InjectionToken) {\n if (isEnabled) {\n return this.agentContext.resolve(apiClass)\n }\n\n return undefined\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA8BO,IAAM,aAAN,MAAM,WAAuD;CA4ClE,YACE,cACA,wBACA,iBACA,QACA;EAJO,KAAA,eAAA;EACC,KAAA,yBAAA;EACA,KAAA,kBAAA;EACD,KAAA,SAAA;EA/CT,KAAO,cAAc,KAAK,aAAa,QAAQ,qBAAqB;EACpE,KAAO,MAAM,KAAK,aAAa,QAAQ,mBAAmB;EAC1D,KAAO,YAAY,KAAK,aAAa,QAAQ,0BAA0B;EACvE,KAAO,SAOH,KAAK,eAAe,KAAK,OAAO,eAAe,QAAQ,gBAAgB;EAE3E,KAAO,cAOH,KAAK,eAAe,KAAK,OAAO,eAAe,aAAa,qBAAqB;EAErF,KAAO,gBAOH,KAAK,eAAe,KAAK,OAAO,eAAe,eAAe,uBAAuB;EAEzF,KAAO,gBAAmF,KAAK,eAC7F,KAAK,OAAO,eAAe,eAC3B,uBACF;EAEA,KAAO,WAAoE,KAAK,eAC9E,KAAK,OAAO,eAAe,UAC3B,kBACF;EAEA,KAAO,qBACL,KAAK,eAAe,KAAK,OAAO,eAAe,oBAAoB,4BAA4B;CAO9F;CAEH,yBAAgC,kBAA2C;EACzE,KAAK,OAAO,kBAAkB,KAAK,gBAAgB;CACrD;CAEA,MAAa,2BAA2B,kBAA2C;EACjF,KAAK,OAAO,oBAAoB,KAAK,OAAO,kBAAkB,QAAQ,cAAc,cAAc,gBAAgB;EAClH,MAAM,iBAAiB,KAAK;CAC9B;CAEA,IAAW,oBAAoB;EAC7B,OAAO,KAAK,OAAO;CACrB;CAEA,0BAAiC,mBAA6C;EAC5E,KAAK,OAAO,mBAAmB,KAAK,iBAAiB;CACvD;CAEA,MAAa,4BAA4B,mBAA6C;EACpF,KAAK,OAAO,qBAAqB,KAAK,OAAO,mBAAmB,QAC7D,cAAc,cAAc,iBAC/B;CACF;CAEA,IAAW,qBAAqB;EAC9B,OAAO,KAAK,OAAO;CACrB;;;;CAKA,wBAA+B,iBAA0C;EACvE,KAAK,MAAM,kBAAkB,iBAC3B,KAAK,uBAAuB,uBAAuB,cAAc;CAErE;CAEA,iCAAwC,0BAA2D;EACjG,KAAK,uBAAuB,iCAAiC,wBAAwB;CACvF;CAEA,IAAW,yBAAyB;EAClC,OAAO,KAAK,uBAAuB;CACrC;CAEA,IAAW,4BAA4B;EACrC,OAAO,KAAK,uBAAuB;CACrC;;;;;CAMA,0BAAiC,wBAAyD;EACxF,KAAK,uBAAuB,0BAA0B,sBAAsB;CAC9E;CAEA,IAAW,WAAW;EACpB,OAAO,KAAK;CACd;CAEA,eAAuB,WAAoB,UAA0B;EACnE,IAAI,WACF,OAAO,KAAK,aAAa,QAAQ,QAAQ;CAI7C;AACF;AAvHC,aAAA,WAAA,CAAA,WAAW,GAAA,mBAAA,qBAAA"}
|
|
@@ -2,9 +2,8 @@ import { DidCommMessageHandlerRegistry } from "./DidCommMessageHandlerRegistry.m
|
|
|
2
2
|
import { DidCommMessageSender } from "./DidCommMessageSender.mjs";
|
|
3
3
|
import { DidCommInboundMessageContext } from "./models/DidCommInboundMessageContext.mjs";
|
|
4
4
|
import { EventEmitter, Logger } from "@credo-ts/core";
|
|
5
|
-
|
|
6
5
|
//#region src/DidCommDispatcher.d.ts
|
|
7
|
-
declare class DidCommDispatcher {
|
|
6
|
+
export declare class DidCommDispatcher {
|
|
8
7
|
private messageHandlerRegistry;
|
|
9
8
|
private messageSender;
|
|
10
9
|
private eventEmitter;
|
|
@@ -14,5 +13,4 @@ declare class DidCommDispatcher {
|
|
|
14
13
|
dispatch(messageContext: DidCommInboundMessageContext): Promise<void>;
|
|
15
14
|
}
|
|
16
15
|
//#endregion
|
|
17
|
-
export { DidCommDispatcher };
|
|
18
16
|
//# sourceMappingURL=DidCommDispatcher.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommDispatcher.d.mts","names":[],"sources":["../src/DidCommDispatcher.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DidCommDispatcher.d.mts","names":[],"sources":["../src/DidCommDispatcher.ts"],"mappings":";;;;;qBAgBa;UACH;UACA;UACA;UACA;EAGN,YAAA,eAAe,sBACf,cAAc,cACd,wBAAwB,+BACS,QAAQ;UAQnC;EA6BK,SAAS,gBAAgB,+BAA+B"}
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import __decorate from "./_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorate.mjs";
|
|
2
2
|
import { canHandleMessageType, parseMessageType } from "./util/messageType.mjs";
|
|
3
3
|
import { DidCommMessageHandlerRegistry } from "./DidCommMessageHandlerRegistry.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import __decorateMetadata from "./_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateMetadata.mjs";
|
|
5
|
+
import __decorateParam from "./_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateParam.mjs";
|
|
6
|
+
import "./DidCommEvents.mjs";
|
|
7
7
|
import { DidCommProblemReportMessage } from "./messages/problem-reports/DidCommProblemReportMessage.mjs";
|
|
8
8
|
import { DidCommProblemReportError } from "./errors/problem-reports/DidCommProblemReportError.mjs";
|
|
9
9
|
import "./errors/problem-reports/index.mjs";
|
|
10
10
|
import { DidCommOutboundMessageContext } from "./models/DidCommOutboundMessageContext.mjs";
|
|
11
|
-
import
|
|
11
|
+
import "./models/problem-reports/DidCommProblemReportReason.mjs";
|
|
12
12
|
import "./models/index.mjs";
|
|
13
13
|
import { DidCommMessageSender } from "./DidCommMessageSender.mjs";
|
|
14
14
|
import "./messages/index.mjs";
|
|
15
15
|
import { DidCommMessageHandlerMiddlewareRunner } from "./handlers/DidCommMessageHandlerMiddleware.mjs";
|
|
16
16
|
import { CredoError, EventEmitter, InjectionSymbols, inject, injectable } from "@credo-ts/core";
|
|
17
|
-
|
|
18
17
|
//#region src/DidCommDispatcher.ts
|
|
19
|
-
var _ref, _ref2, _ref3;
|
|
20
18
|
let DidCommDispatcher = class DidCommDispatcher {
|
|
21
19
|
constructor(messageSender, eventEmitter, messageHandlerRegistry, logger) {
|
|
22
20
|
this.defaultHandlerMiddleware = async (inboundMessageContext, next) => {
|
|
@@ -26,7 +24,7 @@ let DidCommDispatcher = class DidCommDispatcher {
|
|
|
26
24
|
supportedMessages: [],
|
|
27
25
|
handle: fallbackMessageHandler
|
|
28
26
|
};
|
|
29
|
-
if (!messageHandler) throw new DidCommProblemReportError(`Error handling message ${inboundMessageContext.message.id} with type ${inboundMessageContext.message.type}. The message type is not supported`, { problemCode:
|
|
27
|
+
if (!messageHandler) throw new DidCommProblemReportError(`Error handling message ${inboundMessageContext.message.id} with type ${inboundMessageContext.message.type}. The message type is not supported`, { problemCode: "message-parse-failure" });
|
|
30
28
|
const outboundMessage = await messageHandler.handle(inboundMessageContext);
|
|
31
29
|
if (outboundMessage) inboundMessageContext.setResponseMessage(outboundMessage);
|
|
32
30
|
await next();
|
|
@@ -48,7 +46,8 @@ let DidCommDispatcher = class DidCommDispatcher {
|
|
|
48
46
|
} catch (error) {
|
|
49
47
|
const problemReportMessage = error.problemReport;
|
|
50
48
|
if (problemReportMessage instanceof DidCommProblemReportMessage && messageContext.connection) {
|
|
51
|
-
|
|
49
|
+
const messageType = parseMessageType(messageContext.message.type);
|
|
50
|
+
if (canHandleMessageType(DidCommProblemReportMessage, messageType)) throw new CredoError(`Not sending problem report in response to problem report: ${message}`);
|
|
52
51
|
const { protocolUri: problemReportProtocolUri } = parseMessageType(problemReportMessage.type);
|
|
53
52
|
const { protocolUri: inboundProtocolUri } = parseMessageType(messageContext.message.type);
|
|
54
53
|
if (inboundProtocolUri === problemReportProtocolUri) problemReportMessage.setThread({ threadId: message.threadId });
|
|
@@ -74,7 +73,7 @@ let DidCommDispatcher = class DidCommDispatcher {
|
|
|
74
73
|
await this.messageSender.sendMessage(outboundMessage);
|
|
75
74
|
}
|
|
76
75
|
this.eventEmitter.emit(agentContext, {
|
|
77
|
-
type:
|
|
76
|
+
type: "DidCommMessageProcessed",
|
|
78
77
|
payload: {
|
|
79
78
|
message,
|
|
80
79
|
connection,
|
|
@@ -88,13 +87,13 @@ DidCommDispatcher = __decorate([
|
|
|
88
87
|
injectable(),
|
|
89
88
|
__decorateParam(3, inject(InjectionSymbols.Logger)),
|
|
90
89
|
__decorateMetadata("design:paramtypes", [
|
|
91
|
-
typeof
|
|
92
|
-
typeof
|
|
93
|
-
typeof
|
|
90
|
+
typeof DidCommMessageSender === "undefined" ? Object : DidCommMessageSender,
|
|
91
|
+
typeof EventEmitter === "undefined" ? Object : EventEmitter,
|
|
92
|
+
typeof DidCommMessageHandlerRegistry === "undefined" ? Object : DidCommMessageHandlerRegistry,
|
|
94
93
|
Object
|
|
95
94
|
])
|
|
96
95
|
], DidCommDispatcher);
|
|
97
|
-
|
|
98
96
|
//#endregion
|
|
99
97
|
export { DidCommDispatcher };
|
|
98
|
+
|
|
100
99
|
//# sourceMappingURL=DidCommDispatcher.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommDispatcher.mjs","names":[],"sources":["../src/DidCommDispatcher.ts"],"sourcesContent":["import { CredoError, EventEmitter, InjectionSymbols, inject, injectable, type Logger } from '@credo-ts/core'\nimport type { DidCommMessageProcessedEvent } from './DidCommEvents'\nimport { DidCommEventTypes } from './DidCommEvents'\nimport type { DidCommMessage } from './DidCommMessage'\nimport { DidCommMessageHandlerRegistry } from './DidCommMessageHandlerRegistry'\nimport { DidCommMessageSender } from './DidCommMessageSender'\nimport { DidCommProblemReportError } from './errors/problem-reports'\nimport { DidCommMessageHandlerMiddlewareRunner } from './handlers'\nimport type { DidCommMessageHandlerMiddleware } from './handlers/DidCommMessageHandlerMiddleware'\nimport { DidCommProblemReportMessage } from './messages'\nimport { DidCommOutboundMessageContext } from './models'\nimport type { DidCommInboundMessageContext } from './models/DidCommInboundMessageContext'\nimport { DidCommProblemReportReason } from './models/problem-reports'\nimport { canHandleMessageType, parseMessageType } from './util/messageType'\n\n@injectable()\nexport class DidCommDispatcher {\n private messageHandlerRegistry: DidCommMessageHandlerRegistry\n private messageSender: DidCommMessageSender\n private eventEmitter: EventEmitter\n private logger: Logger\n\n public constructor(\n messageSender: DidCommMessageSender,\n eventEmitter: EventEmitter,\n messageHandlerRegistry: DidCommMessageHandlerRegistry,\n @inject(InjectionSymbols.Logger) logger: Logger\n ) {\n this.messageSender = messageSender\n this.eventEmitter = eventEmitter\n this.messageHandlerRegistry = messageHandlerRegistry\n this.logger = logger\n }\n\n private defaultHandlerMiddleware: DidCommMessageHandlerMiddleware = async (inboundMessageContext, next) => {\n let messageHandler = inboundMessageContext.messageHandler\n\n const fallbackMessageHandler =\n inboundMessageContext.agentContext.dependencyManager.resolve(DidCommMessageHandlerRegistry).fallbackMessageHandler\n if (!messageHandler && fallbackMessageHandler) {\n messageHandler = {\n supportedMessages: [],\n handle: fallbackMessageHandler,\n }\n }\n\n if (!messageHandler) {\n throw new DidCommProblemReportError(\n `Error handling message ${inboundMessageContext.message.id} with type ${inboundMessageContext.message.type}. The message type is not supported`,\n {\n problemCode: DidCommProblemReportReason.MessageParseFailure,\n }\n )\n }\n\n const outboundMessage = await messageHandler.handle(inboundMessageContext)\n if (outboundMessage) {\n inboundMessageContext.setResponseMessage(outboundMessage)\n }\n\n await next()\n }\n\n public async dispatch(messageContext: DidCommInboundMessageContext): Promise<void> {\n const { agentContext, connection, senderKey, recipientKey, message, encryptedMessage } = messageContext\n\n // Set default handler if available, middleware can still override the message handler\n const messageHandler = this.messageHandlerRegistry.getHandlerForMessageType(message.type)\n if (messageHandler) {\n messageContext.setMessageHandler(messageHandler)\n }\n\n let outboundMessage: DidCommOutboundMessageContext<DidCommMessage> | undefined\n\n try {\n const messageHandlerMiddlewares =\n agentContext.dependencyManager.resolve(DidCommMessageHandlerRegistry).messageHandlerMiddlewares\n const middlewares = [...messageHandlerMiddlewares, this.defaultHandlerMiddleware]\n await DidCommMessageHandlerMiddlewareRunner.run(middlewares, messageContext)\n\n outboundMessage = messageContext.responseMessage\n } catch (error) {\n const problemReportMessage = error.problemReport\n\n if (problemReportMessage instanceof DidCommProblemReportMessage && messageContext.connection) {\n const messageType = parseMessageType(messageContext.message.type)\n if (canHandleMessageType(DidCommProblemReportMessage, messageType)) {\n throw new CredoError(`Not sending problem report in response to problem report: ${message}`)\n }\n\n const { protocolUri: problemReportProtocolUri } = parseMessageType(problemReportMessage.type)\n const { protocolUri: inboundProtocolUri } = parseMessageType(messageContext.message.type)\n\n // If the inbound protocol uri is the same as the problem report protocol uri, we can see the interaction as the same thread\n // However if it is no the same we should see it as a new thread, where the inbound message `@id` is the parentThreadId\n if (inboundProtocolUri === problemReportProtocolUri) {\n problemReportMessage.setThread({\n threadId: message.threadId,\n })\n } else {\n problemReportMessage.setThread({\n parentThreadId: message.id,\n })\n }\n\n outboundMessage = new DidCommOutboundMessageContext(problemReportMessage, {\n agentContext,\n connection: messageContext.connection,\n inboundMessageContext: messageContext,\n })\n } else {\n this.logger.error(`Error handling message with type ${message.type}`, {\n message: message.toJSON(),\n error,\n senderKey: senderKey?.fingerprint,\n recipientKey: recipientKey?.fingerprint,\n connectionId: connection?.id,\n })\n\n throw error\n }\n }\n\n if (outboundMessage) {\n // set the inbound message context, if not already defined\n if (!outboundMessage.inboundMessageContext) {\n outboundMessage.inboundMessageContext = messageContext\n }\n\n await this.messageSender.sendMessage(outboundMessage)\n }\n\n // Emit event that allows to hook into received messages\n this.eventEmitter.emit<DidCommMessageProcessedEvent>(agentContext, {\n type: DidCommEventTypes.DidCommMessageProcessed,\n payload: {\n message,\n connection,\n receivedAt: messageContext.receivedAt,\n encryptedMessage,\n },\n })\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DidCommDispatcher.mjs","names":[],"sources":["../src/DidCommDispatcher.ts"],"sourcesContent":["import { CredoError, EventEmitter, InjectionSymbols, inject, injectable, type Logger } from '@credo-ts/core'\nimport type { DidCommMessageProcessedEvent } from './DidCommEvents'\nimport { DidCommEventTypes } from './DidCommEvents'\nimport type { DidCommMessage } from './DidCommMessage'\nimport { DidCommMessageHandlerRegistry } from './DidCommMessageHandlerRegistry'\nimport { DidCommMessageSender } from './DidCommMessageSender'\nimport { DidCommProblemReportError } from './errors/problem-reports'\nimport { DidCommMessageHandlerMiddlewareRunner } from './handlers'\nimport type { DidCommMessageHandlerMiddleware } from './handlers/DidCommMessageHandlerMiddleware'\nimport { DidCommProblemReportMessage } from './messages'\nimport { DidCommOutboundMessageContext } from './models'\nimport type { DidCommInboundMessageContext } from './models/DidCommInboundMessageContext'\nimport { DidCommProblemReportReason } from './models/problem-reports'\nimport { canHandleMessageType, parseMessageType } from './util/messageType'\n\n@injectable()\nexport class DidCommDispatcher {\n private messageHandlerRegistry: DidCommMessageHandlerRegistry\n private messageSender: DidCommMessageSender\n private eventEmitter: EventEmitter\n private logger: Logger\n\n public constructor(\n messageSender: DidCommMessageSender,\n eventEmitter: EventEmitter,\n messageHandlerRegistry: DidCommMessageHandlerRegistry,\n @inject(InjectionSymbols.Logger) logger: Logger\n ) {\n this.messageSender = messageSender\n this.eventEmitter = eventEmitter\n this.messageHandlerRegistry = messageHandlerRegistry\n this.logger = logger\n }\n\n private defaultHandlerMiddleware: DidCommMessageHandlerMiddleware = async (inboundMessageContext, next) => {\n let messageHandler = inboundMessageContext.messageHandler\n\n const fallbackMessageHandler =\n inboundMessageContext.agentContext.dependencyManager.resolve(DidCommMessageHandlerRegistry).fallbackMessageHandler\n if (!messageHandler && fallbackMessageHandler) {\n messageHandler = {\n supportedMessages: [],\n handle: fallbackMessageHandler,\n }\n }\n\n if (!messageHandler) {\n throw new DidCommProblemReportError(\n `Error handling message ${inboundMessageContext.message.id} with type ${inboundMessageContext.message.type}. The message type is not supported`,\n {\n problemCode: DidCommProblemReportReason.MessageParseFailure,\n }\n )\n }\n\n const outboundMessage = await messageHandler.handle(inboundMessageContext)\n if (outboundMessage) {\n inboundMessageContext.setResponseMessage(outboundMessage)\n }\n\n await next()\n }\n\n public async dispatch(messageContext: DidCommInboundMessageContext): Promise<void> {\n const { agentContext, connection, senderKey, recipientKey, message, encryptedMessage } = messageContext\n\n // Set default handler if available, middleware can still override the message handler\n const messageHandler = this.messageHandlerRegistry.getHandlerForMessageType(message.type)\n if (messageHandler) {\n messageContext.setMessageHandler(messageHandler)\n }\n\n let outboundMessage: DidCommOutboundMessageContext<DidCommMessage> | undefined\n\n try {\n const messageHandlerMiddlewares =\n agentContext.dependencyManager.resolve(DidCommMessageHandlerRegistry).messageHandlerMiddlewares\n const middlewares = [...messageHandlerMiddlewares, this.defaultHandlerMiddleware]\n await DidCommMessageHandlerMiddlewareRunner.run(middlewares, messageContext)\n\n outboundMessage = messageContext.responseMessage\n } catch (error) {\n const problemReportMessage = error.problemReport\n\n if (problemReportMessage instanceof DidCommProblemReportMessage && messageContext.connection) {\n const messageType = parseMessageType(messageContext.message.type)\n if (canHandleMessageType(DidCommProblemReportMessage, messageType)) {\n throw new CredoError(`Not sending problem report in response to problem report: ${message}`)\n }\n\n const { protocolUri: problemReportProtocolUri } = parseMessageType(problemReportMessage.type)\n const { protocolUri: inboundProtocolUri } = parseMessageType(messageContext.message.type)\n\n // If the inbound protocol uri is the same as the problem report protocol uri, we can see the interaction as the same thread\n // However if it is no the same we should see it as a new thread, where the inbound message `@id` is the parentThreadId\n if (inboundProtocolUri === problemReportProtocolUri) {\n problemReportMessage.setThread({\n threadId: message.threadId,\n })\n } else {\n problemReportMessage.setThread({\n parentThreadId: message.id,\n })\n }\n\n outboundMessage = new DidCommOutboundMessageContext(problemReportMessage, {\n agentContext,\n connection: messageContext.connection,\n inboundMessageContext: messageContext,\n })\n } else {\n this.logger.error(`Error handling message with type ${message.type}`, {\n message: message.toJSON(),\n error,\n senderKey: senderKey?.fingerprint,\n recipientKey: recipientKey?.fingerprint,\n connectionId: connection?.id,\n })\n\n throw error\n }\n }\n\n if (outboundMessage) {\n // set the inbound message context, if not already defined\n if (!outboundMessage.inboundMessageContext) {\n outboundMessage.inboundMessageContext = messageContext\n }\n\n await this.messageSender.sendMessage(outboundMessage)\n }\n\n // Emit event that allows to hook into received messages\n this.eventEmitter.emit<DidCommMessageProcessedEvent>(agentContext, {\n type: DidCommEventTypes.DidCommMessageProcessed,\n payload: {\n message,\n connection,\n receivedAt: messageContext.receivedAt,\n encryptedMessage,\n },\n })\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAgBO,IAAM,oBAAN,MAAM,kBAAkB;CAM7B,YACE,eACA,cACA,wBACA,QACA;EAOF,KAAQ,2BAA4D,OAAO,uBAAuB,SAAS;GACzG,IAAI,iBAAiB,sBAAsB;GAE3C,MAAM,yBACJ,sBAAsB,aAAa,kBAAkB,QAAQ,6BAA6B,CAAC,CAAC;GAC9F,IAAI,CAAC,kBAAkB,wBACrB,iBAAiB;IACf,mBAAmB,CAAC;IACpB,QAAQ;GACV;GAGF,IAAI,CAAC,gBACH,MAAM,IAAI,0BACR,0BAA0B,sBAAsB,QAAQ,GAAG,aAAa,sBAAsB,QAAQ,KAAK,sCAC3G,EACE,aAAA,wBACF,CACF;GAGF,MAAM,kBAAkB,MAAM,eAAe,OAAO,qBAAqB;GACzE,IAAI,iBACF,sBAAsB,mBAAmB,eAAe;GAG1D,MAAM,KAAK;EACb;EAjCE,KAAK,gBAAgB;EACrB,KAAK,eAAe;EACpB,KAAK,yBAAyB;EAC9B,KAAK,SAAS;CAChB;CA+BA,MAAa,SAAS,gBAA6D;EACjF,MAAM,EAAE,cAAc,YAAY,WAAW,cAAc,SAAS,qBAAqB;EAGzF,MAAM,iBAAiB,KAAK,uBAAuB,yBAAyB,QAAQ,IAAI;EACxF,IAAI,gBACF,eAAe,kBAAkB,cAAc;EAGjD,IAAI;EAEJ,IAAI;GAGF,MAAM,cAAc,CAAC,GADnB,aAAa,kBAAkB,QAAQ,6BAA6B,CAAC,CAAC,2BACrB,KAAK,wBAAwB;GAChF,MAAM,sCAAsC,IAAI,aAAa,cAAc;GAE3E,kBAAkB,eAAe;EACnC,SAAS,OAAO;GACd,MAAM,uBAAuB,MAAM;GAEnC,IAAI,gCAAgC,+BAA+B,eAAe,YAAY;IAC5F,MAAM,cAAc,iBAAiB,eAAe,QAAQ,IAAI;IAChE,IAAI,qBAAqB,6BAA6B,WAAW,GAC/D,MAAM,IAAI,WAAW,6DAA6D,SAAS;IAG7F,MAAM,EAAE,aAAa,6BAA6B,iBAAiB,qBAAqB,IAAI;IAC5F,MAAM,EAAE,aAAa,uBAAuB,iBAAiB,eAAe,QAAQ,IAAI;IAIxF,IAAI,uBAAuB,0BACzB,qBAAqB,UAAU,EAC7B,UAAU,QAAQ,SACpB,CAAC;SAED,qBAAqB,UAAU,EAC7B,gBAAgB,QAAQ,GAC1B,CAAC;IAGH,kBAAkB,IAAI,8BAA8B,sBAAsB;KACxE;KACA,YAAY,eAAe;KAC3B,uBAAuB;IACzB,CAAC;GACH,OAAO;IACL,KAAK,OAAO,MAAM,oCAAoC,QAAQ,QAAQ;KACpE,SAAS,QAAQ,OAAO;KACxB;KACA,WAAW,WAAW;KACtB,cAAc,cAAc;KAC5B,cAAc,YAAY;IAC5B,CAAC;IAED,MAAM;GACR;EACF;EAEA,IAAI,iBAAiB;GAEnB,IAAI,CAAC,gBAAgB,uBACnB,gBAAgB,wBAAwB;GAG1C,MAAM,KAAK,cAAc,YAAY,eAAe;EACtD;EAGA,KAAK,aAAa,KAAmC,cAAc;GACjE,MAAA;GACA,SAAS;IACP;IACA;IACA,YAAY,eAAe;IAC3B;GACF;EACF,CAAC;CACH;AACF;;CAhIC,WAAW;CAWP,gBAAA,GAAA,OAAO,iBAAiB,MAAM,CAAA"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { DidCommEncryptedMessage, DidCommPlaintextMessage } from "./types.mjs";
|
|
2
|
-
import { DidCommDocumentService } from "./services/DidCommDocumentService.mjs";
|
|
3
2
|
import { DidCommMessage } from "./DidCommMessage.mjs";
|
|
3
|
+
import { DidCommDocumentService } from "./services/DidCommDocumentService.mjs";
|
|
4
4
|
import { AgentContext, Kms, Logger } from "@credo-ts/core";
|
|
5
|
-
|
|
6
5
|
//#region src/DidCommEnvelopeService.d.ts
|
|
7
|
-
interface EnvelopeKeys {
|
|
6
|
+
export interface EnvelopeKeys {
|
|
8
7
|
recipientKeys: Kms.PublicJwk<Kms.Ed25519PublicJwk>[];
|
|
9
8
|
routingKeys: Kms.PublicJwk<Kms.Ed25519PublicJwk>[];
|
|
10
9
|
senderKey: Kms.PublicJwk<Kms.Ed25519PublicJwk> | null;
|
|
11
|
-
/** DID URL of the sender key; used as skid in DIDComm v2 so recipient can resolve it */
|
|
12
|
-
senderKeySkid?: string;
|
|
13
10
|
}
|
|
14
|
-
declare class DidCommEnvelopeService {
|
|
11
|
+
export declare class DidCommEnvelopeService {
|
|
15
12
|
private logger;
|
|
16
13
|
private didcommDocumentService;
|
|
17
14
|
constructor(logger: Logger, didcommDocumentService: DidCommDocumentService);
|
|
@@ -21,19 +18,10 @@ declare class DidCommEnvelopeService {
|
|
|
21
18
|
unpackMessage(agentContext: AgentContext, encryptedMessage: DidCommEncryptedMessage): Promise<DecryptedDidCommMessageContext>;
|
|
22
19
|
private extractOurRecipientKeyWithKeyId;
|
|
23
20
|
}
|
|
24
|
-
|
|
25
|
-
* A key that can appear on a DIDComm envelope.
|
|
26
|
-
*
|
|
27
|
-
* V1 uses Ed25519 keys throughout. V2 uses the key-agreement curves that the DIDComm Messaging
|
|
28
|
-
* v2.1 specification requires. Both versions produce a decrypted context, so the context carries
|
|
29
|
-
* the union rather than the v1 type with a cast over it.
|
|
30
|
-
*/
|
|
31
|
-
type DidCommEnvelopeKey = Kms.PublicJwk<Kms.Ed25519PublicJwk | Kms.X25519PublicJwk | Kms.P256PublicJwk | Kms.P384PublicJwk>;
|
|
32
|
-
interface DecryptedDidCommMessageContext {
|
|
21
|
+
export interface DecryptedDidCommMessageContext {
|
|
33
22
|
plaintextMessage: DidCommPlaintextMessage;
|
|
34
|
-
senderKey?:
|
|
35
|
-
recipientKey:
|
|
23
|
+
senderKey?: Kms.PublicJwk<Kms.Ed25519PublicJwk>;
|
|
24
|
+
recipientKey: Kms.PublicJwk<Kms.Ed25519PublicJwk>;
|
|
36
25
|
}
|
|
37
26
|
//#endregion
|
|
38
|
-
export { DecryptedDidCommMessageContext, DidCommEnvelopeKey, DidCommEnvelopeService, EnvelopeKeys };
|
|
39
27
|
//# sourceMappingURL=DidCommEnvelopeService.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommEnvelopeService.d.mts","names":[],"sources":["../src/DidCommEnvelopeService.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DidCommEnvelopeService.d.mts","names":[],"sources":["../src/DidCommEnvelopeService.ts"],"mappings":";;;;;iBAuBiB;EACf,eAAe,IAAI,UAAU,IAAI;EACjC,aAAa,IAAI,UAAU,IAAI;EAC/B,WAAW,IAAI,UAAU,IAAI;;qBAIlB;UACH;UACA;EAE4C,YAAA,QAAQ,QAAQ,wBAAwB;UAK9E;UA0GA;EAsGD,YACX,cAAc,cACd,SAAS,gBACT,MAAM,eACL,QAAQ;EAsCE,cACX,cAAc,cACd,kBAAkB,0BACjB,QAAQ;UAKG;;iBA+IC;EACf,kBAAkB;EAClB,YAAY,IAAI,UAAU,IAAI;EAC9B,cAAc,IAAI,UAAU,IAAI"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import __decorate from "./_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorate.mjs";
|
|
2
|
+
import __decorateMetadata from "./_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateMetadata.mjs";
|
|
3
3
|
import { DidCommModuleConfig } from "./DidCommModuleConfig.mjs";
|
|
4
|
-
import { getResolvedDidcommServiceWithSigningKeyId
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { getResolvedDidcommServiceWithSigningKeyId } from "./modules/connections/services/helpers.mjs";
|
|
5
|
+
import "./modules/oob/domain/DidCommOutOfBandRole.mjs";
|
|
6
|
+
import __decorateParam from "./_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateParam.mjs";
|
|
7
7
|
import { DidCommOutOfBandRepository } from "./modules/oob/repository/DidCommOutOfBandRepository.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { DidCommForwardMessage } from "./modules/routing/protocol/v1/messages/DidCommForwardMessage.mjs";
|
|
8
|
+
import { DidCommForwardMessage } from "./modules/routing/messages/DidCommForwardMessage.mjs";
|
|
10
9
|
import { DidCommMediatorRoutingRepository } from "./modules/routing/repository/DidCommMediatorRoutingRepository.mjs";
|
|
11
10
|
import { DidCommDocumentService } from "./services/DidCommDocumentService.mjs";
|
|
12
|
-
import {
|
|
13
|
-
|
|
11
|
+
import { CredoError, InjectionSymbols, JsonEncoder, Kms, RecordNotFoundError, TypedArrayEncoder, inject, injectable } from "@credo-ts/core";
|
|
14
12
|
//#region src/DidCommEnvelopeService.ts
|
|
15
|
-
var _ref;
|
|
16
13
|
let DidCommEnvelopeService = class DidCommEnvelopeService {
|
|
17
14
|
constructor(logger, didcommDocumentService) {
|
|
18
15
|
this.logger = logger;
|
|
@@ -25,22 +22,20 @@ let DidCommEnvelopeService = class DidCommEnvelopeService {
|
|
|
25
22
|
for (const recipientKey of recipientKeys) {
|
|
26
23
|
let encryptedSender;
|
|
27
24
|
if (senderKey) {
|
|
28
|
-
const recipientX25519Jwk = toX25519(recipientKey).toJson();
|
|
29
25
|
const { encrypted } = await kms.encrypt({
|
|
30
26
|
key: { keyAgreement: {
|
|
31
27
|
algorithm: "ECDH-HSALSA20",
|
|
32
|
-
externalPublicJwk:
|
|
28
|
+
externalPublicJwk: recipientKey.convertTo(Kms.X25519PublicJwk).toJson()
|
|
33
29
|
} },
|
|
34
30
|
encryption: { algorithm: "XSALSA20-POLY1305" },
|
|
35
31
|
data: TypedArrayEncoder.fromUtf8String(TypedArrayEncoder.toBase58(senderKey.publicKey.publicKey))
|
|
36
32
|
});
|
|
37
33
|
encryptedSender = TypedArrayEncoder.toBase64Url(encrypted);
|
|
38
34
|
}
|
|
39
|
-
const recipientX25519JwkForKey = toX25519(recipientKey).toJson();
|
|
40
35
|
const { encrypted, iv } = await kms.encrypt({
|
|
41
36
|
key: { keyAgreement: {
|
|
42
37
|
algorithm: "ECDH-HSALSA20",
|
|
43
|
-
externalPublicJwk:
|
|
38
|
+
externalPublicJwk: recipientKey.convertTo(Kms.X25519PublicJwk).toJson(),
|
|
44
39
|
keyId: senderKey?.keyId
|
|
45
40
|
} },
|
|
46
41
|
data: contentEncryptionKey,
|
|
@@ -189,21 +184,21 @@ let DidCommEnvelopeService = class DidCommEnvelopeService {
|
|
|
189
184
|
if (routingKey) return routingKey;
|
|
190
185
|
}
|
|
191
186
|
const outOfBandRecord = await agentContext.dependencyManager.resolve(DidCommOutOfBandRepository).findSingleByQuery(agentContext, { $or: [{
|
|
192
|
-
role:
|
|
187
|
+
role: "sender",
|
|
193
188
|
recipientKeyFingerprints: [publicKey.fingerprint]
|
|
194
189
|
}, {
|
|
195
|
-
role:
|
|
190
|
+
role: "receiver",
|
|
196
191
|
recipientRoutingKeyFingerprint: publicKey.fingerprint
|
|
197
192
|
}] });
|
|
198
|
-
if (outOfBandRecord?.role ===
|
|
193
|
+
if (outOfBandRecord?.role === "sender") {
|
|
199
194
|
agentContext.config.logger.debug(`Found out of band record with id '${outOfBandRecord.id}' and role '${outOfBandRecord.role}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`);
|
|
200
195
|
for (const service of outOfBandRecord.outOfBandInvitation.getInlineServices()) {
|
|
201
196
|
const _recipientKey = getResolvedDidcommServiceWithSigningKeyId(service, outOfBandRecord.invitationInlineServiceKeys).recipientKeys.find((recipientKey) => recipientKey.equals(publicKey));
|
|
202
197
|
if (_recipientKey) return _recipientKey;
|
|
203
198
|
}
|
|
204
|
-
} else if (outOfBandRecord?.role ===
|
|
199
|
+
} else if (outOfBandRecord?.role === "receiver") {
|
|
205
200
|
agentContext.config.logger.debug(`Found out of band record with id '${outOfBandRecord.id}' and role '${outOfBandRecord.role}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`);
|
|
206
|
-
const recipieintRouting = outOfBandRecord.metadata.get(
|
|
201
|
+
const recipieintRouting = outOfBandRecord.metadata.get("_internal/recipientRouting");
|
|
207
202
|
if (recipieintRouting?.recipientKeyFingerprint === publicKey.fingerprint) {
|
|
208
203
|
publicKey.keyId = recipieintRouting.recipientKeyId ?? publicKey.legacyKeyId;
|
|
209
204
|
return publicKey;
|
|
@@ -225,9 +220,9 @@ let DidCommEnvelopeService = class DidCommEnvelopeService {
|
|
|
225
220
|
DidCommEnvelopeService = __decorate([
|
|
226
221
|
injectable(),
|
|
227
222
|
__decorateParam(0, inject(InjectionSymbols.Logger)),
|
|
228
|
-
__decorateMetadata("design:paramtypes", [Object, typeof
|
|
223
|
+
__decorateMetadata("design:paramtypes", [Object, typeof DidCommDocumentService === "undefined" ? Object : DidCommDocumentService])
|
|
229
224
|
], DidCommEnvelopeService);
|
|
230
|
-
|
|
231
225
|
//#endregion
|
|
232
226
|
export { DidCommEnvelopeService };
|
|
227
|
+
|
|
233
228
|
//# sourceMappingURL=DidCommEnvelopeService.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommEnvelopeService.mjs","names":[],"sources":["../src/DidCommEnvelopeService.ts"],"sourcesContent":["import {\n AgentContext,\n CredoError,\n InjectionSymbols,\n inject,\n injectable,\n JsonEncoder,\n Kms,\n type Logger,\n RecordNotFoundError,\n TypedArrayEncoder,\n} from '@credo-ts/core'\nimport type { DidCommMessage } from './DidCommMessage'\nimport { DidCommModuleConfig } from './DidCommModuleConfig'\nimport { getResolvedDidcommServiceWithSigningKeyId, toX25519 } from './modules/connections/services/helpers'\nimport { DidCommOutOfBandRole } from './modules/oob/domain/DidCommOutOfBandRole'\nimport { DidCommOutOfBandRepository } from './modules/oob/repository/DidCommOutOfBandRepository'\nimport { DidCommOutOfBandRecordMetadataKeys } from './modules/oob/repository/outOfBandRecordMetadataTypes'\nimport { DidCommForwardMessage } from './modules/routing/protocol/v1/messages/DidCommForwardMessage'\nimport { DidCommMediatorRoutingRepository } from './modules/routing/repository/DidCommMediatorRoutingRepository'\nimport { DidCommDocumentService } from './services/DidCommDocumentService'\nimport type { DidCommEncryptedMessage, DidCommPlaintextMessage } from './types'\n\nexport interface EnvelopeKeys {\n recipientKeys: Kms.PublicJwk<Kms.Ed25519PublicJwk>[]\n routingKeys: Kms.PublicJwk<Kms.Ed25519PublicJwk>[]\n senderKey: Kms.PublicJwk<Kms.Ed25519PublicJwk> | null\n /** DID URL of the sender key; used as skid in DIDComm v2 so recipient can resolve it */\n senderKeySkid?: string\n}\n\n@injectable()\nexport class DidCommEnvelopeService {\n private logger: Logger\n private didcommDocumentService: DidCommDocumentService\n\n public constructor(@inject(InjectionSymbols.Logger) logger: Logger, didcommDocumentService: DidCommDocumentService) {\n this.logger = logger\n this.didcommDocumentService = didcommDocumentService\n }\n\n private async encryptDidcommV1Message(\n agentContext: AgentContext,\n message: DidCommPlaintextMessage,\n recipientKeys: Kms.PublicJwk<Kms.Ed25519PublicJwk>[],\n senderKey?: Kms.PublicJwk<Kms.Ed25519PublicJwk> | null\n ): Promise<DidCommEncryptedMessage> {\n const kms = agentContext.dependencyManager.resolve(Kms.KeyManagementApi)\n // Generally we would never generate the content encryption key outside of the KMS\n // However how DIDcommV1 is specified to calcualte the aad we need the encrypted content\n // encryption key, and thus we can't use the normal combined key agrement + encryption flow\n const contentEncryptionKey = kms.randomBytes({ length: 32 })\n\n const recipients: Array<{\n encrypted_key: string\n header: {\n kid: string\n\n // In case of Authcrypt\n sender?: string\n iv?: string\n }\n }> = []\n\n for (const recipientKey of recipientKeys) {\n let encryptedSender: string | undefined\n\n if (senderKey) {\n // DIDComm v1 uses Ed25519 keys but encryption happens with X25519 keys.\n const recipientX25519Jwk = toX25519(recipientKey).toJson()\n\n // Encrypt the sender\n const { encrypted } = await kms.encrypt({\n key: {\n keyAgreement: {\n algorithm: 'ECDH-HSALSA20',\n externalPublicJwk: recipientX25519Jwk,\n },\n },\n encryption: {\n algorithm: 'XSALSA20-POLY1305',\n },\n data: TypedArrayEncoder.fromUtf8String(TypedArrayEncoder.toBase58(senderKey.publicKey.publicKey)),\n })\n\n encryptedSender = TypedArrayEncoder.toBase64Url(encrypted)\n }\n\n // Encrypt the key\n const recipientX25519JwkForKey = toX25519(recipientKey).toJson()\n\n const { encrypted, iv } = await kms.encrypt({\n key: {\n keyAgreement: {\n algorithm: 'ECDH-HSALSA20',\n externalPublicJwk: recipientX25519JwkForKey,\n\n // Sender key only needed for Authcrypt\n keyId: senderKey?.keyId,\n },\n },\n data: contentEncryptionKey,\n encryption: {\n algorithm: 'XSALSA20-POLY1305',\n },\n })\n\n recipients.push({\n encrypted_key: TypedArrayEncoder.toBase64Url(encrypted),\n header: {\n kid: TypedArrayEncoder.toBase58(recipientKey.publicKey.publicKey),\n iv: iv ? TypedArrayEncoder.toBase64Url(iv) : undefined,\n sender: encryptedSender,\n },\n })\n }\n\n const protectedString = JsonEncoder.toBase64Url({\n enc: 'xchacha20poly1305_ietf',\n typ: 'JWM/1.0',\n alg: senderKey ? 'Authcrypt' : 'Anoncrypt',\n recipients,\n })\n\n // Perofrm the actual encryption\n const { encrypted, iv, tag } = await kms.encrypt({\n encryption: {\n algorithm: 'C20P',\n aad: TypedArrayEncoder.fromUtf8String(protectedString),\n },\n data: JsonEncoder.toUint8Array(message),\n key: {\n privateJwk: {\n kty: 'oct',\n k: TypedArrayEncoder.toBase64Url(contentEncryptionKey),\n },\n },\n })\n\n if (!iv || !tag) {\n throw new CredoError(\"Expected 'iv' and 'tag' to be defined\")\n }\n\n return {\n ciphertext: TypedArrayEncoder.toBase64Url(encrypted),\n iv: TypedArrayEncoder.toBase64Url(iv),\n tag: TypedArrayEncoder.toBase64Url(tag),\n protected: protectedString,\n } satisfies DidCommEncryptedMessage\n }\n\n private async decryptDidcommV1Message(agentContext: AgentContext, encryptedMessage: DidCommEncryptedMessage) {\n const kms = agentContext.dependencyManager.resolve(Kms.KeyManagementApi)\n const protectedJson = JsonEncoder.fromBase64Url(encryptedMessage.protected)\n\n const alg = protectedJson.alg as 'Anoncrypt' | 'Authcrypt'\n if (alg !== 'Anoncrypt' && alg !== 'Authcrypt') {\n throw new CredoError(`Unsupported pack algorithm: ${alg}`)\n }\n\n if (protectedJson.enc !== 'xchacha20poly1305_ietf') {\n throw new CredoError(`Unsupported enc algorithm: ${protectedJson.enc}`)\n }\n\n let recipientKey: Kms.PublicJwk<Kms.Ed25519PublicJwk> | null = null\n let recipient: {\n header: {\n kid: string\n iv?: string\n sender?: string\n }\n encrypted_key: string\n } | null = null\n\n for (const _recipient of protectedJson.recipients) {\n recipientKey = await this.extractOurRecipientKeyWithKeyId(agentContext, _recipient)\n\n if (recipientKey) {\n recipient = _recipient\n }\n }\n\n if (!recipientKey || !recipient) {\n throw new CredoError('No corresponding recipient key found')\n }\n\n if (alg === 'Authcrypt' && (!recipient.header.sender || !recipient.header.iv)) {\n throw new CredoError('Sender and iv header values are required for Authcrypt')\n }\n\n let senderPublicJwk: Kms.PublicJwk<Kms.Ed25519PublicJwk> | undefined\n if (recipient.header.sender) {\n const { data } = await kms.decrypt({\n key: {\n keyAgreement: {\n algorithm: 'ECDH-HSALSA20',\n keyId: recipientKey.keyId,\n },\n },\n decryption: {\n algorithm: 'XSALSA20-POLY1305',\n },\n encrypted: TypedArrayEncoder.fromBase64Url(recipient.header.sender),\n })\n\n senderPublicJwk = Kms.PublicJwk.fromPublicKey({\n crv: 'Ed25519',\n kty: 'OKP',\n publicKey: TypedArrayEncoder.fromBase58(TypedArrayEncoder.toUtf8String(data)),\n })\n }\n\n // Perofrm the actual decryption\n const { data: contentEncryptionKey } = await kms.decrypt({\n decryption: {\n algorithm: 'XSALSA20-POLY1305',\n iv: recipient.header.iv ? TypedArrayEncoder.fromBase64Url(recipient.header.iv) : undefined,\n },\n encrypted: TypedArrayEncoder.fromBase64Url(recipient.encrypted_key),\n key: {\n keyAgreement: {\n algorithm: 'ECDH-HSALSA20',\n keyId: recipientKey.keyId,\n\n // Optionally we have a sender\n externalPublicJwk: senderPublicJwk?.convertTo(Kms.X25519PublicJwk).toJson(),\n },\n },\n })\n\n const { data: message } = await kms.decrypt({\n decryption: {\n algorithm: 'C20P',\n iv: TypedArrayEncoder.fromBase64Url(encryptedMessage.iv),\n tag: TypedArrayEncoder.fromBase64Url(encryptedMessage.tag),\n aad: TypedArrayEncoder.fromUtf8String(encryptedMessage.protected),\n },\n key: {\n privateJwk: {\n kty: 'oct',\n k: TypedArrayEncoder.toBase64Url(contentEncryptionKey),\n },\n },\n encrypted: TypedArrayEncoder.fromBase64Url(encryptedMessage.ciphertext),\n })\n\n return {\n plaintextMessage: JsonEncoder.fromUint8Array(message),\n senderKey: senderPublicJwk,\n recipientKey,\n }\n }\n\n public async packMessage(\n agentContext: AgentContext,\n payload: DidCommMessage,\n keys: EnvelopeKeys\n ): Promise<DidCommEncryptedMessage> {\n const didcommConfig = agentContext.dependencyManager.resolve(DidCommModuleConfig)\n\n const { routingKeys, senderKey } = keys\n let recipientKeys = keys.recipientKeys\n\n // pass whether we want to use legacy did sov prefix\n const message = payload.toJSON({ useDidSovPrefixWhereAllowed: didcommConfig.useDidSovPrefixWhereAllowed })\n\n this.logger.debug(`Pack outbound message ${message['@type']}`)\n\n let encryptedMessage = await this.encryptDidcommV1Message(agentContext, message, recipientKeys, senderKey)\n\n // If the message has routing keys (mediator) pack for each mediator\n for (const routingKey of routingKeys) {\n const forwardMessage = new DidCommForwardMessage({\n // Forward to first recipient key\n to: TypedArrayEncoder.toBase58(recipientKeys[0].publicKey.publicKey),\n message: encryptedMessage,\n })\n recipientKeys = [routingKey]\n this.logger.debug('Forward message created', forwardMessage)\n\n const forwardJson = forwardMessage.toJSON({\n useDidSovPrefixWhereAllowed: didcommConfig.useDidSovPrefixWhereAllowed,\n })\n\n // Forward messages are anon packed\n encryptedMessage = await this.encryptDidcommV1Message(agentContext, forwardJson, [routingKey])\n }\n\n this.logger.debug(`Packed outbound message ${message['@type']}`, {\n routingKeys: routingKeys.map((routingKey) => routingKey.fingerprint),\n })\n\n return encryptedMessage\n }\n\n public async unpackMessage(\n agentContext: AgentContext,\n encryptedMessage: DidCommEncryptedMessage\n ): Promise<DecryptedDidCommMessageContext> {\n const decryptedMessage = await this.decryptDidcommV1Message(agentContext, encryptedMessage)\n return decryptedMessage\n }\n\n private async extractOurRecipientKeyWithKeyId(\n agentContext: AgentContext,\n recipient: {\n header: {\n kid: string\n }\n }\n ): Promise<Kms.PublicJwk<Kms.Ed25519PublicJwk> | null> {\n const kms = agentContext.resolve(Kms.KeyManagementApi)\n\n const publicKey = Kms.PublicJwk.fromPublicKey({\n kty: 'OKP',\n crv: 'Ed25519',\n publicKey: TypedArrayEncoder.fromBase58(recipient.header.kid),\n })\n\n // We need to find the associated did based on the recipient key\n // so we can extract the kms key id from the did record.\n try {\n const { didDocument, keys } = await this.didcommDocumentService.resolveCreatedDidDocumentWithKeysByRecipientKey(\n agentContext,\n publicKey\n )\n\n const verificationMethod = didDocument.findVerificationMethodByPublicKey(publicKey)\n const kmsKeyId = keys?.find(({ didDocumentRelativeKeyId }) =>\n verificationMethod.id.endsWith(didDocumentRelativeKeyId)\n )?.kmsKeyId\n\n agentContext.config.logger.debug(\n `Found did '${didDocument.id}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`\n )\n\n publicKey.keyId = kmsKeyId ?? publicKey.legacyKeyId\n return publicKey\n } catch (error) {\n // If there is no did record yet, we first look at the mediator routing record\n const mediatorRoutingRepository = agentContext.dependencyManager.resolve(DidCommMediatorRoutingRepository)\n if (error instanceof RecordNotFoundError) {\n const mediatorRoutingRecord = await mediatorRoutingRepository.findSingleByQuery(agentContext, {\n routingKeyFingerprints: [publicKey.fingerprint],\n })\n\n if (mediatorRoutingRecord) {\n agentContext.config.logger.debug(\n `Found mediator routing record with id '${mediatorRoutingRecord.id}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`\n )\n\n const routingKey = mediatorRoutingRecord.routingKeysWithKeyId.find((routingKey) =>\n publicKey.equals(routingKey)\n )\n\n // This should not happen as we only get here if the tag matches\n if (!routingKey) {\n throw new CredoError(\n `Expected to find key with fingerprint '${publicKey.fingerprint}' in routing keys of mediator routing record '${mediatorRoutingRecord.id}'`\n )\n }\n\n if (routingKey) {\n return routingKey\n }\n }\n\n // If there is no mediator routing record, we look at the out of band record\n const outOfBandRepository = agentContext.dependencyManager.resolve(DidCommOutOfBandRepository)\n const outOfBandRecord = await outOfBandRepository.findSingleByQuery(agentContext, {\n $or: [\n // In case we are the creator of the out of band invitation we can query based on\n // out of band invitation recipient key fingerprint\n {\n role: DidCommOutOfBandRole.Sender,\n recipientKeyFingerprints: [publicKey.fingerprint],\n },\n // In case we are the receiver of the out of band invitation we need to query\n // for the recipient routing fingerprint\n {\n role: DidCommOutOfBandRole.Receiver,\n recipientRoutingKeyFingerprint: publicKey.fingerprint,\n },\n ],\n })\n\n if (outOfBandRecord?.role === DidCommOutOfBandRole.Sender) {\n agentContext.config.logger.debug(\n `Found out of band record with id '${outOfBandRecord.id}' and role '${outOfBandRecord.role}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`\n )\n\n for (const service of outOfBandRecord.outOfBandInvitation.getInlineServices()) {\n const resolvedService = getResolvedDidcommServiceWithSigningKeyId(\n service,\n outOfBandRecord.invitationInlineServiceKeys\n )\n const _recipientKey = resolvedService.recipientKeys.find((recipientKey) => recipientKey.equals(publicKey))\n\n if (_recipientKey) {\n return _recipientKey\n }\n }\n } else if (outOfBandRecord?.role === DidCommOutOfBandRole.Receiver) {\n agentContext.config.logger.debug(\n `Found out of band record with id '${outOfBandRecord.id}' and role '${outOfBandRecord.role}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`\n )\n\n // If there is still no key we need to look at the metadata\n const recipieintRouting = outOfBandRecord.metadata.get(DidCommOutOfBandRecordMetadataKeys.RecipientRouting)\n if (recipieintRouting?.recipientKeyFingerprint === publicKey.fingerprint) {\n publicKey.keyId = recipieintRouting.recipientKeyId ?? publicKey.legacyKeyId\n return publicKey\n }\n }\n\n // If there is no did found, no out of band record found, and not mediator routing record\n // this is either:\n // - a connectionless oob exchange initiated before we added key ids.\n // - a message for a mediator, where the mediator routing record is created before we added key ids\n //\n // We will check if the public key exists based on the base58 encoded public key. We can remove this flow once we create a migration\n // that optimizes this flow.\n const kmsJwkPublic = await kms\n .getPublicKey({\n keyId: publicKey.legacyKeyId,\n })\n .catch((error) => {\n if (error instanceof Kms.KeyManagementKeyNotFoundError) return null\n throw error\n })\n if (kmsJwkPublic) {\n agentContext.config.logger.debug(\n `Found public key with legacy key id '${publicKey.legacyKeyId}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`\n )\n\n publicKey.keyId = publicKey.legacyKeyId\n return publicKey\n }\n }\n }\n\n // no match found\n return null\n }\n}\n\n/**\n * A key that can appear on a DIDComm envelope.\n *\n * V1 uses Ed25519 keys throughout. V2 uses the key-agreement curves that the DIDComm Messaging\n * v2.1 specification requires. Both versions produce a decrypted context, so the context carries\n * the union rather than the v1 type with a cast over it.\n */\nexport type DidCommEnvelopeKey = Kms.PublicJwk<\n Kms.Ed25519PublicJwk | Kms.X25519PublicJwk | Kms.P256PublicJwk | Kms.P384PublicJwk\n>\n\nexport interface DecryptedDidCommMessageContext {\n plaintextMessage: DidCommPlaintextMessage\n senderKey?: DidCommEnvelopeKey\n recipientKey: DidCommEnvelopeKey\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"DidCommEnvelopeService.mjs","names":[],"sources":["../src/DidCommEnvelopeService.ts"],"sourcesContent":["import {\n AgentContext,\n CredoError,\n InjectionSymbols,\n inject,\n injectable,\n JsonEncoder,\n Kms,\n type Logger,\n RecordNotFoundError,\n TypedArrayEncoder,\n} from '@credo-ts/core'\nimport type { DidCommMessage } from './DidCommMessage'\nimport { DidCommModuleConfig } from './DidCommModuleConfig'\nimport { getResolvedDidcommServiceWithSigningKeyId } from './modules/connections/services/helpers'\nimport { DidCommOutOfBandRole } from './modules/oob/domain/DidCommOutOfBandRole'\nimport { DidCommOutOfBandRepository } from './modules/oob/repository/DidCommOutOfBandRepository'\nimport { DidCommOutOfBandRecordMetadataKeys } from './modules/oob/repository/outOfBandRecordMetadataTypes'\nimport { DidCommForwardMessage } from './modules/routing/messages/DidCommForwardMessage'\nimport { DidCommMediatorRoutingRepository } from './modules/routing/repository/DidCommMediatorRoutingRepository'\nimport { DidCommDocumentService } from './services/DidCommDocumentService'\nimport type { DidCommEncryptedMessage, DidCommPlaintextMessage } from './types'\n\nexport interface EnvelopeKeys {\n recipientKeys: Kms.PublicJwk<Kms.Ed25519PublicJwk>[]\n routingKeys: Kms.PublicJwk<Kms.Ed25519PublicJwk>[]\n senderKey: Kms.PublicJwk<Kms.Ed25519PublicJwk> | null\n}\n\n@injectable()\nexport class DidCommEnvelopeService {\n private logger: Logger\n private didcommDocumentService: DidCommDocumentService\n\n public constructor(@inject(InjectionSymbols.Logger) logger: Logger, didcommDocumentService: DidCommDocumentService) {\n this.logger = logger\n this.didcommDocumentService = didcommDocumentService\n }\n\n private async encryptDidcommV1Message(\n agentContext: AgentContext,\n message: DidCommPlaintextMessage,\n recipientKeys: Kms.PublicJwk<Kms.Ed25519PublicJwk>[],\n senderKey?: Kms.PublicJwk<Kms.Ed25519PublicJwk> | null\n ): Promise<DidCommEncryptedMessage> {\n const kms = agentContext.dependencyManager.resolve(Kms.KeyManagementApi)\n // Generally we would never generate the content encryption key outside of the KMS\n // However how DIDcommV1 is specified to calcualte the aad we need the encrypted content\n // encryption key, and thus we can't use the normal combined key agrement + encryption flow\n const contentEncryptionKey = kms.randomBytes({ length: 32 })\n\n const recipients: Array<{\n encrypted_key: string\n header: {\n kid: string\n\n // In case of Authcrypt\n sender?: string\n iv?: string\n }\n }> = []\n\n for (const recipientKey of recipientKeys) {\n let encryptedSender: string | undefined\n\n if (senderKey) {\n // Encrypt the sender\n const { encrypted } = await kms.encrypt({\n key: {\n keyAgreement: {\n algorithm: 'ECDH-HSALSA20',\n // DIDComm v1 uses Ed25519 keys but encryption happens with X25519 keys\n externalPublicJwk: recipientKey.convertTo(Kms.X25519PublicJwk).toJson(),\n },\n },\n encryption: {\n algorithm: 'XSALSA20-POLY1305',\n },\n data: TypedArrayEncoder.fromUtf8String(TypedArrayEncoder.toBase58(senderKey.publicKey.publicKey)),\n })\n\n encryptedSender = TypedArrayEncoder.toBase64Url(encrypted)\n }\n\n // Encrypt the key\n const { encrypted, iv } = await kms.encrypt({\n key: {\n keyAgreement: {\n algorithm: 'ECDH-HSALSA20',\n externalPublicJwk: recipientKey.convertTo(Kms.X25519PublicJwk).toJson(),\n\n // Sender key only needed for Authcrypt\n keyId: senderKey?.keyId,\n },\n },\n data: contentEncryptionKey,\n encryption: {\n algorithm: 'XSALSA20-POLY1305',\n },\n })\n\n recipients.push({\n encrypted_key: TypedArrayEncoder.toBase64Url(encrypted),\n header: {\n kid: TypedArrayEncoder.toBase58(recipientKey.publicKey.publicKey),\n iv: iv ? TypedArrayEncoder.toBase64Url(iv) : undefined,\n sender: encryptedSender,\n },\n })\n }\n\n const protectedString = JsonEncoder.toBase64Url({\n enc: 'xchacha20poly1305_ietf',\n typ: 'JWM/1.0',\n alg: senderKey ? 'Authcrypt' : 'Anoncrypt',\n recipients,\n })\n\n // Perofrm the actual encryption\n const { encrypted, iv, tag } = await kms.encrypt({\n encryption: {\n algorithm: 'C20P',\n aad: TypedArrayEncoder.fromUtf8String(protectedString),\n },\n data: JsonEncoder.toUint8Array(message),\n key: {\n privateJwk: {\n kty: 'oct',\n k: TypedArrayEncoder.toBase64Url(contentEncryptionKey),\n },\n },\n })\n\n if (!iv || !tag) {\n throw new CredoError(\"Expected 'iv' and 'tag' to be defined\")\n }\n\n return {\n ciphertext: TypedArrayEncoder.toBase64Url(encrypted),\n iv: TypedArrayEncoder.toBase64Url(iv),\n tag: TypedArrayEncoder.toBase64Url(tag),\n protected: protectedString,\n } satisfies DidCommEncryptedMessage\n }\n\n private async decryptDidcommV1Message(agentContext: AgentContext, encryptedMessage: DidCommEncryptedMessage) {\n const kms = agentContext.dependencyManager.resolve(Kms.KeyManagementApi)\n const protectedJson = JsonEncoder.fromBase64Url(encryptedMessage.protected)\n\n const alg = protectedJson.alg as 'Anoncrypt' | 'Authcrypt'\n if (alg !== 'Anoncrypt' && alg !== 'Authcrypt') {\n throw new CredoError(`Unsupported pack algorithm: ${alg}`)\n }\n\n if (protectedJson.enc !== 'xchacha20poly1305_ietf') {\n throw new CredoError(`Unsupported enc algorithm: ${protectedJson.enc}`)\n }\n\n let recipientKey: Kms.PublicJwk<Kms.Ed25519PublicJwk> | null = null\n let recipient: {\n header: {\n kid: string\n iv?: string\n sender?: string\n }\n encrypted_key: string\n } | null = null\n\n for (const _recipient of protectedJson.recipients) {\n recipientKey = await this.extractOurRecipientKeyWithKeyId(agentContext, _recipient)\n\n if (recipientKey) {\n recipient = _recipient\n }\n }\n\n if (!recipientKey || !recipient) {\n throw new CredoError('No corresponding recipient key found')\n }\n\n if (alg === 'Authcrypt' && (!recipient.header.sender || !recipient.header.iv)) {\n throw new CredoError('Sender and iv header values are required for Authcrypt')\n }\n\n let senderPublicJwk: Kms.PublicJwk<Kms.Ed25519PublicJwk> | undefined\n if (recipient.header.sender) {\n const { data } = await kms.decrypt({\n key: {\n keyAgreement: {\n algorithm: 'ECDH-HSALSA20',\n keyId: recipientKey.keyId,\n },\n },\n decryption: {\n algorithm: 'XSALSA20-POLY1305',\n },\n encrypted: TypedArrayEncoder.fromBase64Url(recipient.header.sender),\n })\n\n senderPublicJwk = Kms.PublicJwk.fromPublicKey({\n crv: 'Ed25519',\n kty: 'OKP',\n publicKey: TypedArrayEncoder.fromBase58(TypedArrayEncoder.toUtf8String(data)),\n })\n }\n\n // Perofrm the actual decryption\n const { data: contentEncryptionKey } = await kms.decrypt({\n decryption: {\n algorithm: 'XSALSA20-POLY1305',\n iv: recipient.header.iv ? TypedArrayEncoder.fromBase64Url(recipient.header.iv) : undefined,\n },\n encrypted: TypedArrayEncoder.fromBase64Url(recipient.encrypted_key),\n key: {\n keyAgreement: {\n algorithm: 'ECDH-HSALSA20',\n keyId: recipientKey.keyId,\n\n // Optionally we have a sender\n externalPublicJwk: senderPublicJwk?.convertTo(Kms.X25519PublicJwk).toJson(),\n },\n },\n })\n\n const { data: message } = await kms.decrypt({\n decryption: {\n algorithm: 'C20P',\n iv: TypedArrayEncoder.fromBase64Url(encryptedMessage.iv),\n tag: TypedArrayEncoder.fromBase64Url(encryptedMessage.tag),\n aad: TypedArrayEncoder.fromUtf8String(encryptedMessage.protected),\n },\n key: {\n privateJwk: {\n kty: 'oct',\n k: TypedArrayEncoder.toBase64Url(contentEncryptionKey),\n },\n },\n encrypted: TypedArrayEncoder.fromBase64Url(encryptedMessage.ciphertext),\n })\n\n return {\n plaintextMessage: JsonEncoder.fromUint8Array(message),\n senderKey: senderPublicJwk,\n recipientKey,\n }\n }\n\n public async packMessage(\n agentContext: AgentContext,\n payload: DidCommMessage,\n keys: EnvelopeKeys\n ): Promise<DidCommEncryptedMessage> {\n const didcommConfig = agentContext.dependencyManager.resolve(DidCommModuleConfig)\n\n const { routingKeys, senderKey } = keys\n let recipientKeys = keys.recipientKeys\n\n // pass whether we want to use legacy did sov prefix\n const message = payload.toJSON({ useDidSovPrefixWhereAllowed: didcommConfig.useDidSovPrefixWhereAllowed })\n\n this.logger.debug(`Pack outbound message ${message['@type']}`)\n\n let encryptedMessage = await this.encryptDidcommV1Message(agentContext, message, recipientKeys, senderKey)\n\n // If the message has routing keys (mediator) pack for each mediator\n for (const routingKey of routingKeys) {\n const forwardMessage = new DidCommForwardMessage({\n // Forward to first recipient key\n to: TypedArrayEncoder.toBase58(recipientKeys[0].publicKey.publicKey),\n message: encryptedMessage,\n })\n recipientKeys = [routingKey]\n this.logger.debug('Forward message created', forwardMessage)\n\n const forwardJson = forwardMessage.toJSON({\n useDidSovPrefixWhereAllowed: didcommConfig.useDidSovPrefixWhereAllowed,\n })\n\n // Forward messages are anon packed\n encryptedMessage = await this.encryptDidcommV1Message(agentContext, forwardJson, [routingKey])\n }\n\n this.logger.debug(`Packed outbound message ${message['@type']}`, {\n routingKeys: routingKeys.map((routingKey) => routingKey.fingerprint),\n })\n\n return encryptedMessage\n }\n\n public async unpackMessage(\n agentContext: AgentContext,\n encryptedMessage: DidCommEncryptedMessage\n ): Promise<DecryptedDidCommMessageContext> {\n const decryptedMessage = await this.decryptDidcommV1Message(agentContext, encryptedMessage)\n return decryptedMessage\n }\n\n private async extractOurRecipientKeyWithKeyId(\n agentContext: AgentContext,\n recipient: {\n header: {\n kid: string\n }\n }\n ): Promise<Kms.PublicJwk<Kms.Ed25519PublicJwk> | null> {\n const kms = agentContext.resolve(Kms.KeyManagementApi)\n\n const publicKey = Kms.PublicJwk.fromPublicKey({\n kty: 'OKP',\n crv: 'Ed25519',\n publicKey: TypedArrayEncoder.fromBase58(recipient.header.kid),\n })\n\n // We need to find the associated did based on the recipient key\n // so we can extract the kms key id from the did record.\n try {\n const { didDocument, keys } = await this.didcommDocumentService.resolveCreatedDidDocumentWithKeysByRecipientKey(\n agentContext,\n publicKey\n )\n\n const verificationMethod = didDocument.findVerificationMethodByPublicKey(publicKey)\n const kmsKeyId = keys?.find(({ didDocumentRelativeKeyId }) =>\n verificationMethod.id.endsWith(didDocumentRelativeKeyId)\n )?.kmsKeyId\n\n agentContext.config.logger.debug(\n `Found did '${didDocument.id}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`\n )\n\n publicKey.keyId = kmsKeyId ?? publicKey.legacyKeyId\n return publicKey\n } catch (error) {\n // If there is no did record yet, we first look at the mediator routing record\n const mediatorRoutingRepository = agentContext.dependencyManager.resolve(DidCommMediatorRoutingRepository)\n if (error instanceof RecordNotFoundError) {\n const mediatorRoutingRecord = await mediatorRoutingRepository.findSingleByQuery(agentContext, {\n routingKeyFingerprints: [publicKey.fingerprint],\n })\n\n if (mediatorRoutingRecord) {\n agentContext.config.logger.debug(\n `Found mediator routing record with id '${mediatorRoutingRecord.id}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`\n )\n\n const routingKey = mediatorRoutingRecord.routingKeysWithKeyId.find((routingKey) =>\n publicKey.equals(routingKey)\n )\n\n // This should not happen as we only get here if the tag matches\n if (!routingKey) {\n throw new CredoError(\n `Expected to find key with fingerprint '${publicKey.fingerprint}' in routing keys of mediator routing record '${mediatorRoutingRecord.id}'`\n )\n }\n\n if (routingKey) {\n return routingKey\n }\n }\n\n // If there is no mediator routing record, we look at the out of band record\n const outOfBandRepository = agentContext.dependencyManager.resolve(DidCommOutOfBandRepository)\n const outOfBandRecord = await outOfBandRepository.findSingleByQuery(agentContext, {\n $or: [\n // In case we are the creator of the out of band invitation we can query based on\n // out of band invitation recipient key fingerprint\n {\n role: DidCommOutOfBandRole.Sender,\n recipientKeyFingerprints: [publicKey.fingerprint],\n },\n // In case we are the receiver of the out of band invitation we need to query\n // for the recipient routing fingerprint\n {\n role: DidCommOutOfBandRole.Receiver,\n recipientRoutingKeyFingerprint: publicKey.fingerprint,\n },\n ],\n })\n\n if (outOfBandRecord?.role === DidCommOutOfBandRole.Sender) {\n agentContext.config.logger.debug(\n `Found out of band record with id '${outOfBandRecord.id}' and role '${outOfBandRecord.role}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`\n )\n\n for (const service of outOfBandRecord.outOfBandInvitation.getInlineServices()) {\n const resolvedService = getResolvedDidcommServiceWithSigningKeyId(\n service,\n outOfBandRecord.invitationInlineServiceKeys\n )\n const _recipientKey = resolvedService.recipientKeys.find((recipientKey) => recipientKey.equals(publicKey))\n\n if (_recipientKey) {\n return _recipientKey\n }\n }\n } else if (outOfBandRecord?.role === DidCommOutOfBandRole.Receiver) {\n agentContext.config.logger.debug(\n `Found out of band record with id '${outOfBandRecord.id}' and role '${outOfBandRecord.role}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`\n )\n\n // If there is still no key we need to look at the metadata\n const recipieintRouting = outOfBandRecord.metadata.get(DidCommOutOfBandRecordMetadataKeys.RecipientRouting)\n if (recipieintRouting?.recipientKeyFingerprint === publicKey.fingerprint) {\n publicKey.keyId = recipieintRouting.recipientKeyId ?? publicKey.legacyKeyId\n return publicKey\n }\n }\n\n // If there is no did found, no out of band record found, and not mediator routing record\n // this is either:\n // - a connectionless oob exchange initiated before we added key ids.\n // - a message for a mediator, where the mediator routing record is created before we added key ids\n //\n // We will check if the public key exists based on the base58 encoded public key. We can remove this flow once we create a migration\n // that optimizes this flow.\n const kmsJwkPublic = await kms\n .getPublicKey({\n keyId: publicKey.legacyKeyId,\n })\n .catch((error) => {\n if (error instanceof Kms.KeyManagementKeyNotFoundError) return null\n throw error\n })\n if (kmsJwkPublic) {\n agentContext.config.logger.debug(\n `Found public key with legacy key id '${publicKey.legacyKeyId}' for recipient key '${publicKey.fingerprint}' for incoming didcomm message`\n )\n\n publicKey.keyId = publicKey.legacyKeyId\n return publicKey\n }\n }\n }\n\n // no match found\n return null\n }\n}\n\nexport interface DecryptedDidCommMessageContext {\n plaintextMessage: DidCommPlaintextMessage\n senderKey?: Kms.PublicJwk<Kms.Ed25519PublicJwk>\n recipientKey: Kms.PublicJwk<Kms.Ed25519PublicJwk>\n}\n"],"mappings":"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"}
|