@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,363 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CredentialFormatCoordinator = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
const repository_1 = require("../../../../repository");
|
|
6
|
+
const messages_1 = require("./messages");
|
|
7
|
+
class CredentialFormatCoordinator {
|
|
8
|
+
/**
|
|
9
|
+
* Create a {@link V2ProposeCredentialMessage}.
|
|
10
|
+
*
|
|
11
|
+
* @param options
|
|
12
|
+
* @returns The created {@link V2ProposeCredentialMessage}
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
async createProposal(agentContext, { credentialFormats, formatServices, credentialRecord, comment, goalCode, goal, }) {
|
|
16
|
+
const didCommMessageRepository = agentContext.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
17
|
+
// create message. there are two arrays in each message, one for formats the other for attachments
|
|
18
|
+
const formats = [];
|
|
19
|
+
const proposalAttachments = [];
|
|
20
|
+
let credentialPreview;
|
|
21
|
+
for (const formatService of formatServices) {
|
|
22
|
+
const { format, attachment, previewAttributes } = await formatService.createProposal(agentContext, {
|
|
23
|
+
credentialFormats,
|
|
24
|
+
credentialRecord,
|
|
25
|
+
});
|
|
26
|
+
if (previewAttributes) {
|
|
27
|
+
credentialPreview = new messages_1.V2CredentialPreview({
|
|
28
|
+
attributes: previewAttributes,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
proposalAttachments.push(attachment);
|
|
32
|
+
formats.push(format);
|
|
33
|
+
}
|
|
34
|
+
credentialRecord.credentialAttributes = credentialPreview?.attributes;
|
|
35
|
+
const message = new messages_1.V2ProposeCredentialMessage({
|
|
36
|
+
id: credentialRecord.threadId,
|
|
37
|
+
formats,
|
|
38
|
+
proposalAttachments,
|
|
39
|
+
comment,
|
|
40
|
+
credentialPreview,
|
|
41
|
+
goalCode,
|
|
42
|
+
goal,
|
|
43
|
+
});
|
|
44
|
+
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
45
|
+
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
46
|
+
agentMessage: message,
|
|
47
|
+
role: repository_1.DidCommMessageRole.Sender,
|
|
48
|
+
associatedRecordId: credentialRecord.id,
|
|
49
|
+
});
|
|
50
|
+
return message;
|
|
51
|
+
}
|
|
52
|
+
async processProposal(agentContext, { credentialRecord, message, formatServices, }) {
|
|
53
|
+
const didCommMessageRepository = agentContext.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
54
|
+
for (const formatService of formatServices) {
|
|
55
|
+
const attachment = this.getAttachmentForService(formatService, message.formats, message.proposalAttachments);
|
|
56
|
+
await formatService.processProposal(agentContext, {
|
|
57
|
+
attachment,
|
|
58
|
+
credentialRecord,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
62
|
+
agentMessage: message,
|
|
63
|
+
role: repository_1.DidCommMessageRole.Receiver,
|
|
64
|
+
associatedRecordId: credentialRecord.id,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
async acceptProposal(agentContext, { credentialRecord, credentialFormats, formatServices, comment, goalCode, goal, }) {
|
|
68
|
+
const didCommMessageRepository = agentContext.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
69
|
+
// create message. there are two arrays in each message, one for formats the other for attachments
|
|
70
|
+
const formats = [];
|
|
71
|
+
const offerAttachments = [];
|
|
72
|
+
let credentialPreview;
|
|
73
|
+
const proposalMessage = await didCommMessageRepository.getAgentMessage(agentContext, {
|
|
74
|
+
associatedRecordId: credentialRecord.id,
|
|
75
|
+
messageClass: messages_1.V2ProposeCredentialMessage,
|
|
76
|
+
role: repository_1.DidCommMessageRole.Receiver,
|
|
77
|
+
});
|
|
78
|
+
// NOTE: We set the credential attributes from the proposal on the record as we've 'accepted' them
|
|
79
|
+
// and can now use them to create the offer in the format services. It may be overwritten later on
|
|
80
|
+
// if the user provided other attributes in the credentialFormats array.
|
|
81
|
+
credentialRecord.credentialAttributes = proposalMessage.credentialPreview?.attributes;
|
|
82
|
+
for (const formatService of formatServices) {
|
|
83
|
+
const proposalAttachment = this.getAttachmentForService(formatService, proposalMessage.formats, proposalMessage.proposalAttachments);
|
|
84
|
+
const { attachment, format, previewAttributes } = await formatService.acceptProposal(agentContext, {
|
|
85
|
+
credentialRecord,
|
|
86
|
+
credentialFormats,
|
|
87
|
+
proposalAttachment,
|
|
88
|
+
});
|
|
89
|
+
if (previewAttributes) {
|
|
90
|
+
credentialPreview = new messages_1.V2CredentialPreview({
|
|
91
|
+
attributes: previewAttributes,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
offerAttachments.push(attachment);
|
|
95
|
+
formats.push(format);
|
|
96
|
+
}
|
|
97
|
+
credentialRecord.credentialAttributes = credentialPreview?.attributes;
|
|
98
|
+
if (!credentialPreview) {
|
|
99
|
+
// If no preview attributes were provided, use a blank preview. Not all formats use this object
|
|
100
|
+
// but it is required by the protocol
|
|
101
|
+
credentialPreview = new messages_1.V2CredentialPreview({
|
|
102
|
+
attributes: [],
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
const message = new messages_1.V2OfferCredentialMessage({
|
|
106
|
+
formats,
|
|
107
|
+
credentialPreview,
|
|
108
|
+
offerAttachments,
|
|
109
|
+
comment,
|
|
110
|
+
goalCode,
|
|
111
|
+
goal,
|
|
112
|
+
});
|
|
113
|
+
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
114
|
+
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
115
|
+
agentMessage: message,
|
|
116
|
+
associatedRecordId: credentialRecord.id,
|
|
117
|
+
role: repository_1.DidCommMessageRole.Sender,
|
|
118
|
+
});
|
|
119
|
+
return message;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Create a {@link V2OfferCredentialMessage}.
|
|
123
|
+
*
|
|
124
|
+
* @param options
|
|
125
|
+
* @returns The created {@link V2OfferCredentialMessage}
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
async createOffer(agentContext, { credentialFormats, formatServices, credentialRecord, comment, goalCode, goal, }) {
|
|
129
|
+
const didCommMessageRepository = agentContext.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
130
|
+
// create message. there are two arrays in each message, one for formats the other for attachments
|
|
131
|
+
const formats = [];
|
|
132
|
+
const offerAttachments = [];
|
|
133
|
+
let credentialPreview;
|
|
134
|
+
for (const formatService of formatServices) {
|
|
135
|
+
const { format, attachment, previewAttributes } = await formatService.createOffer(agentContext, {
|
|
136
|
+
credentialFormats,
|
|
137
|
+
credentialRecord,
|
|
138
|
+
});
|
|
139
|
+
if (previewAttributes) {
|
|
140
|
+
credentialPreview = new messages_1.V2CredentialPreview({
|
|
141
|
+
attributes: previewAttributes,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
offerAttachments.push(attachment);
|
|
145
|
+
formats.push(format);
|
|
146
|
+
}
|
|
147
|
+
credentialRecord.credentialAttributes = credentialPreview?.attributes;
|
|
148
|
+
if (!credentialPreview) {
|
|
149
|
+
// If no preview attributes were provided, use a blank preview. Not all formats use this object
|
|
150
|
+
// but it is required by the protocol
|
|
151
|
+
credentialPreview = new messages_1.V2CredentialPreview({
|
|
152
|
+
attributes: [],
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
const message = new messages_1.V2OfferCredentialMessage({
|
|
156
|
+
formats,
|
|
157
|
+
comment,
|
|
158
|
+
goalCode,
|
|
159
|
+
goal,
|
|
160
|
+
offerAttachments,
|
|
161
|
+
credentialPreview,
|
|
162
|
+
});
|
|
163
|
+
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
164
|
+
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
165
|
+
agentMessage: message,
|
|
166
|
+
role: repository_1.DidCommMessageRole.Sender,
|
|
167
|
+
associatedRecordId: credentialRecord.id,
|
|
168
|
+
});
|
|
169
|
+
return message;
|
|
170
|
+
}
|
|
171
|
+
async processOffer(agentContext, { credentialRecord, message, formatServices, }) {
|
|
172
|
+
const didCommMessageRepository = agentContext.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
173
|
+
for (const formatService of formatServices) {
|
|
174
|
+
const attachment = this.getAttachmentForService(formatService, message.formats, message.offerAttachments);
|
|
175
|
+
await formatService.processOffer(agentContext, {
|
|
176
|
+
attachment,
|
|
177
|
+
credentialRecord,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
181
|
+
agentMessage: message,
|
|
182
|
+
role: repository_1.DidCommMessageRole.Receiver,
|
|
183
|
+
associatedRecordId: credentialRecord.id,
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
async acceptOffer(agentContext, { credentialRecord, credentialFormats, formatServices, comment, goalCode, goal, }) {
|
|
187
|
+
const didCommMessageRepository = agentContext.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
188
|
+
const offerMessage = await didCommMessageRepository.getAgentMessage(agentContext, {
|
|
189
|
+
associatedRecordId: credentialRecord.id,
|
|
190
|
+
messageClass: messages_1.V2OfferCredentialMessage,
|
|
191
|
+
role: repository_1.DidCommMessageRole.Receiver,
|
|
192
|
+
});
|
|
193
|
+
// create message. there are two arrays in each message, one for formats the other for attachments
|
|
194
|
+
const formats = [];
|
|
195
|
+
const requestAttachments = [];
|
|
196
|
+
const requestAppendAttachments = [];
|
|
197
|
+
for (const formatService of formatServices) {
|
|
198
|
+
const offerAttachment = this.getAttachmentForService(formatService, offerMessage.formats, offerMessage.offerAttachments);
|
|
199
|
+
const { attachment, format, appendAttachments } = await formatService.acceptOffer(agentContext, {
|
|
200
|
+
offerAttachment,
|
|
201
|
+
credentialRecord,
|
|
202
|
+
credentialFormats,
|
|
203
|
+
});
|
|
204
|
+
requestAttachments.push(attachment);
|
|
205
|
+
formats.push(format);
|
|
206
|
+
if (appendAttachments)
|
|
207
|
+
requestAppendAttachments.push(...appendAttachments);
|
|
208
|
+
}
|
|
209
|
+
credentialRecord.credentialAttributes = offerMessage.credentialPreview?.attributes;
|
|
210
|
+
const message = new messages_1.V2RequestCredentialMessage({
|
|
211
|
+
formats,
|
|
212
|
+
attachments: requestAppendAttachments,
|
|
213
|
+
requestAttachments: requestAttachments,
|
|
214
|
+
comment,
|
|
215
|
+
goalCode,
|
|
216
|
+
goal,
|
|
217
|
+
});
|
|
218
|
+
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
219
|
+
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
220
|
+
agentMessage: message,
|
|
221
|
+
associatedRecordId: credentialRecord.id,
|
|
222
|
+
role: repository_1.DidCommMessageRole.Sender,
|
|
223
|
+
});
|
|
224
|
+
return message;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Create a {@link V2RequestCredentialMessage}.
|
|
228
|
+
*
|
|
229
|
+
* @param options
|
|
230
|
+
* @returns The created {@link V2RequestCredentialMessage}
|
|
231
|
+
*
|
|
232
|
+
*/
|
|
233
|
+
async createRequest(agentContext, { credentialFormats, formatServices, credentialRecord, comment, goalCode, goal, }) {
|
|
234
|
+
const didCommMessageRepository = agentContext.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
235
|
+
// create message. there are two arrays in each message, one for formats the other for attachments
|
|
236
|
+
const formats = [];
|
|
237
|
+
const requestAttachments = [];
|
|
238
|
+
for (const formatService of formatServices) {
|
|
239
|
+
const { format, attachment } = await formatService.createRequest(agentContext, {
|
|
240
|
+
credentialFormats,
|
|
241
|
+
credentialRecord,
|
|
242
|
+
});
|
|
243
|
+
requestAttachments.push(attachment);
|
|
244
|
+
formats.push(format);
|
|
245
|
+
}
|
|
246
|
+
const message = new messages_1.V2RequestCredentialMessage({
|
|
247
|
+
formats,
|
|
248
|
+
comment,
|
|
249
|
+
goalCode,
|
|
250
|
+
goal,
|
|
251
|
+
requestAttachments: requestAttachments,
|
|
252
|
+
});
|
|
253
|
+
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
254
|
+
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
255
|
+
agentMessage: message,
|
|
256
|
+
role: repository_1.DidCommMessageRole.Sender,
|
|
257
|
+
associatedRecordId: credentialRecord.id,
|
|
258
|
+
});
|
|
259
|
+
return message;
|
|
260
|
+
}
|
|
261
|
+
async processRequest(agentContext, { credentialRecord, message, formatServices, }) {
|
|
262
|
+
const didCommMessageRepository = agentContext.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
263
|
+
for (const formatService of formatServices) {
|
|
264
|
+
const attachment = this.getAttachmentForService(formatService, message.formats, message.requestAttachments);
|
|
265
|
+
await formatService.processRequest(agentContext, {
|
|
266
|
+
attachment,
|
|
267
|
+
credentialRecord,
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
271
|
+
agentMessage: message,
|
|
272
|
+
role: repository_1.DidCommMessageRole.Receiver,
|
|
273
|
+
associatedRecordId: credentialRecord.id,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
async acceptRequest(agentContext, { credentialRecord, credentialFormats, formatServices, comment, goalCode, goal, }) {
|
|
277
|
+
const didCommMessageRepository = agentContext.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
278
|
+
const requestMessage = await didCommMessageRepository.getAgentMessage(agentContext, {
|
|
279
|
+
associatedRecordId: credentialRecord.id,
|
|
280
|
+
messageClass: messages_1.V2RequestCredentialMessage,
|
|
281
|
+
role: repository_1.DidCommMessageRole.Receiver,
|
|
282
|
+
});
|
|
283
|
+
const offerMessage = await didCommMessageRepository.findAgentMessage(agentContext, {
|
|
284
|
+
associatedRecordId: credentialRecord.id,
|
|
285
|
+
messageClass: messages_1.V2OfferCredentialMessage,
|
|
286
|
+
role: repository_1.DidCommMessageRole.Sender,
|
|
287
|
+
});
|
|
288
|
+
// create message. there are two arrays in each message, one for formats the other for attachments
|
|
289
|
+
const formats = [];
|
|
290
|
+
const credentialAttachments = [];
|
|
291
|
+
for (const formatService of formatServices) {
|
|
292
|
+
const requestAttachment = this.getAttachmentForService(formatService, requestMessage.formats, requestMessage.requestAttachments);
|
|
293
|
+
const offerAttachment = offerMessage
|
|
294
|
+
? this.getAttachmentForService(formatService, offerMessage.formats, offerMessage.offerAttachments)
|
|
295
|
+
: undefined;
|
|
296
|
+
const { attachment, format } = await formatService.acceptRequest(agentContext, {
|
|
297
|
+
requestAttachment,
|
|
298
|
+
offerAttachment,
|
|
299
|
+
credentialRecord,
|
|
300
|
+
credentialFormats,
|
|
301
|
+
requestAppendAttachments: requestMessage.appendedAttachments,
|
|
302
|
+
});
|
|
303
|
+
credentialAttachments.push(attachment);
|
|
304
|
+
formats.push(format);
|
|
305
|
+
}
|
|
306
|
+
const message = new messages_1.V2IssueCredentialMessage({
|
|
307
|
+
formats,
|
|
308
|
+
credentialAttachments: credentialAttachments,
|
|
309
|
+
comment,
|
|
310
|
+
goalCode,
|
|
311
|
+
goal,
|
|
312
|
+
});
|
|
313
|
+
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
314
|
+
message.setPleaseAck();
|
|
315
|
+
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
316
|
+
agentMessage: message,
|
|
317
|
+
associatedRecordId: credentialRecord.id,
|
|
318
|
+
role: repository_1.DidCommMessageRole.Sender,
|
|
319
|
+
});
|
|
320
|
+
return message;
|
|
321
|
+
}
|
|
322
|
+
async processCredential(agentContext, { credentialRecord, message, requestMessage, formatServices, }) {
|
|
323
|
+
const didCommMessageRepository = agentContext.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
324
|
+
const offerMessage = await didCommMessageRepository.getAgentMessage(agentContext, {
|
|
325
|
+
associatedRecordId: credentialRecord.id,
|
|
326
|
+
messageClass: messages_1.V2OfferCredentialMessage,
|
|
327
|
+
role: repository_1.DidCommMessageRole.Receiver,
|
|
328
|
+
});
|
|
329
|
+
for (const formatService of formatServices) {
|
|
330
|
+
const offerAttachment = this.getAttachmentForService(formatService, offerMessage.formats, offerMessage.offerAttachments);
|
|
331
|
+
const attachment = this.getAttachmentForService(formatService, message.formats, message.credentialAttachments);
|
|
332
|
+
const requestAttachment = this.getAttachmentForService(formatService, requestMessage.formats, requestMessage.requestAttachments);
|
|
333
|
+
await formatService.processCredential(agentContext, {
|
|
334
|
+
attachment,
|
|
335
|
+
offerAttachment,
|
|
336
|
+
requestAttachment,
|
|
337
|
+
credentialRecord,
|
|
338
|
+
requestAppendAttachments: requestMessage.appendedAttachments,
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
342
|
+
agentMessage: message,
|
|
343
|
+
role: repository_1.DidCommMessageRole.Receiver,
|
|
344
|
+
associatedRecordId: credentialRecord.id,
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
getAttachmentForService(credentialFormatService, formats, attachments) {
|
|
348
|
+
const attachmentId = this.getAttachmentIdForService(credentialFormatService, formats);
|
|
349
|
+
const attachment = attachments.find((attachment) => attachment.id === attachmentId);
|
|
350
|
+
if (!attachment) {
|
|
351
|
+
throw new core_1.CredoError(`Attachment with id ${attachmentId} not found in attachments.`);
|
|
352
|
+
}
|
|
353
|
+
return attachment;
|
|
354
|
+
}
|
|
355
|
+
getAttachmentIdForService(credentialFormatService, formats) {
|
|
356
|
+
const format = formats.find((format) => credentialFormatService.supportsFormat(format.format));
|
|
357
|
+
if (!format)
|
|
358
|
+
throw new core_1.CredoError(`No attachment found for service ${credentialFormatService.formatKey}`);
|
|
359
|
+
return format.attachmentId;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
exports.CredentialFormatCoordinator = CredentialFormatCoordinator;
|
|
363
|
+
//# sourceMappingURL=CredentialFormatCoordinator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialFormatCoordinator.js","sourceRoot":"","sources":["../../../../../src/modules/credentials/protocol/v2/CredentialFormatCoordinator.ts"],"names":[],"mappings":";;;AAMA,yCAA2C;AAE3C,uDAAqF;AAErF,yCAMmB;AAEnB,MAAa,2BAA2B;IACtC;;;;;;OAMG;IACI,KAAK,CAAC,cAAc,CACzB,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BAAkB,CAAC,QAAQ;YACjC,kBAAkB,EAAE,gBAAgB,CAAC,EAAE;SACxC,CAAC,CAAA;IACJ,CAAC;IAEM,uBAAuB,CAC5B,uBAAgD,EAChD,OAA+B,EAC/B,WAAyB;QAEzB,MAAM,YAAY,GAAG,IAAI,CAAC,yBAAyB,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAA;QACrF,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,KAAK,YAAY,CAAC,CAAA;QAEnF,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,iBAAU,CAAC,sBAAsB,YAAY,4BAA4B,CAAC,CAAA;QACtF,CAAC;QAED,OAAO,UAAU,CAAA;IACnB,CAAC;IAEO,yBAAyB,CAAC,uBAAgD,EAAE,OAA+B;QACjH,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;QAE9F,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,iBAAU,CAAC,mCAAmC,uBAAuB,CAAC,SAAS,EAAE,CAAC,CAAA;QAEzG,OAAO,MAAM,CAAC,YAAY,CAAA;IAC5B,CAAC;CACF;AArmBD,kEAqmBC"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import type { AgentMessage } from '../../../../AgentMessage';
|
|
2
|
+
import type { FeatureRegistry } from '../../../../FeatureRegistry';
|
|
3
|
+
import type { MessageHandlerRegistry } from '../../../../MessageHandlerRegistry';
|
|
4
|
+
import type { MessageHandlerInboundMessage } from '../../../../handlers';
|
|
5
|
+
import type { ProblemReportMessage } from '../../../../messages';
|
|
6
|
+
import type { InboundMessageContext } from '../../../../models';
|
|
7
|
+
import type { CredentialFormat, CredentialFormatService, ExtractCredentialFormats } from '../../formats';
|
|
8
|
+
import type { CredentialProtocol } from '../CredentialProtocol';
|
|
9
|
+
import type { AcceptCredentialOptions, AcceptCredentialOfferOptions, AcceptCredentialProposalOptions, AcceptCredentialRequestOptions, CreateCredentialOfferOptions, CreateCredentialProposalOptions, CreateCredentialRequestOptions, CredentialProtocolMsgReturnType, CreateCredentialProblemReportOptions, GetCredentialFormatDataReturn, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions } from '../CredentialProtocolOptions';
|
|
10
|
+
import type { AgentContext } from '@credo-ts/core';
|
|
11
|
+
import { CredentialExchangeRecord } from '../../repository';
|
|
12
|
+
import { BaseCredentialProtocol } from '../BaseCredentialProtocol';
|
|
13
|
+
import { V2OfferCredentialHandler } from './handlers';
|
|
14
|
+
import { V2CredentialAckMessage, V2IssueCredentialMessage, V2OfferCredentialMessage, V2ProposeCredentialMessage, V2RequestCredentialMessage } from './messages';
|
|
15
|
+
export interface V2CredentialProtocolConfig<CredentialFormatServices extends CredentialFormatService[]> {
|
|
16
|
+
credentialFormats: CredentialFormatServices;
|
|
17
|
+
}
|
|
18
|
+
export declare class V2CredentialProtocol<CFs extends CredentialFormatService[] = CredentialFormatService[]> extends BaseCredentialProtocol<CFs> implements CredentialProtocol<CFs> {
|
|
19
|
+
private credentialFormatCoordinator;
|
|
20
|
+
private credentialFormats;
|
|
21
|
+
constructor({ credentialFormats }: V2CredentialProtocolConfig<CFs>);
|
|
22
|
+
/**
|
|
23
|
+
* The version of the issue credential protocol this service supports
|
|
24
|
+
*/
|
|
25
|
+
readonly version: "v2";
|
|
26
|
+
/**
|
|
27
|
+
* Registers the protocol implementation (handlers, feature registry) on the agent.
|
|
28
|
+
*/
|
|
29
|
+
register(messageHandlerRegistry: MessageHandlerRegistry, featureRegistry: FeatureRegistry): void;
|
|
30
|
+
/**
|
|
31
|
+
* Create a {@link V2ProposeCredentialMessage} not bound to an existing credential exchange.
|
|
32
|
+
*
|
|
33
|
+
* @param proposal The ProposeCredentialOptions object containing the important fields for the credential message
|
|
34
|
+
* @returns Object containing proposal message and associated credential record
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
createProposal(agentContext: AgentContext, { connectionRecord, credentialFormats, comment, goal, goalCode, autoAcceptCredential, }: CreateCredentialProposalOptions<CFs>): Promise<CredentialProtocolMsgReturnType<AgentMessage>>;
|
|
38
|
+
/**
|
|
39
|
+
* Method called by {@link V2ProposeCredentialHandler} on reception of a propose credential message
|
|
40
|
+
* We do the necessary processing here to accept the proposal and do the state change, emit event etc.
|
|
41
|
+
* @param messageContext the inbound propose credential message
|
|
42
|
+
* @returns credential record appropriate for this incoming message (once accepted)
|
|
43
|
+
*/
|
|
44
|
+
processProposal(messageContext: InboundMessageContext<V2ProposeCredentialMessage>): Promise<CredentialExchangeRecord>;
|
|
45
|
+
acceptProposal(agentContext: AgentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment, goal, goalCode, }: AcceptCredentialProposalOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2OfferCredentialMessage>>;
|
|
46
|
+
/**
|
|
47
|
+
* Negotiate a credential proposal as issuer (by sending a credential offer message) to the connection
|
|
48
|
+
* associated with the credential record.
|
|
49
|
+
*
|
|
50
|
+
* @param options configuration for the offer see {@link NegotiateCredentialProposalOptions}
|
|
51
|
+
* @returns Credential exchange record associated with the credential offer
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
negotiateProposal(agentContext: AgentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment, goal, goalCode, }: NegotiateCredentialProposalOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2OfferCredentialMessage>>;
|
|
55
|
+
/**
|
|
56
|
+
* Create a {@link V2OfferCredentialMessage} as beginning of protocol process. If no connectionId is provided, the
|
|
57
|
+
* exchange will be created without a connection for usage in oob and connection-less issuance.
|
|
58
|
+
*
|
|
59
|
+
* @param formatService {@link CredentialFormatService} the format service object containing format-specific logic
|
|
60
|
+
* @param options attributes of the original offer
|
|
61
|
+
* @returns Object containing offer message and associated credential record
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
createOffer(agentContext: AgentContext, { credentialFormats, autoAcceptCredential, comment, goal, goalCode, connectionRecord, }: CreateCredentialOfferOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2OfferCredentialMessage>>;
|
|
65
|
+
/**
|
|
66
|
+
* Method called by {@link V2OfferCredentialHandler} on reception of a offer credential message
|
|
67
|
+
* We do the necessary processing here to accept the offer and do the state change, emit event etc.
|
|
68
|
+
* @param messageContext the inbound offer credential message
|
|
69
|
+
* @returns credential record appropriate for this incoming message (once accepted)
|
|
70
|
+
*/
|
|
71
|
+
processOffer(messageContext: MessageHandlerInboundMessage<V2OfferCredentialHandler>): Promise<CredentialExchangeRecord>;
|
|
72
|
+
acceptOffer(agentContext: AgentContext, { credentialRecord, autoAcceptCredential, comment, goal, goalCode, credentialFormats, }: AcceptCredentialOfferOptions<CFs>): Promise<{
|
|
73
|
+
credentialRecord: CredentialExchangeRecord;
|
|
74
|
+
message: V2RequestCredentialMessage;
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* Create a {@link ProposePresentationMessage} as response to a received credential offer.
|
|
78
|
+
* To create a proposal not bound to an existing credential exchange, use {@link createProposal}.
|
|
79
|
+
*
|
|
80
|
+
* @param options configuration to use for the proposal
|
|
81
|
+
* @returns Object containing proposal message and associated credential record
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
negotiateOffer(agentContext: AgentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment, goal, goalCode, }: NegotiateCredentialOfferOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2ProposeCredentialMessage>>;
|
|
85
|
+
/**
|
|
86
|
+
* Create a {@link V2RequestCredentialMessage} as beginning of protocol process.
|
|
87
|
+
* @returns Object containing offer message and associated credential record
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
createRequest(agentContext: AgentContext, { credentialFormats, autoAcceptCredential, comment, goal, goalCode, connectionRecord, }: CreateCredentialRequestOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2RequestCredentialMessage>>;
|
|
91
|
+
/**
|
|
92
|
+
* Process a received {@link RequestCredentialMessage}. This will not accept the credential request
|
|
93
|
+
* or send a credential. It will only update the existing credential record with
|
|
94
|
+
* the information from the credential request message. Use {@link createCredential}
|
|
95
|
+
* after calling this method to create a credential.
|
|
96
|
+
*z
|
|
97
|
+
* @param messageContext The message context containing a v2 credential request message
|
|
98
|
+
* @returns credential record associated with the credential request message
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
processRequest(messageContext: InboundMessageContext<V2RequestCredentialMessage>): Promise<CredentialExchangeRecord>;
|
|
102
|
+
acceptRequest(agentContext: AgentContext, { credentialRecord, autoAcceptCredential, comment, goal, goalCode, credentialFormats, }: AcceptCredentialRequestOptions<CFs>): Promise<{
|
|
103
|
+
credentialRecord: CredentialExchangeRecord;
|
|
104
|
+
message: V2IssueCredentialMessage;
|
|
105
|
+
}>;
|
|
106
|
+
/**
|
|
107
|
+
* Process a received {@link V2IssueCredentialMessage}. This will not accept the credential
|
|
108
|
+
* or send a credential acknowledgement. It will only update the existing credential record with
|
|
109
|
+
* the information from the issue credential message. Use {@link createAck}
|
|
110
|
+
* after calling this method to create a credential acknowledgement.
|
|
111
|
+
*
|
|
112
|
+
* @param messageContext The message context containing an issue credential message
|
|
113
|
+
*
|
|
114
|
+
* @returns credential record associated with the issue credential message
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
processCredential(messageContext: InboundMessageContext<V2IssueCredentialMessage>): Promise<CredentialExchangeRecord>;
|
|
118
|
+
/**
|
|
119
|
+
* Create a {@link V2CredentialAckMessage} as response to a received credential.
|
|
120
|
+
*
|
|
121
|
+
* @param credentialRecord The credential record for which to create the credential acknowledgement
|
|
122
|
+
* @returns Object containing credential acknowledgement message and associated credential record
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
acceptCredential(agentContext: AgentContext, { credentialRecord }: AcceptCredentialOptions): Promise<CredentialProtocolMsgReturnType<V2CredentialAckMessage>>;
|
|
126
|
+
/**
|
|
127
|
+
* Process a received {@link CredentialAckMessage}.
|
|
128
|
+
*
|
|
129
|
+
* @param messageContext The message context containing a credential acknowledgement message
|
|
130
|
+
* @returns credential record associated with the credential acknowledgement message
|
|
131
|
+
*
|
|
132
|
+
*/
|
|
133
|
+
processAck(messageContext: InboundMessageContext<V2CredentialAckMessage>): Promise<CredentialExchangeRecord>;
|
|
134
|
+
/**
|
|
135
|
+
* Create a {@link V2CredentialProblemReportMessage} to be sent.
|
|
136
|
+
*
|
|
137
|
+
* @param message message to send
|
|
138
|
+
* @returns a {@link V2CredentialProblemReportMessage}
|
|
139
|
+
*
|
|
140
|
+
*/
|
|
141
|
+
createProblemReport(_agentContext: AgentContext, { credentialRecord, description }: CreateCredentialProblemReportOptions): Promise<CredentialProtocolMsgReturnType<ProblemReportMessage>>;
|
|
142
|
+
shouldAutoRespondToProposal(agentContext: AgentContext, options: {
|
|
143
|
+
credentialRecord: CredentialExchangeRecord;
|
|
144
|
+
proposalMessage: V2ProposeCredentialMessage;
|
|
145
|
+
}): Promise<boolean>;
|
|
146
|
+
shouldAutoRespondToOffer(agentContext: AgentContext, options: {
|
|
147
|
+
credentialRecord: CredentialExchangeRecord;
|
|
148
|
+
offerMessage: V2OfferCredentialMessage;
|
|
149
|
+
}): Promise<boolean>;
|
|
150
|
+
shouldAutoRespondToRequest(agentContext: AgentContext, options: {
|
|
151
|
+
credentialRecord: CredentialExchangeRecord;
|
|
152
|
+
requestMessage: V2RequestCredentialMessage;
|
|
153
|
+
}): Promise<boolean>;
|
|
154
|
+
shouldAutoRespondToCredential(agentContext: AgentContext, options: {
|
|
155
|
+
credentialRecord: CredentialExchangeRecord;
|
|
156
|
+
credentialMessage: V2IssueCredentialMessage;
|
|
157
|
+
}): Promise<boolean>;
|
|
158
|
+
findProposalMessage(agentContext: AgentContext, credentialExchangeId: string): Promise<V2ProposeCredentialMessage | null>;
|
|
159
|
+
findOfferMessage(agentContext: AgentContext, credentialExchangeId: string): Promise<V2OfferCredentialMessage | null>;
|
|
160
|
+
findRequestMessage(agentContext: AgentContext, credentialExchangeId: string): Promise<V2RequestCredentialMessage | null>;
|
|
161
|
+
findCredentialMessage(agentContext: AgentContext, credentialExchangeId: string): Promise<V2IssueCredentialMessage | null>;
|
|
162
|
+
getFormatData(agentContext: AgentContext, credentialExchangeId: string): Promise<GetCredentialFormatDataReturn<ExtractCredentialFormats<CFs>>>;
|
|
163
|
+
/**
|
|
164
|
+
* Get all the format service objects for a given credential format from an incoming message
|
|
165
|
+
* @param messageFormats the format objects containing the format name (eg indy)
|
|
166
|
+
* @return the credential format service objects in an array - derived from format object keys
|
|
167
|
+
*/
|
|
168
|
+
private getFormatServicesFromMessage;
|
|
169
|
+
/**
|
|
170
|
+
* Get all the format service objects for a given credential format
|
|
171
|
+
* @param credentialFormats the format object containing various optional parameters
|
|
172
|
+
* @return the credential format service objects in an array - derived from format object keys
|
|
173
|
+
*/
|
|
174
|
+
private getFormatServices;
|
|
175
|
+
private getFormatServiceForFormatKey;
|
|
176
|
+
private getFormatServiceForFormat;
|
|
177
|
+
protected getFormatServiceForRecordType(credentialRecordType: string): CredentialFormatService<CredentialFormat>;
|
|
178
|
+
}
|