@credo-ts/didcomm 0.6.0-pr-2195-20250226092707 → 0.6.0-pr-2209-20250321171013

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/build/AgentMessage.d.ts +1 -1
  2. package/build/BaseMessage.d.ts +1 -1
  3. package/build/DidCommApi.d.ts +1 -1
  4. package/build/DidCommModule.d.ts +1 -1
  5. package/build/EnvelopeService.d.ts +1 -1
  6. package/build/EnvelopeService.js +1 -1
  7. package/build/EnvelopeService.js.map +1 -1
  8. package/build/Events.d.ts +1 -1
  9. package/build/FeatureRegistry.d.ts +1 -1
  10. package/build/MessageHandlerRegistry.d.ts +1 -1
  11. package/build/MessageHandlerRegistry.js +3 -3
  12. package/build/MessageHandlerRegistry.js.map +1 -1
  13. package/build/MessageReceiver.js +1 -1
  14. package/build/MessageSender.js +4 -4
  15. package/build/MessageSender.js.map +1 -1
  16. package/build/TransportService.d.ts +1 -1
  17. package/build/TransportService.js +2 -2
  18. package/build/TransportService.js.map +1 -1
  19. package/build/decorators/attachment/Attachment.js +2 -5
  20. package/build/decorators/attachment/Attachment.js.map +1 -1
  21. package/build/decorators/service/ServiceDecoratorExtension.d.ts +1 -1
  22. package/build/decorators/transport/TransportDecoratorExtension.d.ts +1 -1
  23. package/build/decorators/transport/TransportDecoratorExtension.js +2 -2
  24. package/build/decorators/transport/TransportDecoratorExtension.js.map +1 -1
  25. package/build/getOutboundMessageContext.d.ts +1 -1
  26. package/build/getOutboundMessageContext.js +2 -3
  27. package/build/getOutboundMessageContext.js.map +1 -1
  28. package/build/handlers/MessageHandler.d.ts +1 -1
  29. package/build/handlers/MessageHandlerMiddleware.d.ts +1 -3
  30. package/build/handlers/MessageHandlerMiddleware.js +2 -1
  31. package/build/handlers/MessageHandlerMiddleware.js.map +1 -1
  32. package/build/models/InboundMessageContext.d.ts +2 -2
  33. package/build/models/OutboundMessageContext.d.ts +2 -2
  34. package/build/models/OutboundMessageContext.js.map +1 -1
  35. package/build/models/features/Feature.js +1 -1
  36. package/build/models/features/Feature.js.map +1 -1
  37. package/build/modules/basic-messages/BasicMessageEvents.d.ts +1 -1
  38. package/build/modules/basic-messages/BasicMessagesApi.d.ts +1 -1
  39. package/build/modules/basic-messages/handlers/BasicMessageHandler.d.ts +1 -1
  40. package/build/modules/basic-messages/handlers/BasicMessageHandler.js +1 -0
  41. package/build/modules/basic-messages/handlers/BasicMessageHandler.js.map +1 -1
  42. package/build/modules/basic-messages/repository/BasicMessageRecord.d.ts +1 -1
  43. package/build/modules/basic-messages/services/BasicMessageService.d.ts +1 -1
  44. package/build/modules/connections/ConnectionEvents.d.ts +1 -1
  45. package/build/modules/connections/ConnectionsApi.d.ts +4 -4
  46. package/build/modules/connections/ConnectionsApi.js +3 -0
  47. package/build/modules/connections/ConnectionsApi.js.map +1 -1
  48. package/build/modules/connections/ConnectionsModule.d.ts +1 -1
  49. package/build/modules/connections/ConnectionsModuleConfig.d.ts +1 -1
  50. package/build/modules/connections/ConnectionsModuleConfig.js.map +1 -1
  51. package/build/modules/connections/DidExchangeProtocol.d.ts +4 -4
  52. package/build/modules/connections/DidExchangeProtocol.js +5 -2
  53. package/build/modules/connections/DidExchangeProtocol.js.map +1 -1
  54. package/build/modules/connections/DidExchangeStateMachine.d.ts +1 -1
  55. package/build/modules/connections/DidExchangeStateMachine.js +5 -4
  56. package/build/modules/connections/DidExchangeStateMachine.js.map +1 -1
  57. package/build/modules/connections/TrustPingEvents.d.ts +1 -1
  58. package/build/modules/connections/errors/ConnectionProblemReportError.d.ts +1 -1
  59. package/build/modules/connections/errors/ConnectionProblemReportError.js.map +1 -1
  60. package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts +1 -1
  61. package/build/modules/connections/errors/DidExchangeProblemReportError.js.map +1 -1
  62. package/build/modules/connections/handlers/AckMessageHandler.d.ts +1 -1
  63. package/build/modules/connections/handlers/AckMessageHandler.js +1 -0
  64. package/build/modules/connections/handlers/AckMessageHandler.js.map +1 -1
  65. package/build/modules/connections/handlers/ConnectionProblemReportHandler.d.ts +1 -1
  66. package/build/modules/connections/handlers/ConnectionProblemReportHandler.js +1 -0
  67. package/build/modules/connections/handlers/ConnectionProblemReportHandler.js.map +1 -1
  68. package/build/modules/connections/handlers/ConnectionRequestHandler.d.ts +1 -1
  69. package/build/modules/connections/handlers/ConnectionResponseHandler.d.ts +1 -1
  70. package/build/modules/connections/handlers/DidExchangeCompleteHandler.d.ts +1 -1
  71. package/build/modules/connections/handlers/DidExchangeCompleteHandler.js +3 -2
  72. package/build/modules/connections/handlers/DidExchangeCompleteHandler.js.map +1 -1
  73. package/build/modules/connections/handlers/DidExchangeRequestHandler.d.ts +1 -1
  74. package/build/modules/connections/handlers/DidExchangeResponseHandler.d.ts +1 -1
  75. package/build/modules/connections/handlers/DidRotateAckHandler.d.ts +1 -1
  76. package/build/modules/connections/handlers/DidRotateAckHandler.js +1 -0
  77. package/build/modules/connections/handlers/DidRotateAckHandler.js.map +1 -1
  78. package/build/modules/connections/handlers/DidRotateProblemReportHandler.d.ts +1 -1
  79. package/build/modules/connections/handlers/DidRotateProblemReportHandler.js +1 -0
  80. package/build/modules/connections/handlers/DidRotateProblemReportHandler.js.map +1 -1
  81. package/build/modules/connections/handlers/HangupHandler.d.ts +1 -1
  82. package/build/modules/connections/handlers/HangupHandler.js +1 -0
  83. package/build/modules/connections/handlers/HangupHandler.js.map +1 -1
  84. package/build/modules/connections/handlers/TrustPingResponseMessageHandler.d.ts +1 -1
  85. package/build/modules/connections/handlers/TrustPingResponseMessageHandler.js +2 -1
  86. package/build/modules/connections/handlers/TrustPingResponseMessageHandler.js.map +1 -1
  87. package/build/modules/connections/messages/ConnectionInvitationMessage.js +2 -5
  88. package/build/modules/connections/messages/ConnectionInvitationMessage.js.map +1 -1
  89. package/build/modules/connections/messages/ConnectionProblemReportMessage.d.ts +0 -5
  90. package/build/modules/connections/messages/ConnectionProblemReportMessage.js +2 -6
  91. package/build/modules/connections/messages/ConnectionProblemReportMessage.js.map +1 -1
  92. package/build/modules/connections/messages/DidExchangeProblemReportMessage.d.ts +0 -1
  93. package/build/modules/connections/messages/DidExchangeProblemReportMessage.js +2 -2
  94. package/build/modules/connections/messages/DidExchangeProblemReportMessage.js.map +1 -1
  95. package/build/modules/connections/messages/DidRotateAckMessage.d.ts +0 -5
  96. package/build/modules/connections/messages/DidRotateAckMessage.js +2 -6
  97. package/build/modules/connections/messages/DidRotateAckMessage.js.map +1 -1
  98. package/build/modules/connections/messages/DidRotateProblemReportMessage.d.ts +0 -1
  99. package/build/modules/connections/messages/DidRotateProblemReportMessage.js +2 -2
  100. package/build/modules/connections/messages/DidRotateProblemReportMessage.js.map +1 -1
  101. package/build/modules/connections/models/did/DidDoc.d.ts +1 -1
  102. package/build/modules/connections/models/did/authentication/index.js +5 -9
  103. package/build/modules/connections/models/did/authentication/index.js.map +1 -1
  104. package/build/modules/connections/repository/ConnectionRecord.d.ts +2 -2
  105. package/build/modules/connections/repository/ConnectionRecord.js +2 -1
  106. package/build/modules/connections/repository/ConnectionRecord.js.map +1 -1
  107. package/build/modules/connections/repository/ConnectionRepository.d.ts +1 -1
  108. package/build/modules/connections/services/ConnectionService.d.ts +2 -2
  109. package/build/modules/connections/services/ConnectionService.js +3 -3
  110. package/build/modules/connections/services/ConnectionService.js.map +1 -1
  111. package/build/modules/connections/services/DidRotateService.d.ts +3 -3
  112. package/build/modules/connections/services/DidRotateService.js +4 -1
  113. package/build/modules/connections/services/DidRotateService.js.map +1 -1
  114. package/build/modules/connections/services/helpers.d.ts +1 -1
  115. package/build/modules/connections/services/helpers.js +6 -6
  116. package/build/modules/connections/services/helpers.js.map +1 -1
  117. package/build/modules/credentials/CredentialEvents.d.ts +1 -1
  118. package/build/modules/credentials/CredentialsApi.d.ts +2 -2
  119. package/build/modules/credentials/CredentialsApi.js +3 -1
  120. package/build/modules/credentials/CredentialsApi.js.map +1 -1
  121. package/build/modules/credentials/CredentialsModule.d.ts +1 -1
  122. package/build/modules/credentials/formats/CredentialFormatService.d.ts +2 -2
  123. package/build/modules/credentials/formats/CredentialFormatServiceOptions.d.ts +2 -2
  124. package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.d.ts +2 -2
  125. package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.d.ts +1 -1
  126. package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.d.ts +15 -15
  127. package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js +14 -14
  128. package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js.map +1 -1
  129. package/build/modules/credentials/protocol/BaseCredentialProtocol.d.ts +3 -3
  130. package/build/modules/credentials/protocol/CredentialProtocol.d.ts +2 -2
  131. package/build/modules/credentials/protocol/CredentialProtocolOptions.d.ts +1 -1
  132. package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.d.ts +1 -1
  133. package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.js +1 -0
  134. package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.js.map +1 -1
  135. package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.d.ts +1 -1
  136. package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.js +1 -0
  137. package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.js.map +1 -1
  138. package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.d.ts +1 -1
  139. package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.js +1 -1
  140. package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.d.ts +1 -1
  141. package/build/modules/credentials/protocol/v2/V2CredentialProtocol.d.ts +2 -2
  142. package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js +76 -82
  143. package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js.map +1 -1
  144. package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.d.ts +1 -1
  145. package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.js +1 -0
  146. package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.js.map +1 -1
  147. package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.d.ts +1 -1
  148. package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.js +1 -0
  149. package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.js.map +1 -1
  150. package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.js +1 -1
  151. package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.js +1 -1
  152. package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.js +1 -1
  153. package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.js +1 -1
  154. package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.d.ts +1 -6
  155. package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js +2 -6
  156. package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js.map +1 -1
  157. package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.d.ts +0 -5
  158. package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js +2 -6
  159. package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js.map +1 -1
  160. package/build/modules/credentials/repository/CredentialExchangeRecord.d.ts +1 -1
  161. package/build/modules/credentials/repository/CredentialExchangeRecord.js +4 -3
  162. package/build/modules/credentials/repository/CredentialExchangeRecord.js.map +1 -1
  163. package/build/modules/credentials/util/previewAttributes.js +4 -1
  164. package/build/modules/credentials/util/previewAttributes.js.map +1 -1
  165. package/build/modules/discover-features/DiscoverFeaturesApi.d.ts +1 -1
  166. package/build/modules/discover-features/DiscoverFeaturesApi.js +4 -1
  167. package/build/modules/discover-features/DiscoverFeaturesApi.js.map +1 -1
  168. package/build/modules/discover-features/DiscoverFeaturesApiOptions.d.ts +1 -1
  169. package/build/modules/discover-features/DiscoverFeaturesEvents.d.ts +2 -2
  170. package/build/modules/discover-features/DiscoverFeaturesModule.d.ts +1 -1
  171. package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.d.ts +2 -2
  172. package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.d.ts +1 -1
  173. package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.js +1 -0
  174. package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.js.map +1 -1
  175. package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.d.ts +3 -3
  176. package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.d.ts +1 -1
  177. package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.js +1 -0
  178. package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.js.map +1 -1
  179. package/build/modules/discover-features/services/DiscoverFeaturesService.d.ts +2 -2
  180. package/build/modules/message-pickup/MessagePickupApi.d.ts +1 -1
  181. package/build/modules/message-pickup/MessagePickupApi.js +3 -1
  182. package/build/modules/message-pickup/MessagePickupApi.js.map +1 -1
  183. package/build/modules/message-pickup/MessagePickupApiOptions.d.ts +6 -6
  184. package/build/modules/message-pickup/MessagePickupEvents.d.ts +2 -2
  185. package/build/modules/message-pickup/MessagePickupModule.d.ts +1 -1
  186. package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.d.ts +4 -4
  187. package/build/modules/message-pickup/protocol/MessagePickupProtocol.d.ts +3 -3
  188. package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.d.ts +2 -2
  189. package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js +2 -2
  190. package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js.map +1 -1
  191. package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.d.ts +5 -5
  192. package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js +2 -2
  193. package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js.map +1 -1
  194. package/build/modules/message-pickup/services/MessagePickupSessionService.d.ts +3 -3
  195. package/build/modules/message-pickup/services/MessagePickupSessionService.js +2 -2
  196. package/build/modules/message-pickup/services/MessagePickupSessionService.js.map +1 -1
  197. package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js +2 -2
  198. package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js.map +1 -1
  199. package/build/modules/oob/OutOfBandApi.d.ts +2 -2
  200. package/build/modules/oob/OutOfBandApi.js +7 -5
  201. package/build/modules/oob/OutOfBandApi.js.map +1 -1
  202. package/build/modules/oob/OutOfBandModule.d.ts +1 -1
  203. package/build/modules/oob/OutOfBandService.d.ts +2 -2
  204. package/build/modules/oob/converters.js +2 -0
  205. package/build/modules/oob/converters.js.map +1 -1
  206. package/build/modules/oob/domain/OutOfBandDidCommService.js +1 -1
  207. package/build/modules/oob/domain/OutOfBandDidCommService.js.map +1 -1
  208. package/build/modules/oob/domain/OutOfBandEvents.d.ts +2 -2
  209. package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.d.ts +1 -1
  210. package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.js +1 -0
  211. package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.js.map +1 -1
  212. package/build/modules/oob/messages/OutOfBandInvitation.js +5 -9
  213. package/build/modules/oob/messages/OutOfBandInvitation.js.map +1 -1
  214. package/build/modules/oob/repository/OutOfBandRecord.d.ts +2 -2
  215. package/build/modules/oob/repository/OutOfBandRecord.js +1 -0
  216. package/build/modules/oob/repository/OutOfBandRecord.js.map +1 -1
  217. package/build/modules/proofs/ProofEvents.d.ts +1 -1
  218. package/build/modules/proofs/ProofsApi.d.ts +2 -2
  219. package/build/modules/proofs/ProofsApi.js +3 -1
  220. package/build/modules/proofs/ProofsApi.js.map +1 -1
  221. package/build/modules/proofs/ProofsModule.d.ts +1 -1
  222. package/build/modules/proofs/formats/ProofFormatService.d.ts +2 -2
  223. package/build/modules/proofs/formats/ProofFormatServiceOptions.d.ts +2 -2
  224. package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.d.ts +2 -3
  225. package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.d.ts +3 -3
  226. package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js +5 -7
  227. package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js.map +1 -1
  228. package/build/modules/proofs/protocol/BaseProofProtocol.d.ts +3 -3
  229. package/build/modules/proofs/protocol/ProofProtocol.d.ts +2 -2
  230. package/build/modules/proofs/protocol/ProofProtocolOptions.d.ts +1 -1
  231. package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.d.ts +1 -1
  232. package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js +4 -6
  233. package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js.map +1 -1
  234. package/build/modules/proofs/protocol/v2/V2ProofProtocol.d.ts +1 -1
  235. package/build/modules/proofs/protocol/v2/V2ProofProtocol.js +53 -57
  236. package/build/modules/proofs/protocol/v2/V2ProofProtocol.js.map +1 -1
  237. package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.js.map +1 -1
  238. package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.d.ts +1 -1
  239. package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.js +1 -0
  240. package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.js.map +1 -1
  241. package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.js +1 -1
  242. package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.d.ts +1 -1
  243. package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.js +1 -0
  244. package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.js.map +1 -1
  245. package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.js +1 -1
  246. package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.js +1 -1
  247. package/build/modules/proofs/repository/ProofExchangeRecord.d.ts +1 -1
  248. package/build/modules/proofs/repository/ProofExchangeRecord.js +3 -2
  249. package/build/modules/proofs/repository/ProofExchangeRecord.js.map +1 -1
  250. package/build/modules/routing/MediationRecipientApi.d.ts +2 -2
  251. package/build/modules/routing/MediationRecipientApi.js +3 -3
  252. package/build/modules/routing/MediationRecipientApi.js.map +1 -1
  253. package/build/modules/routing/MediationRecipientModule.d.ts +1 -1
  254. package/build/modules/routing/MediatorModule.d.ts +1 -1
  255. package/build/modules/routing/RoutingEvents.d.ts +2 -2
  256. package/build/modules/routing/handlers/ForwardHandler.d.ts +1 -1
  257. package/build/modules/routing/handlers/ForwardHandler.js +1 -0
  258. package/build/modules/routing/handlers/ForwardHandler.js.map +1 -1
  259. package/build/modules/routing/handlers/KeylistUpdateResponseHandler.d.ts +1 -1
  260. package/build/modules/routing/handlers/KeylistUpdateResponseHandler.js +2 -1
  261. package/build/modules/routing/handlers/KeylistUpdateResponseHandler.js.map +1 -1
  262. package/build/modules/routing/handlers/MediationDenyHandler.d.ts +1 -1
  263. package/build/modules/routing/handlers/MediationDenyHandler.js +1 -0
  264. package/build/modules/routing/handlers/MediationDenyHandler.js.map +1 -1
  265. package/build/modules/routing/handlers/MediationGrantHandler.d.ts +1 -1
  266. package/build/modules/routing/handlers/MediationGrantHandler.js +1 -0
  267. package/build/modules/routing/handlers/MediationGrantHandler.js.map +1 -1
  268. package/build/modules/routing/messages/KeylistMessage.js +1 -0
  269. package/build/modules/routing/messages/KeylistMessage.js.map +1 -1
  270. package/build/modules/routing/repository/MediationRecord.js +2 -3
  271. package/build/modules/routing/repository/MediationRecord.js.map +1 -1
  272. package/build/modules/routing/services/MediationRecipientService.d.ts +3 -3
  273. package/build/modules/routing/services/MediatorService.d.ts +1 -1
  274. package/build/modules/routing/services/MediatorService.js +2 -4
  275. package/build/modules/routing/services/MediatorService.js.map +1 -1
  276. package/build/modules/routing/services/RoutingService.d.ts +1 -1
  277. package/build/repository/DidCommMessageRecord.d.ts +1 -1
  278. package/build/repository/DidCommMessageRepository.d.ts +2 -2
  279. package/build/transport/HttpOutboundTransport.d.ts +2 -2
  280. package/build/transport/HttpOutboundTransport.js +6 -4
  281. package/build/transport/HttpOutboundTransport.js.map +1 -1
  282. package/build/transport/OutboundTransport.d.ts +1 -1
  283. package/build/transport/TransportEventTypes.d.ts +1 -1
  284. package/build/transport/WsOutboundTransport.d.ts +2 -2
  285. package/build/transport/WsOutboundTransport.js +3 -3
  286. package/build/transport/WsOutboundTransport.js.map +1 -1
  287. package/build/updates/0.1-0.2/connection.d.ts +2 -2
  288. package/build/updates/0.1-0.2/connection.js +14 -8
  289. package/build/updates/0.1-0.2/connection.js.map +1 -1
  290. package/build/updates/0.1-0.2/credential.d.ts +1 -1
  291. package/build/updates/0.1-0.2/credential.js +6 -5
  292. package/build/updates/0.1-0.2/credential.js.map +1 -1
  293. package/build/updates/0.1-0.2/mediation.d.ts +1 -1
  294. package/build/updates/0.1-0.2/mediation.js +1 -1
  295. package/build/updates/0.2-0.3/connection.d.ts +1 -1
  296. package/build/updates/0.2-0.3/proof.js +4 -4
  297. package/build/updates/0.2-0.3/proof.js.map +1 -1
  298. package/build/updates/0.4-0.5/credentialExchangeRecord.d.ts +1 -1
  299. package/build/updates/0.4-0.5/credentialExchangeRecord.js +4 -4
  300. package/build/updates/0.4-0.5/credentialExchangeRecord.js.map +1 -1
  301. package/build/updates/0.4-0.5/proofExchangeRecord.d.ts +1 -1
  302. package/build/updates/0.4-0.5/proofExchangeRecord.js +2 -2
  303. package/build/updates/0.4-0.5/proofExchangeRecord.js.map +1 -1
  304. package/build/util/JWE.js +1 -1
  305. package/build/util/JWE.js.map +1 -1
  306. package/build/util/attachment.d.ts +1 -1
  307. package/build/util/attachment.js +3 -5
  308. package/build/util/attachment.js.map +1 -1
  309. package/build/util/messageType.d.ts +1 -1
  310. package/build/util/messageType.js +5 -5
  311. package/build/util/messageType.js.map +1 -1
  312. package/build/util/modules.d.ts +2 -2
  313. package/build/util/parseInvitation.js +18 -21
  314. package/build/util/parseInvitation.js.map +1 -1
  315. package/build/util/transformers.js +1 -1
  316. package/build/util/transformers.js.map +1 -1
  317. package/package.json +2 -2
