@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,66 @@
|
|
|
1
|
+
import type { CredentialRole } from '../models';
|
|
2
|
+
import type { AutoAcceptCredential } from '../models/CredentialAutoAcceptType';
|
|
3
|
+
import type { CredentialState } from '../models/CredentialState';
|
|
4
|
+
import type { RevocationNotification } from '../models/RevocationNotification';
|
|
5
|
+
import type { TagsBase } from '@credo-ts/core';
|
|
6
|
+
import { BaseRecord } from '@credo-ts/core';
|
|
7
|
+
import { Attachment } from '../../../decorators/attachment/Attachment';
|
|
8
|
+
import { CredentialPreviewAttribute } from '../models/CredentialPreviewAttribute';
|
|
9
|
+
export interface CredentialExchangeRecordProps {
|
|
10
|
+
id?: string;
|
|
11
|
+
createdAt?: Date;
|
|
12
|
+
state: CredentialState;
|
|
13
|
+
role: CredentialRole;
|
|
14
|
+
connectionId?: string;
|
|
15
|
+
threadId: string;
|
|
16
|
+
parentThreadId?: string;
|
|
17
|
+
protocolVersion: string;
|
|
18
|
+
tags?: CustomCredentialTags;
|
|
19
|
+
credentialAttributes?: CredentialPreviewAttribute[];
|
|
20
|
+
autoAcceptCredential?: AutoAcceptCredential;
|
|
21
|
+
linkedAttachments?: Attachment[];
|
|
22
|
+
revocationNotification?: RevocationNotification;
|
|
23
|
+
errorMessage?: string;
|
|
24
|
+
credentials?: CredentialRecordBinding[];
|
|
25
|
+
}
|
|
26
|
+
export type CustomCredentialTags = TagsBase;
|
|
27
|
+
export type DefaultCredentialTags = {
|
|
28
|
+
threadId: string;
|
|
29
|
+
parentThreadId?: string;
|
|
30
|
+
connectionId?: string;
|
|
31
|
+
state: CredentialState;
|
|
32
|
+
role: CredentialRole;
|
|
33
|
+
credentialIds: string[];
|
|
34
|
+
};
|
|
35
|
+
export interface CredentialRecordBinding {
|
|
36
|
+
credentialRecordType: string;
|
|
37
|
+
credentialRecordId: string;
|
|
38
|
+
}
|
|
39
|
+
export declare class CredentialExchangeRecord extends BaseRecord<DefaultCredentialTags, CustomCredentialTags> {
|
|
40
|
+
connectionId?: string;
|
|
41
|
+
threadId: string;
|
|
42
|
+
parentThreadId?: string;
|
|
43
|
+
state: CredentialState;
|
|
44
|
+
role: CredentialRole;
|
|
45
|
+
autoAcceptCredential?: AutoAcceptCredential;
|
|
46
|
+
revocationNotification?: RevocationNotification;
|
|
47
|
+
errorMessage?: string;
|
|
48
|
+
protocolVersion: string;
|
|
49
|
+
credentials: CredentialRecordBinding[];
|
|
50
|
+
credentialAttributes?: CredentialPreviewAttribute[];
|
|
51
|
+
linkedAttachments?: Attachment[];
|
|
52
|
+
static readonly type = "CredentialRecord";
|
|
53
|
+
readonly type = "CredentialRecord";
|
|
54
|
+
constructor(props: CredentialExchangeRecordProps);
|
|
55
|
+
getTags(): {
|
|
56
|
+
threadId: string;
|
|
57
|
+
parentThreadId: string | undefined;
|
|
58
|
+
connectionId: string | undefined;
|
|
59
|
+
state: CredentialState;
|
|
60
|
+
role: CredentialRole;
|
|
61
|
+
credentialIds: string[];
|
|
62
|
+
};
|
|
63
|
+
assertProtocolVersion(version: string): void;
|
|
64
|
+
assertState(expectedStates: CredentialState | CredentialState[]): void;
|
|
65
|
+
assertConnection(currentConnectionId: string): void;
|
|
66
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CredentialExchangeRecord = void 0;
|
|
13
|
+
const core_1 = require("@credo-ts/core");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const Attachment_1 = require("../../../decorators/attachment/Attachment");
|
|
16
|
+
const CredentialPreviewAttribute_1 = require("../models/CredentialPreviewAttribute");
|
|
17
|
+
class CredentialExchangeRecord extends core_1.BaseRecord {
|
|
18
|
+
constructor(props) {
|
|
19
|
+
super();
|
|
20
|
+
this.credentials = [];
|
|
21
|
+
this.type = CredentialExchangeRecord.type;
|
|
22
|
+
if (props) {
|
|
23
|
+
this.id = props.id ?? core_1.utils.uuid();
|
|
24
|
+
this.createdAt = props.createdAt ?? new Date();
|
|
25
|
+
this.state = props.state;
|
|
26
|
+
this.role = props.role;
|
|
27
|
+
this.connectionId = props.connectionId;
|
|
28
|
+
this.threadId = props.threadId;
|
|
29
|
+
this.parentThreadId = props.parentThreadId;
|
|
30
|
+
this.protocolVersion = props.protocolVersion;
|
|
31
|
+
this._tags = props.tags ?? {};
|
|
32
|
+
this.credentialAttributes = props.credentialAttributes;
|
|
33
|
+
this.autoAcceptCredential = props.autoAcceptCredential;
|
|
34
|
+
this.linkedAttachments = props.linkedAttachments;
|
|
35
|
+
this.revocationNotification = props.revocationNotification;
|
|
36
|
+
this.errorMessage = props.errorMessage;
|
|
37
|
+
this.credentials = props.credentials || [];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
getTags() {
|
|
41
|
+
const ids = this.credentials.map((c) => c.credentialRecordId);
|
|
42
|
+
return {
|
|
43
|
+
...this._tags,
|
|
44
|
+
threadId: this.threadId,
|
|
45
|
+
parentThreadId: this.parentThreadId,
|
|
46
|
+
connectionId: this.connectionId,
|
|
47
|
+
state: this.state,
|
|
48
|
+
role: this.role,
|
|
49
|
+
credentialIds: ids,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
assertProtocolVersion(version) {
|
|
53
|
+
if (this.protocolVersion != version) {
|
|
54
|
+
throw new core_1.CredoError(`Credential record has invalid protocol version ${this.protocolVersion}. Expected version ${version}`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
assertState(expectedStates) {
|
|
58
|
+
if (!Array.isArray(expectedStates)) {
|
|
59
|
+
expectedStates = [expectedStates];
|
|
60
|
+
}
|
|
61
|
+
if (!expectedStates.includes(this.state)) {
|
|
62
|
+
throw new core_1.CredoError(`Credential record is in invalid state ${this.state}. Valid states are: ${expectedStates.join(', ')}.`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
assertConnection(currentConnectionId) {
|
|
66
|
+
if (!this.connectionId) {
|
|
67
|
+
throw new core_1.CredoError(`Credential record is not associated with any connection. This is often the case with connection-less credential exchange`);
|
|
68
|
+
}
|
|
69
|
+
else if (this.connectionId !== currentConnectionId) {
|
|
70
|
+
throw new core_1.CredoError(`Credential record is associated with connection '${this.connectionId}'. Current connection is '${currentConnectionId}'`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.CredentialExchangeRecord = CredentialExchangeRecord;
|
|
75
|
+
// Type is CredentialRecord on purpose (without Exchange) as this is how the record was initially called.
|
|
76
|
+
CredentialExchangeRecord.type = 'CredentialRecord';
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_transformer_1.Type)(() => CredentialPreviewAttribute_1.CredentialPreviewAttribute),
|
|
79
|
+
__metadata("design:type", Array)
|
|
80
|
+
], CredentialExchangeRecord.prototype, "credentialAttributes", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_transformer_1.Type)(() => Attachment_1.Attachment),
|
|
83
|
+
__metadata("design:type", Array)
|
|
84
|
+
], CredentialExchangeRecord.prototype, "linkedAttachments", void 0);
|
|
85
|
+
//# sourceMappingURL=CredentialExchangeRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialExchangeRecord.js","sourceRoot":"","sources":["../../../../src/modules/credentials/repository/CredentialExchangeRecord.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EventEmitter, Repository, StorageService } from '@credo-ts/core';
|
|
2
|
+
import { CredentialExchangeRecord } from './CredentialExchangeRecord';
|
|
3
|
+
export declare class CredentialRepository extends Repository<CredentialExchangeRecord> {
|
|
4
|
+
constructor(storageService: StorageService<CredentialExchangeRecord>, eventEmitter: EventEmitter);
|
|
5
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CredentialRepository = void 0;
|
|
16
|
+
const core_1 = require("@credo-ts/core");
|
|
17
|
+
const CredentialExchangeRecord_1 = require("./CredentialExchangeRecord");
|
|
18
|
+
let CredentialRepository = class CredentialRepository extends core_1.Repository {
|
|
19
|
+
constructor(storageService, eventEmitter) {
|
|
20
|
+
super(CredentialExchangeRecord_1.CredentialExchangeRecord, storageService, eventEmitter);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.CredentialRepository = CredentialRepository;
|
|
24
|
+
exports.CredentialRepository = CredentialRepository = __decorate([
|
|
25
|
+
(0, core_1.injectable)(),
|
|
26
|
+
__param(0, (0, core_1.inject)(core_1.InjectionSymbols.StorageService)),
|
|
27
|
+
__metadata("design:paramtypes", [Object, core_1.EventEmitter])
|
|
28
|
+
], CredentialRepository);
|
|
29
|
+
//# sourceMappingURL=CredentialRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialRepository.js","sourceRoot":"","sources":["../../../../src/modules/credentials/repository/CredentialRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yCAA+G;AAE/G,yEAAqE;AAG9D,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,iBAAoC;IAC5E,YAC2C,cAAwD,EACjG,YAA0B;QAE1B,KAAK,CAAC,mDAAwB,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IAC/D,CAAC;CACF,CAAA;AAPY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,iBAAU,GAAE;IAGR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,cAAc,CAAC,CAAA;6CAC1B,mBAAY;GAHjB,oBAAoB,CAOhC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CredentialExchangeRecord"), exports);
|
|
18
|
+
__exportStar(require("./CredentialRepository"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/credentials/repository/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C;AAC1C,yDAAsC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AutoAcceptCredential } from '../models/CredentialAutoAcceptType';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the credential auto accept config based on priority:
|
|
4
|
+
* - The record config takes first priority
|
|
5
|
+
* - Otherwise the agent config
|
|
6
|
+
* - Otherwise {@link AutoAcceptCredential.Never} is returned
|
|
7
|
+
*/
|
|
8
|
+
export declare function composeAutoAccept(recordConfig: AutoAcceptCredential | undefined, agentConfig: AutoAcceptCredential | undefined): AutoAcceptCredential;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.composeAutoAccept = composeAutoAccept;
|
|
4
|
+
const CredentialAutoAcceptType_1 = require("../models/CredentialAutoAcceptType");
|
|
5
|
+
/**
|
|
6
|
+
* Returns the credential auto accept config based on priority:
|
|
7
|
+
* - The record config takes first priority
|
|
8
|
+
* - Otherwise the agent config
|
|
9
|
+
* - Otherwise {@link AutoAcceptCredential.Never} is returned
|
|
10
|
+
*/
|
|
11
|
+
function composeAutoAccept(recordConfig, agentConfig) {
|
|
12
|
+
return recordConfig ?? agentConfig ?? CredentialAutoAcceptType_1.AutoAcceptCredential.Never;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=composeAutoAccept.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composeAutoAccept.js","sourceRoot":"","sources":["../../../../src/modules/credentials/util/composeAutoAccept.ts"],"names":[],"mappings":";;AAQA,8CAKC;AAbD,iFAAyE;AAEzE;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC/B,YAA8C,EAC9C,WAA6C;IAE7C,OAAO,YAAY,IAAI,WAAW,IAAI,+CAAoB,CAAC,KAAK,CAAA;AAClE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.arePreviewAttributesEqual = arePreviewAttributesEqual;
|
|
4
|
+
function arePreviewAttributesEqual(firstAttributes, secondAttributes) {
|
|
5
|
+
if (firstAttributes.length !== secondAttributes.length)
|
|
6
|
+
return false;
|
|
7
|
+
const secondAttributeMap = secondAttributes.reduce((attributeMap, attribute) => ({ ...attributeMap, [attribute.name]: attribute }), {});
|
|
8
|
+
// check if no duplicate keys exist
|
|
9
|
+
if (new Set(firstAttributes.map((attribute) => attribute.name)).size !== firstAttributes.length)
|
|
10
|
+
return false;
|
|
11
|
+
if (new Set(secondAttributes.map((attribute) => attribute.name)).size !== secondAttributes.length)
|
|
12
|
+
return false;
|
|
13
|
+
for (const firstAttribute of firstAttributes) {
|
|
14
|
+
const secondAttribute = secondAttributeMap[firstAttribute.name];
|
|
15
|
+
if (!secondAttribute)
|
|
16
|
+
return false;
|
|
17
|
+
if (firstAttribute.value !== secondAttribute.value)
|
|
18
|
+
return false;
|
|
19
|
+
if (firstAttribute.mimeType !== secondAttribute.mimeType)
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=previewAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"previewAttributes.js","sourceRoot":"","sources":["../../../../src/modules/credentials/util/previewAttributes.ts"],"names":[],"mappings":";;AAEA,8DAwBC;AAxBD,SAAgB,yBAAyB,CACvC,eAA6C,EAC7C,gBAA8C;IAE9C,IAAI,eAAe,CAAC,MAAM,KAAK,gBAAgB,CAAC,MAAM;QAAE,OAAO,KAAK,CAAA;IAEpE,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,MAAM,CAChD,CAAC,YAAY,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,YAAY,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,EAC/E,EAAE,CACH,CAAA;IAED,mCAAmC;IACnC,IAAI,IAAI,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,eAAe,CAAC,MAAM;QAAE,OAAO,KAAK,CAAA;IAC7G,IAAI,IAAI,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,gBAAgB,CAAC,MAAM;QAAE,OAAO,KAAK,CAAA;IAE/G,KAAK,MAAM,cAAc,IAAI,eAAe,EAAE,CAAC;QAC7C,MAAM,eAAe,GAAG,kBAAkB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;QAE/D,IAAI,CAAC,eAAe;YAAE,OAAO,KAAK,CAAA;QAClC,IAAI,cAAc,CAAC,KAAK,KAAK,eAAe,CAAC,KAAK;YAAE,OAAO,KAAK,CAAA;QAChE,IAAI,cAAc,CAAC,QAAQ,KAAK,eAAe,CAAC,QAAQ;YAAE,OAAO,KAAK,CAAA;IACxE,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DiscloseFeaturesOptions, QueryFeaturesOptions } from './DiscoverFeaturesApiOptions';
|
|
2
|
+
import type { DiscoverFeaturesService } from './services';
|
|
3
|
+
import type { Feature } from '../../models';
|
|
4
|
+
import { AgentContext, EventEmitter } from '@credo-ts/core';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { MessageSender } from '../../MessageSender';
|
|
7
|
+
import { ConnectionService } from '../connections';
|
|
8
|
+
import { DiscoverFeaturesModuleConfig } from './DiscoverFeaturesModuleConfig';
|
|
9
|
+
import { V1DiscoverFeaturesService, V2DiscoverFeaturesService } from './protocol';
|
|
10
|
+
export interface QueryFeaturesReturnType {
|
|
11
|
+
features?: Feature[];
|
|
12
|
+
}
|
|
13
|
+
export interface DiscoverFeaturesApi<DFSs extends DiscoverFeaturesService[]> {
|
|
14
|
+
queryFeatures(options: QueryFeaturesOptions<DFSs>): Promise<QueryFeaturesReturnType>;
|
|
15
|
+
discloseFeatures(options: DiscloseFeaturesOptions<DFSs>): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
export declare class DiscoverFeaturesApi<DFSs extends DiscoverFeaturesService[] = [V1DiscoverFeaturesService, V2DiscoverFeaturesService]> implements DiscoverFeaturesApi<DFSs> {
|
|
18
|
+
/**
|
|
19
|
+
* Configuration for Discover Features module
|
|
20
|
+
*/
|
|
21
|
+
readonly config: DiscoverFeaturesModuleConfig;
|
|
22
|
+
private connectionService;
|
|
23
|
+
private messageSender;
|
|
24
|
+
private eventEmitter;
|
|
25
|
+
private stop$;
|
|
26
|
+
private agentContext;
|
|
27
|
+
private serviceMap;
|
|
28
|
+
constructor(connectionService: ConnectionService, messageSender: MessageSender, v1Service: V1DiscoverFeaturesService, v2Service: V2DiscoverFeaturesService, eventEmitter: EventEmitter, stop$: Subject<boolean>, agentContext: AgentContext, config: DiscoverFeaturesModuleConfig);
|
|
29
|
+
getService<PVT extends DiscoverFeaturesService['version']>(protocolVersion: PVT): DiscoverFeaturesService;
|
|
30
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DiscoverFeaturesApi = void 0;
|
|
16
|
+
const core_1 = require("@credo-ts/core");
|
|
17
|
+
const rxjs_1 = require("rxjs");
|
|
18
|
+
const operators_1 = require("rxjs/operators");
|
|
19
|
+
const MessageSender_1 = require("../../MessageSender");
|
|
20
|
+
const models_1 = require("../../models");
|
|
21
|
+
const connections_1 = require("../connections");
|
|
22
|
+
const DiscoverFeaturesEvents_1 = require("./DiscoverFeaturesEvents");
|
|
23
|
+
const DiscoverFeaturesModuleConfig_1 = require("./DiscoverFeaturesModuleConfig");
|
|
24
|
+
const protocol_1 = require("./protocol");
|
|
25
|
+
let DiscoverFeaturesApi = class DiscoverFeaturesApi {
|
|
26
|
+
constructor(connectionService, messageSender, v1Service, v2Service, eventEmitter, stop$, agentContext, config) {
|
|
27
|
+
this.connectionService = connectionService;
|
|
28
|
+
this.messageSender = messageSender;
|
|
29
|
+
this.eventEmitter = eventEmitter;
|
|
30
|
+
this.stop$ = stop$;
|
|
31
|
+
this.agentContext = agentContext;
|
|
32
|
+
this.config = config;
|
|
33
|
+
// Dynamically build service map. This will be extracted once services are registered dynamically
|
|
34
|
+
this.serviceMap = [v1Service, v2Service].reduce((serviceMap, service) => ({
|
|
35
|
+
...serviceMap,
|
|
36
|
+
[service.version]: service,
|
|
37
|
+
}), {});
|
|
38
|
+
}
|
|
39
|
+
getService(protocolVersion) {
|
|
40
|
+
if (!this.serviceMap[protocolVersion]) {
|
|
41
|
+
throw new core_1.CredoError(`No discover features service registered for protocol version ${protocolVersion}`);
|
|
42
|
+
}
|
|
43
|
+
return this.serviceMap[protocolVersion];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Send a query to an existing connection for discovering supported features of any kind. If desired, do the query synchronously,
|
|
47
|
+
* meaning that it will await the response (or timeout) before resolving. Otherwise, response can be hooked by subscribing to
|
|
48
|
+
* {DiscoverFeaturesDisclosureReceivedEvent}.
|
|
49
|
+
*
|
|
50
|
+
* Note: V1 protocol only supports a single query and is limited to protocols
|
|
51
|
+
*
|
|
52
|
+
* @param options feature queries to perform, protocol version and optional comment string (only used
|
|
53
|
+
* in V1 protocol). If awaitDisclosures is set, perform the query synchronously with awaitDisclosuresTimeoutMs timeout.
|
|
54
|
+
*/
|
|
55
|
+
async queryFeatures(options) {
|
|
56
|
+
const service = this.getService(options.protocolVersion);
|
|
57
|
+
const connection = await this.connectionService.getById(this.agentContext, options.connectionId);
|
|
58
|
+
const { message: queryMessage } = await service.createQuery({
|
|
59
|
+
queries: options.queries,
|
|
60
|
+
comment: options.comment,
|
|
61
|
+
});
|
|
62
|
+
const outboundMessageContext = new models_1.OutboundMessageContext(queryMessage, {
|
|
63
|
+
agentContext: this.agentContext,
|
|
64
|
+
connection,
|
|
65
|
+
});
|
|
66
|
+
const replaySubject = new rxjs_1.ReplaySubject(1);
|
|
67
|
+
if (options.awaitDisclosures) {
|
|
68
|
+
// Listen for response to our feature query
|
|
69
|
+
this.eventEmitter
|
|
70
|
+
.observable(DiscoverFeaturesEvents_1.DiscoverFeaturesEventTypes.DisclosureReceived)
|
|
71
|
+
.pipe(
|
|
72
|
+
// Stop when the agent shuts down
|
|
73
|
+
(0, operators_1.takeUntil)(this.stop$),
|
|
74
|
+
// filter by connection id
|
|
75
|
+
(0, operators_1.filter)((e) => e.payload.connection?.id === connection.id),
|
|
76
|
+
// Return disclosures
|
|
77
|
+
(0, operators_1.map)((e) => e.payload.disclosures),
|
|
78
|
+
// Only wait for first event that matches the criteria
|
|
79
|
+
(0, operators_1.first)(),
|
|
80
|
+
// If we don't have an answer in timeoutMs miliseconds (no response, not supported, etc...) error
|
|
81
|
+
(0, operators_1.timeout)({
|
|
82
|
+
first: options.awaitDisclosuresTimeoutMs ?? 7000,
|
|
83
|
+
meta: 'DiscoverFeaturesApi.queryFeatures',
|
|
84
|
+
}), // TODO: Harmonize default timeouts across the framework
|
|
85
|
+
// We want to return false if an error occurred
|
|
86
|
+
(0, operators_1.catchError)(() => (0, rxjs_1.of)([])))
|
|
87
|
+
.subscribe(replaySubject);
|
|
88
|
+
}
|
|
89
|
+
await this.messageSender.sendMessage(outboundMessageContext);
|
|
90
|
+
return { features: options.awaitDisclosures ? await (0, rxjs_1.firstValueFrom)(replaySubject) : undefined };
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Disclose features to a connection, either proactively or as a response to a query.
|
|
94
|
+
*
|
|
95
|
+
* Features are disclosed based on queries that will be performed to Agent's Feature Registry,
|
|
96
|
+
* meaning that they should be registered prior to disclosure. When sending disclosure as response,
|
|
97
|
+
* these queries will usually match those from the corresponding Query or Queries message.
|
|
98
|
+
*
|
|
99
|
+
* Note: V1 protocol only supports sending disclosures as a response to a query.
|
|
100
|
+
*
|
|
101
|
+
* @param options multiple properties like protocol version to use, disclosure queries and thread id
|
|
102
|
+
* (in case of disclosure as response to query)
|
|
103
|
+
*/
|
|
104
|
+
async discloseFeatures(options) {
|
|
105
|
+
const service = this.getService(options.protocolVersion);
|
|
106
|
+
const connection = await this.connectionService.getById(this.agentContext, options.connectionId);
|
|
107
|
+
const { message: disclosuresMessage } = await service.createDisclosure({
|
|
108
|
+
disclosureQueries: options.disclosureQueries,
|
|
109
|
+
threadId: options.threadId,
|
|
110
|
+
});
|
|
111
|
+
const outboundMessageContext = new models_1.OutboundMessageContext(disclosuresMessage, {
|
|
112
|
+
agentContext: this.agentContext,
|
|
113
|
+
connection,
|
|
114
|
+
});
|
|
115
|
+
await this.messageSender.sendMessage(outboundMessageContext);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
exports.DiscoverFeaturesApi = DiscoverFeaturesApi;
|
|
119
|
+
exports.DiscoverFeaturesApi = DiscoverFeaturesApi = __decorate([
|
|
120
|
+
(0, core_1.injectable)(),
|
|
121
|
+
__param(5, (0, core_1.inject)(core_1.InjectionSymbols.Stop$)),
|
|
122
|
+
__metadata("design:paramtypes", [connections_1.ConnectionService,
|
|
123
|
+
MessageSender_1.MessageSender,
|
|
124
|
+
protocol_1.V1DiscoverFeaturesService,
|
|
125
|
+
protocol_1.V2DiscoverFeaturesService,
|
|
126
|
+
core_1.EventEmitter,
|
|
127
|
+
rxjs_1.Subject,
|
|
128
|
+
core_1.AgentContext,
|
|
129
|
+
DiscoverFeaturesModuleConfig_1.DiscoverFeaturesModuleConfig])
|
|
130
|
+
], DiscoverFeaturesApi);
|
|
131
|
+
//# sourceMappingURL=DiscoverFeaturesApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiscoverFeaturesApi.js","sourceRoot":"","sources":["../../../src/modules/discover-features/DiscoverFeaturesApi.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { DiscoverFeaturesService } from './services';
|
|
2
|
+
import type { FeatureQueryOptions } from '../../models';
|
|
3
|
+
/**
|
|
4
|
+
* Get the supported protocol versions based on the provided discover features services.
|
|
5
|
+
*/
|
|
6
|
+
export type DiscoverFeaturesProtocolVersionType<DFSs extends DiscoverFeaturesService[]> = DFSs[number]['version'];
|
|
7
|
+
/**
|
|
8
|
+
* Get the service map for usage in the discover features module. Will return a type mapping of protocol version to service.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```
|
|
12
|
+
* type ServiceMap = DiscoverFeaturesServiceMap<[V1DiscoverFeaturesService,V2DiscoverFeaturesService]>
|
|
13
|
+
*
|
|
14
|
+
* // equal to
|
|
15
|
+
* type ServiceMap = {
|
|
16
|
+
* v1: V1DiscoverFeatureService
|
|
17
|
+
* v2: V2DiscoverFeaturesService
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export type DiscoverFeaturesServiceMap<DFSs extends DiscoverFeaturesService[]> = {
|
|
22
|
+
[DFS in DFSs[number] as DFS['version']]: DiscoverFeaturesService;
|
|
23
|
+
};
|
|
24
|
+
interface BaseOptions {
|
|
25
|
+
connectionId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface QueryFeaturesOptions<DFSs extends DiscoverFeaturesService[] = DiscoverFeaturesService[]> extends BaseOptions {
|
|
28
|
+
protocolVersion: DiscoverFeaturesProtocolVersionType<DFSs>;
|
|
29
|
+
queries: FeatureQueryOptions[];
|
|
30
|
+
awaitDisclosures?: boolean;
|
|
31
|
+
awaitDisclosuresTimeoutMs?: number;
|
|
32
|
+
comment?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface DiscloseFeaturesOptions<DFSs extends DiscoverFeaturesService[] = DiscoverFeaturesService[]> extends BaseOptions {
|
|
35
|
+
protocolVersion: DiscoverFeaturesProtocolVersionType<DFSs>;
|
|
36
|
+
disclosureQueries: FeatureQueryOptions[];
|
|
37
|
+
threadId?: string;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiscoverFeaturesApiOptions.js","sourceRoot":"","sources":["../../../src/modules/discover-features/DiscoverFeaturesApiOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AgentMessage } from '../../AgentMessage';
|
|
2
|
+
import type { FeatureQueryOptions, Feature } from '../../models';
|
|
3
|
+
import type { ConnectionRecord } from '../connections';
|
|
4
|
+
import type { BaseEvent } from '@credo-ts/core';
|
|
5
|
+
export declare enum DiscoverFeaturesEventTypes {
|
|
6
|
+
QueryReceived = "QueryReceived",
|
|
7
|
+
DisclosureReceived = "DisclosureReceived"
|
|
8
|
+
}
|
|
9
|
+
export interface DiscoverFeaturesQueryReceivedEvent extends BaseEvent {
|
|
10
|
+
type: typeof DiscoverFeaturesEventTypes.QueryReceived;
|
|
11
|
+
payload: {
|
|
12
|
+
message: AgentMessage;
|
|
13
|
+
queries: FeatureQueryOptions[];
|
|
14
|
+
protocolVersion: string;
|
|
15
|
+
connection: ConnectionRecord;
|
|
16
|
+
threadId: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface DiscoverFeaturesDisclosureReceivedEvent extends BaseEvent {
|
|
20
|
+
type: typeof DiscoverFeaturesEventTypes.DisclosureReceived;
|
|
21
|
+
payload: {
|
|
22
|
+
message: AgentMessage;
|
|
23
|
+
disclosures: Feature[];
|
|
24
|
+
protocolVersion: string;
|
|
25
|
+
connection: ConnectionRecord;
|
|
26
|
+
threadId: string;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscoverFeaturesEventTypes = void 0;
|
|
4
|
+
var DiscoverFeaturesEventTypes;
|
|
5
|
+
(function (DiscoverFeaturesEventTypes) {
|
|
6
|
+
DiscoverFeaturesEventTypes["QueryReceived"] = "QueryReceived";
|
|
7
|
+
DiscoverFeaturesEventTypes["DisclosureReceived"] = "DisclosureReceived";
|
|
8
|
+
})(DiscoverFeaturesEventTypes || (exports.DiscoverFeaturesEventTypes = DiscoverFeaturesEventTypes = {}));
|
|
9
|
+
//# sourceMappingURL=DiscoverFeaturesEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiscoverFeaturesEvents.js","sourceRoot":"","sources":["../../../src/modules/discover-features/DiscoverFeaturesEvents.ts"],"names":[],"mappings":";;;AAKA,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6DAA+B,CAAA;IAC/B,uEAAyC,CAAA;AAC3C,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DiscoverFeaturesModuleConfigOptions } from './DiscoverFeaturesModuleConfig';
|
|
2
|
+
import type { DependencyManager, Module, AgentContext } from '@credo-ts/core';
|
|
3
|
+
import { DiscoverFeaturesApi } from './DiscoverFeaturesApi';
|
|
4
|
+
import { DiscoverFeaturesModuleConfig } from './DiscoverFeaturesModuleConfig';
|
|
5
|
+
export declare class DiscoverFeaturesModule implements Module {
|
|
6
|
+
readonly api: typeof DiscoverFeaturesApi;
|
|
7
|
+
readonly config: DiscoverFeaturesModuleConfig;
|
|
8
|
+
constructor(config?: DiscoverFeaturesModuleConfigOptions);
|
|
9
|
+
/**
|
|
10
|
+
* Registers the dependencies of the discover features module on the dependency manager.
|
|
11
|
+
*/
|
|
12
|
+
register(dependencyManager: DependencyManager): void;
|
|
13
|
+
initialize(agentContext: AgentContext): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscoverFeaturesModule = void 0;
|
|
4
|
+
const FeatureRegistry_1 = require("../../FeatureRegistry");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
const DiscoverFeaturesApi_1 = require("./DiscoverFeaturesApi");
|
|
7
|
+
const DiscoverFeaturesModuleConfig_1 = require("./DiscoverFeaturesModuleConfig");
|
|
8
|
+
const v1_1 = require("./protocol/v1");
|
|
9
|
+
const v2_1 = require("./protocol/v2");
|
|
10
|
+
class DiscoverFeaturesModule {
|
|
11
|
+
constructor(config) {
|
|
12
|
+
this.api = DiscoverFeaturesApi_1.DiscoverFeaturesApi;
|
|
13
|
+
this.config = new DiscoverFeaturesModuleConfig_1.DiscoverFeaturesModuleConfig(config);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Registers the dependencies of the discover features module on the dependency manager.
|
|
17
|
+
*/
|
|
18
|
+
register(dependencyManager) {
|
|
19
|
+
// Config
|
|
20
|
+
dependencyManager.registerInstance(DiscoverFeaturesModuleConfig_1.DiscoverFeaturesModuleConfig, this.config);
|
|
21
|
+
// Services
|
|
22
|
+
dependencyManager.registerSingleton(v1_1.V1DiscoverFeaturesService);
|
|
23
|
+
dependencyManager.registerSingleton(v2_1.V2DiscoverFeaturesService);
|
|
24
|
+
}
|
|
25
|
+
async initialize(agentContext) {
|
|
26
|
+
// Features
|
|
27
|
+
const featureRegistry = agentContext.dependencyManager.resolve(FeatureRegistry_1.FeatureRegistry);
|
|
28
|
+
featureRegistry.register(new models_1.Protocol({
|
|
29
|
+
id: 'https://didcomm.org/discover-features/1.0',
|
|
30
|
+
roles: ['requester', 'responder'],
|
|
31
|
+
}), new models_1.Protocol({
|
|
32
|
+
id: 'https://didcomm.org/discover-features/2.0',
|
|
33
|
+
roles: ['requester', 'responder'],
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.DiscoverFeaturesModule = DiscoverFeaturesModule;
|
|
38
|
+
//# sourceMappingURL=DiscoverFeaturesModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiscoverFeaturesModule.js","sourceRoot":"","sources":["../../../src/modules/discover-features/DiscoverFeaturesModule.ts"],"names":[],"mappings":";;;AAGA,2DAAuD;AACvD,yCAAuC;AAEvC,+DAA2D;AAC3D,iFAA6E;AAC7E,sCAAyD;AACzD,sCAAyD;AAEzD,MAAa,sBAAsB;IAIjC,YAAmB,MAA4C;QAH/C,QAAG,GAAG,yCAAmB,CAAA;QAIvC,IAAI,CAAC,MAAM,GAAG,IAAI,2DAA4B,CAAC,MAAM,CAAC,CAAA;IACxD,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,iBAAoC;QAClD,SAAS;QACT,iBAAiB,CAAC,gBAAgB,CAAC,2DAA4B,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAE7E,WAAW;QACX,iBAAiB,CAAC,iBAAiB,CAAC,8BAAyB,CAAC,CAAA;QAC9D,iBAAiB,CAAC,iBAAiB,CAAC,8BAAyB,CAAC,CAAA;IAChE,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,YAA0B;QAChD,WAAW;QACX,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,OAAO,CAAC,iCAAe,CAAC,CAAA;QAE/E,eAAe,CAAC,QAAQ,CACtB,IAAI,iBAAQ,CAAC;YACX,EAAE,EAAE,2CAA2C;YAC/C,KAAK,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;SAClC,CAAC,EACF,IAAI,iBAAQ,CAAC;YACX,EAAE,EAAE,2CAA2C;YAC/C,KAAK,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;SAClC,CAAC,CACH,CAAA;IACH,CAAC;CACF;AAnCD,wDAmCC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DiscoverFeaturesModuleConfigOptions defines the interface for the options of the DiscoverFeaturesModuleConfig class.
|
|
3
|
+
* This can contain optional parameters that have default values in the config class itself.
|
|
4
|
+
*/
|
|
5
|
+
export interface DiscoverFeaturesModuleConfigOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Whether to automatically accept feature queries. Applies to all protocol versions.
|
|
8
|
+
*
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
autoAcceptQueries?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class DiscoverFeaturesModuleConfig {
|
|
14
|
+
private options;
|
|
15
|
+
constructor(options?: DiscoverFeaturesModuleConfigOptions);
|
|
16
|
+
/** {@inheritDoc DiscoverFeaturesModuleConfigOptions.autoAcceptQueries} */
|
|
17
|
+
get autoAcceptQueries(): boolean;
|
|
18
|
+
}
|