@credo-ts/didcomm 0.6.0-alpha-20250128162925
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/LICENSE +202 -0
- package/README.md +84 -0
- package/build/AgentMessage.d.ts +92 -0
- package/build/AgentMessage.js +66 -0
- package/build/AgentMessage.js.map +1 -0
- package/build/BaseMessage.d.ts +11 -0
- package/build/BaseMessage.js +34 -0
- package/build/BaseMessage.js.map +1 -0
- package/build/DidCommApi.d.ts +34 -0
- package/build/DidCommApi.js +82 -0
- package/build/DidCommApi.js.map +1 -0
- package/build/DidCommModule.d.ts +31 -0
- package/build/DidCommModule.js +99 -0
- package/build/DidCommModule.js.map +1 -0
- package/build/DidCommModuleConfig.d.ts +33 -0
- package/build/DidCommModuleConfig.js +48 -0
- package/build/DidCommModuleConfig.js.map +1 -0
- package/build/Dispatcher.d.ts +14 -0
- package/build/Dispatcher.js +132 -0
- package/build/Dispatcher.js.map +1 -0
- package/build/EnvelopeService.d.ts +20 -0
- package/build/EnvelopeService.js +66 -0
- package/build/EnvelopeService.js.map +1 -0
- package/build/Events.d.ts +37 -0
- package/build/Events.js +10 -0
- package/build/Events.js.map +1 -0
- package/build/FeatureRegistry.d.ts +21 -0
- package/build/FeatureRegistry.js +66 -0
- package/build/FeatureRegistry.js.map +1 -0
- package/build/MessageHandlerRegistry.d.ts +31 -0
- package/build/MessageHandlerRegistry.js +89 -0
- package/build/MessageHandlerRegistry.js.map +1 -0
- package/build/MessageReceiver.d.ts +62 -0
- package/build/MessageReceiver.js +242 -0
- package/build/MessageReceiver.js.map +1 -0
- package/build/MessageSender.d.ts +53 -0
- package/build/MessageSender.js +426 -0
- package/build/MessageSender.js.map +1 -0
- package/build/TransportService.d.ts +31 -0
- package/build/TransportService.js +74 -0
- package/build/TransportService.js.map +1 -0
- package/build/constants.d.ts +1 -0
- package/build/constants.js +5 -0
- package/build/constants.js.map +1 -0
- package/build/decorators/ack/AckDecorator.d.ts +13 -0
- package/build/decorators/ack/AckDecorator.js +38 -0
- package/build/decorators/ack/AckDecorator.js.map +1 -0
- package/build/decorators/ack/AckDecoratorExtension.d.ts +13 -0
- package/build/decorators/ack/AckDecoratorExtension.js +38 -0
- package/build/decorators/ack/AckDecoratorExtension.js.map +1 -0
- package/build/decorators/attachment/Attachment.d.ts +75 -0
- package/build/decorators/attachment/Attachment.js +154 -0
- package/build/decorators/attachment/Attachment.js.map +1 -0
- package/build/decorators/attachment/AttachmentExtension.d.ts +15 -0
- package/build/decorators/attachment/AttachmentExtension.js +40 -0
- package/build/decorators/attachment/AttachmentExtension.js.map +1 -0
- package/build/decorators/l10n/L10nDecorator.d.ts +7 -0
- package/build/decorators/l10n/L10nDecorator.js +13 -0
- package/build/decorators/l10n/L10nDecorator.js.map +1 -0
- package/build/decorators/l10n/L10nDecoratorExtension.d.ts +12 -0
- package/build/decorators/l10n/L10nDecoratorExtension.js +39 -0
- package/build/decorators/l10n/L10nDecoratorExtension.js.map +1 -0
- package/build/decorators/service/ServiceDecorator.d.ts +20 -0
- package/build/decorators/service/ServiceDecorator.js +61 -0
- package/build/decorators/service/ServiceDecorator.js.map +1 -0
- package/build/decorators/service/ServiceDecoratorExtension.d.ts +12 -0
- package/build/decorators/service/ServiceDecoratorExtension.js +31 -0
- package/build/decorators/service/ServiceDecoratorExtension.js.map +1 -0
- package/build/decorators/signature/SignatureDecorator.d.ts +11 -0
- package/build/decorators/signature/SignatureDecorator.js +55 -0
- package/build/decorators/signature/SignatureDecorator.js.map +1 -0
- package/build/decorators/signature/SignatureDecoratorUtils.d.ts +21 -0
- package/build/decorators/signature/SignatureDecoratorUtils.js +50 -0
- package/build/decorators/signature/SignatureDecoratorUtils.js.map +1 -0
- package/build/decorators/thread/ThreadDecorator.d.ts +26 -0
- package/build/decorators/thread/ThreadDecorator.js +52 -0
- package/build/decorators/thread/ThreadDecorator.js.map +1 -0
- package/build/decorators/thread/ThreadDecoratorExtension.d.ts +15 -0
- package/build/decorators/thread/ThreadDecoratorExtension.js +35 -0
- package/build/decorators/thread/ThreadDecoratorExtension.js.map +1 -0
- package/build/decorators/timing/TimingDecorator.d.ts +38 -0
- package/build/decorators/timing/TimingDecorator.js +93 -0
- package/build/decorators/timing/TimingDecorator.js.map +1 -0
- package/build/decorators/timing/TimingDecoratorExtension.d.ts +14 -0
- package/build/decorators/timing/TimingDecoratorExtension.js +32 -0
- package/build/decorators/timing/TimingDecoratorExtension.js.map +1 -0
- package/build/decorators/transport/TransportDecorator.d.ts +20 -0
- package/build/decorators/transport/TransportDecorator.js +51 -0
- package/build/decorators/transport/TransportDecorator.js.map +1 -0
- package/build/decorators/transport/TransportDecoratorExtension.d.ts +13 -0
- package/build/decorators/transport/TransportDecoratorExtension.js +53 -0
- package/build/decorators/transport/TransportDecoratorExtension.js.map +1 -0
- package/build/errors/MessageSendingError.d.ts +9 -0
- package/build/errors/MessageSendingError.js +12 -0
- package/build/errors/MessageSendingError.js.map +1 -0
- package/build/errors/index.d.ts +2 -0
- package/build/errors/index.js +21 -0
- package/build/errors/index.js.map +1 -0
- package/build/errors/problem-reports/ProblemReportError.d.ts +9 -0
- package/build/errors/problem-reports/ProblemReportError.js +18 -0
- package/build/errors/problem-reports/ProblemReportError.js.map +1 -0
- package/build/errors/problem-reports/index.d.ts +1 -0
- package/build/errors/problem-reports/index.js +18 -0
- package/build/errors/problem-reports/index.js.map +1 -0
- package/build/getOutboundMessageContext.d.ts +26 -0
- package/build/getOutboundMessageContext.js +195 -0
- package/build/getOutboundMessageContext.js.map +1 -0
- package/build/handlers/MessageHandler.d.ts +14 -0
- package/build/handlers/MessageHandler.js +3 -0
- package/build/handlers/MessageHandler.js.map +1 -0
- package/build/handlers/MessageHandlerMiddleware.d.ts +7 -0
- package/build/handlers/MessageHandlerMiddleware.js +26 -0
- package/build/handlers/MessageHandlerMiddleware.js.map +1 -0
- package/build/handlers/index.d.ts +2 -0
- package/build/handlers/index.js +6 -0
- package/build/handlers/index.js.map +1 -0
- package/build/index.d.ts +33 -0
- package/build/index.js +78 -0
- package/build/index.js.map +1 -0
- package/build/messages/common/AckMessage.d.ts +26 -0
- package/build/messages/common/AckMessage.js +54 -0
- package/build/messages/common/AckMessage.js.map +1 -0
- package/build/messages/common/index.d.ts +1 -0
- package/build/messages/common/index.js +18 -0
- package/build/messages/common/index.js.map +1 -0
- package/build/messages/index.d.ts +2 -0
- package/build/messages/index.js +19 -0
- package/build/messages/index.js.map +1 -0
- package/build/messages/problem-reports/ProblemReportMessage.d.ts +63 -0
- package/build/messages/problem-reports/ProblemReportMessage.js +119 -0
- package/build/messages/problem-reports/ProblemReportMessage.js.map +1 -0
- package/build/messages/problem-reports/index.d.ts +1 -0
- package/build/messages/problem-reports/index.js +18 -0
- package/build/messages/problem-reports/index.js.map +1 -0
- package/build/models/InboundMessageContext.d.ts +45 -0
- package/build/models/InboundMessageContext.js +46 -0
- package/build/models/InboundMessageContext.js.map +1 -0
- package/build/models/OutboundMessageContext.d.ts +48 -0
- package/build/models/OutboundMessageContext.js +45 -0
- package/build/models/OutboundMessageContext.js.map +1 -0
- package/build/models/OutboundMessageSendStatus.d.ts +6 -0
- package/build/models/OutboundMessageSendStatus.js +11 -0
- package/build/models/OutboundMessageSendStatus.js.map +1 -0
- package/build/models/Routing.d.ts +7 -0
- package/build/models/Routing.js +3 -0
- package/build/models/Routing.js.map +1 -0
- package/build/models/features/Feature.d.ts +18 -0
- package/build/models/features/Feature.js +61 -0
- package/build/models/features/Feature.js.map +1 -0
- package/build/models/features/FeatureQuery.d.ts +9 -0
- package/build/models/features/FeatureQuery.js +33 -0
- package/build/models/features/FeatureQuery.js.map +1 -0
- package/build/models/features/GoalCode.d.ts +7 -0
- package/build/models/features/GoalCode.js +12 -0
- package/build/models/features/GoalCode.js.map +1 -0
- package/build/models/features/GovernanceFramework.d.ts +7 -0
- package/build/models/features/GovernanceFramework.js +12 -0
- package/build/models/features/GovernanceFramework.js.map +1 -0
- package/build/models/features/Protocol.d.ts +10 -0
- package/build/models/features/Protocol.js +30 -0
- package/build/models/features/Protocol.js.map +1 -0
- package/build/models/features/index.d.ts +5 -0
- package/build/models/features/index.js +22 -0
- package/build/models/features/index.js.map +1 -0
- package/build/models/index.d.ts +6 -0
- package/build/models/index.js +23 -0
- package/build/models/index.js.map +1 -0
- package/build/models/problem-reports/ProblemReportReason.d.ts +3 -0
- package/build/models/problem-reports/ProblemReportReason.js +8 -0
- package/build/models/problem-reports/ProblemReportReason.js.map +1 -0
- package/build/models/problem-reports/index.d.ts +1 -0
- package/build/models/problem-reports/index.js +18 -0
- package/build/models/problem-reports/index.js.map +1 -0
- package/build/modules/basic-messages/BasicMessageEvents.d.ts +13 -0
- package/build/modules/basic-messages/BasicMessageEvents.js +8 -0
- package/build/modules/basic-messages/BasicMessageEvents.js.map +1 -0
- package/build/modules/basic-messages/BasicMessageRole.d.ts +4 -0
- package/build/modules/basic-messages/BasicMessageRole.js +9 -0
- package/build/modules/basic-messages/BasicMessageRole.js.map +1 -0
- package/build/modules/basic-messages/BasicMessagesApi.d.ts +58 -0
- package/build/modules/basic-messages/BasicMessagesApi.js +102 -0
- package/build/modules/basic-messages/BasicMessagesApi.js.map +1 -0
- package/build/modules/basic-messages/BasicMessagesModule.d.ts +10 -0
- package/build/modules/basic-messages/BasicMessagesModule.js +32 -0
- package/build/modules/basic-messages/BasicMessagesModule.js.map +1 -0
- package/build/modules/basic-messages/handlers/BasicMessageHandler.d.ts +9 -0
- package/build/modules/basic-messages/handlers/BasicMessageHandler.js +16 -0
- package/build/modules/basic-messages/handlers/BasicMessageHandler.js.map +1 -0
- package/build/modules/basic-messages/handlers/index.d.ts +1 -0
- package/build/modules/basic-messages/handlers/index.js +18 -0
- package/build/modules/basic-messages/handlers/index.js.map +1 -0
- package/build/modules/basic-messages/index.d.ts +7 -0
- package/build/modules/basic-messages/index.js +24 -0
- package/build/modules/basic-messages/index.js.map +1 -0
- package/build/modules/basic-messages/messages/BasicMessage.d.ts +19 -0
- package/build/modules/basic-messages/messages/BasicMessage.js +53 -0
- package/build/modules/basic-messages/messages/BasicMessage.js.map +1 -0
- package/build/modules/basic-messages/messages/index.d.ts +1 -0
- package/build/modules/basic-messages/messages/index.js +18 -0
- package/build/modules/basic-messages/messages/index.js.map +1 -0
- package/build/modules/basic-messages/repository/BasicMessageRecord.d.ts +39 -0
- package/build/modules/basic-messages/repository/BasicMessageRecord.js +33 -0
- package/build/modules/basic-messages/repository/BasicMessageRecord.js.map +1 -0
- package/build/modules/basic-messages/repository/BasicMessageRepository.d.ts +5 -0
- package/build/modules/basic-messages/repository/BasicMessageRepository.js +29 -0
- package/build/modules/basic-messages/repository/BasicMessageRepository.js.map +1 -0
- package/build/modules/basic-messages/repository/index.d.ts +2 -0
- package/build/modules/basic-messages/repository/index.js +19 -0
- package/build/modules/basic-messages/repository/index.js.map +1 -0
- package/build/modules/basic-messages/services/BasicMessageService.d.ts +25 -0
- package/build/modules/basic-messages/services/BasicMessageService.js +84 -0
- package/build/modules/basic-messages/services/BasicMessageService.js.map +1 -0
- package/build/modules/basic-messages/services/index.d.ts +1 -0
- package/build/modules/basic-messages/services/index.js +18 -0
- package/build/modules/basic-messages/services/index.js.map +1 -0
- package/build/modules/connections/ConnectionEvents.d.ts +28 -0
- package/build/modules/connections/ConnectionEvents.js +9 -0
- package/build/modules/connections/ConnectionEvents.js.map +1 -0
- package/build/modules/connections/ConnectionsApi.d.ts +191 -0
- package/build/modules/connections/ConnectionsApi.js +444 -0
- package/build/modules/connections/ConnectionsApi.js.map +1 -0
- package/build/modules/connections/ConnectionsModule.d.ts +14 -0
- package/build/modules/connections/ConnectionsModule.js +47 -0
- package/build/modules/connections/ConnectionsModule.js.map +1 -0
- package/build/modules/connections/ConnectionsModuleConfig.d.ts +47 -0
- package/build/modules/connections/ConnectionsModuleConfig.js +54 -0
- package/build/modules/connections/ConnectionsModuleConfig.js.map +1 -0
- package/build/modules/connections/DidExchangeProtocol.d.ts +58 -0
- package/build/modules/connections/DidExchangeProtocol.js +469 -0
- package/build/modules/connections/DidExchangeProtocol.js.map +1 -0
- package/build/modules/connections/DidExchangeStateMachine.d.ts +10 -0
- package/build/modules/connections/DidExchangeStateMachine.js +78 -0
- package/build/modules/connections/DidExchangeStateMachine.js.map +1 -0
- package/build/modules/connections/TrustPingEvents.d.ts +21 -0
- package/build/modules/connections/TrustPingEvents.js +9 -0
- package/build/modules/connections/TrustPingEvents.js.map +1 -0
- package/build/modules/connections/errors/ConnectionProblemReportError.d.ts +13 -0
- package/build/modules/connections/errors/ConnectionProblemReportError.js +19 -0
- package/build/modules/connections/errors/ConnectionProblemReportError.js.map +1 -0
- package/build/modules/connections/errors/ConnectionProblemReportReason.d.ts +11 -0
- package/build/modules/connections/errors/ConnectionProblemReportReason.js +16 -0
- package/build/modules/connections/errors/ConnectionProblemReportReason.js.map +1 -0
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts +13 -0
- package/build/modules/connections/errors/DidExchangeProblemReportError.js +19 -0
- package/build/modules/connections/errors/DidExchangeProblemReportError.js.map +1 -0
- package/build/modules/connections/errors/DidExchangeProblemReportReason.d.ts +12 -0
- package/build/modules/connections/errors/DidExchangeProblemReportReason.js +17 -0
- package/build/modules/connections/errors/DidExchangeProblemReportReason.js.map +1 -0
- package/build/modules/connections/errors/index.d.ts +4 -0
- package/build/modules/connections/errors/index.js +21 -0
- package/build/modules/connections/errors/index.js.map +1 -0
- package/build/modules/connections/handlers/AckMessageHandler.d.ts +9 -0
- package/build/modules/connections/handlers/AckMessageHandler.js +15 -0
- package/build/modules/connections/handlers/AckMessageHandler.js.map +1 -0
- package/build/modules/connections/handlers/ConnectionProblemReportHandler.d.ts +9 -0
- package/build/modules/connections/handlers/ConnectionProblemReportHandler.js +15 -0
- package/build/modules/connections/handlers/ConnectionProblemReportHandler.js.map +1 -0
- package/build/modules/connections/handlers/ConnectionRequestHandler.d.ts +18 -0
- package/build/modules/connections/handlers/ConnectionRequestHandler.js +67 -0
- package/build/modules/connections/handlers/ConnectionRequestHandler.js.map +1 -0
- package/build/modules/connections/handlers/ConnectionResponseHandler.d.ts +16 -0
- package/build/modules/connections/handlers/ConnectionResponseHandler.js +61 -0
- package/build/modules/connections/handlers/ConnectionResponseHandler.js.map +1 -0
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.d.ts +11 -0
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.js +39 -0
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.js.map +1 -0
- package/build/modules/connections/handlers/DidExchangeRequestHandler.d.ts +18 -0
- package/build/modules/connections/handlers/DidExchangeRequestHandler.js +75 -0
- package/build/modules/connections/handlers/DidExchangeRequestHandler.js.map +1 -0
- package/build/modules/connections/handlers/DidExchangeResponseHandler.d.ts +17 -0
- package/build/modules/connections/handlers/DidExchangeResponseHandler.js +77 -0
- package/build/modules/connections/handlers/DidExchangeResponseHandler.js.map +1 -0
- package/build/modules/connections/handlers/DidRotateAckHandler.d.ts +9 -0
- package/build/modules/connections/handlers/DidRotateAckHandler.js +15 -0
- package/build/modules/connections/handlers/DidRotateAckHandler.js.map +1 -0
- package/build/modules/connections/handlers/DidRotateHandler.d.ts +10 -0
- package/build/modules/connections/handlers/DidRotateHandler.js +21 -0
- package/build/modules/connections/handlers/DidRotateHandler.js.map +1 -0
- package/build/modules/connections/handlers/DidRotateProblemReportHandler.d.ts +9 -0
- package/build/modules/connections/handlers/DidRotateProblemReportHandler.js +15 -0
- package/build/modules/connections/handlers/DidRotateProblemReportHandler.js.map +1 -0
- package/build/modules/connections/handlers/HangupHandler.d.ts +9 -0
- package/build/modules/connections/handlers/HangupHandler.js +15 -0
- package/build/modules/connections/handlers/HangupHandler.js.map +1 -0
- package/build/modules/connections/handlers/TrustPingMessageHandler.d.ts +10 -0
- package/build/modules/connections/handlers/TrustPingMessageHandler.js +27 -0
- package/build/modules/connections/handlers/TrustPingMessageHandler.js.map +1 -0
- package/build/modules/connections/handlers/TrustPingResponseMessageHandler.d.ts +9 -0
- package/build/modules/connections/handlers/TrustPingResponseMessageHandler.js +15 -0
- package/build/modules/connections/handlers/TrustPingResponseMessageHandler.js.map +1 -0
- package/build/modules/connections/handlers/index.d.ts +13 -0
- package/build/modules/connections/handlers/index.js +30 -0
- package/build/modules/connections/handlers/index.js.map +1 -0
- package/build/modules/connections/index.d.ts +12 -0
- package/build/modules/connections/index.js +29 -0
- package/build/modules/connections/index.js.map +1 -0
- package/build/modules/connections/messages/ConnectionInvitationMessage.d.ts +55 -0
- package/build/modules/connections/messages/ConnectionInvitationMessage.js +138 -0
- package/build/modules/connections/messages/ConnectionInvitationMessage.js.map +1 -0
- package/build/modules/connections/messages/ConnectionProblemReportMessage.d.ts +16 -0
- package/build/modules/connections/messages/ConnectionProblemReportMessage.js +35 -0
- package/build/modules/connections/messages/ConnectionProblemReportMessage.js.map +1 -0
- package/build/modules/connections/messages/ConnectionRequestMessage.d.ts +28 -0
- package/build/modules/connections/messages/ConnectionRequestMessage.js +64 -0
- package/build/modules/connections/messages/ConnectionRequestMessage.js.map +1 -0
- package/build/modules/connections/messages/ConnectionResponseMessage.d.ts +23 -0
- package/build/modules/connections/messages/ConnectionResponseMessage.js +52 -0
- package/build/modules/connections/messages/ConnectionResponseMessage.js.map +1 -0
- package/build/modules/connections/messages/DidExchangeCompleteMessage.d.ts +14 -0
- package/build/modules/connections/messages/DidExchangeCompleteMessage.js +37 -0
- package/build/modules/connections/messages/DidExchangeCompleteMessage.js.map +1 -0
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.d.ts +11 -0
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.js +30 -0
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.js.map +1 -0
- package/build/modules/connections/messages/DidExchangeRequestMessage.d.ts +29 -0
- package/build/modules/connections/messages/DidExchangeRequestMessage.js +73 -0
- package/build/modules/connections/messages/DidExchangeRequestMessage.js.map +1 -0
- package/build/modules/connections/messages/DidExchangeResponseMessage.d.ts +24 -0
- package/build/modules/connections/messages/DidExchangeResponseMessage.js +64 -0
- package/build/modules/connections/messages/DidExchangeResponseMessage.js.map +1 -0
- package/build/modules/connections/messages/DidRotateAckMessage.d.ts +12 -0
- package/build/modules/connections/messages/DidRotateAckMessage.js +31 -0
- package/build/modules/connections/messages/DidRotateAckMessage.js.map +1 -0
- package/build/modules/connections/messages/DidRotateMessage.d.ts +20 -0
- package/build/modules/connections/messages/DidRotateMessage.js +47 -0
- package/build/modules/connections/messages/DidRotateMessage.js.map +1 -0
- package/build/modules/connections/messages/DidRotateProblemReportMessage.d.ts +11 -0
- package/build/modules/connections/messages/DidRotateProblemReportMessage.js +30 -0
- package/build/modules/connections/messages/DidRotateProblemReportMessage.js.map +1 -0
- package/build/modules/connections/messages/HangupMessage.d.ts +19 -0
- package/build/modules/connections/messages/HangupMessage.js +40 -0
- package/build/modules/connections/messages/HangupMessage.js.map +1 -0
- package/build/modules/connections/messages/TrustPingMessage.d.ts +26 -0
- package/build/modules/connections/messages/TrustPingMessage.js +63 -0
- package/build/modules/connections/messages/TrustPingMessage.js.map +1 -0
- package/build/modules/connections/messages/TrustPingResponseMessage.d.ts +25 -0
- package/build/modules/connections/messages/TrustPingResponseMessage.js +57 -0
- package/build/modules/connections/messages/TrustPingResponseMessage.js.map +1 -0
- package/build/modules/connections/messages/index.d.ts +14 -0
- package/build/modules/connections/messages/index.js +31 -0
- package/build/modules/connections/messages/index.js.map +1 -0
- package/build/modules/connections/models/Connection.d.ts +10 -0
- package/build/modules/connections/models/Connection.js +38 -0
- package/build/modules/connections/models/Connection.js.map +1 -0
- package/build/modules/connections/models/ConnectionRole.d.ts +4 -0
- package/build/modules/connections/models/ConnectionRole.js +9 -0
- package/build/modules/connections/models/ConnectionRole.js.map +1 -0
- package/build/modules/connections/models/ConnectionState.d.ts +14 -0
- package/build/modules/connections/models/ConnectionState.js +33 -0
- package/build/modules/connections/models/ConnectionState.js.map +1 -0
- package/build/modules/connections/models/ConnectionType.d.ts +3 -0
- package/build/modules/connections/models/ConnectionType.js +8 -0
- package/build/modules/connections/models/ConnectionType.js.map +1 -0
- package/build/modules/connections/models/DidExchangeRole.d.ts +4 -0
- package/build/modules/connections/models/DidExchangeRole.js +9 -0
- package/build/modules/connections/models/DidExchangeRole.js.map +1 -0
- package/build/modules/connections/models/DidExchangeState.d.ts +16 -0
- package/build/modules/connections/models/DidExchangeState.js +21 -0
- package/build/modules/connections/models/DidExchangeState.js.map +1 -0
- package/build/modules/connections/models/DidRotateRole.d.ts +4 -0
- package/build/modules/connections/models/DidRotateRole.js +9 -0
- package/build/modules/connections/models/DidRotateRole.js.map +1 -0
- package/build/modules/connections/models/HandshakeProtocol.d.ts +8 -0
- package/build/modules/connections/models/HandshakeProtocol.js +13 -0
- package/build/modules/connections/models/HandshakeProtocol.js.map +1 -0
- package/build/modules/connections/models/InvitationDetails.d.ts +6 -0
- package/build/modules/connections/models/InvitationDetails.js +3 -0
- package/build/modules/connections/models/InvitationDetails.js.map +1 -0
- package/build/modules/connections/models/did/DidDoc.d.ts +37 -0
- package/build/modules/connections/models/did/DidDoc.js +94 -0
- package/build/modules/connections/models/did/DidDoc.js.map +1 -0
- package/build/modules/connections/models/did/authentication/Authentication.d.ts +4 -0
- package/build/modules/connections/models/did/authentication/Authentication.js +7 -0
- package/build/modules/connections/models/did/authentication/Authentication.js.map +1 -0
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.d.ts +6 -0
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js +29 -0
- package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js.map +1 -0
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.d.ts +7 -0
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js +35 -0
- package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js.map +1 -0
- package/build/modules/connections/models/did/authentication/index.d.ts +19 -0
- package/build/modules/connections/models/did/authentication/index.js +58 -0
- package/build/modules/connections/models/did/authentication/index.js.map +1 -0
- package/build/modules/connections/models/did/index.d.ts +3 -0
- package/build/modules/connections/models/did/index.js +20 -0
- package/build/modules/connections/models/did/index.js.map +1 -0
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.d.ts +10 -0
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js +35 -0
- package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js.map +1 -0
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.d.ts +10 -0
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js +35 -0
- package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js.map +1 -0
- package/build/modules/connections/models/did/publicKey/PublicKey.d.ts +12 -0
- package/build/modules/connections/models/did/publicKey/PublicKey.js +42 -0
- package/build/modules/connections/models/did/publicKey/PublicKey.js.map +1 -0
- package/build/modules/connections/models/did/publicKey/RsaSig2018.d.ts +10 -0
- package/build/modules/connections/models/did/publicKey/RsaSig2018.js +35 -0
- package/build/modules/connections/models/did/publicKey/RsaSig2018.js.map +1 -0
- package/build/modules/connections/models/did/publicKey/index.d.ts +18 -0
- package/build/modules/connections/models/did/publicKey/index.js +39 -0
- package/build/modules/connections/models/did/publicKey/index.js.map +1 -0
- package/build/modules/connections/models/index.d.ts +9 -0
- package/build/modules/connections/models/index.js +26 -0
- package/build/modules/connections/models/index.js.map +1 -0
- package/build/modules/connections/repository/ConnectionMetadataTypes.d.ts +14 -0
- package/build/modules/connections/repository/ConnectionMetadataTypes.js +9 -0
- package/build/modules/connections/repository/ConnectionMetadataTypes.js.map +1 -0
- package/build/modules/connections/repository/ConnectionRecord.d.ts +70 -0
- package/build/modules/connections/repository/ConnectionRecord.js +100 -0
- package/build/modules/connections/repository/ConnectionRecord.js.map +1 -0
- package/build/modules/connections/repository/ConnectionRepository.d.ts +13 -0
- package/build/modules/connections/repository/ConnectionRepository.js +47 -0
- package/build/modules/connections/repository/ConnectionRepository.js.map +1 -0
- package/build/modules/connections/repository/index.d.ts +2 -0
- package/build/modules/connections/repository/index.js +19 -0
- package/build/modules/connections/repository/index.js.map +1 -0
- package/build/modules/connections/services/ConnectionService.d.ts +171 -0
- package/build/modules/connections/services/ConnectionService.js +674 -0
- package/build/modules/connections/services/ConnectionService.js.map +1 -0
- package/build/modules/connections/services/DidRotateService.d.ts +51 -0
- package/build/modules/connections/services/DidRotateService.js +237 -0
- package/build/modules/connections/services/DidRotateService.js.map +1 -0
- package/build/modules/connections/services/TrustPingService.d.ts +12 -0
- package/build/modules/connections/services/TrustPingService.js +53 -0
- package/build/modules/connections/services/TrustPingService.js.map +1 -0
- package/build/modules/connections/services/helpers.d.ts +14 -0
- package/build/modules/connections/services/helpers.js +151 -0
- package/build/modules/connections/services/helpers.js.map +1 -0
- package/build/modules/connections/services/index.d.ts +3 -0
- package/build/modules/connections/services/index.js +20 -0
- package/build/modules/connections/services/index.js.map +1 -0
- package/build/modules/credentials/CredentialEvents.d.ts +20 -0
- package/build/modules/credentials/CredentialEvents.js +9 -0
- package/build/modules/credentials/CredentialEvents.js.map +1 -0
- package/build/modules/credentials/CredentialsApi.d.ts +59 -0
- package/build/modules/credentials/CredentialsApi.js +507 -0
- package/build/modules/credentials/CredentialsApi.js.map +1 -0
- package/build/modules/credentials/CredentialsApiOptions.d.ts +128 -0
- package/build/modules/credentials/CredentialsApiOptions.js +3 -0
- package/build/modules/credentials/CredentialsApiOptions.js.map +1 -0
- package/build/modules/credentials/CredentialsModule.d.ts +20 -0
- package/build/modules/credentials/CredentialsModule.js +51 -0
- package/build/modules/credentials/CredentialsModule.js.map +1 -0
- package/build/modules/credentials/CredentialsModuleConfig.d.ts +34 -0
- package/build/modules/credentials/CredentialsModuleConfig.js +19 -0
- package/build/modules/credentials/CredentialsModuleConfig.js.map +1 -0
- package/build/modules/credentials/formats/CredentialFormat.d.ts +40 -0
- package/build/modules/credentials/formats/CredentialFormat.js +3 -0
- package/build/modules/credentials/formats/CredentialFormat.js.map +1 -0
- package/build/modules/credentials/formats/CredentialFormatService.d.ts +23 -0
- package/build/modules/credentials/formats/CredentialFormatService.js +3 -0
- package/build/modules/credentials/formats/CredentialFormatService.js.map +1 -0
- package/build/modules/credentials/formats/CredentialFormatServiceOptions.d.ts +117 -0
- package/build/modules/credentials/formats/CredentialFormatServiceOptions.js +3 -0
- package/build/modules/credentials/formats/CredentialFormatServiceOptions.js.map +1 -0
- package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.d.ts +51 -0
- package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.js +3 -0
- package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.js.map +1 -0
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.d.ts +76 -0
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js +128 -0
- package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js.map +1 -0
- package/build/modules/credentials/formats/dataIntegrity/index.d.ts +2 -0
- package/build/modules/credentials/formats/dataIntegrity/index.js +19 -0
- package/build/modules/credentials/formats/dataIntegrity/index.js.map +1 -0
- package/build/modules/credentials/formats/index.d.ts +5 -0
- package/build/modules/credentials/formats/index.js +22 -0
- package/build/modules/credentials/formats/index.js.map +1 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.d.ts +15 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.js +38 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.js.map +1 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.d.ts +24 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.js +67 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.js.map +1 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.d.ts +90 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.js +3 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.js.map +1 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.d.ts +71 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js +294 -0
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js.map +1 -0
- package/build/modules/credentials/formats/jsonld/index.d.ts +4 -0
- package/build/modules/credentials/formats/jsonld/index.js +21 -0
- package/build/modules/credentials/formats/jsonld/index.js.map +1 -0
- package/build/modules/credentials/index.d.ts +9 -0
- package/build/modules/credentials/index.js +26 -0
- package/build/modules/credentials/index.js.map +1 -0
- package/build/modules/credentials/models/CredentialAutoAcceptType.d.ts +11 -0
- package/build/modules/credentials/models/CredentialAutoAcceptType.js +16 -0
- package/build/modules/credentials/models/CredentialAutoAcceptType.js.map +1 -0
- package/build/modules/credentials/models/CredentialFormatSpec.d.ts +9 -0
- package/build/modules/credentials/models/CredentialFormatSpec.js +34 -0
- package/build/modules/credentials/models/CredentialFormatSpec.js.map +1 -0
- package/build/modules/credentials/models/CredentialPreviewAttribute.d.ts +15 -0
- package/build/modules/credentials/models/CredentialPreviewAttribute.js +44 -0
- package/build/modules/credentials/models/CredentialPreviewAttribute.js.map +1 -0
- package/build/modules/credentials/models/CredentialProblemReportReason.d.ts +8 -0
- package/build/modules/credentials/models/CredentialProblemReportReason.js +13 -0
- package/build/modules/credentials/models/CredentialProblemReportReason.js.map +1 -0
- package/build/modules/credentials/models/CredentialRole.d.ts +4 -0
- package/build/modules/credentials/models/CredentialRole.js +9 -0
- package/build/modules/credentials/models/CredentialRole.js.map +1 -0
- package/build/modules/credentials/models/CredentialState.d.ts +18 -0
- package/build/modules/credentials/models/CredentialState.js +23 -0
- package/build/modules/credentials/models/CredentialState.js.map +1 -0
- package/build/modules/credentials/models/RevocationNotification.d.ts +5 -0
- package/build/modules/credentials/models/RevocationNotification.js +11 -0
- package/build/modules/credentials/models/RevocationNotification.js.map +1 -0
- package/build/modules/credentials/models/index.d.ts +7 -0
- package/build/modules/credentials/models/index.js +24 -0
- package/build/modules/credentials/models/index.js.map +1 -0
- package/build/modules/credentials/protocol/BaseCredentialProtocol.d.ts +111 -0
- package/build/modules/credentials/protocol/BaseCredentialProtocol.js +168 -0
- package/build/modules/credentials/protocol/BaseCredentialProtocol.js.map +1 -0
- package/build/modules/credentials/protocol/CredentialProtocol.d.ts +53 -0
- package/build/modules/credentials/protocol/CredentialProtocol.js +3 -0
- package/build/modules/credentials/protocol/CredentialProtocol.js.map +1 -0
- package/build/modules/credentials/protocol/CredentialProtocolOptions.d.ts +143 -0
- package/build/modules/credentials/protocol/CredentialProtocolOptions.js +3 -0
- package/build/modules/credentials/protocol/CredentialProtocolOptions.js.map +1 -0
- package/build/modules/credentials/protocol/index.d.ts +6 -0
- package/build/modules/credentials/protocol/index.js +40 -0
- package/build/modules/credentials/protocol/index.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.d.ts +9 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.js +15 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.d.ts +9 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.js +15 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/index.d.ts +2 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/index.js +19 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/index.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/index.d.ts +1 -0
- package/build/modules/credentials/protocol/revocation-notification/index.js +18 -0
- package/build/modules/credentials/protocol/revocation-notification/index.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.d.ts +15 -0
- package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.js +45 -0
- package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.d.ts +17 -0
- package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.js +51 -0
- package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/messages/index.d.ts +2 -0
- package/build/modules/credentials/protocol/revocation-notification/messages/index.js +19 -0
- package/build/modules/credentials/protocol/revocation-notification/messages/index.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.d.ts +35 -0
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.js +139 -0
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationServiceOptions.d.ts +6 -0
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationServiceOptions.js +3 -0
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationServiceOptions.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/services/index.d.ts +2 -0
- package/build/modules/credentials/protocol/revocation-notification/services/index.js +19 -0
- package/build/modules/credentials/protocol/revocation-notification/services/index.js.map +1 -0
- package/build/modules/credentials/protocol/revocation-notification/util/revocationIdentifier.d.ts +5 -0
- package/build/modules/credentials/protocol/revocation-notification/util/revocationIdentifier.js +13 -0
- package/build/modules/credentials/protocol/revocation-notification/util/revocationIdentifier.js.map +1 -0
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.d.ts +100 -0
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.js +363 -0
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.js.map +1 -0
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.d.ts +178 -0
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js +940 -0
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js.map +1 -0
- package/build/modules/credentials/protocol/v2/errors/V2CredentialProblemReportError.d.ts +11 -0
- package/build/modules/credentials/protocol/v2/errors/V2CredentialProblemReportError.js +18 -0
- package/build/modules/credentials/protocol/v2/errors/V2CredentialProblemReportError.js.map +1 -0
- package/build/modules/credentials/protocol/v2/errors/index.d.ts +1 -0
- package/build/modules/credentials/protocol/v2/errors/index.js +6 -0
- package/build/modules/credentials/protocol/v2/errors/index.js.map +1 -0
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.d.ts +9 -0
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.js +15 -0
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.js.map +1 -0
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.d.ts +9 -0
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.js +15 -0
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.js.map +1 -0
- package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.d.ts +11 -0
- package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.js +41 -0
- package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.js.map +1 -0
- package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.d.ts +11 -0
- package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.js +33 -0
- package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.js.map +1 -0
- package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.d.ts +12 -0
- package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.js +36 -0
- package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.js.map +1 -0
- package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.d.ts +11 -0
- package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.js +41 -0
- package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.js.map +1 -0
- package/build/modules/credentials/protocol/v2/handlers/index.d.ts +6 -0
- package/build/modules/credentials/protocol/v2/handlers/index.js +23 -0
- package/build/modules/credentials/protocol/v2/handlers/index.js.map +1 -0
- package/build/modules/credentials/protocol/v2/index.d.ts +3 -0
- package/build/modules/credentials/protocol/v2/index.js +20 -0
- package/build/modules/credentials/protocol/v2/index.js.map +1 -0
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.d.ts +14 -0
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js +34 -0
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js.map +1 -0
- package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.d.ts +26 -0
- package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.js +71 -0
- package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.js.map +1 -0
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.d.ts +15 -0
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js +34 -0
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js.map +1 -0
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.d.ts +22 -0
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.js +75 -0
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.js.map +1 -0
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.d.ts +27 -0
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.js +91 -0
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.js.map +1 -0
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.d.ts +30 -0
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.js +86 -0
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.js.map +1 -0
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.d.ts +27 -0
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.js +76 -0
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.js.map +1 -0
- package/build/modules/credentials/protocol/v2/messages/index.d.ts +7 -0
- package/build/modules/credentials/protocol/v2/messages/index.js +24 -0
- package/build/modules/credentials/protocol/v2/messages/index.js.map +1 -0
- package/build/modules/credentials/repository/CredentialExchangeRecord.d.ts +66 -0
- package/build/modules/credentials/repository/CredentialExchangeRecord.js +85 -0
- package/build/modules/credentials/repository/CredentialExchangeRecord.js.map +1 -0
- package/build/modules/credentials/repository/CredentialRepository.d.ts +5 -0
- package/build/modules/credentials/repository/CredentialRepository.js +29 -0
- package/build/modules/credentials/repository/CredentialRepository.js.map +1 -0
- package/build/modules/credentials/repository/index.d.ts +2 -0
- package/build/modules/credentials/repository/index.js +19 -0
- package/build/modules/credentials/repository/index.js.map +1 -0
- package/build/modules/credentials/util/composeAutoAccept.d.ts +8 -0
- package/build/modules/credentials/util/composeAutoAccept.js +14 -0
- package/build/modules/credentials/util/composeAutoAccept.js.map +1 -0
- package/build/modules/credentials/util/previewAttributes.d.ts +2 -0
- package/build/modules/credentials/util/previewAttributes.js +24 -0
- package/build/modules/credentials/util/previewAttributes.js.map +1 -0
- package/build/modules/discover-features/DiscoverFeaturesApi.d.ts +30 -0
- package/build/modules/discover-features/DiscoverFeaturesApi.js +131 -0
- package/build/modules/discover-features/DiscoverFeaturesApi.js.map +1 -0
- package/build/modules/discover-features/DiscoverFeaturesApiOptions.d.ts +39 -0
- package/build/modules/discover-features/DiscoverFeaturesApiOptions.js +3 -0
- package/build/modules/discover-features/DiscoverFeaturesApiOptions.js.map +1 -0
- package/build/modules/discover-features/DiscoverFeaturesEvents.d.ts +28 -0
- package/build/modules/discover-features/DiscoverFeaturesEvents.js +9 -0
- package/build/modules/discover-features/DiscoverFeaturesEvents.js.map +1 -0
- package/build/modules/discover-features/DiscoverFeaturesModule.d.ts +14 -0
- package/build/modules/discover-features/DiscoverFeaturesModule.js +38 -0
- package/build/modules/discover-features/DiscoverFeaturesModule.js.map +1 -0
- package/build/modules/discover-features/DiscoverFeaturesModuleConfig.d.ts +18 -0
- package/build/modules/discover-features/DiscoverFeaturesModuleConfig.js +14 -0
- package/build/modules/discover-features/DiscoverFeaturesModuleConfig.js.map +1 -0
- package/build/modules/discover-features/DiscoverFeaturesServiceOptions.d.ts +13 -0
- package/build/modules/discover-features/DiscoverFeaturesServiceOptions.js +3 -0
- package/build/modules/discover-features/DiscoverFeaturesServiceOptions.js.map +1 -0
- package/build/modules/discover-features/index.d.ts +4 -0
- package/build/modules/discover-features/index.js +21 -0
- package/build/modules/discover-features/index.js.map +1 -0
- package/build/modules/discover-features/protocol/index.d.ts +2 -0
- package/build/modules/discover-features/protocol/index.js +19 -0
- package/build/modules/discover-features/protocol/index.js.map +1 -0
- package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.d.ts +21 -0
- package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.js +113 -0
- package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.js.map +1 -0
- package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.d.ts +9 -0
- package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.js +15 -0
- package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.js.map +1 -0
- package/build/modules/discover-features/protocol/v1/handlers/V1QueryMessageHandler.d.ts +10 -0
- package/build/modules/discover-features/protocol/v1/handlers/V1QueryMessageHandler.js +23 -0
- package/build/modules/discover-features/protocol/v1/handlers/V1QueryMessageHandler.js.map +1 -0
- package/build/modules/discover-features/protocol/v1/handlers/index.d.ts +2 -0
- package/build/modules/discover-features/protocol/v1/handlers/index.js +19 -0
- package/build/modules/discover-features/protocol/v1/handlers/index.js.map +1 -0
- package/build/modules/discover-features/protocol/v1/index.d.ts +2 -0
- package/build/modules/discover-features/protocol/v1/index.js +19 -0
- package/build/modules/discover-features/protocol/v1/index.js.map +1 -0
- package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.d.ts +21 -0
- package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.js +60 -0
- package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.js.map +1 -0
- package/build/modules/discover-features/protocol/v1/messages/QueryMessage.d.ts +13 -0
- package/build/modules/discover-features/protocol/v1/messages/QueryMessage.js +42 -0
- package/build/modules/discover-features/protocol/v1/messages/QueryMessage.js.map +1 -0
- package/build/modules/discover-features/protocol/v1/messages/index.d.ts +2 -0
- package/build/modules/discover-features/protocol/v1/messages/index.js +19 -0
- package/build/modules/discover-features/protocol/v1/messages/index.js.map +1 -0
- package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.d.ts +20 -0
- package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.js +94 -0
- package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.js.map +1 -0
- package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.d.ts +9 -0
- package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.js +15 -0
- package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.js.map +1 -0
- package/build/modules/discover-features/protocol/v2/handlers/V2QueriesMessageHandler.d.ts +10 -0
- package/build/modules/discover-features/protocol/v2/handlers/V2QueriesMessageHandler.js +23 -0
- package/build/modules/discover-features/protocol/v2/handlers/V2QueriesMessageHandler.js.map +1 -0
- package/build/modules/discover-features/protocol/v2/handlers/index.d.ts +2 -0
- package/build/modules/discover-features/protocol/v2/handlers/index.js +19 -0
- package/build/modules/discover-features/protocol/v2/handlers/index.js.map +1 -0
- package/build/modules/discover-features/protocol/v2/index.d.ts +2 -0
- package/build/modules/discover-features/protocol/v2/index.js +19 -0
- package/build/modules/discover-features/protocol/v2/index.js.map +1 -0
- package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.d.ts +13 -0
- package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.js +44 -0
- package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.js.map +1 -0
- package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.d.ts +14 -0
- package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.js +40 -0
- package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.js.map +1 -0
- package/build/modules/discover-features/protocol/v2/messages/index.d.ts +2 -0
- package/build/modules/discover-features/protocol/v2/messages/index.js +19 -0
- package/build/modules/discover-features/protocol/v2/messages/index.js.map +1 -0
- package/build/modules/discover-features/services/DiscoverFeaturesService.d.ts +18 -0
- package/build/modules/discover-features/services/DiscoverFeaturesService.js +13 -0
- package/build/modules/discover-features/services/DiscoverFeaturesService.js.map +1 -0
- package/build/modules/discover-features/services/index.d.ts +1 -0
- package/build/modules/discover-features/services/index.js +18 -0
- package/build/modules/discover-features/services/index.js.map +1 -0
- package/build/modules/index.d.ts +8 -0
- package/build/modules/index.js +25 -0
- package/build/modules/index.js.map +1 -0
- package/build/modules/message-pickup/MessagePickupApi.d.ts +33 -0
- package/build/modules/message-pickup/MessagePickupApi.js +200 -0
- package/build/modules/message-pickup/MessagePickupApi.js.map +1 -0
- package/build/modules/message-pickup/MessagePickupApiOptions.d.ts +39 -0
- package/build/modules/message-pickup/MessagePickupApiOptions.js +3 -0
- package/build/modules/message-pickup/MessagePickupApiOptions.js.map +1 -0
- package/build/modules/message-pickup/MessagePickupEvents.d.ts +27 -0
- package/build/modules/message-pickup/MessagePickupEvents.js +10 -0
- package/build/modules/message-pickup/MessagePickupEvents.js.map +1 -0
- package/build/modules/message-pickup/MessagePickupModule.d.ts +21 -0
- package/build/modules/message-pickup/MessagePickupModule.js +51 -0
- package/build/modules/message-pickup/MessagePickupModule.js.map +1 -0
- package/build/modules/message-pickup/MessagePickupModuleConfig.d.ts +41 -0
- package/build/modules/message-pickup/MessagePickupModuleConfig.js +22 -0
- package/build/modules/message-pickup/MessagePickupModuleConfig.js.map +1 -0
- package/build/modules/message-pickup/MessagePickupSession.d.ts +12 -0
- package/build/modules/message-pickup/MessagePickupSession.js +9 -0
- package/build/modules/message-pickup/MessagePickupSession.js.map +1 -0
- package/build/modules/message-pickup/index.d.ts +8 -0
- package/build/modules/message-pickup/index.js +27 -0
- package/build/modules/message-pickup/index.js.map +1 -0
- package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.d.ts +17 -0
- package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.js +11 -0
- package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.js.map +1 -0
- package/build/modules/message-pickup/protocol/MessagePickupProtocol.d.ts +12 -0
- package/build/modules/message-pickup/protocol/MessagePickupProtocol.js +3 -0
- package/build/modules/message-pickup/protocol/MessagePickupProtocol.js.map +1 -0
- package/build/modules/message-pickup/protocol/MessagePickupProtocolOptions.d.ts +27 -0
- package/build/modules/message-pickup/protocol/MessagePickupProtocolOptions.js +3 -0
- package/build/modules/message-pickup/protocol/MessagePickupProtocolOptions.js.map +1 -0
- package/build/modules/message-pickup/protocol/index.d.ts +2 -0
- package/build/modules/message-pickup/protocol/index.js +19 -0
- package/build/modules/message-pickup/protocol/index.js.map +1 -0
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.d.ts +24 -0
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js +124 -0
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js.map +1 -0
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchHandler.d.ts +10 -0
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchHandler.js +23 -0
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchHandler.js.map +1 -0
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchPickupHandler.d.ts +9 -0
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchPickupHandler.js +16 -0
- package/build/modules/message-pickup/protocol/v1/handlers/V1BatchPickupHandler.js.map +1 -0
- package/build/modules/message-pickup/protocol/v1/handlers/index.d.ts +2 -0
- package/build/modules/message-pickup/protocol/v1/handlers/index.js +19 -0
- package/build/modules/message-pickup/protocol/v1/handlers/index.js.map +1 -0
- package/build/modules/message-pickup/protocol/v1/index.d.ts +2 -0
- package/build/modules/message-pickup/protocol/v1/index.js +19 -0
- package/build/modules/message-pickup/protocol/v1/index.js.map +1 -0
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.d.ts +27 -0
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.js +71 -0
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.js.map +1 -0
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.d.ts +22 -0
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.js +49 -0
- package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.js.map +1 -0
- package/build/modules/message-pickup/protocol/v1/messages/index.d.ts +2 -0
- package/build/modules/message-pickup/protocol/v1/messages/index.js +19 -0
- package/build/modules/message-pickup/protocol/v1/messages/index.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.d.ts +28 -0
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js +238 -0
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2DeliveryRequestHandler.d.ts +10 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2DeliveryRequestHandler.js +16 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2DeliveryRequestHandler.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2LiveDeliveryChangeHandler.d.ts +10 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2LiveDeliveryChangeHandler.js +16 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2LiveDeliveryChangeHandler.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessageDeliveryHandler.d.ts +11 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessageDeliveryHandler.js +23 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessageDeliveryHandler.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessagesReceivedHandler.d.ts +10 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessagesReceivedHandler.js +16 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2MessagesReceivedHandler.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusHandler.d.ts +11 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusHandler.js +23 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusHandler.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusRequestHandler.d.ts +10 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusRequestHandler.js +16 -0
- package/build/modules/message-pickup/protocol/v2/handlers/V2StatusRequestHandler.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/handlers/index.d.ts +6 -0
- package/build/modules/message-pickup/protocol/v2/handlers/index.js +23 -0
- package/build/modules/message-pickup/protocol/v2/handlers/index.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/index.d.ts +2 -0
- package/build/modules/message-pickup/protocol/v2/index.js +19 -0
- package/build/modules/message-pickup/protocol/v2/index.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.d.ts +14 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.js +47 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.d.ts +12 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.js +41 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.d.ts +15 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.js +48 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.d.ts +12 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.js +41 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.d.ts +25 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.js +89 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.d.ts +12 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.js +40 -0
- package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.js.map +1 -0
- package/build/modules/message-pickup/protocol/v2/messages/index.d.ts +6 -0
- package/build/modules/message-pickup/protocol/v2/messages/index.js +23 -0
- package/build/modules/message-pickup/protocol/v2/messages/index.js.map +1 -0
- package/build/modules/message-pickup/services/MessagePickupSessionService.d.ts +27 -0
- package/build/modules/message-pickup/services/MessagePickupSessionService.js +88 -0
- package/build/modules/message-pickup/services/MessagePickupSessionService.js.map +1 -0
- package/build/modules/message-pickup/services/index.d.ts +1 -0
- package/build/modules/message-pickup/services/index.js +18 -0
- package/build/modules/message-pickup/services/index.js.map +1 -0
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.d.ts +13 -0
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js +75 -0
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js.map +1 -0
- package/build/modules/message-pickup/storage/MessagePickupRepository.d.ts +8 -0
- package/build/modules/message-pickup/storage/MessagePickupRepository.js +3 -0
- package/build/modules/message-pickup/storage/MessagePickupRepository.js.map +1 -0
- package/build/modules/message-pickup/storage/MessagePickupRepositoryOptions.d.ts +20 -0
- package/build/modules/message-pickup/storage/MessagePickupRepositoryOptions.js +3 -0
- package/build/modules/message-pickup/storage/MessagePickupRepositoryOptions.js.map +1 -0
- package/build/modules/message-pickup/storage/QueuedMessage.d.ts +12 -0
- package/build/modules/message-pickup/storage/QueuedMessage.js +3 -0
- package/build/modules/message-pickup/storage/QueuedMessage.js.map +1 -0
- package/build/modules/message-pickup/storage/index.d.ts +4 -0
- package/build/modules/message-pickup/storage/index.js +21 -0
- package/build/modules/message-pickup/storage/index.js.map +1 -0
- package/build/modules/oob/OutOfBandApi.d.ts +275 -0
- package/build/modules/oob/OutOfBandApi.js +717 -0
- package/build/modules/oob/OutOfBandApi.js.map +1 -0
- package/build/modules/oob/OutOfBandModule.d.ts +10 -0
- package/build/modules/oob/OutOfBandModule.js +32 -0
- package/build/modules/oob/OutOfBandModule.js.map +1 -0
- package/build/modules/oob/OutOfBandService.d.ts +48 -0
- package/build/modules/oob/OutOfBandService.js +218 -0
- package/build/modules/oob/OutOfBandService.js.map +1 -0
- package/build/modules/oob/converters.d.ts +9 -0
- package/build/modules/oob/converters.js +91 -0
- package/build/modules/oob/converters.js.map +1 -0
- package/build/modules/oob/domain/OutOfBandDidCommService.d.ts +18 -0
- package/build/modules/oob/domain/OutOfBandDidCommService.js +75 -0
- package/build/modules/oob/domain/OutOfBandDidCommService.js.map +1 -0
- package/build/modules/oob/domain/OutOfBandEvents.d.ts +23 -0
- package/build/modules/oob/domain/OutOfBandEvents.js +9 -0
- package/build/modules/oob/domain/OutOfBandEvents.js.map +1 -0
- package/build/modules/oob/domain/OutOfBandRole.d.ts +4 -0
- package/build/modules/oob/domain/OutOfBandRole.js +9 -0
- package/build/modules/oob/domain/OutOfBandRole.js.map +1 -0
- package/build/modules/oob/domain/OutOfBandState.d.ts +6 -0
- package/build/modules/oob/domain/OutOfBandState.js +11 -0
- package/build/modules/oob/domain/OutOfBandState.js.map +1 -0
- package/build/modules/oob/domain/index.d.ts +4 -0
- package/build/modules/oob/domain/index.js +21 -0
- package/build/modules/oob/domain/index.js.map +1 -0
- package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.d.ts +10 -0
- package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.js +16 -0
- package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.js.map +1 -0
- package/build/modules/oob/handlers/HandshakeReuseHandler.d.ts +11 -0
- package/build/modules/oob/handlers/HandshakeReuseHandler.js +21 -0
- package/build/modules/oob/handlers/HandshakeReuseHandler.js.map +1 -0
- package/build/modules/oob/handlers/index.d.ts +1 -0
- package/build/modules/oob/handlers/index.js +18 -0
- package/build/modules/oob/handlers/index.js.map +1 -0
- package/build/modules/oob/helpers.d.ts +3 -0
- package/build/modules/oob/helpers.js +41 -0
- package/build/modules/oob/helpers.js.map +1 -0
- package/build/modules/oob/index.d.ts +6 -0
- package/build/modules/oob/index.js +23 -0
- package/build/modules/oob/index.js.map +1 -0
- package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.d.ts +11 -0
- package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.js +34 -0
- package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.js.map +1 -0
- package/build/modules/oob/messages/HandshakeReuseMessage.d.ts +10 -0
- package/build/modules/oob/messages/HandshakeReuseMessage.js +33 -0
- package/build/modules/oob/messages/HandshakeReuseMessage.js.map +1 -0
- package/build/modules/oob/messages/OutOfBandInvitation.d.ts +55 -0
- package/build/modules/oob/messages/OutOfBandInvitation.js +176 -0
- package/build/modules/oob/messages/OutOfBandInvitation.js.map +1 -0
- package/build/modules/oob/messages/index.d.ts +3 -0
- package/build/modules/oob/messages/index.js +20 -0
- package/build/modules/oob/messages/index.js.map +1 -0
- package/build/modules/oob/repository/OutOfBandRecord.d.ts +59 -0
- package/build/modules/oob/repository/OutOfBandRecord.js +67 -0
- package/build/modules/oob/repository/OutOfBandRecord.js.map +1 -0
- package/build/modules/oob/repository/OutOfBandRepository.d.ts +5 -0
- package/build/modules/oob/repository/OutOfBandRepository.js +29 -0
- package/build/modules/oob/repository/OutOfBandRepository.js.map +1 -0
- package/build/modules/oob/repository/index.d.ts +2 -0
- package/build/modules/oob/repository/index.js +19 -0
- package/build/modules/oob/repository/index.js.map +1 -0
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.d.ts +19 -0
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.js +9 -0
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.js.map +1 -0
- package/build/modules/proofs/ProofEvents.d.ts +13 -0
- package/build/modules/proofs/ProofEvents.js +8 -0
- package/build/modules/proofs/ProofEvents.js.map +1 -0
- package/build/modules/proofs/ProofsApi.d.ts +68 -0
- package/build/modules/proofs/ProofsApi.js +475 -0
- package/build/modules/proofs/ProofsApi.js.map +1 -0
- package/build/modules/proofs/ProofsApiOptions.d.ts +141 -0
- package/build/modules/proofs/ProofsApiOptions.js +3 -0
- package/build/modules/proofs/ProofsApiOptions.js.map +1 -0
- package/build/modules/proofs/ProofsModule.d.ts +21 -0
- package/build/modules/proofs/ProofsModule.js +38 -0
- package/build/modules/proofs/ProofsModule.js.map +1 -0
- package/build/modules/proofs/ProofsModuleConfig.d.ts +34 -0
- package/build/modules/proofs/ProofsModuleConfig.js +19 -0
- package/build/modules/proofs/ProofsModuleConfig.js.map +1 -0
- package/build/modules/proofs/errors/PresentationProblemReportReason.d.ts +8 -0
- package/build/modules/proofs/errors/PresentationProblemReportReason.js +13 -0
- package/build/modules/proofs/errors/PresentationProblemReportReason.js.map +1 -0
- package/build/modules/proofs/errors/index.d.ts +1 -0
- package/build/modules/proofs/errors/index.js +18 -0
- package/build/modules/proofs/errors/index.js.map +1 -0
- package/build/modules/proofs/formats/ProofFormat.d.ts +66 -0
- package/build/modules/proofs/formats/ProofFormat.js +3 -0
- package/build/modules/proofs/formats/ProofFormat.js.map +1 -0
- package/build/modules/proofs/formats/ProofFormatService.d.ts +19 -0
- package/build/modules/proofs/formats/ProofFormatService.js +3 -0
- package/build/modules/proofs/formats/ProofFormatService.js.map +1 -0
- package/build/modules/proofs/formats/ProofFormatServiceOptions.d.ts +103 -0
- package/build/modules/proofs/formats/ProofFormatServiceOptions.js +3 -0
- package/build/modules/proofs/formats/ProofFormatServiceOptions.js.map +1 -0
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.d.ts +52 -0
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.js +3 -0
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.js.map +1 -0
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.d.ts +31 -0
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js +291 -0
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js.map +1 -0
- package/build/modules/proofs/formats/dif-presentation-exchange/index.d.ts +2 -0
- package/build/modules/proofs/formats/dif-presentation-exchange/index.js +19 -0
- package/build/modules/proofs/formats/dif-presentation-exchange/index.js.map +1 -0
- package/build/modules/proofs/formats/index.d.ts +6 -0
- package/build/modules/proofs/formats/index.js +36 -0
- package/build/modules/proofs/formats/index.js.map +1 -0
- package/build/modules/proofs/index.d.ts +10 -0
- package/build/modules/proofs/index.js +29 -0
- package/build/modules/proofs/index.js.map +1 -0
- package/build/modules/proofs/models/ProofAutoAcceptType.d.ts +8 -0
- package/build/modules/proofs/models/ProofAutoAcceptType.js +16 -0
- package/build/modules/proofs/models/ProofAutoAcceptType.js.map +1 -0
- package/build/modules/proofs/models/ProofFormatSpec.d.ts +9 -0
- package/build/modules/proofs/models/ProofFormatSpec.js +34 -0
- package/build/modules/proofs/models/ProofFormatSpec.js.map +1 -0
- package/build/modules/proofs/models/ProofRole.d.ts +4 -0
- package/build/modules/proofs/models/ProofRole.js +9 -0
- package/build/modules/proofs/models/ProofRole.js.map +1 -0
- package/build/modules/proofs/models/ProofState.d.ts +16 -0
- package/build/modules/proofs/models/ProofState.js +21 -0
- package/build/modules/proofs/models/ProofState.js.map +1 -0
- package/build/modules/proofs/models/index.d.ts +4 -0
- package/build/modules/proofs/models/index.js +21 -0
- package/build/modules/proofs/models/index.js.map +1 -0
- package/build/modules/proofs/protocol/BaseProofProtocol.d.ts +97 -0
- package/build/modules/proofs/protocol/BaseProofProtocol.js +150 -0
- package/build/modules/proofs/protocol/BaseProofProtocol.js.map +1 -0
- package/build/modules/proofs/protocol/ProofProtocol.d.ts +51 -0
- package/build/modules/proofs/protocol/ProofProtocol.js +3 -0
- package/build/modules/proofs/protocol/ProofProtocol.js.map +1 -0
- package/build/modules/proofs/protocol/ProofProtocolOptions.d.ts +128 -0
- package/build/modules/proofs/protocol/ProofProtocolOptions.js +3 -0
- package/build/modules/proofs/protocol/ProofProtocolOptions.js.map +1 -0
- package/build/modules/proofs/protocol/index.d.ts +5 -0
- package/build/modules/proofs/protocol/index.js +39 -0
- package/build/modules/proofs/protocol/index.js.map +1 -0
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.d.ts +93 -0
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js +307 -0
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js.map +1 -0
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.d.ts +114 -0
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.js +797 -0
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.js.map +1 -0
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.ts +13 -0
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.js +19 -0
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.js.map +1 -0
- package/build/modules/proofs/protocol/v2/errors/index.d.ts +1 -0
- package/build/modules/proofs/protocol/v2/errors/index.js +18 -0
- package/build/modules/proofs/protocol/v2/errors/index.js.map +1 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.d.ts +9 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.js +15 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.js.map +1 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.d.ts +10 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.js +43 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.js.map +1 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.d.ts +9 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.js +15 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.js.map +1 -0
- package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.d.ts +11 -0
- package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.js +36 -0
- package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.js.map +1 -0
- package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.d.ts +10 -0
- package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.js +36 -0
- package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.js.map +1 -0
- package/build/modules/proofs/protocol/v2/index.d.ts +3 -0
- package/build/modules/proofs/protocol/v2/index.js +20 -0
- package/build/modules/proofs/protocol/v2/index.js.map +1 -0
- package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.d.ts +5 -0
- package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.js +27 -0
- package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.js.map +1 -0
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.d.ts +24 -0
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.js +84 -0
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.js.map +1 -0
- package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.d.ts +8 -0
- package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.js +30 -0
- package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.js.map +1 -0
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.d.ts +22 -0
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.js +76 -0
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.js.map +1 -0
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.d.ts +26 -0
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.js +91 -0
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.js.map +1 -0
- package/build/modules/proofs/protocol/v2/messages/index.d.ts +5 -0
- package/build/modules/proofs/protocol/v2/messages/index.js +22 -0
- package/build/modules/proofs/protocol/v2/messages/index.js.map +1 -0
- package/build/modules/proofs/repository/ProofExchangeRecord.d.ts +50 -0
- package/build/modules/proofs/repository/ProofExchangeRecord.js +58 -0
- package/build/modules/proofs/repository/ProofExchangeRecord.js.map +1 -0
- package/build/modules/proofs/repository/ProofRepository.d.ts +24 -0
- package/build/modules/proofs/repository/ProofRepository.js +51 -0
- package/build/modules/proofs/repository/ProofRepository.js.map +1 -0
- package/build/modules/proofs/repository/index.d.ts +2 -0
- package/build/modules/proofs/repository/index.js +19 -0
- package/build/modules/proofs/repository/index.js.map +1 -0
- package/build/modules/proofs/utils/composeAutoAccept.d.ts +8 -0
- package/build/modules/proofs/utils/composeAutoAccept.js +14 -0
- package/build/modules/proofs/utils/composeAutoAccept.js.map +1 -0
- package/build/modules/proofs/utils/index.d.ts +1 -0
- package/build/modules/proofs/utils/index.js +18 -0
- package/build/modules/proofs/utils/index.js.map +1 -0
- package/build/modules/routing/MediationRecipientApi.d.ts +87 -0
- package/build/modules/routing/MediationRecipientApi.js +455 -0
- package/build/modules/routing/MediationRecipientApi.js.map +1 -0
- package/build/modules/routing/MediationRecipientModule.d.ts +14 -0
- package/build/modules/routing/MediationRecipientModule.js +37 -0
- package/build/modules/routing/MediationRecipientModule.js.map +1 -0
- package/build/modules/routing/MediationRecipientModuleConfig.d.ts +79 -0
- package/build/modules/routing/MediationRecipientModuleConfig.js +34 -0
- package/build/modules/routing/MediationRecipientModuleConfig.js.map +1 -0
- package/build/modules/routing/MediatorApi.d.ts +17 -0
- package/build/modules/routing/MediatorApi.js +59 -0
- package/build/modules/routing/MediatorApi.js.map +1 -0
- package/build/modules/routing/MediatorModule.d.ts +14 -0
- package/build/modules/routing/MediatorModule.js +45 -0
- package/build/modules/routing/MediatorModule.js.map +1 -0
- package/build/modules/routing/MediatorModuleConfig.d.ts +33 -0
- package/build/modules/routing/MediatorModuleConfig.js +19 -0
- package/build/modules/routing/MediatorModuleConfig.js.map +1 -0
- package/build/modules/routing/MediatorPickupStrategy.d.ts +7 -0
- package/build/modules/routing/MediatorPickupStrategy.js +19 -0
- package/build/modules/routing/MediatorPickupStrategy.js.map +1 -0
- package/build/modules/routing/MessageForwardingStrategy.d.ts +5 -0
- package/build/modules/routing/MessageForwardingStrategy.js +16 -0
- package/build/modules/routing/MessageForwardingStrategy.js.map +1 -0
- package/build/modules/routing/RoutingEvents.d.ts +30 -0
- package/build/modules/routing/RoutingEvents.js +10 -0
- package/build/modules/routing/RoutingEvents.js.map +1 -0
- package/build/modules/routing/error/RoutingProblemReportReason.d.ts +3 -0
- package/build/modules/routing/error/RoutingProblemReportReason.js +8 -0
- package/build/modules/routing/error/RoutingProblemReportReason.js.map +1 -0
- package/build/modules/routing/error/index.d.ts +1 -0
- package/build/modules/routing/error/index.js +18 -0
- package/build/modules/routing/error/index.js.map +1 -0
- package/build/modules/routing/handlers/ForwardHandler.d.ts +9 -0
- package/build/modules/routing/handlers/ForwardHandler.js +15 -0
- package/build/modules/routing/handlers/ForwardHandler.js.map +1 -0
- package/build/modules/routing/handlers/KeylistUpdateHandler.d.ts +10 -0
- package/build/modules/routing/handlers/KeylistUpdateHandler.js +21 -0
- package/build/modules/routing/handlers/KeylistUpdateHandler.js.map +1 -0
- package/build/modules/routing/handlers/KeylistUpdateResponseHandler.d.ts +9 -0
- package/build/modules/routing/handlers/KeylistUpdateResponseHandler.js +16 -0
- package/build/modules/routing/handlers/KeylistUpdateResponseHandler.js.map +1 -0
- package/build/modules/routing/handlers/MediationDenyHandler.d.ts +9 -0
- package/build/modules/routing/handlers/MediationDenyHandler.js +16 -0
- package/build/modules/routing/handlers/MediationDenyHandler.js.map +1 -0
- package/build/modules/routing/handlers/MediationGrantHandler.d.ts +9 -0
- package/build/modules/routing/handlers/MediationGrantHandler.js +16 -0
- package/build/modules/routing/handlers/MediationGrantHandler.js.map +1 -0
- package/build/modules/routing/handlers/MediationRequestHandler.d.ts +12 -0
- package/build/modules/routing/handlers/MediationRequestHandler.js +26 -0
- package/build/modules/routing/handlers/MediationRequestHandler.js.map +1 -0
- package/build/modules/routing/handlers/index.d.ts +6 -0
- package/build/modules/routing/handlers/index.js +23 -0
- package/build/modules/routing/handlers/index.js.map +1 -0
- package/build/modules/routing/index.d.ts +11 -0
- package/build/modules/routing/index.js +28 -0
- package/build/modules/routing/index.js.map +1 -0
- package/build/modules/routing/messages/ForwardMessage.d.ts +23 -0
- package/build/modules/routing/messages/ForwardMessage.js +52 -0
- package/build/modules/routing/messages/ForwardMessage.js.map +1 -0
- package/build/modules/routing/messages/KeylistMessage.d.ts +20 -0
- package/build/modules/routing/messages/KeylistMessage.js +49 -0
- package/build/modules/routing/messages/KeylistMessage.js.map +1 -0
- package/build/modules/routing/messages/KeylistUpdateMessage.d.ts +29 -0
- package/build/modules/routing/messages/KeylistUpdateMessage.js +68 -0
- package/build/modules/routing/messages/KeylistUpdateMessage.js.map +1 -0
- package/build/modules/routing/messages/KeylistUpdateResponseMessage.d.ts +34 -0
- package/build/modules/routing/messages/KeylistUpdateResponseMessage.js +79 -0
- package/build/modules/routing/messages/KeylistUpdateResponseMessage.js.map +1 -0
- package/build/modules/routing/messages/MediationDenyMessage.d.ts +14 -0
- package/build/modules/routing/messages/MediationDenyMessage.js +35 -0
- package/build/modules/routing/messages/MediationDenyMessage.js.map +1 -0
- package/build/modules/routing/messages/MediationGrantMessage.d.ts +20 -0
- package/build/modules/routing/messages/MediationGrantMessage.js +54 -0
- package/build/modules/routing/messages/MediationGrantMessage.js.map +1 -0
- package/build/modules/routing/messages/MediationRequestMessage.d.ts +22 -0
- package/build/modules/routing/messages/MediationRequestMessage.js +42 -0
- package/build/modules/routing/messages/MediationRequestMessage.js.map +1 -0
- package/build/modules/routing/messages/index.d.ts +6 -0
- package/build/modules/routing/messages/index.js +23 -0
- package/build/modules/routing/messages/index.js.map +1 -0
- package/build/modules/routing/models/MediationRole.d.ts +9 -0
- package/build/modules/routing/models/MediationRole.js +14 -0
- package/build/modules/routing/models/MediationRole.js.map +1 -0
- package/build/modules/routing/models/MediationState.d.ts +10 -0
- package/build/modules/routing/models/MediationState.js +15 -0
- package/build/modules/routing/models/MediationState.js.map +1 -0
- package/build/modules/routing/models/index.d.ts +2 -0
- package/build/modules/routing/models/index.js +19 -0
- package/build/modules/routing/models/index.js.map +1 -0
- package/build/modules/routing/repository/MediationRecord.d.ts +53 -0
- package/build/modules/routing/repository/MediationRecord.js +91 -0
- package/build/modules/routing/repository/MediationRecord.js.map +1 -0
- package/build/modules/routing/repository/MediationRepository.d.ts +8 -0
- package/build/modules/routing/repository/MediationRepository.js +37 -0
- package/build/modules/routing/repository/MediationRepository.js.map +1 -0
- package/build/modules/routing/repository/MediatorRoutingRecord.d.ts +15 -0
- package/build/modules/routing/repository/MediatorRoutingRecord.js +21 -0
- package/build/modules/routing/repository/MediatorRoutingRecord.js.map +1 -0
- package/build/modules/routing/repository/MediatorRoutingRepository.d.ts +6 -0
- package/build/modules/routing/repository/MediatorRoutingRepository.js +30 -0
- package/build/modules/routing/repository/MediatorRoutingRepository.js.map +1 -0
- package/build/modules/routing/repository/index.d.ts +4 -0
- package/build/modules/routing/repository/index.js +21 -0
- package/build/modules/routing/repository/index.js.map +1 -0
- package/build/modules/routing/services/MediationRecipientService.d.ts +54 -0
- package/build/modules/routing/services/MediationRecipientService.js +275 -0
- package/build/modules/routing/services/MediationRecipientService.js.map +1 -0
- package/build/modules/routing/services/MediatorService.d.ts +37 -0
- package/build/modules/routing/services/MediatorService.js +250 -0
- package/build/modules/routing/services/MediatorService.js.map +1 -0
- package/build/modules/routing/services/RoutingService.d.ts +32 -0
- package/build/modules/routing/services/RoutingService.js +54 -0
- package/build/modules/routing/services/RoutingService.js.map +1 -0
- package/build/modules/routing/services/helpers.d.ts +2 -0
- package/build/modules/routing/services/helpers.js +13 -0
- package/build/modules/routing/services/helpers.js.map +1 -0
- package/build/modules/routing/services/index.d.ts +3 -0
- package/build/modules/routing/services/index.js +20 -0
- package/build/modules/routing/services/index.js.map +1 -0
- package/build/repository/DidCommMessageRecord.d.ts +48 -0
- package/build/repository/DidCommMessageRecord.js +51 -0
- package/build/repository/DidCommMessageRecord.js.map +1 -0
- package/build/repository/DidCommMessageRepository.d.ts +22 -0
- package/build/repository/DidCommMessageRepository.js +74 -0
- package/build/repository/DidCommMessageRepository.js.map +1 -0
- package/build/repository/DidCommMessageRole.d.ts +4 -0
- package/build/repository/DidCommMessageRole.js +9 -0
- package/build/repository/DidCommMessageRole.js.map +1 -0
- package/build/repository/index.d.ts +3 -0
- package/build/repository/index.js +20 -0
- package/build/repository/index.js.map +1 -0
- package/build/services/DidCommDocumentService.d.ts +7 -0
- package/build/services/DidCommDocumentService.js +78 -0
- package/build/services/DidCommDocumentService.js.map +1 -0
- package/build/services/index.d.ts +1 -0
- package/build/services/index.js +18 -0
- package/build/services/index.js.map +1 -0
- package/build/transport/HttpOutboundTransport.d.ts +15 -0
- package/build/transport/HttpOutboundTransport.js +126 -0
- package/build/transport/HttpOutboundTransport.js.map +1 -0
- package/build/transport/InboundTransport.d.ts +5 -0
- package/build/transport/InboundTransport.js +3 -0
- package/build/transport/InboundTransport.js.map +1 -0
- package/build/transport/OutboundTransport.d.ts +8 -0
- package/build/transport/OutboundTransport.js +3 -0
- package/build/transport/OutboundTransport.js.map +1 -0
- package/build/transport/TransportEventTypes.d.ts +34 -0
- package/build/transport/TransportEventTypes.js +11 -0
- package/build/transport/TransportEventTypes.js.map +1 -0
- package/build/transport/WsOutboundTransport.d.ts +19 -0
- package/build/transport/WsOutboundTransport.js +146 -0
- package/build/transport/WsOutboundTransport.js.map +1 -0
- package/build/transport/index.d.ts +5 -0
- package/build/transport/index.js +22 -0
- package/build/transport/index.js.map +1 -0
- package/build/types.d.ts +46 -0
- package/build/types.js +9 -0
- package/build/types.js.map +1 -0
- package/build/updates/0.1-0.2/connection.d.ts +119 -0
- package/build/updates/0.1-0.2/connection.js +376 -0
- package/build/updates/0.1-0.2/connection.js.map +1 -0
- package/build/updates/0.1-0.2/credential.d.ts +80 -0
- package/build/updates/0.1-0.2/credential.js +204 -0
- package/build/updates/0.1-0.2/credential.js.map +1 -0
- package/build/updates/0.1-0.2/index.d.ts +2 -0
- package/build/updates/0.1-0.2/index.js +14 -0
- package/build/updates/0.1-0.2/index.js.map +1 -0
- package/build/updates/0.1-0.2/mediation.d.ts +29 -0
- package/build/updates/0.1-0.2/mediation.js +67 -0
- package/build/updates/0.1-0.2/mediation.js.map +1 -0
- package/build/updates/0.2-0.3/connection.d.ts +14 -0
- package/build/updates/0.2-0.3/connection.js +47 -0
- package/build/updates/0.2-0.3/connection.js.map +1 -0
- package/build/updates/0.2-0.3/index.d.ts +2 -0
- package/build/updates/0.2-0.3/index.js +10 -0
- package/build/updates/0.2-0.3/index.js.map +1 -0
- package/build/updates/0.2-0.3/proof.d.ts +42 -0
- package/build/updates/0.2-0.3/proof.js +130 -0
- package/build/updates/0.2-0.3/proof.js.map +1 -0
- package/build/updates/0.4-0.5/credentialExchangeRecord.d.ts +17 -0
- package/build/updates/0.4-0.5/credentialExchangeRecord.js +106 -0
- package/build/updates/0.4-0.5/credentialExchangeRecord.js.map +1 -0
- package/build/updates/0.4-0.5/index.d.ts +2 -0
- package/build/updates/0.4-0.5/index.js +10 -0
- package/build/updates/0.4-0.5/index.js.map +1 -0
- package/build/updates/0.4-0.5/proofExchangeRecord.d.ts +16 -0
- package/build/updates/0.4-0.5/proofExchangeRecord.js +87 -0
- package/build/updates/0.4-0.5/proofExchangeRecord.js.map +1 -0
- package/build/util/JWE.d.ts +2 -0
- package/build/util/JWE.js +14 -0
- package/build/util/JWE.js.map +1 -0
- package/build/util/LinkedAttachment.d.ts +23 -0
- package/build/util/LinkedAttachment.js +51 -0
- package/build/util/LinkedAttachment.js.map +1 -0
- package/build/util/attachment.d.ts +18 -0
- package/build/util/attachment.js +37 -0
- package/build/util/attachment.js.map +1 -0
- package/build/util/matchingEd25519Key.d.ts +9 -0
- package/build/util/matchingEd25519Key.js +30 -0
- package/build/util/matchingEd25519Key.js.map +1 -0
- package/build/util/messageType.d.ts +138 -0
- package/build/util/messageType.js +179 -0
- package/build/util/messageType.js.map +1 -0
- package/build/util/modules.d.ts +37 -0
- package/build/util/modules.js +20 -0
- package/build/util/modules.js.map +1 -0
- package/build/util/parseInvitation.d.ts +30 -0
- package/build/util/parseInvitation.js +155 -0
- package/build/util/parseInvitation.js.map +1 -0
- package/build/util/thread.d.ts +2 -0
- package/build/util/thread.js +7 -0
- package/build/util/thread.js.map +1 -0
- package/build/util/transformers.d.ts +1 -0
- package/build/util/transformers.js +20 -0
- package/build/util/transformers.js.map +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MediationRecipientApi = void 0;
|
|
16
|
+
const core_1 = require("@credo-ts/core");
|
|
17
|
+
const rxjs_1 = require("rxjs");
|
|
18
|
+
const operators_1 = require("rxjs/operators");
|
|
19
|
+
const DidCommModuleConfig_1 = require("../../DidCommModuleConfig");
|
|
20
|
+
const MessageHandlerRegistry_1 = require("../../MessageHandlerRegistry");
|
|
21
|
+
const MessageSender_1 = require("../../MessageSender");
|
|
22
|
+
const models_1 = require("../../models");
|
|
23
|
+
const transport_1 = require("../../transport");
|
|
24
|
+
const connections_1 = require("../connections");
|
|
25
|
+
const ConnectionMetadataTypes_1 = require("../connections/repository/ConnectionMetadataTypes");
|
|
26
|
+
const services_1 = require("../connections/services");
|
|
27
|
+
const discover_features_1 = require("../discover-features");
|
|
28
|
+
const MessagePickupApi_1 = require("../message-pickup/MessagePickupApi");
|
|
29
|
+
const v1_1 = require("../message-pickup/protocol/v1");
|
|
30
|
+
const v2_1 = require("../message-pickup/protocol/v2");
|
|
31
|
+
const oob_1 = require("../oob");
|
|
32
|
+
const MediationRecipientModuleConfig_1 = require("./MediationRecipientModuleConfig");
|
|
33
|
+
const MediatorPickupStrategy_1 = require("./MediatorPickupStrategy");
|
|
34
|
+
const RoutingEvents_1 = require("./RoutingEvents");
|
|
35
|
+
const KeylistUpdateResponseHandler_1 = require("./handlers/KeylistUpdateResponseHandler");
|
|
36
|
+
const MediationDenyHandler_1 = require("./handlers/MediationDenyHandler");
|
|
37
|
+
const MediationGrantHandler_1 = require("./handlers/MediationGrantHandler");
|
|
38
|
+
const messages_1 = require("./messages");
|
|
39
|
+
const MediationState_1 = require("./models/MediationState");
|
|
40
|
+
const repository_1 = require("./repository");
|
|
41
|
+
const MediationRecipientService_1 = require("./services/MediationRecipientService");
|
|
42
|
+
const RoutingService_1 = require("./services/RoutingService");
|
|
43
|
+
let MediationRecipientApi = class MediationRecipientApi {
|
|
44
|
+
constructor(messageHandlerRegistry, mediationRecipientService, connectionService, dids, messageSender, eventEmitter, discoverFeaturesApi, messagePickupApi, mediationRepository, routingService, logger, agentContext, stop$, mediationRecipientModuleConfig) {
|
|
45
|
+
// stopMessagePickup$ is used for stop message pickup signal
|
|
46
|
+
this.stopMessagePickup$ = new rxjs_1.Subject();
|
|
47
|
+
this.connectionService = connectionService;
|
|
48
|
+
this.dids = dids;
|
|
49
|
+
this.mediationRecipientService = mediationRecipientService;
|
|
50
|
+
this.messageSender = messageSender;
|
|
51
|
+
this.eventEmitter = eventEmitter;
|
|
52
|
+
this.logger = logger;
|
|
53
|
+
this.discoverFeaturesApi = discoverFeaturesApi;
|
|
54
|
+
this.messagePickupApi = messagePickupApi;
|
|
55
|
+
this.mediationRepository = mediationRepository;
|
|
56
|
+
this.routingService = routingService;
|
|
57
|
+
this.agentContext = agentContext;
|
|
58
|
+
this.stop$ = stop$;
|
|
59
|
+
this.config = mediationRecipientModuleConfig;
|
|
60
|
+
this.registerMessageHandlers(messageHandlerRegistry);
|
|
61
|
+
}
|
|
62
|
+
async initialize() {
|
|
63
|
+
// Connect to mediator through provided invitation if provided in config
|
|
64
|
+
// Also requests mediation ans sets as default mediator
|
|
65
|
+
// Because this requires the connections module, we do this in the agent constructor
|
|
66
|
+
if (this.config.mediatorInvitationUrl) {
|
|
67
|
+
this.agentContext.config.logger.debug('Provision mediation with invitation', {
|
|
68
|
+
mediatorInvitationUrl: this.config.mediatorInvitationUrl,
|
|
69
|
+
});
|
|
70
|
+
const mediationConnection = await this.getMediationConnection(this.config.mediatorInvitationUrl);
|
|
71
|
+
await this.provision(mediationConnection);
|
|
72
|
+
}
|
|
73
|
+
// Poll for messages from mediator
|
|
74
|
+
const defaultMediator = await this.findDefaultMediator();
|
|
75
|
+
if (defaultMediator) {
|
|
76
|
+
this.initiateMessagePickup(defaultMediator).catch((error) => {
|
|
77
|
+
this.logger.warn(`Error initiating message pickup with mediator ${defaultMediator.id}`, { error });
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async sendMessage(outboundMessageContext, pickupStrategy) {
|
|
82
|
+
const mediatorPickupStrategy = pickupStrategy ?? this.config.mediatorPickupStrategy;
|
|
83
|
+
const transportPriority = mediatorPickupStrategy === MediatorPickupStrategy_1.MediatorPickupStrategy.Implicit
|
|
84
|
+
? { schemes: ['wss', 'ws'], restrictive: true }
|
|
85
|
+
: undefined;
|
|
86
|
+
await this.messageSender.sendMessage(outboundMessageContext, {
|
|
87
|
+
transportPriority,
|
|
88
|
+
// TODO: add keepAlive: true to enforce through the public api
|
|
89
|
+
// we need to keep the socket alive. It already works this way, but would
|
|
90
|
+
// be good to make more explicit from the public facing API.
|
|
91
|
+
// This would also make it easier to change the internal API later on.
|
|
92
|
+
// keepAlive: true,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Implicit mode consists simply on initiating a long-lived session to a mediator and wait for the
|
|
97
|
+
* messages to arrive automatically.
|
|
98
|
+
*
|
|
99
|
+
* In order to do initiate this session, we open a suitable connection (using WebSocket transport) and
|
|
100
|
+
* send a Trust Ping message.
|
|
101
|
+
*
|
|
102
|
+
* @param mediator
|
|
103
|
+
*/
|
|
104
|
+
async initiateImplicitMode(mediator) {
|
|
105
|
+
const connection = await this.connectionService.getById(this.agentContext, mediator.connectionId);
|
|
106
|
+
const { message, connectionRecord } = await this.connectionService.createTrustPing(this.agentContext, connection, {
|
|
107
|
+
responseRequested: false,
|
|
108
|
+
});
|
|
109
|
+
const websocketSchemes = ['ws', 'wss'];
|
|
110
|
+
const didDocument = connectionRecord.theirDid && (await this.dids.resolveDidDocument(connectionRecord.theirDid));
|
|
111
|
+
const services = didDocument && didDocument?.didCommServices;
|
|
112
|
+
const hasWebSocketTransport = services && services.some((s) => websocketSchemes.includes(s.protocolScheme));
|
|
113
|
+
if (!hasWebSocketTransport) {
|
|
114
|
+
throw new core_1.CredoError('Cannot open websocket to connection without websocket service endpoint');
|
|
115
|
+
}
|
|
116
|
+
await this.messageSender.sendMessage(new models_1.OutboundMessageContext(message, { agentContext: this.agentContext, connection: connectionRecord }), {
|
|
117
|
+
transportPriority: {
|
|
118
|
+
schemes: websocketSchemes,
|
|
119
|
+
restrictive: true,
|
|
120
|
+
// TODO: add keepAlive: true to enforce through the public api
|
|
121
|
+
// we need to keep the socket alive. It already works this way, but would
|
|
122
|
+
// be good to make more explicit from the public facing API.
|
|
123
|
+
// This would also make it easier to change the internal API later on.
|
|
124
|
+
// keepAlive: true,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Keep track of a persistent transport session with a mediator, trying to reconnect to it as
|
|
130
|
+
* soon as it is disconnected, using a recursive back-off strategy
|
|
131
|
+
*
|
|
132
|
+
* @param mediator mediation record
|
|
133
|
+
* @param pickupStrategy chosen pick up strategy (should be Implicit or PickUp in Live Mode)
|
|
134
|
+
*/
|
|
135
|
+
async monitorMediatorWebSocketEvents(mediator, pickupStrategy) {
|
|
136
|
+
const { baseMediatorReconnectionIntervalMs, maximumMediatorReconnectionIntervalMs } = this.config;
|
|
137
|
+
let interval = baseMediatorReconnectionIntervalMs;
|
|
138
|
+
const stopConditions$ = (0, rxjs_1.merge)(this.stop$, this.stopMessagePickup$).pipe();
|
|
139
|
+
// Reset back off interval when the websocket is successfully opened again
|
|
140
|
+
this.eventEmitter
|
|
141
|
+
.observable(transport_1.TransportEventTypes.OutboundWebSocketOpenedEvent)
|
|
142
|
+
.pipe(
|
|
143
|
+
// Stop when the agent shuts down or stop message pickup signal is received
|
|
144
|
+
(0, operators_1.takeUntil)(stopConditions$), (0, operators_1.filter)((e) => e.payload.connectionId === mediator.connectionId))
|
|
145
|
+
.subscribe(() => {
|
|
146
|
+
interval = baseMediatorReconnectionIntervalMs;
|
|
147
|
+
});
|
|
148
|
+
// FIXME: this won't work for tenant agents created by the tenants module as the agent context session
|
|
149
|
+
// could be closed. I'm not sure we want to support this as you probably don't want different tenants opening
|
|
150
|
+
// various websocket connections to mediators. However we should look at throwing an error or making sure
|
|
151
|
+
// it is not possible to use the mediation module with tenant agents.
|
|
152
|
+
// Listens to Outbound websocket closed events and will reopen the websocket connection
|
|
153
|
+
// in a recursive back off strategy if it matches the following criteria:
|
|
154
|
+
// - Agent is not shutdown
|
|
155
|
+
// - Socket was for current mediator connection id
|
|
156
|
+
this.eventEmitter
|
|
157
|
+
.observable(transport_1.TransportEventTypes.OutboundWebSocketClosedEvent)
|
|
158
|
+
.pipe(
|
|
159
|
+
// Stop when the agent shuts down or stop message pickup signal is received
|
|
160
|
+
(0, operators_1.takeUntil)(stopConditions$), (0, operators_1.filter)((e) => e.payload.connectionId === mediator.connectionId),
|
|
161
|
+
// Make sure we're not reconnecting multiple times
|
|
162
|
+
(0, operators_1.throttleTime)(interval),
|
|
163
|
+
// Wait for interval time before reconnecting
|
|
164
|
+
(0, operators_1.delayWhen)(() => (0, rxjs_1.timer)(interval)),
|
|
165
|
+
// Increase the interval (recursive back-off)
|
|
166
|
+
(0, operators_1.tap)(() => {
|
|
167
|
+
interval = Math.min(interval * 2, maximumMediatorReconnectionIntervalMs);
|
|
168
|
+
}))
|
|
169
|
+
.subscribe({
|
|
170
|
+
next: async () => {
|
|
171
|
+
this.logger.debug(`Websocket connection to mediator with connectionId '${mediator.connectionId}' is closed, attempting to reconnect...`);
|
|
172
|
+
try {
|
|
173
|
+
if (pickupStrategy === MediatorPickupStrategy_1.MediatorPickupStrategy.PickUpV2LiveMode) {
|
|
174
|
+
// Start Pickup v2 protocol in live mode (retrieve any queued message before)
|
|
175
|
+
await this.messagePickupApi.pickupMessages({
|
|
176
|
+
connectionId: mediator.connectionId,
|
|
177
|
+
protocolVersion: 'v2',
|
|
178
|
+
awaitCompletion: true,
|
|
179
|
+
});
|
|
180
|
+
await this.messagePickupApi.setLiveDeliveryMode({
|
|
181
|
+
connectionId: mediator.connectionId,
|
|
182
|
+
liveDelivery: true,
|
|
183
|
+
protocolVersion: 'v2',
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
await this.initiateImplicitMode(mediator);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
catch (error) {
|
|
191
|
+
this.logger.warn('Unable to re-open websocket connection to mediator', { error });
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
complete: () => this.logger.info(`Stopping pickup of messages from mediator '${mediator.id}'`),
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Start a Message Pickup flow with a registered Mediator.
|
|
199
|
+
*
|
|
200
|
+
* @param mediator optional {MediationRecord} corresponding to the mediator to pick messages from. It will use
|
|
201
|
+
* default mediator otherwise
|
|
202
|
+
* @param pickupStrategy optional {MediatorPickupStrategy} to use in the loop. It will use Agent's default
|
|
203
|
+
* strategy or attempt to find it by Discover Features otherwise
|
|
204
|
+
* @returns
|
|
205
|
+
*/
|
|
206
|
+
async initiateMessagePickup(mediator, pickupStrategy) {
|
|
207
|
+
const { mediatorPollingInterval } = this.config;
|
|
208
|
+
const mediatorRecord = mediator ?? (await this.findDefaultMediator());
|
|
209
|
+
if (!mediatorRecord) {
|
|
210
|
+
throw new core_1.CredoError('There is no mediator to pickup messages from');
|
|
211
|
+
}
|
|
212
|
+
const mediatorPickupStrategy = pickupStrategy ?? (await this.getPickupStrategyForMediator(mediatorRecord));
|
|
213
|
+
const mediatorConnection = await this.connectionService.getById(this.agentContext, mediatorRecord.connectionId);
|
|
214
|
+
switch (mediatorPickupStrategy) {
|
|
215
|
+
case MediatorPickupStrategy_1.MediatorPickupStrategy.PickUpV1:
|
|
216
|
+
case MediatorPickupStrategy_1.MediatorPickupStrategy.PickUpV2: {
|
|
217
|
+
const stopConditions$ = (0, rxjs_1.merge)(this.stop$, this.stopMessagePickup$).pipe();
|
|
218
|
+
// PickUpV1/PickUpV2 means polling every X seconds with batch message
|
|
219
|
+
const protocolVersion = mediatorPickupStrategy === MediatorPickupStrategy_1.MediatorPickupStrategy.PickUpV2 ? 'v2' : 'v1';
|
|
220
|
+
this.logger.info(`Starting explicit pickup of messages from mediator '${mediatorRecord.id}' using ${protocolVersion}`);
|
|
221
|
+
const subscription = (0, rxjs_1.interval)(mediatorPollingInterval)
|
|
222
|
+
.pipe((0, operators_1.takeUntil)(stopConditions$))
|
|
223
|
+
.subscribe({
|
|
224
|
+
next: async () => {
|
|
225
|
+
await this.messagePickupApi.pickupMessages({
|
|
226
|
+
connectionId: mediatorConnection.id,
|
|
227
|
+
batchSize: this.config.maximumMessagePickup,
|
|
228
|
+
protocolVersion,
|
|
229
|
+
});
|
|
230
|
+
},
|
|
231
|
+
complete: () => this.logger.info(`Stopping pickup of messages from mediator '${mediatorRecord.id}'`),
|
|
232
|
+
});
|
|
233
|
+
return subscription;
|
|
234
|
+
}
|
|
235
|
+
case MediatorPickupStrategy_1.MediatorPickupStrategy.PickUpV2LiveMode:
|
|
236
|
+
// PickUp V2 in Live Mode will retrieve queued messages and then set up live delivery mode
|
|
237
|
+
this.logger.info(`Starting Live Mode pickup of messages from mediator '${mediatorRecord.id}'`);
|
|
238
|
+
await this.monitorMediatorWebSocketEvents(mediatorRecord, mediatorPickupStrategy);
|
|
239
|
+
await this.messagePickupApi.pickupMessages({
|
|
240
|
+
connectionId: mediatorConnection.id,
|
|
241
|
+
protocolVersion: 'v2',
|
|
242
|
+
awaitCompletion: true,
|
|
243
|
+
});
|
|
244
|
+
await this.messagePickupApi.setLiveDeliveryMode({
|
|
245
|
+
connectionId: mediatorConnection.id,
|
|
246
|
+
liveDelivery: true,
|
|
247
|
+
protocolVersion: 'v2',
|
|
248
|
+
});
|
|
249
|
+
break;
|
|
250
|
+
case MediatorPickupStrategy_1.MediatorPickupStrategy.Implicit:
|
|
251
|
+
// Implicit means sending ping once and keeping connection open. This requires a long-lived transport
|
|
252
|
+
// such as WebSockets to work
|
|
253
|
+
this.logger.info(`Starting implicit pickup of messages from mediator '${mediatorRecord.id}'`);
|
|
254
|
+
await this.monitorMediatorWebSocketEvents(mediatorRecord, mediatorPickupStrategy);
|
|
255
|
+
await this.initiateImplicitMode(mediatorRecord);
|
|
256
|
+
break;
|
|
257
|
+
default:
|
|
258
|
+
this.logger.info(`Skipping pickup of messages from mediator '${mediatorRecord.id}' due to pickup strategy none`);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Terminate all ongoing Message Pickup loops
|
|
263
|
+
*/
|
|
264
|
+
async stopMessagePickup() {
|
|
265
|
+
this.stopMessagePickup$.next(true);
|
|
266
|
+
}
|
|
267
|
+
async getPickupStrategyForMediator(mediator) {
|
|
268
|
+
let mediatorPickupStrategy = mediator.pickupStrategy ?? this.config.mediatorPickupStrategy;
|
|
269
|
+
// If mediator pickup strategy is not configured we try to query if batch pickup
|
|
270
|
+
// is supported through the discover features protocol
|
|
271
|
+
if (!mediatorPickupStrategy) {
|
|
272
|
+
const discloseForPickupV2 = await this.discoverFeaturesApi.queryFeatures({
|
|
273
|
+
connectionId: mediator.connectionId,
|
|
274
|
+
protocolVersion: 'v1',
|
|
275
|
+
queries: [{ featureType: 'protocol', match: v2_1.V2StatusMessage.type.protocolUri }],
|
|
276
|
+
awaitDisclosures: true,
|
|
277
|
+
});
|
|
278
|
+
if (discloseForPickupV2.features?.find((item) => item.id === v2_1.V2StatusMessage.type.protocolUri)) {
|
|
279
|
+
mediatorPickupStrategy = MediatorPickupStrategy_1.MediatorPickupStrategy.PickUpV2;
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
const discloseForPickupV1 = await this.discoverFeaturesApi.queryFeatures({
|
|
283
|
+
connectionId: mediator.connectionId,
|
|
284
|
+
protocolVersion: 'v1',
|
|
285
|
+
queries: [{ featureType: 'protocol', match: v1_1.V1BatchPickupMessage.type.protocolUri }],
|
|
286
|
+
awaitDisclosures: true,
|
|
287
|
+
});
|
|
288
|
+
// Use explicit pickup strategy
|
|
289
|
+
mediatorPickupStrategy = discloseForPickupV1.features?.find((item) => item.id === v1_1.V1BatchPickupMessage.type.protocolUri)
|
|
290
|
+
? MediatorPickupStrategy_1.MediatorPickupStrategy.PickUpV1
|
|
291
|
+
: MediatorPickupStrategy_1.MediatorPickupStrategy.Implicit;
|
|
292
|
+
}
|
|
293
|
+
// Store the result so it can be reused next time
|
|
294
|
+
mediator.pickupStrategy = mediatorPickupStrategy;
|
|
295
|
+
await this.mediationRepository.update(this.agentContext, mediator);
|
|
296
|
+
}
|
|
297
|
+
return mediatorPickupStrategy;
|
|
298
|
+
}
|
|
299
|
+
async discoverMediation() {
|
|
300
|
+
return this.mediationRecipientService.discoverMediation(this.agentContext);
|
|
301
|
+
}
|
|
302
|
+
async setDefaultMediator(mediatorRecord) {
|
|
303
|
+
return this.mediationRecipientService.setDefaultMediator(this.agentContext, mediatorRecord);
|
|
304
|
+
}
|
|
305
|
+
async requestMediation(connection) {
|
|
306
|
+
const { mediationRecord, message } = await this.mediationRecipientService.createRequest(this.agentContext, connection);
|
|
307
|
+
const outboundMessage = new models_1.OutboundMessageContext(message, {
|
|
308
|
+
agentContext: this.agentContext,
|
|
309
|
+
connection: connection,
|
|
310
|
+
});
|
|
311
|
+
await this.sendMessage(outboundMessage);
|
|
312
|
+
return mediationRecord;
|
|
313
|
+
}
|
|
314
|
+
async notifyKeylistUpdate(connection, verkey, action) {
|
|
315
|
+
// Use our useDidKey configuration unless we know the key formatting other party is using
|
|
316
|
+
const didcommConfig = this.agentContext.dependencyManager.resolve(DidCommModuleConfig_1.DidCommModuleConfig);
|
|
317
|
+
let useDidKey = didcommConfig.useDidKeyInProtocols;
|
|
318
|
+
const useDidKeysConnectionMetadata = connection.metadata.get(ConnectionMetadataTypes_1.ConnectionMetadataKeys.UseDidKeysForProtocol);
|
|
319
|
+
if (useDidKeysConnectionMetadata) {
|
|
320
|
+
useDidKey = useDidKeysConnectionMetadata[messages_1.KeylistUpdateMessage.type.protocolUri] ?? useDidKey;
|
|
321
|
+
}
|
|
322
|
+
const message = this.mediationRecipientService.createKeylistUpdateMessage([
|
|
323
|
+
new messages_1.KeylistUpdate({
|
|
324
|
+
action: action ?? messages_1.KeylistUpdateAction.add,
|
|
325
|
+
recipientKey: useDidKey ? (0, core_1.verkeyToDidKey)(verkey) : verkey,
|
|
326
|
+
}),
|
|
327
|
+
]);
|
|
328
|
+
const outboundMessageContext = new models_1.OutboundMessageContext(message, {
|
|
329
|
+
agentContext: this.agentContext,
|
|
330
|
+
connection,
|
|
331
|
+
});
|
|
332
|
+
await this.sendMessage(outboundMessageContext);
|
|
333
|
+
}
|
|
334
|
+
async findByConnectionId(connectionId) {
|
|
335
|
+
return await this.mediationRecipientService.findByConnectionId(this.agentContext, connectionId);
|
|
336
|
+
}
|
|
337
|
+
async getMediators() {
|
|
338
|
+
return await this.mediationRecipientService.getMediators(this.agentContext);
|
|
339
|
+
}
|
|
340
|
+
async findDefaultMediator() {
|
|
341
|
+
return this.mediationRecipientService.findDefaultMediator(this.agentContext);
|
|
342
|
+
}
|
|
343
|
+
async findDefaultMediatorConnection() {
|
|
344
|
+
const mediatorRecord = await this.findDefaultMediator();
|
|
345
|
+
if (mediatorRecord) {
|
|
346
|
+
return this.connectionService.getById(this.agentContext, mediatorRecord.connectionId);
|
|
347
|
+
}
|
|
348
|
+
return null;
|
|
349
|
+
}
|
|
350
|
+
async requestAndAwaitGrant(connection, timeoutMs = 10000) {
|
|
351
|
+
const { mediationRecord, message } = await this.mediationRecipientService.createRequest(this.agentContext, connection);
|
|
352
|
+
// Create observable for event
|
|
353
|
+
const observable = this.eventEmitter.observable(RoutingEvents_1.RoutingEventTypes.MediationStateChanged);
|
|
354
|
+
const subject = new rxjs_1.ReplaySubject(1);
|
|
355
|
+
// Apply required filters to observable stream subscribe to replay subject
|
|
356
|
+
observable
|
|
357
|
+
.pipe((0, core_1.filterContextCorrelationId)(this.agentContext.contextCorrelationId),
|
|
358
|
+
// Only take event for current mediation record
|
|
359
|
+
(0, operators_1.filter)((event) => event.payload.mediationRecord.id === mediationRecord.id),
|
|
360
|
+
// Only take event for previous state requested, current state granted
|
|
361
|
+
(0, operators_1.filter)((event) => event.payload.previousState === MediationState_1.MediationState.Requested), (0, operators_1.filter)((event) => event.payload.mediationRecord.state === MediationState_1.MediationState.Granted),
|
|
362
|
+
// Only wait for first event that matches the criteria
|
|
363
|
+
(0, operators_1.first)(),
|
|
364
|
+
// Do not wait for longer than specified timeout
|
|
365
|
+
(0, operators_1.timeout)({
|
|
366
|
+
first: timeoutMs,
|
|
367
|
+
meta: 'MediationRecipientApi.requestAndAwaitGrant',
|
|
368
|
+
}))
|
|
369
|
+
.subscribe(subject);
|
|
370
|
+
// Send mediation request message
|
|
371
|
+
const outboundMessageContext = new models_1.OutboundMessageContext(message, {
|
|
372
|
+
agentContext: this.agentContext,
|
|
373
|
+
connection: connection,
|
|
374
|
+
associatedRecord: mediationRecord,
|
|
375
|
+
});
|
|
376
|
+
await this.sendMessage(outboundMessageContext);
|
|
377
|
+
const event = await (0, rxjs_1.firstValueFrom)(subject);
|
|
378
|
+
return event.payload.mediationRecord;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Requests mediation for a given connection and sets that as default mediator.
|
|
382
|
+
*
|
|
383
|
+
* @param connection connection record which will be used for mediation
|
|
384
|
+
* @returns mediation record
|
|
385
|
+
*/
|
|
386
|
+
async provision(connection) {
|
|
387
|
+
this.logger.debug('Connection completed, requesting mediation');
|
|
388
|
+
let mediation = await this.findByConnectionId(connection.id);
|
|
389
|
+
if (!mediation) {
|
|
390
|
+
this.logger.info(`Requesting mediation for connection ${connection.id}`);
|
|
391
|
+
mediation = await this.requestAndAwaitGrant(connection, 60000); // TODO: put timeout as a config parameter
|
|
392
|
+
this.logger.debug('Mediation granted, setting as default mediator');
|
|
393
|
+
await this.setDefaultMediator(mediation);
|
|
394
|
+
this.logger.debug('Default mediator set');
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
this.logger.debug(`Mediator invitation has already been ${mediation.isReady ? 'granted' : 'requested'}`);
|
|
398
|
+
}
|
|
399
|
+
return mediation;
|
|
400
|
+
}
|
|
401
|
+
async getRouting(options) {
|
|
402
|
+
return this.routingService.getRouting(this.agentContext, options);
|
|
403
|
+
}
|
|
404
|
+
// Register handlers for the several messages for the mediator.
|
|
405
|
+
registerMessageHandlers(messageHandlerRegistry) {
|
|
406
|
+
messageHandlerRegistry.registerMessageHandler(new KeylistUpdateResponseHandler_1.KeylistUpdateResponseHandler(this.mediationRecipientService));
|
|
407
|
+
messageHandlerRegistry.registerMessageHandler(new MediationGrantHandler_1.MediationGrantHandler(this.mediationRecipientService));
|
|
408
|
+
messageHandlerRegistry.registerMessageHandler(new MediationDenyHandler_1.MediationDenyHandler(this.mediationRecipientService));
|
|
409
|
+
//messageHandlerRegistry.registerMessageHandler(new KeylistListHandler(this.mediationRecipientService)) // TODO: write this
|
|
410
|
+
}
|
|
411
|
+
async getMediationConnection(mediatorInvitationUrl) {
|
|
412
|
+
const connectionsApi = this.agentContext.dependencyManager.resolve(connections_1.ConnectionsApi);
|
|
413
|
+
const oobApi = this.agentContext.dependencyManager.resolve(oob_1.OutOfBandApi);
|
|
414
|
+
const outOfBandInvitation = await oobApi.parseInvitation(mediatorInvitationUrl);
|
|
415
|
+
const outOfBandRecord = await oobApi.findByReceivedInvitationId(outOfBandInvitation.id);
|
|
416
|
+
const [connection] = outOfBandRecord ? await connectionsApi.findAllByOutOfBandId(outOfBandRecord.id) : [];
|
|
417
|
+
if (!connection) {
|
|
418
|
+
this.agentContext.config.logger.debug('Mediation connection does not exist, creating connection');
|
|
419
|
+
// We don't want to use the current default mediator when connecting to another mediator
|
|
420
|
+
const routing = await this.getRouting({ useDefaultMediator: false });
|
|
421
|
+
this.agentContext.config.logger.debug('Routing created', routing);
|
|
422
|
+
const { connectionRecord: newConnection } = await oobApi.receiveInvitation(outOfBandInvitation, {
|
|
423
|
+
routing,
|
|
424
|
+
});
|
|
425
|
+
this.agentContext.config.logger.debug(`Mediation invitation processed`, { outOfBandInvitation });
|
|
426
|
+
if (!newConnection) {
|
|
427
|
+
throw new core_1.CredoError('No connection record to provision mediation.');
|
|
428
|
+
}
|
|
429
|
+
return connectionsApi.returnWhenIsConnected(newConnection.id);
|
|
430
|
+
}
|
|
431
|
+
if (!connection.isReady) {
|
|
432
|
+
return connectionsApi.returnWhenIsConnected(connection.id);
|
|
433
|
+
}
|
|
434
|
+
return connection;
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
exports.MediationRecipientApi = MediationRecipientApi;
|
|
438
|
+
exports.MediationRecipientApi = MediationRecipientApi = __decorate([
|
|
439
|
+
(0, core_1.injectable)(),
|
|
440
|
+
__param(10, (0, core_1.inject)(core_1.InjectionSymbols.Logger)),
|
|
441
|
+
__param(12, (0, core_1.inject)(core_1.InjectionSymbols.Stop$)),
|
|
442
|
+
__metadata("design:paramtypes", [MessageHandlerRegistry_1.MessageHandlerRegistry,
|
|
443
|
+
MediationRecipientService_1.MediationRecipientService,
|
|
444
|
+
services_1.ConnectionService,
|
|
445
|
+
core_1.DidsApi,
|
|
446
|
+
MessageSender_1.MessageSender,
|
|
447
|
+
core_1.EventEmitter,
|
|
448
|
+
discover_features_1.DiscoverFeaturesApi,
|
|
449
|
+
MessagePickupApi_1.MessagePickupApi,
|
|
450
|
+
repository_1.MediationRepository,
|
|
451
|
+
RoutingService_1.RoutingService, Object, core_1.AgentContext,
|
|
452
|
+
rxjs_1.Subject,
|
|
453
|
+
MediationRecipientModuleConfig_1.MediationRecipientModuleConfig])
|
|
454
|
+
], MediationRecipientApi);
|
|
455
|
+
//# sourceMappingURL=MediationRecipientApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediationRecipientApi.js","sourceRoot":"","sources":["../../../src/modules/routing/MediationRecipientApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAMA,yCAWuB;AACvB,+BAAqF;AACrF,8CAAgG;AAEhG,mEAA+D;AAC/D,yEAAqE;AACrE,uDAAmD;AACnD,yCAAqD;AACrD,+CAAqD;AACrD,gDAA+C;AAC/C,+FAA0F;AAC1F,sDAA2D;AAC3D,4DAA0D;AAC1D,yEAAqE;AACrE,sDAAoE;AACpE,sDAA+D;AAC/D,gCAAqC;AAErC,qFAAiF;AACjF,qEAAiE;AACjE,mDAAmD;AACnD,0FAAsF;AACtF,0EAAsE;AACtE,4EAAwE;AACxE,yCAAqF;AACrF,4DAAwD;AACxD,6CAAkD;AAClD,oFAAgF;AAChF,8DAA0D;AAGnD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAmBhC,YACE,sBAA8C,EAC9C,yBAAoD,EACpD,iBAAoC,EACpC,IAAa,EACb,aAA4B,EAC5B,YAA0B,EAC1B,mBAAwC,EACxC,gBAAkC,EAClC,mBAAwC,EACxC,cAA8B,EACG,MAAc,EAC/C,YAA0B,EACM,KAAuB,EACvD,8BAA8D;QAjBhE,4DAA4D;QAC3C,uBAAkB,GAAG,IAAI,cAAO,EAAW,CAAA;QAkB1D,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAA;QAC1D,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAA;QAC9C,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,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,mCAAgB;QACb,gCAAmB;QACxB,+BAAc,UAEhB,mBAAY;QACa,cAAO;QACd,+DAA8B;GAjCrD,qBAAqB,CAsfjC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MediationRecipientModuleConfigOptions } from './MediationRecipientModuleConfig';
|
|
2
|
+
import type { AgentContext, DependencyManager, Module } from '@credo-ts/core';
|
|
3
|
+
import { MediationRecipientApi } from './MediationRecipientApi';
|
|
4
|
+
import { MediationRecipientModuleConfig } from './MediationRecipientModuleConfig';
|
|
5
|
+
export declare class MediationRecipientModule implements Module {
|
|
6
|
+
readonly config: MediationRecipientModuleConfig;
|
|
7
|
+
readonly api: typeof MediationRecipientApi;
|
|
8
|
+
constructor(config?: MediationRecipientModuleConfigOptions);
|
|
9
|
+
/**
|
|
10
|
+
* Registers the dependencies of the mediator recipient module on the dependency manager.
|
|
11
|
+
*/
|
|
12
|
+
register(dependencyManager: DependencyManager): void;
|
|
13
|
+
initialize(agentContext: AgentContext): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MediationRecipientModule = void 0;
|
|
4
|
+
const FeatureRegistry_1 = require("../../FeatureRegistry");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
const MediationRecipientApi_1 = require("./MediationRecipientApi");
|
|
7
|
+
const MediationRecipientModuleConfig_1 = require("./MediationRecipientModuleConfig");
|
|
8
|
+
const models_2 = require("./models");
|
|
9
|
+
const repository_1 = require("./repository");
|
|
10
|
+
const services_1 = require("./services");
|
|
11
|
+
class MediationRecipientModule {
|
|
12
|
+
constructor(config) {
|
|
13
|
+
this.api = MediationRecipientApi_1.MediationRecipientApi;
|
|
14
|
+
this.config = new MediationRecipientModuleConfig_1.MediationRecipientModuleConfig(config);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Registers the dependencies of the mediator recipient module on the dependency manager.
|
|
18
|
+
*/
|
|
19
|
+
register(dependencyManager) {
|
|
20
|
+
// Config
|
|
21
|
+
dependencyManager.registerInstance(MediationRecipientModuleConfig_1.MediationRecipientModuleConfig, this.config);
|
|
22
|
+
// Services
|
|
23
|
+
dependencyManager.registerSingleton(services_1.MediationRecipientService);
|
|
24
|
+
dependencyManager.registerSingleton(services_1.RoutingService);
|
|
25
|
+
// Repositories
|
|
26
|
+
dependencyManager.registerSingleton(repository_1.MediationRepository);
|
|
27
|
+
}
|
|
28
|
+
async initialize(agentContext) {
|
|
29
|
+
const featureRegistry = agentContext.dependencyManager.resolve(FeatureRegistry_1.FeatureRegistry);
|
|
30
|
+
featureRegistry.register(new models_1.Protocol({
|
|
31
|
+
id: 'https://didcomm.org/coordinate-mediation/1.0',
|
|
32
|
+
roles: [models_2.MediationRole.Recipient],
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.MediationRecipientModule = MediationRecipientModule;
|
|
37
|
+
//# sourceMappingURL=MediationRecipientModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediationRecipientModule.js","sourceRoot":"","sources":["../../../src/modules/routing/MediationRecipientModule.ts"],"names":[],"mappings":";;;AAGA,2DAAuD;AACvD,yCAAuC;AAEvC,mEAA+D;AAC/D,qFAAiF;AACjF,qCAAwC;AACxC,6CAAkD;AAClD,yCAAsE;AAEtE,MAAa,wBAAwB;IAInC,YAAmB,MAA8C;QAFjD,QAAG,GAAG,6CAAqB,CAAA;QAGzC,IAAI,CAAC,MAAM,GAAG,IAAI,+DAA8B,CAAC,MAAM,CAAC,CAAA;IAC1D,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC;QAClD,SAAS;QACT,iBAAiB,CAAC,gBAAgB,CAAC,+DAA8B,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAE/E,WAAW;QACX,iBAAiB,CAAC,iBAAiB,CAAC,oCAAyB,CAAC,CAAA;QAC9D,iBAAiB,CAAC,iBAAiB,CAAC,yBAAc,CAAC,CAAA;QAEnD,eAAe;QACf,iBAAiB,CAAC,iBAAiB,CAAC,gCAAmB,CAAC,CAAA;IAC1D,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,YAA0B;QAChD,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,OAAO,CAAC,iCAAe,CAAC,CAAA;QAE/E,eAAe,CAAC,QAAQ,CACtB,IAAI,iBAAQ,CAAC;YACX,EAAE,EAAE,8CAA8C;YAClD,KAAK,EAAE,CAAC,sBAAa,CAAC,SAAS,CAAC;SACjC,CAAC,CACH,CAAA;IACH,CAAC;CACF;AAjCD,4DAiCC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { MediatorPickupStrategy } from './MediatorPickupStrategy';
|
|
2
|
+
/**
|
|
3
|
+
* MediationRecipientModuleConfigOptions defines the interface for the options of the MediationRecipientModuleConfig class.
|
|
4
|
+
* This can contain optional parameters that have default values in the config class itself.
|
|
5
|
+
*/
|
|
6
|
+
export interface MediationRecipientModuleConfigOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Strategy to use for picking up messages from the mediator. If no strategy is provided, the agent will use the discover
|
|
9
|
+
* features protocol to determine the best strategy.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* - `MediatorPickupStrategy.PickUpV1` - explicitly pick up messages from the mediator in periodic loops according to [RFC 0212 Pickup Protocol](https://github.com/hyperledger/aries-rfcs/blob/main/features/0212-pickup/README.md)
|
|
13
|
+
* - `MediatorPickupStrategy.PickUpV2` - pick up messages from the mediator in periodic loops according to [RFC 0685 Pickup V2 Protocol](https://github.com/hyperledger/aries-rfcs/tree/main/features/0685-pickup-v2/README.md).
|
|
14
|
+
* - `MediatorPickupStrategy.PickUpV2LiveMode` - pick up messages from the mediator using Live Mode as specified in [RFC 0685 Pickup V2 Protocol](https://github.com/hyperledger/aries-rfcs/tree/main/features/0685-pickup-v2/README.md).
|
|
15
|
+
* - `MediatorPickupStrategy.Implicit` - Open a WebSocket with the mediator to implicitly receive messages. (currently used by Aries Cloud Agent Python)
|
|
16
|
+
* - `MediatorPickupStrategy.None` - Do not retrieve messages from the mediator automatically. You can launch manual pickup flows afterwards.
|
|
17
|
+
*
|
|
18
|
+
* @default undefined
|
|
19
|
+
*/
|
|
20
|
+
mediatorPickupStrategy?: MediatorPickupStrategy;
|
|
21
|
+
/**
|
|
22
|
+
* Interval in milliseconds between picking up message from the mediator. This is only applicable when the pickup protocol v1 or v2 in polling mode
|
|
23
|
+
* are used.
|
|
24
|
+
*
|
|
25
|
+
* @default 5000
|
|
26
|
+
*/
|
|
27
|
+
mediatorPollingInterval?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Maximum number of messages to retrieve from the mediator in a single batch. This is applicable for both pickup protocol v1 and v2
|
|
30
|
+
* is used.
|
|
31
|
+
*
|
|
32
|
+
* @default 10
|
|
33
|
+
*/
|
|
34
|
+
maximumMessagePickup?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Initial interval in milliseconds between reconnection attempts when losing connection with the mediator. This value is doubled after
|
|
37
|
+
* each retry, resulting in an exponential backoff strategy.
|
|
38
|
+
*
|
|
39
|
+
* For instance, if maximumMediatorReconnectionIntervalMs is b, the agent will attempt to reconnect after b, 2*b, 4*b, 8*b, 16*b, ... ms.
|
|
40
|
+
*
|
|
41
|
+
* This is only applicable when pickup protocol v2 or implicit pickup is used.
|
|
42
|
+
*
|
|
43
|
+
* @default 100
|
|
44
|
+
*/
|
|
45
|
+
baseMediatorReconnectionIntervalMs?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Maximum interval in milliseconds between reconnection attempts when losing connection with the mediator.
|
|
48
|
+
*
|
|
49
|
+
* For instance, if maximumMediatorReconnectionIntervalMs is set to 1000 and maximumMediatorReconnectionIntervalMs is set to 10000,
|
|
50
|
+
* the agent will attempt to reconnect after 1000, 2000, 4000, 8000, 10000, ..., 10000 ms.
|
|
51
|
+
*
|
|
52
|
+
* This is only applicable when pickup protocol v2 or implicit pickup is used.
|
|
53
|
+
* @default Number.POSITIVE_INFINITY
|
|
54
|
+
*/
|
|
55
|
+
maximumMediatorReconnectionIntervalMs?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Invitation url for connection to a mediator. If provided, a connection to the mediator will be made, and the mediator will be set as default.
|
|
58
|
+
* This is meant as the simplest form of connecting to a mediator, if more control is desired the api should be used.
|
|
59
|
+
*
|
|
60
|
+
* Supports both RFC 0434 Out Of Band v1 and RFC 0160 Connections v1 invitations.
|
|
61
|
+
*/
|
|
62
|
+
mediatorInvitationUrl?: string;
|
|
63
|
+
}
|
|
64
|
+
export declare class MediationRecipientModuleConfig {
|
|
65
|
+
private options;
|
|
66
|
+
constructor(options?: MediationRecipientModuleConfigOptions);
|
|
67
|
+
/** See {@link MediationRecipientModuleConfigOptions.mediatorPollingInterval} */
|
|
68
|
+
get mediatorPollingInterval(): number;
|
|
69
|
+
/** See {@link MediationRecipientModuleConfigOptions.mediatorPickupStrategy} */
|
|
70
|
+
get mediatorPickupStrategy(): MediatorPickupStrategy | undefined;
|
|
71
|
+
/** See {@link MediationRecipientModuleConfigOptions.maximumMessagePickup} */
|
|
72
|
+
get maximumMessagePickup(): number;
|
|
73
|
+
/** See {@link MediationRecipientModuleConfigOptions.baseMediatorReconnectionIntervalMs} */
|
|
74
|
+
get baseMediatorReconnectionIntervalMs(): number;
|
|
75
|
+
/** See {@link MediationRecipientModuleConfigOptions.maximumMediatorReconnectionIntervalMs} */
|
|
76
|
+
get maximumMediatorReconnectionIntervalMs(): number;
|
|
77
|
+
/** See {@link MediationRecipientModuleConfigOptions.mediatorInvitationUrl} */
|
|
78
|
+
get mediatorInvitationUrl(): string | undefined;
|
|
79
|
+
}
|