@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
package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommJsonLdCredentialFormatService.d.mts","names":[],"sources":["../../../../../src/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommJsonLdCredentialFormatService.d.mts","names":[],"sources":["../../../../../src/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.ts"],"sourcesContent":[],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E1E,2CAjE0E,CAiE9B,6BAjE8B,CAAA,CAAA,EAkE5E,OAlE4E,CAkEpE,mCAlEoE,CAAA;;;;;;UAyBV,wBAAA;;;;;;mBAsBnD,CAAA,YAAA,EA4GF,YA5GE,EAAA;IAAA,wBAAA;IAAA,UAAA;IAAA;EAAA,CAAA,EA6G6C,+CA7G7C,CAAA,EA8Gf,OA9Ge,CAAA,IAAA,CAAA;UACf,sCAAA;gBAYa,CAAA,MAAA,EAAA,MAAA,CAAA,EAAA,OAAA;sBAEZ,CAAA,CAAA,EAsKiC,OAtKjC,CAAA,IAAA,CAAA;qBACA,EAAA,CAAA,QAAA,EAyKoC,iBAzKpC,EAAA,QAAA,EAyKiE,iBAzKjE,EAAA,GAAA,OAAA;6BACA,CAAA,aAAA,EAgLa,YAhLb,EAAA;IAAA,eAAA;IAAA;EAAA,CAAA,EAiLuC,iDAjLvC,CAAA,EAiLwF,OAjLxF,CAAA,OAAA,CAAA;0BAC6C,CAAA,aAAA,EAsLhC,YAtLgC,EAAA;IAAA,eAAA;IAAA;EAAA,CAAA,EAuLN,8CAvLM,CAAA,EAuLwC,OAvLxC,CAAA,OAAA,CAAA;4BAA5C,CAAA,aAAA,EA6LY,YA7LZ,EAAA;IAAA,eAAA;IAAA;EAAA,CAAA,EA8LqC,gDA9LrC,CAAA,EA8LqF,OA9LrF,CAAA,OAAA,CAAA;+BACM,CAAA,aAAA,EAmMM,YAnMN,EAAA;IAAA,iBAAA;IAAA;EAAA,CAAA,EAoMoC,mDApMpC,CAAA,EAoMuF,OApMvF,CAAA,OAAA,CAAA;;;;;;;;UAkK0B,aAAA"}
|
package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommJsonLdCredentialFormatService.d.ts","names":[],"sources":["../../../../../src/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommJsonLdCredentialFormatService.d.ts","names":[],"sources":["../../../../../src/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.ts"],"sourcesContent":[],"mappings":";;;;;;;cA6Ca,oCAAA,YACA,+BAA+B;;EAD/B,SAAA,oBAAA,EAAA,KAAA;EACX;;;;;;;gBAeG,CAAA,aAAA,EAFc,YAEd,EAAA;IAAA;EAAA,CAAA,EADsB,4CACtB,CADmE,6BACnE,CAAA,CAAA,EAAA,OAAA,CAAQ,2CAAR,CAAA;;;;;iBAqCc,CAAA,aAAA,EAdA,YAcA,EAAA;IAAA;EAAA,CAAA,EAbC,qCAaD,CAAA,EAZd,OAYc,CAAA,IAAA,CAAA;gBACb,CAAA,aAAA,EADa,YACb,EAAA;IAAA,YAAA;IAAA;EAAA,CAAA,EAAoC,4CAApC,CAAiF,6BAAjF,CAAA,CAAA,EACD,OADC,CACO,wCADP,CAAA;;;;;;;;aA2BmB,CAAA,aAAA,EADN,YACM,EAAA;IAAA,iBAAA;IAAA;EAAA,CAAA,EAAgB,yCAAhB,CAA0D,6BAA1D,CAAA,CAAA,EACpB,OADoB,CACZ,wCADY,CAAA;cAA0D,CAAA,aAAA,EAqBxC,YArBwC,EAAA;IAAA;EAAA,CAAA,EAqBV,qCArBU,CAAA,EAqB2B,OArB3B,CAAA,IAAA,CAAA;aAA1C,CAAA,aAAA,EAgCtB,YAhCsB,EAAA;IAAA,YAAA;IAAA;EAAA,CAAA,EAiCF,yCAjCE,CAiCwC,6BAjCxC,CAAA,CAAA,EAkCpC,OAlCoC,CAkC5B,mCAlC4B,CAAA;;;;;;;;eAiCnC,CAAA,aAAA,EAwBa,YAxBb,EAAA;IAAA;EAAA,CAAA,EAyBqB,2CAzBrB,CAyBiE,6BAzBjE,CAAA,CAAA,EA0BD,OA1BC,CA0BO,mCA1BP,CAAA;gBAAc,CAAA,aAAA,EA8CD,YA9CC,EAAA;IAAA;EAAA,CAAA,EA+CA,qCA/CA,CAA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DidCommJsonLdCredentialFormatService.mjs","names":[],"sources":["../../../../../src/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\nimport type { DidCommCredentialFormatService } from '../DidCommCredentialFormatService'\nimport type {\n DidCommCredentialFormatAcceptOfferOptions,\n DidCommCredentialFormatAcceptProposalOptions,\n DidCommCredentialFormatAcceptRequestOptions,\n DidCommCredentialFormatAutoRespondCredentialOptions,\n DidCommCredentialFormatAutoRespondOfferOptions,\n DidCommCredentialFormatAutoRespondProposalOptions,\n DidCommCredentialFormatAutoRespondRequestOptions,\n DidCommCredentialFormatCreateOfferOptions,\n DidCommCredentialFormatCreateOfferReturn,\n DidCommCredentialFormatCreateProposalOptions,\n DidCommCredentialFormatCreateProposalReturn,\n DidCommCredentialFormatCreateRequestOptions,\n DidCommCredentialFormatCreateReturn,\n DidCommCredentialFormatProcessCredentialOptions,\n DidCommCredentialFormatProcessOptions,\n} from '../DidCommCredentialFormatServiceOptions'\nimport type {\n DidCommJsonLdCredentialFormat,\n JsonCredential,\n JsonLdFormatDataCredentialDetail,\n JsonLdFormatDataVerifiableCredential,\n} from './DidCommJsonLdCredentialFormat'\n\nimport {\n ClaimFormat,\n CredoError,\n DidResolverService,\n JsonEncoder,\n JsonTransformer,\n W3cCredential,\n W3cCredentialService,\n W3cJsonLdCredentialService,\n W3cJsonLdVerifiableCredential,\n findVerificationMethodByKeyType,\n utils,\n} from '@credo-ts/core'\n\nimport { DidCommAttachment, DidCommAttachmentData } from '../../../../decorators/attachment/DidCommAttachment'\nimport { DidCommCredentialFormatSpec } from '../../models/DidCommCredentialFormatSpec'\n\nimport { DidCommJsonLdCredentialDetail } from './DidCommJsonLdCredentialDetail'\n\nconst JSONLD_VC_DETAIL = 'aries/ld-proof-vc-detail@v1.0'\nconst JSONLD_VC = 'aries/ld-proof-vc@v1.0'\n\nexport class DidCommJsonLdCredentialFormatService\n implements DidCommCredentialFormatService<DidCommJsonLdCredentialFormat>\n{\n public readonly formatKey = 'jsonld' as const\n public readonly credentialRecordType = 'w3c' as const\n\n /**\n * Create a {@link AttachmentFormats} object dependent on the message type.\n *\n * @param options The object containing all the options for the proposed credential\n * @returns object containing associated attachment, formats and filtersAttach elements\n *\n */\n public async createProposal(\n _agentContext: AgentContext,\n { credentialFormats }: DidCommCredentialFormatCreateProposalOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateProposalReturn> {\n const format = new DidCommCredentialFormatSpec({\n format: JSONLD_VC_DETAIL,\n })\n\n const jsonLdFormat = credentialFormats.jsonld\n if (!jsonLdFormat) {\n throw new CredoError('Missing jsonld payload in createProposal')\n }\n\n // this does the validation\n JsonTransformer.fromJSON(jsonLdFormat.credential, DidCommJsonLdCredentialDetail)\n\n // jsonLdFormat is now of type JsonLdFormatDataCredentialDetail\n const attachment = this.getFormatData(jsonLdFormat, format.attachmentId)\n return { format, attachment }\n }\n\n /**\n * Method called on reception of a propose credential message\n * @param options the options needed to accept the proposal\n */\n public async processProposal(\n _agentContext: AgentContext,\n { attachment }: DidCommCredentialFormatProcessOptions\n ): Promise<void> {\n const credProposalJson = attachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n if (!credProposalJson) {\n throw new CredoError('Missing jsonld credential proposal data payload')\n }\n\n // validation is done in here\n JsonTransformer.fromJSON(credProposalJson, DidCommJsonLdCredentialDetail)\n }\n\n public async acceptProposal(\n _agentContext: AgentContext,\n { attachmentId, proposalAttachment }: DidCommCredentialFormatAcceptProposalOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateOfferReturn> {\n // if the offer has an attachment Id use that, otherwise the generated id of the formats object\n const format = new DidCommCredentialFormatSpec({\n attachmentId,\n format: JSONLD_VC_DETAIL,\n })\n\n const credentialProposal = proposalAttachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n JsonTransformer.fromJSON(credentialProposal, DidCommJsonLdCredentialDetail)\n\n const offerData = credentialProposal\n\n const attachment = this.getFormatData(offerData, format.attachmentId)\n\n return { format, attachment }\n }\n\n /**\n * Create a {@link AttachmentFormats} object dependent on the message type.\n *\n * @param options The object containing all the options for the credential offer\n * @returns object containing associated attachment, formats and offersAttach elements\n *\n */\n public async createOffer(\n _agentContext: AgentContext,\n { credentialFormats, attachmentId }: DidCommCredentialFormatCreateOfferOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateOfferReturn> {\n // if the offer has an attachment Id use that, otherwise the generated id of the formats object\n const format = new DidCommCredentialFormatSpec({\n attachmentId,\n format: JSONLD_VC_DETAIL,\n })\n\n const jsonLdFormat = credentialFormats?.jsonld\n if (!jsonLdFormat) {\n throw new CredoError('Missing jsonld payload in createOffer')\n }\n\n // validate\n JsonTransformer.fromJSON(jsonLdFormat.credential, DidCommJsonLdCredentialDetail)\n\n const attachment = this.getFormatData(jsonLdFormat, format.attachmentId)\n\n return { format, attachment }\n }\n\n public async processOffer(_agentContext: AgentContext, { attachment }: DidCommCredentialFormatProcessOptions) {\n const credentialOfferJson = attachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n if (!credentialOfferJson) {\n throw new CredoError('Missing jsonld credential offer data payload')\n }\n\n JsonTransformer.fromJSON(credentialOfferJson, DidCommJsonLdCredentialDetail)\n }\n\n public async acceptOffer(\n _agentContext: AgentContext,\n { attachmentId, offerAttachment }: DidCommCredentialFormatAcceptOfferOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateReturn> {\n const credentialOffer = offerAttachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n // validate\n JsonTransformer.fromJSON(credentialOffer, DidCommJsonLdCredentialDetail)\n\n const format = new DidCommCredentialFormatSpec({\n attachmentId,\n format: JSONLD_VC_DETAIL,\n })\n\n const attachment = this.getFormatData(credentialOffer, format.attachmentId)\n return { format, attachment }\n }\n\n /**\n * Create a credential attachment format for a credential request.\n *\n * @param options The object containing all the options for the credential request is derived\n * @returns object containing associated attachment, formats and requestAttach elements\n *\n */\n public async createRequest(\n _agentContext: AgentContext,\n { credentialFormats }: DidCommCredentialFormatCreateRequestOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateReturn> {\n const jsonLdFormat = credentialFormats?.jsonld\n\n const format = new DidCommCredentialFormatSpec({\n format: JSONLD_VC_DETAIL,\n })\n\n if (!jsonLdFormat) {\n throw new CredoError('Missing jsonld payload in createRequest')\n }\n\n // this does the validation\n JsonTransformer.fromJSON(jsonLdFormat.credential, DidCommJsonLdCredentialDetail)\n\n const attachment = this.getFormatData(jsonLdFormat, format.attachmentId)\n\n return { format, attachment }\n }\n\n public async processRequest(\n _agentContext: AgentContext,\n { attachment }: DidCommCredentialFormatProcessOptions\n ): Promise<void> {\n const requestJson = attachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n if (!requestJson) {\n throw new CredoError('Missing jsonld credential request data payload')\n }\n\n // validate\n JsonTransformer.fromJSON(requestJson, DidCommJsonLdCredentialDetail)\n }\n\n public async acceptRequest(\n agentContext: AgentContext,\n {\n credentialFormats,\n attachmentId,\n requestAttachment,\n }: DidCommCredentialFormatAcceptRequestOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateReturn> {\n const w3cJsonLdCredentialService = agentContext.dependencyManager.resolve(W3cJsonLdCredentialService)\n\n // sign credential here. credential to be signed is received as the request attachment\n // (attachment in the request message from holder to issuer)\n const credentialRequest = requestAttachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n const verificationMethod =\n credentialFormats?.jsonld?.verificationMethod ??\n (await this.deriveVerificationMethod(agentContext, credentialRequest.credential, credentialRequest))\n\n if (!verificationMethod) {\n throw new CredoError('Missing verification method in credential data')\n }\n const format = new DidCommCredentialFormatSpec({\n attachmentId,\n format: JSONLD_VC,\n })\n\n const options = credentialRequest.options\n\n // Get a list of fields found in the options that are not supported at the moment\n const unsupportedFields = ['challenge', 'domain', 'credentialStatus', 'created'] as const\n const foundFields = unsupportedFields.filter((field) => options[field] !== undefined)\n\n if (foundFields.length > 0) {\n throw new CredoError(`Some fields are not currently supported in credential options: ${foundFields.join(', ')}`)\n }\n\n const credential = JsonTransformer.fromJSON(credentialRequest.credential, W3cCredential)\n\n const verifiableCredential = await w3cJsonLdCredentialService.signCredential(agentContext, {\n format: ClaimFormat.LdpVc,\n credential,\n proofType: credentialRequest.options.proofType,\n verificationMethod: verificationMethod,\n })\n\n const attachment = this.getFormatData(JsonTransformer.toJSON(verifiableCredential), format.attachmentId)\n return { format, attachment }\n }\n\n /**\n * Derive a verification method using the issuer from the given verifiable credential\n * @param credentialAsJson the verifiable credential we want to sign\n * @return the verification method derived from this credential and its associated issuer did, keys etc.\n */\n private async deriveVerificationMethod(\n agentContext: AgentContext,\n credentialAsJson: JsonCredential,\n credentialRequest: JsonLdFormatDataCredentialDetail\n ): Promise<string> {\n const didResolver = agentContext.dependencyManager.resolve(DidResolverService)\n const w3cJsonLdCredentialService = agentContext.dependencyManager.resolve(W3cJsonLdCredentialService)\n\n const credential = JsonTransformer.fromJSON(credentialAsJson, W3cCredential)\n\n // extract issuer from vc (can be string or Issuer)\n let issuerDid = credential.issuer\n\n if (typeof issuerDid !== 'string') {\n issuerDid = issuerDid.id\n }\n // this will throw an error if the issuer did is invalid\n const issuerDidDocument = await didResolver.resolveDidDocument(agentContext, issuerDid)\n\n // find first key which matches proof type\n const proofType = credentialRequest.options.proofType\n\n // actually gets the key type(s)\n const keyType = w3cJsonLdCredentialService.getVerificationMethodTypesByProofType(proofType)\n\n if (!keyType || keyType.length === 0) {\n throw new CredoError(`No Key Type found for proofType ${proofType}`)\n }\n\n const verificationMethod = await findVerificationMethodByKeyType(keyType[0], issuerDidDocument)\n if (!verificationMethod) {\n throw new CredoError(`Missing verification method for key type ${keyType}`)\n }\n\n return verificationMethod.id\n }\n /**\n * Processes an incoming credential - retrieve metadata, retrieve payload and store it in the Indy wallet\n * @param options the issue credential message wrapped inside this object\n * @param credentialExchangeRecord the credential exchange record for this credential\n */\n public async processCredential(\n agentContext: AgentContext,\n { credentialExchangeRecord, attachment, requestAttachment }: DidCommCredentialFormatProcessCredentialOptions\n ): Promise<void> {\n const w3cCredentialService = agentContext.dependencyManager.resolve(W3cCredentialService)\n\n const credentialAsJson = attachment.getDataAsJson()\n const credential = JsonTransformer.fromJSON(credentialAsJson, W3cJsonLdVerifiableCredential)\n const requestAsJson = requestAttachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n // Verify the credential request matches the credential\n this.verifyReceivedCredentialMatchesRequest(credential, requestAsJson)\n\n // verify signatures of the credential\n const result = await w3cCredentialService.verifyCredential(agentContext, { credential })\n if (result && !result.isValid) {\n throw new CredoError(`Failed to validate credential, error = ${result.error}`)\n }\n\n const verifiableCredential = await w3cCredentialService.storeCredential(agentContext, {\n credential,\n })\n\n credentialExchangeRecord.credentials.push({\n credentialRecordType: this.credentialRecordType,\n credentialRecordId: verifiableCredential.id,\n })\n }\n\n private verifyReceivedCredentialMatchesRequest(\n credential: W3cJsonLdVerifiableCredential,\n request: JsonLdFormatDataCredentialDetail\n ): void {\n const jsonCredential = JsonTransformer.toJSON(credential)\n jsonCredential.proof = undefined\n\n if (Array.isArray(credential.proof)) {\n throw new CredoError('Credential proof arrays are not supported')\n }\n\n if (request.options.created && credential.proof.created !== request.options.created) {\n throw new CredoError('Received credential proof created does not match created from credential request')\n }\n\n if (credential.proof.domain !== request.options.domain) {\n throw new CredoError('Received credential proof domain does not match domain from credential request')\n }\n\n if (credential.proof.challenge !== request.options.challenge) {\n throw new CredoError('Received credential proof challenge does not match challenge from credential request')\n }\n\n if (credential.proof.type !== request.options.proofType) {\n throw new CredoError('Received credential proof type does not match proof type from credential request')\n }\n\n if (credential.proof.proofPurpose !== request.options.proofPurpose) {\n throw new CredoError('Received credential proof purpose does not match proof purpose from credential request')\n }\n\n // Check whether the received credential (minus the proof) matches the credential request\n if (!utils.areObjectsEqual(jsonCredential, request.credential)) {\n throw new CredoError('Received credential does not match credential request')\n }\n\n // TODO: add check for the credentialStatus once this is supported in Credo\n }\n\n public supportsFormat(format: string): boolean {\n const supportedFormats = [JSONLD_VC_DETAIL, JSONLD_VC]\n\n return supportedFormats.includes(format)\n }\n\n public async deleteCredentialById(): Promise<void> {\n throw new Error('Not implemented.')\n }\n\n public areCredentialsEqual = (message1: DidCommAttachment, message2: DidCommAttachment): boolean => {\n const obj1 = message1.getDataAsJson()\n const obj2 = message2.getDataAsJson()\n\n return utils.areObjectsEqual(obj1, obj2)\n }\n\n public async shouldAutoRespondToProposal(\n _agentContext: AgentContext,\n { offerAttachment, proposalAttachment }: DidCommCredentialFormatAutoRespondProposalOptions\n ) {\n return this.areCredentialsEqual(proposalAttachment, offerAttachment)\n }\n\n public async shouldAutoRespondToOffer(\n _agentContext: AgentContext,\n { offerAttachment, proposalAttachment }: DidCommCredentialFormatAutoRespondOfferOptions\n ) {\n return this.areCredentialsEqual(proposalAttachment, offerAttachment)\n }\n\n public async shouldAutoRespondToRequest(\n _agentContext: AgentContext,\n { offerAttachment, requestAttachment }: DidCommCredentialFormatAutoRespondRequestOptions\n ) {\n return this.areCredentialsEqual(offerAttachment, requestAttachment)\n }\n\n public async shouldAutoRespondToCredential(\n _agentContext: AgentContext,\n { requestAttachment, credentialAttachment }: DidCommCredentialFormatAutoRespondCredentialOptions\n ) {\n const credentialJson = credentialAttachment.getDataAsJson<JsonLdFormatDataVerifiableCredential>()\n const w3cCredential = JsonTransformer.fromJSON(credentialJson, W3cJsonLdVerifiableCredential)\n const request = requestAttachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n try {\n // This check is also done in the processCredential method, but we do it here as well\n // to be certain we don't skip the check\n this.verifyReceivedCredentialMatchesRequest(w3cCredential, request)\n\n return true\n } catch (_error) {\n return false\n }\n }\n\n /**\n * Returns an object of type {@link DidCommAttachment} for use in credential exchange messages.\n * It looks up the correct format identifier and encodes the data as a base64 attachment.\n *\n * @param data The data to include in the attach object\n * @param id the attach id from the formats component of the message\n */\n private getFormatData(data: unknown, id: string): DidCommAttachment {\n const attachment = new DidCommAttachment({\n id,\n mimeType: 'application/json',\n data: new DidCommAttachmentData({\n base64: JsonEncoder.toBase64(data),\n }),\n })\n\n return attachment\n }\n}\n"],"mappings":";;;;;;AA6CA,MAAM,mBAAmB;AACzB,MAAM,YAAY;AAElB,IAAa,uCAAb,MAEA;;OACkB,YAAY;OACZ,uBAAuB;OAsVhC,uBAAuB,UAA6B,aAAyC;GAClG,MAAM,OAAO,SAAS,eAAe;GACrC,MAAM,OAAO,SAAS,eAAe;AAErC,UAAO,MAAM,gBAAgB,MAAM,KAAK;;;;;;;;;;CAjV1C,MAAa,eACX,eACA,EAAE,qBACoD;EACtD,MAAM,SAAS,IAAI,4BAA4B,EAC7C,QAAQ,kBACT,CAAC;EAEF,MAAM,eAAe,kBAAkB;AACvC,MAAI,CAAC,aACH,OAAM,IAAI,WAAW,2CAA2C;AAIlE,kBAAgB,SAAS,aAAa,YAAY,8BAA8B;AAIhF,SAAO;GAAE;GAAQ,YADE,KAAK,cAAc,cAAc,OAAO,aAAa;GAC3C;;;;;;CAO/B,MAAa,gBACX,eACA,EAAE,cACa;EACf,MAAM,mBAAmB,WAAW,eAAiD;AAErF,MAAI,CAAC,iBACH,OAAM,IAAI,WAAW,kDAAkD;AAIzE,kBAAgB,SAAS,kBAAkB,8BAA8B;;CAG3E,MAAa,eACX,eACA,EAAE,cAAc,sBACmC;EAEnD,MAAM,SAAS,IAAI,4BAA4B;GAC7C;GACA,QAAQ;GACT,CAAC;EAEF,MAAM,qBAAqB,mBAAmB,eAAiD;AAC/F,kBAAgB,SAAS,oBAAoB,8BAA8B;EAE3E,MAAM,YAAY;AAIlB,SAAO;GAAE;GAAQ,YAFE,KAAK,cAAc,WAAW,OAAO,aAAa;GAExC;;;;;;;;;CAU/B,MAAa,YACX,eACA,EAAE,mBAAmB,gBAC8B;EAEnD,MAAM,SAAS,IAAI,4BAA4B;GAC7C;GACA,QAAQ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eAAe,QAAyB;AAG7C,SAFyB,CAAC,kBAAkB,UAAU,CAE9B,SAAS,OAAO;;CAG1C,MAAa,uBAAsC;AACjD,QAAM,IAAI,MAAM,mBAAmB;;CAUrC,MAAa,4BACX,eACA,EAAE,iBAAiB,sBACnB;AACA,SAAO,KAAK,oBAAoB,oBAAoB,gBAAgB;;CAGtE,MAAa,yBACX,eACA,EAAE,iBAAiB,sBACnB;AACA,SAAO,KAAK,oBAAoB,oBAAoB,gBAAgB;;CAGtE,MAAa,2BACX,eACA,EAAE,iBAAiB,qBACnB;AACA,SAAO,KAAK,oBAAoB,iBAAiB,kBAAkB;;CAGrE,MAAa,8BACX,eACA,EAAE,mBAAmB,wBACrB;EACA,MAAM,iBAAiB,qBAAqB,eAAqD;EACjG,MAAM,gBAAgB,gBAAgB,SAAS,gBAAgB,8BAA8B;EAC7F,MAAM,UAAU,kBAAkB,eAAiD;AAEnF,MAAI;AAGF,QAAK,uCAAuC,eAAe,QAAQ;AAEnE,UAAO;WACA,QAAQ;AACf,UAAO;;;;;;;;;;CAWX,AAAQ,cAAc,MAAe,IAA+B;AASlE,SARmB,IAAI,kBAAkB;GACvC;GACA,UAAU;GACV,MAAM,IAAI,sBAAsB,EAC9B,QAAQ,YAAY,SAAS,KAAK,EACnC,CAAC;GACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"DidCommJsonLdCredentialFormatService.mjs","names":[],"sources":["../../../../../src/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\nimport {\n ClaimFormat,\n CredoError,\n DidResolverService,\n findVerificationMethodByKeyType,\n JsonEncoder,\n JsonTransformer,\n utils,\n W3cCredential,\n W3cCredentialService,\n W3cJsonLdCredentialService,\n W3cJsonLdVerifiableCredential,\n} from '@credo-ts/core'\nimport { DidCommAttachment, DidCommAttachmentData } from '../../../../decorators/attachment/DidCommAttachment'\nimport { DidCommCredentialFormatSpec } from '../../models/DidCommCredentialFormatSpec'\nimport type { DidCommCredentialFormatService } from '../DidCommCredentialFormatService'\nimport type {\n DidCommCredentialFormatAcceptOfferOptions,\n DidCommCredentialFormatAcceptProposalOptions,\n DidCommCredentialFormatAcceptRequestOptions,\n DidCommCredentialFormatAutoRespondCredentialOptions,\n DidCommCredentialFormatAutoRespondOfferOptions,\n DidCommCredentialFormatAutoRespondProposalOptions,\n DidCommCredentialFormatAutoRespondRequestOptions,\n DidCommCredentialFormatCreateOfferOptions,\n DidCommCredentialFormatCreateOfferReturn,\n DidCommCredentialFormatCreateProposalOptions,\n DidCommCredentialFormatCreateProposalReturn,\n DidCommCredentialFormatCreateRequestOptions,\n DidCommCredentialFormatCreateReturn,\n DidCommCredentialFormatProcessCredentialOptions,\n DidCommCredentialFormatProcessOptions,\n} from '../DidCommCredentialFormatServiceOptions'\nimport { DidCommJsonLdCredentialDetail } from './DidCommJsonLdCredentialDetail'\nimport type {\n DidCommJsonLdCredentialFormat,\n JsonCredential,\n JsonLdFormatDataCredentialDetail,\n JsonLdFormatDataVerifiableCredential,\n} from './DidCommJsonLdCredentialFormat'\n\nconst JSONLD_VC_DETAIL = 'aries/ld-proof-vc-detail@v1.0'\nconst JSONLD_VC = 'aries/ld-proof-vc@v1.0'\n\nexport class DidCommJsonLdCredentialFormatService\n implements DidCommCredentialFormatService<DidCommJsonLdCredentialFormat>\n{\n public readonly formatKey = 'jsonld' as const\n public readonly credentialRecordType = 'w3c' as const\n\n /**\n * Create a {@link AttachmentFormats} object dependent on the message type.\n *\n * @param options The object containing all the options for the proposed credential\n * @returns object containing associated attachment, formats and filtersAttach elements\n *\n */\n public async createProposal(\n _agentContext: AgentContext,\n { credentialFormats }: DidCommCredentialFormatCreateProposalOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateProposalReturn> {\n const format = new DidCommCredentialFormatSpec({\n format: JSONLD_VC_DETAIL,\n })\n\n const jsonLdFormat = credentialFormats.jsonld\n if (!jsonLdFormat) {\n throw new CredoError('Missing jsonld payload in createProposal')\n }\n\n // this does the validation\n JsonTransformer.fromJSON(jsonLdFormat.credential, DidCommJsonLdCredentialDetail)\n\n // jsonLdFormat is now of type JsonLdFormatDataCredentialDetail\n const attachment = this.getFormatData(jsonLdFormat, format.attachmentId)\n return { format, attachment }\n }\n\n /**\n * Method called on reception of a propose credential message\n * @param options the options needed to accept the proposal\n */\n public async processProposal(\n _agentContext: AgentContext,\n { attachment }: DidCommCredentialFormatProcessOptions\n ): Promise<void> {\n const credProposalJson = attachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n if (!credProposalJson) {\n throw new CredoError('Missing jsonld credential proposal data payload')\n }\n\n // validation is done in here\n JsonTransformer.fromJSON(credProposalJson, DidCommJsonLdCredentialDetail)\n }\n\n public async acceptProposal(\n _agentContext: AgentContext,\n { attachmentId, proposalAttachment }: DidCommCredentialFormatAcceptProposalOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateOfferReturn> {\n // if the offer has an attachment Id use that, otherwise the generated id of the formats object\n const format = new DidCommCredentialFormatSpec({\n attachmentId,\n format: JSONLD_VC_DETAIL,\n })\n\n const credentialProposal = proposalAttachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n JsonTransformer.fromJSON(credentialProposal, DidCommJsonLdCredentialDetail)\n\n const offerData = credentialProposal\n\n const attachment = this.getFormatData(offerData, format.attachmentId)\n\n return { format, attachment }\n }\n\n /**\n * Create a {@link AttachmentFormats} object dependent on the message type.\n *\n * @param options The object containing all the options for the credential offer\n * @returns object containing associated attachment, formats and offersAttach elements\n *\n */\n public async createOffer(\n _agentContext: AgentContext,\n { credentialFormats, attachmentId }: DidCommCredentialFormatCreateOfferOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateOfferReturn> {\n // if the offer has an attachment Id use that, otherwise the generated id of the formats object\n const format = new DidCommCredentialFormatSpec({\n attachmentId,\n format: JSONLD_VC_DETAIL,\n })\n\n const jsonLdFormat = credentialFormats?.jsonld\n if (!jsonLdFormat) {\n throw new CredoError('Missing jsonld payload in createOffer')\n }\n\n // validate\n JsonTransformer.fromJSON(jsonLdFormat.credential, DidCommJsonLdCredentialDetail)\n\n const attachment = this.getFormatData(jsonLdFormat, format.attachmentId)\n\n return { format, attachment }\n }\n\n public async processOffer(_agentContext: AgentContext, { attachment }: DidCommCredentialFormatProcessOptions) {\n const credentialOfferJson = attachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n if (!credentialOfferJson) {\n throw new CredoError('Missing jsonld credential offer data payload')\n }\n\n JsonTransformer.fromJSON(credentialOfferJson, DidCommJsonLdCredentialDetail)\n }\n\n public async acceptOffer(\n _agentContext: AgentContext,\n { attachmentId, offerAttachment }: DidCommCredentialFormatAcceptOfferOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateReturn> {\n const credentialOffer = offerAttachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n // validate\n JsonTransformer.fromJSON(credentialOffer, DidCommJsonLdCredentialDetail)\n\n const format = new DidCommCredentialFormatSpec({\n attachmentId,\n format: JSONLD_VC_DETAIL,\n })\n\n const attachment = this.getFormatData(credentialOffer, format.attachmentId)\n return { format, attachment }\n }\n\n /**\n * Create a credential attachment format for a credential request.\n *\n * @param options The object containing all the options for the credential request is derived\n * @returns object containing associated attachment, formats and requestAttach elements\n *\n */\n public async createRequest(\n _agentContext: AgentContext,\n { credentialFormats }: DidCommCredentialFormatCreateRequestOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateReturn> {\n const jsonLdFormat = credentialFormats?.jsonld\n\n const format = new DidCommCredentialFormatSpec({\n format: JSONLD_VC_DETAIL,\n })\n\n if (!jsonLdFormat) {\n throw new CredoError('Missing jsonld payload in createRequest')\n }\n\n // this does the validation\n JsonTransformer.fromJSON(jsonLdFormat.credential, DidCommJsonLdCredentialDetail)\n\n const attachment = this.getFormatData(jsonLdFormat, format.attachmentId)\n\n return { format, attachment }\n }\n\n public async processRequest(\n _agentContext: AgentContext,\n { attachment }: DidCommCredentialFormatProcessOptions\n ): Promise<void> {\n const requestJson = attachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n if (!requestJson) {\n throw new CredoError('Missing jsonld credential request data payload')\n }\n\n // validate\n JsonTransformer.fromJSON(requestJson, DidCommJsonLdCredentialDetail)\n }\n\n public async acceptRequest(\n agentContext: AgentContext,\n {\n credentialFormats,\n attachmentId,\n requestAttachment,\n }: DidCommCredentialFormatAcceptRequestOptions<DidCommJsonLdCredentialFormat>\n ): Promise<DidCommCredentialFormatCreateReturn> {\n const w3cJsonLdCredentialService = agentContext.dependencyManager.resolve(W3cJsonLdCredentialService)\n\n // sign credential here. credential to be signed is received as the request attachment\n // (attachment in the request message from holder to issuer)\n const credentialRequest = requestAttachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n const verificationMethod =\n credentialFormats?.jsonld?.verificationMethod ??\n (await this.deriveVerificationMethod(agentContext, credentialRequest.credential, credentialRequest))\n\n if (!verificationMethod) {\n throw new CredoError('Missing verification method in credential data')\n }\n const format = new DidCommCredentialFormatSpec({\n attachmentId,\n format: JSONLD_VC,\n })\n\n const options = credentialRequest.options\n\n // Get a list of fields found in the options that are not supported at the moment\n const unsupportedFields = ['challenge', 'domain', 'credentialStatus', 'created'] as const\n const foundFields = unsupportedFields.filter((field) => options[field] !== undefined)\n\n if (foundFields.length > 0) {\n throw new CredoError(`Some fields are not currently supported in credential options: ${foundFields.join(', ')}`)\n }\n\n const credential = JsonTransformer.fromJSON(credentialRequest.credential, W3cCredential)\n\n const verifiableCredential = await w3cJsonLdCredentialService.signCredential(agentContext, {\n format: ClaimFormat.LdpVc,\n credential,\n proofType: credentialRequest.options.proofType,\n verificationMethod: verificationMethod,\n })\n\n const attachment = this.getFormatData(JsonTransformer.toJSON(verifiableCredential), format.attachmentId)\n return { format, attachment }\n }\n\n /**\n * Derive a verification method using the issuer from the given verifiable credential\n * @param credentialAsJson the verifiable credential we want to sign\n * @return the verification method derived from this credential and its associated issuer did, keys etc.\n */\n private async deriveVerificationMethod(\n agentContext: AgentContext,\n credentialAsJson: JsonCredential,\n credentialRequest: JsonLdFormatDataCredentialDetail\n ): Promise<string> {\n const didResolver = agentContext.dependencyManager.resolve(DidResolverService)\n const w3cJsonLdCredentialService = agentContext.dependencyManager.resolve(W3cJsonLdCredentialService)\n\n const credential = JsonTransformer.fromJSON(credentialAsJson, W3cCredential)\n\n // extract issuer from vc (can be string or Issuer)\n let issuerDid = credential.issuer\n\n if (typeof issuerDid !== 'string') {\n issuerDid = issuerDid.id\n }\n // this will throw an error if the issuer did is invalid\n const issuerDidDocument = await didResolver.resolveDidDocument(agentContext, issuerDid)\n\n // find first key which matches proof type\n const proofType = credentialRequest.options.proofType\n\n // actually gets the key type(s)\n const keyType = w3cJsonLdCredentialService.getVerificationMethodTypesByProofType(proofType)\n\n if (!keyType || keyType.length === 0) {\n throw new CredoError(`No Key Type found for proofType ${proofType}`)\n }\n\n const verificationMethod = await findVerificationMethodByKeyType(keyType[0], issuerDidDocument)\n if (!verificationMethod) {\n throw new CredoError(`Missing verification method for key type ${keyType}`)\n }\n\n return verificationMethod.id\n }\n /**\n * Processes an incoming credential - retrieve metadata, retrieve payload and store it in the Indy wallet\n * @param options the issue credential message wrapped inside this object\n * @param credentialExchangeRecord the credential exchange record for this credential\n */\n public async processCredential(\n agentContext: AgentContext,\n { credentialExchangeRecord, attachment, requestAttachment }: DidCommCredentialFormatProcessCredentialOptions\n ): Promise<void> {\n const w3cCredentialService = agentContext.dependencyManager.resolve(W3cCredentialService)\n\n const credentialAsJson = attachment.getDataAsJson()\n const credential = JsonTransformer.fromJSON(credentialAsJson, W3cJsonLdVerifiableCredential)\n const requestAsJson = requestAttachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n // Verify the credential request matches the credential\n this.verifyReceivedCredentialMatchesRequest(credential, requestAsJson)\n\n // verify signatures of the credential\n const result = await w3cCredentialService.verifyCredential(agentContext, { credential })\n if (result && !result.isValid) {\n throw new CredoError(`Failed to validate credential, error = ${result.error}`)\n }\n\n const verifiableCredential = await w3cCredentialService.storeCredential(agentContext, {\n credential,\n })\n\n credentialExchangeRecord.credentials.push({\n credentialRecordType: this.credentialRecordType,\n credentialRecordId: verifiableCredential.id,\n })\n }\n\n private verifyReceivedCredentialMatchesRequest(\n credential: W3cJsonLdVerifiableCredential,\n request: JsonLdFormatDataCredentialDetail\n ): void {\n const jsonCredential = JsonTransformer.toJSON(credential)\n jsonCredential.proof = undefined\n\n if (Array.isArray(credential.proof)) {\n throw new CredoError('Credential proof arrays are not supported')\n }\n\n if (request.options.created && credential.proof.created !== request.options.created) {\n throw new CredoError('Received credential proof created does not match created from credential request')\n }\n\n if (credential.proof.domain !== request.options.domain) {\n throw new CredoError('Received credential proof domain does not match domain from credential request')\n }\n\n if (credential.proof.challenge !== request.options.challenge) {\n throw new CredoError('Received credential proof challenge does not match challenge from credential request')\n }\n\n if (credential.proof.type !== request.options.proofType) {\n throw new CredoError('Received credential proof type does not match proof type from credential request')\n }\n\n if (credential.proof.proofPurpose !== request.options.proofPurpose) {\n throw new CredoError('Received credential proof purpose does not match proof purpose from credential request')\n }\n\n // Check whether the received credential (minus the proof) matches the credential request\n if (!utils.areObjectsEqual(jsonCredential, request.credential)) {\n throw new CredoError('Received credential does not match credential request')\n }\n\n // TODO: add check for the credentialStatus once this is supported in Credo\n }\n\n public supportsFormat(format: string): boolean {\n const supportedFormats = [JSONLD_VC_DETAIL, JSONLD_VC]\n\n return supportedFormats.includes(format)\n }\n\n public async deleteCredentialById(): Promise<void> {\n throw new Error('Not implemented.')\n }\n\n public areCredentialsEqual = (message1: DidCommAttachment, message2: DidCommAttachment): boolean => {\n const obj1 = message1.getDataAsJson()\n const obj2 = message2.getDataAsJson()\n\n return utils.areObjectsEqual(obj1, obj2)\n }\n\n public async shouldAutoRespondToProposal(\n _agentContext: AgentContext,\n { offerAttachment, proposalAttachment }: DidCommCredentialFormatAutoRespondProposalOptions\n ) {\n return this.areCredentialsEqual(proposalAttachment, offerAttachment)\n }\n\n public async shouldAutoRespondToOffer(\n _agentContext: AgentContext,\n { offerAttachment, proposalAttachment }: DidCommCredentialFormatAutoRespondOfferOptions\n ) {\n return this.areCredentialsEqual(proposalAttachment, offerAttachment)\n }\n\n public async shouldAutoRespondToRequest(\n _agentContext: AgentContext,\n { offerAttachment, requestAttachment }: DidCommCredentialFormatAutoRespondRequestOptions\n ) {\n return this.areCredentialsEqual(offerAttachment, requestAttachment)\n }\n\n public async shouldAutoRespondToCredential(\n _agentContext: AgentContext,\n { requestAttachment, credentialAttachment }: DidCommCredentialFormatAutoRespondCredentialOptions\n ) {\n const credentialJson = credentialAttachment.getDataAsJson<JsonLdFormatDataVerifiableCredential>()\n const w3cCredential = JsonTransformer.fromJSON(credentialJson, W3cJsonLdVerifiableCredential)\n const request = requestAttachment.getDataAsJson<JsonLdFormatDataCredentialDetail>()\n\n try {\n // This check is also done in the processCredential method, but we do it here as well\n // to be certain we don't skip the check\n this.verifyReceivedCredentialMatchesRequest(w3cCredential, request)\n\n return true\n } catch (_error) {\n return false\n }\n }\n\n /**\n * Returns an object of type {@link DidCommAttachment} for use in credential exchange messages.\n * It looks up the correct format identifier and encodes the data as a base64 attachment.\n *\n * @param data The data to include in the attach object\n * @param id the attach id from the formats component of the message\n */\n private getFormatData(data: unknown, id: string): DidCommAttachment {\n const attachment = new DidCommAttachment({\n id,\n mimeType: 'application/json',\n data: new DidCommAttachmentData({\n base64: JsonEncoder.toBase64(data),\n }),\n })\n\n return attachment\n }\n}\n"],"mappings":";;;;;;AA0CA,MAAM,mBAAmB;AACzB,MAAM,YAAY;AAElB,IAAa,uCAAb,MAEA;;OACkB,YAAY;OACZ,uBAAuB;OAsVhC,uBAAuB,UAA6B,aAAyC;GAClG,MAAM,OAAO,SAAS,eAAe;GACrC,MAAM,OAAO,SAAS,eAAe;AAErC,UAAO,MAAM,gBAAgB,MAAM,KAAK;;;;;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8BACX,eACA,EAAE,mBAAmB,wBACrB;EACA,MAAM,iBAAiB,qBAAqB,eAAqD;EACjG,MAAM,gBAAgB,gBAAgB,SAAS,gBAAgB,8BAA8B;EAC7F,MAAM,UAAU,kBAAkB,eAAiD;AAEnF,MAAI;AAGF,QAAK,uCAAuC,eAAe,QAAQ;AAEnE,UAAO;WACA,QAAQ;AACf,UAAO;;;;;;;;;;CAWX,AAAQ,cAAc,MAAe,IAA+B;AASlE,SARmB,IAAI,kBAAkB;GACvC;GACA,UAAU;GACV,MAAM,IAAI,sBAAsB,EAC9B,QAAQ,YAAY,SAAS,KAAK,EACnC,CAAC;GACH,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_DidCommCredentialEvents = require('./DidCommCredentialEvents.js');
|
|
2
|
-
const require_DidCommRevocationNotification = require('./models/DidCommRevocationNotification.js');
|
|
3
|
-
const require_DidCommCredentialPreviewAttribute = require('./models/DidCommCredentialPreviewAttribute.js');
|
|
4
2
|
const require_DidCommCredentialAutoAcceptType = require('./models/DidCommCredentialAutoAcceptType.js');
|
|
5
3
|
const require_DidCommCredentialFormatSpec = require('./models/DidCommCredentialFormatSpec.js');
|
|
6
|
-
const
|
|
4
|
+
const require_DidCommCredentialPreviewAttribute = require('./models/DidCommCredentialPreviewAttribute.js');
|
|
7
5
|
const require_DidCommCredentialProblemReportReason = require('./models/DidCommCredentialProblemReportReason.js');
|
|
8
6
|
const require_DidCommCredentialRole = require('./models/DidCommCredentialRole.js');
|
|
7
|
+
const require_DidCommCredentialState = require('./models/DidCommCredentialState.js');
|
|
8
|
+
const require_DidCommRevocationNotification = require('./models/DidCommRevocationNotification.js');
|
|
9
9
|
require('./models/index.js');
|
|
10
10
|
const require_DidCommCredentialsModuleConfig = require('./DidCommCredentialsModuleConfig.js');
|
|
11
11
|
const require_DidCommCredentialExchangeRecord = require('./repository/DidCommCredentialExchangeRecord.js');
|
|
@@ -16,19 +16,19 @@ const require_DidCommCredentialsApi = require('./DidCommCredentialsApi.js');
|
|
|
16
16
|
const require_DidCommRevocationNotificationV1Message = require('./protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.js');
|
|
17
17
|
const require_DidCommBaseCredentialProtocol = require('./protocol/DidCommBaseCredentialProtocol.js');
|
|
18
18
|
const require_DidCommCredentialV2AckMessage = require('./protocol/v2/messages/DidCommCredentialV2AckMessage.js');
|
|
19
|
+
const require_DidCommCredentialV2Preview = require('./protocol/v2/messages/DidCommCredentialV2Preview.js');
|
|
19
20
|
const require_DidCommCredentialV2ProblemReportMessage = require('./protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.js');
|
|
20
21
|
const require_DidCommIssueCredentialV2Message = require('./protocol/v2/messages/DidCommIssueCredentialV2Message.js');
|
|
21
|
-
const require_DidCommCredentialV2Preview = require('./protocol/v2/messages/DidCommCredentialV2Preview.js');
|
|
22
22
|
const require_DidCommOfferCredentialV2Message = require('./protocol/v2/messages/DidCommOfferCredentialV2Message.js');
|
|
23
23
|
const require_DidCommProposeCredentialV2Message = require('./protocol/v2/messages/DidCommProposeCredentialV2Message.js');
|
|
24
24
|
const require_DidCommRequestCredentialV2Message = require('./protocol/v2/messages/DidCommRequestCredentialV2Message.js');
|
|
25
25
|
const require_DidCommCredentialV2Protocol = require('./protocol/v2/DidCommCredentialV2Protocol.js');
|
|
26
26
|
const require_DidCommCredentialV2ProblemReportError = require('./protocol/v2/errors/DidCommCredentialV2ProblemReportError.js');
|
|
27
27
|
const require_DidCommCredentialsModule = require('./DidCommCredentialsModule.js');
|
|
28
|
+
const require_dataIntegrityExchange = require('./formats/dataIntegrity/dataIntegrityExchange.js');
|
|
28
29
|
const require_DidCommJsonLdCredentialDetailOptions = require('./formats/jsonld/DidCommJsonLdCredentialDetailOptions.js');
|
|
29
30
|
const require_DidCommJsonLdCredentialDetail = require('./formats/jsonld/DidCommJsonLdCredentialDetail.js');
|
|
30
31
|
const require_DidCommJsonLdCredentialFormatService = require('./formats/jsonld/DidCommJsonLdCredentialFormatService.js');
|
|
31
|
-
const require_dataIntegrityExchange = require('./formats/dataIntegrity/dataIntegrityExchange.js');
|
|
32
32
|
require('./formats/index.js');
|
|
33
33
|
const require_DidCommCredentialProtocolOptions = require('./protocol/DidCommCredentialProtocolOptions.js');
|
|
34
34
|
require('./protocol/index.js');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DidCommCredentialEventTypes } from "./DidCommCredentialEvents.mjs";
|
|
2
|
-
import { DidCommRevocationNotification } from "./models/DidCommRevocationNotification.mjs";
|
|
3
|
-
import { DidCommCredentialPreviewAttribute } from "./models/DidCommCredentialPreviewAttribute.mjs";
|
|
4
2
|
import { DidCommAutoAcceptCredential } from "./models/DidCommCredentialAutoAcceptType.mjs";
|
|
5
3
|
import { DidCommCredentialFormatSpec } from "./models/DidCommCredentialFormatSpec.mjs";
|
|
6
|
-
import {
|
|
4
|
+
import { DidCommCredentialPreviewAttribute } from "./models/DidCommCredentialPreviewAttribute.mjs";
|
|
7
5
|
import { DidCommCredentialProblemReportReason } from "./models/DidCommCredentialProblemReportReason.mjs";
|
|
8
6
|
import { DidCommCredentialRole } from "./models/DidCommCredentialRole.mjs";
|
|
7
|
+
import { DidCommCredentialState } from "./models/DidCommCredentialState.mjs";
|
|
8
|
+
import { DidCommRevocationNotification } from "./models/DidCommRevocationNotification.mjs";
|
|
9
9
|
import "./models/index.mjs";
|
|
10
10
|
import { DidCommCredentialsModuleConfig } from "./DidCommCredentialsModuleConfig.mjs";
|
|
11
11
|
import { DidCommCredentialExchangeRecord } from "./repository/DidCommCredentialExchangeRecord.mjs";
|
|
@@ -16,19 +16,19 @@ import { DidCommCredentialsApi } from "./DidCommCredentialsApi.mjs";
|
|
|
16
16
|
import { DidCommRevocationNotificationV1Message } from "./protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.mjs";
|
|
17
17
|
import { DidCommBaseCredentialProtocol } from "./protocol/DidCommBaseCredentialProtocol.mjs";
|
|
18
18
|
import { DidCommCredentialV2AckMessage } from "./protocol/v2/messages/DidCommCredentialV2AckMessage.mjs";
|
|
19
|
+
import { DidCommCredentialV2Preview } from "./protocol/v2/messages/DidCommCredentialV2Preview.mjs";
|
|
19
20
|
import { DidCommCredentialV2ProblemReportMessage } from "./protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.mjs";
|
|
20
21
|
import { DidCommIssueCredentialV2Message } from "./protocol/v2/messages/DidCommIssueCredentialV2Message.mjs";
|
|
21
|
-
import { DidCommCredentialV2Preview } from "./protocol/v2/messages/DidCommCredentialV2Preview.mjs";
|
|
22
22
|
import { DidCommOfferCredentialV2Message } from "./protocol/v2/messages/DidCommOfferCredentialV2Message.mjs";
|
|
23
23
|
import { DidCommProposeCredentialV2Message } from "./protocol/v2/messages/DidCommProposeCredentialV2Message.mjs";
|
|
24
24
|
import { DidCommRequestCredentialV2Message } from "./protocol/v2/messages/DidCommRequestCredentialV2Message.mjs";
|
|
25
25
|
import { DidCommCredentialV2Protocol } from "./protocol/v2/DidCommCredentialV2Protocol.mjs";
|
|
26
26
|
import { DidCommCredentialV2ProblemReportError } from "./protocol/v2/errors/DidCommCredentialV2ProblemReportError.mjs";
|
|
27
27
|
import { DidCommCredentialsModule } from "./DidCommCredentialsModule.mjs";
|
|
28
|
+
import { AnonCredsLinkSecretBindingMethod, DataIntegrityBindingMethods, DataIntegrityCredentialOffer, DidCommSignedAttachmentBindingMethod } from "./formats/dataIntegrity/dataIntegrityExchange.mjs";
|
|
28
29
|
import { DidCommJsonLdCredentialDetailCredentialStatus, DidCommJsonLdCredentialDetailOptions } from "./formats/jsonld/DidCommJsonLdCredentialDetailOptions.mjs";
|
|
29
30
|
import { DidCommJsonLdCredentialDetail } from "./formats/jsonld/DidCommJsonLdCredentialDetail.mjs";
|
|
30
31
|
import { DidCommJsonLdCredentialFormatService } from "./formats/jsonld/DidCommJsonLdCredentialFormatService.mjs";
|
|
31
|
-
import { AnonCredsLinkSecretBindingMethod, DataIntegrityBindingMethods, DataIntegrityCredentialOffer, DidCommSignedAttachmentBindingMethod } from "./formats/dataIntegrity/dataIntegrityExchange.mjs";
|
|
32
32
|
import "./formats/index.mjs";
|
|
33
33
|
import { DidCommCredentialProtocolOptions_exports } from "./protocol/DidCommCredentialProtocolOptions.mjs";
|
|
34
34
|
import "./protocol/index.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
let __credo_ts_core = require("@credo-ts/core");
|
|
5
5
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
6
|
-
let class_transformer = require("class-transformer");
|
|
7
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
8
6
|
let class_validator = require("class-validator");
|
|
9
7
|
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
8
|
+
let class_transformer = require("class-transformer");
|
|
9
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
10
10
|
|
|
11
11
|
//#region src/modules/credentials/models/DidCommCredentialFormatSpec.ts
|
|
12
12
|
var DidCommCredentialFormatSpec = class {
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { utils } from "@credo-ts/core";
|
|
4
|
-
import { Expose } from "class-transformer";
|
|
5
4
|
import { IsString } from "class-validator";
|
|
5
|
+
import { Expose } from "class-transformer";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/credentials/models/DidCommCredentialFormatSpec.ts
|
|
8
8
|
var DidCommCredentialFormatSpec = class {
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
let __credo_ts_core = require("@credo-ts/core");
|
|
5
5
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
6
|
-
let class_transformer = require("class-transformer");
|
|
7
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
8
6
|
let class_validator = require("class-validator");
|
|
9
7
|
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
8
|
+
let class_transformer = require("class-transformer");
|
|
9
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
10
10
|
|
|
11
11
|
//#region src/modules/credentials/models/DidCommCredentialPreviewAttribute.ts
|
|
12
12
|
var DidCommCredentialPreviewAttribute = class {
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { JsonTransformer } from "@credo-ts/core";
|
|
4
|
-
import { Expose } from "class-transformer";
|
|
5
4
|
import { IsMimeType, IsOptional, IsString } from "class-validator";
|
|
5
|
+
import { Expose } from "class-transformer";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/credentials/models/DidCommCredentialPreviewAttribute.ts
|
|
8
8
|
var DidCommCredentialPreviewAttribute = class {
|
|
@@ -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
|
let __credo_ts_core = require("@credo-ts/core");
|
|
5
5
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
6
6
|
|
|
@@ -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 { DateTransformer } from "@credo-ts/core";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/credentials/models/DidCommRevocationNotification.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_DidCommRevocationNotification = require('./DidCommRevocationNotification.js');
|
|
2
|
-
const require_DidCommCredentialPreviewAttribute = require('./DidCommCredentialPreviewAttribute.js');
|
|
3
1
|
const require_DidCommCredentialAutoAcceptType = require('./DidCommCredentialAutoAcceptType.js');
|
|
4
2
|
const require_DidCommCredentialFormatSpec = require('./DidCommCredentialFormatSpec.js');
|
|
5
|
-
const
|
|
3
|
+
const require_DidCommCredentialPreviewAttribute = require('./DidCommCredentialPreviewAttribute.js');
|
|
6
4
|
const require_DidCommCredentialProblemReportReason = require('./DidCommCredentialProblemReportReason.js');
|
|
7
5
|
const require_DidCommCredentialRole = require('./DidCommCredentialRole.js');
|
|
6
|
+
const require_DidCommCredentialState = require('./DidCommCredentialState.js');
|
|
7
|
+
const require_DidCommRevocationNotification = require('./DidCommRevocationNotification.js');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DidCommRevocationNotification } from "./DidCommRevocationNotification.mjs";
|
|
2
|
-
import { DidCommCredentialPreviewAttribute } from "./DidCommCredentialPreviewAttribute.mjs";
|
|
3
1
|
import { DidCommAutoAcceptCredential } from "./DidCommCredentialAutoAcceptType.mjs";
|
|
4
2
|
import { DidCommCredentialFormatSpec } from "./DidCommCredentialFormatSpec.mjs";
|
|
5
|
-
import {
|
|
3
|
+
import { DidCommCredentialPreviewAttribute } from "./DidCommCredentialPreviewAttribute.mjs";
|
|
6
4
|
import { DidCommCredentialProblemReportReason } from "./DidCommCredentialProblemReportReason.mjs";
|
|
7
5
|
import { DidCommCredentialRole } from "./DidCommCredentialRole.mjs";
|
|
6
|
+
import { DidCommCredentialState } from "./DidCommCredentialState.mjs";
|
|
7
|
+
import { DidCommRevocationNotification } from "./DidCommRevocationNotification.mjs";
|
|
@@ -5,11 +5,11 @@ import { DidCommCredentialRole } from "../models/DidCommCredentialRole.mjs";
|
|
|
5
5
|
import { DidCommCredentialExchangeRecord } from "../repository/DidCommCredentialExchangeRecord.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, DeleteCredentialOptions, GetCredentialFormatDataReturn, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions } from "./DidCommCredentialProtocolOptions.mjs";
|
|
11
10
|
import { DidCommCredentialProtocol } from "./DidCommCredentialProtocol.mjs";
|
|
12
11
|
import { DidCommInboundMessageContext } from "../../../models/DidCommInboundMessageContext.mjs";
|
|
12
|
+
import { DidCommFeatureRegistry } from "../../../DidCommFeatureRegistry.mjs";
|
|
13
13
|
import { AgentContext, Query, QueryOptions } from "@credo-ts/core";
|
|
14
14
|
|
|
15
15
|
//#region src/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommBaseCredentialProtocol.d.mts","names":[],"sources":["../../../../src/modules/credentials/protocol/DidCommBaseCredentialProtocol.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommBaseCredentialProtocol.d.mts","names":[],"sources":["../../../../src/modules/credentials/protocol/DidCommBaseCredentialProtocol.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;AAqCA;AAAmD,uBAA7B,6BAA6B,CAAA,YACrC,8BADqC,EAAA,GACF,8BADE,EAAA,CAAA,YAEtC,yBAFsC,CAEZ,GAFY,CAAA,CAAA;oBACrC,OAAA,EAAA,MAAA;qBAAmC,6BAAA,CAAA,oBAAA,EAAA,MAAA,CAAA,EAKiC,GALjC,CAAA,MAAA,CAAA;WACV,cAAA,CAAA,YAAA,EAQrB,YARqB,EAAA,OAAA,EAS1B,+BAT0B,CASM,GATN,CAAA,CAAA,EAUlC,OAVkC,CAU1B,+BAV0B,CAUM,cAVN,CAAA,CAAA;WAI2C,eAAA,CAAA,cAAA,EAQ9D,4BAR8D,CAQjC,cARiC,CAAA,CAA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AA;MAmNA,OA/Ma,CA+ML,+BA/MK,CAAA;;;;;;;;;;kBAWb,CAAA,YAAA,EAyNa,YAzNb,EAAA,UAAA,EAAA;IAEa,QAAA,EAAA,MAAA;IAEL,IAAA,CAAA,EAwNA,qBAxNA;IAAR,YAAA,CAAA,EAAA,MAAA;MA2NA,OAzNa,CAyNL,+BAzNK,GAAA,IAAA,CAAA;QAEL,CAAA,YAAA,EAkOuB,YAlOvB,EAAA,wBAAA,EAkO+D,+BAlO/D,CAAA,EAkO8F,OAlO9F,CAAA,IAAA,CAAA"}
|
|
@@ -5,11 +5,11 @@ import { DidCommCredentialRole } from "../models/DidCommCredentialRole.js";
|
|
|
5
5
|
import { DidCommCredentialExchangeRecord } from "../repository/DidCommCredentialExchangeRecord.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, DeleteCredentialOptions, GetCredentialFormatDataReturn, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions } from "./DidCommCredentialProtocolOptions.js";
|
|
11
10
|
import { DidCommCredentialProtocol } from "./DidCommCredentialProtocol.js";
|
|
12
11
|
import { DidCommInboundMessageContext } from "../../../models/DidCommInboundMessageContext.js";
|
|
12
|
+
import { DidCommFeatureRegistry } from "../../../DidCommFeatureRegistry.js";
|
|
13
13
|
import { AgentContext, Query, QueryOptions } from "@credo-ts/core";
|
|
14
14
|
|
|
15
15
|
//#region src/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommBaseCredentialProtocol.d.ts","names":[],"sources":["../../../../src/modules/credentials/protocol/DidCommBaseCredentialProtocol.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommBaseCredentialProtocol.d.ts","names":[],"sources":["../../../../src/modules/credentials/protocol/DidCommBaseCredentialProtocol.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;AAqCA;AAAmD,uBAA7B,6BAA6B,CAAA,YACrC,8BADqC,EAAA,GACF,8BADE,EAAA,CAAA,YAEtC,yBAFsC,CAEZ,GAFY,CAAA,CAAA;oBACrC,OAAA,EAAA,MAAA;qBAAmC,6BAAA,CAAA,oBAAA,EAAA,MAAA,CAAA,EAKiC,GALjC,CAAA,MAAA,CAAA;WACV,cAAA,CAAA,YAAA,EAQrB,YARqB,EAAA,OAAA,EAS1B,+BAT0B,CASM,GATN,CAAA,CAAA,EAUlC,OAVkC,CAU1B,+BAV0B,CAUM,cAVN,CAAA,CAAA;WAI2C,eAAA,CAAA,cAAA,EAQ9D,4BAR8D,CAQjC,cARiC,CAAA,CAAA,EAS7E,OAT6E,CASrE,+BATqE,CAAA;WAIhE,cAAA,CAAA,YAAA,EAOA,YAPA,EAAA,OAAA,EAQL,+BARK,CAQ2B,GAR3B,CAAA,CAAA,EASb,OATa,CASL,+BATK,CAS2B,cAT3B,CAAA,CAAA;WAC2B,iBAAA,CAAA,YAAA,EAU3B,YAV2B,EAAA,OAAA,EAWhC,kCAXgC,CAWG,GAXH,CAAA,CAAA,EAYxC,OAZwC,CAYhC,+BAZgC,CAYA,cAZA,CAAA,CAAA;WAAhC,WAAA,CAAA,YAAA,EAgBK,YAhBL,EAAA,OAAA,EAiBA,4BAjBA,CAiB6B,GAjB7B,CAAA,CAAA,EAkBR,OAlBQ,CAkBA,+BAlBA,CAkBgC,c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aseCredentialProtocol.ts"],"sourcesContent":["import type { AgentContext, Query, QueryOptions } from '@credo-ts/core'\nimport type { DidCommFeatureRegistry } from '../../../DidCommFeatureRegistry'\nimport type { DidCommMessage } from '../../../DidCommMessage'\nimport type { DidCommMessageHandlerRegistry } from '../../../DidCommMessageHandlerRegistry'\nimport type { DidCommProblemReportMessage } from '../../../messages'\nimport type { DidCommInboundMessageContext } from '../../../models'\nimport type { DidCommCredentialStateChangedEvent } from '../DidCommCredentialEvents'\nimport type { DidCommCredentialFormatService, ExtractCredentialFormats } from '../formats'\nimport type { DidCommCredentialRole } from '../models'\nimport type { DidCommCredentialExchangeRecord } from '../repository'\nimport type { DidCommCredentialProtocol } from './DidCommCredentialProtocol'\nimport type {\n AcceptCredentialOfferOptions,\n AcceptCredentialOptions,\n AcceptCredentialProposalOptions,\n AcceptCredentialRequestOptions,\n CreateCredentialOfferOptions,\n CreateCredentialProblemReportOptions,\n CreateCredentialProposalOptions,\n CreateCredentialRequestOptions,\n CredentialProtocolMsgReturnType,\n DeleteCredentialOptions,\n GetCredentialFormatDataReturn,\n NegotiateCredentialOfferOptions,\n NegotiateCredentialProposalOptions,\n} from './DidCommCredentialProtocolOptions'\n\nimport { EventEmitter } from '@credo-ts/core'\n\nimport { DidCommMessageRepository } from '../../../repository'\nimport { DidCommConnectionService } from '../../connections'\nimport { DidCommCredentialEventTypes } from '../DidCommCredentialEvents'\nimport { DidCommCredentialState } from '../models/DidCommCredentialState'\nimport { DidCommCredentialExchangeRepository } from '../repository'\n\n/**\n * Base implementation of the DidCommCredentialProtocol that can be used as a foundation for implementing\n * the DidCommCredentialProtocol interface.\n */\nexport abstract class DidCommBaseCredentialProtocol<\n CFs extends DidCommCredentialFormatService[] = DidCommCredentialFormatService[],\n> implements DidCommCredentialProtocol<CFs>\n{\n public abstract readonly version: string\n\n protected abstract getFormatServiceForRecordType(credentialRecordType: string): CFs[number]\n\n // methods for proposal\n public abstract createProposal(\n agentContext: AgentContext,\n options: CreateCredentialProposalOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n public abstract processProposal(\n messageContext: DidCommInboundMessageContext<DidCommMessage>\n ): Promise<DidCommCredentialExchangeRecord>\n public abstract acceptProposal(\n agentContext: AgentContext,\n options: AcceptCredentialProposalOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n public abstract negotiateProposal(\n agentContext: AgentContext,\n options: NegotiateCredentialProposalOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n\n // methods for offer\n public abstract createOffer(\n agentContext: AgentContext,\n options: CreateCredentialOfferOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n public abstract processOffer(\n messageContext: DidCommInboundMessageContext<DidCommMessage>\n ): Promise<DidCommCredentialExchangeRecord>\n public abstract acceptOffer(\n agentContext: AgentContext,\n options: AcceptCredentialOfferOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n public abstract negotiateOffer(\n agentContext: AgentContext,\n options: NegotiateCredentialOfferOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n\n // methods for request\n public abstract createRequest(\n agentContext: AgentContext,\n options: CreateCredentialRequestOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n public abstract processRequest(\n messageContext: DidCommInboundMessageContext<DidCommMessage>\n ): Promise<DidCommCredentialExchangeRecord>\n public abstract acceptRequest(\n agentContext: AgentContext,\n options: AcceptCredentialRequestOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n\n // methods for issue\n public abstract processCredential(\n messageContext: DidCommInboundMessageContext<DidCommMessage>\n ): Promise<DidCommCredentialExchangeRecord>\n public abstract acceptCredential(\n agentContext: AgentContext,\n options: AcceptCredentialOptions\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n\n // methods for ack\n public abstract processAck(\n messageContext: DidCommInboundMessageContext<DidCommMessage>\n ): Promise<DidCommCredentialExchangeRecord>\n\n // methods for problem-report\n public abstract createProblemReport(\n agentContext: AgentContext,\n options: CreateCredentialProblemReportOptions\n ): Promise<CredentialProtocolMsgReturnType<DidCommProblemReportMessage>>\n\n public abstract findProposalMessage(\n agentContext: AgentContext,\n credentialExchangeId: string\n ): Promise<DidCommMessage | null>\n public abstract findOfferMessage(\n agentContext: AgentContext,\n credentialExchangeId: string\n ): Promise<DidCommMessage | null>\n public abstract findRequestMessage(\n agentContext: AgentContext,\n credentialExchangeId: string\n ): Promise<DidCommMessage | null>\n public abstract findCredentialMessage(\n agentContext: AgentContext,\n credentialExchangeId: string\n ): Promise<DidCommMessage | null>\n public abstract getFormatData(\n agentContext: AgentContext,\n credentialExchangeId: string\n ): Promise<GetCredentialFormatDataReturn<ExtractCredentialFormats<CFs>>>\n\n public abstract register(\n messageHandlerRegistry: DidCommMessageHandlerRegistry,\n featureRegistry: DidCommFeatureRegistry\n ): void\n\n /**\n * Process a received credential {@link DidCommProblemReportMessage}.\n *\n * @param messageContext The message context containing a credential problem report message\n * @returns credential record associated with the credential problem report message\n */\n public async processProblemReport(\n messageContext: DidCommInboundMessageContext<DidCommProblemReportMessage>\n ): Promise<DidCommCredentialExchangeRecord> {\n const { message: credentialProblemReportMessage, agentContext, connection } = messageContext\n\n const connectionService = agentContext.dependencyManager.resolve(DidCommConnectionService)\n\n agentContext.config.logger.debug(`Processing problem report with message id ${credentialProblemReportMessage.id}`)\n\n const credentialExchangeRecord = await this.getByProperties(agentContext, {\n threadId: credentialProblemReportMessage.threadId,\n })\n\n // Assert\n await connectionService.assertConnectionOrOutOfBandExchange(messageContext, {\n expectedConnectionId: credentialExchangeRecord.connectionId,\n })\n\n // This makes sure that the sender of the incoming message is authorized to do so.\n if (!credentialExchangeRecord?.connectionId) {\n await connectionService.matchIncomingMessageToRequestMessageInOutOfBandExchange(messageContext, {\n expectedConnectionId: credentialExchangeRecord?.connectionId,\n })\n\n credentialExchangeRecord.connectionId = connection?.id\n }\n\n // Update record\n credentialExchangeRecord.errorMessage = `${credentialProblemReportMessage.description.code}: ${credentialProblemReportMessage.description.en}`\n await this.updateState(agentContext, credentialExchangeRecord, DidCommCredentialState.Abandoned)\n return credentialExchangeRecord\n }\n\n /**\n * Update the record to a new state and emit an state changed event. Also updates the record\n * in storage.\n *\n * @param credentialExchangeRecord The credential record to update the state for\n * @param newState The state to update to\n *\n */\n public async updateState(\n agentContext: AgentContext,\n credentialExchangeRecord: DidCommCredentialExchangeRecord,\n newState: DidCommCredentialState\n ) {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n agentContext.config.logger.debug(\n `Updating credential record ${credentialExchangeRecord.id} to state ${newState} (previous=${credentialExchangeRecord.state})`\n )\n\n const previousState = credentialExchangeRecord.state\n credentialExchangeRecord.state = newState\n await credentialRepository.update(agentContext, credentialExchangeRecord)\n\n this.emitStateChangedEvent(agentContext, credentialExchangeRecord, previousState)\n }\n\n protected emitStateChangedEvent(\n agentContext: AgentContext,\n credentialExchangeRecord: DidCommCredentialExchangeRecord,\n previousState: DidCommCredentialState | null\n ) {\n const eventEmitter = agentContext.dependencyManager.resolve(EventEmitter)\n\n eventEmitter.emit<DidCommCredentialStateChangedEvent>(agentContext, {\n type: DidCommCredentialEventTypes.DidCommCredentialStateChanged,\n payload: {\n credentialExchangeRecord: credentialExchangeRecord.clone(),\n previousState: previousState,\n },\n })\n }\n\n /**\n * Retrieve a credential record by id\n *\n * @param credentialRecordId The credential record id\n * @throws {RecordNotFoundError} If no record is found\n * @return The credential record\n *\n */\n public getById(agentContext: AgentContext, credentialRecordId: string): Promise<DidCommCredentialExchangeRecord> {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.getById(agentContext, credentialRecordId)\n }\n\n /**\n * Retrieve all credential records\n *\n * @returns List containing all credential records\n */\n public getAll(agentContext: AgentContext): Promise<DidCommCredentialExchangeRecord[]> {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.getAll(agentContext)\n }\n\n public async findAllByQuery(\n agentContext: AgentContext,\n query: Query<DidCommCredentialExchangeRecord>,\n queryOptions?: QueryOptions\n ): Promise<DidCommCredentialExchangeRecord[]> {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.findByQuery(agentContext, query, queryOptions)\n }\n\n /**\n * Find a credential record by id\n *\n * @param credentialRecordId the credential record id\n * @returns The credential record or null if not found\n */\n public findById(\n agentContext: AgentContext,\n proofExchangeRecordId: string\n ): Promise<DidCommCredentialExchangeRecord | null> {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.findById(agentContext, proofExchangeRecordId)\n }\n\n public async delete(\n agentContext: AgentContext,\n credentialExchangeRecord: DidCommCredentialExchangeRecord,\n options?: DeleteCredentialOptions\n ): Promise<void> {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n await credentialRepository.delete(agentContext, credentialExchangeRecord)\n\n const deleteAssociatedCredentials = options?.deleteAssociatedCredentials ?? true\n const deleteAssociatedDidCommMessages = options?.deleteAssociatedDidCommMessages ?? true\n\n if (deleteAssociatedCredentials) {\n for (const credential of credentialExchangeRecord.credentials) {\n const formatService = this.getFormatServiceForRecordType(credential.credentialRecordType)\n await formatService.deleteCredentialById(agentContext, credential.credentialRecordId)\n }\n }\n\n if (deleteAssociatedDidCommMessages) {\n const didCommMessages = await didCommMessageRepository.findByQuery(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n })\n for (const didCommMessage of didCommMessages) {\n await didCommMessageRepository.delete(agentContext, didCommMessage)\n }\n }\n }\n\n /**\n * Retrieve a credential record by connection id and thread id\n *\n * @param properties Properties to query by\n *\n * @throws {RecordNotFoundError} If no record is found\n * @throws {RecordDuplicateError} If multiple records are found\n * @returns The credential record\n */\n public getByProperties(\n agentContext: AgentContext,\n properties: {\n threadId: string\n role?: DidCommCredentialRole\n connectionId?: string\n }\n ): Promise<DidCommCredentialExchangeRecord> {\n const { role, connectionId, threadId } = properties\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.getSingleByQuery(agentContext, {\n connectionId,\n threadId,\n role,\n })\n }\n\n /**\n * Find a credential record by connection id and thread id, returns null if not found\n *\n * @param threadId The thread id\n * @param role The role of the record, i.e. holder or issuer\n * @param connectionId The connection id\n *\n * @returns The credential record\n */\n public findByProperties(\n agentContext: AgentContext,\n properties: {\n threadId: string\n role?: DidCommCredentialRole\n connectionId?: string\n }\n ): Promise<DidCommCredentialExchangeRecord | null> {\n const { role, connectionId, threadId } = properties\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.findSingleByQuery(agentContext, {\n connectionId,\n threadId,\n role,\n })\n }\n\n public async update(agentContext: AgentContext, credentialExchangeRecord: DidCommCredentialExchangeRecord) {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return await credentialRepository.update(agentContext, credentialExchangeRecord)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAuCA,IAAsB,gCAAtB,MAGA;;;;;;;CAwGE,MAAa,qBACX,gBAC0C;EAC1C,MAAM,EAAE,SAAS,gCAAgC,cAAc,eAAe;EAE9E,MAAM,oBAAoB,aAAa,kBAAkB,QAAQ,yBAAyB;AAE1F,eAAa,OAAO,OAAO,MAAM,6CAA6C,+BAA+B,KAAK;EAElH,MAAM,2BAA2B,MAAM,KAAK,gBAAgB,cAAc,EACxE,UAAU,+BAA+B,UAC1C,CAAC;AAGF,QAAM,kBAAkB,oCAAoC,gBAAgB,EAC1E,sBAAsB,yBAAyB,cAChD,CAAC;AAGF,MAAI,CAAC,0BAA0B,cAAc;AAC3C,SAAM,kBAAkB,wDAAwD,gBAAgB,EAC9F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A2B,aAAa,kBAAkB,QAAQ,yBAAyB;AAEjG,QAAM,qBAAqB,OAAO,cAAc,yBAAyB;EAEzE,MAAM,8BAA8B,SAAS,+BAA+B;EAC5E,MAAM,kCAAkC,SAAS,mCAAmC;AAEpF,MAAI,4BACF,MAAK,MAAM,cAAc,yBAAyB,YAEhD,OADsB,KAAK,8BAA8B,WAAW,qBAAqB,CACrE,qBAAqB,cAAc,WAAW,mBAAmB;AAIzF,MAAI,iCAAiC;GACnC,MAAM,kBAAkB,MAAM,yBAAyB,YAAY,cAAc,EAC/E,oBAAoB,yBAAyB,IAC9C,CAAC;AACF,QAAK,MAAM,kBAAkB,gBAC3B,OAAM,yBAAyB,OAAO,cAAc,eAAe;;;;;;;;;;;;CAczE,AAAO,gBACL,cACA,YAK0C;EAC1C,MAAM,EAAE,MAAM,cAAc,aAAa;AAGzC,SAF6B,aAAa,kBAAkB,QAAQ,oCAAoC,CAE5E,iBAAiB,cAAc;GACzD;GACA;GACA;GACD,CAAC;;;;;;;;;;;CAYJ,AAAO,iBACL,cACA,YAKiD;EACjD,MAAM,EAAE,MAAM,cAAc,aAAa;AAGzC,SAF6B,aAAa,kBAAkB,QAAQ,oCAAoC,CAE5E,kBAAkB,cAAc;GAC1D;GACA;GACA;GACD,CAAC;;CAGJ,MAAa,OAAO,cAA4B,0BAA2D;AAGzG,SAAO,MAFsB,aAAa,kBAAkB,QAAQ,oCAAoC,CAEtE,OAAO,cAAc,yBAAyB"}
|
|
1
|
+
{"version":3,"file":"DidCommBaseCredentialProtocol.mjs","names":[],"sources":["../../../../src/modules/credentials/protocol/DidCommBaseCredentialProtocol.ts"],"sourcesContent":["import type { AgentContext, Query, QueryOptions } from '@credo-ts/core'\nimport { EventEmitter } from '@credo-ts/core'\nimport type { DidCommFeatureRegistry } from '../../../DidCommFeatureRegistry'\nimport type { DidCommMessage } from '../../../DidCommMessage'\nimport type { DidCommMessageHandlerRegistry } from '../../../DidCommMessageHandlerRegistry'\nimport type { DidCommProblemReportMessage } from '../../../messages'\nimport type { DidCommInboundMessageContext } from '../../../models'\nimport { DidCommMessageRepository } from '../../../repository'\nimport { DidCommConnectionService } from '../../connections'\nimport type { DidCommCredentialStateChangedEvent } from '../DidCommCredentialEvents'\nimport { DidCommCredentialEventTypes } from '../DidCommCredentialEvents'\nimport type { DidCommCredentialFormatService, ExtractCredentialFormats } from '../formats'\nimport type { DidCommCredentialRole } from '../models'\nimport { DidCommCredentialState } from '../models/DidCommCredentialState'\nimport type { DidCommCredentialExchangeRecord } from '../repository'\nimport { DidCommCredentialExchangeRepository } from '../repository'\nimport type { DidCommCredentialProtocol } from './DidCommCredentialProtocol'\nimport type {\n AcceptCredentialOfferOptions,\n AcceptCredentialOptions,\n AcceptCredentialProposalOptions,\n AcceptCredentialRequestOptions,\n CreateCredentialOfferOptions,\n CreateCredentialProblemReportOptions,\n CreateCredentialProposalOptions,\n CreateCredentialRequestOptions,\n CredentialProtocolMsgReturnType,\n DeleteCredentialOptions,\n GetCredentialFormatDataReturn,\n NegotiateCredentialOfferOptions,\n NegotiateCredentialProposalOptions,\n} from './DidCommCredentialProtocolOptions'\n\n/**\n * Base implementation of the DidCommCredentialProtocol that can be used as a foundation for implementing\n * the DidCommCredentialProtocol interface.\n */\nexport abstract class DidCommBaseCredentialProtocol<\n CFs extends DidCommCredentialFormatService[] = DidCommCredentialFormatService[],\n> implements DidCommCredentialProtocol<CFs>\n{\n public abstract readonly version: string\n\n protected abstract getFormatServiceForRecordType(credentialRecordType: string): CFs[number]\n\n // methods for proposal\n public abstract createProposal(\n agentContext: AgentContext,\n options: CreateCredentialProposalOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n public abstract processProposal(\n messageContext: DidCommInboundMessageContext<DidCommMessage>\n ): Promise<DidCommCredentialExchangeRecord>\n public abstract acceptProposal(\n agentContext: AgentContext,\n options: AcceptCredentialProposalOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n public abstract negotiateProposal(\n agentContext: AgentContext,\n options: NegotiateCredentialProposalOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n\n // methods for offer\n public abstract createOffer(\n agentContext: AgentContext,\n options: CreateCredentialOfferOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n public abstract processOffer(\n messageContext: DidCommInboundMessageContext<DidCommMessage>\n ): Promise<DidCommCredentialExchangeRecord>\n public abstract acceptOffer(\n agentContext: AgentContext,\n options: AcceptCredentialOfferOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n public abstract negotiateOffer(\n agentContext: AgentContext,\n options: NegotiateCredentialOfferOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n\n // methods for request\n public abstract createRequest(\n agentContext: AgentContext,\n options: CreateCredentialRequestOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n public abstract processRequest(\n messageContext: DidCommInboundMessageContext<DidCommMessage>\n ): Promise<DidCommCredentialExchangeRecord>\n public abstract acceptRequest(\n agentContext: AgentContext,\n options: AcceptCredentialRequestOptions<CFs>\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n\n // methods for issue\n public abstract processCredential(\n messageContext: DidCommInboundMessageContext<DidCommMessage>\n ): Promise<DidCommCredentialExchangeRecord>\n public abstract acceptCredential(\n agentContext: AgentContext,\n options: AcceptCredentialOptions\n ): Promise<CredentialProtocolMsgReturnType<DidCommMessage>>\n\n // methods for ack\n public abstract processAck(\n messageContext: DidCommInboundMessageContext<DidCommMessage>\n ): Promise<DidCommCredentialExchangeRecord>\n\n // methods for problem-report\n public abstract createProblemReport(\n agentContext: AgentContext,\n options: CreateCredentialProblemReportOptions\n ): Promise<CredentialProtocolMsgReturnType<DidCommProblemReportMessage>>\n\n public abstract findProposalMessage(\n agentContext: AgentContext,\n credentialExchangeId: string\n ): Promise<DidCommMessage | null>\n public abstract findOfferMessage(\n agentContext: AgentContext,\n credentialExchangeId: string\n ): Promise<DidCommMessage | null>\n public abstract findRequestMessage(\n agentContext: AgentContext,\n credentialExchangeId: string\n ): Promise<DidCommMessage | null>\n public abstract findCredentialMessage(\n agentContext: AgentContext,\n credentialExchangeId: string\n ): Promise<DidCommMessage | null>\n public abstract getFormatData(\n agentContext: AgentContext,\n credentialExchangeId: string\n ): Promise<GetCredentialFormatDataReturn<ExtractCredentialFormats<CFs>>>\n\n public abstract register(\n messageHandlerRegistry: DidCommMessageHandlerRegistry,\n featureRegistry: DidCommFeatureRegistry\n ): void\n\n /**\n * Process a received credential {@link DidCommProblemReportMessage}.\n *\n * @param messageContext The message context containing a credential problem report message\n * @returns credential record associated with the credential problem report message\n */\n public async processProblemReport(\n messageContext: DidCommInboundMessageContext<DidCommProblemReportMessage>\n ): Promise<DidCommCredentialExchangeRecord> {\n const { message: credentialProblemReportMessage, agentContext, connection } = messageContext\n\n const connectionService = agentContext.dependencyManager.resolve(DidCommConnectionService)\n\n agentContext.config.logger.debug(`Processing problem report with message id ${credentialProblemReportMessage.id}`)\n\n const credentialExchangeRecord = await this.getByProperties(agentContext, {\n threadId: credentialProblemReportMessage.threadId,\n })\n\n // Assert\n await connectionService.assertConnectionOrOutOfBandExchange(messageContext, {\n expectedConnectionId: credentialExchangeRecord.connectionId,\n })\n\n // This makes sure that the sender of the incoming message is authorized to do so.\n if (!credentialExchangeRecord?.connectionId) {\n await connectionService.matchIncomingMessageToRequestMessageInOutOfBandExchange(messageContext, {\n expectedConnectionId: credentialExchangeRecord?.connectionId,\n })\n\n credentialExchangeRecord.connectionId = connection?.id\n }\n\n // Update record\n credentialExchangeRecord.errorMessage = `${credentialProblemReportMessage.description.code}: ${credentialProblemReportMessage.description.en}`\n await this.updateState(agentContext, credentialExchangeRecord, DidCommCredentialState.Abandoned)\n return credentialExchangeRecord\n }\n\n /**\n * Update the record to a new state and emit an state changed event. Also updates the record\n * in storage.\n *\n * @param credentialExchangeRecord The credential record to update the state for\n * @param newState The state to update to\n *\n */\n public async updateState(\n agentContext: AgentContext,\n credentialExchangeRecord: DidCommCredentialExchangeRecord,\n newState: DidCommCredentialState\n ) {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n agentContext.config.logger.debug(\n `Updating credential record ${credentialExchangeRecord.id} to state ${newState} (previous=${credentialExchangeRecord.state})`\n )\n\n const previousState = credentialExchangeRecord.state\n credentialExchangeRecord.state = newState\n await credentialRepository.update(agentContext, credentialExchangeRecord)\n\n this.emitStateChangedEvent(agentContext, credentialExchangeRecord, previousState)\n }\n\n protected emitStateChangedEvent(\n agentContext: AgentContext,\n credentialExchangeRecord: DidCommCredentialExchangeRecord,\n previousState: DidCommCredentialState | null\n ) {\n const eventEmitter = agentContext.dependencyManager.resolve(EventEmitter)\n\n eventEmitter.emit<DidCommCredentialStateChangedEvent>(agentContext, {\n type: DidCommCredentialEventTypes.DidCommCredentialStateChanged,\n payload: {\n credentialExchangeRecord: credentialExchangeRecord.clone(),\n previousState: previousState,\n },\n })\n }\n\n /**\n * Retrieve a credential record by id\n *\n * @param credentialRecordId The credential record id\n * @throws {RecordNotFoundError} If no record is found\n * @return The credential record\n *\n */\n public getById(agentContext: AgentContext, credentialRecordId: string): Promise<DidCommCredentialExchangeRecord> {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.getById(agentContext, credentialRecordId)\n }\n\n /**\n * Retrieve all credential records\n *\n * @returns List containing all credential records\n */\n public getAll(agentContext: AgentContext): Promise<DidCommCredentialExchangeRecord[]> {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.getAll(agentContext)\n }\n\n public async findAllByQuery(\n agentContext: AgentContext,\n query: Query<DidCommCredentialExchangeRecord>,\n queryOptions?: QueryOptions\n ): Promise<DidCommCredentialExchangeRecord[]> {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.findByQuery(agentContext, query, queryOptions)\n }\n\n /**\n * Find a credential record by id\n *\n * @param credentialRecordId the credential record id\n * @returns The credential record or null if not found\n */\n public findById(\n agentContext: AgentContext,\n proofExchangeRecordId: string\n ): Promise<DidCommCredentialExchangeRecord | null> {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.findById(agentContext, proofExchangeRecordId)\n }\n\n public async delete(\n agentContext: AgentContext,\n credentialExchangeRecord: DidCommCredentialExchangeRecord,\n options?: DeleteCredentialOptions\n ): Promise<void> {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n await credentialRepository.delete(agentContext, credentialExchangeRecord)\n\n const deleteAssociatedCredentials = options?.deleteAssociatedCredentials ?? true\n const deleteAssociatedDidCommMessages = options?.deleteAssociatedDidCommMessages ?? true\n\n if (deleteAssociatedCredentials) {\n for (const credential of credentialExchangeRecord.credentials) {\n const formatService = this.getFormatServiceForRecordType(credential.credentialRecordType)\n await formatService.deleteCredentialById(agentContext, credential.credentialRecordId)\n }\n }\n\n if (deleteAssociatedDidCommMessages) {\n const didCommMessages = await didCommMessageRepository.findByQuery(agentContext, {\n associatedRecordId: credentialExchangeRecord.id,\n })\n for (const didCommMessage of didCommMessages) {\n await didCommMessageRepository.delete(agentContext, didCommMessage)\n }\n }\n }\n\n /**\n * Retrieve a credential record by connection id and thread id\n *\n * @param properties Properties to query by\n *\n * @throws {RecordNotFoundError} If no record is found\n * @throws {RecordDuplicateError} If multiple records are found\n * @returns The credential record\n */\n public getByProperties(\n agentContext: AgentContext,\n properties: {\n threadId: string\n role?: DidCommCredentialRole\n connectionId?: string\n }\n ): Promise<DidCommCredentialExchangeRecord> {\n const { role, connectionId, threadId } = properties\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.getSingleByQuery(agentContext, {\n connectionId,\n threadId,\n role,\n })\n }\n\n /**\n * Find a credential record by connection id and thread id, returns null if not found\n *\n * @param threadId The thread id\n * @param role The role of the record, i.e. holder or issuer\n * @param connectionId The connection id\n *\n * @returns The credential record\n */\n public findByProperties(\n agentContext: AgentContext,\n properties: {\n threadId: string\n role?: DidCommCredentialRole\n connectionId?: string\n }\n ): Promise<DidCommCredentialExchangeRecord | null> {\n const { role, connectionId, threadId } = properties\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return credentialRepository.findSingleByQuery(agentContext, {\n connectionId,\n threadId,\n role,\n })\n }\n\n public async update(agentContext: AgentContext, credentialExchangeRecord: DidCommCredentialExchangeRecord) {\n const credentialRepository = agentContext.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n return await credentialRepository.update(agentContext, credentialExchangeRecord)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqCA,IAAsB,gCAAtB,MAGA;;;;;;;CAwGE,MAAa,qBACX,gBAC0C;EAC1C,MAAM,EAAE,SAAS,gCAAgC,cAAc,eAAe;EAE9E,MAAM,oBAAoB,aAAa,kBAAkB,QAAQ,yBAAyB;AAE1F,eAAa,OAAO,OAAO,MAAM,6CAA6C,+BAA+B,KAAK;EAElH,MAAM,2BAA2B,MAAM,KAAK,gBAAgB,cAAc,EACxE,UAAU,+BAA+B,UAC1C,CAAC;AAGF,QAAM,kBAAkB,oCAAoC,gBAAgB,EAC1E,sBAAsB,yBAAyB,cAChD,CAAC;AAGF,MAAI,CAAC,0BAA0B,cAAc;AAC3C,SAAM,kBAAkB,wDAAwD,gBAAgB,EAC9F,sBAAsB,0BAA0B,cACjD,CAAC;AAEF,4BAAyB,eAAe,YAAY;;AAItD,2BAAyB,eAAe,GAAG,+BAA+B,YAAY,KAAK,IAAI,+BAA+B,YAAY;AAC1I,QAAM,KAAK,YAAY,cAAc,0BAA0B,uBAAuB,UAAU;AAChG,SAAO;;;;;;;;;;CAWT,MAAa,YACX,cACA,0BACA,UACA;EACA,MAAM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BAAqB,cAAc,WAAW,mBAAmB;AAIzF,MAAI,iCAAiC;GACnC,MAAM,kBAAkB,MAAM,yBAAyB,YAAY,cAAc,EAC/E,oBAAoB,yBAAyB,IAC9C,CAAC;AACF,QAAK,MAAM,kBAAkB,gBAC3B,OAAM,yBAAyB,OAAO,cAAc,eAAe;;;;;;;;;;;;CAczE,AAAO,gBACL,cACA,YAK0C;EAC1C,MAAM,EAAE,MAAM,cAAc,aAAa;AAGzC,SAF6B,aAAa,kBAAkB,QAAQ,oCAAoC,CAE5E,iBAAiB,cAAc;GACzD;GACA;GACA;GACD,CAAC;;;;;;;;;;;CAYJ,AAAO,iBACL,cACA,YAKiD;EACjD,MAAM,EAAE,MAAM,cAAc,aAAa;AAGzC,SAF6B,aAAa,kBAAkB,QAAQ,oCAAoC,CAE5E,kBAAkB,cAAc;GAC1D;GACA;GACA;GACD,CAAC;;CAGJ,MAAa,OAAO,cAA4B,0BAA2D;AAGzG,SAAO,MAFsB,aAAa,kBAAkB,QAAQ,oCAAoC,CAEtE,OAAO,cAAc,yBAAyB"}
|
|
@@ -5,10 +5,10 @@ import { DidCommCredentialRole } from "../models/DidCommCredentialRole.mjs";
|
|
|
5
5
|
import { DidCommCredentialExchangeRecord } from "../repository/DidCommCredentialExchangeRecord.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, DeleteCredentialOptions, GetCredentialFormatDataReturn, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions } from "./DidCommCredentialProtocolOptions.mjs";
|
|
11
10
|
import { DidCommInboundMessageContext } from "../../../models/DidCommInboundMessageContext.mjs";
|
|
11
|
+
import { DidCommFeatureRegistry } from "../../../DidCommFeatureRegistry.mjs";
|
|
12
12
|
import { AgentContext, Query, QueryOptions } from "@credo-ts/core";
|
|
13
13
|
|
|
14
14
|
//#region src/modules/credentials/protocol/DidCommCredentialProtocol.d.ts
|
|
@@ -5,10 +5,10 @@ import { DidCommCredentialRole } from "../models/DidCommCredentialRole.js";
|
|
|
5
5
|
import { DidCommCredentialExchangeRecord } from "../repository/DidCommCredentialExchangeRecord.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, DeleteCredentialOptions, GetCredentialFormatDataReturn, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions } from "./DidCommCredentialProtocolOptions.js";
|
|
11
10
|
import { DidCommInboundMessageContext } from "../../../models/DidCommInboundMessageContext.js";
|
|
11
|
+
import { DidCommFeatureRegistry } from "../../../DidCommFeatureRegistry.js";
|
|
12
12
|
import { AgentContext, Query, QueryOptions } from "@credo-ts/core";
|
|
13
13
|
|
|
14
14
|
//#region src/modules/credentials/protocol/DidCommCredentialProtocol.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DidCommMessage } from "../../../DidCommMessage.mjs";
|
|
2
|
-
import { DidCommCredentialPreviewAttributeOptions } from "../models/DidCommCredentialPreviewAttribute.mjs";
|
|
3
2
|
import { DidCommAutoAcceptCredential } from "../models/DidCommCredentialAutoAcceptType.mjs";
|
|
3
|
+
import { DidCommCredentialPreviewAttributeOptions } from "../models/DidCommCredentialPreviewAttribute.mjs";
|
|
4
4
|
import { DidCommCredentialExchangeRecord } from "../repository/DidCommCredentialExchangeRecord.mjs";
|
|
5
5
|
import { DidCommCredentialFormat, DidCommCredentialFormatPayload } from "../formats/DidCommCredentialFormat.mjs";
|
|
6
6
|
import { ExtractCredentialFormats } from "../formats/DidCommCredentialFormatServiceOptions.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DidCommMessage } from "../../../DidCommMessage.js";
|
|
2
|
-
import { DidCommCredentialPreviewAttributeOptions } from "../models/DidCommCredentialPreviewAttribute.js";
|
|
3
2
|
import { DidCommAutoAcceptCredential } from "../models/DidCommCredentialAutoAcceptType.js";
|
|
3
|
+
import { DidCommCredentialPreviewAttributeOptions } from "../models/DidCommCredentialPreviewAttribute.js";
|
|
4
4
|
import { DidCommCredentialExchangeRecord } from "../repository/DidCommCredentialExchangeRecord.js";
|
|
5
5
|
import { DidCommCredentialFormat, DidCommCredentialFormatPayload } from "../formats/DidCommCredentialFormat.js";
|
|
6
6
|
import { ExtractCredentialFormats } from "../formats/DidCommCredentialFormatServiceOptions.js";
|
|
@@ -2,9 +2,9 @@ const require_DidCommRevocationNotificationV2Message = require('./revocation-not
|
|
|
2
2
|
const require_DidCommRevocationNotificationV1Message = require('./revocation-notification/messages/DidCommRevocationNotificationV1Message.js');
|
|
3
3
|
const require_DidCommBaseCredentialProtocol = require('./DidCommBaseCredentialProtocol.js');
|
|
4
4
|
const require_DidCommCredentialV2AckMessage = require('./v2/messages/DidCommCredentialV2AckMessage.js');
|
|
5
|
+
const require_DidCommCredentialV2Preview = require('./v2/messages/DidCommCredentialV2Preview.js');
|
|
5
6
|
const require_DidCommCredentialV2ProblemReportMessage = require('./v2/messages/DidCommCredentialV2ProblemReportMessage.js');
|
|
6
7
|
const require_DidCommIssueCredentialV2Message = require('./v2/messages/DidCommIssueCredentialV2Message.js');
|
|
7
|
-
const require_DidCommCredentialV2Preview = require('./v2/messages/DidCommCredentialV2Preview.js');
|
|
8
8
|
const require_DidCommOfferCredentialV2Message = require('./v2/messages/DidCommOfferCredentialV2Message.js');
|
|
9
9
|
const require_DidCommProposeCredentialV2Message = require('./v2/messages/DidCommProposeCredentialV2Message.js');
|
|
10
10
|
const require_DidCommRequestCredentialV2Message = require('./v2/messages/DidCommRequestCredentialV2Message.js');
|
|
@@ -2,9 +2,9 @@ import { DidCommRevocationNotificationV2Message } from "./revocation-notificatio
|
|
|
2
2
|
import { DidCommRevocationNotificationV1Message } from "./revocation-notification/messages/DidCommRevocationNotificationV1Message.mjs";
|
|
3
3
|
import { DidCommBaseCredentialProtocol } from "./DidCommBaseCredentialProtocol.mjs";
|
|
4
4
|
import { DidCommCredentialV2AckMessage } from "./v2/messages/DidCommCredentialV2AckMessage.mjs";
|
|
5
|
+
import { DidCommCredentialV2Preview } from "./v2/messages/DidCommCredentialV2Preview.mjs";
|
|
5
6
|
import { DidCommCredentialV2ProblemReportMessage } from "./v2/messages/DidCommCredentialV2ProblemReportMessage.mjs";
|
|
6
7
|
import { DidCommIssueCredentialV2Message } from "./v2/messages/DidCommIssueCredentialV2Message.mjs";
|
|
7
|
-
import { DidCommCredentialV2Preview } from "./v2/messages/DidCommCredentialV2Preview.mjs";
|
|
8
8
|
import { DidCommOfferCredentialV2Message } from "./v2/messages/DidCommOfferCredentialV2Message.mjs";
|
|
9
9
|
import { DidCommProposeCredentialV2Message } from "./v2/messages/DidCommProposeCredentialV2Message.mjs";
|
|
10
10
|
import { DidCommRequestCredentialV2Message } from "./v2/messages/DidCommRequestCredentialV2Message.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommRevocationNotificationV1Handler.mjs","names":[],"sources":["../../../../../../src/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV1Handler.ts"],"sourcesContent":["import type { DidCommMessageHandler, DidCommMessageHandlerInboundMessage } from '../../../../../handlers'\nimport
|
|
1
|
+
{"version":3,"file":"DidCommRevocationNotificationV1Handler.mjs","names":[],"sources":["../../../../../../src/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV1Handler.ts"],"sourcesContent":["import type { DidCommMessageHandler, DidCommMessageHandlerInboundMessage } from '../../../../../handlers'\nimport { DidCommRevocationNotificationV1Message } from '../messages/DidCommRevocationNotificationV1Message'\nimport type { DidCommRevocationNotificationService } from '../services'\n\nexport class DidCommRevocationNotificationV1Handler implements DidCommMessageHandler {\n private revocationService: DidCommRevocationNotificationService\n public supportedMessages = [DidCommRevocationNotificationV1Message]\n\n public constructor(revocationService: DidCommRevocationNotificationService) {\n this.revocationService = revocationService\n }\n\n public async handle(messageContext: DidCommMessageHandlerInboundMessage<DidCommRevocationNotificationV1Handler>) {\n await this.revocationService.v1ProcessRevocationNotification(messageContext)\n\n return undefined\n }\n}\n"],"mappings":";;;AAIA,IAAa,yCAAb,MAAqF;CAInF,AAAO,YAAY,mBAAyD;OAFrE,oBAAoB,CAAC,uCAAuC;AAGjE,OAAK,oBAAoB;;CAG3B,MAAa,OAAO,gBAA6F;AAC/G,QAAM,KAAK,kBAAkB,gCAAgC,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommRevocationNotificationV2Handler.mjs","names":[],"sources":["../../../../../../src/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV2Handler.ts"],"sourcesContent":["import type { DidCommMessageHandler, DidCommMessageHandlerInboundMessage } from '../../../../../handlers'\nimport
|
|
1
|
+
{"version":3,"file":"DidCommRevocationNotificationV2Handler.mjs","names":[],"sources":["../../../../../../src/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV2Handler.ts"],"sourcesContent":["import type { DidCommMessageHandler, DidCommMessageHandlerInboundMessage } from '../../../../../handlers'\nimport { DidCommRevocationNotificationV2Message } from '../messages/DidCommRevocationNotificationV2Message'\nimport type { DidCommRevocationNotificationService } from '../services'\n\nexport class DidCommRevocationNotificationV2Handler implements DidCommMessageHandler {\n private revocationService: DidCommRevocationNotificationService\n public supportedMessages = [DidCommRevocationNotificationV2Message]\n\n public constructor(revocationService: DidCommRevocationNotificationService) {\n this.revocationService = revocationService\n }\n\n public async handle(messageContext: DidCommMessageHandlerInboundMessage<DidCommRevocationNotificationV2Handler>) {\n await this.revocationService.v2ProcessRevocationNotification(messageContext)\n\n return undefined\n }\n}\n"],"mappings":";;;AAIA,IAAa,yCAAb,MAAqF;CAInF,AAAO,YAAY,mBAAyD;OAFrE,oBAAoB,CAAC,uCAAuC;AAGjE,OAAK,oBAAoB;;CAG3B,MAAa,OAAO,gBAA6F;AAC/G,QAAM,KAAK,kBAAkB,gCAAgC,eAAe"}
|