@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":"DidCommModule.mjs","names":[],"sources":["../src/DidCommModule.ts"],"sourcesContent":["import type { AgentContext, Constructor, DependencyManager, Module, Update } from '@credo-ts/core'\nimport type { Subject } from 'rxjs'\nimport type { DidCommMessageReceivedEvent } from './DidCommEvents'\nimport type { DidCommModuleConfigOptions } from './DidCommModuleConfig'\n\nimport { EventEmitter, InjectionSymbols } from '@credo-ts/core'\nimport { mergeMap, takeUntil } from 'rxjs'\n\nimport { DidCommApi } from './DidCommApi'\nimport { DidCommDispatcher } from './DidCommDispatcher'\nimport { DidCommEnvelopeService } from './DidCommEnvelopeService'\nimport { DidCommEventTypes } from './DidCommEvents'\nimport { DidCommFeatureRegistry } from './DidCommFeatureRegistry'\nimport { DidCommMessageHandlerRegistry } from './DidCommMessageHandlerRegistry'\nimport { DidCommMessageReceiver } from './DidCommMessageReceiver'\nimport { DidCommMessageSender } from './DidCommMessageSender'\nimport { DidCommModuleConfig } from './DidCommModuleConfig'\nimport { DidCommTransportService } from './DidCommTransportService'\nimport {\n type DefaultDidCommMessagePickupProtocols,\n type DefaultDidCommProofProtocols,\n DidCommBasicMessagesModule,\n DidCommConnectionsModule,\n type DidCommCredentialProtocol,\n DidCommDiscoverFeaturesModule,\n DidCommMessagePickupModule,\n type DidCommMessagePickupModuleConfigOptions,\n type DidCommMessagePickupProtocol,\n DidCommOutOfBandModule,\n type DidCommProofProtocol,\n DidCommProofsModule,\n type DidCommProofsModuleConfigOptions,\n} from './modules'\nimport {\n type DefaultDidCommCredentialProtocols,\n DidCommCredentialsModule,\n} from './modules/credentials/DidCommCredentialsModule'\nimport type { DidCommCredentialsModuleConfigOptions } from './modules/credentials/DidCommCredentialsModuleConfig'\nimport { DidCommMediationRecipientModule } from './modules/routing/DidCommMediationRecipientModule'\nimport { DidCommMediatorModule } from './modules/routing/DidCommMediatorModule'\nimport { DidCommMessageRepository } from './repository'\nimport { updateV0_1ToV0_2 } from './updates/0.1-0.2'\nimport { updateV0_2ToV0_3 } from './updates/0.2-0.3'\nimport { updateV0_4ToV0_5 } from './updates/0.4-0.5'\n\n// biome-ignore lint/complexity/noBannedTypes: <explanation>\ntype ModuleOrEmpty<Config, Module> = Config extends false ? {} : Module\n\ntype DidCommModules<Options extends DidCommModuleConfigOptions> = {\n connections: DidCommConnectionsModule\n oob: DidCommOutOfBandModule\n discovery: DidCommDiscoverFeaturesModule\n} & ModuleOrEmpty<\n Options['credentials'],\n {\n credentials: DidCommCredentialsModule<\n Options['credentials'] extends DidCommCredentialsModuleConfigOptions<DidCommCredentialProtocol[]>\n ? Options['credentials']['credentialProtocols']\n : DefaultDidCommCredentialProtocols\n >\n }\n> &\n ModuleOrEmpty<\n Options['proofs'],\n {\n proofs: DidCommProofsModule<\n Options['proofs'] extends DidCommProofsModuleConfigOptions<DidCommProofProtocol[]>\n ? Options['proofs']['proofProtocols']\n : DefaultDidCommProofProtocols\n >\n }\n > &\n ModuleOrEmpty<\n Options['messagePickup'],\n {\n messagePickup: DidCommMessagePickupModule<\n Options['messagePickup'] extends DidCommMessagePickupModuleConfigOptions<DidCommMessagePickupProtocol[]>\n ? Options['messagePickup']['protocols']\n : DefaultDidCommMessagePickupProtocols\n >\n }\n > &\n ModuleOrEmpty<Options['mediator'], { mediator: DidCommMediatorModule }> &\n ModuleOrEmpty<Options['mediationRecipient'], { mediationRecipient: DidCommMediationRecipientModule }> &\n ModuleOrEmpty<Options['basicMessages'], { basicMessages: DidCommBasicMessagesModule }>\n\nfunction getDidcommModules<Options extends DidCommModuleConfigOptions>(options: Options): DidCommModules<Options> {\n return {\n connections: new DidCommConnectionsModule(options.connections),\n oob: new DidCommOutOfBandModule(),\n discovery: new DidCommDiscoverFeaturesModule(options.discovery),\n\n credentials:\n options.credentials !== false\n ? new DidCommCredentialsModule(options.credentials === true ? {} : options.credentials)\n : undefined,\n\n proofs:\n options.proofs !== false ? new DidCommProofsModule(options.proofs === true ? {} : options.proofs) : undefined,\n\n mediator:\n options.mediator !== false\n ? new DidCommMediatorModule(options.mediator === true ? {} : options.mediator)\n : undefined,\n\n mediationRecipient:\n options.mediationRecipient !== false\n ? new DidCommMediationRecipientModule(options.mediationRecipient === true ? {} : options.mediationRecipient)\n : undefined,\n\n messagePickup:\n options.messagePickup !== false\n ? new DidCommMessagePickupModule(options.messagePickup === true ? {} : options.messagePickup)\n : undefined,\n\n basicMessages: options.basicMessages !== false ? new DidCommBasicMessagesModule() : undefined,\n } as unknown as DidCommModules<Options>\n}\n\nexport class DidCommModule<Options extends DidCommModuleConfigOptions = DidCommModuleConfigOptions> implements Module {\n public readonly config: DidCommModuleConfig<Options>\n public readonly api: typeof DidCommApi<Options> = DidCommApi\n\n public readonly modules: ReturnType<typeof getDidcommModules<Options>>\n\n public constructor(config?: Options) {\n this.config = new DidCommModuleConfig<Options>(config)\n this.modules = getDidcommModules(config ?? {})\n }\n\n /**\n * Registers the dependencies of the question answer module on the dependency manager.\n */\n public register(dependencyManager: DependencyManager) {\n // Config\n dependencyManager.registerInstance(DidCommModuleConfig, this.config)\n\n // Registries\n dependencyManager.registerSingleton(DidCommMessageHandlerRegistry)\n dependencyManager.registerSingleton(DidCommFeatureRegistry)\n\n // Services\n dependencyManager.registerSingleton(DidCommMessageSender)\n dependencyManager.registerSingleton(DidCommMessageReceiver)\n dependencyManager.registerSingleton(DidCommTransportService)\n dependencyManager.registerSingleton(DidCommDispatcher)\n dependencyManager.registerSingleton(DidCommEnvelopeService)\n\n // Repositories\n dependencyManager.registerSingleton(DidCommMessageRepository)\n\n for (const [_moduleKey, module] of Object.entries(this.modules)) {\n module.register(dependencyManager)\n\n if (module.api) {\n dependencyManager.registerContextScoped(module.api as Constructor<unknown>)\n }\n }\n }\n\n public async initialize(agentContext: AgentContext): Promise<void> {\n const stop$ = agentContext.dependencyManager.resolve<Subject<boolean>>(InjectionSymbols.Stop$)\n const eventEmitter = agentContext.dependencyManager.resolve(EventEmitter)\n const messageReceiver = agentContext.dependencyManager.resolve(DidCommMessageReceiver)\n const messageSender = agentContext.dependencyManager.resolve(DidCommMessageSender)\n\n // Listen for new messages (either from transports or somewhere else in the framework / extensions)\n // We create this before doing any other initialization, so the initialization could already receive messages\n eventEmitter\n .observable<DidCommMessageReceivedEvent>(DidCommEventTypes.DidCommMessageReceived)\n .pipe(\n takeUntil(stop$),\n mergeMap(\n (e) =>\n messageReceiver\n .receiveMessage(e.payload.message, {\n connection: e.payload.connection,\n contextCorrelationId: e.payload.contextCorrelationId,\n session: e.payload.session,\n receivedAt: e.payload.receivedAt,\n })\n .catch((error) => {\n agentContext.config.logger.error('Failed to process message', { error })\n }),\n this.config.processDidCommMessagesConcurrently ? undefined : 1\n )\n )\n .subscribe()\n\n for (const transport of messageReceiver.inboundTransports) {\n await transport.start(agentContext)\n }\n\n for (const transport of messageSender.outboundTransports) {\n await transport.start(agentContext)\n }\n\n for (const module of Object.values(this.modules)) {\n await module.initialize?.(agentContext)\n }\n }\n\n public async onInitializeContext(agentContext: AgentContext): Promise<void> {\n for (const module of Object.values(this.modules)) {\n const standardModule = module as Module\n await standardModule.onInitializeContext?.(agentContext)\n }\n }\n\n public async onCloseContext(agentContext: AgentContext): Promise<void> {\n for (const module of Object.values(this.modules)) {\n const standardModule = module as Module\n await standardModule.onCloseContext?.(agentContext)\n }\n }\n\n public async onDeleteContext(agentContext: AgentContext): Promise<void> {\n for (const module of Object.values(this.modules)) {\n const standardModule = module as Module\n await standardModule.onDeleteContext?.(agentContext)\n }\n }\n\n public async onProvisionContext(agentContext: AgentContext): Promise<void> {\n for (const module of Object.values(this.modules)) {\n const standardModule = module as Module\n await standardModule.onProvisionContext?.(agentContext)\n }\n }\n\n public async shutdown(agentContext: AgentContext) {\n const messageReceiver = agentContext.dependencyManager.resolve(DidCommMessageReceiver)\n const messageSender = agentContext.dependencyManager.resolve(DidCommMessageSender)\n\n // Stop transports\n const allTransports = [...messageReceiver.inboundTransports, ...messageSender.outboundTransports]\n const transportPromises = allTransports.map((transport) => transport.stop())\n await Promise.all(transportPromises)\n\n for (const module of Object.values(this.modules)) {\n const standardModule = module as Module\n await standardModule.shutdown?.(agentContext)\n }\n }\n\n public get updates() {\n return [\n {\n fromVersion: '0.1',\n toVersion: '0.2',\n doUpdate: updateV0_1ToV0_2,\n },\n {\n fromVersion: '0.2',\n toVersion: '0.3',\n doUpdate: updateV0_2ToV0_3,\n },\n {\n fromVersion: '0.4',\n toVersion: '0.5',\n doUpdate: updateV0_4ToV0_5,\n },\n ] satisfies Update[]\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,SAAS,kBAA8D,SAA2C;AAChH,QAAO;EACL,aAAa,IAAI,yBAAyB,QAAQ,YAAY;EAC9D,KAAK,IAAI,wBAAwB;EACjC,WAAW,IAAI,8BAA8B,QAAQ,UAAU;EAE/D,aACE,QAAQ,gBAAgB,QACpB,IAAI,yBAAyB,QAAQ,gBAAgB,OAAO,EAAE,GAAG,QAAQ,YAAY,GACrF;EAEN,QACE,QAAQ,WAAW,QAAQ,IAAI,oBAAoB,QAAQ,WAAW,OAAO,EAAE,GAAG,QAAQ,OAAO,GAAG;EAEtG,UACE,QAAQ,aAAa,QACjB,IAAI,sBAAsB,QAAQ,aAAa,OAAO,EAAE,GAAG,QAAQ,SAAS,GAC5E;EAEN,oBACE,QAAQ,uBAAuB,QAC3B,IAAI,gCAAgC,QAAQ,uBAAuB,OAAO,EAAE,GAAG,QAAQ,mBAAmB,GAC1G;EAEN,eACE,QAAQ,kBAAkB,QACtB,IAAI,2BAA2B,QAAQ,kBAAkB,OAAO,EAAE,GAAG,QAAQ,cAAc,GAC3F;EAEN,eAAe,QAAQ,kBAAkB,QAAQ,IAAI,4BAA4B,GAAG;EACrF;;AAGH,IAAa,gBAAb,MAAsH;CAMpH,AAAO,YAAY,QAAkB;OAJrB,MAAkC;AAKhD,OAAK,SAAS,IAAI,oBAA6B,OAAO;AACtD,OAAK,UAAU,kBAAkB,UAAU,EAAE,CAAC;;;;;CAMhD,AAAO,SAAS,mBAAsC;AAEpD,oBAAkB,iBAAiB,qBAAqB,KAAK,OAAO;AAGpE,oBAAkB,kBAAkB,8BAA8B;AAClE,oBAAkB,kBAAkB,uBAAuB;AAG3D,oBAAkB,kBAAkB,qBAAqB;AACzD,oBAAkB,kBAAkB,uBAAuB;AAC3D,oBAAkB,kBAAkB,wBAAwB;AAC5D,oBAAkB,kBAAkB,kBAAkB;AACtD,oBAAkB,kBAAkB,uBAAuB;AAG3D,oBAAkB,kBAAkB,yBAAyB;AAE7D,OAAK,MAAM,CAAC,YAAY,WAAW,OAAO,QAAQ,KAAK,QAAQ,EAAE;AAC/D,UAAO,SAAS,kBAAkB;AAElC,OAAI,OAAO,IACT,mBAAkB,sBAAsB,OAAO,IAA4B;;;CAKjF,MAAa,WAAW,cAA2C;EACjE,MAAM,QAAQ,aAAa,kBAAkB,QAA0B,iBAAiB,MAAM;EAC9F,MAAM,eAAe,aAAa,kBAAkB,QAAQ,aAAa;EACzE,MAAM,kBAAkB,aAAa,kBAAkB,QAAQ,uBAAuB;EACtF,MAAM,gBAAgB,aAAa,kBAAkB,QAAQ,qBAAqB;AAIlF,eACG,WAAwC,kBAAkB,uBAAuB,CACjF,KACC,UAAU,MAAM,EAChB,UACG,MACC,gBACG,eAAe,EAAE,QAAQ,SAAS;GACjC,YAAY,EAAE,QAAQ;GACtB,sBAAsB,EAAE,QAAQ;GAChC,SAAS,EAAE,QAAQ;GACnB,YAAY,EAAE,QAAQ;GACvB,CAAC,CACD,OAAO,UAAU;AAChB,gBAAa,OAAO,OAAO,MAAM,6BAA6B,EAAE,OAAO,CAAC;IACxE,EACN,KAAK,OAAO,qCAAqC,SAAY,EAC9D,CACF,CACA,WAAW;AAEd,OAAK,MAAM,aAAa,gBAAgB,kBACtC,OAAM,UAAU,MAAM,aAAa;AAGrC,OAAK,MAAM,aAAa,cAAc,mBACpC,OAAM,UAAU,MAAM,aAAa;AAGrC,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAC9C,OAAM,OAAO,aAAa,aAAa;;CAI3C,MAAa,oBAAoB,cAA2C;AAC1E,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAE9C,OADuB,OACF,sBAAsB,aAAa;;CAI5D,MAAa,eAAe,cAA2C;AACrE,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAE9C,OADuB,OACF,iBAAiB,aAAa;;CAIvD,MAAa,gBAAgB,cAA2C;AACtE,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAE9C,OADuB,OACF,kBAAkB,aAAa;;CAIxD,MAAa,mBAAmB,cAA2C;AACzE,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAE9C,OADuB,OACF,qBAAqB,aAAa;;CAI3D,MAAa,SAAS,cAA4B;EAChD,MAAM,kBAAkB,aAAa,kBAAkB,QAAQ,uBAAuB;EACtF,MAAM,gBAAgB,aAAa,kBAAkB,QAAQ,qBAAqB;EAIlF,MAAM,oBADgB,CAAC,GAAG,gBAAgB,mBAAmB,GAAG,cAAc,mBAAmB,CACzD,KAAK,cAAc,UAAU,MAAM,CAAC;AAC5E,QAAM,QAAQ,IAAI,kBAAkB;AAEpC,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAE9C,OADuB,OACF,WAAW,aAAa;;CAIjD,IAAW,UAAU;AACnB,SAAO;GACL;IACE,aAAa;IACb,WAAW;IACX,UAAU;IACX;GACD;IACE,aAAa;IACb,WAAW;IACX,UAAU;IACX;GACD;IACE,aAAa;IACb,WAAW;IACX,UAAU;IACX;GACF"}
|
|
1
|
+
{"version":3,"file":"DidCommModule.mjs","names":[],"sources":["../src/DidCommModule.ts"],"sourcesContent":["import type { AgentContext, Constructor, DependencyManager, Module, Update } from '@credo-ts/core'\nimport { EventEmitter, InjectionSymbols } from '@credo-ts/core'\nimport type { Subject } from 'rxjs'\nimport { mergeMap, takeUntil } from 'rxjs'\nimport { DidCommApi } from './DidCommApi'\nimport { DidCommDispatcher } from './DidCommDispatcher'\nimport { DidCommEnvelopeService } from './DidCommEnvelopeService'\nimport type { DidCommMessageReceivedEvent } from './DidCommEvents'\nimport { DidCommEventTypes } from './DidCommEvents'\nimport { DidCommFeatureRegistry } from './DidCommFeatureRegistry'\nimport { DidCommMessageHandlerRegistry } from './DidCommMessageHandlerRegistry'\nimport { DidCommMessageReceiver } from './DidCommMessageReceiver'\nimport { DidCommMessageSender } from './DidCommMessageSender'\nimport type { DidCommModuleConfigOptions } from './DidCommModuleConfig'\nimport { DidCommModuleConfig } from './DidCommModuleConfig'\nimport { DidCommTransportService } from './DidCommTransportService'\nimport {\n type DefaultDidCommMessagePickupProtocols,\n type DefaultDidCommProofProtocols,\n DidCommBasicMessagesModule,\n DidCommConnectionsModule,\n type DidCommCredentialProtocol,\n DidCommDiscoverFeaturesModule,\n DidCommMessagePickupModule,\n type DidCommMessagePickupModuleConfigOptions,\n type DidCommMessagePickupProtocol,\n DidCommOutOfBandModule,\n type DidCommProofProtocol,\n DidCommProofsModule,\n type DidCommProofsModuleConfigOptions,\n} from './modules'\nimport {\n type DefaultDidCommCredentialProtocols,\n DidCommCredentialsModule,\n} from './modules/credentials/DidCommCredentialsModule'\nimport type { DidCommCredentialsModuleConfigOptions } from './modules/credentials/DidCommCredentialsModuleConfig'\nimport { DidCommMediationRecipientModule } from './modules/routing/DidCommMediationRecipientModule'\nimport { DidCommMediatorModule } from './modules/routing/DidCommMediatorModule'\nimport { DidCommMessageRepository } from './repository'\nimport { updateV0_1ToV0_2 } from './updates/0.1-0.2'\nimport { updateV0_2ToV0_3 } from './updates/0.2-0.3'\nimport { updateV0_4ToV0_5 } from './updates/0.4-0.5'\n\n// biome-ignore lint/complexity/noBannedTypes: no explanation\ntype ModuleOrEmpty<Config, Module> = Config extends false ? {} : Module\n\ntype DidCommModules<Options extends DidCommModuleConfigOptions> = {\n connections: DidCommConnectionsModule\n oob: DidCommOutOfBandModule\n discovery: DidCommDiscoverFeaturesModule\n} & ModuleOrEmpty<\n Options['credentials'],\n {\n credentials: DidCommCredentialsModule<\n Options['credentials'] extends DidCommCredentialsModuleConfigOptions<DidCommCredentialProtocol[]>\n ? Options['credentials']['credentialProtocols']\n : DefaultDidCommCredentialProtocols\n >\n }\n> &\n ModuleOrEmpty<\n Options['proofs'],\n {\n proofs: DidCommProofsModule<\n Options['proofs'] extends DidCommProofsModuleConfigOptions<DidCommProofProtocol[]>\n ? Options['proofs']['proofProtocols']\n : DefaultDidCommProofProtocols\n >\n }\n > &\n ModuleOrEmpty<\n Options['messagePickup'],\n {\n messagePickup: DidCommMessagePickupModule<\n Options['messagePickup'] extends DidCommMessagePickupModuleConfigOptions<DidCommMessagePickupProtocol[]>\n ? Options['messagePickup']['protocols']\n : DefaultDidCommMessagePickupProtocols\n >\n }\n > &\n ModuleOrEmpty<Options['mediator'], { mediator: DidCommMediatorModule }> &\n ModuleOrEmpty<Options['mediationRecipient'], { mediationRecipient: DidCommMediationRecipientModule }> &\n ModuleOrEmpty<Options['basicMessages'], { basicMessages: DidCommBasicMessagesModule }>\n\nfunction getDidcommModules<Options extends DidCommModuleConfigOptions>(options: Options): DidCommModules<Options> {\n return {\n connections: new DidCommConnectionsModule(options.connections),\n oob: new DidCommOutOfBandModule(),\n discovery: new DidCommDiscoverFeaturesModule(options.discovery),\n\n credentials:\n options.credentials !== false\n ? new DidCommCredentialsModule(options.credentials === true ? {} : options.credentials)\n : undefined,\n\n proofs:\n options.proofs !== false ? new DidCommProofsModule(options.proofs === true ? {} : options.proofs) : undefined,\n\n mediator:\n options.mediator !== false\n ? new DidCommMediatorModule(options.mediator === true ? {} : options.mediator)\n : undefined,\n\n mediationRecipient:\n options.mediationRecipient !== false\n ? new DidCommMediationRecipientModule(options.mediationRecipient === true ? {} : options.mediationRecipient)\n : undefined,\n\n messagePickup:\n options.messagePickup !== false\n ? new DidCommMessagePickupModule(options.messagePickup === true ? {} : options.messagePickup)\n : undefined,\n\n basicMessages: options.basicMessages !== false ? new DidCommBasicMessagesModule() : undefined,\n } as unknown as DidCommModules<Options>\n}\n\nexport class DidCommModule<Options extends DidCommModuleConfigOptions = DidCommModuleConfigOptions> implements Module {\n public readonly config: DidCommModuleConfig<Options>\n public readonly api: typeof DidCommApi<Options> = DidCommApi\n\n public readonly modules: ReturnType<typeof getDidcommModules<Options>>\n\n public constructor(config?: Options) {\n this.config = new DidCommModuleConfig<Options>(config)\n this.modules = getDidcommModules(config ?? {})\n }\n\n /**\n * Registers the dependencies of the question answer module on the dependency manager.\n */\n public register(dependencyManager: DependencyManager) {\n // Config\n dependencyManager.registerInstance(DidCommModuleConfig, this.config)\n\n // Registries\n dependencyManager.registerSingleton(DidCommMessageHandlerRegistry)\n dependencyManager.registerSingleton(DidCommFeatureRegistry)\n\n // Services\n dependencyManager.registerSingleton(DidCommMessageSender)\n dependencyManager.registerSingleton(DidCommMessageReceiver)\n dependencyManager.registerSingleton(DidCommTransportService)\n dependencyManager.registerSingleton(DidCommDispatcher)\n dependencyManager.registerSingleton(DidCommEnvelopeService)\n\n // Repositories\n dependencyManager.registerSingleton(DidCommMessageRepository)\n\n for (const [_moduleKey, module] of Object.entries(this.modules)) {\n module.register(dependencyManager)\n\n if (module.api) {\n dependencyManager.registerContextScoped(module.api as Constructor<unknown>)\n }\n }\n }\n\n public async initialize(agentContext: AgentContext): Promise<void> {\n const stop$ = agentContext.dependencyManager.resolve<Subject<boolean>>(InjectionSymbols.Stop$)\n const eventEmitter = agentContext.dependencyManager.resolve(EventEmitter)\n const messageReceiver = agentContext.dependencyManager.resolve(DidCommMessageReceiver)\n\n // Listen for new messages (either from transports or somewhere else in the framework / extensions)\n // We create this before doing any other initialization, so the initialization could already receive messages\n eventEmitter\n .observable<DidCommMessageReceivedEvent>(DidCommEventTypes.DidCommMessageReceived)\n .pipe(\n takeUntil(stop$),\n mergeMap(\n (e) =>\n messageReceiver\n .receiveMessage(e.payload.message, {\n connection: e.payload.connection,\n contextCorrelationId: e.payload.contextCorrelationId,\n session: e.payload.session,\n receivedAt: e.payload.receivedAt,\n })\n .catch((error) => {\n agentContext.config.logger.error('Failed to process message', { error })\n }),\n this.config.processDidCommMessagesConcurrently ? undefined : 1\n )\n )\n .subscribe()\n\n for (const transport of this.config.inboundTransports) {\n await transport.start(agentContext)\n }\n\n for (const transport of this.config.outboundTransports) {\n await transport.start(agentContext)\n }\n\n for (const module of Object.values(this.modules)) {\n await module.initialize?.(agentContext)\n }\n }\n\n public async onInitializeContext(agentContext: AgentContext): Promise<void> {\n for (const module of Object.values(this.modules)) {\n const standardModule = module as Module\n await standardModule.onInitializeContext?.(agentContext)\n }\n }\n\n public async onCloseContext(agentContext: AgentContext): Promise<void> {\n for (const module of Object.values(this.modules)) {\n const standardModule = module as Module\n await standardModule.onCloseContext?.(agentContext)\n }\n }\n\n public async onDeleteContext(agentContext: AgentContext): Promise<void> {\n for (const module of Object.values(this.modules)) {\n const standardModule = module as Module\n await standardModule.onDeleteContext?.(agentContext)\n }\n }\n\n public async onProvisionContext(agentContext: AgentContext): Promise<void> {\n for (const module of Object.values(this.modules)) {\n const standardModule = module as Module\n await standardModule.onProvisionContext?.(agentContext)\n }\n }\n\n public async shutdown(agentContext: AgentContext) {\n // Stop transports\n const allTransports = [...this.config.inboundTransports, ...this.config.outboundTransports]\n const transportPromises = allTransports.map((transport) => transport.stop())\n await Promise.all(transportPromises)\n\n for (const module of Object.values(this.modules)) {\n const standardModule = module as Module\n await standardModule.shutdown?.(agentContext)\n }\n }\n\n public get updates() {\n return [\n {\n fromVersion: '0.1',\n toVersion: '0.2',\n doUpdate: updateV0_1ToV0_2,\n },\n {\n fromVersion: '0.2',\n toVersion: '0.3',\n doUpdate: updateV0_2ToV0_3,\n },\n {\n fromVersion: '0.4',\n toVersion: '0.5',\n doUpdate: updateV0_4ToV0_5,\n },\n ] satisfies Update[]\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFA,SAAS,kBAA8D,SAA2C;AAChH,QAAO;EACL,aAAa,IAAI,yBAAyB,QAAQ,YAAY;EAC9D,KAAK,IAAI,wBAAwB;EACjC,WAAW,IAAI,8BAA8B,QAAQ,UAAU;EAE/D,aACE,QAAQ,gBAAgB,QACpB,IAAI,yBAAyB,QAAQ,gBAAgB,OAAO,EAAE,GAAG,QAAQ,YAAY,GACrF;EAEN,QACE,QAAQ,WAAW,QAAQ,IAAI,oBAAoB,QAAQ,WAAW,OAAO,EAAE,GAAG,QAAQ,OAAO,GAAG;EAEtG,UACE,QAAQ,aAAa,QACjB,IAAI,sBAAsB,QAAQ,aAAa,OAAO,EAAE,GAAG,QAAQ,SAAS,GAC5E;EAEN,oBACE,QAAQ,uBAAuB,QAC3B,IAAI,gCAAgC,QAAQ,uBAAuB,OAAO,EAAE,GAAG,QAAQ,mBAAmB,GAC1G;EAEN,eACE,QAAQ,kBAAkB,QACtB,IAAI,2BAA2B,QAAQ,kBAAkB,OAAO,EAAE,GAAG,QAAQ,cAAc,GAC3F;EAEN,eAAe,QAAQ,kBAAkB,QAAQ,IAAI,4BAA4B,GAAG;EACrF;;AAGH,IAAa,gBAAb,MAAsH;CAMpH,AAAO,YAAY,QAAkB;OAJrB,MAAkC;AAKhD,OAAK,SAAS,IAAI,oBAA6B,OAAO;AACtD,OAAK,UAAU,kBAAkB,UAAU,EAAE,CAAC;;;;;CAMhD,AAAO,SAAS,mBAAsC;AAEpD,oBAAkB,iBAAiB,qBAAqB,KAAK,OAAO;AAGpE,oBAAkB,kBAAkB,8BAA8B;AAClE,oBAAkB,kBAAkB,uBAAuB;AAG3D,oBAAkB,kBAAkB,qBAAqB;AACzD,oBAAkB,kBAAkB,uBAAuB;AAC3D,oBAAkB,kBAAkB,wBAAwB;AAC5D,oBAAkB,kBAAkB,kBAAkB;AACtD,oBAAkB,kBAAkB,uBAAuB;AAG3D,oBAAkB,kBAAkB,yBAAyB;AAE7D,OAAK,MAAM,CAAC,YAAY,WAAW,OAAO,QAAQ,KAAK,QAAQ,EAAE;AAC/D,UAAO,SAAS,kBAAkB;AAElC,OAAI,OAAO,IACT,mBAAkB,sBAAsB,OAAO,IAA4B;;;CAKjF,MAAa,WAAW,cAA2C;EACjE,MAAM,QAAQ,aAAa,kBAAkB,QAA0B,iBAAiB,MAAM;EAC9F,MAAM,eAAe,aAAa,kBAAkB,QAAQ,aAAa;EACzE,MAAM,kBAAkB,aAAa,kBAAkB,QAAQ,uBAAuB;AAItF,eACG,WAAwC,kBAAkB,uBAAuB,CACjF,KACC,UAAU,MAAM,EAChB,UACG,MACC,gBACG,eAAe,EAAE,QAAQ,SAAS;GACjC,YAAY,EAAE,QAAQ;GACtB,sBAAsB,EAAE,QAAQ;GAChC,SAAS,EAAE,QAAQ;GACnB,YAAY,EAAE,QAAQ;GACvB,CAAC,CACD,OAAO,UAAU;AAChB,gBAAa,OAAO,OAAO,MAAM,6BAA6B,EAAE,OAAO,CAAC;IACxE,EACN,KAAK,OAAO,qCAAqC,SAAY,EAC9D,CACF,CACA,WAAW;AAEd,OAAK,MAAM,aAAa,KAAK,OAAO,kBAClC,OAAM,UAAU,MAAM,aAAa;AAGrC,OAAK,MAAM,aAAa,KAAK,OAAO,mBAClC,OAAM,UAAU,MAAM,aAAa;AAGrC,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAC9C,OAAM,OAAO,aAAa,aAAa;;CAI3C,MAAa,oBAAoB,cAA2C;AAC1E,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAE9C,OADuB,OACF,sBAAsB,aAAa;;CAI5D,MAAa,eAAe,cAA2C;AACrE,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAE9C,OADuB,OACF,iBAAiB,aAAa;;CAIvD,MAAa,gBAAgB,cAA2C;AACtE,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAE9C,OADuB,OACF,kBAAkB,aAAa;;CAIxD,MAAa,mBAAmB,cAA2C;AACzE,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAE9C,OADuB,OACF,qBAAqB,aAAa;;CAI3D,MAAa,SAAS,cAA4B;EAGhD,MAAM,oBADgB,CAAC,GAAG,KAAK,OAAO,mBAAmB,GAAG,KAAK,OAAO,mBAAmB,CACnD,KAAK,cAAc,UAAU,MAAM,CAAC;AAC5E,QAAM,QAAQ,IAAI,kBAAkB;AAEpC,OAAK,MAAM,UAAU,OAAO,OAAO,KAAK,QAAQ,CAE9C,OADuB,OACF,WAAW,aAAa;;CAIjD,IAAW,UAAU;AACnB,SAAO;GACL;IACE,aAAa;IACb,WAAW;IACX,UAAU;IACX;GACD;IACE,aAAa;IACb,WAAW;IACX,UAAU;IACX;GACD;IACE,aAAa;IACb,WAAW;IACX,UAAU;IACX;GACF"}
|
|
@@ -4,15 +4,21 @@ import { DidCommDiscoverFeaturesModuleConfigOptions } from "./modules/discover-f
|
|
|
4
4
|
import { DidCommQueueTransportRepository } from "./transport/queue/DidCommQueueTransportRepository.mjs";
|
|
5
5
|
import { DidCommMessagePickupProtocol } from "./modules/message-pickup/protocol/DidCommMessagePickupProtocol.mjs";
|
|
6
6
|
import { DidCommMessagePickupModuleConfigOptions } from "./modules/message-pickup/DidCommMessagePickupModuleConfig.mjs";
|
|
7
|
-
import { DidCommConnectionsModuleConfigOptions } from "./modules/connections/DidCommConnectionsModuleConfig.mjs";
|
|
8
7
|
import { DidCommProofProtocol } from "./modules/proofs/protocol/DidCommProofProtocol.mjs";
|
|
9
8
|
import { DidCommProofsModuleConfigOptions } from "./modules/proofs/DidCommProofsModuleConfig.mjs";
|
|
10
|
-
import { DidCommMediatorModuleConfigOptions } from "./modules/routing/DidCommMediatorModuleConfig.mjs";
|
|
11
9
|
import { DidCommMediationRecipientModuleConfigOptions } from "./modules/routing/DidCommMediationRecipientModuleConfig.mjs";
|
|
10
|
+
import { DidCommMediatorModuleConfigOptions } from "./modules/routing/DidCommMediatorModuleConfig.mjs";
|
|
11
|
+
import { DidCommOutboundTransport } from "./transport/DidCommOutboundTransport.mjs";
|
|
12
|
+
import { DidCommInboundTransport } from "./transport/DidCommInboundTransport.mjs";
|
|
13
|
+
import { DidCommConnectionsModuleConfigOptions } from "./modules/connections/DidCommConnectionsModuleConfig.mjs";
|
|
12
14
|
|
|
13
15
|
//#region src/DidCommModuleConfig.d.ts
|
|
14
16
|
interface DidCommModuleConfigOptions {
|
|
15
17
|
endpoints?: string[];
|
|
18
|
+
transports?: {
|
|
19
|
+
inbound?: DidCommInboundTransport[];
|
|
20
|
+
outbound?: DidCommOutboundTransport[];
|
|
21
|
+
};
|
|
16
22
|
useDidSovPrefixWhereAllowed?: boolean;
|
|
17
23
|
processDidCommMessagesConcurrently?: boolean;
|
|
18
24
|
didCommMimeType?: string;
|
|
@@ -97,6 +103,8 @@ interface DidCommModuleConfigOptions {
|
|
|
97
103
|
declare class DidCommModuleConfig<Options extends DidCommModuleConfigOptions = DidCommModuleConfigOptions> {
|
|
98
104
|
private options;
|
|
99
105
|
private _endpoints?;
|
|
106
|
+
private _inboundTransports;
|
|
107
|
+
private _outboundTransports;
|
|
100
108
|
private _queueTransportRepository;
|
|
101
109
|
readonly enabledModules: {
|
|
102
110
|
oob: true;
|
|
@@ -113,6 +121,10 @@ declare class DidCommModuleConfig<Options extends DidCommModuleConfigOptions = D
|
|
|
113
121
|
get endpoints(): [string, ...string[]];
|
|
114
122
|
set endpoints(endpoints: string[]);
|
|
115
123
|
get useDidSovPrefixWhereAllowed(): boolean;
|
|
124
|
+
get inboundTransports(): DidCommInboundTransport[];
|
|
125
|
+
set inboundTransports(inboundTransports: DidCommInboundTransport[]);
|
|
126
|
+
get outboundTransports(): DidCommOutboundTransport[];
|
|
127
|
+
set outboundTransports(outboundTransports: DidCommOutboundTransport[]);
|
|
116
128
|
get processDidCommMessagesConcurrently(): boolean;
|
|
117
129
|
get didCommMimeType(): string;
|
|
118
130
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommModuleConfig.d.mts","names":[],"sources":["../src/DidCommModuleConfig.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DidCommModuleConfig.d.mts","names":[],"sources":["../src/DidCommModuleConfig.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;UAqBiB,0BAAA;;;cAGH;eACC;;;;EAJE,eAAA,CAAA,EAAA,MAAA;EAA0B,oBAAA,CAAA,EAAA,OAAA;0BAG7B,CAAA,EAOe,+BAPf;;;;;;aAkCY,CAAA,EApBV,qCAoBU;;;;;;WAwDO,CAAA,EArEnB,0CAqEmB;EAA4C;AAG7E;;;;;;;;;;aAmB+B,CAAA,EAAA,OAAA,GA9EL,qCA8EK,CA9EiC,yBA8EjC,EAAA,CAAA;;;;;;;;;;;;qBAjEV,iCAAiC;;;;;;;;;;;;;;;;;;;;;4BAuB1B,wCAAwC;;;;;;;;;uBAU7C;;;;;;;;;iCAUU;;cAGpB,oCAAoC,6BAA6B;;;;;;;;;;iBAW7D;YACL;mBACO;cACL;wBACU;mBACL;;wBAGY;;;;2BA0CmB;2CAAA;4BAQE;6CAAA;;;;;;;;;;;;;;kCA0Bf"}
|
|
@@ -4,15 +4,21 @@ import { DidCommDiscoverFeaturesModuleConfigOptions } from "./modules/discover-f
|
|
|
4
4
|
import { DidCommQueueTransportRepository } from "./transport/queue/DidCommQueueTransportRepository.js";
|
|
5
5
|
import { DidCommMessagePickupProtocol } from "./modules/message-pickup/protocol/DidCommMessagePickupProtocol.js";
|
|
6
6
|
import { DidCommMessagePickupModuleConfigOptions } from "./modules/message-pickup/DidCommMessagePickupModuleConfig.js";
|
|
7
|
-
import { DidCommConnectionsModuleConfigOptions } from "./modules/connections/DidCommConnectionsModuleConfig.js";
|
|
8
7
|
import { DidCommProofProtocol } from "./modules/proofs/protocol/DidCommProofProtocol.js";
|
|
9
8
|
import { DidCommProofsModuleConfigOptions } from "./modules/proofs/DidCommProofsModuleConfig.js";
|
|
10
|
-
import { DidCommMediatorModuleConfigOptions } from "./modules/routing/DidCommMediatorModuleConfig.js";
|
|
11
9
|
import { DidCommMediationRecipientModuleConfigOptions } from "./modules/routing/DidCommMediationRecipientModuleConfig.js";
|
|
10
|
+
import { DidCommMediatorModuleConfigOptions } from "./modules/routing/DidCommMediatorModuleConfig.js";
|
|
11
|
+
import { DidCommOutboundTransport } from "./transport/DidCommOutboundTransport.js";
|
|
12
|
+
import { DidCommInboundTransport } from "./transport/DidCommInboundTransport.js";
|
|
13
|
+
import { DidCommConnectionsModuleConfigOptions } from "./modules/connections/DidCommConnectionsModuleConfig.js";
|
|
12
14
|
|
|
13
15
|
//#region src/DidCommModuleConfig.d.ts
|
|
14
16
|
interface DidCommModuleConfigOptions {
|
|
15
17
|
endpoints?: string[];
|
|
18
|
+
transports?: {
|
|
19
|
+
inbound?: DidCommInboundTransport[];
|
|
20
|
+
outbound?: DidCommOutboundTransport[];
|
|
21
|
+
};
|
|
16
22
|
useDidSovPrefixWhereAllowed?: boolean;
|
|
17
23
|
processDidCommMessagesConcurrently?: boolean;
|
|
18
24
|
didCommMimeType?: string;
|
|
@@ -97,6 +103,8 @@ interface DidCommModuleConfigOptions {
|
|
|
97
103
|
declare class DidCommModuleConfig<Options extends DidCommModuleConfigOptions = DidCommModuleConfigOptions> {
|
|
98
104
|
private options;
|
|
99
105
|
private _endpoints?;
|
|
106
|
+
private _inboundTransports;
|
|
107
|
+
private _outboundTransports;
|
|
100
108
|
private _queueTransportRepository;
|
|
101
109
|
readonly enabledModules: {
|
|
102
110
|
oob: true;
|
|
@@ -113,6 +121,10 @@ declare class DidCommModuleConfig<Options extends DidCommModuleConfigOptions = D
|
|
|
113
121
|
get endpoints(): [string, ...string[]];
|
|
114
122
|
set endpoints(endpoints: string[]);
|
|
115
123
|
get useDidSovPrefixWhereAllowed(): boolean;
|
|
124
|
+
get inboundTransports(): DidCommInboundTransport[];
|
|
125
|
+
set inboundTransports(inboundTransports: DidCommInboundTransport[]);
|
|
126
|
+
get outboundTransports(): DidCommOutboundTransport[];
|
|
127
|
+
set outboundTransports(outboundTransports: DidCommOutboundTransport[]);
|
|
116
128
|
get processDidCommMessagesConcurrently(): boolean;
|
|
117
129
|
get didCommMimeType(): string;
|
|
118
130
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommModuleConfig.d.ts","names":[],"sources":["../src/DidCommModuleConfig.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DidCommModuleConfig.d.ts","names":[],"sources":["../src/DidCommModuleConfig.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;UAqBiB,0BAAA;;;cAGH;eACC;;;;EAJE,eAAA,CAAA,EAAA,MAAA;EAA0B,oBAAA,CAAA,EAAA,OAAA;0BAG7B,CAAA,EAOe,+BAPf;;;;;;aAkCY,CAAA,EApBV,qCAoBU;;;;;;WAwDO,CAAA,EArEnB,0CAqEmB;EAA4C;AAG7E;;;;;;;;;;aAmB+B,CAAA,EAAA,OAAA,GA9EL,qCA8EK,CA9EiC,yBA8EjC,EAAA,CAAA;;;;;;;;;;;;qBAjEV,iCAAiC;;;;;;;;;;;;;;;;;;;;;4BAuB1B,wCAAwC;;;;;;;;;uBAU7C;;;;;;;;;iCAUU;;cAGpB,oCAAoC,6BAA6B;;;;;;;;;;iBAW7D;YACL;mBACO;cACL;wBACU;mBACL;;wBAGY;;;;2BA0CmB;2CAAA;4BAQE;6CAAA;;;;;;;;;;;;;;kCA0Bf"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
const require_constants = require('./constants.js');
|
|
2
2
|
const require_InMemoryQueueTransportRepository = require('./transport/queue/InMemoryQueueTransportRepository.js');
|
|
3
|
-
const require_types = require('./types.js');
|
|
4
3
|
require('./transport/index.js');
|
|
4
|
+
const require_types = require('./types.js');
|
|
5
5
|
|
|
6
6
|
//#region src/DidCommModuleConfig.ts
|
|
7
7
|
var DidCommModuleConfig = class {
|
|
8
8
|
constructor(options) {
|
|
9
9
|
this.options = options ?? {};
|
|
10
10
|
this._endpoints = options?.endpoints;
|
|
11
|
+
this._inboundTransports = options?.transports?.inbound ?? [];
|
|
12
|
+
this._outboundTransports = options?.transports?.outbound ?? [];
|
|
11
13
|
this._queueTransportRepository = options?.queueTransportRepository ?? new require_InMemoryQueueTransportRepository.InMemoryQueueTransportRepository();
|
|
12
14
|
this.enabledModules = {
|
|
13
15
|
connections: true,
|
|
@@ -31,6 +33,18 @@ var DidCommModuleConfig = class {
|
|
|
31
33
|
get useDidSovPrefixWhereAllowed() {
|
|
32
34
|
return this.options.useDidSovPrefixWhereAllowed ?? false;
|
|
33
35
|
}
|
|
36
|
+
get inboundTransports() {
|
|
37
|
+
return this._inboundTransports;
|
|
38
|
+
}
|
|
39
|
+
set inboundTransports(inboundTransports) {
|
|
40
|
+
this._inboundTransports = inboundTransports;
|
|
41
|
+
}
|
|
42
|
+
get outboundTransports() {
|
|
43
|
+
return this._outboundTransports;
|
|
44
|
+
}
|
|
45
|
+
set outboundTransports(outboundTransports) {
|
|
46
|
+
this._outboundTransports = outboundTransports;
|
|
47
|
+
}
|
|
34
48
|
get processDidCommMessagesConcurrently() {
|
|
35
49
|
return this.options.processDidCommMessagesConcurrently ?? false;
|
|
36
50
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { DID_COMM_TRANSPORT_QUEUE } from "./constants.mjs";
|
|
2
2
|
import { InMemoryQueueTransportRepository } from "./transport/queue/InMemoryQueueTransportRepository.mjs";
|
|
3
|
-
import { DidCommMimeType } from "./types.mjs";
|
|
4
3
|
import "./transport/index.mjs";
|
|
4
|
+
import { DidCommMimeType } from "./types.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/DidCommModuleConfig.ts
|
|
7
7
|
var DidCommModuleConfig = class {
|
|
8
8
|
constructor(options) {
|
|
9
9
|
this.options = options ?? {};
|
|
10
10
|
this._endpoints = options?.endpoints;
|
|
11
|
+
this._inboundTransports = options?.transports?.inbound ?? [];
|
|
12
|
+
this._outboundTransports = options?.transports?.outbound ?? [];
|
|
11
13
|
this._queueTransportRepository = options?.queueTransportRepository ?? new InMemoryQueueTransportRepository();
|
|
12
14
|
this.enabledModules = {
|
|
13
15
|
connections: true,
|
|
@@ -31,6 +33,18 @@ var DidCommModuleConfig = class {
|
|
|
31
33
|
get useDidSovPrefixWhereAllowed() {
|
|
32
34
|
return this.options.useDidSovPrefixWhereAllowed ?? false;
|
|
33
35
|
}
|
|
36
|
+
get inboundTransports() {
|
|
37
|
+
return this._inboundTransports;
|
|
38
|
+
}
|
|
39
|
+
set inboundTransports(inboundTransports) {
|
|
40
|
+
this._inboundTransports = inboundTransports;
|
|
41
|
+
}
|
|
42
|
+
get outboundTransports() {
|
|
43
|
+
return this._outboundTransports;
|
|
44
|
+
}
|
|
45
|
+
set outboundTransports(outboundTransports) {
|
|
46
|
+
this._outboundTransports = outboundTransports;
|
|
47
|
+
}
|
|
34
48
|
get processDidCommMessagesConcurrently() {
|
|
35
49
|
return this.options.processDidCommMessagesConcurrently ?? false;
|
|
36
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommModuleConfig.mjs","names":[],"sources":["../src/DidCommModuleConfig.ts"],"sourcesContent":["import { DID_COMM_TRANSPORT_QUEUE } from './constants'\nimport type {\n DidCommConnectionsModuleConfigOptions,\n DidCommCredentialProtocol,\n DidCommMessagePickupModuleConfigOptions,\n DidCommMessagePickupProtocol,\n DidCommProofsModuleConfigOptions,\n} from './modules'\nimport type { DidCommCredentialsModuleConfigOptions } from './modules/credentials/DidCommCredentialsModuleConfig'\nimport type { DidCommDiscoverFeaturesModuleConfigOptions } from './modules/discover-features/DidCommDiscoverFeaturesModuleConfig'\nimport type { DidCommProofProtocol } from './modules/proofs/protocol/DidCommProofProtocol'\nimport type { DidCommMediationRecipientModuleConfigOptions } from './modules/routing/DidCommMediationRecipientModuleConfig'\nimport type { DidCommMediatorModuleConfigOptions } from './modules/routing/DidCommMediatorModuleConfig'\nimport { type DidCommQueueTransportRepository
|
|
1
|
+
{"version":3,"file":"DidCommModuleConfig.mjs","names":[],"sources":["../src/DidCommModuleConfig.ts"],"sourcesContent":["import { DID_COMM_TRANSPORT_QUEUE } from './constants'\nimport type {\n DidCommConnectionsModuleConfigOptions,\n DidCommCredentialProtocol,\n DidCommMessagePickupModuleConfigOptions,\n DidCommMessagePickupProtocol,\n DidCommProofsModuleConfigOptions,\n} from './modules'\nimport type { DidCommCredentialsModuleConfigOptions } from './modules/credentials/DidCommCredentialsModuleConfig'\nimport type { DidCommDiscoverFeaturesModuleConfigOptions } from './modules/discover-features/DidCommDiscoverFeaturesModuleConfig'\nimport type { DidCommProofProtocol } from './modules/proofs/protocol/DidCommProofProtocol'\nimport type { DidCommMediationRecipientModuleConfigOptions } from './modules/routing/DidCommMediationRecipientModuleConfig'\nimport type { DidCommMediatorModuleConfigOptions } from './modules/routing/DidCommMediatorModuleConfig'\nimport {\n type DidCommInboundTransport,\n type DidCommOutboundTransport,\n type DidCommQueueTransportRepository,\n InMemoryQueueTransportRepository,\n} from './transport'\nimport { DidCommMimeType } from './types'\n\nexport interface DidCommModuleConfigOptions {\n endpoints?: string[]\n transports?: {\n inbound?: DidCommInboundTransport[]\n outbound?: DidCommOutboundTransport[]\n }\n useDidSovPrefixWhereAllowed?: boolean\n processDidCommMessagesConcurrently?: boolean\n didCommMimeType?: string\n useDidKeyInProtocols?: boolean\n queueTransportRepository?: DidCommQueueTransportRepository\n\n /**\n * Configuration for the connection module.\n *\n * The connection module is always enabled\n */\n connections?: DidCommConnectionsModuleConfigOptions\n\n /**\n * Configuration for the discover features module.\n *\n * The discover features module is always enabled\n */\n discovery?: DidCommDiscoverFeaturesModuleConfigOptions\n\n /**\n * Configuration for the credentials module\n *\n * The credentials module is enabled by default with\n * the V2ProofsProtocol and the XProofFormatService\n *\n * You can disable the module by passing `false`, or provide a\n * custom configuration to override the default\n *\n * @default true\n */\n credentials?: boolean | DidCommCredentialsModuleConfigOptions<DidCommCredentialProtocol[]>\n\n /**\n * Configuration for the proofs module\n *\n * The proofs module is enabled by default with\n * the V2CredentialsProtocol and the XXCredentialFormatService\n *\n * You can disable the module by passing `false`, or provide a\n * custom configuration to override the default\n *\n * @default true\n */\n proofs?: boolean | DidCommProofsModuleConfigOptions<DidCommProofProtocol[]>\n\n /**\n * Configuration to enable to basic messages module\n *\n * The basic messages module is enabled by default,\n * but can be disabled by passing `false`\n *\n * @default true\n */\n basicMessages?: boolean\n\n /**\n * Configuration for the message pickup module\n *\n * The message pickup module is enabled by default with\n * the V1PickupProtocol and the V2PickupProtocol\n *\n * You can disable the module by passing `false`, or provide a\n * custom configuration to override the default\n *\n * @default true\n */\n messagePickup?: boolean | DidCommMessagePickupModuleConfigOptions<DidCommMessagePickupProtocol[]>\n\n /**\n * Configuration or the mediator module\n *\n * The mediator module is enabled by default,\n * but can be disabled by passing `false`\n *\n * @default true\n */\n mediator?: boolean | DidCommMediatorModuleConfigOptions\n\n /**\n * Configuration for the mediation recipient module\n *\n * The mediator module is enabled by default,\n * but can be disabled by passing `false`\n *\n * @default true\n */\n mediationRecipient?: boolean | DidCommMediationRecipientModuleConfigOptions\n}\n\nexport class DidCommModuleConfig<Options extends DidCommModuleConfigOptions = DidCommModuleConfigOptions> {\n private options: Options\n private _endpoints?: string[]\n private _inboundTransports: DidCommInboundTransport[]\n private _outboundTransports: DidCommOutboundTransport[]\n private _queueTransportRepository: DidCommQueueTransportRepository\n\n public readonly enabledModules: {\n oob: true\n connections: true\n discovery: true\n credentials: Options['credentials'] extends false ? false : true\n proofs: Options['proofs'] extends false ? false : true\n messagePickup: Options['messagePickup'] extends false ? false : true\n mediator: Options['mediator'] extends false ? false : true\n mediationRecipient: Options['mediationRecipient'] extends false ? false : true\n basicMessages: Options['basicMessages'] extends false ? false : true\n }\n\n public constructor(options?: Options) {\n this.options = (options ?? {}) as Options\n this._endpoints = options?.endpoints\n this._inboundTransports = options?.transports?.inbound ?? []\n this._outboundTransports = options?.transports?.outbound ?? []\n this._queueTransportRepository = options?.queueTransportRepository ?? new InMemoryQueueTransportRepository()\n\n this.enabledModules = {\n connections: true,\n oob: true,\n discovery: true,\n proofs: this.options.proofs !== false,\n credentials: this.options.credentials !== false,\n messagePickup: this.options.messagePickup !== false,\n mediator: this.options.mediator !== false,\n mediationRecipient: this.options.mediationRecipient !== false,\n basicMessages: this.options.basicMessages !== false,\n } as this['enabledModules']\n }\n\n public get endpoints(): [string, ...string[]] {\n // if endpoints is not set, return queue endpoint\n // https://github.com/hyperledger/aries-rfcs/issues/405#issuecomment-582612875\n if (!this._endpoints || this._endpoints.length === 0) {\n return [DID_COMM_TRANSPORT_QUEUE]\n }\n\n return this._endpoints as [string, ...string[]]\n }\n\n public set endpoints(endpoints: string[]) {\n this._endpoints = endpoints\n }\n\n public get useDidSovPrefixWhereAllowed() {\n return this.options.useDidSovPrefixWhereAllowed ?? false\n }\n\n public get inboundTransports() {\n return this._inboundTransports\n }\n\n public set inboundTransports(inboundTransports: DidCommInboundTransport[]) {\n this._inboundTransports = inboundTransports\n }\n\n public get outboundTransports() {\n return this._outboundTransports\n }\n\n public set outboundTransports(outboundTransports: DidCommOutboundTransport[]) {\n this._outboundTransports = outboundTransports\n }\n\n public get processDidCommMessagesConcurrently() {\n return this.options.processDidCommMessagesConcurrently ?? false\n }\n\n public get didCommMimeType() {\n return this.options.didCommMimeType ?? DidCommMimeType.V1\n }\n\n /**\n * Encode keys in did:key format instead of 'naked' keys, as stated in Aries RFC 0360.\n *\n * This setting will not be taken into account if the other party has previously used naked keys\n * in a given protocol (i.e. it does not support Aries RFC 0360).\n */\n public get useDidKeyInProtocols() {\n return this.options.useDidKeyInProtocols ?? true\n }\n\n /**\n * Allows to specify a custom queue transport queue. It defaults to an in-memory queue\n *\n */\n public get queueTransportRepository() {\n return this._queueTransportRepository\n }\n}\n"],"mappings":";;;;;;AAqHA,IAAa,sBAAb,MAA0G;CAmBxG,AAAO,YAAY,SAAmB;AACpC,OAAK,UAAW,WAAW,EAAE;AAC7B,OAAK,aAAa,SAAS;AAC3B,OAAK,qBAAqB,SAAS,YAAY,WAAW,EAAE;AAC5D,OAAK,sBAAsB,SAAS,YAAY,YAAY,EAAE;AAC9D,OAAK,4BAA4B,SAAS,4BAA4B,IAAI,kCAAkC;AAE5G,OAAK,iBAAiB;GACpB,aAAa;GACb,KAAK;GACL,WAAW;GACX,QAAQ,KAAK,QAAQ,WAAW;GAChC,aAAa,KAAK,QAAQ,gBAAgB;GAC1C,eAAe,KAAK,QAAQ,kBAAkB;GAC9C,UAAU,KAAK,QAAQ,aAAa;GACpC,oBAAoB,KAAK,QAAQ,uBAAuB;GACxD,eAAe,KAAK,QAAQ,kBAAkB;GAC/C;;CAGH,IAAW,YAAmC;AAG5C,MAAI,CAAC,KAAK,cAAc,KAAK,WAAW,WAAW,EACjD,QAAO,CAAC,yBAAyB;AAGnC,SAAO,KAAK;;CAGd,IAAW,UAAU,WAAqB;AACxC,OAAK,aAAa;;CAGpB,IAAW,8BAA8B;AACvC,SAAO,KAAK,QAAQ,+BAA+B;;CAGrD,IAAW,oBAAoB;AAC7B,SAAO,KAAK;;CAGd,IAAW,kBAAkB,mBAA8C;AACzE,OAAK,qBAAqB;;CAG5B,IAAW,qBAAqB;AAC9B,SAAO,KAAK;;CAGd,IAAW,mBAAmB,oBAAgD;AAC5E,OAAK,sBAAsB;;CAG7B,IAAW,qCAAqC;AAC9C,SAAO,KAAK,QAAQ,sCAAsC;;CAG5D,IAAW,kBAAkB;AAC3B,SAAO,KAAK,QAAQ,mBAAmB,gBAAgB;;;;;;;;CASzD,IAAW,uBAAuB;AAChC,SAAO,KAAK,QAAQ,wBAAwB;;;;;;CAO9C,IAAW,2BAA2B;AACpC,SAAO,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommTransportService.d.mts","names":[],"sources":["../src/DidCommTransportService.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommTransportService.d.mts","names":[],"sources":["../src/DidCommTransportService.ts"],"sourcesContent":[],"mappings":";;;;;;cAUa,uBAAA;EAAA,qBAAA,EACmB,qBADI;EAAA,QAAA,YAAA;UACJ,YAAA;aAIG,CAAA,YAAA,EAAA,YAAA,EAAA,YAAA,EAA4B,YAA5B;aAA4B,CAAA,OAAA,EAKjC,uBALiC,CAAA,EAAA,IAAA;2BAKjC,CAAA,YAAA,EAAA,MAAA,CAAA,EAmByB,uBAnBzB,GAAA,SAAA;2BAmByB,CAAA,SAAA,EAAA,MAAA,EAAA,YAAA,EAAA,MAAA,CAAA,EAAA,IAAA;oBAad,CAAA,WAAA,EAAA,WAAA,CAAA,EAAA,OAAA;iBAIC,CAAA,SAAA,EAAA,MAAA,CAAA,EAAA,uBAAA,GAAA,SAAA;eAIV,CAAA,OAAA,EAAA,uBAAA,CAAA,EAAA,IAAA;EAAuB,QAAA,yCAAA;AAetD;AAYD,UAVU,qBAAA,CAU8B;EAAA,CAAA,SAAA,EAAA,MAAA,CAAA,EATjB,uBASiB,GAAA,SAAA;;AAcrB,UAdF,uBAAA,CAcE;MAME,MAAA;MAAgC,EAAA,MAAA;MAA0B,CAAA,EATtE,YASsE;gBAGpE,CAAA,EATQ,cASR;EAAO,YAAA,CAAA,EAAA,MAAA;qBAHG,gCAAgC,0BAA0B;WAGpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommTransportService.d.ts","names":[],"sources":["../src/DidCommTransportService.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"DidCommTransportService.d.ts","names":[],"sources":["../src/DidCommTransportService.ts"],"sourcesContent":[],"mappings":";;;;;;cAUa,uBAAA;EAAA,qBAAA,EACmB,qBADI;EAAA,QAAA,YAAA;UACJ,YAAA;aAIG,CAAA,YAAA,EAAA,YAAA,EAAA,YAAA,EAA4B,YAA5B;aAA4B,CAAA,OAAA,EAKjC,uBALiC,CAAA,EAAA,IAAA;2BAKjC,CAAA,YAAA,EAAA,MAAA,CAAA,EAmByB,uBAnBzB,GAAA,SAAA;2BAmByB,CAAA,SAAA,EAAA,MAAA,EAAA,YAAA,EAAA,MAAA,CAAA,EAAA,IAAA;oBAad,CAAA,WAAA,EAAA,WAAA,CAAA,EAAA,OAAA;iBAIC,CAAA,SAAA,EAAA,MAAA,CAAA,EAAA,uBAAA,GAAA,SAAA;eAIV,CAAA,OAAA,EAAA,uBAAA,CAAA,EAAA,IAAA;EAAuB,QAAA,yCAAA;AAetD;AAYD,UAVU,qBAAA,CAU8B;EAAA,CAAA,SAAA,EAAA,MAAA,CAAA,EATjB,uBASiB,GAAA,SAAA;;AAcrB,UAdF,uBAAA,CAcE;MAME,MAAA;MAAgC,EAAA,MAAA;MAA0B,CAAA,EATtE,YASsE;gBAGpE,CAAA,EATQ,cASR;EAAO,YAAA,CAAA,EAAA,MAAA;qBAHG,gCAAgC,0BAA0B;WAGpE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_decorateMetadata = require('./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
2
|
const require_decorate = require('./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
4
3
|
const require_constants = require('./constants.js');
|
|
5
4
|
const require_DidCommTransportEventTypes = require('./transport/DidCommTransportEventTypes.js');
|
|
5
|
+
const require_decorateMetadata = require('./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
6
6
|
require('./transport/index.js');
|
|
7
7
|
let __credo_ts_core = require("@credo-ts/core");
|
|
8
8
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __decorateMetadata } from "./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
1
|
import { __decorate } from "./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
3
2
|
import { DID_COMM_TRANSPORT_QUEUE } from "./constants.mjs";
|
|
4
3
|
import { DidCommTransportEventTypes } from "./transport/DidCommTransportEventTypes.mjs";
|
|
4
|
+
import { __decorateMetadata } from "./_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
5
5
|
import "./transport/index.mjs";
|
|
6
6
|
import { AgentContext, CredoError, EventEmitter, injectable } from "@credo-ts/core";
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommTransportService.mjs","names":["DidCommTransportService"],"sources":["../src/DidCommTransportService.ts"],"sourcesContent":["import type { DidDocument } from '@credo-ts/core'\nimport
|
|
1
|
+
{"version":3,"file":"DidCommTransportService.mjs","names":["DidCommTransportService"],"sources":["../src/DidCommTransportService.ts"],"sourcesContent":["import type { DidDocument } from '@credo-ts/core'\nimport { AgentContext, CredoError, EventEmitter, injectable } from '@credo-ts/core'\nimport { DID_COMM_TRANSPORT_QUEUE } from './constants'\nimport type { EnvelopeKeys } from './DidCommEnvelopeService'\nimport type { DidCommMessage } from './DidCommMessage'\nimport type { DidCommTransportSessionRemovedEvent, DidCommTransportSessionSavedEvent } from './transport'\nimport { DidCommTransportEventTypes } from './transport'\nimport type { DidCommEncryptedMessage } from './types'\n\n@injectable()\nexport class DidCommTransportService {\n public transportSessionTable: TransportSessionTable = {}\n private agentContext: AgentContext\n private eventEmitter: EventEmitter\n\n public constructor(agentContext: AgentContext, eventEmitter: EventEmitter) {\n this.agentContext = agentContext\n this.eventEmitter = eventEmitter\n }\n\n public saveSession(session: DidCommTransportSession) {\n if (session.connectionId) {\n const oldSessions = this.getExistingSessionsForConnectionIdAndType(session.connectionId, session.type)\n for (const oldSession of oldSessions) {\n if (oldSession && oldSession.id !== session.id) {\n this.removeSession(oldSession)\n }\n }\n }\n this.transportSessionTable[session.id] = session\n\n this.eventEmitter.emit<DidCommTransportSessionSavedEvent>(this.agentContext, {\n type: DidCommTransportEventTypes.DidCommTransportSessionSaved,\n payload: {\n session,\n },\n })\n }\n\n public findSessionByConnectionId(connectionId: string) {\n return Object.values(this.transportSessionTable).find((session) => session?.connectionId === connectionId)\n }\n\n public setConnectionIdForSession(sessionId: string, connectionId: string) {\n const session = this.findSessionById(sessionId)\n if (!session) {\n throw new CredoError(`Session not found with id ${sessionId}`)\n }\n session.connectionId = connectionId\n this.saveSession(session)\n }\n\n public hasInboundEndpoint(didDocument: DidDocument): boolean {\n return Boolean(didDocument.didCommServices?.find((s) => s.serviceEndpoint !== DID_COMM_TRANSPORT_QUEUE))\n }\n\n public findSessionById(sessionId: string) {\n return this.transportSessionTable[sessionId]\n }\n\n public removeSession(session: DidCommTransportSession) {\n delete this.transportSessionTable[session.id]\n this.eventEmitter.emit<DidCommTransportSessionRemovedEvent>(this.agentContext, {\n type: DidCommTransportEventTypes.DidCommTransportSessionRemoved,\n payload: {\n session,\n },\n })\n }\n\n private getExistingSessionsForConnectionIdAndType(connectionId: string, type: string) {\n return Object.values(this.transportSessionTable).filter(\n (session) => session?.connectionId === connectionId && session.type === type\n )\n }\n}\n\ninterface TransportSessionTable {\n [sessionId: string]: DidCommTransportSession | undefined\n}\n\n// In the framework Transport sessions are used for communication. A session is\n// associated with a connection and it can be reused when we want to respond to\n// a message. If the message, for example, does not contain any way to reply to\n// this message, the session should be closed. When a new sequence of messages\n// starts it can be used again. A session will be deleted when a WebSocket\n// closes, for the WsTransportSession that is.\nexport interface DidCommTransportSession {\n // unique identifier for a transport session. This can a uuid, or anything else, as long\n // as it uniquely identifies a transport.\n id: string\n\n // The type is something that explicitly defines the transport type. For WebSocket it would\n // be \"WebSocket\" and for HTTP it would be \"HTTP\".\n type: string\n\n // The enveloping keys that can be used during the transport. This is used so the framework\n // does not have to look up the associated keys for sending a message.\n keys?: EnvelopeKeys\n\n // A received message that will be used to check whether it has any return routing.\n inboundMessage?: DidCommMessage\n\n // A stored connection id used to find this session via the `DidCommTransportService` for a specific connection\n connectionId?: string\n\n // Send an encrypted message\n send(agentContext: AgentContext, encryptedMessage: DidCommEncryptedMessage): Promise<void>\n\n // Close the session to prevent dangling sessions.\n close(): Promise<void>\n}\n"],"mappings":";;;;;;;;;AAUO,oCAAMA,0BAAwB;CAKnC,AAAO,YAAY,cAA4B,cAA4B;OAJpE,wBAA+C,EAAE;AAKtD,OAAK,eAAe;AACpB,OAAK,eAAe;;CAGtB,AAAO,YAAY,SAAkC;AACnD,MAAI,QAAQ,cAAc;GACxB,MAAM,cAAc,KAAK,0CAA0C,QAAQ,cAAc,QAAQ,KAAK;AACtG,QAAK,MAAM,cAAc,YACvB,KAAI,cAAc,WAAW,OAAO,QAAQ,GAC1C,MAAK,cAAc,WAAW;;AAIpC,OAAK,sBAAsB,QAAQ,MAAM;AAEzC,OAAK,aAAa,KAAwC,KAAK,cAAc;GAC3E,MAAM,2BAA2B;GACjC,SAAS,EACP,SACD;GACF,CAAC;;CAGJ,AAAO,0BAA0B,cAAsB;AACrD,SAAO,OAAO,OAAO,KAAK,sBAAsB,CAAC,MAAM,YAAY,SAAS,iBAAiB,aAAa;;CAG5G,AAAO,0BAA0B,WAAmB,cAAsB;EACxE,MAAM,UAAU,KAAK,gBAAgB,UAAU;AAC/C,MAAI,CAAC,QACH,OAAM,IAAI,WAAW,6BAA6B,YAAY;AAEhE,UAAQ,eAAe;AACvB,OAAK,YAAY,QAAQ;;CAG3B,AAAO,mBAAmB,aAAmC;AAC3D,SAAO,QAAQ,YAAY,iBAAiB,MAAM,MAAM,EAAE,oBAAoB,yBAAyB,CAAC;;CAG1G,AAAO,gBAAgB,WAAmB;AACxC,SAAO,KAAK,sBAAsB;;CAGpC,AAAO,cAAc,SAAkC;AACrD,SAAO,KAAK,sBAAsB,QAAQ;AAC1C,OAAK,aAAa,KAA0C,KAAK,cAAc;GAC7E,MAAM,2BAA2B;GACjC,SAAS,EACP,SACD;GACF,CAAC;;CAGJ,AAAQ,0CAA0C,cAAsB,MAAc;AACpF,SAAO,OAAO,OAAO,KAAK,sBAAsB,CAAC,QAC9C,YAAY,SAAS,iBAAiB,gBAAgB,QAAQ,SAAS,KACzE;;;sCAhEJ,YAAY"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
2
|
const require_decorate = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
3
|
+
const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
4
4
|
let class_validator = require("class-validator");
|
|
5
5
|
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
1
|
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
3
3
|
import { IsArray, IsEnum } from "class-validator";
|
|
4
4
|
|
|
5
5
|
//#region src/decorators/ack/AckDecorator.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
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_AckDecorator = require('./AckDecorator.js');
|
|
5
|
-
let class_transformer = require("class-transformer");
|
|
6
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
7
5
|
let class_validator = require("class-validator");
|
|
8
6
|
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
7
|
+
let class_transformer = require("class-transformer");
|
|
8
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
9
9
|
|
|
10
10
|
//#region src/decorators/ack/AckDecoratorExtension.ts
|
|
11
11
|
function AckDecorated(Base) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
1
|
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
3
3
|
import { AckDecorator, AckValues } from "./AckDecorator.mjs";
|
|
4
|
-
import { Expose, Type } from "class-transformer";
|
|
5
4
|
import { IsInstance, IsOptional, ValidateNested } from "class-validator";
|
|
5
|
+
import { Expose, Type } from "class-transformer";
|
|
6
6
|
|
|
7
7
|
//#region src/decorators/ack/AckDecoratorExtension.ts
|
|
8
8
|
function AckDecorated(Base) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AckDecoratorExtension.mjs","names":[],"sources":["../../../src/decorators/ack/AckDecoratorExtension.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"AckDecoratorExtension.mjs","names":[],"sources":["../../../src/decorators/ack/AckDecoratorExtension.ts"],"sourcesContent":["import { Expose, Type } from 'class-transformer'\nimport { IsInstance, IsOptional, ValidateNested } from 'class-validator'\nimport type { BaseMessageConstructor } from '../../BaseDidCommMessage'\n\nimport { AckDecorator, AckValues } from './AckDecorator'\n\nexport function AckDecorated<T extends BaseMessageConstructor>(Base: T) {\n class AckDecoratorExtension extends Base {\n @Expose({ name: '~please_ack' })\n @Type(() => AckDecorator)\n @ValidateNested()\n @IsInstance(AckDecorator)\n @IsOptional()\n public pleaseAck?: AckDecorator\n\n public setPleaseAck(on: [AckValues.Receipt] = [AckValues.Receipt]) {\n this.pleaseAck = new AckDecorator({ on })\n }\n\n public getPleaseAck(): AckDecorator | undefined {\n return this.pleaseAck\n }\n\n public requiresAck(): boolean {\n return this.pleaseAck !== undefined\n }\n }\n\n return AckDecoratorExtension\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,aAA+C,MAAS;;CACtE,MAAM,8BAA8B,KAAK;EAQvC,AAAO,aAAa,KAA0B,CAAC,UAAU,QAAQ,EAAE;AACjE,QAAK,YAAY,IAAI,aAAa,EAAE,IAAI,CAAC;;EAG3C,AAAO,eAAyC;AAC9C,UAAO,KAAK;;EAGd,AAAO,cAAuB;AAC5B,UAAO,KAAK,cAAc;;;;EAhB3B,OAAO,EAAE,MAAM,eAAe,CAAC;EAC/B,WAAW,aAAa;EACxB,gBAAgB;EAChB,WAAW,aAAa;EACxB,YAAY;;;AAgBf,QAAO"}
|
|
@@ -1,11 +1,11 @@
|
|
|
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('./DidCommAttachment.js');
|
|
5
|
-
let class_transformer = require("class-transformer");
|
|
6
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
7
5
|
let class_validator = require("class-validator");
|
|
8
6
|
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
7
|
+
let class_transformer = require("class-transformer");
|
|
8
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
9
9
|
|
|
10
10
|
//#region src/decorators/attachment/AttachmentExtension.ts
|
|
11
11
|
function AttachmentDecorated(Base) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
1
|
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
3
3
|
import { DidCommAttachment } from "./DidCommAttachment.mjs";
|
|
4
|
-
import { Expose, Type } from "class-transformer";
|
|
5
4
|
import { IsInstance, IsOptional, ValidateNested } from "class-validator";
|
|
5
|
+
import { Expose, Type } from "class-transformer";
|
|
6
6
|
|
|
7
7
|
//#region src/decorators/attachment/AttachmentExtension.ts
|
|
8
8
|
function AttachmentDecorated(Base) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentExtension.mjs","names":[],"sources":["../../../src/decorators/attachment/AttachmentExtension.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"AttachmentExtension.mjs","names":[],"sources":["../../../src/decorators/attachment/AttachmentExtension.ts"],"sourcesContent":["import { Expose, Type } from 'class-transformer'\nimport { IsInstance, IsOptional, ValidateNested } from 'class-validator'\nimport type { BaseMessageConstructor } from '../../BaseDidCommMessage'\n\nimport { DidCommAttachment } from './DidCommAttachment'\n\nexport function AttachmentDecorated<T extends BaseMessageConstructor>(Base: T) {\n class AttachmentDecoratorExtension extends Base {\n /**\n * The ~attach decorator is required for appending attachments to a message\n */\n @Expose({ name: '~attach' })\n @Type(() => DidCommAttachment)\n @ValidateNested()\n @IsInstance(DidCommAttachment, { each: true })\n @IsOptional()\n public appendedAttachments?: DidCommAttachment[]\n\n public getAppendedAttachmentById(id: string): DidCommAttachment | undefined {\n return this.appendedAttachments?.find((attachment) => attachment.id === id)\n }\n\n public addAppendedAttachment(attachment: DidCommAttachment): void {\n if (this.appendedAttachments) {\n this.appendedAttachments.push(attachment)\n } else {\n this.appendedAttachments = [attachment]\n }\n }\n }\n\n return AttachmentDecoratorExtension\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,oBAAsD,MAAS;CAC7E,MAAM,qCAAqC,KAAK;EAW9C,AAAO,0BAA0B,IAA2C;AAC1E,UAAO,KAAK,qBAAqB,MAAM,eAAe,WAAW,OAAO,GAAG;;EAG7E,AAAO,sBAAsB,YAAqC;AAChE,OAAI,KAAK,oBACP,MAAK,oBAAoB,KAAK,WAAW;OAEzC,MAAK,sBAAsB,CAAC,WAAW;;;;EAf1C,OAAO,EAAE,MAAM,WAAW,CAAC;EAC3B,WAAW,kBAAkB;EAC7B,gBAAgB;EAChB,WAAW,mBAAmB,EAAE,MAAM,MAAM,CAAC;EAC7C,YAAY;;;AAgBf,QAAO"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
2
|
const require_decorate = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
3
|
+
const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
4
4
|
let __credo_ts_core = require("@credo-ts/core");
|
|
5
5
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
6
|
-
let class_transformer = require("class-transformer");
|
|
7
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
8
6
|
let class_validator = require("class-validator");
|
|
9
7
|
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
8
|
+
let class_transformer = require("class-transformer");
|
|
9
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
10
10
|
|
|
11
11
|
//#region src/decorators/attachment/DidCommAttachment.ts
|
|
12
12
|
var _ref, _ref2;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
1
|
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
3
3
|
import { CredoError, JsonEncoder, utils } from "@credo-ts/core";
|
|
4
|
-
import { Expose, Type } from "class-transformer";
|
|
5
4
|
import { IsDate, IsHash, IsInstance, IsInt, IsMimeType, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
5
|
+
import { Expose, Type } from "class-transformer";
|
|
6
6
|
|
|
7
7
|
//#region src/decorators/attachment/DidCommAttachment.ts
|
|
8
8
|
var _ref, _ref2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommAttachment.mjs","names":[],"sources":["../../../src/decorators/attachment/DidCommAttachment.ts"],"sourcesContent":["import type { JwsDetachedFormat, JwsFlattenedDetachedFormat, JwsGeneralFormat } from '@credo-ts/core'\n\nimport { CredoError, JsonEncoder, type JsonValue, utils } from '@credo-ts/core'\nimport { Expose, Type } from 'class-transformer'\nimport { IsDate, IsHash, IsInstance, IsInt, IsMimeType, IsOptional, IsString, ValidateNested } from 'class-validator'\n\nexport interface DidCommAttachmentOptions {\n id?: string\n description?: string\n filename?: string\n mimeType?: string\n lastmodTime?: Date\n byteCount?: number\n data: DidCommAttachmentDataOptions\n}\n\nexport interface DidCommAttachmentDataOptions {\n base64?: string\n json?: JsonValue\n links?: string[]\n jws?: JwsDetachedFormat | JwsFlattenedDetachedFormat\n sha256?: string\n}\n\n/**\n * A JSON object that gives access to the actual content of the attachment\n */\nexport class DidCommAttachmentData {\n /**\n * Base64-encoded data, when representing arbitrary content inline instead of via links. Optional.\n */\n @IsOptional()\n @IsString()\n public base64?: string\n\n /**\n * Directly embedded JSON data, when representing content inline instead of via links, and when the content is natively conveyable as JSON. Optional.\n */\n @IsOptional()\n public json?: JsonValue\n\n /**\n * A list of zero or more locations at which the content may be fetched. Optional.\n */\n @IsOptional()\n @IsString({ each: true })\n public links?: string[]\n\n /**\n * A JSON Web Signature over the content of the attachment. Optional.\n */\n @IsOptional()\n // Signed attachments use JWS detached format\n public jws?: JwsDetachedFormat | JwsFlattenedDetachedFormat\n\n /**\n * The hash of the content. Optional.\n */\n @IsOptional()\n @IsHash('sha256')\n public sha256?: string\n\n public constructor(options: DidCommAttachmentDataOptions) {\n if (options) {\n this.base64 = options.base64\n this.json = options.json\n this.links = options.links\n this.jws = options.jws\n this.sha256 = options.sha256\n }\n }\n}\n\n/**\n * Represents DIDComm attachment\n * https://github.com/hyperledger/aries-rfcs/blob/master/concepts/0017-attachments/README.md\n */\nexport class DidCommAttachment {\n public constructor(options: DidCommAttachmentOptions) {\n if (options) {\n this.id = options.id ?? utils.uuid()\n this.description = options.description\n this.filename = options.filename\n this.mimeType = options.mimeType\n this.lastmodTime = options.lastmodTime\n this.byteCount = options.byteCount\n this.data = new DidCommAttachmentData(options.data)\n }\n }\n\n @Expose({ name: '@id' })\n public id!: string\n\n /**\n * An optional human-readable description of the content.\n */\n @IsOptional()\n @IsString()\n public description?: string\n\n /**\n * A hint about the name that might be used if this attachment is persisted as a file. It is not required, and need not be unique. If this field is present and mime-type is not, the extension on the filename may be used to infer a MIME type.\n */\n @IsOptional()\n @IsString()\n public filename?: string\n\n /**\n * Describes the MIME type of the attached content. Optional but recommended.\n */\n @Expose({ name: 'mime-type' })\n @IsOptional()\n @IsMimeType()\n public mimeType?: string\n\n /**\n * A hint about when the content in this attachment was last modified.\n */\n @Expose({ name: 'lastmod_time' })\n @Type(() => Date)\n @IsOptional()\n @IsDate()\n public lastmodTime?: Date\n\n /**\n * Optional, and mostly relevant when content is included by reference instead of by value. Lets the receiver guess how expensive it will be, in time, bandwidth, and storage, to fully fetch the attachment.\n */\n @Expose({ name: 'byte_count' })\n @IsOptional()\n @IsInt()\n public byteCount?: number\n\n @Type(() => DidCommAttachmentData)\n @ValidateNested()\n @IsInstance(DidCommAttachmentData)\n public data!: DidCommAttachmentData\n\n /*\n * Helper function returning JSON representation of attachment data (if present). Tries to obtain the data from .base64 or .json, throws an error otherwise\n */\n public getDataAsJson<T>(): T {\n if (typeof this.data.base64 === 'string') {\n return JsonEncoder.fromBase64(this.data.base64) as T\n }\n if (this.data.json) {\n return this.data.json as T\n }\n throw new CredoError('No attachment data found in `json` or `base64` data fields.')\n }\n\n public addJws(jws: JwsDetachedFormat) {\n // Remove payload if user provided a non-detached JWS\n const { payload, ...detachedJws } = jws as JwsGeneralFormat\n\n // If no JWS yet, assign to current JWS\n if (!this.data.jws) {\n this.data.jws = detachedJws\n }\n // Is already jws array, add to it\n else if ('signatures' in this.data.jws) {\n this.data.jws.signatures.push(detachedJws)\n }\n // If already single JWS, transform to general jws format\n else {\n this.data.jws = {\n signatures: [this.data.jws, detachedJws],\n }\n }\n }\n}\n"],"mappings":";;;;;;;;;;;AA2BA,IAAa,wBAAb,MAAmC;CAmCjC,AAAO,YAAY,SAAuC;AACxD,MAAI,SAAS;AACX,QAAK,SAAS,QAAQ;AACtB,QAAK,OAAO,QAAQ;AACpB,QAAK,QAAQ,QAAQ;AACrB,QAAK,MAAM,QAAQ;AACnB,QAAK,SAAS,QAAQ;;;;;CArCzB,YAAY;CACZ,UAAU;;;YAMV,YAAY;;CAMZ,YAAY;CACZ,SAAS,EAAE,MAAM,MAAM,CAAC;;;YAMxB,YAAY;;CAOZ,YAAY;CACZ,OAAO,SAAS;;;;;;;AAkBnB,IAAa,oBAAb,MAA+B;CAC7B,AAAO,YAAY,SAAmC;AACpD,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,MAAM,MAAM;AACpC,QAAK,cAAc,QAAQ;AAC3B,QAAK,WAAW,QAAQ;AACxB,QAAK,WAAW,QAAQ;AACxB,QAAK,cAAc,QAAQ;AAC3B,QAAK,YAAY,QAAQ;AACzB,QAAK,OAAO,IAAI,sBAAsB,QAAQ,KAAK;;;CAsDvD,AAAO,gBAAsB;AAC3B,MAAI,OAAO,KAAK,KAAK,WAAW,SAC9B,QAAO,YAAY,WAAW,KAAK,KAAK,OAAO;AAEjD,MAAI,KAAK,KAAK,KACZ,QAAO,KAAK,KAAK;AAEnB,QAAM,IAAI,WAAW,8DAA8D;;CAGrF,AAAO,OAAO,KAAwB;
|
|
1
|
+
{"version":3,"file":"DidCommAttachment.mjs","names":[],"sources":["../../../src/decorators/attachment/DidCommAttachment.ts"],"sourcesContent":["import type { JwsDetachedFormat, JwsFlattenedDetachedFormat, JwsGeneralFormat } from '@credo-ts/core'\n\nimport { CredoError, JsonEncoder, type JsonValue, utils } from '@credo-ts/core'\nimport { Expose, Type } from 'class-transformer'\nimport { IsDate, IsHash, IsInstance, IsInt, IsMimeType, IsOptional, IsString, ValidateNested } from 'class-validator'\n\nexport interface DidCommAttachmentOptions {\n id?: string\n description?: string\n filename?: string\n mimeType?: string\n lastmodTime?: Date\n byteCount?: number\n data: DidCommAttachmentDataOptions\n}\n\nexport interface DidCommAttachmentDataOptions {\n base64?: string\n json?: JsonValue\n links?: string[]\n jws?: JwsDetachedFormat | JwsFlattenedDetachedFormat\n sha256?: string\n}\n\n/**\n * A JSON object that gives access to the actual content of the attachment\n */\nexport class DidCommAttachmentData {\n /**\n * Base64-encoded data, when representing arbitrary content inline instead of via links. Optional.\n */\n @IsOptional()\n @IsString()\n public base64?: string\n\n /**\n * Directly embedded JSON data, when representing content inline instead of via links, and when the content is natively conveyable as JSON. Optional.\n */\n @IsOptional()\n public json?: JsonValue\n\n /**\n * A list of zero or more locations at which the content may be fetched. Optional.\n */\n @IsOptional()\n @IsString({ each: true })\n public links?: string[]\n\n /**\n * A JSON Web Signature over the content of the attachment. Optional.\n */\n @IsOptional()\n // Signed attachments use JWS detached format\n public jws?: JwsDetachedFormat | JwsFlattenedDetachedFormat\n\n /**\n * The hash of the content. Optional.\n */\n @IsOptional()\n @IsHash('sha256')\n public sha256?: string\n\n public constructor(options: DidCommAttachmentDataOptions) {\n if (options) {\n this.base64 = options.base64\n this.json = options.json\n this.links = options.links\n this.jws = options.jws\n this.sha256 = options.sha256\n }\n }\n}\n\n/**\n * Represents DIDComm attachment\n * https://github.com/hyperledger/aries-rfcs/blob/master/concepts/0017-attachments/README.md\n */\nexport class DidCommAttachment {\n public constructor(options: DidCommAttachmentOptions) {\n if (options) {\n this.id = options.id ?? utils.uuid()\n this.description = options.description\n this.filename = options.filename\n this.mimeType = options.mimeType\n this.lastmodTime = options.lastmodTime\n this.byteCount = options.byteCount\n this.data = new DidCommAttachmentData(options.data)\n }\n }\n\n @Expose({ name: '@id' })\n public id!: string\n\n /**\n * An optional human-readable description of the content.\n */\n @IsOptional()\n @IsString()\n public description?: string\n\n /**\n * A hint about the name that might be used if this attachment is persisted as a file. It is not required, and need not be unique. If this field is present and mime-type is not, the extension on the filename may be used to infer a MIME type.\n */\n @IsOptional()\n @IsString()\n public filename?: string\n\n /**\n * Describes the MIME type of the attached content. Optional but recommended.\n */\n @Expose({ name: 'mime-type' })\n @IsOptional()\n @IsMimeType()\n public mimeType?: string\n\n /**\n * A hint about when the content in this attachment was last modified.\n */\n @Expose({ name: 'lastmod_time' })\n @Type(() => Date)\n @IsOptional()\n @IsDate()\n public lastmodTime?: Date\n\n /**\n * Optional, and mostly relevant when content is included by reference instead of by value. Lets the receiver guess how expensive it will be, in time, bandwidth, and storage, to fully fetch the attachment.\n */\n @Expose({ name: 'byte_count' })\n @IsOptional()\n @IsInt()\n public byteCount?: number\n\n @Type(() => DidCommAttachmentData)\n @ValidateNested()\n @IsInstance(DidCommAttachmentData)\n public data!: DidCommAttachmentData\n\n /*\n * Helper function returning JSON representation of attachment data (if present). Tries to obtain the data from .base64 or .json, throws an error otherwise\n */\n public getDataAsJson<T>(): T {\n if (typeof this.data.base64 === 'string') {\n return JsonEncoder.fromBase64(this.data.base64) as T\n }\n if (this.data.json) {\n return this.data.json as T\n }\n throw new CredoError('No attachment data found in `json` or `base64` data fields.')\n }\n\n public addJws(jws: JwsDetachedFormat) {\n // Remove payload if user provided a non-detached JWS\n // biome-ignore lint/correctness/noUnusedVariables: no explanation\n const { payload, ...detachedJws } = jws as JwsGeneralFormat\n\n // If no JWS yet, assign to current JWS\n if (!this.data.jws) {\n this.data.jws = detachedJws\n }\n // Is already jws array, add to it\n else if ('signatures' in this.data.jws) {\n this.data.jws.signatures.push(detachedJws)\n }\n // If already single JWS, transform to general jws format\n else {\n this.data.jws = {\n signatures: [this.data.jws, detachedJws],\n }\n }\n }\n}\n"],"mappings":";;;;;;;;;;;AA2BA,IAAa,wBAAb,MAAmC;CAmCjC,AAAO,YAAY,SAAuC;AACxD,MAAI,SAAS;AACX,QAAK,SAAS,QAAQ;AACtB,QAAK,OAAO,QAAQ;AACpB,QAAK,QAAQ,QAAQ;AACrB,QAAK,MAAM,QAAQ;AACnB,QAAK,SAAS,QAAQ;;;;;CArCzB,YAAY;CACZ,UAAU;;;YAMV,YAAY;;CAMZ,YAAY;CACZ,SAAS,EAAE,MAAM,MAAM,CAAC;;;YAMxB,YAAY;;CAOZ,YAAY;CACZ,OAAO,SAAS;;;;;;;AAkBnB,IAAa,oBAAb,MAA+B;CAC7B,AAAO,YAAY,SAAmC;AACpD,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,MAAM,MAAM;AACpC,QAAK,cAAc,QAAQ;AAC3B,QAAK,WAAW,QAAQ;AACxB,QAAK,WAAW,QAAQ;AACxB,QAAK,cAAc,QAAQ;AAC3B,QAAK,YAAY,QAAQ;AACzB,QAAK,OAAO,IAAI,sBAAsB,QAAQ,KAAK;;;CAsDvD,AAAO,gBAAsB;AAC3B,MAAI,OAAO,KAAK,KAAK,WAAW,SAC9B,QAAO,YAAY,WAAW,KAAK,KAAK,OAAO;AAEjD,MAAI,KAAK,KAAK,KACZ,QAAO,KAAK,KAAK;AAEnB,QAAM,IAAI,WAAW,8DAA8D;;CAGrF,AAAO,OAAO,KAAwB;EAGpC,MAAM,EAAE,QAAS,GAAG,gBAAgB;AAGpC,MAAI,CAAC,KAAK,KAAK,IACb,MAAK,KAAK,MAAM;WAGT,gBAAgB,KAAK,KAAK,IACjC,MAAK,KAAK,IAAI,WAAW,KAAK,YAAY;MAI1C,MAAK,KAAK,MAAM,EACd,YAAY,CAAC,KAAK,KAAK,KAAK,YAAY,EACzC;;;YA7EJ,OAAO,EAAE,MAAM,OAAO,CAAC;;CAMvB,YAAY;CACZ,UAAU;;;;CAMV,YAAY;CACZ,UAAU;;;;CAMV,OAAO,EAAE,MAAM,aAAa,CAAC;CAC7B,YAAY;CACZ,YAAY;;;;CAMZ,OAAO,EAAE,MAAM,gBAAgB,CAAC;CAChC,WAAW,KAAK;CAChB,YAAY;CACZ,QAAQ;;;;CAMR,OAAO,EAAE,MAAM,cAAc,CAAC;CAC9B,YAAY;CACZ,OAAO;;;;CAGP,WAAW,sBAAsB;CACjC,gBAAgB;CAChB,WAAW,sBAAsB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
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_L10nDecorator = require('./L10nDecorator.js');
|
|
5
|
-
let class_transformer = require("class-transformer");
|
|
6
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
7
5
|
let class_validator = require("class-validator");
|
|
8
6
|
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
7
|
+
let class_transformer = require("class-transformer");
|
|
8
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
9
9
|
|
|
10
10
|
//#region src/decorators/l10n/L10nDecoratorExtension.ts
|
|
11
11
|
function L10nDecorated(Base) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
1
|
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
3
3
|
import { L10nDecorator } from "./L10nDecorator.mjs";
|
|
4
|
-
import { Expose, Type } from "class-transformer";
|
|
5
4
|
import { IsInstance, IsOptional, ValidateNested } from "class-validator";
|
|
5
|
+
import { Expose, Type } from "class-transformer";
|
|
6
6
|
|
|
7
7
|
//#region src/decorators/l10n/L10nDecoratorExtension.ts
|
|
8
8
|
function L10nDecorated(Base) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"L10nDecoratorExtension.mjs","names":[],"sources":["../../../src/decorators/l10n/L10nDecoratorExtension.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"L10nDecoratorExtension.mjs","names":[],"sources":["../../../src/decorators/l10n/L10nDecoratorExtension.ts"],"sourcesContent":["import { Expose, Type } from 'class-transformer'\nimport { IsInstance, IsOptional, ValidateNested } from 'class-validator'\nimport type { BaseMessageConstructor } from '../../BaseDidCommMessage'\n\nimport { L10nDecorator } from './L10nDecorator'\n\nexport function L10nDecorated<T extends BaseMessageConstructor>(Base: T) {\n class L10nDecoratorExtension extends Base {\n @Expose({ name: '~l10n' })\n @Type(() => L10nDecorator)\n @ValidateNested()\n @IsOptional()\n @IsInstance(L10nDecorator)\n public l10n?: L10nDecorator\n\n public addLocale(locale: string) {\n this.l10n = new L10nDecorator({\n locale,\n })\n }\n\n public getLocale(): string | undefined {\n if (this.l10n?.locale) return this.l10n.locale\n\n return undefined\n }\n }\n\n return L10nDecoratorExtension\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,cAAgD,MAAS;;CACvE,MAAM,+BAA+B,KAAK;EAQxC,AAAO,UAAU,QAAgB;AAC/B,QAAK,OAAO,IAAI,cAAc,EAC5B,QACD,CAAC;;EAGJ,AAAO,YAAgC;AACrC,OAAI,KAAK,MAAM,OAAQ,QAAO,KAAK,KAAK;;;;EAdzC,OAAO,EAAE,MAAM,SAAS,CAAC;EACzB,WAAW,cAAc;EACzB,gBAAgB;EAChB,YAAY;EACZ,WAAW,cAAc;;;AAgB5B,QAAO"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
2
|
const require_decorate = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
3
|
+
const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
4
4
|
let __credo_ts_core = require("@credo-ts/core");
|
|
5
5
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
6
6
|
let class_validator = require("class-validator");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
1
|
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
3
3
|
import { TypedArrayEncoder, utils, verkeyToPublicJwk } from "@credo-ts/core";
|
|
4
4
|
import { IsArray, IsOptional, IsString } from "class-validator";
|
|
5
5
|
|
|
@@ -1,11 +1,11 @@
|
|
|
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_ServiceDecorator = require('./ServiceDecorator.js');
|
|
5
|
-
let class_transformer = require("class-transformer");
|
|
6
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
7
5
|
let class_validator = require("class-validator");
|
|
8
6
|
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
7
|
+
let class_transformer = require("class-transformer");
|
|
8
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
9
9
|
|
|
10
10
|
//#region src/decorators/service/ServiceDecoratorExtension.ts
|
|
11
11
|
function ServiceDecorated(Base) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
1
|
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
3
3
|
import { ServiceDecorator } from "./ServiceDecorator.mjs";
|
|
4
|
-
import { Expose, Type } from "class-transformer";
|
|
5
4
|
import { IsOptional, ValidateNested } from "class-validator";
|
|
5
|
+
import { Expose, Type } from "class-transformer";
|
|
6
6
|
|
|
7
7
|
//#region src/decorators/service/ServiceDecoratorExtension.ts
|
|
8
8
|
function ServiceDecorated(Base) {
|