@credo-ts/didcomm 0.6.0-pr-2454-20251015095608 → 0.6.0-pr-2457-20251016085206

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/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ReturnRouteTypes } from "./decorators/transport/TransportDecorator.mjs";
2
2
  import { AckDecorator } from "./decorators/ack/AckDecorator.mjs";
3
3
  import { DidCommEncryptedMessage, DidCommMimeType, DidCommOutboundPackage, DidCommPlaintextMessage, ProtocolVersion } from "./types.mjs";
4
- import { IsValidMessageType, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix } from "./util/messageType.mjs";
4
+ import { IsValidMessageType, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix, supportsIncomingMessageType } from "./util/messageType.mjs";
5
5
  import { DidCommMessage } from "./DidCommMessage.mjs";
6
6
  import { DidCommMessageHandler, DidCommMessageHandlerInboundMessage } from "./handlers/DidCommMessageHandler.mjs";
7
7
  import { DidCommMessageHandlerMiddleware, DidCommMessageHandlerMiddlewareRunner } from "./handlers/DidCommMessageHandlerMiddleware.mjs";
@@ -241,5 +241,5 @@ import { DidCommMessageRepository, GetAgentMessageOptions, SaveAgentMessageOptio
241
241
  import { encodeAttachment, isLinkedAttachment } from "./util/attachment.mjs";
242
242
  import { DidCommLinkedAttachment, DidCommLinkedAttachmentOptions } from "./util/DidCommLinkedAttachment.mjs";
243
243
  import { isValidJweStructure } from "./util/JWE.mjs";
244
- import { oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl } from "./util/parseInvitation.mjs";
245
- export { AcceptCredentialOfferOptions, AcceptCredentialOptions, AcceptCredentialProposalOptions, AcceptCredentialRequestOptions, AcceptProofOptions, AcceptProofProposalOptions, AcceptProofRequestOptions, AckDecorator, AckStatus, AddMessageOptions, AnonCredsLinkSecretBindingMethod, AnonCredsLinkSecretBindingMethodOptions, AnonCredsLinkSecretCredentialRequestOptions, AnonCredsLinkSecretDataIntegrityBindingProof, Authentication, AuthenticationTransformer, DidCommBaseCredentialProtocol as BaseDidCommCredentialProtocol, BaseInvitationOptions, ConnectionProblemReportError, ConnectionProblemReportReason, ConnectionProtocolMsgReturnType, ConnectionRequestParams, CreateCredentialOfferOptions, CreateFromImplicitInvitationConfig, CreateLegacyInvitationConfig, CreateOutOfBandInvitationConfig, CreateProofRequestOptions, CredentialPreviewOptions, DidCommCredentialProtocolOptions_d_exports as CredentialProtocolOptions, CredentialProtocolVersionType, CredentialRecordBinding, CustomDidCommBasicMessageTags, CustomDidCommConnectionTags, CustomDidCommCredentialExchangeTags, CustomDidCommMediationTags, CustomDidCommProofExchangeTags, DIDInvitationOptions, DataIntegrityBindingMethods, DataIntegrityBindingMethodsOptions, DataIntegrityCredential, DataIntegrityCredentialOffer, DataIntegrityCredentialOfferOptions, DataIntegrityCredentialRequest, DataIntegrityCredentialRequestBindingProof, DeclineCredentialOfferOptions, DeclineProofRequestOptions, DefaultDidCommBasicMessageTags, DefaultDidCommConnectionTags, DefaultDidCommCredentialExchangeTags, DefaultDidCommCredentialProtocols, DefaultDidCommMediationTags, DefaultDidCommMediatorRoutingRecordTags, DefaultDidCommMessagePickupProtocols, DefaultDidCommMessageTags, DefaultDidCommProofExchangeTags, DefaultDidCommProofProtocols, DeleteCredentialOptions, DeleteProofOptions, DeliverMessagesFromQueueOptions, DeliverMessagesFromQueueReturnType, DeliverMessagesOptions, DeliverMessagesReturnType, DescriptionOptions, DidCommAckMessage, DidCommAckMessageHandler, DidCommAckMessageOptions, DidCommAnonCredsLinkSecretCreateOfferOptions, DidCommApi, DidCommAttachment, DidCommAttachmentData, DidCommAutoAcceptCredential, DidCommAutoAcceptProof, DidCommBaseProofProtocol, DidCommBasicMessage, DidCommBasicMessageEventTypes, DidCommBasicMessageRecord, DidCommBasicMessageRepository, DidCommBasicMessageRole, DidCommBasicMessageService, DidCommBasicMessageStateChangedEvent, DidCommBasicMessageStorageProps, DidCommBasicMessageTags, DidCommBasicMessagesApi, DidCommBasicMessagesModule, DidCommBatchMessage, DidCommBatchMessageMessage, DidCommBatchMessageOptions, DidCommBatchPickupMessage, DidCommBatchPickupMessageOptions, DidCommConnection, DidCommConnectionDidRotatedEvent, DidCommConnectionEventTypes, DidCommConnectionInvitationMessage, DidCommConnectionInvitationMessageOptions, DidCommConnectionOptions, DidCommConnectionProblemReportHandler, DidCommConnectionProblemReportMessage, DidCommConnectionProblemReportMessageOptions, DidCommConnectionRecord, DidCommConnectionRecordProps, DidCommConnectionRepository, DidCommConnectionRequestHandler, DidCommConnectionRequestMessage, DidCommConnectionRequestMessageOptions, DidCommConnectionResponseHandler, DidCommConnectionResponseMessage, DidCommConnectionResponseMessageOptions, DidCommConnectionRole, DidCommConnectionService, DidCommConnectionState, DidCommConnectionStateChangedEvent, DidCommConnectionType, DidCommConnectionsApi, DidCommConnectionsModule, DidCommConnectionsModuleConfig, DidCommConnectionsModuleConfigOptions, DidCommCredentialEventTypes, DidCommCredentialExchangeRecord, DidCommCredentialExchangeRecordProps, DidCommCredentialExchangeRepository, DidCommCredentialFormat, DidCommCredentialFormatAcceptOfferOptions, DidCommCredentialFormatAcceptProposalOptions, DidCommCredentialFormatAcceptRequestOptions, DidCommCredentialFormatAutoRespondCredentialOptions, DidCommCredentialFormatAutoRespondOfferOptions, DidCommCredentialFormatAutoRespondProposalOptions, DidCommCredentialFormatAutoRespondRequestOptions, DidCommCredentialFormatCreateOfferOptions, DidCommCredentialFormatCreateOfferReturn, DidCommCredentialFormatCreateProposalOptions, DidCommCredentialFormatCreateProposalReturn, DidCommCredentialFormatCreateRequestOptions, DidCommCredentialFormatCreateReturn, DidCommCredentialFormatPayload, DidCommCredentialFormatProcessCredentialOptions, DidCommCredentialFormatProcessOptions, DidCommCredentialFormatService, DidCommCredentialFormatSpec, DidCommCredentialFormatSpecOptions, DidCommCredentialPreviewAttribute, DidCommCredentialPreviewAttributeOptions, DidCommCredentialProblemReportReason, DidCommCredentialProtocol, DidCommCredentialRole, DidCommCredentialState, DidCommCredentialStateChangedEvent, DidCommCredentialV2AckMessage, DidCommCredentialV2AckMessageOptions, DidCommCredentialV2Preview, DidCommCredentialV2ProblemReportMessage, DidCommCredentialV2ProblemReportMessageOptions, DidCommCredentialV2Protocol, DidCommCredentialV2ProtocolConfig, DidCommCredentialsApi, DidCommCredentialsModule, DidCommCredentialsModuleConfig, DidCommCredentialsModuleConfigOptions, DidCommCredentialsModuleOptions, DidCommDataIntegrityAcceptOfferFormat, DidCommDataIntegrityAcceptRequestFormat, DidCommDataIntegrityCredentialFormat, DidCommDataIntegrityOfferCredentialFormat, DidCommDeliveryRequestV2Message, DidCommDeliveryRequestV2MessageOptions, DidCommDidExchangeCompleteHandler, DidCommDidExchangeCompleteMessage, DidCommDidExchangeCompleteMessageOptions, DidCommDidExchangeProblemReportMessage, DidCommDidExchangeProblemReportMessageOptions, DidCommDidExchangeRequestHandler, DidCommDidExchangeRequestMessage, DidCommDidExchangeRequestMessageOptions, DidCommDidExchangeResponseHandler, DidCommDidExchangeResponseMessage, DidCommDidExchangeResponseMessageOptions, DidCommDidExchangeRole, DidCommDidExchangeState, DidCommDidRotateAckHandler, DidCommDidRotateAckMessage, DidCommDidRotateAckMessageOptions, DidCommDidRotateHandler, DidCommDidRotateMessage, DidCommDidRotateMessageOptions, DidCommDidRotateProblemReportHandler, DidCommDidRotateProblemReportMessage, DidCommDidRotateProblemReportMessageOptions, DidCommDidRotateRole, DidCommDidRotateService, DidCommDifPresentationExchangeProofFormat, DidCommDifPresentationExchangeProofFormatService, DidCommDiscoverFeaturesApi, DidCommDiscoverFeaturesDisclosureReceivedEvent, DidCommDiscoverFeaturesEventTypes, DidCommDiscoverFeaturesModule, DidCommDiscoverFeaturesQueryReceivedEvent, DidCommDiscoverFeaturesV1Service, DidCommDiscoverFeaturesV2Service, DidCommDispatcher, DidCommDocumentService, DidCommEncryptedMessage, DidCommEnvelopeService, DidCommEventTypes, DidCommFeature, DidCommFeatureOptions, DidCommFeatureQuery, DidCommFeatureQueryOptions, DidCommFeatureRegistry, DidCommFeaturesDiscloseMessage, DidCommFeaturesDiscloseMessageOptions, DidCommFeaturesDiscloseProtocol, DidCommFeaturesDiscloseProtocolOptions, DidCommFeaturesDisclosuresMessage, DidCommFeaturesDisclosuresMessageOptions, DidCommFeaturesQueriesMessage, DidCommFeaturesQueriesMessageOptions, DidCommFeaturesQueryMessage, DidCommFeaturesQueryMessageOptions, DidCommFormatCreateRequestOptions, DidCommForwardMessage, DidCommForwardMessageOptions, DidCommGoalCode, DidCommGoalCodeOptions, DidCommGovernanceFramework, DidCommGovernanceFrameworkOptions, DidCommHandshakeProtocol, DidCommHandshakeReuseAcceptedMessage, DidCommHandshakeReuseAcceptedMessageOptions, DidCommHandshakeReuseMessage, DidCommHandshakeReuseMessageOptions, DidCommHandshakeReusedEvent, DidCommHangupHandler, DidCommHangupMessage, DidCommHangupMessageOptions, DidCommHttpOutboundTransport, DidCommInboundMessageContext, DidCommInboundTransport, DidCommInvitationType, DidCommIssueCredentialV2Message, DidCommIssueCredentialV2MessageOptions, DidCommJsonLdAcceptRequestFormat, DidCommJsonLdCredentialDetail, DidCommJsonLdCredentialDetailCredentialStatus, DidCommJsonLdCredentialDetailCredentialStatusOptions, DidCommJsonLdCredentialDetailFormat, DidCommJsonLdCredentialDetailInputOptions, DidCommJsonLdCredentialDetailOptions, DidCommJsonLdCredentialDetailOptionsOptions, DidCommJsonLdCredentialFormat, DidCommJsonLdCredentialFormatService, DidCommKeylistUpdate, DidCommKeylistUpdateAction, DidCommKeylistUpdateMessage, DidCommKeylistUpdateMessageOptions, DidCommKeylistUpdateOptions, DidCommKeylistUpdateResponseMessage, DidCommKeylistUpdateResponseMessageOptions, DidCommKeylistUpdateResult, DidCommKeylistUpdated, DidCommKeylistUpdatedEvent, DidCommLinkedAttachment, type DidCommLinkedAttachmentOptions, DidCommLiveDeliveryChangeV2Message, DidCommLiveDeliveryChangeV2MessageOptions, DidCommMediationDenyMessage, DidCommMediationDenyMessageOptions, DidCommMediationGrantMessage, DidCommMediationGrantMessageOptions, DidCommMediationRecipientApi, DidCommMediationRecipientModule, DidCommMediationRecipientService, DidCommMediationRecord, DidCommMediationRecordProps, DidCommMediationRepository, DidCommMediationRequestMessage, DidCommMediationRequestMessageOptions, DidCommMediationRole, DidCommMediationState, DidCommMediationStateChangedEvent, DidCommMediatorApi, DidCommMediatorModule, DidCommMediatorPickupStrategy, DidCommMediatorRoutingRecord, DidCommMediatorRoutingRecordProps, DidCommMediatorRoutingRecordRoutingKey, DidCommMediatorRoutingRepository, DidCommMediatorService, DidCommMessage, DidCommMessageDeliveryV2Message, DidCommMessageDeliveryV2MessageOptions, DidCommMessageForwardingStrategy, DidCommMessageHandler, DidCommMessageHandlerInboundMessage, DidCommMessageHandlerMiddleware, DidCommMessageHandlerMiddlewareRunner, DidCommMessageHandlerRegistry, DidCommMessagePickupApi, DidCommMessagePickupEventTypes, DidCommMessagePickupLiveSessionSavedEvent, DidCommMessagePickupModule, DidCommMessagePickupModuleConfig, DidCommMessagePickupModuleConfigOptions, DidCommMessagePickupModuleOptions, DidCommMessagePickupProtocol, DidCommMessagePickupProtocolVersionType, DidCommMessagePickupSessionService, DidCommMessagePickupV1Protocol, DidCommMessagePickupV2Protocol, DidCommMessageProcessedEvent, DidCommMessageReceivedEvent, DidCommMessageReceiver, DidCommMessageRecord, DidCommMessageRecordProps, DidCommMessageRepository, DidCommMessageRole, DidCommMessageSender, DidCommMessageSentEvent, DidCommMessagesReceivedV2Message, DidCommMessagesReceivedV2MessageOptions, DidCommMimeType, DidCommModule, DidCommModuleConfig, type DidCommModuleConfigOptions, DidCommOfferCredentialV2Message, DidCommOfferCredentialV2MessageOptions, DidCommOutOfBandApi, DidCommOutOfBandEventTypes, DidCommOutOfBandInlineServiceKey, DidCommOutOfBandInvitation, DidCommOutOfBandInvitationOptions, DidCommOutOfBandModule, DidCommOutOfBandRecord, DidCommOutOfBandRecordProps, DidCommOutOfBandRepository, DidCommOutOfBandRole, DidCommOutOfBandService, DidCommOutOfBandState, DidCommOutOfBandStateChangedEvent, DidCommOutboundMessageContext, DidCommOutboundMessageContextParams, DidCommOutboundPackage, DidCommOutboundTransport, DidCommOutboundWebSocketClosedEvent, DidCommOutboundWebSocketOpenedEvent, DidCommPlaintextMessage, DidCommPresentationProblemReportReason, DidCommPresentationV2AckMessage, DidCommPresentationV2Message, DidCommPresentationV2MessageOptions, DidCommPresentationV2ProblemReportMessage, DidCommProblemReportError, DidCommProblemReportErrorOptions, DidCommProblemReportMessage, DidCommProblemReportMessageOptions, DidCommProblemReportReason, DidCommProofEventTypes, DidCommProofExchangeRecord, DidCommProofExchangeRecordProps, DidCommProofExchangeRepository, DidCommProofFormat, DidCommProofFormatAcceptProposalOptions, DidCommProofFormatAcceptRequestOptions, DidCommProofFormatAutoRespondPresentationOptions, DidCommProofFormatAutoRespondProposalOptions, DidCommProofFormatAutoRespondRequestOptions, DidCommProofFormatCreateProposalOptions, DidCommProofFormatCreateReturn, DidCommProofFormatCredentialForRequestPayload, DidCommProofFormatGetCredentialsForRequestOptions, DidCommProofFormatGetCredentialsForRequestReturn, DidCommProofFormatPayload, DidCommProofFormatProcessOptions, DidCommProofFormatProcessPresentationOptions, DidCommProofFormatSelectCredentialsForRequestOptions, DidCommProofFormatSelectCredentialsForRequestReturn, DidCommProofFormatService, DidCommProofFormatSpec, DidCommProofFormatSpecOptions, DidCommProofProtocol, DidCommProofRole, DidCommProofState, DidCommProofStateChangedEvent, DidCommProofV2Protocol, DidCommProofV2ProtocolConfig, DidCommProofsApi, DidCommProofsModule, DidCommProofsModuleConfig, DidCommProofsModuleConfigOptions, DidCommProofsModuleOptions, DidCommProposeCredentialV2Message, DidCommProposeCredentialV2MessageOptions, DidCommProposePresentationV2Message, DidCommProposePresentationV2MessageOptions, DidCommProtocol, DidCommQueueTransportRepository, DidCommRequestCredentialV2Message, DidCommRequestCredentialV2MessageOptions, DidCommRequestPresentationV2Message, DidCommRequestPresentationV2MessageOptions, DidCommRevocationNotification, DidCommRevocationNotificationReceivedEvent, DidCommRevocationNotificationV1Message, DidCommRevocationNotificationV1MessageOptions, DidCommRevocationNotificationV2Message, DidCommRevocationNotificationV2MessageOptions, DidCommRouting, DidCommRoutingCreatedEvent, DidCommRoutingEventTypes, DidCommRoutingService, DidCommSignedAttachmentBindingMethod, DidCommSignedAttachmentBindingMethodOptions, DidCommSignedAttachmentCreateOfferOptions, DidCommSignedAttachmentCredentialRequestOptions, DidCommSignedAttachmentDataIntegrityBindingProof, DidCommStatusRequestMessageV2MessageOptions, DidCommStatusRequestV2Message, DidCommStatusV2Message, DidCommStatusV2MessageOptions, DidCommTransportEventTypes, DidCommTransportService, type DidCommTransportSession, DidCommTransportSessionRemovedEvent, DidCommTransportSessionSavedEvent, DidCommTrustPingEventTypes, DidCommTrustPingMessage, DidCommTrustPingMessageHandler, DidCommTrustPingMessageOptions, DidCommTrustPingReceivedEvent, DidCommTrustPingResponseMessage, DidCommTrustPingResponseMessageHandler, DidCommTrustPingResponseMessageOptions, DidCommTrustPingService, DidCommWsOutboundTransport, DidDoc, DidExchangeProblemReportError, DidExchangeProblemReportReason, DidExchangeProtocol, DifPexGetCredentialsForProofRequestOptions, DifPresentationExchangePresentation, DifPresentationExchangeProposal, DifPresentationExchangeRequest, Ed25119Sig2018, EddsaSaSigSecp256k1, EmbeddedAuthentication, ExtractCredentialFormat, ExtractCredentialFormats, ExtractProofFormat, ExtractProofFormats, FindCredentialMessageReturn, FindCredentialOfferMessageReturn, FindCredentialProposalMessageReturn, FindCredentialRequestMessageReturn, FindProofPresentationMessageReturn, FindProofProposalMessageReturn, FindProofRequestMessageReturn, FixHintOptions, GetAgentMessageOptions, GetAvailableMessageCountOptions, GetCredentialFormatDataReturn, GetCredentialsForProofRequestOptions, GetCredentialsForProofRequestReturn, GetProofFormatDataReturn, GetRoutingOptions, ImpactStatus, InMemoryQueueTransportRepository, InlineInvitationOptions, IsValidMessageType, JsonCredential, JsonLdFormatDataCredentialDetail, JsonLdFormatDataCredentialDetailOptions, JsonLdFormatDataVerifiableCredential, MediationProtocolMsgReturnType, MessageContextParams, MessagePickupCompletedEvent, MessagePickupLiveSessionRemovedEvent, MessageSendingError, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions, NegotiateProofProposalOptions, NegotiateProofRequestOptions, OfferCredentialOptions, OtherStatus, OutOfBandDidCommService, OutboundMessageSendStatus, type ParsedMessageType, PickupMessagesOptions, PickupMessagesReturnType, DidCommProofFormatServiceOptions_d_exports as ProofFormatServiceOptions, DidCommProofProtocolOptions_d_exports as ProofProtocolOptions, ProofsProtocolVersionType, ProposeCredentialOptions, ProposeProofOptions, ProtocolOptions, ProtocolVersion, PublicKey, PublicKeyTransformer, QueryFeaturesReturnType, QueueMessageOptions, QueueMessageReturnType, QueuedDidCommMessage, ReceiveOutOfBandImplicitInvitationConfig, ReceiveOutOfBandInvitationConfig, ReferencedAuthentication, RemoveMessagesOptions, RemoveRoutingOptions, RequestProofOptions, ReturnRouteTypes, RsaSig2018, SaveAgentMessageOptions, SelectCredentialsForProofRequestOptions, SelectCredentialsForProofRequestReturn, SendCredentialProblemReportOptions, SendPingOptions, SendProofProblemReportOptions, SendRevocationNotificationOptions, ServiceDecorator, type ServiceDecoratorOptions, ServiceMessageParams, SetLiveDeliveryModeOptions, SetLiveDeliveryModeReturnType, TakeFromQueueOptions, TrustPingResponseReceivedEvent, DidCommCredentialV2ProblemReportError as V2CredentialProblemReportError, DidCommCredentialV2ProblemReportErrorOptions as V2CredentialProblemReportErrorOptions, V2PresentationProblemReportError, W3C_VC_DATA_MODEL_VERSION, WhereStatus, WhoRetriesStatus, authenticationTypes, encodeAttachment, getOutboundDidCommMessageContext, isLinkedAttachment, isValidJweStructure, oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl, parseMessageType, publicKeyTypes, replaceLegacyDidSovPrefix, rfc0160StateFromDidExchangeState };
244
+ import { oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl } from "./util/parseInvitation.mjs";
245
+ export { AcceptCredentialOfferOptions, AcceptCredentialOptions, AcceptCredentialProposalOptions, AcceptCredentialRequestOptions, AcceptProofOptions, AcceptProofProposalOptions, AcceptProofRequestOptions, AckDecorator, AckStatus, AddMessageOptions, AnonCredsLinkSecretBindingMethod, AnonCredsLinkSecretBindingMethodOptions, AnonCredsLinkSecretCredentialRequestOptions, AnonCredsLinkSecretDataIntegrityBindingProof, Authentication, AuthenticationTransformer, DidCommBaseCredentialProtocol as BaseDidCommCredentialProtocol, BaseInvitationOptions, ConnectionProblemReportError, ConnectionProblemReportReason, ConnectionProtocolMsgReturnType, ConnectionRequestParams, CreateCredentialOfferOptions, CreateFromImplicitInvitationConfig, CreateLegacyInvitationConfig, CreateOutOfBandInvitationConfig, CreateProofRequestOptions, CredentialPreviewOptions, DidCommCredentialProtocolOptions_d_exports as CredentialProtocolOptions, CredentialProtocolVersionType, CredentialRecordBinding, CustomDidCommBasicMessageTags, CustomDidCommConnectionTags, CustomDidCommCredentialExchangeTags, CustomDidCommMediationTags, CustomDidCommProofExchangeTags, DIDInvitationOptions, DataIntegrityBindingMethods, DataIntegrityBindingMethodsOptions, DataIntegrityCredential, DataIntegrityCredentialOffer, DataIntegrityCredentialOfferOptions, DataIntegrityCredentialRequest, DataIntegrityCredentialRequestBindingProof, DeclineCredentialOfferOptions, DeclineProofRequestOptions, DefaultDidCommBasicMessageTags, DefaultDidCommConnectionTags, DefaultDidCommCredentialExchangeTags, DefaultDidCommCredentialProtocols, DefaultDidCommMediationTags, DefaultDidCommMediatorRoutingRecordTags, DefaultDidCommMessagePickupProtocols, DefaultDidCommMessageTags, DefaultDidCommProofExchangeTags, DefaultDidCommProofProtocols, DeleteCredentialOptions, DeleteProofOptions, DeliverMessagesFromQueueOptions, DeliverMessagesFromQueueReturnType, DeliverMessagesOptions, DeliverMessagesReturnType, DescriptionOptions, DidCommAckMessage, DidCommAckMessageHandler, DidCommAckMessageOptions, DidCommAnonCredsLinkSecretCreateOfferOptions, DidCommApi, DidCommAttachment, DidCommAttachmentData, DidCommAutoAcceptCredential, DidCommAutoAcceptProof, DidCommBaseProofProtocol, DidCommBasicMessage, DidCommBasicMessageEventTypes, DidCommBasicMessageRecord, DidCommBasicMessageRepository, DidCommBasicMessageRole, DidCommBasicMessageService, DidCommBasicMessageStateChangedEvent, DidCommBasicMessageStorageProps, DidCommBasicMessageTags, DidCommBasicMessagesApi, DidCommBasicMessagesModule, DidCommBatchMessage, DidCommBatchMessageMessage, DidCommBatchMessageOptions, DidCommBatchPickupMessage, DidCommBatchPickupMessageOptions, DidCommConnection, DidCommConnectionDidRotatedEvent, DidCommConnectionEventTypes, DidCommConnectionInvitationMessage, DidCommConnectionInvitationMessageOptions, DidCommConnectionOptions, DidCommConnectionProblemReportHandler, DidCommConnectionProblemReportMessage, DidCommConnectionProblemReportMessageOptions, DidCommConnectionRecord, DidCommConnectionRecordProps, DidCommConnectionRepository, DidCommConnectionRequestHandler, DidCommConnectionRequestMessage, DidCommConnectionRequestMessageOptions, DidCommConnectionResponseHandler, DidCommConnectionResponseMessage, DidCommConnectionResponseMessageOptions, DidCommConnectionRole, DidCommConnectionService, DidCommConnectionState, DidCommConnectionStateChangedEvent, DidCommConnectionType, DidCommConnectionsApi, DidCommConnectionsModule, DidCommConnectionsModuleConfig, DidCommConnectionsModuleConfigOptions, DidCommCredentialEventTypes, DidCommCredentialExchangeRecord, DidCommCredentialExchangeRecordProps, DidCommCredentialExchangeRepository, DidCommCredentialFormat, DidCommCredentialFormatAcceptOfferOptions, DidCommCredentialFormatAcceptProposalOptions, DidCommCredentialFormatAcceptRequestOptions, DidCommCredentialFormatAutoRespondCredentialOptions, DidCommCredentialFormatAutoRespondOfferOptions, DidCommCredentialFormatAutoRespondProposalOptions, DidCommCredentialFormatAutoRespondRequestOptions, DidCommCredentialFormatCreateOfferOptions, DidCommCredentialFormatCreateOfferReturn, DidCommCredentialFormatCreateProposalOptions, DidCommCredentialFormatCreateProposalReturn, DidCommCredentialFormatCreateRequestOptions, DidCommCredentialFormatCreateReturn, DidCommCredentialFormatPayload, DidCommCredentialFormatProcessCredentialOptions, DidCommCredentialFormatProcessOptions, DidCommCredentialFormatService, DidCommCredentialFormatSpec, DidCommCredentialFormatSpecOptions, DidCommCredentialPreviewAttribute, DidCommCredentialPreviewAttributeOptions, DidCommCredentialProblemReportReason, DidCommCredentialProtocol, DidCommCredentialRole, DidCommCredentialState, DidCommCredentialStateChangedEvent, DidCommCredentialV2AckMessage, DidCommCredentialV2AckMessageOptions, DidCommCredentialV2Preview, DidCommCredentialV2ProblemReportMessage, DidCommCredentialV2ProblemReportMessageOptions, DidCommCredentialV2Protocol, DidCommCredentialV2ProtocolConfig, DidCommCredentialsApi, DidCommCredentialsModule, DidCommCredentialsModuleConfig, DidCommCredentialsModuleConfigOptions, DidCommCredentialsModuleOptions, DidCommDataIntegrityAcceptOfferFormat, DidCommDataIntegrityAcceptRequestFormat, DidCommDataIntegrityCredentialFormat, DidCommDataIntegrityOfferCredentialFormat, DidCommDeliveryRequestV2Message, DidCommDeliveryRequestV2MessageOptions, DidCommDidExchangeCompleteHandler, DidCommDidExchangeCompleteMessage, DidCommDidExchangeCompleteMessageOptions, DidCommDidExchangeProblemReportMessage, DidCommDidExchangeProblemReportMessageOptions, DidCommDidExchangeRequestHandler, DidCommDidExchangeRequestMessage, DidCommDidExchangeRequestMessageOptions, DidCommDidExchangeResponseHandler, DidCommDidExchangeResponseMessage, DidCommDidExchangeResponseMessageOptions, DidCommDidExchangeRole, DidCommDidExchangeState, DidCommDidRotateAckHandler, DidCommDidRotateAckMessage, DidCommDidRotateAckMessageOptions, DidCommDidRotateHandler, DidCommDidRotateMessage, DidCommDidRotateMessageOptions, DidCommDidRotateProblemReportHandler, DidCommDidRotateProblemReportMessage, DidCommDidRotateProblemReportMessageOptions, DidCommDidRotateRole, DidCommDidRotateService, DidCommDifPresentationExchangeProofFormat, DidCommDifPresentationExchangeProofFormatService, DidCommDiscoverFeaturesApi, DidCommDiscoverFeaturesDisclosureReceivedEvent, DidCommDiscoverFeaturesEventTypes, DidCommDiscoverFeaturesModule, DidCommDiscoverFeaturesQueryReceivedEvent, DidCommDiscoverFeaturesV1Service, DidCommDiscoverFeaturesV2Service, DidCommDispatcher, DidCommDocumentService, DidCommEncryptedMessage, DidCommEnvelopeService, DidCommEventTypes, DidCommFeature, DidCommFeatureOptions, DidCommFeatureQuery, DidCommFeatureQueryOptions, DidCommFeatureRegistry, DidCommFeaturesDiscloseMessage, DidCommFeaturesDiscloseMessageOptions, DidCommFeaturesDiscloseProtocol, DidCommFeaturesDiscloseProtocolOptions, DidCommFeaturesDisclosuresMessage, DidCommFeaturesDisclosuresMessageOptions, DidCommFeaturesQueriesMessage, DidCommFeaturesQueriesMessageOptions, DidCommFeaturesQueryMessage, DidCommFeaturesQueryMessageOptions, DidCommFormatCreateRequestOptions, DidCommForwardMessage, DidCommForwardMessageOptions, DidCommGoalCode, DidCommGoalCodeOptions, DidCommGovernanceFramework, DidCommGovernanceFrameworkOptions, DidCommHandshakeProtocol, DidCommHandshakeReuseAcceptedMessage, DidCommHandshakeReuseAcceptedMessageOptions, DidCommHandshakeReuseMessage, DidCommHandshakeReuseMessageOptions, DidCommHandshakeReusedEvent, DidCommHangupHandler, DidCommHangupMessage, DidCommHangupMessageOptions, DidCommHttpOutboundTransport, DidCommInboundMessageContext, DidCommInboundTransport, DidCommInvitationType, DidCommIssueCredentialV2Message, DidCommIssueCredentialV2MessageOptions, DidCommJsonLdAcceptRequestFormat, DidCommJsonLdCredentialDetail, DidCommJsonLdCredentialDetailCredentialStatus, DidCommJsonLdCredentialDetailCredentialStatusOptions, DidCommJsonLdCredentialDetailFormat, DidCommJsonLdCredentialDetailInputOptions, DidCommJsonLdCredentialDetailOptions, DidCommJsonLdCredentialDetailOptionsOptions, DidCommJsonLdCredentialFormat, DidCommJsonLdCredentialFormatService, DidCommKeylistUpdate, DidCommKeylistUpdateAction, DidCommKeylistUpdateMessage, DidCommKeylistUpdateMessageOptions, DidCommKeylistUpdateOptions, DidCommKeylistUpdateResponseMessage, DidCommKeylistUpdateResponseMessageOptions, DidCommKeylistUpdateResult, DidCommKeylistUpdated, DidCommKeylistUpdatedEvent, DidCommLinkedAttachment, type DidCommLinkedAttachmentOptions, DidCommLiveDeliveryChangeV2Message, DidCommLiveDeliveryChangeV2MessageOptions, DidCommMediationDenyMessage, DidCommMediationDenyMessageOptions, DidCommMediationGrantMessage, DidCommMediationGrantMessageOptions, DidCommMediationRecipientApi, DidCommMediationRecipientModule, DidCommMediationRecipientService, DidCommMediationRecord, DidCommMediationRecordProps, DidCommMediationRepository, DidCommMediationRequestMessage, DidCommMediationRequestMessageOptions, DidCommMediationRole, DidCommMediationState, DidCommMediationStateChangedEvent, DidCommMediatorApi, DidCommMediatorModule, DidCommMediatorPickupStrategy, DidCommMediatorRoutingRecord, DidCommMediatorRoutingRecordProps, DidCommMediatorRoutingRecordRoutingKey, DidCommMediatorRoutingRepository, DidCommMediatorService, DidCommMessage, DidCommMessageDeliveryV2Message, DidCommMessageDeliveryV2MessageOptions, DidCommMessageForwardingStrategy, DidCommMessageHandler, DidCommMessageHandlerInboundMessage, DidCommMessageHandlerMiddleware, DidCommMessageHandlerMiddlewareRunner, DidCommMessageHandlerRegistry, DidCommMessagePickupApi, DidCommMessagePickupEventTypes, DidCommMessagePickupLiveSessionSavedEvent, DidCommMessagePickupModule, DidCommMessagePickupModuleConfig, DidCommMessagePickupModuleConfigOptions, DidCommMessagePickupModuleOptions, DidCommMessagePickupProtocol, DidCommMessagePickupProtocolVersionType, DidCommMessagePickupSessionService, DidCommMessagePickupV1Protocol, DidCommMessagePickupV2Protocol, DidCommMessageProcessedEvent, DidCommMessageReceivedEvent, DidCommMessageReceiver, DidCommMessageRecord, DidCommMessageRecordProps, DidCommMessageRepository, DidCommMessageRole, DidCommMessageSender, DidCommMessageSentEvent, DidCommMessagesReceivedV2Message, DidCommMessagesReceivedV2MessageOptions, DidCommMimeType, DidCommModule, DidCommModuleConfig, type DidCommModuleConfigOptions, DidCommOfferCredentialV2Message, DidCommOfferCredentialV2MessageOptions, DidCommOutOfBandApi, DidCommOutOfBandEventTypes, DidCommOutOfBandInlineServiceKey, DidCommOutOfBandInvitation, DidCommOutOfBandInvitationOptions, DidCommOutOfBandModule, DidCommOutOfBandRecord, DidCommOutOfBandRecordProps, DidCommOutOfBandRepository, DidCommOutOfBandRole, DidCommOutOfBandService, DidCommOutOfBandState, DidCommOutOfBandStateChangedEvent, DidCommOutboundMessageContext, DidCommOutboundMessageContextParams, DidCommOutboundPackage, DidCommOutboundTransport, DidCommOutboundWebSocketClosedEvent, DidCommOutboundWebSocketOpenedEvent, DidCommPlaintextMessage, DidCommPresentationProblemReportReason, DidCommPresentationV2AckMessage, DidCommPresentationV2Message, DidCommPresentationV2MessageOptions, DidCommPresentationV2ProblemReportMessage, DidCommProblemReportError, DidCommProblemReportErrorOptions, DidCommProblemReportMessage, DidCommProblemReportMessageOptions, DidCommProblemReportReason, DidCommProofEventTypes, DidCommProofExchangeRecord, DidCommProofExchangeRecordProps, DidCommProofExchangeRepository, DidCommProofFormat, DidCommProofFormatAcceptProposalOptions, DidCommProofFormatAcceptRequestOptions, DidCommProofFormatAutoRespondPresentationOptions, DidCommProofFormatAutoRespondProposalOptions, DidCommProofFormatAutoRespondRequestOptions, DidCommProofFormatCreateProposalOptions, DidCommProofFormatCreateReturn, DidCommProofFormatCredentialForRequestPayload, DidCommProofFormatGetCredentialsForRequestOptions, DidCommProofFormatGetCredentialsForRequestReturn, DidCommProofFormatPayload, DidCommProofFormatProcessOptions, DidCommProofFormatProcessPresentationOptions, DidCommProofFormatSelectCredentialsForRequestOptions, DidCommProofFormatSelectCredentialsForRequestReturn, DidCommProofFormatService, DidCommProofFormatSpec, DidCommProofFormatSpecOptions, DidCommProofProtocol, DidCommProofRole, DidCommProofState, DidCommProofStateChangedEvent, DidCommProofV2Protocol, DidCommProofV2ProtocolConfig, DidCommProofsApi, DidCommProofsModule, DidCommProofsModuleConfig, DidCommProofsModuleConfigOptions, DidCommProofsModuleOptions, DidCommProposeCredentialV2Message, DidCommProposeCredentialV2MessageOptions, DidCommProposePresentationV2Message, DidCommProposePresentationV2MessageOptions, DidCommProtocol, DidCommQueueTransportRepository, DidCommRequestCredentialV2Message, DidCommRequestCredentialV2MessageOptions, DidCommRequestPresentationV2Message, DidCommRequestPresentationV2MessageOptions, DidCommRevocationNotification, DidCommRevocationNotificationReceivedEvent, DidCommRevocationNotificationV1Message, DidCommRevocationNotificationV1MessageOptions, DidCommRevocationNotificationV2Message, DidCommRevocationNotificationV2MessageOptions, DidCommRouting, DidCommRoutingCreatedEvent, DidCommRoutingEventTypes, DidCommRoutingService, DidCommSignedAttachmentBindingMethod, DidCommSignedAttachmentBindingMethodOptions, DidCommSignedAttachmentCreateOfferOptions, DidCommSignedAttachmentCredentialRequestOptions, DidCommSignedAttachmentDataIntegrityBindingProof, DidCommStatusRequestMessageV2MessageOptions, DidCommStatusRequestV2Message, DidCommStatusV2Message, DidCommStatusV2MessageOptions, DidCommTransportEventTypes, DidCommTransportService, type DidCommTransportSession, DidCommTransportSessionRemovedEvent, DidCommTransportSessionSavedEvent, DidCommTrustPingEventTypes, DidCommTrustPingMessage, DidCommTrustPingMessageHandler, DidCommTrustPingMessageOptions, DidCommTrustPingReceivedEvent, DidCommTrustPingResponseMessage, DidCommTrustPingResponseMessageHandler, DidCommTrustPingResponseMessageOptions, DidCommTrustPingService, DidCommWsOutboundTransport, DidDoc, DidExchangeProblemReportError, DidExchangeProblemReportReason, DidExchangeProtocol, DifPexGetCredentialsForProofRequestOptions, DifPresentationExchangePresentation, DifPresentationExchangeProposal, DifPresentationExchangeRequest, Ed25119Sig2018, EddsaSaSigSecp256k1, EmbeddedAuthentication, ExtractCredentialFormat, ExtractCredentialFormats, ExtractProofFormat, ExtractProofFormats, FindCredentialMessageReturn, FindCredentialOfferMessageReturn, FindCredentialProposalMessageReturn, FindCredentialRequestMessageReturn, FindProofPresentationMessageReturn, FindProofProposalMessageReturn, FindProofRequestMessageReturn, FixHintOptions, GetAgentMessageOptions, GetAvailableMessageCountOptions, GetCredentialFormatDataReturn, GetCredentialsForProofRequestOptions, GetCredentialsForProofRequestReturn, GetProofFormatDataReturn, GetRoutingOptions, ImpactStatus, InMemoryQueueTransportRepository, InlineInvitationOptions, IsValidMessageType, JsonCredential, JsonLdFormatDataCredentialDetail, JsonLdFormatDataCredentialDetailOptions, JsonLdFormatDataVerifiableCredential, MediationProtocolMsgReturnType, MessageContextParams, MessagePickupCompletedEvent, MessagePickupLiveSessionRemovedEvent, MessageSendingError, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions, NegotiateProofProposalOptions, NegotiateProofRequestOptions, OfferCredentialOptions, OtherStatus, OutOfBandDidCommService, OutboundMessageSendStatus, type ParsedMessageType, PickupMessagesOptions, PickupMessagesReturnType, DidCommProofFormatServiceOptions_d_exports as ProofFormatServiceOptions, DidCommProofProtocolOptions_d_exports as ProofProtocolOptions, ProofsProtocolVersionType, ProposeCredentialOptions, ProposeProofOptions, ProtocolOptions, ProtocolVersion, PublicKey, PublicKeyTransformer, QueryFeaturesReturnType, QueueMessageOptions, QueueMessageReturnType, QueuedDidCommMessage, ReceiveOutOfBandImplicitInvitationConfig, ReceiveOutOfBandInvitationConfig, ReferencedAuthentication, RemoveMessagesOptions, RemoveRoutingOptions, RequestProofOptions, ReturnRouteTypes, RsaSig2018, SaveAgentMessageOptions, SelectCredentialsForProofRequestOptions, SelectCredentialsForProofRequestReturn, SendCredentialProblemReportOptions, SendPingOptions, SendProofProblemReportOptions, SendRevocationNotificationOptions, ServiceDecorator, type ServiceDecoratorOptions, ServiceMessageParams, SetLiveDeliveryModeOptions, SetLiveDeliveryModeReturnType, TakeFromQueueOptions, TrustPingResponseReceivedEvent, DidCommCredentialV2ProblemReportError as V2CredentialProblemReportError, DidCommCredentialV2ProblemReportErrorOptions as V2CredentialProblemReportErrorOptions, V2PresentationProblemReportError, W3C_VC_DATA_MODEL_VERSION, WhereStatus, WhoRetriesStatus, authenticationTypes, encodeAttachment, getOutboundDidCommMessageContext, isLinkedAttachment, isValidJweStructure, oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl, parseMessageType, publicKeyTypes, replaceLegacyDidSovPrefix, rfc0160StateFromDidExchangeState, supportsIncomingMessageType };
package/build/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ReturnRouteTypes } from "./decorators/transport/TransportDecorator.js";
2
2
  import { AckDecorator } from "./decorators/ack/AckDecorator.js";
