@credo-ts/didcomm 0.6.0-pr-2392-20251010173905 → 0.6.0-pr-2457-20251016083534
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/BaseDidCommMessage.d.mts.map +1 -1
- package/build/BaseDidCommMessage.d.ts.map +1 -1
- package/build/BaseDidCommMessage.js +3 -3
- package/build/BaseDidCommMessage.mjs +2 -2
- package/build/BaseDidCommMessage.mjs.map +1 -1
- package/build/DidCommApi.d.mts +6 -10
- package/build/DidCommApi.d.mts.map +1 -1
- package/build/DidCommApi.d.ts +6 -10
- package/build/DidCommApi.d.ts.map +1 -1
- package/build/DidCommApi.js +16 -21
- package/build/DidCommApi.mjs +16 -21
- package/build/DidCommApi.mjs.map +1 -1
- package/build/DidCommDispatcher.d.mts.map +1 -1
- package/build/DidCommDispatcher.d.ts.map +1 -1
- package/build/DidCommDispatcher.js +7 -7
- package/build/DidCommDispatcher.mjs +7 -7
- package/build/DidCommDispatcher.mjs.map +1 -1
- package/build/DidCommEnvelopeService.d.mts.map +1 -1
- package/build/DidCommEnvelopeService.d.ts.map +1 -1
- package/build/DidCommEnvelopeService.js +5 -5
- package/build/DidCommEnvelopeService.mjs +5 -5
- package/build/DidCommEnvelopeService.mjs.map +1 -1
- package/build/DidCommFeatureRegistry.d.mts.map +1 -1
- package/build/DidCommFeatureRegistry.d.ts.map +1 -1
- package/build/DidCommFeatureRegistry.mjs.map +1 -1
- package/build/DidCommMessage.d.mts +1 -1
- package/build/DidCommMessage.d.mts.map +1 -1
- package/build/DidCommMessage.d.ts +1 -1
- package/build/DidCommMessage.d.ts.map +1 -1
- package/build/DidCommMessage.js +2 -2
- package/build/DidCommMessage.mjs +2 -2
- package/build/DidCommMessage.mjs.map +1 -1
- package/build/DidCommMessageHandlerRegistry.d.mts.map +1 -1
- package/build/DidCommMessageHandlerRegistry.d.ts.map +1 -1
- package/build/DidCommMessageHandlerRegistry.mjs.map +1 -1
- package/build/DidCommMessageReceiver.d.mts +1 -6
- package/build/DidCommMessageReceiver.d.mts.map +1 -1
- package/build/DidCommMessageReceiver.d.ts +1 -6
- package/build/DidCommMessageReceiver.d.ts.map +1 -1
- package/build/DidCommMessageReceiver.js +9 -21
- package/build/DidCommMessageReceiver.mjs +9 -21
- package/build/DidCommMessageReceiver.mjs.map +1 -1
- package/build/DidCommMessageSender.d.mts +1 -6
- package/build/DidCommMessageSender.d.mts.map +1 -1
- package/build/DidCommMessageSender.d.ts +1 -6
- package/build/DidCommMessageSender.d.ts.map +1 -1
- package/build/DidCommMessageSender.js +17 -29
- package/build/DidCommMessageSender.mjs +17 -29
- package/build/DidCommMessageSender.mjs.map +1 -1
- package/build/DidCommModule.d.mts +1 -1
- package/build/DidCommModule.d.mts.map +1 -1
- package/build/DidCommModule.d.ts +1 -1
- package/build/DidCommModule.d.ts.map +1 -1
- package/build/DidCommModule.js +9 -12
- package/build/DidCommModule.mjs +9 -12
- package/build/DidCommModule.mjs.map +1 -1
- package/build/DidCommModuleConfig.d.mts +14 -2
- package/build/DidCommModuleConfig.d.mts.map +1 -1
- package/build/DidCommModuleConfig.d.ts +14 -2
- package/build/DidCommModuleConfig.d.ts.map +1 -1
- package/build/DidCommModuleConfig.js +15 -1
- package/build/DidCommModuleConfig.mjs +15 -1
- package/build/DidCommModuleConfig.mjs.map +1 -1
- package/build/DidCommTransportService.d.mts.map +1 -1
- package/build/DidCommTransportService.d.ts.map +1 -1
- package/build/DidCommTransportService.js +1 -1
- package/build/DidCommTransportService.mjs +1 -1
- package/build/DidCommTransportService.mjs.map +1 -1
- package/build/decorators/ack/AckDecorator.js +1 -1
- package/build/decorators/ack/AckDecorator.mjs +1 -1
- package/build/decorators/ack/AckDecoratorExtension.js +3 -3
- package/build/decorators/ack/AckDecoratorExtension.mjs +2 -2
- package/build/decorators/ack/AckDecoratorExtension.mjs.map +1 -1
- package/build/decorators/attachment/AttachmentExtension.js +3 -3
- package/build/decorators/attachment/AttachmentExtension.mjs +2 -2
- package/build/decorators/attachment/AttachmentExtension.mjs.map +1 -1
- package/build/decorators/attachment/DidCommAttachment.js +3 -3
- package/build/decorators/attachment/DidCommAttachment.mjs +2 -2
- package/build/decorators/attachment/DidCommAttachment.mjs.map +1 -1
- package/build/decorators/l10n/L10nDecoratorExtension.js +3 -3
- package/build/decorators/l10n/L10nDecoratorExtension.mjs +2 -2
- package/build/decorators/l10n/L10nDecoratorExtension.mjs.map +1 -1
- package/build/decorators/service/ServiceDecorator.js +1 -1
- package/build/decorators/service/ServiceDecorator.mjs +1 -1
- package/build/decorators/service/ServiceDecoratorExtension.js +3 -3
- package/build/decorators/service/ServiceDecoratorExtension.mjs +2 -2
- package/build/decorators/service/ServiceDecoratorExtension.mjs.map +1 -1
- package/build/decorators/signature/SignatureDecorator.js +4 -4
- package/build/decorators/signature/SignatureDecorator.mjs +3 -3
- package/build/decorators/thread/ThreadDecorator.js +3 -3
- package/build/decorators/thread/ThreadDecorator.mjs +2 -2
- package/build/decorators/thread/ThreadDecoratorExtension.js +3 -3
- package/build/decorators/thread/ThreadDecoratorExtension.mjs +2 -2
- package/build/decorators/thread/ThreadDecoratorExtension.mjs.map +1 -1
- package/build/decorators/timing/TimingDecorator.js +3 -3
- package/build/decorators/timing/TimingDecorator.mjs +2 -2
- package/build/decorators/timing/TimingDecoratorExtension.js +3 -3
- package/build/decorators/timing/TimingDecoratorExtension.mjs +2 -2
- package/build/decorators/timing/TimingDecoratorExtension.mjs.map +1 -1
- package/build/decorators/transport/TransportDecorator.js +3 -3
- package/build/decorators/transport/TransportDecorator.mjs +2 -2
- package/build/decorators/transport/TransportDecoratorExtension.js +3 -3
- package/build/decorators/transport/TransportDecoratorExtension.mjs +2 -2
- package/build/decorators/transport/TransportDecoratorExtension.mjs.map +1 -1
- package/build/errors/MessageSendingError.d.mts.map +1 -1
- package/build/errors/MessageSendingError.d.ts.map +1 -1
- package/build/errors/MessageSendingError.mjs.map +1 -1
- package/build/errors/index.js +1 -1
- package/build/errors/index.mjs +1 -1
- package/build/getDidCommOutboundMessageContext.d.mts.map +1 -1
- package/build/getDidCommOutboundMessageContext.d.ts.map +1 -1
- package/build/getDidCommOutboundMessageContext.js +6 -6
- package/build/getDidCommOutboundMessageContext.mjs +6 -6
- package/build/getDidCommOutboundMessageContext.mjs.map +1 -1
- package/build/handlers/DidCommMessageHandlerMiddleware.mjs.map +1 -1
- package/build/index.d.mts +99 -99
- package/build/index.d.ts +99 -99
- package/build/index.js +114 -112
- package/build/index.mjs +108 -108
- package/build/messages/common/DidCommAckMessage.js +1 -1
- package/build/messages/common/DidCommAckMessage.mjs +1 -1
- package/build/messages/problem-reports/DidCommProblemReportMessage.js +3 -3
- package/build/messages/problem-reports/DidCommProblemReportMessage.mjs +2 -2
- package/build/models/DidCommInboundMessageContext.d.mts.map +1 -1
- package/build/models/DidCommInboundMessageContext.d.ts.map +1 -1
- package/build/models/DidCommInboundMessageContext.mjs.map +1 -1
- package/build/models/DidCommOutboundMessageContext.d.mts.map +1 -1
- package/build/models/DidCommOutboundMessageContext.d.ts.map +1 -1
- package/build/models/DidCommOutboundMessageContext.mjs.map +1 -1
- package/build/models/features/DidCommFeature.js +3 -3
- package/build/models/features/DidCommFeature.mjs +2 -2
- package/build/models/features/DidCommFeatureQuery.js +3 -3
- package/build/models/features/DidCommFeatureQuery.mjs +2 -2
- package/build/models/features/DidCommProtocol.d.mts.map +1 -1
- package/build/models/features/DidCommProtocol.d.ts.map +1 -1
- package/build/models/features/DidCommProtocol.js +1 -1
- package/build/models/features/DidCommProtocol.mjs +1 -1
- package/build/models/features/DidCommProtocol.mjs.map +1 -1
- package/build/models/index.js +3 -3
- package/build/models/index.mjs +3 -3
- package/build/modules/basic-messages/DidCommBasicMessagesApi.d.mts +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesApi.d.mts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesApi.d.ts +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesApi.d.ts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesApi.js +2 -2
- package/build/modules/basic-messages/DidCommBasicMessagesApi.mjs +2 -2
- package/build/modules/basic-messages/DidCommBasicMessagesApi.mjs.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesModule.d.mts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesModule.d.ts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesModule.js +2 -2
- package/build/modules/basic-messages/DidCommBasicMessagesModule.mjs +2 -2
- package/build/modules/basic-messages/DidCommBasicMessagesModule.mjs.map +1 -1
- package/build/modules/basic-messages/handlers/BasicMessageHandler.mjs.map +1 -1
- package/build/modules/basic-messages/index.js +2 -2
- package/build/modules/basic-messages/index.mjs +2 -2
- package/build/modules/basic-messages/messages/DidCommBasicMessage.js +3 -3
- package/build/modules/basic-messages/messages/DidCommBasicMessage.mjs +2 -2
- package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.d.mts.map +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.d.ts.map +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.mjs.map +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.js +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.mjs +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.mjs.map +1 -1
- package/build/modules/basic-messages/services/DidCommBasicMessageService.d.mts.map +1 -1
- package/build/modules/basic-messages/services/DidCommBasicMessageService.d.ts.map +1 -1
- package/build/modules/basic-messages/services/DidCommBasicMessageService.js +4 -4
- package/build/modules/basic-messages/services/DidCommBasicMessageService.mjs +4 -4
- package/build/modules/basic-messages/services/DidCommBasicMessageService.mjs.map +1 -1
- package/build/modules/connections/DidCommConnectionsApi.d.mts +3 -3
- package/build/modules/connections/DidCommConnectionsApi.d.mts.map +1 -1
- package/build/modules/connections/DidCommConnectionsApi.d.ts +3 -3
- package/build/modules/connections/DidCommConnectionsApi.d.ts.map +1 -1
- package/build/modules/connections/DidCommConnectionsApi.js +5 -5
- package/build/modules/connections/DidCommConnectionsApi.mjs +5 -5
- package/build/modules/connections/DidCommConnectionsApi.mjs.map +1 -1
- package/build/modules/connections/DidCommConnectionsModule.d.mts.map +1 -1
- package/build/modules/connections/DidCommConnectionsModule.d.ts.map +1 -1
- package/build/modules/connections/DidCommConnectionsModule.js +20 -20
- package/build/modules/connections/DidCommConnectionsModule.mjs +20 -20
- package/build/modules/connections/DidCommConnectionsModule.mjs.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.d.mts +2 -4
- package/build/modules/connections/DidExchangeProtocol.d.mts.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.d.ts +2 -4
- package/build/modules/connections/DidExchangeProtocol.d.ts.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.js +11 -15
- package/build/modules/connections/DidExchangeProtocol.mjs +11 -15
- package/build/modules/connections/DidExchangeProtocol.mjs.map +1 -1
- package/build/modules/connections/DidExchangeStateMachine.js +1 -1
- package/build/modules/connections/DidExchangeStateMachine.mjs +1 -1
- package/build/modules/connections/DidExchangeStateMachine.mjs.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.mts +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.mts.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.ts +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.ts.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.mjs.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.mts +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.mts.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommAckMessageHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommAckMessageHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommAckMessageHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.mts +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.js +4 -4
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.mjs +4 -4
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.js +3 -3
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.mjs +3 -3
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.mts +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.js +4 -4
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.mjs +4 -4
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.mts +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.js +4 -4
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.mjs +4 -4
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateAckHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateAckHandler.d.ts.map +1 -1
- 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.d.ts +3 -5
- package/build/modules/connections/handlers/DidCommDidRotateHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateHandler.js +1 -2
- 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.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommHangupHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommHangupHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommHangupHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/index.js +5 -5
- package/build/modules/connections/handlers/index.mjs +5 -5
- package/build/modules/connections/index.js +23 -23
- package/build/modules/connections/index.mjs +23 -23
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.d.ts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.js +4 -4
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.mjs +4 -4
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionProblemReportMessage.js +1 -1
- package/build/modules/connections/messages/DidCommConnectionProblemReportMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.d.ts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.js +4 -4
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.mjs +3 -3
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionResponseMessage.js +3 -3
- package/build/modules/connections/messages/DidCommConnectionResponseMessage.mjs +2 -2
- package/build/modules/connections/messages/DidCommDidExchangeCompleteMessage.js +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeCompleteMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeProblemReportMessage.js +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeProblemReportMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeRequestMessage.js +4 -4
- package/build/modules/connections/messages/DidCommDidExchangeRequestMessage.mjs +3 -3
- package/build/modules/connections/messages/DidCommDidExchangeResponseMessage.js +4 -4
- package/build/modules/connections/messages/DidCommDidExchangeResponseMessage.mjs +3 -3
- package/build/modules/connections/messages/DidCommDidRotateAckMessage.js +1 -1
- package/build/modules/connections/messages/DidCommDidRotateAckMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommDidRotateMessage.js +3 -3
- package/build/modules/connections/messages/DidCommDidRotateMessage.mjs +2 -2
- package/build/modules/connections/messages/DidCommDidRotateProblemReportMessage.js +1 -1
- package/build/modules/connections/messages/DidCommDidRotateProblemReportMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommHangupMessage.js +1 -1
- package/build/modules/connections/messages/DidCommHangupMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommTrustPingMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingMessage.d.ts.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingMessage.js +3 -3
- package/build/modules/connections/messages/DidCommTrustPingMessage.mjs +2 -2
- package/build/modules/connections/messages/DidCommTrustPingMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.d.ts.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.js +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.mjs.map +1 -1
- package/build/modules/connections/messages/index.js +7 -7
- package/build/modules/connections/messages/index.mjs +7 -7
- package/build/modules/connections/models/DidCommConnection.js +3 -3
- package/build/modules/connections/models/DidCommConnection.mjs +2 -2
- package/build/modules/connections/models/did/DidDoc.d.mts.map +1 -1
- package/build/modules/connections/models/did/DidDoc.d.ts.map +1 -1
- package/build/modules/connections/models/did/DidDoc.js +3 -3
- package/build/modules/connections/models/did/DidDoc.mjs +2 -2
- package/build/modules/connections/models/did/DidDoc.mjs.map +1 -1
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js +1 -1
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.mjs +1 -1
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js +3 -3
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.mjs +2 -2
- package/build/modules/connections/models/did/authentication/index.d.mts.map +1 -1
- package/build/modules/connections/models/did/authentication/index.d.ts.map +1 -1
- package/build/modules/connections/models/did/authentication/index.mjs.map +1 -1
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js +3 -3
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.mjs +2 -2
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js +3 -3
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.mjs +2 -2
- package/build/modules/connections/models/did/publicKey/PublicKey.js +1 -1
- package/build/modules/connections/models/did/publicKey/PublicKey.mjs +1 -1
- package/build/modules/connections/models/did/publicKey/RsaSig2018.js +3 -3
- package/build/modules/connections/models/did/publicKey/RsaSig2018.mjs +2 -2
- package/build/modules/connections/models/did/publicKey/index.mjs.map +1 -1
- package/build/modules/connections/models/index.js +1 -1
- package/build/modules/connections/models/index.mjs +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.d.mts +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.d.mts.map +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.d.ts +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.d.ts.map +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.js +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.mjs +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.mjs.map +1 -1
- package/build/modules/connections/repository/DidCommConnectionRepository.js +2 -2
- package/build/modules/connections/repository/DidCommConnectionRepository.mjs +2 -2
- package/build/modules/connections/repository/DidCommConnectionRepository.mjs.map +1 -1
- package/build/modules/connections/services/DidCommConnectionService.d.mts +3 -3
- package/build/modules/connections/services/DidCommConnectionService.d.mts.map +1 -1
- package/build/modules/connections/services/DidCommConnectionService.d.ts +3 -3
- package/build/modules/connections/services/DidCommConnectionService.d.ts.map +1 -1
- package/build/modules/connections/services/DidCommConnectionService.js +13 -13
- package/build/modules/connections/services/DidCommConnectionService.mjs +13 -13
- package/build/modules/connections/services/DidCommConnectionService.mjs.map +1 -1
- package/build/modules/connections/services/DidCommDidRotateService.d.mts +2 -2
- package/build/modules/connections/services/DidCommDidRotateService.d.mts.map +1 -1
- package/build/modules/connections/services/DidCommDidRotateService.d.ts +2 -2
- package/build/modules/connections/services/DidCommDidRotateService.d.ts.map +1 -1
- package/build/modules/connections/services/DidCommDidRotateService.js +8 -8
- package/build/modules/connections/services/DidCommDidRotateService.mjs +8 -8
- package/build/modules/connections/services/DidCommDidRotateService.mjs.map +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.d.mts.map +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.d.ts.map +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.js +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.mjs +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.mjs.map +1 -1
- package/build/modules/connections/services/helpers.js +1 -1
- package/build/modules/connections/services/helpers.mjs +1 -1
- package/build/modules/connections/services/helpers.mjs.map +1 -1
- package/build/modules/credentials/DidCommCredentialsApi.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsApi.d.ts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsApi.js +2 -2
- package/build/modules/credentials/DidCommCredentialsApi.mjs +2 -2
- package/build/modules/credentials/DidCommCredentialsApi.mjs.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModule.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModule.d.ts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModule.js +2 -2
- package/build/modules/credentials/DidCommCredentialsModule.mjs +2 -2
- package/build/modules/credentials/DidCommCredentialsModule.mjs.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModuleConfig.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModuleConfig.d.ts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModuleConfig.mjs.map +1 -1
- package/build/modules/credentials/formats/DidCommCredentialFormatServiceOptions.d.mts +1 -1
- package/build/modules/credentials/formats/DidCommCredentialFormatServiceOptions.d.ts +1 -1
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js +3 -3
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.mjs +2 -2
- package/build/modules/credentials/formats/index.js +2 -2
- package/build/modules/credentials/formats/index.mjs +2 -2
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetail.js +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetail.mjs +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.js +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.mjs +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.d.mts.map +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.d.ts.map +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.mjs.map +1 -1
- package/build/modules/credentials/index.js +5 -5
- package/build/modules/credentials/index.mjs +5 -5
- package/build/modules/credentials/models/DidCommCredentialFormatSpec.js +3 -3
- package/build/modules/credentials/models/DidCommCredentialFormatSpec.mjs +2 -2
- package/build/modules/credentials/models/DidCommCredentialPreviewAttribute.js +3 -3
- package/build/modules/credentials/models/DidCommCredentialPreviewAttribute.mjs +2 -2
- package/build/modules/credentials/models/DidCommRevocationNotification.js +1 -1
- package/build/modules/credentials/models/DidCommRevocationNotification.mjs +1 -1
- package/build/modules/credentials/models/index.js +3 -3
- package/build/modules/credentials/models/index.mjs +3 -3
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.mts +1 -1
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.mts.map +1 -1
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.ts +1 -1
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.ts.map +1 -1
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.mjs.map +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocol.d.mts +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocol.d.ts +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocolOptions.d.mts +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocolOptions.d.ts +1 -1
- package/build/modules/credentials/protocol/index.js +1 -1
- package/build/modules/credentials/protocol/index.mjs +1 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV1Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.js +4 -4
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.mjs +3 -3
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.js +4 -4
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.mjs +3 -3
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.mts +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.mts.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.ts +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.ts.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.js +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.mjs +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.js +2 -2
- package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.mjs +2 -2
- package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.mts +2 -2
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.ts +2 -2
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.ts.map +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.js +5 -5
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.mjs +5 -5
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.mts +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.ts +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.ts.map +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommIssueCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.d.ts.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommProposeCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommRequestCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/index.js +1 -1
- package/build/modules/credentials/protocol/v2/handlers/index.mjs +1 -1
- package/build/modules/credentials/protocol/v2/index.js +1 -1
- package/build/modules/credentials/protocol/v2/index.mjs +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2AckMessage.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2AckMessage.mjs +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.mts +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.ts +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.ts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.js +3 -3
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.mjs +2 -2
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.mjs +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommIssueCredentialV2Message.js +4 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommIssueCredentialV2Message.mjs +3 -3
- package/build/modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.js +4 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.mjs +3 -3
- package/build/modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.js +4 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.mjs +3 -3
- package/build/modules/credentials/protocol/v2/messages/DidCommRequestCredentialV2Message.js +4 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommRequestCredentialV2Message.mjs +3 -3
- package/build/modules/credentials/protocol/v2/messages/index.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/index.mjs +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.mts +2 -2
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.mts.map +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.ts +2 -2
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.ts.map +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.js +2 -2
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.mjs +2 -2
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.mjs.map +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.js +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.mjs +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.mjs.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.mts +3 -3
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.mts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.ts +3 -3
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.ts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.js +3 -3
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.mjs +3 -3
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.mjs.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesEvents.d.mts +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesEvents.d.ts +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.d.mts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.d.ts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.js +2 -2
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.mjs +2 -2
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.mts +2 -2
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.ts +2 -2
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.ts.map +1 -1
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.js +4 -4
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.mjs +4 -4
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/handlers/DidCommFeaturesQueryMessageHandler.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.js +3 -3
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.mjs +2 -2
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesQueryMessage.js +1 -1
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesQueryMessage.mjs +1 -1
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.mts +2 -2
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.ts +2 -2
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.ts.map +1 -1
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.js +2 -2
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.mjs +2 -2
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v2/handlers/DidCommFeaturesQueriesMessageHandler.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.js +3 -3
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.mjs +2 -2
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.d.ts.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.js +3 -3
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.mjs +2 -2
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.mjs.map +1 -1
- package/build/modules/discover-features/services/DidCommDiscoverFeaturesService.d.mts +1 -1
- package/build/modules/discover-features/services/DidCommDiscoverFeaturesService.d.ts +1 -1
- package/build/modules/index.js +66 -66
- package/build/modules/index.mjs +66 -66
- package/build/modules/message-pickup/DidCommMessagePickupApi.d.mts +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupApi.d.mts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupApi.d.ts +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupApi.d.ts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupApi.js +4 -4
- package/build/modules/message-pickup/DidCommMessagePickupApi.mjs +4 -4
- package/build/modules/message-pickup/DidCommMessagePickupApi.mjs.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.d.mts +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.d.mts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.d.ts +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.d.ts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.mjs.map +1 -1
- package/build/modules/message-pickup/index.js +1 -1
- package/build/modules/message-pickup/index.mjs +1 -1
- package/build/modules/message-pickup/protocol/DidCommBaseMessagePickupProtocol.d.mts +1 -1
- package/build/modules/message-pickup/protocol/DidCommBaseMessagePickupProtocol.d.ts +1 -1
- package/build/modules/message-pickup/protocol/DidCommMessagePickupProtocol.d.mts +1 -1
- package/build/modules/message-pickup/protocol/DidCommMessagePickupProtocol.d.ts +1 -1
- package/build/modules/message-pickup/protocol/index.js +1 -1
- package/build/modules/message-pickup/protocol/index.mjs +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.mts +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.ts +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.ts.map +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.js +3 -3
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.mjs +3 -3
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v1/handlers/DidCommBatchHandler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchMessage.js +4 -4
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchMessage.mjs +3 -3
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.js +3 -3
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.mjs +2 -2
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.mts +2 -2
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.ts +2 -2
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.ts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.js +5 -5
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.mjs +5 -5
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommMessageDeliveryV2Handler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommStatusV2Handler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/index.js +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/index.mjs +1 -1
- package/build/modules/message-pickup/protocol/v2/index.js +1 -1
- package/build/modules/message-pickup/protocol/v2/index.mjs +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommDeliveryRequestV2Message.js +4 -4
- package/build/modules/message-pickup/protocol/v2/messages/DidCommDeliveryRequestV2Message.mjs +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.js +4 -4
- package/build/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.mjs +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.d.ts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.js +4 -4
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.mjs +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessagesReceivedV2Message.js +4 -4
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessagesReceivedV2Message.mjs +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusRequestV2Message.js +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusRequestV2Message.mjs +2 -2
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.js +4 -4
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.mjs +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/index.js +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/index.mjs +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.d.mts.map +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.d.ts.map +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.js +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.mjs +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.mjs.map +1 -1
- package/build/modules/oob/DidCommOutOfBandApi.d.mts +4 -4
- package/build/modules/oob/DidCommOutOfBandApi.d.mts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandApi.d.ts +4 -4
- package/build/modules/oob/DidCommOutOfBandApi.d.ts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandApi.js +16 -16
- package/build/modules/oob/DidCommOutOfBandApi.mjs +16 -16
- package/build/modules/oob/DidCommOutOfBandApi.mjs.map +1 -1
- package/build/modules/oob/DidCommOutOfBandModule.d.mts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandModule.d.ts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandModule.js +3 -3
- package/build/modules/oob/DidCommOutOfBandModule.mjs +3 -3
- package/build/modules/oob/DidCommOutOfBandModule.mjs.map +1 -1
- package/build/modules/oob/DidCommOutOfBandService.d.mts +2 -2
- package/build/modules/oob/DidCommOutOfBandService.d.mts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandService.d.ts +2 -2
- package/build/modules/oob/DidCommOutOfBandService.d.ts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandService.js +6 -6
- package/build/modules/oob/DidCommOutOfBandService.mjs +6 -6
- package/build/modules/oob/DidCommOutOfBandService.mjs.map +1 -1
- package/build/modules/oob/converters.js +1 -1
- package/build/modules/oob/converters.mjs +1 -1
- package/build/modules/oob/converters.mjs.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.d.mts.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.d.ts.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.js +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.mjs +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.mjs.map +1 -1
- package/build/modules/oob/domain/index.js +2 -2
- package/build/modules/oob/domain/index.mjs +2 -2
- package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.js +1 -1
- package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.mjs +1 -1
- package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.mjs.map +1 -1
- package/build/modules/oob/helpers.mjs.map +1 -1
- package/build/modules/oob/index.js +3 -3
- package/build/modules/oob/index.mjs +3 -3
- package/build/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.js +1 -1
- package/build/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.mjs +1 -1
- package/build/modules/oob/messages/DidCommHandshakeReuseMessage.js +1 -1
- package/build/modules/oob/messages/DidCommHandshakeReuseMessage.mjs +1 -1
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.d.mts.map +1 -1
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.d.ts.map +1 -1
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.js +6 -6
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.mjs +6 -6
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.mjs.map +1 -1
- package/build/modules/oob/messages/index.js +1 -1
- package/build/modules/oob/messages/index.mjs +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRecord.d.mts.map +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRecord.d.ts.map +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRecord.js +2 -2
- package/build/modules/oob/repository/DidCommOutOfBandRecord.mjs +2 -2
- package/build/modules/oob/repository/DidCommOutOfBandRecord.mjs.map +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRepository.js +2 -2
- package/build/modules/oob/repository/DidCommOutOfBandRepository.mjs +2 -2
- package/build/modules/oob/repository/DidCommOutOfBandRepository.mjs.map +1 -1
- package/build/modules/proofs/DidCommProofsApi.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofsApi.d.ts.map +1 -1
- package/build/modules/proofs/DidCommProofsApi.js +3 -3
- package/build/modules/proofs/DidCommProofsApi.mjs +3 -3
- package/build/modules/proofs/DidCommProofsApi.mjs.map +1 -1
- package/build/modules/proofs/DidCommProofsApiOptions.d.mts +1 -1
- package/build/modules/proofs/DidCommProofsApiOptions.d.ts +1 -1
- package/build/modules/proofs/DidCommProofsModule.d.mts +1 -1
- package/build/modules/proofs/DidCommProofsModule.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofsModule.d.ts +1 -1
- package/build/modules/proofs/DidCommProofsModule.d.ts.map +1 -1
- package/build/modules/proofs/DidCommProofsModule.js +1 -1
- package/build/modules/proofs/DidCommProofsModule.mjs +1 -1
- package/build/modules/proofs/DidCommProofsModule.mjs.map +1 -1
- package/build/modules/proofs/DidCommProofsModuleConfig.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofsModuleConfig.d.ts.map +1 -1
- package/build/modules/proofs/DidCommProofsModuleConfig.mjs.map +1 -1
- package/build/modules/proofs/formats/DidCommProofFormatServiceOptions.d.mts +1 -1
- package/build/modules/proofs/formats/DidCommProofFormatServiceOptions.d.ts +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.d.mts.map +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.d.ts.map +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.mjs.map +1 -1
- package/build/modules/proofs/index.js +11 -11
- package/build/modules/proofs/index.mjs +11 -11
- package/build/modules/proofs/models/DidCommProofFormatSpec.js +3 -3
- package/build/modules/proofs/models/DidCommProofFormatSpec.mjs +2 -2
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.mts +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.mts.map +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.ts +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.ts.map +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.js +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.mjs +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.mjs.map +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocol.d.mts +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocol.d.ts +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocolOptions.d.mts +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocolOptions.d.ts +1 -1
- package/build/modules/proofs/protocol/index.js +1 -1
- package/build/modules/proofs/protocol/index.mjs +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.js +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.mjs +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.mts +4 -4
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.ts +4 -4
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.ts.map +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.js +12 -12
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.mjs +12 -12
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.mts +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.ts +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.ts.map +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.js +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.mjs +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommProposePresentationV2Handler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommRequestPresentationV2Handler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2AckMessage.js +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2AckMessage.mjs +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2Message.js +4 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2Message.mjs +3 -3
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2ProblemReportMessage.js +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2ProblemReportMessage.mjs +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.js +4 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.mjs +3 -3
- package/build/modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.js +4 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.mjs +3 -3
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.mts +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.mts.map +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.ts +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.ts.map +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.mjs.map +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRepository.js +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRepository.mjs +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRepository.mjs.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientApi.d.mts +3 -3
- package/build/modules/routing/DidCommMediationRecipientApi.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientApi.d.ts +3 -3
- package/build/modules/routing/DidCommMediationRecipientApi.d.ts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientApi.js +8 -8
- package/build/modules/routing/DidCommMediationRecipientApi.mjs +8 -8
- package/build/modules/routing/DidCommMediationRecipientApi.mjs.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientModule.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientModule.d.ts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientModule.js +4 -4
- package/build/modules/routing/DidCommMediationRecipientModule.mjs +4 -4
- package/build/modules/routing/DidCommMediationRecipientModule.mjs.map +1 -1
- package/build/modules/routing/DidCommMediatorApi.d.mts +1 -1
- package/build/modules/routing/DidCommMediatorApi.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediatorApi.d.ts +1 -1
- package/build/modules/routing/DidCommMediatorApi.d.ts.map +1 -1
- package/build/modules/routing/DidCommMediatorApi.js +2 -2
- package/build/modules/routing/DidCommMediatorApi.mjs +2 -2
- package/build/modules/routing/DidCommMediatorApi.mjs.map +1 -1
- package/build/modules/routing/DidCommMediatorModule.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediatorModule.d.ts.map +1 -1
- package/build/modules/routing/DidCommMediatorModule.js +7 -7
- package/build/modules/routing/DidCommMediatorModule.mjs +7 -7
- package/build/modules/routing/DidCommMediatorModule.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommForwardHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommKeylistUpdateHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommKeylistUpdateResponseHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommMediationDenyHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommMediationGrantHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommMediationRequestHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/index.js +1 -1
- package/build/modules/routing/handlers/index.mjs +1 -1
- package/build/modules/routing/index.js +4 -4
- package/build/modules/routing/index.mjs +4 -4
- package/build/modules/routing/messages/DidCommForwardMessage.js +3 -3
- package/build/modules/routing/messages/DidCommForwardMessage.mjs +2 -2
- package/build/modules/routing/messages/DidCommKeylistUpdateMessage.js +3 -3
- package/build/modules/routing/messages/DidCommKeylistUpdateMessage.mjs +2 -2
- package/build/modules/routing/messages/DidCommKeylistUpdateResponseMessage.js +3 -3
- package/build/modules/routing/messages/DidCommKeylistUpdateResponseMessage.mjs +2 -2
- package/build/modules/routing/messages/DidCommMediationDenyMessage.js +1 -1
- package/build/modules/routing/messages/DidCommMediationDenyMessage.mjs +1 -1
- package/build/modules/routing/messages/DidCommMediationGrantMessage.js +3 -3
- package/build/modules/routing/messages/DidCommMediationGrantMessage.mjs +2 -2
- package/build/modules/routing/messages/DidCommMediationRequestMessage.js +1 -1
- package/build/modules/routing/messages/DidCommMediationRequestMessage.mjs +1 -1
- package/build/modules/routing/messages/index.js +1 -1
- package/build/modules/routing/messages/index.mjs +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.d.mts +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.d.mts.map +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.d.ts +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.d.ts.map +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.js +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.mjs +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.mjs.map +1 -1
- package/build/modules/routing/repository/DidCommMediationRepository.js +1 -1
- package/build/modules/routing/repository/DidCommMediationRepository.mjs +1 -1
- package/build/modules/routing/repository/DidCommMediationRepository.mjs.map +1 -1
- package/build/modules/routing/repository/DidCommMediatorRoutingRepository.js +1 -1
- package/build/modules/routing/repository/DidCommMediatorRoutingRepository.mjs +1 -1
- package/build/modules/routing/repository/DidCommMediatorRoutingRepository.mjs.map +1 -1
- package/build/modules/routing/services/DidCommMediationRecipientService.d.mts +2 -2
- package/build/modules/routing/services/DidCommMediationRecipientService.d.mts.map +1 -1
- package/build/modules/routing/services/DidCommMediationRecipientService.d.ts +2 -2
- package/build/modules/routing/services/DidCommMediationRecipientService.d.ts.map +1 -1
- package/build/modules/routing/services/DidCommMediationRecipientService.js +4 -4
- package/build/modules/routing/services/DidCommMediationRecipientService.mjs +4 -4
- package/build/modules/routing/services/DidCommMediationRecipientService.mjs.map +1 -1
- package/build/modules/routing/services/DidCommMediatorService.d.mts.map +1 -1
- package/build/modules/routing/services/DidCommMediatorService.d.ts.map +1 -1
- package/build/modules/routing/services/DidCommMediatorService.js +3 -3
- package/build/modules/routing/services/DidCommMediatorService.mjs +3 -3
- package/build/modules/routing/services/DidCommMediatorService.mjs.map +1 -1
- package/build/modules/routing/services/DidCommRoutingService.d.mts.map +1 -1
- package/build/modules/routing/services/DidCommRoutingService.d.ts.map +1 -1
- package/build/modules/routing/services/DidCommRoutingService.js +1 -1
- package/build/modules/routing/services/DidCommRoutingService.mjs +1 -1
- package/build/modules/routing/services/DidCommRoutingService.mjs.map +1 -1
- package/build/repository/DidCommMessageRecord.d.mts.map +1 -1
- package/build/repository/DidCommMessageRecord.d.ts.map +1 -1
- package/build/repository/DidCommMessageRecord.mjs.map +1 -1
- package/build/repository/DidCommMessageRepository.d.mts.map +1 -1
- package/build/repository/DidCommMessageRepository.d.ts.map +1 -1
- package/build/repository/DidCommMessageRepository.js +1 -1
- package/build/repository/DidCommMessageRepository.mjs +1 -1
- package/build/repository/DidCommMessageRepository.mjs.map +1 -1
- package/build/repository/index.js +1 -1
- package/build/repository/index.mjs +1 -1
- package/build/services/DidCommDocumentService.d.mts.map +1 -1
- package/build/services/DidCommDocumentService.d.ts.map +1 -1
- package/build/services/DidCommDocumentService.js +1 -1
- package/build/services/DidCommDocumentService.mjs +1 -1
- package/build/services/DidCommDocumentService.mjs.map +1 -1
- package/build/transport/DidCommHttpOutboundTransport.d.mts.map +1 -1
- package/build/transport/DidCommHttpOutboundTransport.d.ts.map +1 -1
- package/build/transport/DidCommHttpOutboundTransport.js +3 -3
- package/build/transport/DidCommHttpOutboundTransport.mjs +3 -3
- package/build/transport/DidCommHttpOutboundTransport.mjs.map +1 -1
- package/build/transport/DidCommWsOutboundTransport.d.mts.map +1 -1
- package/build/transport/DidCommWsOutboundTransport.d.ts.map +1 -1
- package/build/transport/DidCommWsOutboundTransport.mjs.map +1 -1
- package/build/transport/index.js +2 -2
- package/build/transport/index.mjs +2 -2
- package/build/transport/queue/DidCommQueueTransportRepository.d.mts +1 -1
- package/build/transport/queue/DidCommQueueTransportRepository.d.ts +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.d.mts +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.d.mts.map +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.d.ts +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.d.ts.map +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.js +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.mjs +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.mjs.map +1 -1
- package/build/transport/queue/index.js +1 -1
- package/build/transport/queue/index.mjs +1 -1
- package/build/updates/0.1-0.2/connection.js +3 -3
- package/build/updates/0.1-0.2/connection.mjs +3 -3
- package/build/updates/0.1-0.2/connection.mjs.map +1 -1
- package/build/updates/0.1-0.2/credential.js +1 -1
- package/build/updates/0.1-0.2/credential.mjs +1 -1
- package/build/updates/0.1-0.2/credential.mjs.map +1 -1
- package/build/updates/0.2-0.3/proof.js +1 -1
- package/build/updates/0.2-0.3/proof.mjs +1 -1
- package/build/updates/0.2-0.3/proof.mjs.map +1 -1
- package/build/updates/0.4-0.5/credentialExchangeRecord.js +2 -2
- package/build/updates/0.4-0.5/credentialExchangeRecord.mjs +2 -2
- package/build/updates/0.4-0.5/credentialExchangeRecord.mjs.map +1 -1
- package/build/updates/0.4-0.5/proofExchangeRecord.js +2 -2
- package/build/updates/0.4-0.5/proofExchangeRecord.mjs +2 -2
- package/build/util/DidCommLinkedAttachment.js +3 -3
- package/build/util/DidCommLinkedAttachment.mjs +2 -2
- package/build/util/JWE.mjs.map +1 -1
- package/build/util/attachment.d.mts.map +1 -1
- package/build/util/attachment.d.ts.map +1 -1
- package/build/util/attachment.mjs.map +1 -1
- package/build/util/messageType.d.mts +37 -1
- package/build/util/messageType.d.mts.map +1 -1
- package/build/util/messageType.d.ts +37 -1
- package/build/util/messageType.d.ts.map +1 -1
- package/build/util/messageType.js +4 -4
- package/build/util/messageType.mjs +4 -4
- package/build/util/messageType.mjs.map +1 -1
- package/build/util/parseInvitation.d.mts +8 -1
- package/build/util/parseInvitation.d.mts.map +1 -1
- package/build/util/parseInvitation.d.ts +8 -1
- package/build/util/parseInvitation.d.ts.map +1 -1
- package/build/util/parseInvitation.js +6 -5
- package/build/util/parseInvitation.mjs +7 -7
- package/build/util/parseInvitation.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommMessageSender.d.mts","names":[],"sources":["../src/DidCommMessageSender.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DidCommMessageSender.d.mts","names":[],"sources":["../src/DidCommMessageSender.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAgCiB,UAAA,wBAAA,CAAwB;EAM5B,OAAA,EAAA,MAAA,EAAA;EAAoB,WAAA,CAAA,EAAA,OAAA;;AASX,cATT,oBAAA,CASS;UACG,eAAA;UACG,gBAAA;UACV,mBAAA;UAUA,sBAAA;UAEZ,YAAA;aACA,CAAA,eAAA,EAjBe,sBAiBf,EAAA,gBAAA,EAhBgB,uBAgBhB,EAAA,mBAAA,EAfmB,mBAenB,EAAA,sBAAA,EAdsB,sBActB,EAAA,YAAA,EAbY,YAaZ;aACA,CAAA,YAAA,EAJY,YAIZ,EAAA;IAAA,IAAA;IAAA,OAAA;IAAA;GAAA,EAAA;IAEM,IAAA,EAAA,YAAA;IACG,OAAA,EAAA,cAAA;IAGF,QAAA,EAAA,MAAA;MAAR,OAAA,CAAQ,sBAAR,CAAA;UAyBa,oBAAA;aAEZ,CAAA,YAAA,EAFY,YAEZ,EAAA;IAAA,UAAA;IAAA,gBAAA;IAAA,YAAA;IAAA;GAAA,EAAA;IACA,UAAA,EAIY,uBAJZ;IACA,YAAA,EAAA,MAAA;IACA,gBAAA,EAIkB,uBAJlB;IAEY,OAAA,CAAA,EAAA;MAEM,iBAAA,CAAA,EACc,wBADd;IACc,CAAA;MACjC,OAAA,CAAA,IAAA,CAAA;aAoFuB,CAAA,sBAAA,EAAA,6BAAA,EAAA,QAAA,EAAA;IAEF,iBAAA,CAAA,EAAA,wBAAA;MACrB,OAAA,CAAA,IAAA,CAAA;EAAA,QAAA,oBAAA"}
|
|
@@ -2,7 +2,6 @@ import { DidCommEncryptedMessage, DidCommOutboundPackage } from "./types.js";
|
|
|
2
2
|
import { DidCommMessage } from "./DidCommMessage.js";
|
|
3
3
|
import { DidCommDocumentService } from "./services/DidCommDocumentService.js";
|
|
4
4
|
import { DidCommEnvelopeService, EnvelopeKeys } from "./DidCommEnvelopeService.js";
|
|
5
|
-
import { DidCommOutboundTransport } from "./transport/DidCommOutboundTransport.js";
|
|
6
5
|
import { DidCommTransportService } from "./DidCommTransportService.js";
|
|
7
6
|
import { DidCommModuleConfig } from "./DidCommModuleConfig.js";
|
|
8
7
|
import { DidCommConnectionRecord } from "./modules/connections/repository/DidCommConnectionRecord.js";
|
|
@@ -17,14 +16,10 @@ interface TransportPriorityOptions {
|
|
|
17
16
|
declare class DidCommMessageSender {
|
|
18
17
|
private envelopeService;
|
|
19
18
|
private transportService;
|
|
20
|
-
private
|
|
19
|
+
private didCommModuleConfig;
|
|
21
20
|
private didCommDocumentService;
|
|
22
21
|
private eventEmitter;
|
|
23
|
-
private _outboundTransports;
|
|
24
22
|
constructor(envelopeService: DidCommEnvelopeService, transportService: DidCommTransportService, didCommModuleConfig: DidCommModuleConfig, didCommDocumentService: DidCommDocumentService, eventEmitter: EventEmitter);
|
|
25
|
-
get outboundTransports(): DidCommOutboundTransport[];
|
|
26
|
-
registerOutboundTransport(outboundTransport: DidCommOutboundTransport): void;
|
|
27
|
-
unregisterOutboundTransport(outboundTransport: DidCommOutboundTransport): Promise<void>;
|
|
28
23
|
packMessage(agentContext: AgentContext, {
|
|
29
24
|
keys,
|
|
30
25
|
message,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommMessageSender.d.ts","names":[],"sources":["../src/DidCommMessageSender.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DidCommMessageSender.d.ts","names":[],"sources":["../src/DidCommMessageSender.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAgCiB,UAAA,wBAAA,CAAwB;EAM5B,OAAA,EAAA,MAAA,EAAA;EAAoB,WAAA,CAAA,EAAA,OAAA;;AASX,cATT,oBAAA,CASS;UACG,eAAA;UACG,gBAAA;UACV,mBAAA;UAUA,sBAAA;UAEZ,YAAA;aACA,CAAA,eAAA,EAjBe,sBAiBf,EAAA,gBAAA,EAhBgB,uBAgBhB,EAAA,mBAAA,EAfmB,mBAenB,EAAA,sBAAA,EAdsB,sBActB,EAAA,YAAA,EAbY,YAaZ;aACA,CAAA,YAAA,EAJY,YAIZ,EAAA;IAAA,IAAA;IAAA,OAAA;IAAA;GAAA,EAAA;IAEM,IAAA,EAAA,YAAA;IACG,OAAA,EAAA,cAAA;IAGF,QAAA,EAAA,MAAA;MAAR,OAAA,CAAQ,sBAAR,CAAA;UAyBa,oBAAA;aAEZ,CAAA,YAAA,EAFY,YAEZ,EAAA;IAAA,UAAA;IAAA,gBAAA;IAAA,YAAA;IAAA;GAAA,EAAA;IACA,UAAA,EAIY,uBAJZ;IACA,YAAA,EAAA,MAAA;IACA,gBAAA,EAIkB,uBAJlB;IAEY,OAAA,CAAA,EAAA;MAEM,iBAAA,CAAA,EACc,wBADd;IACc,CAAA;MACjC,OAAA,CAAA,IAAA,CAAA;aAoFuB,CAAA,sBAAA,EAAA,6BAAA,EAAA,QAAA,EAAA;IAEF,iBAAA,CAAA,EAAA,wBAAA;MACrB,OAAA,CAAA,IAAA,CAAA;EAAA,QAAA,oBAAA"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_decorateMetadata = require('./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
2
|
const require_decorate = require('./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
3
|
+
const require_constants = require('./constants.js');
|
|
4
|
+
const require_DidCommEvents = require('./DidCommEvents.js');
|
|
5
|
+
const require_decorateMetadata = require('./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
6
|
+
const require_DidCommModuleConfig = require('./DidCommModuleConfig.js');
|
|
4
7
|
const require_TransportDecorator = require('./decorators/transport/TransportDecorator.js');
|
|
8
|
+
const require_DidCommDocumentService = require('./services/DidCommDocumentService.js');
|
|
9
|
+
const require_DidCommEnvelopeService = require('./DidCommEnvelopeService.js');
|
|
10
|
+
const require_DidCommTransportService = require('./DidCommTransportService.js');
|
|
5
11
|
const require_MessageSendingError = require('./errors/MessageSendingError.js');
|
|
6
12
|
require('./errors/index.js');
|
|
7
13
|
const require_DidCommOutboundMessageContext = require('./models/DidCommOutboundMessageContext.js');
|
|
8
14
|
const require_DidCommOutboundMessageSendStatus = require('./models/DidCommOutboundMessageSendStatus.js');
|
|
9
15
|
require('./models/index.js');
|
|
10
|
-
const require_constants = require('./constants.js');
|
|
11
|
-
const require_DidCommEvents = require('./DidCommEvents.js');
|
|
12
|
-
const require_DidCommModuleConfig = require('./DidCommModuleConfig.js');
|
|
13
|
-
const require_DidCommTransportService = require('./DidCommTransportService.js');
|
|
14
|
-
const require_DidCommDocumentService = require('./services/DidCommDocumentService.js');
|
|
15
|
-
const require_DidCommEnvelopeService = require('./DidCommEnvelopeService.js');
|
|
16
16
|
let __credo_ts_core = require("@credo-ts/core");
|
|
17
17
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
18
18
|
|
|
@@ -20,23 +20,11 @@ __credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
|
20
20
|
var _ref, _ref2, _ref3, _ref4, _ref5;
|
|
21
21
|
let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
22
22
|
constructor(envelopeService, transportService, didCommModuleConfig, didCommDocumentService, eventEmitter) {
|
|
23
|
-
this._outboundTransports = [];
|
|
24
23
|
this.envelopeService = envelopeService;
|
|
25
24
|
this.transportService = transportService;
|
|
26
|
-
this.
|
|
25
|
+
this.didCommModuleConfig = didCommModuleConfig;
|
|
27
26
|
this.didCommDocumentService = didCommDocumentService;
|
|
28
27
|
this.eventEmitter = eventEmitter;
|
|
29
|
-
this._outboundTransports = [];
|
|
30
|
-
}
|
|
31
|
-
get outboundTransports() {
|
|
32
|
-
return this._outboundTransports;
|
|
33
|
-
}
|
|
34
|
-
registerOutboundTransport(outboundTransport) {
|
|
35
|
-
this._outboundTransports.push(outboundTransport);
|
|
36
|
-
}
|
|
37
|
-
async unregisterOutboundTransport(outboundTransport) {
|
|
38
|
-
this._outboundTransports = this.outboundTransports.filter((transport) => transport !== outboundTransport);
|
|
39
|
-
await outboundTransport.stop();
|
|
40
28
|
}
|
|
41
29
|
async packMessage(agentContext, { keys, message, endpoint }) {
|
|
42
30
|
return {
|
|
@@ -63,12 +51,12 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
63
51
|
agentContext.config.logger.debug(`Sending packed message via session failed with error: ${error.message}.`, error);
|
|
64
52
|
}
|
|
65
53
|
const { services, queueService } = await this.retrieveServicesByConnection(agentContext, connection, options?.transportPriority);
|
|
66
|
-
if (this.outboundTransports.length === 0 && !queueService) throw new __credo_ts_core.CredoError("Agent has no outbound transport!");
|
|
67
|
-
for
|
|
54
|
+
if (this.didCommModuleConfig.outboundTransports.length === 0 && !queueService) throw new __credo_ts_core.CredoError("Agent has no outbound transport!");
|
|
55
|
+
for (const service of services) {
|
|
68
56
|
agentContext.config.logger.debug("Sending outbound message to service:", { service });
|
|
69
57
|
try {
|
|
70
58
|
const protocolScheme = __credo_ts_core.utils.getProtocolScheme(service.serviceEndpoint);
|
|
71
|
-
for (const transport of this.outboundTransports) if (transport.supportedSchemes.includes(protocolScheme)) {
|
|
59
|
+
for (const transport of this.didCommModuleConfig.outboundTransports) if (transport.supportedSchemes.includes(protocolScheme)) {
|
|
72
60
|
await transport.sendMessage({
|
|
73
61
|
payload: encryptedMessage,
|
|
74
62
|
endpoint: service.serviceEndpoint,
|
|
@@ -86,7 +74,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
86
74
|
}
|
|
87
75
|
if (queueService) {
|
|
88
76
|
agentContext.config.logger.debug(`Queue packed message for connection ${connection.id} (${connection.theirLabel})`);
|
|
89
|
-
await this.queueTransportRepository.addMessage(agentContext, {
|
|
77
|
+
await this.didCommModuleConfig.queueTransportRepository.addMessage(agentContext, {
|
|
90
78
|
connectionId: connection.id,
|
|
91
79
|
recipientDids: [(0, __credo_ts_core.verkeyToDidKey)(recipientKey)],
|
|
92
80
|
payload: encryptedMessage
|
|
@@ -164,7 +152,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
164
152
|
const senderVerificationMethod = authentication?.find((a) => a.kmsKeyId !== void 0) ?? authentication?.[0];
|
|
165
153
|
if (!senderVerificationMethod) throw new require_MessageSendingError.MessageSendingError(`Unable to determine sender key for did ${connection.did}, no available Ed25519 keys`, { outboundMessageContext });
|
|
166
154
|
const shouldAddReturnRoute = message.transport?.returnRoute === void 0 && !this.transportService.hasInboundEndpoint(didDocument);
|
|
167
|
-
for
|
|
155
|
+
for (const service of services) try {
|
|
168
156
|
await this.sendToService(new require_DidCommOutboundMessageContext.DidCommOutboundMessageContext(message, {
|
|
169
157
|
agentContext,
|
|
170
158
|
serviceParams: {
|
|
@@ -191,7 +179,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
191
179
|
senderKey: senderVerificationMethod.publicJwk
|
|
192
180
|
};
|
|
193
181
|
const encryptedMessage = await this.envelopeService.packMessage(agentContext, message, keys$1);
|
|
194
|
-
await this.queueTransportRepository.addMessage(agentContext, {
|
|
182
|
+
await this.didCommModuleConfig.queueTransportRepository.addMessage(agentContext, {
|
|
195
183
|
connectionId: connection.id,
|
|
196
184
|
recipientDids: keys$1.recipientKeys.map((item) => new __credo_ts_core.DidKey(item).did),
|
|
197
185
|
payload: encryptedMessage
|
|
@@ -235,7 +223,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
235
223
|
const { agentContext, message, serviceParams, connection } = outboundMessageContext;
|
|
236
224
|
if (!serviceParams) throw new __credo_ts_core.CredoError("No service parameters found in outbound message context");
|
|
237
225
|
const { service, senderKey, returnRoute } = serviceParams;
|
|
238
|
-
if (this.outboundTransports.length === 0) throw new __credo_ts_core.CredoError("Agent has no outbound transport!");
|
|
226
|
+
if (this.didCommModuleConfig.outboundTransports.length === 0) throw new __credo_ts_core.CredoError("Agent has no outbound transport!");
|
|
239
227
|
agentContext.config.logger.debug("Sending outbound message to service:", {
|
|
240
228
|
messageId: message.id,
|
|
241
229
|
service: {
|
|
@@ -266,7 +254,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
266
254
|
});
|
|
267
255
|
outboundPackage.endpoint = service.serviceEndpoint;
|
|
268
256
|
outboundPackage.connectionId = connection?.id;
|
|
269
|
-
for (const transport of this.outboundTransports) {
|
|
257
|
+
for (const transport of this.didCommModuleConfig.outboundTransports) {
|
|
270
258
|
const protocolScheme = __credo_ts_core.utils.getProtocolScheme(service.serviceEndpoint);
|
|
271
259
|
if (!protocolScheme) agentContext.config.logger.warn("Service does not have a protocol scheme.");
|
|
272
260
|
else if (transport.supportedSchemes.includes(protocolScheme)) {
|
|
@@ -277,7 +265,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
277
265
|
throw new require_MessageSendingError.MessageSendingError(`Unable to send message to service: ${service.serviceEndpoint}`, { outboundMessageContext });
|
|
278
266
|
}
|
|
279
267
|
findSessionForOutboundContext(outboundContext) {
|
|
280
|
-
let session
|
|
268
|
+
let session;
|
|
281
269
|
const sessionId = outboundContext.sessionId ?? outboundContext.inboundMessageContext?.sessionId;
|
|
282
270
|
if (sessionId) session = this.transportService.findSessionById(sessionId);
|
|
283
271
|
if (!session && outboundContext.connection?.id) session = this.transportService.findSessionByConnectionId(outboundContext.connection.id);
|
|
@@ -1,40 +1,28 @@
|
|
|
1
|
-
import { __decorateMetadata } from "./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
1
|
import { __decorate } from "./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
2
|
+
import { DID_COMM_TRANSPORT_QUEUE } from "./constants.mjs";
|
|
3
|
+
import { DidCommEventTypes } from "./DidCommEvents.mjs";
|
|
4
|
+
import { __decorateMetadata } from "./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
5
|
+
import { DidCommModuleConfig } from "./DidCommModuleConfig.mjs";
|
|
3
6
|
import { ReturnRouteTypes } from "./decorators/transport/TransportDecorator.mjs";
|
|
7
|
+
import { DidCommDocumentService } from "./services/DidCommDocumentService.mjs";
|
|
8
|
+
import { DidCommEnvelopeService } from "./DidCommEnvelopeService.mjs";
|
|
9
|
+
import { DidCommTransportService } from "./DidCommTransportService.mjs";
|
|
4
10
|
import { MessageSendingError } from "./errors/MessageSendingError.mjs";
|
|
5
11
|
import "./errors/index.mjs";
|
|
6
12
|
import { DidCommOutboundMessageContext } from "./models/DidCommOutboundMessageContext.mjs";
|
|
7
13
|
import { OutboundMessageSendStatus } from "./models/DidCommOutboundMessageSendStatus.mjs";
|
|
8
14
|
import "./models/index.mjs";
|
|
9
|
-
import { DID_COMM_TRANSPORT_QUEUE } from "./constants.mjs";
|
|
10
|
-
import { DidCommEventTypes } from "./DidCommEvents.mjs";
|
|
11
|
-
import { DidCommModuleConfig } from "./DidCommModuleConfig.mjs";
|
|
12
|
-
import { DidCommTransportService } from "./DidCommTransportService.mjs";
|
|
13
|
-
import { DidCommDocumentService } from "./services/DidCommDocumentService.mjs";
|
|
14
|
-
import { DidCommEnvelopeService } from "./DidCommEnvelopeService.mjs";
|
|
15
15
|
import { AgentContext, CredoError, DidKey, DidsApi, EventEmitter, Kms, MessageValidator, didKeyToEd25519PublicJwk, getPublicJwkFromVerificationMethod, injectable, utils, verkeyToDidKey } from "@credo-ts/core";
|
|
16
16
|
|
|
17
17
|
//#region src/DidCommMessageSender.ts
|
|
18
18
|
var _ref, _ref2, _ref3, _ref4, _ref5;
|
|
19
19
|
let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
20
20
|
constructor(envelopeService, transportService, didCommModuleConfig, didCommDocumentService, eventEmitter) {
|
|
21
|
-
this._outboundTransports = [];
|
|
22
21
|
this.envelopeService = envelopeService;
|
|
23
22
|
this.transportService = transportService;
|
|
24
|
-
this.
|
|
23
|
+
this.didCommModuleConfig = didCommModuleConfig;
|
|
25
24
|
this.didCommDocumentService = didCommDocumentService;
|
|
26
25
|
this.eventEmitter = eventEmitter;
|
|
27
|
-
this._outboundTransports = [];
|
|
28
|
-
}
|
|
29
|
-
get outboundTransports() {
|
|
30
|
-
return this._outboundTransports;
|
|
31
|
-
}
|
|
32
|
-
registerOutboundTransport(outboundTransport) {
|
|
33
|
-
this._outboundTransports.push(outboundTransport);
|
|
34
|
-
}
|
|
35
|
-
async unregisterOutboundTransport(outboundTransport) {
|
|
36
|
-
this._outboundTransports = this.outboundTransports.filter((transport) => transport !== outboundTransport);
|
|
37
|
-
await outboundTransport.stop();
|
|
38
26
|
}
|
|
39
27
|
async packMessage(agentContext, { keys, message, endpoint }) {
|
|
40
28
|
return {
|
|
@@ -61,12 +49,12 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
61
49
|
agentContext.config.logger.debug(`Sending packed message via session failed with error: ${error.message}.`, error);
|
|
62
50
|
}
|
|
63
51
|
const { services, queueService } = await this.retrieveServicesByConnection(agentContext, connection, options?.transportPriority);
|
|
64
|
-
if (this.outboundTransports.length === 0 && !queueService) throw new CredoError("Agent has no outbound transport!");
|
|
65
|
-
for
|
|
52
|
+
if (this.didCommModuleConfig.outboundTransports.length === 0 && !queueService) throw new CredoError("Agent has no outbound transport!");
|
|
53
|
+
for (const service of services) {
|
|
66
54
|
agentContext.config.logger.debug("Sending outbound message to service:", { service });
|
|
67
55
|
try {
|
|
68
56
|
const protocolScheme = utils.getProtocolScheme(service.serviceEndpoint);
|
|
69
|
-
for (const transport of this.outboundTransports) if (transport.supportedSchemes.includes(protocolScheme)) {
|
|
57
|
+
for (const transport of this.didCommModuleConfig.outboundTransports) if (transport.supportedSchemes.includes(protocolScheme)) {
|
|
70
58
|
await transport.sendMessage({
|
|
71
59
|
payload: encryptedMessage,
|
|
72
60
|
endpoint: service.serviceEndpoint,
|
|
@@ -84,7 +72,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
84
72
|
}
|
|
85
73
|
if (queueService) {
|
|
86
74
|
agentContext.config.logger.debug(`Queue packed message for connection ${connection.id} (${connection.theirLabel})`);
|
|
87
|
-
await this.queueTransportRepository.addMessage(agentContext, {
|
|
75
|
+
await this.didCommModuleConfig.queueTransportRepository.addMessage(agentContext, {
|
|
88
76
|
connectionId: connection.id,
|
|
89
77
|
recipientDids: [verkeyToDidKey(recipientKey)],
|
|
90
78
|
payload: encryptedMessage
|
|
@@ -162,7 +150,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
162
150
|
const senderVerificationMethod = authentication?.find((a) => a.kmsKeyId !== void 0) ?? authentication?.[0];
|
|
163
151
|
if (!senderVerificationMethod) throw new MessageSendingError(`Unable to determine sender key for did ${connection.did}, no available Ed25519 keys`, { outboundMessageContext });
|
|
164
152
|
const shouldAddReturnRoute = message.transport?.returnRoute === void 0 && !this.transportService.hasInboundEndpoint(didDocument);
|
|
165
|
-
for
|
|
153
|
+
for (const service of services) try {
|
|
166
154
|
await this.sendToService(new DidCommOutboundMessageContext(message, {
|
|
167
155
|
agentContext,
|
|
168
156
|
serviceParams: {
|
|
@@ -189,7 +177,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
189
177
|
senderKey: senderVerificationMethod.publicJwk
|
|
190
178
|
};
|
|
191
179
|
const encryptedMessage = await this.envelopeService.packMessage(agentContext, message, keys$1);
|
|
192
|
-
await this.queueTransportRepository.addMessage(agentContext, {
|
|
180
|
+
await this.didCommModuleConfig.queueTransportRepository.addMessage(agentContext, {
|
|
193
181
|
connectionId: connection.id,
|
|
194
182
|
recipientDids: keys$1.recipientKeys.map((item) => new DidKey(item).did),
|
|
195
183
|
payload: encryptedMessage
|
|
@@ -233,7 +221,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
233
221
|
const { agentContext, message, serviceParams, connection } = outboundMessageContext;
|
|
234
222
|
if (!serviceParams) throw new CredoError("No service parameters found in outbound message context");
|
|
235
223
|
const { service, senderKey, returnRoute } = serviceParams;
|
|
236
|
-
if (this.outboundTransports.length === 0) throw new CredoError("Agent has no outbound transport!");
|
|
224
|
+
if (this.didCommModuleConfig.outboundTransports.length === 0) throw new CredoError("Agent has no outbound transport!");
|
|
237
225
|
agentContext.config.logger.debug("Sending outbound message to service:", {
|
|
238
226
|
messageId: message.id,
|
|
239
227
|
service: {
|
|
@@ -264,7 +252,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
264
252
|
});
|
|
265
253
|
outboundPackage.endpoint = service.serviceEndpoint;
|
|
266
254
|
outboundPackage.connectionId = connection?.id;
|
|
267
|
-
for (const transport of this.outboundTransports) {
|
|
255
|
+
for (const transport of this.didCommModuleConfig.outboundTransports) {
|
|
268
256
|
const protocolScheme = utils.getProtocolScheme(service.serviceEndpoint);
|
|
269
257
|
if (!protocolScheme) agentContext.config.logger.warn("Service does not have a protocol scheme.");
|
|
270
258
|
else if (transport.supportedSchemes.includes(protocolScheme)) {
|
|
@@ -275,7 +263,7 @@ let DidCommMessageSender = class DidCommMessageSender$1 {
|
|
|
275
263
|
throw new MessageSendingError(`Unable to send message to service: ${service.serviceEndpoint}`, { outboundMessageContext });
|
|
276
264
|
}
|
|
277
265
|
findSessionForOutboundContext(outboundContext) {
|
|
278
|
-
let session
|
|
266
|
+
let session;
|
|
279
267
|
const sessionId = outboundContext.sessionId ?? outboundContext.inboundMessageContext?.sessionId;
|
|
280
268
|
if (sessionId) session = this.transportService.findSessionById(sessionId);
|
|
281
269
|
if (!session && outboundContext.connection?.id) session = this.transportService.findSessionByConnectionId(outboundContext.connection.id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommMessageSender.mjs","names":["DidCommMessageSender","errors: Error[]","services: ResolvedDidCommService[]","queueService: ResolvedDidCommService | undefined","keys","session: DidCommTransportSession | undefined","didCommServices: ResolvedDidCommService[]"],"sources":["../src/DidCommMessageSender.ts"],"sourcesContent":["import type { EnvelopeKeys } from './DidCommEnvelopeService'\nimport type { DidCommMessageSentEvent } from './DidCommEvents'\nimport type { DidCommMessage } from './DidCommMessage'\nimport type { DidCommTransportSession } from './DidCommTransportService'\nimport type { DidCommConnectionRecord } from './modules/connections/repository'\nimport type { DidCommOutOfBandRecord } from './modules/oob/repository'\nimport type { DidCommOutboundTransport } from './transport/DidCommOutboundTransport'\nimport type { DidCommEncryptedMessage, DidCommOutboundPackage } from './types'\n\nimport {\n AgentContext,\n CredoError,\n DidKey,\n DidsApi,\n EventEmitter,\n Kms,\n MessageValidator,\n type ResolvedDidCommService,\n didKeyToEd25519PublicJwk,\n getPublicJwkFromVerificationMethod,\n injectable,\n utils,\n verkeyToDidKey,\n} from '@credo-ts/core'\n\nimport { DidCommEnvelopeService } from './DidCommEnvelopeService'\nimport { DidCommEventTypes } from './DidCommEvents'\nimport { DidCommModuleConfig } from './DidCommModuleConfig'\nimport { DidCommTransportService } from './DidCommTransportService'\nimport { DID_COMM_TRANSPORT_QUEUE } from './constants'\nimport { ReturnRouteTypes } from './decorators/transport/TransportDecorator'\nimport { MessageSendingError } from './errors'\nimport { DidCommOutboundMessageContext, OutboundMessageSendStatus } from './models'\nimport { DidCommDocumentService } from './services/DidCommDocumentService'\nimport type { DidCommQueueTransportRepository } from './transport'\n\nexport interface TransportPriorityOptions {\n schemes: string[]\n restrictive?: boolean\n}\n\n@injectable()\nexport class DidCommMessageSender {\n private envelopeService: DidCommEnvelopeService\n private transportService: DidCommTransportService\n private queueTransportRepository: DidCommQueueTransportRepository\n private didCommDocumentService: DidCommDocumentService\n private eventEmitter: EventEmitter\n private _outboundTransports: DidCommOutboundTransport[] = []\n\n public constructor(\n envelopeService: DidCommEnvelopeService,\n transportService: DidCommTransportService,\n didCommModuleConfig: DidCommModuleConfig,\n didCommDocumentService: DidCommDocumentService,\n eventEmitter: EventEmitter\n ) {\n this.envelopeService = envelopeService\n this.transportService = transportService\n this.queueTransportRepository = didCommModuleConfig.queueTransportRepository\n this.didCommDocumentService = didCommDocumentService\n this.eventEmitter = eventEmitter\n this._outboundTransports = []\n }\n\n public get outboundTransports() {\n return this._outboundTransports\n }\n\n public registerOutboundTransport(outboundTransport: DidCommOutboundTransport) {\n this._outboundTransports.push(outboundTransport)\n }\n\n public async unregisterOutboundTransport(outboundTransport: DidCommOutboundTransport) {\n this._outboundTransports = this.outboundTransports.filter((transport) => transport !== outboundTransport)\n await outboundTransport.stop()\n }\n\n public async packMessage(\n agentContext: AgentContext,\n {\n keys,\n message,\n endpoint,\n }: {\n keys: EnvelopeKeys\n message: DidCommMessage\n endpoint: string\n }\n ): Promise<DidCommOutboundPackage> {\n const encryptedMessage = await this.envelopeService.packMessage(agentContext, message, keys)\n\n return {\n payload: encryptedMessage,\n responseRequested: message.hasAnyReturnRoute(),\n endpoint,\n }\n }\n\n private async sendMessageToSession(\n agentContext: AgentContext,\n session: DidCommTransportSession,\n message: DidCommMessage\n ) {\n agentContext.config.logger.debug(`Packing message and sending it via existing session ${session.type}...`)\n if (!session.keys) {\n throw new CredoError(`There are no keys for the given ${session.type} transport session.`)\n }\n const encryptedMessage = await this.envelopeService.packMessage(agentContext, message, session.keys)\n agentContext.config.logger.debug('Sending message')\n await session.send(agentContext, encryptedMessage)\n }\n\n public async sendPackage(\n agentContext: AgentContext,\n {\n connection,\n encryptedMessage,\n recipientKey,\n options,\n }: {\n connection: DidCommConnectionRecord\n recipientKey: string\n encryptedMessage: DidCommEncryptedMessage\n options?: { transportPriority?: TransportPriorityOptions }\n }\n ) {\n const errors: Error[] = []\n\n // Try to send to already open session\n const session = this.transportService.findSessionByConnectionId(connection.id)\n if (session?.inboundMessage?.hasReturnRouting()) {\n try {\n await session.send(agentContext, encryptedMessage)\n return\n } catch (error) {\n errors.push(error)\n agentContext.config.logger.debug(\n `Sending packed message via session failed with error: ${error.message}.`,\n error\n )\n }\n }\n\n // Retrieve DIDComm services\n const { services, queueService } = await this.retrieveServicesByConnection(\n agentContext,\n connection,\n options?.transportPriority\n )\n\n if (this.outboundTransports.length === 0 && !queueService) {\n throw new CredoError('Agent has no outbound transport!')\n }\n\n // Loop trough all available services and try to send the message\n for await (const service of services) {\n agentContext.config.logger.debug('Sending outbound message to service:', { service })\n try {\n const protocolScheme = utils.getProtocolScheme(service.serviceEndpoint)\n for (const transport of this.outboundTransports) {\n if (transport.supportedSchemes.includes(protocolScheme)) {\n await transport.sendMessage({\n payload: encryptedMessage,\n endpoint: service.serviceEndpoint,\n connectionId: connection.id,\n })\n break\n }\n }\n return\n } catch (error) {\n agentContext.config.logger.debug(\n `Sending outbound message to service with id ${service.id} failed with the following error:`,\n {\n message: error.message,\n error: error,\n }\n )\n }\n }\n\n // We didn't succeed to send the message over open session, or directly to serviceEndpoint\n // If the other party shared a queue service endpoint in their did doc we queue the message\n if (queueService) {\n agentContext.config.logger.debug(\n `Queue packed message for connection ${connection.id} (${connection.theirLabel})`\n )\n await this.queueTransportRepository.addMessage(agentContext, {\n connectionId: connection.id,\n recipientDids: [verkeyToDidKey(recipientKey)],\n payload: encryptedMessage,\n })\n return\n }\n\n // Message is undeliverable\n agentContext.config.logger.error(\n `Message is undeliverable to connection ${connection.id} (${connection.theirLabel})`,\n {\n message: encryptedMessage,\n errors,\n connection,\n }\n )\n throw new CredoError(`Message is undeliverable to connection ${connection.id} (${connection.theirLabel})`)\n }\n\n public async sendMessage(\n outboundMessageContext: DidCommOutboundMessageContext,\n options?: {\n transportPriority?: TransportPriorityOptions\n }\n ) {\n const { agentContext, connection, outOfBand, message } = outboundMessageContext\n const errors: Error[] = []\n\n if (outboundMessageContext.isOutboundServiceMessage()) {\n return this.sendMessageToService(outboundMessageContext)\n }\n\n if (!connection) {\n agentContext.config.logger.error('Outbound message has no associated connection')\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n throw new MessageSendingError('Outbound message has no associated connection', {\n outboundMessageContext,\n })\n }\n\n agentContext.config.logger.debug('Send outbound message', {\n message,\n connectionId: connection.id,\n })\n\n const session = this.findSessionForOutboundContext(outboundMessageContext)\n\n if (session) {\n agentContext.config.logger.debug(\n `Found session with return routing for message '${message.id}' (connection '${connection.id}'`\n )\n\n try {\n await this.sendMessageToSession(agentContext, session, message)\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.SentToSession)\n return\n } catch (error) {\n errors.push(error)\n agentContext.config.logger.debug(\n `Sending an outbound message via session failed with error: ${error.message}.`,\n error\n )\n }\n }\n\n // Retrieve DIDComm services\n let services: ResolvedDidCommService[] = []\n let queueService: ResolvedDidCommService | undefined\n\n try {\n ;({ services, queueService } = await this.retrieveServicesByConnection(\n agentContext,\n connection,\n options?.transportPriority,\n outOfBand\n ))\n } catch (error) {\n agentContext.config.logger.error(`Unable to retrieve services for connection '${connection.id}. ${error.message}`)\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n throw new MessageSendingError(`Unable to retrieve services for connection '${connection.id}`, {\n outboundMessageContext,\n cause: error,\n })\n }\n\n if (!connection.did) {\n agentContext.config.logger.error(\n `Unable to send message using connection '${connection.id}' that doesn't have a did`\n )\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n throw new MessageSendingError(\n `Unable to send message using connection '${connection.id}' that doesn't have a did`,\n { outboundMessageContext }\n )\n }\n\n const dids = agentContext.resolve(DidsApi)\n const { didDocument, keys } = await dids.resolveCreatedDidDocumentWithKeys(connection.did).catch((error) => {\n agentContext.config.logger.error(\n `Unable to send message using connection '${connection.id}', unable to resolve did`,\n {\n error,\n }\n )\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n throw new MessageSendingError(\n `Unable to send message using connection '${connection.id}'. Unble to resolve did`,\n { outboundMessageContext, cause: error }\n )\n })\n\n const authentication = didDocument.authentication\n ?.map((a) => {\n const verificationMethod = typeof a === 'string' ? didDocument.dereferenceVerificationMethod(a) : a\n const publicJwk = getPublicJwkFromVerificationMethod(verificationMethod)\n const kmsKeyId = keys?.find((key) => verificationMethod.id.endsWith(key.didDocumentRelativeKeyId))?.kmsKeyId\n\n // Set stored key id, or fallback to legacy key id\n publicJwk.keyId = kmsKeyId ?? publicJwk.legacyKeyId\n\n return { verificationMethod, publicJwk, kmsKeyId }\n })\n .filter((v): v is typeof v & { publicJwk: Kms.PublicJwk<Kms.Ed25519PublicJwk> } =>\n v.publicJwk.is(Kms.Ed25519PublicJwk)\n )\n\n // We take the first one with a kms key id. Otherwise we pick the first\n const senderVerificationMethod = authentication?.find((a) => a.kmsKeyId !== undefined) ?? authentication?.[0]\n if (!senderVerificationMethod) {\n throw new MessageSendingError(\n `Unable to determine sender key for did ${connection.did}, no available Ed25519 keys`,\n {\n outboundMessageContext,\n }\n )\n }\n\n // If the returnRoute is already set we won't override it. This allows to set the returnRoute manually if this is desired.\n const shouldAddReturnRoute =\n message.transport?.returnRoute === undefined && !this.transportService.hasInboundEndpoint(didDocument)\n\n // Loop trough all available services and try to send the message\n for await (const service of services) {\n try {\n // Enable return routing if the our did document does not have any inbound endpoint for given sender key\n await this.sendToService(\n new DidCommOutboundMessageContext(message, {\n agentContext,\n serviceParams: {\n service,\n senderKey: senderVerificationMethod.publicJwk,\n returnRoute: shouldAddReturnRoute,\n },\n connection,\n })\n )\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.SentToTransport)\n return\n } catch (error) {\n errors.push(error)\n agentContext.config.logger.debug(\n `Sending outbound message to service with id ${service.id} failed with the following error:`,\n {\n message: error.message,\n error: error,\n }\n )\n }\n }\n\n // We didn't succeed to send the message over open session, or directly to serviceEndpoint\n // If the other party shared a queue service endpoint in their did doc we queue the message\n if (queueService && message.allowQueueTransport) {\n agentContext.config.logger.debug(`Queue message for connection ${connection.id} (${connection.theirLabel})`)\n\n const keys = {\n recipientKeys: queueService.recipientKeys,\n routingKeys: queueService.routingKeys,\n senderKey: senderVerificationMethod.publicJwk,\n }\n\n const encryptedMessage = await this.envelopeService.packMessage(agentContext, message, keys)\n await this.queueTransportRepository.addMessage(agentContext, {\n connectionId: connection.id,\n recipientDids: keys.recipientKeys.map((item) => new DidKey(item).did),\n payload: encryptedMessage,\n })\n\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.QueuedForPickup)\n\n return\n }\n\n // Message is undeliverable\n agentContext.config.logger.error(\n `Message is undeliverable to connection ${connection.id} (${connection.theirLabel})`,\n {\n message,\n errors,\n connection,\n }\n )\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n\n throw new MessageSendingError(\n `Message is undeliverable to connection ${connection.id} (${connection.theirLabel}). \\n\\nReasons:\\n\\t- ${errors.map((e) => e.message).join('\\n\\t-')}`,\n { outboundMessageContext }\n )\n }\n\n private async sendMessageToService(outboundMessageContext: DidCommOutboundMessageContext) {\n const session = this.findSessionForOutboundContext(outboundMessageContext)\n\n if (session) {\n outboundMessageContext.agentContext.config.logger.debug(\n `Found session with return routing for message '${outboundMessageContext.message.id}'`\n )\n try {\n await this.sendMessageToSession(outboundMessageContext.agentContext, session, outboundMessageContext.message)\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.SentToSession)\n return\n } catch (error) {\n outboundMessageContext.agentContext.config.logger.debug(\n `Sending an outbound message via session failed with error: ${error.message}.`,\n error\n )\n }\n }\n\n // If there is no session try sending to service instead\n try {\n await this.sendToService(outboundMessageContext)\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.SentToTransport)\n } catch (error) {\n outboundMessageContext.agentContext.config.logger.error(\n `Message is undeliverable to service with id ${outboundMessageContext.serviceParams?.service.id}: ${error.message}`,\n {\n message: outboundMessageContext.message,\n error,\n }\n )\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n\n throw new MessageSendingError(\n `Message is undeliverable to service with id ${outboundMessageContext.serviceParams?.service.id}: ${error.message}`,\n { outboundMessageContext }\n )\n }\n }\n\n private async sendToService(outboundMessageContext: DidCommOutboundMessageContext) {\n const { agentContext, message, serviceParams, connection } = outboundMessageContext\n\n if (!serviceParams) {\n throw new CredoError('No service parameters found in outbound message context')\n }\n const { service, senderKey, returnRoute } = serviceParams\n\n if (this.outboundTransports.length === 0) {\n throw new CredoError('Agent has no outbound transport!')\n }\n\n agentContext.config.logger.debug('Sending outbound message to service:', {\n messageId: message.id,\n service: { ...service, recipientKeys: 'omitted...', routingKeys: 'omitted...' },\n })\n\n const keys = {\n recipientKeys: service.recipientKeys,\n routingKeys: service.routingKeys,\n senderKey,\n }\n\n // Set return routing for message if requested\n if (returnRoute) {\n message.setReturnRouting(ReturnRouteTypes.all)\n }\n\n try {\n MessageValidator.validateSync(message)\n } catch (error) {\n agentContext.config.logger.error(\n `Aborting sending outbound message ${message.type} to ${service.serviceEndpoint}. Message validation failed`,\n {\n errors: error,\n message: message.toJSON(),\n }\n )\n\n throw error\n }\n\n const outboundPackage = await this.packMessage(agentContext, { message, keys, endpoint: service.serviceEndpoint })\n outboundPackage.endpoint = service.serviceEndpoint\n outboundPackage.connectionId = connection?.id\n for (const transport of this.outboundTransports) {\n const protocolScheme = utils.getProtocolScheme(service.serviceEndpoint)\n if (!protocolScheme) {\n agentContext.config.logger.warn('Service does not have a protocol scheme.')\n } else if (transport.supportedSchemes.includes(protocolScheme)) {\n await transport.sendMessage(outboundPackage)\n return\n }\n }\n throw new MessageSendingError(`Unable to send message to service: ${service.serviceEndpoint}`, {\n outboundMessageContext,\n })\n }\n\n private findSessionForOutboundContext(outboundContext: DidCommOutboundMessageContext) {\n let session: DidCommTransportSession | undefined = undefined\n\n // Use session id from outbound context if present, or use the session from the inbound message context\n const sessionId = outboundContext.sessionId ?? outboundContext.inboundMessageContext?.sessionId\n\n // Try to find session by id\n if (sessionId) {\n session = this.transportService.findSessionById(sessionId)\n }\n\n // Try to find session by connection id\n if (!session && outboundContext.connection?.id) {\n session = this.transportService.findSessionByConnectionId(outboundContext.connection.id)\n }\n\n return session?.inboundMessage?.hasAnyReturnRoute() ? session : null\n }\n\n private async retrieveServicesByConnection(\n agentContext: AgentContext,\n connection: DidCommConnectionRecord,\n transportPriority?: TransportPriorityOptions,\n outOfBand?: DidCommOutOfBandRecord\n ) {\n agentContext.config.logger.debug(\n `Retrieving services for connection '${connection.id}' (${connection.theirLabel})`,\n {\n transportPriority,\n connection,\n }\n )\n\n let didCommServices: ResolvedDidCommService[] = []\n\n if (connection.theirDid) {\n agentContext.config.logger.debug(`Resolving services for connection theirDid ${connection.theirDid}.`)\n didCommServices = await this.didCommDocumentService.resolveServicesFromDid(agentContext, connection.theirDid)\n } else if (outOfBand) {\n agentContext.config.logger.debug(`Resolving services from out-of-band record ${outOfBand.id}.`)\n if (connection.isRequester) {\n for (const service of outOfBand.outOfBandInvitation.getServices()) {\n // Resolve dids to DIDDocs to retrieve services\n if (typeof service === 'string') {\n agentContext.config.logger.debug(`Resolving services for did ${service}.`)\n didCommServices.push(...(await this.didCommDocumentService.resolveServicesFromDid(agentContext, service)))\n } else {\n // Out of band inline service contains keys encoded as did:key references\n didCommServices.push({\n id: service.id,\n recipientKeys: service.recipientKeys.map(didKeyToEd25519PublicJwk),\n routingKeys: service.routingKeys?.map(didKeyToEd25519PublicJwk) || [],\n serviceEndpoint: service.serviceEndpoint,\n })\n }\n }\n }\n }\n\n // Separate queue service out\n let services = didCommServices.filter((s) => !isDidCommTransportQueue(s.serviceEndpoint))\n const queueService = didCommServices.find((s) => isDidCommTransportQueue(s.serviceEndpoint))\n\n // If restrictive will remove services not listed in schemes list\n if (transportPriority?.restrictive) {\n services = services.filter((service) => {\n const serviceSchema = utils.getProtocolScheme(service.serviceEndpoint)\n return transportPriority.schemes.includes(serviceSchema)\n })\n }\n\n // If transport priority is set we will sort services by our priority\n if (transportPriority?.schemes) {\n services = services.sort((a, b) => {\n const aScheme = utils.getProtocolScheme(a.serviceEndpoint)\n const bScheme = utils.getProtocolScheme(b.serviceEndpoint)\n return transportPriority?.schemes.indexOf(aScheme) - transportPriority?.schemes.indexOf(bScheme)\n })\n }\n\n agentContext.config.logger.debug(\n `Retrieved ${services.length} services for message to connection '${connection.id}'(${connection.theirLabel})'`,\n { hasQueueService: queueService !== undefined, transportPriority }\n )\n return { services, queueService }\n }\n\n private emitMessageSentEvent(\n outboundMessageContext: DidCommOutboundMessageContext,\n status: OutboundMessageSendStatus\n ) {\n const { agentContext } = outboundMessageContext\n this.eventEmitter.emit<DidCommMessageSentEvent>(agentContext, {\n type: DidCommEventTypes.DidCommMessageSent,\n payload: {\n message: outboundMessageContext,\n status,\n },\n })\n }\n}\n\nexport function isDidCommTransportQueue(serviceEndpoint: string): serviceEndpoint is typeof DID_COMM_TRANSPORT_QUEUE {\n return serviceEndpoint === DID_COMM_TRANSPORT_QUEUE\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA0CO,iCAAMA,uBAAqB;CAQhC,AAAO,YACL,iBACA,kBACA,qBACA,wBACA,cACA;OARM,sBAAkD,EAAE;AAS1D,OAAK,kBAAkB;AACvB,OAAK,mBAAmB;AACxB,OAAK,2BAA2B,oBAAoB;AACpD,OAAK,yBAAyB;AAC9B,OAAK,eAAe;AACpB,OAAK,sBAAsB,EAAE;;CAG/B,IAAW,qBAAqB;AAC9B,SAAO,KAAK;;CAGd,AAAO,0BAA0B,mBAA6C;AAC5E,OAAK,oBAAoB,KAAK,kBAAkB;;CAGlD,MAAa,4BAA4B,mBAA6C;AACpF,OAAK,sBAAsB,KAAK,mBAAmB,QAAQ,cAAc,cAAc,kBAAkB;AACzG,QAAM,kBAAkB,MAAM;;CAGhC,MAAa,YACX,cACA,EACE,MACA,SACA,YAM+B;AAGjC,SAAO;GACL,SAHuB,MAAM,KAAK,gBAAgB,YAAY,cAAc,SAAS,KAAK;GAI1F,mBAAmB,QAAQ,mBAAmB;GAC9C;GACD;;CAGH,MAAc,qBACZ,cACA,SACA,SACA;AACA,eAAa,OAAO,OAAO,MAAM,uDAAuD,QAAQ,KAAK,KAAK;AAC1G,MAAI,CAAC,QAAQ,KACX,OAAM,IAAI,WAAW,mCAAmC,QAAQ,KAAK,qBAAqB;EAE5F,MAAM,mBAAmB,MAAM,KAAK,gBAAgB,YAAY,cAAc,SAAS,QAAQ,KAAK;AACpG,eAAa,OAAO,OAAO,MAAM,kBAAkB;AACnD,QAAM,QAAQ,KAAK,cAAc,iBAAiB;;CAGpD,MAAa,YACX,cACA,EACE,YACA,kBACA,cACA,WAOF;EACA,M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I,yBAAyB,IAAI,EAAE;IACrE,iBAAiB,QAAQ;IAC1B,CAAC;;EAOV,IAAI,WAAW,gBAAgB,QAAQ,MAAM,CAAC,wBAAwB,EAAE,gBAAgB,CAAC;EACzF,MAAM,eAAe,gBAAgB,MAAM,MAAM,wBAAwB,EAAE,gBAAgB,CAAC;AAG5F,MAAI,mBAAmB,YACrB,YAAW,SAAS,QAAQ,YAAY;GACtC,MAAM,gBAAgB,MAAM,kBAAkB,QAAQ,gBAAgB;AACtE,UAAO,kBAAkB,QAAQ,SAAS,cAAc;IACxD;AAIJ,MAAI,mBAAmB,QACrB,YAAW,SAAS,MAAM,GAAG,MAAM;GACjC,MAAM,UAAU,MAAM,kBAAkB,EAAE,gBAAgB;GAC1D,MAAM,UAAU,MAAM,kBAAkB,EAAE,gBAAgB;AAC1D,UAAO,mBAAmB,QAAQ,QAAQ,QAAQ,GAAG,mBAAmB,QAAQ,QAAQ,QAAQ;IAChG;AAGJ,eAAa,OAAO,OAAO,MACzB,aAAa,SAAS,OAAO,uCAAuC,WAAW,GAAG,IAAI,WAAW,WAAW,KAC5G;GAAE,iBAAiB,iBAAiB;GAAW;GAAmB,CACnE;AACD,SAAO;GAAE;GAAU;GAAc;;CAGnC,AAAQ,qBACN,wBACA,QACA;EACA,MAAM,EAAE,iBAAiB;AACzB,OAAK,aAAa,KAA8B,cAAc;GAC5D,MAAM,kBAAkB;GACxB,SAAS;IACP,SAAS;IACT;IACD;GACF,CAAC;;;mCA3iBL,YAAY;;;;;;;AA+iBb,SAAgB,wBAAwB,iBAA6E;AACnH,QAAO,oBAAoB"}
|
|
1
|
+
{"version":3,"file":"DidCommMessageSender.mjs","names":["DidCommMessageSender","errors: Error[]","services: ResolvedDidCommService[]","queueService: ResolvedDidCommService | undefined","keys","session: DidCommTransportSession | undefined","didCommServices: ResolvedDidCommService[]"],"sources":["../src/DidCommMessageSender.ts"],"sourcesContent":["import {\n AgentContext,\n CredoError,\n DidKey,\n DidsApi,\n didKeyToEd25519PublicJwk,\n EventEmitter,\n getPublicJwkFromVerificationMethod,\n injectable,\n Kms,\n MessageValidator,\n type ResolvedDidCommService,\n utils,\n verkeyToDidKey,\n} from '@credo-ts/core'\nimport { DID_COMM_TRANSPORT_QUEUE } from './constants'\nimport type { EnvelopeKeys } from './DidCommEnvelopeService'\nimport { DidCommEnvelopeService } from './DidCommEnvelopeService'\nimport type { DidCommMessageSentEvent } from './DidCommEvents'\nimport { DidCommEventTypes } from './DidCommEvents'\nimport type { DidCommMessage } from './DidCommMessage'\nimport { DidCommModuleConfig } from './DidCommModuleConfig'\nimport type { DidCommTransportSession } from './DidCommTransportService'\nimport { DidCommTransportService } from './DidCommTransportService'\nimport { ReturnRouteTypes } from './decorators/transport/TransportDecorator'\nimport { MessageSendingError } from './errors'\nimport { DidCommOutboundMessageContext, OutboundMessageSendStatus } from './models'\nimport type { DidCommConnectionRecord } from './modules/connections/repository'\nimport type { DidCommOutOfBandRecord } from './modules/oob/repository'\nimport { DidCommDocumentService } from './services/DidCommDocumentService'\nimport type { DidCommEncryptedMessage, DidCommOutboundPackage } from './types'\n\nexport interface TransportPriorityOptions {\n schemes: string[]\n restrictive?: boolean\n}\n\n@injectable()\nexport class DidCommMessageSender {\n private envelopeService: DidCommEnvelopeService\n private transportService: DidCommTransportService\n private didCommModuleConfig: DidCommModuleConfig\n private didCommDocumentService: DidCommDocumentService\n private eventEmitter: EventEmitter\n\n public constructor(\n envelopeService: DidCommEnvelopeService,\n transportService: DidCommTransportService,\n didCommModuleConfig: DidCommModuleConfig,\n didCommDocumentService: DidCommDocumentService,\n eventEmitter: EventEmitter\n ) {\n this.envelopeService = envelopeService\n this.transportService = transportService\n this.didCommModuleConfig = didCommModuleConfig\n this.didCommDocumentService = didCommDocumentService\n this.eventEmitter = eventEmitter\n }\n\n public async packMessage(\n agentContext: AgentContext,\n {\n keys,\n message,\n endpoint,\n }: {\n keys: EnvelopeKeys\n message: DidCommMessage\n endpoint: string\n }\n ): Promise<DidCommOutboundPackage> {\n const encryptedMessage = await this.envelopeService.packMessage(agentContext, message, keys)\n\n return {\n payload: encryptedMessage,\n responseRequested: message.hasAnyReturnRoute(),\n endpoint,\n }\n }\n\n private async sendMessageToSession(\n agentContext: AgentContext,\n session: DidCommTransportSession,\n message: DidCommMessage\n ) {\n agentContext.config.logger.debug(`Packing message and sending it via existing session ${session.type}...`)\n if (!session.keys) {\n throw new CredoError(`There are no keys for the given ${session.type} transport session.`)\n }\n const encryptedMessage = await this.envelopeService.packMessage(agentContext, message, session.keys)\n agentContext.config.logger.debug('Sending message')\n await session.send(agentContext, encryptedMessage)\n }\n\n public async sendPackage(\n agentContext: AgentContext,\n {\n connection,\n encryptedMessage,\n recipientKey,\n options,\n }: {\n connection: DidCommConnectionRecord\n recipientKey: string\n encryptedMessage: DidCommEncryptedMessage\n options?: { transportPriority?: TransportPriorityOptions }\n }\n ) {\n const errors: Error[] = []\n\n // Try to send to already open session\n const session = this.transportService.findSessionByConnectionId(connection.id)\n if (session?.inboundMessage?.hasReturnRouting()) {\n try {\n await session.send(agentContext, encryptedMessage)\n return\n } catch (error) {\n errors.push(error)\n agentContext.config.logger.debug(\n `Sending packed message via session failed with error: ${error.message}.`,\n error\n )\n }\n }\n\n // Retrieve DIDComm services\n const { services, queueService } = await this.retrieveServicesByConnection(\n agentContext,\n connection,\n options?.transportPriority\n )\n\n if (this.didCommModuleConfig.outboundTransports.length === 0 && !queueService) {\n throw new CredoError('Agent has no outbound transport!')\n }\n\n // Loop trough all available services and try to send the message\n for (const service of services) {\n agentContext.config.logger.debug('Sending outbound message to service:', { service })\n try {\n const protocolScheme = utils.getProtocolScheme(service.serviceEndpoint)\n for (const transport of this.didCommModuleConfig.outboundTransports) {\n if (transport.supportedSchemes.includes(protocolScheme)) {\n await transport.sendMessage({\n payload: encryptedMessage,\n endpoint: service.serviceEndpoint,\n connectionId: connection.id,\n })\n break\n }\n }\n return\n } catch (error) {\n agentContext.config.logger.debug(\n `Sending outbound message to service with id ${service.id} failed with the following error:`,\n {\n message: error.message,\n error: error,\n }\n )\n }\n }\n\n // We didn't succeed to send the message over open session, or directly to serviceEndpoint\n // If the other party shared a queue service endpoint in their did doc we queue the message\n if (queueService) {\n agentContext.config.logger.debug(\n `Queue packed message for connection ${connection.id} (${connection.theirLabel})`\n )\n await this.didCommModuleConfig.queueTransportRepository.addMessage(agentContext, {\n connectionId: connection.id,\n recipientDids: [verkeyToDidKey(recipientKey)],\n payload: encryptedMessage,\n })\n return\n }\n\n // Message is undeliverable\n agentContext.config.logger.error(\n `Message is undeliverable to connection ${connection.id} (${connection.theirLabel})`,\n {\n message: encryptedMessage,\n errors,\n connection,\n }\n )\n throw new CredoError(`Message is undeliverable to connection ${connection.id} (${connection.theirLabel})`)\n }\n\n public async sendMessage(\n outboundMessageContext: DidCommOutboundMessageContext,\n options?: {\n transportPriority?: TransportPriorityOptions\n }\n ) {\n const { agentContext, connection, outOfBand, message } = outboundMessageContext\n const errors: Error[] = []\n\n if (outboundMessageContext.isOutboundServiceMessage()) {\n return this.sendMessageToService(outboundMessageContext)\n }\n\n if (!connection) {\n agentContext.config.logger.error('Outbound message has no associated connection')\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n throw new MessageSendingError('Outbound message has no associated connection', {\n outboundMessageContext,\n })\n }\n\n agentContext.config.logger.debug('Send outbound message', {\n message,\n connectionId: connection.id,\n })\n\n const session = this.findSessionForOutboundContext(outboundMessageContext)\n\n if (session) {\n agentContext.config.logger.debug(\n `Found session with return routing for message '${message.id}' (connection '${connection.id}'`\n )\n\n try {\n await this.sendMessageToSession(agentContext, session, message)\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.SentToSession)\n return\n } catch (error) {\n errors.push(error)\n agentContext.config.logger.debug(\n `Sending an outbound message via session failed with error: ${error.message}.`,\n error\n )\n }\n }\n\n // Retrieve DIDComm services\n let services: ResolvedDidCommService[] = []\n let queueService: ResolvedDidCommService | undefined\n\n try {\n ;({ services, queueService } = await this.retrieveServicesByConnection(\n agentContext,\n connection,\n options?.transportPriority,\n outOfBand\n ))\n } catch (error) {\n agentContext.config.logger.error(`Unable to retrieve services for connection '${connection.id}. ${error.message}`)\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n throw new MessageSendingError(`Unable to retrieve services for connection '${connection.id}`, {\n outboundMessageContext,\n cause: error,\n })\n }\n\n if (!connection.did) {\n agentContext.config.logger.error(\n `Unable to send message using connection '${connection.id}' that doesn't have a did`\n )\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n throw new MessageSendingError(\n `Unable to send message using connection '${connection.id}' that doesn't have a did`,\n { outboundMessageContext }\n )\n }\n\n const dids = agentContext.resolve(DidsApi)\n const { didDocument, keys } = await dids.resolveCreatedDidDocumentWithKeys(connection.did).catch((error) => {\n agentContext.config.logger.error(\n `Unable to send message using connection '${connection.id}', unable to resolve did`,\n {\n error,\n }\n )\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n throw new MessageSendingError(\n `Unable to send message using connection '${connection.id}'. Unble to resolve did`,\n { outboundMessageContext, cause: error }\n )\n })\n\n const authentication = didDocument.authentication\n ?.map((a) => {\n const verificationMethod = typeof a === 'string' ? didDocument.dereferenceVerificationMethod(a) : a\n const publicJwk = getPublicJwkFromVerificationMethod(verificationMethod)\n const kmsKeyId = keys?.find((key) => verificationMethod.id.endsWith(key.didDocumentRelativeKeyId))?.kmsKeyId\n\n // Set stored key id, or fallback to legacy key id\n publicJwk.keyId = kmsKeyId ?? publicJwk.legacyKeyId\n\n return { verificationMethod, publicJwk, kmsKeyId }\n })\n .filter((v): v is typeof v & { publicJwk: Kms.PublicJwk<Kms.Ed25519PublicJwk> } =>\n v.publicJwk.is(Kms.Ed25519PublicJwk)\n )\n\n // We take the first one with a kms key id. Otherwise we pick the first\n const senderVerificationMethod = authentication?.find((a) => a.kmsKeyId !== undefined) ?? authentication?.[0]\n if (!senderVerificationMethod) {\n throw new MessageSendingError(\n `Unable to determine sender key for did ${connection.did}, no available Ed25519 keys`,\n {\n outboundMessageContext,\n }\n )\n }\n\n // If the returnRoute is already set we won't override it. This allows to set the returnRoute manually if this is desired.\n const shouldAddReturnRoute =\n message.transport?.returnRoute === undefined && !this.transportService.hasInboundEndpoint(didDocument)\n\n // Loop trough all available services and try to send the message\n for (const service of services) {\n try {\n // Enable return routing if the our did document does not have any inbound endpoint for given sender key\n await this.sendToService(\n new DidCommOutboundMessageContext(message, {\n agentContext,\n serviceParams: {\n service,\n senderKey: senderVerificationMethod.publicJwk,\n returnRoute: shouldAddReturnRoute,\n },\n connection,\n })\n )\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.SentToTransport)\n return\n } catch (error) {\n errors.push(error)\n agentContext.config.logger.debug(\n `Sending outbound message to service with id ${service.id} failed with the following error:`,\n {\n message: error.message,\n error: error,\n }\n )\n }\n }\n\n // We didn't succeed to send the message over open session, or directly to serviceEndpoint\n // If the other party shared a queue service endpoint in their did doc we queue the message\n if (queueService && message.allowQueueTransport) {\n agentContext.config.logger.debug(`Queue message for connection ${connection.id} (${connection.theirLabel})`)\n\n const keys = {\n recipientKeys: queueService.recipientKeys,\n routingKeys: queueService.routingKeys,\n senderKey: senderVerificationMethod.publicJwk,\n }\n\n const encryptedMessage = await this.envelopeService.packMessage(agentContext, message, keys)\n await this.didCommModuleConfig.queueTransportRepository.addMessage(agentContext, {\n connectionId: connection.id,\n recipientDids: keys.recipientKeys.map((item) => new DidKey(item).did),\n payload: encryptedMessage,\n })\n\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.QueuedForPickup)\n\n return\n }\n\n // Message is undeliverable\n agentContext.config.logger.error(\n `Message is undeliverable to connection ${connection.id} (${connection.theirLabel})`,\n {\n message,\n errors,\n connection,\n }\n )\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n\n throw new MessageSendingError(\n `Message is undeliverable to connection ${connection.id} (${connection.theirLabel}). \\n\\nReasons:\\n\\t- ${errors.map((e) => e.message).join('\\n\\t-')}`,\n { outboundMessageContext }\n )\n }\n\n private async sendMessageToService(outboundMessageContext: DidCommOutboundMessageContext) {\n const session = this.findSessionForOutboundContext(outboundMessageContext)\n\n if (session) {\n outboundMessageContext.agentContext.config.logger.debug(\n `Found session with return routing for message '${outboundMessageContext.message.id}'`\n )\n try {\n await this.sendMessageToSession(outboundMessageContext.agentContext, session, outboundMessageContext.message)\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.SentToSession)\n return\n } catch (error) {\n outboundMessageContext.agentContext.config.logger.debug(\n `Sending an outbound message via session failed with error: ${error.message}.`,\n error\n )\n }\n }\n\n // If there is no session try sending to service instead\n try {\n await this.sendToService(outboundMessageContext)\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.SentToTransport)\n } catch (error) {\n outboundMessageContext.agentContext.config.logger.error(\n `Message is undeliverable to service with id ${outboundMessageContext.serviceParams?.service.id}: ${error.message}`,\n {\n message: outboundMessageContext.message,\n error,\n }\n )\n this.emitMessageSentEvent(outboundMessageContext, OutboundMessageSendStatus.Undeliverable)\n\n throw new MessageSendingError(\n `Message is undeliverable to service with id ${outboundMessageContext.serviceParams?.service.id}: ${error.message}`,\n { outboundMessageContext }\n )\n }\n }\n\n private async sendToService(outboundMessageContext: DidCommOutboundMessageContext) {\n const { agentContext, message, serviceParams, connection } = outboundMessageContext\n\n if (!serviceParams) {\n throw new CredoError('No service parameters found in outbound message context')\n }\n const { service, senderKey, returnRoute } = serviceParams\n\n if (this.didCommModuleConfig.outboundTransports.length === 0) {\n throw new CredoError('Agent has no outbound transport!')\n }\n\n agentContext.config.logger.debug('Sending outbound message to service:', {\n messageId: message.id,\n service: { ...service, recipientKeys: 'omitted...', routingKeys: 'omitted...' },\n })\n\n const keys = {\n recipientKeys: service.recipientKeys,\n routingKeys: service.routingKeys,\n senderKey,\n }\n\n // Set return routing for message if requested\n if (returnRoute) {\n message.setReturnRouting(ReturnRouteTypes.all)\n }\n\n try {\n MessageValidator.validateSync(message)\n } catch (error) {\n agentContext.config.logger.error(\n `Aborting sending outbound message ${message.type} to ${service.serviceEndpoint}. Message validation failed`,\n {\n errors: error,\n message: message.toJSON(),\n }\n )\n\n throw error\n }\n\n const outboundPackage = await this.packMessage(agentContext, { message, keys, endpoint: service.serviceEndpoint })\n outboundPackage.endpoint = service.serviceEndpoint\n outboundPackage.connectionId = connection?.id\n for (const transport of this.didCommModuleConfig.outboundTransports) {\n const protocolScheme = utils.getProtocolScheme(service.serviceEndpoint)\n if (!protocolScheme) {\n agentContext.config.logger.warn('Service does not have a protocol scheme.')\n } else if (transport.supportedSchemes.includes(protocolScheme)) {\n await transport.sendMessage(outboundPackage)\n return\n }\n }\n throw new MessageSendingError(`Unable to send message to service: ${service.serviceEndpoint}`, {\n outboundMessageContext,\n })\n }\n\n private findSessionForOutboundContext(outboundContext: DidCommOutboundMessageContext) {\n let session: DidCommTransportSession | undefined\n\n // Use session id from outbound context if present, or use the session from the inbound message context\n const sessionId = outboundContext.sessionId ?? outboundContext.inboundMessageContext?.sessionId\n\n // Try to find session by id\n if (sessionId) {\n session = this.transportService.findSessionById(sessionId)\n }\n\n // Try to find session by connection id\n if (!session && outboundContext.connection?.id) {\n session = this.transportService.findSessionByConnectionId(outboundContext.connection.id)\n }\n\n return session?.inboundMessage?.hasAnyReturnRoute() ? session : null\n }\n\n private async retrieveServicesByConnection(\n agentContext: AgentContext,\n connection: DidCommConnectionRecord,\n transportPriority?: TransportPriorityOptions,\n outOfBand?: DidCommOutOfBandRecord\n ) {\n agentContext.config.logger.debug(\n `Retrieving services for connection '${connection.id}' (${connection.theirLabel})`,\n {\n transportPriority,\n connection,\n }\n )\n\n let didCommServices: ResolvedDidCommService[] = []\n\n if (connection.theirDid) {\n agentContext.config.logger.debug(`Resolving services for connection theirDid ${connection.theirDid}.`)\n didCommServices = await this.didCommDocumentService.resolveServicesFromDid(agentContext, connection.theirDid)\n } else if (outOfBand) {\n agentContext.config.logger.debug(`Resolving services from out-of-band record ${outOfBand.id}.`)\n if (connection.isRequester) {\n for (const service of outOfBand.outOfBandInvitation.getServices()) {\n // Resolve dids to DIDDocs to retrieve services\n if (typeof service === 'string') {\n agentContext.config.logger.debug(`Resolving services for did ${service}.`)\n didCommServices.push(...(await this.didCommDocumentService.resolveServicesFromDid(agentContext, service)))\n } else {\n // Out of band inline service contains keys encoded as did:key references\n didCommServices.push({\n id: service.id,\n recipientKeys: service.recipientKeys.map(didKeyToEd25519PublicJwk),\n routingKeys: service.routingKeys?.map(didKeyToEd25519PublicJwk) || [],\n serviceEndpoint: service.serviceEndpoint,\n })\n }\n }\n }\n }\n\n // Separate queue service out\n let services = didCommServices.filter((s) => !isDidCommTransportQueue(s.serviceEndpoint))\n const queueService = didCommServices.find((s) => isDidCommTransportQueue(s.serviceEndpoint))\n\n // If restrictive will remove services not listed in schemes list\n if (transportPriority?.restrictive) {\n services = services.filter((service) => {\n const serviceSchema = utils.getProtocolScheme(service.serviceEndpoint)\n return transportPriority.schemes.includes(serviceSchema)\n })\n }\n\n // If transport priority is set we will sort services by our priority\n if (transportPriority?.schemes) {\n services = services.sort((a, b) => {\n const aScheme = utils.getProtocolScheme(a.serviceEndpoint)\n const bScheme = utils.getProtocolScheme(b.serviceEndpoint)\n return transportPriority?.schemes.indexOf(aScheme) - transportPriority?.schemes.indexOf(bScheme)\n })\n }\n\n agentContext.config.logger.debug(\n `Retrieved ${services.length} services for message to connection '${connection.id}'(${connection.theirLabel})'`,\n { hasQueueService: queueService !== undefined, transportPriority }\n )\n return { services, queueService }\n }\n\n private emitMessageSentEvent(\n outboundMessageContext: DidCommOutboundMessageContext,\n status: OutboundMessageSendStatus\n ) {\n const { agentContext } = outboundMessageContext\n this.eventEmitter.emit<DidCommMessageSentEvent>(agentContext, {\n type: DidCommEventTypes.DidCommMessageSent,\n payload: {\n message: outboundMessageContext,\n status,\n },\n })\n }\n}\n\nexport function isDidCommTransportQueue(serviceEndpoint: string): serviceEndpoint is typeof DID_COMM_TRANSPORT_QUEUE {\n return serviceEndpoint === DID_COMM_TRANSPORT_QUEUE\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAsCO,iCAAMA,uBAAqB;CAOhC,AAAO,YACL,iBACA,kBACA,qBACA,wBACA,cACA;AACA,OAAK,kBAAkB;AACvB,OAAK,mBAAmB;AACxB,OAAK,sBAAsB;AAC3B,OAAK,yBAAyB;AAC9B,OAAK,eAAe;;CAGtB,MAAa,YACX,cACA,EACE,MACA,SACA,YAM+B;AAGjC,SAAO;GACL,SAHuB,MAAM,KAAK,gBAAgB,YAAY,cAAc,SAAS,KAAK;GAI1F,mBAAmB,QAAQ,mBAAmB;GAC9C;GACD;;CAGH,MAAc,qBACZ,cACA,SACA,SACA;AACA,eAAa,OAAO,OAAO,MAAM,uDAAuD,QAAQ,KAAK,KAAK;AAC1G,MAAI,CAAC,QAAQ,KACX,OAAM,IAAI,WAAW,mCAAmC,QAAQ,KAAK,qBAAqB;EAE5F,MAAM,mBAAmB,MAAM,KAAK,gBAAgB,YAAY,cAAc,SAAS,QAAQ,KAAK;AACpG,eAAa,OAAO,OAAO,MAAM,kBAAkB;AACnD,QAAM,QAAQ,KAAK,cAAc,iBAAiB;;CAGpD,MAAa,YACX,cACA,EACE,YACA,kBACA,cACA,WAOF;EACA,MAAMC,SAAkB,EAAE;EAG1B,MAAM,UAAU,KAAK,iBAAiB,0BAA0B,WAAW,GAAG;AAC9E,MAAI,SAAS,gBAAgB,kBAAkB,CAC7C,KAAI;AACF,SAAM,QAAQ,KAAK,cAAc,iBAAiB;AAClD;WACO,OAAO;AACd,UAAO,KAAK,MAAM;AAClB,gBAAa,OAAO,OAAO,MACzB,yDAAyD,MAAM,QAAQ,IACvE,MACD;;EAKL,MAAM,EAAE,UAAU,iBAAiB,MAAM,KAAK,6BAC5C,cACA,YACA,SAAS,kBACV;AAED,MAAI,KAAK,oBAAoB,mBAAmB,WAAW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,cAAc;IACxD;AAIJ,MAAI,mBAAmB,QACrB,YAAW,SAAS,MAAM,GAAG,MAAM;GACjC,MAAM,UAAU,MAAM,kBAAkB,EAAE,gBAAgB;GAC1D,MAAM,UAAU,MAAM,kBAAkB,EAAE,gBAAgB;AAC1D,UAAO,mBAAmB,QAAQ,QAAQ,QAAQ,GAAG,mBAAmB,QAAQ,QAAQ,QAAQ;IAChG;AAGJ,eAAa,OAAO,OAAO,MACzB,aAAa,SAAS,OAAO,uCAAuC,WAAW,GAAG,IAAI,WAAW,WAAW,KAC5G;GAAE,iBAAiB,iBAAiB;GAAW;GAAmB,CACnE;AACD,SAAO;GAAE;GAAU;GAAc;;CAGnC,AAAQ,qBACN,wBACA,QACA;EACA,MAAM,EAAE,iBAAiB;AACzB,OAAK,aAAa,KAA8B,cAAc;GAC5D,MAAM,kBAAkB;GACxB,SAAS;IACP,SAAS;IACT;IACD;GACF,CAAC;;;mCA5hBL,YAAY;;;;;;;AAgiBb,SAAgB,wBAAwB,iBAA6E;AACnH,QAAO,oBAAoB"}
|
|
@@ -10,8 +10,8 @@ import { DidCommOutOfBandModule } from "./modules/oob/DidCommOutOfBandModule.mjs
|
|
|
10
10
|
import { DidCommProofProtocol } from "./modules/proofs/protocol/DidCommProofProtocol.mjs";
|
|
11
11
|
import { DidCommProofsModuleConfigOptions } from "./modules/proofs/DidCommProofsModuleConfig.mjs";
|
|
12
12
|
import { DefaultDidCommProofProtocols, DidCommProofsModule } from "./modules/proofs/DidCommProofsModule.mjs";
|
|
13
|
-
import { DidCommMediatorModule } from "./modules/routing/DidCommMediatorModule.mjs";
|
|
14
13
|
import { DidCommMediationRecipientModule } from "./modules/routing/DidCommMediationRecipientModule.mjs";
|
|
14
|
+
import { DidCommMediatorModule } from "./modules/routing/DidCommMediatorModule.mjs";
|
|
15
15
|
import { DidCommModuleConfig, DidCommModuleConfigOptions } from "./DidCommModuleConfig.mjs";
|
|
16
16
|
import { DidCommConnectionsModule } from "./modules/connections/DidCommConnectionsModule.mjs";
|
|
17
17
|
import { DidCommApi } from "./DidCommApi.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommModule.d.mts","names":[],"sources":["../src/DidCommModule.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommModule.d.mts","names":[],"sources":["../src/DidCommModule.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KA4CK,gCAAgC,4BAA4B;KAE5D,+BAA+B;eACrB;OACR;aACM;IACT,cACF;eAEe,yBACX,+BAA+B,sCAAsC,+BACjE,gDACA;KAIR,cACE;UAEU,oBACN,0BAA0B,iCAAiC,0BACvD,sCACA;KAIV,cACE;iBAEiB,2BACb,iCAAiC,wCAAwC,kCACrE,wCACA;AAnCwC,CAAA,CAAA,GAuClD,aApCG,CAoCW,OApCE,CAAA,UAAA,CAAA,EAAA;EAAA,QAAA,EAoC+B,qBApC/B;KAqChB,aArCmC,CAqCrB,OArCqB,CAAA,oBAAA,CAAA,EAAA;oBAA4B,EAqCI,+BArCJ;CAAM,CAAA,GAsCrE,aAtCqE,CAsCvD,OAtCuD,CAAA,eAAA,CAAA,EAAA;EAElE,aAAA,EAoCsD,0BApCxC;CAAA,CAAA;iBAsCV,iBAtC2B,CAAA,gBAsCO,0BAtCP,CAAA,CAAA,OAAA,EAsC4C,OAtC5C,CAAA,EAsCsD,cAtCtD,CAsCqE,OAtCrE,CAAA;AACrB,cAsEF,aAtEE,CAAA,gBAsE4B,0BAtE5B,GAsEyD,0BAtEzD,CAAA,YAsEgG,MAtEhG,CAAA;WACR,MAAA,EAsEmB,mBAtEnB,CAsEuC,OAtEvC,CAAA;WACM,GAAA,EAAA,OAsEiB,UAtEjB,CAsE4B,OAtE5B,CAAA;WAEX,OAAA,EAsEyB,UAtEzB,CAAA,OAsE2C,iBAtE3C,CAsE6D,OAtE7D,CAAA,CAAA;aAGI,CAAA,MAAA,CAAA,EAqEwB,OArExB;;;;UAEI,CAAA,iBAAA,EA2E2B,iBA3E3B,CAAA,EAAA,IAAA;YAHO,CAAA,YAAA,EAyGuB,YAzGvB,CAAA,EAyGsC,OAzGtC,CAAA,IAAA,CAAA;qBAHb,CAAA,YAAA,EAqJ6C,YArJ7C,CAAA,EAqJ4D,OArJ5D,CAAA,IAAA,CAAA;gBAWA,CAAA,YAAA,EAiJwC,YAjJxC,CAAA,EAiJuD,OAjJvD,CAAA,IAAA,CAAA;iBAGI,CAAA,YAAA,EAqJqC,YArJrC,CAAA,EAqJoD,OArJpD,CAAA,IAAA,CAAA;oBAA2D,CAAA,YAAA,EA4JnB,YA5JmB,CAAA,EA4JJ,OA5JI,CAAA,IAAA,CAAA;UAAjC,CAAA,YAAA,EAmKI,YAnKJ,CAAA,EAmKgB,OAnKhB,CAAA,IAAA,CAAA;MACtB,OAAA,CAAA,CAAA,EAAA,CAAA;IACA,WAAA,EAAA,KAAA;IAHE,SAAA,EAAA,KAAA;IAHZ,QAAA,EAAA,uBAAA;MAWE;IAGI,WAAA,EAAA,KAAA;IAAyE,SAAA,EAAA,KAAA;IAAxC,QAAA,EAAA,uBAAA;MAC7B;IACA,WAAA,EAAA,KAAA;IAHS,SAAA,EAAA,KAAA;IAHnB,QAAA,EAAA,uBAAA;MAUc"}
|
package/build/DidCommModule.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ import { DidCommOutOfBandModule } from "./modules/oob/DidCommOutOfBandModule.js"
|
|
|
10
10
|
import { DidCommProofProtocol } from "./modules/proofs/protocol/DidCommProofProtocol.js";
|
|
11
11
|
import { DidCommProofsModuleConfigOptions } from "./modules/proofs/DidCommProofsModuleConfig.js";
|
|
12
12
|
import { DefaultDidCommProofProtocols, DidCommProofsModule } from "./modules/proofs/DidCommProofsModule.js";
|
|
13
|
-
import { DidCommMediatorModule } from "./modules/routing/DidCommMediatorModule.js";
|
|
14
13
|
import { DidCommMediationRecipientModule } from "./modules/routing/DidCommMediationRecipientModule.js";
|
|
14
|
+
import { DidCommMediatorModule } from "./modules/routing/DidCommMediatorModule.js";
|
|
15
15
|
import { DidCommModuleConfig, DidCommModuleConfigOptions } from "./DidCommModuleConfig.js";
|
|
16
16
|
import { DidCommConnectionsModule } from "./modules/connections/DidCommConnectionsModule.js";
|
|
17
17
|
import { DidCommApi } from "./DidCommApi.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommModule.d.ts","names":[],"sources":["../src/DidCommModule.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommModule.d.ts","names":[],"sources":["../src/DidCommModule.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KA4CK,gCAAgC,4BAA4B;KAE5D,+BAA+B;eACrB;OACR;aACM;IACT,cACF;eAEe,yBACX,+BAA+B,sCAAsC,+BACjE,gDACA;KAIR,cACE;UAEU,oBACN,0BAA0B,iCAAiC,0BACvD,sCACA;KAIV,cACE;iBAEiB,2BACb,iCAAiC,wCAAwC,kCACrE,wCACA;AAnCwC,CAAA,CAAA,GAuClD,aApCG,CAoCW,OApCE,CAAA,UAAA,CAAA,EAAA;EAAA,QAAA,EAoC+B,qBApC/B;KAqChB,aArCmC,CAqCrB,OArCqB,CAAA,oBAAA,CAAA,EAAA;oBAA4B,EAqCI,+BArCJ;CAAM,CAAA,GAsCrE,aAtCqE,CAsCvD,OAtCuD,CAAA,eAAA,CAAA,EAAA;EAElE,aAAA,EAoCsD,0BApCxC;CAAA,CAAA;iBAsCV,iBAtC2B,CAAA,gBAsCO,0BAtCP,CAAA,CAAA,OAAA,EAsC4C,OAtC5C,CAAA,EAsCsD,cAtCtD,CAsCqE,OAtCrE,CAAA;AACrB,cAsEF,aAtEE,CAAA,gBAsE4B,0BAtE5B,GAsEyD,0BAtEzD,CAAA,YAsEgG,MAtEhG,CAAA;WACR,MAAA,EAsEmB,mBAtEnB,CAsEuC,OAtEvC,CAAA;WACM,GAAA,EAAA,OAsEiB,UAtEjB,CAsE4B,OAtE5B,CAAA;WAEX,OAAA,EAsEyB,UAtEzB,CAAA,OAsE2C,iBAtE3C,CAsE6D,OAtE7D,CAAA,CAAA;aAGI,CAAA,MAAA,CAAA,EAqEwB,OArExB;;;;UAEI,CAAA,iBAAA,EA2E2B,iBA3E3B,CAAA,EAAA,IAAA;YAHO,CAAA,YAAA,EAyGuB,YAzGvB,CAAA,EAyGsC,OAzGtC,CAAA,IAAA,CAAA;qBAHb,CAAA,YAAA,EAqJ6C,YArJ7C,CAAA,EAqJ4D,OArJ5D,CAAA,IAAA,CAAA;gBAWA,CAAA,YAAA,EAiJwC,YAjJxC,CAAA,EAiJuD,OAjJvD,CAAA,IAAA,CAAA;iBAGI,CAAA,YAAA,EAqJqC,YArJrC,CAAA,EAqJoD,OArJpD,CAAA,IAAA,CAAA;oBAA2D,CAAA,YAAA,EA4JnB,YA5JmB,CAAA,EA4JJ,OA5JI,CAAA,IAAA,CAAA;UAAjC,CAAA,YAAA,EAmKI,YAnKJ,CAAA,EAmKgB,OAnKhB,CAAA,IAAA,CAAA;MACtB,OAAA,CAAA,CAAA,EAAA,CAAA;IACA,WAAA,EAAA,KAAA;IAHE,SAAA,EAAA,KAAA;IAHZ,QAAA,EAAA,uBAAA;MAWE;IAGI,WAAA,EAAA,KAAA;IAAyE,SAAA,EAAA,KAAA;IAAxC,QAAA,EAAA,uBAAA;MAC7B;IACA,WAAA,EAAA,KAAA;IAHS,SAAA,EAAA,KAAA;IAHnB,QAAA,EAAA,uBAAA;MAUc"}
|
package/build/DidCommModule.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
|
|
2
|
+
const require_DidCommFeatureRegistry = require('./DidCommFeatureRegistry.js');
|
|
3
|
+
const require_DidCommMessageHandlerRegistry = require('./DidCommMessageHandlerRegistry.js');
|
|
2
4
|
const require_DidCommEvents = require('./DidCommEvents.js');
|
|
3
5
|
const require_DidCommModuleConfig = require('./DidCommModuleConfig.js');
|
|
4
|
-
const require_DidCommTransportService = require('./DidCommTransportService.js');
|
|
5
6
|
const require_DidCommEnvelopeService = require('./DidCommEnvelopeService.js');
|
|
7
|
+
const require_DidCommTransportService = require('./DidCommTransportService.js');
|
|
6
8
|
const require_DidCommMessageSender = require('./DidCommMessageSender.js');
|
|
7
|
-
const require_DidCommFeatureRegistry = require('./DidCommFeatureRegistry.js');
|
|
8
|
-
const require_DidCommMessageHandlerRegistry = require('./DidCommMessageHandlerRegistry.js');
|
|
9
9
|
const require_DidCommConnectionsModule = require('./modules/connections/DidCommConnectionsModule.js');
|
|
10
10
|
const require_DidCommBasicMessagesModule = require('./modules/basic-messages/DidCommBasicMessagesModule.js');
|
|
11
11
|
const require_DidCommOutOfBandModule = require('./modules/oob/DidCommOutOfBandModule.js');
|
|
12
|
-
const require_DidCommMessagePickupModule = require('./modules/message-pickup/DidCommMessagePickupModule.js');
|
|
13
12
|
const require_DidCommDiscoverFeaturesModule = require('./modules/discover-features/DidCommDiscoverFeaturesModule.js');
|
|
14
|
-
const
|
|
13
|
+
const require_DidCommMessagePickupModule = require('./modules/message-pickup/DidCommMessagePickupModule.js');
|
|
15
14
|
const require_DidCommMediationRecipientModule = require('./modules/routing/DidCommMediationRecipientModule.js');
|
|
15
|
+
const require_DidCommMediatorModule = require('./modules/routing/DidCommMediatorModule.js');
|
|
16
16
|
const require_DidCommMessageRepository = require('./repository/DidCommMessageRepository.js');
|
|
17
17
|
require('./repository/index.js');
|
|
18
18
|
const require_DidCommCredentialsModule = require('./modules/credentials/DidCommCredentialsModule.js');
|
|
19
19
|
const require_DidCommProofsModule = require('./modules/proofs/DidCommProofsModule.js');
|
|
20
20
|
require('./modules/index.js');
|
|
21
|
+
const require_DidCommApi = require('./DidCommApi.js');
|
|
21
22
|
const require_DidCommDispatcher = require('./DidCommDispatcher.js');
|
|
22
23
|
const require_DidCommMessageReceiver = require('./DidCommMessageReceiver.js');
|
|
23
|
-
const require_DidCommApi = require('./DidCommApi.js');
|
|
24
24
|
const require_index$2 = require('./updates/0.1-0.2/index.js');
|
|
25
25
|
const require_index$3 = require('./updates/0.2-0.3/index.js');
|
|
26
26
|
const require_index$4 = require('./updates/0.4-0.5/index.js');
|
|
@@ -71,7 +71,6 @@ var DidCommModule = class {
|
|
|
71
71
|
const stop$ = agentContext.dependencyManager.resolve(__credo_ts_core.InjectionSymbols.Stop$);
|
|
72
72
|
const eventEmitter = agentContext.dependencyManager.resolve(__credo_ts_core.EventEmitter);
|
|
73
73
|
const messageReceiver = agentContext.dependencyManager.resolve(require_DidCommMessageReceiver.DidCommMessageReceiver);
|
|
74
|
-
const messageSender = agentContext.dependencyManager.resolve(require_DidCommMessageSender.DidCommMessageSender);
|
|
75
74
|
eventEmitter.observable(require_DidCommEvents.DidCommEventTypes.DidCommMessageReceived).pipe((0, rxjs.takeUntil)(stop$), (0, rxjs.mergeMap)((e) => messageReceiver.receiveMessage(e.payload.message, {
|
|
76
75
|
connection: e.payload.connection,
|
|
77
76
|
contextCorrelationId: e.payload.contextCorrelationId,
|
|
@@ -80,8 +79,8 @@ var DidCommModule = class {
|
|
|
80
79
|
}).catch((error) => {
|
|
81
80
|
agentContext.config.logger.error("Failed to process message", { error });
|
|
82
81
|
}), this.config.processDidCommMessagesConcurrently ? void 0 : 1)).subscribe();
|
|
83
|
-
for (const transport of
|
|
84
|
-
for (const transport of
|
|
82
|
+
for (const transport of this.config.inboundTransports) await transport.start(agentContext);
|
|
83
|
+
for (const transport of this.config.outboundTransports) await transport.start(agentContext);
|
|
85
84
|
for (const module$1 of Object.values(this.modules)) await module$1.initialize?.(agentContext);
|
|
86
85
|
}
|
|
87
86
|
async onInitializeContext(agentContext) {
|
|
@@ -97,9 +96,7 @@ var DidCommModule = class {
|
|
|
97
96
|
for (const module$1 of Object.values(this.modules)) await module$1.onProvisionContext?.(agentContext);
|
|
98
97
|
}
|
|
99
98
|
async shutdown(agentContext) {
|
|
100
|
-
const
|
|
101
|
-
const messageSender = agentContext.dependencyManager.resolve(require_DidCommMessageSender.DidCommMessageSender);
|
|
102
|
-
const transportPromises = [...messageReceiver.inboundTransports, ...messageSender.outboundTransports].map((transport) => transport.stop());
|
|
99
|
+
const transportPromises = [...this.config.inboundTransports, ...this.config.outboundTransports].map((transport) => transport.stop());
|
|
103
100
|
await Promise.all(transportPromises);
|
|
104
101
|
for (const module$1 of Object.values(this.modules)) await module$1.shutdown?.(agentContext);
|
|
105
102
|
}
|
package/build/DidCommModule.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
+
import { DidCommFeatureRegistry } from "./DidCommFeatureRegistry.mjs";
|
|
2
|
+
import { DidCommMessageHandlerRegistry } from "./DidCommMessageHandlerRegistry.mjs";
|
|
1
3
|
import { DidCommEventTypes } from "./DidCommEvents.mjs";
|
|
2
4
|
import { DidCommModuleConfig } from "./DidCommModuleConfig.mjs";
|
|
3
|
-
import { DidCommTransportService } from "./DidCommTransportService.mjs";
|
|
4
5
|
import { DidCommEnvelopeService } from "./DidCommEnvelopeService.mjs";
|
|
6
|
+
import { DidCommTransportService } from "./DidCommTransportService.mjs";
|
|
5
7
|
import { DidCommMessageSender } from "./DidCommMessageSender.mjs";
|
|
6
|
-
import { DidCommFeatureRegistry } from "./DidCommFeatureRegistry.mjs";
|
|
7
|
-
import { DidCommMessageHandlerRegistry } from "./DidCommMessageHandlerRegistry.mjs";
|
|
8
8
|
import { DidCommConnectionsModule } from "./modules/connections/DidCommConnectionsModule.mjs";
|
|
9
9
|
import { DidCommBasicMessagesModule } from "./modules/basic-messages/DidCommBasicMessagesModule.mjs";
|
|
10
10
|
import { DidCommOutOfBandModule } from "./modules/oob/DidCommOutOfBandModule.mjs";
|
|
11
|
-
import { DidCommMessagePickupModule } from "./modules/message-pickup/DidCommMessagePickupModule.mjs";
|
|
12
11
|
import { DidCommDiscoverFeaturesModule } from "./modules/discover-features/DidCommDiscoverFeaturesModule.mjs";
|
|
13
|
-
import {
|
|
12
|
+
import { DidCommMessagePickupModule } from "./modules/message-pickup/DidCommMessagePickupModule.mjs";
|
|
14
13
|
import { DidCommMediationRecipientModule } from "./modules/routing/DidCommMediationRecipientModule.mjs";
|
|
14
|
+
import { DidCommMediatorModule } from "./modules/routing/DidCommMediatorModule.mjs";
|
|
15
15
|
import { DidCommMessageRepository } from "./repository/DidCommMessageRepository.mjs";
|
|
16
16
|
import "./repository/index.mjs";
|
|
17
17
|
import { DidCommCredentialsModule } from "./modules/credentials/DidCommCredentialsModule.mjs";
|
|
18
18
|
import { DidCommProofsModule } from "./modules/proofs/DidCommProofsModule.mjs";
|
|
19
19
|
import "./modules/index.mjs";
|
|
20
|
+
import { DidCommApi } from "./DidCommApi.mjs";
|
|
20
21
|
import { DidCommDispatcher } from "./DidCommDispatcher.mjs";
|
|
21
22
|
import { DidCommMessageReceiver } from "./DidCommMessageReceiver.mjs";
|
|
22
|
-
import { DidCommApi } from "./DidCommApi.mjs";
|
|
23
23
|
import { updateV0_1ToV0_2 } from "./updates/0.1-0.2/index.mjs";
|
|
24
24
|
import { updateV0_2ToV0_3 } from "./updates/0.2-0.3/index.mjs";
|
|
25
25
|
import { updateV0_4ToV0_5 } from "./updates/0.4-0.5/index.mjs";
|
|
@@ -68,7 +68,6 @@ var DidCommModule = class {
|
|
|
68
68
|
const stop$ = agentContext.dependencyManager.resolve(InjectionSymbols.Stop$);
|
|
69
69
|
const eventEmitter = agentContext.dependencyManager.resolve(EventEmitter);
|
|
70
70
|
const messageReceiver = agentContext.dependencyManager.resolve(DidCommMessageReceiver);
|
|
71
|
-
const messageSender = agentContext.dependencyManager.resolve(DidCommMessageSender);
|
|
72
71
|
eventEmitter.observable(DidCommEventTypes.DidCommMessageReceived).pipe(takeUntil(stop$), mergeMap((e) => messageReceiver.receiveMessage(e.payload.message, {
|
|
73
72
|
connection: e.payload.connection,
|
|
74
73
|
contextCorrelationId: e.payload.contextCorrelationId,
|
|
@@ -77,8 +76,8 @@ var DidCommModule = class {
|
|
|
77
76
|
}).catch((error) => {
|
|
78
77
|
agentContext.config.logger.error("Failed to process message", { error });
|
|
79
78
|
}), this.config.processDidCommMessagesConcurrently ? void 0 : 1)).subscribe();
|
|
80
|
-
for (const transport of
|
|
81
|
-
for (const transport of
|
|
79
|
+
for (const transport of this.config.inboundTransports) await transport.start(agentContext);
|
|
80
|
+
for (const transport of this.config.outboundTransports) await transport.start(agentContext);
|
|
82
81
|
for (const module of Object.values(this.modules)) await module.initialize?.(agentContext);
|
|
83
82
|
}
|
|
84
83
|
async onInitializeContext(agentContext) {
|
|
@@ -94,9 +93,7 @@ var DidCommModule = class {
|
|
|
94
93
|
for (const module of Object.values(this.modules)) await module.onProvisionContext?.(agentContext);
|
|
95
94
|
}
|
|
96
95
|
async shutdown(agentContext) {
|
|
97
|
-
const
|
|
98
|
-
const messageSender = agentContext.dependencyManager.resolve(DidCommMessageSender);
|
|
99
|
-
const transportPromises = [...messageReceiver.inboundTransports, ...messageSender.outboundTransports].map((transport) => transport.stop());
|
|
96
|
+
const transportPromises = [...this.config.inboundTransports, ...this.config.outboundTransports].map((transport) => transport.stop());
|
|
100
97
|
await Promise.all(transportPromises);
|
|
101
98
|
for (const module of Object.values(this.modules)) await module.shutdown?.(agentContext);
|
|
102
99
|
}
|