@credo-ts/didcomm 0.6.0-pr-2195-20250226100854 → 0.6.0-pr-2209-20250321171013
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/AgentMessage.d.ts +1 -1
- package/build/BaseMessage.d.ts +1 -1
- package/build/DidCommApi.d.ts +1 -1
- package/build/DidCommModule.d.ts +1 -1
- package/build/EnvelopeService.d.ts +1 -1
- package/build/EnvelopeService.js +1 -1
- package/build/EnvelopeService.js.map +1 -1
- package/build/Events.d.ts +1 -1
- package/build/FeatureRegistry.d.ts +1 -1
- package/build/MessageHandlerRegistry.d.ts +1 -1
- package/build/MessageHandlerRegistry.js +3 -3
- package/build/MessageHandlerRegistry.js.map +1 -1
- package/build/MessageReceiver.js +1 -1
- package/build/MessageSender.js +4 -4
- package/build/MessageSender.js.map +1 -1
- package/build/TransportService.d.ts +1 -1
- package/build/TransportService.js +2 -2
- package/build/TransportService.js.map +1 -1
- package/build/decorators/attachment/Attachment.js +2 -5
- package/build/decorators/attachment/Attachment.js.map +1 -1
- package/build/decorators/service/ServiceDecoratorExtension.d.ts +1 -1
- package/build/decorators/transport/TransportDecoratorExtension.d.ts +1 -1
- package/build/decorators/transport/TransportDecoratorExtension.js +2 -2
- package/build/decorators/transport/TransportDecoratorExtension.js.map +1 -1
- package/build/getOutboundMessageContext.d.ts +1 -1
- package/build/getOutboundMessageContext.js +2 -3
- package/build/getOutboundMessageContext.js.map +1 -1
- package/build/handlers/MessageHandler.d.ts +1 -1
- package/build/handlers/MessageHandlerMiddleware.d.ts +1 -3
- package/build/handlers/MessageHandlerMiddleware.js +2 -1
- package/build/handlers/MessageHandlerMiddleware.js.map +1 -1
- package/build/models/InboundMessageContext.d.ts +2 -2
- package/build/models/OutboundMessageContext.d.ts +2 -2
- package/build/models/OutboundMessageContext.js.map +1 -1
- package/build/models/features/Feature.js +1 -1
- package/build/models/features/Feature.js.map +1 -1
- package/build/modules/basic-messages/BasicMessageEvents.d.ts +1 -1
- package/build/modules/basic-messages/BasicMessagesApi.d.ts +1 -1
- package/build/modules/basic-messages/handlers/BasicMessageHandler.d.ts +1 -1
- package/build/modules/basic-messages/handlers/BasicMessageHandler.js +1 -0
- package/build/modules/basic-messages/handlers/BasicMessageHandler.js.map +1 -1
- package/build/modules/basic-messages/repository/BasicMessageRecord.d.ts +1 -1
- package/build/modules/basic-messages/services/BasicMessageService.d.ts +1 -1
- package/build/modules/connections/ConnectionEvents.d.ts +1 -1
- package/build/modules/connections/ConnectionsApi.d.ts +4 -4
- package/build/modules/connections/ConnectionsApi.js +3 -0
- package/build/modules/connections/ConnectionsApi.js.map +1 -1
- package/build/modules/connections/ConnectionsModule.d.ts +1 -1
- package/build/modules/connections/ConnectionsModuleConfig.d.ts +1 -1
- package/build/modules/connections/ConnectionsModuleConfig.js.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.d.ts +4 -4
- package/build/modules/connections/DidExchangeProtocol.js +5 -2
- package/build/modules/connections/DidExchangeProtocol.js.map +1 -1
- package/build/modules/connections/DidExchangeStateMachine.d.ts +1 -1
- package/build/modules/connections/DidExchangeStateMachine.js +5 -4
- package/build/modules/connections/DidExchangeStateMachine.js.map +1 -1
- package/build/modules/connections/TrustPingEvents.d.ts +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.d.ts +1 -1
- package/build/modules/connections/errors/ConnectionProblemReportError.js.map +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts +1 -1
- package/build/modules/connections/errors/DidExchangeProblemReportError.js.map +1 -1
- package/build/modules/connections/handlers/AckMessageHandler.d.ts +1 -1
- package/build/modules/connections/handlers/AckMessageHandler.js +1 -0
- package/build/modules/connections/handlers/AckMessageHandler.js.map +1 -1
- package/build/modules/connections/handlers/ConnectionProblemReportHandler.d.ts +1 -1
- package/build/modules/connections/handlers/ConnectionProblemReportHandler.js +1 -0
- package/build/modules/connections/handlers/ConnectionProblemReportHandler.js.map +1 -1
- package/build/modules/connections/handlers/ConnectionRequestHandler.d.ts +1 -1
- package/build/modules/connections/handlers/ConnectionResponseHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.js +3 -2
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.js.map +1 -1
- package/build/modules/connections/handlers/DidExchangeRequestHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidExchangeResponseHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidRotateAckHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidRotateAckHandler.js +1 -0
- package/build/modules/connections/handlers/DidRotateAckHandler.js.map +1 -1
- package/build/modules/connections/handlers/DidRotateProblemReportHandler.d.ts +1 -1
- package/build/modules/connections/handlers/DidRotateProblemReportHandler.js +1 -0
- package/build/modules/connections/handlers/DidRotateProblemReportHandler.js.map +1 -1
- package/build/modules/connections/handlers/HangupHandler.d.ts +1 -1
- package/build/modules/connections/handlers/HangupHandler.js +1 -0
- package/build/modules/connections/handlers/HangupHandler.js.map +1 -1
- package/build/modules/connections/handlers/TrustPingResponseMessageHandler.d.ts +1 -1
- package/build/modules/connections/handlers/TrustPingResponseMessageHandler.js +2 -1
- package/build/modules/connections/handlers/TrustPingResponseMessageHandler.js.map +1 -1
- package/build/modules/connections/messages/ConnectionInvitationMessage.js +2 -5
- package/build/modules/connections/messages/ConnectionInvitationMessage.js.map +1 -1
- package/build/modules/connections/messages/ConnectionProblemReportMessage.d.ts +0 -5
- package/build/modules/connections/messages/ConnectionProblemReportMessage.js +2 -6
- package/build/modules/connections/messages/ConnectionProblemReportMessage.js.map +1 -1
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.d.ts +0 -1
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.js +2 -2
- package/build/modules/connections/messages/DidExchangeProblemReportMessage.js.map +1 -1
- package/build/modules/connections/messages/DidRotateAckMessage.d.ts +0 -5
- package/build/modules/connections/messages/DidRotateAckMessage.js +2 -6
- package/build/modules/connections/messages/DidRotateAckMessage.js.map +1 -1
- package/build/modules/connections/messages/DidRotateProblemReportMessage.d.ts +0 -1
- package/build/modules/connections/messages/DidRotateProblemReportMessage.js +2 -2
- package/build/modules/connections/messages/DidRotateProblemReportMessage.js.map +1 -1
- package/build/modules/connections/models/did/DidDoc.d.ts +1 -1
- package/build/modules/connections/models/did/authentication/index.js +5 -9
- package/build/modules/connections/models/did/authentication/index.js.map +1 -1
- package/build/modules/connections/repository/ConnectionRecord.d.ts +2 -2
- package/build/modules/connections/repository/ConnectionRecord.js +2 -1
- package/build/modules/connections/repository/ConnectionRecord.js.map +1 -1
- package/build/modules/connections/repository/ConnectionRepository.d.ts +1 -1
- package/build/modules/connections/services/ConnectionService.d.ts +2 -2
- package/build/modules/connections/services/ConnectionService.js +3 -3
- package/build/modules/connections/services/ConnectionService.js.map +1 -1
- package/build/modules/connections/services/DidRotateService.d.ts +3 -3
- package/build/modules/connections/services/DidRotateService.js +4 -1
- package/build/modules/connections/services/DidRotateService.js.map +1 -1
- package/build/modules/connections/services/helpers.d.ts +1 -1
- package/build/modules/connections/services/helpers.js +6 -6
- package/build/modules/connections/services/helpers.js.map +1 -1
- package/build/modules/credentials/CredentialEvents.d.ts +1 -1
- package/build/modules/credentials/CredentialsApi.d.ts +2 -2
- package/build/modules/credentials/CredentialsApi.js +3 -1
- package/build/modules/credentials/CredentialsApi.js.map +1 -1
- package/build/modules/credentials/CredentialsModule.d.ts +1 -1
- package/build/modules/credentials/formats/CredentialFormatService.d.ts +2 -2
- package/build/modules/credentials/formats/CredentialFormatServiceOptions.d.ts +2 -2
- package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.d.ts +2 -2
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.d.ts +1 -1
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.d.ts +15 -15
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js +14 -14
- package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js.map +1 -1
- package/build/modules/credentials/protocol/BaseCredentialProtocol.d.ts +3 -3
- package/build/modules/credentials/protocol/CredentialProtocol.d.ts +2 -2
- package/build/modules/credentials/protocol/CredentialProtocolOptions.d.ts +1 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.d.ts +1 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.js +1 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.js.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.d.ts +1 -1
- package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.js +1 -0
- package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.js.map +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.d.ts +1 -1
- package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.js +1 -1
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.d.ts +1 -1
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.d.ts +2 -2
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js +76 -82
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.d.ts +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.js +1 -0
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.js.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.d.ts +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.js +1 -0
- package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.js.map +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.js +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.js +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.js +1 -1
- package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.js +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.d.ts +1 -6
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js +2 -6
- package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.d.ts +0 -5
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js +2 -6
- package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js.map +1 -1
- package/build/modules/credentials/repository/CredentialExchangeRecord.d.ts +1 -1
- package/build/modules/credentials/repository/CredentialExchangeRecord.js +4 -3
- package/build/modules/credentials/repository/CredentialExchangeRecord.js.map +1 -1
- package/build/modules/credentials/util/previewAttributes.js +4 -1
- package/build/modules/credentials/util/previewAttributes.js.map +1 -1
- package/build/modules/discover-features/DiscoverFeaturesApi.d.ts +1 -1
- package/build/modules/discover-features/DiscoverFeaturesApi.js +4 -1
- package/build/modules/discover-features/DiscoverFeaturesApi.js.map +1 -1
- package/build/modules/discover-features/DiscoverFeaturesApiOptions.d.ts +1 -1
- package/build/modules/discover-features/DiscoverFeaturesEvents.d.ts +2 -2
- package/build/modules/discover-features/DiscoverFeaturesModule.d.ts +1 -1
- package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.d.ts +2 -2
- package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.d.ts +1 -1
- package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.js +1 -0
- package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.js.map +1 -1
- package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.d.ts +3 -3
- package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.d.ts +1 -1
- package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.js +1 -0
- package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.js.map +1 -1
- package/build/modules/discover-features/services/DiscoverFeaturesService.d.ts +2 -2
- package/build/modules/message-pickup/MessagePickupApi.d.ts +1 -1
- package/build/modules/message-pickup/MessagePickupApi.js +3 -1
- package/build/modules/message-pickup/MessagePickupApi.js.map +1 -1
- package/build/modules/message-pickup/MessagePickupApiOptions.d.ts +6 -6
- package/build/modules/message-pickup/MessagePickupEvents.d.ts +2 -2
- package/build/modules/message-pickup/MessagePickupModule.d.ts +1 -1
- package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.d.ts +4 -4
- package/build/modules/message-pickup/protocol/MessagePickupProtocol.d.ts +3 -3
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.d.ts +2 -2
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js +2 -2
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.d.ts +5 -5
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js +2 -2
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js.map +1 -1
- package/build/modules/message-pickup/services/MessagePickupSessionService.d.ts +3 -3
- package/build/modules/message-pickup/services/MessagePickupSessionService.js +2 -2
- package/build/modules/message-pickup/services/MessagePickupSessionService.js.map +1 -1
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js +2 -2
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js.map +1 -1
- package/build/modules/oob/OutOfBandApi.d.ts +2 -2
- package/build/modules/oob/OutOfBandApi.js +7 -5
- package/build/modules/oob/OutOfBandApi.js.map +1 -1
- package/build/modules/oob/OutOfBandModule.d.ts +1 -1
- package/build/modules/oob/OutOfBandService.d.ts +2 -2
- package/build/modules/oob/converters.js +2 -0
- package/build/modules/oob/converters.js.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.js +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.js.map +1 -1
- package/build/modules/oob/domain/OutOfBandEvents.d.ts +2 -2
- package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.d.ts +1 -1
- package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.js +1 -0
- package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.js.map +1 -1
- package/build/modules/oob/messages/OutOfBandInvitation.js +5 -9
- package/build/modules/oob/messages/OutOfBandInvitation.js.map +1 -1
- package/build/modules/oob/repository/OutOfBandRecord.d.ts +2 -2
- package/build/modules/oob/repository/OutOfBandRecord.js +1 -0
- package/build/modules/oob/repository/OutOfBandRecord.js.map +1 -1
- package/build/modules/proofs/ProofEvents.d.ts +1 -1
- package/build/modules/proofs/ProofsApi.d.ts +2 -2
- package/build/modules/proofs/ProofsApi.js +3 -1
- package/build/modules/proofs/ProofsApi.js.map +1 -1
- package/build/modules/proofs/ProofsModule.d.ts +1 -1
- package/build/modules/proofs/formats/ProofFormatService.d.ts +2 -2
- package/build/modules/proofs/formats/ProofFormatServiceOptions.d.ts +2 -2
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.d.ts +2 -3
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.d.ts +3 -3
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js +5 -7
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js.map +1 -1
- package/build/modules/proofs/protocol/BaseProofProtocol.d.ts +3 -3
- package/build/modules/proofs/protocol/ProofProtocol.d.ts +2 -2
- package/build/modules/proofs/protocol/ProofProtocolOptions.d.ts +1 -1
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.d.ts +1 -1
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js +4 -6
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js.map +1 -1
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.d.ts +1 -1
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.js +53 -57
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.js.map +1 -1
- package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.js.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.d.ts +1 -1
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.js +1 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.js.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.js +1 -1
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.d.ts +1 -1
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.js +1 -0
- package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.js.map +1 -1
- package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.js +1 -1
- package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.js +1 -1
- package/build/modules/proofs/repository/ProofExchangeRecord.d.ts +1 -1
- package/build/modules/proofs/repository/ProofExchangeRecord.js +3 -2
- package/build/modules/proofs/repository/ProofExchangeRecord.js.map +1 -1
- package/build/modules/routing/MediationRecipientApi.d.ts +2 -2
- package/build/modules/routing/MediationRecipientApi.js +3 -3
- package/build/modules/routing/MediationRecipientApi.js.map +1 -1
- package/build/modules/routing/MediationRecipientModule.d.ts +1 -1
- package/build/modules/routing/MediatorModule.d.ts +1 -1
- package/build/modules/routing/RoutingEvents.d.ts +2 -2
- package/build/modules/routing/handlers/ForwardHandler.d.ts +1 -1
- package/build/modules/routing/handlers/ForwardHandler.js +1 -0
- package/build/modules/routing/handlers/ForwardHandler.js.map +1 -1
- package/build/modules/routing/handlers/KeylistUpdateResponseHandler.d.ts +1 -1
- package/build/modules/routing/handlers/KeylistUpdateResponseHandler.js +2 -1
- package/build/modules/routing/handlers/KeylistUpdateResponseHandler.js.map +1 -1
- package/build/modules/routing/handlers/MediationDenyHandler.d.ts +1 -1
- package/build/modules/routing/handlers/MediationDenyHandler.js +1 -0
- package/build/modules/routing/handlers/MediationDenyHandler.js.map +1 -1
- package/build/modules/routing/handlers/MediationGrantHandler.d.ts +1 -1
- package/build/modules/routing/handlers/MediationGrantHandler.js +1 -0
- package/build/modules/routing/handlers/MediationGrantHandler.js.map +1 -1
- package/build/modules/routing/messages/KeylistMessage.js +1 -0
- package/build/modules/routing/messages/KeylistMessage.js.map +1 -1
- package/build/modules/routing/repository/MediationRecord.js +2 -3
- package/build/modules/routing/repository/MediationRecord.js.map +1 -1
- package/build/modules/routing/services/MediationRecipientService.d.ts +3 -3
- package/build/modules/routing/services/MediatorService.d.ts +1 -1
- package/build/modules/routing/services/MediatorService.js +2 -4
- package/build/modules/routing/services/MediatorService.js.map +1 -1
- package/build/modules/routing/services/RoutingService.d.ts +1 -1
- package/build/repository/DidCommMessageRecord.d.ts +1 -1
- package/build/repository/DidCommMessageRepository.d.ts +2 -2
- package/build/transport/HttpOutboundTransport.d.ts +2 -2
- package/build/transport/HttpOutboundTransport.js +6 -4
- package/build/transport/HttpOutboundTransport.js.map +1 -1
- package/build/transport/OutboundTransport.d.ts +1 -1
- package/build/transport/TransportEventTypes.d.ts +1 -1
- package/build/transport/WsOutboundTransport.d.ts +2 -2
- package/build/transport/WsOutboundTransport.js +3 -3
- package/build/transport/WsOutboundTransport.js.map +1 -1
- package/build/updates/0.1-0.2/connection.d.ts +2 -2
- package/build/updates/0.1-0.2/connection.js +14 -8
- package/build/updates/0.1-0.2/connection.js.map +1 -1
- package/build/updates/0.1-0.2/credential.d.ts +1 -1
- package/build/updates/0.1-0.2/credential.js +6 -5
- package/build/updates/0.1-0.2/credential.js.map +1 -1
- package/build/updates/0.1-0.2/mediation.d.ts +1 -1
- package/build/updates/0.1-0.2/mediation.js +1 -1
- package/build/updates/0.2-0.3/connection.d.ts +1 -1
- package/build/updates/0.2-0.3/proof.js +4 -4
- package/build/updates/0.2-0.3/proof.js.map +1 -1
- package/build/updates/0.4-0.5/credentialExchangeRecord.d.ts +1 -1
- package/build/updates/0.4-0.5/credentialExchangeRecord.js +4 -4
- package/build/updates/0.4-0.5/credentialExchangeRecord.js.map +1 -1
- package/build/updates/0.4-0.5/proofExchangeRecord.d.ts +1 -1
- package/build/updates/0.4-0.5/proofExchangeRecord.js +2 -2
- package/build/updates/0.4-0.5/proofExchangeRecord.js.map +1 -1
- package/build/util/JWE.js +1 -1
- package/build/util/JWE.js.map +1 -1
- package/build/util/attachment.d.ts +1 -1
- package/build/util/attachment.js +3 -5
- package/build/util/attachment.js.map +1 -1
- package/build/util/messageType.d.ts +1 -1
- package/build/util/messageType.js +5 -5
- package/build/util/messageType.js.map +1 -1
- package/build/util/modules.d.ts +2 -2
- package/build/util/parseInvitation.js +18 -21
- package/build/util/parseInvitation.js.map +1 -1
- package/build/util/transformers.js +1 -1
- package/build/util/transformers.js.map +1 -1
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ const messageType_1 = require("./messageType");
|
|
|
13
13
|
const fetchShortUrl = async (invitationUrl, dependencies) => {
|
|
14
14
|
const abortController = new AbortController();
|
|
15
15
|
const id = setTimeout(() => abortController.abort(), 15000);
|
|
16
|
+
// biome-ignore lint/suspicious/noImplicitAnyLet: <explanation>
|
|
16
17
|
let response;
|
|
17
18
|
try {
|
|
18
19
|
response = await dependencies.fetch(invitationUrl, {
|
|
@@ -47,20 +48,18 @@ const parseInvitationJson = (invitationJson) => {
|
|
|
47
48
|
invitation.invitationType = messages_2.InvitationType.OutOfBand;
|
|
48
49
|
return invitation;
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
+
if ((0, messageType_1.supportsIncomingMessageType)(parsedMessageType, messages_1.ConnectionInvitationMessage.type)) {
|
|
51
52
|
const invitation = core_1.JsonTransformer.fromJSON(invitationJson, messages_1.ConnectionInvitationMessage);
|
|
52
53
|
core_1.MessageValidator.validateSync(invitation);
|
|
53
54
|
const outOfBandInvitation = (0, converters_1.convertToNewInvitation)(invitation);
|
|
54
55
|
outOfBandInvitation.invitationType = messages_2.InvitationType.Connection;
|
|
55
56
|
return outOfBandInvitation;
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
+
if (invitationJson['~service']) {
|
|
58
59
|
// This is probably a legacy connectionless invitation
|
|
59
60
|
return transformLegacyConnectionlessInvitationToOutOfBandInvitation(invitationJson);
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
-
throw new core_1.CredoError(`Invitation with '@type' ${parsedMessageType.messageTypeUri} not supported.`);
|
|
63
|
-
}
|
|
62
|
+
throw new core_1.CredoError(`Invitation with '@type' ${parsedMessageType.messageTypeUri} not supported.`);
|
|
64
63
|
};
|
|
65
64
|
exports.parseInvitationJson = parseInvitationJson;
|
|
66
65
|
/**
|
|
@@ -72,7 +71,7 @@ exports.parseInvitationJson = parseInvitationJson;
|
|
|
72
71
|
*/
|
|
73
72
|
const parseInvitationUrl = (invitationUrl) => {
|
|
74
73
|
const parsedUrl = (0, query_string_1.parseUrl)(invitationUrl).query;
|
|
75
|
-
const encodedInvitation = parsedUrl
|
|
74
|
+
const encodedInvitation = parsedUrl.oob ?? parsedUrl.c_i ?? parsedUrl.d_m;
|
|
76
75
|
if (typeof encodedInvitation === 'string') {
|
|
77
76
|
const invitationJson = core_1.JsonEncoder.fromBase64(encodedInvitation);
|
|
78
77
|
return (0, exports.parseInvitationJson)(invitationJson);
|
|
@@ -87,15 +86,16 @@ const oobInvitationFromShortUrl = async (response) => {
|
|
|
87
86
|
const invitationJson = (await response.json());
|
|
88
87
|
return (0, exports.parseInvitationJson)(invitationJson);
|
|
89
88
|
}
|
|
90
|
-
|
|
89
|
+
if (response.url) {
|
|
91
90
|
// The following if else is for here for trinsic shorten urls
|
|
92
91
|
// Because the redirect targets a deep link the automatic redirect does not occur
|
|
92
|
+
// biome-ignore lint/suspicious/noImplicitAnyLet: <explanation>
|
|
93
93
|
let responseUrl;
|
|
94
94
|
const location = response.headers.get('Location');
|
|
95
95
|
if ((response.status === 302 || response.status === 301) && location)
|
|
96
96
|
responseUrl = location;
|
|
97
97
|
else
|
|
98
|
-
responseUrl = response
|
|
98
|
+
responseUrl = response.url;
|
|
99
99
|
return (0, exports.parseInvitationUrl)(responseUrl);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -110,7 +110,6 @@ function transformLegacyConnectionlessInvitationToOutOfBandInvitation(messageJso
|
|
|
110
110
|
}
|
|
111
111
|
// This destructuring removes the ~service property from the message, and
|
|
112
112
|
// we can can use messageWithoutService to create the out of band invitation
|
|
113
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
114
113
|
const { '~service': service, ...messageWithoutService } = messageJson;
|
|
115
114
|
// transform into out of band invitation
|
|
116
115
|
const invitation = new messages_2.OutOfBandInvitation({
|
|
@@ -132,23 +131,21 @@ function transformLegacyConnectionlessInvitationToOutOfBandInvitation(messageJso
|
|
|
132
131
|
*/
|
|
133
132
|
const parseInvitationShortUrl = async (invitationUrl, dependencies) => {
|
|
134
133
|
const parsedUrl = (0, query_string_1.parseUrl)(invitationUrl).query;
|
|
135
|
-
if (parsedUrl
|
|
134
|
+
if (parsedUrl.oob || parsedUrl.c_i) {
|
|
136
135
|
return (0, exports.parseInvitationUrl)(invitationUrl);
|
|
137
136
|
}
|
|
138
137
|
// Legacy connectionless invitation
|
|
139
|
-
|
|
140
|
-
const messageJson = core_1.JsonEncoder.fromBase64(parsedUrl
|
|
138
|
+
if (parsedUrl.d_m) {
|
|
139
|
+
const messageJson = core_1.JsonEncoder.fromBase64(parsedUrl.d_m);
|
|
141
140
|
return transformLegacyConnectionlessInvitationToOutOfBandInvitation(messageJson);
|
|
142
141
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
throw new core_1.CredoError('InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters: `oob`, `c_i` or `d_m`, or be valid shortened URL');
|
|
151
|
-
}
|
|
142
|
+
try {
|
|
143
|
+
const outOfBandInvitation = await (0, exports.oobInvitationFromShortUrl)(await fetchShortUrl(invitationUrl, dependencies));
|
|
144
|
+
outOfBandInvitation.invitationType = messages_2.InvitationType.OutOfBand;
|
|
145
|
+
return outOfBandInvitation;
|
|
146
|
+
}
|
|
147
|
+
catch (_error) {
|
|
148
|
+
throw new core_1.CredoError('InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters: `oob`, `c_i` or `d_m`, or be valid shortened URL');
|
|
152
149
|
}
|
|
153
150
|
};
|
|
154
151
|
exports.parseInvitationShortUrl = parseInvitationShortUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseInvitation.js","sourceRoot":"","sources":["../../src/util/parseInvitation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"parseInvitation.js","sourceRoot":"","sources":["../../src/util/parseInvitation.ts"],"names":[],"mappings":";;;AA8GA,oIAqBC;AAjID,yCAA2F;AAC3F,+CAAuC;AAEvC,kDAA8C;AAC9C,8DAA6E;AAC7E,0DAAkE;AAClE,2FAAuF;AACvF,sDAA6E;AAE7E,+CAA6E;AAE7E,MAAM,aAAa,GAAG,KAAK,EAAE,aAAqB,EAAE,YAA+B,EAAE,EAAE;IACrF,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAA;IAC7C,MAAM,EAAE,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,CAAA;IAC3D,+DAA+D;IAC/D,IAAI,QAAQ,CAAA;IACZ,IAAI,CAAC;QACH,QAAQ,GAAG,MAAM,YAAY,CAAC,KAAK,CAAC,aAAa,EAAE;YACjD,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,MAAM,EAAE,kBAAkB;gBAC1B,cAAc,EAAE,kBA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AAM,uBAAuB,GAAG,KAAK,EAC1C,aAAqB,EACrB,YAA+B,EACD,EAAE;IAChC,MAAM,SAAS,GAAG,IAAA,uBAAQ,EAAC,aAAa,CAAC,CAAC,KAAK,CAAA;IAC/C,IAAI,SAAS,CAAC,GAAG,IAAI,SAAS,CAAC,GAAG,EAAE,CAAC;QACnC,OAAO,IAAA,0BAAkB,EAAC,aAAa,CAAC,CAAA;IAC1C,CAAC;IACD,mCAAmC;IACnC,IAAI,SAAS,CAAC,GAAG,EAAE,CAAC;QAClB,MAAM,WAAW,GAAG,kBAAW,CAAC,UAAU,CAAC,SAAS,CAAC,GAAa,CAAC,CAAA;QACnE,OAAO,4DAA4D,CAAC,WAAW,CAAC,CAAA;IAClF,CAAC;IACD,IAAI,CAAC;QACH,MAAM,mBAAmB,GAAG,MAAM,IAAA,iCAAyB,EAAC,MAAM,aAAa,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,CAAA;QAC7G,mBAAmB,CAAC,cAAc,GAAG,yBAAc,CAAC,SAAS,CAAA;QAC7D,OAAO,mBAAmB,CAAA;IAC5B,CAAC;IAAC,OAAO,MAAM,EAAE,CAAC;QAChB,MAAM,IAAI,iBAAU,CAClB,gJAAgJ,CACjJ,CAAA;IACH,CAAC;AACH,CAAC,CAAA;AAtBY,QAAA,uBAAuB,2BAsBnC"}
|
|
@@ -8,7 +8,7 @@ const luxon_1 = require("luxon");
|
|
|
8
8
|
*/
|
|
9
9
|
function DateParser(value) {
|
|
10
10
|
const parsedDate = new Date(value);
|
|
11
|
-
if (parsedDate instanceof Date && !isNaN(parsedDate.getTime())) {
|
|
11
|
+
if (parsedDate instanceof Date && !Number.isNaN(parsedDate.getTime())) {
|
|
12
12
|
return parsedDate;
|
|
13
13
|
}
|
|
14
14
|
const luxonDate = luxon_1.DateTime.fromSQL(value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformers.js","sourceRoot":"","sources":["../../src/util/transformers.ts"],"names":[],"mappings":";;AAOA,gCAUC;AAjBD,iCAAgC;AAEhC;;;GAGG;AAEH,SAAgB,UAAU,CAAC,KAAa;IACtC,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;IAClC,IAAI,UAAU,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"transformers.js","sourceRoot":"","sources":["../../src/util/transformers.ts"],"names":[],"mappings":";;AAOA,gCAUC;AAjBD,iCAAgC;AAEhC;;;GAGG;AAEH,SAAgB,UAAU,CAAC,KAAa;IACtC,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;IAClC,IAAI,UAAU,YAAY,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;QACtE,OAAO,UAAU,CAAA;IACnB,CAAC;IACD,MAAM,SAAS,GAAG,gBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACzC,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAA;IACvC,CAAC;IACD,OAAO,IAAI,IAAI,EAAE,CAAA;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@credo-ts/didcomm",
|
|
3
3
|
"main": "build/index",
|
|
4
4
|
"types": "build/index",
|
|
5
|
-
"version": "0.6.0-pr-
|
|
5
|
+
"version": "0.6.0-pr-2209-20250321171013",
|
|
6
6
|
"files": [
|
|
7
7
|
"build"
|
|
8
8
|
],
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"luxon": "^3.5.0",
|
|
23
23
|
"query-string": "^7.0.1",
|
|
24
24
|
"rxjs": "^7.8.0",
|
|
25
|
-
"@credo-ts/core": "0.6.0-pr-
|
|
25
|
+
"@credo-ts/core": "0.6.0-pr-2209-20250321171013"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@animo-id/pex": "4.1.1-alpha.1",
|