3
3
  import { DidCommEncryptedMessage, DidCommMimeType, DidCommOutboundPackage, DidCommPlaintextMessage, ProtocolVersion } from "./types.js";
4
- import { IsValidMessageType, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix } from "./util/messageType.js";
4
+ import { IsValidMessageType, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix, supportsIncomingMessageType } from "./util/messageType.js";
5
5
  import { DidCommMessage } from "./DidCommMessage.js";
6
6
  import { DidCommMessageHandler, DidCommMessageHandlerInboundMessage } from "./handlers/DidCommMessageHandler.js";
7
7
  import { DidCommMessageHandlerMiddleware, DidCommMessageHandlerMiddlewareRunner } from "./handlers/DidCommMessageHandlerMiddleware.js";
@@ -241,5 +241,5 @@ import { DidCommMessageRepository, GetAgentMessageOptions, SaveAgentMessageOptio
241
241
  import { encodeAttachment, isLinkedAttachment } from "./util/attachment.js";
242
242
  import { DidCommLinkedAttachment, DidCommLinkedAttachmentOptions } from "./util/DidCommLinkedAttachment.js";
243
243
  import { isValidJweStructure } from "./util/JWE.js";
244
- import { oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl } from "./util/parseInvitation.js";
245
- export { AcceptCredentialOfferOptions, AcceptCredentialOptions, AcceptCredentialProposalOptions, AcceptCredentialRequestOptions, AcceptProofOptions, AcceptProofProposalOptions, AcceptProofRequestOptions, AckDecorator, AckStatus, AddMessageOptions, AnonCredsLinkSecretBindingMethod, AnonCredsLinkSecretBindingMethodOptions, AnonCredsLinkSecretCredentialRequestOptions, AnonCredsLinkSecretDataIntegrityBindingProof, Authentication, AuthenticationTransformer, DidCommBaseCredentialProtocol as BaseDidCommCredentialProtocol, BaseInvitationOptions, ConnectionProblemReportError, ConnectionProblemReportReason, ConnectionProtocolMsgReturnType, ConnectionRequestParams, CreateCredentialOfferOptions, CreateFromImplicitInvitationConfig, CreateLegacyInvitationConfig, CreateOutOfBandInvitationConfig, CreateProofRequestOptions, CredentialPreviewOptions, DidCommCredentialProtocolOptions_d_exports as CredentialProtocolOptions, CredentialProtocolVersionType, CredentialRecordBinding, CustomDidCommBasicMessageTags, CustomDidCommConnectionTags, CustomDidCommCredentialExchangeTags, CustomDidCommMediationTags, CustomDidCommProofExchangeTags, DIDInvitationOptions, DataIntegrityBindingMethods, DataIntegrityBindingMethodsOptions, DataIntegrityCredential, DataIntegrityCredentialOffer, DataIntegrityCredentialOfferOptions, DataIntegrityCredentialRequest, DataIntegrityCredentialRequestBindingProof, DeclineCredentialOfferOptions, DeclineProofRequestOptions, DefaultDidCommBasicMessageTags, DefaultDidCommConnectionTags, DefaultDidCommCredentialExchangeTags, DefaultDidCommCredentialProtocols, DefaultDidCommMediationTags, DefaultDidCommMediatorRoutingRecordTags, DefaultDidCommMessagePickupProtocols, DefaultDidCommMessageTags, DefaultDidCommProofExchangeTags, DefaultDidCommProofProtocols, DeleteCredentialOptions, DeleteProofOptions, DeliverMessagesFromQueueOptions, DeliverMessagesFromQueueReturnType, DeliverMessagesOptions, DeliverMessagesReturnType, DescriptionOptions, DidCommAckMessage, DidCommAckMessageHandler, DidCommAckMessageOptions, DidCommAnonCredsLinkSecretCreateOfferOptions, DidCommApi, DidCommAttachment, DidCommAttachmentData, DidCommAutoAcceptCredential, DidCommAutoAcceptProof, DidCommBaseProofProtocol, DidCommBasicMessage, DidCommBasicMessageEventTypes, DidCommBasicMessageRecord, DidCommBasicMessageRepository, DidCommBasicMessageRole, DidCommBasicMessageService, DidCommBasicMessageStateChangedEvent, DidCommBasicMessageStorageProps, DidCommBasicMessageTags, DidCommBasicMessagesApi, DidCommBasicMessagesModule, DidCommBatchMessage, DidCommBatchMessageMessage, DidCommBatchMessageOptions, DidCommBatchPickupMessage, DidCommBatchPickupMessageOptions, DidCommConnection, DidCommConnectionDidRotatedEvent, DidCommConnectionEventTypes, DidCommConnectionInvitationMessage, DidCommConnectionInvitationMessageOptions, DidCommConnectionOptions, DidCommConnectionProblemReportHandler, DidCommConnectionProblemReportMessage, DidCommConnectionProblemReportMessageOptions, DidCommConnectionRecord, DidCommConnectionRecordProps, DidCommConnectionRepository, DidCommConnectionRequestHandler, DidCommConnectionRequestMessage, DidCommConnectionRequestMessageOptions, DidCommConnectionResponseHandler, DidCommConnectionResponseMessage, DidCommConnectionResponseMessageOptions, DidCommConnectionRole, DidCommConnectionService, DidCommConnectionState, DidCommConnectionStateChangedEvent, DidCommConnectionType, DidCommConnectionsApi, DidCommConnectionsModule, DidCommConnectionsModuleConfig, DidCommConnectionsModuleConfigOptions, DidCommCredentialEventTypes, DidCommCredentialExchangeRecord, DidCommCredentialExchangeRecordProps, DidCommCredentialExchangeRepository, DidCommCredentialFormat, DidCommCredentialFormatAcceptOfferOptions, DidCommCredentialFormatAcceptProposalOptions, DidCommCredentialFormatAcceptRequestOptions, DidCommCredentialFormatAutoRespondCredentialOptions, DidCommCredentialFormatAutoRespondOfferOptions, DidCommCredentialFormatAutoRespondProposalOptions, DidCommCredentialFormatAutoRespondRequestOptions, DidCommCredentialFormatCreateOfferOptions, DidCommCredentialFormatCreateOfferReturn, DidCommCredentialFormatCreateProposalOptions, DidCommCredentialFormatCreateProposalReturn, DidCommCredentialFormatCreateRequestOptions, DidCommCredentialFormatCreateReturn, DidCommCredentialFormatPayload, DidCommCredentialFormatProcessCredentialOptions, DidCommCredentialFormatProcessOptions, DidCommCredentialFormatService, DidCommCredentialFormatSpec, DidCommCredentialFormatSpecOptions, DidCommCredentialPreviewAttribute, DidCommCredentialPreviewAttributeOptions, DidCommCredentialProblemReportReason, DidCommCredentialProtocol, DidCommCredentialRole, DidCommCredentialState, DidCommCredentialStateChangedEvent, DidCommCredentialV2AckMessage, DidCommCredentialV2AckMessageOptions, DidCommCredentialV2Preview, DidCommCredentialV2ProblemReportMessage, DidCommCredentialV2ProblemReportMessageOptions, DidCommCredentialV2Protocol, DidCommCredentialV2ProtocolConfig, DidCommCredentialsApi, DidCommCredentialsModule, DidCommCredentialsModuleConfig, DidCommCredentialsModuleConfigOptions, DidCommCredentialsModuleOptions, DidCommDataIntegrityAcceptOfferFormat, DidCommDataIntegrityAcceptRequestFormat, DidCommDataIntegrityCredentialFormat, DidCommDataIntegrityOfferCredentialFormat, DidCommDeliveryRequestV2Message, DidCommDeliveryRequestV2MessageOptions, DidCommDidExchangeCompleteHandler, DidCommDidExchangeCompleteMessage, DidCommDidExchangeCompleteMessageOptions, DidCommDidExchangeProblemReportMessage, DidCommDidExchangeProblemReportMessageOptions, DidCommDidExchangeRequestHandler, DidCommDidExchangeRequestMessage, DidCommDidExchangeRequestMessageOptions, DidCommDidExchangeResponseHandler, DidCommDidExchangeResponseMessage, DidCommDidExchangeResponseMessageOptions, DidCommDidExchangeRole, DidCommDidExchangeState, DidCommDidRotateAckHandler, DidCommDidRotateAckMessage, DidCommDidRotateAckMessageOptions, DidCommDidRotateHandler, DidCommDidRotateMessage, DidCommDidRotateMessageOptions, DidCommDidRotateProblemReportHandler, DidCommDidRotateProblemReportMessage, DidCommDidRotateProblemReportMessageOptions, DidCommDidRotateRole, DidCommDidRotateService, DidCommDifPresentationExchangeProofFormat, DidCommDifPresentationExchangeProofFormatService, DidCommDiscoverFeaturesApi, DidCommDiscoverFeaturesDisclosureReceivedEvent, DidCommDiscoverFeaturesEventTypes, DidCommDiscoverFeaturesModule, DidCommDiscoverFeaturesQueryReceivedEvent, DidCommDiscoverFeaturesV1Service, DidCommDiscoverFeaturesV2Service, DidCommDispatcher, DidCommDocumentService, DidCommEncryptedMessage, DidCommEnvelopeService, DidCommEventTypes, DidCommFeature, DidCommFeatureOptions, DidCommFeatureQuery, DidCommFeatureQueryOptions, DidCommFeatureRegistry, DidCommFeaturesDiscloseMessage, DidCommFeaturesDiscloseMessageOptions, DidCommFeaturesDiscloseProtocol, DidCommFeaturesDiscloseProtocolOptions, DidCommFeaturesDisclosuresMessage, DidCommFeaturesDisclosuresMessageOptions, DidCommFeaturesQueriesMessage, DidCommFeaturesQueriesMessageOptions, DidCommFeaturesQueryMessage, DidCommFeaturesQueryMessageOptions, DidCommFormatCreateRequestOptions, DidCommForwardMessage, DidCommForwardMessageOptions, DidCommGoalCode, DidCommGoalCodeOptions, DidCommGovernanceFramework, DidCommGovernanceFrameworkOptions, DidCommHandshakeProtocol, DidCommHandshakeReuseAcceptedMessage, DidCommHandshakeReuseAcceptedMessageOptions, DidCommHandshakeReuseMessage, DidCommHandshakeReuseMessageOptions, DidCommHandshakeReusedEvent, DidCommHangupHandler, DidCommHangupMessage, DidCommHangupMessageOptions, DidCommHttpOutboundTransport, DidCommInboundMessageContext, DidCommInboundTransport, DidCommInvitationType, DidCommIssueCredentialV2Message, DidCommIssueCredentialV2MessageOptions, DidCommJsonLdAcceptRequestFormat, DidCommJsonLdCredentialDetail, DidCommJsonLdCredentialDetailCredentialStatus, DidCommJsonLdCredentialDetailCredentialStatusOptions, DidCommJsonLdCredentialDetailFormat, DidCommJsonLdCredentialDetailInputOptions, DidCommJsonLdCredentialDetailOptions, DidCommJsonLdCredentialDetailOptionsOptions, DidCommJsonLdCredentialFormat, DidCommJsonLdCredentialFormatService, DidCommKeylistUpdate, DidCommKeylistUpdateAction, DidCommKeylistUpdateMessage, DidCommKeylistUpdateMessageOptions, DidCommKeylistUpdateOptions, DidCommKeylistUpdateResponseMessage, DidCommKeylistUpdateResponseMessageOptions, DidCommKeylistUpdateResult, DidCommKeylistUpdated, DidCommKeylistUpdatedEvent, DidCommLinkedAttachment, type DidCommLinkedAttachmentOptions, DidCommLiveDeliveryChangeV2Message, DidCommLiveDeliveryChangeV2MessageOptions, DidCommMediationDenyMessage, DidCommMediationDenyMessageOptions, DidCommMediationGrantMessage, DidCommMediationGrantMessageOptions, DidCommMediationRecipientApi, DidCommMediationRecipientModule, DidCommMediationRecipientService, DidCommMediationRecord, DidCommMediationRecordProps, DidCommMediationRepository, DidCommMediationRequestMessage, DidCommMediationRequestMessageOptions, DidCommMediationRole, DidCommMediationState, DidCommMediationStateChangedEvent, DidCommMediatorApi, DidCommMediatorModule, DidCommMediatorPickupStrategy, DidCommMediatorRoutingRecord, DidCommMediatorRoutingRecordProps, DidCommMediatorRoutingRecordRoutingKey, DidCommMediatorRoutingRepository, DidCommMediatorService, DidCommMessage, DidCommMessageDeliveryV2Message, DidCommMessageDeliveryV2MessageOptions, DidCommMessageForwardingStrategy, DidCommMessageHandler, DidCommMessageHandlerInboundMessage, DidCommMessageHandlerMiddleware, DidCommMessageHandlerMiddlewareRunner, DidCommMessageHandlerRegistry, DidCommMessagePickupApi, DidCommMessagePickupEventTypes, DidCommMessagePickupLiveSessionSavedEvent, DidCommMessagePickupModule, DidCommMessagePickupModuleConfig, DidCommMessagePickupModuleConfigOptions, DidCommMessagePickupModuleOptions, DidCommMessagePickupProtocol, DidCommMessagePickupProtocolVersionType, DidCommMessagePickupSessionService, DidCommMessagePickupV1Protocol, DidCommMessagePickupV2Protocol, DidCommMessageProcessedEvent, DidCommMessageReceivedEvent, DidCommMessageReceiver, DidCommMessageRecord, DidCommMessageRecordProps, DidCommMessageRepository, DidCommMessageRole, DidCommMessageSender, DidCommMessageSentEvent, DidCommMessagesReceivedV2Message, DidCommMessagesReceivedV2MessageOptions, DidCommMimeType, DidCommModule, DidCommModuleConfig, type DidCommModuleConfigOptions, DidCommOfferCredentialV2Message, DidCommOfferCredentialV2MessageOptions, DidCommOutOfBandApi, DidCommOutOfBandEventTypes, DidCommOutOfBandInlineServiceKey, DidCommOutOfBandInvitation, DidCommOutOfBandInvitationOptions, DidCommOutOfBandModule, DidCommOutOfBandRecord, DidCommOutOfBandRecordProps, DidCommOutOfBandRepository, DidCommOutOfBandRole, DidCommOutOfBandService, DidCommOutOfBandState, DidCommOutOfBandStateChangedEvent, DidCommOutboundMessageContext, DidCommOutboundMessageContextParams, DidCommOutboundPackage, DidCommOutboundTransport, DidCommOutboundWebSocketClosedEvent, DidCommOutboundWebSocketOpenedEvent, DidCommPlaintextMessage, DidCommPresentationProblemReportReason, DidCommPresentationV2AckMessage, DidCommPresentationV2Message, DidCommPresentationV2MessageOptions, DidCommPresentationV2ProblemReportMessage, DidCommProblemReportError, DidCommProblemReportErrorOptions, DidCommProblemReportMessage, DidCommProblemReportMessageOptions, DidCommProblemReportReason, DidCommProofEventTypes, DidCommProofExchangeRecord, DidCommProofExchangeRecordProps, DidCommProofExchangeRepository, DidCommProofFormat, DidCommProofFormatAcceptProposalOptions, DidCommProofFormatAcceptRequestOptions, DidCommProofFormatAutoRespondPresentationOptions, DidCommProofFormatAutoRespondProposalOptions, DidCommProofFormatAutoRespondRequestOptions, DidCommProofFormatCreateProposalOptions, DidCommProofFormatCreateReturn, DidCommProofFormatCredentialForRequestPayload, DidCommProofFormatGetCredentialsForRequestOptions, DidCommProofFormatGetCredentialsForRequestReturn, DidCommProofFormatPayload, DidCommProofFormatProcessOptions, DidCommProofFormatProcessPresentationOptions, DidCommProofFormatSelectCredentialsForRequestOptions, DidCommProofFormatSelectCredentialsForRequestReturn, DidCommProofFormatService, DidCommProofFormatSpec, DidCommProofFormatSpecOptions, DidCommProofProtocol, DidCommProofRole, DidCommProofState, DidCommProofStateChangedEvent, DidCommProofV2Protocol, DidCommProofV2ProtocolConfig, DidCommProofsApi, DidCommProofsModule, DidCommProofsModuleConfig, DidCommProofsModuleConfigOptions, DidCommProofsModuleOptions, DidCommProposeCredentialV2Message, DidCommProposeCredentialV2MessageOptions, DidCommProposePresentationV2Message, DidCommProposePresentationV2MessageOptions, DidCommProtocol, DidCommQueueTransportRepository, DidCommRequestCredentialV2Message, DidCommRequestCredentialV2MessageOptions, DidCommRequestPresentationV2Message, DidCommRequestPresentationV2MessageOptions, DidCommRevocationNotification, DidCommRevocationNotificationReceivedEvent, DidCommRevocationNotificationV1Message, DidCommRevocationNotificationV1MessageOptions, DidCommRevocationNotificationV2Message, DidCommRevocationNotificationV2MessageOptions, DidCommRouting, DidCommRoutingCreatedEvent, DidCommRoutingEventTypes, DidCommRoutingService, DidCommSignedAttachmentBindingMethod, DidCommSignedAttachmentBindingMethodOptions, DidCommSignedAttachmentCreateOfferOptions, DidCommSignedAttachmentCredentialRequestOptions, DidCommSignedAttachmentDataIntegrityBindingProof, DidCommStatusRequestMessageV2MessageOptions, DidCommStatusRequestV2Message, DidCommStatusV2Message, DidCommStatusV2MessageOptions, DidCommTransportEventTypes, DidCommTransportService, type DidCommTransportSession, DidCommTransportSessionRemovedEvent, DidCommTransportSessionSavedEvent, DidCommTrustPingEventTypes, DidCommTrustPingMessage, DidCommTrustPingMessageHandler, DidCommTrustPingMessageOptions, DidCommTrustPingReceivedEvent, DidCommTrustPingResponseMessage, DidCommTrustPingResponseMessageHandler, DidCommTrustPingResponseMessageOptions, DidCommTrustPingService, DidCommWsOutboundTransport, DidDoc, DidExchangeProblemReportError, DidExchangeProblemReportReason, DidExchangeProtocol, DifPexGetCredentialsForProofRequestOptions, DifPresentationExchangePresentation, DifPresentationExchangeProposal, DifPresentationExchangeRequest, Ed25119Sig2018, EddsaSaSigSecp256k1, EmbeddedAuthentication, ExtractCredentialFormat, ExtractCredentialFormats, ExtractProofFormat, ExtractProofFormats, FindCredentialMessageReturn, FindCredentialOfferMessageReturn, FindCredentialProposalMessageReturn, FindCredentialRequestMessageReturn, FindProofPresentationMessageReturn, FindProofProposalMessageReturn, FindProofRequestMessageReturn, FixHintOptions, GetAgentMessageOptions, GetAvailableMessageCountOptions, GetCredentialFormatDataReturn, GetCredentialsForProofRequestOptions, GetCredentialsForProofRequestReturn, GetProofFormatDataReturn, GetRoutingOptions, ImpactStatus, InMemoryQueueTransportRepository, InlineInvitationOptions, IsValidMessageType, JsonCredential, JsonLdFormatDataCredentialDetail, JsonLdFormatDataCredentialDetailOptions, JsonLdFormatDataVerifiableCredential, MediationProtocolMsgReturnType, MessageContextParams, MessagePickupCompletedEvent, MessagePickupLiveSessionRemovedEvent, MessageSendingError, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions, NegotiateProofProposalOptions, NegotiateProofRequestOptions, OfferCredentialOptions, OtherStatus, OutOfBandDidCommService, OutboundMessageSendStatus, type ParsedMessageType, PickupMessagesOptions, PickupMessagesReturnType, DidCommProofFormatServiceOptions_d_exports as ProofFormatServiceOptions, DidCommProofProtocolOptions_d_exports as ProofProtocolOptions, ProofsProtocolVersionType, ProposeCredentialOptions, ProposeProofOptions, ProtocolOptions, ProtocolVersion, PublicKey, PublicKeyTransformer, QueryFeaturesReturnType, QueueMessageOptions, QueueMessageReturnType, QueuedDidCommMessage, ReceiveOutOfBandImplicitInvitationConfig, ReceiveOutOfBandInvitationConfig, ReferencedAuthentication, RemoveMessagesOptions, RemoveRoutingOptions, RequestProofOptions, ReturnRouteTypes, RsaSig2018, SaveAgentMessageOptions, SelectCredentialsForProofRequestOptions, SelectCredentialsForProofRequestReturn, SendCredentialProblemReportOptions, SendPingOptions, SendProofProblemReportOptions, SendRevocationNotificationOptions, ServiceDecorator, type ServiceDecoratorOptions, ServiceMessageParams, SetLiveDeliveryModeOptions, SetLiveDeliveryModeReturnType, TakeFromQueueOptions, TrustPingResponseReceivedEvent, DidCommCredentialV2ProblemReportError as V2CredentialProblemReportError, DidCommCredentialV2ProblemReportErrorOptions as V2CredentialProblemReportErrorOptions, V2PresentationProblemReportError, W3C_VC_DATA_MODEL_VERSION, WhereStatus, WhoRetriesStatus, authenticationTypes, encodeAttachment, getOutboundDidCommMessageContext, isLinkedAttachment, isValidJweStructure, oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl, parseMessageType, publicKeyTypes, replaceLegacyDidSovPrefix, rfc0160StateFromDidExchangeState };
244
+ import { oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl } from "./util/parseInvitation.js";
245
+ export { AcceptCredentialOfferOptions, AcceptCredentialOptions, AcceptCredentialProposalOptions, AcceptCredentialRequestOptions, AcceptProofOptions, AcceptProofProposalOptions, AcceptProofRequestOptions, AckDecorator, AckStatus, AddMessageOptions, AnonCredsLinkSecretBindingMethod, AnonCredsLinkSecretBindingMethodOptions, AnonCredsLinkSecretCredentialRequestOptions, AnonCredsLinkSecretDataIntegrityBindingProof, Authentication, AuthenticationTransformer, DidCommBaseCredentialProtocol as BaseDidCommCredentialProtocol, BaseInvitationOptions, ConnectionProblemReportError, ConnectionProblemReportReason, ConnectionProtocolMsgReturnType, ConnectionRequestParams, CreateCredentialOfferOptions, CreateFromImplicitInvitationConfig, CreateLegacyInvitationConfig, CreateOutOfBandInvitationConfig, CreateProofRequestOptions, CredentialPreviewOptions, DidCommCredentialProtocolOptions_d_exports as CredentialProtocolOptions, CredentialProtocolVersionType, CredentialRecordBinding, CustomDidCommBasicMessageTags, CustomDidCommConnectionTags, CustomDidCommCredentialExchangeTags, CustomDidCommMediationTags, CustomDidCommProofExchangeTags, DIDInvitationOptions, DataIntegrityBindingMethods, DataIntegrityBindingMethodsOptions, DataIntegrityCredential, DataIntegrityCredentialOffer, DataIntegrityCredentialOfferOptions, DataIntegrityCredentialRequest, DataIntegrityCredentialRequestBindingProof, DeclineCredentialOfferOptions, DeclineProofRequestOptions, DefaultDidCommBasicMessageTags, DefaultDidCommConnectionTags, DefaultDidCommCredentialExchangeTags, DefaultDidCommCredentialProtocols, DefaultDidCommMediationTags, DefaultDidCommMediatorRoutingRecordTags, DefaultDidCommMessagePickupProtocols, DefaultDidCommMessageTags, DefaultDidCommProofExchangeTags, DefaultDidCommProofProtocols, DeleteCredentialOptions, DeleteProofOptions, DeliverMessagesFromQueueOptions, DeliverMessagesFromQueueReturnType, DeliverMessagesOptions, DeliverMessagesReturnType, DescriptionOptions, DidCommAckMessage, DidCommAckMessageHandler, DidCommAckMessageOptions, DidCommAnonCredsLinkSecretCreateOfferOptions, DidCommApi, DidCommAttachment, DidCommAttachmentData, DidCommAutoAcceptCredential, DidCommAutoAcceptProof, DidCommBaseProofProtocol, DidCommBasicMessage, DidCommBasicMessageEventTypes, DidCommBasicMessageRecord, DidCommBasicMessageRepository, DidCommBasicMessageRole, DidCommBasicMessageService, DidCommBasicMessageStateChangedEvent, DidCommBasicMessageStorageProps, DidCommBasicMessageTags, DidCommBasicMessagesApi, DidCommBasicMessagesModule, DidCommBatchMessage, DidCommBatchMessageMessage, DidCommBatchMessageOptions, DidCommBatchPickupMessage, DidCommBatchPickupMessageOptions, DidCommConnection, DidCommConnectionDidRotatedEvent, DidCommConnectionEventTypes, DidCommConnectionInvitationMessage, DidCommConnectionInvitationMessageOptions, DidCommConnectionOptions, DidCommConnectionProblemReportHandler, DidCommConnectionProblemReportMessage, DidCommConnectionProblemReportMessageOptions, DidCommConnectionRecord, DidCommConnectionRecordProps, DidCommConnectionRepository, DidCommConnectionRequestHandler, DidCommConnectionRequestMessage, DidCommConnectionRequestMessageOptions, DidCommConnectionResponseHandler, DidCommConnectionResponseMessage, DidCommConnectionResponseMessageOptions, DidCommConnectionRole, DidCommConnectionService, DidCommConnectionState, DidCommConnectionStateChangedEvent, DidCommConnectionType, DidCommConnectionsApi, DidCommConnectionsModule, DidCommConnectionsModuleConfig, DidCommConnectionsModuleConfigOptions, DidCommCredentialEventTypes, DidCommCredentialExchangeRecord, DidCommCredentialExchangeRecordProps, DidCommCredentialExchangeRepository, DidCommCredentialFormat, DidCommCredentialFormatAcceptOfferOptions, DidCommCredentialFormatAcceptProposalOptions, DidCommCredentialFormatAcceptRequestOptions, DidCommCredentialFormatAutoRespondCredentialOptions, DidCommCredentialFormatAutoRespondOfferOptions, DidCommCredentialFormatAutoRespondProposalOptions, DidCommCredentialFormatAutoRespondRequestOptions, DidCommCredentialFormatCreateOfferOptions, DidCommCredentialFormatCreateOfferReturn, DidCommCredentialFormatCreateProposalOptions, DidCommCredentialFormatCreateProposalReturn, DidCommCredentialFormatCreateRequestOptions, DidCommCredentialFormatCreateReturn, DidCommCredentialFormatPayload, DidCommCredentialFormatProcessCredentialOptions, DidCommCredentialFormatProcessOptions, DidCommCredentialFormatService, DidCommCredentialFormatSpec, DidCommCredentialFormatSpecOptions, DidCommCredentialPreviewAttribute, DidCommCredentialPreviewAttributeOptions, DidCommCredentialProblemReportReason, DidCommCredentialProtocol, DidCommCredentialRole, DidCommCredentialState, DidCommCredentialStateChangedEvent, DidCommCredentialV2AckMessage, DidCommCredentialV2AckMessageOptions, DidCommCredentialV2Preview, DidCommCredentialV2ProblemReportMessage, DidCommCredentialV2ProblemReportMessageOptions, DidCommCredentialV2Protocol, DidCommCredentialV2ProtocolConfig, DidCommCredentialsApi, DidCommCredentialsModule, DidCommCredentialsModuleConfig, DidCommCredentialsModuleConfigOptions, DidCommCredentialsModuleOptions, DidCommDataIntegrityAcceptOfferFormat, DidCommDataIntegrityAcceptRequestFormat, DidCommDataIntegrityCredentialFormat, DidCommDataIntegrityOfferCredentialFormat, DidCommDeliveryRequestV2Message, DidCommDeliveryRequestV2MessageOptions, DidCommDidExchangeCompleteHandler, DidCommDidExchangeCompleteMessage, DidCommDidExchangeCompleteMessageOptions, DidCommDidExchangeProblemReportMessage, DidCommDidExchangeProblemReportMessageOptions, DidCommDidExchangeRequestHandler, DidCommDidExchangeRequestMessage, DidCommDidExchangeRequestMessageOptions, DidCommDidExchangeResponseHandler, DidCommDidExchangeResponseMessage, DidCommDidExchangeResponseMessageOptions, DidCommDidExchangeRole, DidCommDidExchangeState, DidCommDidRotateAckHandler, DidCommDidRotateAckMessage, DidCommDidRotateAckMessageOptions, DidCommDidRotateHandler, DidCommDidRotateMessage, DidCommDidRotateMessageOptions, DidCommDidRotateProblemReportHandler, DidCommDidRotateProblemReportMessage, DidCommDidRotateProblemReportMessageOptions, DidCommDidRotateRole, DidCommDidRotateService, DidCommDifPresentationExchangeProofFormat, DidCommDifPresentationExchangeProofFormatService, DidCommDiscoverFeaturesApi, DidCommDiscoverFeaturesDisclosureReceivedEvent, DidCommDiscoverFeaturesEventTypes, DidCommDiscoverFeaturesModule, DidCommDiscoverFeaturesQueryReceivedEvent, DidCommDiscoverFeaturesV1Service, DidCommDiscoverFeaturesV2Service, DidCommDispatcher, DidCommDocumentService, DidCommEncryptedMessage, DidCommEnvelopeService, DidCommEventTypes, DidCommFeature, DidCommFeatureOptions, DidCommFeatureQuery, DidCommFeatureQueryOptions, DidCommFeatureRegistry, DidCommFeaturesDiscloseMessage, DidCommFeaturesDiscloseMessageOptions, DidCommFeaturesDiscloseProtocol, DidCommFeaturesDiscloseProtocolOptions, DidCommFeaturesDisclosuresMessage, DidCommFeaturesDisclosuresMessageOptions, DidCommFeaturesQueriesMessage, DidCommFeaturesQueriesMessageOptions, DidCommFeaturesQueryMessage, DidCommFeaturesQueryMessageOptions, DidCommFormatCreateRequestOptions, DidCommForwardMessage, DidCommForwardMessageOptions, DidCommGoalCode, DidCommGoalCodeOptions, DidCommGovernanceFramework, DidCommGovernanceFrameworkOptions, DidCommHandshakeProtocol, DidCommHandshakeReuseAcceptedMessage, DidCommHandshakeReuseAcceptedMessageOptions, DidCommHandshakeReuseMessage, DidCommHandshakeReuseMessageOptions, DidCommHandshakeReusedEvent, DidCommHangupHandler, DidCommHangupMessage, DidCommHangupMessageOptions, DidCommHttpOutboundTransport, DidCommInboundMessageContext, DidCommInboundTransport, DidCommInvitationType, DidCommIssueCredentialV2Message, DidCommIssueCredentialV2MessageOptions, DidCommJsonLdAcceptRequestFormat, DidCommJsonLdCredentialDetail, DidCommJsonLdCredentialDetailCredentialStatus, DidCommJsonLdCredentialDetailCredentialStatusOptions, DidCommJsonLdCredentialDetailFormat, DidCommJsonLdCredentialDetailInputOptions, DidCommJsonLdCredentialDetailOptions, DidCommJsonLdCredentialDetailOptionsOptions, DidCommJsonLdCredentialFormat, DidCommJsonLdCredentialFormatService, DidCommKeylistUpdate, DidCommKeylistUpdateAction, DidCommKeylistUpdateMessage, DidCommKeylistUpdateMessageOptions, DidCommKeylistUpdateOptions, DidCommKeylistUpdateResponseMessage, DidCommKeylistUpdateResponseMessageOptions, DidCommKeylistUpdateResult, DidCommKeylistUpdated, DidCommKeylistUpdatedEvent, DidCommLinkedAttachment, type DidCommLinkedAttachmentOptions, DidCommLiveDeliveryChangeV2Message, DidCommLiveDeliveryChangeV2MessageOptions, DidCommMediationDenyMessage, DidCommMediationDenyMessageOptions, DidCommMediationGrantMessage, DidCommMediationGrantMessageOptions, DidCommMediationRecipientApi, DidCommMediationRecipientModule, DidCommMediationRecipientService, DidCommMediationRecord, DidCommMediationRecordProps, DidCommMediationRepository, DidCommMediationRequestMessage, DidCommMediationRequestMessageOptions, DidCommMediationRole, DidCommMediationState, DidCommMediationStateChangedEvent, DidCommMediatorApi, DidCommMediatorModule, DidCommMediatorPickupStrategy, DidCommMediatorRoutingRecord, DidCommMediatorRoutingRecordProps, DidCommMediatorRoutingRecordRoutingKey, DidCommMediatorRoutingRepository, DidCommMediatorService, DidCommMessage, DidCommMessageDeliveryV2Message, DidCommMessageDeliveryV2MessageOptions, DidCommMessageForwardingStrategy, DidCommMessageHandler, DidCommMessageHandlerInboundMessage, DidCommMessageHandlerMiddleware, DidCommMessageHandlerMiddlewareRunner, DidCommMessageHandlerRegistry, DidCommMessagePickupApi, DidCommMessagePickupEventTypes, DidCommMessagePickupLiveSessionSavedEvent, DidCommMessagePickupModule, DidCommMessagePickupModuleConfig, DidCommMessagePickupModuleConfigOptions, DidCommMessagePickupModuleOptions, DidCommMessagePickupProtocol, DidCommMessagePickupProtocolVersionType, DidCommMessagePickupSessionService, DidCommMessagePickupV1Protocol, DidCommMessagePickupV2Protocol, DidCommMessageProcessedEvent, DidCommMessageReceivedEvent, DidCommMessageReceiver, DidCommMessageRecord, DidCommMessageRecordProps, DidCommMessageRepository, DidCommMessageRole, DidCommMessageSender, DidCommMessageSentEvent, DidCommMessagesReceivedV2Message, DidCommMessagesReceivedV2MessageOptions, DidCommMimeType, DidCommModule, DidCommModuleConfig, type DidCommModuleConfigOptions, DidCommOfferCredentialV2Message, DidCommOfferCredentialV2MessageOptions, DidCommOutOfBandApi, DidCommOutOfBandEventTypes, DidCommOutOfBandInlineServiceKey, DidCommOutOfBandInvitation, DidCommOutOfBandInvitationOptions, DidCommOutOfBandModule, DidCommOutOfBandRecord, DidCommOutOfBandRecordProps, DidCommOutOfBandRepository, DidCommOutOfBandRole, DidCommOutOfBandService, DidCommOutOfBandState, DidCommOutOfBandStateChangedEvent, DidCommOutboundMessageContext, DidCommOutboundMessageContextParams, DidCommOutboundPackage, DidCommOutboundTransport, DidCommOutboundWebSocketClosedEvent, DidCommOutboundWebSocketOpenedEvent, DidCommPlaintextMessage, DidCommPresentationProblemReportReason, DidCommPresentationV2AckMessage, DidCommPresentationV2Message, DidCommPresentationV2MessageOptions, DidCommPresentationV2ProblemReportMessage, DidCommProblemReportError, DidCommProblemReportErrorOptions, DidCommProblemReportMessage, DidCommProblemReportMessageOptions, DidCommProblemReportReason, DidCommProofEventTypes, DidCommProofExchangeRecord, DidCommProofExchangeRecordProps, DidCommProofExchangeRepository, DidCommProofFormat, DidCommProofFormatAcceptProposalOptions, DidCommProofFormatAcceptRequestOptions, DidCommProofFormatAutoRespondPresentationOptions, DidCommProofFormatAutoRespondProposalOptions, DidCommProofFormatAutoRespondRequestOptions, DidCommProofFormatCreateProposalOptions, DidCommProofFormatCreateReturn, DidCommProofFormatCredentialForRequestPayload, DidCommProofFormatGetCredentialsForRequestOptions, DidCommProofFormatGetCredentialsForRequestReturn, DidCommProofFormatPayload, DidCommProofFormatProcessOptions, DidCommProofFormatProcessPresentationOptions, DidCommProofFormatSelectCredentialsForRequestOptions, DidCommProofFormatSelectCredentialsForRequestReturn, DidCommProofFormatService, DidCommProofFormatSpec, DidCommProofFormatSpecOptions, DidCommProofProtocol, DidCommProofRole, DidCommProofState, DidCommProofStateChangedEvent, DidCommProofV2Protocol, DidCommProofV2ProtocolConfig, DidCommProofsApi, DidCommProofsModule, DidCommProofsModuleConfig, DidCommProofsModuleConfigOptions, DidCommProofsModuleOptions, DidCommProposeCredentialV2Message, DidCommProposeCredentialV2MessageOptions, DidCommProposePresentationV2Message, DidCommProposePresentationV2MessageOptions, DidCommProtocol, DidCommQueueTransportRepository, DidCommRequestCredentialV2Message, DidCommRequestCredentialV2MessageOptions, DidCommRequestPresentationV2Message, DidCommRequestPresentationV2MessageOptions, DidCommRevocationNotification, DidCommRevocationNotificationReceivedEvent, DidCommRevocationNotificationV1Message, DidCommRevocationNotificationV1MessageOptions, DidCommRevocationNotificationV2Message, DidCommRevocationNotificationV2MessageOptions, DidCommRouting, DidCommRoutingCreatedEvent, DidCommRoutingEventTypes, DidCommRoutingService, DidCommSignedAttachmentBindingMethod, DidCommSignedAttachmentBindingMethodOptions, DidCommSignedAttachmentCreateOfferOptions, DidCommSignedAttachmentCredentialRequestOptions, DidCommSignedAttachmentDataIntegrityBindingProof, DidCommStatusRequestMessageV2MessageOptions, DidCommStatusRequestV2Message, DidCommStatusV2Message, DidCommStatusV2MessageOptions, DidCommTransportEventTypes, DidCommTransportService, type DidCommTransportSession, DidCommTransportSessionRemovedEvent, DidCommTransportSessionSavedEvent, DidCommTrustPingEventTypes, DidCommTrustPingMessage, DidCommTrustPingMessageHandler, DidCommTrustPingMessageOptions, DidCommTrustPingReceivedEvent, DidCommTrustPingResponseMessage, DidCommTrustPingResponseMessageHandler, DidCommTrustPingResponseMessageOptions, DidCommTrustPingService, DidCommWsOutboundTransport, DidDoc, DidExchangeProblemReportError, DidExchangeProblemReportReason, DidExchangeProtocol, DifPexGetCredentialsForProofRequestOptions, DifPresentationExchangePresentation, DifPresentationExchangeProposal, DifPresentationExchangeRequest, Ed25119Sig2018, EddsaSaSigSecp256k1, EmbeddedAuthentication, ExtractCredentialFormat, ExtractCredentialFormats, ExtractProofFormat, ExtractProofFormats, FindCredentialMessageReturn, FindCredentialOfferMessageReturn, FindCredentialProposalMessageReturn, FindCredentialRequestMessageReturn, FindProofPresentationMessageReturn, FindProofProposalMessageReturn, FindProofRequestMessageReturn, FixHintOptions, GetAgentMessageOptions, GetAvailableMessageCountOptions, GetCredentialFormatDataReturn, GetCredentialsForProofRequestOptions, GetCredentialsForProofRequestReturn, GetProofFormatDataReturn, GetRoutingOptions, ImpactStatus, InMemoryQueueTransportRepository, InlineInvitationOptions, IsValidMessageType, JsonCredential, JsonLdFormatDataCredentialDetail, JsonLdFormatDataCredentialDetailOptions, JsonLdFormatDataVerifiableCredential, MediationProtocolMsgReturnType, MessageContextParams, MessagePickupCompletedEvent, MessagePickupLiveSessionRemovedEvent, MessageSendingError, NegotiateCredentialOfferOptions, NegotiateCredentialProposalOptions, NegotiateProofProposalOptions, NegotiateProofRequestOptions, OfferCredentialOptions, OtherStatus, OutOfBandDidCommService, OutboundMessageSendStatus, type ParsedMessageType, PickupMessagesOptions, PickupMessagesReturnType, DidCommProofFormatServiceOptions_d_exports as ProofFormatServiceOptions, DidCommProofProtocolOptions_d_exports as ProofProtocolOptions, ProofsProtocolVersionType, ProposeCredentialOptions, ProposeProofOptions, ProtocolOptions, ProtocolVersion, PublicKey, PublicKeyTransformer, QueryFeaturesReturnType, QueueMessageOptions, QueueMessageReturnType, QueuedDidCommMessage, ReceiveOutOfBandImplicitInvitationConfig, ReceiveOutOfBandInvitationConfig, ReferencedAuthentication, RemoveMessagesOptions, RemoveRoutingOptions, RequestProofOptions, ReturnRouteTypes, RsaSig2018, SaveAgentMessageOptions, SelectCredentialsForProofRequestOptions, SelectCredentialsForProofRequestReturn, SendCredentialProblemReportOptions, SendPingOptions, SendProofProblemReportOptions, SendRevocationNotificationOptions, ServiceDecorator, type ServiceDecoratorOptions, ServiceMessageParams, SetLiveDeliveryModeOptions, SetLiveDeliveryModeReturnType, TakeFromQueueOptions, TrustPingResponseReceivedEvent, DidCommCredentialV2ProblemReportError as V2CredentialProblemReportError, DidCommCredentialV2ProblemReportErrorOptions as V2CredentialProblemReportErrorOptions, V2PresentationProblemReportError, W3C_VC_DATA_MODEL_VERSION, WhereStatus, WhoRetriesStatus, authenticationTypes, encodeAttachment, getOutboundDidCommMessageContext, isLinkedAttachment, isValidJweStructure, oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl, parseMessageType, publicKeyTypes, replaceLegacyDidSovPrefix, rfc0160StateFromDidExchangeState, supportsIncomingMessageType };
package/build/index.js CHANGED
@@ -691,9 +691,11 @@ exports.getOutboundDidCommMessageContext = require_getDidCommOutboundMessageCont
691
691
  exports.isLinkedAttachment = require_attachment.isLinkedAttachment;
692
692
  exports.isValidJweStructure = require_JWE.isValidJweStructure;
693
693
  exports.oobInvitationFromShortUrl = require_parseInvitation.oobInvitationFromShortUrl;
694
+ exports.parseInvitationJson = require_parseInvitation.parseInvitationJson;
694
695
  exports.parseInvitationShortUrl = require_parseInvitation.parseInvitationShortUrl;
695
696
  exports.parseInvitationUrl = require_parseInvitation.parseInvitationUrl;
696
697
  exports.parseMessageType = require_messageType.parseMessageType;
697
698
  exports.publicKeyTypes = require_index$1.publicKeyTypes;
698
699
  exports.replaceLegacyDidSovPrefix = require_messageType.replaceLegacyDidSovPrefix;
699
- exports.rfc0160StateFromDidExchangeState = require_DidCommConnectionState.rfc0160StateFromDidExchangeState;
700
+ exports.rfc0160StateFromDidExchangeState = require_DidCommConnectionState.rfc0160StateFromDidExchangeState;
701
+ exports.supportsIncomingMessageType = require_messageType.supportsIncomingMessageType;
package/build/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { DidCommFeatureRegistry } from "./DidCommFeatureRegistry.mjs";
2
- import { IsValidMessageType, parseMessageType, replaceLegacyDidSovPrefix } from "./util/messageType.mjs";
2
+ import { IsValidMessageType, parseMessageType, replaceLegacyDidSovPrefix, supportsIncomingMessageType } from "./util/messageType.mjs";
3
3
  import { DidCommMessageHandlerRegistry } from "./DidCommMessageHandlerRegistry.mjs";
4
4
  import { DidCommEventTypes } from "./DidCommEvents.mjs";
5
5
  import { isValidJweStructure } from "./util/JWE.mjs";
@@ -131,7 +131,7 @@ import { DidCommBasicMessageService } from "./modules/basic-messages/services/Di
131
131
  import { DidCommBasicMessagesApi } from "./modules/basic-messages/DidCommBasicMessagesApi.mjs";
132
132
  import { DidCommBasicMessagesModule } from "./modules/basic-messages/DidCommBasicMessagesModule.mjs";
133
133
  import { DidCommCredentialEventTypes } from "./modules/credentials/DidCommCredentialEvents.mjs";
134
- import { oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl } from "./util/parseInvitation.mjs";
134
+ import { oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl } from "./util/parseInvitation.mjs";
135
135
  import { DidCommOutOfBandApi } from "./modules/oob/DidCommOutOfBandApi.mjs";
136
136
  import { DidCommOutOfBandModule } from "./modules/oob/DidCommOutOfBandModule.mjs";
137
137
  import { DidCommDiscoverFeaturesEventTypes } from "./modules/discover-features/DidCommDiscoverFeaturesEvents.mjs";
@@ -229,4 +229,4 @@ import { DidCommModule } from "./DidCommModule.mjs";
229
229
  import { encodeAttachment, isLinkedAttachment } from "./util/attachment.mjs";
230
230
  import { DidCommLinkedAttachment } from "./util/DidCommLinkedAttachment.mjs";
231
231
 
232
- export { AckDecorator, AckStatus, AnonCredsLinkSecretBindingMethod, Authentication, AuthenticationTransformer, DidCommBaseCredentialProtocol as BaseDidCommCredentialProtocol, ConnectionProblemReportError, ConnectionProblemReportReason, DidCommCredentialProtocolOptions_exports as CredentialProtocolOptions, DataIntegrityBindingMethods, DataIntegrityCredentialOffer, DidCommAckMessage, DidCommAckMessageHandler, DidCommApi, DidCommAttachment, DidCommAttachmentData, DidCommAutoAcceptCredential, DidCommAutoAcceptProof, DidCommBaseProofProtocol, DidCommBasicMessage, DidCommBasicMessageEventTypes, DidCommBasicMessageRecord, DidCommBasicMessageRepository, DidCommBasicMessageRole, DidCommBasicMessageService, DidCommBasicMessagesApi, DidCommBasicMessagesModule, DidCommBatchMessage, DidCommBatchMessageMessage, DidCommBatchPickupMessage, DidCommConnection, DidCommConnectionEventTypes, DidCommConnectionInvitationMessage, DidCommConnectionProblemReportHandler, DidCommConnectionProblemReportMessage, DidCommConnectionRecord, DidCommConnectionRepository, DidCommConnectionRequestHandler, DidCommConnectionRequestMessage, DidCommConnectionResponseHandler, DidCommConnectionResponseMessage, DidCommConnectionRole, DidCommConnectionService, DidCommConnectionState, DidCommConnectionType, DidCommConnectionsApi, DidCommConnectionsModule, DidCommConnectionsModuleConfig, DidCommCredentialEventTypes, DidCommCredentialExchangeRecord, DidCommCredentialExchangeRepository, DidCommCredentialFormatSpec, DidCommCredentialPreviewAttribute, DidCommCredentialProblemReportReason, DidCommCredentialRole, DidCommCredentialState, DidCommCredentialV2AckMessage, DidCommCredentialV2Preview, DidCommCredentialV2ProblemReportMessage, DidCommCredentialV2Protocol, DidCommCredentialsApi, DidCommCredentialsModule, DidCommCredentialsModuleConfig, DidCommDeliveryRequestV2Message, DidCommDidExchangeCompleteHandler, DidCommDidExchangeCompleteMessage, DidCommDidExchangeProblemReportMessage, DidCommDidExchangeRequestHandler, DidCommDidExchangeRequestMessage, DidCommDidExchangeResponseHandler, DidCommDidExchangeResponseMessage, DidCommDidExchangeRole, DidCommDidExchangeState, DidCommDidRotateAckHandler, DidCommDidRotateAckMessage, DidCommDidRotateHandler, DidCommDidRotateMessage, DidCommDidRotateProblemReportHandler, DidCommDidRotateProblemReportMessage, DidCommDidRotateRole, DidCommDidRotateService, DidCommDifPresentationExchangeProofFormatService, DidCommDiscoverFeaturesApi, DidCommDiscoverFeaturesEventTypes, DidCommDiscoverFeaturesModule, DidCommDiscoverFeaturesV1Service, DidCommDiscoverFeaturesV2Service, DidCommDispatcher, DidCommDocumentService, DidCommEnvelopeService, DidCommEventTypes, DidCommFeature, DidCommFeatureQuery, DidCommFeatureRegistry, DidCommFeaturesDiscloseMessage, DidCommFeaturesDiscloseProtocol, DidCommFeaturesDisclosuresMessage, DidCommFeaturesQueriesMessage, DidCommFeaturesQueryMessage, DidCommForwardMessage, DidCommGoalCode, DidCommGovernanceFramework, DidCommHandshakeProtocol, DidCommHandshakeReuseAcceptedMessage, DidCommHandshakeReuseMessage, DidCommHangupHandler, DidCommHangupMessage, DidCommHttpOutboundTransport, DidCommInboundMessageContext, DidCommInvitationType, DidCommIssueCredentialV2Message, DidCommJsonLdCredentialDetail, DidCommJsonLdCredentialDetailCredentialStatus, DidCommJsonLdCredentialDetailOptions, DidCommJsonLdCredentialFormatService, DidCommKeylistUpdate, DidCommKeylistUpdateAction, DidCommKeylistUpdateMessage, DidCommKeylistUpdateResponseMessage, DidCommKeylistUpdateResult, DidCommKeylistUpdated, DidCommLinkedAttachment, DidCommLiveDeliveryChangeV2Message, DidCommMediationDenyMessage, DidCommMediationGrantMessage, DidCommMediationRecipientApi, DidCommMediationRecipientModule, DidCommMediationRecipientService, DidCommMediationRecord, DidCommMediationRepository, DidCommMediationRequestMessage, DidCommMediationRole, DidCommMediationState, DidCommMediatorApi, DidCommMediatorModule, DidCommMediatorPickupStrategy, DidCommMediatorRoutingRecord, DidCommMediatorRoutingRepository, DidCommMediatorService, DidCommMessage, DidCommMessageDeliveryV2Message, DidCommMessageForwardingStrategy, DidCommMessageHandlerMiddlewareRunner, DidCommMessageHandlerRegistry, DidCommMessagePickupApi, DidCommMessagePickupEventTypes, DidCommMessagePickupModule, DidCommMessagePickupModuleConfig, DidCommMessagePickupSessionService, DidCommMessagePickupV1Protocol, DidCommMessagePickupV2Protocol, DidCommMessageReceiver, DidCommMessageRecord, DidCommMessageRepository, DidCommMessageRole, DidCommMessageSender, DidCommMessagesReceivedV2Message, DidCommMimeType, DidCommModule, DidCommModuleConfig, DidCommOfferCredentialV2Message, DidCommOutOfBandApi, DidCommOutOfBandEventTypes, DidCommOutOfBandInvitation, DidCommOutOfBandModule, DidCommOutOfBandRecord, DidCommOutOfBandRepository, DidCommOutOfBandRole, DidCommOutOfBandService, DidCommOutOfBandState, DidCommOutboundMessageContext, DidCommPresentationProblemReportReason, DidCommPresentationV2AckMessage, DidCommPresentationV2Message, DidCommPresentationV2ProblemReportMessage, DidCommProblemReportError, DidCommProblemReportMessage, DidCommProblemReportReason, DidCommProofEventTypes, DidCommProofExchangeRecord, DidCommProofExchangeRepository, DidCommProofFormatSpec, DidCommProofRole, DidCommProofState, DidCommProofV2Protocol, DidCommProofsApi, DidCommProofsModule, DidCommProofsModuleConfig, DidCommProposeCredentialV2Message, DidCommProposePresentationV2Message, DidCommProtocol, DidCommRequestCredentialV2Message, DidCommRequestPresentationV2Message, DidCommRevocationNotification, DidCommRevocationNotificationV1Message, DidCommRevocationNotificationV2Message, DidCommRoutingEventTypes, DidCommRoutingService, DidCommSignedAttachmentBindingMethod, DidCommStatusRequestV2Message, DidCommStatusV2Message, DidCommTransportEventTypes, DidCommTransportService, DidCommTrustPingEventTypes, DidCommTrustPingMessage, DidCommTrustPingMessageHandler, DidCommTrustPingResponseMessage, DidCommTrustPingResponseMessageHandler, DidCommTrustPingService, DidCommWsOutboundTransport, DidDoc, DidExchangeProblemReportError, DidExchangeProblemReportReason, DidExchangeProtocol, Ed25119Sig2018, EddsaSaSigSecp256k1, EmbeddedAuthentication, ImpactStatus, InMemoryQueueTransportRepository, IsValidMessageType, MessageSendingError, OtherStatus, OutOfBandDidCommService, OutboundMessageSendStatus, DidCommProofFormatServiceOptions_exports as ProofFormatServiceOptions, DidCommProofProtocolOptions_exports as ProofProtocolOptions, PublicKey, PublicKeyTransformer, ReferencedAuthentication, ReturnRouteTypes, RsaSig2018, ServiceDecorator, DidCommCredentialV2ProblemReportError as V2CredentialProblemReportError, V2PresentationProblemReportError, WhereStatus, WhoRetriesStatus, authenticationTypes, encodeAttachment, getOutboundDidCommMessageContext, isLinkedAttachment, isValidJweStructure, oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl, parseMessageType, publicKeyTypes, replaceLegacyDidSovPrefix, rfc0160StateFromDidExchangeState };
232
+ export { AckDecorator, AckStatus, AnonCredsLinkSecretBindingMethod, Authentication, AuthenticationTransformer, DidCommBaseCredentialProtocol as BaseDidCommCredentialProtocol, ConnectionProblemReportError, ConnectionProblemReportReason, DidCommCredentialProtocolOptions_exports as CredentialProtocolOptions, DataIntegrityBindingMethods, DataIntegrityCredentialOffer, DidCommAckMessage, DidCommAckMessageHandler, DidCommApi, DidCommAttachment, DidCommAttachmentData, DidCommAutoAcceptCredential, DidCommAutoAcceptProof, DidCommBaseProofProtocol, DidCommBasicMessage, DidCommBasicMessageEventTypes, DidCommBasicMessageRecord, DidCommBasicMessageRepository, DidCommBasicMessageRole, DidCommBasicMessageService, DidCommBasicMessagesApi, DidCommBasicMessagesModule, DidCommBatchMessage, DidCommBatchMessageMessage, DidCommBatchPickupMessage, DidCommConnection, DidCommConnectionEventTypes, DidCommConnectionInvitationMessage, DidCommConnectionProblemReportHandler, DidCommConnectionProblemReportMessage, DidCommConnectionRecord, DidCommConnectionRepository, DidCommConnectionRequestHandler, DidCommConnectionRequestMessage, DidCommConnectionResponseHandler, DidCommConnectionResponseMessage, DidCommConnectionRole, DidCommConnectionService, DidCommConnectionState, DidCommConnectionType, DidCommConnectionsApi, DidCommConnectionsModule, DidCommConnectionsModuleConfig, DidCommCredentialEventTypes, DidCommCredentialExchangeRecord, DidCommCredentialExchangeRepository, DidCommCredentialFormatSpec, DidCommCredentialPreviewAttribute, DidCommCredentialProblemReportReason, DidCommCredentialRole, DidCommCredentialState, DidCommCredentialV2AckMessage, DidCommCredentialV2Preview, DidCommCredentialV2ProblemReportMessage, DidCommCredentialV2Protocol, DidCommCredentialsApi, DidCommCredentialsModule, DidCommCredentialsModuleConfig, DidCommDeliveryRequestV2Message, DidCommDidExchangeCompleteHandler, DidCommDidExchangeCompleteMessage, DidCommDidExchangeProblemReportMessage, DidCommDidExchangeRequestHandler, DidCommDidExchangeRequestMessage, DidCommDidExchangeResponseHandler, DidCommDidExchangeResponseMessage, DidCommDidExchangeRole, DidCommDidExchangeState, DidCommDidRotateAckHandler, DidCommDidRotateAckMessage, DidCommDidRotateHandler, DidCommDidRotateMessage, DidCommDidRotateProblemReportHandler, DidCommDidRotateProblemReportMessage, DidCommDidRotateRole, DidCommDidRotateService, DidCommDifPresentationExchangeProofFormatService, DidCommDiscoverFeaturesApi, DidCommDiscoverFeaturesEventTypes, DidCommDiscoverFeaturesModule, DidCommDiscoverFeaturesV1Service, DidCommDiscoverFeaturesV2Service, DidCommDispatcher, DidCommDocumentService, DidCommEnvelopeService, DidCommEventTypes, DidCommFeature, DidCommFeatureQuery, DidCommFeatureRegistry, DidCommFeaturesDiscloseMessage, DidCommFeaturesDiscloseProtocol, DidCommFeaturesDisclosuresMessage, DidCommFeaturesQueriesMessage, DidCommFeaturesQueryMessage, DidCommForwardMessage, DidCommGoalCode, DidCommGovernanceFramework, DidCommHandshakeProtocol, DidCommHandshakeReuseAcceptedMessage, DidCommHandshakeReuseMessage, DidCommHangupHandler, DidCommHangupMessage, DidCommHttpOutboundTransport, DidCommInboundMessageContext, DidCommInvitationType, DidCommIssueCredentialV2Message, DidCommJsonLdCredentialDetail, DidCommJsonLdCredentialDetailCredentialStatus, DidCommJsonLdCredentialDetailOptions, DidCommJsonLdCredentialFormatService, DidCommKeylistUpdate, DidCommKeylistUpdateAction, DidCommKeylistUpdateMessage, DidCommKeylistUpdateResponseMessage, DidCommKeylistUpdateResult, DidCommKeylistUpdated, DidCommLinkedAttachment, DidCommLiveDeliveryChangeV2Message, DidCommMediationDenyMessage, DidCommMediationGrantMessage, DidCommMediationRecipientApi, DidCommMediationRecipientModule, DidCommMediationRecipientService, DidCommMediationRecord, DidCommMediationRepository, DidCommMediationRequestMessage, DidCommMediationRole, DidCommMediationState, DidCommMediatorApi, DidCommMediatorModule, DidCommMediatorPickupStrategy, DidCommMediatorRoutingRecord, DidCommMediatorRoutingRepository, DidCommMediatorService, DidCommMessage, DidCommMessageDeliveryV2Message, DidCommMessageForwardingStrategy, DidCommMessageHandlerMiddlewareRunner, DidCommMessageHandlerRegistry, DidCommMessagePickupApi, DidCommMessagePickupEventTypes, DidCommMessagePickupModule, DidCommMessagePickupModuleConfig, DidCommMessagePickupSessionService, DidCommMessagePickupV1Protocol, DidCommMessagePickupV2Protocol, DidCommMessageReceiver, DidCommMessageRecord, DidCommMessageRepository, DidCommMessageRole, DidCommMessageSender, DidCommMessagesReceivedV2Message, DidCommMimeType, DidCommModule, DidCommModuleConfig, DidCommOfferCredentialV2Message, DidCommOutOfBandApi, DidCommOutOfBandEventTypes, DidCommOutOfBandInvitation, DidCommOutOfBandModule, DidCommOutOfBandRecord, DidCommOutOfBandRepository, DidCommOutOfBandRole, DidCommOutOfBandService, DidCommOutOfBandState, DidCommOutboundMessageContext, DidCommPresentationProblemReportReason, DidCommPresentationV2AckMessage, DidCommPresentationV2Message, DidCommPresentationV2ProblemReportMessage, DidCommProblemReportError, DidCommProblemReportMessage, DidCommProblemReportReason, DidCommProofEventTypes, DidCommProofExchangeRecord, DidCommProofExchangeRepository, DidCommProofFormatSpec, DidCommProofRole, DidCommProofState, DidCommProofV2Protocol, DidCommProofsApi, DidCommProofsModule, DidCommProofsModuleConfig, DidCommProposeCredentialV2Message, DidCommProposePresentationV2Message, DidCommProtocol, DidCommRequestCredentialV2Message, DidCommRequestPresentationV2Message, DidCommRevocationNotification, DidCommRevocationNotificationV1Message, DidCommRevocationNotificationV2Message, DidCommRoutingEventTypes, DidCommRoutingService, DidCommSignedAttachmentBindingMethod, DidCommStatusRequestV2Message, DidCommStatusV2Message, DidCommTransportEventTypes, DidCommTransportService, DidCommTrustPingEventTypes, DidCommTrustPingMessage, DidCommTrustPingMessageHandler, DidCommTrustPingResponseMessage, DidCommTrustPingResponseMessageHandler, DidCommTrustPingService, DidCommWsOutboundTransport, DidDoc, DidExchangeProblemReportError, DidExchangeProblemReportReason, DidExchangeProtocol, Ed25119Sig2018, EddsaSaSigSecp256k1, EmbeddedAuthentication, ImpactStatus, InMemoryQueueTransportRepository, IsValidMessageType, MessageSendingError, OtherStatus, OutOfBandDidCommService, OutboundMessageSendStatus, DidCommProofFormatServiceOptions_exports as ProofFormatServiceOptions, DidCommProofProtocolOptions_exports as ProofProtocolOptions, PublicKey, PublicKeyTransformer, ReferencedAuthentication, ReturnRouteTypes, RsaSig2018, ServiceDecorator, DidCommCredentialV2ProblemReportError as V2CredentialProblemReportError, V2PresentationProblemReportError, WhereStatus, WhoRetriesStatus, authenticationTypes, encodeAttachment, getOutboundDidCommMessageContext, isLinkedAttachment, isValidJweStructure, oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl, parseMessageType, publicKeyTypes, replaceLegacyDidSovPrefix, rfc0160StateFromDidExchangeState, supportsIncomingMessageType };
@@ -57,6 +57,42 @@ interface ParsedMessageType extends ParsedDidCommProtocolUri {
57
57
  messageTypeUri: string;
58
58
  }
59
59
  declare function parseMessageType(messageType: string): ParsedMessageType;
60
+ /**
61
+ * Check whether the incoming message type is a message type that can be handled by comparing it to the expected message type.
62
+ * 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
63
+ * that is parsed from the incoming JSON.
64
+ *
65
+ * The method will make sure the following fields are equal:
66
+ * - documentUri
67
+ * - protocolName
68
+ * - majorVersion
69
+ * - messageName
70
+ *
71
+ * If allowLegacyDidSovPrefixMismatch is true (default) it will allow for the case where the incoming message type still has the legacy
72
+ * did:sov:BzCbsNYhMrjHiqZDTUASHg;spec did prefix, but the expected message type does not. This only works for incoming messages with a prefix
73
+ * of did:sov:BzCbsNYhMrjHiqZDTUASHg;spec and the expected message type having a prefix value of https:/didcomm.org
74
+ *
75
+ * @example
76
+ * const incomingMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')
77
+ * const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.4/request')
78
+ *
79
+ * // Returns true because the incoming message type is equal to the expected message type, except for
80
+ * // the minor version, which is lower
81
+ * const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)
82
+ *
83
+ * @example
84
+ * const incomingMessageType = parseMessageType('did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/request')
85
+ * const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')
86
+ *
87
+ * // Returns true because the incoming message type is equal to the expected message type, except for
88
+ * // the legacy did sov prefix.
89
+ * const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)
90
+ */
91
+ declare function supportsIncomingMessageType(incomingMessageType: ParsedMessageType, expectedMessageType: ParsedMessageType, {
92
+ allowLegacyDidSovPrefixMismatch
93
+ }?: {
94
+ allowLegacyDidSovPrefixMismatch?: boolean;
95
+ }): boolean;
60
96
  /**
61
97
  * class-validator decorator to check if the string message type value matches with the
62
98
  * expected message type. This uses {@link supportsIncomingMessageType}.
@@ -64,5 +100,5 @@ declare function parseMessageType(messageType: string): ParsedMessageType;
64
100
  declare function IsValidMessageType(messageType: ParsedMessageType, validationOptions?: ValidationOptions): PropertyDecorator;
65
101
  declare function replaceLegacyDidSovPrefix(messageType: string): string;
66
102
  //#endregion
67
- export { IsValidMessageType, ParsedDidCommProtocolUri, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix };
103
+ export { IsValidMessageType, ParsedDidCommProtocolUri, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix, supportsIncomingMessageType };
68
104
  //# sourceMappingURL=messageType.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messageType.d.mts","names":[],"sources":["../../src/util/messageType.ts"],"sourcesContent":[],"mappings":";;;UAOiB,wBAAA;EAAA;AA8CjB;AAmBA;AAmJA;;iBACe,EAAA,MAAA;;;;AAsCf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA7MiB,iBAAA,SAA0B;;;;;;;;;;;;;;;iBAmB3B,gBAAA,uBAAuC;;;;;iBAmJvC,kBAAA,cACD,uCACO,oBACnB;iBAoCa,yBAAA"}
1
+ {"version":3,"file":"messageType.d.mts","names":[],"sources":["../../src/util/messageType.ts"],"sourcesContent":[],"mappings":";;;UAOiB,wBAAA;EAAA;AA8CjB;AAmBA;AAsHA;;iBACuB,EAAA,MAAA;;;;AA4BvB;;sBACe,EAAA,MAAA;;;;AAsCf;;;;;;;;;;;;;;;;;;;;;;;;UA7MiB,iBAAA,SAA0B;;;;;;;;;;;;;;;iBAmB3B,gBAAA,uBAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsHvC,2BAAA,sBACO,wCACA;;;;;;;;;iBA2BP,kBAAA,cACD,uCACO,oBACnB;iBAoCa,yBAAA"}
@@ -57,6 +57,42 @@ interface ParsedMessageType extends ParsedDidCommProtocolUri {
57
57
  messageTypeUri: string;
58
58
  }
59
59
  declare function parseMessageType(messageType: string): ParsedMessageType;
60
+ /**
61
+ * Check whether the incoming message type is a message type that can be handled by comparing it to the expected message type.
62
+ * 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
63
+ * that is parsed from the incoming JSON.
64
+ *
65
+ * The method will make sure the following fields are equal:
66
+ * - documentUri
67
+ * - protocolName
68
+ * - majorVersion
69
+ * - messageName
70
+ *
71
+ * If allowLegacyDidSovPrefixMismatch is true (default) it will allow for the case where the incoming message type still has the legacy
72
+ * did:sov:BzCbsNYhMrjHiqZDTUASHg;spec did prefix, but the expected message type does not. This only works for incoming messages with a prefix
73
+ * of did:sov:BzCbsNYhMrjHiqZDTUASHg;spec and the expected message type having a prefix value of https:/didcomm.org
74
+ *
75
+ * @example
76
+ * const incomingMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')
77
+ * const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.4/request')
78
+ *
79
+ * // Returns true because the incoming message type is equal to the expected message type, except for
80
+ * // the minor version, which is lower
81
+ * const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)
82
+ *
83
+ * @example
84
+ * const incomingMessageType = parseMessageType('did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/request')
85
+ * const expectedMessageType = parseMessageType('https://didcomm.org/connections/1.0/request')
86
+ *
87
+ * // Returns true because the incoming message type is equal to the expected message type, except for
88
+ * // the legacy did sov prefix.
89
+ * const isIncomingMessageTypeSupported = supportsIncomingMessageType(incomingMessageType, expectedMessageType)
90
+ */
91
+ declare function supportsIncomingMessageType(incomingMessageType: ParsedMessageType, expectedMessageType: ParsedMessageType, {
92
+ allowLegacyDidSovPrefixMismatch
93
+ }?: {
94
+ allowLegacyDidSovPrefixMismatch?: boolean;
95
+ }): boolean;
60
96
  /**
61
97
  * class-validator decorator to check if the string message type value matches with the
62
98
  * expected message type. This uses {@link supportsIncomingMessageType}.
@@ -64,5 +100,5 @@ declare function parseMessageType(messageType: string): ParsedMessageType;
64
100
  declare function IsValidMessageType(messageType: ParsedMessageType, validationOptions?: ValidationOptions): PropertyDecorator;
65
101
  declare function replaceLegacyDidSovPrefix(messageType: string): string;
66
102
  //#endregion
67
- export { IsValidMessageType, ParsedDidCommProtocolUri, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix };
103
+ export { IsValidMessageType, ParsedDidCommProtocolUri, ParsedMessageType, parseMessageType, replaceLegacyDidSovPrefix, supportsIncomingMessageType };
68
104
  //# sourceMappingURL=messageType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messageType.d.ts","names":[],"sources":["../../src/util/messageType.ts"],"sourcesContent":[],"mappings":";;;UAOiB,wBAAA;EAAA;AA8CjB;AAmBA;AAmJA;;iBACe,EAAA,MAAA;;;;AAsCf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA7MiB,iBAAA,SAA0B;;;;;;;;;;;;;;;iBAmB3B,gBAAA,uBAAuC;;;;;iBAmJvC,kBAAA,cACD,uCACO,oBACnB;iBAoCa,yBAAA"}
1
+ {"version":3,"file":"messageType.d.ts","names":[],"sources":["../../src/util/messageType.ts"],"sourcesContent":[],"mappings":";;;UAOiB,wBAAA;EAAA;AA8CjB;AAmBA;AAsHA;;iBACuB,EAAA,MAAA;;;;AA4BvB;;sBACe,EAAA,MAAA;;;;AAsCf;;;;;;;;;;;;;;;;;;;;;;;;UA7MiB,iBAAA,SAA0B;;;;;;;;;;;;;;;iBAmB3B,gBAAA,uBAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsHvC,2BAAA,sBACO,wCACA;;;;;;;;;iBA2BP,kBAAA,cACD,uCACO,oBACnB;iBAoCa,yBAAA"}
@@ -3,6 +3,13 @@ import { AgentDependencies } from "@credo-ts/core";
3
3
 
4
4
  //#region src/util/parseInvitation.d.ts
5
5
 
6
+ /**
7
+ * Parses a JSON containing an invitation message and returns an DidCommOutOfBandInvitation instance
8
+ *
9
+ * @param invitationJson JSON object containing message
10
+ * @returns DidCommOutOfBandInvitation
11
+ */
12
+ declare const parseInvitationJson: (invitationJson: Record<string, unknown>) => DidCommOutOfBandInvitation;
6
13
  /**
7
14
  * Parses URL containing encoded invitation and returns invitation message.
8
15
  *
@@ -24,5 +31,5 @@ declare const oobInvitationFromShortUrl: (response: Response) => Promise<DidComm
24
31
  */
25
32
  declare const parseInvitationShortUrl: (invitationUrl: string, dependencies: AgentDependencies) => Promise<DidCommOutOfBandInvitation>;
26
33
  //#endregion
27
- export { oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl };
34
+ export { oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl };
28
35
  //# sourceMappingURL=parseInvitation.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseInvitation.d.mts","names":[],"sources":["../../src/util/parseInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8IA;;;;;AAGU,cAxEG,kBAwEH,EAAA,CAAA,aAAA,EAAA,MAAA,EAAA,GAxEiD,0BAwEjD;cAzDG,sCAA6C,aAAW,QAAQ;;;;;;;;;;;cAsDhE,+DAEG,sBACb,QAAQ"}
1
+ {"version":3,"file":"parseInvitation.d.mts","names":[],"sources":["../../src/util/parseInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;AAsCA;;;;AA0BC,cA1BY,mBA0BZ,EAAA,CAAA,cAAA,EA1BmD,MA0BnD,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GA1B6E,0BA0B7E;AASD;AAeA;;;;;;AAsDa,cArEA,kBA2FZ,EAAA,CAAA,aAAA,EAAA,MAAA,EAAA,GA3F0D,0BA2F1D;AAAA,cA5EY,yBA4EZ,EAAA,CAAA,QAAA,EA5EyD,QA4EzD,EAAA,GA5EoE,OA4EpE,CA5E4E,0BA4E5E,CAAA;;;;;;;;;;;cAtBY,+DAEG,sBACb,QAAQ"}
@@ -3,6 +3,13 @@ import { AgentDependencies } from "@credo-ts/core";
3
3
 
4
4
  //#region src/util/parseInvitation.d.ts
5
5
 
6
+ /**
7
+ * Parses a JSON containing an invitation message and returns an DidCommOutOfBandInvitation instance
8
+ *
9
+ * @param invitationJson JSON object containing message
10
+ * @returns DidCommOutOfBandInvitation
11
+ */
12
+ declare const parseInvitationJson: (invitationJson: Record<string, unknown>) => DidCommOutOfBandInvitation;
6
13
  /**
7
14
  * Parses URL containing encoded invitation and returns invitation message.
8
15
  *
@@ -24,5 +31,5 @@ declare const oobInvitationFromShortUrl: (response: Response) => Promise<DidComm
24
31
  */
25
32
  declare const parseInvitationShortUrl: (invitationUrl: string, dependencies: AgentDependencies) => Promise<DidCommOutOfBandInvitation>;
26
33
  //#endregion
27
- export { oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl };
34
+ export { oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl };
28
35
  //# sourceMappingURL=parseInvitation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseInvitation.d.ts","names":[],"sources":["../../src/util/parseInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8IA;;;;;AAGU,cAxEG,kBAwEH,EAAA,CAAA,aAAA,EAAA,MAAA,EAAA,GAxEiD,0BAwEjD;cAzDG,sCAA6C,aAAW,QAAQ;;;;;;;;;;;cAsDhE,+DAEG,sBACb,QAAQ"}
1
+ {"version":3,"file":"parseInvitation.d.ts","names":[],"sources":["../../src/util/parseInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;AAsCA;;;;AA0BC,cA1BY,mBA0BZ,EAAA,CAAA,cAAA,EA1BmD,MA0BnD,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GA1B6E,0BA0B7E;AASD;AAeA;;;;;;AAsDa,cArEA,kBA2FZ,EAAA,CAAA,aAAA,EAAA,MAAA,EAAA,GA3F0D,0BA2F1D;AAAA,cA5EY,yBA4EZ,EAAA,CAAA,QAAA,EA5EyD,QA4EzD,EAAA,GA5EoE,OA4EpE,CA5E4E,0BA4E5E,CAAA;;;;;;;;;;;cAtBY,+DAEG,sBACb,QAAQ"}
@@ -117,5 +117,6 @@ const parseInvitationShortUrl = async (invitationUrl, dependencies) => {
117
117
 
118
118
  //#endregion
119
119
  exports.oobInvitationFromShortUrl = oobInvitationFromShortUrl;
120
+ exports.parseInvitationJson = parseInvitationJson;
120
121
  exports.parseInvitationShortUrl = parseInvitationShortUrl;
121
122
  exports.parseInvitationUrl = parseInvitationUrl;
@@ -113,5 +113,5 @@ const parseInvitationShortUrl = async (invitationUrl, dependencies) => {
113
113
  };
114
114
 
115
115
  //#endregion
116
- export { oobInvitationFromShortUrl, parseInvitationShortUrl, parseInvitationUrl };
116
+ export { oobInvitationFromShortUrl, parseInvitationJson, parseInvitationShortUrl, parseInvitationUrl };
117
117
  //# sourceMappingURL=parseInvitation.mjs.map
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "./package.json": "./package.json"
10
10
  },
11
- "version": "0.6.0-pr-2454-20251015095608",
11
+ "version": "0.6.0-pr-2457-20251016085206",
12
12
  "files": [
13
13
  "build"
14
14
  ],
@@ -28,7 +28,7 @@
28
28
  "luxon": "^3.7.2",
29
29
  "query-string": "^9.3.1",
30
30
  "rxjs": "^7.8.2",
31
- "@credo-ts/core": "0.6.0-pr-2454-20251015095608"
31
+ "@credo-ts/core": "0.6.0-pr-2457-20251016085206"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@animo-id/pex": "^6.1.1",