@credo-ts/didcomm 0.6.0-pr-2392-20251010173905 → 0.6.0-pr-2457-20251016083534

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 (868) hide show
  1. package/build/BaseDidCommMessage.d.mts.map +1 -1
  2. package/build/BaseDidCommMessage.d.ts.map +1 -1
  3. package/build/BaseDidCommMessage.js +3 -3
  4. package/build/BaseDidCommMessage.mjs +2 -2
  5. package/build/BaseDidCommMessage.mjs.map +1 -1
  6. package/build/DidCommApi.d.mts +6 -10
  7. package/build/DidCommApi.d.mts.map +1 -1
  8. package/build/DidCommApi.d.ts +6 -10
  9. package/build/DidCommApi.d.ts.map +1 -1
  10. package/build/DidCommApi.js +16 -21
  11. package/build/DidCommApi.mjs +16 -21
  12. package/build/DidCommApi.mjs.map +1 -1
  13. package/build/DidCommDispatcher.d.mts.map +1 -1
  14. package/build/DidCommDispatcher.d.ts.map +1 -1
  15. package/build/DidCommDispatcher.js +7 -7
  16. package/build/DidCommDispatcher.mjs +7 -7
  17. package/build/DidCommDispatcher.mjs.map +1 -1
  18. package/build/DidCommEnvelopeService.d.mts.map +1 -1
  19. package/build/DidCommEnvelopeService.d.ts.map +1 -1
  20. package/build/DidCommEnvelopeService.js +5 -5
  21. package/build/DidCommEnvelopeService.mjs +5 -5
  22. package/build/DidCommEnvelopeService.mjs.map +1 -1
  23. package/build/DidCommFeatureRegistry.d.mts.map +1 -1
  24. package/build/DidCommFeatureRegistry.d.ts.map +1 -1
  25. package/build/DidCommFeatureRegistry.mjs.map +1 -1
  26. package/build/DidCommMessage.d.mts +1 -1
  27. package/build/DidCommMessage.d.mts.map +1 -1
  28. package/build/DidCommMessage.d.ts +1 -1
  29. package/build/DidCommMessage.d.ts.map +1 -1
  30. package/build/DidCommMessage.js +2 -2
  31. package/build/DidCommMessage.mjs +2 -2
  32. package/build/DidCommMessage.mjs.map +1 -1
  33. package/build/DidCommMessageHandlerRegistry.d.mts.map +1 -1
  34. package/build/DidCommMessageHandlerRegistry.d.ts.map +1 -1
  35. package/build/DidCommMessageHandlerRegistry.mjs.map +1 -1
  36. package/build/DidCommMessageReceiver.d.mts +1 -6
  37. package/build/DidCommMessageReceiver.d.mts.map +1 -1
  38. package/build/DidCommMessageReceiver.d.ts +1 -6
  39. package/build/DidCommMessageReceiver.d.ts.map +1 -1
  40. package/build/DidCommMessageReceiver.js +9 -21
  41. package/build/DidCommMessageReceiver.mjs +9 -21
  42. package/build/DidCommMessageReceiver.mjs.map +1 -1
  43. package/build/DidCommMessageSender.d.mts +1 -6
  44. package/build/DidCommMessageSender.d.mts.map +1 -1
  45. package/build/DidCommMessageSender.d.ts +1 -6
  46. package/build/DidCommMessageSender.d.ts.map +1 -1
  47. package/build/DidCommMessageSender.js +17 -29
  48. package/build/DidCommMessageSender.mjs +17 -29
  49. package/build/DidCommMessageSender.mjs.map +1 -1
  50. package/build/DidCommModule.d.mts +1 -1
  51. package/build/DidCommModule.d.mts.map +1 -1
  52. package/build/DidCommModule.d.ts +1 -1
  53. package/build/DidCommModule.d.ts.map +1 -1
  54. package/build/DidCommModule.js +9 -12
  55. package/build/DidCommModule.mjs +9 -12
  56. package/build/DidCommModule.mjs.map +1 -1
  57. package/build/DidCommModuleConfig.d.mts +14 -2
  58. package/build/DidCommModuleConfig.d.mts.map +1 -1
  59. package/build/DidCommModuleConfig.d.ts +14 -2
  60. package/build/DidCommModuleConfig.d.ts.map +1 -1
  61. package/build/DidCommModuleConfig.js +15 -1
  62. package/build/DidCommModuleConfig.mjs +15 -1
  63. package/build/DidCommModuleConfig.mjs.map +1 -1
  64. package/build/DidCommTransportService.d.mts.map +1 -1
  65. package/build/DidCommTransportService.d.ts.map +1 -1
  66. package/build/DidCommTransportService.js +1 -1
  67. package/build/DidCommTransportService.mjs +1 -1
  68. package/build/DidCommTransportService.mjs.map +1 -1
  69. package/build/decorators/ack/AckDecorator.js +1 -1
  70. package/build/decorators/ack/AckDecorator.mjs +1 -1
  71. package/build/decorators/ack/AckDecoratorExtension.js +3 -3
  72. package/build/decorators/ack/AckDecoratorExtension.mjs +2 -2
  73. package/build/decorators/ack/AckDecoratorExtension.mjs.map +1 -1
  74. package/build/decorators/attachment/AttachmentExtension.js +3 -3
  75. package/build/decorators/attachment/AttachmentExtension.mjs +2 -2
  76. package/build/decorators/attachment/AttachmentExtension.mjs.map +1 -1
  77. package/build/decorators/attachment/DidCommAttachment.js +3 -3
  78. package/build/decorators/attachment/DidCommAttachment.mjs +2 -2
  79. package/build/decorators/attachment/DidCommAttachment.mjs.map +1 -1
  80. package/build/decorators/l10n/L10nDecoratorExtension.js +3 -3
  81. package/build/decorators/l10n/L10nDecoratorExtension.mjs +2 -2
  82. package/build/decorators/l10n/L10nDecoratorExtension.mjs.map +1 -1
  83. package/build/decorators/service/ServiceDecorator.js +1 -1
  84. package/build/decorators/service/ServiceDecorator.mjs +1 -1
  85. package/build/decorators/service/ServiceDecoratorExtension.js +3 -3
  86. package/build/decorators/service/ServiceDecoratorExtension.mjs +2 -2
  87. package/build/decorators/service/ServiceDecoratorExtension.mjs.map +1 -1
  88. package/build/decorators/signature/SignatureDecorator.js +4 -4
  89. package/build/decorators/signature/SignatureDecorator.mjs +3 -3
  90. package/build/decorators/thread/ThreadDecorator.js +3 -3
  91. package/build/decorators/thread/ThreadDecorator.mjs +2 -2
  92. package/build/decorators/thread/ThreadDecoratorExtension.js +3 -3
  93. package/build/decorators/thread/ThreadDecoratorExtension.mjs +2 -2
  94. package/build/decorators/thread/ThreadDecoratorExtension.mjs.map +1 -1
  95. package/build/decorators/timing/TimingDecorator.js +3 -3
  96. package/build/decorators/timing/TimingDecorator.mjs +2 -2
  97. package/build/decorators/timing/TimingDecoratorExtension.js +3 -3
  98. package/build/decorators/timing/TimingDecoratorExtension.mjs +2 -2
  99. package/build/decorators/timing/TimingDecoratorExtension.mjs.map +1 -1
  100. package/build/decorators/transport/TransportDecorator.js +3 -3
  101. package/build/decorators/transport/TransportDecorator.mjs +2 -2
  102. package/build/decorators/transport/TransportDecoratorExtension.js +3 -3
  103. package/build/decorators/transport/TransportDecoratorExtension.mjs +2 -2
  104. package/build/decorators/transport/TransportDecoratorExtension.mjs.map +1 -1
  105. package/build/errors/MessageSendingError.d.mts.map +1 -1
  106. package/build/errors/MessageSendingError.d.ts.map +1 -1
  107. package/build/errors/MessageSendingError.mjs.map +1 -1
  108. package/build/errors/index.js +1 -1
  109. package/build/errors/index.mjs +1 -1
  110. package/build/getDidCommOutboundMessageContext.d.mts.map +1 -1
  111. package/build/getDidCommOutboundMessageContext.d.ts.map +1 -1
  112. package/build/getDidCommOutboundMessageContext.js +6 -6
  113. package/build/getDidCommOutboundMessageContext.mjs +6 -6
  114. package/build/getDidCommOutboundMessageContext.mjs.map +1 -1
  115. package/build/handlers/DidCommMessageHandlerMiddleware.mjs.map +1 -1
  116. package/build/index.d.mts +99 -99
  117. package/build/index.d.ts +99 -99
  118. package/build/index.js +114 -112
  119. package/build/index.mjs +108 -108
  120. package/build/messages/common/DidCommAckMessage.js +1 -1
  121. package/build/messages/common/DidCommAckMessage.mjs +1 -1
  122. package/build/messages/problem-reports/DidCommProblemReportMessage.js +3 -3
  123. package/build/messages/problem-reports/DidCommProblemReportMessage.mjs +2 -2
  124. package/build/models/DidCommInboundMessageContext.d.mts.map +1 -1
  125. package/build/models/DidCommInboundMessageContext.d.ts.map +1 -1
  126. package/build/models/DidCommInboundMessageContext.mjs.map +1 -1
  127. package/build/models/DidCommOutboundMessageContext.d.mts.map +1 -1
  128. package/build/models/DidCommOutboundMessageContext.d.ts.map +1 -1
  129. package/build/models/DidCommOutboundMessageContext.mjs.map +1 -1
  130. package/build/models/features/DidCommFeature.js +3 -3
  131. package/build/models/features/DidCommFeature.mjs +2 -2
  132. package/build/models/features/DidCommFeatureQuery.js +3 -3
  133. package/build/models/features/DidCommFeatureQuery.mjs +2 -2
  134. package/build/models/features/DidCommProtocol.d.mts.map +1 -1
  135. package/build/models/features/DidCommProtocol.d.ts.map +1 -1
  136. package/build/models/features/DidCommProtocol.js +1 -1
  137. package/build/models/features/DidCommProtocol.mjs +1 -1
  138. package/build/models/features/DidCommProtocol.mjs.map +1 -1
  139. package/build/models/index.js +3 -3
  140. package/build/models/index.mjs +3 -3
  141. package/build/modules/basic-messages/DidCommBasicMessagesApi.d.mts +1 -1
  142. package/build/modules/basic-messages/DidCommBasicMessagesApi.d.mts.map +1 -1
  143. package/build/modules/basic-messages/DidCommBasicMessagesApi.d.ts +1 -1
  144. package/build/modules/basic-messages/DidCommBasicMessagesApi.d.ts.map +1 -1
  145. package/build/modules/basic-messages/DidCommBasicMessagesApi.js +2 -2
  146. package/build/modules/basic-messages/DidCommBasicMessagesApi.mjs +2 -2
  147. package/build/modules/basic-messages/DidCommBasicMessagesApi.mjs.map +1 -1
  148. package/build/modules/basic-messages/DidCommBasicMessagesModule.d.mts.map +1 -1
  149. package/build/modules/basic-messages/DidCommBasicMessagesModule.d.ts.map +1 -1
  150. package/build/modules/basic-messages/DidCommBasicMessagesModule.js +2 -2
  151. package/build/modules/basic-messages/DidCommBasicMessagesModule.mjs +2 -2
  152. package/build/modules/basic-messages/DidCommBasicMessagesModule.mjs.map +1 -1
  153. package/build/modules/basic-messages/handlers/BasicMessageHandler.mjs.map +1 -1
  154. package/build/modules/basic-messages/index.js +2 -2
  155. package/build/modules/basic-messages/index.mjs +2 -2
  156. package/build/modules/basic-messages/messages/DidCommBasicMessage.js +3 -3
  157. package/build/modules/basic-messages/messages/DidCommBasicMessage.mjs +2 -2
  158. package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.d.mts.map +1 -1
  159. package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.d.ts.map +1 -1
  160. package/build/modules/basic-messages/repository/DidCommBasicMessageRecord.mjs.map +1 -1
  161. package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.js +1 -1
  162. package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.mjs +1 -1
  163. package/build/modules/basic-messages/repository/DidCommBasicMessageRepository.mjs.map +1 -1
  164. package/build/modules/basic-messages/services/DidCommBasicMessageService.d.mts.map +1 -1
  165. package/build/modules/basic-messages/services/DidCommBasicMessageService.d.ts.map +1 -1
  166. package/build/modules/basic-messages/services/DidCommBasicMessageService.js +4 -4
  167. package/build/modules/basic-messages/services/DidCommBasicMessageService.mjs +4 -4
  168. package/build/modules/basic-messages/services/DidCommBasicMessageService.mjs.map +1 -1
  169. package/build/modules/connections/DidCommConnectionsApi.d.mts +3 -3
  170. package/build/modules/connections/DidCommConnectionsApi.d.mts.map +1 -1
  171. package/build/modules/connections/DidCommConnectionsApi.d.ts +3 -3
  172. package/build/modules/connections/DidCommConnectionsApi.d.ts.map +1 -1
  173. package/build/modules/connections/DidCommConnectionsApi.js +5 -5
  174. package/build/modules/connections/DidCommConnectionsApi.mjs +5 -5
  175. package/build/modules/connections/DidCommConnectionsApi.mjs.map +1 -1
  176. package/build/modules/connections/DidCommConnectionsModule.d.mts.map +1 -1
  177. package/build/modules/connections/DidCommConnectionsModule.d.ts.map +1 -1
  178. package/build/modules/connections/DidCommConnectionsModule.js +20 -20
  179. package/build/modules/connections/DidCommConnectionsModule.mjs +20 -20
  180. package/build/modules/connections/DidCommConnectionsModule.mjs.map +1 -1
  181. package/build/modules/connections/DidExchangeProtocol.d.mts +2 -4
  182. package/build/modules/connections/DidExchangeProtocol.d.mts.map +1 -1
  183. package/build/modules/connections/DidExchangeProtocol.d.ts +2 -4
  184. package/build/modules/connections/DidExchangeProtocol.d.ts.map +1 -1
  185. package/build/modules/connections/DidExchangeProtocol.js +11 -15
  186. package/build/modules/connections/DidExchangeProtocol.mjs +11 -15
  187. package/build/modules/connections/DidExchangeProtocol.mjs.map +1 -1
  188. package/build/modules/connections/DidExchangeStateMachine.js +1 -1
  189. package/build/modules/connections/DidExchangeStateMachine.mjs +1 -1
  190. package/build/modules/connections/DidExchangeStateMachine.mjs.map +1 -1
  191. package/build/modules/connections/errors/ConnectionProblemReportError.d.mts +1 -1
  192. package/build/modules/connections/errors/ConnectionProblemReportError.d.mts.map +1 -1
  193. package/build/modules/connections/errors/ConnectionProblemReportError.d.ts +1 -1
  194. package/build/modules/connections/errors/ConnectionProblemReportError.d.ts.map +1 -1
  195. package/build/modules/connections/errors/ConnectionProblemReportError.mjs.map +1 -1
  196. package/build/modules/connections/errors/DidExchangeProblemReportError.d.mts +1 -1
  197. package/build/modules/connections/errors/DidExchangeProblemReportError.d.mts.map +1 -1
  198. package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts +1 -1
  199. package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts.map +1 -1
  200. package/build/modules/connections/errors/DidExchangeProblemReportError.mjs.map +1 -1
  201. package/build/modules/connections/handlers/DidCommAckMessageHandler.d.mts.map +1 -1
  202. package/build/modules/connections/handlers/DidCommAckMessageHandler.d.ts.map +1 -1
  203. package/build/modules/connections/handlers/DidCommAckMessageHandler.mjs.map +1 -1
  204. package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.d.mts.map +1 -1
  205. package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.d.ts.map +1 -1
  206. package/build/modules/connections/handlers/DidCommConnectionProblemReportHandler.mjs.map +1 -1
  207. package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.mts +1 -1
  208. package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.mts.map +1 -1
  209. package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.ts +1 -1
  210. package/build/modules/connections/handlers/DidCommConnectionRequestHandler.d.ts.map +1 -1
  211. package/build/modules/connections/handlers/DidCommConnectionRequestHandler.js +4 -4
  212. package/build/modules/connections/handlers/DidCommConnectionRequestHandler.mjs +4 -4
  213. package/build/modules/connections/handlers/DidCommConnectionRequestHandler.mjs.map +1 -1
  214. package/build/modules/connections/handlers/DidCommConnectionResponseHandler.d.mts.map +1 -1
  215. package/build/modules/connections/handlers/DidCommConnectionResponseHandler.d.ts.map +1 -1
  216. package/build/modules/connections/handlers/DidCommConnectionResponseHandler.js +3 -3
  217. package/build/modules/connections/handlers/DidCommConnectionResponseHandler.mjs +3 -3
  218. package/build/modules/connections/handlers/DidCommConnectionResponseHandler.mjs.map +1 -1
  219. package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.d.mts.map +1 -1
  220. package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.d.ts.map +1 -1
  221. package/build/modules/connections/handlers/DidCommDidExchangeCompleteHandler.mjs.map +1 -1
  222. package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.mts +1 -1
  223. package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.mts.map +1 -1
  224. package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.ts +1 -1
  225. package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.d.ts.map +1 -1
  226. package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.js +4 -4
  227. package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.mjs +4 -4
  228. package/build/modules/connections/handlers/DidCommDidExchangeRequestHandler.mjs.map +1 -1
  229. package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.mts +1 -1
  230. package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.mts.map +1 -1
  231. package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.ts +1 -1
  232. package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.d.ts.map +1 -1
  233. package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.js +4 -4
  234. package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.mjs +4 -4
  235. package/build/modules/connections/handlers/DidCommDidExchangeResponseHandler.mjs.map +1 -1
  236. package/build/modules/connections/handlers/DidCommDidRotateAckHandler.d.mts.map +1 -1
  237. package/build/modules/connections/handlers/DidCommDidRotateAckHandler.d.ts.map +1 -1
  238. package/build/modules/connections/handlers/DidCommDidRotateAckHandler.mjs.map +1 -1
  239. package/build/modules/connections/handlers/DidCommDidRotateHandler.d.mts +3 -5
  240. package/build/modules/connections/handlers/DidCommDidRotateHandler.d.mts.map +1 -1
  241. package/build/modules/connections/handlers/DidCommDidRotateHandler.d.ts +3 -5
  242. package/build/modules/connections/handlers/DidCommDidRotateHandler.d.ts.map +1 -1
  243. package/build/modules/connections/handlers/DidCommDidRotateHandler.js +1 -2
  244. package/build/modules/connections/handlers/DidCommDidRotateHandler.mjs +1 -2
  245. package/build/modules/connections/handlers/DidCommDidRotateHandler.mjs.map +1 -1
  246. package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.d.mts.map +1 -1
  247. package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.d.ts.map +1 -1
  248. package/build/modules/connections/handlers/DidCommDidRotateProblemReportHandler.mjs.map +1 -1
  249. package/build/modules/connections/handlers/DidCommHangupHandler.d.mts.map +1 -1
  250. package/build/modules/connections/handlers/DidCommHangupHandler.d.ts.map +1 -1
  251. package/build/modules/connections/handlers/DidCommHangupHandler.mjs.map +1 -1
  252. package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.d.mts.map +1 -1
  253. package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.d.ts.map +1 -1
  254. package/build/modules/connections/handlers/DidCommTrustPingMessageHandler.mjs.map +1 -1
  255. package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.d.mts.map +1 -1
  256. package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.d.ts.map +1 -1
  257. package/build/modules/connections/handlers/DidCommTrustPingResponseMessageHandler.mjs.map +1 -1
  258. package/build/modules/connections/handlers/index.js +5 -5
  259. package/build/modules/connections/handlers/index.mjs +5 -5
  260. package/build/modules/connections/index.js +23 -23
  261. package/build/modules/connections/index.mjs +23 -23
  262. package/build/modules/connections/messages/DidCommConnectionInvitationMessage.d.mts.map +1 -1
  263. package/build/modules/connections/messages/DidCommConnectionInvitationMessage.d.ts.map +1 -1
  264. package/build/modules/connections/messages/DidCommConnectionInvitationMessage.js +4 -4
  265. package/build/modules/connections/messages/DidCommConnectionInvitationMessage.mjs +4 -4
  266. package/build/modules/connections/messages/DidCommConnectionInvitationMessage.mjs.map +1 -1
  267. package/build/modules/connections/messages/DidCommConnectionProblemReportMessage.js +1 -1
  268. package/build/modules/connections/messages/DidCommConnectionProblemReportMessage.mjs +1 -1
  269. package/build/modules/connections/messages/DidCommConnectionRequestMessage.d.mts.map +1 -1
  270. package/build/modules/connections/messages/DidCommConnectionRequestMessage.d.ts.map +1 -1
  271. package/build/modules/connections/messages/DidCommConnectionRequestMessage.js +4 -4
  272. package/build/modules/connections/messages/DidCommConnectionRequestMessage.mjs +3 -3
  273. package/build/modules/connections/messages/DidCommConnectionRequestMessage.mjs.map +1 -1
  274. package/build/modules/connections/messages/DidCommConnectionResponseMessage.js +3 -3
  275. package/build/modules/connections/messages/DidCommConnectionResponseMessage.mjs +2 -2
  276. package/build/modules/connections/messages/DidCommDidExchangeCompleteMessage.js +1 -1
  277. package/build/modules/connections/messages/DidCommDidExchangeCompleteMessage.mjs +1 -1
  278. package/build/modules/connections/messages/DidCommDidExchangeProblemReportMessage.js +1 -1
  279. package/build/modules/connections/messages/DidCommDidExchangeProblemReportMessage.mjs +1 -1
  280. package/build/modules/connections/messages/DidCommDidExchangeRequestMessage.js +4 -4
  281. package/build/modules/connections/messages/DidCommDidExchangeRequestMessage.mjs +3 -3
  282. package/build/modules/connections/messages/DidCommDidExchangeResponseMessage.js +4 -4
  283. package/build/modules/connections/messages/DidCommDidExchangeResponseMessage.mjs +3 -3
  284. package/build/modules/connections/messages/DidCommDidRotateAckMessage.js +1 -1
  285. package/build/modules/connections/messages/DidCommDidRotateAckMessage.mjs +1 -1
  286. package/build/modules/connections/messages/DidCommDidRotateMessage.js +3 -3
  287. package/build/modules/connections/messages/DidCommDidRotateMessage.mjs +2 -2
  288. package/build/modules/connections/messages/DidCommDidRotateProblemReportMessage.js +1 -1
  289. package/build/modules/connections/messages/DidCommDidRotateProblemReportMessage.mjs +1 -1
  290. package/build/modules/connections/messages/DidCommHangupMessage.js +1 -1
  291. package/build/modules/connections/messages/DidCommHangupMessage.mjs +1 -1
  292. package/build/modules/connections/messages/DidCommTrustPingMessage.d.mts.map +1 -1
  293. package/build/modules/connections/messages/DidCommTrustPingMessage.d.ts.map +1 -1
  294. package/build/modules/connections/messages/DidCommTrustPingMessage.js +3 -3
  295. package/build/modules/connections/messages/DidCommTrustPingMessage.mjs +2 -2
  296. package/build/modules/connections/messages/DidCommTrustPingMessage.mjs.map +1 -1
  297. package/build/modules/connections/messages/DidCommTrustPingResponseMessage.d.mts.map +1 -1
  298. package/build/modules/connections/messages/DidCommTrustPingResponseMessage.d.ts.map +1 -1
  299. package/build/modules/connections/messages/DidCommTrustPingResponseMessage.js +1 -1
  300. package/build/modules/connections/messages/DidCommTrustPingResponseMessage.mjs +1 -1
  301. package/build/modules/connections/messages/DidCommTrustPingResponseMessage.mjs.map +1 -1
  302. package/build/modules/connections/messages/index.js +7 -7
  303. package/build/modules/connections/messages/index.mjs +7 -7
  304. package/build/modules/connections/models/DidCommConnection.js +3 -3
  305. package/build/modules/connections/models/DidCommConnection.mjs +2 -2
  306. package/build/modules/connections/models/did/DidDoc.d.mts.map +1 -1
  307. package/build/modules/connections/models/did/DidDoc.d.ts.map +1 -1
  308. package/build/modules/connections/models/did/DidDoc.js +3 -3
  309. package/build/modules/connections/models/did/DidDoc.mjs +2 -2
  310. package/build/modules/connections/models/did/DidDoc.mjs.map +1 -1
  311. package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js +1 -1
  312. package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.mjs +1 -1
  313. package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js +3 -3
  314. package/build/modules/connections/models/did/authentication/ReferencedAuthentication.mjs +2 -2
  315. package/build/modules/connections/models/did/authentication/index.d.mts.map +1 -1
  316. package/build/modules/connections/models/did/authentication/index.d.ts.map +1 -1
  317. package/build/modules/connections/models/did/authentication/index.mjs.map +1 -1
  318. package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js +3 -3
  319. package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.mjs +2 -2
  320. package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js +3 -3
  321. package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.mjs +2 -2
  322. package/build/modules/connections/models/did/publicKey/PublicKey.js +1 -1
  323. package/build/modules/connections/models/did/publicKey/PublicKey.mjs +1 -1
  324. package/build/modules/connections/models/did/publicKey/RsaSig2018.js +3 -3
  325. package/build/modules/connections/models/did/publicKey/RsaSig2018.mjs +2 -2
  326. package/build/modules/connections/models/did/publicKey/index.mjs.map +1 -1
  327. package/build/modules/connections/models/index.js +1 -1
  328. package/build/modules/connections/models/index.mjs +1 -1
  329. package/build/modules/connections/repository/DidCommConnectionRecord.d.mts +1 -1
  330. package/build/modules/connections/repository/DidCommConnectionRecord.d.mts.map +1 -1
  331. package/build/modules/connections/repository/DidCommConnectionRecord.d.ts +1 -1
  332. package/build/modules/connections/repository/DidCommConnectionRecord.d.ts.map +1 -1
  333. package/build/modules/connections/repository/DidCommConnectionRecord.js +1 -1
  334. package/build/modules/connections/repository/DidCommConnectionRecord.mjs +1 -1
  335. package/build/modules/connections/repository/DidCommConnectionRecord.mjs.map +1 -1
  336. package/build/modules/connections/repository/DidCommConnectionRepository.js +2 -2
  337. package/build/modules/connections/repository/DidCommConnectionRepository.mjs +2 -2
  338. package/build/modules/connections/repository/DidCommConnectionRepository.mjs.map +1 -1
  339. package/build/modules/connections/services/DidCommConnectionService.d.mts +3 -3
  340. package/build/modules/connections/services/DidCommConnectionService.d.mts.map +1 -1
  341. package/build/modules/connections/services/DidCommConnectionService.d.ts +3 -3
  342. package/build/modules/connections/services/DidCommConnectionService.d.ts.map +1 -1
  343. package/build/modules/connections/services/DidCommConnectionService.js +13 -13
  344. package/build/modules/connections/services/DidCommConnectionService.mjs +13 -13
  345. package/build/modules/connections/services/DidCommConnectionService.mjs.map +1 -1
  346. package/build/modules/connections/services/DidCommDidRotateService.d.mts +2 -2
  347. package/build/modules/connections/services/DidCommDidRotateService.d.mts.map +1 -1
  348. package/build/modules/connections/services/DidCommDidRotateService.d.ts +2 -2
  349. package/build/modules/connections/services/DidCommDidRotateService.d.ts.map +1 -1
  350. package/build/modules/connections/services/DidCommDidRotateService.js +8 -8
  351. package/build/modules/connections/services/DidCommDidRotateService.mjs +8 -8
  352. package/build/modules/connections/services/DidCommDidRotateService.mjs.map +1 -1
  353. package/build/modules/connections/services/DidCommTrustPingService.d.mts.map +1 -1
  354. package/build/modules/connections/services/DidCommTrustPingService.d.ts.map +1 -1
  355. package/build/modules/connections/services/DidCommTrustPingService.js +1 -1
  356. package/build/modules/connections/services/DidCommTrustPingService.mjs +1 -1
  357. package/build/modules/connections/services/DidCommTrustPingService.mjs.map +1 -1
  358. package/build/modules/connections/services/helpers.js +1 -1
  359. package/build/modules/connections/services/helpers.mjs +1 -1
  360. package/build/modules/connections/services/helpers.mjs.map +1 -1
  361. package/build/modules/credentials/DidCommCredentialsApi.d.mts.map +1 -1
  362. package/build/modules/credentials/DidCommCredentialsApi.d.ts.map +1 -1
  363. package/build/modules/credentials/DidCommCredentialsApi.js +2 -2
  364. package/build/modules/credentials/DidCommCredentialsApi.mjs +2 -2
  365. package/build/modules/credentials/DidCommCredentialsApi.mjs.map +1 -1
  366. package/build/modules/credentials/DidCommCredentialsModule.d.mts.map +1 -1
  367. package/build/modules/credentials/DidCommCredentialsModule.d.ts.map +1 -1
  368. package/build/modules/credentials/DidCommCredentialsModule.js +2 -2
  369. package/build/modules/credentials/DidCommCredentialsModule.mjs +2 -2
  370. package/build/modules/credentials/DidCommCredentialsModule.mjs.map +1 -1
  371. package/build/modules/credentials/DidCommCredentialsModuleConfig.d.mts.map +1 -1
  372. package/build/modules/credentials/DidCommCredentialsModuleConfig.d.ts.map +1 -1
  373. package/build/modules/credentials/DidCommCredentialsModuleConfig.mjs.map +1 -1
  374. package/build/modules/credentials/formats/DidCommCredentialFormatServiceOptions.d.mts +1 -1
  375. package/build/modules/credentials/formats/DidCommCredentialFormatServiceOptions.d.ts +1 -1
  376. package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js +3 -3
  377. package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.mjs +2 -2
  378. package/build/modules/credentials/formats/index.js +2 -2
  379. package/build/modules/credentials/formats/index.mjs +2 -2
  380. package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetail.js +1 -1
  381. package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetail.mjs +1 -1
  382. package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.js +1 -1
  383. package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.mjs +1 -1
  384. package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.d.mts.map +1 -1
  385. package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.d.ts.map +1 -1
  386. package/build/modules/credentials/formats/jsonld/DidCommJsonLdCredentialFormatService.mjs.map +1 -1
  387. package/build/modules/credentials/index.js +5 -5
  388. package/build/modules/credentials/index.mjs +5 -5
  389. package/build/modules/credentials/models/DidCommCredentialFormatSpec.js +3 -3
  390. package/build/modules/credentials/models/DidCommCredentialFormatSpec.mjs +2 -2
  391. package/build/modules/credentials/models/DidCommCredentialPreviewAttribute.js +3 -3
  392. package/build/modules/credentials/models/DidCommCredentialPreviewAttribute.mjs +2 -2
  393. package/build/modules/credentials/models/DidCommRevocationNotification.js +1 -1
  394. package/build/modules/credentials/models/DidCommRevocationNotification.mjs +1 -1
  395. package/build/modules/credentials/models/index.js +3 -3
  396. package/build/modules/credentials/models/index.mjs +3 -3
  397. package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.mts +1 -1
  398. package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.mts.map +1 -1
  399. package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.ts +1 -1
  400. package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.d.ts.map +1 -1
  401. package/build/modules/credentials/protocol/DidCommBaseCredentialProtocol.mjs.map +1 -1
  402. package/build/modules/credentials/protocol/DidCommCredentialProtocol.d.mts +1 -1
  403. package/build/modules/credentials/protocol/DidCommCredentialProtocol.d.ts +1 -1
  404. package/build/modules/credentials/protocol/DidCommCredentialProtocolOptions.d.mts +1 -1
  405. package/build/modules/credentials/protocol/DidCommCredentialProtocolOptions.d.ts +1 -1
  406. package/build/modules/credentials/protocol/index.js +1 -1
  407. package/build/modules/credentials/protocol/index.mjs +1 -1
  408. package/build/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV1Handler.mjs.map +1 -1
  409. package/build/modules/credentials/protocol/revocation-notification/handlers/DidCommRevocationNotificationV2Handler.mjs.map +1 -1
  410. package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.js +4 -4
  411. package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV1Message.mjs +3 -3
  412. package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.js +4 -4
  413. package/build/modules/credentials/protocol/revocation-notification/messages/DidCommRevocationNotificationV2Message.mjs +3 -3
  414. package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.mts +1 -1
  415. package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.mts.map +1 -1
  416. package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.ts +1 -1
  417. package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.d.ts.map +1 -1
  418. package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.js +1 -1
  419. package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.mjs +1 -1
  420. package/build/modules/credentials/protocol/revocation-notification/services/DidCommRevocationNotificationService.mjs.map +1 -1
  421. package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.js +2 -2
  422. package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.mjs +2 -2
  423. package/build/modules/credentials/protocol/v2/DidCommCredentialFormatCoordinator.mjs.map +1 -1
  424. package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.mts +2 -2
  425. package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.mts.map +1 -1
  426. package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.ts +2 -2
  427. package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.d.ts.map +1 -1
  428. package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.js +5 -5
  429. package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.mjs +5 -5
  430. package/build/modules/credentials/protocol/v2/DidCommCredentialV2Protocol.mjs.map +1 -1
  431. package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.mts +1 -1
  432. package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.mts.map +1 -1
  433. package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.ts +1 -1
  434. package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.d.ts.map +1 -1
  435. package/build/modules/credentials/protocol/v2/errors/DidCommCredentialV2ProblemReportError.mjs.map +1 -1
  436. package/build/modules/credentials/protocol/v2/handlers/DidCommIssueCredentialV2Handler.mjs.map +1 -1
  437. package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.d.mts.map +1 -1
  438. package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.d.ts.map +1 -1
  439. package/build/modules/credentials/protocol/v2/handlers/DidCommOfferCredentialV2Handler.mjs.map +1 -1
  440. package/build/modules/credentials/protocol/v2/handlers/DidCommProposeCredentialV2Handler.mjs.map +1 -1
  441. package/build/modules/credentials/protocol/v2/handlers/DidCommRequestCredentialV2Handler.mjs.map +1 -1
  442. package/build/modules/credentials/protocol/v2/handlers/index.js +1 -1
  443. package/build/modules/credentials/protocol/v2/handlers/index.mjs +1 -1
  444. package/build/modules/credentials/protocol/v2/index.js +1 -1
  445. package/build/modules/credentials/protocol/v2/index.mjs +1 -1
  446. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2AckMessage.js +1 -1
  447. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2AckMessage.mjs +1 -1
  448. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.mts +1 -1
  449. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.mts.map +1 -1
  450. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.ts +1 -1
  451. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.d.ts.map +1 -1
  452. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.js +3 -3
  453. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.mjs +2 -2
  454. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2Preview.mjs.map +1 -1
  455. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.js +1 -1
  456. package/build/modules/credentials/protocol/v2/messages/DidCommCredentialV2ProblemReportMessage.mjs +1 -1
  457. package/build/modules/credentials/protocol/v2/messages/DidCommIssueCredentialV2Message.js +4 -4
  458. package/build/modules/credentials/protocol/v2/messages/DidCommIssueCredentialV2Message.mjs +3 -3
  459. package/build/modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.js +4 -4
  460. package/build/modules/credentials/protocol/v2/messages/DidCommOfferCredentialV2Message.mjs +3 -3
  461. package/build/modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.js +4 -4
  462. package/build/modules/credentials/protocol/v2/messages/DidCommProposeCredentialV2Message.mjs +3 -3
  463. package/build/modules/credentials/protocol/v2/messages/DidCommRequestCredentialV2Message.js +4 -4
  464. package/build/modules/credentials/protocol/v2/messages/DidCommRequestCredentialV2Message.mjs +3 -3
  465. package/build/modules/credentials/protocol/v2/messages/index.js +1 -1
  466. package/build/modules/credentials/protocol/v2/messages/index.mjs +1 -1
  467. package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.mts +2 -2
  468. package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.mts.map +1 -1
  469. package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.ts +2 -2
  470. package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.d.ts.map +1 -1
  471. package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.js +2 -2
  472. package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.mjs +2 -2
  473. package/build/modules/credentials/repository/DidCommCredentialExchangeRecord.mjs.map +1 -1
  474. package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.js +1 -1
  475. package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.mjs +1 -1
  476. package/build/modules/credentials/repository/DidCommCredentialExchangeRepository.mjs.map +1 -1
  477. package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.mts +3 -3
  478. package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.mts.map +1 -1
  479. package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.ts +3 -3
  480. package/build/modules/discover-features/DidCommDiscoverFeaturesApi.d.ts.map +1 -1
  481. package/build/modules/discover-features/DidCommDiscoverFeaturesApi.js +3 -3
  482. package/build/modules/discover-features/DidCommDiscoverFeaturesApi.mjs +3 -3
  483. package/build/modules/discover-features/DidCommDiscoverFeaturesApi.mjs.map +1 -1
  484. package/build/modules/discover-features/DidCommDiscoverFeaturesEvents.d.mts +1 -1
  485. package/build/modules/discover-features/DidCommDiscoverFeaturesEvents.d.ts +1 -1
  486. package/build/modules/discover-features/DidCommDiscoverFeaturesModule.d.mts.map +1 -1
  487. package/build/modules/discover-features/DidCommDiscoverFeaturesModule.d.ts.map +1 -1
  488. package/build/modules/discover-features/DidCommDiscoverFeaturesModule.js +2 -2
  489. package/build/modules/discover-features/DidCommDiscoverFeaturesModule.mjs +2 -2
  490. package/build/modules/discover-features/DidCommDiscoverFeaturesModule.mjs.map +1 -1
  491. package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.mts +2 -2
  492. package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.mts.map +1 -1
  493. package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.ts +2 -2
  494. package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.d.ts.map +1 -1
  495. package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.js +4 -4
  496. package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.mjs +4 -4
  497. package/build/modules/discover-features/protocol/v1/DidCommDiscoverFeaturesV1Service.mjs.map +1 -1
  498. package/build/modules/discover-features/protocol/v1/handlers/DidCommFeaturesQueryMessageHandler.mjs.map +1 -1
  499. package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.js +3 -3
  500. package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesDiscloseMessage.mjs +2 -2
  501. package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesQueryMessage.js +1 -1
  502. package/build/modules/discover-features/protocol/v1/messages/DidCommFeaturesQueryMessage.mjs +1 -1
  503. package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.mts +2 -2
  504. package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.mts.map +1 -1
  505. package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.ts +2 -2
  506. package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.d.ts.map +1 -1
  507. package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.js +2 -2
  508. package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.mjs +2 -2
  509. package/build/modules/discover-features/protocol/v2/DidCommDiscoverFeaturesV2Service.mjs.map +1 -1
  510. package/build/modules/discover-features/protocol/v2/handlers/DidCommFeaturesQueriesMessageHandler.mjs.map +1 -1
  511. package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.js +3 -3
  512. package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesDisclosuresMessage.mjs +2 -2
  513. package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.d.mts.map +1 -1
  514. package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.d.ts.map +1 -1
  515. package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.js +3 -3
  516. package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.mjs +2 -2
  517. package/build/modules/discover-features/protocol/v2/messages/DidCommFeaturesQueriesMessage.mjs.map +1 -1
  518. package/build/modules/discover-features/services/DidCommDiscoverFeaturesService.d.mts +1 -1
  519. package/build/modules/discover-features/services/DidCommDiscoverFeaturesService.d.ts +1 -1
  520. package/build/modules/index.js +66 -66
  521. package/build/modules/index.mjs +66 -66
  522. package/build/modules/message-pickup/DidCommMessagePickupApi.d.mts +1 -1
  523. package/build/modules/message-pickup/DidCommMessagePickupApi.d.mts.map +1 -1
  524. package/build/modules/message-pickup/DidCommMessagePickupApi.d.ts +1 -1
  525. package/build/modules/message-pickup/DidCommMessagePickupApi.d.ts.map +1 -1
  526. package/build/modules/message-pickup/DidCommMessagePickupApi.js +4 -4
  527. package/build/modules/message-pickup/DidCommMessagePickupApi.mjs +4 -4
  528. package/build/modules/message-pickup/DidCommMessagePickupApi.mjs.map +1 -1
  529. package/build/modules/message-pickup/DidCommMessagePickupModule.d.mts +1 -1
  530. package/build/modules/message-pickup/DidCommMessagePickupModule.d.mts.map +1 -1
  531. package/build/modules/message-pickup/DidCommMessagePickupModule.d.ts +1 -1
  532. package/build/modules/message-pickup/DidCommMessagePickupModule.d.ts.map +1 -1
  533. package/build/modules/message-pickup/DidCommMessagePickupModule.mjs.map +1 -1
  534. package/build/modules/message-pickup/index.js +1 -1
  535. package/build/modules/message-pickup/index.mjs +1 -1
  536. package/build/modules/message-pickup/protocol/DidCommBaseMessagePickupProtocol.d.mts +1 -1
  537. package/build/modules/message-pickup/protocol/DidCommBaseMessagePickupProtocol.d.ts +1 -1
  538. package/build/modules/message-pickup/protocol/DidCommMessagePickupProtocol.d.mts +1 -1
  539. package/build/modules/message-pickup/protocol/DidCommMessagePickupProtocol.d.ts +1 -1
  540. package/build/modules/message-pickup/protocol/index.js +1 -1
  541. package/build/modules/message-pickup/protocol/index.mjs +1 -1
  542. package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.mts +1 -1
  543. package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.mts.map +1 -1
  544. package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.ts +1 -1
  545. package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.d.ts.map +1 -1
  546. package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.js +3 -3
  547. package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.mjs +3 -3
  548. package/build/modules/message-pickup/protocol/v1/DidCommMessagePickupV1Protocol.mjs.map +1 -1
  549. package/build/modules/message-pickup/protocol/v1/handlers/DidCommBatchHandler.mjs.map +1 -1
  550. package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchMessage.js +4 -4
  551. package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchMessage.mjs +3 -3
  552. package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.js +3 -3
  553. package/build/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.mjs +2 -2
  554. package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.mts +2 -2
  555. package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.mts.map +1 -1
  556. package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.ts +2 -2
  557. package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.d.ts.map +1 -1
  558. package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.js +5 -5
  559. package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.mjs +5 -5
  560. package/build/modules/message-pickup/protocol/v2/DidCommMessagePickupV2Protocol.mjs.map +1 -1
  561. package/build/modules/message-pickup/protocol/v2/handlers/DidCommMessageDeliveryV2Handler.mjs.map +1 -1
  562. package/build/modules/message-pickup/protocol/v2/handlers/DidCommStatusV2Handler.mjs.map +1 -1
  563. package/build/modules/message-pickup/protocol/v2/handlers/index.js +1 -1
  564. package/build/modules/message-pickup/protocol/v2/handlers/index.mjs +1 -1
  565. package/build/modules/message-pickup/protocol/v2/index.js +1 -1
  566. package/build/modules/message-pickup/protocol/v2/index.mjs +1 -1
  567. package/build/modules/message-pickup/protocol/v2/messages/DidCommDeliveryRequestV2Message.js +4 -4
  568. package/build/modules/message-pickup/protocol/v2/messages/DidCommDeliveryRequestV2Message.mjs +3 -3
  569. package/build/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.js +4 -4
  570. package/build/modules/message-pickup/protocol/v2/messages/DidCommLiveDeliveryChangeV2Message.mjs +3 -3
  571. package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.d.mts.map +1 -1
  572. package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.d.ts.map +1 -1
  573. package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.js +4 -4
  574. package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.mjs +3 -3
  575. package/build/modules/message-pickup/protocol/v2/messages/DidCommMessageDeliveryV2Message.mjs.map +1 -1
  576. package/build/modules/message-pickup/protocol/v2/messages/DidCommMessagesReceivedV2Message.js +4 -4
  577. package/build/modules/message-pickup/protocol/v2/messages/DidCommMessagesReceivedV2Message.mjs +3 -3
  578. package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusRequestV2Message.js +3 -3
  579. package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusRequestV2Message.mjs +2 -2
  580. package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.js +4 -4
  581. package/build/modules/message-pickup/protocol/v2/messages/DidCommStatusV2Message.mjs +3 -3
  582. package/build/modules/message-pickup/protocol/v2/messages/index.js +1 -1
  583. package/build/modules/message-pickup/protocol/v2/messages/index.mjs +1 -1
  584. package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.d.mts.map +1 -1
  585. package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.d.ts.map +1 -1
  586. package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.js +1 -1
  587. package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.mjs +1 -1
  588. package/build/modules/message-pickup/services/DidCommMessagePickupSessionService.mjs.map +1 -1
  589. package/build/modules/oob/DidCommOutOfBandApi.d.mts +4 -4
  590. package/build/modules/oob/DidCommOutOfBandApi.d.mts.map +1 -1
  591. package/build/modules/oob/DidCommOutOfBandApi.d.ts +4 -4
  592. package/build/modules/oob/DidCommOutOfBandApi.d.ts.map +1 -1
  593. package/build/modules/oob/DidCommOutOfBandApi.js +16 -16
  594. package/build/modules/oob/DidCommOutOfBandApi.mjs +16 -16
  595. package/build/modules/oob/DidCommOutOfBandApi.mjs.map +1 -1
  596. package/build/modules/oob/DidCommOutOfBandModule.d.mts.map +1 -1
  597. package/build/modules/oob/DidCommOutOfBandModule.d.ts.map +1 -1
  598. package/build/modules/oob/DidCommOutOfBandModule.js +3 -3
  599. package/build/modules/oob/DidCommOutOfBandModule.mjs +3 -3
  600. package/build/modules/oob/DidCommOutOfBandModule.mjs.map +1 -1
  601. package/build/modules/oob/DidCommOutOfBandService.d.mts +2 -2
  602. package/build/modules/oob/DidCommOutOfBandService.d.mts.map +1 -1
  603. package/build/modules/oob/DidCommOutOfBandService.d.ts +2 -2
  604. package/build/modules/oob/DidCommOutOfBandService.d.ts.map +1 -1
  605. package/build/modules/oob/DidCommOutOfBandService.js +6 -6
  606. package/build/modules/oob/DidCommOutOfBandService.mjs +6 -6
  607. package/build/modules/oob/DidCommOutOfBandService.mjs.map +1 -1
  608. package/build/modules/oob/converters.js +1 -1
  609. package/build/modules/oob/converters.mjs +1 -1
  610. package/build/modules/oob/converters.mjs.map +1 -1
  611. package/build/modules/oob/domain/OutOfBandDidCommService.d.mts.map +1 -1
  612. package/build/modules/oob/domain/OutOfBandDidCommService.d.ts.map +1 -1
  613. package/build/modules/oob/domain/OutOfBandDidCommService.js +1 -1
  614. package/build/modules/oob/domain/OutOfBandDidCommService.mjs +1 -1
  615. package/build/modules/oob/domain/OutOfBandDidCommService.mjs.map +1 -1
  616. package/build/modules/oob/domain/index.js +2 -2
  617. package/build/modules/oob/domain/index.mjs +2 -2
  618. package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.js +1 -1
  619. package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.mjs +1 -1
  620. package/build/modules/oob/handlers/DidCommHandshakeReuseHandler.mjs.map +1 -1
  621. package/build/modules/oob/helpers.mjs.map +1 -1
  622. package/build/modules/oob/index.js +3 -3
  623. package/build/modules/oob/index.mjs +3 -3
  624. package/build/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.js +1 -1
  625. package/build/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.mjs +1 -1
  626. package/build/modules/oob/messages/DidCommHandshakeReuseMessage.js +1 -1
  627. package/build/modules/oob/messages/DidCommHandshakeReuseMessage.mjs +1 -1
  628. package/build/modules/oob/messages/DidCommOutOfBandInvitation.d.mts.map +1 -1
  629. package/build/modules/oob/messages/DidCommOutOfBandInvitation.d.ts.map +1 -1
  630. package/build/modules/oob/messages/DidCommOutOfBandInvitation.js +6 -6
  631. package/build/modules/oob/messages/DidCommOutOfBandInvitation.mjs +6 -6
  632. package/build/modules/oob/messages/DidCommOutOfBandInvitation.mjs.map +1 -1
  633. package/build/modules/oob/messages/index.js +1 -1
  634. package/build/modules/oob/messages/index.mjs +1 -1
  635. package/build/modules/oob/repository/DidCommOutOfBandRecord.d.mts.map +1 -1
  636. package/build/modules/oob/repository/DidCommOutOfBandRecord.d.ts.map +1 -1
  637. package/build/modules/oob/repository/DidCommOutOfBandRecord.js +2 -2
  638. package/build/modules/oob/repository/DidCommOutOfBandRecord.mjs +2 -2
  639. package/build/modules/oob/repository/DidCommOutOfBandRecord.mjs.map +1 -1
  640. package/build/modules/oob/repository/DidCommOutOfBandRepository.js +2 -2
  641. package/build/modules/oob/repository/DidCommOutOfBandRepository.mjs +2 -2
  642. package/build/modules/oob/repository/DidCommOutOfBandRepository.mjs.map +1 -1
  643. package/build/modules/proofs/DidCommProofsApi.d.mts.map +1 -1
  644. package/build/modules/proofs/DidCommProofsApi.d.ts.map +1 -1
  645. package/build/modules/proofs/DidCommProofsApi.js +3 -3
  646. package/build/modules/proofs/DidCommProofsApi.mjs +3 -3
  647. package/build/modules/proofs/DidCommProofsApi.mjs.map +1 -1
  648. package/build/modules/proofs/DidCommProofsApiOptions.d.mts +1 -1
  649. package/build/modules/proofs/DidCommProofsApiOptions.d.ts +1 -1
  650. package/build/modules/proofs/DidCommProofsModule.d.mts +1 -1
  651. package/build/modules/proofs/DidCommProofsModule.d.mts.map +1 -1
  652. package/build/modules/proofs/DidCommProofsModule.d.ts +1 -1
  653. package/build/modules/proofs/DidCommProofsModule.d.ts.map +1 -1
  654. package/build/modules/proofs/DidCommProofsModule.js +1 -1
  655. package/build/modules/proofs/DidCommProofsModule.mjs +1 -1
  656. package/build/modules/proofs/DidCommProofsModule.mjs.map +1 -1
  657. package/build/modules/proofs/DidCommProofsModuleConfig.d.mts.map +1 -1
  658. package/build/modules/proofs/DidCommProofsModuleConfig.d.ts.map +1 -1
  659. package/build/modules/proofs/DidCommProofsModuleConfig.mjs.map +1 -1
  660. package/build/modules/proofs/formats/DidCommProofFormatServiceOptions.d.mts +1 -1
  661. package/build/modules/proofs/formats/DidCommProofFormatServiceOptions.d.ts +1 -1
  662. package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.d.mts.map +1 -1
  663. package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.d.ts.map +1 -1
  664. package/build/modules/proofs/formats/dif-presentation-exchange/DidCommDifPresentationExchangeProofFormatService.mjs.map +1 -1
  665. package/build/modules/proofs/index.js +11 -11
  666. package/build/modules/proofs/index.mjs +11 -11
  667. package/build/modules/proofs/models/DidCommProofFormatSpec.js +3 -3
  668. package/build/modules/proofs/models/DidCommProofFormatSpec.mjs +2 -2
  669. package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.mts +1 -1
  670. package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.mts.map +1 -1
  671. package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.ts +1 -1
  672. package/build/modules/proofs/protocol/DidCommBaseProofProtocol.d.ts.map +1 -1
  673. package/build/modules/proofs/protocol/DidCommBaseProofProtocol.js +1 -1
  674. package/build/modules/proofs/protocol/DidCommBaseProofProtocol.mjs +1 -1
  675. package/build/modules/proofs/protocol/DidCommBaseProofProtocol.mjs.map +1 -1
  676. package/build/modules/proofs/protocol/DidCommProofProtocol.d.mts +1 -1
  677. package/build/modules/proofs/protocol/DidCommProofProtocol.d.ts +1 -1
  678. package/build/modules/proofs/protocol/DidCommProofProtocolOptions.d.mts +1 -1
  679. package/build/modules/proofs/protocol/DidCommProofProtocolOptions.d.ts +1 -1
  680. package/build/modules/proofs/protocol/index.js +1 -1
  681. package/build/modules/proofs/protocol/index.mjs +1 -1
  682. package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.js +1 -1
  683. package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.mjs +1 -1
  684. package/build/modules/proofs/protocol/v2/DidCommProofFormatCoordinator.mjs.map +1 -1
  685. package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.mts +4 -4
  686. package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.mts.map +1 -1
  687. package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.ts +4 -4
  688. package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.d.ts.map +1 -1
  689. package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.js +12 -12
  690. package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.mjs +12 -12
  691. package/build/modules/proofs/protocol/v2/DidCommProofV2Protocol.mjs.map +1 -1
  692. package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.mts +1 -1
  693. package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.mts.map +1 -1
  694. package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.ts +1 -1
  695. package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.ts.map +1 -1
  696. package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.mjs.map +1 -1
  697. package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.js +1 -1
  698. package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.mjs +1 -1
  699. package/build/modules/proofs/protocol/v2/handlers/DidCommPresentationV2Handler.mjs.map +1 -1
  700. package/build/modules/proofs/protocol/v2/handlers/DidCommProposePresentationV2Handler.mjs.map +1 -1
  701. package/build/modules/proofs/protocol/v2/handlers/DidCommRequestPresentationV2Handler.mjs.map +1 -1
  702. package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2AckMessage.js +1 -1
  703. package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2AckMessage.mjs +1 -1
  704. package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2Message.js +4 -4
  705. package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2Message.mjs +3 -3
  706. package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2ProblemReportMessage.js +1 -1
  707. package/build/modules/proofs/protocol/v2/messages/DidCommPresentationV2ProblemReportMessage.mjs +1 -1
  708. package/build/modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.js +4 -4
  709. package/build/modules/proofs/protocol/v2/messages/DidCommProposePresentationV2Message.mjs +3 -3
  710. package/build/modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.js +4 -4
  711. package/build/modules/proofs/protocol/v2/messages/DidCommRequestPresentationV2Message.mjs +3 -3
  712. package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.mts +1 -1
  713. package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.mts.map +1 -1
  714. package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.ts +1 -1
  715. package/build/modules/proofs/repository/DidCommProofExchangeRecord.d.ts.map +1 -1
  716. package/build/modules/proofs/repository/DidCommProofExchangeRecord.mjs.map +1 -1
  717. package/build/modules/proofs/repository/DidCommProofExchangeRepository.js +1 -1
  718. package/build/modules/proofs/repository/DidCommProofExchangeRepository.mjs +1 -1
  719. package/build/modules/proofs/repository/DidCommProofExchangeRepository.mjs.map +1 -1
  720. package/build/modules/routing/DidCommMediationRecipientApi.d.mts +3 -3
  721. package/build/modules/routing/DidCommMediationRecipientApi.d.mts.map +1 -1
  722. package/build/modules/routing/DidCommMediationRecipientApi.d.ts +3 -3
  723. package/build/modules/routing/DidCommMediationRecipientApi.d.ts.map +1 -1
  724. package/build/modules/routing/DidCommMediationRecipientApi.js +8 -8
  725. package/build/modules/routing/DidCommMediationRecipientApi.mjs +8 -8
  726. package/build/modules/routing/DidCommMediationRecipientApi.mjs.map +1 -1
  727. package/build/modules/routing/DidCommMediationRecipientModule.d.mts.map +1 -1
  728. package/build/modules/routing/DidCommMediationRecipientModule.d.ts.map +1 -1
  729. package/build/modules/routing/DidCommMediationRecipientModule.js +4 -4
  730. package/build/modules/routing/DidCommMediationRecipientModule.mjs +4 -4
  731. package/build/modules/routing/DidCommMediationRecipientModule.mjs.map +1 -1
  732. package/build/modules/routing/DidCommMediatorApi.d.mts +1 -1
  733. package/build/modules/routing/DidCommMediatorApi.d.mts.map +1 -1
  734. package/build/modules/routing/DidCommMediatorApi.d.ts +1 -1
  735. package/build/modules/routing/DidCommMediatorApi.d.ts.map +1 -1
  736. package/build/modules/routing/DidCommMediatorApi.js +2 -2
  737. package/build/modules/routing/DidCommMediatorApi.mjs +2 -2
  738. package/build/modules/routing/DidCommMediatorApi.mjs.map +1 -1
  739. package/build/modules/routing/DidCommMediatorModule.d.mts.map +1 -1
  740. package/build/modules/routing/DidCommMediatorModule.d.ts.map +1 -1
  741. package/build/modules/routing/DidCommMediatorModule.js +7 -7
  742. package/build/modules/routing/DidCommMediatorModule.mjs +7 -7
  743. package/build/modules/routing/DidCommMediatorModule.mjs.map +1 -1
  744. package/build/modules/routing/handlers/DidCommForwardHandler.mjs.map +1 -1
  745. package/build/modules/routing/handlers/DidCommKeylistUpdateHandler.mjs.map +1 -1
  746. package/build/modules/routing/handlers/DidCommKeylistUpdateResponseHandler.mjs.map +1 -1
  747. package/build/modules/routing/handlers/DidCommMediationDenyHandler.mjs.map +1 -1
  748. package/build/modules/routing/handlers/DidCommMediationGrantHandler.mjs.map +1 -1
  749. package/build/modules/routing/handlers/DidCommMediationRequestHandler.mjs.map +1 -1
  750. package/build/modules/routing/handlers/index.js +1 -1
  751. package/build/modules/routing/handlers/index.mjs +1 -1
  752. package/build/modules/routing/index.js +4 -4
  753. package/build/modules/routing/index.mjs +4 -4
  754. package/build/modules/routing/messages/DidCommForwardMessage.js +3 -3
  755. package/build/modules/routing/messages/DidCommForwardMessage.mjs +2 -2
  756. package/build/modules/routing/messages/DidCommKeylistUpdateMessage.js +3 -3
  757. package/build/modules/routing/messages/DidCommKeylistUpdateMessage.mjs +2 -2
  758. package/build/modules/routing/messages/DidCommKeylistUpdateResponseMessage.js +3 -3
  759. package/build/modules/routing/messages/DidCommKeylistUpdateResponseMessage.mjs +2 -2
  760. package/build/modules/routing/messages/DidCommMediationDenyMessage.js +1 -1
  761. package/build/modules/routing/messages/DidCommMediationDenyMessage.mjs +1 -1
  762. package/build/modules/routing/messages/DidCommMediationGrantMessage.js +3 -3
  763. package/build/modules/routing/messages/DidCommMediationGrantMessage.mjs +2 -2
  764. package/build/modules/routing/messages/DidCommMediationRequestMessage.js +1 -1
  765. package/build/modules/routing/messages/DidCommMediationRequestMessage.mjs +1 -1
  766. package/build/modules/routing/messages/index.js +1 -1
  767. package/build/modules/routing/messages/index.mjs +1 -1
  768. package/build/modules/routing/repository/DidCommMediationRecord.d.mts +1 -1
  769. package/build/modules/routing/repository/DidCommMediationRecord.d.mts.map +1 -1
  770. package/build/modules/routing/repository/DidCommMediationRecord.d.ts +1 -1
  771. package/build/modules/routing/repository/DidCommMediationRecord.d.ts.map +1 -1
  772. package/build/modules/routing/repository/DidCommMediationRecord.js +1 -1
  773. package/build/modules/routing/repository/DidCommMediationRecord.mjs +1 -1
  774. package/build/modules/routing/repository/DidCommMediationRecord.mjs.map +1 -1
  775. package/build/modules/routing/repository/DidCommMediationRepository.js +1 -1
  776. package/build/modules/routing/repository/DidCommMediationRepository.mjs +1 -1
  777. package/build/modules/routing/repository/DidCommMediationRepository.mjs.map +1 -1
  778. package/build/modules/routing/repository/DidCommMediatorRoutingRepository.js +1 -1
  779. package/build/modules/routing/repository/DidCommMediatorRoutingRepository.mjs +1 -1
  780. package/build/modules/routing/repository/DidCommMediatorRoutingRepository.mjs.map +1 -1
  781. package/build/modules/routing/services/DidCommMediationRecipientService.d.mts +2 -2
  782. package/build/modules/routing/services/DidCommMediationRecipientService.d.mts.map +1 -1
  783. package/build/modules/routing/services/DidCommMediationRecipientService.d.ts +2 -2
  784. package/build/modules/routing/services/DidCommMediationRecipientService.d.ts.map +1 -1
  785. package/build/modules/routing/services/DidCommMediationRecipientService.js +4 -4
  786. package/build/modules/routing/services/DidCommMediationRecipientService.mjs +4 -4
  787. package/build/modules/routing/services/DidCommMediationRecipientService.mjs.map +1 -1
  788. package/build/modules/routing/services/DidCommMediatorService.d.mts.map +1 -1
  789. package/build/modules/routing/services/DidCommMediatorService.d.ts.map +1 -1
  790. package/build/modules/routing/services/DidCommMediatorService.js +3 -3
  791. package/build/modules/routing/services/DidCommMediatorService.mjs +3 -3
  792. package/build/modules/routing/services/DidCommMediatorService.mjs.map +1 -1
  793. package/build/modules/routing/services/DidCommRoutingService.d.mts.map +1 -1
  794. package/build/modules/routing/services/DidCommRoutingService.d.ts.map +1 -1
  795. package/build/modules/routing/services/DidCommRoutingService.js +1 -1
  796. package/build/modules/routing/services/DidCommRoutingService.mjs +1 -1
  797. package/build/modules/routing/services/DidCommRoutingService.mjs.map +1 -1
  798. package/build/repository/DidCommMessageRecord.d.mts.map +1 -1
  799. package/build/repository/DidCommMessageRecord.d.ts.map +1 -1
  800. package/build/repository/DidCommMessageRecord.mjs.map +1 -1
  801. package/build/repository/DidCommMessageRepository.d.mts.map +1 -1
  802. package/build/repository/DidCommMessageRepository.d.ts.map +1 -1
  803. package/build/repository/DidCommMessageRepository.js +1 -1
  804. package/build/repository/DidCommMessageRepository.mjs +1 -1
  805. package/build/repository/DidCommMessageRepository.mjs.map +1 -1
  806. package/build/repository/index.js +1 -1
  807. package/build/repository/index.mjs +1 -1
  808. package/build/services/DidCommDocumentService.d.mts.map +1 -1
  809. package/build/services/DidCommDocumentService.d.ts.map +1 -1
  810. package/build/services/DidCommDocumentService.js +1 -1
  811. package/build/services/DidCommDocumentService.mjs +1 -1
  812. package/build/services/DidCommDocumentService.mjs.map +1 -1
  813. package/build/transport/DidCommHttpOutboundTransport.d.mts.map +1 -1
  814. package/build/transport/DidCommHttpOutboundTransport.d.ts.map +1 -1
  815. package/build/transport/DidCommHttpOutboundTransport.js +3 -3
  816. package/build/transport/DidCommHttpOutboundTransport.mjs +3 -3
  817. package/build/transport/DidCommHttpOutboundTransport.mjs.map +1 -1
  818. package/build/transport/DidCommWsOutboundTransport.d.mts.map +1 -1
  819. package/build/transport/DidCommWsOutboundTransport.d.ts.map +1 -1
  820. package/build/transport/DidCommWsOutboundTransport.mjs.map +1 -1
  821. package/build/transport/index.js +2 -2
  822. package/build/transport/index.mjs +2 -2
  823. package/build/transport/queue/DidCommQueueTransportRepository.d.mts +1 -1
  824. package/build/transport/queue/DidCommQueueTransportRepository.d.ts +1 -1
  825. package/build/transport/queue/InMemoryQueueTransportRepository.d.mts +1 -1
  826. package/build/transport/queue/InMemoryQueueTransportRepository.d.mts.map +1 -1
  827. package/build/transport/queue/InMemoryQueueTransportRepository.d.ts +1 -1
  828. package/build/transport/queue/InMemoryQueueTransportRepository.d.ts.map +1 -1
  829. package/build/transport/queue/InMemoryQueueTransportRepository.js +1 -1
  830. package/build/transport/queue/InMemoryQueueTransportRepository.mjs +1 -1
  831. package/build/transport/queue/InMemoryQueueTransportRepository.mjs.map +1 -1
  832. package/build/transport/queue/index.js +1 -1
  833. package/build/transport/queue/index.mjs +1 -1
  834. package/build/updates/0.1-0.2/connection.js +3 -3
  835. package/build/updates/0.1-0.2/connection.mjs +3 -3
  836. package/build/updates/0.1-0.2/connection.mjs.map +1 -1
  837. package/build/updates/0.1-0.2/credential.js +1 -1
  838. package/build/updates/0.1-0.2/credential.mjs +1 -1
  839. package/build/updates/0.1-0.2/credential.mjs.map +1 -1
  840. package/build/updates/0.2-0.3/proof.js +1 -1
  841. package/build/updates/0.2-0.3/proof.mjs +1 -1
  842. package/build/updates/0.2-0.3/proof.mjs.map +1 -1
  843. package/build/updates/0.4-0.5/credentialExchangeRecord.js +2 -2
  844. package/build/updates/0.4-0.5/credentialExchangeRecord.mjs +2 -2
  845. package/build/updates/0.4-0.5/credentialExchangeRecord.mjs.map +1 -1
  846. package/build/updates/0.4-0.5/proofExchangeRecord.js +2 -2
  847. package/build/updates/0.4-0.5/proofExchangeRecord.mjs +2 -2
  848. package/build/util/DidCommLinkedAttachment.js +3 -3
  849. package/build/util/DidCommLinkedAttachment.mjs +2 -2
  850. package/build/util/JWE.mjs.map +1 -1
  851. package/build/util/attachment.d.mts.map +1 -1
  852. package/build/util/attachment.d.ts.map +1 -1
  853. package/build/util/attachment.mjs.map +1 -1
  854. package/build/util/messageType.d.mts +37 -1
  855. package/build/util/messageType.d.mts.map +1 -1
  856. package/build/util/messageType.d.ts +37 -1
  857. package/build/util/messageType.d.ts.map +1 -1
  858. package/build/util/messageType.js +4 -4
  859. package/build/util/messageType.mjs +4 -4
  860. package/build/util/messageType.mjs.map +1 -1
  861. package/build/util/parseInvitation.d.mts +8 -1
  862. package/build/util/parseInvitation.d.mts.map +1 -1
  863. package/build/util/parseInvitation.d.ts +8 -1
  864. package/build/util/parseInvitation.d.ts.map +1 -1
  865. package/build/util/parseInvitation.js +6 -5
  866. package/build/util/parseInvitation.mjs +7 -7
  867. package/build/util/parseInvitation.mjs.map +1 -1
  868. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommTrustPingService.d.mts","names":[],"sources":["../../../../src/modules/connections/services/DidCommTrustPingService.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAYa,uBAAA;;EAAA,WAAA,CAAA,YAAA,EAGsB,YAHC;EAAA,WAAA,CAAA;IAAA,OAAA;IAAA;EAAA,CAAA,EAQL,4BARK,CAQwB,uBARxB,CAAA,EAAA,UAAA,EASpB,uBAToB,CAAA,EASG,6BATH,CASG,+BATH,CAAA,GAAA,SAAA;qBAGD,CAAA,cAAA,EAyBU,4BAzBV,CAyBuC,+BAzBvC,CAAA,CAAA,EAAA,IAAA"}
