@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,32 +1,32 @@
|
|
|
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');
|
|
4
|
-
const require_ServiceDecorator = require('../../decorators/service/ServiceDecorator.js');
|
|
5
3
|
const require_messageType = require('../../util/messageType.js');
|
|
6
|
-
const
|
|
7
|
-
require('../../models/index.js');
|
|
8
|
-
const require_DidCommDidExchangeState = require('../connections/models/DidCommDidExchangeState.js');
|
|
9
|
-
const require_DidCommHandshakeProtocol = require('../connections/models/DidCommHandshakeProtocol.js');
|
|
4
|
+
const require_DidCommMessageHandlerRegistry = require('../../DidCommMessageHandlerRegistry.js');
|
|
10
5
|
const require_DidCommEvents = require('../../DidCommEvents.js');
|
|
11
|
-
const
|
|
12
|
-
const require_decorateParam = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
|
|
13
|
-
const require_DidCommDocumentService = require('../../services/DidCommDocumentService.js');
|
|
14
|
-
require('../../services/index.js');
|
|
6
|
+
const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
15
7
|
const require_OutOfBandDidCommService = require('./domain/OutOfBandDidCommService.js');
|
|
16
|
-
const
|
|
8
|
+
const require_DidCommDidExchangeState = require('../connections/models/DidCommDidExchangeState.js');
|
|
9
|
+
const require_DidCommHandshakeProtocol = require('../connections/models/DidCommHandshakeProtocol.js');
|
|
17
10
|
const require_DidCommOutOfBandRole = require('./domain/DidCommOutOfBandRole.js');
|
|
11
|
+
const require_ServiceDecorator = require('../../decorators/service/ServiceDecorator.js');
|
|
18
12
|
const require_helpers = require('./helpers.js');
|
|
19
13
|
const require_DidCommOutOfBandInvitation = require('./messages/DidCommOutOfBandInvitation.js');
|
|
20
14
|
require('./messages/index.js');
|
|
21
15
|
const require_DidCommOutOfBandRecord = require('./repository/DidCommOutOfBandRecord.js');
|
|
16
|
+
const require_decorateParam = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
|
|
22
17
|
const require_DidCommOutOfBandRepository = require('./repository/DidCommOutOfBandRepository.js');
|
|
23
|
-
require('./repository/index.js');
|
|
24
|
-
const require_DidCommOutOfBandService = require('./DidCommOutOfBandService.js');
|
|
25
18
|
const require_outOfBandRecordMetadataTypes = require('./repository/outOfBandRecordMetadataTypes.js');
|
|
19
|
+
const require_DidCommDocumentService = require('../../services/DidCommDocumentService.js');
|
|
20
|
+
const require_DidCommOutboundMessageContext = require('../../models/DidCommOutboundMessageContext.js');
|
|
21
|
+
require('../../models/index.js');
|
|
26
22
|
const require_DidCommMessageSender = require('../../DidCommMessageSender.js');
|
|
23
|
+
require('../../services/index.js');
|
|
24
|
+
const require_DidCommOutOfBandEvents = require('./domain/DidCommOutOfBandEvents.js');
|
|
25
|
+
const require_DidCommOutOfBandState = require('./domain/DidCommOutOfBandState.js');
|
|
26
|
+
require('./repository/index.js');
|
|
27
|
+
const require_DidCommOutOfBandService = require('./DidCommOutOfBandService.js');
|
|
27
28
|
const require_DidCommRoutingService = require('../routing/services/DidCommRoutingService.js');
|
|
28
29
|
const require_DidCommConnectionsApi = require('../connections/DidCommConnectionsApi.js');
|
|
29
|
-
const require_DidCommMessageHandlerRegistry = require('../../DidCommMessageHandlerRegistry.js');
|
|
30
30
|
require('../connections/index.js');
|
|
31
31
|
const require_converters = require('./converters.js');
|
|
32
32
|
const require_parseInvitation = require('../../util/parseInvitation.js');
|
|
@@ -82,7 +82,7 @@ let DidCommOutOfBandApi = class DidCommOutOfBandApi$1 {
|
|
|
82
82
|
if (customHandshakeProtocols) this.assertHandshakeProtocolsSupported(customHandshakeProtocols);
|
|
83
83
|
handshakeProtocols = this.getSupportedHandshakeProtocols(customHandshakeProtocols).map((p) => p.parsedProtocolUri.protocolUri);
|
|
84
84
|
}
|
|
85
|
-
let mediatorId
|
|
85
|
+
let mediatorId;
|
|
86
86
|
let services;
|
|
87
87
|
if (config.routing && config.invitationDid) throw new __credo_ts_core.CredoError("Both 'routing' and 'invitationDid' cannot be provided at the same time.");
|
|
88
88
|
const invitationInlineServiceKeys = [];
|
|
@@ -340,7 +340,7 @@ let DidCommOutOfBandApi = class DidCommOutOfBandApi$1 {
|
|
|
340
340
|
await this.outOfBandService.updateState(this.agentContext, outOfBandRecord, require_DidCommOutOfBandState.DidCommOutOfBandState.PrepareResponse);
|
|
341
341
|
if (handshakeProtocols && handshakeProtocols.length > 0) {
|
|
342
342
|
this.logger.debug("Out of band message contains handshake protocols.");
|
|
343
|
-
let connectionRecord
|
|
343
|
+
let connectionRecord;
|
|
344
344
|
if (existingConnection && reuseConnection) {
|
|
345
345
|
this.logger.debug(`Connection already exists and reuse is enabled. Reusing an existing connection with ID ${existingConnection.id}.`);
|
|
346
346
|
if (!messages || messages?.length === 0) {
|
|
@@ -1,31 +1,31 @@
|
|
|
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";
|
|
3
|
-
import { ServiceDecorator } from "../../decorators/service/ServiceDecorator.mjs";
|
|
4
2
|
import { parseDidCommProtocolUri, parseMessageType, supportsIncomingDidCommProtocolUri, supportsIncomingMessageType } from "../../util/messageType.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import "../../models/index.mjs";
|
|
7
|
-
import { DidCommDidExchangeState } from "../connections/models/DidCommDidExchangeState.mjs";
|
|
8
|
-
import { DidCommHandshakeProtocol } from "../connections/models/DidCommHandshakeProtocol.mjs";
|
|
3
|
+
import { DidCommMessageHandlerRegistry } from "../../DidCommMessageHandlerRegistry.mjs";
|
|
9
4
|
import { DidCommEventTypes } from "../../DidCommEvents.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { __decorateParam } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
|
|
12
|
-
import { DidCommDocumentService } from "../../services/DidCommDocumentService.mjs";
|
|
13
|
-
import "../../services/index.mjs";
|
|
5
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
14
6
|
import { OutOfBandDidCommService } from "./domain/OutOfBandDidCommService.mjs";
|
|
15
|
-
import {
|
|
7
|
+
import { DidCommDidExchangeState } from "../connections/models/DidCommDidExchangeState.mjs";
|
|
8
|
+
import { DidCommHandshakeProtocol } from "../connections/models/DidCommHandshakeProtocol.mjs";
|
|
16
9
|
import { DidCommOutOfBandRole } from "./domain/DidCommOutOfBandRole.mjs";
|
|
10
|
+
import { ServiceDecorator } from "../../decorators/service/ServiceDecorator.mjs";
|
|
17
11
|
import { outOfBandServiceToInlineKeysNumAlgo2Did } from "./helpers.mjs";
|
|
18
12
|
import { DidCommInvitationType, DidCommOutOfBandInvitation } from "./messages/DidCommOutOfBandInvitation.mjs";
|
|
19
13
|
import "./messages/index.mjs";
|
|
20
14
|
import { DidCommOutOfBandRecord } from "./repository/DidCommOutOfBandRecord.mjs";
|
|
15
|
+
import { __decorateParam } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
|
|
21
16
|
import { DidCommOutOfBandRepository } from "./repository/DidCommOutOfBandRepository.mjs";
|
|
22
|
-
import "./repository/index.mjs";
|
|
23
|
-
import { DidCommOutOfBandService } from "./DidCommOutOfBandService.mjs";
|
|
24
17
|
import { DidCommOutOfBandRecordMetadataKeys } from "./repository/outOfBandRecordMetadataTypes.mjs";
|
|
18
|
+
import { DidCommDocumentService } from "../../services/DidCommDocumentService.mjs";
|
|
19
|
+
import { DidCommOutboundMessageContext } from "../../models/DidCommOutboundMessageContext.mjs";
|
|
20
|
+
import "../../models/index.mjs";
|
|
25
21
|
import { DidCommMessageSender } from "../../DidCommMessageSender.mjs";
|
|
22
|
+
import "../../services/index.mjs";
|
|
23
|
+
import { DidCommOutOfBandEventTypes } from "./domain/DidCommOutOfBandEvents.mjs";
|
|
24
|
+
import { DidCommOutOfBandState } from "./domain/DidCommOutOfBandState.mjs";
|
|
25
|
+
import "./repository/index.mjs";
|
|
26
|
+
import { DidCommOutOfBandService } from "./DidCommOutOfBandService.mjs";
|
|
26
27
|
import { DidCommRoutingService } from "../routing/services/DidCommRoutingService.mjs";
|
|
27
28
|
import { DidCommConnectionsApi } from "../connections/DidCommConnectionsApi.mjs";
|
|
28
|
-
import { DidCommMessageHandlerRegistry } from "../../DidCommMessageHandlerRegistry.mjs";
|
|
29
29
|
import "../connections/index.mjs";
|
|
30
30
|
import { convertToNewInvitation, convertToOldInvitation } from "./converters.mjs";
|
|
31
31
|
import { parseInvitationShortUrl } from "../../util/parseInvitation.mjs";
|
|
@@ -79,7 +79,7 @@ let DidCommOutOfBandApi = class DidCommOutOfBandApi$1 {
|
|
|
79
79
|
if (customHandshakeProtocols) this.assertHandshakeProtocolsSupported(customHandshakeProtocols);
|
|
80
80
|
handshakeProtocols = this.getSupportedHandshakeProtocols(customHandshakeProtocols).map((p) => p.parsedProtocolUri.protocolUri);
|
|
81
81
|
}
|
|
82
|
-
let mediatorId
|
|
82
|
+
let mediatorId;
|
|
83
83
|
let services;
|
|
84
84
|
if (config.routing && config.invitationDid) throw new CredoError("Both 'routing' and 'invitationDid' cannot be provided at the same time.");
|
|
85
85
|
const invitationInlineServiceKeys = [];
|
|
@@ -337,7 +337,7 @@ let DidCommOutOfBandApi = class DidCommOutOfBandApi$1 {
|
|
|
337
337
|
await this.outOfBandService.updateState(this.agentContext, outOfBandRecord, DidCommOutOfBandState.PrepareResponse);
|
|
338
338
|
if (handshakeProtocols && handshakeProtocols.length > 0) {
|
|
339
339
|
this.logger.debug("Out of band message contains handshake protocols.");
|
|
340
|
-
let connectionRecord
|
|
340
|
+
let connectionRecord;
|
|
341
341
|
if (existingConnection && reuseConnection) {
|
|
342
342
|
this.logger.debug(`Connection already exists and reuse is enabled. Reusing an existing connection with ID ${existingConnection.id}.`);
|
|
343
343
|
if (!messages || messages?.length === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommOutOfBandApi.mjs","names":["DidCommOutOfBandApi","logger: Logger","handshakeProtocols: string[] | undefined","mediatorId: string | undefined","services: [string] | OutOfBandDidCommService[]","invitationInlineServiceKeys: DidCommOutOfBandInlineServiceKey[]","connectionRecord: DidCommConnectionRecord | undefined","connectionRecord","recipientKeyFingerprints: string[]"],"sources":["../../../src/modules/oob/DidCommOutOfBandApi.ts"],"sourcesContent":["import type { Query, QueryOptions } from '@credo-ts/core'\nimport type { DidCommMessage } from '../../DidCommMessage'\nimport type { DidCommAttachment } from '../../decorators/attachment/DidCommAttachment'\nimport type { DidCommRouting } from '../../models'\nimport type { DidCommPlaintextMessage } from '../../types'\nimport type { DidCommHandshakeReusedEvent } from './domain/DidCommOutOfBandEvents'\n\nimport {\n AgentContext,\n CredoError,\n DidKey,\n EventEmitter,\n InjectionSymbols,\n JsonEncoder,\n JsonTransformer,\n Kms,\n type Logger,\n filterContextCorrelationId,\n inject,\n injectable,\n} from '@credo-ts/core'\nimport { EmptyError, catchError, first, firstValueFrom, map, of, timeout } from 'rxjs'\n\nimport { DidCommEventTypes, type DidCommMessageReceivedEvent } from '../../DidCommEvents'\nimport { DidCommMessageHandlerRegistry } from '../../DidCommMessageHandlerRegistry'\nimport { DidCommMessageSender } from '../../DidCommMessageSender'\nimport { ServiceDecorator } from '../../decorators/service/ServiceDecorator'\nimport { DidCommOutboundMessageContext } from '../../models'\nimport { DidCommDocumentService } from '../../services'\nimport {\n parseDidCommProtocolUri,\n parseMessageType,\n supportsIncomingDidCommProtocolUri,\n supportsIncomingMessageType,\n} from '../../util/messageType'\nimport { parseInvitationShortUrl } from '../../util/parseInvitation'\nimport {\n DidCommConnectionInvitationMessage,\n DidCommConnectionRecord,\n DidCommDidExchangeState,\n DidCommHandshakeProtocol,\n} from '../connections'\nimport { DidCommConnectionsApi } from '../connections/DidCommConnectionsApi'\nimport { DidCommRoutingService } from '../routing/services/DidCommRoutingService'\n\nimport { DidCommOutOfBandService } from './DidCommOutOfBandService'\nimport { convertToNewInvitation, convertToOldInvitation } from './converters'\nimport { DidCommOutOfBandEventTypes } from './domain/DidCommOutOfBandEvents'\nimport { DidCommOutOfBandRole } from './domain/DidCommOutOfBandRole'\nimport { DidCommOutOfBandState } from './domain/DidCommOutOfBandState'\nimport { OutOfBandDidCommService } from './domain/OutOfBandDidCommService'\nimport { outOfBandServiceToInlineKeysNumAlgo2Did } from './helpers'\nimport { DidCommInvitationType, DidCommOutOfBandInvitation } from './messages'\nimport { DidCommOutOfBandRepository } from './repository'\nimport { type DidCommOutOfBandInlineServiceKey, DidCommOutOfBandRecord } from './repository/DidCommOutOfBandRecord'\nimport { DidCommOutOfBandRecordMetadataKeys } from './repository/outOfBandRecordMetadataTypes'\n\nconst didCommProfiles = ['didcomm/aip1', 'didcomm/aip2;env=rfc19']\n\nexport interface CreateOutOfBandInvitationConfig {\n label?: string\n alias?: string // alias for a connection record to be created\n imageUrl?: string\n goalCode?: string\n goal?: string\n handshake?: boolean\n handshakeProtocols?: DidCommHandshakeProtocol[]\n messages?: DidCommMessage[]\n multiUseInvitation?: boolean\n autoAcceptConnection?: boolean\n routing?: DidCommRouting\n appendedAttachments?: DidCommAttachment[]\n\n /**\n * Did to use in the invitation. Cannot be used in combination with `routing`.\n */\n invitationDid?: string\n}\n\nexport interface CreateLegacyInvitationConfig {\n label?: string\n alias?: string // alias for a connection record to be created\n imageUrl?: string\n multiUseInvitation?: boolean\n autoAcceptConnection?: boolean\n routing?: DidCommRouting\n}\n\ninterface BaseReceiveOutOfBandInvitationConfig {\n label: string\n alias?: string\n imageUrl?: string\n autoAcceptInvitation?: boolean\n autoAcceptConnection?: boolean\n reuseConnection?: boolean\n routing?: DidCommRouting\n acceptInvitationTimeoutMs?: number\n isImplicit?: boolean\n ourDid?: string\n}\n\nexport type ReceiveOutOfBandInvitationConfig = Omit<BaseReceiveOutOfBandInvitationConfig, 'isImplicit'>\n\nexport interface ReceiveOutOfBandImplicitInvitationConfig\n extends Omit<BaseReceiveOutOfBandInvitationConfig, 'isImplicit' | 'reuseConnection'> {\n did: string\n handshakeProtocols?: DidCommHandshakeProtocol[]\n}\n\n@injectable()\nexport class DidCommOutOfBandApi {\n private outOfBandService: DidCommOutOfBandService\n private routingService: DidCommRoutingService\n private connectionsApi: DidCommConnectionsApi\n private messageHandlerRegistry: DidCommMessageHandlerRegistry\n private didCommDocumentService: DidCommDocumentService\n private messageSender: DidCommMessageSender\n private eventEmitter: EventEmitter\n private agentContext: AgentContext\n private logger: Logger\n\n public constructor(\n messageHandlerRegistry: DidCommMessageHandlerRegistry,\n didCommDocumentService: DidCommDocumentService,\n outOfBandService: DidCommOutOfBandService,\n routingService: DidCommRoutingService,\n connectionsApi: DidCommConnectionsApi,\n messageSender: DidCommMessageSender,\n eventEmitter: EventEmitter,\n @inject(InjectionSymbols.Logger) logger: Logger,\n agentContext: AgentContext\n ) {\n this.messageHandlerRegistry = messageHandlerRegistry\n this.didCommDocumentService = didCommDocumentService\n this.agentContext = agentContext\n this.logger = logger\n this.outOfBandService = outOfBandService\n this.routingService = routingService\n this.connectionsApi = connectionsApi\n this.messageSender = messageSender\n this.eventEmitter = eventEmitter\n }\n\n /**\n * Creates an outbound out-of-band record containing out-of-band invitation message defined in\n * Aries RFC 0434: Out-of-Band Protocol 1.1.\n *\n * It automatically adds all supported handshake protocols by agent to `handshake_protocols`. You\n * can modify this by setting `handshakeProtocols` in `config` parameter. If you want to create\n * invitation without handshake, you can set `handshake` to `false`.\n *\n * If `config` parameter contains `messages` it adds them to `requests~attach` attribute.\n *\n * Agent role: sender (inviter)\n *\n * @param config configuration of how out-of-band invitation should be created\n * @returns out-of-band record\n */\n public async createInvitation(config: CreateOutOfBandInvitationConfig = {}): Promise<DidCommOutOfBandRecord> {\n const multiUseInvitation = config.multiUseInvitation ?? false\n const handshake = config.handshake ?? true\n const customHandshakeProtocols = config.handshakeProtocols\n const autoAcceptConnection = config.autoAcceptConnection ?? this.connectionsApi.config.autoAcceptConnections\n // We don't want to treat an empty array as messages being provided\n const messages = config.messages && config.messages.length > 0 ? config.messages : undefined\n const label = config.label\n const imageUrl = config.imageUrl\n const appendedAttachments =\n config.appendedAttachments && config.appendedAttachments.length > 0 ? config.appendedAttachments : undefined\n\n if (!handshake && !messages) {\n throw new CredoError('One or both of handshake_protocols and requests~attach MUST be included in the message.')\n }\n\n if (!handshake && customHandshakeProtocols) {\n throw new CredoError(`Attribute 'handshake' can not be 'false' when 'handshakeProtocols' is defined.`)\n }\n\n // For now we disallow creating multi-use invitation with attachments. This would mean we need multi-use\n // credential and presentation exchanges.\n if (messages && multiUseInvitation) {\n throw new CredoError(\"Attribute 'multiUseInvitation' can not be 'true' when 'messages' is defined.\")\n }\n\n let handshakeProtocols: string[] | undefined\n if (handshake) {\n // Assert ALL custom handshake protocols are supported\n if (customHandshakeProtocols) {\n this.assertHandshakeProtocolsSupported(customHandshakeProtocols)\n }\n\n // Find supported handshake protocol preserving the order of handshake protocols defined by agent or in config\n handshakeProtocols = this.getSupportedHandshakeProtocols(customHandshakeProtocols).map(\n (p) => p.parsedProtocolUri.protocolUri\n )\n }\n\n let mediatorId: string | undefined = undefined\n let services: [string] | OutOfBandDidCommService[]\n if (config.routing && config.invitationDid) {\n throw new CredoError(\"Both 'routing' and 'invitationDid' cannot be provided at the same time.\")\n }\n\n const invitationInlineServiceKeys: DidCommOutOfBandInlineServiceKey[] = []\n if (config.invitationDid) {\n services = [config.invitationDid]\n } else {\n const routing = config.routing ?? (await this.routingService.getRouting(this.agentContext, {}))\n mediatorId = routing?.mediatorId\n\n services = routing.endpoints.map((endpoint, index) => {\n // Store the key id for the recipient key\n invitationInlineServiceKeys.push({\n kmsKeyId: routing.recipientKey.keyId,\n recipientKeyFingerprint: routing.recipientKey.fingerprint,\n })\n return new OutOfBandDidCommService({\n id: `#inline-${index}`,\n serviceEndpoint: endpoint,\n recipientKeys: [routing.recipientKey].map((key) => new DidKey(key).did),\n routingKeys: routing.routingKeys.map((key) => new DidKey(key).did),\n })\n })\n }\n\n const outOfBandInvitation = new DidCommOutOfBandInvitation({\n label,\n goal: config.goal,\n goalCode: config.goalCode,\n imageUrl,\n accept: didCommProfiles,\n services,\n handshakeProtocols,\n appendedAttachments,\n })\n\n if (messages) {\n for (const message of messages) {\n if (message.service) {\n // We can remove `~service` attribute from message. Newer OOB messages have `services` attribute instead.\n message.service = undefined\n }\n outOfBandInvitation.addRequest(message)\n }\n }\n\n const recipientKeyFingerprints = await this.resolveInvitationRecipientKeyFingerprints(outOfBandInvitation)\n const outOfBandRecord = new DidCommOutOfBandRecord({\n mediatorId: mediatorId,\n role: DidCommOutOfBandRole.Sender,\n state: DidCommOutOfBandState.AwaitResponse,\n alias: config.alias,\n outOfBandInvitation: outOfBandInvitation,\n reusable: multiUseInvitation,\n autoAcceptConnection,\n invitationInlineServiceKeys,\n tags: {\n recipientKeyFingerprints,\n },\n })\n\n await this.outOfBandService.save(this.agentContext, outOfBandRecord)\n this.outOfBandService.emitStateChangedEvent(this.agentContext, outOfBandRecord, null)\n\n return outOfBandRecord\n }\n\n /**\n * Creates an outbound out-of-band record in the same way how `createInvitation` method does it,\n * but it also converts out-of-band invitation message to an \"legacy\" invitation message defined\n * in RFC 0160: Connection Protocol and returns it together with out-of-band record.\n *\n * Agent role: sender (inviter)\n *\n * @param config configuration of how a connection invitation should be created\n * @returns out-of-band record and connection invitation\n */\n public async createLegacyInvitation(config: CreateLegacyInvitationConfig = {}) {\n const outOfBandRecord = await this.createInvitation({\n ...config,\n handshakeProtocols: [DidCommHandshakeProtocol.Connections],\n })\n\n // Set legacy invitation type\n outOfBandRecord.metadata.set(DidCommOutOfBandRecordMetadataKeys.LegacyInvitation, {\n legacyInvitationType: DidCommInvitationType.Connection,\n })\n const outOfBandRepository = this.agentContext.dependencyManager.resolve(DidCommOutOfBandRepository)\n await outOfBandRepository.update(this.agentContext, outOfBandRecord)\n\n return { outOfBandRecord, invitation: convertToOldInvitation(outOfBandRecord.outOfBandInvitation) }\n }\n\n public async createLegacyConnectionlessInvitation<Message extends DidCommMessage>(config: {\n /**\n * @deprecated this value is not used anymore, as the legacy connection-less exchange is now\n * integrated with the out of band protocol. The value is kept to not break the API, but will\n * be removed in a future version, and has no effect.\n */\n recordId?: string\n message: Message\n domain: string\n routing?: DidCommRouting\n }): Promise<{ message: Message; invitationUrl: string; outOfBandRecord: DidCommOutOfBandRecord }> {\n const outOfBandRecord = await this.createInvitation({\n messages: [config.message],\n routing: config.routing,\n })\n\n // Set legacy invitation type\n outOfBandRecord.metadata.set(DidCommOutOfBandRecordMetadataKeys.LegacyInvitation, {\n legacyInvitationType: DidCommInvitationType.Connectionless,\n })\n const outOfBandRepository = this.agentContext.dependencyManager.resolve(DidCommOutOfBandRepository)\n await outOfBandRepository.update(this.agentContext, outOfBandRecord)\n\n // Resolve the service and set it on the message\n const resolvedService = await this.outOfBandService.getResolvedServiceForOutOfBandServices(\n this.agentContext,\n outOfBandRecord.outOfBandInvitation.getServices()\n )\n config.message.service = ServiceDecorator.fromResolvedDidCommService(resolvedService)\n\n return {\n message: config.message,\n invitationUrl: `${config.domain}?d_m=${JsonEncoder.toBase64URL(JsonTransformer.toJSON(config.message))}`,\n outOfBandRecord,\n }\n }\n\n /**\n * Parses URL, decodes invitation and calls `receiveMessage` with parsed invitation message.\n *\n * Agent role: receiver (invitee)\n *\n * @param invitationUrl url containing a base64 encoded invitation to receive\n * @param config configuration of how out-of-band invitation should be processed\n * @returns out-of-band record and connection record if one has been created\n */\n public async receiveInvitationFromUrl(invitationUrl: string, config: ReceiveOutOfBandInvitationConfig) {\n const message = await this.parseInvitation(invitationUrl)\n\n return this.receiveInvitation(message, config)\n }\n\n /**\n * Parses URL containing encoded invitation and returns invitation message.\n *\n * Will fetch the url if the url does not contain a base64 encoded invitation.\n *\n * @param invitationUrl URL containing encoded invitation\n *\n * @returns DidCommOutOfBandInvitation\n */\n public async parseInvitation(invitationUrl: string): Promise<DidCommOutOfBandInvitation> {\n return parseInvitationShortUrl(invitationUrl, this.agentContext.config.agentDependencies)\n }\n\n /**\n * Creates inbound out-of-band record and assigns out-of-band invitation message to it if the\n * message is valid. It automatically passes out-of-band invitation for further processing to\n * `acceptInvitation` method. If you don't want to do that you can set `autoAcceptInvitation`\n * attribute in `config` parameter to `false` and accept the message later by calling\n * `acceptInvitation`.\n *\n * It supports both OOB (Aries RFC 0434: Out-of-Band Protocol 1.1) and Connection Invitation\n * (0160: Connection Protocol).\n *\n * Agent role: receiver (invitee)\n *\n * @param invitation either DidCommOutOfBandInvitation or DidCommConnectionInvitationMessage\n * @param config config for handling of invitation\n *\n * @returns out-of-band record and connection record if one has been created.\n */\n public async receiveInvitation(\n invitation: DidCommOutOfBandInvitation | DidCommConnectionInvitationMessage,\n config: ReceiveOutOfBandInvitationConfig\n ): Promise<{ outOfBandRecord: DidCommOutOfBandRecord; connectionRecord?: DidCommConnectionRecord }> {\n return this._receiveInvitation(invitation, config)\n }\n\n /**\n * Creates inbound out-of-band record from an implicit invitation, given as a public DID the agent\n * should be capable of resolving. It automatically passes out-of-band invitation for further\n * processing to `acceptInvitation` method. If you don't want to do that you can set\n * `autoAcceptInvitation` attribute in `config` parameter to `false` and accept the message later by\n * calling `acceptInvitation`.\n *\n * It supports both OOB (Aries RFC 0434: Out-of-Band Protocol 1.1) and Connection Invitation\n * (0160: Connection Protocol). Handshake protocol to be used depends on handshakeProtocols\n * (DID Exchange by default)\n *\n * Agent role: receiver (invitee)\n *\n * @param config config for creating and handling invitation\n *\n * @returns out-of-band record and connection record if one has been created.\n */\n public async receiveImplicitInvitation(config: ReceiveOutOfBandImplicitInvitationConfig) {\n const handshakeProtocols = this.getSupportedHandshakeProtocols(\n config.handshakeProtocols ?? [DidCommHandshakeProtocol.DidExchange]\n ).map((p) => p.parsedProtocolUri.protocolUri)\n\n const invitation = new DidCommOutOfBandInvitation({\n id: config.did,\n label: config.alias ?? '',\n services: [config.did],\n handshakeProtocols,\n })\n\n return this._receiveInvitation(invitation, { ...config, isImplicit: true })\n }\n\n /**\n * Internal receive invitation method, for both explicit and implicit OOB invitations\n */\n private async _receiveInvitation(\n invitation: DidCommOutOfBandInvitation | DidCommConnectionInvitationMessage,\n config: BaseReceiveOutOfBandInvitationConfig\n ): Promise<{ outOfBandRecord: DidCommOutOfBandRecord; connectionRecord?: DidCommConnectionRecord }> {\n // Convert to out of band invitation if needed\n const outOfBandInvitation =\n invitation instanceof DidCommOutOfBandInvitation ? invitation : convertToNewInvitation(invitation)\n\n const { handshakeProtocols } = outOfBandInvitation\n const { routing } = config\n\n const autoAcceptInvitation = config.autoAcceptInvitation ?? true\n const autoAcceptConnection = config.autoAcceptConnection ?? true\n const reuseConnection = config.reuseConnection ?? false\n const label = config.label\n const alias = config.alias\n const imageUrl = config.imageUrl\n\n const messages = outOfBandInvitation.getRequests()\n\n const isConnectionless = handshakeProtocols === undefined || handshakeProtocols.length === 0\n\n if ((!handshakeProtocols || handshakeProtocols.length === 0) && (!messages || messages?.length === 0)) {\n throw new CredoError('One or both of handshake_protocols and requests~attach MUST be included in the message.')\n }\n\n // Make sure we haven't received this invitation before\n // It's fine if we created it (means that we are connecting to ourselves) or if it's an implicit\n // invitation (it allows to connect multiple times to the same public did)\n if (!config.isImplicit) {\n const existingOobRecordsFromThisId = await this.outOfBandService.findAllByQuery(this.agentContext, {\n invitationId: outOfBandInvitation.id,\n role: DidCommOutOfBandRole.Receiver,\n })\n if (existingOobRecordsFromThisId.length > 0) {\n throw new CredoError(\n `An out of band record with invitation ${outOfBandInvitation.id} has already been received. Invitations should have a unique id.`\n )\n }\n }\n\n const recipientKeyFingerprints = await this.resolveInvitationRecipientKeyFingerprints(outOfBandInvitation)\n const outOfBandRecord = new DidCommOutOfBandRecord({\n role: DidCommOutOfBandRole.Receiver,\n state: DidCommOutOfBandState.Initial,\n outOfBandInvitation: outOfBandInvitation,\n autoAcceptConnection,\n tags: { recipientKeyFingerprints },\n mediatorId: routing?.mediatorId,\n })\n\n // If we have routing, and this is a connectionless exchange, or we are not auto accepting the connection\n // we need to store the routing, so it can be used when we send the first message in response to this invitation\n if (routing && (isConnectionless || !autoAcceptInvitation)) {\n this.logger.debug('Storing routing for out of band invitation.')\n outOfBandRecord.metadata.set(DidCommOutOfBandRecordMetadataKeys.RecipientRouting, {\n recipientKeyFingerprint: routing.recipientKey.fingerprint,\n recipientKeyId: routing.recipientKey.keyId,\n routingKeyFingerprints: routing.routingKeys.map((key) => key.fingerprint),\n endpoints: routing.endpoints,\n mediatorId: routing.mediatorId,\n })\n outOfBandRecord.setTags({ recipientRoutingKeyFingerprint: routing.recipientKey.fingerprint })\n }\n\n // If the invitation was converted from another legacy format, we store this, as its needed for some flows\n if (outOfBandInvitation.invitationType && outOfBandInvitation.invitationType !== DidCommInvitationType.OutOfBand) {\n outOfBandRecord.metadata.set(DidCommOutOfBandRecordMetadataKeys.LegacyInvitation, {\n legacyInvitationType: outOfBandInvitation.invitationType,\n })\n }\n\n await this.outOfBandService.save(this.agentContext, outOfBandRecord)\n this.outOfBandService.emitStateChangedEvent(this.agentContext, outOfBandRecord, null)\n\n if (autoAcceptInvitation) {\n return await this.acceptInvitation(outOfBandRecord.id, {\n label,\n alias,\n imageUrl,\n autoAcceptConnection,\n reuseConnection,\n routing,\n timeoutMs: config.acceptInvitationTimeoutMs,\n ourDid: config.ourDid,\n })\n }\n\n return { outOfBandRecord }\n }\n\n /**\n * Creates a connection if the out-of-band invitation message contains `handshake_protocols`\n * attribute, except for the case when connection already exists and `reuseConnection` is enabled.\n *\n * It passes first supported message from `requests~attach` attribute to the agent, except for the\n * case reuse of connection is applied when it just sends `handshake-reuse` message to existing\n * connection.\n *\n * Agent role: receiver (invitee)\n *\n * @param outOfBandId\n * @param config\n * @returns out-of-band record and connection record if one has been created.\n */\n public async acceptInvitation(\n outOfBandId: string,\n config: {\n autoAcceptConnection?: boolean\n reuseConnection?: boolean\n label: string\n alias?: string\n imageUrl?: string\n /**\n * Routing for the exchange (either connection or connection-less exchange).\n *\n * If a connection is reused, the routing WILL NOT be used.\n */\n routing?: DidCommRouting\n timeoutMs?: number\n ourDid?: string\n }\n ) {\n const outOfBandRecord = await this.outOfBandService.getById(this.agentContext, outOfBandId)\n\n const { outOfBandInvitation } = outOfBandRecord\n const { label, alias, imageUrl, autoAcceptConnection, reuseConnection, ourDid } = config\n const services = outOfBandInvitation.getServices()\n const messages = outOfBandInvitation.getRequests()\n const timeoutMs = config.timeoutMs ?? 20000\n\n let routing = config.routing\n\n // recipient routing from the receiveInvitation method.\n const recipientRouting = outOfBandRecord.metadata.get(DidCommOutOfBandRecordMetadataKeys.RecipientRouting)\n if (!routing && recipientRouting) {\n const recipientPublicJwk = Kms.PublicJwk.fromFingerprint(\n recipientRouting.recipientKeyFingerprint\n ) as Kms.PublicJwk<Kms.Ed25519PublicJwk>\n recipientPublicJwk.keyId = recipientRouting.recipientKeyId ?? recipientPublicJwk.legacyKeyId\n\n routing = {\n recipientKey: recipientPublicJwk,\n routingKeys: recipientRouting.routingKeyFingerprints.map(\n (fingerprint) => Kms.PublicJwk.fromFingerprint(fingerprint) as Kms.PublicJwk<Kms.Ed25519PublicJwk>\n ),\n endpoints: recipientRouting.endpoints,\n mediatorId: recipientRouting.mediatorId,\n }\n }\n\n const { handshakeProtocols } = outOfBandInvitation\n\n const existingConnection = await this.findExistingConnection(outOfBandInvitation)\n\n await this.outOfBandService.updateState(this.agentContext, outOfBandRecord, DidCommOutOfBandState.PrepareResponse)\n\n if (handshakeProtocols && handshakeProtocols.length > 0) {\n this.logger.debug('Out of band message contains handshake protocols.')\n\n let connectionRecord: DidCommConnectionRecord | undefined = undefined\n if (existingConnection && reuseConnection) {\n this.logger.debug(\n `Connection already exists and reuse is enabled. Reusing an existing connection with ID ${existingConnection.id}.`\n )\n\n if (!messages || messages?.length === 0) {\n this.logger.debug('Out of band message does not contain any request messages.')\n const isHandshakeReuseSuccessful = await this.handleHandshakeReuse(outOfBandRecord, existingConnection)\n\n // Handshake reuse was successful\n if (isHandshakeReuseSuccessful) {\n this.logger.debug(`Handshake reuse successful. Reusing existing connection ${existingConnection.id}.`)\n connectionRecord = existingConnection\n } else {\n // Handshake reuse failed. Not setting connection record\n this.logger.debug(`Handshake reuse failed. Not using existing connection ${existingConnection.id}.`)\n }\n } else {\n // Handshake reuse because we found a connection and we can respond directly to the message\n this.logger.debug(`Reusing existing connection ${existingConnection.id}.`)\n connectionRecord = existingConnection\n }\n }\n\n // If no existing connection was found, reuseConnection is false, or we didn't receive a\n // handshake-reuse-accepted message we create a new connection\n if (!connectionRecord) {\n this.logger.debug('Connection does not exist or reuse is disabled. Creating a new connection.')\n // Find first supported handshake protocol preserving the order of handshake protocols\n // defined by `handshake_protocols` attribute in the invitation message\n const firstSupportedProtocol = this.getFirstSupportedProtocol(handshakeProtocols)\n connectionRecord = await this.connectionsApi.acceptOutOfBandInvitation(outOfBandRecord, {\n label,\n alias,\n imageUrl,\n autoAcceptConnection,\n protocol: firstSupportedProtocol.handshakeProtocol,\n routing,\n ourDid,\n })\n }\n\n if (messages && messages.length > 0) {\n this.logger.debug('Out of band message contains request messages.')\n if (connectionRecord.isReady) {\n await this.emitWithConnection(outOfBandRecord, connectionRecord, messages)\n } else {\n // Wait until the connection is ready and then pass the messages to the agent for further processing\n this.connectionsApi\n .returnWhenIsConnected(connectionRecord.id, { timeoutMs })\n .then((connectionRecord) => this.emitWithConnection(outOfBandRecord, connectionRecord, messages))\n .catch((error) => {\n if (error instanceof EmptyError) {\n this.logger.warn(\n `Agent unsubscribed before connection got into ${DidCommDidExchangeState.Completed} state`,\n error\n )\n } else {\n this.logger.error('Promise waiting for the connection to be complete failed.', error)\n }\n })\n }\n }\n return { outOfBandRecord, connectionRecord }\n }\n if (messages) {\n this.logger.debug('Out of band message contains only request messages.')\n if (existingConnection && reuseConnection) {\n this.logger.debug('Connection already exists.', { connectionId: existingConnection.id })\n await this.emitWithConnection(outOfBandRecord, existingConnection, messages)\n } else {\n await this.emitWithServices(outOfBandRecord, services, messages)\n }\n }\n return { outOfBandRecord }\n }\n\n public async findByReceivedInvitationId(receivedInvitationId: string) {\n return this.outOfBandService.findByReceivedInvitationId(this.agentContext, receivedInvitationId)\n }\n\n public async findByCreatedInvitationId(createdInvitationId: string) {\n return this.outOfBandService.findByCreatedInvitationId(this.agentContext, createdInvitationId)\n }\n\n /**\n * Retrieve all out of bands records\n *\n * @returns List containing all out of band records\n */\n public getAll() {\n return this.outOfBandService.getAll(this.agentContext)\n }\n\n /**\n * Retrieve all out of bands records by specified query param\n *\n * @returns List containing all out of band records matching specified query params\n */\n public findAllByQuery(query: Query<DidCommOutOfBandRecord>, queryOptions?: QueryOptions) {\n return this.outOfBandService.findAllByQuery(this.agentContext, query, queryOptions)\n }\n\n /**\n * Retrieve a out of band record by id\n *\n * @param outOfBandId The out of band record id\n * @throws {RecordNotFoundError} If no record is found\n * @return The out of band record\n *\n */\n public getById(outOfBandId: string): Promise<DidCommOutOfBandRecord> {\n return this.outOfBandService.getById(this.agentContext, outOfBandId)\n }\n\n /**\n * Find an out of band record by id\n *\n * @param outOfBandId the out of band record id\n * @returns The out of band record or null if not found\n */\n public findById(outOfBandId: string): Promise<DidCommOutOfBandRecord | null> {\n return this.outOfBandService.findById(this.agentContext, outOfBandId)\n }\n\n /**\n * Delete an out of band record by id\n *\n * @param outOfBandId the out of band record id\n */\n public async deleteById(outOfBandId: string) {\n const outOfBandRecord = await this.getById(outOfBandId)\n\n const relatedConnections = await this.connectionsApi.findAllByOutOfBandId(outOfBandId)\n\n // If it uses mediation and there are no related connections, AND we didn't use a did in the invitation\n // (if that is the case the did is managed outside of this exchange) proceed to delete keys from mediator\n // Note: if OOB Record is reusable, it is safe to delete it because every connection created from\n // it will use its own recipient key\n if (\n outOfBandRecord.mediatorId &&\n outOfBandRecord.outOfBandInvitation.getDidServices().length === 0 &&\n (relatedConnections.length === 0 || outOfBandRecord.reusable)\n ) {\n const recipientKeys = outOfBandRecord\n .getTags()\n .recipientKeyFingerprints.map(\n (item) => Kms.PublicJwk.fromFingerprint(item) as Kms.PublicJwk<Kms.Ed25519PublicJwk>\n )\n\n await this.routingService.removeRouting(this.agentContext, {\n recipientKeys,\n mediatorId: outOfBandRecord.mediatorId,\n })\n }\n\n return this.outOfBandService.deleteById(this.agentContext, outOfBandId)\n }\n\n private assertHandshakeProtocolsSupported(handshakeProtocols: DidCommHandshakeProtocol[]) {\n if (!this.areHandshakeProtocolsSupported(handshakeProtocols)) {\n const supportedProtocols = this.getSupportedHandshakeProtocols()\n throw new CredoError(\n `Handshake protocols [${handshakeProtocols}] are not supported. Supported protocols are [${supportedProtocols}]`\n )\n }\n }\n\n private areHandshakeProtocolsSupported(handshakeProtocols: DidCommHandshakeProtocol[]) {\n const supportedProtocols = this.getSupportedHandshakeProtocols(handshakeProtocols)\n return supportedProtocols.length === handshakeProtocols.length\n }\n\n private getSupportedHandshakeProtocols(limitToHandshakeProtocols?: DidCommHandshakeProtocol[]) {\n const allHandshakeProtocols = limitToHandshakeProtocols ?? Object.values(DidCommHandshakeProtocol)\n\n // Replace .x in the handshake protocol with .0 to allow it to be parsed\n const parsedHandshakeProtocolUris = allHandshakeProtocols.map((h) => ({\n handshakeProtocol: h,\n parsedProtocolUri: parseDidCommProtocolUri(h.replace('.x', '.0')),\n }))\n\n // Now find all handshake protocols that start with the protocol uri without minor version '<base-uri>/<protocol-name>/<major-version>.'\n const supportedHandshakeProtocols = this.messageHandlerRegistry.filterSupportedProtocolsByProtocolUris(\n parsedHandshakeProtocolUris.map((p) => p.parsedProtocolUri)\n )\n\n if (supportedHandshakeProtocols.length === 0) {\n throw new CredoError('There is no handshake protocol supported. Agent can not create a connection.')\n }\n\n // Order protocols according to `parsedHandshakeProtocolUris` array (order of preference)\n const orderedProtocols = parsedHandshakeProtocolUris\n .map((p) => {\n const found = supportedHandshakeProtocols.find((s) =>\n supportsIncomingDidCommProtocolUri(s, p.parsedProtocolUri)\n )\n // We need to override the parsedProtocolUri with the one from the supported protocols, as we used `.0` as the minor\n // version before. But when we return it, we want to return the correct minor version that we actually support\n return found ? { ...p, parsedProtocolUri: found } : null\n })\n .filter((p): p is NonNullable<typeof p> => p !== null)\n\n return orderedProtocols\n }\n\n /**\n * Get the first supported protocol based on the handshake protocols provided in the out of band\n * invitation.\n *\n * Returns an enum value from {@link DidCommHandshakeProtocol} or throw an error if no protocol is supported.\n * Minor versions are ignored when selecting a supported protocols, so if the `outOfBandInvitationSupportedProtocolsWithMinorVersion`\n * value is `https://didcomm.org/didexchange/1.0` and the agent supports `https://didcomm.org/didexchange/1.1`\n * this will be fine, and the returned value will be {@link DidCommHandshakeProtocol.DidExchange}.\n */\n private getFirstSupportedProtocol(protocolUris: string[]) {\n const supportedProtocols = this.getSupportedHandshakeProtocols()\n const parsedProtocolUris = protocolUris.map(parseDidCommProtocolUri)\n\n const firstSupportedProtocol = supportedProtocols.find((supportedProtocol) =>\n parsedProtocolUris.find((parsedProtocol) =>\n supportsIncomingDidCommProtocolUri(supportedProtocol.parsedProtocolUri, parsedProtocol)\n )\n )\n\n if (!firstSupportedProtocol) {\n throw new CredoError(\n `Handshake protocols [${protocolUris}] are not supported. Supported protocols are [${supportedProtocols.map(\n (p) => p.handshakeProtocol\n )}]`\n )\n }\n\n return firstSupportedProtocol\n }\n\n private async findExistingConnection(outOfBandInvitation: DidCommOutOfBandInvitation) {\n this.logger.debug('Searching for an existing connection for out-of-band invitation.', { outOfBandInvitation })\n\n const invitationDids = [\n ...outOfBandInvitation.invitationDids,\n // Also search for legacy invitationDids based on inline services (TODO: remove in 0.6.0)\n ...outOfBandInvitation.getInlineServices().map(outOfBandServiceToInlineKeysNumAlgo2Did),\n ]\n\n for (const invitationDid of invitationDids) {\n const connections = await this.connectionsApi.findByInvitationDid(invitationDid)\n\n this.logger.debug(`Retrieved ${connections.length} connections for invitation did ${invitationDid}`)\n\n if (connections.length === 1) {\n const [firstConnection] = connections\n return firstConnection\n }\n if (connections.length > 1) {\n this.logger.warn(\n `There is more than one connection created from invitationDid ${invitationDid}. Taking the first one.`\n )\n const [firstConnection] = connections\n return firstConnection\n }\n return null\n }\n }\n\n private async emitWithConnection(\n outOfBandRecord: DidCommOutOfBandRecord,\n connectionRecord: DidCommConnectionRecord,\n messages: DidCommPlaintextMessage[]\n ) {\n const supportedMessageTypes = this.messageHandlerRegistry.supportedMessageTypes\n const plaintextMessage = messages.find((message) => {\n const parsedMessageType = parseMessageType(message['@type'])\n return supportedMessageTypes.find((type) => supportsIncomingMessageType(parsedMessageType, type))\n })\n\n if (!plaintextMessage) {\n throw new CredoError('There is no message in requests~attach supported by agent.')\n }\n\n // Make sure message has correct parent thread id\n this.ensureParentThreadId(outOfBandRecord, plaintextMessage)\n\n this.logger.debug(`Message with type ${plaintextMessage['@type']} can be processed.`)\n\n this.eventEmitter.emit<DidCommMessageReceivedEvent>(this.agentContext, {\n type: DidCommEventTypes.DidCommMessageReceived,\n payload: {\n message: plaintextMessage,\n connection: connectionRecord,\n contextCorrelationId: this.agentContext.contextCorrelationId,\n },\n })\n }\n\n private async emitWithServices(\n outOfBandRecord: DidCommOutOfBandRecord,\n services: Array<OutOfBandDidCommService | string>,\n messages: DidCommPlaintextMessage[]\n ) {\n if (!services || services.length === 0) {\n throw new CredoError('There are no services. We can not emit messages')\n }\n\n const supportedMessageTypes = this.messageHandlerRegistry.supportedMessageTypes\n const plaintextMessage = messages.find((message) => {\n const parsedMessageType = parseMessageType(message['@type'])\n return supportedMessageTypes.find((type) => supportsIncomingMessageType(parsedMessageType, type))\n })\n\n if (!plaintextMessage) {\n throw new CredoError('There is no message in requests~attach supported by agent.')\n }\n\n // Make sure message has correct parent thread id\n this.ensureParentThreadId(outOfBandRecord, plaintextMessage)\n\n this.logger.debug(`Message with type ${plaintextMessage['@type']} can be processed.`)\n\n this.eventEmitter.emit<DidCommMessageReceivedEvent>(this.agentContext, {\n type: DidCommEventTypes.DidCommMessageReceived,\n payload: {\n message: plaintextMessage,\n contextCorrelationId: this.agentContext.contextCorrelationId,\n },\n })\n }\n\n private ensureParentThreadId(outOfBandRecord: DidCommOutOfBandRecord, plaintextMessage: DidCommPlaintextMessage) {\n const legacyInvitationMetadata = outOfBandRecord.metadata.get(DidCommOutOfBandRecordMetadataKeys.LegacyInvitation)\n\n // We need to set the parent thread id to the invitation id, according to RFC 0434.\n // So if it already has a pthid and it is not the same as the invitation id, we throw an error\n if (\n plaintextMessage['~thread']?.pthid &&\n plaintextMessage['~thread'].pthid !== outOfBandRecord.outOfBandInvitation.id\n ) {\n throw new CredoError(\n `Out of band invitation requests~attach message contains parent thread id ${plaintextMessage['~thread'].pthid} that does not match the invitation id ${outOfBandRecord.outOfBandInvitation.id}`\n )\n }\n\n // If the invitation is created from a legacy connectionless invitation, we don't need to set the pthid\n // as that's not expected, and it's generated on our side only\n if (legacyInvitationMetadata?.legacyInvitationType === DidCommInvitationType.Connectionless) {\n return\n }\n\n if (!plaintextMessage['~thread']) {\n plaintextMessage['~thread'] = {}\n }\n\n // The response to an out-of-band message MUST set its ~thread.pthid equal to the @id property of the out-of-band message.\n // By adding the pthid to the message, we ensure that the response will take over this pthid\n plaintextMessage['~thread'].pthid = outOfBandRecord.outOfBandInvitation.id\n }\n\n private async handleHandshakeReuse(\n outOfBandRecord: DidCommOutOfBandRecord,\n connectionRecord: DidCommConnectionRecord\n ) {\n const reuseMessage = await this.outOfBandService.createHandShakeReuse(\n this.agentContext,\n outOfBandRecord,\n connectionRecord\n )\n\n const reuseAcceptedEventPromise = firstValueFrom(\n this.eventEmitter.observable<DidCommHandshakeReusedEvent>(DidCommOutOfBandEventTypes.HandshakeReused).pipe(\n filterContextCorrelationId(this.agentContext.contextCorrelationId),\n // Find the first reuse event where the handshake reuse accepted matches the reuse message thread\n // TODO: Should we store the reuse state? Maybe we can keep it in memory for now\n first(\n (event) =>\n event.payload.reuseThreadId === reuseMessage.threadId &&\n event.payload.outOfBandRecord.id === outOfBandRecord.id &&\n event.payload.connectionRecord.id === connectionRecord.id\n ),\n // If the event is found, we return the value true\n map(() => true),\n timeout({\n first: 15000,\n meta: 'OutOfBandApi.handleHandshakeReuse',\n }),\n // If timeout is reached, we return false\n catchError(() => of(false))\n )\n )\n\n const outboundMessageContext = new DidCommOutboundMessageContext(reuseMessage, {\n agentContext: this.agentContext,\n connection: connectionRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return reuseAcceptedEventPromise\n }\n\n private async resolveInvitationRecipientKeyFingerprints(outOfBandInvitation: DidCommOutOfBandInvitation) {\n const recipientKeyFingerprints: string[] = []\n\n for (const service of outOfBandInvitation.getServices()) {\n // Resolve dids to DIDDocs to retrieve services\n if (typeof service === 'string') {\n this.logger.debug(`Resolving services for did ${service}.`)\n const resolvedDidCommServices = await this.didCommDocumentService.resolveServicesFromDid(\n this.agentContext,\n service\n )\n recipientKeyFingerprints.push(\n ...resolvedDidCommServices\n .reduce<Kms.PublicJwk<Kms.Ed25519PublicJwk | Kms.X25519PublicJwk>[]>(\n // biome-ignore lint/performance/noAccumulatingSpread: <explanation>\n (aggr, { recipientKeys }) => [...aggr, ...recipientKeys],\n []\n )\n .map((key) => key.fingerprint)\n )\n } else {\n recipientKeyFingerprints.push(\n ...service.recipientKeys.map((didKey) => DidKey.fromDid(didKey).publicJwk.fingerprint)\n )\n }\n }\n\n return recipientKeyFingerprints\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,MAAM,kBAAkB,CAAC,gBAAgB,yBAAyB;AAqD3D,gCAAMA,sBAAoB;CAW/B,AAAO,YACL,wBACA,wBACA,kBACA,gBACA,gBACA,eACA,cACA,AAAiCC,QACjC,cACA;AACA,OAAK,yBAAyB;AAC9B,OAAK,yBAAyB;AAC9B,OAAK,eAAe;AACpB,OAAK,SAAS;AACd,OAAK,mBAAmB;AACxB,OAAK,iBAAiB;AACtB,OAAK,iBAAiB;AACtB,OAAK,gBAAgB;AACrB,OAAK,eAAe;;;;;;;;;;;;;;;;;CAkBtB,MAAa,iBAAiB,SAA0C,EAAE,EAAmC;EAC3G,MAAM,qBAAqB,OAAO,sBAAsB;EACxD,MAAM,YAAY,OAAO,aAAa;EACtC,MAAM,2BAA2B,OAAO;EACxC,MAAM,uBAAuB,OAAO,wBAAwB,KAAK,eAAe,OAAO;EAEvF,MAAM,WAAW,OAAO,YAAY,OAAO,SAAS,SAAS,IAAI,OAAO,WAAW;EACnF,MAAM,QAAQ,OAAO;EACrB,MAAM,WAAW,OAAO;EACxB,MAA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version":3,"file":"DidCommOutOfBandApi.mjs","names":["DidCommOutOfBandApi","logger: Logger","handshakeProtocols: string[] | undefined","mediatorId: string | undefined","services: [string] | OutOfBandDidCommService[]","invitationInlineServiceKeys: DidCommOutOfBandInlineServiceKey[]","connectionRecord: DidCommConnectionRecord | undefined","connectionRecord","recipientKeyFingerprints: string[]"],"sources":["../../../src/modules/oob/DidCommOutOfBandApi.ts"],"sourcesContent":["import type { Query, QueryOptions } from '@credo-ts/core'\nimport {\n AgentContext,\n CredoError,\n DidKey,\n EventEmitter,\n filterContextCorrelationId,\n InjectionSymbols,\n inject,\n injectable,\n JsonEncoder,\n JsonTransformer,\n Kms,\n type Logger,\n} from '@credo-ts/core'\nimport { catchError, EmptyError, first, firstValueFrom, map, of, timeout } from 'rxjs'\nimport { DidCommEventTypes, type DidCommMessageReceivedEvent } from '../../DidCommEvents'\nimport type { DidCommMessage } from '../../DidCommMessage'\nimport { DidCommMessageHandlerRegistry } from '../../DidCommMessageHandlerRegistry'\nimport { DidCommMessageSender } from '../../DidCommMessageSender'\nimport type { DidCommAttachment } from '../../decorators/attachment/DidCommAttachment'\nimport { ServiceDecorator } from '../../decorators/service/ServiceDecorator'\nimport type { DidCommRouting } from '../../models'\nimport { DidCommOutboundMessageContext } from '../../models'\nimport { DidCommDocumentService } from '../../services'\nimport type { DidCommPlaintextMessage } from '../../types'\nimport {\n parseDidCommProtocolUri,\n parseMessageType,\n supportsIncomingDidCommProtocolUri,\n supportsIncomingMessageType,\n} from '../../util/messageType'\nimport { parseInvitationShortUrl } from '../../util/parseInvitation'\nimport {\n DidCommConnectionInvitationMessage,\n DidCommConnectionRecord,\n DidCommDidExchangeState,\n DidCommHandshakeProtocol,\n} from '../connections'\nimport { DidCommConnectionsApi } from '../connections/DidCommConnectionsApi'\nimport { DidCommRoutingService } from '../routing/services/DidCommRoutingService'\nimport { convertToNewInvitation, convertToOldInvitation } from './converters'\n\nimport { DidCommOutOfBandService } from './DidCommOutOfBandService'\nimport type { DidCommHandshakeReusedEvent } from './domain/DidCommOutOfBandEvents'\nimport { DidCommOutOfBandEventTypes } from './domain/DidCommOutOfBandEvents'\nimport { DidCommOutOfBandRole } from './domain/DidCommOutOfBandRole'\nimport { DidCommOutOfBandState } from './domain/DidCommOutOfBandState'\nimport { OutOfBandDidCommService } from './domain/OutOfBandDidCommService'\nimport { outOfBandServiceToInlineKeysNumAlgo2Did } from './helpers'\nimport { DidCommInvitationType, DidCommOutOfBandInvitation } from './messages'\nimport { DidCommOutOfBandRepository } from './repository'\nimport { type DidCommOutOfBandInlineServiceKey, DidCommOutOfBandRecord } from './repository/DidCommOutOfBandRecord'\nimport { DidCommOutOfBandRecordMetadataKeys } from './repository/outOfBandRecordMetadataTypes'\n\nconst didCommProfiles = ['didcomm/aip1', 'didcomm/aip2;env=rfc19']\n\nexport interface CreateOutOfBandInvitationConfig {\n label?: string\n alias?: string // alias for a connection record to be created\n imageUrl?: string\n goalCode?: string\n goal?: string\n handshake?: boolean\n handshakeProtocols?: DidCommHandshakeProtocol[]\n messages?: DidCommMessage[]\n multiUseInvitation?: boolean\n autoAcceptConnection?: boolean\n routing?: DidCommRouting\n appendedAttachments?: DidCommAttachment[]\n\n /**\n * Did to use in the invitation. Cannot be used in combination with `routing`.\n */\n invitationDid?: string\n}\n\nexport interface CreateLegacyInvitationConfig {\n label?: string\n alias?: string // alias for a connection record to be created\n imageUrl?: string\n multiUseInvitation?: boolean\n autoAcceptConnection?: boolean\n routing?: DidCommRouting\n}\n\ninterface BaseReceiveOutOfBandInvitationConfig {\n label: string\n alias?: string\n imageUrl?: string\n autoAcceptInvitation?: boolean\n autoAcceptConnection?: boolean\n reuseConnection?: boolean\n routing?: DidCommRouting\n acceptInvitationTimeoutMs?: number\n isImplicit?: boolean\n ourDid?: string\n}\n\nexport type ReceiveOutOfBandInvitationConfig = Omit<BaseReceiveOutOfBandInvitationConfig, 'isImplicit'>\n\nexport interface ReceiveOutOfBandImplicitInvitationConfig\n extends Omit<BaseReceiveOutOfBandInvitationConfig, 'isImplicit' | 'reuseConnection'> {\n did: string\n handshakeProtocols?: DidCommHandshakeProtocol[]\n}\n\n@injectable()\nexport class DidCommOutOfBandApi {\n private outOfBandService: DidCommOutOfBandService\n private routingService: DidCommRoutingService\n private connectionsApi: DidCommConnectionsApi\n private messageHandlerRegistry: DidCommMessageHandlerRegistry\n private didCommDocumentService: DidCommDocumentService\n private messageSender: DidCommMessageSender\n private eventEmitter: EventEmitter\n private agentContext: AgentContext\n private logger: Logger\n\n public constructor(\n messageHandlerRegistry: DidCommMessageHandlerRegistry,\n didCommDocumentService: DidCommDocumentService,\n outOfBandService: DidCommOutOfBandService,\n routingService: DidCommRoutingService,\n connectionsApi: DidCommConnectionsApi,\n messageSender: DidCommMessageSender,\n eventEmitter: EventEmitter,\n @inject(InjectionSymbols.Logger) logger: Logger,\n agentContext: AgentContext\n ) {\n this.messageHandlerRegistry = messageHandlerRegistry\n this.didCommDocumentService = didCommDocumentService\n this.agentContext = agentContext\n this.logger = logger\n this.outOfBandService = outOfBandService\n this.routingService = routingService\n this.connectionsApi = connectionsApi\n this.messageSender = messageSender\n this.eventEmitter = eventEmitter\n }\n\n /**\n * Creates an outbound out-of-band record containing out-of-band invitation message defined in\n * Aries RFC 0434: Out-of-Band Protocol 1.1.\n *\n * It automatically adds all supported handshake protocols by agent to `handshake_protocols`. You\n * can modify this by setting `handshakeProtocols` in `config` parameter. If you want to create\n * invitation without handshake, you can set `handshake` to `false`.\n *\n * If `config` parameter contains `messages` it adds them to `requests~attach` attribute.\n *\n * Agent role: sender (inviter)\n *\n * @param config configuration of how out-of-band invitation should be created\n * @returns out-of-band record\n */\n public async createInvitation(config: CreateOutOfBandInvitationConfig = {}): Promise<DidCommOutOfBandRecord> {\n const multiUseInvitation = config.multiUseInvitation ?? false\n const handshake = config.handshake ?? true\n const customHandshakeProtocols = config.handshakeProtocols\n const autoAcceptConnection = config.autoAcceptConnection ?? this.connectionsApi.config.autoAcceptConnections\n // We don't want to treat an empty array as messages being provided\n const messages = config.messages && config.messages.length > 0 ? config.messages : undefined\n const label = config.label\n const imageUrl = config.imageUrl\n const appendedAttachments =\n config.appendedAttachments && config.appendedAttachments.length > 0 ? config.appendedAttachments : undefined\n\n if (!handshake && !messages) {\n throw new CredoError('One or both of handshake_protocols and requests~attach MUST be included in the message.')\n }\n\n if (!handshake && customHandshakeProtocols) {\n throw new CredoError(`Attribute 'handshake' can not be 'false' when 'handshakeProtocols' is defined.`)\n }\n\n // For now we disallow creating multi-use invitation with attachments. This would mean we need multi-use\n // credential and presentation exchanges.\n if (messages && multiUseInvitation) {\n throw new CredoError(\"Attribute 'multiUseInvitation' can not be 'true' when 'messages' is defined.\")\n }\n\n let handshakeProtocols: string[] | undefined\n if (handshake) {\n // Assert ALL custom handshake protocols are supported\n if (customHandshakeProtocols) {\n this.assertHandshakeProtocolsSupported(customHandshakeProtocols)\n }\n\n // Find supported handshake protocol preserving the order of handshake protocols defined by agent or in config\n handshakeProtocols = this.getSupportedHandshakeProtocols(customHandshakeProtocols).map(\n (p) => p.parsedProtocolUri.protocolUri\n )\n }\n\n let mediatorId: string | undefined\n let services: [string] | OutOfBandDidCommService[]\n if (config.routing && config.invitationDid) {\n throw new CredoError(\"Both 'routing' and 'invitationDid' cannot be provided at the same time.\")\n }\n\n const invitationInlineServiceKeys: DidCommOutOfBandInlineServiceKey[] = []\n if (config.invitationDid) {\n services = [config.invitationDid]\n } else {\n const routing = config.routing ?? (await this.routingService.getRouting(this.agentContext, {}))\n mediatorId = routing?.mediatorId\n\n services = routing.endpoints.map((endpoint, index) => {\n // Store the key id for the recipient key\n invitationInlineServiceKeys.push({\n kmsKeyId: routing.recipientKey.keyId,\n recipientKeyFingerprint: routing.recipientKey.fingerprint,\n })\n return new OutOfBandDidCommService({\n id: `#inline-${index}`,\n serviceEndpoint: endpoint,\n recipientKeys: [routing.recipientKey].map((key) => new DidKey(key).did),\n routingKeys: routing.routingKeys.map((key) => new DidKey(key).did),\n })\n })\n }\n\n const outOfBandInvitation = new DidCommOutOfBandInvitation({\n label,\n goal: config.goal,\n goalCode: config.goalCode,\n imageUrl,\n accept: didCommProfiles,\n services,\n handshakeProtocols,\n appendedAttachments,\n })\n\n if (messages) {\n for (const message of messages) {\n if (message.service) {\n // We can remove `~service` attribute from message. Newer OOB messages have `services` attribute instead.\n message.service = undefined\n }\n outOfBandInvitation.addRequest(message)\n }\n }\n\n const recipientKeyFingerprints = await this.resolveInvitationRecipientKeyFingerprints(outOfBandInvitation)\n const outOfBandRecord = new DidCommOutOfBandRecord({\n mediatorId: mediatorId,\n role: DidCommOutOfBandRole.Sender,\n state: DidCommOutOfBandState.AwaitResponse,\n alias: config.alias,\n outOfBandInvitation: outOfBandInvitation,\n reusable: multiUseInvitation,\n autoAcceptConnection,\n invitationInlineServiceKeys,\n tags: {\n recipientKeyFingerprints,\n },\n })\n\n await this.outOfBandService.save(this.agentContext, outOfBandRecord)\n this.outOfBandService.emitStateChangedEvent(this.agentContext, outOfBandRecord, null)\n\n return outOfBandRecord\n }\n\n /**\n * Creates an outbound out-of-band record in the same way how `createInvitation` method does it,\n * but it also converts out-of-band invitation message to an \"legacy\" invitation message defined\n * in RFC 0160: Connection Protocol and returns it together with out-of-band record.\n *\n * Agent role: sender (inviter)\n *\n * @param config configuration of how a connection invitation should be created\n * @returns out-of-band record and connection invitation\n */\n public async createLegacyInvitation(config: CreateLegacyInvitationConfig = {}) {\n const outOfBandRecord = await this.createInvitation({\n ...config,\n handshakeProtocols: [DidCommHandshakeProtocol.Connections],\n })\n\n // Set legacy invitation type\n outOfBandRecord.metadata.set(DidCommOutOfBandRecordMetadataKeys.LegacyInvitation, {\n legacyInvitationType: DidCommInvitationType.Connection,\n })\n const outOfBandRepository = this.agentContext.dependencyManager.resolve(DidCommOutOfBandRepository)\n await outOfBandRepository.update(this.agentContext, outOfBandRecord)\n\n return { outOfBandRecord, invitation: convertToOldInvitation(outOfBandRecord.outOfBandInvitation) }\n }\n\n public async createLegacyConnectionlessInvitation<Message extends DidCommMessage>(config: {\n /**\n * @deprecated this value is not used anymore, as the legacy connection-less exchange is now\n * integrated with the out of band protocol. The value is kept to not break the API, but will\n * be removed in a future version, and has no effect.\n */\n recordId?: string\n message: Message\n domain: string\n routing?: DidCommRouting\n }): Promise<{ message: Message; invitationUrl: string; outOfBandRecord: DidCommOutOfBandRecord }> {\n const outOfBandRecord = await this.createInvitation({\n messages: [config.message],\n routing: config.routing,\n })\n\n // Set legacy invitation type\n outOfBandRecord.metadata.set(DidCommOutOfBandRecordMetadataKeys.LegacyInvitation, {\n legacyInvitationType: DidCommInvitationType.Connectionless,\n })\n const outOfBandRepository = this.agentContext.dependencyManager.resolve(DidCommOutOfBandRepository)\n await outOfBandRepository.update(this.agentContext, outOfBandRecord)\n\n // Resolve the service and set it on the message\n const resolvedService = await this.outOfBandService.getResolvedServiceForOutOfBandServices(\n this.agentContext,\n outOfBandRecord.outOfBandInvitation.getServices()\n )\n config.message.service = ServiceDecorator.fromResolvedDidCommService(resolvedService)\n\n return {\n message: config.message,\n invitationUrl: `${config.domain}?d_m=${JsonEncoder.toBase64URL(JsonTransformer.toJSON(config.message))}`,\n outOfBandRecord,\n }\n }\n\n /**\n * Parses URL, decodes invitation and calls `receiveMessage` with parsed invitation message.\n *\n * Agent role: receiver (invitee)\n *\n * @param invitationUrl url containing a base64 encoded invitation to receive\n * @param config configuration of how out-of-band invitation should be processed\n * @returns out-of-band record and connection record if one has been created\n */\n public async receiveInvitationFromUrl(invitationUrl: string, config: ReceiveOutOfBandInvitationConfig) {\n const message = await this.parseInvitation(invitationUrl)\n\n return this.receiveInvitation(message, config)\n }\n\n /**\n * Parses URL containing encoded invitation and returns invitation message.\n *\n * Will fetch the url if the url does not contain a base64 encoded invitation.\n *\n * @param invitationUrl URL containing encoded invitation\n *\n * @returns DidCommOutOfBandInvitation\n */\n public async parseInvitation(invitationUrl: string): Promise<DidCommOutOfBandInvitation> {\n return parseInvitationShortUrl(invitationUrl, this.agentContext.config.agentDependencies)\n }\n\n /**\n * Creates inbound out-of-band record and assigns out-of-band invitation message to it if the\n * message is valid. It automatically passes out-of-band invitation for further processing to\n * `acceptInvitation` method. If you don't want to do that you can set `autoAcceptInvitation`\n * attribute in `config` parameter to `false` and accept the message later by calling\n * `acceptInvitation`.\n *\n * It supports both OOB (Aries RFC 0434: Out-of-Band Protocol 1.1) and Connection Invitation\n * (0160: Connection Protocol).\n *\n * Agent role: receiver (invitee)\n *\n * @param invitation either DidCommOutOfBandInvitation or DidCommConnectionInvitationMessage\n * @param config config for handling of invitation\n *\n * @returns out-of-band record and connection record if one has been created.\n */\n public async receiveInvitation(\n invitation: DidCommOutOfBandInvitation | DidCommConnectionInvitationMessage,\n config: ReceiveOutOfBandInvitationConfig\n ): Promise<{ outOfBandRecord: DidCommOutOfBandRecord; connectionRecord?: DidCommConnectionRecord }> {\n return this._receiveInvitation(invitation, config)\n }\n\n /**\n * Creates inbound out-of-band record from an implicit invitation, given as a public DID the agent\n * should be capable of resolving. It automatically passes out-of-band invitation for further\n * processing to `acceptInvitation` method. If you don't want to do that you can set\n * `autoAcceptInvitation` attribute in `config` parameter to `false` and accept the message later by\n * calling `acceptInvitation`.\n *\n * It supports both OOB (Aries RFC 0434: Out-of-Band Protocol 1.1) and Connection Invitation\n * (0160: Connection Protocol). Handshake protocol to be used depends on handshakeProtocols\n * (DID Exchange by default)\n *\n * Agent role: receiver (invitee)\n *\n * @param config config for creating and handling invitation\n *\n * @returns out-of-band record and connection record if one has been created.\n */\n public async receiveImplicitInvitation(config: ReceiveOutOfBandImplicitInvitationConfig) {\n const handshakeProtocols = this.getSupportedHandshakeProtocols(\n config.handshakeProtocols ?? [DidCommHandshakeProtocol.DidExchange]\n ).map((p) => p.parsedProtocolUri.protocolUri)\n\n const invitation = new DidCommOutOfBandInvitation({\n id: config.did,\n label: config.alias ?? '',\n services: [config.did],\n handshakeProtocols,\n })\n\n return this._receiveInvitation(invitation, { ...config, isImplicit: true })\n }\n\n /**\n * Internal receive invitation method, for both explicit and implicit OOB invitations\n */\n private async _receiveInvitation(\n invitation: DidCommOutOfBandInvitation | DidCommConnectionInvitationMessage,\n config: BaseReceiveOutOfBandInvitationConfig\n ): Promise<{ outOfBandRecord: DidCommOutOfBandRecord; connectionRecord?: DidCommConnectionRecord }> {\n // Convert to out of band invitation if needed\n const outOfBandInvitation =\n invitation instanceof DidCommOutOfBandInvitation ? invitation : convertToNewInvitation(invitation)\n\n const { handshakeProtocols } = outOfBandInvitation\n const { routing } = config\n\n const autoAcceptInvitation = config.autoAcceptInvitation ?? true\n const autoAcceptConnection = config.autoAcceptConnection ?? true\n const reuseConnection = config.reuseConnection ?? false\n const label = config.label\n const alias = config.alias\n const imageUrl = config.imageUrl\n\n const messages = outOfBandInvitation.getRequests()\n\n const isConnectionless = handshakeProtocols === undefined || handshakeProtocols.length === 0\n\n if ((!handshakeProtocols || handshakeProtocols.length === 0) && (!messages || messages?.length === 0)) {\n throw new CredoError('One or both of handshake_protocols and requests~attach MUST be included in the message.')\n }\n\n // Make sure we haven't received this invitation before\n // It's fine if we created it (means that we are connecting to ourselves) or if it's an implicit\n // invitation (it allows to connect multiple times to the same public did)\n if (!config.isImplicit) {\n const existingOobRecordsFromThisId = await this.outOfBandService.findAllByQuery(this.agentContext, {\n invitationId: outOfBandInvitation.id,\n role: DidCommOutOfBandRole.Receiver,\n })\n if (existingOobRecordsFromThisId.length > 0) {\n throw new CredoError(\n `An out of band record with invitation ${outOfBandInvitation.id} has already been received. Invitations should have a unique id.`\n )\n }\n }\n\n const recipientKeyFingerprints = await this.resolveInvitationRecipientKeyFingerprints(outOfBandInvitation)\n const outOfBandRecord = new DidCommOutOfBandRecord({\n role: DidCommOutOfBandRole.Receiver,\n state: DidCommOutOfBandState.Initial,\n outOfBandInvitation: outOfBandInvitation,\n autoAcceptConnection,\n tags: { recipientKeyFingerprints },\n mediatorId: routing?.mediatorId,\n })\n\n // If we have routing, and this is a connectionless exchange, or we are not auto accepting the connection\n // we need to store the routing, so it can be used when we send the first message in response to this invitation\n if (routing && (isConnectionless || !autoAcceptInvitation)) {\n this.logger.debug('Storing routing for out of band invitation.')\n outOfBandRecord.metadata.set(DidCommOutOfBandRecordMetadataKeys.RecipientRouting, {\n recipientKeyFingerprint: routing.recipientKey.fingerprint,\n recipientKeyId: routing.recipientKey.keyId,\n routingKeyFingerprints: routing.routingKeys.map((key) => key.fingerprint),\n endpoints: routing.endpoints,\n mediatorId: routing.mediatorId,\n })\n outOfBandRecord.setTags({ recipientRoutingKeyFingerprint: routing.recipientKey.fingerprint })\n }\n\n // If the invitation was converted from another legacy format, we store this, as its needed for some flows\n if (outOfBandInvitation.invitationType && outOfBandInvitation.invitationType !== DidCommInvitationType.OutOfBand) {\n outOfBandRecord.metadata.set(DidCommOutOfBandRecordMetadataKeys.LegacyInvitation, {\n legacyInvitationType: outOfBandInvitation.invitationType,\n })\n }\n\n await this.outOfBandService.save(this.agentContext, outOfBandRecord)\n this.outOfBandService.emitStateChangedEvent(this.agentContext, outOfBandRecord, null)\n\n if (autoAcceptInvitation) {\n return await this.acceptInvitation(outOfBandRecord.id, {\n label,\n alias,\n imageUrl,\n autoAcceptConnection,\n reuseConnection,\n routing,\n timeoutMs: config.acceptInvitationTimeoutMs,\n ourDid: config.ourDid,\n })\n }\n\n return { outOfBandRecord }\n }\n\n /**\n * Creates a connection if the out-of-band invitation message contains `handshake_protocols`\n * attribute, except for the case when connection already exists and `reuseConnection` is enabled.\n *\n * It passes first supported message from `requests~attach` attribute to the agent, except for the\n * case reuse of connection is applied when it just sends `handshake-reuse` message to existing\n * connection.\n *\n * Agent role: receiver (invitee)\n *\n * @param outOfBandId\n * @param config\n * @returns out-of-band record and connection record if one has been created.\n */\n public async acceptInvitation(\n outOfBandId: string,\n config: {\n autoAcceptConnection?: boolean\n reuseConnection?: boolean\n label: string\n alias?: string\n imageUrl?: string\n /**\n * Routing for the exchange (either connection or connection-less exchange).\n *\n * If a connection is reused, the routing WILL NOT be used.\n */\n routing?: DidCommRouting\n timeoutMs?: number\n ourDid?: string\n }\n ) {\n const outOfBandRecord = await this.outOfBandService.getById(this.agentContext, outOfBandId)\n\n const { outOfBandInvitation } = outOfBandRecord\n const { label, alias, imageUrl, autoAcceptConnection, reuseConnection, ourDid } = config\n const services = outOfBandInvitation.getServices()\n const messages = outOfBandInvitation.getRequests()\n const timeoutMs = config.timeoutMs ?? 20000\n\n let routing = config.routing\n\n // recipient routing from the receiveInvitation method.\n const recipientRouting = outOfBandRecord.metadata.get(DidCommOutOfBandRecordMetadataKeys.RecipientRouting)\n if (!routing && recipientRouting) {\n const recipientPublicJwk = Kms.PublicJwk.fromFingerprint(\n recipientRouting.recipientKeyFingerprint\n ) as Kms.PublicJwk<Kms.Ed25519PublicJwk>\n recipientPublicJwk.keyId = recipientRouting.recipientKeyId ?? recipientPublicJwk.legacyKeyId\n\n routing = {\n recipientKey: recipientPublicJwk,\n routingKeys: recipientRouting.routingKeyFingerprints.map(\n (fingerprint) => Kms.PublicJwk.fromFingerprint(fingerprint) as Kms.PublicJwk<Kms.Ed25519PublicJwk>\n ),\n endpoints: recipientRouting.endpoints,\n mediatorId: recipientRouting.mediatorId,\n }\n }\n\n const { handshakeProtocols } = outOfBandInvitation\n\n const existingConnection = await this.findExistingConnection(outOfBandInvitation)\n\n await this.outOfBandService.updateState(this.agentContext, outOfBandRecord, DidCommOutOfBandState.PrepareResponse)\n\n if (handshakeProtocols && handshakeProtocols.length > 0) {\n this.logger.debug('Out of band message contains handshake protocols.')\n\n let connectionRecord: DidCommConnectionRecord | undefined\n if (existingConnection && reuseConnection) {\n this.logger.debug(\n `Connection already exists and reuse is enabled. Reusing an existing connection with ID ${existingConnection.id}.`\n )\n\n if (!messages || messages?.length === 0) {\n this.logger.debug('Out of band message does not contain any request messages.')\n const isHandshakeReuseSuccessful = await this.handleHandshakeReuse(outOfBandRecord, existingConnection)\n\n // Handshake reuse was successful\n if (isHandshakeReuseSuccessful) {\n this.logger.debug(`Handshake reuse successful. Reusing existing connection ${existingConnection.id}.`)\n connectionRecord = existingConnection\n } else {\n // Handshake reuse failed. Not setting connection record\n this.logger.debug(`Handshake reuse failed. Not using existing connection ${existingConnection.id}.`)\n }\n } else {\n // Handshake reuse because we found a connection and we can respond directly to the message\n this.logger.debug(`Reusing existing connection ${existingConnection.id}.`)\n connectionRecord = existingConnection\n }\n }\n\n // If no existing connection was found, reuseConnection is false, or we didn't receive a\n // handshake-reuse-accepted message we create a new connection\n if (!connectionRecord) {\n this.logger.debug('Connection does not exist or reuse is disabled. Creating a new connection.')\n // Find first supported handshake protocol preserving the order of handshake protocols\n // defined by `handshake_protocols` attribute in the invitation message\n const firstSupportedProtocol = this.getFirstSupportedProtocol(handshakeProtocols)\n connectionRecord = await this.connectionsApi.acceptOutOfBandInvitation(outOfBandRecord, {\n label,\n alias,\n imageUrl,\n autoAcceptConnection,\n protocol: firstSupportedProtocol.handshakeProtocol,\n routing,\n ourDid,\n })\n }\n\n if (messages && messages.length > 0) {\n this.logger.debug('Out of band message contains request messages.')\n if (connectionRecord.isReady) {\n await this.emitWithConnection(outOfBandRecord, connectionRecord, messages)\n } else {\n // Wait until the connection is ready and then pass the messages to the agent for further processing\n this.connectionsApi\n .returnWhenIsConnected(connectionRecord.id, { timeoutMs })\n .then((connectionRecord) => this.emitWithConnection(outOfBandRecord, connectionRecord, messages))\n .catch((error) => {\n if (error instanceof EmptyError) {\n this.logger.warn(\n `Agent unsubscribed before connection got into ${DidCommDidExchangeState.Completed} state`,\n error\n )\n } else {\n this.logger.error('Promise waiting for the connection to be complete failed.', error)\n }\n })\n }\n }\n return { outOfBandRecord, connectionRecord }\n }\n if (messages) {\n this.logger.debug('Out of band message contains only request messages.')\n if (existingConnection && reuseConnection) {\n this.logger.debug('Connection already exists.', { connectionId: existingConnection.id })\n await this.emitWithConnection(outOfBandRecord, existingConnection, messages)\n } else {\n await this.emitWithServices(outOfBandRecord, services, messages)\n }\n }\n return { outOfBandRecord }\n }\n\n public async findByReceivedInvitationId(receivedInvitationId: string) {\n return this.outOfBandService.findByReceivedInvitationId(this.agentContext, receivedInvitationId)\n }\n\n public async findByCreatedInvitationId(createdInvitationId: string) {\n return this.outOfBandService.findByCreatedInvitationId(this.agentContext, createdInvitationId)\n }\n\n /**\n * Retrieve all out of bands records\n *\n * @returns List containing all out of band records\n */\n public getAll() {\n return this.outOfBandService.getAll(this.agentContext)\n }\n\n /**\n * Retrieve all out of bands records by specified query param\n *\n * @returns List containing all out of band records matching specified query params\n */\n public findAllByQuery(query: Query<DidCommOutOfBandRecord>, queryOptions?: QueryOptions) {\n return this.outOfBandService.findAllByQuery(this.agentContext, query, queryOptions)\n }\n\n /**\n * Retrieve a out of band record by id\n *\n * @param outOfBandId The out of band record id\n * @throws {RecordNotFoundError} If no record is found\n * @return The out of band record\n *\n */\n public getById(outOfBandId: string): Promise<DidCommOutOfBandRecord> {\n return this.outOfBandService.getById(this.agentContext, outOfBandId)\n }\n\n /**\n * Find an out of band record by id\n *\n * @param outOfBandId the out of band record id\n * @returns The out of band record or null if not found\n */\n public findById(outOfBandId: string): Promise<DidCommOutOfBandRecord | null> {\n return this.outOfBandService.findById(this.agentContext, outOfBandId)\n }\n\n /**\n * Delete an out of band record by id\n *\n * @param outOfBandId the out of band record id\n */\n public async deleteById(outOfBandId: string) {\n const outOfBandRecord = await this.getById(outOfBandId)\n\n const relatedConnections = await this.connectionsApi.findAllByOutOfBandId(outOfBandId)\n\n // If it uses mediation and there are no related connections, AND we didn't use a did in the invitation\n // (if that is the case the did is managed outside of this exchange) proceed to delete keys from mediator\n // Note: if OOB Record is reusable, it is safe to delete it because every connection created from\n // it will use its own recipient key\n if (\n outOfBandRecord.mediatorId &&\n outOfBandRecord.outOfBandInvitation.getDidServices().length === 0 &&\n (relatedConnections.length === 0 || outOfBandRecord.reusable)\n ) {\n const recipientKeys = outOfBandRecord\n .getTags()\n .recipientKeyFingerprints.map(\n (item) => Kms.PublicJwk.fromFingerprint(item) as Kms.PublicJwk<Kms.Ed25519PublicJwk>\n )\n\n await this.routingService.removeRouting(this.agentContext, {\n recipientKeys,\n mediatorId: outOfBandRecord.mediatorId,\n })\n }\n\n return this.outOfBandService.deleteById(this.agentContext, outOfBandId)\n }\n\n private assertHandshakeProtocolsSupported(handshakeProtocols: DidCommHandshakeProtocol[]) {\n if (!this.areHandshakeProtocolsSupported(handshakeProtocols)) {\n const supportedProtocols = this.getSupportedHandshakeProtocols()\n throw new CredoError(\n `Handshake protocols [${handshakeProtocols}] are not supported. Supported protocols are [${supportedProtocols}]`\n )\n }\n }\n\n private areHandshakeProtocolsSupported(handshakeProtocols: DidCommHandshakeProtocol[]) {\n const supportedProtocols = this.getSupportedHandshakeProtocols(handshakeProtocols)\n return supportedProtocols.length === handshakeProtocols.length\n }\n\n private getSupportedHandshakeProtocols(limitToHandshakeProtocols?: DidCommHandshakeProtocol[]) {\n const allHandshakeProtocols = limitToHandshakeProtocols ?? Object.values(DidCommHandshakeProtocol)\n\n // Replace .x in the handshake protocol with .0 to allow it to be parsed\n const parsedHandshakeProtocolUris = allHandshakeProtocols.map((h) => ({\n handshakeProtocol: h,\n parsedProtocolUri: parseDidCommProtocolUri(h.replace('.x', '.0')),\n }))\n\n // Now find all handshake protocols that start with the protocol uri without minor version '<base-uri>/<protocol-name>/<major-version>.'\n const supportedHandshakeProtocols = this.messageHandlerRegistry.filterSupportedProtocolsByProtocolUris(\n parsedHandshakeProtocolUris.map((p) => p.parsedProtocolUri)\n )\n\n if (supportedHandshakeProtocols.length === 0) {\n throw new CredoError('There is no handshake protocol supported. Agent can not create a connection.')\n }\n\n // Order protocols according to `parsedHandshakeProtocolUris` array (order of preference)\n const orderedProtocols = parsedHandshakeProtocolUris\n .map((p) => {\n const found = supportedHandshakeProtocols.find((s) =>\n supportsIncomingDidCommProtocolUri(s, p.parsedProtocolUri)\n )\n // We need to override the parsedProtocolUri with the one from the supported protocols, as we used `.0` as the minor\n // version before. But when we return it, we want to return the correct minor version that we actually support\n return found ? { ...p, parsedProtocolUri: found } : null\n })\n .filter((p): p is NonNullable<typeof p> => p !== null)\n\n return orderedProtocols\n }\n\n /**\n * Get the first supported protocol based on the handshake protocols provided in the out of band\n * invitation.\n *\n * Returns an enum value from {@link DidCommHandshakeProtocol} or throw an error if no protocol is supported.\n * Minor versions are ignored when selecting a supported protocols, so if the `outOfBandInvitationSupportedProtocolsWithMinorVersion`\n * value is `https://didcomm.org/didexchange/1.0` and the agent supports `https://didcomm.org/didexchange/1.1`\n * this will be fine, and the returned value will be {@link DidCommHandshakeProtocol.DidExchange}.\n */\n private getFirstSupportedProtocol(protocolUris: string[]) {\n const supportedProtocols = this.getSupportedHandshakeProtocols()\n const parsedProtocolUris = protocolUris.map(parseDidCommProtocolUri)\n\n const firstSupportedProtocol = supportedProtocols.find((supportedProtocol) =>\n parsedProtocolUris.find((parsedProtocol) =>\n supportsIncomingDidCommProtocolUri(supportedProtocol.parsedProtocolUri, parsedProtocol)\n )\n )\n\n if (!firstSupportedProtocol) {\n throw new CredoError(\n `Handshake protocols [${protocolUris}] are not supported. Supported protocols are [${supportedProtocols.map(\n (p) => p.handshakeProtocol\n )}]`\n )\n }\n\n return firstSupportedProtocol\n }\n\n private async findExistingConnection(outOfBandInvitation: DidCommOutOfBandInvitation) {\n this.logger.debug('Searching for an existing connection for out-of-band invitation.', { outOfBandInvitation })\n\n const invitationDids = [\n ...outOfBandInvitation.invitationDids,\n // Also search for legacy invitationDids based on inline services (TODO: remove in 0.6.0)\n ...outOfBandInvitation.getInlineServices().map(outOfBandServiceToInlineKeysNumAlgo2Did),\n ]\n\n for (const invitationDid of invitationDids) {\n const connections = await this.connectionsApi.findByInvitationDid(invitationDid)\n\n this.logger.debug(`Retrieved ${connections.length} connections for invitation did ${invitationDid}`)\n\n if (connections.length === 1) {\n const [firstConnection] = connections\n return firstConnection\n }\n if (connections.length > 1) {\n this.logger.warn(\n `There is more than one connection created from invitationDid ${invitationDid}. Taking the first one.`\n )\n const [firstConnection] = connections\n return firstConnection\n }\n return null\n }\n }\n\n private async emitWithConnection(\n outOfBandRecord: DidCommOutOfBandRecord,\n connectionRecord: DidCommConnectionRecord,\n messages: DidCommPlaintextMessage[]\n ) {\n const supportedMessageTypes = this.messageHandlerRegistry.supportedMessageTypes\n const plaintextMessage = messages.find((message) => {\n const parsedMessageType = parseMessageType(message['@type'])\n return supportedMessageTypes.find((type) => supportsIncomingMessageType(parsedMessageType, type))\n })\n\n if (!plaintextMessage) {\n throw new CredoError('There is no message in requests~attach supported by agent.')\n }\n\n // Make sure message has correct parent thread id\n this.ensureParentThreadId(outOfBandRecord, plaintextMessage)\n\n this.logger.debug(`Message with type ${plaintextMessage['@type']} can be processed.`)\n\n this.eventEmitter.emit<DidCommMessageReceivedEvent>(this.agentContext, {\n type: DidCommEventTypes.DidCommMessageReceived,\n payload: {\n message: plaintextMessage,\n connection: connectionRecord,\n contextCorrelationId: this.agentContext.contextCorrelationId,\n },\n })\n }\n\n private async emitWithServices(\n outOfBandRecord: DidCommOutOfBandRecord,\n services: Array<OutOfBandDidCommService | string>,\n messages: DidCommPlaintextMessage[]\n ) {\n if (!services || services.length === 0) {\n throw new CredoError('There are no services. We can not emit messages')\n }\n\n const supportedMessageTypes = this.messageHandlerRegistry.supportedMessageTypes\n const plaintextMessage = messages.find((message) => {\n const parsedMessageType = parseMessageType(message['@type'])\n return supportedMessageTypes.find((type) => supportsIncomingMessageType(parsedMessageType, type))\n })\n\n if (!plaintextMessage) {\n throw new CredoError('There is no message in requests~attach supported by agent.')\n }\n\n // Make sure message has correct parent thread id\n this.ensureParentThreadId(outOfBandRecord, plaintextMessage)\n\n this.logger.debug(`Message with type ${plaintextMessage['@type']} can be processed.`)\n\n this.eventEmitter.emit<DidCommMessageReceivedEvent>(this.agentContext, {\n type: DidCommEventTypes.DidCommMessageReceived,\n payload: {\n message: plaintextMessage,\n contextCorrelationId: this.agentContext.contextCorrelationId,\n },\n })\n }\n\n private ensureParentThreadId(outOfBandRecord: DidCommOutOfBandRecord, plaintextMessage: DidCommPlaintextMessage) {\n const legacyInvitationMetadata = outOfBandRecord.metadata.get(DidCommOutOfBandRecordMetadataKeys.LegacyInvitation)\n\n // We need to set the parent thread id to the invitation id, according to RFC 0434.\n // So if it already has a pthid and it is not the same as the invitation id, we throw an error\n if (\n plaintextMessage['~thread']?.pthid &&\n plaintextMessage['~thread'].pthid !== outOfBandRecord.outOfBandInvitation.id\n ) {\n throw new CredoError(\n `Out of band invitation requests~attach message contains parent thread id ${plaintextMessage['~thread'].pthid} that does not match the invitation id ${outOfBandRecord.outOfBandInvitation.id}`\n )\n }\n\n // If the invitation is created from a legacy connectionless invitation, we don't need to set the pthid\n // as that's not expected, and it's generated on our side only\n if (legacyInvitationMetadata?.legacyInvitationType === DidCommInvitationType.Connectionless) {\n return\n }\n\n if (!plaintextMessage['~thread']) {\n plaintextMessage['~thread'] = {}\n }\n\n // The response to an out-of-band message MUST set its ~thread.pthid equal to the @id property of the out-of-band message.\n // By adding the pthid to the message, we ensure that the response will take over this pthid\n plaintextMessage['~thread'].pthid = outOfBandRecord.outOfBandInvitation.id\n }\n\n private async handleHandshakeReuse(\n outOfBandRecord: DidCommOutOfBandRecord,\n connectionRecord: DidCommConnectionRecord\n ) {\n const reuseMessage = await this.outOfBandService.createHandShakeReuse(\n this.agentContext,\n outOfBandRecord,\n connectionRecord\n )\n\n const reuseAcceptedEventPromise = firstValueFrom(\n this.eventEmitter.observable<DidCommHandshakeReusedEvent>(DidCommOutOfBandEventTypes.HandshakeReused).pipe(\n filterContextCorrelationId(this.agentContext.contextCorrelationId),\n // Find the first reuse event where the handshake reuse accepted matches the reuse message thread\n // TODO: Should we store the reuse state? Maybe we can keep it in memory for now\n first(\n (event) =>\n event.payload.reuseThreadId === reuseMessage.threadId &&\n event.payload.outOfBandRecord.id === outOfBandRecord.id &&\n event.payload.connectionRecord.id === connectionRecord.id\n ),\n // If the event is found, we return the value true\n map(() => true),\n timeout({\n first: 15000,\n meta: 'OutOfBandApi.handleHandshakeReuse',\n }),\n // If timeout is reached, we return false\n catchError(() => of(false))\n )\n )\n\n const outboundMessageContext = new DidCommOutboundMessageContext(reuseMessage, {\n agentContext: this.agentContext,\n connection: connectionRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return reuseAcceptedEventPromise\n }\n\n private async resolveInvitationRecipientKeyFingerprints(outOfBandInvitation: DidCommOutOfBandInvitation) {\n const recipientKeyFingerprints: string[] = []\n\n for (const service of outOfBandInvitation.getServices()) {\n // Resolve dids to DIDDocs to retrieve services\n if (typeof service === 'string') {\n this.logger.debug(`Resolving services for did ${service}.`)\n const resolvedDidCommServices = await this.didCommDocumentService.resolveServicesFromDid(\n this.agentContext,\n service\n )\n recipientKeyFingerprints.push(\n ...resolvedDidCommServices\n .reduce<Kms.PublicJwk<Kms.Ed25519PublicJwk | Kms.X25519PublicJwk>[]>(\n // biome-ignore lint/performance/noAccumulatingSpread: no explanation\n (aggr, { recipientKeys }) => [...aggr, ...recipientKeys],\n []\n )\n .map((key) => key.fingerprint)\n )\n } else {\n recipientKeyFingerprints.push(\n ...service.recipientKeys.map((didKey) => DidKey.fromDid(didKey).publicJwk.fingerprint)\n )\n }\n }\n\n return recipientKeyFingerprints\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,MAAM,kBAAkB,CAAC,gBAAgB,yBAAyB;AAqD3D,gCAAMA,sBAAoB;CAW/B,AAAO,YACL,wBACA,wBACA,kBACA,gBACA,gBACA,eACA,cACA,AAAiCC,QACjC,cACA;AACA,OAAK,yBAAyB;AAC9B,OAAK,yBAAyB;AAC9B,OAAK,eAAe;AACpB,OAAK,SAAS;AACd,OAAK,mBAAmB;AACxB,OAAK,iBAAiB;AACtB,OAAK,iBAAiB;AACtB,OAAK,gBAAgB;AACrB,OAAK,eAAe;;;;;;;;;;;;;;;;;CAkBtB,MAAa,iBAAiB,SAA0C,EAAE,EAAmC;EAC3G,MAAM,qBAAqB,OAAO,sBAAsB;EACxD,MAAM,YAAY,OAAO,aA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AAQ,IAAI,YAAY,CACjC;QAED,0BAAyB,KACvB,GAAG,QAAQ,cAAc,KAAK,WAAW,OAAO,QAAQ,OAAO,CAAC,UAAU,YAAY,CACvF;AAIL,SAAO;;;;CA93BV,YAAY;oBAoBR,OAAO,iBAAiB,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommOutOfBandModule.d.mts","names":[],"sources":["../../../src/modules/oob/DidCommOutOfBandModule.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"DidCommOutOfBandModule.d.mts","names":[],"sources":["../../../src/modules/oob/DidCommOutOfBandModule.ts"],"sourcesContent":[],"mappings":";;;;cAWa,sBAAA,YAAkC;uBAC1B;EADR;;;UAMwB,CAAA,iBAAA,EAAA,iBAAA,CAAA,EAAA,IAAA;YAQG,CAAA,YAAA,EAAA,YAAA,CAAA,EAAe,OAAf,CAAA,IAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommOutOfBandModule.d.ts","names":[],"sources":["../../../src/modules/oob/DidCommOutOfBandModule.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"DidCommOutOfBandModule.d.ts","names":[],"sources":["../../../src/modules/oob/DidCommOutOfBandModule.ts"],"sourcesContent":[],"mappings":";;;;cAWa,sBAAA,YAAkC;uBAC1B;EADR;;;UAMwB,CAAA,iBAAA,EAAA,iBAAA,CAAA,EAAA,IAAA;YAQG,CAAA,YAAA,EAAA,YAAA,CAAA,EAAe,OAAf,CAAA,IAAA,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
const require_DidCommFeatureRegistry = require('../../DidCommFeatureRegistry.js');
|
|
2
|
+
const require_DidCommMessageHandlerRegistry = require('../../DidCommMessageHandlerRegistry.js');
|
|
3
|
+
const require_DidCommOutOfBandRepository = require('./repository/DidCommOutOfBandRepository.js');
|
|
1
4
|
const require_DidCommProtocol = require('../../models/features/DidCommProtocol.js');
|
|
2
5
|
require('../../models/index.js');
|
|
3
|
-
const require_DidCommOutOfBandRepository = require('./repository/DidCommOutOfBandRepository.js');
|
|
4
6
|
require('./repository/index.js');
|
|
5
7
|
const require_DidCommOutOfBandService = require('./DidCommOutOfBandService.js');
|
|
6
|
-
const require_DidCommFeatureRegistry = require('../../DidCommFeatureRegistry.js');
|
|
7
|
-
const require_DidCommMessageHandlerRegistry = require('../../DidCommMessageHandlerRegistry.js');
|
|
8
8
|
const require_DidCommOutOfBandApi = require('./DidCommOutOfBandApi.js');
|
|
9
9
|
const require_DidCommHandshakeReuseHandler = require('./handlers/DidCommHandshakeReuseHandler.js');
|
|
10
10
|
require('./handlers/index.js');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { DidCommFeatureRegistry } from "../../DidCommFeatureRegistry.mjs";
|
|
2
|
+
import { DidCommMessageHandlerRegistry } from "../../DidCommMessageHandlerRegistry.mjs";
|
|
3
|
+
import { DidCommOutOfBandRepository } from "./repository/DidCommOutOfBandRepository.mjs";
|
|
1
4
|
import { DidCommProtocol } from "../../models/features/DidCommProtocol.mjs";
|
|
2
5
|
import "../../models/index.mjs";
|
|
3
|
-
import { DidCommOutOfBandRepository } from "./repository/DidCommOutOfBandRepository.mjs";
|
|
4
6
|
import "./repository/index.mjs";
|
|
5
7
|
import { DidCommOutOfBandService } from "./DidCommOutOfBandService.mjs";
|
|
6
|
-
import { DidCommFeatureRegistry } from "../../DidCommFeatureRegistry.mjs";
|
|
7
|
-
import { DidCommMessageHandlerRegistry } from "../../DidCommMessageHandlerRegistry.mjs";
|
|
8
8
|
import { DidCommOutOfBandApi } from "./DidCommOutOfBandApi.mjs";
|
|
9
9
|
import { DidCommHandshakeReuseHandler } from "./handlers/DidCommHandshakeReuseHandler.mjs";
|
|
10
10
|
import "./handlers/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommOutOfBandModule.mjs","names":[],"sources":["../../../src/modules/oob/DidCommOutOfBandModule.ts"],"sourcesContent":["import type { AgentContext, DependencyManager, Module } from '@credo-ts/core'\n\nimport { DidCommFeatureRegistry } from '../../DidCommFeatureRegistry'\nimport {
|
|
1
|
+
{"version":3,"file":"DidCommOutOfBandModule.mjs","names":[],"sources":["../../../src/modules/oob/DidCommOutOfBandModule.ts"],"sourcesContent":["import type { AgentContext, DependencyManager, Module } from '@credo-ts/core'\n\nimport { DidCommFeatureRegistry } from '../../DidCommFeatureRegistry'\nimport { DidCommMessageHandlerRegistry } from '../../DidCommMessageHandlerRegistry'\nimport { DidCommProtocol } from '../../models'\nimport { DidCommOutOfBandApi } from './DidCommOutOfBandApi'\nimport { DidCommOutOfBandService } from './DidCommOutOfBandService'\nimport { DidCommHandshakeReuseHandler } from './handlers'\nimport { DidCommHandshakeReuseAcceptedHandler } from './handlers/DidCommHandshakeReuseAcceptedHandler'\nimport { DidCommOutOfBandRepository } from './repository'\n\nexport class DidCommOutOfBandModule implements Module {\n public readonly api = DidCommOutOfBandApi\n\n /**\n * Registers the dependencies of the ot of band module on the dependency manager.\n */\n public register(dependencyManager: DependencyManager) {\n // Services\n dependencyManager.registerSingleton(DidCommOutOfBandService)\n\n // Repositories\n dependencyManager.registerSingleton(DidCommOutOfBandRepository)\n }\n\n public async initialize(agentContext: AgentContext): Promise<void> {\n // Features\n const featureRegistry = agentContext.resolve(DidCommFeatureRegistry)\n const messageHandlerRegistry = agentContext.resolve(DidCommMessageHandlerRegistry)\n const outOfBandService = agentContext.resolve(DidCommOutOfBandService)\n\n messageHandlerRegistry.registerMessageHandler(new DidCommHandshakeReuseHandler(outOfBandService))\n messageHandlerRegistry.registerMessageHandler(new DidCommHandshakeReuseAcceptedHandler(outOfBandService))\n\n featureRegistry.register(\n new DidCommProtocol({\n id: 'https://didcomm.org/out-of-band/1.1',\n roles: ['sender', 'receiver'],\n })\n )\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAWA,IAAa,yBAAb,MAAsD;;OACpC,MAAM;;;;;CAKtB,AAAO,SAAS,mBAAsC;AAEpD,oBAAkB,kBAAkB,wBAAwB;AAG5D,oBAAkB,kBAAkB,2BAA2B;;CAGjE,MAAa,WAAW,cAA2C;EAEjE,MAAM,kBAAkB,aAAa,QAAQ,uBAAuB;EACpE,MAAM,yBAAyB,aAAa,QAAQ,8BAA8B;EAClF,MAAM,mBAAmB,aAAa,QAAQ,wBAAwB;AAEtE,yBAAuB,uBAAuB,IAAI,6BAA6B,iBAAiB,CAAC;AACjG,yBAAuB,uBAAuB,IAAI,qCAAqC,iBAAiB,CAAC;AAEzG,kBAAgB,SACd,IAAI,gBAAgB;GAClB,IAAI;GACJ,OAAO,CAAC,UAAU,WAAW;GAC9B,CAAC,CACH"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DidCommHandshakeProtocol } from "../connections/models/DidCommHandshakeProtocol.mjs";
|
|
2
|
+
import { DidCommDocumentService } from "../../services/DidCommDocumentService.mjs";
|
|
2
3
|
import { DidCommOutOfBandState } from "./domain/DidCommOutOfBandState.mjs";
|
|
3
|
-
import { OutOfBandDidCommService } from "./domain/OutOfBandDidCommService.mjs";
|
|
4
4
|
import { DidCommHandshakeReuseAcceptedMessage } from "./messages/DidCommHandshakeReuseAcceptedMessage.mjs";
|
|
5
5
|
import { DidCommHandshakeReuseMessage } from "./messages/DidCommHandshakeReuseMessage.mjs";
|
|
6
|
+
import { OutOfBandDidCommService } from "./domain/OutOfBandDidCommService.mjs";
|
|
6
7
|
import { DidCommOutOfBandInlineServiceKey, DidCommOutOfBandRecord } from "./repository/DidCommOutOfBandRecord.mjs";
|
|
7
8
|
import { DidCommOutOfBandRepository } from "./repository/DidCommOutOfBandRepository.mjs";
|
|
8
|
-
import { DidCommDocumentService } from "../../services/DidCommDocumentService.mjs";
|
|
9
9
|
import { DidCommConnectionRecord } from "../connections/repository/DidCommConnectionRecord.mjs";
|
|
10
10
|
import { DidCommInboundMessageContext } from "../../models/DidCommInboundMessageContext.mjs";
|
|
11
11
|
import * as _credo_ts_core1 from "@credo-ts/core";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommOutOfBandService.d.mts","names":[],"sources":["../../../src/modules/oob/DidCommOutOfBandService.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommOutOfBandService.d.mts","names":[],"sources":["../../../src/modules/oob/DidCommOutOfBandService.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;UAeiB,kCAAA;;;sBAGK;EAHL,oBAAA,CAAA,EAAA,OAAA;EAAkC,YAAA,EAKnC,GAAA,CAAI,SAL+B,CAKrB,GAAA,CAAI,gBALiB,CAAA;;AAKrB,cAIjB,uBAAA,CAJqB;UAAd,mBAAA;EAAS,QAAA,YAAA;EAIhB,QAAA,sBAAuB;EAAA,WAAA,CAAA,mBAAA,EAMX,0BANW,EAAA,YAAA,EAOlB,YAPkB,EAAA,sBAAA,EAQR,sBARQ;;;;;8BAqBxB,CAAA,YAAA,EADM,YACN,EAAA,MAAA,EAAA,kCAAA,CAAA,EACP,OADO,CACC,sBADD,CAAA;uBACC,CAAA,cAAA,EAqCwC,4BArCxC,CAqCqE,4BArCrE,CAAA,CAAA,EAqCkG,OArClG,CAqCkG,oCArClG,CAAA;+BAAR,CAAA,cAAA,EAmFe,4BAnFf,CAmF4C,oCAnF5C,CAAA,CAAA,EAmFiF,OAnFjF,CAAA,IAAA,CAAA;sBAqC6E,CAAA,YAAA,EA0FhE,YA1FgE,EAAA,eAAA,EA2F7D,sBA3F6D,EAAA,gBAAA,EA4F5D,uBA5F4D,CAAA,EA4FrC,OA5FqC,CA4FrC,4BA5FqC,CAAA;MAA7B,CAAA,YAAA,EAuGnB,YAvGmB,EAAA,eAAA,EAuGY,sBAvGZ,CAAA,EAuGkC,OAvGlC,CAAA,IAAA,CAAA;aAA0D,CAAA,YAAA,EA4G7F,YA5G6F,EAAA,eAAA,EA6G1F,sBA7G0F,EAAA,QAAA,EA8GjG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YA/EJ,EAAA,QAAA,EAgFA,KAhFA,CAAA,MAAA,GAgFe,uBAhFf,CAAA;;;;mBAYK,CAAA,EAwEK,gCAxEL,EAAA,CAAA,EAwEuC,OAxEvC,CAwEqC,eAAA,CAAE,sBAAA,CAxEvC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DidCommHandshakeProtocol } from "../connections/models/DidCommHandshakeProtocol.js";
|
|
2
|
+
import { DidCommDocumentService } from "../../services/DidCommDocumentService.js";
|
|
2
3
|
import { DidCommOutOfBandState } from "./domain/DidCommOutOfBandState.js";
|
|
3
|
-
import { OutOfBandDidCommService } from "./domain/OutOfBandDidCommService.js";
|
|
4
4
|
import { DidCommHandshakeReuseAcceptedMessage } from "./messages/DidCommHandshakeReuseAcceptedMessage.js";
|
|
5
5
|
import { DidCommHandshakeReuseMessage } from "./messages/DidCommHandshakeReuseMessage.js";
|
|
6
|
+
import { OutOfBandDidCommService } from "./domain/OutOfBandDidCommService.js";
|
|
6
7
|
import { DidCommOutOfBandInlineServiceKey, DidCommOutOfBandRecord } from "./repository/DidCommOutOfBandRecord.js";
|
|
7
8
|
import { DidCommOutOfBandRepository } from "./repository/DidCommOutOfBandRepository.js";
|
|
8
|
-
import { DidCommDocumentService } from "../../services/DidCommDocumentService.js";
|
|
9
9
|
import { DidCommConnectionRecord } from "../connections/repository/DidCommConnectionRecord.js";
|
|
10
10
|
import { DidCommInboundMessageContext } from "../../models/DidCommInboundMessageContext.js";
|
|
11
11
|
import * as _credo_ts_core1 from "@credo-ts/core";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommOutOfBandService.d.ts","names":[],"sources":["../../../src/modules/oob/DidCommOutOfBandService.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommOutOfBandService.d.ts","names":[],"sources":["../../../src/modules/oob/DidCommOutOfBandService.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;UAeiB,kC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decorateMetadata.js');
|
|
3
2
|
const require_decorate = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
4
|
-
const
|
|
5
|
-
const require_DidCommDocumentService = require('../../services/DidCommDocumentService.js');
|
|
6
|
-
require('../../services/index.js');
|
|
3
|
+
const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
7
4
|
const require_helpers = require('../connections/services/helpers.js');
|
|
8
|
-
const require_DidCommOutOfBandEvents = require('./domain/DidCommOutOfBandEvents.js');
|
|
9
5
|
const require_DidCommOutOfBandRole = require('./domain/DidCommOutOfBandRole.js');
|
|
10
|
-
const require_DidCommOutOfBandInvitation = require('./messages/DidCommOutOfBandInvitation.js');
|
|
11
6
|
const require_DidCommHandshakeReuseAcceptedMessage = require('./messages/DidCommHandshakeReuseAcceptedMessage.js');
|
|
12
7
|
const require_DidCommHandshakeReuseMessage = require('./messages/DidCommHandshakeReuseMessage.js');
|
|
8
|
+
const require_DidCommOutOfBandInvitation = require('./messages/DidCommOutOfBandInvitation.js');
|
|
13
9
|
require('./messages/index.js');
|
|
14
10
|
const require_DidCommOutOfBandRecord = require('./repository/DidCommOutOfBandRecord.js');
|
|
15
11
|
const require_DidCommOutOfBandRepository = require('./repository/DidCommOutOfBandRepository.js');
|
|
12
|
+
const require_DidCommDocumentService = require('../../services/DidCommDocumentService.js');
|
|
13
|
+
require('../../services/index.js');
|
|
14
|
+
const require_DidCommOutOfBandEvents = require('./domain/DidCommOutOfBandEvents.js');
|
|
15
|
+
const require_DidCommOutOfBandState = require('./domain/DidCommOutOfBandState.js');
|
|
16
16
|
require('./repository/index.js');
|
|
17
17
|
let __credo_ts_core = require("@credo-ts/core");
|
|
18
18
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
@@ -1,17 +1,17 @@
|
|
|
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";
|
|
3
|
-
import {
|
|
4
|
-
import { DidCommDocumentService } from "../../services/DidCommDocumentService.mjs";
|
|
5
|
-
import "../../services/index.mjs";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
6
3
|
import { getResolvedDidcommServiceWithSigningKeyId } from "../connections/services/helpers.mjs";
|
|
7
|
-
import { DidCommOutOfBandEventTypes } from "./domain/DidCommOutOfBandEvents.mjs";
|
|
8
4
|
import { DidCommOutOfBandRole } from "./domain/DidCommOutOfBandRole.mjs";
|
|
9
|
-
import { DidCommOutOfBandInvitation } from "./messages/DidCommOutOfBandInvitation.mjs";
|
|
10
5
|
import { DidCommHandshakeReuseAcceptedMessage } from "./messages/DidCommHandshakeReuseAcceptedMessage.mjs";
|
|
11
6
|
import { DidCommHandshakeReuseMessage } from "./messages/DidCommHandshakeReuseMessage.mjs";
|
|
7
|
+
import { DidCommOutOfBandInvitation } from "./messages/DidCommOutOfBandInvitation.mjs";
|
|
12
8
|
import "./messages/index.mjs";
|
|
13
9
|
import { DidCommOutOfBandRecord } from "./repository/DidCommOutOfBandRecord.mjs";
|
|
14
10
|
import { DidCommOutOfBandRepository } from "./repository/DidCommOutOfBandRepository.mjs";
|
|
11
|
+
import { DidCommDocumentService } from "../../services/DidCommDocumentService.mjs";
|
|
12
|
+
import "../../services/index.mjs";
|
|
13
|
+
import { DidCommOutOfBandEventTypes } from "./domain/DidCommOutOfBandEvents.mjs";
|
|
14
|
+
import { DidCommOutOfBandState } from "./domain/DidCommOutOfBandState.mjs";
|
|
15
15
|
import "./repository/index.mjs";
|
|
16
16
|
import { CredoError, DidsApi, EventEmitter, injectable, parseDid } from "@credo-ts/core";
|
|
17
17
|
|