@@ -13,6 +13,7 @@ const messageType_1 = require("./messageType");
13
13
  const fetchShortUrl = async (invitationUrl, dependencies) => {
14
14
  const abortController = new AbortController();
15
15
  const id = setTimeout(() => abortController.abort(), 15000);
16
+ // biome-ignore lint/suspicious/noImplicitAnyLet: <explanation>
16
17
  let response;
17
18
  try {
18
19
  response = await dependencies.fetch(invitationUrl, {
@@ -47,20 +48,18 @@ const parseInvitationJson = (invitationJson) => {
47
48
  invitation.invitationType = messages_2.InvitationType.OutOfBand;
48
49
  return invitation;
49
50
  }
50
- else if ((0, messageType_1.supportsIncomingMessageType)(parsedMessageType, messages_1.ConnectionInvitationMessage.type)) {
51
+ if ((0, messageType_1.supportsIncomingMessageType)(parsedMessageType, messages_1.ConnectionInvitationMessage.type)) {
51
52
  const invitation = core_1.JsonTransformer.fromJSON(invitationJson, messages_1.ConnectionInvitationMessage);
52
53
  core_1.MessageValidator.validateSync(invitation);
53
54
  const outOfBandInvitation = (0, converters_1.convertToNewInvitation)(invitation);
54
55
  outOfBandInvitation.invitationType = messages_2.InvitationType.Connection;
55
56
  return outOfBandInvitation;
56
57
  }
57
- else if (invitationJson['~service']) {
58
+ if (invitationJson['~service']) {
58
59
  // This is probably a legacy connectionless invitation
59
60
  return transformLegacyConnectionlessInvitationToOutOfBandInvitation(invitationJson);
60
61
  }
61
- else {
62
- throw new core_1.CredoError(`Invitation with '@type' ${parsedMessageType.messageTypeUri} not supported.`);
63
- }
62
+ throw new core_1.CredoError(`Invitation with '@type' ${parsedMessageType.messageTypeUri} not supported.`);
64
63
  };
65
64
  exports.parseInvitationJson = parseInvitationJson;
66
65
  /**
@@ -72,7 +71,7 @@ exports.parseInvitationJson = parseInvitationJson;
72
71
  */
73
72
  const parseInvitationUrl = (invitationUrl) => {
74
73
  const parsedUrl = (0, query_string_1.parseUrl)(invitationUrl).query;
75
- const encodedInvitation = parsedUrl['oob'] ?? parsedUrl['c_i'] ?? parsedUrl['d_m'];
74
+ const encodedInvitation = parsedUrl.oob ?? parsedUrl.c_i ?? parsedUrl.d_m;
76
75
  if (typeof encodedInvitation === 'string') {
77
76
  const invitationJson = core_1.JsonEncoder.fromBase64(encodedInvitation);
78
77
  return (0, exports.parseInvitationJson)(invitationJson);
@@ -87,15 +86,16 @@ const oobInvitationFromShortUrl = async (response) => {
87
86
  const invitationJson = (await response.json());
88
87
  return (0, exports.parseInvitationJson)(invitationJson);
89
88
  }
90
- else if (response['url']) {
89
+ if (response.url) {
91
90
  // The following if else is for here for trinsic shorten urls
92
91
  // Because the redirect targets a deep link the automatic redirect does not occur
92
+ // biome-ignore lint/suspicious/noImplicitAnyLet: <explanation>
93
93
  let responseUrl;
94
94
  const location = response.headers.get('Location');
95
95
  if ((response.status === 302 || response.status === 301) && location)
96
96
  responseUrl = location;
97
97
  else
98
- responseUrl = response['url'];
98
+ responseUrl = response.url;
99
99
  return (0, exports.parseInvitationUrl)(responseUrl);
100
100
  }
101
101
  }
@@ -110,7 +110,6 @@ function transformLegacyConnectionlessInvitationToOutOfBandInvitation(messageJso
110
110
  }
111
111
  // This destructuring removes the ~service property from the message, and
112
112
  // we can can use messageWithoutService to create the out of band invitation
113
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
114
113
  const { '~service': service, ...messageWithoutService } = messageJson;
115
114
  // transform into out of band invitation
116
115
  const invitation = new messages_2.OutOfBandInvitation({
@@ -132,23 +131,21 @@ function transformLegacyConnectionlessInvitationToOutOfBandInvitation(messageJso
132
131
  */
133
132
  const parseInvitationShortUrl = async (invitationUrl, dependencies) => {
134
133
  const parsedUrl = (0, query_string_1.parseUrl)(invitationUrl).query;
135
- if (parsedUrl['oob'] || parsedUrl['c_i']) {
134
+ if (parsedUrl.oob || parsedUrl.c_i) {
136
135
  return (0, exports.parseInvitationUrl)(invitationUrl);
137
136
  }
138
137
  // Legacy connectionless invitation
139
- else if (parsedUrl['d_m']) {
140
- const messageJson = core_1.JsonEncoder.fromBase64(parsedUrl['d_m']);
138
+ if (parsedUrl.d_m) {
139
+ const messageJson = core_1.JsonEncoder.fromBase64(parsedUrl.d_m);
141
140
  return transformLegacyConnectionlessInvitationToOutOfBandInvitation(messageJson);
142
141
  }
143
- else {
144
- try {
145
- const outOfBandInvitation = await (0, exports.oobInvitationFromShortUrl)(await fetchShortUrl(invitationUrl, dependencies));
146
- outOfBandInvitation.invitationType = messages_2.InvitationType.OutOfBand;
147
- return outOfBandInvitation;
148
- }
149
- catch (error) {
150
- throw new core_1.CredoError('InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters: `oob`, `c_i` or `d_m`, or be valid shortened URL');
151
- }
142
+ try {
143
+ const outOfBandInvitation = await (0, exports.oobInvitationFromShortUrl)(await fetchShortUrl(invitationUrl, dependencies));
144
+ outOfBandInvitation.invitationType = messages_2.InvitationType.OutOfBand;
145
+ return outOfBandInvitation;
146
+ }
147
+ catch (_error) {
148
+ throw new core_1.CredoError('InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters: `oob`, `c_i` or `d_m`, or be valid shortened URL');
152
149
  }
153
150
  };
154
151
  exports.parseInvitationShortUrl = parseInvitationShortUrl;
@@ -1 +1 @@
1
- {"version":3,"file":"parseInvitation.js","sourceRoot":"","sources":["../../src/util/parseInvitation.ts"],"names":[],"mappings":";;;AA0GA,oIAsBC;AA9HD,yCAA2F;AAC3F,+CAAuC;AAEvC,kDAA8C;AAC9C,8DAA6E;AAC7E,0DAAkE;AAClE,2FAAuF;AACvF,sDAA6E;AAE7E,+CAA6E;AAE7E,MAAM,aAAa,GAAG,KAAK,EAAE,aAAqB,EAAE,YAA+B,EAAE,EAAE;IACrF,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,C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CAAA;QAC7G,mBAAmB,CAAC,cAAc,GAAG,yBAAc,CAAC,SAAS,CAAA;QAC7D,OAAO,mBAAmB,CAAA;IAC5B,CAAC;IAAC,OAAO,MAAM,EAAE,CAAC;QAChB,MAAM,IAAI,iBAAU,CAClB,gJAAgJ,CACjJ,CAAA;IACH,CAAC;AACH,CAAC,CAAA;AAtBY,QAAA,uBAAuB,2BAsBnC"}
@@ -8,7 +8,7 @@ const luxon_1 = require("luxon");
8
8
  */
9
9
  function DateParser(value) {
10
10
  const parsedDate = new Date(value);
11
- if (parsedDate instanceof Date && !isNaN(parsedDate.getTime())) {
11
+ if (parsedDate instanceof Date && !Number.isNaN(parsedDate.getTime())) {
12
12
  return parsedDate;
13
13
  }
14
14
  const luxonDate = luxon_1.DateTime.fromSQL(value);
@@ -1 +1 @@
1
- {"version":3,"file":"transformers.js","sourceRoot":"","sources":["../../src/util/transformers.ts"],"names":[],"mappings":";;AAOA,gCAUC;AAjBD,iCAAgC;AAEhC;;;GAGG;AAEH,SAAgB,UAAU,CAAC,KAAa;IACtC,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;IAClC,IAAI,UAAU,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;QAC/D,OAAO,UAAU,CAAA;IACnB,CAAC;IACD,MAAM,SAAS,GAAG,gBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACzC,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAA;IACvC,CAAC;IACD,OAAO,IAAI,IAAI,EAAE,CAAA;AACnB,CAAC"}
1
+ {"version":3,"file":"transformers.js","sourceRoot":"","sources":["../../src/util/transformers.ts"],"names":[],"mappings":";;AAOA,gCAUC;AAjBD,iCAAgC;AAEhC;;;GAGG;AAEH,SAAgB,UAAU,CAAC,KAAa;IACtC,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;IAClC,IAAI,UAAU,YAAY,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;QACtE,OAAO,UAAU,CAAA;IACnB,CAAC;IACD,MAAM,SAAS,GAAG,gBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACzC,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAA;IACvC,CAAC;IACD,OAAO,IAAI,IAAI,EAAE,CAAA;AACnB,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@credo-ts/didcomm",
3
3
  "main": "build/index",
4
4
  "types": "build/index",
5
- "version": "0.6.0-pr-2195-20250226092707",
5
+ "version": "0.6.0-pr-2209-20250321171013",
6
6
  "files": [
7
7
  "build"
8
8
  ],
@@ -22,7 +22,7 @@
22
22
  "luxon": "^3.5.0",
23
23
  "query-string": "^7.0.1",
24
24
  "rxjs": "^7.8.0",
25
- "@credo-ts/core": "0.6.0-pr-2195-20250226092707"
25
+ "@credo-ts/core": "0.6.0-pr-2209-20250321171013"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@animo-id/pex": "4.1.1-alpha.1",