@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":"DidCommOutOfBandService.mjs","names":["DidCommOutOfBandService"],"sources":["../../../src/modules/oob/DidCommOutOfBandService.ts"],"sourcesContent":["import type { AgentContext, Kms, Query, QueryOptions } from '@credo-ts/core'\nimport type { DidCommInboundMessageContext } from '../../models'\nimport type { DidCommConnectionRecord, DidCommHandshakeProtocol } from '../connections'\nimport type { OutOfBandDidCommService } from './domain'\nimport type { DidCommHandshakeReusedEvent, DidCommOutOfBandStateChangedEvent } from './domain/DidCommOutOfBandEvents'\n\nimport { CredoError, DidsApi, EventEmitter, injectable, parseDid } from '@credo-ts/core'\n\nimport { DidCommDocumentService } from '../../services'\n\nimport { getResolvedDidcommServiceWithSigningKeyId } from '../connections/services/helpers'\nimport { DidCommOutOfBandEventTypes } from './domain/DidCommOutOfBandEvents'\nimport { DidCommOutOfBandRole } from './domain/DidCommOutOfBandRole'\nimport { DidCommOutOfBandState } from './domain/DidCommOutOfBandState'\nimport { DidCommHandshakeReuseMessage, DidCommOutOfBandInvitation } from './messages'\nimport { DidCommHandshakeReuseAcceptedMessage } from './messages/DidCommHandshakeReuseAcceptedMessage'\nimport { type DidCommOutOfBandInlineServiceKey, DidCommOutOfBandRecord, DidCommOutOfBandRepository } from './repository'\n\nexport interface CreateFromImplicitInvitationConfig {\n did: string\n threadId: string\n handshakeProtocols: DidCommHandshakeProtocol[]\n autoAcceptConnection?: boolean\n recipientKey: Kms.PublicJwk<Kms.Ed25519PublicJwk>\n}\n\n@injectable()\nexport class DidCommOutOfBandService {\n private outOfBandRepository: DidCommOutOfBandRepository\n private eventEmitter: EventEmitter\n private didCommDocumentService: DidCommDocumentService\n\n public constructor(\n outOfBandRepository: DidCommOutOfBandRepository,\n eventEmitter: EventEmitter,\n didCommDocumentService: DidCommDocumentService\n ) {\n this.outOfBandRepository = outOfBandRepository\n this.eventEmitter = eventEmitter\n this.didCommDocumentService = didCommDocumentService\n }\n\n /**\n * Creates an Out of Band record from a Connection/DIDExchange request started by using\n * a publicly resolvable DID this agent can control\n */\n public async createFromImplicitInvitation(\n agentContext: AgentContext,\n config: CreateFromImplicitInvitationConfig\n ): Promise<DidCommOutOfBandRecord> {\n const { did, threadId, handshakeProtocols, autoAcceptConnection, recipientKey } = config\n\n // Verify it is a valid did and it is present in the wallet\n const publicDid = parseDid(did)\n const didsApi = agentContext.dependencyManager.resolve(DidsApi)\n const [createdDid] = await didsApi.getCreatedDids({ did: publicDid.did })\n if (!createdDid) {\n throw new CredoError(`Referenced public did ${did} not found.`)\n }\n\n // Recreate an 'implicit invitation' matching the parameters used by the invitee when\n // initiating the flow\n const outOfBandInvitation = new DidCommOutOfBandInvitation({\n id: did,\n services: [did],\n handshakeProtocols,\n })\n\n outOfBandInvitation.setThread({ threadId })\n\n const outOfBandRecord = new DidCommOutOfBandRecord({\n role: DidCommOutOfBandRole.Sender,\n state: DidCommOutOfBandState.AwaitResponse,\n reusable: true,\n autoAcceptConnection: autoAcceptConnection ?? false,\n outOfBandInvitation,\n tags: {\n recipientKeyFingerprints: [recipientKey.fingerprint],\n },\n })\n\n await this.save(agentContext, outOfBandRecord)\n this.emitStateChangedEvent(agentContext, outOfBandRecord, null)\n return outOfBandRecord\n }\n\n public async processHandshakeReuse(messageContext: DidCommInboundMessageContext<DidCommHandshakeReuseMessage>) {\n const reuseMessage = messageContext.message\n const parentThreadId = reuseMessage.thread?.parentThreadId\n\n if (!parentThreadId) {\n throw new CredoError('handshake-reuse message must have a parent thread id')\n }\n\n const outOfBandRecord = await this.findByCreatedInvitationId(messageContext.agentContext, parentThreadId)\n if (!outOfBandRecord) {\n throw new CredoError('No out of band record found for handshake-reuse message')\n }\n\n // Assert\n outOfBandRecord.assertRole(DidCommOutOfBandRole.Sender)\n outOfBandRecord.assertState(DidCommOutOfBandState.AwaitResponse)\n\n const requestLength = outOfBandRecord.outOfBandInvitation.getRequests()?.length ?? 0\n if (requestLength > 0) {\n throw new CredoError('Handshake reuse should only be used when no requests are present')\n }\n\n const reusedConnection = messageContext.assertReadyConnection()\n this.eventEmitter.emit<DidCommHandshakeReusedEvent>(messageContext.agentContext, {\n type: DidCommOutOfBandEventTypes.HandshakeReused,\n payload: {\n reuseThreadId: reuseMessage.threadId,\n connectionRecord: reusedConnection,\n outOfBandRecord,\n },\n })\n\n // If the out of band record is not reusable we can set the state to done\n if (!outOfBandRecord.reusable) {\n await this.updateState(messageContext.agentContext, outOfBandRecord, DidCommOutOfBandState.Done)\n }\n\n const reuseAcceptedMessage = new DidCommHandshakeReuseAcceptedMessage({\n threadId: reuseMessage.threadId,\n parentThreadId,\n })\n\n return reuseAcceptedMessage\n }\n\n public async processHandshakeReuseAccepted(\n messageContext: DidCommInboundMessageContext<DidCommHandshakeReuseAcceptedMessage>\n ) {\n const reuseAcceptedMessage = messageContext.message\n const parentThreadId = reuseAcceptedMessage.thread?.parentThreadId\n\n if (!parentThreadId) {\n throw new CredoError('handshake-reuse-accepted message must have a parent thread id')\n }\n\n const outOfBandRecord = await this.findByReceivedInvitationId(messageContext.agentContext, parentThreadId)\n if (!outOfBandRecord) {\n throw new CredoError('No out of band record found for handshake-reuse-accepted message')\n }\n\n // Assert\n outOfBandRecord.assertRole(DidCommOutOfBandRole.Receiver)\n outOfBandRecord.assertState(DidCommOutOfBandState.PrepareResponse)\n\n const reusedConnection = messageContext.assertReadyConnection()\n\n // Checks whether the connection associated with reuse accepted message matches with the connection\n // associated with the reuse message.\n // FIXME: not really a fan of the reuseConnectionId, but it's the only way I can think of now to get the connection\n // associated with the reuse message. Maybe we can at least move it to the metadata and remove it directly afterwards?\n // But this is an issue in general that has also come up for ACA-Py. How do I find the connection associated with an oob record?\n // Because it doesn't work really well with connection reuse.\n if (outOfBandRecord.reuseConnectionId !== reusedConnection.id) {\n throw new CredoError('handshake-reuse-accepted is not in response to a handshake-reuse message.')\n }\n\n this.eventEmitter.emit<DidCommHandshakeReusedEvent>(messageContext.agentContext, {\n type: DidCommOutOfBandEventTypes.HandshakeReused,\n payload: {\n reuseThreadId: reuseAcceptedMessage.threadId,\n connectionRecord: reusedConnection,\n outOfBandRecord,\n },\n })\n\n // receiver role is never reusable, so we can set the state to done\n await this.updateState(messageContext.agentContext, outOfBandRecord, DidCommOutOfBandState.Done)\n }\n\n public async createHandShakeReuse(\n agentContext: AgentContext,\n outOfBandRecord: DidCommOutOfBandRecord,\n connectionRecord: DidCommConnectionRecord\n ) {\n const reuseMessage = new DidCommHandshakeReuseMessage({ parentThreadId: outOfBandRecord.outOfBandInvitation.id })\n\n // Store the reuse connection id\n outOfBandRecord.reuseConnectionId = connectionRecord.id\n await this.outOfBandRepository.update(agentContext, outOfBandRecord)\n\n return reuseMessage\n }\n\n public async save(agentContext: AgentContext, outOfBandRecord: DidCommOutOfBandRecord) {\n return this.outOfBandRepository.save(agentContext, outOfBandRecord)\n }\n\n public async updateState(\n agentContext: AgentContext,\n outOfBandRecord: DidCommOutOfBandRecord,\n newState: DidCommOutOfBandState\n ) {\n const previousState = outOfBandRecord.state\n outOfBandRecord.state = newState\n await this.outOfBandRepository.update(agentContext, outOfBandRecord)\n\n this.emitStateChangedEvent(agentContext, outOfBandRecord, previousState)\n }\n\n public emitStateChangedEvent(\n agentContext: AgentContext,\n outOfBandRecord: DidCommOutOfBandRecord,\n previousState: DidCommOutOfBandState | null\n ) {\n this.eventEmitter.emit<DidCommOutOfBandStateChangedEvent>(agentContext, {\n type: DidCommOutOfBandEventTypes.OutOfBandStateChanged,\n payload: {\n outOfBandRecord: outOfBandRecord.clone(),\n previousState,\n },\n })\n }\n\n public async findById(agentContext: AgentContext, outOfBandRecordId: string) {\n return this.outOfBandRepository.findById(agentContext, outOfBandRecordId)\n }\n\n public async getById(agentContext: AgentContext, outOfBandRecordId: string) {\n return this.outOfBandRepository.getById(agentContext, outOfBandRecordId)\n }\n\n public async findByReceivedInvitationId(agentContext: AgentContext, receivedInvitationId: string) {\n return this.outOfBandRepository.findSingleByQuery(agentContext, {\n invitationId: receivedInvitationId,\n role: DidCommOutOfBandRole.Receiver,\n })\n }\n\n public async findByCreatedInvitationId(agentContext: AgentContext, createdInvitationId: string, threadId?: string) {\n return this.outOfBandRepository.findSingleByQuery(agentContext, {\n invitationId: createdInvitationId,\n role: DidCommOutOfBandRole.Sender,\n threadId,\n })\n }\n\n public async findCreatedByRecipientKey(\n agentContext: AgentContext,\n recipientKey: Kms.PublicJwk<Kms.Ed25519PublicJwk>\n ) {\n return this.outOfBandRepository.findSingleByQuery(agentContext, {\n recipientKeyFingerprints: [recipientKey.fingerprint],\n role: DidCommOutOfBandRole.Sender,\n })\n }\n\n public async getAll(agentContext: AgentContext) {\n return this.outOfBandRepository.getAll(agentContext)\n }\n\n public async findAllByQuery(\n agentContext: AgentContext,\n query: Query<DidCommOutOfBandRecord>,\n queryOptions?: QueryOptions\n ) {\n return this.outOfBandRepository.findByQuery(agentContext, query, queryOptions)\n }\n\n public async deleteById(agentContext: AgentContext, outOfBandId: string) {\n const outOfBandRecord = await this.getById(agentContext, outOfBandId)\n return this.outOfBandRepository.delete(agentContext, outOfBandRecord)\n }\n\n /**\n * Extract a resolved didcomm service from an out of band invitation.\n *\n * Currently the first service that can be resolved is returned.\n */\n public async getResolvedServiceForOutOfBandServices(\n agentContext: AgentContext,\n services: Array<string | OutOfBandDidCommService>,\n /**\n * Optional keys for the inline services\n */\n inlineServiceKeys?: DidCommOutOfBandInlineServiceKey[]\n ) {\n for (const service of services) {\n if (typeof service === 'string') {\n const [didService] = await this.didCommDocumentService.resolveServicesFromDid(agentContext, service)\n\n if (didService) return didService\n } else {\n return getResolvedDidcommServiceWithSigningKeyId(service, inlineServiceKeys)\n }\n }\n\n throw new CredoError('Could not extract a service from the out of band invitation.')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA2BO,oCAAMA,0BAAwB;CAKnC,AAAO,YACL,qBACA,cACA,wBACA;AACA,OAAK,sBAAsB;AAC3B,OAAK,eAAe;AACpB,OAAK,yBAAyB;;;;;;CAOhC,MAAa,6BACX,cACA,QACiC;EACjC,MAAM,EAAE,KAAK,UAAU,oBAAoB,sBAAsB,iBAAiB;EAGlF,MAAM,YAAY,SAAS,IAAI;EAE/B,MAAM,CAAC,cAAc,MADL,aAAa,kBAAkB,QAAQ,QAAQ,CAC5B,eAAe,EAAE,KAAK,UAAU,KAAK,CAAC;AACzE,MAAI,CAAC,WACH,OAAM,IAAI,WAAW,yBAAyB,IAAI,aAAa;EAKjE,MAAM,sBAAsB,IAAI,2BAA2B;GACzD,IAAI;GACJ,UAAU,CAAC,IAAI;GACf;GACD,CAAC;AAEF,sBAAoB,UAAU,EAAE,UAAU,CAAC;EAE3C,MAAM,kBAAkB,IAAI,uBAAuB;GACjD,MAAM,qBAAqB;GAC3B,OAAO,sBAAsB;GAC7B,UAAU;GACV,sBAAsB,wBAAwB;GAC9C;GACA,MAAM,EACJ,0BAA0B,CAAC,aAAa,YAAY,EACrD;GACF,CAAC;AAEF,QAAM,KAAK,KAAK,cAAc,gBAAgB;AAC9C,OAAK,sBAAsB,cAAc,iBAAiB,KAAK;AAC/D,SAAO;;CAGT,MAAa,sBAAsB,gBAA4E;EAC7G,MAAM,eAAe,eAAe;EACpC,MAAM,iBAA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,cAA4B;AAC9C,SAAO,KAAK,oBAAoB,OAAO,aAAa;;CAGtD,MAAa,eACX,cACA,OACA,cACA;AACA,SAAO,KAAK,oBAAoB,YAAY,cAAc,OAAO,aAAa;;CAGhF,MAAa,WAAW,cAA4B,aAAqB;EACvE,MAAM,kBAAkB,MAAM,KAAK,QAAQ,cAAc,YAAY;AACrE,SAAO,KAAK,oBAAoB,OAAO,cAAc,gBAAgB;;;;;;;CAQvE,MAAa,uCACX,cACA,UAIA,mBACA;AACA,OAAK,MAAM,WAAW,SACpB,KAAI,OAAO,YAAY,UAAU;GAC/B,MAAM,CAAC,cAAc,MAAM,KAAK,uBAAuB,uBAAuB,cAAc,QAAQ;AAEpG,OAAI,WAAY,QAAO;QAEvB,QAAO,0CAA0C,SAAS,kBAAkB;AAIhF,QAAM,IAAI,WAAW,+DAA+D;;;sCA1QvF,YAAY"}
1
+ {"version":3,"file":"DidCommOutOfBandService.mjs","names":["DidCommOutOfBandService"],"sources":["../../../src/modules/oob/DidCommOutOfBandService.ts"],"sourcesContent":["import type { AgentContext, Kms, Query, QueryOptions } from '@credo-ts/core'\nimport { CredoError, DidsApi, EventEmitter, injectable, parseDid } from '@credo-ts/core'\nimport type { DidCommInboundMessageContext } from '../../models'\nimport { DidCommDocumentService } from '../../services'\nimport type { DidCommConnectionRecord, DidCommHandshakeProtocol } from '../connections'\nimport { getResolvedDidcommServiceWithSigningKeyId } from '../connections/services/helpers'\nimport type { OutOfBandDidCommService } from './domain'\nimport type { DidCommHandshakeReusedEvent, DidCommOutOfBandStateChangedEvent } from './domain/DidCommOutOfBandEvents'\nimport { DidCommOutOfBandEventTypes } from './domain/DidCommOutOfBandEvents'\nimport { DidCommOutOfBandRole } from './domain/DidCommOutOfBandRole'\nimport { DidCommOutOfBandState } from './domain/DidCommOutOfBandState'\nimport { DidCommHandshakeReuseMessage, DidCommOutOfBandInvitation } from './messages'\nimport { DidCommHandshakeReuseAcceptedMessage } from './messages/DidCommHandshakeReuseAcceptedMessage'\nimport { type DidCommOutOfBandInlineServiceKey, DidCommOutOfBandRecord, DidCommOutOfBandRepository } from './repository'\n\nexport interface CreateFromImplicitInvitationConfig {\n did: string\n threadId: string\n handshakeProtocols: DidCommHandshakeProtocol[]\n autoAcceptConnection?: boolean\n recipientKey: Kms.PublicJwk<Kms.Ed25519PublicJwk>\n}\n\n@injectable()\nexport class DidCommOutOfBandService {\n private outOfBandRepository: DidCommOutOfBandRepository\n private eventEmitter: EventEmitter\n private didCommDocumentService: DidCommDocumentService\n\n public constructor(\n outOfBandRepository: DidCommOutOfBandRepository,\n eventEmitter: EventEmitter,\n didCommDocumentService: DidCommDocumentService\n ) {\n this.outOfBandRepository = outOfBandRepository\n this.eventEmitter = eventEmitter\n this.didCommDocumentService = didCommDocumentService\n }\n\n /**\n * Creates an Out of Band record from a Connection/DIDExchange request started by using\n * a publicly resolvable DID this agent can control\n */\n public async createFromImplicitInvitation(\n agentContext: AgentContext,\n config: CreateFromImplicitInvitationConfig\n ): Promise<DidCommOutOfBandRecord> {\n const { did, threadId, handshakeProtocols, autoAcceptConnection, recipientKey } = config\n\n // Verify it is a valid did and it is present in the wallet\n const publicDid = parseDid(did)\n const didsApi = agentContext.dependencyManager.resolve(DidsApi)\n const [createdDid] = await didsApi.getCreatedDids({ did: publicDid.did })\n if (!createdDid) {\n throw new CredoError(`Referenced public did ${did} not found.`)\n }\n\n // Recreate an 'implicit invitation' matching the parameters used by the invitee when\n // initiating the flow\n const outOfBandInvitation = new DidCommOutOfBandInvitation({\n id: did,\n services: [did],\n handshakeProtocols,\n })\n\n outOfBandInvitation.setThread({ threadId })\n\n const outOfBandRecord = new DidCommOutOfBandRecord({\n role: DidCommOutOfBandRole.Sender,\n state: DidCommOutOfBandState.AwaitResponse,\n reusable: true,\n autoAcceptConnection: autoAcceptConnection ?? false,\n outOfBandInvitation,\n tags: {\n recipientKeyFingerprints: [recipientKey.fingerprint],\n },\n })\n\n await this.save(agentContext, outOfBandRecord)\n this.emitStateChangedEvent(agentContext, outOfBandRecord, null)\n return outOfBandRecord\n }\n\n public async processHandshakeReuse(messageContext: DidCommInboundMessageContext<DidCommHandshakeReuseMessage>) {\n const reuseMessage = messageContext.message\n const parentThreadId = reuseMessage.thread?.parentThreadId\n\n if (!parentThreadId) {\n throw new CredoError('handshake-reuse message must have a parent thread id')\n }\n\n const outOfBandRecord = await this.findByCreatedInvitationId(messageContext.agentContext, parentThreadId)\n if (!outOfBandRecord) {\n throw new CredoError('No out of band record found for handshake-reuse message')\n }\n\n // Assert\n outOfBandRecord.assertRole(DidCommOutOfBandRole.Sender)\n outOfBandRecord.assertState(DidCommOutOfBandState.AwaitResponse)\n\n const requestLength = outOfBandRecord.outOfBandInvitation.getRequests()?.length ?? 0\n if (requestLength > 0) {\n throw new CredoError('Handshake reuse should only be used when no requests are present')\n }\n\n const reusedConnection = messageContext.assertReadyConnection()\n this.eventEmitter.emit<DidCommHandshakeReusedEvent>(messageContext.agentContext, {\n type: DidCommOutOfBandEventTypes.HandshakeReused,\n payload: {\n reuseThreadId: reuseMessage.threadId,\n connectionRecord: reusedConnection,\n outOfBandRecord,\n },\n })\n\n // If the out of band record is not reusable we can set the state to done\n if (!outOfBandRecord.reusable) {\n await this.updateState(messageContext.agentContext, outOfBandRecord, DidCommOutOfBandState.Done)\n }\n\n const reuseAcceptedMessage = new DidCommHandshakeReuseAcceptedMessage({\n threadId: reuseMessage.threadId,\n parentThreadId,\n })\n\n return reuseAcceptedMessage\n }\n\n public async processHandshakeReuseAccepted(\n messageContext: DidCommInboundMessageContext<DidCommHandshakeReuseAcceptedMessage>\n ) {\n const reuseAcceptedMessage = messageContext.message\n const parentThreadId = reuseAcceptedMessage.thread?.parentThreadId\n\n if (!parentThreadId) {\n throw new CredoError('handshake-reuse-accepted message must have a parent thread id')\n }\n\n const outOfBandRecord = await this.findByReceivedInvitationId(messageContext.agentContext, parentThreadId)\n if (!outOfBandRecord) {\n throw new CredoError('No out of band record found for handshake-reuse-accepted message')\n }\n\n // Assert\n outOfBandRecord.assertRole(DidCommOutOfBandRole.Receiver)\n outOfBandRecord.assertState(DidCommOutOfBandState.PrepareResponse)\n\n const reusedConnection = messageContext.assertReadyConnection()\n\n // Checks whether the connection associated with reuse accepted message matches with the connection\n // associated with the reuse message.\n // FIXME: not really a fan of the reuseConnectionId, but it's the only way I can think of now to get the connection\n // associated with the reuse message. Maybe we can at least move it to the metadata and remove it directly afterwards?\n // But this is an issue in general that has also come up for ACA-Py. How do I find the connection associated with an oob record?\n // Because it doesn't work really well with connection reuse.\n if (outOfBandRecord.reuseConnectionId !== reusedConnection.id) {\n throw new CredoError('handshake-reuse-accepted is not in response to a handshake-reuse message.')\n }\n\n this.eventEmitter.emit<DidCommHandshakeReusedEvent>(messageContext.agentContext, {\n type: DidCommOutOfBandEventTypes.HandshakeReused,\n payload: {\n reuseThreadId: reuseAcceptedMessage.threadId,\n connectionRecord: reusedConnection,\n outOfBandRecord,\n },\n })\n\n // receiver role is never reusable, so we can set the state to done\n await this.updateState(messageContext.agentContext, outOfBandRecord, DidCommOutOfBandState.Done)\n }\n\n public async createHandShakeReuse(\n agentContext: AgentContext,\n outOfBandRecord: DidCommOutOfBandRecord,\n connectionRecord: DidCommConnectionRecord\n ) {\n const reuseMessage = new DidCommHandshakeReuseMessage({ parentThreadId: outOfBandRecord.outOfBandInvitation.id })\n\n // Store the reuse connection id\n outOfBandRecord.reuseConnectionId = connectionRecord.id\n await this.outOfBandRepository.update(agentContext, outOfBandRecord)\n\n return reuseMessage\n }\n\n public async save(agentContext: AgentContext, outOfBandRecord: DidCommOutOfBandRecord) {\n return this.outOfBandRepository.save(agentContext, outOfBandRecord)\n }\n\n public async updateState(\n agentContext: AgentContext,\n outOfBandRecord: DidCommOutOfBandRecord,\n newState: DidCommOutOfBandState\n ) {\n const previousState = outOfBandRecord.state\n outOfBandRecord.state = newState\n await this.outOfBandRepository.update(agentContext, outOfBandRecord)\n\n this.emitStateChangedEvent(agentContext, outOfBandRecord, previousState)\n }\n\n public emitStateChangedEvent(\n agentContext: AgentContext,\n outOfBandRecord: DidCommOutOfBandRecord,\n previousState: DidCommOutOfBandState | null\n ) {\n this.eventEmitter.emit<DidCommOutOfBandStateChangedEvent>(agentContext, {\n type: DidCommOutOfBandEventTypes.OutOfBandStateChanged,\n payload: {\n outOfBandRecord: outOfBandRecord.clone(),\n previousState,\n },\n })\n }\n\n public async findById(agentContext: AgentContext, outOfBandRecordId: string) {\n return this.outOfBandRepository.findById(agentContext, outOfBandRecordId)\n }\n\n public async getById(agentContext: AgentContext, outOfBandRecordId: string) {\n return this.outOfBandRepository.getById(agentContext, outOfBandRecordId)\n }\n\n public async findByReceivedInvitationId(agentContext: AgentContext, receivedInvitationId: string) {\n return this.outOfBandRepository.findSingleByQuery(agentContext, {\n invitationId: receivedInvitationId,\n role: DidCommOutOfBandRole.Receiver,\n })\n }\n\n public async findByCreatedInvitationId(agentContext: AgentContext, createdInvitationId: string, threadId?: string) {\n return this.outOfBandRepository.findSingleByQuery(agentContext, {\n invitationId: createdInvitationId,\n role: DidCommOutOfBandRole.Sender,\n threadId,\n })\n }\n\n public async findCreatedByRecipientKey(\n agentContext: AgentContext,\n recipientKey: Kms.PublicJwk<Kms.Ed25519PublicJwk>\n ) {\n return this.outOfBandRepository.findSingleByQuery(agentContext, {\n recipientKeyFingerprints: [recipientKey.fingerprint],\n role: DidCommOutOfBandRole.Sender,\n })\n }\n\n public async getAll(agentContext: AgentContext) {\n return this.outOfBandRepository.getAll(agentContext)\n }\n\n public async findAllByQuery(\n agentContext: AgentContext,\n query: Query<DidCommOutOfBandRecord>,\n queryOptions?: QueryOptions\n ) {\n return this.outOfBandRepository.findByQuery(agentContext, query, queryOptions)\n }\n\n public async deleteById(agentContext: AgentContext, outOfBandId: string) {\n const outOfBandRecord = await this.getById(agentContext, outOfBandId)\n return this.outOfBandRepository.delete(agentContext, outOfBandRecord)\n }\n\n /**\n * Extract a resolved didcomm service from an out of band invitation.\n *\n * Currently the first service that can be resolved is returned.\n */\n public async getResolvedServiceForOutOfBandServices(\n agentContext: AgentContext,\n services: Array<string | OutOfBandDidCommService>,\n /**\n * Optional keys for the inline services\n */\n inlineServiceKeys?: DidCommOutOfBandInlineServiceKey[]\n ) {\n for (const service of services) {\n if (typeof service === 'string') {\n const [didService] = await this.didCommDocumentService.resolveServicesFromDid(agentContext, service)\n\n if (didService) return didService\n } else {\n return getResolvedDidcommServiceWithSigningKeyId(service, inlineServiceKeys)\n }\n }\n\n throw new CredoError('Could not extract a service from the out of band invitation.')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAwBO,oCAAMA,0BAAwB;CAKnC,AAAO,YACL,qBACA,cACA,wBACA;AACA,OAAK,sBAAsB;AAC3B,OAAK,eAAe;AACpB,OAAK,yBAAyB;;;;;;CAOhC,MAAa,6BACX,cACA,QACiC;EACjC,MAAM,EAAE,KAAK,UAAU,oBAAoB,sBAAsB,iBAAiB;EAGlF,MAAM,YAAY,SAAS,IAAI;EAE/B,MAAM,CAAC,cAAc,MADL,aAAa,kBAAkB,QAAQ,QAAQ,CAC5B,eAAe,EAAE,KAAK,UAAU,KAAK,CAAC;AACzE,MAAI,CAAC,WACH,OAAM,IAAI,WAAW,yBAAyB,IAAI,aAAa;EAKjE,MAAM,sBAAsB,IAAI,2BAA2B;GACzD,IAAI;GACJ,UAAU,CAAC,IAAI;GACf;GACD,CAAC;AAEF,sBAAoB,UAAU,EAAE,UAAU,CAAC;EAE3C,MAAM,kBAAkB,IAAI,uBAAuB;GACjD,MAAM,qBAAqB;GAC3B,OAAO,sBAAsB;GAC7B,UAAU;GACV,sBAAsB,wBAAwB;GAC9C;GACA,MAAM,EACJ,0BAA0B,CAAC,aAAa,YAAY,EACrD;GACF,CAAC;AAEF,QAAM,KAAK,KAAK,cAAc,gBAAgB;AAC9C,OAAK,sBAAsB,cAAc,iBAAiB,KAAK;AAC/D,SAAO;;CAGT,MAAa,sBAAsB,gBAA4E;EAC7G,MAAM,eAAe,eAAe;EACpC,MAAM,i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AAO,cAA4B;AAC9C,SAAO,KAAK,oBAAoB,OAAO,aAAa;;CAGtD,MAAa,eACX,cACA,OACA,cACA;AACA,SAAO,KAAK,oBAAoB,YAAY,cAAc,OAAO,aAAa;;CAGhF,MAAa,WAAW,cAA4B,aAAqB;EACvE,MAAM,kBAAkB,MAAM,KAAK,QAAQ,cAAc,YAAY;AACrE,SAAO,KAAK,oBAAoB,OAAO,cAAc,gBAAgB;;;;;;;CAQvE,MAAa,uCACX,cACA,UAIA,mBACA;AACA,OAAK,MAAM,WAAW,SACpB,KAAI,OAAO,YAAY,UAAU;GAC/B,MAAM,CAAC,cAAc,MAAM,KAAK,uBAAuB,uBAAuB,cAAc,QAAQ;AAEpG,OAAI,WAAY,QAAO;QAEvB,QAAO,0CAA0C,SAAS,kBAAkB;AAIhF,QAAM,IAAI,WAAW,+DAA+D;;;sCA1QvF,YAAY"}
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
2
- const require_DidCommConnectionInvitationMessage = require('../connections/messages/DidCommConnectionInvitationMessage.js');
3
2
  const require_OutOfBandDidCommService = require('./domain/OutOfBandDidCommService.js');
4
3
  const require_DidCommOutOfBandInvitation = require('./messages/DidCommOutOfBandInvitation.js');
4
+ const require_DidCommConnectionInvitationMessage = require('../connections/messages/DidCommConnectionInvitationMessage.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 { DidCommConnectionInvitationMessage } from "../connections/messages/DidCommConnectionInvitationMessage.mjs";
2
1
  import { OutOfBandDidCommService } from "./domain/OutOfBandDidCommService.mjs";
3
2
  import { DidCommInvitationType, DidCommOutOfBandInvitation } from "./messages/DidCommOutOfBandInvitation.mjs";
3
+ import { DidCommConnectionInvitationMessage } from "../connections/messages/DidCommConnectionInvitationMessage.mjs";
4
4
  import { DidCommV1Service, DidDocumentBuilder, DidKey, didKeyToVerkey, verkeyToDidKey } from "@credo-ts/core";
5
5
 
6
6
  //#region src/modules/oob/converters.ts
@@ -1 +1 @@
1
- {"version":3,"file":"converters.mjs","names":["service: string | OutOfBandDidCommService","options: DidCommConnectionInvitationMessageOptions"],"sources":["../../../src/modules/oob/converters.ts"],"sourcesContent":["import type { DidCommOutOfBandInvitationOptions } from './messages'\n\nimport {\n DidCommV1Service,\n DidDocumentBuilder,\n DidKey,\n didDocumentToNumAlgo4Did,\n didKeyToVerkey,\n verkeyToDidKey,\n} from '@credo-ts/core'\n\nimport {\n DidCommConnectionInvitationMessage,\n type DidCommConnectionInvitationMessageOptions,\n} from '../connections/messages/DidCommConnectionInvitationMessage'\n\nimport { OutOfBandDidCommService } from './domain/OutOfBandDidCommService'\nimport { DidCommInvitationType, DidCommOutOfBandInvitation } from './messages/DidCommOutOfBandInvitation'\n\nexport function convertToNewInvitation(oldInvitation: DidCommConnectionInvitationMessage) {\n let service: string | OutOfBandDidCommService\n\n if (oldInvitation.did) {\n service = oldInvitation.did\n } else if (oldInvitation.serviceEndpoint && oldInvitation.recipientKeys && oldInvitation.recipientKeys.length > 0) {\n service = new OutOfBandDidCommService({\n id: '#inline',\n recipientKeys: oldInvitation.recipientKeys?.map(verkeyToDidKey),\n routingKeys: oldInvitation.routingKeys?.map(verkeyToDidKey),\n serviceEndpoint: oldInvitation.serviceEndpoint,\n })\n } else {\n throw new Error('Missing required serviceEndpoint, routingKeys and/or did fields in connection invitation')\n }\n\n const options: DidCommOutOfBandInvitationOptions = {\n id: oldInvitation.id,\n label: oldInvitation.label,\n imageUrl: oldInvitation.imageUrl,\n appendedAttachments: oldInvitation.appendedAttachments,\n accept: ['didcomm/aip1', 'didcomm/aip2;env=rfc19'],\n services: [service],\n // NOTE: we hardcode it to 1.0, we won't see support for newer versions of the protocol\n // and we also can process 1.0 if we support newer versions\n handshakeProtocols: ['https://didcomm.org/connections/1.0'],\n }\n\n const outOfBandInvitation = new DidCommOutOfBandInvitation(options)\n outOfBandInvitation.invitationType = DidCommInvitationType.Connection\n return outOfBandInvitation\n}\n\nexport function convertToOldInvitation(newInvitation: DidCommOutOfBandInvitation) {\n // Taking first service, as we can only include one service in a legacy invitation.\n const [service] = newInvitation.getServices()\n\n let options: DidCommConnectionInvitationMessageOptions\n if (typeof service === 'string') {\n options = {\n id: newInvitation.id,\n // label is optional\n label: newInvitation.label ?? '',\n did: service,\n imageUrl: newInvitation.imageUrl,\n appendedAttachments: newInvitation.appendedAttachments,\n }\n } else {\n options = {\n id: newInvitation.id,\n // label is optional\n label: newInvitation.label ?? '',\n recipientKeys: service.recipientKeys.map(didKeyToVerkey),\n routingKeys: service.routingKeys?.map(didKeyToVerkey),\n serviceEndpoint: service.serviceEndpoint,\n imageUrl: newInvitation.imageUrl,\n appendedAttachments: newInvitation.appendedAttachments,\n }\n }\n\n const connectionInvitationMessage = new DidCommConnectionInvitationMessage(options)\n return connectionInvitationMessage\n}\n\nexport function outOfBandServiceToNumAlgo4Did(service: OutOfBandDidCommService) {\n // FIXME: add the key entries for the recipientKeys to the did document.\n const didDocument = new DidDocumentBuilder('')\n .addService(\n new DidCommV1Service({\n id: service.id,\n serviceEndpoint: service.serviceEndpoint,\n accept: service.accept,\n // FIXME: this should actually be local key references, not did:key:123#456 references\n recipientKeys: service.recipientKeys.map((recipientKey) => {\n const did = DidKey.fromDid(recipientKey)\n return `${did.did}#${did.publicJwk.fingerprint}`\n }),\n // Map did:key:xxx to actual did:key:xxx#123\n routingKeys: service.routingKeys?.map((routingKey) => {\n const did = DidKey.fromDid(routingKey)\n return `${did.did}#${did.publicJwk.fingerprint}`\n }),\n })\n )\n .build()\n\n return didDocumentToNumAlgo4Did(didDocument)\n}\n"],"mappings":";;;;;;AAmBA,SAAgB,uBAAuB,eAAmD;CACxF,IAAIA;AAEJ,KAAI,cAAc,IAChB,WAAU,cAAc;UACf,cAAc,mBAAmB,cAAc,iBAAiB,cAAc,cAAc,SAAS,EAC9G,WAAU,IAAI,wBAAwB;EACpC,IAAI;EACJ,eAAe,cAAc,eAAe,IAAI,eAAe;EAC/D,aAAa,cAAc,aAAa,IAAI,eAAe;EAC3D,iBAAiB,cAAc;EAChC,CAAC;KAEF,OAAM,IAAI,MAAM,2FAA2F;CAe7G,MAAM,sBAAsB,IAAI,2BAZmB;EACjD,IAAI,cAAc;EAClB,OAAO,cAAc;EACrB,UAAU,cAAc;EACxB,qBAAqB,cAAc;EACnC,QAAQ,CAAC,gBAAgB,yBAAyB;EAClD,UAAU,CAAC,QAAQ;EAGnB,oBAAoB,CAAC,sCAAsC;EAC5D,CAEkE;AACnE,qBAAoB,iBAAiB,sBAAsB;AAC3D,QAAO;;AAGT,SAAgB,uBAAuB,eAA2C;CAEhF,MAAM,CAAC,WAAW,cAAc,aAAa;CAE7C,IAAIC;AACJ,KAAI,OAAO,YAAY,SACrB,WAAU;EACR,IAAI,cAAc;EAElB,OAAO,cAAc,SAAS;EAC9B,KAAK;EACL,UAAU,cAAc;EACxB,qBAAqB,cAAc;EACpC;KAED,WAAU;EACR,IAAI,cAAc;EAElB,OAAO,cAAc,SAAS;EAC9B,eAAe,QAAQ,cAAc,IAAI,eAAe;EACxD,aAAa,QAAQ,aAAa,IAAI,eAAe;EACrD,iBAAiB,QAAQ;EACzB,UAAU,cAAc;EACxB,qBAAqB,cAAc;EACpC;AAIH,QADoC,IAAI,mCAAmC,QAAQ"}
1
+ {"version":3,"file":"converters.mjs","names":["service: string | OutOfBandDidCommService","options: DidCommConnectionInvitationMessageOptions"],"sources":["../../../src/modules/oob/converters.ts"],"sourcesContent":["import {\n DidCommV1Service,\n DidDocumentBuilder,\n DidKey,\n didDocumentToNumAlgo4Did,\n didKeyToVerkey,\n verkeyToDidKey,\n} from '@credo-ts/core'\nimport {\n DidCommConnectionInvitationMessage,\n type DidCommConnectionInvitationMessageOptions,\n} from '../connections/messages/DidCommConnectionInvitationMessage'\nimport { OutOfBandDidCommService } from './domain/OutOfBandDidCommService'\nimport type { DidCommOutOfBandInvitationOptions } from './messages'\nimport { DidCommInvitationType, DidCommOutOfBandInvitation } from './messages/DidCommOutOfBandInvitation'\n\nexport function convertToNewInvitation(oldInvitation: DidCommConnectionInvitationMessage) {\n let service: string | OutOfBandDidCommService\n\n if (oldInvitation.did) {\n service = oldInvitation.did\n } else if (oldInvitation.serviceEndpoint && oldInvitation.recipientKeys && oldInvitation.recipientKeys.length > 0) {\n service = new OutOfBandDidCommService({\n id: '#inline',\n recipientKeys: oldInvitation.recipientKeys?.map(verkeyToDidKey),\n routingKeys: oldInvitation.routingKeys?.map(verkeyToDidKey),\n serviceEndpoint: oldInvitation.serviceEndpoint,\n })\n } else {\n throw new Error('Missing required serviceEndpoint, routingKeys and/or did fields in connection invitation')\n }\n\n const options: DidCommOutOfBandInvitationOptions = {\n id: oldInvitation.id,\n label: oldInvitation.label,\n imageUrl: oldInvitation.imageUrl,\n appendedAttachments: oldInvitation.appendedAttachments,\n accept: ['didcomm/aip1', 'didcomm/aip2;env=rfc19'],\n services: [service],\n // NOTE: we hardcode it to 1.0, we won't see support for newer versions of the protocol\n // and we also can process 1.0 if we support newer versions\n handshakeProtocols: ['https://didcomm.org/connections/1.0'],\n }\n\n const outOfBandInvitation = new DidCommOutOfBandInvitation(options)\n outOfBandInvitation.invitationType = DidCommInvitationType.Connection\n return outOfBandInvitation\n}\n\nexport function convertToOldInvitation(newInvitation: DidCommOutOfBandInvitation) {\n // Taking first service, as we can only include one service in a legacy invitation.\n const [service] = newInvitation.getServices()\n\n let options: DidCommConnectionInvitationMessageOptions\n if (typeof service === 'string') {\n options = {\n id: newInvitation.id,\n // label is optional\n label: newInvitation.label ?? '',\n did: service,\n imageUrl: newInvitation.imageUrl,\n appendedAttachments: newInvitation.appendedAttachments,\n }\n } else {\n options = {\n id: newInvitation.id,\n // label is optional\n label: newInvitation.label ?? '',\n recipientKeys: service.recipientKeys.map(didKeyToVerkey),\n routingKeys: service.routingKeys?.map(didKeyToVerkey),\n serviceEndpoint: service.serviceEndpoint,\n imageUrl: newInvitation.imageUrl,\n appendedAttachments: newInvitation.appendedAttachments,\n }\n }\n\n const connectionInvitationMessage = new DidCommConnectionInvitationMessage(options)\n return connectionInvitationMessage\n}\n\nexport function outOfBandServiceToNumAlgo4Did(service: OutOfBandDidCommService) {\n // FIXME: add the key entries for the recipientKeys to the did document.\n const didDocument = new DidDocumentBuilder('')\n .addService(\n new DidCommV1Service({\n id: service.id,\n serviceEndpoint: service.serviceEndpoint,\n accept: service.accept,\n // FIXME: this should actually be local key references, not did:key:123#456 references\n recipientKeys: service.recipientKeys.map((recipientKey) => {\n const did = DidKey.fromDid(recipientKey)\n return `${did.did}#${did.publicJwk.fingerprint}`\n }),\n // Map did:key:xxx to actual did:key:xxx#123\n routingKeys: service.routingKeys?.map((routingKey) => {\n const did = DidKey.fromDid(routingKey)\n return `${did.did}#${did.publicJwk.fingerprint}`\n }),\n })\n )\n .build()\n\n return didDocumentToNumAlgo4Did(didDocument)\n}\n"],"mappings":";;;;;;AAgBA,SAAgB,uBAAuB,eAAmD;CACxF,IAAIA;AAEJ,KAAI,cAAc,IAChB,WAAU,cAAc;UACf,cAAc,mBAAmB,cAAc,iBAAiB,cAAc,cAAc,SAAS,EAC9G,WAAU,IAAI,wBAAwB;EACpC,IAAI;EACJ,eAAe,cAAc,eAAe,IAAI,eAAe;EAC/D,aAAa,cAAc,aAAa,IAAI,eAAe;EAC3D,iBAAiB,cAAc;EAChC,CAAC;KAEF,OAAM,IAAI,MAAM,2FAA2F;CAe7G,MAAM,sBAAsB,IAAI,2BAZmB;EACjD,IAAI,cAAc;EAClB,OAAO,cAAc;EACrB,UAAU,cAAc;EACxB,qBAAqB,cAAc;EACnC,QAAQ,CAAC,gBAAgB,yBAAyB;EAClD,UAAU,CAAC,QAAQ;EAGnB,oBAAoB,CAAC,sCAAsC;EAC5D,CAEkE;AACnE,qBAAoB,iBAAiB,sBAAsB;AAC3D,QAAO;;AAGT,SAAgB,uBAAuB,eAA2C;CAEhF,MAAM,CAAC,WAAW,cAAc,aAAa;CAE7C,IAAIC;AACJ,KAAI,OAAO,YAAY,SACrB,WAAU;EACR,IAAI,cAAc;EAElB,OAAO,cAAc,SAAS;EAC9B,KAAK;EACL,UAAU,cAAc;EACxB,qBAAqB,cAAc;EACpC;KAED,WAAU;EACR,IAAI,cAAc;EAElB,OAAO,cAAc,SAAS;EAC9B,eAAe,QAAQ,cAAc,IAAI,eAAe;EACxD,aAAa,QAAQ,aAAa,IAAI,eAAe;EACrD,iBAAiB,QAAQ;EACzB,UAAU,cAAc;EACxB,qBAAqB,cAAc;EACpC;AAIH,QADoC,IAAI,mCAAmC,QAAQ"}
@@ -1 +1 @@
1
- {"version":3,"file":"OutOfBandDidCommService.d.mts","names":[],"sources":["../../../../src/modules/oob/domain/OutOfBandDidCommService.ts"],"sourcesContent":[],"mappings":";;;cAMa,uBAAA,SAAgC,kBAAA;EAAhC,WAAA,CAAA,OAAA,EAAA;IAAwB,EAAA,EAAA,MAAA;IAmCE,eAAA,EAAA,MAAA;IAwBa,aAAA,EAAA,MAAA,EAAA;IAAsB,WAAA,CAAA,EAAA,MAAA,EAAA;IA3D7B,MAAA,CAAA,EAAA,MAAA,EAAA;EAAkB,CAAA;;;;;;gCAmCxB;6CAwBa,yBAAsB"}
1
+ {"version":3,"file":"OutOfBandDidCommService.d.mts","names":[],"sources":["../../../../src/modules/oob/domain/OutOfBandDidCommService.ts"],"sourcesContent":[],"mappings":";;;cAKa,uBAAA,SAAgC,kBAAA;EAAhC,WAAA,CAAA,OAAA,EAAA;IAAwB,EAAA,EAAA,MAAA;IAmCE,eAAA,EAAA,MAAA;IAwBa,aAAA,EAAA,MAAA,EAAA;IAAsB,WAAA,CAAA,EAAA,MAAA,EAAA;IA3D7B,MAAA,CAAA,EAAA,MAAA,EAAA;EAAkB,CAAA;;;;;;gCAmCxB;6CAwBa,yBAAsB"}
@@ -1 +1 @@
1
- {"version":3,"file":"OutOfBandDidCommService.d.ts","names":[],"sources":["../../../../src/modules/oob/domain/OutOfBandDidCommService.ts"],"sourcesContent":[],"mappings":";;;cAMa,uBAAA,SAAgC,kBAAA;EAAhC,WAAA,CAAA,OAAA,EAAA;IAAwB,EAAA,EAAA,MAAA;IAmCE,eAAA,EAAA,MAAA;IAwBa,aAAA,EAAA,MAAA,EAAA;IAAsB,WAAA,CAAA,EAAA,MAAA,EAAA;IA3D7B,MAAA,CAAA,EAAA,MAAA,EAAA;EAAkB,CAAA;;;;;;gCAmCxB;6CAwBa,yBAAsB"}
1
+ {"version":3,"file":"OutOfBandDidCommService.d.ts","names":[],"sources":["../../../../src/modules/oob/domain/OutOfBandDidCommService.ts"],"sourcesContent":[],"mappings":";;;cAKa,uBAAA,SAAgC,kBAAA;EAAhC,WAAA,CAAA,OAAA,EAAA;IAAwB,EAAA,EAAA,MAAA;IAmCE,eAAA,EAAA,MAAA;IAwBa,aAAA,EAAA,MAAA,EAAA;IAAsB,WAAA,CAAA,EAAA,MAAA,EAAA;IA3D7B,MAAA,CAAA,EAAA,MAAA,EAAA;EAAkB,CAAA;;;;;;gCAmCxB;6CAwBa,yBAAsB"}
@@ -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 __credo_ts_core = require("@credo-ts/core");
5
5
  __credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
6
6
  let class_validator = require("class-validator");
@@ -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 { CredoError, DidDocumentService, DidKey, IsUri, Kms, isDid } from "@credo-ts/core";
4
4
  import { ArrayNotEmpty, IsOptional, IsString, ValidateBy, buildMessage, isString } from "class-validator";
5
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"OutOfBandDidCommService.mjs","names":[],"sources":["../../../../src/modules/oob/domain/OutOfBandDidCommService.ts"],"sourcesContent":["import type { ResolvedDidCommService } from '@credo-ts/core'\nimport type { ValidationOptions } from 'class-validator'\n\nimport { CredoError, DidDocumentService, DidKey, IsUri, Kms, isDid } from '@credo-ts/core'\nimport { ArrayNotEmpty, IsOptional, IsString, ValidateBy, buildMessage, isString } from 'class-validator'\n\nexport class OutOfBandDidCommService extends DidDocumentService {\n public constructor(options: {\n id: string\n serviceEndpoint: string\n recipientKeys: string[]\n routingKeys?: string[]\n accept?: string[]\n }) {\n super({ ...options, type: OutOfBandDidCommService.type })\n\n if (options) {\n this.recipientKeys = options.recipientKeys\n this.routingKeys = options.routingKeys\n this.accept = options.accept\n }\n }\n\n public static type = 'did-communication'\n\n @IsString()\n @IsUri()\n public serviceEndpoint!: string\n\n @ArrayNotEmpty()\n @IsDidKeyString({ each: true })\n public recipientKeys!: string[]\n\n @IsDidKeyString({ each: true })\n @IsOptional()\n public routingKeys?: string[]\n\n @IsString({ each: true })\n @IsOptional()\n public accept?: string[]\n\n public get resolvedDidCommService(): ResolvedDidCommService {\n return {\n id: this.id,\n recipientKeys: this.recipientKeys.map((didKey) => {\n const publicJwk = DidKey.fromDid(didKey).publicJwk\n if (!publicJwk.is(Kms.Ed25519PublicJwk)) {\n throw new CredoError('Expected recipient key for didcomm service to be of type Ed25519')\n }\n\n return publicJwk\n }),\n routingKeys:\n this.routingKeys?.map((didKey) => {\n const publicJwk = DidKey.fromDid(didKey).publicJwk\n if (!publicJwk.is(Kms.Ed25519PublicJwk)) {\n throw new CredoError('Expected recipient key for didcomm service to be of type Ed25519')\n }\n\n return publicJwk\n }) ?? [],\n serviceEndpoint: this.serviceEndpoint,\n }\n }\n\n public static fromResolvedDidCommService(service: ResolvedDidCommService) {\n return new OutOfBandDidCommService({\n id: service.id,\n recipientKeys: service.recipientKeys.map((key) => new DidKey(key).did),\n routingKeys: service.routingKeys.map((key) => new DidKey(key).did),\n serviceEndpoint: service.serviceEndpoint,\n })\n }\n}\n\n/**\n * Checks if a given value is a did:key did string\n */\nfunction IsDidKeyString(validationOptions?: ValidationOptions): PropertyDecorator {\n return ValidateBy(\n {\n name: 'isDidKeyString',\n validator: {\n validate: (value): boolean => isString(value) && isDid(value, 'key'),\n defaultMessage: buildMessage(\n (eachPrefix) => `${eachPrefix}$property must be a did:key string`,\n validationOptions\n ),\n },\n },\n validationOptions\n )\n}\n"],"mappings":";;;;;;AAMA,IAAa,0BAAb,MAAa,gCAAgC,mBAAmB;CAC9D,AAAO,YAAY,SAMhB;AACD,QAAM;GAAE,GAAG;GAAS,MAAM,wBAAwB;GAAM,CAAC;AAEzD,MAAI,SAAS;AACX,QAAK,gBAAgB,QAAQ;AAC7B,QAAK,cAAc,QAAQ;AAC3B,QAAK,SAAS,QAAQ;;;CAsB1B,IAAW,yBAAiD;AAC1D,SAAO;GACL,IAAI,KAAK;GACT,eAAe,KAAK,cAAc,KAAK,WAAW;IAChD,MAAM,YAAY,OAAO,QAAQ,OAAO,CAAC;AACzC,QAAI,CAAC,UAAU,GAAG,IAAI,iBAAiB,CACrC,OAAM,IAAI,WAAW,mEAAmE;AAG1F,WAAO;KACP;GACF,aACE,KAAK,aAAa,KAAK,WAAW;IAChC,MAAM,YAAY,OAAO,QAAQ,OAAO,CAAC;AACzC,QAAI,CAAC,UAAU,GAAG,IAAI,iBAAiB,CACrC,OAAM,IAAI,WAAW,mEAAmE;AAG1F,WAAO;KACP,IAAI,EAAE;GACV,iBAAiB,KAAK;GACvB;;CAGH,OAAc,2BAA2B,SAAiC;AACxE,SAAO,IAAI,wBAAwB;GACjC,IAAI,QAAQ;GACZ,eAAe,QAAQ,cAAc,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,IAAI;GACtE,aAAa,QAAQ,YAAY,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,IAAI;GAClE,iBAAiB,QAAQ;GAC1B,CAAC;;;wBAhDU,OAAO;;CAEpB,UAAU;CACV,OAAO;;;;CAGP,eAAe;CACf,eAAe,EAAE,MAAM,MAAM,CAAC;;;;CAG9B,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,YAAY;;;;CAGZ,SAAS,EAAE,MAAM,MAAM,CAAC;CACxB,YAAY;;;;;;AAwCf,SAAS,eAAe,mBAA0D;AAChF,QAAO,WACL;EACE,MAAM;EACN,WAAW;GACT,WAAW,UAAmB,SAAS,MAAM,IAAI,MAAM,OAAO,MAAM;GACpE,gBAAgB,cACb,eAAe,GAAG,WAAW,qCAC9B,kBACD;GACF;EACF,EACD,kBACD"}
1
+ {"version":3,"file":"OutOfBandDidCommService.mjs","names":[],"sources":["../../../../src/modules/oob/domain/OutOfBandDidCommService.ts"],"sourcesContent":["import type { ResolvedDidCommService } from '@credo-ts/core'\nimport { CredoError, DidDocumentService, DidKey, IsUri, isDid, Kms } from '@credo-ts/core'\nimport type { ValidationOptions } from 'class-validator'\nimport { ArrayNotEmpty, buildMessage, IsOptional, IsString, isString, ValidateBy } from 'class-validator'\n\nexport class OutOfBandDidCommService extends DidDocumentService {\n public constructor(options: {\n id: string\n serviceEndpoint: string\n recipientKeys: string[]\n routingKeys?: string[]\n accept?: string[]\n }) {\n super({ ...options, type: OutOfBandDidCommService.type })\n\n if (options) {\n this.recipientKeys = options.recipientKeys\n this.routingKeys = options.routingKeys\n this.accept = options.accept\n }\n }\n\n public static type = 'did-communication'\n\n @IsString()\n @IsUri()\n public serviceEndpoint!: string\n\n @ArrayNotEmpty()\n @IsDidKeyString({ each: true })\n public recipientKeys!: string[]\n\n @IsDidKeyString({ each: true })\n @IsOptional()\n public routingKeys?: string[]\n\n @IsString({ each: true })\n @IsOptional()\n public accept?: string[]\n\n public get resolvedDidCommService(): ResolvedDidCommService {\n return {\n id: this.id,\n recipientKeys: this.recipientKeys.map((didKey) => {\n const publicJwk = DidKey.fromDid(didKey).publicJwk\n if (!publicJwk.is(Kms.Ed25519PublicJwk)) {\n throw new CredoError('Expected recipient key for didcomm service to be of type Ed25519')\n }\n\n return publicJwk\n }),\n routingKeys:\n this.routingKeys?.map((didKey) => {\n const publicJwk = DidKey.fromDid(didKey).publicJwk\n if (!publicJwk.is(Kms.Ed25519PublicJwk)) {\n throw new CredoError('Expected recipient key for didcomm service to be of type Ed25519')\n }\n\n return publicJwk\n }) ?? [],\n serviceEndpoint: this.serviceEndpoint,\n }\n }\n\n public static fromResolvedDidCommService(service: ResolvedDidCommService) {\n return new OutOfBandDidCommService({\n id: service.id,\n recipientKeys: service.recipientKeys.map((key) => new DidKey(key).did),\n routingKeys: service.routingKeys.map((key) => new DidKey(key).did),\n serviceEndpoint: service.serviceEndpoint,\n })\n }\n}\n\n/**\n * Checks if a given value is a did:key did string\n */\nfunction IsDidKeyString(validationOptions?: ValidationOptions): PropertyDecorator {\n return ValidateBy(\n {\n name: 'isDidKeyString',\n validator: {\n validate: (value): boolean => isString(value) && isDid(value, 'key'),\n defaultMessage: buildMessage(\n (eachPrefix) => `${eachPrefix}$property must be a did:key string`,\n validationOptions\n ),\n },\n },\n validationOptions\n )\n}\n"],"mappings":";;;;;;AAKA,IAAa,0BAAb,MAAa,gCAAgC,mBAAmB;CAC9D,AAAO,YAAY,SAMhB;AACD,QAAM;GAAE,GAAG;GAAS,MAAM,wBAAwB;GAAM,CAAC;AAEzD,MAAI,SAAS;AACX,QAAK,gBAAgB,QAAQ;AAC7B,QAAK,cAAc,QAAQ;AAC3B,QAAK,SAAS,QAAQ;;;CAsB1B,IAAW,yBAAiD;AAC1D,SAAO;GACL,IAAI,KAAK;GACT,eAAe,KAAK,cAAc,KAAK,WAAW;IAChD,MAAM,YAAY,OAAO,QAAQ,OAAO,CAAC;AACzC,QAAI,CAAC,UAAU,GAAG,IAAI,iBAAiB,CACrC,OAAM,IAAI,WAAW,mEAAmE;AAG1F,WAAO;KACP;GACF,aACE,KAAK,aAAa,KAAK,WAAW;IAChC,MAAM,YAAY,OAAO,QAAQ,OAAO,CAAC;AACzC,QAAI,CAAC,UAAU,GAAG,IAAI,iBAAiB,CACrC,OAAM,IAAI,WAAW,mEAAmE;AAG1F,WAAO;KACP,IAAI,EAAE;GACV,iBAAiB,KAAK;GACvB;;CAGH,OAAc,2BAA2B,SAAiC;AACxE,SAAO,IAAI,wBAAwB;GACjC,IAAI,QAAQ;GACZ,eAAe,QAAQ,cAAc,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,IAAI;GACtE,aAAa,QAAQ,YAAY,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,IAAI;GAClE,iBAAiB,QAAQ;GAC1B,CAAC;;;wBAhDU,OAAO;;CAEpB,UAAU;CACV,OAAO;;;;CAGP,eAAe;CACf,eAAe,EAAE,MAAM,MAAM,CAAC;;;;CAG9B,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,YAAY;;;;CAGZ,SAAS,EAAE,MAAM,MAAM,CAAC;CACxB,YAAY;;;;;;AAwCf,SAAS,eAAe,mBAA0D;AAChF,QAAO,WACL;EACE,MAAM;EACN,WAAW;GACT,WAAW,UAAmB,SAAS,MAAM,IAAI,MAAM,OAAO,MAAM;GACpE,gBAAgB,cACb,eAAe,GAAG,WAAW,qCAC9B,kBACD;GACF;EACF,EACD,kBACD"}
@@ -1,4 +1,4 @@
1
- const require_DidCommOutOfBandState = require('./DidCommOutOfBandState.js');
2
1
  const require_OutOfBandDidCommService = require('./OutOfBandDidCommService.js');
3
- const require_DidCommOutOfBandEvents = require('./DidCommOutOfBandEvents.js');
4
2
  const require_DidCommOutOfBandRole = require('./DidCommOutOfBandRole.js');
3
+ const require_DidCommOutOfBandEvents = require('./DidCommOutOfBandEvents.js');
4
+ const require_DidCommOutOfBandState = require('./DidCommOutOfBandState.js');
@@ -1,4 +1,4 @@
1
- import { DidCommOutOfBandState } from "./DidCommOutOfBandState.mjs";
2
1
  import { OutOfBandDidCommService } from "./OutOfBandDidCommService.mjs";
3
- import { DidCommOutOfBandEventTypes } from "./DidCommOutOfBandEvents.mjs";
4
2
  import { DidCommOutOfBandRole } from "./DidCommOutOfBandRole.mjs";
3
+ import { DidCommOutOfBandEventTypes } from "./DidCommOutOfBandEvents.mjs";
4
+ import { DidCommOutOfBandState } from "./DidCommOutOfBandState.mjs";
@@ -1,6 +1,6 @@
1
+ const require_DidCommHandshakeReuseMessage = require('../messages/DidCommHandshakeReuseMessage.js');
1
2
  const require_DidCommOutboundMessageContext = require('../../../models/DidCommOutboundMessageContext.js');
2
3
  require('../../../models/index.js');
3
- const require_DidCommHandshakeReuseMessage = require('../messages/DidCommHandshakeReuseMessage.js');
4
4
 
5
5
  //#region src/modules/oob/handlers/DidCommHandshakeReuseHandler.ts
6
6
  var DidCommHandshakeReuseHandler = class {
@@ -1,6 +1,6 @@
1
+ import { DidCommHandshakeReuseMessage } from "../messages/DidCommHandshakeReuseMessage.mjs";
1
2
  import { DidCommOutboundMessageContext } from "../../../models/DidCommOutboundMessageContext.mjs";
2
3
  import "../../../models/index.mjs";
3
- import { DidCommHandshakeReuseMessage } from "../messages/DidCommHandshakeReuseMessage.mjs";
4
4
 
5
5
  //#region src/modules/oob/handlers/DidCommHandshakeReuseHandler.ts
6
6
  var DidCommHandshakeReuseHandler = class {
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommHandshakeReuseHandler.mjs","names":[],"sources":["../../../../src/modules/oob/handlers/DidCommHandshakeReuseHandler.ts"],"sourcesContent":["import type { DidCommMessageHandler } from '../../../handlers'\nimport type { DidCommInboundMessageContext } from '../../../models'\nimport type { DidCommOutOfBandService } from '../DidCommOutOfBandService'\n\nimport { DidCommOutboundMessageContext } from '../../../models'\nimport { DidCommHandshakeReuseMessage } from '../messages/DidCommHandshakeReuseMessage'\n\nexport class DidCommHandshakeReuseHandler implements DidCommMessageHandler {\n public supportedMessages = [DidCommHandshakeReuseMessage]\n private outOfBandService: DidCommOutOfBandService\n\n public constructor(outOfBandService: DidCommOutOfBandService) {\n this.outOfBandService = outOfBandService\n }\n\n public async handle(messageContext: DidCommInboundMessageContext<DidCommHandshakeReuseMessage>) {\n const connectionRecord = messageContext.assertReadyConnection()\n const handshakeReuseAcceptedMessage = await this.outOfBandService.processHandshakeReuse(messageContext)\n\n return new DidCommOutboundMessageContext(handshakeReuseAcceptedMessage, {\n agentContext: messageContext.agentContext,\n connection: connectionRecord,\n })\n }\n}\n"],"mappings":";;;;;AAOA,IAAa,+BAAb,MAA2E;CAIzE,AAAO,YAAY,kBAA2C;OAHvD,oBAAoB,CAAC,6BAA6B;AAIvD,OAAK,mBAAmB;;CAG1B,MAAa,OAAO,gBAA4E;EAC9F,MAAM,mBAAmB,eAAe,uBAAuB;AAG/D,SAAO,IAAI,8BAF2B,MAAM,KAAK,iBAAiB,sBAAsB,eAAe,EAE/B;GACtE,cAAc,eAAe;GAC7B,YAAY;GACb,CAAC"}
1
+ {"version":3,"file":"DidCommHandshakeReuseHandler.mjs","names":[],"sources":["../../../../src/modules/oob/handlers/DidCommHandshakeReuseHandler.ts"],"sourcesContent":["import type { DidCommMessageHandler } from '../../../handlers'\nimport type { DidCommInboundMessageContext } from '../../../models'\nimport { DidCommOutboundMessageContext } from '../../../models'\nimport type { DidCommOutOfBandService } from '../DidCommOutOfBandService'\nimport { DidCommHandshakeReuseMessage } from '../messages/DidCommHandshakeReuseMessage'\n\nexport class DidCommHandshakeReuseHandler implements DidCommMessageHandler {\n public supportedMessages = [DidCommHandshakeReuseMessage]\n private outOfBandService: DidCommOutOfBandService\n\n public constructor(outOfBandService: DidCommOutOfBandService) {\n this.outOfBandService = outOfBandService\n }\n\n public async handle(messageContext: DidCommInboundMessageContext<DidCommHandshakeReuseMessage>) {\n const connectionRecord = messageContext.assertReadyConnection()\n const handshakeReuseAcceptedMessage = await this.outOfBandService.processHandshakeReuse(messageContext)\n\n return new DidCommOutboundMessageContext(handshakeReuseAcceptedMessage, {\n agentContext: messageContext.agentContext,\n connection: connectionRecord,\n })\n }\n}\n"],"mappings":";;;;;AAMA,IAAa,+BAAb,MAA2E;CAIzE,AAAO,YAAY,kBAA2C;OAHvD,oBAAoB,CAAC,6BAA6B;AAIvD,OAAK,mBAAmB;;CAG1B,MAAa,OAAO,gBAA4E;EAC9F,MAAM,mBAAmB,eAAe,uBAAuB;AAG/D,SAAO,IAAI,8BAF2B,MAAM,KAAK,iBAAiB,sBAAsB,eAAe,EAE/B;GACtE,cAAc,eAAe;GAC7B,YAAY;GACb,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.mjs","names":[],"sources":["../../../src/modules/oob/helpers.ts"],"sourcesContent":["import type { OutOfBandDidCommService } from './domain/OutOfBandDidCommService'\n\nimport {\n DidCommV1Service,\n DidDocumentBuilder,\n DidKey,\n createPeerDidDocumentFromServices,\n didDocumentToNumAlgo2Did,\n didKeyToEd25519PublicJwk,\n} from '@credo-ts/core'\n\n// This method is kept to support searching for existing connections created by\n// credo-ts <= 0.5.1\n// TODO: Remove in 0.6.0 (when DidCommConnectionRecord.invitationDid will be migrated)\nexport function outOfBandServiceToInlineKeysNumAlgo2Did(service: OutOfBandDidCommService) {\n const didDocument = new DidDocumentBuilder('')\n .addService(\n new DidCommV1Service({\n id: service.id,\n serviceEndpoint: service.serviceEndpoint,\n accept: service.accept,\n recipientKeys: service.recipientKeys.map((recipientKey) => {\n const did = DidKey.fromDid(recipientKey)\n return `${did.did}#${did.publicJwk.fingerprint}`\n }),\n // Map did:key:xxx to actual did:key:xxx#123\n routingKeys: service.routingKeys?.map((routingKey) => {\n const did = DidKey.fromDid(routingKey)\n return `${did.did}#${did.publicJwk.fingerprint}`\n }),\n })\n )\n .build()\n\n const did = didDocumentToNumAlgo2Did(didDocument)\n\n return did\n}\n\nexport function outOfBandServiceToNumAlgo2Did(service: OutOfBandDidCommService) {\n const { didDocument } = createPeerDidDocumentFromServices(\n [\n {\n id: service.id,\n recipientKeys: service.recipientKeys.map(didKeyToEd25519PublicJwk),\n serviceEndpoint: service.serviceEndpoint,\n routingKeys: service.routingKeys?.map(didKeyToEd25519PublicJwk) ?? [],\n },\n ],\n false\n )\n\n const did = didDocumentToNumAlgo2Did(didDocument)\n\n return did\n}\n"],"mappings":";;;AAcA,SAAgB,wCAAwC,SAAkC;AAsBxF,QAFY,yBAnBQ,IAAI,mBAAmB,GAAG,CAC3C,WACC,IAAI,iBAAiB;EACnB,IAAI,QAAQ;EACZ,iBAAiB,QAAQ;EACzB,QAAQ,QAAQ;EAChB,eAAe,QAAQ,cAAc,KAAK,iBAAiB;GACzD,MAAM,MAAM,OAAO,QAAQ,aAAa;AACxC,UAAO,GAAG,IAAI,IAAI,GAAG,IAAI,UAAU;IACnC;EAEF,aAAa,QAAQ,aAAa,KAAK,eAAe;GACpD,MAAM,MAAM,OAAO,QAAQ,WAAW;AACtC,UAAO,GAAG,IAAI,IAAI,GAAG,IAAI,UAAU;IACnC;EACH,CAAC,CACH,CACA,OAAO,CAEuC;;AAKnD,SAAgB,8BAA8B,SAAkC;CAC9E,MAAM,EAAE,gBAAgB,kCACtB,CACE;EACE,IAAI,QAAQ;EACZ,eAAe,QAAQ,cAAc,IAAI,yBAAyB;EAClE,iBAAiB,QAAQ;EACzB,aAAa,QAAQ,aAAa,IAAI,yBAAyB,IAAI,EAAE;EACtE,CACF,EACD,MACD;AAID,QAFY,yBAAyB,YAAY"}
1
+ {"version":3,"file":"helpers.mjs","names":[],"sources":["../../../src/modules/oob/helpers.ts"],"sourcesContent":["import {\n createPeerDidDocumentFromServices,\n DidCommV1Service,\n DidDocumentBuilder,\n DidKey,\n didDocumentToNumAlgo2Did,\n didKeyToEd25519PublicJwk,\n} from '@credo-ts/core'\nimport type { OutOfBandDidCommService } from './domain/OutOfBandDidCommService'\n\n// This method is kept to support searching for existing connections created by\n// credo-ts <= 0.5.1\n// TODO: Remove in 0.6.0 (when DidCommConnectionRecord.invitationDid will be migrated)\nexport function outOfBandServiceToInlineKeysNumAlgo2Did(service: OutOfBandDidCommService) {\n const didDocument = new DidDocumentBuilder('')\n .addService(\n new DidCommV1Service({\n id: service.id,\n serviceEndpoint: service.serviceEndpoint,\n accept: service.accept,\n recipientKeys: service.recipientKeys.map((recipientKey) => {\n const did = DidKey.fromDid(recipientKey)\n return `${did.did}#${did.publicJwk.fingerprint}`\n }),\n // Map did:key:xxx to actual did:key:xxx#123\n routingKeys: service.routingKeys?.map((routingKey) => {\n const did = DidKey.fromDid(routingKey)\n return `${did.did}#${did.publicJwk.fingerprint}`\n }),\n })\n )\n .build()\n\n const did = didDocumentToNumAlgo2Did(didDocument)\n\n return did\n}\n\nexport function outOfBandServiceToNumAlgo2Did(service: OutOfBandDidCommService) {\n const { didDocument } = createPeerDidDocumentFromServices(\n [\n {\n id: service.id,\n recipientKeys: service.recipientKeys.map(didKeyToEd25519PublicJwk),\n serviceEndpoint: service.serviceEndpoint,\n routingKeys: service.routingKeys?.map(didKeyToEd25519PublicJwk) ?? [],\n },\n ],\n false\n )\n\n const did = didDocumentToNumAlgo2Did(didDocument)\n\n return did\n}\n"],"mappings":";;;AAaA,SAAgB,wCAAwC,SAAkC;AAsBxF,QAFY,yBAnBQ,IAAI,mBAAmB,GAAG,CAC3C,WACC,IAAI,iBAAiB;EACnB,IAAI,QAAQ;EACZ,iBAAiB,QAAQ;EACzB,QAAQ,QAAQ;EAChB,eAAe,QAAQ,cAAc,KAAK,iBAAiB;GACzD,MAAM,MAAM,OAAO,QAAQ,aAAa;AACxC,UAAO,GAAG,IAAI,IAAI,GAAG,IAAI,UAAU;IACnC;EAEF,aAAa,QAAQ,aAAa,KAAK,eAAe;GACpD,MAAM,MAAM,OAAO,QAAQ,WAAW;AACtC,UAAO,GAAG,IAAI,IAAI,GAAG,IAAI,UAAU;IACnC;EACH,CAAC,CACH,CACA,OAAO,CAEuC;;AAKnD,SAAgB,8BAA8B,SAAkC;CAC9E,MAAM,EAAE,gBAAgB,kCACtB,CACE;EACE,IAAI,QAAQ;EACZ,eAAe,QAAQ,cAAc,IAAI,yBAAyB;EAClE,iBAAiB,QAAQ;EACzB,aAAa,QAAQ,aAAa,IAAI,yBAAyB,IAAI,EAAE;EACtE,CACF,EACD,MACD;AAID,QAFY,yBAAyB,YAAY"}
@@ -1,13 +1,13 @@
1
- const require_DidCommOutOfBandState = require('./domain/DidCommOutOfBandState.js');
2
1
  const require_OutOfBandDidCommService = require('./domain/OutOfBandDidCommService.js');
3
- const require_DidCommOutOfBandEvents = require('./domain/DidCommOutOfBandEvents.js');
4
2
  const require_DidCommOutOfBandRole = require('./domain/DidCommOutOfBandRole.js');
5
- const require_DidCommOutOfBandInvitation = require('./messages/DidCommOutOfBandInvitation.js');
6
3
  const require_DidCommHandshakeReuseAcceptedMessage = require('./messages/DidCommHandshakeReuseAcceptedMessage.js');
7
4
  const require_DidCommHandshakeReuseMessage = require('./messages/DidCommHandshakeReuseMessage.js');
5
+ const require_DidCommOutOfBandInvitation = require('./messages/DidCommOutOfBandInvitation.js');
8
6
  require('./messages/index.js');
9
7
  const require_DidCommOutOfBandRecord = require('./repository/DidCommOutOfBandRecord.js');
10
8
  const require_DidCommOutOfBandRepository = require('./repository/DidCommOutOfBandRepository.js');
9
+ const require_DidCommOutOfBandEvents = require('./domain/DidCommOutOfBandEvents.js');
10
+ const require_DidCommOutOfBandState = require('./domain/DidCommOutOfBandState.js');
11
11
  require('./repository/index.js');
12
12
  const require_DidCommOutOfBandService = require('./DidCommOutOfBandService.js');
13
13
  const require_DidCommOutOfBandApi = require('./DidCommOutOfBandApi.js');
@@ -1,13 +1,13 @@
1
- import { DidCommOutOfBandState } from "./domain/DidCommOutOfBandState.mjs";
2
1
  import { OutOfBandDidCommService } from "./domain/OutOfBandDidCommService.mjs";
3
- import { DidCommOutOfBandEventTypes } from "./domain/DidCommOutOfBandEvents.mjs";
4
2
  import { DidCommOutOfBandRole } from "./domain/DidCommOutOfBandRole.mjs";
5
- import { DidCommInvitationType, DidCommOutOfBandInvitation } from "./messages/DidCommOutOfBandInvitation.mjs";
6
3
  import { DidCommHandshakeReuseAcceptedMessage } from "./messages/DidCommHandshakeReuseAcceptedMessage.mjs";
7
4
  import { DidCommHandshakeReuseMessage } from "./messages/DidCommHandshakeReuseMessage.mjs";
5
+ import { DidCommInvitationType, DidCommOutOfBandInvitation } from "./messages/DidCommOutOfBandInvitation.mjs";
8
6
  import "./messages/index.mjs";
9
7
  import { DidCommOutOfBandRecord } from "./repository/DidCommOutOfBandRecord.mjs";
10
8
  import { DidCommOutOfBandRepository } from "./repository/DidCommOutOfBandRepository.mjs";
9
+ import { DidCommOutOfBandEventTypes } from "./domain/DidCommOutOfBandEvents.mjs";
10
+ import { DidCommOutOfBandState } from "./domain/DidCommOutOfBandState.mjs";
11
11
  import "./repository/index.mjs";
12
12
  import { DidCommOutOfBandService } from "./DidCommOutOfBandService.mjs";
13
13
  import { DidCommOutOfBandApi } from "./DidCommOutOfBandApi.mjs";
@@ -1,6 +1,6 @@
1
- const require_decorateMetadata = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
2
1
  const require_decorate = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
3
2
  const require_messageType = require('../../../util/messageType.js');
3
+ const require_decorateMetadata = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
4
4
  const require_DidCommMessage = require('../../../DidCommMessage.js');
5
5
 
6
6
  //#region src/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.ts
@@ -1,6 +1,6 @@
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";
3
2
  import { IsValidMessageType, parseMessageType } from "../../../util/messageType.mjs";
3
+ import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
4
4
  import { DidCommMessage } from "../../../DidCommMessage.mjs";
5
5
 
6
6
  //#region src/modules/oob/messages/DidCommHandshakeReuseAcceptedMessage.ts
@@ -1,6 +1,6 @@
1
- const require_decorateMetadata = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
2
1
  const require_decorate = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
3
2
  const require_messageType = require('../../../util/messageType.js');
3
+ const require_decorateMetadata = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
4
4
  const require_DidCommMessage = require('../../../DidCommMessage.js');
5
5
 
6
6
  //#region src/modules/oob/messages/DidCommHandshakeReuseMessage.ts
@@ -1,6 +1,6 @@
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";
3
2
  import { IsValidMessageType, parseMessageType } from "../../../util/messageType.mjs";
3
+ import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
4
4
  import { DidCommMessage } from "../../../DidCommMessage.mjs";
5
5
 
6
6
  //#region src/modules/oob/messages/DidCommHandshakeReuseMessage.ts
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommOutOfBandInvitation.d.mts","names":[],"sources":["../../../../src/modules/oob/messages/DidCommOutOfBandInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAgBY,aAAA,qBAAA;EAMK,SAAA,GAAA,iBAAA;EAAiC,UAAA,GAAA,iBAAA;gBAOhC,GAAA,gBAAA;;AAEM,UATP,iCAAA,CASO;EAAiB,EAAA,CAAA,EAAA,MAAA;EAG5B,KAAA,CAAA,EAAA,MAAA;EAA2B,QAAA,CAAA,EAAA,MAAA;MACV,CAAA,EAAA,MAAA;QAqBJ,CAAA,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;;;;;yCA+CjB;wBAcd,0BAAuB;;iBAgB9B,MAAM;oBAMH;uBAIG,MAAM;;wBAAD"}
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommOutOfBandInvitation.d.ts","names":[],"sources":["../../../../src/modules/oob/messages/DidCommOutOfBandInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAgBY,aAAA,qBAAA;EAMK,SAAA,GAAA,iBAAA;EAAiC,UAAA,GAAA,iBAAA;gBAOhC,GAAA,gBAAA;;AAEM,UATP,iCAAA,CASO;EAAiB,EAAA,CAAA,EAAA,MAAA;EAG5B,KAAA,CAAA,EAAA,MAAA;EAA2B,QAAA,CAAA,EAAA,MAAA;MACV,CAAA,EAAA,MAAA;QAqBJ,CAAA,EAAA,MAAA,EAAA;oBAEG,CAAA,EAAA,MAAA,EAAA;UAYL,EAzCZ,KAyCY,CAzCN,uBAyCM,GAAA,MAAA,CAAA;UAIP,CAAA,EAAA,MAAA;qBAO4B,CAAA,EAlDrB,iBAkDqB,EAAA;;AAcS,cA7DzC,0BAAA,SAAmC,cAAA,CA6DM;aAgBxB,CAAA,OAAA,EA5EA,iCA4EA;;;;;gBAUK,CAAA,EAjET,qBAiES;YAvFa,CAAA,OAAA,EAwBnB,cAxBmB,CAAA,EAAA,IAAA;EAAc,WAAA,CAAA,CAAA,EAoCtC,uBApCsC,EAAA,GAAA,SAAA;;;;;;yCA+CjB;wBAcd,0BAAuB;;iBAgB9B,MAAM;oBAMH;uBAIG,MAAM;;wBAAD"}
1
+ {"version":3,"file":"DidCommOutOfBandInvitation.d.ts","names":[],"sources":["../../../../src/modules/oob/messages/DidCommOutOfBandInvitation.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAcY,aAAA,qBAAA;EAMK,SAAA,GAAA,iBAAA;EAAiC,UAAA,GAAA,iBAAA;gBAOhC,GAAA,gBAAA;;AAEM,UATP,iCAAA,CASO;EAAiB,EAAA,CAAA,EAAA,MAAA;EAG5B,KAAA,CAAA,EAAA,MAAA;EAA2B,QAAA,CAAA,EAAA,MAAA;MACV,CAAA,EAAA,MAAA;QAqBJ,CAAA,EAAA,MAAA,EAAA;oBAEG,CAAA,EAAA,MAAA,EAAA;UAYL,EAzCZ,KAyCY,CAzCN,uBAyCM,GAAA,MAAA,CAAA;UAIP,CAAA,EAAA,MAAA;qBAO4B,CAAA,EAlDrB,iBAkDqB,EAAA;;AAcS,cA7DzC,0BAAA,SAAmC,cAAA,CA6DM;aAgBxB,CAAA,OAAA,EA5EA,iCA4EA;;;;;gBAUK,CAAA,EAjET,qBAiES;YAvFa,CAAA,OAAA,EAwBnB,cAxBmB,CAAA,EAAA,IAAA;EAAc,WAAA,CAAA,CAAA,EAoCtC,uBApCsC,EAAA,GAAA,SAAA;;;;;;yCA+CjB;wBAcd,0BAAuB;;iBAgB9B,MAAM;oBAMH;uBAIG,MAAM;;wBAAD"}
@@ -1,17 +1,17 @@
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');
4
- const require_DidCommAttachment = require('../../../decorators/attachment/DidCommAttachment.js');
5
3
  const require_messageType = require('../../../util/messageType.js');
6
- const require_DidCommMessage = require('../../../DidCommMessage.js');
4
+ const require_decorateMetadata = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
7
5
  const require_OutOfBandDidCommService = require('../domain/OutOfBandDidCommService.js');
6
+ const require_DidCommAttachment = require('../../../decorators/attachment/DidCommAttachment.js');
7
+ const require_DidCommMessage = require('../../../DidCommMessage.js');
8
8
  const require_helpers = require('../helpers.js');
9
9
  let __credo_ts_core = require("@credo-ts/core");
10
10
  __credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
11
- let class_transformer = require("class-transformer");
12
- class_transformer = require_rolldown_runtime.__toESM(class_transformer);
13
11
  let class_validator = require("class-validator");
14
12
  class_validator = require_rolldown_runtime.__toESM(class_validator);
13
+ let class_transformer = require("class-transformer");
14
+ class_transformer = require_rolldown_runtime.__toESM(class_transformer);
15
15
  let query_string = require("query-string");
16
16
  query_string = require_rolldown_runtime.__toESM(query_string);
17
17
 
@@ -59,7 +59,7 @@ var DidCommOutOfBandInvitation = class DidCommOutOfBandInvitation extends requir
59
59
  return `${domain}?oob=${__credo_ts_core.JsonEncoder.toBase64URL(invitationJson)}`;
60
60
  }
61
61
  static fromUrl(invitationUrl) {
62
- const encodedInvitation = (0, query_string.parseUrl)(invitationUrl).query.oob;
62
+ const encodedInvitation = query_string.default.parseUrl(invitationUrl).query.oob;
63
63
  if (typeof encodedInvitation === "string") {
64
64
  const invitationJson = __credo_ts_core.JsonEncoder.fromBase64(encodedInvitation);
65
65
  return DidCommOutOfBandInvitation.fromJson(invitationJson);
@@ -1,14 +1,14 @@
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";
3
- import { DidCommAttachment, DidCommAttachmentData } from "../../../decorators/attachment/DidCommAttachment.mjs";
4
2
  import { IsValidMessageType, parseMessageType, replaceLegacyDidSovPrefix } from "../../../util/messageType.mjs";
5
- import { DidCommMessage } from "../../../DidCommMessage.mjs";
3
+ import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
6
4
  import { OutOfBandDidCommService } from "../domain/OutOfBandDidCommService.mjs";
5
+ import { DidCommAttachment, DidCommAttachmentData } from "../../../decorators/attachment/DidCommAttachment.mjs";
6
+ import { DidCommMessage } from "../../../DidCommMessage.mjs";
7
7
  import { outOfBandServiceToNumAlgo2Did } from "../helpers.mjs";
8
8
  import { CredoError, IsStringOrInstance, JsonEncoder, JsonTransformer } from "@credo-ts/core";
9
- import { Exclude, Expose, Transform, TransformationType, Type } from "class-transformer";
10
9
  import { ArrayNotEmpty, IsArray, IsInstance, IsOptional, IsUrl, ValidateNested } from "class-validator";
11
- import { parseUrl } from "query-string";
10
+ import { Exclude, Expose, Transform, TransformationType, Type } from "class-transformer";
11
+ import queryString from "query-string";
12
12
 
13
13
  //#region src/modules/oob/messages/DidCommOutOfBandInvitation.ts
14
14
  var _ref, _ref2;
@@ -54,7 +54,7 @@ var DidCommOutOfBandInvitation = class DidCommOutOfBandInvitation extends DidCom
54
54
  return `${domain}?oob=${JsonEncoder.toBase64URL(invitationJson)}`;
55
55
  }
56
56
  static fromUrl(invitationUrl) {
57
- const encodedInvitation = parseUrl(invitationUrl).query.oob;
57
+ const encodedInvitation = queryString.parseUrl(invitationUrl).query.oob;
58
58
  if (typeof encodedInvitation === "string") {
59
59
  const invitationJson = JsonEncoder.fromBase64(encodedInvitation);
60
60
  return DidCommOutOfBandInvitation.fromJson(invitationJson);
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommOutOfBandInvitation.mjs","names":[],"sources":["../../../../src/modules/oob/messages/DidCommOutOfBandInvitation.ts"],"sourcesContent":["import type { DidCommPlaintextMessage } from '../../../types'\n\nimport { CredoError, IsStringOrInstance, JsonEncoder, JsonTransformer } from '@credo-ts/core'\nimport { Exclude, Expose, Transform, TransformationType, Type } from 'class-transformer'\nimport { ArrayNotEmpty, IsArray, IsInstance, IsOptional, IsUrl, ValidateNested } from 'class-validator'\nimport { parseUrl } from 'query-string'\n\nimport { DidCommMessage } from '../../../DidCommMessage'\nimport { DidCommAttachment, DidCommAttachmentData } from '../../../decorators/attachment/DidCommAttachment'\nimport { IsValidMessageType, parseMessageType, replaceLegacyDidSovPrefix } from '../../../util/messageType'\nimport { OutOfBandDidCommService } from '../domain/OutOfBandDidCommService'\nimport { outOfBandServiceToNumAlgo2Did } from '../helpers'\n\n/**\n * The original invitation an out of band invitation was derived from.\n */\nexport enum DidCommInvitationType {\n OutOfBand = 'out-of-band/1.x',\n Connection = 'connections/1.x',\n Connectionless = 'connectionless',\n}\n\nexport interface DidCommOutOfBandInvitationOptions {\n id?: string\n label?: string\n goalCode?: string\n goal?: string\n accept?: string[]\n handshakeProtocols?: string[]\n services: Array<OutOfBandDidCommService | string>\n imageUrl?: string\n appendedAttachments?: DidCommAttachment[]\n}\n\nexport class DidCommOutOfBandInvitation extends DidCommMessage {\n public constructor(options: DidCommOutOfBandInvitationOptions) {\n super()\n\n if (options) {\n this.id = options.id ?? this.generateId()\n this.label = options.label\n this.goalCode = options.goalCode\n this.goal = options.goal\n this.accept = options.accept\n this.handshakeProtocols = options.handshakeProtocols\n this.services = options.services\n this.imageUrl = options.imageUrl\n this.appendedAttachments = options.appendedAttachments\n }\n }\n\n /**\n * The original type of the invitation. This is not part of the RFC, but allows to identify\n * from what the oob invitation was originally created (e.g. legacy connectionless invitation).\n */\n @Exclude()\n public invitationType?: DidCommInvitationType\n\n public addRequest(message: DidCommMessage) {\n if (!this.requests) this.requests = []\n const requestAttachment = new DidCommAttachment({\n id: this.generateId(),\n mimeType: 'application/json',\n data: new DidCommAttachmentData({\n base64: JsonEncoder.toBase64(message.toJSON()),\n }),\n })\n this.requests.push(requestAttachment)\n }\n\n public getRequests(): DidCommPlaintextMessage[] | undefined {\n return this.requests?.map((request) => request.getDataAsJson())\n }\n\n public toUrl({ domain }: { domain: string }) {\n const invitationJson = this.toJSON()\n const encodedInvitation = JsonEncoder.toBase64URL(invitationJson)\n const invitationUrl = `${domain}?oob=${encodedInvitation}`\n return invitationUrl\n }\n\n public static fromUrl(invitationUrl: string) {\n const parsedUrl = parseUrl(invitationUrl).query\n const encodedInvitation = parsedUrl.oob\n if (typeof encodedInvitation === 'string') {\n const invitationJson = JsonEncoder.fromBase64(encodedInvitation)\n const invitation = DidCommOutOfBandInvitation.fromJson(invitationJson)\n\n return invitation\n }\n throw new CredoError(\n 'InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters; `oob`'\n )\n }\n\n public static fromJson(json: Record<string, unknown>) {\n return JsonTransformer.fromJSON(json, DidCommOutOfBandInvitation)\n }\n\n public get invitationDids() {\n const dids = this.getServices().map((didOrService) => {\n if (typeof didOrService === 'string') {\n return didOrService\n }\n return outOfBandServiceToNumAlgo2Did(didOrService)\n })\n return dids\n }\n\n // shorthand for services without the need to deal with the String DIDs\n\n public getServices(): Array<OutOfBandDidCommService | string> {\n return this.services.map((service) => {\n if (service instanceof String) return service.toString()\n return service\n })\n }\n public getDidServices(): Array<string> {\n return this.getServices().filter((service): service is string => typeof service === 'string')\n }\n\n public getInlineServices(): Array<OutOfBandDidCommService> {\n return this.getServices().filter((service): service is OutOfBandDidCommService => typeof service !== 'string')\n }\n\n @Transform(({ value }) => replaceLegacyDidSovPrefix(value), {\n toClassOnly: true,\n })\n @IsValidMessageType(DidCommOutOfBandInvitation.type)\n public readonly type = DidCommOutOfBandInvitation.type.messageTypeUri\n public static readonly type = parseMessageType('https://didcomm.org/out-of-band/1.1/invitation')\n\n public readonly label?: string\n\n @Expose({ name: 'goal_code' })\n public readonly goalCode?: string\n\n public readonly goal?: string\n\n public readonly accept?: string[]\n @Transform(({ value }) => value?.map(replaceLegacyDidSovPrefix), { toClassOnly: true })\n @Expose({ name: 'handshake_protocols' })\n public handshakeProtocols?: string[]\n\n @Expose({ name: 'requests~attach' })\n @Type(() => DidCommAttachment)\n @IsArray()\n @ValidateNested({\n each: true,\n })\n @IsInstance(DidCommAttachment, { each: true })\n @IsOptional()\n private requests?: DidCommAttachment[]\n\n @IsArray()\n @ArrayNotEmpty()\n @OutOfBandServiceTransformer()\n @IsStringOrInstance(OutOfBandDidCommService, { each: true })\n private services!: Array<OutOfBandDidCommService | string | string>\n\n /**\n * Custom property. It is not part of the RFC.\n */\n @IsOptional()\n @IsUrl()\n public readonly imageUrl?: string\n}\n\n/**\n * Decorator that transforms services json to corresponding class instances\n * @note Because of ValidateNested limitation, this produces instances of String for DID services except plain js string\n */\nfunction OutOfBandServiceTransformer() {\n return Transform(({ value, type }: { value: Array<string | { type: string }>; type: TransformationType }) => {\n if (type === TransformationType.PLAIN_TO_CLASS) {\n return value.map((service) => {\n // did\n if (typeof service === 'string') return new String(service)\n\n // inline didcomm service\n return JsonTransformer.fromJSON(service, OutOfBandDidCommService)\n })\n }\n if (type === TransformationType.CLASS_TO_PLAIN) {\n return value.map((service) =>\n typeof service === 'string' || service instanceof String ? service.toString() : JsonTransformer.toJSON(service)\n )\n }\n\n // PLAIN_TO_PLAIN\n return value\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,IAAY,0EAAL;AACL;AACA;AACA;;;AAeF,IAAa,6BAAb,MAAa,mCAAmC,eAAe;CAC7D,AAAO,YAAY,SAA4C;AAC7D,SAAO;OA6FO,OAAO,2BAA2B,KAAK;AA3FrD,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,QAAQ,QAAQ;AACrB,QAAK,WAAW,QAAQ;AACxB,QAAK,OAAO,QAAQ;AACpB,QAAK,SAAS,QAAQ;AACtB,QAAK,qBAAqB,QAAQ;AAClC,QAAK,WAAW,QAAQ;AACxB,QAAK,WAAW,QAAQ;AACxB,QAAK,sBAAsB,QAAQ;;;CAWvC,AAAO,WAAW,SAAyB;AACzC,MAAI,CAAC,KAAK,SAAU,MAAK,WAAW,EAAE;EACtC,MAAM,oBAAoB,IAAI,kBAAkB;GAC9C,IAAI,KAAK,YAAY;GACrB,UAAU;GACV,MAAM,IAAI,sBAAsB,EAC9B,QAAQ,YAAY,SAAS,QAAQ,QAAQ,CAAC,EAC/C,CAAC;GACH,CAAC;AACF,OAAK,SAAS,KAAK,kBAAkB;;CAGvC,AAAO,cAAqD;AAC1D,SAAO,KAAK,UAAU,KAAK,YAAY,QAAQ,eAAe,CAAC;;CAGjE,AAAO,MAAM,EAAE,UAA8B;EAC3C,MAAM,iBAAiB,KAAK,QAAQ;AAGpC,SADsB,GAAG,OAAO,OADN,YAAY,YAAY,eAAe;;CAKnE,OAAc,QAAQ,eAAuB;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AAC;;;;CAM3D,YAAY;CACZ,OAAO;;;;;;;AAQV,SAAS,8BAA8B;AACrC,QAAO,WAAW,EAAE,OAAO,WAAkF;AAC3G,MAAI,SAAS,mBAAmB,eAC9B,QAAO,MAAM,KAAK,YAAY;AAE5B,OAAI,OAAO,YAAY,SAAU,QAAO,IAAI,OAAO,QAAQ;AAG3D,UAAO,gBAAgB,SAAS,SAAS,wBAAwB;IACjE;AAEJ,MAAI,SAAS,mBAAmB,eAC9B,QAAO,MAAM,KAAK,YAChB,OAAO,YAAY,YAAY,mBAAmB,SAAS,QAAQ,UAAU,GAAG,gBAAgB,OAAO,QAAQ,CAChH;AAIH,SAAO;GACP"}
1
+ {"version":3,"file":"DidCommOutOfBandInvitation.mjs","names":[],"sources":["../../../../src/modules/oob/messages/DidCommOutOfBandInvitation.ts"],"sourcesContent":["import { CredoError, IsStringOrInstance, JsonEncoder, JsonTransformer } from '@credo-ts/core'\nimport { Exclude, Expose, Transform, TransformationType, Type } from 'class-transformer'\nimport { ArrayNotEmpty, IsArray, IsInstance, IsOptional, IsUrl, ValidateNested } from 'class-validator'\nimport queryString from 'query-string'\nimport { DidCommMessage } from '../../../DidCommMessage'\nimport { DidCommAttachment, DidCommAttachmentData } from '../../../decorators/attachment/DidCommAttachment'\nimport type { DidCommPlaintextMessage } from '../../../types'\nimport { IsValidMessageType, parseMessageType, replaceLegacyDidSovPrefix } from '../../../util/messageType'\nimport { OutOfBandDidCommService } from '../domain/OutOfBandDidCommService'\nimport { outOfBandServiceToNumAlgo2Did } from '../helpers'\n\n/**\n * The original invitation an out of band invitation was derived from.\n */\nexport enum DidCommInvitationType {\n OutOfBand = 'out-of-band/1.x',\n Connection = 'connections/1.x',\n Connectionless = 'connectionless',\n}\n\nexport interface DidCommOutOfBandInvitationOptions {\n id?: string\n label?: string\n goalCode?: string\n goal?: string\n accept?: string[]\n handshakeProtocols?: string[]\n services: Array<OutOfBandDidCommService | string>\n imageUrl?: string\n appendedAttachments?: DidCommAttachment[]\n}\n\nexport class DidCommOutOfBandInvitation extends DidCommMessage {\n public constructor(options: DidCommOutOfBandInvitationOptions) {\n super()\n\n if (options) {\n this.id = options.id ?? this.generateId()\n this.label = options.label\n this.goalCode = options.goalCode\n this.goal = options.goal\n this.accept = options.accept\n this.handshakeProtocols = options.handshakeProtocols\n this.services = options.services\n this.imageUrl = options.imageUrl\n this.appendedAttachments = options.appendedAttachments\n }\n }\n\n /**\n * The original type of the invitation. This is not part of the RFC, but allows to identify\n * from what the oob invitation was originally created (e.g. legacy connectionless invitation).\n */\n @Exclude()\n public invitationType?: DidCommInvitationType\n\n public addRequest(message: DidCommMessage) {\n if (!this.requests) this.requests = []\n const requestAttachment = new DidCommAttachment({\n id: this.generateId(),\n mimeType: 'application/json',\n data: new DidCommAttachmentData({\n base64: JsonEncoder.toBase64(message.toJSON()),\n }),\n })\n this.requests.push(requestAttachment)\n }\n\n public getRequests(): DidCommPlaintextMessage[] | undefined {\n return this.requests?.map((request) => request.getDataAsJson())\n }\n\n public toUrl({ domain }: { domain: string }) {\n const invitationJson = this.toJSON()\n const encodedInvitation = JsonEncoder.toBase64URL(invitationJson)\n const invitationUrl = `${domain}?oob=${encodedInvitation}`\n return invitationUrl\n }\n\n public static fromUrl(invitationUrl: string) {\n const parsedUrl = queryString.parseUrl(invitationUrl).query\n const encodedInvitation = parsedUrl.oob\n if (typeof encodedInvitation === 'string') {\n const invitationJson = JsonEncoder.fromBase64(encodedInvitation)\n const invitation = DidCommOutOfBandInvitation.fromJson(invitationJson)\n\n return invitation\n }\n throw new CredoError(\n 'InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters; `oob`'\n )\n }\n\n public static fromJson(json: Record<string, unknown>) {\n return JsonTransformer.fromJSON(json, DidCommOutOfBandInvitation)\n }\n\n public get invitationDids() {\n const dids = this.getServices().map((didOrService) => {\n if (typeof didOrService === 'string') {\n return didOrService\n }\n return outOfBandServiceToNumAlgo2Did(didOrService)\n })\n return dids\n }\n\n // shorthand for services without the need to deal with the String DIDs\n\n public getServices(): Array<OutOfBandDidCommService | string> {\n return this.services.map((service) => {\n if (service instanceof String) return service.toString()\n return service\n })\n }\n public getDidServices(): Array<string> {\n return this.getServices().filter((service): service is string => typeof service === 'string')\n }\n\n public getInlineServices(): Array<OutOfBandDidCommService> {\n return this.getServices().filter((service): service is OutOfBandDidCommService => typeof service !== 'string')\n }\n\n @Transform(({ value }) => replaceLegacyDidSovPrefix(value), {\n toClassOnly: true,\n })\n @IsValidMessageType(DidCommOutOfBandInvitation.type)\n public readonly type = DidCommOutOfBandInvitation.type.messageTypeUri\n public static readonly type = parseMessageType('https://didcomm.org/out-of-band/1.1/invitation')\n\n public readonly label?: string\n\n @Expose({ name: 'goal_code' })\n public readonly goalCode?: string\n\n public readonly goal?: string\n\n public readonly accept?: string[]\n @Transform(({ value }) => value?.map(replaceLegacyDidSovPrefix), { toClassOnly: true })\n @Expose({ name: 'handshake_protocols' })\n public handshakeProtocols?: string[]\n\n @Expose({ name: 'requests~attach' })\n @Type(() => DidCommAttachment)\n @IsArray()\n @ValidateNested({\n each: true,\n })\n @IsInstance(DidCommAttachment, { each: true })\n @IsOptional()\n private requests?: DidCommAttachment[]\n\n @IsArray()\n @ArrayNotEmpty()\n @OutOfBandServiceTransformer()\n @IsStringOrInstance(OutOfBandDidCommService, { each: true })\n private services!: Array<OutOfBandDidCommService | string | string>\n\n /**\n * Custom property. It is not part of the RFC.\n */\n @IsOptional()\n @IsUrl()\n public readonly imageUrl?: string\n}\n\n/**\n * Decorator that transforms services json to corresponding class instances\n * @note Because of ValidateNested limitation, this produces instances of String for DID services except plain js string\n */\nfunction OutOfBandServiceTransformer() {\n return Transform(({ value, type }: { value: Array<string | { type: string }>; type: TransformationType }) => {\n if (type === TransformationType.PLAIN_TO_CLASS) {\n return value.map((service) => {\n // did\n if (typeof service === 'string') return new String(service)\n\n // inline didcomm service\n return JsonTransformer.fromJSON(service, OutOfBandDidCommService)\n })\n }\n if (type === TransformationType.CLASS_TO_PLAIN) {\n return value.map((service) =>\n typeof service === 'string' || service instanceof String ? service.toString() : JsonTransformer.toJSON(service)\n )\n }\n\n // PLAIN_TO_PLAIN\n return value\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAcA,IAAY,0EAAL;AACL;AACA;AACA;;;AAeF,IAAa,6BAAb,MAAa,mCAAmC,eAAe;CAC7D,AAAO,YAAY,SAA4C;AAC7D,SAAO;OA6FO,OAAO,2BAA2B,KAAK;AA3FrD,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,QAAQ,QAAQ;AACrB,QAAK,WAAW,QAAQ;AACxB,QAAK,OAAO,QAAQ;AACpB,QAAK,SAAS,QAAQ;AACtB,QAAK,qBAAqB,QAAQ;AAClC,QAAK,WAAW,QAAQ;AACxB,QAAK,WAAW,QAAQ;AACxB,QAAK,sBAAsB,QAAQ;;;CAWvC,AAAO,WAAW,SAAyB;AACzC,MAAI,CAAC,KAAK,SAAU,MAAK,WAAW,EAAE;EACtC,MAAM,oBAAoB,IAAI,kBAAkB;GAC9C,IAAI,KAAK,YAAY;GACrB,UAAU;GACV,MAAM,IAAI,sBAAsB,EAC9B,QAAQ,YAAY,SAAS,QAAQ,QAAQ,CAAC,EAC/C,CAAC;GACH,CAAC;AACF,OAAK,SAAS,KAAK,kBAAkB;;CAGvC,AAAO,cAAqD;AAC1D,SAAO,KAAK,UAAU,KAAK,YAAY,QAAQ,eAAe,CAAC;;CAGjE,AAAO,MAAM,EAAE,UAA8B;EAC3C,MAAM,iBAAiB,KAAK,QAAQ;AAGpC,SADsB,GAAG,OAAO,OADN,YAAY,YAAY,eAAe;;CAKnE,OAAc,QAAQ,eAAuB;EAE3C,MAAM,oBADY,YAAY,SAAS,cAAc,CAAC,MAClB;AACpC,MAAI,OAAO,sBAAsB,UAAU;GACzC,MAAM,iBAAiB,YAAY,WAAW,kBAAkB;AAGhE,UAFmB,2BAA2B,SAAS,eAAe;;AAIxE,QAAM,IAAI,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OAAO,YAAY,SAAU,QAAO,IAAI,OAAO,QAAQ;AAG3D,UAAO,gBAAgB,SAAS,SAAS,wBAAwB;IACjE;AAEJ,MAAI,SAAS,mBAAmB,eAC9B,QAAO,MAAM,KAAK,YAChB,OAAO,YAAY,YAAY,mBAAmB,SAAS,QAAQ,UAAU,GAAG,gBAAgB,OAAO,QAAQ,CAChH;AAIH,SAAO;GACP"}
@@ -1,3 +1,3 @@
1
- const require_DidCommOutOfBandInvitation = require('./DidCommOutOfBandInvitation.js');
2
1
  const require_DidCommHandshakeReuseAcceptedMessage = require('./DidCommHandshakeReuseAcceptedMessage.js');
3
2
  const require_DidCommHandshakeReuseMessage = require('./DidCommHandshakeReuseMessage.js');
3
+ const require_DidCommOutOfBandInvitation = require('./DidCommOutOfBandInvitation.js');
@@ -1,3 +1,3 @@
1
- import { DidCommInvitationType, DidCommOutOfBandInvitation } from "./DidCommOutOfBandInvitation.mjs";
2
1
  import { DidCommHandshakeReuseAcceptedMessage } from "./DidCommHandshakeReuseAcceptedMessage.mjs";
3
2
  import { DidCommHandshakeReuseMessage } from "./DidCommHandshakeReuseMessage.mjs";
3
+ import { DidCommInvitationType, DidCommOutOfBandInvitation } from "./DidCommOutOfBandInvitation.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommOutOfBandRecord.d.mts","names":[],"sources":["../../../../src/modules/oob/repository/DidCommOutOfBandRecord.ts"],"sourcesContent":[],"mappings":";;;;;;;UAWiB,gCAAA;EAAA,uBAAA,EAAA,MAAA;EAKZ,QAAA,EAAA,MAAA;;KAAA,iCAAA,GACG;MACC,EADD,oBACC;EAAqB,KAAA,EAArB,qBAAqB;EAUpB,YAAA,EAAA,MAAA;EAgBO,QAAA,CAAA,EAAA,MAAA;EAA2B;;;;6BAKrB,CAAA,EAAA,MAAA,EAAA;;UArBb,gCAAA,SAAyC,QAuB1C,CAAA;;;AAcT;;;0BAEE,EAAA,MAAA,EAAA;;;;;;gCAgB8B,CAAA,EAAA,MAAA;;UAvCf,2BAAA;;WA4EiB,CAAA,EA1EpB,IA0EoB;WAMG,CAAA,EA/EvB,IA+EuB;MAAwB,CAAA,EA9EpD,gCA8EoD;qBA7DjB,EAhBrB,0BAgBqB;EAAU,IAAA,EAf9C,oBAe8C;SAd7C;;;;;;;;;;gCAWuB;;cAGnB,sBAAA,SAA+B,WAC1C,mCACA,kCACA;uBAG6B;QACf;SACC;;;;;;;;;gCAUe,MAAM;;;qBAKV;;;;;;;;;;;;;;;;;;;;2BAgCM;8BAMG,wBAAwB"}
1
+ {"version":3,"file":"DidCommOutOfBandRecord.d.mts","names":[],"sources":["../../../../src/modules/oob/repository/DidCommOutOfBandRecord.ts"],"sourcesContent":[],"mappings":";;;;;;;UASiB,gCAAA;EAAA,uBAAA,EAAA,MAAA;EAKZ,QAAA,EAAA,MAAA;;KAAA,iCAAA,GACG;MACC,EADD,oBACC;EAAqB,KAAA,EAArB,qBAAqB;EAUpB,YAAA,EAAA,MAAA;EAgBO,QAAA,CAAA,EAAA,MAAA;EAA2B;;;;6BAKrB,CAAA,EAAA,MAAA,EAAA;;UArBb,gCAAA,SAAyC,QAuB1C,CAAA;;;AAcT;;;0BAEE,EAAA,MAAA,EAAA;;;;;;gCAgB8B,CAAA,EAAA,MAAA;;UAvCf,2BAAA;;WA4EiB,CAAA,EA1EpB,IA0EoB;WAMG,CAAA,EA/EvB,IA+EuB;MAAwB,CAAA,EA9EpD,gCA8EoD;qBA7DjB,EAhBrB,0BAgBqB;EAAU,IAAA,EAf9C,oBAe8C;SAd7C;;;;;;;;;;gCAWuB;;cAGnB,sBAAA,SAA+B,WAC1C,mCACA,kCACA;uBAG6B;QACf;SACC;;;;;;;;;gCAUe,MAAM;;;qBAKV;;;;;;;;;;;;;;;;;;;;2BAgCM;8BAMG,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommOutOfBandRecord.d.ts","names":[],"sources":["../../../../src/modules/oob/repository/DidCommOutOfBandRecord.ts"],"sourcesContent":[],"mappings":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BA7DjB,EAhBrB,0BAgBqB;EAAU,IAAA,EAf9C,oBAe8C;SAd7C;;;;;;;;;;gCAWuB;;cAGnB,sBAAA,SAA+B,WAC1C,mCACA,kCACA;uBAG6B;QACf;SACC;;;;;;;;;gCAUe,MAAM;;;qBAKV;;;;;;;;;;;;;;;;;;;;2BAgCM;8BAMG,wBAAwB"}
@@ -1,9 +1,9 @@
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
+ const require_thread = require('../../../util/thread.js');
4
5
  const require_DidCommOutOfBandInvitation = require('../messages/DidCommOutOfBandInvitation.js');
5
6
  require('../messages/index.js');
6
- const require_thread = require('../../../util/thread.js');
7
7
  let __credo_ts_core = require("@credo-ts/core");
8
8
  __credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
9
9
  let class_transformer = require("class-transformer");
@@ -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
+ import { getThreadIdFromPlainTextMessage } from "../../../util/thread.mjs";
3
4
  import { DidCommOutOfBandInvitation } from "../messages/DidCommOutOfBandInvitation.mjs";
4
5
  import "../messages/index.mjs";
5
- import { getThreadIdFromPlainTextMessage } from "../../../util/thread.mjs";
6
6
  import { BaseRecord, CredoError, utils } from "@credo-ts/core";
7
7
  import { Type } from "class-transformer";
8
8
 
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommOutOfBandRecord.mjs","names":[],"sources":["../../../../src/modules/oob/repository/DidCommOutOfBandRecord.ts"],"sourcesContent":["import type { TagsBase } from '@credo-ts/core'\nimport type { DidCommOutOfBandRole } from '../domain/DidCommOutOfBandRole'\nimport type { DidCommOutOfBandState } from '../domain/DidCommOutOfBandState'\nimport type { DidCommOutOfBandRecordMetadata } from './outOfBandRecordMetadataTypes'\n\nimport { BaseRecord, CredoError, utils } from '@credo-ts/core'\nimport { Type } from 'class-transformer'\n\nimport { getThreadIdFromPlainTextMessage } from '../../../util/thread'\nimport { DidCommOutOfBandInvitation } from '../messages'\n\nexport interface DidCommOutOfBandInlineServiceKey {\n recipientKeyFingerprint: string\n kmsKeyId: string\n}\n\ntype DefaultDidCommOutOfBandRecordTags = {\n role: DidCommOutOfBandRole\n state: DidCommOutOfBandState\n invitationId: string\n threadId?: string\n /**\n * The thread ids from the attached request messages from the out\n * of band invitation.\n */\n invitationRequestsThreadIds?: string[]\n}\n\ninterface CustomDidCommOutOfBandRecordTags extends TagsBase {\n /**\n * The fingerprints of the recipient keys from the out of band invitation.\n * When we created the invitation this will be our keys, when we received this\n * invitation it will be the other parties' keys.\n */\n recipientKeyFingerprints: string[]\n\n /**\n * The fingerprint from the {@link OutOfBandRecordMetadataKeys.RecipientRouting} recipient key.\n *\n * This will always be a key from our recipient\n */\n recipientRoutingKeyFingerprint?: string\n}\n\nexport interface DidCommOutOfBandRecordProps {\n id?: string\n createdAt?: Date\n updatedAt?: Date\n tags?: CustomDidCommOutOfBandRecordTags\n outOfBandInvitation: DidCommOutOfBandInvitation\n role: DidCommOutOfBandRole\n state: DidCommOutOfBandState\n alias?: string\n autoAcceptConnection?: boolean\n reusable?: boolean\n mediatorId?: string\n reuseConnectionId?: string\n threadId?: string\n\n /**\n * The keys associated with the inline services of the out of band invitation\n */\n invitationInlineServiceKeys?: DidCommOutOfBandInlineServiceKey[]\n}\n\nexport class DidCommOutOfBandRecord extends BaseRecord<\n DefaultDidCommOutOfBandRecordTags,\n CustomDidCommOutOfBandRecordTags,\n DidCommOutOfBandRecordMetadata\n> {\n @Type(() => DidCommOutOfBandInvitation)\n public outOfBandInvitation!: DidCommOutOfBandInvitation\n public role!: DidCommOutOfBandRole\n public state!: DidCommOutOfBandState\n public alias?: string\n public reusable!: boolean\n public autoAcceptConnection?: boolean\n public mediatorId?: string\n public reuseConnectionId?: string\n\n /**\n * The keys associated with the inline services of the out of band invitation\n */\n invitationInlineServiceKeys?: Array<DidCommOutOfBandInlineServiceKey>\n\n public static readonly type = 'OutOfBandRecord'\n public readonly type = DidCommOutOfBandRecord.type\n\n public constructor(props: DidCommOutOfBandRecordProps) {\n super()\n\n if (props) {\n this.id = props.id ?? utils.uuid()\n this.createdAt = props.createdAt ?? new Date()\n this.outOfBandInvitation = props.outOfBandInvitation\n this.role = props.role\n this.state = props.state\n this.alias = props.alias\n this.autoAcceptConnection = props.autoAcceptConnection\n this.reusable = props.reusable ?? false\n this.mediatorId = props.mediatorId\n this.reuseConnectionId = props.reuseConnectionId\n this.invitationInlineServiceKeys = props.invitationInlineServiceKeys\n this._tags = props.tags ?? { recipientKeyFingerprints: [] }\n }\n }\n\n public getTags() {\n return {\n ...this._tags,\n role: this.role,\n state: this.state,\n invitationId: this.outOfBandInvitation.id,\n threadId: this.outOfBandInvitation.threadId,\n invitationRequestsThreadIds: this.outOfBandInvitation\n .getRequests()\n ?.map((r) => getThreadIdFromPlainTextMessage(r)),\n }\n }\n\n public assertRole(expectedRole: DidCommOutOfBandRole) {\n if (this.role !== expectedRole) {\n throw new CredoError(`Invalid out-of-band record role ${this.role}, expected is ${expectedRole}.`)\n }\n }\n\n public assertState(expectedStates: DidCommOutOfBandState | DidCommOutOfBandState[]) {\n if (!Array.isArray(expectedStates)) {\n // biome-ignore lint/style/noParameterAssign: <explanation>\n expectedStates = [expectedStates]\n }\n\n if (!expectedStates.includes(this.state)) {\n throw new CredoError(\n `Invalid out-of-band record state ${this.state}, valid states are: ${expectedStates.join(', ')}.`\n )\n }\n }\n}\n"],"mappings":";;;;;;;;;;AAiEA,IAAa,yBAAb,MAAa,+BAA+B,WAI1C;CAmBA,AAAO,YAAY,OAAoC;AACrD,SAAO;OAHO,OAAO,uBAAuB;AAK5C,MAAI,OAAO;AACT,QAAK,KAAK,MAAM,MAAM,MAAM,MAAM;AAClC,QAAK,YAAY,MAAM,6BAAa,IAAI,MAAM;AAC9C,QAAK,sBAAsB,MAAM;AACjC,QAAK,OAAO,MAAM;AAClB,QAAK,QAAQ,MAAM;AACnB,QAAK,QAAQ,MAAM;AACnB,QAAK,uBAAuB,MAAM;AAClC,QAAK,WAAW,MAAM,YAAY;AAClC,QAAK,aAAa,MAAM;AACxB,QAAK,oBAAoB,MAAM;AAC/B,QAAK,8BAA8B,MAAM;AACzC,QAAK,QAAQ,MAAM,QAAQ,EAAE,0BAA0B,EAAE,EAAE;;;CAI/D,AAAO,UAAU;AACf,SAAO;GACL,GAAG,KAAK;GACR,MAAM,KAAK;GACX,OAAO,KAAK;GACZ,cAAc,KAAK,oBAAoB;GACvC,UAAU,KAAK,oBAAoB;GACnC,6BAA6B,KAAK,oBAC/B,aAAa,EACZ,KAAK,MAAM,gCAAgC,EAAE,CAAC;GACnD;;CAGH,AAAO,WAAW,cAAoC;AACpD,MAAI,KAAK,SAAS,aAChB,OAAM,IAAI,WAAW,mCAAmC,KAAK,KAAK,gBAAgB,aAAa,GAAG;;CAItG,AAAO,YAAY,gBAAiE;AAClF,MAAI,CAAC,MAAM,QAAQ,eAAe,CAEhC,kBAAiB,CAAC,eAAe;AAGnC,MAAI,CAAC,eAAe,SAAS,KAAK,MAAM,CACtC,OAAM,IAAI,WACR,oCAAoC,KAAK,MAAM,sBAAsB,eAAe,KAAK,KAAK,CAAC,GAChG;;;uBAlDkB,OAAO;YAf7B,WAAW,2BAA2B"}
1
+ {"version":3,"file":"DidCommOutOfBandRecord.mjs","names":[],"sources":["../../../../src/modules/oob/repository/DidCommOutOfBandRecord.ts"],"sourcesContent":["import type { TagsBase } from '@credo-ts/core'\nimport { BaseRecord, CredoError, utils } from '@credo-ts/core'\nimport { Type } from 'class-transformer'\nimport { getThreadIdFromPlainTextMessage } from '../../../util/thread'\nimport type { DidCommOutOfBandRole } from '../domain/DidCommOutOfBandRole'\nimport type { DidCommOutOfBandState } from '../domain/DidCommOutOfBandState'\nimport { DidCommOutOfBandInvitation } from '../messages'\nimport type { DidCommOutOfBandRecordMetadata } from './outOfBandRecordMetadataTypes'\n\nexport interface DidCommOutOfBandInlineServiceKey {\n recipientKeyFingerprint: string\n kmsKeyId: string\n}\n\ntype DefaultDidCommOutOfBandRecordTags = {\n role: DidCommOutOfBandRole\n state: DidCommOutOfBandState\n invitationId: string\n threadId?: string\n /**\n * The thread ids from the attached request messages from the out\n * of band invitation.\n */\n invitationRequestsThreadIds?: string[]\n}\n\ninterface CustomDidCommOutOfBandRecordTags extends TagsBase {\n /**\n * The fingerprints of the recipient keys from the out of band invitation.\n * When we created the invitation this will be our keys, when we received this\n * invitation it will be the other parties' keys.\n */\n recipientKeyFingerprints: string[]\n\n /**\n * The fingerprint from the {@link OutOfBandRecordMetadataKeys.RecipientRouting} recipient key.\n *\n * This will always be a key from our recipient\n */\n recipientRoutingKeyFingerprint?: string\n}\n\nexport interface DidCommOutOfBandRecordProps {\n id?: string\n createdAt?: Date\n updatedAt?: Date\n tags?: CustomDidCommOutOfBandRecordTags\n outOfBandInvitation: DidCommOutOfBandInvitation\n role: DidCommOutOfBandRole\n state: DidCommOutOfBandState\n alias?: string\n autoAcceptConnection?: boolean\n reusable?: boolean\n mediatorId?: string\n reuseConnectionId?: string\n threadId?: string\n\n /**\n * The keys associated with the inline services of the out of band invitation\n */\n invitationInlineServiceKeys?: DidCommOutOfBandInlineServiceKey[]\n}\n\nexport class DidCommOutOfBandRecord extends BaseRecord<\n DefaultDidCommOutOfBandRecordTags,\n CustomDidCommOutOfBandRecordTags,\n DidCommOutOfBandRecordMetadata\n> {\n @Type(() => DidCommOutOfBandInvitation)\n public outOfBandInvitation!: DidCommOutOfBandInvitation\n public role!: DidCommOutOfBandRole\n public state!: DidCommOutOfBandState\n public alias?: string\n public reusable!: boolean\n public autoAcceptConnection?: boolean\n public mediatorId?: string\n public reuseConnectionId?: string\n\n /**\n * The keys associated with the inline services of the out of band invitation\n */\n invitationInlineServiceKeys?: Array<DidCommOutOfBandInlineServiceKey>\n\n public static readonly type = 'OutOfBandRecord'\n public readonly type = DidCommOutOfBandRecord.type\n\n public constructor(props: DidCommOutOfBandRecordProps) {\n super()\n\n if (props) {\n this.id = props.id ?? utils.uuid()\n this.createdAt = props.createdAt ?? new Date()\n this.outOfBandInvitation = props.outOfBandInvitation\n this.role = props.role\n this.state = props.state\n this.alias = props.alias\n this.autoAcceptConnection = props.autoAcceptConnection\n this.reusable = props.reusable ?? false\n this.mediatorId = props.mediatorId\n this.reuseConnectionId = props.reuseConnectionId\n this.invitationInlineServiceKeys = props.invitationInlineServiceKeys\n this._tags = props.tags ?? { recipientKeyFingerprints: [] }\n }\n }\n\n public getTags() {\n return {\n ...this._tags,\n role: this.role,\n state: this.state,\n invitationId: this.outOfBandInvitation.id,\n threadId: this.outOfBandInvitation.threadId,\n invitationRequestsThreadIds: this.outOfBandInvitation\n .getRequests()\n ?.map((r) => getThreadIdFromPlainTextMessage(r)),\n }\n }\n\n public assertRole(expectedRole: DidCommOutOfBandRole) {\n if (this.role !== expectedRole) {\n throw new CredoError(`Invalid out-of-band record role ${this.role}, expected is ${expectedRole}.`)\n }\n }\n\n public assertState(expectedStates: DidCommOutOfBandState | DidCommOutOfBandState[]) {\n if (!Array.isArray(expectedStates)) {\n expectedStates = [expectedStates]\n }\n\n if (!expectedStates.includes(this.state)) {\n throw new CredoError(\n `Invalid out-of-band record state ${this.state}, valid states are: ${expectedStates.join(', ')}.`\n )\n }\n }\n}\n"],"mappings":";;;;;;;;;;AA+DA,IAAa,yBAAb,MAAa,+BAA+B,WAI1C;CAmBA,AAAO,YAAY,OAAoC;AACrD,SAAO;OAHO,OAAO,uBAAuB;AAK5C,MAAI,OAAO;AACT,QAAK,KAAK,MAAM,MAAM,MAAM,MAAM;AAClC,QAAK,YAAY,MAAM,6BAAa,IAAI,MAAM;AAC9C,QAAK,sBAAsB,MAAM;AACjC,QAAK,OAAO,MAAM;AAClB,QAAK,QAAQ,MAAM;AACnB,QAAK,QAAQ,MAAM;AACnB,QAAK,uBAAuB,MAAM;AAClC,QAAK,WAAW,MAAM,YAAY;AAClC,QAAK,aAAa,MAAM;AACxB,QAAK,oBAAoB,MAAM;AAC/B,QAAK,8BAA8B,MAAM;AACzC,QAAK,QAAQ,MAAM,QAAQ,EAAE,0BAA0B,EAAE,EAAE;;;CAI/D,AAAO,UAAU;AACf,SAAO;GACL,GAAG,KAAK;GACR,MAAM,KAAK;GACX,OAAO,KAAK;GACZ,cAAc,KAAK,oBAAoB;GACvC,UAAU,KAAK,oBAAoB;GACnC,6BAA6B,KAAK,oBAC/B,aAAa,EACZ,KAAK,MAAM,gCAAgC,EAAE,CAAC;GACnD;;CAGH,AAAO,WAAW,cAAoC;AACpD,MAAI,KAAK,SAAS,aAChB,OAAM,IAAI,WAAW,mCAAmC,KAAK,KAAK,gBAAgB,aAAa,GAAG;;CAItG,AAAO,YAAY,gBAAiE;AAClF,MAAI,CAAC,MAAM,QAAQ,eAAe,CAChC,kBAAiB,CAAC,eAAe;AAGnC,MAAI,CAAC,eAAe,SAAS,KAAK,MAAM,CACtC,OAAM,IAAI,WACR,oCAAoC,KAAK,MAAM,sBAAsB,eAAe,KAAK,KAAK,CAAC,GAChG;;;uBAjDkB,OAAO;YAf7B,WAAW,2BAA2B"}
@@ -1,8 +1,8 @@
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');
4
- const require_decorateParam = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
3
+ const require_decorateMetadata = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
5
4
  const require_DidCommOutOfBandRecord = require('./DidCommOutOfBandRecord.js');
5
+ const require_decorateParam = require('../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
6
6
  let __credo_ts_core = require("@credo-ts/core");
7
7
  __credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
8
8
 
@@ -1,7 +1,7 @@
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";
3
- import { __decorateParam } from "../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
2
+ import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
4
3
  import { DidCommOutOfBandRecord } from "./DidCommOutOfBandRecord.mjs";
4
+ import { __decorateParam } from "../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
5
5
  import { EventEmitter, InjectionSymbols, Repository, inject, injectable } from "@credo-ts/core";
6
6
 
7
7
  //#region src/modules/oob/repository/DidCommOutOfBandRepository.ts
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommOutOfBandRepository.mjs","names":["DidCommOutOfBandRepository","storageService: StorageService<DidCommOutOfBandRecord>"],"sources":["../../../../src/modules/oob/repository/DidCommOutOfBandRepository.ts"],"sourcesContent":["import { EventEmitter, InjectionSymbols, Repository, type StorageService, inject, injectable } from '@credo-ts/core'\n\nimport { DidCommOutOfBandRecord } from './DidCommOutOfBandRecord'\n\n@injectable()\nexport class DidCommOutOfBandRepository extends Repository<DidCommOutOfBandRecord> {\n public constructor(\n @inject(InjectionSymbols.StorageService) storageService: StorageService<DidCommOutOfBandRecord>,\n eventEmitter: EventEmitter\n ) {\n super(DidCommOutOfBandRecord, storageService, eventEmitter)\n }\n}\n"],"mappings":";;;;;;;;AAKO,uCAAMA,qCAAmC,WAAmC;CACjF,AAAO,YACL,AAAyCC,gBACzC,cACA;AACA,QAAM,wBAAwB,gBAAgB,aAAa;;;;CAN9D,YAAY;oBAGR,OAAO,iBAAiB,eAAe"}
1
+ {"version":3,"file":"DidCommOutOfBandRepository.mjs","names":["DidCommOutOfBandRepository","storageService: StorageService<DidCommOutOfBandRecord>"],"sources":["../../../../src/modules/oob/repository/DidCommOutOfBandRepository.ts"],"sourcesContent":["import { EventEmitter, InjectionSymbols, inject, injectable, Repository, type StorageService } from '@credo-ts/core'\n\nimport { DidCommOutOfBandRecord } from './DidCommOutOfBandRecord'\n\n@injectable()\nexport class DidCommOutOfBandRepository extends Repository<DidCommOutOfBandRecord> {\n public constructor(\n @inject(InjectionSymbols.StorageService) storageService: StorageService<DidCommOutOfBandRecord>,\n eventEmitter: EventEmitter\n ) {\n super(DidCommOutOfBandRecord, storageService, eventEmitter)\n }\n}\n"],"mappings":";;;;;;;;AAKO,uCAAMA,qCAAmC,WAAmC;CACjF,AAAO,YACL,AAAyCC,gBACzC,cACA;AACA,QAAM,wBAAwB,gBAAgB,aAAa;;;;CAN9D,YAAY;oBAGR,OAAO,iBAAiB,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"DidCommProofsApi.d.mts","names":[],"sources":["../../../src/modules/proofs/DidCommProofsApi.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;UAqCiB,6BAA6B;EAA7B,YAAA,CAAA,OAAgB,EAET,mBAFS,CAEW,GAFX,CAAA,CAAA,EAEkB,OAFlB,CAE0B,0BAF1B,CAAA;EAAA,cAAA,CAAA,OAAA,EAGP,0BAHO,CAGoB,GAHpB,CAAA,CAAA,EAG2B,OAH3B,CAGmC,0BAHnC,CAAA;mBAAa,CAAA,OAAA,EAIjB,6BAJiB,CAIa,GAJb,CAAA,CAAA,EAIoB,OAJpB,CAI4B,0BAJ5B,CAAA;cAEF,C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