@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,13 +1,13 @@
|
|
|
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
|
-
require('../../../../../decorators/ack/AckDecorator.js');
|
|
5
3
|
const require_messageType = require('../../../../../util/messageType.js');
|
|
4
|
+
const require_decorateMetadata = require('../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
5
|
+
require('../../../../../decorators/ack/AckDecorator.js');
|
|
6
6
|
const require_DidCommMessage = require('../../../../../DidCommMessage.js');
|
|
7
|
-
let class_transformer = require("class-transformer");
|
|
8
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
9
7
|
let class_validator = require("class-validator");
|
|
10
8
|
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
9
|
+
let class_transformer = require("class-transformer");
|
|
10
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
11
11
|
|
|
12
12
|
//#region src/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.ts
|
|
13
13
|
var DidCommRevocationNotificationV1Message = class DidCommRevocationNotificationV1Message extends require_DidCommMessage.DidCommMessage {
|
|
@@ -1,10 +1,10 @@
|
|
|
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 "../../../../../decorators/ack/AckDecorator.mjs";
|
|
4
2
|
import { IsValidMessageType, parseMessageType } from "../../../../../util/messageType.mjs";
|
|
3
|
+
import { __decorateMetadata } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
4
|
+
import "../../../../../decorators/ack/AckDecorator.mjs";
|
|
5
5
|
import { DidCommMessage } from "../../../../../DidCommMessage.mjs";
|
|
6
|
-
import { Expose } from "class-transformer";
|
|
7
6
|
import { IsOptional, IsString } from "class-validator";
|
|
7
|
+
import { Expose } from "class-transformer";
|
|
8
8
|
|
|
9
9
|
//#region src/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.ts
|
|
10
10
|
var DidCommRevocationNotificationV1Message = class DidCommRevocationNotificationV1Message extends DidCommMessage {
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
-
require('../../../../../decorators/ack/AckDecorator.js');
|
|
5
3
|
const require_messageType = require('../../../../../util/messageType.js');
|
|
4
|
+
const require_decorateMetadata = require('../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
5
|
+
require('../../../../../decorators/ack/AckDecorator.js');
|
|
6
6
|
const require_DidCommMessage = require('../../../../../DidCommMessage.js');
|
|
7
|
-
let class_transformer = require("class-transformer");
|
|
8
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
9
7
|
let class_validator = require("class-validator");
|
|
10
8
|
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
9
|
+
let class_transformer = require("class-transformer");
|
|
10
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
11
11
|
|
|
12
12
|
//#region src/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.ts
|
|
13
13
|
var DidCommRevocationNotificationV2Message = class DidCommRevocationNotificationV2Message extends require_DidCommMessage.DidCommMessage {
|
|
@@ -1,10 +1,10 @@
|
|
|
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 "../../../../../decorators/ack/AckDecorator.mjs";
|
|
4
2
|
import { IsValidMessageType, parseMessageType } from "../../../../../util/messageType.mjs";
|
|
3
|
+
import { __decorateMetadata } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
4
|
+
import "../../../../../decorators/ack/AckDecorator.mjs";
|
|
5
5
|
import { DidCommMessage } from "../../../../../DidCommMessage.mjs";
|
|
6
|
-
import { Expose } from "class-transformer";
|
|
7
6
|
import { IsOptional, IsString } from "class-validator";
|
|
7
|
+
import { Expose } from "class-transformer";
|
|
8
8
|
|
|
9
9
|
//#region src/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.ts
|
|
10
10
|
var DidCommRevocationNotificationV2Message = class DidCommRevocationNotificationV2Message extends DidCommMessage {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DidCommCredentialExchangeRepository } from "../../../repository/DidCommCredentialExchangeRepository.mjs";
|
|
2
2
|
import { DidCommRevocationNotificationV1Message } from "../messages/DidCommRevocationNotificationV1Message.mjs";
|
|
3
|
-
import { V2DidCommCreateRevocationNotificationMessageOptions } from "./DidCommRevocationNotificationServiceOptions.mjs";
|
|
4
3
|
import { DidCommRevocationNotificationV2Message } from "../messages/DidCommRevocationNotificationV2Message.mjs";
|
|
4
|
+
import { V2DidCommCreateRevocationNotificationMessageOptions } from "./DidCommRevocationNotificationServiceOptions.mjs";
|
|
5
5
|
import { DidCommInboundMessageContext } from "../../../../../models/DidCommInboundMessageContext.mjs";
|
|
6
6
|
import { EventEmitter, Logger } from "@credo-ts/core";
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommRevocationNotificationService.d.mts","names":[],"sources":["../../../../../../src/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommRevocationNotificationService.d.mts","names":[],"sources":["../../../../../../src/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAoBa,oCAAA;;EAAA,QAAA,YAAA;EAAoC,QAAA,MAAA;aAMvB,CAAA,oBAAA,EAAA,mCAAA,EAAA,YAAA,EACR,YADQ,EAAA,MAAA,EAEmB,MAFnB;UACR,6BAAA;;;;;;;iCA4Fb,CAAA,cAAA,EArCe,4BAqCf,CArC4C,sCAqC5C,CAAA,CAAA,EApCA,OAoCA,CAAA,IAAA,CAAA;;;;EAsBO,8BAAA,CAAA,OAAA,EAvBC,mDAuBD,CAAA,EAtBP,OAsBO,CAAA;aAtBY;;;;;;;;kDAqBJ,6BAA6B,0CAC5C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DidCommCredentialExchangeRepository } from "../../../repository/DidCommCredentialExchangeRepository.js";
|
|
2
2
|
import { DidCommRevocationNotificationV1Message } from "../messages/DidCommRevocationNotificationV1Message.js";
|
|
3
|
-
import { V2DidCommCreateRevocationNotificationMessageOptions } from "./DidCommRevocationNotificationServiceOptions.js";
|
|
4
3
|
import { DidCommRevocationNotificationV2Message } from "../messages/DidCommRevocationNotificationV2Message.js";
|
|
4
|
+
import { V2DidCommCreateRevocationNotificationMessageOptions } from "./DidCommRevocationNotificationServiceOptions.js";
|
|
5
5
|
import { DidCommInboundMessageContext } from "../../../../../models/DidCommInboundMessageContext.js";
|
|
6
6
|
import { EventEmitter, Logger } from "@credo-ts/core";
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommRevocationNotificationService.d.ts","names":[],"sources":["../../../../../../src/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommRevocationNotificationService.d.ts","names":[],"sources":["../../../../../../src/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAoBa,oCAAA;;EAAA,QAAA,YAAA;EAAoC,QAAA,MAAA;aAMvB,CAAA,oBAAA,EAAA,mCAAA,EAAA,YAAA,EACR,YADQ,EAAA,MAAA,EAEmB,MAFnB;UACR,6BAAA;;;;;;;iCA4Fb,CAAA,cAAA,EArCe,4BAqCf,CArC4C,sCAqC5C,CAAA,CAAA,EApCA,OAoCA,CAAA,IAAA,CAAA;;;;EAsBO,8BAAA,CAAA,OAAA,EAvBC,mDAuBD,CAAA,EAtBP,OAsBO,CAAA;aAtBY;;;;;;;;kDAqBJ,6BAA6B,0CAC5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_decorateMetadata = require('../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
2
|
const require_decorate = require('../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
3
|
+
const require_decorateMetadata = require('../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
4
4
|
const require_decorateParam = require('../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
|
|
5
5
|
require('../../../../connections/index.js');
|
|
6
6
|
const require_DidCommCredentialEvents = require('../../../DidCommCredentialEvents.js');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __decorateMetadata } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
1
|
import { __decorate } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
2
|
+
import { __decorateMetadata } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
3
3
|
import { __decorateParam } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
|
|
4
4
|
import "../../../../connections/index.mjs";
|
|
5
5
|
import { DidCommCredentialEventTypes } from "../../../DidCommCredentialEvents.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommRevocationNotificationService.mjs","names":["DidCommRevocationNotificationService","logger: Logger"],"sources":["../../../../../../src/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\nimport
|
|
1
|
+
{"version":3,"file":"DidCommRevocationNotificationService.mjs","names":["DidCommRevocationNotificationService","logger: Logger"],"sources":["../../../../../../src/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\nimport { CredoError, EventEmitter, InjectionSymbols, inject, injectable, type Logger } from '@credo-ts/core'\nimport type { DidCommInboundMessageContext } from '../../../../../models'\nimport { DidCommConnectionRecord } from '../../../../connections'\nimport type { DidCommRevocationNotificationReceivedEvent } from '../../../DidCommCredentialEvents'\nimport { DidCommCredentialEventTypes } from '../../../DidCommCredentialEvents'\nimport { DidCommRevocationNotification } from '../../../models/DidCommRevocationNotification'\nimport { DidCommCredentialExchangeRepository } from '../../../repository'\nimport type { DidCommRevocationNotificationV1Message } from '../messages/DidCommRevocationNotificationV1Message'\nimport { DidCommRevocationNotificationV2Message } from '../messages/DidCommRevocationNotificationV2Message'\nimport {\n v1ThreadRegex,\n v2AnonCredsRevocationFormat,\n v2AnonCredsRevocationIdentifierRegex,\n v2IndyRevocationFormat,\n v2IndyRevocationIdentifierRegex,\n} from '../util/revocationIdentifier'\nimport type { V2DidCommCreateRevocationNotificationMessageOptions } from './DidCommRevocationNotificationServiceOptions'\n\n@injectable()\nexport class DidCommRevocationNotificationService {\n private credentialRepository: DidCommCredentialExchangeRepository\n private eventEmitter: EventEmitter\n private logger: Logger\n\n public constructor(\n credentialRepository: DidCommCredentialExchangeRepository,\n eventEmitter: EventEmitter,\n @inject(InjectionSymbols.Logger) logger: Logger\n ) {\n this.credentialRepository = credentialRepository\n this.eventEmitter = eventEmitter\n this.logger = logger\n }\n\n private async processRevocationNotification(\n agentContext: AgentContext,\n anonCredsRevocationRegistryId: string,\n anonCredsCredentialRevocationId: string,\n connection: DidCommConnectionRecord,\n comment?: string\n ) {\n // TODO: can we extract support for this revocation notification handler to the anoncreds module?\n // Search for the revocation registry in both qualified and unqualified forms\n const query = {\n $or: [\n {\n anonCredsRevocationRegistryId,\n anonCredsCredentialRevocationId,\n connectionId: connection.id,\n },\n {\n anonCredsUnqualifiedRevocationRegistryId: anonCredsRevocationRegistryId,\n anonCredsCredentialRevocationId,\n connectionId: connection.id,\n },\n ],\n }\n\n this.logger.trace('Getting record by query for revocation notification:', query)\n const credentialExchangeRecord = await this.credentialRepository.getSingleByQuery(agentContext, query)\n\n credentialExchangeRecord.revocationNotification = new DidCommRevocationNotification(comment)\n await this.credentialRepository.update(agentContext, credentialExchangeRecord)\n\n this.logger.trace('Emitting DidCommRevocationNotificationReceivedEvent')\n this.eventEmitter.emit<DidCommRevocationNotificationReceivedEvent>(agentContext, {\n type: DidCommCredentialEventTypes.DidCommRevocationNotificationReceived,\n payload: {\n // Clone record to prevent mutations after emitting event.\n credentialExchangeRecord: credentialExchangeRecord.clone(),\n },\n })\n }\n\n /**\n * Process a received {@link DidCommRevocationNotificationV1Message}. This will create a\n * {@link DidCommRevocationNotification} and store it in the corresponding {@link CredentialRecord}\n *\n * @param messageContext message context of RevocationNotificationMessageV1\n */\n public async v1ProcessRevocationNotification(\n messageContext: DidCommInboundMessageContext<DidCommRevocationNotificationV1Message>\n ): Promise<void> {\n this.logger.info('Processing revocation notification v1', { message: messageContext.message })\n\n // ThreadID = indy::<revocation_registry_id>::<credential_revocation_id>\n const threadId = messageContext.message.issueThread\n\n try {\n const threadIdGroups = threadId.match(v1ThreadRegex)\n if (!threadIdGroups) {\n throw new CredoError(\n `Incorrect revocation notification threadId format: \\n${threadId}\\ndoes not match\\n\"indy::<revocation_registry_id>::<credential_revocation_id>\"`\n )\n }\n\n const [, , anonCredsRevocationRegistryId, anonCredsCredentialRevocationId] = threadIdGroups\n const comment = messageContext.message.comment\n const connection = messageContext.assertReadyConnection()\n\n await this.processRevocationNotification(\n messageContext.agentContext,\n anonCredsRevocationRegistryId,\n anonCredsCredentialRevocationId,\n connection,\n comment\n )\n } catch (error) {\n this.logger.warn('Failed to process revocation notification message', { error, threadId })\n }\n }\n\n /**\n * Create a V2 Revocation Notification message\n */\n\n public async v2CreateRevocationNotification(\n options: V2DidCommCreateRevocationNotificationMessageOptions\n ): Promise<{ message: DidCommRevocationNotificationV2Message }> {\n const { credentialId, revocationFormat, comment, requestAck } = options\n const message = new DidCommRevocationNotificationV2Message({\n credentialId,\n revocationFormat,\n comment,\n })\n if (requestAck) {\n message.setPleaseAck()\n }\n\n return { message }\n }\n\n /**\n * Process a received {@link DidCommRevocationNotificationV2Message}. This will create a\n * {@link DidCommRevocationNotification} and store it in the corresponding {@link CredentialRecord}\n *\n * @param messageContext message context of RevocationNotificationMessageV2\n */\n public async v2ProcessRevocationNotification(\n messageContext: DidCommInboundMessageContext<DidCommRevocationNotificationV2Message>\n ): Promise<void> {\n this.logger.info('Processing revocation notification v2', { message: messageContext.message })\n\n const credentialId = messageContext.message.credentialId\n\n if (![v2IndyRevocationFormat, v2AnonCredsRevocationFormat].includes(messageContext.message.revocationFormat)) {\n throw new CredoError(\n `Unknown revocation format: ${messageContext.message.revocationFormat}. Supported formats are indy-anoncreds and anoncreds`\n )\n }\n\n try {\n const credentialIdGroups =\n credentialId.match(v2IndyRevocationIdentifierRegex) ?? credentialId.match(v2AnonCredsRevocationIdentifierRegex)\n if (!credentialIdGroups) {\n throw new CredoError(\n `Incorrect revocation notification credentialId format: \\n${credentialId}\\ndoes not match\\n\"<revocation_registry_id>::<credential_revocation_id>\"`\n )\n }\n\n const [, anonCredsRevocationRegistryId, anonCredsCredentialRevocationId] = credentialIdGroups\n const comment = messageContext.message.comment\n const connection = messageContext.assertReadyConnection()\n await this.processRevocationNotification(\n messageContext.agentContext,\n anonCredsRevocationRegistryId,\n anonCredsCredentialRevocationId,\n connection,\n comment\n )\n } catch (error) {\n this.logger.warn('Failed to process revocation notification message', { error, credentialId })\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAoBO,iDAAMA,uCAAqC;CAKhD,AAAO,YACL,sBACA,cACA,AAAiCC,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;;;;;;CASpB,MAAa,gCACX,gBACe;AACf,OAAK,OAAO,KAAK,yCAAyC,EAAE,SAAS,eAAe,SAAS,CAAC;EAE9F,MAAM,eAAe,eAAe,QAAQ;AAE5C,MAAI,CAAC,CAAC,wBAAwB,4BAA4B,CAAC,SAAS,eAAe,QAAQ,iBAAiB,CAC1G,OAAM,IAAI,WACR,8BAA8B,eAAe,QAAQ,iBAAiB,sDACvE;AAGH,MAAI;GACF,MAAM,qBACJ,aAAa,MAAM,gCAAgC,IAAI,aAAa,MAAM,qCAAqC;AACjH,OAAI,CAAC,mBACH,OAAM,IAAI,WACR,4DAA4D,aAAa,0EAC1E;GAGH,MAAM,GAAG,+BAA+B,mCAAmC;GAC3E,MAAM,UAAU,eAAe,QAAQ;GACvC,MAAM,aAAa,eAAe,uBAAuB;AACzD,SAAM,KAAK,8BACT,eAAe,cACf,+BACA,iCACA,YACA,QACD;WACM,OAAO;AACd,QAAK,OAAO,KAAK,qDAAqD;IAAE;IAAO;IAAc,CAAC;;;;;CAzJnG,YAAY;oBASR,OAAO,iBAAiB,OAAO"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_DidCommMessageRole = require('../../../../repository/DidCommMessageRole.js');
|
|
3
2
|
const require_DidCommMessageRepository = require('../../../../repository/DidCommMessageRepository.js');
|
|
3
|
+
const require_DidCommMessageRole = require('../../../../repository/DidCommMessageRole.js');
|
|
4
4
|
require('../../../../repository/index.js');
|
|
5
|
-
const require_DidCommIssueCredentialV2Message = require('./messages/DidCommIssueCredentialV2Message.js');
|
|
6
5
|
const require_DidCommCredentialV2Preview = require('./messages/DidCommCredentialV2Preview.js');
|
|
6
|
+
const require_DidCommIssueCredentialV2Message = require('./messages/DidCommIssueCredentialV2Message.js');
|
|
7
7
|
const require_DidCommOfferCredentialV2Message = require('./messages/DidCommOfferCredentialV2Message.js');
|
|
8
8
|
const require_DidCommProposeCredentialV2Message = require('./messages/DidCommProposeCredentialV2Message.js');
|
|
9
9
|
const require_DidCommRequestCredentialV2Message = require('./messages/DidCommRequestCredentialV2Message.js');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DidCommMessageRole } from "../../../../repository/DidCommMessageRole.mjs";
|
|
2
1
|
import { DidCommMessageRepository } from "../../../../repository/DidCommMessageRepository.mjs";
|
|
2
|
+
import { DidCommMessageRole } from "../../../../repository/DidCommMessageRole.mjs";
|
|
3
3
|
import "../../../../repository/index.mjs";
|
|
4
|
-
import { DidCommIssueCredentialV2Message } from "./messages/DidCommIssueCredentialV2Message.mjs";
|
|
5
4
|
import { DidCommCredentialV2Preview } from "./messages/DidCommCredentialV2Preview.mjs";
|
|
5
|
+
import { DidCommIssueCredentialV2Message } from "./messages/DidCommIssueCredentialV2Message.mjs";
|
|
6
6
|
import { DidCommOfferCredentialV2Message } from "./messages/DidCommOfferCredentialV2Message.mjs";
|
|
7
7
|
import { DidCommProposeCredentialV2Message } from "./messages/DidCommProposeCredentialV2Message.mjs";
|
|
8
8
|
import { DidCommRequestCredentialV2Message } from "./messages/DidCommRequestCredentialV2Message.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommCredentialFormatCoordinator.mjs","names":["formats: DidCommCredentialFormatSpec[]","proposalAttachments: DidCommAttachment[]","credentialPreview: DidCommCredentialV2Preview | undefined","offerAttachments: DidCommAttachment[]","requestAttachments: DidCommAttachment[]","requestAppendAttachments: DidCommAttachment[]","credentialAttachments: DidCommAttachment[]","attachment","format"],"sources":["../../../../../src/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\nimport type { DidCommAttachment } from '../../../../decorators/attachment/DidCommAttachment'\nimport type {\n DidCommCredentialFormatPayload,\n DidCommCredentialFormatService,\n ExtractCredentialFormats,\n} from '../../formats'\nimport type { DidCommCredentialFormatSpec } from '../../models'\nimport type { DidCommCredentialExchangeRecord } from '../../repository/DidCommCredentialExchangeRecord'\n\nimport { CredoError } from '@credo-ts/core'\n\nimport { DidCommMessageRepository, DidCommMessageRole } from '../../../../repository'\n\nimport {\n DidCommCredentialV2Preview,\n DidCommIssueCredentialV2Message,\n DidCommOfferCredentialV2Message,\n DidCommProposeCredentialV2Message,\n DidCommRequestCredentialV2Message,\n} from './messages'\n\nexport class DidCommCredentialFormatCoordinator<CFs extends DidCommCredentialFormatService[]> {\n /**\n * Create a {@link DidCommProposeCredentialV2Message}.\n *\n * @param options\n * @returns The created {@link DidCommProposeCredentialV2Message}\n *\n */\n public async createProposal(\n agentContext: AgentContext,\n {\n credentialFormats,\n formatServices,\n credentialExchangeRecord,\n comment,\n goalCode,\n goal,\n }: {\n formatServices: DidCommCredentialFormatService[]\n credentialFormats: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createProposal'>\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n comment?: string\n goalCode?: string\n goal?: string\n }\n ): Promise<DidCommProposeCredentialV2Message> {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const proposalAttachments: DidCommAttachment[] = []\n let credentialPreview: DidCommCredentialV2Preview | undefined\n\n for (const formatService of formatServices) {\n const { format, attachment, previewAttributes } = await formatService.createProposal(agentContext, {\n credentialFormats,\n credentialExchangeRecord,\n })\n\n if (previewAttributes) {\n credentialPreview = new DidCommCredentialV2Preview({\n attributes: previewAttributes,\n })\n }\n\n proposalAttachments.push(attachment)\n formats.push(format)\n }\n\n credentialExchangeRecord.credentialAttributes = credentialPreview?.attributes\n\n const message = new DidCommProposeCredentialV2Message({\n id: credentialExchangeRecord.threadId,\n formats,\n proposalAttachments,\n comment,\n credentialPreview,\n goalCode,\n goal,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Sender,\n associatedRecordId: credentialExchangeRecord.id,\n })\n\n return message\n }\n\n public async processProposal(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n message,\n formatServices,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n message: DidCommProposeCredentialV2Message\n formatServices: DidCommCredentialFormatService[]\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n for (const formatService of formatServices) {\n const attachment = this.getAttachmentForService(formatService, message.formats, message.proposalAttachments)\n\n await formatService.processProposal(agentContext, {\n attachment,\n credentialExchangeRecord,\n })\n }\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Receiver,\n associatedRecordId: credentialExchangeRecord.id,\n })\n }\n\n public async acceptProposal(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n credentialFormats,\n formatServices,\n comment,\n goalCode,\n goal,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n credentialFormats?: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptProposal'>\n formatServices: DidCommCredentialFormatService[]\n comment?: string\n goalCode?: string\n goal?: string\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const offerAttachments: DidCommAttachment[] = []\n let credentialPreview: DidCommCredentialV2Preview | undefined\n\n const proposalMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n messageClass: DidCommProposeCredentialV2Message,\n role: DidCommMessageRole.Receiver,\n })\n\n // NOTE: We set the credential attributes from the proposal on the record as we've 'accepted' them\n // and can now use them to create the offer in the format services. It may be overwritten later on\n // if the user provided other attributes in the credentialFormats array.\n credentialExchangeRecord.credentialAttributes = proposalMessage.credentialPreview?.attributes\n\n for (const formatService of formatServices) {\n const proposalAttachment = this.getAttachmentForService(\n formatService,\n proposalMessage.formats,\n proposalMessage.proposalAttachments\n )\n\n const { attachment, format, previewAttributes } = await formatService.acceptProposal(agentContext, {\n credentialExchangeRecord,\n credentialFormats,\n proposalAttachment,\n })\n\n if (previewAttributes) {\n credentialPreview = new DidCommCredentialV2Preview({\n attributes: previewAttributes,\n })\n }\n\n offerAttachments.push(attachment)\n formats.push(format)\n }\n\n credentialExchangeRecord.credentialAttributes = credentialPreview?.attributes\n\n if (!credentialPreview) {\n // If no preview attributes were provided, use a blank preview. Not all formats use this object\n // but it is required by the protocol\n credentialPreview = new DidCommCredentialV2Preview({\n attributes: [],\n })\n }\n\n const message = new DidCommOfferCredentialV2Message({\n formats,\n credentialPreview,\n offerAttachments,\n comment,\n goalCode,\n goal,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n associatedRecordId: credentialExchangeRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n return message\n }\n\n /**\n * Create a {@link DidCommOfferCredentialV2Message}.\n *\n * @param options\n * @returns The created {@link DidCommOfferCredentialV2Message}\n *\n */\n public async createOffer(\n agentContext: AgentContext,\n {\n credentialFormats,\n formatServices,\n credentialExchangeRecord,\n comment,\n goalCode,\n goal,\n }: {\n formatServices: DidCommCredentialFormatService[]\n credentialFormats: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createOffer'>\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n comment?: string\n goalCode?: string\n goal?: string\n }\n ): Promise<DidCommOfferCredentialV2Message> {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const offerAttachments: DidCommAttachment[] = []\n let credentialPreview: DidCommCredentialV2Preview | undefined\n\n for (const formatService of formatServices) {\n const { format, attachment, previewAttributes } = await formatService.createOffer(agentContext, {\n credentialFormats,\n credentialExchangeRecord,\n })\n\n if (previewAttributes) {\n credentialPreview = new DidCommCredentialV2Preview({\n attributes: previewAttributes,\n })\n }\n\n offerAttachments.push(attachment)\n formats.push(format)\n }\n\n credentialExchangeRecord.credentialAttributes = credentialPreview?.attributes\n\n if (!credentialPreview) {\n // If no preview attributes were provided, use a blank preview. Not all formats use this object\n // but it is required by the protocol\n credentialPreview = new DidCommCredentialV2Preview({\n attributes: [],\n })\n }\n\n const message = new DidCommOfferCredentialV2Message({\n formats,\n comment,\n goalCode,\n goal,\n offerAttachments,\n credentialPreview,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Sender,\n associatedRecordId: credentialExchangeRecord.id,\n })\n\n return message\n }\n\n public async processOffer(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n message,\n formatServices,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n message: DidCommOfferCredentialV2Message\n formatServices: DidCommCredentialFormatService[]\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n for (const formatService of formatServices) {\n const attachment = this.getAttachmentForService(formatService, message.formats, message.offerAttachments)\n\n await formatService.processOffer(agentContext, {\n attachment,\n credentialExchangeRecord,\n })\n }\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Receiver,\n associatedRecordId: credentialExchangeRecord.id,\n })\n }\n\n public async acceptOffer(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n credentialFormats,\n formatServices,\n comment,\n goalCode,\n goal,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n credentialFormats?: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptOffer'>\n formatServices: DidCommCredentialFormatService[]\n comment?: string\n goalCode?: string\n goal?: string\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n const offerMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n messageClass: DidCommOfferCredentialV2Message,\n role: DidCommMessageRole.Receiver,\n })\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const requestAttachments: DidCommAttachment[] = []\n const requestAppendAttachments: DidCommAttachment[] = []\n\n for (const formatService of formatServices) {\n const offerAttachment = this.getAttachmentForService(\n formatService,\n offerMessage.formats,\n offerMessage.offerAttachments\n )\n\n const { attachment, format, appendAttachments } = await formatService.acceptOffer(agentContext, {\n offerAttachment,\n credentialExchangeRecord,\n credentialFormats,\n })\n\n requestAttachments.push(attachment)\n formats.push(format)\n if (appendAttachments) requestAppendAttachments.push(...appendAttachments)\n }\n\n credentialExchangeRecord.credentialAttributes = offerMessage.credentialPreview?.attributes\n\n const message = new DidCommRequestCredentialV2Message({\n formats,\n attachments: requestAppendAttachments,\n requestAttachments: requestAttachments,\n comment,\n goalCode,\n goal,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n associatedRecordId: credentialExchangeRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n return message\n }\n\n /**\n * Create a {@link DidCommRequestCredentialV2Message}.\n *\n * @param options\n * @returns The created {@link DidCommRequestCredentialV2Message}\n *\n */\n public async createRequest(\n agentContext: AgentContext,\n {\n credentialFormats,\n formatServices,\n credentialExchangeRecord,\n comment,\n goalCode,\n goal,\n }: {\n formatServices: DidCommCredentialFormatService[]\n credentialFormats: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createRequest'>\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n comment?: string\n goalCode?: string\n goal?: string\n }\n ): Promise<DidCommRequestCredentialV2Message> {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const requestAttachments: DidCommAttachment[] = []\n\n for (const formatService of formatServices) {\n const { format, attachment } = await formatService.createRequest(agentContext, {\n credentialFormats,\n credentialExchangeRecord,\n })\n\n requestAttachments.push(attachment)\n formats.push(format)\n }\n\n const message = new DidCommRequestCredentialV2Message({\n formats,\n comment,\n goalCode,\n goal,\n requestAttachments: requestAttachments,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Sender,\n associatedRecordId: credentialExchangeRecord.id,\n })\n\n return message\n }\n\n public async processRequest(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n message,\n formatServices,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n message: DidCommRequestCredentialV2Message\n formatServices: DidCommCredentialFormatService[]\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n for (const formatService of formatServices) {\n const attachment = this.getAttachmentForService(formatService, message.formats, message.requestAttachments)\n\n await formatService.processRequest(agentContext, {\n attachment,\n credentialExchangeRecord,\n })\n }\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Receiver,\n associatedRecordId: credentialExchangeRecord.id,\n })\n }\n\n public async acceptRequest(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n credentialFormats,\n formatServices,\n comment,\n goalCode,\n goal,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n credentialFormats?: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptRequest'>\n formatServices: DidCommCredentialFormatService[]\n comment?: string\n goalCode?: string\n goal?: string\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n const requestMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n messageClass: DidCommRequestCredentialV2Message,\n role: DidCommMessageRole.Receiver,\n })\n\n const offerMessage = await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n messageClass: DidCommOfferCredentialV2Message,\n role: DidCommMessageRole.Sender,\n })\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const credentialAttachments: DidCommAttachment[] = []\n\n for (const formatService of formatServices) {\n const requestAttachment = this.getAttachmentForService(\n formatService,\n requestMessage.formats,\n requestMessage.requestAttachments\n )\n\n const offerAttachment = offerMessage\n ? this.getAttachmentForService(formatService, offerMessage.formats, offerMessage.offerAttachments)\n : undefined\n\n const { attachment, format } = await formatService.acceptRequest(agentContext, {\n requestAttachment,\n offerAttachment,\n credentialExchangeRecord,\n credentialFormats,\n requestAppendAttachments: requestMessage.appendedAttachments,\n })\n\n credentialAttachments.push(attachment)\n formats.push(format)\n }\n\n const message = new DidCommIssueCredentialV2Message({\n formats,\n credentialAttachments: credentialAttachments,\n comment,\n goalCode,\n goal,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n message.setPleaseAck()\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n associatedRecordId: credentialExchangeRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n return message\n }\n\n public async processCredential(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n message,\n requestMessage,\n formatServices,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n message: DidCommIssueCredentialV2Message\n requestMessage: DidCommRequestCredentialV2Message\n formatServices: DidCommCredentialFormatService[]\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n const offerMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n messageClass: DidCommOfferCredentialV2Message,\n role: DidCommMessageRole.Receiver,\n })\n\n for (const formatService of formatServices) {\n const offerAttachment = this.getAttachmentForService(\n formatService,\n offerMessage.formats,\n offerMessage.offerAttachments\n )\n\n const attachment = this.getAttachmentForService(formatService, message.formats, message.credentialAttachments)\n const requestAttachment = this.getAttachmentForService(\n formatService,\n requestMessage.formats,\n requestMessage.requestAttachments\n )\n\n await formatService.processCredential(agentContext, {\n attachment,\n offerAttachment,\n requestAttachment,\n credentialExchangeRecord,\n requestAppendAttachments: requestMessage.appendedAttachments,\n })\n }\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Receiver,\n associatedRecordId: credentialExchangeRecord.id,\n })\n }\n\n public getAttachmentForService(\n credentialFormatService: DidCommCredentialFormatService,\n formats: DidCommCredentialFormatSpec[],\n attachments: DidCommAttachment[]\n ) {\n const attachmentId = this.getAttachmentIdForService(credentialFormatService, formats)\n const attachment = attachments.find((attachment) => attachment.id === attachmentId)\n\n if (!attachment) {\n throw new CredoError(`DidCommAttachment with id ${attachmentId} not found in attachments.`)\n }\n\n return attachment\n }\n\n private getAttachmentIdForService(\n credentialFormatService: DidCommCredentialFormatService,\n formats: DidCommCredentialFormatSpec[]\n ) {\n const format = formats.find((format) => credentialFormatService.supportsFormat(format.format))\n\n if (!format) throw new CredoError(`No attachment found for service ${credentialFormatService.formatKey}`)\n\n return format.attachmentId\n }\n}\n"],"mappings":";;;;;;;;;;;;AAsBA,IAAa,qCAAb,MAA8F;;;;;;;;CAQ5F,MAAa,eACX,cACA,EACE,mBACA,gBACA,0BACA,SACA,UACA,QAS0C;EAC5C,MAAM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SACA,gBACA,kBAOF;EACA,MAAM,2BAA2B,aAAa,kBAAkB,QAAQ,yBAAyB;EAEjG,MAAM,eAAe,MAAM,yBAAyB,gBAAgB,cAAc;GAChF,oBAAoB,yBAAyB;GAC7C,cAAc;GACd,MAAM,mBAAmB;GAC1B,CAAC;AAEF,OAAK,MAAM,iBAAiB,gBAAgB;GAC1C,MAAM,kBAAkB,KAAK,wBAC3B,eACA,aAAa,SACb,aAAa,iBACd;GAED,MAAM,aAAa,KAAK,wBAAwB,eAAe,QAAQ,SAAS,QAAQ,sBAAsB;GAC9G,MAAM,oBAAoB,KAAK,wBAC7B,eACA,eAAe,SACf,eAAe,mBAChB;AAED,SAAM,cAAc,kBAAkB,cAAc;IAClD;IACA;IACA;IACA;IACA,0BAA0B,eAAe;IAC1C,CAAC;;AAGJ,QAAM,yBAAyB,yBAAyB,cAAc;GACpE,cAAc;GACd,MAAM,mBAAmB;GACzB,oBAAoB,yBAAyB;GAC9C,CAAC;;CAGJ,AAAO,wBACL,yBACA,SACA,aACA;EACA,MAAM,eAAe,KAAK,0BAA0B,yBAAyB,QAAQ;EACrF,MAAM,aAAa,YAAY,MAAM,iBAAeC,aAAW,OAAO,aAAa;AAEnF,MAAI,CAAC,WACH,OAAM,IAAI,WAAW,6BAA6B,aAAa,4BAA4B;AAG7F,SAAO;;CAGT,AAAQ,0BACN,yBACA,SACA;EACA,MAAM,SAAS,QAAQ,MAAM,aAAW,wBAAwB,eAAeC,SAAO,OAAO,CAAC;AAE9F,MAAI,CAAC,OAAQ,OAAM,IAAI,WAAW,mCAAmC,wBAAwB,YAAY;AAEzG,SAAO,OAAO"}
|
|
1
|
+
{"version":3,"file":"DidCommCredentialFormatCoordinator.mjs","names":["formats: DidCommCredentialFormatSpec[]","proposalAttachments: DidCommAttachment[]","credentialPreview: DidCommCredentialV2Preview | undefined","offerAttachments: DidCommAttachment[]","requestAttachments: DidCommAttachment[]","requestAppendAttachments: DidCommAttachment[]","credentialAttachments: DidCommAttachment[]","attachment","format"],"sources":["../../../../../src/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\nimport { CredoError } from '@credo-ts/core'\nimport type { DidCommAttachment } from '../../../../decorators/attachment/DidCommAttachment'\nimport { DidCommMessageRepository, DidCommMessageRole } from '../../../../repository'\nimport type {\n DidCommCredentialFormatPayload,\n DidCommCredentialFormatService,\n ExtractCredentialFormats,\n} from '../../formats'\nimport type { DidCommCredentialFormatSpec } from '../../models'\nimport type { DidCommCredentialExchangeRecord } from '../../repository/DidCommCredentialExchangeRecord'\n\nimport {\n DidCommCredentialV2Preview,\n DidCommIssueCredentialV2Message,\n DidCommOfferCredentialV2Message,\n DidCommProposeCredentialV2Message,\n DidCommRequestCredentialV2Message,\n} from './messages'\n\nexport class DidCommCredentialFormatCoordinator<CFs extends DidCommCredentialFormatService[]> {\n /**\n * Create a {@link DidCommProposeCredentialV2Message}.\n *\n * @param options\n * @returns The created {@link DidCommProposeCredentialV2Message}\n *\n */\n public async createProposal(\n agentContext: AgentContext,\n {\n credentialFormats,\n formatServices,\n credentialExchangeRecord,\n comment,\n goalCode,\n goal,\n }: {\n formatServices: DidCommCredentialFormatService[]\n credentialFormats: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createProposal'>\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n comment?: string\n goalCode?: string\n goal?: string\n }\n ): Promise<DidCommProposeCredentialV2Message> {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const proposalAttachments: DidCommAttachment[] = []\n let credentialPreview: DidCommCredentialV2Preview | undefined\n\n for (const formatService of formatServices) {\n const { format, attachment, previewAttributes } = await formatService.createProposal(agentContext, {\n credentialFormats,\n credentialExchangeRecord,\n })\n\n if (previewAttributes) {\n credentialPreview = new DidCommCredentialV2Preview({\n attributes: previewAttributes,\n })\n }\n\n proposalAttachments.push(attachment)\n formats.push(format)\n }\n\n credentialExchangeRecord.credentialAttributes = credentialPreview?.attributes\n\n const message = new DidCommProposeCredentialV2Message({\n id: credentialExchangeRecord.threadId,\n formats,\n proposalAttachments,\n comment,\n credentialPreview,\n goalCode,\n goal,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Sender,\n associatedRecordId: credentialExchangeRecord.id,\n })\n\n return message\n }\n\n public async processProposal(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n message,\n formatServices,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n message: DidCommProposeCredentialV2Message\n formatServices: DidCommCredentialFormatService[]\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n for (const formatService of formatServices) {\n const attachment = this.getAttachmentForService(formatService, message.formats, message.proposalAttachments)\n\n await formatService.processProposal(agentContext, {\n attachment,\n credentialExchangeRecord,\n })\n }\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Receiver,\n associatedRecordId: credentialExchangeRecord.id,\n })\n }\n\n public async acceptProposal(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n credentialFormats,\n formatServices,\n comment,\n goalCode,\n goal,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n credentialFormats?: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptProposal'>\n formatServices: DidCommCredentialFormatService[]\n comment?: string\n goalCode?: string\n goal?: string\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const offerAttachments: DidCommAttachment[] = []\n let credentialPreview: DidCommCredentialV2Preview | undefined\n\n const proposalMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n messageClass: DidCommProposeCredentialV2Message,\n role: DidCommMessageRole.Receiver,\n })\n\n // NOTE: We set the credential attributes from the proposal on the record as we've 'accepted' them\n // and can now use them to create the offer in the format services. It may be overwritten later on\n // if the user provided other attributes in the credentialFormats array.\n credentialExchangeRecord.credentialAttributes = proposalMessage.credentialPreview?.attributes\n\n for (const formatService of formatServices) {\n const proposalAttachment = this.getAttachmentForService(\n formatService,\n proposalMessage.formats,\n proposalMessage.proposalAttachments\n )\n\n const { attachment, format, previewAttributes } = await formatService.acceptProposal(agentContext, {\n credentialExchangeRecord,\n credentialFormats,\n proposalAttachment,\n })\n\n if (previewAttributes) {\n credentialPreview = new DidCommCredentialV2Preview({\n attributes: previewAttributes,\n })\n }\n\n offerAttachments.push(attachment)\n formats.push(format)\n }\n\n credentialExchangeRecord.credentialAttributes = credentialPreview?.attributes\n\n if (!credentialPreview) {\n // If no preview attributes were provided, use a blank preview. Not all formats use this object\n // but it is required by the protocol\n credentialPreview = new DidCommCredentialV2Preview({\n attributes: [],\n })\n }\n\n const message = new DidCommOfferCredentialV2Message({\n formats,\n credentialPreview,\n offerAttachments,\n comment,\n goalCode,\n goal,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n associatedRecordId: credentialExchangeRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n return message\n }\n\n /**\n * Create a {@link DidCommOfferCredentialV2Message}.\n *\n * @param options\n * @returns The created {@link DidCommOfferCredentialV2Message}\n *\n */\n public async createOffer(\n agentContext: AgentContext,\n {\n credentialFormats,\n formatServices,\n credentialExchangeRecord,\n comment,\n goalCode,\n goal,\n }: {\n formatServices: DidCommCredentialFormatService[]\n credentialFormats: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createOffer'>\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n comment?: string\n goalCode?: string\n goal?: string\n }\n ): Promise<DidCommOfferCredentialV2Message> {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const offerAttachments: DidCommAttachment[] = []\n let credentialPreview: DidCommCredentialV2Preview | undefined\n\n for (const formatService of formatServices) {\n const { format, attachment, previewAttributes } = await formatService.createOffer(agentContext, {\n credentialFormats,\n credentialExchangeRecord,\n })\n\n if (previewAttributes) {\n credentialPreview = new DidCommCredentialV2Preview({\n attributes: previewAttributes,\n })\n }\n\n offerAttachments.push(attachment)\n formats.push(format)\n }\n\n credentialExchangeRecord.credentialAttributes = credentialPreview?.attributes\n\n if (!credentialPreview) {\n // If no preview attributes were provided, use a blank preview. Not all formats use this object\n // but it is required by the protocol\n credentialPreview = new DidCommCredentialV2Preview({\n attributes: [],\n })\n }\n\n const message = new DidCommOfferCredentialV2Message({\n formats,\n comment,\n goalCode,\n goal,\n offerAttachments,\n credentialPreview,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Sender,\n associatedRecordId: credentialExchangeRecord.id,\n })\n\n return message\n }\n\n public async processOffer(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n message,\n formatServices,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n message: DidCommOfferCredentialV2Message\n formatServices: DidCommCredentialFormatService[]\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n for (const formatService of formatServices) {\n const attachment = this.getAttachmentForService(formatService, message.formats, message.offerAttachments)\n\n await formatService.processOffer(agentContext, {\n attachment,\n credentialExchangeRecord,\n })\n }\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Receiver,\n associatedRecordId: credentialExchangeRecord.id,\n })\n }\n\n public async acceptOffer(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n credentialFormats,\n formatServices,\n comment,\n goalCode,\n goal,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n credentialFormats?: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptOffer'>\n formatServices: DidCommCredentialFormatService[]\n comment?: string\n goalCode?: string\n goal?: string\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n const offerMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n messageClass: DidCommOfferCredentialV2Message,\n role: DidCommMessageRole.Receiver,\n })\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const requestAttachments: DidCommAttachment[] = []\n const requestAppendAttachments: DidCommAttachment[] = []\n\n for (const formatService of formatServices) {\n const offerAttachment = this.getAttachmentForService(\n formatService,\n offerMessage.formats,\n offerMessage.offerAttachments\n )\n\n const { attachment, format, appendAttachments } = await formatService.acceptOffer(agentContext, {\n offerAttachment,\n credentialExchangeRecord,\n credentialFormats,\n })\n\n requestAttachments.push(attachment)\n formats.push(format)\n if (appendAttachments) requestAppendAttachments.push(...appendAttachments)\n }\n\n credentialExchangeRecord.credentialAttributes = offerMessage.credentialPreview?.attributes\n\n const message = new DidCommRequestCredentialV2Message({\n formats,\n attachments: requestAppendAttachments,\n requestAttachments: requestAttachments,\n comment,\n goalCode,\n goal,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n associatedRecordId: credentialExchangeRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n return message\n }\n\n /**\n * Create a {@link DidCommRequestCredentialV2Message}.\n *\n * @param options\n * @returns The created {@link DidCommRequestCredentialV2Message}\n *\n */\n public async createRequest(\n agentContext: AgentContext,\n {\n credentialFormats,\n formatServices,\n credentialExchangeRecord,\n comment,\n goalCode,\n goal,\n }: {\n formatServices: DidCommCredentialFormatService[]\n credentialFormats: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createRequest'>\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n comment?: string\n goalCode?: string\n goal?: string\n }\n ): Promise<DidCommRequestCredentialV2Message> {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const requestAttachments: DidCommAttachment[] = []\n\n for (const formatService of formatServices) {\n const { format, attachment } = await formatService.createRequest(agentContext, {\n credentialFormats,\n credentialExchangeRecord,\n })\n\n requestAttachments.push(attachment)\n formats.push(format)\n }\n\n const message = new DidCommRequestCredentialV2Message({\n formats,\n comment,\n goalCode,\n goal,\n requestAttachments: requestAttachments,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Sender,\n associatedRecordId: credentialExchangeRecord.id,\n })\n\n return message\n }\n\n public async processRequest(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n message,\n formatServices,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n message: DidCommRequestCredentialV2Message\n formatServices: DidCommCredentialFormatService[]\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n for (const formatService of formatServices) {\n const attachment = this.getAttachmentForService(formatService, message.formats, message.requestAttachments)\n\n await formatService.processRequest(agentContext, {\n attachment,\n credentialExchangeRecord,\n })\n }\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Receiver,\n associatedRecordId: credentialExchangeRecord.id,\n })\n }\n\n public async acceptRequest(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n credentialFormats,\n formatServices,\n comment,\n goalCode,\n goal,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n credentialFormats?: DidCommCredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptRequest'>\n formatServices: DidCommCredentialFormatService[]\n comment?: string\n goalCode?: string\n goal?: string\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n const requestMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n messageClass: DidCommRequestCredentialV2Message,\n role: DidCommMessageRole.Receiver,\n })\n\n const offerMessage = await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n messageClass: DidCommOfferCredentialV2Message,\n role: DidCommMessageRole.Sender,\n })\n\n // create message. there are two arrays in each message, one for formats the other for attachments\n const formats: DidCommCredentialFormatSpec[] = []\n const credentialAttachments: DidCommAttachment[] = []\n\n for (const formatService of formatServices) {\n const requestAttachment = this.getAttachmentForService(\n formatService,\n requestMessage.formats,\n requestMessage.requestAttachments\n )\n\n const offerAttachment = offerMessage\n ? this.getAttachmentForService(formatService, offerMessage.formats, offerMessage.offerAttachments)\n : undefined\n\n const { attachment, format } = await formatService.acceptRequest(agentContext, {\n requestAttachment,\n offerAttachment,\n credentialExchangeRecord,\n credentialFormats,\n requestAppendAttachments: requestMessage.appendedAttachments,\n })\n\n credentialAttachments.push(attachment)\n formats.push(format)\n }\n\n const message = new DidCommIssueCredentialV2Message({\n formats,\n credentialAttachments: credentialAttachments,\n comment,\n goalCode,\n goal,\n })\n\n message.setThread({\n threadId: credentialExchangeRecord.threadId,\n parentThreadId: credentialExchangeRecord.parentThreadId,\n })\n message.setPleaseAck()\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n associatedRecordId: credentialExchangeRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n return message\n }\n\n public async processCredential(\n agentContext: AgentContext,\n {\n credentialExchangeRecord,\n message,\n requestMessage,\n formatServices,\n }: {\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n message: DidCommIssueCredentialV2Message\n requestMessage: DidCommRequestCredentialV2Message\n formatServices: DidCommCredentialFormatService[]\n }\n ) {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n const offerMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n messageClass: DidCommOfferCredentialV2Message,\n role: DidCommMessageRole.Receiver,\n })\n\n for (const formatService of formatServices) {\n const offerAttachment = this.getAttachmentForService(\n formatService,\n offerMessage.formats,\n offerMessage.offerAttachments\n )\n\n const attachment = this.getAttachmentForService(formatService, message.formats, message.credentialAttachments)\n const requestAttachment = this.getAttachmentForService(\n formatService,\n requestMessage.formats,\n requestMessage.requestAttachments\n )\n\n await formatService.processCredential(agentContext, {\n attachment,\n offerAttachment,\n requestAttachment,\n credentialExchangeRecord,\n requestAppendAttachments: requestMessage.appendedAttachments,\n })\n }\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n role: DidCommMessageRole.Receiver,\n associatedRecordId: credentialExchangeRecord.id,\n })\n }\n\n public getAttachmentForService(\n credentialFormatService: DidCommCredentialFormatService,\n formats: DidCommCredentialFormatSpec[],\n attachments: DidCommAttachment[]\n ) {\n const attachmentId = this.getAttachmentIdForService(credentialFormatService, formats)\n const attachment = attachments.find((attachment) => attachment.id === attachmentId)\n\n if (!attachment) {\n throw new CredoError(`DidCommAttachment with id ${attachmentId} not found in attachments.`)\n }\n\n return attachment\n }\n\n private getAttachmentIdForService(\n credentialFormatService: DidCommCredentialFormatService,\n formats: DidCommCredentialFormatSpec[]\n ) {\n const format = formats.find((format) => credentialFormatService.supportsFormat(format.format))\n\n if (!format) throw new CredoError(`No attachment found for service ${credentialFormatService.formatKey}`)\n\n return format.attachmentId\n }\n}\n"],"mappings":";;;;;;;;;;;;AAoBA,IAAa,qCAAb,MAA8F;;;;;;;;CAQ5F,MAAa,eACX,cACA,EACE,mBACA,gBACA,0BACA,SACA,UACA,QAS0C;EAC5C,MAAM,2BAA2B,aAAa,kBAAkB,QAAQ,yBAAyB;EAGjG,MAAMA,UAAyC,EAAE;EACjD,MAAMC,sBAA2C,EAAE;EACnD,IAAIC;AAEJ,OAAK,MAAM,iBAAiB,gBAAgB;GAC1C,MAAM,EAAE,QAAQ,YAAY,sBAAsB,MAAM,cAAc,eAAe,cAAc;IACjG;IACA;IACD,CAAC;AAEF,OAAI,kBACF,qBAAoB,IAAI,2BAA2B,EACjD,YAAY,mBACb,CAAC;AAGJ,uBAAoB,KAAK,WAAW;AACpC,WAAQ,KAAK,OAAO;;AAGtB,2BAAyB,uBAAuB,mBAAmB;EAEnE,MAAM,UAAU,IAAI,kCAAkC;GACpD,IAAI,yBAAyB;GAC7B;GACA;GACA;GACA;GACA;GACA;GACD,CAAC;AAEF,UAAQ,UAAU;GAChB,UAAU,yBAAyB;GACnC,gBAAgB,yBAAyB;GAC1C,CAAC;AAEF,QAAM,yBAAyB,yBAAyB,cAAc;GACpE,cAAc;GACd,MAAM,mBAAmB;GACzB,oBAAoB,yBAAyB;GAC9C,CAAC;AAEF,SAAO;;CAGT,MAAa,gBACX,cACA,EACE,0BACA,SACA,kBAMF;EACA,MAAM,2BAA2B,aAAa,kBAAkB,QAAQ,yBAAyB;AAEjG,OAAK,MAAM,iBAAiB,gBAAgB;GAC1C,MAAM,aAAa,KAAK,wBAAwB,eAAe,QAAQ,SAAS,QAAQ,oBAAoB;AAE5G,SAAM,cAAc,gBAAgB,cAAc;IAChD;IACA;IACD,CAAC;;AAGJ,QAAM,yBAAyB,yBAAyB,cAAc;GACpE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CAAmC,wBAAwB,YAAY;AAEzG,SAAO,OAAO"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { DidCommMessage } from "../../../../DidCommMessage.mjs";
|
|
2
|
-
import { DidCommProblemReportMessage } from "../../../../messages/problem-reports/DidCommProblemReportMessage.mjs";
|
|
3
2
|
import { DidCommMessageHandlerInboundMessage } from "../../../../handlers/DidCommMessageHandler.mjs";
|
|
3
|
+
import { DidCommProblemReportMessage } from "../../../../messages/problem-reports/DidCommProblemReportMessage.mjs";
|
|
4
4
|
import { DidCommCredentialExchangeRecord } from "../../repository/DidCommCredentialExchangeRecord.mjs";
|
|
5
5
|
import { DidCommCredentialFormat } from "../../formats/DidCommCredentialFormat.mjs";
|
|
6
6
|
import { ExtractCredentialFormats } from "../../formats/DidCommCredentialFormatServiceOptions.mjs";
|
|
7
7
|
import { DidCommCredentialFormatService } from "../../formats/DidCommCredentialFormatService.mjs";
|
|
8
|
-
import { DidCommFeatureRegistry } from "../../../../DidCommFeatureRegistry.mjs";
|
|
9
8
|
import { DidCommMessageHandlerRegistry } from "../../../../DidCommMessageHandlerRegistry.mjs";
|
|
10
9
|
import { AcceptCredentialOfferOptions, AcceptCredentialOptions, AcceptCredentialProposalOptions, AcceptCredentialRequestOptions, CreateCredentialOfferOptions, CreateCredentialProblemReportOptions, CreateCredentialProposalOptions, CreateCredentialRequestOptions, CredentialProtocolMsgReturnType, GetCredentialFormatDataReturn, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions } from "../DidCommCredentialProtocolOptions.mjs";
|
|
11
10
|
import { DidCommCredentialProtocol } from "../DidCommCredentialProtocol.mjs";
|
|
@@ -17,6 +16,7 @@ import { DidCommOfferCredentialV2Handler } from "./handlers/DidCommOfferCredenti
|
|
|
17
16
|
import { DidCommProposeCredentialV2Message } from "./messages/DidCommProposeCredentialV2Message.mjs";
|
|
18
17
|
import { DidCommRequestCredentialV2Message } from "./messages/DidCommRequestCredentialV2Message.mjs";
|
|
19
18
|
import { DidCommInboundMessageContext } from "../../../../models/DidCommInboundMessageContext.mjs";
|
|
19
|
+
import { DidCommFeatureRegistry } from "../../../../DidCommFeatureRegistry.mjs";
|
|
20
20
|
import { AgentContext } from "@credo-ts/core";
|
|
21
21
|
|
|
22
22
|
//#region src/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommCredentialV2Protocol.d.mts","names":[],"sources":["../../../../../src/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommCredentialV2Protocol.d.mts","names":[],"sources":["../../../../../src/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;UAiEiB,mEAAmE;qBAC/D;;cAGR,wCACG,mCAAmC,0CAEzC,8BAA8B,gBAC3B,0BAA0B;;;;;KAKK,kCAAkC;;AAb9E;;WAAoF,OAAA,EAAA,IAAA;;;AAIpF;EAAwC,QAAA,CAAA,sBAAA,EAuBE,6BAvBF,EAAA,eAAA,EAuBkD,sBAvBlD,CAAA,EAAA,IAAA;;;;;;;;gBAuBE,CAAA,YAAA,EA4BxB,YA5BwB,EAAA;IAAA,gBAAA;IAAA,iBAAA;IAAA,OAAA;IAAA,IAAA;IAAA,QAAA;IAAA;EAAA,CAAA,EAoCnC,+BApCmC,CAoCH,GApCG,CAAA,CAAA,EAqCrC,OArCqC,CAqC7B,+BArC6B,CAqCG,cArCH,CAAA,CAAA;;;;;;;iBAkCpC,CAAA,cAAA,EA6Cc,4BA7Cd,CA6C2C,iCA7C3C,CAAA,CAAA,EA8CD,OA9CC,CA8CO,+BA9CP,CAAA;gBACA,CAAA,YAAA,EAwIY,YAxIZ,EAAA;IAAA,wBAAA;IAAA,iBAAA;IAAA,oBAAA;IAAA,OAAA;IAAA,IAAA;IAAA;EAAA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portMessage } from "../../../../messages/problem-reports/DidCommProblemReportMessage.js";
|
|
3
2
|
import { DidCommMessageHandlerInboundMessage } from "../../../../handlers/DidCommMessageHandler.js";
|
|
3
|
+
import { DidCommProblemReportMessage } from "../../../../messages/problem-reports/DidCommProblemReportMessage.js";
|
|
4
4
|
import { DidCommCredentialExchangeRecord } from "../../repository/DidCommCredentialExchangeRecord.js";
|
|
5
5
|
import { DidCommCredentialFormat } from "../../formats/DidCommCredentialFormat.js";
|
|
6
6
|
import { ExtractCredentialFormats } from "../../formats/DidCommCredentialFormatServiceOptions.js";
|
|
7
7
|
import { DidCommCredentialFormatService } from "../../formats/DidCommCredentialFormatService.js";
|
|
8
|
-
import { DidCommFeatureRegistry } from "../../../../DidCommFeatureRegistry.js";
|
|
9
8
|
import { DidCommMessageHandlerRegistry } from "../../../../DidCommMessageHandlerRegistry.js";
|
|
10
9
|
import { AcceptCredentialOfferOptions, AcceptCredentialOptions, AcceptCredentialProposalOptions, AcceptCredentialRequestOptions, CreateCredentialOfferOptions, CreateCredentialProblemReportOptions, CreateCredentialProposalOptions, CreateCredentialRequestOptions, CredentialProtocolMsgReturnType, GetCredentialFormatDataReturn, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions } from "../DidCommCredentialProtocolOptions.js";
|
|
11
10
|
import { DidCommCredentialProtocol } from "../DidCommCredentialProtocol.js";
|
|
@@ -17,6 +16,7 @@ import { DidCommOfferCredentialV2Handler } from "./handlers/DidCommOfferCredenti
|
|
|
17
16
|
import { DidCommProposeCredentialV2Message } from "./messages/DidCommProposeCredentialV2Message.js";
|
|
18
17
|
import { DidCommRequestCredentialV2Message } from "./messages/DidCommRequestCredentialV2Message.js";
|
|
19
18
|
import { DidCommInboundMessageContext } from "../../../../models/DidCommInboundMessageContext.js";
|
|
19
|
+
import { DidCommFeatureRegistry } from "../../../../DidCommFeatureRegistry.js";
|
|
20
20
|
import { AgentContext } from "@credo-ts/core";
|
|
21
21
|
|
|
22
22
|
//#region src/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommCredentialV2Protocol.d.ts","names":[],"sources":["../../../../../src/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommCredentialV2Protocol.d.ts","names":[],"sources":["../../../../../src/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;UAiEiB,mEAAmE;qBAC/D;;cAGR,wCACG,mCAAmC,0CAEzC,8BAA8B,gBAC3B,0BAA0B;;;;;KAKK,kCAAkC;;AAb9E;;WAAoF,OAAA,EAAA,IAAA;;;AAIpF;EAAwC,QAAA,CAAA,sBAAA,EAuBE,6BAvBF,EAAA,eAAA,EAuBkD,sBAvBlD,CAAA,EAAA,IAAA;;;;;;;;gBAuBE,CAAA,YAAA,EA4BxB,YA5BwB,EAAA;IAAA,gBAAA;IAAA,iBAAA;IAAA,OAAA;IAAA,IAAA;IAAA,QAAA;IAAA;EAAA,CAAA,EAoCnC,+BApCmC,CAoCH,GApCG,CAAA,CAAA,EAqCrC,OArCqC,CAqC7B,+BArC6B,CAqCG,cArCH,CAAA,CAAA;;;;;;;iBAkCpC,CAAA,cAAA,EA6Cc,4BA7Cd,CA6C2C,iCA7C3C,CAAA,CAAA,EA8CD,OA9CC,CA8CO,+BA9CP,CAAA;gBACA,CAAA,YAAA,EAwIY,YAxIZ,EAAA;IAAA,wBAAA;IAAA,iBAAA;IAAA,oBAAA;IAAA,OAAA;IAAA,IAAA;IAAA;EAAA,CAAA,EAgJC,+BAhJD,CAgJiC,GAhJjC,CAAA,CAAA,EAiJD,OAjJC,CAiJO,+BAjJP,CAiJuC,+BAjJvC,CAAA,CAAA;;;;;;;;;mBA6CD,CAAA,YAAA,EAyJa,YAzJb,EAAA;IAAA,wBAAA;I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AuOD,OAvO6B,CAAA,OAAA,CAAA;+BACW,CAAA,YAAA,EAiS3B,YAjS2B,EAAA,OAAA,EAAA;IAAhC,wBAAA,EAmSmB,+BAnSnB;IAAR,iBAAA,EAoSoB,+BApSpB;MAsSA,OA1Q4C,CAAA,OAAA,CAAA;qBAA7B,CAAA,YAAA,EA6U6B,YA7U7B,EAAA,oBAAA,EAAA,MAAA,CAAA,EA6UuE,OA7UvE,CA6UuE,iCA7UvE,GAAA,IAAA,CAAA;kBACP,CAAA,YAAA,EAqViC,YArVjC,EAAA,oBAAA,EAAA,MAAA,CAAA,EAqV2E,OArV3E,CAqV2E,+BArV3E,GAAA,IAAA,CAAA;oBAAR,CAAA,YAAA,EA8V2C,YA9V3C,EAAA,oBAAA,EAAA,MAAA,CAAA,EA8VqF,OA9VrF,CA8VqF,iCA9VrF,GAAA,IAAA,CAAA;uBAkDc,CAAA,YAAA,EAqTgC,YArThC,EAAA,oBAAA,EAAA,MAAA,CAAA,EAqT0E,OArT1E,CAqT0E,+BArT1E,GAAA,IAAA,CAAA;eACb,CAAA,YAAA,EA8TY,YA9TZ,EAAA,oBAAA,EAAA,MAAA,CAAA,EAgUD,OAhUC,CAgUO,6BAhUP,CAgUqC,wBAhUrC,CAgU8D,GAhU9D,CAAA,CAAA,CAAA;;;;;;UAmBY,4BAAA;;;;;;UAoEE,iBAAA;UAEf,4BAAA;UAwDa,yBAAA;YAEc,6BAAA,CAAA,oBAAA,EAAA,MAAA,CAAA,EA6QsC,8BA7QtC,CA6QsC,uBA7QtC,CAAA"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_DidCommAckMessage = require('../../../../messages/common/DidCommAckMessage.js');
|
|
3
|
-
require('../../../../messages/index.js');
|
|
4
2
|
const require_DidCommProtocol = require('../../../../models/features/DidCommProtocol.js');
|
|
5
3
|
require('../../../../models/index.js');
|
|
4
|
+
const require_DidCommAckMessage = require('../../../../messages/common/DidCommAckMessage.js');
|
|
5
|
+
require('../../../../messages/index.js');
|
|
6
6
|
const require_DidCommConnectionService = require('../../../connections/services/DidCommConnectionService.js');
|
|
7
7
|
require('../../../connections/index.js');
|
|
8
|
-
const require_DidCommMessageRole = require('../../../../repository/DidCommMessageRole.js');
|
|
9
8
|
const require_DidCommMessageRepository = require('../../../../repository/DidCommMessageRepository.js');
|
|
9
|
+
const require_DidCommMessageRole = require('../../../../repository/DidCommMessageRole.js');
|
|
10
10
|
require('../../../../repository/index.js');
|
|
11
11
|
const require_DidCommCredentialAutoAcceptType = require('../../models/DidCommCredentialAutoAcceptType.js');
|
|
12
|
-
const require_DidCommCredentialState = require('../../models/DidCommCredentialState.js');
|
|
13
12
|
const require_DidCommCredentialProblemReportReason = require('../../models/DidCommCredentialProblemReportReason.js');
|
|
14
13
|
const require_DidCommCredentialRole = require('../../models/DidCommCredentialRole.js');
|
|
14
|
+
const require_DidCommCredentialState = require('../../models/DidCommCredentialState.js');
|
|
15
15
|
require('../../models/index.js');
|
|
16
16
|
const require_DidCommCredentialsModuleConfig = require('../../DidCommCredentialsModuleConfig.js');
|
|
17
17
|
const require_DidCommCredentialExchangeRecord = require('../../repository/DidCommCredentialExchangeRecord.js');
|
|
@@ -29,11 +29,11 @@ const require_DidCommRequestCredentialV2Message = require('./messages/DidCommReq
|
|
|
29
29
|
require('./messages/index.js');
|
|
30
30
|
const require_DidCommCredentialFormatCoordinator = require('./DidCommCredentialFormatCoordinator.js');
|
|
31
31
|
const require_DidCommCredentialV2AckHandler = require('./handlers/DidCommCredentialV2AckHandler.js');
|
|
32
|
+
const require_DidCommCredentialV2ProblemReportHandler = require('./handlers/DidCommCredentialV2ProblemReportHandler.js');
|
|
32
33
|
const require_DidCommIssueCredentialV2Handler = require('./handlers/DidCommIssueCredentialV2Handler.js');
|
|
33
34
|
const require_DidCommOfferCredentialV2Handler = require('./handlers/DidCommOfferCredentialV2Handler.js');
|
|
34
35
|
const require_DidCommProposeCredentialV2Handler = require('./handlers/DidCommProposeCredentialV2Handler.js');
|
|
35
36
|
const require_DidCommRequestCredentialV2Handler = require('./handlers/DidCommRequestCredentialV2Handler.js');
|
|
36
|
-
const require_DidCommCredentialV2ProblemReportHandler = require('./handlers/DidCommCredentialV2ProblemReportHandler.js');
|
|
37
37
|
require('./handlers/index.js');
|
|
38
38
|
let __credo_ts_core = require("@credo-ts/core");
|
|
39
39
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { AckStatus } from "../../../../messages/common/DidCommAckMessage.mjs";
|
|
2
|
-
import "../../../../messages/index.mjs";
|
|
3
1
|
import { DidCommProtocol } from "../../../../models/features/DidCommProtocol.mjs";
|
|
4
2
|
import "../../../../models/index.mjs";
|
|
3
|
+
import { AckStatus } from "../../../../messages/common/DidCommAckMessage.mjs";
|
|
4
|
+
import "../../../../messages/index.mjs";
|
|
5
5
|
import { DidCommConnectionService } from "../../../connections/services/DidCommConnectionService.mjs";
|
|
6
6
|
import "../../../connections/index.mjs";
|
|
7
|
-
import { DidCommMessageRole } from "../../../../repository/DidCommMessageRole.mjs";
|
|
8
7
|
import { DidCommMessageRepository } from "../../../../repository/DidCommMessageRepository.mjs";
|
|
8
|
+
import { DidCommMessageRole } from "../../../../repository/DidCommMessageRole.mjs";
|
|
9
9
|
import "../../../../repository/index.mjs";
|
|
10
10
|
import { DidCommAutoAcceptCredential } from "../../models/DidCommCredentialAutoAcceptType.mjs";
|
|
11
|
-
import { DidCommCredentialState } from "../../models/DidCommCredentialState.mjs";
|
|
12
11
|
import { DidCommCredentialProblemReportReason } from "../../models/DidCommCredentialProblemReportReason.mjs";
|
|
13
12
|
import { DidCommCredentialRole } from "../../models/DidCommCredentialRole.mjs";
|
|
13
|
+
import { DidCommCredentialState } from "../../models/DidCommCredentialState.mjs";
|
|
14
14
|
import "../../models/index.mjs";
|
|
15
15
|
import { DidCommCredentialsModuleConfig } from "../../DidCommCredentialsModuleConfig.mjs";
|
|
16
16
|
import { DidCommCredentialExchangeRecord } from "../../repository/DidCommCredentialExchangeRecord.mjs";
|
|
@@ -28,11 +28,11 @@ import { DidCommRequestCredentialV2Message } from "./messages/DidCommRequestCred
|
|
|
28
28
|
import "./messages/index.mjs";
|
|
29
29
|
import { DidCommCredentialFormatCoordinator } from "./DidCommCredentialFormatCoordinator.mjs";
|
|
30
30
|
import { DidCommCredentialV2AckHandler } from "./handlers/DidCommCredentialV2AckHandler.mjs";
|
|
31
|
+
import { DidCommCredentialV2ProblemReportHandler } from "./handlers/DidCommCredentialV2ProblemReportHandler.mjs";
|
|
31
32
|
import { DidCommIssueCredentialV2Handler } from "./handlers/DidCommIssueCredentialV2Handler.mjs";
|
|
32
33
|
import { DidCommOfferCredentialV2Handler } from "./handlers/DidCommOfferCredentialV2Handler.mjs";
|
|
33
34
|
import { DidCommProposeCredentialV2Handler } from "./handlers/DidCommProposeCredentialV2Handler.mjs";
|
|
34
35
|
import { DidCommRequestCredentialV2Handler } from "./handlers/DidCommRequestCredentialV2Handler.mjs";
|
|
35
|
-
import { DidCommCredentialV2ProblemReportHandler } from "./handlers/DidCommCredentialV2ProblemReportHandler.mjs";
|
|
36
36
|
import "./handlers/index.mjs";
|
|
37
37
|
import { CredoError, utils } from "@credo-ts/core";
|
|
38
38
|
|