@credo-ts/didcomm 0.6.0-pr-2392-20251010173905 → 0.6.0-pr-2457-20251016083534
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/BaseDidCommMessage.d.mts.map +1 -1
- package/build/BaseDidCommMessage.d.ts.map +1 -1
- package/build/BaseDidCommMessage.js +3 -3
- package/build/BaseDidCommMessage.mjs +2 -2
- package/build/BaseDidCommMessage.mjs.map +1 -1
- package/build/DidCommApi.d.mts +6 -10
- package/build/DidCommApi.d.mts.map +1 -1
- package/build/DidCommApi.d.ts +6 -10
- package/build/DidCommApi.d.ts.map +1 -1
- package/build/DidCommApi.js +16 -21
- package/build/DidCommApi.mjs +16 -21
- package/build/DidCommApi.mjs.map +1 -1
- package/build/DidCommDispatcher.d.mts.map +1 -1
- package/build/DidCommDispatcher.d.ts.map +1 -1
- package/build/DidCommDispatcher.js +7 -7
- package/build/DidCommDispatcher.mjs +7 -7
- package/build/DidCommDispatcher.mjs.map +1 -1
- package/build/DidCommEnvelopeService.d.mts.map +1 -1
- package/build/DidCommEnvelopeService.d.ts.map +1 -1
- package/build/DidCommEnvelopeService.js +5 -5
- package/build/DidCommEnvelopeService.mjs +5 -5
- package/build/DidCommEnvelopeService.mjs.map +1 -1
- package/build/DidCommFeatureRegistry.d.mts.map +1 -1
- package/build/DidCommFeatureRegistry.d.ts.map +1 -1
- package/build/DidCommFeatureRegistry.mjs.map +1 -1
- package/build/DidCommMessage.d.mts +1 -1
- package/build/DidCommMessage.d.mts.map +1 -1
- package/build/DidCommMessage.d.ts +1 -1
- package/build/DidCommMessage.d.ts.map +1 -1
- package/build/DidCommMessage.js +2 -2
- package/build/DidCommMessage.mjs +2 -2
- package/build/DidCommMessage.mjs.map +1 -1
- package/build/DidCommMessageHandlerRegistry.d.mts.map +1 -1
- package/build/DidCommMessageHandlerRegistry.d.ts.map +1 -1
- package/build/DidCommMessageHandlerRegistry.mjs.map +1 -1
- package/build/DidCommMessageReceiver.d.mts +1 -6
- package/build/DidCommMessageReceiver.d.mts.map +1 -1
- package/build/DidCommMessageReceiver.d.ts +1 -6
- package/build/DidCommMessageReceiver.d.ts.map +1 -1
- package/build/DidCommMessageReceiver.js +9 -21
- package/build/DidCommMessageReceiver.mjs +9 -21
- package/build/DidCommMessageReceiver.mjs.map +1 -1
- package/build/DidCommMessageSender.d.mts +1 -6
- package/build/DidCommMessageSender.d.mts.map +1 -1
- package/build/DidCommMessageSender.d.ts +1 -6
- package/build/DidCommMessageSender.d.ts.map +1 -1
- package/build/DidCommMessageSender.js +17 -29
- package/build/DidCommMessageSender.mjs +17 -29
- package/build/DidCommMessageSender.mjs.map +1 -1
- package/build/DidCommModule.d.mts +1 -1
- package/build/DidCommModule.d.mts.map +1 -1
- package/build/DidCommModule.d.ts +1 -1
- package/build/DidCommModule.d.ts.map +1 -1
- package/build/DidCommModule.js +9 -12
- package/build/DidCommModule.mjs +9 -12
- package/build/DidCommModule.mjs.map +1 -1
- package/build/DidCommModuleConfig.d.mts +14 -2
- package/build/DidCommModuleConfig.d.mts.map +1 -1
- package/build/DidCommModuleConfig.d.ts +14 -2
- package/build/DidCommModuleConfig.d.ts.map +1 -1
- package/build/DidCommModuleConfig.js +15 -1
- package/build/DidCommModuleConfig.mjs +15 -1
- package/build/DidCommModuleConfig.mjs.map +1 -1
- package/build/DidCommTransportService.d.mts.map +1 -1
- package/build/DidCommTransportService.d.ts.map +1 -1
- package/build/DidCommTransportService.js +1 -1
- package/build/DidCommTransportService.mjs +1 -1
- package/build/DidCommTransportService.mjs.map +1 -1
- package/build/decorators/ack/AckDecorator.js +1 -1
- package/build/decorators/ack/AckDecorator.mjs +1 -1
- package/build/decorators/ack/AckDecoratorExtension.js +3 -3
- package/build/decorators/ack/AckDecoratorExtension.mjs +2 -2
- package/build/decorators/ack/AckDecoratorExtension.mjs.map +1 -1
- package/build/decorators/attachment/AttachmentExtension.js +3 -3
- package/build/decorators/attachment/AttachmentExtension.mjs +2 -2
- package/build/decorators/attachment/AttachmentExtension.mjs.map +1 -1
- package/build/decorators/attachment/DidCommAttachment.js +3 -3
- package/build/decorators/attachment/DidCommAttachment.mjs +2 -2
- package/build/decorators/attachment/DidCommAttachment.mjs.map +1 -1
- package/build/decorators/l10n/L10nDecoratorExtension.js +3 -3
- package/build/decorators/l10n/L10nDecoratorExtension.mjs +2 -2
- package/build/decorators/l10n/L10nDecoratorExtension.mjs.map +1 -1
- package/build/decorators/service/ServiceDecorator.js +1 -1
- package/build/decorators/service/ServiceDecorator.mjs +1 -1
- package/build/decorators/service/ServiceDecoratorExtension.js +3 -3
- package/build/decorators/service/ServiceDecoratorExtension.mjs +2 -2
- package/build/decorators/service/ServiceDecoratorExtension.mjs.map +1 -1
- package/build/decorators/signature/SignatureDecorator.js +4 -4
- package/build/decorators/signature/SignatureDecorator.mjs +3 -3
- package/build/decorators/thread/ThreadDecorator.js +3 -3
- package/build/decorators/thread/ThreadDecorator.mjs +2 -2
- package/build/decorators/thread/ThreadDecoratorExtension.js +3 -3
- package/build/decorators/thread/ThreadDecoratorExtension.mjs +2 -2
- package/build/decorators/thread/ThreadDecoratorExtension.mjs.map +1 -1
- package/build/decorators/timing/TimingDecorator.js +3 -3
- package/build/decorators/timing/TimingDecorator.mjs +2 -2
- package/build/decorators/timing/TimingDecoratorExtension.js +3 -3
- package/build/decorators/timing/TimingDecoratorExtension.mjs +2 -2
- package/build/decorators/timing/TimingDecoratorExtension.mjs.map +1 -1
- package/build/decorators/transport/TransportDecorator.js +3 -3
- package/build/decorators/transport/TransportDecorator.mjs +2 -2
- package/build/decorators/transport/TransportDecoratorExtension.js +3 -3
- package/build/decorators/transport/TransportDecoratorExtension.mjs +2 -2
- package/build/decorators/transport/TransportDecoratorExtension.mjs.map +1 -1
- package/build/errors/MessageSendingError.d.mts.map +1 -1
- package/build/errors/MessageSendingError.d.ts.map +1 -1
- package/build/errors/MessageSendingError.mjs.map +1 -1
- package/build/errors/index.js +1 -1
- package/build/errors/index.mjs +1 -1
- package/build/getDidCommOutboundMessageContext.d.mts.map +1 -1
- package/build/getDidCommOutboundMessageContext.d.ts.map +1 -1
- package/build/getDidCommOutboundMessageContext.js +6 -6
- package/build/getDidCommOutboundMessageContext.mjs +6 -6
- package/build/getDidCommOutboundMessageContext.mjs.map +1 -1
- package/build/handlers/DidCommMessageHandlerMiddleware.mjs.map +1 -1
- package/build/index.d.mts +99 -99
- package/build/index.d.ts +99 -99
- package/build/index.js +114 -112
- package/build/index.mjs +108 -108
- package/build/messages/common/DidCommAckMessage.js +1 -1
- package/build/messages/common/DidCommAckMessage.mjs +1 -1
- package/build/messages/problem-reports/DidCommProblemReportMessage.js +3 -3
- package/build/messages/problem-reports/DidCommProblemReportMessage.mjs +2 -2
- package/build/models/DidCommInboundMessageContext.d.mts.map +1 -1
- package/build/models/DidCommInboundMessageContext.d.ts.map +1 -1
- package/build/models/DidCommInboundMessageContext.mjs.map +1 -1
- package/build/models/DidCommOutboundMessageContext.d.mts.map +1 -1
- package/build/models/DidCommOutboundMessageContext.d.ts.map +1 -1
- package/build/models/DidCommOutboundMessageContext.mjs.map +1 -1
- package/build/models/features/DidCommFeature.js +3 -3
- package/build/models/features/DidCommFeature.mjs +2 -2
- package/build/models/features/DidCommFeatureQuery.js +3 -3
- package/build/models/features/DidCommFeatureQuery.mjs +2 -2
- package/build/models/features/DidCommProtocol.d.mts.map +1 -1
- package/build/models/features/DidCommProtocol.d.ts.map +1 -1
- package/build/models/features/DidCommProtocol.js +1 -1
- package/build/models/features/DidCommProtocol.mjs +1 -1
- package/build/models/features/DidCommProtocol.mjs.map +1 -1
- package/build/models/index.js +3 -3
- package/build/models/index.mjs +3 -3
- package/build/modules/basic-messages/DidCommBasicMessagesApi.d.mts +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesApi.d.mts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesApi.d.ts +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesApi.d.ts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesApi.js +2 -2
- package/build/modules/basic-messages/DidCommBasicMessagesApi.mjs +2 -2
- package/build/modules/basic-messages/DidCommBasicMessagesApi.mjs.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesModule.d.mts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesModule.d.ts.map +1 -1
- package/build/modules/basic-messages/DidCommBasicMessagesModule.js +2 -2
- package/build/modules/basic-messages/DidCommBasicMessagesModule.mjs +2 -2
- package/build/modules/basic-messages/DidCommBasicMessagesModule.mjs.map +1 -1
- package/build/modules/basic-messages/handlers/BasicMessageHandler.mjs.map +1 -1
- package/build/modules/basic-messages/index.js +2 -2
- package/build/modules/basic-messages/index.mjs +2 -2
- package/build/modules/basic-messages/messages/DidCommBasicMessage.js +3 -3
- package/build/modules/basic-messages/messages/DidCommBasicMessage.mjs +2 -2
- package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.d.mts.map +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.d.ts.map +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.mjs.map +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.js +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.mjs +1 -1
- package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.mjs.map +1 -1
- package/build/modules/basic-messages/services/DidCommBasicMessageService.d.mts.map +1 -1
- package/build/modules/basic-messages/services/DidCommBasicMessageService.d.ts.map +1 -1
- package/build/modules/basic-messages/services/DidCommBasicMessageService.js +4 -4
- package/build/modules/basic-messages/services/DidCommBasicMessageService.mjs +4 -4
- package/build/modules/basic-messages/services/DidCommBasicMessageService.mjs.map +1 -1
- package/build/modules/connections/DidCommConnectionsApi.d.mts +3 -3
- package/build/modules/connections/DidCommConnectionsApi.d.mts.map +1 -1
- package/build/modules/connections/DidCommConnectionsApi.d.ts +3 -3
- package/build/modules/connections/DidCommConnectionsApi.d.ts.map +1 -1
- package/build/modules/connections/DidCommConnectionsApi.js +5 -5
- package/build/modules/connections/DidCommConnectionsApi.mjs +5 -5
- package/build/modules/connections/DidCommConnectionsApi.mjs.map +1 -1
- package/build/modules/connections/DidCommConnectionsModule.d.mts.map +1 -1
- package/build/modules/connections/DidCommConnectionsModule.d.ts.map +1 -1
- package/build/modules/connections/DidCommConnectionsModule.js +20 -20
- package/build/modules/connections/DidCommConnectionsModule.mjs +20 -20
- package/build/modules/connections/DidCommConnectionsModule.mjs.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.d.mts +2 -4
- package/build/modules/connections/DidExchangeProtocol.d.mts.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.d.ts +2 -4
- package/build/modules/connections/DidExchangeProtocol.d.ts.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.js +11 -15
- package/build/modules/connections/DidExchangeProtocol.mjs +11 -15
- package/build/modules/connections/DidExchangeProtocol.mjs.map +1 -1
- package/build/modules/connections/DidExchangeStateMachine.js +1 -1
- package/build/modules/connections/DidExchangeStateMachine.mjs +1 -1
- package/build/modules/connections/DidExchangeStateMachine.mjs.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.mts +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.mts.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.ts +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.ts.map +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.mjs.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.mts +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.mts.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommAckMessageHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommAckMessageHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommAckMessageHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.mts +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.js +4 -4
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.mjs +4 -4
- package/build/modules/connections/handlers/DidCommConnectionRequestHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.js +3 -3
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.mjs +3 -3
- package/build/modules/connections/handlers/DidCommConnectionResponseHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.mts +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.js +4 -4
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.mjs +4 -4
- package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.mts +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.js +4 -4
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.mjs +4 -4
- package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateAckHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateAckHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateAckHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateHandler.d.mts +3 -5
- package/build/modules/connections/handlers/DidCommDidRotateHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateHandler.d.ts +3 -5
- package/build/modules/connections/handlers/DidCommDidRotateHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateHandler.js +1 -2
- package/build/modules/connections/handlers/DidCommDidRotateHandler.mjs +1 -2
- package/build/modules/connections/handlers/DidCommDidRotateHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommHangupHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommHangupHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommHangupHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.d.mts.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.d.ts.map +1 -1
- package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.mjs.map +1 -1
- package/build/modules/connections/handlers/index.js +5 -5
- package/build/modules/connections/handlers/index.mjs +5 -5
- package/build/modules/connections/index.js +23 -23
- package/build/modules/connections/index.mjs +23 -23
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.d.ts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.js +4 -4
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.mjs +4 -4
- package/build/modules/connections/messages/DidCommConnectionInvitationMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionProblemReportMessage.js +1 -1
- package/build/modules/connections/messages/DidCommConnectionProblemReportMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.d.ts.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.js +4 -4
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.mjs +3 -3
- package/build/modules/connections/messages/DidCommConnectionRequestMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommConnectionResponseMessage.js +3 -3
- package/build/modules/connections/messages/DidCommConnectionResponseMessage.mjs +2 -2
- package/build/modules/connections/messages/DidCommDidExchangeCompleteMessage.js +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeCompleteMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeProblemReportMessage.js +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeProblemReportMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommDidExchangeRequestMessage.js +4 -4
- package/build/modules/connections/messages/DidCommDidExchangeRequestMessage.mjs +3 -3
- package/build/modules/connections/messages/DidCommDidExchangeResponseMessage.js +4 -4
- package/build/modules/connections/messages/DidCommDidExchangeResponseMessage.mjs +3 -3
- package/build/modules/connections/messages/DidCommDidRotateAckMessage.js +1 -1
- package/build/modules/connections/messages/DidCommDidRotateAckMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommDidRotateMessage.js +3 -3
- package/build/modules/connections/messages/DidCommDidRotateMessage.mjs +2 -2
- package/build/modules/connections/messages/DidCommDidRotateProblemReportMessage.js +1 -1
- package/build/modules/connections/messages/DidCommDidRotateProblemReportMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommHangupMessage.js +1 -1
- package/build/modules/connections/messages/DidCommHangupMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommTrustPingMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingMessage.d.ts.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingMessage.js +3 -3
- package/build/modules/connections/messages/DidCommTrustPingMessage.mjs +2 -2
- package/build/modules/connections/messages/DidCommTrustPingMessage.mjs.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.d.mts.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.d.ts.map +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.js +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.mjs +1 -1
- package/build/modules/connections/messages/DidCommTrustPingResponseMessage.mjs.map +1 -1
- package/build/modules/connections/messages/index.js +7 -7
- package/build/modules/connections/messages/index.mjs +7 -7
- package/build/modules/connections/models/DidCommConnection.js +3 -3
- package/build/modules/connections/models/DidCommConnection.mjs +2 -2
- package/build/modules/connections/models/did/DidDoc.d.mts.map +1 -1
- package/build/modules/connections/models/did/DidDoc.d.ts.map +1 -1
- package/build/modules/connections/models/did/DidDoc.js +3 -3
- package/build/modules/connections/models/did/DidDoc.mjs +2 -2
- package/build/modules/connections/models/did/DidDoc.mjs.map +1 -1
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js +1 -1
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.mjs +1 -1
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js +3 -3
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.mjs +2 -2
- package/build/modules/connections/models/did/authentication/index.d.mts.map +1 -1
- package/build/modules/connections/models/did/authentication/index.d.ts.map +1 -1
- package/build/modules/connections/models/did/authentication/index.mjs.map +1 -1
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js +3 -3
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.mjs +2 -2
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js +3 -3
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.mjs +2 -2
- package/build/modules/connections/models/did/publicKey/PublicKey.js +1 -1
- package/build/modules/connections/models/did/publicKey/PublicKey.mjs +1 -1
- package/build/modules/connections/models/did/publicKey/RsaSig2018.js +3 -3
- package/build/modules/connections/models/did/publicKey/RsaSig2018.mjs +2 -2
- package/build/modules/connections/models/did/publicKey/index.mjs.map +1 -1
- package/build/modules/connections/models/index.js +1 -1
- package/build/modules/connections/models/index.mjs +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.d.mts +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.d.mts.map +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.d.ts +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.d.ts.map +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.js +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.mjs +1 -1
- package/build/modules/connections/repository/DidCommConnectionRecord.mjs.map +1 -1
- package/build/modules/connections/repository/DidCommConnectionRepository.js +2 -2
- package/build/modules/connections/repository/DidCommConnectionRepository.mjs +2 -2
- package/build/modules/connections/repository/DidCommConnectionRepository.mjs.map +1 -1
- package/build/modules/connections/services/DidCommConnectionService.d.mts +3 -3
- package/build/modules/connections/services/DidCommConnectionService.d.mts.map +1 -1
- package/build/modules/connections/services/DidCommConnectionService.d.ts +3 -3
- package/build/modules/connections/services/DidCommConnectionService.d.ts.map +1 -1
- package/build/modules/connections/services/DidCommConnectionService.js +13 -13
- package/build/modules/connections/services/DidCommConnectionService.mjs +13 -13
- package/build/modules/connections/services/DidCommConnectionService.mjs.map +1 -1
- package/build/modules/connections/services/DidCommDidRotateService.d.mts +2 -2
- package/build/modules/connections/services/DidCommDidRotateService.d.mts.map +1 -1
- package/build/modules/connections/services/DidCommDidRotateService.d.ts +2 -2
- package/build/modules/connections/services/DidCommDidRotateService.d.ts.map +1 -1
- package/build/modules/connections/services/DidCommDidRotateService.js +8 -8
- package/build/modules/connections/services/DidCommDidRotateService.mjs +8 -8
- package/build/modules/connections/services/DidCommDidRotateService.mjs.map +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.d.mts.map +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.d.ts.map +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.js +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.mjs +1 -1
- package/build/modules/connections/services/DidCommTrustPingService.mjs.map +1 -1
- package/build/modules/connections/services/helpers.js +1 -1
- package/build/modules/connections/services/helpers.mjs +1 -1
- package/build/modules/connections/services/helpers.mjs.map +1 -1
- package/build/modules/credentials/DidCommCredentialsApi.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsApi.d.ts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsApi.js +2 -2
- package/build/modules/credentials/DidCommCredentialsApi.mjs +2 -2
- package/build/modules/credentials/DidCommCredentialsApi.mjs.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModule.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModule.d.ts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModule.js +2 -2
- package/build/modules/credentials/DidCommCredentialsModule.mjs +2 -2
- package/build/modules/credentials/DidCommCredentialsModule.mjs.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModuleConfig.d.mts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModuleConfig.d.ts.map +1 -1
- package/build/modules/credentials/DidCommCredentialsModuleConfig.mjs.map +1 -1
- package/build/modules/credentials/formats/DidCommCredentialFormatServiceOptions.d.mts +1 -1
- package/build/modules/credentials/formats/DidCommCredentialFormatServiceOptions.d.ts +1 -1
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js +3 -3
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.mjs +2 -2
- package/build/modules/credentials/formats/index.js +2 -2
- package/build/modules/credentials/formats/index.mjs +2 -2
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetail.js +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetail.mjs +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.js +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.mjs +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.d.mts.map +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.d.ts.map +1 -1
- package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.mjs.map +1 -1
- package/build/modules/credentials/index.js +5 -5
- package/build/modules/credentials/index.mjs +5 -5
- package/build/modules/credentials/models/DidCommCredentialFormatSpec.js +3 -3
- package/build/modules/credentials/models/DidCommCredentialFormatSpec.mjs +2 -2
- package/build/modules/credentials/models/DidCommCredentialPreviewAttribute.js +3 -3
- package/build/modules/credentials/models/DidCommCredentialPreviewAttribute.mjs +2 -2
- package/build/modules/credentials/models/DidCommRevocationNotification.js +1 -1
- package/build/modules/credentials/models/DidCommRevocationNotification.mjs +1 -1
- package/build/modules/credentials/models/index.js +3 -3
- package/build/modules/credentials/models/index.mjs +3 -3
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.mts +1 -1
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.mts.map +1 -1
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.ts +1 -1
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.ts.map +1 -1
- package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.mjs.map +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocol.d.mts +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocol.d.ts +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocolOptions.d.mts +1 -1
- package/build/modules/credentials/protocol/DidCommCredentialProtocolOptions.d.ts +1 -1
- package/build/modules/credentials/protocol/index.js +1 -1
- package/build/modules/credentials/protocol/index.mjs +1 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV1Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.js +4 -4
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.mjs +3 -3
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.js +4 -4
- package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.mjs +3 -3
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.mts +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.mts.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.ts +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.ts.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.js +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.mjs +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.js +2 -2
- package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.mjs +2 -2
- package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.mts +2 -2
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.ts +2 -2
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.ts.map +1 -1
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.js +5 -5
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.mjs +5 -5
- package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.mts +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.ts +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.ts.map +1 -1
- package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommIssueCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.d.ts.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommProposeCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/DidCommRequestCredentialV2Handler.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/index.js +1 -1
- package/build/modules/credentials/protocol/v2/handlers/index.mjs +1 -1
- package/build/modules/credentials/protocol/v2/index.js +1 -1
- package/build/modules/credentials/protocol/v2/index.mjs +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2AckMessage.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2AckMessage.mjs +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.mts +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.mts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.ts +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.ts.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.js +3 -3
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.mjs +2 -2
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.mjs.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.mjs +1 -1
- package/build/modules/credentials/protocol/v2/messages/DidCommIssueCredentialV2Message.js +4 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommIssueCredentialV2Message.mjs +3 -3
- package/build/modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.js +4 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.mjs +3 -3
- package/build/modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.js +4 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.mjs +3 -3
- package/build/modules/credentials/protocol/v2/messages/DidCommRequestCredentialV2Message.js +4 -4
- package/build/modules/credentials/protocol/v2/messages/DidCommRequestCredentialV2Message.mjs +3 -3
- package/build/modules/credentials/protocol/v2/messages/index.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/index.mjs +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.mts +2 -2
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.mts.map +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.ts +2 -2
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.ts.map +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.js +2 -2
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.mjs +2 -2
- package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.mjs.map +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.js +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.mjs +1 -1
- package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.mjs.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.mts +3 -3
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.mts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.ts +3 -3
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.ts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.js +3 -3
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.mjs +3 -3
- package/build/modules/discover-features/DidCommDiscoverFeaturesApi.mjs.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesEvents.d.mts +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesEvents.d.ts +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.d.mts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.d.ts.map +1 -1
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.js +2 -2
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.mjs +2 -2
- package/build/modules/discover-features/DidCommDiscoverFeaturesModule.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.mts +2 -2
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.ts +2 -2
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.ts.map +1 -1
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.js +4 -4
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.mjs +4 -4
- package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/handlers/DidCommFeaturesQueryMessageHandler.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.js +3 -3
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.mjs +2 -2
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesQueryMessage.js +1 -1
- package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesQueryMessage.mjs +1 -1
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.mts +2 -2
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.ts +2 -2
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.ts.map +1 -1
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.js +2 -2
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.mjs +2 -2
- package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v2/handlers/DidCommFeaturesQueriesMessageHandler.mjs.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.js +3 -3
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.mjs +2 -2
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.d.mts.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.d.ts.map +1 -1
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.js +3 -3
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.mjs +2 -2
- package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.mjs.map +1 -1
- package/build/modules/discover-features/services/DidCommDiscoverFeaturesService.d.mts +1 -1
- package/build/modules/discover-features/services/DidCommDiscoverFeaturesService.d.ts +1 -1
- package/build/modules/index.js +66 -66
- package/build/modules/index.mjs +66 -66
- package/build/modules/message-pickup/DidCommMessagePickupApi.d.mts +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupApi.d.mts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupApi.d.ts +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupApi.d.ts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupApi.js +4 -4
- package/build/modules/message-pickup/DidCommMessagePickupApi.mjs +4 -4
- package/build/modules/message-pickup/DidCommMessagePickupApi.mjs.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.d.mts +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.d.mts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.d.ts +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.d.ts.map +1 -1
- package/build/modules/message-pickup/DidCommMessagePickupModule.mjs.map +1 -1
- package/build/modules/message-pickup/index.js +1 -1
- package/build/modules/message-pickup/index.mjs +1 -1
- package/build/modules/message-pickup/protocol/DidCommBaseMessagePickupProtocol.d.mts +1 -1
- package/build/modules/message-pickup/protocol/DidCommBaseMessagePickupProtocol.d.ts +1 -1
- package/build/modules/message-pickup/protocol/DidCommMessagePickupProtocol.d.mts +1 -1
- package/build/modules/message-pickup/protocol/DidCommMessagePickupProtocol.d.ts +1 -1
- package/build/modules/message-pickup/protocol/index.js +1 -1
- package/build/modules/message-pickup/protocol/index.mjs +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.mts +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.ts +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.ts.map +1 -1
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.js +3 -3
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.mjs +3 -3
- package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v1/handlers/DidCommBatchHandler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchMessage.js +4 -4
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchMessage.mjs +3 -3
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.js +3 -3
- package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.mjs +2 -2
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.mts +2 -2
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.ts +2 -2
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.ts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.js +5 -5
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.mjs +5 -5
- package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommMessageDeliveryV2Handler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/DidCommStatusV2Handler.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/index.js +1 -1
- package/build/modules/message-pickup/protocol/v2/handlers/index.mjs +1 -1
- package/build/modules/message-pickup/protocol/v2/index.js +1 -1
- package/build/modules/message-pickup/protocol/v2/index.mjs +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommDeliveryRequestV2Message.js +4 -4
- package/build/modules/message-pickup/protocol/v2/messages/DidCommDeliveryRequestV2Message.mjs +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.js +4 -4
- package/build/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.mjs +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.d.mts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.d.ts.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.js +4 -4
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.mjs +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.mjs.map +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessagesReceivedV2Message.js +4 -4
- package/build/modules/message-pickup/protocol/v2/messages/DidCommMessagesReceivedV2Message.mjs +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusRequestV2Message.js +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusRequestV2Message.mjs +2 -2
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.js +4 -4
- package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.mjs +3 -3
- package/build/modules/message-pickup/protocol/v2/messages/index.js +1 -1
- package/build/modules/message-pickup/protocol/v2/messages/index.mjs +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.d.mts.map +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.d.ts.map +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.js +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.mjs +1 -1
- package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.mjs.map +1 -1
- package/build/modules/oob/DidCommOutOfBandApi.d.mts +4 -4
- package/build/modules/oob/DidCommOutOfBandApi.d.mts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandApi.d.ts +4 -4
- package/build/modules/oob/DidCommOutOfBandApi.d.ts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandApi.js +16 -16
- package/build/modules/oob/DidCommOutOfBandApi.mjs +16 -16
- package/build/modules/oob/DidCommOutOfBandApi.mjs.map +1 -1
- package/build/modules/oob/DidCommOutOfBandModule.d.mts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandModule.d.ts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandModule.js +3 -3
- package/build/modules/oob/DidCommOutOfBandModule.mjs +3 -3
- package/build/modules/oob/DidCommOutOfBandModule.mjs.map +1 -1
- package/build/modules/oob/DidCommOutOfBandService.d.mts +2 -2
- package/build/modules/oob/DidCommOutOfBandService.d.mts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandService.d.ts +2 -2
- package/build/modules/oob/DidCommOutOfBandService.d.ts.map +1 -1
- package/build/modules/oob/DidCommOutOfBandService.js +6 -6
- package/build/modules/oob/DidCommOutOfBandService.mjs +6 -6
- package/build/modules/oob/DidCommOutOfBandService.mjs.map +1 -1
- package/build/modules/oob/converters.js +1 -1
- package/build/modules/oob/converters.mjs +1 -1
- package/build/modules/oob/converters.mjs.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.d.mts.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.d.ts.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.js +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.mjs +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.mjs.map +1 -1
- package/build/modules/oob/domain/index.js +2 -2
- package/build/modules/oob/domain/index.mjs +2 -2
- package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.js +1 -1
- package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.mjs +1 -1
- package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.mjs.map +1 -1
- package/build/modules/oob/helpers.mjs.map +1 -1
- package/build/modules/oob/index.js +3 -3
- package/build/modules/oob/index.mjs +3 -3
- package/build/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.js +1 -1
- package/build/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.mjs +1 -1
- package/build/modules/oob/messages/DidCommHandshakeReuseMessage.js +1 -1
- package/build/modules/oob/messages/DidCommHandshakeReuseMessage.mjs +1 -1
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.d.mts.map +1 -1
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.d.ts.map +1 -1
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.js +6 -6
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.mjs +6 -6
- package/build/modules/oob/messages/DidCommOutOfBandInvitation.mjs.map +1 -1
- package/build/modules/oob/messages/index.js +1 -1
- package/build/modules/oob/messages/index.mjs +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRecord.d.mts.map +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRecord.d.ts.map +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRecord.js +2 -2
- package/build/modules/oob/repository/DidCommOutOfBandRecord.mjs +2 -2
- package/build/modules/oob/repository/DidCommOutOfBandRecord.mjs.map +1 -1
- package/build/modules/oob/repository/DidCommOutOfBandRepository.js +2 -2
- package/build/modules/oob/repository/DidCommOutOfBandRepository.mjs +2 -2
- package/build/modules/oob/repository/DidCommOutOfBandRepository.mjs.map +1 -1
- package/build/modules/proofs/DidCommProofsApi.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofsApi.d.ts.map +1 -1
- package/build/modules/proofs/DidCommProofsApi.js +3 -3
- package/build/modules/proofs/DidCommProofsApi.mjs +3 -3
- package/build/modules/proofs/DidCommProofsApi.mjs.map +1 -1
- package/build/modules/proofs/DidCommProofsApiOptions.d.mts +1 -1
- package/build/modules/proofs/DidCommProofsApiOptions.d.ts +1 -1
- package/build/modules/proofs/DidCommProofsModule.d.mts +1 -1
- package/build/modules/proofs/DidCommProofsModule.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofsModule.d.ts +1 -1
- package/build/modules/proofs/DidCommProofsModule.d.ts.map +1 -1
- package/build/modules/proofs/DidCommProofsModule.js +1 -1
- package/build/modules/proofs/DidCommProofsModule.mjs +1 -1
- package/build/modules/proofs/DidCommProofsModule.mjs.map +1 -1
- package/build/modules/proofs/DidCommProofsModuleConfig.d.mts.map +1 -1
- package/build/modules/proofs/DidCommProofsModuleConfig.d.ts.map +1 -1
- package/build/modules/proofs/DidCommProofsModuleConfig.mjs.map +1 -1
- package/build/modules/proofs/formats/DidCommProofFormatServiceOptions.d.mts +1 -1
- package/build/modules/proofs/formats/DidCommProofFormatServiceOptions.d.ts +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.d.mts.map +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.d.ts.map +1 -1
- package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.mjs.map +1 -1
- package/build/modules/proofs/index.js +11 -11
- package/build/modules/proofs/index.mjs +11 -11
- package/build/modules/proofs/models/DidCommProofFormatSpec.js +3 -3
- package/build/modules/proofs/models/DidCommProofFormatSpec.mjs +2 -2
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.mts +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.mts.map +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.ts +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.ts.map +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.js +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.mjs +1 -1
- package/build/modules/proofs/protocol/DidCommBaseProofProtocol.mjs.map +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocol.d.mts +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocol.d.ts +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocolOptions.d.mts +1 -1
- package/build/modules/proofs/protocol/DidCommProofProtocolOptions.d.ts +1 -1
- package/build/modules/proofs/protocol/index.js +1 -1
- package/build/modules/proofs/protocol/index.mjs +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.js +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.mjs +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.mts +4 -4
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.ts +4 -4
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.ts.map +1 -1
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.js +12 -12
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.mjs +12 -12
- package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.mts +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.mts.map +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.ts +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.ts.map +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.js +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.mjs +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommProposePresentationV2Handler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/DidCommRequestPresentationV2Handler.mjs.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2AckMessage.js +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2AckMessage.mjs +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2Message.js +4 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2Message.mjs +3 -3
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2ProblemReportMessage.js +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2ProblemReportMessage.mjs +1 -1
- package/build/modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.js +4 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.mjs +3 -3
- package/build/modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.js +4 -4
- package/build/modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.mjs +3 -3
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.mts +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.mts.map +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.ts +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.ts.map +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRecord.mjs.map +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRepository.js +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRepository.mjs +1 -1
- package/build/modules/proofs/repository/DidCommProofExchangeRepository.mjs.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientApi.d.mts +3 -3
- package/build/modules/routing/DidCommMediationRecipientApi.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientApi.d.ts +3 -3
- package/build/modules/routing/DidCommMediationRecipientApi.d.ts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientApi.js +8 -8
- package/build/modules/routing/DidCommMediationRecipientApi.mjs +8 -8
- package/build/modules/routing/DidCommMediationRecipientApi.mjs.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientModule.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientModule.d.ts.map +1 -1
- package/build/modules/routing/DidCommMediationRecipientModule.js +4 -4
- package/build/modules/routing/DidCommMediationRecipientModule.mjs +4 -4
- package/build/modules/routing/DidCommMediationRecipientModule.mjs.map +1 -1
- package/build/modules/routing/DidCommMediatorApi.d.mts +1 -1
- package/build/modules/routing/DidCommMediatorApi.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediatorApi.d.ts +1 -1
- package/build/modules/routing/DidCommMediatorApi.d.ts.map +1 -1
- package/build/modules/routing/DidCommMediatorApi.js +2 -2
- package/build/modules/routing/DidCommMediatorApi.mjs +2 -2
- package/build/modules/routing/DidCommMediatorApi.mjs.map +1 -1
- package/build/modules/routing/DidCommMediatorModule.d.mts.map +1 -1
- package/build/modules/routing/DidCommMediatorModule.d.ts.map +1 -1
- package/build/modules/routing/DidCommMediatorModule.js +7 -7
- package/build/modules/routing/DidCommMediatorModule.mjs +7 -7
- package/build/modules/routing/DidCommMediatorModule.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommForwardHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommKeylistUpdateHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommKeylistUpdateResponseHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommMediationDenyHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommMediationGrantHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/DidCommMediationRequestHandler.mjs.map +1 -1
- package/build/modules/routing/handlers/index.js +1 -1
- package/build/modules/routing/handlers/index.mjs +1 -1
- package/build/modules/routing/index.js +4 -4
- package/build/modules/routing/index.mjs +4 -4
- package/build/modules/routing/messages/DidCommForwardMessage.js +3 -3
- package/build/modules/routing/messages/DidCommForwardMessage.mjs +2 -2
- package/build/modules/routing/messages/DidCommKeylistUpdateMessage.js +3 -3
- package/build/modules/routing/messages/DidCommKeylistUpdateMessage.mjs +2 -2
- package/build/modules/routing/messages/DidCommKeylistUpdateResponseMessage.js +3 -3
- package/build/modules/routing/messages/DidCommKeylistUpdateResponseMessage.mjs +2 -2
- package/build/modules/routing/messages/DidCommMediationDenyMessage.js +1 -1
- package/build/modules/routing/messages/DidCommMediationDenyMessage.mjs +1 -1
- package/build/modules/routing/messages/DidCommMediationGrantMessage.js +3 -3
- package/build/modules/routing/messages/DidCommMediationGrantMessage.mjs +2 -2
- package/build/modules/routing/messages/DidCommMediationRequestMessage.js +1 -1
- package/build/modules/routing/messages/DidCommMediationRequestMessage.mjs +1 -1
- package/build/modules/routing/messages/index.js +1 -1
- package/build/modules/routing/messages/index.mjs +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.d.mts +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.d.mts.map +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.d.ts +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.d.ts.map +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.js +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.mjs +1 -1
- package/build/modules/routing/repository/DidCommMediationRecord.mjs.map +1 -1
- package/build/modules/routing/repository/DidCommMediationRepository.js +1 -1
- package/build/modules/routing/repository/DidCommMediationRepository.mjs +1 -1
- package/build/modules/routing/repository/DidCommMediationRepository.mjs.map +1 -1
- package/build/modules/routing/repository/DidCommMediatorRoutingRepository.js +1 -1
- package/build/modules/routing/repository/DidCommMediatorRoutingRepository.mjs +1 -1
- package/build/modules/routing/repository/DidCommMediatorRoutingRepository.mjs.map +1 -1
- package/build/modules/routing/services/DidCommMediationRecipientService.d.mts +2 -2
- package/build/modules/routing/services/DidCommMediationRecipientService.d.mts.map +1 -1
- package/build/modules/routing/services/DidCommMediationRecipientService.d.ts +2 -2
- package/build/modules/routing/services/DidCommMediationRecipientService.d.ts.map +1 -1
- package/build/modules/routing/services/DidCommMediationRecipientService.js +4 -4
- package/build/modules/routing/services/DidCommMediationRecipientService.mjs +4 -4
- package/build/modules/routing/services/DidCommMediationRecipientService.mjs.map +1 -1
- package/build/modules/routing/services/DidCommMediatorService.d.mts.map +1 -1
- package/build/modules/routing/services/DidCommMediatorService.d.ts.map +1 -1
- package/build/modules/routing/services/DidCommMediatorService.js +3 -3
- package/build/modules/routing/services/DidCommMediatorService.mjs +3 -3
- package/build/modules/routing/services/DidCommMediatorService.mjs.map +1 -1
- package/build/modules/routing/services/DidCommRoutingService.d.mts.map +1 -1
- package/build/modules/routing/services/DidCommRoutingService.d.ts.map +1 -1
- package/build/modules/routing/services/DidCommRoutingService.js +1 -1
- package/build/modules/routing/services/DidCommRoutingService.mjs +1 -1
- package/build/modules/routing/services/DidCommRoutingService.mjs.map +1 -1
- package/build/repository/DidCommMessageRecord.d.mts.map +1 -1
- package/build/repository/DidCommMessageRecord.d.ts.map +1 -1
- package/build/repository/DidCommMessageRecord.mjs.map +1 -1
- package/build/repository/DidCommMessageRepository.d.mts.map +1 -1
- package/build/repository/DidCommMessageRepository.d.ts.map +1 -1
- package/build/repository/DidCommMessageRepository.js +1 -1
- package/build/repository/DidCommMessageRepository.mjs +1 -1
- package/build/repository/DidCommMessageRepository.mjs.map +1 -1
- package/build/repository/index.js +1 -1
- package/build/repository/index.mjs +1 -1
- package/build/services/DidCommDocumentService.d.mts.map +1 -1
- package/build/services/DidCommDocumentService.d.ts.map +1 -1
- package/build/services/DidCommDocumentService.js +1 -1
- package/build/services/DidCommDocumentService.mjs +1 -1
- package/build/services/DidCommDocumentService.mjs.map +1 -1
- package/build/transport/DidCommHttpOutboundTransport.d.mts.map +1 -1
- package/build/transport/DidCommHttpOutboundTransport.d.ts.map +1 -1
- package/build/transport/DidCommHttpOutboundTransport.js +3 -3
- package/build/transport/DidCommHttpOutboundTransport.mjs +3 -3
- package/build/transport/DidCommHttpOutboundTransport.mjs.map +1 -1
- package/build/transport/DidCommWsOutboundTransport.d.mts.map +1 -1
- package/build/transport/DidCommWsOutboundTransport.d.ts.map +1 -1
- package/build/transport/DidCommWsOutboundTransport.mjs.map +1 -1
- package/build/transport/index.js +2 -2
- package/build/transport/index.mjs +2 -2
- package/build/transport/queue/DidCommQueueTransportRepository.d.mts +1 -1
- package/build/transport/queue/DidCommQueueTransportRepository.d.ts +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.d.mts +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.d.mts.map +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.d.ts +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.d.ts.map +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.js +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.mjs +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.mjs.map +1 -1
- package/build/transport/queue/index.js +1 -1
- package/build/transport/queue/index.mjs +1 -1
- package/build/updates/0.1-0.2/connection.js +3 -3
- package/build/updates/0.1-0.2/connection.mjs +3 -3
- package/build/updates/0.1-0.2/connection.mjs.map +1 -1
- package/build/updates/0.1-0.2/credential.js +1 -1
- package/build/updates/0.1-0.2/credential.mjs +1 -1
- package/build/updates/0.1-0.2/credential.mjs.map +1 -1
- package/build/updates/0.2-0.3/proof.js +1 -1
- package/build/updates/0.2-0.3/proof.mjs +1 -1
- package/build/updates/0.2-0.3/proof.mjs.map +1 -1
- package/build/updates/0.4-0.5/credentialExchangeRecord.js +2 -2
- package/build/updates/0.4-0.5/credentialExchangeRecord.mjs +2 -2
- package/build/updates/0.4-0.5/credentialExchangeRecord.mjs.map +1 -1
- package/build/updates/0.4-0.5/proofExchangeRecord.js +2 -2
- package/build/updates/0.4-0.5/proofExchangeRecord.mjs +2 -2
- package/build/util/DidCommLinkedAttachment.js +3 -3
- package/build/util/DidCommLinkedAttachment.mjs +2 -2
- package/build/util/JWE.mjs.map +1 -1
- package/build/util/attachment.d.mts.map +1 -1
- package/build/util/attachment.d.ts.map +1 -1
- package/build/util/attachment.mjs.map +1 -1
- package/build/util/messageType.d.mts +37 -1
- package/build/util/messageType.d.mts.map +1 -1
- package/build/util/messageType.d.ts +37 -1
- package/build/util/messageType.d.ts.map +1 -1
- package/build/util/messageType.js +4 -4
- package/build/util/messageType.mjs +4 -4
- package/build/util/messageType.mjs.map +1 -1
- package/build/util/parseInvitation.d.mts +8 -1
- package/build/util/parseInvitation.d.mts.map +1 -1
- package/build/util/parseInvitation.d.ts +8 -1
- package/build/util/parseInvitation.d.ts.map +1 -1
- package/build/util/parseInvitation.js +6 -5
- package/build/util/parseInvitation.mjs +7 -7
- package/build/util/parseInvitation.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential.mjs","names":[],"sources":["../../../src/updates/0.1-0.2/credential.ts"],"sourcesContent":["import type { BaseAgent, JsonObject } from '@credo-ts/core'\nimport type { DidCommCredentialExchangeRecord } from '../../modules/credentials'\nimport type { DidCommPlaintextMessage } from '../../types'\n\nimport { Metadata } from '@credo-ts/core'\n\nimport { DidCommCredentialState } from '../../modules/credentials/models/DidCommCredentialState'\nimport { DidCommCredentialExchangeRepository } from '../../modules/credentials/repository/DidCommCredentialExchangeRepository'\nimport { DidCommMessageRecord, DidCommMessageRepository, DidCommMessageRole } from '../../repository'\n\n/**\n * Migrates the {@link CredentialRecord} to 0.2 compatible format. It fetches all records from storage\n * and applies the needed updates to the records. After a record has been transformed, it is updated\n * in storage and the next record will be transformed.\n *\n * The following transformations are applied:\n * - {@link updateIndyMetadata}\n */\nexport async function migrateCredentialRecordToV0_2<Agent extends BaseAgent>(agent: Agent) {\n agent.config.logger.info('Migrating credential records to storage version 0.2')\n const credentialRepository = agent.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n agent.config.logger.debug('Fetching all credential records from storage')\n const allCredentials = await credentialRepository.getAll(agent.context)\n\n agent.config.logger.debug(`Found a total of ${allCredentials.length} credential records to update.`)\n for (const credentialRecord of allCredentials) {\n agent.config.logger.debug(`Migrating credential record with id ${credentialRecord.id} to storage version 0.2`)\n\n await updateIndyMetadata(agent, credentialRecord)\n await migrateInternalCredentialRecordProperties(agent, credentialRecord)\n await moveDidCommMessages(agent, credentialRecord)\n\n await credentialRepository.update(agent.context, credentialRecord)\n\n agent.config.logger.debug(\n `Successfully migrated credential record with id ${credentialRecord.id} to storage version 0.2`\n )\n }\n}\n\nexport enum V01_02MigrationCredentialRole {\n Issuer = 0,\n Holder = 1,\n}\n\nconst holderCredentialStates = [\n DidCommCredentialState.Declined,\n DidCommCredentialState.ProposalSent,\n DidCommCredentialState.OfferReceived,\n DidCommCredentialState.RequestSent,\n DidCommCredentialState.CredentialReceived,\n]\n\nconst didCommMessageRoleMapping = {\n [V01_02MigrationCredentialRole.Issuer]: {\n proposalMessage: DidCommMessageRole.Receiver,\n offerMessage: DidCommMessageRole.Sender,\n requestMessage: DidCommMessageRole.Receiver,\n credentialMessage: DidCommMessageRole.Sender,\n },\n [V01_02MigrationCredentialRole.Holder]: {\n proposalMessage: DidCommMessageRole.Sender,\n offerMessage: DidCommMessageRole.Receiver,\n requestMessage: DidCommMessageRole.Sender,\n credentialMessage: DidCommMessageRole.Receiver,\n },\n}\n\nconst credentialRecordMessageKeys = ['proposalMessage', 'offerMessage', 'requestMessage', 'credentialMessage'] as const\n\nexport function getCredentialRole(credentialRecord: DidCommCredentialExchangeRecord) {\n // Credentials will only have a value when a credential is received, meaning we're the holder\n if (credentialRecord.credentials.length > 0) {\n return V01_02MigrationCredentialRole.Holder\n }\n // If credentialRecord.credentials doesn't have any values, and we're also not in state done it means we're the issuer.\n if (credentialRecord.state === DidCommCredentialState.Done) {\n return V01_02MigrationCredentialRole.Issuer\n }\n // For these states we know for certain that we're the holder\n if (holderCredentialStates.includes(credentialRecord.state)) {\n return V01_02MigrationCredentialRole.Holder\n }\n\n // For all other states we can be certain we're the issuer\n return V01_02MigrationCredentialRole.Issuer\n}\n\n/**\n * The credential record had a custom `metadata` property in pre-0.1.0 storage that contained the `requestMetadata`, `schemaId` and `credentialDefinition`\n * properties. Later a generic metadata API was added that only allows objects to be stored. Therefore the properties were moved into a different structure.\n *\n * This migration method updates the top level properties to the new nested metadata structure.\n *\n * The following pre-0.1.0 structure:\n *\n * ```json\n * {\n * \"requestMetadata\": \"<value of requestMetadata>\",\n * \"schemaId\": \"<value of schemaId>\",\n * \"credentialDefinitionId\": \"<value of credential definition id>\"\n * }\n * ```\n *\n * Will be transformed into the following 0.2.0 structure:\n *\n * ```json\n * {\n * \"_internal/indyRequest\": <value of requestMetadata>,\n * \"_internal/indyCredential\": {\n * \"schemaId\": \"<value of schemaId>\",\n * \"credentialDefinitionId\": \"<value of credential definition id>\"\n * }\n * }\n * ```\n */\nexport async function updateIndyMetadata<Agent extends BaseAgent>(\n agent: Agent,\n credentialRecord: DidCommCredentialExchangeRecord\n) {\n agent.config.logger.debug('Updating indy metadata to use the generic metadata api available to records.')\n\n const { requestMetadata, schemaId, credentialDefinitionId, ...rest } = credentialRecord.metadata.data\n const metadata = new Metadata<Record<string, unknown>>(rest)\n\n const indyRequestMetadataKey = '_internal/indyRequest'\n const indyCredentialMetadataKey = '_internal/indyCredential'\n if (requestMetadata) {\n agent.config.logger.trace(`Found top-level 'requestMetadata' key, moving to '${indyRequestMetadataKey}'`)\n metadata.add(indyRequestMetadataKey, { ...requestMetadata })\n }\n\n if (schemaId && typeof schemaId === 'string') {\n agent.config.logger.trace(`Found top-level 'schemaId' key, moving to '${indyCredentialMetadataKey}.schemaId'`)\n metadata.add(indyCredentialMetadataKey, { schemaId })\n }\n\n if (credentialDefinitionId && typeof credentialDefinitionId === 'string') {\n agent.config.logger.trace(\n `Found top-level 'credentialDefinitionId' key, moving to '${indyCredentialMetadataKey}.credentialDefinitionId'`\n )\n metadata.add(indyCredentialMetadataKey, { credentialDefinitionId })\n }\n\n credentialRecord.metadata = metadata\n}\n\n/**\n * With the addition of support for different protocol versions the credential record now stores the protocol version.\n * With the addition of issue credential v2 support, other credential formats than indy can be used, and multiple credentials can be issued at once. To\n * account for this the `credentialId` has been replaced by the `credentials` array. This is an array of objects containing the `credentialRecordId` and\n * the `credentialRecordType`. For all current credentials the `credentialRecordType` will always be `indy`.\n *\n * The following 0.1.0 credential record structure (unrelated keys omitted):\n *\n * ```json\n * {\n * \"credentialId\": \"09e46da9-a575-4909-b016-040e96c3c539\"\n * }\n * ```\n *\n * Will be transformed into the following 0.2.0 structure (unrelated keys omitted):\n *\n * ```json\n * {\n * \"protocolVersion: \"v1\",\n * \"credentials\": [\n * {\n * \"credentialRecordId\": \"09e46da9-a575-4909-b016-040e96c3c539\",\n * \"credentialRecordType\": \"anoncreds\"\n * }\n * ]\n * }\n * ```\n */\nexport async function migrateInternalCredentialRecordProperties<Agent extends BaseAgent>(\n agent: Agent,\n credentialRecord: DidCommCredentialExchangeRecord\n) {\n agent.config.logger.debug(\n `Migrating internal credential record ${credentialRecord.id} properties to storage version 0.2`\n )\n\n if (!credentialRecord.protocolVersion) {\n agent.config.logger.debug('Setting protocolVersion to v1')\n credentialRecord.protocolVersion = 'v1'\n }\n\n const untypedCredentialRecord = credentialRecord as unknown as JsonObject\n\n if (untypedCredentialRecord.credentialId) {\n agent.config.logger.debug(`Migrating indy credentialId ${untypedCredentialRecord.id} to credentials array`)\n credentialRecord.credentials = [\n {\n credentialRecordId: untypedCredentialRecord.credentialId as string,\n credentialRecordType: 'indy',\n },\n ]\n\n // biome-ignore lint/performance/noDelete: <explanation>\n delete untypedCredentialRecord.credentialId\n }\n\n agent.config.logger.debug(\n `Successfully migrated internal credential record ${credentialRecord.id} properties to storage version 0.2`\n )\n}\n\n/**\n * In 0.2.0 the v1 didcomm messages have been moved out of the credential record into separate record using the DidCommMessageRepository.\n * This migration scripts extracts all message (proposalMessage, offerMessage, requestMessage, credentialMessage) and moves\n * them into the DidCommMessageRepository.\n */\nexport async function moveDidCommMessages<Agent extends BaseAgent>(\n agent: Agent,\n credentialRecord: DidCommCredentialExchangeRecord\n) {\n agent.config.logger.debug(\n `Moving didcomm messages from credential record with id ${credentialRecord.id} to DidCommMessageRecord`\n )\n const didCommMessageRepository = agent.dependencyManager.resolve(DidCommMessageRepository)\n\n for (const messageKey of credentialRecordMessageKeys) {\n agent.config.logger.debug(\n `Starting move of ${messageKey} from credential record with id ${credentialRecord.id} to DIDCommMessageRecord`\n )\n const credentialRecordJson = credentialRecord as unknown as JsonObject\n const message = credentialRecordJson[messageKey] as DidCommPlaintextMessage | undefined\n\n if (message) {\n const credentialRole = getCredentialRole(credentialRecord)\n const didCommMessageRole = didCommMessageRoleMapping[credentialRole][messageKey]\n\n const didCommMessageRecord = new DidCommMessageRecord({\n role: didCommMessageRole,\n associatedRecordId: credentialRecord.id,\n message,\n })\n await didCommMessageRepository.save(agent.context, didCommMessageRecord)\n\n agent.config.logger.debug(\n `Successfully moved ${messageKey} from credential record with id ${credentialRecord.id} to DIDCommMessageRecord`\n )\n\n delete credentialRecordJson[messageKey]\n } else {\n agent.config.logger.debug(\n `Credential record with id ${credentialRecord.id} does not have a ${messageKey}. Not creating a DIDCommMessageRecord`\n )\n }\n }\n\n agent.config.logger.debug(\n `Successfully moved didcomm messages from credential record with id ${credentialRecord.id} to DIDCommMessageRecord`\n )\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"credential.mjs","names":[],"sources":["../../../src/updates/0.1-0.2/credential.ts"],"sourcesContent":["import type { BaseAgent, JsonObject } from '@credo-ts/core'\nimport { Metadata } from '@credo-ts/core'\nimport type { DidCommCredentialExchangeRecord } from '../../modules/credentials'\nimport { DidCommCredentialState } from '../../modules/credentials/models/DidCommCredentialState'\nimport { DidCommCredentialExchangeRepository } from '../../modules/credentials/repository/DidCommCredentialExchangeRepository'\nimport { DidCommMessageRecord, DidCommMessageRepository, DidCommMessageRole } from '../../repository'\nimport type { DidCommPlaintextMessage } from '../../types'\n\n/**\n * Migrates the {@link CredentialRecord} to 0.2 compatible format. It fetches all records from storage\n * and applies the needed updates to the records. After a record has been transformed, it is updated\n * in storage and the next record will be transformed.\n *\n * The following transformations are applied:\n * - {@link updateIndyMetadata}\n */\nexport async function migrateCredentialRecordToV0_2<Agent extends BaseAgent>(agent: Agent) {\n agent.config.logger.info('Migrating credential records to storage version 0.2')\n const credentialRepository = agent.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n agent.config.logger.debug('Fetching all credential records from storage')\n const allCredentials = await credentialRepository.getAll(agent.context)\n\n agent.config.logger.debug(`Found a total of ${allCredentials.length} credential records to update.`)\n for (const credentialRecord of allCredentials) {\n agent.config.logger.debug(`Migrating credential record with id ${credentialRecord.id} to storage version 0.2`)\n\n await updateIndyMetadata(agent, credentialRecord)\n await migrateInternalCredentialRecordProperties(agent, credentialRecord)\n await moveDidCommMessages(agent, credentialRecord)\n\n await credentialRepository.update(agent.context, credentialRecord)\n\n agent.config.logger.debug(\n `Successfully migrated credential record with id ${credentialRecord.id} to storage version 0.2`\n )\n }\n}\n\nexport enum V01_02MigrationCredentialRole {\n Issuer = 0,\n Holder = 1,\n}\n\nconst holderCredentialStates = [\n DidCommCredentialState.Declined,\n DidCommCredentialState.ProposalSent,\n DidCommCredentialState.OfferReceived,\n DidCommCredentialState.RequestSent,\n DidCommCredentialState.CredentialReceived,\n]\n\nconst didCommMessageRoleMapping = {\n [V01_02MigrationCredentialRole.Issuer]: {\n proposalMessage: DidCommMessageRole.Receiver,\n offerMessage: DidCommMessageRole.Sender,\n requestMessage: DidCommMessageRole.Receiver,\n credentialMessage: DidCommMessageRole.Sender,\n },\n [V01_02MigrationCredentialRole.Holder]: {\n proposalMessage: DidCommMessageRole.Sender,\n offerMessage: DidCommMessageRole.Receiver,\n requestMessage: DidCommMessageRole.Sender,\n credentialMessage: DidCommMessageRole.Receiver,\n },\n}\n\nconst credentialRecordMessageKeys = ['proposalMessage', 'offerMessage', 'requestMessage', 'credentialMessage'] as const\n\nexport function getCredentialRole(credentialRecord: DidCommCredentialExchangeRecord) {\n // Credentials will only have a value when a credential is received, meaning we're the holder\n if (credentialRecord.credentials.length > 0) {\n return V01_02MigrationCredentialRole.Holder\n }\n // If credentialRecord.credentials doesn't have any values, and we're also not in state done it means we're the issuer.\n if (credentialRecord.state === DidCommCredentialState.Done) {\n return V01_02MigrationCredentialRole.Issuer\n }\n // For these states we know for certain that we're the holder\n if (holderCredentialStates.includes(credentialRecord.state)) {\n return V01_02MigrationCredentialRole.Holder\n }\n\n // For all other states we can be certain we're the issuer\n return V01_02MigrationCredentialRole.Issuer\n}\n\n/**\n * The credential record had a custom `metadata` property in pre-0.1.0 storage that contained the `requestMetadata`, `schemaId` and `credentialDefinition`\n * properties. Later a generic metadata API was added that only allows objects to be stored. Therefore the properties were moved into a different structure.\n *\n * This migration method updates the top level properties to the new nested metadata structure.\n *\n * The following pre-0.1.0 structure:\n *\n * ```json\n * {\n * \"requestMetadata\": \"<value of requestMetadata>\",\n * \"schemaId\": \"<value of schemaId>\",\n * \"credentialDefinitionId\": \"<value of credential definition id>\"\n * }\n * ```\n *\n * Will be transformed into the following 0.2.0 structure:\n *\n * ```json\n * {\n * \"_internal/indyRequest\": <value of requestMetadata>,\n * \"_internal/indyCredential\": {\n * \"schemaId\": \"<value of schemaId>\",\n * \"credentialDefinitionId\": \"<value of credential definition id>\"\n * }\n * }\n * ```\n */\nexport async function updateIndyMetadata<Agent extends BaseAgent>(\n agent: Agent,\n credentialRecord: DidCommCredentialExchangeRecord\n) {\n agent.config.logger.debug('Updating indy metadata to use the generic metadata api available to records.')\n\n const { requestMetadata, schemaId, credentialDefinitionId, ...rest } = credentialRecord.metadata.data\n const metadata = new Metadata<Record<string, unknown>>(rest)\n\n const indyRequestMetadataKey = '_internal/indyRequest'\n const indyCredentialMetadataKey = '_internal/indyCredential'\n if (requestMetadata) {\n agent.config.logger.trace(`Found top-level 'requestMetadata' key, moving to '${indyRequestMetadataKey}'`)\n metadata.add(indyRequestMetadataKey, { ...requestMetadata })\n }\n\n if (schemaId && typeof schemaId === 'string') {\n agent.config.logger.trace(`Found top-level 'schemaId' key, moving to '${indyCredentialMetadataKey}.schemaId'`)\n metadata.add(indyCredentialMetadataKey, { schemaId })\n }\n\n if (credentialDefinitionId && typeof credentialDefinitionId === 'string') {\n agent.config.logger.trace(\n `Found top-level 'credentialDefinitionId' key, moving to '${indyCredentialMetadataKey}.credentialDefinitionId'`\n )\n metadata.add(indyCredentialMetadataKey, { credentialDefinitionId })\n }\n\n credentialRecord.metadata = metadata\n}\n\n/**\n * With the addition of support for different protocol versions the credential record now stores the protocol version.\n * With the addition of issue credential v2 support, other credential formats than indy can be used, and multiple credentials can be issued at once. To\n * account for this the `credentialId` has been replaced by the `credentials` array. This is an array of objects containing the `credentialRecordId` and\n * the `credentialRecordType`. For all current credentials the `credentialRecordType` will always be `indy`.\n *\n * The following 0.1.0 credential record structure (unrelated keys omitted):\n *\n * ```json\n * {\n * \"credentialId\": \"09e46da9-a575-4909-b016-040e96c3c539\"\n * }\n * ```\n *\n * Will be transformed into the following 0.2.0 structure (unrelated keys omitted):\n *\n * ```json\n * {\n * \"protocolVersion: \"v1\",\n * \"credentials\": [\n * {\n * \"credentialRecordId\": \"09e46da9-a575-4909-b016-040e96c3c539\",\n * \"credentialRecordType\": \"anoncreds\"\n * }\n * ]\n * }\n * ```\n */\nexport async function migrateInternalCredentialRecordProperties<Agent extends BaseAgent>(\n agent: Agent,\n credentialRecord: DidCommCredentialExchangeRecord\n) {\n agent.config.logger.debug(\n `Migrating internal credential record ${credentialRecord.id} properties to storage version 0.2`\n )\n\n if (!credentialRecord.protocolVersion) {\n agent.config.logger.debug('Setting protocolVersion to v1')\n credentialRecord.protocolVersion = 'v1'\n }\n\n const untypedCredentialRecord = credentialRecord as unknown as JsonObject\n\n if (untypedCredentialRecord.credentialId) {\n agent.config.logger.debug(`Migrating indy credentialId ${untypedCredentialRecord.id} to credentials array`)\n credentialRecord.credentials = [\n {\n credentialRecordId: untypedCredentialRecord.credentialId as string,\n credentialRecordType: 'indy',\n },\n ]\n\n // biome-ignore lint/performance/noDelete: no explanation\n delete untypedCredentialRecord.credentialId\n }\n\n agent.config.logger.debug(\n `Successfully migrated internal credential record ${credentialRecord.id} properties to storage version 0.2`\n )\n}\n\n/**\n * In 0.2.0 the v1 didcomm messages have been moved out of the credential record into separate record using the DidCommMessageRepository.\n * This migration scripts extracts all message (proposalMessage, offerMessage, requestMessage, credentialMessage) and moves\n * them into the DidCommMessageRepository.\n */\nexport async function moveDidCommMessages<Agent extends BaseAgent>(\n agent: Agent,\n credentialRecord: DidCommCredentialExchangeRecord\n) {\n agent.config.logger.debug(\n `Moving didcomm messages from credential record with id ${credentialRecord.id} to DidCommMessageRecord`\n )\n const didCommMessageRepository = agent.dependencyManager.resolve(DidCommMessageRepository)\n\n for (const messageKey of credentialRecordMessageKeys) {\n agent.config.logger.debug(\n `Starting move of ${messageKey} from credential record with id ${credentialRecord.id} to DIDCommMessageRecord`\n )\n const credentialRecordJson = credentialRecord as unknown as JsonObject\n const message = credentialRecordJson[messageKey] as DidCommPlaintextMessage | undefined\n\n if (message) {\n const credentialRole = getCredentialRole(credentialRecord)\n const didCommMessageRole = didCommMessageRoleMapping[credentialRole][messageKey]\n\n const didCommMessageRecord = new DidCommMessageRecord({\n role: didCommMessageRole,\n associatedRecordId: credentialRecord.id,\n message,\n })\n await didCommMessageRepository.save(agent.context, didCommMessageRecord)\n\n agent.config.logger.debug(\n `Successfully moved ${messageKey} from credential record with id ${credentialRecord.id} to DIDCommMessageRecord`\n )\n\n delete credentialRecordJson[messageKey]\n } else {\n agent.config.logger.debug(\n `Credential record with id ${credentialRecord.id} does not have a ${messageKey}. Not creating a DIDCommMessageRecord`\n )\n }\n }\n\n agent.config.logger.debug(\n `Successfully moved didcomm messages from credential record with id ${credentialRecord.id} to DIDCommMessageRecord`\n )\n}\n"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_DidCommMessageRecord = require('../../repository/DidCommMessageRecord.js');
|
|
2
|
-
const require_DidCommMessageRole = require('../../repository/DidCommMessageRole.js');
|
|
3
2
|
const require_DidCommMessageRepository = require('../../repository/DidCommMessageRepository.js');
|
|
3
|
+
const require_DidCommMessageRole = require('../../repository/DidCommMessageRole.js');
|
|
4
4
|
require('../../repository/index.js');
|
|
5
5
|
const require_DidCommProofState = require('../../modules/proofs/models/DidCommProofState.js');
|
|
6
6
|
const require_DidCommProofExchangeRepository = require('../../modules/proofs/repository/DidCommProofExchangeRepository.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DidCommMessageRecord } from "../../repository/DidCommMessageRecord.mjs";
|
|
2
|
-
import { DidCommMessageRole } from "../../repository/DidCommMessageRole.mjs";
|
|
3
2
|
import { DidCommMessageRepository } from "../../repository/DidCommMessageRepository.mjs";
|
|
3
|
+
import { DidCommMessageRole } from "../../repository/DidCommMessageRole.mjs";
|
|
4
4
|
import "../../repository/index.mjs";
|
|
5
5
|
import { DidCommProofState } from "../../modules/proofs/models/DidCommProofState.mjs";
|
|
6
6
|
import { DidCommProofExchangeRepository } from "../../modules/proofs/repository/DidCommProofExchangeRepository.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof.mjs","names":[],"sources":["../../../src/updates/0.2-0.3/proof.ts"],"sourcesContent":["import type { BaseAgent, JsonObject } from '@credo-ts/core'\nimport
|
|
1
|
+
{"version":3,"file":"proof.mjs","names":[],"sources":["../../../src/updates/0.2-0.3/proof.ts"],"sourcesContent":["import type { BaseAgent, JsonObject } from '@credo-ts/core'\nimport {\n type DidCommProofExchangeRecord,\n DidCommProofExchangeRepository,\n DidCommProofState,\n} from '../../modules/proofs'\nimport { DidCommMessageRecord, DidCommMessageRepository, DidCommMessageRole } from '../../repository'\nimport type { DidCommPlaintextMessage } from '../../types'\n\n/**\n * Migrates the {@link DidCommProofExchangeRecord} to 0.3 compatible format. It fetches all records from storage\n * and applies the needed updates to the records. After a record has been transformed, it is updated\n * in storage and the next record will be transformed.\n *\n * The following transformations are applied:\n * - {@link migrateInternalProofExchangeRecordProperties}\n * - {@link moveDidCommMessages}\n */\nexport async function migrateProofExchangeRecordToV0_3<Agent extends BaseAgent>(agent: Agent) {\n agent.config.logger.info('Migrating proof records to storage version 0.3')\n const proofRepository = agent.dependencyManager.resolve(DidCommProofExchangeRepository)\n\n agent.config.logger.debug('Fetching all proof records from storage')\n const allProofs = await proofRepository.getAll(agent.context)\n\n agent.config.logger.debug(`Found a total of ${allProofs.length} proof records to update.`)\n for (const proofRecord of allProofs) {\n agent.config.logger.debug(`Migrating proof record with id ${proofRecord.id} to storage version 0.3`)\n\n await migrateInternalProofExchangeRecordProperties(agent, proofRecord)\n await moveDidCommMessages(agent, proofRecord)\n\n await proofRepository.update(agent.context, proofRecord)\n\n agent.config.logger.debug(`Successfully migrated proof record with id ${proofRecord.id} to storage version 0.3`)\n }\n}\n\nexport enum V02_03MigrationProofRole {\n Verifier = 0,\n Prover = 1,\n}\n\nconst proverProofStates = [\n DidCommProofState.Declined,\n DidCommProofState.ProposalSent,\n DidCommProofState.RequestReceived,\n DidCommProofState.PresentationSent,\n DidCommProofState.Done,\n]\n\nconst didCommMessageRoleMapping = {\n [V02_03MigrationProofRole.Verifier]: {\n proposalMessage: DidCommMessageRole.Receiver,\n requestMessage: DidCommMessageRole.Sender,\n presentationMessage: DidCommMessageRole.Receiver,\n },\n [V02_03MigrationProofRole.Prover]: {\n proposalMessage: DidCommMessageRole.Sender,\n requestMessage: DidCommMessageRole.Receiver,\n presentationMessage: DidCommMessageRole.Sender,\n },\n}\n\nconst proofRecordMessageKeys = ['proposalMessage', 'requestMessage', 'presentationMessage'] as const\n\nexport function getProofRole(proofRecord: DidCommProofExchangeRecord) {\n // Proofs will only have an isVerified value when a presentation is verified, meaning we're the verifier\n if (proofRecord.isVerified !== undefined) {\n return V02_03MigrationProofRole.Verifier\n }\n // If proofRecord.isVerified doesn't have any value, and we're also not in state done it means we're the prover.\n if (proofRecord.state === DidCommProofState.Done) {\n return V02_03MigrationProofRole.Prover\n }\n // For these states we know for certain that we're the prover\n if (proverProofStates.includes(proofRecord.state)) {\n return V02_03MigrationProofRole.Prover\n }\n\n // For all other states we can be certain we're the verifier\n return V02_03MigrationProofRole.Verifier\n}\n\n/**\n * With the addition of support for different protocol versions the proof record now stores the protocol version.\n *\n * The following 0.2.0 proof record structure (unrelated keys omitted):\n *\n * ```json\n * {\n * }\n * ```\n *\n * Will be transformed into the following 0.3.0 structure (unrelated keys omitted):\n *\n * ```json\n * {\n * \"protocolVersion: \"v1\"\n * }\n * ```\n */\nexport async function migrateInternalProofExchangeRecordProperties<Agent extends BaseAgent>(\n agent: Agent,\n proofRecord: DidCommProofExchangeRecord\n) {\n agent.config.logger.debug(`Migrating internal proof record ${proofRecord.id} properties to storage version 0.3`)\n\n if (!proofRecord.protocolVersion) {\n agent.config.logger.debug('Setting protocolVersion to v1')\n proofRecord.protocolVersion = 'v1'\n }\n\n agent.config.logger.debug(\n `Successfully migrated internal proof record ${proofRecord.id} properties to storage version 0.3`\n )\n}\n\n/**\n * In 0.3.0 the v1 didcomm messages have been moved out of the proof record into separate record using the DidCommMessageRepository.\n * This migration scripts extracts all message (proposalMessage, requestMessage, presentationMessage) and moves\n * them into the DidCommMessageRepository.\n */\nexport async function moveDidCommMessages<Agent extends BaseAgent>(\n agent: Agent,\n proofRecord: DidCommProofExchangeRecord\n) {\n agent.config.logger.debug(\n `Moving didcomm messages from proof record with id ${proofRecord.id} to DidCommMessageRecord`\n )\n const didCommMessageRepository = agent.dependencyManager.resolve(DidCommMessageRepository)\n\n for (const messageKey of proofRecordMessageKeys) {\n agent.config.logger.debug(\n `Starting move of ${messageKey} from proof record with id ${proofRecord.id} to DIDCommMessageRecord`\n )\n const proofRecordJson = proofRecord as unknown as JsonObject\n const message = proofRecordJson[messageKey] as DidCommPlaintextMessage | undefined\n\n if (message) {\n const proofRole = getProofRole(proofRecord)\n const didCommMessageRole = didCommMessageRoleMapping[proofRole][messageKey]\n\n const didCommMessageRecord = new DidCommMessageRecord({\n role: didCommMessageRole,\n associatedRecordId: proofRecord.id,\n message,\n })\n await didCommMessageRepository.save(agent.context, didCommMessageRecord)\n\n agent.config.logger.debug(\n `Successfully moved ${messageKey} from proof record with id ${proofRecord.id} to DIDCommMessageRecord`\n )\n\n delete proofRecordJson[messageKey]\n } else {\n agent.config.logger.debug(\n `Proof record with id ${proofRecord.id} does not have a ${messageKey}. Not creating a DIDCommMessageRecord`\n )\n }\n }\n\n agent.config.logger.debug(\n `Successfully moved didcomm messages from proof record with id ${proofRecord.id} to DIDCommMessageRecord`\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,eAAsB,iCAA0D,OAAc;AAC5F,OAAM,OAAO,OAAO,KAAK,iDAAiD;CAC1E,MAAM,kBAAkB,MAAM,kBAAkB,QAAQ,+BAA+B;AAEvF,OAAM,OAAO,OAAO,MAAM,0CAA0C;CACpE,MAAM,YAAY,MAAM,gBAAgB,OAAO,MAAM,QAAQ;AAE7D,OAAM,OAAO,OAAO,MAAM,oBAAoB,UAAU,OAAO,2BAA2B;AAC1F,MAAK,MAAM,eAAe,WAAW;AACnC,QAAM,OAAO,OAAO,MAAM,kCAAkC,YAAY,GAAG,yBAAyB;AAEpG,QAAM,6CAA6C,OAAO,YAAY;AACtE,QAAM,oBAAoB,OAAO,YAAY;AAE7C,QAAM,gBAAgB,OAAO,MAAM,SAAS,YAAY;AAExD,QAAM,OAAO,OAAO,MAAM,8CAA8C,YAAY,GAAG,yBAAyB;;;AAIpH,IAAY,gFAAL;AACL;AACA;;;AAGF,MAAM,oBAAoB;CACxB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CACnB;AAED,MAAM,4BAA4B;EAC/B,yBAAyB,WAAW;EACnC,iBAAiB,mBAAmB;EACpC,gBAAgB,mBAAmB;EACnC,qBAAqB,mBAAmB;EACzC;EACA,yBAAyB,SAAS;EACjC,iBAAiB,mBAAmB;EACpC,gBAAgB,mBAAmB;EACnC,qBAAqB,mBAAmB;EACzC;CACF;AAED,MAAM,yBAAyB;CAAC;CAAmB;CAAkB;CAAsB;AAE3F,SAAgB,aAAa,aAAyC;AAEpE,KAAI,YAAY,eAAe,OAC7B,QAAO,yBAAyB;AAGlC,KAAI,YAAY,UAAU,kBAAkB,KAC1C,QAAO,yBAAyB;AAGlC,KAAI,kBAAkB,SAAS,YAAY,MAAM,CAC/C,QAAO,yBAAyB;AAIlC,QAAO,yBAAyB;;;;;;;;;;;;;;;;;;;;AAqBlC,eAAsB,6CACpB,OACA,aACA;AACA,OAAM,OAAO,OAAO,MAAM,mCAAmC,YAAY,GAAG,oCAAoC;AAEhH,KAAI,CAAC,YAAY,iBAAiB;AAChC,QAAM,OAAO,OAAO,MAAM,gCAAgC;AAC1D,cAAY,kBAAkB;;AAGhC,OAAM,OAAO,OAAO,MAClB,+CAA+C,YAAY,GAAG,oCAC/D;;;;;;;AAQH,eAAsB,oBACpB,OACA,aACA;AACA,OAAM,OAAO,OAAO,MAClB,qDAAqD,YAAY,GAAG,0BACrE;CACD,MAAM,2BAA2B,MAAM,kBAAkB,QAAQ,yBAAyB;AAE1F,MAAK,MAAM,cAAc,wBAAwB;AAC/C,QAAM,OAAO,OAAO,MAClB,oBAAoB,WAAW,6BAA6B,YAAY,GAAG,0BAC5E;EACD,MAAM,kBAAkB;EACxB,MAAM,UAAU,gBAAgB;AAEhC,MAAI,SAAS;GAEX,MAAM,qBAAqB,0BADT,aAAa,YAAY,EACqB;GAEhE,MAAM,uBAAuB,IAAI,qBAAqB;IACpD,MAAM;IACN,oBAAoB,YAAY;IAChC;IACD,CAAC;AACF,SAAM,yBAAyB,KAAK,MAAM,SAAS,qBAAqB;AAExE,SAAM,OAAO,OAAO,MAClB,sBAAsB,WAAW,6BAA6B,YAAY,GAAG,0BAC9E;AAED,UAAO,gBAAgB;QAEvB,OAAM,OAAO,OAAO,MAClB,wBAAwB,YAAY,GAAG,mBAAmB,WAAW,uCACtE;;AAIL,OAAM,OAAO,OAAO,MAClB,iEAAiE,YAAY,GAAG,0BACjF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
|
|
2
2
|
const require_messageType = require('../../util/messageType.js');
|
|
3
|
-
const require_DidCommMessageRole = require('../../repository/DidCommMessageRole.js');
|
|
4
3
|
const require_DidCommMessageRepository = require('../../repository/DidCommMessageRepository.js');
|
|
4
|
+
const require_DidCommMessageRole = require('../../repository/DidCommMessageRole.js');
|
|
5
5
|
require('../../repository/index.js');
|
|
6
|
-
const require_DidCommCredentialState = require('../../modules/credentials/models/DidCommCredentialState.js');
|
|
7
6
|
const require_DidCommCredentialRole = require('../../modules/credentials/models/DidCommCredentialRole.js');
|
|
7
|
+
const require_DidCommCredentialState = require('../../modules/credentials/models/DidCommCredentialState.js');
|
|
8
8
|
const require_DidCommCredentialExchangeRepository = require('../../modules/credentials/repository/DidCommCredentialExchangeRepository.js');
|
|
9
9
|
const require_DidCommOfferCredentialV2Message = require('../../modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.js');
|
|
10
10
|
const require_DidCommProposeCredentialV2Message = require('../../modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.js');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { parseMessageType } from "../../util/messageType.mjs";
|
|
2
|
-
import { DidCommMessageRole } from "../../repository/DidCommMessageRole.mjs";
|
|
3
2
|
import { DidCommMessageRepository } from "../../repository/DidCommMessageRepository.mjs";
|
|
3
|
+
import { DidCommMessageRole } from "../../repository/DidCommMessageRole.mjs";
|
|
4
4
|
import "../../repository/index.mjs";
|
|
5
|
-
import { DidCommCredentialState } from "../../modules/credentials/models/DidCommCredentialState.mjs";
|
|
6
5
|
import { DidCommCredentialRole } from "../../modules/credentials/models/DidCommCredentialRole.mjs";
|
|
6
|
+
import { DidCommCredentialState } from "../../modules/credentials/models/DidCommCredentialState.mjs";
|
|
7
7
|
import { DidCommCredentialExchangeRepository } from "../../modules/credentials/repository/DidCommCredentialExchangeRepository.mjs";
|
|
8
8
|
import { DidCommOfferCredentialV2Message } from "../../modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.mjs";
|
|
9
9
|
import { DidCommProposeCredentialV2Message } from "../../modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentialExchangeRecord.mjs","names":[],"sources":["../../../src/updates/0.4-0.5/credentialExchangeRecord.ts"],"sourcesContent":["import type { BaseAgent } from '@credo-ts/core'\nimport
|
|
1
|
+
{"version":3,"file":"credentialExchangeRecord.mjs","names":[],"sources":["../../../src/updates/0.4-0.5/credentialExchangeRecord.ts"],"sourcesContent":["import type { BaseAgent } from '@credo-ts/core'\nimport { CredoError } from '@credo-ts/core'\nimport type { DidCommCredentialExchangeRecord } from '../../modules/credentials'\n\nimport {\n DidCommCredentialExchangeRepository,\n DidCommCredentialRole,\n DidCommCredentialState,\n DidCommOfferCredentialV2Message,\n DidCommProposeCredentialV2Message,\n DidCommRequestCredentialV2Message,\n} from '../../modules/credentials'\nimport { DidCommMessageRepository, DidCommMessageRole } from '../../repository'\nimport { parseMessageType } from '../../util/messageType'\n\n/**\n * Migrates the {@link DidCommCredentialExchangeRecord} to 0.5 compatible format. It fetches all credential exchange records from\n * storage and applies the needed updates to the records. After a record has been transformed, it is updated\n * in storage and the next record will be transformed.\n *\n * The following transformations are applied:\n * - {@link migrateRole}\n */\nexport async function migrateCredentialExchangeRecordToV0_5<Agent extends BaseAgent>(agent: Agent) {\n agent.config.logger.info('Migrating credential exchange records to storage version 0.5')\n const credentialRepository = agent.dependencyManager.resolve(DidCommCredentialExchangeRepository)\n\n agent.config.logger.debug('Fetching all credential records from storage')\n const credentialRecords = await credentialRepository.getAll(agent.context)\n\n agent.config.logger.debug(`Found a total of ${credentialRecords.length} credential exchange records to update.`)\n for (const credentialRecord of credentialRecords) {\n agent.config.logger.debug(\n `Migrating credential exchange record with id ${credentialRecord.id} to storage version 0.5`\n )\n\n await migrateRole(agent, credentialRecord)\n\n // Save updated record\n await credentialRepository.update(agent.context, credentialRecord)\n\n agent.config.logger.debug(\n `Successfully migrated credential exchange record with id ${credentialRecord.id} to storage version 0.5`\n )\n }\n}\n\nconst holderCredentialStates = [\n DidCommCredentialState.Declined,\n DidCommCredentialState.ProposalSent,\n DidCommCredentialState.OfferReceived,\n DidCommCredentialState.RequestSent,\n DidCommCredentialState.CredentialReceived,\n]\n\nconst issuerCredentialStates = [\n DidCommCredentialState.ProposalReceived,\n DidCommCredentialState.OfferSent,\n DidCommCredentialState.RequestReceived,\n DidCommCredentialState.CredentialIssued,\n]\n\nexport async function getCredentialRole(agent: BaseAgent, credentialRecord: DidCommCredentialExchangeRecord) {\n // Credentials will only have a value when a credential is received, meaning we're the holder\n if (credentialRecord.credentials.length > 0) {\n return DidCommCredentialRole.Holder\n }\n // If credentialRecord.credentials doesn't have any values, and we're also not in state done it means we're the issuer.\n if (credentialRecord.state === DidCommCredentialState.Done) {\n return DidCommCredentialRole.Issuer\n }\n // For these states we know for certain that we're the holder\n if (holderCredentialStates.includes(credentialRecord.state)) {\n return DidCommCredentialRole.Holder\n }\n // For these states we know for certain that we're the issuer\n if (issuerCredentialStates.includes(credentialRecord.state)) {\n return DidCommCredentialRole.Issuer\n }\n\n // We now need to determine the role based on the didcomm message. Only the Abandoned state remains\n // and we can't be certain of the role based on the state alone.\n\n // Fetch any of the associated credential messages that we can use to determine the role\n // Either one of these MUST be present or we can't determine the role.\n const didCommMessageRepository = agent.dependencyManager.resolve(DidCommMessageRepository)\n const [didCommMessageRecord] = await didCommMessageRepository.findByQuery(agent.context, {\n associatedRecordId: credentialRecord.id,\n $or: [\n // We can't be certain which messages will be present.\n { messageName: DidCommOfferCredentialV2Message.type.messageName },\n { messageName: DidCommProposeCredentialV2Message.type.messageName },\n { messageName: DidCommRequestCredentialV2Message.type.messageName },\n ],\n })\n\n if (!didCommMessageRecord) {\n throw new CredoError(\n `Unable to determine the role of the credential exchange record with id ${credentialRecord.id} without any didcomm messages and state abandoned`\n )\n }\n\n // Maps the message name and the didcomm message role to the respective credential role\n const roleStateMapping = {\n [DidCommOfferCredentialV2Message.type.messageName]: {\n [DidCommMessageRole.Sender]: DidCommCredentialRole.Issuer,\n [DidCommMessageRole.Receiver]: DidCommCredentialRole.Holder,\n },\n [DidCommProposeCredentialV2Message.type.messageName]: {\n [DidCommMessageRole.Sender]: DidCommCredentialRole.Holder,\n [DidCommMessageRole.Receiver]: DidCommCredentialRole.Issuer,\n },\n [DidCommRequestCredentialV2Message.type.messageName]: {\n [DidCommMessageRole.Sender]: DidCommCredentialRole.Holder,\n [DidCommMessageRole.Receiver]: DidCommCredentialRole.Issuer,\n },\n }\n\n const messageName = parseMessageType(didCommMessageRecord.message['@type']).messageName\n const credentialRole = roleStateMapping[messageName][didCommMessageRecord.role]\n\n return credentialRole\n}\n\n/**\n * Add a role to the credential record.\n */\nexport async function migrateRole<Agent extends BaseAgent>(\n agent: Agent,\n credentialRecord: DidCommCredentialExchangeRecord\n) {\n agent.config.logger.debug(`Adding role to record with id ${credentialRecord.id} to for version 0.4`)\n\n credentialRecord.role = await getCredentialRole(agent, credentialRecord)\n\n agent.config.logger.debug(\n `Successfully updated role to '${credentialRecord.role}' on credential record with id ${credentialRecord.id} to for version 0.4`\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuBA,eAAsB,sCAA+D,OAAc;AACjG,OAAM,OAAO,OAAO,KAAK,+DAA+D;CACxF,MAAM,uBAAuB,MAAM,kBAAkB,QAAQ,oCAAoC;AAEjG,OAAM,OAAO,OAAO,MAAM,+CAA+C;CACzE,MAAM,oBAAoB,MAAM,qBAAqB,OAAO,MAAM,QAAQ;AAE1E,OAAM,OAAO,OAAO,MAAM,oBAAoB,kBAAkB,OAAO,yCAAyC;AAChH,MAAK,MAAM,oBAAoB,mBAAmB;AAChD,QAAM,OAAO,OAAO,MAClB,gDAAgD,iBAAiB,GAAG,yBACrE;AAED,QAAM,YAAY,OAAO,iBAAiB;AAG1C,QAAM,qBAAqB,OAAO,MAAM,SAAS,iBAAiB;AAElE,QAAM,OAAO,OAAO,MAClB,4DAA4D,iBAAiB,GAAG,yBACjF;;;AAIL,MAAM,yBAAyB;CAC7B,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACxB;AAED,MAAM,yBAAyB;CAC7B,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACxB;AAED,eAAsB,kBAAkB,OAAkB,kBAAmD;AAE3G,KAAI,iBAAiB,YAAY,SAAS,EACxC,QAAO,sBAAsB;AAG/B,KAAI,iBAAiB,UAAU,uBAAuB,KACpD,QAAO,sBAAsB;AAG/B,KAAI,uBAAuB,SAAS,iBAAiB,MAAM,CACzD,QAAO,sBAAsB;AAG/B,KAAI,uBAAuB,SAAS,iBAAiB,MAAM,CACzD,QAAO,sBAAsB;CAS/B,MAAM,CAAC,wBAAwB,MADE,MAAM,kBAAkB,QAAQ,yBAAyB,CAC5B,YAAY,MAAM,SAAS;EACvF,oBAAoB,iBAAiB;EACrC,KAAK;GAEH,EAAE,aAAa,gCAAgC,KAAK,aAAa;GACjE,EAAE,aAAa,kCAAkC,KAAK,aAAa;GACnE,EAAE,aAAa,kCAAkC,KAAK,aAAa;GACpE;EACF,CAAC;AAEF,KAAI,CAAC,qBACH,OAAM,IAAI,WACR,0EAA0E,iBAAiB,GAAG,mDAC/F;AAsBH,QAlByB;GACtB,gCAAgC,KAAK,cAAc;IACjD,mBAAmB,SAAS,sBAAsB;IAClD,mBAAmB,WAAW,sBAAsB;GACtD;GACA,kCAAkC,KAAK,cAAc;IACnD,mBAAmB,SAAS,sBAAsB;IAClD,mBAAmB,WAAW,sBAAsB;GACtD;GACA,kCAAkC,KAAK,cAAc;IACnD,mBAAmB,SAAS,sBAAsB;IAClD,mBAAmB,WAAW,sBAAsB;GACtD;EACF,CAEmB,iBAAiB,qBAAqB,QAAQ,SAAS,CAAC,aACvB,qBAAqB;;;;;AAQ5E,eAAsB,YACpB,OACA,kBACA;AACA,OAAM,OAAO,OAAO,MAAM,iCAAiC,iBAAiB,GAAG,qBAAqB;AAEpG,kBAAiB,OAAO,MAAM,kBAAkB,OAAO,iBAAiB;AAExE,OAAM,OAAO,OAAO,MAClB,iCAAiC,iBAAiB,KAAK,iCAAiC,iBAAiB,GAAG,qBAC7G"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
|
|
2
2
|
const require_messageType = require('../../util/messageType.js');
|
|
3
|
-
const require_DidCommMessageRole = require('../../repository/DidCommMessageRole.js');
|
|
4
3
|
const require_DidCommMessageRepository = require('../../repository/DidCommMessageRepository.js');
|
|
4
|
+
const require_DidCommMessageRole = require('../../repository/DidCommMessageRole.js');
|
|
5
5
|
require('../../repository/index.js');
|
|
6
6
|
const require_DidCommProofState = require('../../modules/proofs/models/DidCommProofState.js');
|
|
7
|
+
const require_DidCommProofExchangeRepository = require('../../modules/proofs/repository/DidCommProofExchangeRepository.js');
|
|
7
8
|
const require_DidCommProofRole = require('../../modules/proofs/models/DidCommProofRole.js');
|
|
8
9
|
const require_DidCommProposePresentationV2Message = require('../../modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.js');
|
|
9
10
|
const require_DidCommRequestPresentationV2Message = require('../../modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.js');
|
|
10
|
-
const require_DidCommProofExchangeRepository = require('../../modules/proofs/repository/DidCommProofExchangeRepository.js');
|
|
11
11
|
require('../../modules/proofs/index.js');
|
|
12
12
|
let __credo_ts_core = require("@credo-ts/core");
|
|
13
13
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { parseMessageType } from "../../util/messageType.mjs";
|
|
2
|
-
import { DidCommMessageRole } from "../../repository/DidCommMessageRole.mjs";
|
|
3
2
|
import { DidCommMessageRepository } from "../../repository/DidCommMessageRepository.mjs";
|
|
3
|
+
import { DidCommMessageRole } from "../../repository/DidCommMessageRole.mjs";
|
|
4
4
|
import "../../repository/index.mjs";
|
|
5
5
|
import { DidCommProofState } from "../../modules/proofs/models/DidCommProofState.mjs";
|
|
6
|
+
import { DidCommProofExchangeRepository } from "../../modules/proofs/repository/DidCommProofExchangeRepository.mjs";
|
|
6
7
|
import { DidCommProofRole } from "../../modules/proofs/models/DidCommProofRole.mjs";
|
|
7
8
|
import { DidCommProposePresentationV2Message } from "../../modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.mjs";
|
|
8
9
|
import { DidCommRequestPresentationV2Message } from "../../modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.mjs";
|
|
9
|
-
import { DidCommProofExchangeRepository } from "../../modules/proofs/repository/DidCommProofExchangeRepository.mjs";
|
|
10
10
|
import "../../modules/proofs/index.mjs";
|
|
11
11
|
import { CredoError } from "@credo-ts/core";
|
|
12
12
|
|
|
@@ -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
|
const require_DidCommAttachment = require('../decorators/attachment/DidCommAttachment.js');
|
|
5
5
|
const require_attachment = require('./attachment.js');
|
|
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/util/DidCommLinkedAttachment.ts
|
|
12
12
|
var _ref;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { DidCommAttachment } from "../decorators/attachment/DidCommAttachment.mjs";
|
|
4
4
|
import { encodeAttachment } from "./attachment.mjs";
|
|
5
|
-
import { Type } from "class-transformer";
|
|
6
5
|
import { IsString } from "class-validator";
|
|
6
|
+
import { Type } from "class-transformer";
|
|
7
7
|
|
|
8
8
|
//#region src/util/DidCommLinkedAttachment.ts
|
|
9
9
|
var _ref;
|
package/build/util/JWE.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JWE.mjs","names":[],"sources":["../../src/util/JWE.ts"],"sourcesContent":["import type { DidCommEncryptedMessage } from '../types'\n\n// biome-ignore lint/suspicious/noExplicitAny:
|
|
1
|
+
{"version":3,"file":"JWE.mjs","names":[],"sources":["../../src/util/JWE.ts"],"sourcesContent":["import type { DidCommEncryptedMessage } from '../types'\n\n// biome-ignore lint/suspicious/noExplicitAny: no explanation\nexport function isValidJweStructure(message: any): message is DidCommEncryptedMessage {\n return Boolean(\n message &&\n typeof message === 'object' &&\n message !== null &&\n typeof message.protected === 'string' &&\n message.iv &&\n message.ciphertext &&\n message.tag\n )\n}\n"],"mappings":";AAGA,SAAgB,oBAAoB,SAAkD;AACpF,QAAO,QACL,WACE,OAAO,YAAY,YACnB,YAAY,QACZ,OAAO,QAAQ,cAAc,YAC7B,QAAQ,MACR,QAAQ,cACR,QAAQ,IACX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.d.mts","names":[],"sources":["../../src/util/attachment.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"attachment.d.mts","names":[],"sources":["../../src/util/attachment.ts"],"sourcesContent":[],"mappings":";;;;;;;AAYA;;;;;;AAuBgB,iBAvBA,gBAAA,CAuB+B,UAAA,EAtBjC,iBAsBkD,EAAA,aAAA,CAAA,EArB/C,QAqB+C,EAAA,QAAA,CAAA,EApBpD,QAoBoD,CAAA,EAAA,MAAA;;;;;;;iBAAhD,kBAAA,aAA+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.d.ts","names":[],"sources":["../../src/util/attachment.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"attachment.d.ts","names":[],"sources":["../../src/util/attachment.ts"],"sourcesContent":[],"mappings":";;;;;;;AAYA;;;;;;AAuBgB,iBAvBA,gBAAA,CAuB+B,UAAA,EAtBjC,iBAsBkD,EAAA,aAAA,CAAA,EArB/C,QAqB+C,EAAA,QAAA,CAAA,EApBpD,QAoBoD,CAAA,EAAA,MAAA;;;;;;;iBAAhD,kBAAA,aAA+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.mjs","names":[],"sources":["../../src/util/attachment.ts"],"sourcesContent":["import type { BaseName, HashName } from '@credo-ts/core'\nimport
|
|
1
|
+
{"version":3,"file":"attachment.mjs","names":[],"sources":["../../src/util/attachment.ts"],"sourcesContent":["import type { BaseName, HashName } from '@credo-ts/core'\nimport { CredoError, HashlinkEncoder, TypedArrayEncoder } from '@credo-ts/core'\nimport type { DidCommAttachment } from '../decorators/attachment/DidCommAttachment'\n\n/**\n * Encodes an attachment based on the `data` property\n *\n * @param attachment The attachment that needs to be encoded\n * @param hashAlgorithm The hashing algorithm that is going to be used\n * @param baseName The base encoding name that is going to be used\n * @returns A hashlink based on the attachment data\n */\nexport function encodeAttachment(\n attachment: DidCommAttachment,\n hashAlgorithm: HashName = 'sha-256',\n baseName: BaseName = 'base58btc'\n) {\n if (attachment.data.sha256) {\n return `hl:${attachment.data.sha256}`\n }\n if (attachment.data.base64) {\n return HashlinkEncoder.encode(TypedArrayEncoder.fromBase64(attachment.data.base64), hashAlgorithm, baseName)\n }\n if (attachment.data.json) {\n throw new CredoError(`Attachment: (${attachment.id}) has json encoded data. This is currently not supported`)\n }\n throw new CredoError(`Attachment: (${attachment.id}) has no data to create a link with`)\n}\n\n/**\n * Checks if an attachment is a linked Attachment\n *\n * @param attachment the attachment that has to be validated\n * @returns a boolean whether the attachment is a linkedAttachment\n */\nexport function isLinkedAttachment(attachment: DidCommAttachment) {\n return HashlinkEncoder.isValid(`hl:${attachment.id}`)\n}\n"],"mappings":";;;;;;;;;;;AAYA,SAAgB,iBACd,YACA,gBAA0B,WAC1B,WAAqB,aACrB;AACA,KAAI,WAAW,KAAK,OAClB,QAAO,MAAM,WAAW,KAAK;AAE/B,KAAI,WAAW,KAAK,OAClB,QAAO,gBAAgB,OAAO,kBAAkB,WAAW,WAAW,KAAK,OAAO,EAAE,eAAe,SAAS;AAE9G,KAAI,WAAW,KAAK,KAClB,OAAM,IAAI,WAAW,gBAAgB,WAAW,GAAG,0DAA0D;AAE/G,OAAM,IAAI,WAAW,gBAAgB,WAAW,GAAG,qCAAqC;;;;;;;;AAS1F,SAAgB,mBAAmB,YAA+B;AAChE,QAAO,gBAAgB,QAAQ,MAAM,WAAW,KAAK"}
|
|
@@ -57,6 +57,42 @@ interface ParsedMessageType extends ParsedDidCommProtocolUri {
|
|
|
57
57
|
messageTypeUri: string;
|
|
58
58
|
}
|
|
59
59
|
declare function parseMessageType(messageType: string): ParsedMessageType;
|
|
60
|
+
/**
|
|
61
|
+
* Check whether the incoming message type is a message type that can be handled by comparing it to the expected message type.
|
|
62
|
+
* In this case the expected message type is e.g. the type declared on an agent message class, and the incoming message type is the type
|
|
63
|
+
* that is parsed from the incoming JSON.
|
|
64
|
+
*
|
|
65
|
+
* The method will make sure the following fields are equal:
|
|
66
|
+
* - documentUri
|
|
67
|
+
* - protocolName
|
|
68
|
+
* - majorVersion
|
|
69
|
+
* - messageName
|
|
70
|
+
*
|
|
71
|
+
* If allowLegacyDidSovPrefixMismatch is true (default) it will allow for the case where the incoming message type still has the legacy
|
|
72
|
+
* did:sov:BzCbsNYhMrjHiqZDTUASHg;spec did prefix, but the expected message type does not. This only works for incoming messages with a prefix
|
|
73
|
+
* of did:sov:BzCbsNYhMrjHiqZDTUASHg;spec and the expected message type having a prefix value of https:/didcomm.org
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* const incomingMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')
|
|
77
|
+
* const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.4/request')
|
|
78
|
+
*
|
|
79
|
+
* // Returns true because the incoming message type is equal to the expected message type, except for
|
|
80
|
+
* // the minor version, which is lower
|
|
81
|
+
* const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* const incomingMessageType = parseMessageType('did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/request')
|
|
85
|
+
* const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')
|
|
86
|
+
*
|
|
87
|
+
* // Returns true because the incoming message type is equal to the expected message type, except for
|
|
88
|
+
* // the legacy did sov prefix.
|
|
89
|
+
* const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)
|
|
90
|
+
*/
|
|
91
|
+
declare function supportsIncomingMessageType(incomingMessageType: ParsedMessageType, expectedMessageType: ParsedMessageType, {
|
|
92
|
+
allowLegacyDidSovPrefixMismatch
|
|
93
|
+
}?: {
|
|
94
|
+
allowLegacyDidSovPrefixMismatch?: boolean;
|
|
95
|
+
}): boolean;
|
|
60
96
|
/**
|
|
61
97
|
* class-validator decorator to check if the string message type value matches with the
|
|
62
98
|
* expected message type. This uses {@link supportsIncomingMessageType}.
|
|
@@ -64,5 +100,5 @@ declare function parseMessageType(messageType: string): ParsedMessageType;
|
|
|
64
100
|
declare function IsValidMessageType(messageType: ParsedMessageType, validationOptions?: ValidationOptions): PropertyDecorator;
|
|
65
101
|
declare function replaceLegacyDidSovPrefix(messageType: string): string;
|
|
66
102
|
//#endregion
|
|
67
|
-
export { IsValidMessageType, ParsedDidCommProtocolUri, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix };
|
|
103
|
+
export { IsValidMessageType, ParsedDidCommProtocolUri, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix, supportsIncomingMessageType };
|
|
68
104
|
//# sourceMappingURL=messageType.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageType.d.mts","names":[],"sources":["../../src/util/messageType.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"messageType.d.mts","names":[],"sources":["../../src/util/messageType.ts"],"sourcesContent":[],"mappings":";;;UAOiB,wBAAA;EAAA;AA8CjB;AAmBA;AAsHA;;iBACuB,EAAA,MAAA;;;;AA4BvB;;sBACe,EAAA,MAAA;;;;AAsCf;;;;;;;;;;;;;;;;;;;;;;;;UA7MiB,iBAAA,SAA0B;;;;;;;;;;;;;;;iBAmB3B,gBAAA,uBAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsHvC,2BAAA,sBACO,wCACA;;;;;;;;;iBA2BP,kBAAA,cACD,uCACO,oBACnB;iBAoCa,yBAAA"}
|
|
@@ -57,6 +57,42 @@ interface ParsedMessageType extends ParsedDidCommProtocolUri {
|
|
|
57
57
|
messageTypeUri: string;
|
|
58
58
|
}
|
|
59
59
|
declare function parseMessageType(messageType: string): ParsedMessageType;
|
|
60
|
+
/**
|
|
61
|
+
* Check whether the incoming message type is a message type that can be handled by comparing it to the expected message type.
|
|
62
|
+
* In this case the expected message type is e.g. the type declared on an agent message class, and the incoming message type is the type
|
|
63
|
+
* that is parsed from the incoming JSON.
|
|
64
|
+
*
|
|
65
|
+
* The method will make sure the following fields are equal:
|
|
66
|
+
* - documentUri
|
|
67
|
+
* - protocolName
|
|
68
|
+
* - majorVersion
|
|
69
|
+
* - messageName
|
|
70
|
+
*
|
|
71
|
+
* If allowLegacyDidSovPrefixMismatch is true (default) it will allow for the case where the incoming message type still has the legacy
|
|
72
|
+
* did:sov:BzCbsNYhMrjHiqZDTUASHg;spec did prefix, but the expected message type does not. This only works for incoming messages with a prefix
|
|
73
|
+
* of did:sov:BzCbsNYhMrjHiqZDTUASHg;spec and the expected message type having a prefix value of https:/didcomm.org
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* const incomingMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')
|
|
77
|
+
* const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.4/request')
|
|
78
|
+
*
|
|
79
|
+
* // Returns true because the incoming message type is equal to the expected message type, except for
|
|
80
|
+
* // the minor version, which is lower
|
|
81
|
+
* const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* const incomingMessageType = parseMessageType('did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/request')
|
|
85
|
+
* const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')
|
|
86
|
+
*
|
|
87
|
+
* // Returns true because the incoming message type is equal to the expected message type, except for
|
|
88
|
+
* // the legacy did sov prefix.
|
|
89
|
+
* const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)
|
|
90
|
+
*/
|
|
91
|
+
declare function supportsIncomingMessageType(incomingMessageType: ParsedMessageType, expectedMessageType: ParsedMessageType, {
|
|
92
|
+
allowLegacyDidSovPrefixMismatch
|
|
93
|
+
}?: {
|
|
94
|
+
allowLegacyDidSovPrefixMismatch?: boolean;
|
|
95
|
+
}): boolean;
|
|
60
96
|
/**
|
|
61
97
|
* class-validator decorator to check if the string message type value matches with the
|
|
62
98
|
* expected message type. This uses {@link supportsIncomingMessageType}.
|
|
@@ -64,5 +100,5 @@ declare function parseMessageType(messageType: string): ParsedMessageType;
|
|
|
64
100
|
declare function IsValidMessageType(messageType: ParsedMessageType, validationOptions?: ValidationOptions): PropertyDecorator;
|
|
65
101
|
declare function replaceLegacyDidSovPrefix(messageType: string): string;
|
|
66
102
|
//#endregion
|
|
67
|
-
export { IsValidMessageType, ParsedDidCommProtocolUri, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix };
|
|
103
|
+
export { IsValidMessageType, ParsedDidCommProtocolUri, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix, supportsIncomingMessageType };
|
|
68
104
|
//# sourceMappingURL=messageType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageType.d.ts","names":[],"sources":["../../src/util/messageType.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"messageType.d.ts","names":[],"sources":["../../src/util/messageType.ts"],"sourcesContent":[],"mappings":";;;UAOiB,wBAAA;EAAA;AA8CjB;AAmBA;AAsHA;;iBACuB,EAAA,MAAA;;;;AA4BvB;;sBACe,EAAA,MAAA;;;;AAsCf;;;;;;;;;;;;;;;;;;;;;;;;UA7MiB,iBAAA,SAA0B;;;;;;;;;;;;;;;iBAmB3B,gBAAA,uBAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsHvC,2BAAA,sBACO,wCACA;;;;;;;;;iBA2BP,kBAAA,cACD,uCACO,oBACnB;iBAoCa,yBAAA"}
|
|
@@ -13,8 +13,8 @@ function parseMessageType(messageType) {
|
|
|
13
13
|
documentUri,
|
|
14
14
|
protocolName,
|
|
15
15
|
protocolVersion: `${protocolVersionMajor}.${protocolVersionMinor}`,
|
|
16
|
-
protocolMajorVersion: Number.parseInt(protocolVersionMajor),
|
|
17
|
-
protocolMinorVersion: Number.parseInt(protocolVersionMinor),
|
|
16
|
+
protocolMajorVersion: Number.parseInt(protocolVersionMajor, 10),
|
|
17
|
+
protocolMinorVersion: Number.parseInt(protocolVersionMinor, 10),
|
|
18
18
|
messageName,
|
|
19
19
|
protocolUri: `${documentUri}/${protocolName}/${protocolVersionMajor}.${protocolVersionMinor}`,
|
|
20
20
|
messageTypeUri: messageType
|
|
@@ -28,8 +28,8 @@ function parseDidCommProtocolUri(didCommProtocolUri) {
|
|
|
28
28
|
documentUri,
|
|
29
29
|
protocolName,
|
|
30
30
|
protocolVersion: `${protocolVersionMajor}.${protocolVersionMinor}`,
|
|
31
|
-
protocolMajorVersion: Number.parseInt(protocolVersionMajor),
|
|
32
|
-
protocolMinorVersion: Number.parseInt(protocolVersionMinor),
|
|
31
|
+
protocolMajorVersion: Number.parseInt(protocolVersionMajor, 10),
|
|
32
|
+
protocolMinorVersion: Number.parseInt(protocolVersionMinor, 10),
|
|
33
33
|
protocolUri: `${documentUri}/${protocolName}/${protocolVersionMajor}.${protocolVersionMinor}`
|
|
34
34
|
};
|
|
35
35
|
}
|
|
@@ -11,8 +11,8 @@ function parseMessageType(messageType) {
|
|
|
11
11
|
documentUri,
|
|
12
12
|
protocolName,
|
|
13
13
|
protocolVersion: `${protocolVersionMajor}.${protocolVersionMinor}`,
|
|
14
|
-
protocolMajorVersion: Number.parseInt(protocolVersionMajor),
|
|
15
|
-
protocolMinorVersion: Number.parseInt(protocolVersionMinor),
|
|
14
|
+
protocolMajorVersion: Number.parseInt(protocolVersionMajor, 10),
|
|
15
|
+
protocolMinorVersion: Number.parseInt(protocolVersionMinor, 10),
|
|
16
16
|
messageName,
|
|
17
17
|
protocolUri: `${documentUri}/${protocolName}/${protocolVersionMajor}.${protocolVersionMinor}`,
|
|
18
18
|
messageTypeUri: messageType
|
|
@@ -26,8 +26,8 @@ function parseDidCommProtocolUri(didCommProtocolUri) {
|
|
|
26
26
|
documentUri,
|
|
27
27
|
protocolName,
|
|
28
28
|
protocolVersion: `${protocolVersionMajor}.${protocolVersionMinor}`,
|
|
29
|
-
protocolMajorVersion: Number.parseInt(protocolVersionMajor),
|
|
30
|
-
protocolMinorVersion: Number.parseInt(protocolVersionMinor),
|
|
29
|
+
protocolMajorVersion: Number.parseInt(protocolVersionMajor, 10),
|
|
30
|
+
protocolMinorVersion: Number.parseInt(protocolVersionMinor, 10),
|
|
31
31
|
protocolUri: `${documentUri}/${protocolName}/${protocolVersionMajor}.${protocolVersionMinor}`
|
|
32
32
|
};
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageType.mjs","names":[],"sources":["../../src/util/messageType.ts"],"sourcesContent":["import type { ValidationArguments, ValidationOptions } from 'class-validator'\nimport type { DidCommPlaintextMessage } from '../types'\n\nimport { ValidateBy, buildMessage } from 'class-validator'\n\nconst PROTOCOL_URI_REGEX = /^(.+)\\/([^/\\\\]+)\\/(\\d+).(\\d+)$/\nconst MESSAGE_TYPE_REGEX = /^(.+)\\/([^/\\\\]+)\\/(\\d+).(\\d+)\\/([^/\\\\]+)$/\n\nexport interface ParsedDidCommProtocolUri {\n /**\n * Version of the protocol\n *\n * @example 1.0\n */\n protocolVersion: string\n\n /**\n * Major version of the protocol\n *\n * @example 1\n */\n protocolMajorVersion: number\n\n /**\n * Minor version of the protocol\n *\n * @example 0\n */\n protocolMinorVersion: number\n\n /**\n * Name of the protocol\n *\n * @example connections\n */\n protocolName: string\n\n /**\n * Document uri of the message.\n *\n * @example https://didcomm.org\n */\n documentUri: string\n\n /**\n * Uri identifier of the protocol. Includes the\n * documentUri, protocolName and protocolVersion.\n * Useful when working with feature discovery\n *\n * @example https://didcomm.org/connections/1.0\n */\n protocolUri: string\n}\n\nexport interface ParsedMessageType extends ParsedDidCommProtocolUri {\n /**\n * Message name\n *\n * @example request\n */\n messageName: string\n\n /**\n * Uri identifier of the message. Includes all parts\n * or the message type.\n *\n * @example https://didcomm.org/connections/1.0/request\n */\n messageTypeUri: string\n}\n\n// TODO: rename to `parseDidCommMessageType` and `DidCommParsedProtocolUri`\n// in the future\nexport function parseMessageType(messageType: string): ParsedMessageType {\n const match = MESSAGE_TYPE_REGEX.exec(messageType)\n\n if (!match) {\n throw new Error(`Invalid message type: ${messageType}`)\n }\n\n const [, documentUri, protocolName, protocolVersionMajor, protocolVersionMinor, messageName] = match\n\n return {\n documentUri,\n protocolName,\n protocolVersion: `${protocolVersionMajor}.${protocolVersionMinor}`,\n protocolMajorVersion: Number.parseInt(protocolVersionMajor),\n protocolMinorVersion: Number.parseInt(protocolVersionMinor),\n messageName,\n protocolUri: `${documentUri}/${protocolName}/${protocolVersionMajor}.${protocolVersionMinor}`,\n messageTypeUri: messageType,\n }\n}\n\nexport function parseDidCommProtocolUri(didCommProtocolUri: string): ParsedDidCommProtocolUri {\n const match = PROTOCOL_URI_REGEX.exec(didCommProtocolUri)\n\n if (!match) {\n throw new Error(`Invalid protocol uri: ${didCommProtocolUri}`)\n }\n\n const [, documentUri, protocolName, protocolVersionMajor, protocolVersionMinor] = match\n\n return {\n documentUri,\n protocolName,\n protocolVersion: `${protocolVersionMajor}.${protocolVersionMinor}`,\n protocolMajorVersion: Number.parseInt(protocolVersionMajor),\n protocolMinorVersion: Number.parseInt(protocolVersionMinor),\n protocolUri: `${documentUri}/${protocolName}/${protocolVersionMajor}.${protocolVersionMinor}`,\n }\n}\n\n/**\n * Check whether the incoming didcomm protocol uri is a protocol uri that can be handled by comparing it to the expected didcomm protocol uri.\n * In this case the expected protocol uri is e.g. the handshake protocol supported (https://didcomm.org/connections/1.0), and the incoming protocol uri\n * is the uri that is parsed from the incoming out of band invitation handshake_protocols.\n *\n * The method will make sure the following fields are equal:\n * - documentUri\n * - protocolName\n * - majorVersion\n *\n * If allowLegacyDidSovPrefixMismatch is true (default) it will allow for the case where the incoming protocol uri still has the legacy\n * did:sov:BzCbsNYhMrjHiqZDTUASHg;spec did prefix, but the expected message type does not. This only works for incoming messages with a prefix\n * of did:sov:BzCbsNYhMrjHiqZDTUASHg;spec and the expected message type having a prefix value of https:/didcomm.org\n *\n * @example\n * const incomingProtocolUri = parseDidCommProtocolUri('https://didcomm.org/connections/1.0')\n * const expectedProtocolUri = parseDidCommProtocolUri('https://didcomm.org/connections/1.4')\n *\n * // Returns true because the incoming protocol uri is equal to the expected protocol uri, except for\n * // the minor version, which is lower\n * const isIncomingProtocolUriSupported = supportsIncomingDidCommProtocolUri(incomingProtocolUri, expectedProtocolUri)\n *\n * @example\n * const incomingProtocolUri = parseDidCommProtocolUri('did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0')\n * const expectedProtocolUri = parseDidCommProtocolUri('https://didcomm.org/connections/1.0')\n *\n * // Returns true because the incoming protocol uri is equal to the expected protocol uri, except for\n * // the legacy did sov prefix.\n * const isIncomingProtocolUriSupported = supportsIncomingDidCommProtocolUri(incomingProtocolUri, expectedProtocolUri)\n */\nexport function supportsIncomingDidCommProtocolUri(\n incomingProtocolUri: ParsedDidCommProtocolUri,\n expectedProtocolUri: ParsedDidCommProtocolUri,\n { allowLegacyDidSovPrefixMismatch = true }: { allowLegacyDidSovPrefixMismatch?: boolean } = {}\n) {\n const incomingDocumentUri = allowLegacyDidSovPrefixMismatch\n ? replaceLegacyDidSovPrefix(incomingProtocolUri.documentUri)\n : incomingProtocolUri.documentUri\n\n const documentUriMatches = expectedProtocolUri.documentUri === incomingDocumentUri\n const protocolNameMatches = expectedProtocolUri.protocolName === incomingProtocolUri.protocolName\n const majorVersionMatches = expectedProtocolUri.protocolMajorVersion === incomingProtocolUri.protocolMajorVersion\n\n // Everything besides the minor version must match\n return documentUriMatches && protocolNameMatches && majorVersionMatches\n}\n\n/**\n * Check whether the incoming message type is a message type that can be handled by comparing it to the expected message type.\n * In this case the expected message type is e.g. the type declared on an agent message class, and the incoming message type is the type\n * that is parsed from the incoming JSON.\n *\n * The method will make sure the following fields are equal:\n * - documentUri\n * - protocolName\n * - majorVersion\n * - messageName\n *\n * If allowLegacyDidSovPrefixMismatch is true (default) it will allow for the case where the incoming message type still has the legacy\n * did:sov:BzCbsNYhMrjHiqZDTUASHg;spec did prefix, but the expected message type does not. This only works for incoming messages with a prefix\n * of did:sov:BzCbsNYhMrjHiqZDTUASHg;spec and the expected message type having a prefix value of https:/didcomm.org\n *\n * @example\n * const incomingMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')\n * const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.4/request')\n *\n * // Returns true because the incoming message type is equal to the expected message type, except for\n * // the minor version, which is lower\n * const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)\n *\n * @example\n * const incomingMessageType = parseMessageType('did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/request')\n * const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')\n *\n * // Returns true because the incoming message type is equal to the expected message type, except for\n * // the legacy did sov prefix.\n * const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)\n */\nexport function supportsIncomingMessageType(\n incomingMessageType: ParsedMessageType,\n expectedMessageType: ParsedMessageType,\n { allowLegacyDidSovPrefixMismatch = true }: { allowLegacyDidSovPrefixMismatch?: boolean } = {}\n) {\n const incomingDocumentUri = allowLegacyDidSovPrefixMismatch\n ? replaceLegacyDidSovPrefix(incomingMessageType.documentUri)\n : incomingMessageType.documentUri\n\n const documentUriMatches = expectedMessageType.documentUri === incomingDocumentUri\n const protocolNameMatches = expectedMessageType.protocolName === incomingMessageType.protocolName\n const majorVersionMatches = expectedMessageType.protocolMajorVersion === incomingMessageType.protocolMajorVersion\n const messageNameMatches = expectedMessageType.messageName === incomingMessageType.messageName\n\n // Everything besides the minor version must match\n return documentUriMatches && protocolNameMatches && majorVersionMatches && messageNameMatches\n}\n\nexport function canHandleMessageType(\n messageClass: { type: ParsedMessageType },\n messageType: ParsedMessageType\n): boolean {\n return supportsIncomingMessageType(messageClass.type, messageType)\n}\n\n/**\n * class-validator decorator to check if the string message type value matches with the\n * expected message type. This uses {@link supportsIncomingMessageType}.\n */\nexport function IsValidMessageType(\n messageType: ParsedMessageType,\n validationOptions?: ValidationOptions\n): PropertyDecorator {\n return ValidateBy(\n {\n name: 'isValidMessageType',\n constraints: [messageType],\n validator: {\n validate: (value, args: ValidationArguments): boolean => {\n const [expectedMessageType] = args.constraints as [ParsedMessageType]\n\n // Type must be string\n if (typeof value !== 'string') {\n return false\n }\n\n const incomingMessageType = parseMessageType(value)\n return supportsIncomingMessageType(incomingMessageType, expectedMessageType)\n },\n defaultMessage: buildMessage(\n (eachPrefix) =>\n `${eachPrefix}$property does not match the expected message type (only minor version may be lower)`,\n validationOptions\n ),\n },\n },\n validationOptions\n )\n}\n\nexport function replaceLegacyDidSovPrefixOnMessage(message: DidCommPlaintextMessage | Record<string, unknown>) {\n message['@type'] = replaceLegacyDidSovPrefix(message['@type'] as string)\n}\n\nexport function replaceNewDidCommPrefixWithLegacyDidSovOnMessage(message: Record<string, unknown>) {\n message['@type'] = replaceNewDidCommPrefixWithLegacyDidSov(message['@type'] as string)\n}\n\nexport function replaceLegacyDidSovPrefix(messageType: string) {\n const didSovPrefix = 'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec'\n const didCommPrefix = 'https://didcomm.org'\n\n if (messageType.startsWith(didSovPrefix)) {\n return messageType.replace(didSovPrefix, didCommPrefix)\n }\n\n return messageType\n}\n\nexport function replaceNewDidCommPrefixWithLegacyDidSov(messageType: string) {\n const didSovPrefix = 'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec'\n const didCommPrefix = 'https://didcomm.org'\n\n if (messageType.startsWith(didCommPrefix)) {\n return messageType.replace(didCommPrefix, didSovPrefix)\n }\n\n return messageType\n}\n"],"mappings":";;;AAKA,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;AAmE3B,SAAgB,iBAAiB,aAAwC;CACvE,MAAM,QAAQ,mBAAmB,KAAK,YAAY;AAElD,KAAI,CAAC,MACH,OAAM,IAAI,MAAM,yBAAyB,cAAc;CAGzD,MAAM,GAAG,aAAa,cAAc,sBAAsB,sBAAsB,eAAe;AAE/F,QAAO;EACL;EACA;EACA,iBAAiB,GAAG,qBAAqB,GAAG;EAC5C,sBAAsB,OAAO,SAAS,qBAAqB;EAC3D,sBAAsB,OAAO,SAAS,qBAAqB;EAC3D;EACA,aAAa,GAAG,YAAY,GAAG,aAAa,GAAG,qBAAqB,GAAG;EACvE,gBAAgB;EACjB;;AAGH,SAAgB,wBAAwB,oBAAsD;CAC5F,MAAM,QAAQ,mBAAmB,KAAK,mBAAmB;AAEzD,KAAI,CAAC,MACH,OAAM,IAAI,MAAM,yBAAyB,qBAAqB;CAGhE,MAAM,GAAG,aAAa,cAAc,sBAAsB,wBAAwB;AAElF,QAAO;EACL;EACA;EACA,iBAAiB,GAAG,qBAAqB,GAAG;EAC5C,sBAAsB,OAAO,SAAS,qBAAqB;EAC3D,sBAAsB,OAAO,SAAS,qBAAqB;EAC3D,aAAa,GAAG,YAAY,GAAG,aAAa,GAAG,qBAAqB,GAAG;EACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,SAAgB,mCACd,qBACA,qBACA,EAAE,kCAAkC,SAAwD,EAAE,EAC9F;CACA,MAAM,sBAAsB,kCACxB,0BAA0B,oBAAoB,YAAY,GAC1D,oBAAoB;CAExB,MAAM,qBAAqB,oBAAoB,gBAAgB;CAC/D,MAAM,sBAAsB,oBAAoB,iBAAiB,oBAAoB;CACrF,MAAM,sBAAsB,oBAAoB,yBAAyB,oBAAoB;AAG7F,QAAO,sBAAsB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCtD,SAAgB,4BACd,qBACA,qBACA,EAAE,kCAAkC,SAAwD,EAAE,EAC9F;CACA,MAAM,sBAAsB,kCACxB,0BAA0B,oBAAoB,YAAY,GAC1D,oBAAoB;CAExB,MAAM,qBAAqB,oBAAoB,gBAAgB;CAC/D,MAAM,sBAAsB,oBAAoB,iBAAiB,oBAAoB;CACrF,MAAM,sBAAsB,oBAAoB,yBAAyB,oBAAoB;CAC7F,MAAM,qBAAqB,oBAAoB,gBAAgB,oBAAoB;AAGnF,QAAO,sBAAsB,uBAAuB,uBAAuB;;AAG7E,SAAgB,qBACd,cACA,aACS;AACT,QAAO,4BAA4B,aAAa,MAAM,YAAY;;;;;;AAOpE,SAAgB,mBACd,aACA,mBACmB;AACnB,QAAO,WACL;EACE,MAAM;EACN,aAAa,CAAC,YAAY;EAC1B,WAAW;GACT,WAAW,OAAO,SAAuC;IACvD,MAAM,CAAC,uBAAuB,KAAK;AAGnC,QAAI,OAAO,UAAU,SACnB,QAAO;AAIT,WAAO,4BADqB,iBAAiB,MAAM,EACK,oBAAoB;;GAE9E,gBAAgB,cACb,eACC,GAAG,WAAW,uFAChB,kBACD;GACF;EACF,EACD,kBACD;;AAGH,SAAgB,mCAAmC,SAA4D;AAC7G,SAAQ,WAAW,0BAA0B,QAAQ,SAAmB;;AAG1E,SAAgB,iDAAiD,SAAkC;AACjG,SAAQ,WAAW,wCAAwC,QAAQ,SAAmB;;AAGxF,SAAgB,0BAA0B,aAAqB;CAC7D,MAAM,eAAe;CACrB,MAAM,gBAAgB;AAEtB,KAAI,YAAY,WAAW,aAAa,CACtC,QAAO,YAAY,QAAQ,cAAc,cAAc;AAGzD,QAAO;;AAGT,SAAgB,wCAAwC,aAAqB;CAC3E,MAAM,eAAe;CACrB,MAAM,gBAAgB;AAEtB,KAAI,YAAY,WAAW,cAAc,CACvC,QAAO,YAAY,QAAQ,eAAe,aAAa;AAGzD,QAAO"}
|
|
1
|
+
{"version":3,"file":"messageType.mjs","names":[],"sources":["../../src/util/messageType.ts"],"sourcesContent":["import type { ValidationArguments, ValidationOptions } from 'class-validator'\nimport { buildMessage, ValidateBy } from 'class-validator'\nimport type { DidCommPlaintextMessage } from '../types'\n\nconst PROTOCOL_URI_REGEX = /^(.+)\\/([^/\\\\]+)\\/(\\d+).(\\d+)$/\nconst MESSAGE_TYPE_REGEX = /^(.+)\\/([^/\\\\]+)\\/(\\d+).(\\d+)\\/([^/\\\\]+)$/\n\nexport interface ParsedDidCommProtocolUri {\n /**\n * Version of the protocol\n *\n * @example 1.0\n */\n protocolVersion: string\n\n /**\n * Major version of the protocol\n *\n * @example 1\n */\n protocolMajorVersion: number\n\n /**\n * Minor version of the protocol\n *\n * @example 0\n */\n protocolMinorVersion: number\n\n /**\n * Name of the protocol\n *\n * @example connections\n */\n protocolName: string\n\n /**\n * Document uri of the message.\n *\n * @example https://didcomm.org\n */\n documentUri: string\n\n /**\n * Uri identifier of the protocol. Includes the\n * documentUri, protocolName and protocolVersion.\n * Useful when working with feature discovery\n *\n * @example https://didcomm.org/connections/1.0\n */\n protocolUri: string\n}\n\nexport interface ParsedMessageType extends ParsedDidCommProtocolUri {\n /**\n * Message name\n *\n * @example request\n */\n messageName: string\n\n /**\n * Uri identifier of the message. Includes all parts\n * or the message type.\n *\n * @example https://didcomm.org/connections/1.0/request\n */\n messageTypeUri: string\n}\n\n// TODO: rename to `parseDidCommMessageType` and `DidCommParsedProtocolUri`\n// in the future\nexport function parseMessageType(messageType: string): ParsedMessageType {\n const match = MESSAGE_TYPE_REGEX.exec(messageType)\n\n if (!match) {\n throw new Error(`Invalid message type: ${messageType}`)\n }\n\n const [, documentUri, protocolName, protocolVersionMajor, protocolVersionMinor, messageName] = match\n\n return {\n documentUri,\n protocolName,\n protocolVersion: `${protocolVersionMajor}.${protocolVersionMinor}`,\n protocolMajorVersion: Number.parseInt(protocolVersionMajor, 10),\n protocolMinorVersion: Number.parseInt(protocolVersionMinor, 10),\n messageName,\n protocolUri: `${documentUri}/${protocolName}/${protocolVersionMajor}.${protocolVersionMinor}`,\n messageTypeUri: messageType,\n }\n}\n\nexport function parseDidCommProtocolUri(didCommProtocolUri: string): ParsedDidCommProtocolUri {\n const match = PROTOCOL_URI_REGEX.exec(didCommProtocolUri)\n\n if (!match) {\n throw new Error(`Invalid protocol uri: ${didCommProtocolUri}`)\n }\n\n const [, documentUri, protocolName, protocolVersionMajor, protocolVersionMinor] = match\n\n return {\n documentUri,\n protocolName,\n protocolVersion: `${protocolVersionMajor}.${protocolVersionMinor}`,\n protocolMajorVersion: Number.parseInt(protocolVersionMajor, 10),\n protocolMinorVersion: Number.parseInt(protocolVersionMinor, 10),\n protocolUri: `${documentUri}/${protocolName}/${protocolVersionMajor}.${protocolVersionMinor}`,\n }\n}\n\n/**\n * Check whether the incoming didcomm protocol uri is a protocol uri that can be handled by comparing it to the expected didcomm protocol uri.\n * In this case the expected protocol uri is e.g. the handshake protocol supported (https://didcomm.org/connections/1.0), and the incoming protocol uri\n * is the uri that is parsed from the incoming out of band invitation handshake_protocols.\n *\n * The method will make sure the following fields are equal:\n * - documentUri\n * - protocolName\n * - majorVersion\n *\n * If allowLegacyDidSovPrefixMismatch is true (default) it will allow for the case where the incoming protocol uri still has the legacy\n * did:sov:BzCbsNYhMrjHiqZDTUASHg;spec did prefix, but the expected message type does not. This only works for incoming messages with a prefix\n * of did:sov:BzCbsNYhMrjHiqZDTUASHg;spec and the expected message type having a prefix value of https:/didcomm.org\n *\n * @example\n * const incomingProtocolUri = parseDidCommProtocolUri('https://didcomm.org/connections/1.0')\n * const expectedProtocolUri = parseDidCommProtocolUri('https://didcomm.org/connections/1.4')\n *\n * // Returns true because the incoming protocol uri is equal to the expected protocol uri, except for\n * // the minor version, which is lower\n * const isIncomingProtocolUriSupported = supportsIncomingDidCommProtocolUri(incomingProtocolUri, expectedProtocolUri)\n *\n * @example\n * const incomingProtocolUri = parseDidCommProtocolUri('did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0')\n * const expectedProtocolUri = parseDidCommProtocolUri('https://didcomm.org/connections/1.0')\n *\n * // Returns true because the incoming protocol uri is equal to the expected protocol uri, except for\n * // the legacy did sov prefix.\n * const isIncomingProtocolUriSupported = supportsIncomingDidCommProtocolUri(incomingProtocolUri, expectedProtocolUri)\n */\nexport function supportsIncomingDidCommProtocolUri(\n incomingProtocolUri: ParsedDidCommProtocolUri,\n expectedProtocolUri: ParsedDidCommProtocolUri,\n { allowLegacyDidSovPrefixMismatch = true }: { allowLegacyDidSovPrefixMismatch?: boolean } = {}\n) {\n const incomingDocumentUri = allowLegacyDidSovPrefixMismatch\n ? replaceLegacyDidSovPrefix(incomingProtocolUri.documentUri)\n : incomingProtocolUri.documentUri\n\n const documentUriMatches = expectedProtocolUri.documentUri === incomingDocumentUri\n const protocolNameMatches = expectedProtocolUri.protocolName === incomingProtocolUri.protocolName\n const majorVersionMatches = expectedProtocolUri.protocolMajorVersion === incomingProtocolUri.protocolMajorVersion\n\n // Everything besides the minor version must match\n return documentUriMatches && protocolNameMatches && majorVersionMatches\n}\n\n/**\n * Check whether the incoming message type is a message type that can be handled by comparing it to the expected message type.\n * In this case the expected message type is e.g. the type declared on an agent message class, and the incoming message type is the type\n * that is parsed from the incoming JSON.\n *\n * The method will make sure the following fields are equal:\n * - documentUri\n * - protocolName\n * - majorVersion\n * - messageName\n *\n * If allowLegacyDidSovPrefixMismatch is true (default) it will allow for the case where the incoming message type still has the legacy\n * did:sov:BzCbsNYhMrjHiqZDTUASHg;spec did prefix, but the expected message type does not. This only works for incoming messages with a prefix\n * of did:sov:BzCbsNYhMrjHiqZDTUASHg;spec and the expected message type having a prefix value of https:/didcomm.org\n *\n * @example\n * const incomingMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')\n * const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.4/request')\n *\n * // Returns true because the incoming message type is equal to the expected message type, except for\n * // the minor version, which is lower\n * const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)\n *\n * @example\n * const incomingMessageType = parseMessageType('did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/request')\n * const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')\n *\n * // Returns true because the incoming message type is equal to the expected message type, except for\n * // the legacy did sov prefix.\n * const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)\n */\nexport function supportsIncomingMessageType(\n incomingMessageType: ParsedMessageType,\n expectedMessageType: ParsedMessageType,\n { allowLegacyDidSovPrefixMismatch = true }: { allowLegacyDidSovPrefixMismatch?: boolean } = {}\n) {\n const incomingDocumentUri = allowLegacyDidSovPrefixMismatch\n ? replaceLegacyDidSovPrefix(incomingMessageType.documentUri)\n : incomingMessageType.documentUri\n\n const documentUriMatches = expectedMessageType.documentUri === incomingDocumentUri\n const protocolNameMatches = expectedMessageType.protocolName === incomingMessageType.protocolName\n const majorVersionMatches = expectedMessageType.protocolMajorVersion === incomingMessageType.protocolMajorVersion\n const messageNameMatches = expectedMessageType.messageName === incomingMessageType.messageName\n\n // Everything besides the minor version must match\n return documentUriMatches && protocolNameMatches && majorVersionMatches && messageNameMatches\n}\n\nexport function canHandleMessageType(\n messageClass: { type: ParsedMessageType },\n messageType: ParsedMessageType\n): boolean {\n return supportsIncomingMessageType(messageClass.type, messageType)\n}\n\n/**\n * class-validator decorator to check if the string message type value matches with the\n * expected message type. This uses {@link supportsIncomingMessageType}.\n */\nexport function IsValidMessageType(\n messageType: ParsedMessageType,\n validationOptions?: ValidationOptions\n): PropertyDecorator {\n return ValidateBy(\n {\n name: 'isValidMessageType',\n constraints: [messageType],\n validator: {\n validate: (value, args: ValidationArguments): boolean => {\n const [expectedMessageType] = args.constraints as [ParsedMessageType]\n\n // Type must be string\n if (typeof value !== 'string') {\n return false\n }\n\n const incomingMessageType = parseMessageType(value)\n return supportsIncomingMessageType(incomingMessageType, expectedMessageType)\n },\n defaultMessage: buildMessage(\n (eachPrefix) =>\n `${eachPrefix}$property does not match the expected message type (only minor version may be lower)`,\n validationOptions\n ),\n },\n },\n validationOptions\n )\n}\n\nexport function replaceLegacyDidSovPrefixOnMessage(message: DidCommPlaintextMessage | Record<string, unknown>) {\n message['@type'] = replaceLegacyDidSovPrefix(message['@type'] as string)\n}\n\nexport function replaceNewDidCommPrefixWithLegacyDidSovOnMessage(message: Record<string, unknown>) {\n message['@type'] = replaceNewDidCommPrefixWithLegacyDidSov(message['@type'] as string)\n}\n\nexport function replaceLegacyDidSovPrefix(messageType: string) {\n const didSovPrefix = 'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec'\n const didCommPrefix = 'https://didcomm.org'\n\n if (messageType.startsWith(didSovPrefix)) {\n return messageType.replace(didSovPrefix, didCommPrefix)\n }\n\n return messageType\n}\n\nexport function replaceNewDidCommPrefixWithLegacyDidSov(messageType: string) {\n const didSovPrefix = 'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec'\n const didCommPrefix = 'https://didcomm.org'\n\n if (messageType.startsWith(didCommPrefix)) {\n return messageType.replace(didCommPrefix, didSovPrefix)\n }\n\n return messageType\n}\n"],"mappings":"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"}
|
|
@@ -3,6 +3,13 @@ import { AgentDependencies } from "@credo-ts/core";
|
|
|
3
3
|
|
|
4
4
|
//#region src/util/parseInvitation.d.ts
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Parses a JSON containing an invitation message and returns an DidCommOutOfBandInvitation instance
|
|
8
|
+
*
|
|
9
|
+
* @param invitationJson JSON object containing message
|
|
10
|
+
* @returns DidCommOutOfBandInvitation
|
|
11
|
+
*/
|
|
12
|
+
declare const parseInvitationJson: (invitationJson: Record<string, unknown>) => DidCommOutOfBandInvitation;
|
|
6
13
|
/**
|
|
7
14
|
* Parses URL containing encoded invitation and returns invitation message.
|
|
8
15
|
*
|
|
@@ -24,5 +31,5 @@ declare const oobInvitationFromShortUrl: (response: Response) => Promise<DidComm
|
|
|
24
31
|
*/
|
|
25
32
|
declare const parseInvitationShortUrl: (invitationUrl: string, dependencies: AgentDependencies) => Promise<DidCommOutOfBandInvitation>;
|
|
26
33
|
//#endregion
|
|
27
|
-
export { oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl };
|
|
34
|
+
export { oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl };
|
|
28
35
|
//# sourceMappingURL=parseInvitation.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseInvitation.d.mts","names":[],"sources":["../../src/util/parseInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"parseInvitation.d.mts","names":[],"sources":["../../src/util/parseInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;AAsCA;;;;AA0BC,cA1BY,mBA0BZ,EAAA,CAAA,cAAA,EA1BmD,MA0BnD,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GA1B6E,0BA0B7E;AASD;AAeA;;;;;;AAsDa,cArEA,kBA2FZ,EAAA,CAAA,aAAA,EAAA,MAAA,EAAA,GA3F0D,0BA2F1D;AAAA,cA5EY,yBA4EZ,EAAA,CAAA,QAAA,EA5EyD,QA4EzD,EAAA,GA5EoE,OA4EpE,CA5E4E,0BA4E5E,CAAA;;;;;;;;;;;cAtBY,+DAEG,sBACb,QAAQ"}
|
|
@@ -3,6 +3,13 @@ import { AgentDependencies } from "@credo-ts/core";
|
|
|
3
3
|
|
|
4
4
|
//#region src/util/parseInvitation.d.ts
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Parses a JSON containing an invitation message and returns an DidCommOutOfBandInvitation instance
|
|
8
|
+
*
|
|
9
|
+
* @param invitationJson JSON object containing message
|
|
10
|
+
* @returns DidCommOutOfBandInvitation
|
|
11
|
+
*/
|
|
12
|
+
declare const parseInvitationJson: (invitationJson: Record<string, unknown>) => DidCommOutOfBandInvitation;
|
|
6
13
|
/**
|
|
7
14
|
* Parses URL containing encoded invitation and returns invitation message.
|
|
8
15
|
*
|
|
@@ -24,5 +31,5 @@ declare const oobInvitationFromShortUrl: (response: Response) => Promise<DidComm
|
|
|
24
31
|
*/
|
|
25
32
|
declare const parseInvitationShortUrl: (invitationUrl: string, dependencies: AgentDependencies) => Promise<DidCommOutOfBandInvitation>;
|
|
26
33
|
//#endregion
|
|
27
|
-
export { oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl };
|
|
34
|
+
export { oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl };
|
|
28
35
|
//# sourceMappingURL=parseInvitation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseInvitation.d.ts","names":[],"sources":["../../src/util/parseInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"parseInvitation.d.ts","names":[],"sources":["../../src/util/parseInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;AAsCA;;;;AA0BC,cA1BY,mBA0BZ,EAAA,CAAA,cAAA,EA1BmD,MA0BnD,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GA1B6E,0BA0B7E;AASD;AAeA;;;;;;AAsDa,cArEA,kBA2FZ,EAAA,CAAA,aAAA,EAAA,MAAA,EAAA,GA3F0D,0BA2F1D;AAAA,cA5EY,yBA4EZ,EAAA,CAAA,QAAA,EA5EyD,QA4EzD,EAAA,GA5EoE,OA4EpE,CA5E4E,0BA4E5E,CAAA;;;;;;;;;;;cAtBY,+DAEG,sBACb,QAAQ"}
|