@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,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.migrateCredentialExchangeRecordToV0_5 = migrateCredentialExchangeRecordToV0_5;
|
|
4
|
+
exports.getCredentialRole = getCredentialRole;
|
|
5
|
+
exports.migrateRole = migrateRole;
|
|
6
|
+
const core_1 = require("@credo-ts/core");
|
|
7
|
+
const credentials_1 = require("../../modules/credentials");
|
|
8
|
+
const repository_1 = require("../../repository");
|
|
9
|
+
const messageType_1 = require("../../util/messageType");
|
|
10
|
+
/**
|
|
11
|
+
* Migrates the {@link CredentialExchangeRecord} to 0.5 compatible format. It fetches all credential exchange records from
|
|
12
|
+
* storage and applies the needed updates to the records. After a record has been transformed, it is updated
|
|
13
|
+
* in storage and the next record will be transformed.
|
|
14
|
+
*
|
|
15
|
+
* The following transformations are applied:
|
|
16
|
+
* - {@link migrateRole}
|
|
17
|
+
*/
|
|
18
|
+
async function migrateCredentialExchangeRecordToV0_5(agent) {
|
|
19
|
+
agent.config.logger.info('Migrating credential exchange records to storage version 0.5');
|
|
20
|
+
const credentialRepository = agent.dependencyManager.resolve(credentials_1.CredentialRepository);
|
|
21
|
+
agent.config.logger.debug(`Fetching all credential records from storage`);
|
|
22
|
+
const credentialRecords = await credentialRepository.getAll(agent.context);
|
|
23
|
+
agent.config.logger.debug(`Found a total of ${credentialRecords.length} credential exchange records to update.`);
|
|
24
|
+
for (const credentialRecord of credentialRecords) {
|
|
25
|
+
agent.config.logger.debug(`Migrating credential exchange record with id ${credentialRecord.id} to storage version 0.5`);
|
|
26
|
+
await migrateRole(agent, credentialRecord);
|
|
27
|
+
// Save updated record
|
|
28
|
+
await credentialRepository.update(agent.context, credentialRecord);
|
|
29
|
+
agent.config.logger.debug(`Successfully migrated credential exchange record with id ${credentialRecord.id} to storage version 0.5`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const holderCredentialStates = [
|
|
33
|
+
credentials_1.CredentialState.Declined,
|
|
34
|
+
credentials_1.CredentialState.ProposalSent,
|
|
35
|
+
credentials_1.CredentialState.OfferReceived,
|
|
36
|
+
credentials_1.CredentialState.RequestSent,
|
|
37
|
+
credentials_1.CredentialState.CredentialReceived,
|
|
38
|
+
];
|
|
39
|
+
const issuerCredentialStates = [
|
|
40
|
+
credentials_1.CredentialState.ProposalReceived,
|
|
41
|
+
credentials_1.CredentialState.OfferSent,
|
|
42
|
+
credentials_1.CredentialState.RequestReceived,
|
|
43
|
+
credentials_1.CredentialState.CredentialIssued,
|
|
44
|
+
];
|
|
45
|
+
async function getCredentialRole(agent, credentialRecord) {
|
|
46
|
+
// Credentials will only have a value when a credential is received, meaning we're the holder
|
|
47
|
+
if (credentialRecord.credentials.length > 0) {
|
|
48
|
+
return credentials_1.CredentialRole.Holder;
|
|
49
|
+
}
|
|
50
|
+
// If credentialRecord.credentials doesn't have any values, and we're also not in state done it means we're the issuer.
|
|
51
|
+
else if (credentialRecord.state === credentials_1.CredentialState.Done) {
|
|
52
|
+
return credentials_1.CredentialRole.Issuer;
|
|
53
|
+
}
|
|
54
|
+
// For these states we know for certain that we're the holder
|
|
55
|
+
else if (holderCredentialStates.includes(credentialRecord.state)) {
|
|
56
|
+
return credentials_1.CredentialRole.Holder;
|
|
57
|
+
}
|
|
58
|
+
// For these states we know for certain that we're the issuer
|
|
59
|
+
else if (issuerCredentialStates.includes(credentialRecord.state)) {
|
|
60
|
+
return credentials_1.CredentialRole.Issuer;
|
|
61
|
+
}
|
|
62
|
+
// We now need to determine the role based on the didcomm message. Only the Abandoned state remains
|
|
63
|
+
// and we can't be certain of the role based on the state alone.
|
|
64
|
+
// Fetch any of the associated credential messages that we can use to determine the role
|
|
65
|
+
// Either one of these MUST be present or we can't determine the role.
|
|
66
|
+
const didCommMessageRepository = agent.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
67
|
+
const [didCommMessageRecord] = await didCommMessageRepository.findByQuery(agent.context, {
|
|
68
|
+
associatedRecordId: credentialRecord.id,
|
|
69
|
+
$or: [
|
|
70
|
+
// We can't be certain which messages will be present.
|
|
71
|
+
{ messageName: credentials_1.V2OfferCredentialMessage.type.messageName },
|
|
72
|
+
{ messageName: credentials_1.V2ProposeCredentialMessage.type.messageName },
|
|
73
|
+
{ messageName: credentials_1.V2RequestCredentialMessage.type.messageName },
|
|
74
|
+
],
|
|
75
|
+
});
|
|
76
|
+
if (!didCommMessageRecord) {
|
|
77
|
+
throw new core_1.CredoError(`Unable to determine the role of the credential exchange record with id ${credentialRecord.id} without any didcomm messages and state abandoned`);
|
|
78
|
+
}
|
|
79
|
+
// Maps the message name and the didcomm message role to the respective credential role
|
|
80
|
+
const roleStateMapping = {
|
|
81
|
+
[credentials_1.V2OfferCredentialMessage.type.messageName]: {
|
|
82
|
+
[repository_1.DidCommMessageRole.Sender]: credentials_1.CredentialRole.Issuer,
|
|
83
|
+
[repository_1.DidCommMessageRole.Receiver]: credentials_1.CredentialRole.Holder,
|
|
84
|
+
},
|
|
85
|
+
[credentials_1.V2ProposeCredentialMessage.type.messageName]: {
|
|
86
|
+
[repository_1.DidCommMessageRole.Sender]: credentials_1.CredentialRole.Holder,
|
|
87
|
+
[repository_1.DidCommMessageRole.Receiver]: credentials_1.CredentialRole.Issuer,
|
|
88
|
+
},
|
|
89
|
+
[credentials_1.V2RequestCredentialMessage.type.messageName]: {
|
|
90
|
+
[repository_1.DidCommMessageRole.Sender]: credentials_1.CredentialRole.Holder,
|
|
91
|
+
[repository_1.DidCommMessageRole.Receiver]: credentials_1.CredentialRole.Issuer,
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
const messageName = (0, messageType_1.parseMessageType)(didCommMessageRecord.message['@type']).messageName;
|
|
95
|
+
const credentialRole = roleStateMapping[messageName][didCommMessageRecord.role];
|
|
96
|
+
return credentialRole;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Add a role to the credential record.
|
|
100
|
+
*/
|
|
101
|
+
async function migrateRole(agent, credentialRecord) {
|
|
102
|
+
agent.config.logger.debug(`Adding role to record with id ${credentialRecord.id} to for version 0.4`);
|
|
103
|
+
credentialRecord.role = await getCredentialRole(agent, credentialRecord);
|
|
104
|
+
agent.config.logger.debug(`Successfully updated role to '${credentialRecord.role}' on credential record with id ${credentialRecord.id} to for version 0.4`);
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=credentialExchangeRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialExchangeRecord.js","sourceRoot":"","sources":["../../../src/updates/0.4-0.5/credentialExchangeRecord.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateV0_4ToV0_5 = updateV0_4ToV0_5;
|
|
4
|
+
const credentialExchangeRecord_1 = require("./credentialExchangeRecord");
|
|
5
|
+
const proofExchangeRecord_1 = require("./proofExchangeRecord");
|
|
6
|
+
async function updateV0_4ToV0_5(agent) {
|
|
7
|
+
await (0, credentialExchangeRecord_1.migrateCredentialExchangeRecordToV0_5)(agent);
|
|
8
|
+
await (0, proofExchangeRecord_1.migrateProofExchangeRecordToV0_5)(agent);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/updates/0.4-0.5/index.ts"],"names":[],"mappings":";;AAKA,4CAGC;AAND,yEAAkF;AAClF,+DAAwE;AAEjE,KAAK,UAAU,gBAAgB,CAA0B,KAAY;IAC1E,MAAM,IAAA,gEAAqC,EAAC,KAAK,CAAC,CAAA;IAClD,MAAM,IAAA,sDAAgC,EAAC,KAAK,CAAC,CAAA;AAC/C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BaseAgent } from '@credo-ts/core';
|
|
2
|
+
import { ProofRole, type ProofExchangeRecord } from '../../modules/proofs';
|
|
3
|
+
/**
|
|
4
|
+
* Migrates the {@link ProofExchangeExchangeRecord} to 0.5 compatible format. It fetches all proof exchange records from
|
|
5
|
+
* storage and applies the needed updates to the records. After a record has been transformed, it is updated
|
|
6
|
+
* in storage and the next record will be transformed.
|
|
7
|
+
*
|
|
8
|
+
* The following transformations are applied:
|
|
9
|
+
* - {@link migrateRole}
|
|
10
|
+
*/
|
|
11
|
+
export declare function migrateProofExchangeRecordToV0_5<Agent extends BaseAgent>(agent: Agent): Promise<void>;
|
|
12
|
+
export declare function getProofRole(agent: BaseAgent, proofRecord: ProofExchangeRecord): Promise<ProofRole>;
|
|
13
|
+
/**
|
|
14
|
+
* Add a role to the proof record.
|
|
15
|
+
*/
|
|
16
|
+
export declare function migrateRole<Agent extends BaseAgent>(agent: Agent, proofRecord: ProofExchangeRecord): Promise<void>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.migrateProofExchangeRecordToV0_5 = migrateProofExchangeRecordToV0_5;
|
|
4
|
+
exports.getProofRole = getProofRole;
|
|
5
|
+
exports.migrateRole = migrateRole;
|
|
6
|
+
const core_1 = require("@credo-ts/core");
|
|
7
|
+
const proofs_1 = require("../../modules/proofs");
|
|
8
|
+
const repository_1 = require("../../repository");
|
|
9
|
+
const messageType_1 = require("../../util/messageType");
|
|
10
|
+
/**
|
|
11
|
+
* Migrates the {@link ProofExchangeExchangeRecord} to 0.5 compatible format. It fetches all proof exchange records from
|
|
12
|
+
* storage and applies the needed updates to the records. After a record has been transformed, it is updated
|
|
13
|
+
* in storage and the next record will be transformed.
|
|
14
|
+
*
|
|
15
|
+
* The following transformations are applied:
|
|
16
|
+
* - {@link migrateRole}
|
|
17
|
+
*/
|
|
18
|
+
async function migrateProofExchangeRecordToV0_5(agent) {
|
|
19
|
+
agent.config.logger.info('Migrating proof exchange records to storage version 0.5');
|
|
20
|
+
const proofRepository = agent.dependencyManager.resolve(proofs_1.ProofRepository);
|
|
21
|
+
agent.config.logger.debug(`Fetching all proof records from storage`);
|
|
22
|
+
const proofRecords = await proofRepository.getAll(agent.context);
|
|
23
|
+
agent.config.logger.debug(`Found a total of ${proofRecords.length} proof exchange records to update.`);
|
|
24
|
+
for (const proofRecord of proofRecords) {
|
|
25
|
+
agent.config.logger.debug(`Migrating proof exchange record with id ${proofRecord.id} to storage version 0.5`);
|
|
26
|
+
await migrateRole(agent, proofRecord);
|
|
27
|
+
// Save updated record
|
|
28
|
+
await proofRepository.update(agent.context, proofRecord);
|
|
29
|
+
agent.config.logger.debug(`Successfully migrated proof exchange record with id ${proofRecord.id} to storage version 0.5`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const proverProofStates = [
|
|
33
|
+
proofs_1.ProofState.RequestReceived,
|
|
34
|
+
proofs_1.ProofState.ProposalSent,
|
|
35
|
+
proofs_1.ProofState.PresentationSent,
|
|
36
|
+
proofs_1.ProofState.Declined,
|
|
37
|
+
];
|
|
38
|
+
const verifierProofStates = [proofs_1.ProofState.RequestSent, proofs_1.ProofState.ProposalReceived, proofs_1.ProofState.PresentationReceived];
|
|
39
|
+
async function getProofRole(agent, proofRecord) {
|
|
40
|
+
// For these states we know for certain that we're the prover
|
|
41
|
+
if (proverProofStates.includes(proofRecord.state)) {
|
|
42
|
+
return proofs_1.ProofRole.Prover;
|
|
43
|
+
}
|
|
44
|
+
// For these states we know for certain that we're the verifier
|
|
45
|
+
else if (verifierProofStates.includes(proofRecord.state)) {
|
|
46
|
+
return proofs_1.ProofRole.Verifier;
|
|
47
|
+
}
|
|
48
|
+
// We now need to determine the role based on the didcomm message. Only the Done and Abandoned states
|
|
49
|
+
// remain and we can't be certain of the role based on the state alone.
|
|
50
|
+
// Fetch any of the associated proof messages that we can use to determine the role
|
|
51
|
+
// Either one of these MUST be present or we can't determine the role.
|
|
52
|
+
const didCommMessageRepository = agent.dependencyManager.resolve(repository_1.DidCommMessageRepository);
|
|
53
|
+
const [didCommMessageRecord] = await didCommMessageRepository.findByQuery(agent.context, {
|
|
54
|
+
associatedRecordId: proofRecord.id,
|
|
55
|
+
$or: [
|
|
56
|
+
// We can't be certain which messages will be present.
|
|
57
|
+
{ messageName: proofs_1.V2ProposePresentationMessage.type.messageName },
|
|
58
|
+
{ messageName: proofs_1.V2RequestPresentationMessage.type.messageName },
|
|
59
|
+
],
|
|
60
|
+
});
|
|
61
|
+
if (!didCommMessageRecord) {
|
|
62
|
+
throw new core_1.CredoError(`Unable to determine the role of the proof exchange record with id ${proofRecord.id} without any didcomm messages and state abandoned/done`);
|
|
63
|
+
}
|
|
64
|
+
// Maps the message name and the didcomm message role to the respective proof role
|
|
65
|
+
const roleStateMapping = {
|
|
66
|
+
[proofs_1.V2ProposePresentationMessage.type.messageName]: {
|
|
67
|
+
[repository_1.DidCommMessageRole.Sender]: proofs_1.ProofRole.Prover,
|
|
68
|
+
[repository_1.DidCommMessageRole.Receiver]: proofs_1.ProofRole.Verifier,
|
|
69
|
+
},
|
|
70
|
+
[proofs_1.V2RequestPresentationMessage.type.messageName]: {
|
|
71
|
+
[repository_1.DidCommMessageRole.Sender]: proofs_1.ProofRole.Verifier,
|
|
72
|
+
[repository_1.DidCommMessageRole.Receiver]: proofs_1.ProofRole.Prover,
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
const messageName = (0, messageType_1.parseMessageType)(didCommMessageRecord.message['@type']).messageName;
|
|
76
|
+
const proofRole = roleStateMapping[messageName][didCommMessageRecord.role];
|
|
77
|
+
return proofRole;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Add a role to the proof record.
|
|
81
|
+
*/
|
|
82
|
+
async function migrateRole(agent, proofRecord) {
|
|
83
|
+
agent.config.logger.debug(`Adding role to record with id ${proofRecord.id} to for version 0.5`);
|
|
84
|
+
proofRecord.role = await getProofRole(agent, proofRecord);
|
|
85
|
+
agent.config.logger.debug(`Successfully updated role to '${proofRecord.role}' on proof record with id ${proofRecord.id} to for version 0.5`);
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=proofExchangeRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proofExchangeRecord.js","sourceRoot":"","sources":["../../../src/updates/0.4-0.5/proofExchangeRecord.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isValidJweStructure = isValidJweStructure;
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
+
function isValidJweStructure(message) {
|
|
6
|
+
return Boolean(message &&
|
|
7
|
+
typeof message === 'object' &&
|
|
8
|
+
message !== null &&
|
|
9
|
+
typeof message.protected === 'string' &&
|
|
10
|
+
message.iv &&
|
|
11
|
+
message.ciphertext &&
|
|
12
|
+
message.tag);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=JWE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JWE.js","sourceRoot":"","sources":["../../src/util/JWE.ts"],"names":[],"mappings":";;AAGA,kDAUC;AAXD,8DAA8D;AAC9D,SAAgB,mBAAmB,CAAC,OAAY;IAC9C,OAAO,OAAO,CACZ,OAAO;QACL,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,KAAK,IAAI;QAChB,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ;QACrC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,UAAU;QAClB,OAAO,CAAC,GAAG,CACd,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Attachment } from '../decorators/attachment/Attachment';
|
|
2
|
+
export interface LinkedAttachmentOptions {
|
|
3
|
+
name: string;
|
|
4
|
+
attachment: Attachment;
|
|
5
|
+
}
|
|
6
|
+
export declare class LinkedAttachment {
|
|
7
|
+
constructor(options: LinkedAttachmentOptions);
|
|
8
|
+
/**
|
|
9
|
+
* The name that will be used to generate the linked credential
|
|
10
|
+
*/
|
|
11
|
+
attributeName: string;
|
|
12
|
+
/**
|
|
13
|
+
* The attachment that needs to be linked to the credential
|
|
14
|
+
*/
|
|
15
|
+
attachment: Attachment;
|
|
16
|
+
/**
|
|
17
|
+
* Generates an ID based on the data in the attachment
|
|
18
|
+
*
|
|
19
|
+
* @param attachment the attachment that requires a hashlink
|
|
20
|
+
* @returns the id
|
|
21
|
+
*/
|
|
22
|
+
private getId;
|
|
23
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.LinkedAttachment = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const Attachment_1 = require("../decorators/attachment/Attachment");
|
|
16
|
+
const attachment_1 = require("./attachment");
|
|
17
|
+
class LinkedAttachment {
|
|
18
|
+
constructor(options) {
|
|
19
|
+
this.attributeName = options.name;
|
|
20
|
+
this.attachment = options.attachment;
|
|
21
|
+
this.attachment.id = this.getId(options.attachment);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Generates an ID based on the data in the attachment
|
|
25
|
+
*
|
|
26
|
+
* @param attachment the attachment that requires a hashlink
|
|
27
|
+
* @returns the id
|
|
28
|
+
*/
|
|
29
|
+
getId(attachment) {
|
|
30
|
+
// Take the second element since the id property
|
|
31
|
+
// of a decorator MUST not contain a colon and has a maximum size of 64 characters
|
|
32
|
+
return (0, attachment_1.encodeAttachment)(attachment).split(':')[1].substring(0, 64);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.LinkedAttachment = LinkedAttachment;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], LinkedAttachment.prototype, "attributeName", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Type)(() => Attachment_1.Attachment),
|
|
42
|
+
__metadata("design:type", Attachment_1.Attachment
|
|
43
|
+
/**
|
|
44
|
+
* Generates an ID based on the data in the attachment
|
|
45
|
+
*
|
|
46
|
+
* @param attachment the attachment that requires a hashlink
|
|
47
|
+
* @returns the id
|
|
48
|
+
*/
|
|
49
|
+
)
|
|
50
|
+
], LinkedAttachment.prototype, "attachment", void 0);
|
|
51
|
+
//# sourceMappingURL=LinkedAttachment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkedAttachment.js","sourceRoot":"","sources":["../../src/util/LinkedAttachment.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAwC;AACxC,qDAA0C;AAE1C,oEAAgE;AAEhE,6CAA+C;AAO/C,MAAa,gBAAgB;IAC3B,YAAmB,OAAgC;QACjD,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,IAAI,CAAA;QACjC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAA;QACpC,IAAI,CAAC,UAAU,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IACrD,CAAC;IAcD;;;;;OAKG;IACK,KAAK,CAAC,UAAsB;QAClC,gDAAgD;QAChD,kFAAkF;QAClF,OAAO,IAAA,6BAAgB,EAAC,UAAU,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IACpE,CAAC;CACF;AA9BD,4CA8BC;AAnBQ;IADN,IAAA,0BAAQ,GAAE;;uDACiB;AAMrB;IADN,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAU,CAAC;8BACJ,uBAAU;IAE7B;;;;;OAKG;;oDAP0B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Attachment } from '../decorators/attachment/Attachment';
|
|
2
|
+
import type { HashName, BaseName } from '@credo-ts/core';
|
|
3
|
+
/**
|
|
4
|
+
* Encodes an attachment based on the `data` property
|
|
5
|
+
*
|
|
6
|
+
* @param attachment The attachment that needs to be encoded
|
|
7
|
+
* @param hashAlgorithm The hashing algorithm that is going to be used
|
|
8
|
+
* @param baseName The base encoding name that is going to be used
|
|
9
|
+
* @returns A hashlink based on the attachment data
|
|
10
|
+
*/
|
|
11
|
+
export declare function encodeAttachment(attachment: Attachment, hashAlgorithm?: HashName, baseName?: BaseName): string;
|
|
12
|
+
/**
|
|
13
|
+
* Checks if an attachment is a linked Attachment
|
|
14
|
+
*
|
|
15
|
+
* @param attachment the attachment that has to be validated
|
|
16
|
+
* @returns a boolean whether the attachment is a linkedAttachment
|
|
17
|
+
*/
|
|
18
|
+
export declare function isLinkedAttachment(attachment: Attachment): boolean;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.encodeAttachment = encodeAttachment;
|
|
4
|
+
exports.isLinkedAttachment = isLinkedAttachment;
|
|
5
|
+
const core_1 = require("@credo-ts/core");
|
|
6
|
+
/**
|
|
7
|
+
* Encodes an attachment based on the `data` property
|
|
8
|
+
*
|
|
9
|
+
* @param attachment The attachment that needs to be encoded
|
|
10
|
+
* @param hashAlgorithm The hashing algorithm that is going to be used
|
|
11
|
+
* @param baseName The base encoding name that is going to be used
|
|
12
|
+
* @returns A hashlink based on the attachment data
|
|
13
|
+
*/
|
|
14
|
+
function encodeAttachment(attachment, hashAlgorithm = 'sha-256', baseName = 'base58btc') {
|
|
15
|
+
if (attachment.data.sha256) {
|
|
16
|
+
return `hl:${attachment.data.sha256}`;
|
|
17
|
+
}
|
|
18
|
+
else if (attachment.data.base64) {
|
|
19
|
+
return core_1.HashlinkEncoder.encode(core_1.TypedArrayEncoder.fromBase64(attachment.data.base64), hashAlgorithm, baseName);
|
|
20
|
+
}
|
|
21
|
+
else if (attachment.data.json) {
|
|
22
|
+
throw new core_1.CredoError(`Attachment: (${attachment.id}) has json encoded data. This is currently not supported`);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
throw new core_1.CredoError(`Attachment: (${attachment.id}) has no data to create a link with`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Checks if an attachment is a linked Attachment
|
|
30
|
+
*
|
|
31
|
+
* @param attachment the attachment that has to be validated
|
|
32
|
+
* @returns a boolean whether the attachment is a linkedAttachment
|
|
33
|
+
*/
|
|
34
|
+
function isLinkedAttachment(attachment) {
|
|
35
|
+
return core_1.HashlinkEncoder.isValid(`hl:${attachment.id}`);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=attachment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.js","sourceRoot":"","sources":["../../src/util/attachment.ts"],"names":[],"mappings":";;AAaA,4CAcC;AAQD,gDAEC;AAlCD,yCAA+E;AAE/E;;;;;;;GAOG;AACH,SAAgB,gBAAgB,CAC9B,UAAsB,EACtB,gBAA0B,SAAS,EACnC,WAAqB,WAAW;IAEhC,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QAC3B,OAAO,MAAM,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,CAAA;IACvC,CAAC;SAAM,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QAClC,OAAO,sBAAe,CAAC,MAAM,CAAC,wBAAiB,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAA;IAC9G,CAAC;SAAM,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAChC,MAAM,IAAI,iBAAU,CAAC,gBAAgB,UAAU,CAAC,EAAE,0DAA0D,CAAC,CAAA;IAC/G,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,iBAAU,CAAC,gBAAgB,UAAU,CAAC,EAAE,qCAAqC,CAAC,CAAA;IAC1F,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,UAAsB;IACvD,OAAO,sBAAe,CAAC,OAAO,CAAC,MAAM,UAAU,CAAC,EAAE,EAAE,CAAC,CAAA;AACvD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DidDocument } from '@credo-ts/core';
|
|
2
|
+
import { Key } from '@credo-ts/core';
|
|
3
|
+
/**
|
|
4
|
+
* Tries to find a matching Ed25519 key to the supplied X25519 key
|
|
5
|
+
* @param x25519Key X25519 key
|
|
6
|
+
* @param didDocument Did document containing all the keys
|
|
7
|
+
* @returns a matching Ed25519 key or `undefined` (if no matching key found)
|
|
8
|
+
*/
|
|
9
|
+
export declare function findMatchingEd25519Key(x25519Key: Key, didDocument: DidDocument): Key | undefined;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findMatchingEd25519Key = findMatchingEd25519Key;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
/**
|
|
6
|
+
* Tries to find a matching Ed25519 key to the supplied X25519 key
|
|
7
|
+
* @param x25519Key X25519 key
|
|
8
|
+
* @param didDocument Did document containing all the keys
|
|
9
|
+
* @returns a matching Ed25519 key or `undefined` (if no matching key found)
|
|
10
|
+
*/
|
|
11
|
+
function findMatchingEd25519Key(x25519Key, didDocument) {
|
|
12
|
+
if (x25519Key.keyType !== core_1.KeyType.X25519)
|
|
13
|
+
return undefined;
|
|
14
|
+
const verificationMethods = didDocument.verificationMethod ?? [];
|
|
15
|
+
const keyAgreements = didDocument.keyAgreement ?? [];
|
|
16
|
+
const authentications = didDocument.authentication ?? [];
|
|
17
|
+
const allKeyReferences = [
|
|
18
|
+
...verificationMethods,
|
|
19
|
+
...authentications.filter((keyAgreement) => typeof keyAgreement !== 'string'),
|
|
20
|
+
...keyAgreements.filter((keyAgreement) => typeof keyAgreement !== 'string'),
|
|
21
|
+
];
|
|
22
|
+
return allKeyReferences
|
|
23
|
+
.map((keyReference) => (0, core_1.getKeyFromVerificationMethod)(didDocument.dereferenceKey(keyReference.id)))
|
|
24
|
+
.filter((key) => key?.keyType === core_1.KeyType.Ed25519)
|
|
25
|
+
.find((keyEd25519) => {
|
|
26
|
+
const keyX25519 = core_1.Key.fromPublicKey((0, core_1.convertPublicKeyToX25519)(keyEd25519.publicKey), core_1.KeyType.X25519);
|
|
27
|
+
return keyX25519.publicKeyBase58 === x25519Key.publicKeyBase58;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=matchingEd25519Key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchingEd25519Key.js","sourceRoot":"","sources":["../../src/util/matchingEd25519Key.ts"],"names":[],"mappings":";;AAUA,wDAmBC;AA3BD,yCAAqG;AAErG;;;;;GAKG;AACH,SAAgB,sBAAsB,CAAC,SAAc,EAAE,WAAwB;IAC7E,IAAI,SAAS,CAAC,OAAO,KAAK,cAAO,CAAC,MAAM;QAAE,OAAO,SAAS,CAAA;IAE1D,MAAM,mBAAmB,GAAG,WAAW,CAAC,kBAAkB,IAAI,EAAE,CAAA;IAChE,MAAM,aAAa,GAAG,WAAW,CAAC,YAAY,IAAI,EAAE,CAAA;IACpD,MAAM,eAAe,GAAG,WAAW,CAAC,cAAc,IAAI,EAAE,CAAA;IACxD,MAAM,gBAAgB,GAAyB;QAC7C,GAAG,mBAAmB;QACtB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,YAAY,EAAsC,EAAE,CAAC,OAAO,YAAY,KAAK,QAAQ,CAAC;QACjH,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,YAAY,EAAsC,EAAE,CAAC,OAAO,YAAY,KAAK,QAAQ,CAAC;KAChH,CAAA;IAED,OAAO,gBAAgB;SACpB,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAA,mCAA4B,EAAC,WAAW,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;SAChG,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,cAAO,CAAC,OAAO,CAAC;SACjD,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE;QACnB,MAAM,SAAS,GAAG,UAAG,CAAC,aAAa,CAAC,IAAA,+BAAwB,EAAC,UAAU,CAAC,SAAS,CAAC,EAAE,cAAO,CAAC,MAAM,CAAC,CAAA;QACnG,OAAO,SAAS,CAAC,eAAe,KAAK,SAAS,CAAC,eAAe,CAAA;IAChE,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { PlaintextMessage } from '../types';
|
|
2
|
+
import type { ValidationOptions } from 'class-validator';
|
|
3
|
+
export interface ParsedDidCommProtocolUri {
|
|
4
|
+
/**
|
|
5
|
+
* Version of the protocol
|
|
6
|
+
*
|
|
7
|
+
* @example 1.0
|
|
8
|
+
*/
|
|
9
|
+
protocolVersion: string;
|
|
10
|
+
/**
|
|
11
|
+
* Major version of the protocol
|
|
12
|
+
*
|
|
13
|
+
* @example 1
|
|
14
|
+
*/
|
|
15
|
+
protocolMajorVersion: number;
|
|
16
|
+
/**
|
|
17
|
+
* Minor version of the protocol
|
|
18
|
+
*
|
|
19
|
+
* @example 0
|
|
20
|
+
*/
|
|
21
|
+
protocolMinorVersion: number;
|
|
22
|
+
/**
|
|
23
|
+
* Name of the protocol
|
|
24
|
+
*
|
|
25
|
+
* @example connections
|
|
26
|
+
*/
|
|
27
|
+
protocolName: string;
|
|
28
|
+
/**
|
|
29
|
+
* Document uri of the message.
|
|
30
|
+
*
|
|
31
|
+
* @example https://didcomm.org
|
|
32
|
+
*/
|
|
33
|
+
documentUri: string;
|
|
34
|
+
/**
|
|
35
|
+
* Uri identifier of the protocol. Includes the
|
|
36
|
+
* documentUri, protocolName and protocolVersion.
|
|
37
|
+
* Useful when working with feature discovery
|
|
38
|
+
*
|
|
39
|
+
* @example https://didcomm.org/connections/1.0
|
|
40
|
+
*/
|
|
41
|
+
protocolUri: string;
|
|
42
|
+
}
|
|
43
|
+
export interface ParsedMessageType extends ParsedDidCommProtocolUri {
|
|
44
|
+
/**
|
|
45
|
+
* Message name
|
|
46
|
+
*
|
|
47
|
+
* @example request
|
|
48
|
+
*/
|
|
49
|
+
messageName: string;
|
|
50
|
+
/**
|
|
51
|
+
* Uri identifier of the message. Includes all parts
|
|
52
|
+
* or the message type.
|
|
53
|
+
*
|
|
54
|
+
* @example https://didcomm.org/connections/1.0/request
|
|
55
|
+
*/
|
|
56
|
+
messageTypeUri: string;
|
|
57
|
+
}
|
|
58
|
+
export declare function parseMessageType(messageType: string): ParsedMessageType;
|
|
59
|
+
export declare function parseDidCommProtocolUri(didCommProtocolUri: string): ParsedDidCommProtocolUri;
|
|
60
|
+
/**
|
|
61
|
+
* Check whether the incoming didcomm protocol uri is a protocol uri that can be handled by comparing it to the expected didcomm protocol uri.
|
|
62
|
+
* In this case the expected protocol uri is e.g. the handshake protocol supported (https://didcomm.org/connections/1.0), and the incoming protocol uri
|
|
63
|
+
* is the uri that is parsed from the incoming out of band invitation handshake_protocols.
|
|
64
|
+
*
|
|
65
|
+
* The method will make sure the following fields are equal:
|
|
66
|
+
* - documentUri
|
|
67
|
+
* - protocolName
|
|
68
|
+
* - majorVersion
|
|
69
|
+
*
|
|
70
|
+
* If allowLegacyDidSovPrefixMismatch is true (default) it will allow for the case where the incoming protocol uri still has the legacy
|
|
71
|
+
* did:sov:BzCbsNYhMrjHiqZDTUASHg;spec did prefix, but the expected message type does not. This only works for incoming messages with a prefix
|
|
72
|
+
* of did:sov:BzCbsNYhMrjHiqZDTUASHg;spec and the expected message type having a prefix value of https:/didcomm.org
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* const incomingProtocolUri = parseDidCommProtocolUri('https://didcomm.org/connections/1.0')
|
|
76
|
+
* const expectedProtocolUri = parseDidCommProtocolUri('https://didcomm.org/connections/1.4')
|
|
77
|
+
*
|
|
78
|
+
* // Returns true because the incoming protocol uri is equal to the expected protocol uri, except for
|
|
79
|
+
* // the minor version, which is lower
|
|
80
|
+
* const isIncomingProtocolUriSupported = supportsIncomingDidCommProtocolUri(incomingProtocolUri, expectedProtocolUri)
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* const incomingProtocolUri = parseDidCommProtocolUri('did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0')
|
|
84
|
+
* const expectedProtocolUri = parseDidCommProtocolUri('https://didcomm.org/connections/1.0')
|
|
85
|
+
*
|
|
86
|
+
* // Returns true because the incoming protocol uri is equal to the expected protocol uri, except for
|
|
87
|
+
* // the legacy did sov prefix.
|
|
88
|
+
* const isIncomingProtocolUriSupported = supportsIncomingDidCommProtocolUri(incomingProtocolUri, expectedProtocolUri)
|
|
89
|
+
*/
|
|
90
|
+
export declare function supportsIncomingDidCommProtocolUri(incomingProtocolUri: ParsedDidCommProtocolUri, expectedProtocolUri: ParsedDidCommProtocolUri, { allowLegacyDidSovPrefixMismatch }?: {
|
|
91
|
+
allowLegacyDidSovPrefixMismatch?: boolean;
|
|
92
|
+
}): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Check whether the incoming message type is a message type that can be handled by comparing it to the expected message type.
|
|
95
|
+
* In this case the expected message type is e.g. the type declared on an agent message class, and the incoming message type is the type
|
|
96
|
+
* that is parsed from the incoming JSON.
|
|
97
|
+
*
|
|
98
|
+
* The method will make sure the following fields are equal:
|
|
99
|
+
* - documentUri
|
|
100
|
+
* - protocolName
|
|
101
|
+
* - majorVersion
|
|
102
|
+
* - messageName
|
|
103
|
+
*
|
|
104
|
+
* If allowLegacyDidSovPrefixMismatch is true (default) it will allow for the case where the incoming message type still has the legacy
|
|
105
|
+
* did:sov:BzCbsNYhMrjHiqZDTUASHg;spec did prefix, but the expected message type does not. This only works for incoming messages with a prefix
|
|
106
|
+
* of did:sov:BzCbsNYhMrjHiqZDTUASHg;spec and the expected message type having a prefix value of https:/didcomm.org
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* const incomingMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')
|
|
110
|
+
* const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.4/request')
|
|
111
|
+
*
|
|
112
|
+
* // Returns true because the incoming message type is equal to the expected message type, except for
|
|
113
|
+
* // the minor version, which is lower
|
|
114
|
+
* const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* const incomingMessageType = parseMessageType('did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/request')
|
|
118
|
+
* const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')
|
|
119
|
+
*
|
|
120
|
+
* // Returns true because the incoming message type is equal to the expected message type, except for
|
|
121
|
+
* // the legacy did sov prefix.
|
|
122
|
+
* const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)
|
|
123
|
+
*/
|
|
124
|
+
export declare function supportsIncomingMessageType(incomingMessageType: ParsedMessageType, expectedMessageType: ParsedMessageType, { allowLegacyDidSovPrefixMismatch }?: {
|
|
125
|
+
allowLegacyDidSovPrefixMismatch?: boolean;
|
|
126
|
+
}): boolean;
|
|
127
|
+
export declare function canHandleMessageType(messageClass: {
|
|
128
|
+
type: ParsedMessageType;
|
|
129
|
+
}, messageType: ParsedMessageType): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* class-validator decorator to check if the string message type value matches with the
|
|
132
|
+
* expected message type. This uses {@link supportsIncomingMessageType}.
|
|
133
|
+
*/
|
|
134
|
+
export declare function IsValidMessageType(messageType: ParsedMessageType, validationOptions?: ValidationOptions): PropertyDecorator;
|
|
135
|
+
export declare function replaceLegacyDidSovPrefixOnMessage(message: PlaintextMessage | Record<string, unknown>): void;
|
|
136
|
+
export declare function replaceNewDidCommPrefixWithLegacyDidSovOnMessage(message: Record<string, unknown>): void;
|
|
137
|
+
export declare function replaceLegacyDidSovPrefix(messageType: string): string;
|
|
138
|
+
export declare function replaceNewDidCommPrefixWithLegacyDidSov(messageType: string): string;
|