1
+ {"version":3,"file":"DidCommTrustPingService.d.mts","names":[],"sources":["../../../../src/modules/connections/services/DidCommTrustPingService.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAUa,uBAAA;;EAAA,WAAA,CAAA,YAAA,EAGsB,YAHC;EAAA,WAAA,CAAA;IAAA,OAAA;IAAA;EAAA,CAAA,EAQL,4BARK,CAQwB,uBARxB,CAAA,EAAA,UAAA,EASpB,uBAToB,CAAA,EASG,6BATH,CASG,+BATH,CAAA,GAAA,SAAA;qBAGD,CAAA,cAAA,EAyBU,4BAzBV,CAyBuC,+BAzBvC,CAAA,CAAA,EAAA,IAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommTrustPingService.d.ts","names":[],"sources":["../../../../src/modules/connections/services/DidCommTrustPingService.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAYa,uBAAA;;EAAA,WAAA,CAAA,YAAA,EAGsB,YAHC;EAAA,WAAA,CAAA;IAAA,OAAA;IAAA;EAAA,CAAA,EAQL,4BARK,CAQwB,uBARxB,CAAA,EAAA,UAAA,EASpB,uBAToB,CAAA,EASG,6BATH,CASG,+BATH,CAAA,GAAA,SAAA;qBAGD,CAAA,cAAA,EAyBU,4BAzBV,CAyBuC,+BAzBvC,CAAA,CAAA,EAAA,IAAA"}
1
+ {"version":3,"file":"DidCommTrustPingService.d.ts","names":[],"sources":["../../../../src/modules/connections/services/DidCommTrustPingService.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAUa,uBAAA;;EAAA,WAAA,CAAA,YAAA,EAGsB,YAHC;EAAA,WAAA,CAAA;IAAA,OAAA;IAAA;EAAA,CAAA,EAQL,4BARK,CAQwB,uBARxB,CAAA,EAAA,UAAA,EASpB,uBAToB,CAAA,EASG,6BATH,CASG,+BATH,CAAA,GAAA,SAAA;qBAGD,CAAA,cAAA,EAyBU,4BAzBV,CAyBuC,+BAzBvC,CAAA,CAAA,EAAA,IAAA"}
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.js');
2
- const require_decorateMetadata = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
3
2
  const require_decorate = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
3
+ const require_decorateMetadata = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
4
4
  const require_DidCommOutboundMessageContext = require('../../../models/DidCommOutboundMessageContext.js');
5
5
  require('../../../models/index.js');
6
6
  const require_DidCommTrustPingResponseMessage = require('../messages/DidCommTrustPingResponseMessage.js');
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
2
1
  import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
2
+ import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
3
3
  import { DidCommOutboundMessageContext } from "../../../models/DidCommOutboundMessageContext.mjs";
4
4
  import "../../../models/index.mjs";
5
5
  import { DidCommTrustPingResponseMessage } from "../messages/DidCommTrustPingResponseMessage.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommTrustPingService.mjs","names":["DidCommTrustPingService"],"sources":["../../../../src/modules/connections/services/DidCommTrustPingService.ts"],"sourcesContent":["import type { DidCommInboundMessageContext } from '../../../models'\nimport type { DidCommTrustPingReceivedEvent, TrustPingResponseReceivedEvent } from '../DidCommTrustPingEvents'\nimport type { DidCommTrustPingMessage } from '../messages'\nimport type { DidCommConnectionRecord } from '../repository'\n\nimport { EventEmitter, injectable } from '@credo-ts/core'\n\nimport { DidCommOutboundMessageContext } from '../../../models'\nimport { DidCommTrustPingEventTypes } from '../DidCommTrustPingEvents'\nimport { DidCommTrustPingResponseMessage } from '../messages'\n\n@injectable()\nexport class DidCommTrustPingService {\n private eventEmitter: EventEmitter\n\n public constructor(eventEmitter: EventEmitter) {\n this.eventEmitter = eventEmitter\n }\n\n public processPing(\n { message, agentContext }: DidCommInboundMessageContext<DidCommTrustPingMessage>,\n connection: DidCommConnectionRecord\n ) {\n this.eventEmitter.emit<DidCommTrustPingReceivedEvent>(agentContext, {\n type: DidCommTrustPingEventTypes.DidCommTrustPingReceivedEvent,\n payload: {\n connectionRecord: connection,\n message: message,\n },\n })\n\n if (message.responseRequested) {\n const response = new DidCommTrustPingResponseMessage({\n threadId: message.threadId,\n })\n\n return new DidCommOutboundMessageContext(response, { agentContext, connection })\n }\n }\n\n public processPingResponse(inboundMessage: DidCommInboundMessageContext<DidCommTrustPingResponseMessage>) {\n const { agentContext, message } = inboundMessage\n\n const connection = inboundMessage.assertReadyConnection()\n\n this.eventEmitter.emit<TrustPingResponseReceivedEvent>(agentContext, {\n type: DidCommTrustPingEventTypes.DidCommTrustPingResponseReceivedEvent,\n payload: {\n connectionRecord: connection,\n message: message,\n },\n })\n }\n}\n"],"mappings":";;;;;;;;;;;AAYO,oCAAMA,0BAAwB;CAGnC,AAAO,YAAY,cAA4B;AAC7C,OAAK,eAAe;;CAGtB,AAAO,YACL,EAAE,SAAS,gBACX,YACA;AACA,OAAK,aAAa,KAAoC,cAAc;GAClE,MAAM,2BAA2B;GACjC,SAAS;IACP,kBAAkB;IACT;IACV;GACF,CAAC;AAEF,MAAI,QAAQ,kBAKV,QAAO,IAAI,8BAJM,IAAI,gCAAgC,EACnD,UAAU,QAAQ,UACnB,CAAC,EAEiD;GAAE;GAAc;GAAY,CAAC;;CAIpF,AAAO,oBAAoB,gBAA+E;EACxG,MAAM,EAAE,cAAc,YAAY;EAElC,MAAM,aAAa,eAAe,uBAAuB;AAEzD,OAAK,aAAa,KAAqC,cAAc;GACnE,MAAM,2BAA2B;GACjC,SAAS;IACP,kBAAkB;IACT;IACV;GACF,CAAC;;;sCAxCL,YAAY"}
1
+ {"version":3,"file":"DidCommTrustPingService.mjs","names":["DidCommTrustPingService"],"sources":["../../../../src/modules/connections/services/DidCommTrustPingService.ts"],"sourcesContent":["import { EventEmitter, injectable } from '@credo-ts/core'\nimport type { DidCommInboundMessageContext } from '../../../models'\nimport { DidCommOutboundMessageContext } from '../../../models'\nimport type { DidCommTrustPingReceivedEvent, TrustPingResponseReceivedEvent } from '../DidCommTrustPingEvents'\nimport { DidCommTrustPingEventTypes } from '../DidCommTrustPingEvents'\nimport type { DidCommTrustPingMessage } from '../messages'\nimport { DidCommTrustPingResponseMessage } from '../messages'\nimport type { DidCommConnectionRecord } from '../repository'\n\n@injectable()\nexport class DidCommTrustPingService {\n private eventEmitter: EventEmitter\n\n public constructor(eventEmitter: EventEmitter) {\n this.eventEmitter = eventEmitter\n }\n\n public processPing(\n { message, agentContext }: DidCommInboundMessageContext<DidCommTrustPingMessage>,\n connection: DidCommConnectionRecord\n ) {\n this.eventEmitter.emit<DidCommTrustPingReceivedEvent>(agentContext, {\n type: DidCommTrustPingEventTypes.DidCommTrustPingReceivedEvent,\n payload: {\n connectionRecord: connection,\n message: message,\n },\n })\n\n if (message.responseRequested) {\n const response = new DidCommTrustPingResponseMessage({\n threadId: message.threadId,\n })\n\n return new DidCommOutboundMessageContext(response, { agentContext, connection })\n }\n }\n\n public processPingResponse(inboundMessage: DidCommInboundMessageContext<DidCommTrustPingResponseMessage>) {\n const { agentContext, message } = inboundMessage\n\n const connection = inboundMessage.assertReadyConnection()\n\n this.eventEmitter.emit<TrustPingResponseReceivedEvent>(agentContext, {\n type: DidCommTrustPingEventTypes.DidCommTrustPingResponseReceivedEvent,\n payload: {\n connectionRecord: connection,\n message: message,\n },\n })\n }\n}\n"],"mappings":";;;;;;;;;;;AAUO,oCAAMA,0BAAwB;CAGnC,AAAO,YAAY,cAA4B;AAC7C,OAAK,eAAe;;CAGtB,AAAO,YACL,EAAE,SAAS,gBACX,YACA;AACA,OAAK,aAAa,KAAoC,cAAc;GAClE,MAAM,2BAA2B;GACjC,SAAS;IACP,kBAAkB;IACT;IACV;GACF,CAAC;AAEF,MAAI,QAAQ,kBAKV,QAAO,IAAI,8BAJM,IAAI,gCAAgC,EACnD,UAAU,QAAQ,UACnB,CAAC,EAEiD;GAAE;GAAc;GAAY,CAAC;;CAIpF,AAAO,oBAAoB,gBAA+E;EACxG,MAAM,EAAE,cAAc,YAAY;EAElC,MAAM,aAAa,eAAe,uBAAuB;AAEzD,OAAK,aAAa,KAAqC,cAAc;GACnE,MAAM,2BAA2B;GACjC,SAAS;IACP,kBAAkB;IACT;IACV;GACF,CAAC;;;sCAxCL,YAAY"}
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.js');
2
+ require('../../oob/domain/OutOfBandDidCommService.js');
2
3
  const require_EmbeddedAuthentication = require('../models/did/authentication/EmbeddedAuthentication.js');
3
4
  require('../models/index.js');
4
- require('../../oob/domain/OutOfBandDidCommService.js');
5
5
  let __credo_ts_core = require("@credo-ts/core");
6
6
  __credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
7
7
 
@@ -1,6 +1,6 @@
1
+ import "../../oob/domain/OutOfBandDidCommService.mjs";
1
2
  import { EmbeddedAuthentication } from "../models/did/authentication/EmbeddedAuthentication.mjs";
2
3
  import "../models/index.mjs";
3
- import "../../oob/domain/OutOfBandDidCommService.mjs";
4
4
  import { AgentContext, CredoError, DidCommV1Service, DidDocumentBuilder, DidDocumentRole, DidRepository, DidsApi, IndyAgentService, Kms, PeerDidNumAlgo, TypedArrayEncoder, createPeerDidDocumentFromServices, didDocumentJsonToNumAlgo1Did, getEd25519VerificationKey2018 } from "@credo-ts/core";
5
5
 
6
6
  //#region src/modules/connections/services/helpers.ts
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.mjs","names":["oldIdNewIdMapping: { [key: string]: string }","ids"],"sources":["../../../../src/modules/connections/services/helpers.ts"],"sourcesContent":["import { AgentContext, type DidDocumentKey, Kms, PeerDidNumAlgo, type ResolvedDidCommService } from '@credo-ts/core'\nimport type { DidCommRouting } from '../../../models'\nimport type { DidDoc, PublicKey } from '../models'\n\nimport {\n CredoError,\n DidCommV1Service,\n DidDocumentBuilder,\n DidDocumentRole,\n DidRepository,\n DidsApi,\n IndyAgentService,\n TypedArrayEncoder,\n createPeerDidDocumentFromServices,\n didDocumentJsonToNumAlgo1Did,\n getEd25519VerificationKey2018,\n} from '@credo-ts/core'\nimport { OutOfBandDidCommService } from '../../oob/domain/OutOfBandDidCommService'\nimport type { DidCommOutOfBandInlineServiceKey } from '../../oob/repository/DidCommOutOfBandRecord'\nimport { EmbeddedAuthentication } from '../models'\n\nexport function convertToNewDidDocument(didDoc: DidDoc, keys?: DidDocumentKey[]) {\n const didDocumentBuilder = new DidDocumentBuilder('')\n\n const oldIdNewIdMapping: { [key: string]: string } = {}\n\n for (const auth of didDoc.authentication) {\n const { publicKey: pk } = auth\n\n // did:peer did documents can only use referenced keys.\n if (pk.type === 'Ed25519VerificationKey2018' && pk.value) {\n const ed25519VerificationMethod = convertPublicKeyToVerificationMethod(pk)\n\n const oldKeyId = normalizeId(pk.id)\n oldIdNewIdMapping[oldKeyId] = ed25519VerificationMethod.id\n didDocumentBuilder.addAuthentication(ed25519VerificationMethod.id)\n\n // Only the auth is embedded, we also need to add the key to the verificationMethod\n // for referenced authentication this should already be the case\n if (auth instanceof EmbeddedAuthentication) {\n didDocumentBuilder.addVerificationMethod(ed25519VerificationMethod)\n }\n }\n }\n\n for (const pk of didDoc.publicKey) {\n if (pk.type === 'Ed25519VerificationKey2018' && pk.value) {\n const ed25519VerificationMethod = convertPublicKeyToVerificationMethod(pk)\n\n const oldKeyId = normalizeId(pk.id)\n oldIdNewIdMapping[oldKeyId] = ed25519VerificationMethod.id\n didDocumentBuilder.addVerificationMethod(ed25519VerificationMethod)\n }\n }\n\n // FIXME: we reverse the didCommServices here, as the previous implementation was wrong\n // and we need to keep the same order to not break the did creation process.\n // When we implement the migration to did:peer:2 and did:peer:3 according to the\n // RFCs we can change it.\n\n for (let service of didDoc.didCommServices.reverse()) {\n const serviceId = normalizeId(service.id)\n\n // For didcommv1, we need to replace the old id with the new ones\n if (service instanceof DidCommV1Service) {\n const recipientKeys = service.recipientKeys.map((keyId) => {\n const oldKeyId = normalizeId(keyId)\n return oldIdNewIdMapping[oldKeyId]\n })\n\n service = new DidCommV1Service({\n id: serviceId,\n recipientKeys,\n serviceEndpoint: service.serviceEndpoint,\n routingKeys: service.routingKeys,\n accept: service.accept,\n priority: service.priority,\n })\n } else if (service instanceof IndyAgentService) {\n service = new IndyAgentService({\n id: serviceId,\n recipientKeys: service.recipientKeys,\n serviceEndpoint: service.serviceEndpoint,\n routingKeys: service.routingKeys,\n priority: service.priority,\n })\n }\n\n didDocumentBuilder.addService(service)\n }\n\n const didDocument = didDocumentBuilder.build()\n\n const peerDid = didDocumentJsonToNumAlgo1Did(didDocument.toJSON())\n didDocument.id = peerDid\n\n return {\n didDocument,\n keys: keys?.map((key) => ({\n ...key,\n didDocumentRelativeKeyId: oldIdNewIdMapping[key.didDocumentRelativeKeyId],\n })),\n }\n}\n\nfunction normalizeId(fullId: string): `#${string}` {\n // Some old dids use `;` as the delimiter for the id. If we can't find a `#`\n // and a `;` exists, we will parse everything after `;` as the id.\n if (!fullId.includes('#') && fullId.includes(';')) {\n const [, ...ids] = fullId.split(';')\n\n return `#${ids.join(';')}`\n }\n\n const [, ...ids] = fullId.split('#')\n return `#${ids.length ? ids.join('#') : fullId}`\n}\n\nfunction convertPublicKeyToVerificationMethod(publicKey: PublicKey) {\n if (!publicKey.value) {\n throw new CredoError(`Public key ${publicKey.id} does not have value property`)\n }\n const publicKeyBase58 = publicKey.value\n const ed25519Key = Kms.PublicJwk.fromPublicKey({\n kty: 'OKP',\n crv: 'Ed25519',\n publicKey: TypedArrayEncoder.fromBase58(publicKeyBase58),\n })\n return getEd25519VerificationKey2018({\n id: `#${publicKeyBase58.slice(0, 8)}`,\n publicJwk: ed25519Key,\n controller: '#id',\n })\n}\n\nexport function routingToServices(routing: DidCommRouting): ResolvedDidCommService[] {\n return routing.endpoints.map((endpoint, index) => ({\n id: `#inline-${index}`,\n serviceEndpoint: endpoint,\n recipientKeys: [routing.recipientKey],\n routingKeys: routing.routingKeys,\n }))\n}\n\n/**\n * Asserts that the keys we are going to use for creating a did document haven't already been used in another did document\n * Due to how DIDComm v1 works (only reference the key not the did in encrypted message) we can't have multiple dids containing\n * the same key as we won't know which did (and thus which connection) a message is intended for.\n */\nexport async function assertNoCreatedDidExistsForKeys(agentContext: AgentContext, recipientKeys: Kms.PublicJwk[]) {\n const didRepository = agentContext.dependencyManager.resolve(DidRepository)\n const recipientKeyFingerprints = recipientKeys.map((key) => key.fingerprint)\n\n const didsForServices = await didRepository.findByQuery(agentContext, {\n role: DidDocumentRole.Created,\n\n // We want an $or query so we query for each key individually, not one did document\n // containing exactly the same keys as the did document we are trying to create\n $or: recipientKeyFingerprints.map((fingerprint) => ({\n recipientKeyFingerprints: [fingerprint],\n })),\n })\n\n if (didsForServices.length > 0) {\n const allDidRecipientKeys = didsForServices.flatMap((did) => did.getTags().recipientKeyFingerprints ?? [])\n const matchingFingerprints = allDidRecipientKeys.filter((f) => recipientKeyFingerprints.includes(f))\n throw new CredoError(\n `A did already exists for some of the keys in the provided services. DIDComm v1 uses key based routing, and therefore it is not allowed to re-use the same key in multiple did documents for DIDComm. If you use the same 'routing' object for multiple invitations, instead provide an 'invitationDid' to the create invitation method. The following fingerprints are already in use: ${matchingFingerprints.join(\n ','\n )}`\n )\n }\n}\n\nexport async function createPeerDidFromServices(\n agentContext: AgentContext,\n services: ResolvedDidCommService[],\n numAlgo: PeerDidNumAlgo\n) {\n const didsApi = agentContext.dependencyManager.resolve(DidsApi)\n\n // Create did document without the id property\n const { didDocument, keys } = createPeerDidDocumentFromServices(services, true)\n\n // Assert that the keys we are going to use for creating a did document haven't already been used in another did document\n await assertNoCreatedDidExistsForKeys(agentContext, didDocument.recipientKeys)\n\n // Register did:peer document. This will generate the id property and save it to a did record\n const result = await didsApi.create({\n method: 'peer',\n didDocument,\n options: {\n numAlgo,\n keys,\n },\n })\n\n if (result.didState?.state !== 'finished') {\n throw new CredoError(`Did document creation failed: ${JSON.stringify(result.didState)}`)\n }\n\n // FIXME: didApi.create should return the did document\n return didsApi.resolveCreatedDidDocumentWithKeys(result.didState.did)\n}\n\nexport function getResolvedDidcommServiceWithSigningKeyId(\n outOfBandDidcommService: OutOfBandDidCommService,\n /**\n * Optional keys for the inline services\n */\n inlineServiceKeys?: DidCommOutOfBandInlineServiceKey[]\n) {\n const resolvedService = outOfBandDidcommService.resolvedDidCommService\n\n // Make sure the key id is set for service keys\n for (const recipientKey of resolvedService.recipientKeys) {\n const kmsKeyId = inlineServiceKeys?.find(\n ({ recipientKeyFingerprint }) => recipientKeyFingerprint === recipientKey.fingerprint\n )?.kmsKeyId\n\n recipientKey.keyId = kmsKeyId ?? recipientKey.legacyKeyId\n }\n\n return resolvedService\n}\n"],"mappings":";;;;;;AAqBA,SAAgB,wBAAwB,QAAgB,MAAyB;CAC/E,MAAM,qBAAqB,IAAI,mBAAmB,GAAG;CAErD,MAAMA,oBAA+C,EAAE;AAEvD,MAAK,MAAM,QAAQ,OAAO,gBAAgB;EACxC,MAAM,EAAE,WAAW,OAAO;AAG1B,MAAI,GAAG,SAAS,gCAAgC,GAAG,OAAO;GACxD,MAAM,4BAA4B,qCAAqC,GAAG;GAE1E,MAAM,WAAW,YAAY,GAAG,GAAG;AACnC,qBAAkB,YAAY,0BAA0B;AACxD,sBAAmB,kBAAkB,0BAA0B,GAAG;AAIlE,OAAI,gBAAgB,uBAClB,oBAAmB,sBAAsB,0BAA0B;;;AAKzE,MAAK,MAAM,MAAM,OAAO,UACtB,KAAI,GAAG,SAAS,gCAAgC,GAAG,OAAO;EACxD,MAAM,4BAA4B,qCAAqC,GAAG;EAE1E,MAAM,WAAW,YAAY,GAAG,GAAG;AACnC,oBAAkB,YAAY,0BAA0B;AACxD,qBAAmB,sBAAsB,0BAA0B;;AASvE,MAAK,IAAI,WAAW,OAAO,gBAAgB,SAAS,EAAE;EACpD,MAAM,YAAY,YAAY,QAAQ,GAAG;AAGzC,MAAI,mBAAmB,iBAMrB,WAAU,IAAI,iBAAiB;GAC7B,IAAI;GACJ,eAPoB,QAAQ,cAAc,KAAK,UAAU;AAEzD,WAAO,kBADU,YAAY,MAAM;KAEnC;GAKA,iBAAiB,QAAQ;GACzB,aAAa,QAAQ;GACrB,QAAQ,QAAQ;GAChB,UAAU,QAAQ;GACnB,CAAC;WACO,mBAAmB,iBAC5B,WAAU,IAAI,iBAAiB;GAC7B,IAAI;GACJ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Y;CAE5E,MAAM,kBAAkB,MAAM,cAAc,YAAY,cAAc;EACpE,MAAM,gBAAgB;EAItB,KAAK,yBAAyB,KAAK,iBAAiB,EAClD,0BAA0B,CAAC,YAAY,EACxC,EAAE;EACJ,CAAC;AAEF,KAAI,gBAAgB,SAAS,EAG3B,OAAM,IAAI,WACR,0XAH0B,gBAAgB,SAAS,QAAQ,IAAI,SAAS,CAAC,4BAA4B,EAAE,CAAC,CACzD,QAAQ,MAAM,yBAAyB,SAAS,EAAE,CAAC,CAE6S,KAC7Y,IACD,GACF;;AAIL,eAAsB,0BACpB,cACA,UACA,SACA;CACA,MAAM,UAAU,aAAa,kBAAkB,QAAQ,QAAQ;CAG/D,MAAM,EAAE,aAAa,SAAS,kCAAkC,UAAU,KAAK;AAG/E,OAAM,gCAAgC,cAAc,YAAY,cAAc;CAG9E,MAAM,SAAS,MAAM,QAAQ,OAAO;EAClC,QAAQ;EACR;EACA,SAAS;GACP;GACA;GACD;EACF,CAAC;AAEF,KAAI,OAAO,UAAU,UAAU,WAC7B,OAAM,IAAI,WAAW,iCAAiC,KAAK,UAAU,OAAO,SAAS,GAAG;AAI1F,QAAO,QAAQ,kCAAkC,OAAO,SAAS,IAAI;;AAGvE,SAAgB,0CACd,yBAIA,mBACA;CACA,MAAM,kBAAkB,wBAAwB;AAGhD,MAAK,MAAM,gBAAgB,gBAAgB,cAKzC,cAAa,QAJI,mBAAmB,MACjC,EAAE,8BAA8B,4BAA4B,aAAa,YAC3E,EAAE,YAE8B,aAAa;AAGhD,QAAO"}
1
+ {"version":3,"file":"helpers.mjs","names":["oldIdNewIdMapping: { [key: string]: string }","ids"],"sources":["../../../../src/modules/connections/services/helpers.ts"],"sourcesContent":["import {\n AgentContext,\n CredoError,\n createPeerDidDocumentFromServices,\n DidCommV1Service,\n DidDocumentBuilder,\n type DidDocumentKey,\n DidDocumentRole,\n DidRepository,\n DidsApi,\n didDocumentJsonToNumAlgo1Did,\n getEd25519VerificationKey2018,\n IndyAgentService,\n Kms,\n PeerDidNumAlgo,\n type ResolvedDidCommService,\n TypedArrayEncoder,\n} from '@credo-ts/core'\nimport type { DidCommRouting } from '../../../models'\nimport { OutOfBandDidCommService } from '../../oob/domain/OutOfBandDidCommService'\nimport type { DidCommOutOfBandInlineServiceKey } from '../../oob/repository/DidCommOutOfBandRecord'\nimport type { DidDoc, PublicKey } from '../models'\nimport { EmbeddedAuthentication } from '../models'\n\nexport function convertToNewDidDocument(didDoc: DidDoc, keys?: DidDocumentKey[]) {\n const didDocumentBuilder = new DidDocumentBuilder('')\n\n const oldIdNewIdMapping: { [key: string]: string } = {}\n\n for (const auth of didDoc.authentication) {\n const { publicKey: pk } = auth\n\n // did:peer did documents can only use referenced keys.\n if (pk.type === 'Ed25519VerificationKey2018' && pk.value) {\n const ed25519VerificationMethod = convertPublicKeyToVerificationMethod(pk)\n\n const oldKeyId = normalizeId(pk.id)\n oldIdNewIdMapping[oldKeyId] = ed25519VerificationMethod.id\n didDocumentBuilder.addAuthentication(ed25519VerificationMethod.id)\n\n // Only the auth is embedded, we also need to add the key to the verificationMethod\n // for referenced authentication this should already be the case\n if (auth instanceof EmbeddedAuthentication) {\n didDocumentBuilder.addVerificationMethod(ed25519VerificationMethod)\n }\n }\n }\n\n for (const pk of didDoc.publicKey) {\n if (pk.type === 'Ed25519VerificationKey2018' && pk.value) {\n const ed25519VerificationMethod = convertPublicKeyToVerificationMethod(pk)\n\n const oldKeyId = normalizeId(pk.id)\n oldIdNewIdMapping[oldKeyId] = ed25519VerificationMethod.id\n didDocumentBuilder.addVerificationMethod(ed25519VerificationMethod)\n }\n }\n\n // FIXME: we reverse the didCommServices here, as the previous implementation was wrong\n // and we need to keep the same order to not break the did creation process.\n // When we implement the migration to did:peer:2 and did:peer:3 according to the\n // RFCs we can change it.\n\n for (let service of didDoc.didCommServices.reverse()) {\n const serviceId = normalizeId(service.id)\n\n // For didcommv1, we need to replace the old id with the new ones\n if (service instanceof DidCommV1Service) {\n const recipientKeys = service.recipientKeys.map((keyId) => {\n const oldKeyId = normalizeId(keyId)\n return oldIdNewIdMapping[oldKeyId]\n })\n\n service = new DidCommV1Service({\n id: serviceId,\n recipientKeys,\n serviceEndpoint: service.serviceEndpoint,\n routingKeys: service.routingKeys,\n accept: service.accept,\n priority: service.priority,\n })\n } else if (service instanceof IndyAgentService) {\n service = new IndyAgentService({\n id: serviceId,\n recipientKeys: service.recipientKeys,\n serviceEndpoint: service.serviceEndpoint,\n routingKeys: service.routingKeys,\n priority: service.priority,\n })\n }\n\n didDocumentBuilder.addService(service)\n }\n\n const didDocument = didDocumentBuilder.build()\n\n const peerDid = didDocumentJsonToNumAlgo1Did(didDocument.toJSON())\n didDocument.id = peerDid\n\n return {\n didDocument,\n keys: keys?.map((key) => ({\n ...key,\n didDocumentRelativeKeyId: oldIdNewIdMapping[key.didDocumentRelativeKeyId],\n })),\n }\n}\n\nfunction normalizeId(fullId: string): `#${string}` {\n // Some old dids use `;` as the delimiter for the id. If we can't find a `#`\n // and a `;` exists, we will parse everything after `;` as the id.\n if (!fullId.includes('#') && fullId.includes(';')) {\n const [, ...ids] = fullId.split(';')\n\n return `#${ids.join(';')}`\n }\n\n const [, ...ids] = fullId.split('#')\n return `#${ids.length ? ids.join('#') : fullId}`\n}\n\nfunction convertPublicKeyToVerificationMethod(publicKey: PublicKey) {\n if (!publicKey.value) {\n throw new CredoError(`Public key ${publicKey.id} does not have value property`)\n }\n const publicKeyBase58 = publicKey.value\n const ed25519Key = Kms.PublicJwk.fromPublicKey({\n kty: 'OKP',\n crv: 'Ed25519',\n publicKey: TypedArrayEncoder.fromBase58(publicKeyBase58),\n })\n return getEd25519VerificationKey2018({\n id: `#${publicKeyBase58.slice(0, 8)}`,\n publicJwk: ed25519Key,\n controller: '#id',\n })\n}\n\nexport function routingToServices(routing: DidCommRouting): ResolvedDidCommService[] {\n return routing.endpoints.map((endpoint, index) => ({\n id: `#inline-${index}`,\n serviceEndpoint: endpoint,\n recipientKeys: [routing.recipientKey],\n routingKeys: routing.routingKeys,\n }))\n}\n\n/**\n * Asserts that the keys we are going to use for creating a did document haven't already been used in another did document\n * Due to how DIDComm v1 works (only reference the key not the did in encrypted message) we can't have multiple dids containing\n * the same key as we won't know which did (and thus which connection) a message is intended for.\n */\nexport async function assertNoCreatedDidExistsForKeys(agentContext: AgentContext, recipientKeys: Kms.PublicJwk[]) {\n const didRepository = agentContext.dependencyManager.resolve(DidRepository)\n const recipientKeyFingerprints = recipientKeys.map((key) => key.fingerprint)\n\n const didsForServices = await didRepository.findByQuery(agentContext, {\n role: DidDocumentRole.Created,\n\n // We want an $or query so we query for each key individually, not one did document\n // containing exactly the same keys as the did document we are trying to create\n $or: recipientKeyFingerprints.map((fingerprint) => ({\n recipientKeyFingerprints: [fingerprint],\n })),\n })\n\n if (didsForServices.length > 0) {\n const allDidRecipientKeys = didsForServices.flatMap((did) => did.getTags().recipientKeyFingerprints ?? [])\n const matchingFingerprints = allDidRecipientKeys.filter((f) => recipientKeyFingerprints.includes(f))\n throw new CredoError(\n `A did already exists for some of the keys in the provided services. DIDComm v1 uses key based routing, and therefore it is not allowed to re-use the same key in multiple did documents for DIDComm. If you use the same 'routing' object for multiple invitations, instead provide an 'invitationDid' to the create invitation method. The following fingerprints are already in use: ${matchingFingerprints.join(\n ','\n )}`\n )\n }\n}\n\nexport async function createPeerDidFromServices(\n agentContext: AgentContext,\n services: ResolvedDidCommService[],\n numAlgo: PeerDidNumAlgo\n) {\n const didsApi = agentContext.dependencyManager.resolve(DidsApi)\n\n // Create did document without the id property\n const { didDocument, keys } = createPeerDidDocumentFromServices(services, true)\n\n // Assert that the keys we are going to use for creating a did document haven't already been used in another did document\n await assertNoCreatedDidExistsForKeys(agentContext, didDocument.recipientKeys)\n\n // Register did:peer document. This will generate the id property and save it to a did record\n const result = await didsApi.create({\n method: 'peer',\n didDocument,\n options: {\n numAlgo,\n keys,\n },\n })\n\n if (result.didState?.state !== 'finished') {\n throw new CredoError(`Did document creation failed: ${JSON.stringify(result.didState)}`)\n }\n\n // FIXME: didApi.create should return the did document\n return didsApi.resolveCreatedDidDocumentWithKeys(result.didState.did)\n}\n\nexport function getResolvedDidcommServiceWithSigningKeyId(\n outOfBandDidcommService: OutOfBandDidCommService,\n /**\n * Optional keys for the inline services\n */\n inlineServiceKeys?: DidCommOutOfBandInlineServiceKey[]\n) {\n const resolvedService = outOfBandDidcommService.resolvedDidCommService\n\n // Make sure the key id is set for service keys\n for (const recipientKey of resolvedService.recipientKeys) {\n const kmsKeyId = inlineServiceKeys?.find(\n ({ recipientKeyFingerprint }) => recipientKeyFingerprint === recipientKey.fingerprint\n )?.kmsKeyId\n\n recipientKey.keyId = kmsKeyId ?? recipientKey.legacyKeyId\n }\n\n return resolvedService\n}\n"],"mappings":";;;;;;AAwBA,SAAgB,wBAAwB,QAAgB,MAAyB;CAC/E,MAAM,qBAAqB,IAAI,mBAAmB,GAAG;CAErD,MAAMA,oBAA+C,EAAE;AAEvD,MAAK,MAAM,QAAQ,OAAO,gBAAgB;EACxC,MAAM,EAAE,WAAW,OAAO;AAG1B,MAAI,GAAG,SAAS,gCAAgC,GAAG,OAAO;GACxD,MAAM,4BAA4B,qCAAqC,GAAG;GAE1E,MAAM,WAAW,YAAY,GAAG,GAAG;AACnC,qBAAkB,YAAY,0BAA0B;AACxD,sBAAmB,kBAAkB,0BAA0B,GAAG;AAIlE,OAAI,gBAAgB,uBAClB,oBAAmB,sBAAsB,0BAA0B;;;AAKzE,MAAK,MAAM,MAAM,OAAO,UACtB,KAAI,GAAG,SAAS,gCAAgC,GAAG,OAAO;EACxD,MAAM,4BAA4B,qCAAqC,GAAG;EAE1E,MAAM,WAAW,YAAY,GAAG,GAAG;AACnC,oBAAkB,YAAY,0BAA0B;AACxD,qBAAmB,sBAAsB,0BAA0B;;AASvE,MAAK,IAAI,WAAW,OAAO,gBAAgB,SAAS,EAAE;EACpD,MAAM,YAAY,YAAY,QAAQ,GAAG;AAGzC,MAAI,mBAAmB,iBAMrB,WAAU,IAAI,iB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,MAAA,EAkD7B,MAlD6B,EAAA,4BAAA,EAmDxC,mCAnDwC,EAAA,6BAAA,EAoDvC,oCApDuC,EAAA,MAAA,EAqD9D,8BArD8D,CAqD/B,GArD+B,CAAA;UAGtB,WAAA;UAA7B,iCAAA"}
@@ -1,10 +1,10 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
2
- const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
3
2
  const require_decorate = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
3
+ const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
4
4
  require('../../DidCommMessage.js');
5
5
  const require_decorateParam = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
6
- const require_DidCommConnectionService = require('../connections/services/DidCommConnectionService.js');
7
6
  const require_DidCommMessageSender = require('../../DidCommMessageSender.js');
7
+ const require_DidCommConnectionService = require('../connections/services/DidCommConnectionService.js');
8
8
  require('../connections/index.js');
9
9
  const require_getDidCommOutboundMessageContext = require('../../getDidCommOutboundMessageContext.js');
10
10
  const require_DidCommCredentialState = require('./models/DidCommCredentialState.js');
@@ -1,9 +1,9 @@
1
- import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
2
1
  import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
2
+ import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
3
3
  import "../../DidCommMessage.mjs";
4
4
  import { __decorateParam } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
5
- import { DidCommConnectionService } from "../connections/services/DidCommConnectionService.mjs";
6
5
  import { DidCommMessageSender } from "../../DidCommMessageSender.mjs";
6
+ import { DidCommConnectionService } from "../connections/services/DidCommConnectionService.mjs";
7
7
  import "../connections/index.mjs";
8
8
  import { getOutboundDidCommMessageContext } from "../../getDidCommOutboundMessageContext.mjs";
9
9
  import { DidCommCredentialState } from "./models/DidCommCredentialState.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommCredentialsApi.mjs","names":["DidCommCredentialsApi","logger: Logger"],"sources":["../../../src/modules/credentials/DidCommCredentialsApi.ts"],"sourcesContent":["import type { Query, QueryOptions } from '@credo-ts/core'\nimport type {\n AcceptCredentialOfferOptions,\n AcceptCredentialOptions,\n AcceptCredentialProposalOptions,\n AcceptCredentialRequestOptions,\n CreateCredentialOfferOptions,\n DeclineCredentialOfferOptions,\n DeleteCredentialOptions,\n FindCredentialMessageReturn,\n FindCredentialOfferMessageReturn,\n FindCredentialProposalMessageReturn,\n FindCredentialRequestMessageReturn,\n GetCredentialFormatDataReturn,\n NegotiateCredentialOfferOptions,\n NegotiateCredentialProposalOptions,\n OfferCredentialOptions,\n ProposeCredentialOptions,\n SendCredentialProblemReportOptions,\n SendRevocationNotificationOptions,\n} from './DidCommCredentialsApiOptions'\nimport type { DidCommCredentialProtocol } from './protocol/DidCommCredentialProtocol'\nimport type { CredentialFormatsFromProtocols } from './protocol/DidCommCredentialProtocolOptions'\nimport type { DidCommCredentialExchangeRecord } from './repository/DidCommCredentialExchangeRecord'\n\nimport { AgentContext, CredoError, InjectionSymbols, type Logger, inject, injectable } from '@credo-ts/core'\n\nimport { DidCommMessage } from '../../DidCommMessage'\nimport { DidCommMessageSender } from '../../DidCommMessageSender'\nimport { getOutboundDidCommMessageContext } from '../../getDidCommOutboundMessageContext'\nimport { DidCommConnectionService } from '../connections'\n\nimport { DidCommCredentialsModuleConfig } from './DidCommCredentialsModuleConfig'\nimport { DidCommCredentialState } from './models/DidCommCredentialState'\nimport { DidCommRevocationNotificationService } from './protocol/revocation-notification/services'\nimport { DidCommCredentialExchangeRepository } from './repository/DidCommCredentialExchangeRepository'\n\nexport interface DidCommCredentialsApi<CPs extends DidCommCredentialProtocol[]> {\n // Propose Credential methods\n proposeCredential(options: ProposeCredentialOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n acceptProposal(options: AcceptCredentialProposalOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n negotiateProposal(options: NegotiateCredentialProposalOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n\n // Offer Credential Methods\n offerCredential(options: OfferCredentialOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n acceptOffer(options: AcceptCredentialOfferOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n declineOffer(options: DeclineCredentialOfferOptions): Promise<DidCommCredentialExchangeRecord>\n negotiateOffer(options: NegotiateCredentialOfferOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n\n // Request Credential Methods\n // This is for beginning the exchange with a request (no proposal or offer). Only possible\n // (currently) with W3C. We will not implement this in phase I\n\n // when the issuer accepts the request he issues the credential to the holder\n acceptRequest(options: AcceptCredentialRequestOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n\n // Issue Credential Methods\n acceptCredential(options: AcceptCredentialOptions): Promise<DidCommCredentialExchangeRecord>\n\n // Revoke Credential Methods\n sendRevocationNotification(options: SendRevocationNotificationOptions): Promise<void>\n\n // out of band\n createOffer(options: CreateCredentialOfferOptions<CPs>): Promise<{\n message: DidCommMessage\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n }>\n\n sendProblemReport(options: SendCredentialProblemReportOptions): Promise<DidCommCredentialExchangeRecord>\n\n // Record Methods\n getAll(): Promise<DidCommCredentialExchangeRecord[]>\n findAllByQuery(\n query: Query<DidCommCredentialExchangeRecord>,\n queryOptions?: QueryOptions\n ): Promise<DidCommCredentialExchangeRecord[]>\n getById(credentialExchangeRecordId: string): Promise<DidCommCredentialExchangeRecord>\n findById(credentialExchangeRecordId: string): Promise<DidCommCredentialExchangeRecord | null>\n deleteById(credentialExchangeRecordId: string, options?: DeleteCredentialOptions): Promise<void>\n update(credentialExchangeRecordId: DidCommCredentialExchangeRecord): Promise<void>\n getFormatData(\n credentialExchangeRecordId: string\n ): Promise<GetCredentialFormatDataReturn<CredentialFormatsFromProtocols<CPs>>>\n\n // DidComm Message Records\n findProposalMessage(credentialExchangeRecordId: string): Promise<FindCredentialProposalMessageReturn<CPs>>\n findOfferMessage(credentialExchangeRecordId: string): Promise<FindCredentialOfferMessageReturn<CPs>>\n findRequestMessage(credentialExchangeRecordId: string): Promise<FindCredentialRequestMessageReturn<CPs>>\n findCredentialMessage(credentialExchangeRecordId: string): Promise<FindCredentialMessageReturn<CPs>>\n}\n\n@injectable()\n// biome-ignore lint/suspicious/noUnsafeDeclarationMerging: <explanation>\nexport class DidCommCredentialsApi<CPs extends DidCommCredentialProtocol[]> implements DidCommCredentialsApi<CPs> {\n /**\n * Configuration for the credentials module\n */\n public readonly config: DidCommCredentialsModuleConfig<CPs>\n\n private connectionService: DidCommConnectionService\n private messageSender: DidCommMessageSender\n private credentialExchangeRepository: DidCommCredentialExchangeRepository\n private agentContext: AgentContext\n private revocationNotificationService: DidCommRevocationNotificationService\n private logger: Logger\n\n public constructor(\n messageSender: DidCommMessageSender,\n connectionService: DidCommConnectionService,\n agentContext: AgentContext,\n @inject(InjectionSymbols.Logger) logger: Logger,\n credentialExchangeRepository: DidCommCredentialExchangeRepository,\n revocationNotificationService: DidCommRevocationNotificationService,\n config: DidCommCredentialsModuleConfig<CPs>\n ) {\n this.messageSender = messageSender\n this.connectionService = connectionService\n this.credentialExchangeRepository = credentialExchangeRepository\n this.agentContext = agentContext\n this.revocationNotificationService = revocationNotificationService\n this.logger = logger\n this.config = config\n }\n\n private getProtocol<PVT extends CPs[number]['version']>(protocolVersion: PVT): DidCommCredentialProtocol {\n const credentialProtocol = this.config.credentialProtocols.find((protocol) => protocol.version === protocolVersion)\n\n if (!credentialProtocol) {\n throw new CredoError(`No credential protocol registered for protocol version ${protocolVersion}`)\n }\n\n return credentialProtocol\n }\n\n /**\n * Initiate a new credential exchange as holder by sending a credential proposal message\n * to the connection with the specified connection id.\n *\n * @param options configuration to use for the proposal\n * @returns Credential exchange record associated with the sent proposal message\n */\n\n public async proposeCredential(options: ProposeCredentialOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const protocol = this.getProtocol(options.protocolVersion)\n\n const connectionRecord = await this.connectionService.getById(this.agentContext, options.connectionId)\n\n // Assert\n connectionRecord.assertReady()\n\n // will get back a credential record -> map to Credential Exchange Record\n const { credentialExchangeRecord, message } = await protocol.createProposal(this.agentContext, {\n connectionRecord,\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n associatedRecord: credentialExchangeRecord,\n connectionRecord,\n })\n\n await this.messageSender.sendMessage(outboundMessageContext)\n return credentialExchangeRecord\n }\n\n /**\n * Accept a credential proposal as issuer (by sending a credential offer message) to the connection\n * associated with the credential record.\n *\n * @param options config object for accepting the proposal\n * @returns Credential exchange record associated with the credential offer\n *\n */\n public async acceptProposal(options: AcceptCredentialProposalOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n if (!credentialExchangeRecord.connectionId) {\n throw new CredoError(\n `No connectionId found for credential exchange record '${credentialExchangeRecord.id}'. Connection-less issuance does not support credential proposal or negotiation.`\n )\n }\n\n // with version we can get the protocol\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n const connectionRecord = await this.connectionService.getById(\n this.agentContext,\n credentialExchangeRecord.connectionId\n )\n\n // Assert\n connectionRecord.assertReady()\n\n // will get back a credential record -> map to Credential Exchange Record\n const { message } = await protocol.acceptProposal(this.agentContext, {\n credentialExchangeRecord,\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n // send the message\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n associatedRecord: credentialExchangeRecord,\n connectionRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Negotiate a credential proposal as issuer (by sending a credential offer message) to the connection\n * associated with the credential record.\n *\n * @param options configuration for the offer see {@link NegotiateCredentialProposalOptions}\n * @returns Credential exchange record associated with the credential offer\n *\n */\n public async negotiateProposal(\n options: NegotiateCredentialProposalOptions<CPs>\n ): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n if (!credentialExchangeRecord.connectionId) {\n throw new CredoError(\n `No connection id for credential record ${credentialExchangeRecord.id} not found. Connection-less issuance does not support negotiation`\n )\n }\n\n // with version we can get the Service\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n const { message } = await protocol.negotiateProposal(this.agentContext, {\n credentialExchangeRecord,\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n const connectionRecord = await this.connectionService.getById(\n this.agentContext,\n credentialExchangeRecord.connectionId\n )\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n associatedRecord: credentialExchangeRecord,\n connectionRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Initiate a new credential exchange as issuer by sending a credential offer message\n * to the connection with the specified connection id.\n *\n * @param options config options for the credential offer\n * @returns Credential exchange record associated with the sent credential offer message\n */\n public async offerCredential(options: OfferCredentialOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const connectionRecord = await this.connectionService.getById(this.agentContext, options.connectionId)\n const protocol = this.getProtocol(options.protocolVersion)\n\n this.logger.debug(`Got a credentialProtocol object for version ${options.protocolVersion}`)\n\n const { message, credentialExchangeRecord } = await protocol.createOffer(this.agentContext, {\n credentialFormats: options.credentialFormats,\n autoAcceptCredential: options.autoAcceptCredential,\n comment: options.comment,\n connectionRecord,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n this.logger.debug('Offer Message successfully created; message= ', message)\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n associatedRecord: credentialExchangeRecord,\n connectionRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Accept a credential offer as holder (by sending a credential request message) to the connection\n * associated with the credential record.\n *\n * @param options The object containing config options of the offer to be accepted\n * @returns Object containing offer associated credential record\n */\n public async acceptOffer(options: AcceptCredentialOfferOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n this.logger.debug(`Got a credentialProtocol object for this version; version = ${protocol.version}`)\n const offerMessage = await protocol.findOfferMessage(this.agentContext, credentialExchangeRecord.id)\n if (!offerMessage) {\n throw new CredoError(`No offer message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n\n // Use connection if present\n const connectionRecord = credentialExchangeRecord.connectionId\n ? await this.connectionService.getById(this.agentContext, credentialExchangeRecord.connectionId)\n : undefined\n connectionRecord?.assertReady()\n\n const { message } = await protocol.acceptOffer(this.agentContext, {\n credentialExchangeRecord,\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n connectionRecord,\n associatedRecord: credentialExchangeRecord,\n lastReceivedMessage: offerMessage,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n public async declineOffer(options: DeclineCredentialOfferOptions): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n credentialExchangeRecord.assertState(DidCommCredentialState.OfferReceived)\n\n // with version we can get the Service\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n if (options.sendProblemReport) {\n await this.sendProblemReport({\n credentialExchangeRecordId: options.credentialExchangeRecordId,\n description: options.problemReportDescription ?? 'Offer declined',\n })\n }\n\n await protocol.updateState(this.agentContext, credentialExchangeRecord, DidCommCredentialState.Declined)\n\n return credentialExchangeRecord\n }\n\n public async negotiateOffer(options: NegotiateCredentialOfferOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n if (!credentialExchangeRecord.connectionId) {\n throw new CredoError(\n `No connection id for credential record ${credentialExchangeRecord.id} not found. Connection-less issuance does not support negotiation`\n )\n }\n\n const connectionRecord = await this.connectionService.getById(\n this.agentContext,\n credentialExchangeRecord.connectionId\n )\n\n // Assert\n connectionRecord.assertReady()\n\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n const { message } = await protocol.negotiateOffer(this.agentContext, {\n credentialFormats: options.credentialFormats,\n credentialExchangeRecord,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n associatedRecord: credentialExchangeRecord,\n connectionRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Initiate a new credential exchange as issuer by creating a credential offer\n * not bound to any connection. The offer must be delivered out-of-band to the holder\n * @param options The credential options to use for the offer\n * @returns The credential record and credential offer message\n */\n public async createOffer(options: CreateCredentialOfferOptions<CPs>): Promise<{\n message: DidCommMessage\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n }> {\n const protocol = this.getProtocol(options.protocolVersion)\n\n this.logger.debug(`Got a credentialProtocol object for version ${options.protocolVersion}`)\n const { message, credentialExchangeRecord } = await protocol.createOffer(this.agentContext, {\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n this.logger.debug('Offer Message successfully created', { message })\n\n return { message, credentialExchangeRecord }\n }\n\n /**\n * Accept a credential request as holder (by sending a credential request message) to the connection\n * associated with the credential record.\n *\n * @param options The object containing config options of the request\n * @returns DidCommCredentialExchangeRecord updated with information pertaining to this request\n */\n public async acceptRequest(options: AcceptCredentialRequestOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n // with version we can get the Service\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n this.logger.debug(`Got a credentialProtocol object for version ${credentialExchangeRecord.protocolVersion}`)\n\n // Use connection if present\n const connectionRecord = credentialExchangeRecord.connectionId\n ? await this.connectionService.getById(this.agentContext, credentialExchangeRecord.connectionId)\n : undefined\n connectionRecord?.assertReady()\n\n const requestMessage = await protocol.findRequestMessage(this.agentContext, credentialExchangeRecord.id)\n if (!requestMessage) {\n throw new CredoError(`No request message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n const offerMessage = await protocol.findOfferMessage(this.agentContext, credentialExchangeRecord.id)\n if (!offerMessage) {\n throw new CredoError(`No offer message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n\n const { message } = await protocol.acceptRequest(this.agentContext, {\n credentialExchangeRecord,\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n })\n this.logger.debug('We have a credential message (sending outbound): ', message)\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n connectionRecord,\n associatedRecord: credentialExchangeRecord,\n lastReceivedMessage: requestMessage,\n lastSentMessage: offerMessage,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Accept a credential as holder (by sending a credential acknowledgement message) to the connection\n * associated with the credential record.\n *\n * @param credentialExchangeRecordId The id of the credential exchange record for which to accept the credential\n * @returns credential exchange record associated with the sent credential acknowledgement message\n *\n */\n public async acceptCredential(options: AcceptCredentialOptions): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n // with version we can get the Service\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n this.logger.debug(`Got a credentialProtocol object for version ${credentialExchangeRecord.protocolVersion}`)\n\n // Use connection if present\n const connectionRecord = credentialExchangeRecord.connectionId\n ? await this.connectionService.getById(this.agentContext, credentialExchangeRecord.connectionId)\n : undefined\n connectionRecord?.assertReady()\n\n const requestMessage = await protocol.findRequestMessage(this.agentContext, credentialExchangeRecord.id)\n if (!requestMessage) {\n throw new CredoError(`No request message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n const credentialMessage = await protocol.findCredentialMessage(this.agentContext, credentialExchangeRecord.id)\n if (!credentialMessage) {\n throw new CredoError(`No credential message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n\n const { message } = await protocol.acceptCredential(this.agentContext, {\n credentialExchangeRecord,\n })\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n connectionRecord,\n associatedRecord: credentialExchangeRecord,\n lastReceivedMessage: credentialMessage,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Send a revocation notification for a credential exchange record. Currently Revocation Notification V2 protocol is supported\n *\n * @param credentialExchangeRecordId The id of the credential record for which to send revocation notification\n */\n public async sendRevocationNotification(options: SendRevocationNotificationOptions): Promise<void> {\n const { credentialExchangeRecordId, revocationId, revocationFormat, comment, requestAck } = options\n\n const credentialExchangeRecord = await this.getById(credentialExchangeRecordId)\n\n const { message } = await this.revocationNotificationService.v2CreateRevocationNotification({\n credentialId: revocationId,\n revocationFormat,\n comment,\n requestAck,\n })\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n const requestMessage = await protocol.findRequestMessage(this.agentContext, credentialExchangeRecord.id)\n if (!requestMessage) {\n throw new CredoError(`No request message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n\n const offerMessage = await protocol.findOfferMessage(this.agentContext, credentialExchangeRecord.id)\n if (!offerMessage) {\n throw new CredoError(`No offer message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n\n // Use connection if present\n const connectionRecord = credentialExchangeRecord.connectionId\n ? await this.connectionService.getById(this.agentContext, credentialExchangeRecord.connectionId)\n : undefined\n connectionRecord?.assertReady()\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n connectionRecord,\n associatedRecord: credentialExchangeRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n }\n\n /**\n * Send problem report message for a credential record\n * @param credentialExchangeRecordId The id of the credential exchange record for which to send problem report\n * @returns credential record associated with the credential problem report message\n */\n public async sendProblemReport(options: SendCredentialProblemReportOptions) {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n const offerMessage = await protocol.findOfferMessage(this.agentContext, credentialExchangeRecord.id)\n\n const { message: problemReport } = await protocol.createProblemReport(this.agentContext, {\n description: options.description,\n credentialExchangeRecord,\n })\n\n // Use connection if present\n const connectionRecord = credentialExchangeRecord.connectionId\n ? await this.connectionService.getById(this.agentContext, credentialExchangeRecord.connectionId)\n : undefined\n connectionRecord?.assertReady()\n\n // If there's no connection (so connection-less, we require the state to be offer received)\n if (!connectionRecord) {\n credentialExchangeRecord.assertState(DidCommCredentialState.OfferReceived)\n\n if (!offerMessage) {\n throw new CredoError(`No offer message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n }\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message: problemReport,\n connectionRecord,\n associatedRecord: credentialExchangeRecord,\n lastReceivedMessage: offerMessage ?? undefined,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n public async getFormatData(\n credentialRecordId: string\n ): Promise<GetCredentialFormatDataReturn<CredentialFormatsFromProtocols<CPs>>> {\n const credentialExchangeRecord = await this.getById(credentialRecordId)\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n return protocol.getFormatData(this.agentContext, credentialRecordId)\n }\n\n /**\n * Retrieve a credential record by id\n *\n * @param credentialRecordId The credential record id\n * @throws {RecordNotFoundError} If no record is found\n * @return The credential record\n *\n */\n public getById(credentialRecordId: string): Promise<DidCommCredentialExchangeRecord> {\n return this.credentialExchangeRepository.getById(this.agentContext, credentialRecordId)\n }\n\n /**\n * Retrieve all credential records\n *\n * @returns List containing all credential records\n */\n public getAll(): Promise<DidCommCredentialExchangeRecord[]> {\n return this.credentialExchangeRepository.getAll(this.agentContext)\n }\n\n /**\n * Retrieve all credential records by specified query params\n *\n * @returns List containing all credential records matching specified query paramaters\n */\n public findAllByQuery(query: Query<DidCommCredentialExchangeRecord>, queryOptions?: QueryOptions) {\n return this.credentialExchangeRepository.findByQuery(this.agentContext, query, queryOptions)\n }\n\n /**\n * Find a credential record by id\n *\n * @param credentialRecordId the credential record id\n * @returns The credential record or null if not found\n */\n public findById(credentialRecordId: string): Promise<DidCommCredentialExchangeRecord | null> {\n return this.credentialExchangeRepository.findById(this.agentContext, credentialRecordId)\n }\n\n /**\n * Delete a credential record by id, also calls service to delete from wallet\n *\n * @param credentialId the credential record id\n * @param options the delete credential options for the delete operation\n */\n public async deleteById(credentialId: string, options?: DeleteCredentialOptions) {\n const credentialExchangeRecord = await this.getById(credentialId)\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n return protocol.delete(this.agentContext, credentialExchangeRecord, options)\n }\n\n /**\n * Update a credential exchange record\n *\n * @param credentialExchangeRecord the credential exchange record\n */\n public async update(credentialExchangeRecord: DidCommCredentialExchangeRecord): Promise<void> {\n await this.credentialExchangeRepository.update(this.agentContext, credentialExchangeRecord)\n }\n\n public async findProposalMessage(credentialExchangeId: string): Promise<FindCredentialProposalMessageReturn<CPs>> {\n const protocol = await this.getServiceForCredentialExchangeId(credentialExchangeId)\n\n return protocol.findProposalMessage(\n this.agentContext,\n credentialExchangeId\n ) as FindCredentialProposalMessageReturn<CPs>\n }\n\n public async findOfferMessage(credentialExchangeId: string): Promise<FindCredentialOfferMessageReturn<CPs>> {\n const protocol = await this.getServiceForCredentialExchangeId(credentialExchangeId)\n\n return protocol.findOfferMessage(this.agentContext, credentialExchangeId) as FindCredentialOfferMessageReturn<CPs>\n }\n\n public async findRequestMessage(credentialExchangeId: string): Promise<FindCredentialRequestMessageReturn<CPs>> {\n const protocol = await this.getServiceForCredentialExchangeId(credentialExchangeId)\n\n return protocol.findRequestMessage(\n this.agentContext,\n credentialExchangeId\n ) as FindCredentialRequestMessageReturn<CPs>\n }\n\n public async findCredentialMessage(credentialExchangeId: string): Promise<FindCredentialMessageReturn<CPs>> {\n const protocol = await this.getServiceForCredentialExchangeId(credentialExchangeId)\n\n return protocol.findCredentialMessage(this.agentContext, credentialExchangeId) as FindCredentialMessageReturn<CPs>\n }\n\n private async getServiceForCredentialExchangeId(credentialExchangeId: string) {\n const credentialExchangeRecord = await this.getById(credentialExchangeId)\n\n return this.getProtocol(credentialExchangeRecord.protocolVersion)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA6FO,kCAAMA,wBAAqG;CAahH,AAAO,YACL,eACA,mBACA,cACA,AAAiCC,QACjC,8BACA,+BACA,QACA;AACA,OAAK,gBAAgB;AACrB,OAAK,oBAAoB;AACzB,OAAK,+BAA+B;AACpC,OAAK,eAAe;AACpB,OAAK,gCAAgC;AACrC,OAAK,SAAS;AACd,OAAK,SAAS;;CAGhB,AAAQ,YAAgD,iBAAiD;EACvG,MAAM,qBAAqB,KAAK,OAAO,oBAAoB,MAAM,aAAa,SAAS,YAAY,gBAAgB;AAEnH,MAAI,CAAC,mBACH,OAAM,IAAI,WAAW,0DAA0D,kBAAkB;AAGnG,SAAO;;;;;;;;;CAWT,MAAa,kBAAkB,SAAkF;EAC/G,MAAM,WAAW,KAAK,YAAY,QAAQ,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AAM,KAAK,kCAAkC,qBAAqB,EAEnE,sBAAsB,KAAK,cAAc,qBAAqB;;CAGhF,MAAc,kCAAkC,sBAA8B;EAC5E,MAAM,2BAA2B,MAAM,KAAK,QAAQ,qBAAqB;AAEzE,SAAO,KAAK,YAAY,yBAAyB,gBAAgB;;;;CAtmBpE,YAAY;oBAmBR,OAAO,iBAAiB,OAAO"}
1
+ {"version":3,"file":"DidCommCredentialsApi.mjs","names":["DidCommCredentialsApi","logger: Logger"],"sources":["../../../src/modules/credentials/DidCommCredentialsApi.ts"],"sourcesContent":["import type { Query, QueryOptions } from '@credo-ts/core'\nimport { AgentContext, CredoError, InjectionSymbols, inject, injectable, type Logger } from '@credo-ts/core'\nimport { DidCommMessage } from '../../DidCommMessage'\nimport { DidCommMessageSender } from '../../DidCommMessageSender'\nimport { getOutboundDidCommMessageContext } from '../../getDidCommOutboundMessageContext'\nimport { DidCommConnectionService } from '../connections'\nimport type {\n AcceptCredentialOfferOptions,\n AcceptCredentialOptions,\n AcceptCredentialProposalOptions,\n AcceptCredentialRequestOptions,\n CreateCredentialOfferOptions,\n DeclineCredentialOfferOptions,\n DeleteCredentialOptions,\n FindCredentialMessageReturn,\n FindCredentialOfferMessageReturn,\n FindCredentialProposalMessageReturn,\n FindCredentialRequestMessageReturn,\n GetCredentialFormatDataReturn,\n NegotiateCredentialOfferOptions,\n NegotiateCredentialProposalOptions,\n OfferCredentialOptions,\n ProposeCredentialOptions,\n SendCredentialProblemReportOptions,\n SendRevocationNotificationOptions,\n} from './DidCommCredentialsApiOptions'\nimport { DidCommCredentialsModuleConfig } from './DidCommCredentialsModuleConfig'\nimport { DidCommCredentialState } from './models/DidCommCredentialState'\nimport type { DidCommCredentialProtocol } from './protocol/DidCommCredentialProtocol'\nimport type { CredentialFormatsFromProtocols } from './protocol/DidCommCredentialProtocolOptions'\nimport { DidCommRevocationNotificationService } from './protocol/revocation-notification/services'\nimport type { DidCommCredentialExchangeRecord } from './repository/DidCommCredentialExchangeRecord'\nimport { DidCommCredentialExchangeRepository } from './repository/DidCommCredentialExchangeRepository'\n\nexport interface DidCommCredentialsApi<CPs extends DidCommCredentialProtocol[]> {\n // Propose Credential methods\n proposeCredential(options: ProposeCredentialOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n acceptProposal(options: AcceptCredentialProposalOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n negotiateProposal(options: NegotiateCredentialProposalOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n\n // Offer Credential Methods\n offerCredential(options: OfferCredentialOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n acceptOffer(options: AcceptCredentialOfferOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n declineOffer(options: DeclineCredentialOfferOptions): Promise<DidCommCredentialExchangeRecord>\n negotiateOffer(options: NegotiateCredentialOfferOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n\n // Request Credential Methods\n // This is for beginning the exchange with a request (no proposal or offer). Only possible\n // (currently) with W3C. We will not implement this in phase I\n\n // when the issuer accepts the request he issues the credential to the holder\n acceptRequest(options: AcceptCredentialRequestOptions<CPs>): Promise<DidCommCredentialExchangeRecord>\n\n // Issue Credential Methods\n acceptCredential(options: AcceptCredentialOptions): Promise<DidCommCredentialExchangeRecord>\n\n // Revoke Credential Methods\n sendRevocationNotification(options: SendRevocationNotificationOptions): Promise<void>\n\n // out of band\n createOffer(options: CreateCredentialOfferOptions<CPs>): Promise<{\n message: DidCommMessage\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n }>\n\n sendProblemReport(options: SendCredentialProblemReportOptions): Promise<DidCommCredentialExchangeRecord>\n\n // Record Methods\n getAll(): Promise<DidCommCredentialExchangeRecord[]>\n findAllByQuery(\n query: Query<DidCommCredentialExchangeRecord>,\n queryOptions?: QueryOptions\n ): Promise<DidCommCredentialExchangeRecord[]>\n getById(credentialExchangeRecordId: string): Promise<DidCommCredentialExchangeRecord>\n findById(credentialExchangeRecordId: string): Promise<DidCommCredentialExchangeRecord | null>\n deleteById(credentialExchangeRecordId: string, options?: DeleteCredentialOptions): Promise<void>\n update(credentialExchangeRecordId: DidCommCredentialExchangeRecord): Promise<void>\n getFormatData(\n credentialExchangeRecordId: string\n ): Promise<GetCredentialFormatDataReturn<CredentialFormatsFromProtocols<CPs>>>\n\n // DidComm Message Records\n findProposalMessage(credentialExchangeRecordId: string): Promise<FindCredentialProposalMessageReturn<CPs>>\n findOfferMessage(credentialExchangeRecordId: string): Promise<FindCredentialOfferMessageReturn<CPs>>\n findRequestMessage(credentialExchangeRecordId: string): Promise<FindCredentialRequestMessageReturn<CPs>>\n findCredentialMessage(credentialExchangeRecordId: string): Promise<FindCredentialMessageReturn<CPs>>\n}\n\n@injectable()\n// biome-ignore lint/suspicious/noUnsafeDeclarationMerging: no explanation\nexport class DidCommCredentialsApi<CPs extends DidCommCredentialProtocol[]> implements DidCommCredentialsApi<CPs> {\n /**\n * Configuration for the credentials module\n */\n public readonly config: DidCommCredentialsModuleConfig<CPs>\n\n private connectionService: DidCommConnectionService\n private messageSender: DidCommMessageSender\n private credentialExchangeRepository: DidCommCredentialExchangeRepository\n private agentContext: AgentContext\n private revocationNotificationService: DidCommRevocationNotificationService\n private logger: Logger\n\n public constructor(\n messageSender: DidCommMessageSender,\n connectionService: DidCommConnectionService,\n agentContext: AgentContext,\n @inject(InjectionSymbols.Logger) logger: Logger,\n credentialExchangeRepository: DidCommCredentialExchangeRepository,\n revocationNotificationService: DidCommRevocationNotificationService,\n config: DidCommCredentialsModuleConfig<CPs>\n ) {\n this.messageSender = messageSender\n this.connectionService = connectionService\n this.credentialExchangeRepository = credentialExchangeRepository\n this.agentContext = agentContext\n this.revocationNotificationService = revocationNotificationService\n this.logger = logger\n this.config = config\n }\n\n private getProtocol<PVT extends CPs[number]['version']>(protocolVersion: PVT): DidCommCredentialProtocol {\n const credentialProtocol = this.config.credentialProtocols.find((protocol) => protocol.version === protocolVersion)\n\n if (!credentialProtocol) {\n throw new CredoError(`No credential protocol registered for protocol version ${protocolVersion}`)\n }\n\n return credentialProtocol\n }\n\n /**\n * Initiate a new credential exchange as holder by sending a credential proposal message\n * to the connection with the specified connection id.\n *\n * @param options configuration to use for the proposal\n * @returns Credential exchange record associated with the sent proposal message\n */\n\n public async proposeCredential(options: ProposeCredentialOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const protocol = this.getProtocol(options.protocolVersion)\n\n const connectionRecord = await this.connectionService.getById(this.agentContext, options.connectionId)\n\n // Assert\n connectionRecord.assertReady()\n\n // will get back a credential record -> map to Credential Exchange Record\n const { credentialExchangeRecord, message } = await protocol.createProposal(this.agentContext, {\n connectionRecord,\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n associatedRecord: credentialExchangeRecord,\n connectionRecord,\n })\n\n await this.messageSender.sendMessage(outboundMessageContext)\n return credentialExchangeRecord\n }\n\n /**\n * Accept a credential proposal as issuer (by sending a credential offer message) to the connection\n * associated with the credential record.\n *\n * @param options config object for accepting the proposal\n * @returns Credential exchange record associated with the credential offer\n *\n */\n public async acceptProposal(options: AcceptCredentialProposalOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n if (!credentialExchangeRecord.connectionId) {\n throw new CredoError(\n `No connectionId found for credential exchange record '${credentialExchangeRecord.id}'. Connection-less issuance does not support credential proposal or negotiation.`\n )\n }\n\n // with version we can get the protocol\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n const connectionRecord = await this.connectionService.getById(\n this.agentContext,\n credentialExchangeRecord.connectionId\n )\n\n // Assert\n connectionRecord.assertReady()\n\n // will get back a credential record -> map to Credential Exchange Record\n const { message } = await protocol.acceptProposal(this.agentContext, {\n credentialExchangeRecord,\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n // send the message\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n associatedRecord: credentialExchangeRecord,\n connectionRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Negotiate a credential proposal as issuer (by sending a credential offer message) to the connection\n * associated with the credential record.\n *\n * @param options configuration for the offer see {@link NegotiateCredentialProposalOptions}\n * @returns Credential exchange record associated with the credential offer\n *\n */\n public async negotiateProposal(\n options: NegotiateCredentialProposalOptions<CPs>\n ): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n if (!credentialExchangeRecord.connectionId) {\n throw new CredoError(\n `No connection id for credential record ${credentialExchangeRecord.id} not found. Connection-less issuance does not support negotiation`\n )\n }\n\n // with version we can get the Service\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n const { message } = await protocol.negotiateProposal(this.agentContext, {\n credentialExchangeRecord,\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n const connectionRecord = await this.connectionService.getById(\n this.agentContext,\n credentialExchangeRecord.connectionId\n )\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n associatedRecord: credentialExchangeRecord,\n connectionRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Initiate a new credential exchange as issuer by sending a credential offer message\n * to the connection with the specified connection id.\n *\n * @param options config options for the credential offer\n * @returns Credential exchange record associated with the sent credential offer message\n */\n public async offerCredential(options: OfferCredentialOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const connectionRecord = await this.connectionService.getById(this.agentContext, options.connectionId)\n const protocol = this.getProtocol(options.protocolVersion)\n\n this.logger.debug(`Got a credentialProtocol object for version ${options.protocolVersion}`)\n\n const { message, credentialExchangeRecord } = await protocol.createOffer(this.agentContext, {\n credentialFormats: options.credentialFormats,\n autoAcceptCredential: options.autoAcceptCredential,\n comment: options.comment,\n connectionRecord,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n this.logger.debug('Offer Message successfully created; message= ', message)\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n associatedRecord: credentialExchangeRecord,\n connectionRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Accept a credential offer as holder (by sending a credential request message) to the connection\n * associated with the credential record.\n *\n * @param options The object containing config options of the offer to be accepted\n * @returns Object containing offer associated credential record\n */\n public async acceptOffer(options: AcceptCredentialOfferOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n this.logger.debug(`Got a credentialProtocol object for this version; version = ${protocol.version}`)\n const offerMessage = await protocol.findOfferMessage(this.agentContext, credentialExchangeRecord.id)\n if (!offerMessage) {\n throw new CredoError(`No offer message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n\n // Use connection if present\n const connectionRecord = credentialExchangeRecord.connectionId\n ? await this.connectionService.getById(this.agentContext, credentialExchangeRecord.connectionId)\n : undefined\n connectionRecord?.assertReady()\n\n const { message } = await protocol.acceptOffer(this.agentContext, {\n credentialExchangeRecord,\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n connectionRecord,\n associatedRecord: credentialExchangeRecord,\n lastReceivedMessage: offerMessage,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n public async declineOffer(options: DeclineCredentialOfferOptions): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n credentialExchangeRecord.assertState(DidCommCredentialState.OfferReceived)\n\n // with version we can get the Service\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n if (options.sendProblemReport) {\n await this.sendProblemReport({\n credentialExchangeRecordId: options.credentialExchangeRecordId,\n description: options.problemReportDescription ?? 'Offer declined',\n })\n }\n\n await protocol.updateState(this.agentContext, credentialExchangeRecord, DidCommCredentialState.Declined)\n\n return credentialExchangeRecord\n }\n\n public async negotiateOffer(options: NegotiateCredentialOfferOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n if (!credentialExchangeRecord.connectionId) {\n throw new CredoError(\n `No connection id for credential record ${credentialExchangeRecord.id} not found. Connection-less issuance does not support negotiation`\n )\n }\n\n const connectionRecord = await this.connectionService.getById(\n this.agentContext,\n credentialExchangeRecord.connectionId\n )\n\n // Assert\n connectionRecord.assertReady()\n\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n const { message } = await protocol.negotiateOffer(this.agentContext, {\n credentialFormats: options.credentialFormats,\n credentialExchangeRecord,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n associatedRecord: credentialExchangeRecord,\n connectionRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Initiate a new credential exchange as issuer by creating a credential offer\n * not bound to any connection. The offer must be delivered out-of-band to the holder\n * @param options The credential options to use for the offer\n * @returns The credential record and credential offer message\n */\n public async createOffer(options: CreateCredentialOfferOptions<CPs>): Promise<{\n message: DidCommMessage\n credentialExchangeRecord: DidCommCredentialExchangeRecord\n }> {\n const protocol = this.getProtocol(options.protocolVersion)\n\n this.logger.debug(`Got a credentialProtocol object for version ${options.protocolVersion}`)\n const { message, credentialExchangeRecord } = await protocol.createOffer(this.agentContext, {\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n goalCode: options.goalCode,\n goal: options.goal,\n })\n\n this.logger.debug('Offer Message successfully created', { message })\n\n return { message, credentialExchangeRecord }\n }\n\n /**\n * Accept a credential request as holder (by sending a credential request message) to the connection\n * associated with the credential record.\n *\n * @param options The object containing config options of the request\n * @returns DidCommCredentialExchangeRecord updated with information pertaining to this request\n */\n public async acceptRequest(options: AcceptCredentialRequestOptions<CPs>): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n // with version we can get the Service\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n this.logger.debug(`Got a credentialProtocol object for version ${credentialExchangeRecord.protocolVersion}`)\n\n // Use connection if present\n const connectionRecord = credentialExchangeRecord.connectionId\n ? await this.connectionService.getById(this.agentContext, credentialExchangeRecord.connectionId)\n : undefined\n connectionRecord?.assertReady()\n\n const requestMessage = await protocol.findRequestMessage(this.agentContext, credentialExchangeRecord.id)\n if (!requestMessage) {\n throw new CredoError(`No request message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n const offerMessage = await protocol.findOfferMessage(this.agentContext, credentialExchangeRecord.id)\n if (!offerMessage) {\n throw new CredoError(`No offer message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n\n const { message } = await protocol.acceptRequest(this.agentContext, {\n credentialExchangeRecord,\n credentialFormats: options.credentialFormats,\n comment: options.comment,\n autoAcceptCredential: options.autoAcceptCredential,\n })\n this.logger.debug('We have a credential message (sending outbound): ', message)\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n connectionRecord,\n associatedRecord: credentialExchangeRecord,\n lastReceivedMessage: requestMessage,\n lastSentMessage: offerMessage,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Accept a credential as holder (by sending a credential acknowledgement message) to the connection\n * associated with the credential record.\n *\n * @param credentialExchangeRecordId The id of the credential exchange record for which to accept the credential\n * @returns credential exchange record associated with the sent credential acknowledgement message\n *\n */\n public async acceptCredential(options: AcceptCredentialOptions): Promise<DidCommCredentialExchangeRecord> {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n // with version we can get the Service\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n this.logger.debug(`Got a credentialProtocol object for version ${credentialExchangeRecord.protocolVersion}`)\n\n // Use connection if present\n const connectionRecord = credentialExchangeRecord.connectionId\n ? await this.connectionService.getById(this.agentContext, credentialExchangeRecord.connectionId)\n : undefined\n connectionRecord?.assertReady()\n\n const requestMessage = await protocol.findRequestMessage(this.agentContext, credentialExchangeRecord.id)\n if (!requestMessage) {\n throw new CredoError(`No request message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n const credentialMessage = await protocol.findCredentialMessage(this.agentContext, credentialExchangeRecord.id)\n if (!credentialMessage) {\n throw new CredoError(`No credential message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n\n const { message } = await protocol.acceptCredential(this.agentContext, {\n credentialExchangeRecord,\n })\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n connectionRecord,\n associatedRecord: credentialExchangeRecord,\n lastReceivedMessage: credentialMessage,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n /**\n * Send a revocation notification for a credential exchange record. Currently Revocation Notification V2 protocol is supported\n *\n * @param credentialExchangeRecordId The id of the credential record for which to send revocation notification\n */\n public async sendRevocationNotification(options: SendRevocationNotificationOptions): Promise<void> {\n const { credentialExchangeRecordId, revocationId, revocationFormat, comment, requestAck } = options\n\n const credentialExchangeRecord = await this.getById(credentialExchangeRecordId)\n\n const { message } = await this.revocationNotificationService.v2CreateRevocationNotification({\n credentialId: revocationId,\n revocationFormat,\n comment,\n requestAck,\n })\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n const requestMessage = await protocol.findRequestMessage(this.agentContext, credentialExchangeRecord.id)\n if (!requestMessage) {\n throw new CredoError(`No request message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n\n const offerMessage = await protocol.findOfferMessage(this.agentContext, credentialExchangeRecord.id)\n if (!offerMessage) {\n throw new CredoError(`No offer message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n\n // Use connection if present\n const connectionRecord = credentialExchangeRecord.connectionId\n ? await this.connectionService.getById(this.agentContext, credentialExchangeRecord.connectionId)\n : undefined\n connectionRecord?.assertReady()\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message,\n connectionRecord,\n associatedRecord: credentialExchangeRecord,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n }\n\n /**\n * Send problem report message for a credential record\n * @param credentialExchangeRecordId The id of the credential exchange record for which to send problem report\n * @returns credential record associated with the credential problem report message\n */\n public async sendProblemReport(options: SendCredentialProblemReportOptions) {\n const credentialExchangeRecord = await this.getById(options.credentialExchangeRecordId)\n\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n const offerMessage = await protocol.findOfferMessage(this.agentContext, credentialExchangeRecord.id)\n\n const { message: problemReport } = await protocol.createProblemReport(this.agentContext, {\n description: options.description,\n credentialExchangeRecord,\n })\n\n // Use connection if present\n const connectionRecord = credentialExchangeRecord.connectionId\n ? await this.connectionService.getById(this.agentContext, credentialExchangeRecord.connectionId)\n : undefined\n connectionRecord?.assertReady()\n\n // If there's no connection (so connection-less, we require the state to be offer received)\n if (!connectionRecord) {\n credentialExchangeRecord.assertState(DidCommCredentialState.OfferReceived)\n\n if (!offerMessage) {\n throw new CredoError(`No offer message found for credential record with id '${credentialExchangeRecord.id}'`)\n }\n }\n\n const outboundMessageContext = await getOutboundDidCommMessageContext(this.agentContext, {\n message: problemReport,\n connectionRecord,\n associatedRecord: credentialExchangeRecord,\n lastReceivedMessage: offerMessage ?? undefined,\n })\n await this.messageSender.sendMessage(outboundMessageContext)\n\n return credentialExchangeRecord\n }\n\n public async getFormatData(\n credentialRecordId: string\n ): Promise<GetCredentialFormatDataReturn<CredentialFormatsFromProtocols<CPs>>> {\n const credentialExchangeRecord = await this.getById(credentialRecordId)\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n\n return protocol.getFormatData(this.agentContext, credentialRecordId)\n }\n\n /**\n * Retrieve a credential record by id\n *\n * @param credentialRecordId The credential record id\n * @throws {RecordNotFoundError} If no record is found\n * @return The credential record\n *\n */\n public getById(credentialRecordId: string): Promise<DidCommCredentialExchangeRecord> {\n return this.credentialExchangeRepository.getById(this.agentContext, credentialRecordId)\n }\n\n /**\n * Retrieve all credential records\n *\n * @returns List containing all credential records\n */\n public getAll(): Promise<DidCommCredentialExchangeRecord[]> {\n return this.credentialExchangeRepository.getAll(this.agentContext)\n }\n\n /**\n * Retrieve all credential records by specified query params\n *\n * @returns List containing all credential records matching specified query paramaters\n */\n public findAllByQuery(query: Query<DidCommCredentialExchangeRecord>, queryOptions?: QueryOptions) {\n return this.credentialExchangeRepository.findByQuery(this.agentContext, query, queryOptions)\n }\n\n /**\n * Find a credential record by id\n *\n * @param credentialRecordId the credential record id\n * @returns The credential record or null if not found\n */\n public findById(credentialRecordId: string): Promise<DidCommCredentialExchangeRecord | null> {\n return this.credentialExchangeRepository.findById(this.agentContext, credentialRecordId)\n }\n\n /**\n * Delete a credential record by id, also calls service to delete from wallet\n *\n * @param credentialId the credential record id\n * @param options the delete credential options for the delete operation\n */\n public async deleteById(credentialId: string, options?: DeleteCredentialOptions) {\n const credentialExchangeRecord = await this.getById(credentialId)\n const protocol = this.getProtocol(credentialExchangeRecord.protocolVersion)\n return protocol.delete(this.agentContext, credentialExchangeRecord, options)\n }\n\n /**\n * Update a credential exchange record\n *\n * @param credentialExchangeRecord the credential exchange record\n */\n public async update(credentialExchangeRecord: DidCommCredentialExchangeRecord): Promise<void> {\n await this.credentialExchangeRepository.update(this.agentContext, credentialExchangeRecord)\n }\n\n public async findProposalMessage(credentialExchangeId: string): Promise<FindCredentialProposalMessageReturn<CPs>> {\n const protocol = await this.getServiceForCredentialExchangeId(credentialExchangeId)\n\n return protocol.findProposalMessage(\n this.agentContext,\n credentialExchangeId\n ) as FindCredentialProposalMessageReturn<CPs>\n }\n\n public async findOfferMessage(credentialExchangeId: string): Promise<FindCredentialOfferMessageReturn<CPs>> {\n const protocol = await this.getServiceForCredentialExchangeId(credentialExchangeId)\n\n return protocol.findOfferMessage(this.agentContext, credentialExchangeId) as FindCredentialOfferMessageReturn<CPs>\n }\n\n public async findRequestMessage(credentialExchangeId: string): Promise<FindCredentialRequestMessageReturn<CPs>> {\n const protocol = await this.getServiceForCredentialExchangeId(credentialExchangeId)\n\n return protocol.findRequestMessage(\n this.agentContext,\n credentialExchangeId\n ) as FindCredentialRequestMessageReturn<CPs>\n }\n\n public async findCredentialMessage(credentialExchangeId: string): Promise<FindCredentialMessageReturn<CPs>> {\n const protocol = await this.getServiceForCredentialExchangeId(credentialExchangeId)\n\n return protocol.findCredentialMessage(this.agentContext, credentialExchangeId) as FindCredentialMessageReturn<CPs>\n }\n\n private async getServiceForCredentialExchangeId(credentialExchangeId: string) {\n const credentialExchangeRecord = await this.getById(credentialExchangeId)\n\n return this.getProtocol(credentialExchangeRecord.protocolVersion)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA0FO,kCAAMA,wBAAqG;CAahH,AAAO,YACL,eACA,mBACA,cACA,AAAiCC,QACjC,8BACA,+BACA,QACA;AACA,OAAK,gBAAgB;AACrB,OAAK,oBAAoB;AACzB,OAAK,+BAA+B;AACpC,OAAK,eAAe;AACpB,OAAK,gCAAgC;AACrC,OAAK,SAAS;AACd,OAAK,SAAS;;CAGhB,AAAQ,YAAgD,iBAAiD;EACvG,MAAM,qBAAqB,KAAK,OAAO,oBAAoB,MAAM,aAAa,SAAS,YAAY,gBAAgB;AAEnH,MAAI,CAAC,mBACH,OAAM,IAAI,WAA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iB,MAAM,KAAK,kCAAkC,qBAAqB,EAEnE,mBACd,KAAK,cACL,qBACD;;CAGH,MAAa,sBAAsB,sBAAyE;AAG1G,UAFiB,MAAM,KAAK,kCAAkC,qBAAqB,EAEnE,sBAAsB,KAAK,cAAc,qBAAqB;;CAGhF,MAAc,kCAAkC,sBAA8B;EAC5E,MAAM,2BAA2B,MAAM,KAAK,QAAQ,qBAAqB;AAEzE,SAAO,KAAK,YAAY,yBAAyB,gBAAgB;;;;CAtmBpE,YAAY;oBAmBR,OAAO,iBAAiB,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommCredentialsModule.d.mts","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModule.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAqBA;AAGA;AAA2C,KAH/B,iCAAA,GAG+B,CAHM,2BAGN,CAAA,EAAA,CAAA,CAAA;AAA6B,KAA5D,+BAA4D,CAAA,4BAAA,yBAAA,EAAA,CAAA,GAA+B,QAA/B,CACtE,qCADsE,CAChC,mBADgC,CAAA,EAAA,qBAAA,CAAA;AAChC,cAI3B,wBAJ2B,CAAA,4BAKV,yBALU,EAAA,GAKoB,iCALpB,CAAA,YAM3B,SAN2B,CAAA;WAAtC,MAAA,EAQwB,8BARxB,CAQuD,mBARvD,CAAA;WADqG,GAAA,EAYhF,WAZgF,CAYpE,qBAZoE,CAY9C,mBAZ8C,CAAA,CAAA;EAAQ,WAAA,CAAA,MAAA,CAAA,EAcjF,+BAdiF,CAcjD,mBAdiD,CAAA;EAKlG;;;UAC+C,CAAA,iBAAA,EAoBvB,iBApBuB,CAAA,EAAA,IAAA;YAGH,CAAA,YAAA,EA4BjB,YA5BiB,CAAA,EA4BF,OA5BE,CAAA,IAAA,CAAA"}
1
+ {"version":3,"file":"DidCommCredentialsModule.d.mts","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModule.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAmBA;AAGA;AAA2C,KAH/B,iCAAA,GAG+B,CAHM,2BAGN,CAAA,EAAA,CAAA,CAAA;AAA6B,KAA5D,+BAA4D,CAAA,4BAAA,yBAAA,EAAA,CAAA,GAA+B,QAA/B,CACtE,qCADsE,CAChC,mBADgC,CAAA,EAAA,qBAAA,CAAA;AAChC,cAI3B,wBAJ2B,CAAA,4BAKV,yBALU,EAAA,GAKoB,iCALpB,CAAA,YAM3B,SAN2B,CAAA;WAAtC,MAAA,EAQwB,8BARxB,CAQuD,mBARvD,CAAA;WADqG,GAAA,EAYhF,WAZgF,CAYpE,qBAZoE,CAY9C,mBAZ8C,CAAA,CAAA;EAAQ,WAAA,CAAA,MAAA,CAAA,EAcjF,+BAdiF,CAcjD,mBAdiD,CAAA;EAKlG;;;UAC+C,CAAA,iBAAA,EAoBvB,iBApBuB,CAAA,EAAA,IAAA;YAGH,CAAA,YAAA,EA4BjB,YA5BiB,CAAA,EA4BF,OA5BE,CAAA,IAAA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommCredentialsModule.d.ts","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModule.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAqBA;AAGA;AAA2C,KAH/B,iCAAA,GAG+B,CAHM,2BAGN,CAAA,EAAA,CAAA,CAAA;AAA6B,KAA5D,+BAA4D,CAAA,4BAAA,yBAAA,EAAA,CAAA,GAA+B,QAA/B,CACtE,qCADsE,CAChC,mBADgC,CAAA,EAAA,qBAAA,CAAA;AAChC,cAI3B,wBAJ2B,CAAA,4BAKV,yBALU,EAAA,GAKoB,iCALpB,CAAA,YAM3B,SAN2B,CAAA;WAAtC,MAAA,EAQwB,8BARxB,CAQuD,mBARvD,CAAA;WADqG,GAAA,EAYhF,WAZgF,CAYpE,qBAZoE,CAY9C,mBAZ8C,CAAA,CAAA;EAAQ,WAAA,CAAA,MAAA,CAAA,EAcjF,+BAdiF,CAcjD,mBAdiD,CAAA;EAKlG;;;UAC+C,CAAA,iBAAA,EAoBvB,iBApBuB,CAAA,EAAA,IAAA;YAGH,CAAA,YAAA,EA4BjB,YA5BiB,CAAA,EA4BF,OA5BE,CAAA,IAAA,CAAA"}
1
+ {"version":3,"file":"DidCommCredentialsModule.d.ts","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModule.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAmBA;AAGA;AAA2C,KAH/B,iCAAA,GAG+B,CAHM,2BAGN,CAAA,EAAA,CAAA,CAAA;AAA6B,KAA5D,+BAA4D,CAAA,4BAAA,yBAAA,EAAA,CAAA,GAA+B,QAA/B,CACtE,qCADsE,CAChC,mBADgC,CAAA,EAAA,qBAAA,CAAA;AAChC,cAI3B,wBAJ2B,CAAA,4BAKV,yBALU,EAAA,GAKoB,iCALpB,CAAA,YAM3B,SAN2B,CAAA;WAAtC,MAAA,EAQwB,8BARxB,CAQuD,mBARvD,CAAA;WADqG,GAAA,EAYhF,WAZgF,CAYpE,qBAZoE,CAY9C,mBAZ8C,CAAA,CAAA;EAAQ,WAAA,CAAA,MAAA,CAAA,EAcjF,+BAdiF,CAcjD,mBAdiD,CAAA;EAKlG;;;UAC+C,CAAA,iBAAA,EAoBvB,iBApBuB,CAAA,EAAA,IAAA;YAGH,CAAA,YAAA,EA4BjB,YA5BiB,CAAA,EA4BF,OA5BE,CAAA,IAAA,CAAA"}
@@ -1,7 +1,7 @@
1
- const require_DidCommProtocol = require('../../models/features/DidCommProtocol.js');
2
- require('../../models/index.js');
3
1
  const require_DidCommFeatureRegistry = require('../../DidCommFeatureRegistry.js');
4
2
  const require_DidCommMessageHandlerRegistry = require('../../DidCommMessageHandlerRegistry.js');
3
+ const require_DidCommProtocol = require('../../models/features/DidCommProtocol.js');
4
+ require('../../models/index.js');
5
5
  const require_DidCommCredentialsModuleConfig = require('./DidCommCredentialsModuleConfig.js');
6
6
  const require_DidCommCredentialExchangeRepository = require('./repository/DidCommCredentialExchangeRepository.js');
7
7
  require('./repository/index.js');
@@ -1,7 +1,7 @@
1
- import { DidCommProtocol } from "../../models/features/DidCommProtocol.mjs";
2
- import "../../models/index.mjs";
3
1
  import { DidCommFeatureRegistry } from "../../DidCommFeatureRegistry.mjs";
4
2
  import { DidCommMessageHandlerRegistry } from "../../DidCommMessageHandlerRegistry.mjs";
3
+ import { DidCommProtocol } from "../../models/features/DidCommProtocol.mjs";
4
+ import "../../models/index.mjs";
5
5
  import { DidCommCredentialsModuleConfig } from "./DidCommCredentialsModuleConfig.mjs";
6
6
  import { DidCommCredentialExchangeRepository } from "./repository/DidCommCredentialExchangeRepository.mjs";
7
7
  import "./repository/index.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommCredentialsModule.mjs","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModule.ts"],"sourcesContent":["import type { AgentContext, ApiModule, Constructor, DependencyManager, Optional } from '@credo-ts/core'\nimport type { DidCommCredentialsModuleConfigOptions } from './DidCommCredentialsModuleConfig'\nimport type { DidCommCredentialProtocol } from './protocol/DidCommCredentialProtocol'\n\nimport { DidCommFeatureRegistry } from '../../DidCommFeatureRegistry'\nimport { DidCommMessageHandlerRegistry } from '../../DidCommMessageHandlerRegistry'\nimport { DidCommProtocol } from '../../models'\n\nimport { DidCommCredentialsApi } from './DidCommCredentialsApi'\nimport { DidCommCredentialsModuleConfig } from './DidCommCredentialsModuleConfig'\nimport {\n DidCommRevocationNotificationV1Handler,\n DidCommRevocationNotificationV2Handler,\n} from './protocol/revocation-notification/handlers'\nimport { DidCommRevocationNotificationService } from './protocol/revocation-notification/services'\nimport { DidCommCredentialV2Protocol } from './protocol/v2'\nimport { DidCommCredentialExchangeRepository } from './repository'\n\n/**\n * Default credentialProtocols that will be registered if the `credentialProtocols` property is not configured.\n */\nexport type DefaultDidCommCredentialProtocols = [DidCommCredentialV2Protocol<[]>]\n\n// CredentialsModuleOptions makes the credentialProtocols property optional from the config, as it will set it when not provided.\nexport type DidCommCredentialsModuleOptions<CredentialProtocols extends DidCommCredentialProtocol[]> = Optional<\n DidCommCredentialsModuleConfigOptions<CredentialProtocols>,\n 'credentialProtocols'\n>\n\nexport class DidCommCredentialsModule<\n CredentialProtocols extends DidCommCredentialProtocol[] = DefaultDidCommCredentialProtocols,\n> implements ApiModule\n{\n public readonly config: DidCommCredentialsModuleConfig<CredentialProtocols>\n\n // Infer Api type from the config\n public readonly api: Constructor<DidCommCredentialsApi<CredentialProtocols>> = DidCommCredentialsApi\n\n public constructor(config?: DidCommCredentialsModuleOptions<CredentialProtocols>) {\n this.config = new DidCommCredentialsModuleConfig({\n ...config,\n // NOTE: the credentialProtocols defaults are set in the CredentialsModule rather than the CredentialsModuleConfig to\n // avoid dependency cycles.\n credentialProtocols: config?.credentialProtocols ?? [new DidCommCredentialV2Protocol({ credentialFormats: [] })],\n }) as DidCommCredentialsModuleConfig<CredentialProtocols>\n }\n\n /**\n * Registers the dependencies of the credentials module on the dependency manager.\n */\n public register(dependencyManager: DependencyManager) {\n // Config\n dependencyManager.registerInstance(DidCommCredentialsModuleConfig, this.config)\n\n // Services\n dependencyManager.registerSingleton(DidCommRevocationNotificationService)\n\n // Repositories\n dependencyManager.registerSingleton(DidCommCredentialExchangeRepository)\n }\n\n public async initialize(agentContext: AgentContext): Promise<void> {\n const messageHandlerRegistry = agentContext.dependencyManager.resolve(DidCommMessageHandlerRegistry)\n const featureRegistry = agentContext.dependencyManager.resolve(DidCommFeatureRegistry)\n\n const revocationNotificationService = agentContext.resolve(DidCommRevocationNotificationService)\n\n messageHandlerRegistry.registerMessageHandler(\n new DidCommRevocationNotificationV1Handler(revocationNotificationService)\n )\n messageHandlerRegistry.registerMessageHandler(\n new DidCommRevocationNotificationV2Handler(revocationNotificationService)\n )\n\n featureRegistry.register(\n new DidCommProtocol({\n id: 'https://didcomm.org/revocation_notification/1.0',\n roles: ['holder'],\n }),\n new DidCommProtocol({\n id: 'https://didcomm.org/revocation_notification/2.0',\n roles: ['holder'],\n })\n )\n\n // Protocol needs to register feature registry items and handlers\n for (const credentialProtocol of this.config.credentialProtocols) {\n credentialProtocol.register(messageHandlerRegistry, featureRegistry)\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA6BA,IAAa,2BAAb,MAGA;CAME,AAAO,YAAY,QAA+D;OAFlE,MAA+D;AAG7E,OAAK,SAAS,IAAI,+BAA+B;GAC/C,GAAG;GAGH,qBAAqB,QAAQ,uBAAuB,CAAC,IAAI,4BAA4B,EAAE,mBAAmB,EAAE,EAAE,CAAC,CAAC;GACjH,CAAC;;;;;CAMJ,AAAO,SAAS,mBAAsC;AAEpD,oBAAkB,iBAAiB,gCAAgC,KAAK,OAAO;AAG/E,oBAAkB,kBAAkB,qCAAqC;AAGzE,oBAAkB,kBAAkB,oCAAoC;;CAG1E,MAAa,WAAW,cAA2C;EACjE,MAAM,yBAAyB,aAAa,kBAAkB,QAAQ,8BAA8B;EACpG,MAAM,kBAAkB,aAAa,kBAAkB,QAAQ,uBAAuB;EAEtF,MAAM,gCAAgC,aAAa,QAAQ,qCAAqC;AAEhG,yBAAuB,uBACrB,IAAI,uCAAuC,8BAA8B,CAC1E;AACD,yBAAuB,uBACrB,IAAI,uCAAuC,8BAA8B,CAC1E;AAED,kBAAgB,SACd,IAAI,gBAAgB;GAClB,IAAI;GACJ,OAAO,CAAC,SAAS;GAClB,CAAC,EACF,IAAI,gBAAgB;GAClB,IAAI;GACJ,OAAO,CAAC,SAAS;GAClB,CAAC,CACH;AAGD,OAAK,MAAM,sBAAsB,KAAK,OAAO,oBAC3C,oBAAmB,SAAS,wBAAwB,gBAAgB"}
1
+ {"version":3,"file":"DidCommCredentialsModule.mjs","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModule.ts"],"sourcesContent":["import type { AgentContext, ApiModule, Constructor, DependencyManager, Optional } from '@credo-ts/core'\nimport { DidCommFeatureRegistry } from '../../DidCommFeatureRegistry'\nimport { DidCommMessageHandlerRegistry } from '../../DidCommMessageHandlerRegistry'\nimport { DidCommProtocol } from '../../models'\nimport { DidCommCredentialsApi } from './DidCommCredentialsApi'\nimport type { DidCommCredentialsModuleConfigOptions } from './DidCommCredentialsModuleConfig'\nimport { DidCommCredentialsModuleConfig } from './DidCommCredentialsModuleConfig'\nimport type { DidCommCredentialProtocol } from './protocol/DidCommCredentialProtocol'\nimport {\n DidCommRevocationNotificationV1Handler,\n DidCommRevocationNotificationV2Handler,\n} from './protocol/revocation-notification/handlers'\nimport { DidCommRevocationNotificationService } from './protocol/revocation-notification/services'\nimport { DidCommCredentialV2Protocol } from './protocol/v2'\nimport { DidCommCredentialExchangeRepository } from './repository'\n\n/**\n * Default credentialProtocols that will be registered if the `credentialProtocols` property is not configured.\n */\nexport type DefaultDidCommCredentialProtocols = [DidCommCredentialV2Protocol<[]>]\n\n// CredentialsModuleOptions makes the credentialProtocols property optional from the config, as it will set it when not provided.\nexport type DidCommCredentialsModuleOptions<CredentialProtocols extends DidCommCredentialProtocol[]> = Optional<\n DidCommCredentialsModuleConfigOptions<CredentialProtocols>,\n 'credentialProtocols'\n>\n\nexport class DidCommCredentialsModule<\n CredentialProtocols extends DidCommCredentialProtocol[] = DefaultDidCommCredentialProtocols,\n> implements ApiModule\n{\n public readonly config: DidCommCredentialsModuleConfig<CredentialProtocols>\n\n // Infer Api type from the config\n public readonly api: Constructor<DidCommCredentialsApi<CredentialProtocols>> = DidCommCredentialsApi\n\n public constructor(config?: DidCommCredentialsModuleOptions<CredentialProtocols>) {\n this.config = new DidCommCredentialsModuleConfig({\n ...config,\n // NOTE: the credentialProtocols defaults are set in the CredentialsModule rather than the CredentialsModuleConfig to\n // avoid dependency cycles.\n credentialProtocols: config?.credentialProtocols ?? [new DidCommCredentialV2Protocol({ credentialFormats: [] })],\n }) as DidCommCredentialsModuleConfig<CredentialProtocols>\n }\n\n /**\n * Registers the dependencies of the credentials module on the dependency manager.\n */\n public register(dependencyManager: DependencyManager) {\n // Config\n dependencyManager.registerInstance(DidCommCredentialsModuleConfig, this.config)\n\n // Services\n dependencyManager.registerSingleton(DidCommRevocationNotificationService)\n\n // Repositories\n dependencyManager.registerSingleton(DidCommCredentialExchangeRepository)\n }\n\n public async initialize(agentContext: AgentContext): Promise<void> {\n const messageHandlerRegistry = agentContext.dependencyManager.resolve(DidCommMessageHandlerRegistry)\n const featureRegistry = agentContext.dependencyManager.resolve(DidCommFeatureRegistry)\n\n const revocationNotificationService = agentContext.resolve(DidCommRevocationNotificationService)\n\n messageHandlerRegistry.registerMessageHandler(\n new DidCommRevocationNotificationV1Handler(revocationNotificationService)\n )\n messageHandlerRegistry.registerMessageHandler(\n new DidCommRevocationNotificationV2Handler(revocationNotificationService)\n )\n\n featureRegistry.register(\n new DidCommProtocol({\n id: 'https://didcomm.org/revocation_notification/1.0',\n roles: ['holder'],\n }),\n new DidCommProtocol({\n id: 'https://didcomm.org/revocation_notification/2.0',\n roles: ['holder'],\n })\n )\n\n // Protocol needs to register feature registry items and handlers\n for (const credentialProtocol of this.config.credentialProtocols) {\n credentialProtocol.register(messageHandlerRegistry, featureRegistry)\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA2BA,IAAa,2BAAb,MAGA;CAME,AAAO,YAAY,QAA+D;OAFlE,MAA+D;AAG7E,OAAK,SAAS,IAAI,+BAA+B;GAC/C,GAAG;GAGH,qBAAqB,QAAQ,uBAAuB,CAAC,IAAI,4BAA4B,EAAE,mBAAmB,EAAE,EAAE,CAAC,CAAC;GACjH,CAAC;;;;;CAMJ,AAAO,SAAS,mBAAsC;AAEpD,oBAAkB,iBAAiB,gCAAgC,KAAK,OAAO;AAG/E,oBAAkB,kBAAkB,qCAAqC;AAGzE,oBAAkB,kBAAkB,oCAAoC;;CAG1E,MAAa,WAAW,cAA2C;EACjE,MAAM,yBAAyB,aAAa,kBAAkB,QAAQ,8BAA8B;EACpG,MAAM,kBAAkB,aAAa,kBAAkB,QAAQ,uBAAuB;EAEtF,MAAM,gCAAgC,aAAa,QAAQ,qCAAqC;AAEhG,yBAAuB,uBACrB,IAAI,uCAAuC,8BAA8B,CAC1E;AACD,yBAAuB,uBACrB,IAAI,uCAAuC,8BAA8B,CAC1E;AAED,kBAAgB,SACd,IAAI,gBAAgB;GAClB,IAAI;GACJ,OAAO,CAAC,SAAS;GAClB,CAAC,EACF,IAAI,gBAAgB;GAClB,IAAI;GACJ,OAAO,CAAC,SAAS;GAClB,CAAC,CACH;AAGD,OAAK,MAAM,sBAAsB,KAAK,OAAO,oBAC3C,oBAAmB,SAAS,wBAAwB,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommCredentialsModuleConfig.d.mts","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModuleConfig.ts"],"sourcesContent":[],"mappings":";;;;;;;AAQA;;AAAmF,UAAlE,qCAAkE,CAAA,4BAAA,yBAAA,EAAA,CAAA,CAAA;;;;AAsBnF;;uBAAwE,CAAA,EAhB9C,2BAgB8C;;;;;;;;;;;;uBAHjD;;cAGV,2DAA2D;;uBAG1C,sCAAsC;;+BAKlC;;6BAKF"}
1
+ {"version":3,"file":"DidCommCredentialsModuleConfig.d.mts","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModuleConfig.ts"],"sourcesContent":[],"mappings":";;;;;;;AAOA;;AAAmF,UAAlE,qCAAkE,CAAA,4BAAA,yBAAA,EAAA,CAAA,CAAA;;;;AAsBnF;;uBAAwE,CAAA,EAhB9C,2BAgB8C;;;;;;;;;;;;uBAHjD;;cAGV,2DAA2D;;uBAG1C,sCAAsC;;+BAKlC;;6BAKF"}
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommCredentialsModuleConfig.d.ts","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModuleConfig.ts"],"sourcesContent":[],"mappings":";;;;;;;AAQA;;AAAmF,UAAlE,qCAAkE,CAAA,4BAAA,yBAAA,EAAA,CAAA,CAAA;;;;AAsBnF;;uBAAwE,CAAA,EAhB9C,2BAgB8C;;;;;;;;;;;;uBAHjD;;cAGV,2DAA2D;;uBAG1C,sCAAsC;;+BAKlC;;6BAKF"}
1
+ {"version":3,"file":"DidCommCredentialsModuleConfig.d.ts","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModuleConfig.ts"],"sourcesContent":[],"mappings":";;;;;;;AAOA;;AAAmF,UAAlE,qCAAkE,CAAA,4BAAA,yBAAA,EAAA,CAAA,CAAA;;;;AAsBnF;;uBAAwE,CAAA,EAhB9C,2BAgB8C;;;;;;;;;;;;uBAHjD;;cAGV,2DAA2D;;uBAG1C,sCAAsC;;+BAKlC;;6BAKF"}
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommCredentialsModuleConfig.mjs","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModuleConfig.ts"],"sourcesContent":["import type { DidCommCredentialProtocol } from './protocol/DidCommCredentialProtocol'\n\nimport { DidCommAutoAcceptCredential } from './models'\n\n/**\n * CredentialsModuleConfigOptions defines the interface for the options of the CredentialsModuleConfig class.\n * This can contain optional parameters that have default values in the config class itself.\n */\nexport interface DidCommCredentialsModuleConfigOptions<CredentialProtocols extends DidCommCredentialProtocol[]> {\n /**\n * Whether to automatically accept credential messages. Applies to all issue credential protocol versions.\n *\n * @default {@link DidCommAutoAcceptCredential.Never}\n */\n autoAcceptCredentials?: DidCommAutoAcceptCredential\n\n /**\n * Credential protocols to make available to the credentials module. Only one credential protocol should be registered for each credential\n * protocol version.\n *\n * When not provided, the `DidCommCredentialV2Protocol` is registered by default.\n *\n * @default\n * ```\n * [DidCommCredentialV2Protocol]\n * ```\n */\n credentialProtocols: CredentialProtocols\n}\n\nexport class DidCommCredentialsModuleConfig<CredentialProtocols extends DidCommCredentialProtocol[]> {\n private options: DidCommCredentialsModuleConfigOptions<CredentialProtocols>\n\n public constructor(options: DidCommCredentialsModuleConfigOptions<CredentialProtocols>) {\n this.options = options\n }\n\n /** See {@link DidCommCredentialsModuleConfigOptions.autoAcceptCredentials} */\n public get autoAcceptCredentials() {\n return this.options.autoAcceptCredentials ?? DidCommAutoAcceptCredential.Never\n }\n\n /** See {@link DidCommCredentialsModuleConfigOptions.credentialProtocols} */\n public get credentialProtocols() {\n return this.options.credentialProtocols\n }\n}\n"],"mappings":";;;;AA8BA,IAAa,iCAAb,MAAqG;CAGnG,AAAO,YAAY,SAAqE;AACtF,OAAK,UAAU;;;CAIjB,IAAW,wBAAwB;AACjC,SAAO,KAAK,QAAQ,yBAAyB,4BAA4B;;;CAI3E,IAAW,sBAAsB;AAC/B,SAAO,KAAK,QAAQ"}
1
+ {"version":3,"file":"DidCommCredentialsModuleConfig.mjs","names":[],"sources":["../../../src/modules/credentials/DidCommCredentialsModuleConfig.ts"],"sourcesContent":["import { DidCommAutoAcceptCredential } from './models'\nimport type { DidCommCredentialProtocol } from './protocol/DidCommCredentialProtocol'\n\n/**\n * CredentialsModuleConfigOptions defines the interface for the options of the CredentialsModuleConfig class.\n * This can contain optional parameters that have default values in the config class itself.\n */\nexport interface DidCommCredentialsModuleConfigOptions<CredentialProtocols extends DidCommCredentialProtocol[]> {\n /**\n * Whether to automatically accept credential messages. Applies to all issue credential protocol versions.\n *\n * @default {@link DidCommAutoAcceptCredential.Never}\n */\n autoAcceptCredentials?: DidCommAutoAcceptCredential\n\n /**\n * Credential protocols to make available to the credentials module. Only one credential protocol should be registered for each credential\n * protocol version.\n *\n * When not provided, the `DidCommCredentialV2Protocol` is registered by default.\n *\n * @default\n * ```\n * [DidCommCredentialV2Protocol]\n * ```\n */\n credentialProtocols: CredentialProtocols\n}\n\nexport class DidCommCredentialsModuleConfig<CredentialProtocols extends DidCommCredentialProtocol[]> {\n private options: DidCommCredentialsModuleConfigOptions<CredentialProtocols>\n\n public constructor(options: DidCommCredentialsModuleConfigOptions<CredentialProtocols>) {\n this.options = options\n }\n\n /** See {@link DidCommCredentialsModuleConfigOptions.autoAcceptCredentials} */\n public get autoAcceptCredentials() {\n return this.options.autoAcceptCredentials ?? DidCommAutoAcceptCredential.Never\n }\n\n /** See {@link DidCommCredentialsModuleConfigOptions.credentialProtocols} */\n public get credentialProtocols() {\n return this.options.credentialProtocols\n }\n}\n"],"mappings":";;;;AA6BA,IAAa,iCAAb,MAAqG;CAGnG,AAAO,YAAY,SAAqE;AACtF,OAAK,UAAU;;;CAIjB,IAAW,wBAAwB;AACjC,SAAO,KAAK,QAAQ,yBAAyB,4BAA4B;;;CAI3E,IAAW,sBAAsB;AAC/B,SAAO,KAAK,QAAQ"}
@@ -1,6 +1,6 @@
1
1
  import { DidCommAttachment } from "../../../decorators/attachment/DidCommAttachment.mjs";
2
- import { DidCommCredentialPreviewAttributeOptions } from "../models/DidCommCredentialPreviewAttribute.mjs";
3
2
  import { DidCommCredentialFormatSpec } from "../models/DidCommCredentialFormatSpec.mjs";
3
+ import { DidCommCredentialPreviewAttributeOptions } from "../models/DidCommCredentialPreviewAttribute.mjs";
4
4
  import { DidCommCredentialExchangeRecord } from "../repository/DidCommCredentialExchangeRecord.mjs";
5
5
  import { DidCommCredentialFormat, DidCommCredentialFormatPayload } from "./DidCommCredentialFormat.mjs";
6
6
  import { DidCommCredentialFormatService } from "./DidCommCredentialFormatService.mjs";
@@ -1,6 +1,6 @@
1
1
  import { DidCommAttachment } from "../../../decorators/attachment/DidCommAttachment.js";
2
- import { DidCommCredentialPreviewAttributeOptions } from "../models/DidCommCredentialPreviewAttribute.js";
3
2
  import { DidCommCredentialFormatSpec } from "../models/DidCommCredentialFormatSpec.js";
3
+ import { DidCommCredentialPreviewAttributeOptions } from "../models/DidCommCredentialPreviewAttribute.js";
4
4
  import { DidCommCredentialExchangeRecord } from "../repository/DidCommCredentialExchangeRecord.js";
5
5
  import { DidCommCredentialFormat, DidCommCredentialFormatPayload } from "./DidCommCredentialFormat.js";
6
6
  import { DidCommCredentialFormatService } from "./DidCommCredentialFormatService.js";
@@ -1,12 +1,12 @@
1
1
  const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
2
- const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
3
2
  const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
3
+ const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
4
4
  let __credo_ts_core = require("@credo-ts/core");
5
5
  __credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
6
- let class_transformer = require("class-transformer");
7
- class_transformer = require_rolldown_runtime.__toESM(class_transformer);
8
6
  let class_validator = require("class-validator");
9
7
  class_validator = require_rolldown_runtime.__toESM(class_validator);
8
+ let class_transformer = require("class-transformer");
9
+ class_transformer = require_rolldown_runtime.__toESM(class_transformer);
10
10
 
11
11
  //#region src/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.ts
12
12
  var _ref, _ref2, _ref3, _ref4;
@@ -1,8 +1,8 @@
1
- import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
2
1
  import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
2
+ import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
3
3
  import { JsonTransformer, W3cCredential } from "@credo-ts/core";
4
- import { Expose, Type } from "class-transformer";
5
4
  import { ArrayNotEmpty, IsBoolean, IsEnum, IsOptional, IsString, ValidateNested } from "class-validator";
5
+ import { Expose, Type } from "class-transformer";
6
6
 
7
7
  //#region src/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.ts
8
8
  var _ref, _ref2, _ref3, _ref4;
@@ -1,6 +1,6 @@
1
+ const require_dataIntegrityExchange = require('./dataIntegrity/dataIntegrityExchange.js');
2
+ require('./dataIntegrity/index.js');
1
3
  const require_DidCommJsonLdCredentialDetailOptions = require('./jsonld/DidCommJsonLdCredentialDetailOptions.js');
2
4
  const require_DidCommJsonLdCredentialDetail = require('./jsonld/DidCommJsonLdCredentialDetail.js');
3
5
  const require_DidCommJsonLdCredentialFormatService = require('./jsonld/DidCommJsonLdCredentialFormatService.js');
4
6
  require('./jsonld/index.js');
5
- const require_dataIntegrityExchange = require('./dataIntegrity/dataIntegrityExchange.js');
6
- require('./dataIntegrity/index.js');
@@ -1,6 +1,6 @@
1
+ import { AnonCredsLinkSecretBindingMethod, DataIntegrityBindingMethods, DataIntegrityCredentialOffer, DidCommSignedAttachmentBindingMethod } from "./dataIntegrity/dataIntegrityExchange.mjs";
2
+ import "./dataIntegrity/index.mjs";
1
3
  import { DidCommJsonLdCredentialDetailCredentialStatus, DidCommJsonLdCredentialDetailOptions } from "./jsonld/DidCommJsonLdCredentialDetailOptions.mjs";
2
4
  import { DidCommJsonLdCredentialDetail } from "./jsonld/DidCommJsonLdCredentialDetail.mjs";
3
5
  import { DidCommJsonLdCredentialFormatService } from "./jsonld/DidCommJsonLdCredentialFormatService.mjs";
4
6
  import "./jsonld/index.mjs";
5
- import { AnonCredsLinkSecretBindingMethod, DataIntegrityBindingMethods, DataIntegrityCredentialOffer, DidCommSignedAttachmentBindingMethod } from "./dataIntegrity/dataIntegrityExchange.mjs";
6
- import "./dataIntegrity/index.mjs";
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
2
- const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
3
2
  const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
3
+ const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
4
4
  const require_DidCommJsonLdCredentialDetailOptions = require('./DidCommJsonLdCredentialDetailOptions.js');
5
5
  let __credo_ts_core = require("@credo-ts/core");
6
6
  __credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
2
1
  import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
2
+ import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
3
3
  import { DidCommJsonLdCredentialDetailOptions } from "./DidCommJsonLdCredentialDetailOptions.mjs";
4
4
  import { W3cCredential } from "@credo-ts/core";
5
5
  import { Expose, Type } from "class-transformer";
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
2
- const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
3
2
  const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
3
+ const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
4
4
  let class_validator = require("class-validator");
5
5
  class_validator = require_rolldown_runtime.__toESM(class_validator);
6
6
 
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
2
1
  import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
2
+ import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
3
3
  import { IsObject, IsOptional, IsString } from "class-validator";
4
4
 
5
5
  //#region src/modules/credentials/formats/jsonld/DidCommJsonLdCredentialDetailOptions.ts