@credo-ts/didcomm 0.6.0-alpha-20250128162925

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 (1254) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +84 -0
  3. package/build/AgentMessage.d.ts +92 -0
  4. package/build/AgentMessage.js +66 -0
  5. package/build/AgentMessage.js.map +1 -0
  6. package/build/BaseMessage.d.ts +11 -0
  7. package/build/BaseMessage.js +34 -0
  8. package/build/BaseMessage.js.map +1 -0
  9. package/build/DidCommApi.d.ts +34 -0
  10. package/build/DidCommApi.js +82 -0
  11. package/build/DidCommApi.js.map +1 -0
  12. package/build/DidCommModule.d.ts +31 -0
  13. package/build/DidCommModule.js +99 -0
  14. package/build/DidCommModule.js.map +1 -0
  15. package/build/DidCommModuleConfig.d.ts +33 -0
  16. package/build/DidCommModuleConfig.js +48 -0
  17. package/build/DidCommModuleConfig.js.map +1 -0
  18. package/build/Dispatcher.d.ts +14 -0
  19. package/build/Dispatcher.js +132 -0
  20. package/build/Dispatcher.js.map +1 -0
  21. package/build/EnvelopeService.d.ts +20 -0
  22. package/build/EnvelopeService.js +66 -0
  23. package/build/EnvelopeService.js.map +1 -0
  24. package/build/Events.d.ts +37 -0
  25. package/build/Events.js +10 -0
  26. package/build/Events.js.map +1 -0
  27. package/build/FeatureRegistry.d.ts +21 -0
  28. package/build/FeatureRegistry.js +66 -0
  29. package/build/FeatureRegistry.js.map +1 -0
  30. package/build/MessageHandlerRegistry.d.ts +31 -0
  31. package/build/MessageHandlerRegistry.js +89 -0
  32. package/build/MessageHandlerRegistry.js.map +1 -0
  33. package/build/MessageReceiver.d.ts +62 -0
  34. package/build/MessageReceiver.js +242 -0
  35. package/build/MessageReceiver.js.map +1 -0
  36. package/build/MessageSender.d.ts +53 -0
  37. package/build/MessageSender.js +426 -0
  38. package/build/MessageSender.js.map +1 -0
  39. package/build/TransportService.d.ts +31 -0
  40. package/build/TransportService.js +74 -0
  41. package/build/TransportService.js.map +1 -0
  42. package/build/constants.d.ts +1 -0
  43. package/build/constants.js +5 -0
  44. package/build/constants.js.map +1 -0
  45. package/build/decorators/ack/AckDecorator.d.ts +13 -0
  46. package/build/decorators/ack/AckDecorator.js +38 -0
  47. package/build/decorators/ack/AckDecorator.js.map +1 -0
  48. package/build/decorators/ack/AckDecoratorExtension.d.ts +13 -0
  49. package/build/decorators/ack/AckDecoratorExtension.js +38 -0
  50. package/build/decorators/ack/AckDecoratorExtension.js.map +1 -0
  51. package/build/decorators/attachment/Attachment.d.ts +75 -0
  52. package/build/decorators/attachment/Attachment.js +154 -0
  53. package/build/decorators/attachment/Attachment.js.map +1 -0
  54. package/build/decorators/attachment/AttachmentExtension.d.ts +15 -0
  55. package/build/decorators/attachment/AttachmentExtension.js +40 -0
  56. package/build/decorators/attachment/AttachmentExtension.js.map +1 -0
  57. package/build/decorators/l10n/L10nDecorator.d.ts +7 -0
  58. package/build/decorators/l10n/L10nDecorator.js +13 -0
  59. package/build/decorators/l10n/L10nDecorator.js.map +1 -0
  60. package/build/decorators/l10n/L10nDecoratorExtension.d.ts +12 -0
  61. package/build/decorators/l10n/L10nDecoratorExtension.js +39 -0
  62. package/build/decorators/l10n/L10nDecoratorExtension.js.map +1 -0
  63. package/build/decorators/service/ServiceDecorator.d.ts +20 -0
  64. package/build/decorators/service/ServiceDecorator.js +61 -0
  65. package/build/decorators/service/ServiceDecorator.js.map +1 -0
  66. package/build/decorators/service/ServiceDecoratorExtension.d.ts +12 -0
  67. package/build/decorators/service/ServiceDecoratorExtension.js +31 -0
  68. package/build/decorators/service/ServiceDecoratorExtension.js.map +1 -0
  69. package/build/decorators/signature/SignatureDecorator.d.ts +11 -0
  70. package/build/decorators/signature/SignatureDecorator.js +55 -0
  71. package/build/decorators/signature/SignatureDecorator.js.map +1 -0
  72. package/build/decorators/signature/SignatureDecoratorUtils.d.ts +21 -0
  73. package/build/decorators/signature/SignatureDecoratorUtils.js +50 -0
  74. package/build/decorators/signature/SignatureDecoratorUtils.js.map +1 -0
  75. package/build/decorators/thread/ThreadDecorator.d.ts +26 -0
  76. package/build/decorators/thread/ThreadDecorator.js +52 -0
  77. package/build/decorators/thread/ThreadDecorator.js.map +1 -0
  78. package/build/decorators/thread/ThreadDecoratorExtension.d.ts +15 -0
  79. package/build/decorators/thread/ThreadDecoratorExtension.js +35 -0
  80. package/build/decorators/thread/ThreadDecoratorExtension.js.map +1 -0
  81. package/build/decorators/timing/TimingDecorator.d.ts +38 -0
  82. package/build/decorators/timing/TimingDecorator.js +93 -0
  83. package/build/decorators/timing/TimingDecorator.js.map +1 -0
  84. package/build/decorators/timing/TimingDecoratorExtension.d.ts +14 -0
  85. package/build/decorators/timing/TimingDecoratorExtension.js +32 -0
  86. package/build/decorators/timing/TimingDecoratorExtension.js.map +1 -0
  87. package/build/decorators/transport/TransportDecorator.d.ts +20 -0
  88. package/build/decorators/transport/TransportDecorator.js +51 -0
  89. package/build/decorators/transport/TransportDecorator.js.map +1 -0
  90. package/build/decorators/transport/TransportDecoratorExtension.d.ts +13 -0
  91. package/build/decorators/transport/TransportDecoratorExtension.js +53 -0
  92. package/build/decorators/transport/TransportDecoratorExtension.js.map +1 -0
  93. package/build/errors/MessageSendingError.d.ts +9 -0
  94. package/build/errors/MessageSendingError.js +12 -0
  95. package/build/errors/MessageSendingError.js.map +1 -0
  96. package/build/errors/index.d.ts +2 -0
  97. package/build/errors/index.js +21 -0
  98. package/build/errors/index.js.map +1 -0
  99. package/build/errors/problem-reports/ProblemReportError.d.ts +9 -0
  100. package/build/errors/problem-reports/ProblemReportError.js +18 -0
  101. package/build/errors/problem-reports/ProblemReportError.js.map +1 -0
  102. package/build/errors/problem-reports/index.d.ts +1 -0
  103. package/build/errors/problem-reports/index.js +18 -0
  104. package/build/errors/problem-reports/index.js.map +1 -0
  105. package/build/getOutboundMessageContext.d.ts +26 -0
  106. package/build/getOutboundMessageContext.js +195 -0
  107. package/build/getOutboundMessageContext.js.map +1 -0
  108. package/build/handlers/MessageHandler.d.ts +14 -0
  109. package/build/handlers/MessageHandler.js +3 -0
  110. package/build/handlers/MessageHandler.js.map +1 -0
  111. package/build/handlers/MessageHandlerMiddleware.d.ts +7 -0
  112. package/build/handlers/MessageHandlerMiddleware.js +26 -0
  113. package/build/handlers/MessageHandlerMiddleware.js.map +1 -0
  114. package/build/handlers/index.d.ts +2 -0
  115. package/build/handlers/index.js +6 -0
  116. package/build/handlers/index.js.map +1 -0
  117. package/build/index.d.ts +33 -0
  118. package/build/index.js +78 -0
  119. package/build/index.js.map +1 -0
  120. package/build/messages/common/AckMessage.d.ts +26 -0
  121. package/build/messages/common/AckMessage.js +54 -0
  122. package/build/messages/common/AckMessage.js.map +1 -0
  123. package/build/messages/common/index.d.ts +1 -0
  124. package/build/messages/common/index.js +18 -0
  125. package/build/messages/common/index.js.map +1 -0
  126. package/build/messages/index.d.ts +2 -0
  127. package/build/messages/index.js +19 -0
  128. package/build/messages/index.js.map +1 -0
  129. package/build/messages/problem-reports/ProblemReportMessage.d.ts +63 -0
  130. package/build/messages/problem-reports/ProblemReportMessage.js +119 -0
  131. package/build/messages/problem-reports/ProblemReportMessage.js.map +1 -0
  132. package/build/messages/problem-reports/index.d.ts +1 -0
  133. package/build/messages/problem-reports/index.js +18 -0
  134. package/build/messages/problem-reports/index.js.map +1 -0
  135. package/build/models/InboundMessageContext.d.ts +45 -0
  136. package/build/models/InboundMessageContext.js +46 -0
  137. package/build/models/InboundMessageContext.js.map +1 -0
  138. package/build/models/OutboundMessageContext.d.ts +48 -0
  139. package/build/models/OutboundMessageContext.js +45 -0
  140. package/build/models/OutboundMessageContext.js.map +1 -0
  141. package/build/models/OutboundMessageSendStatus.d.ts +6 -0
  142. package/build/models/OutboundMessageSendStatus.js +11 -0
  143. package/build/models/OutboundMessageSendStatus.js.map +1 -0
  144. package/build/models/Routing.d.ts +7 -0
  145. package/build/models/Routing.js +3 -0
  146. package/build/models/Routing.js.map +1 -0
  147. package/build/models/features/Feature.d.ts +18 -0
  148. package/build/models/features/Feature.js +61 -0
  149. package/build/models/features/Feature.js.map +1 -0
  150. package/build/models/features/FeatureQuery.d.ts +9 -0
  151. package/build/models/features/FeatureQuery.js +33 -0
  152. package/build/models/features/FeatureQuery.js.map +1 -0
  153. package/build/models/features/GoalCode.d.ts +7 -0
  154. package/build/models/features/GoalCode.js +12 -0
  155. package/build/models/features/GoalCode.js.map +1 -0
  156. package/build/models/features/GovernanceFramework.d.ts +7 -0
  157. package/build/models/features/GovernanceFramework.js +12 -0
  158. package/build/models/features/GovernanceFramework.js.map +1 -0
  159. package/build/models/features/Protocol.d.ts +10 -0
  160. package/build/models/features/Protocol.js +30 -0
  161. package/build/models/features/Protocol.js.map +1 -0
  162. package/build/models/features/index.d.ts +5 -0
  163. package/build/models/features/index.js +22 -0
  164. package/build/models/features/index.js.map +1 -0
  165. package/build/models/index.d.ts +6 -0
  166. package/build/models/index.js +23 -0
  167. package/build/models/index.js.map +1 -0
  168. package/build/models/problem-reports/ProblemReportReason.d.ts +3 -0
  169. package/build/models/problem-reports/ProblemReportReason.js +8 -0
  170. package/build/models/problem-reports/ProblemReportReason.js.map +1 -0
  171. package/build/models/problem-reports/index.d.ts +1 -0
  172. package/build/models/problem-reports/index.js +18 -0
  173. package/build/models/problem-reports/index.js.map +1 -0
  174. package/build/modules/basic-messages/BasicMessageEvents.d.ts +13 -0
  175. package/build/modules/basic-messages/BasicMessageEvents.js +8 -0
  176. package/build/modules/basic-messages/BasicMessageEvents.js.map +1 -0
  177. package/build/modules/basic-messages/BasicMessageRole.d.ts +4 -0
  178. package/build/modules/basic-messages/BasicMessageRole.js +9 -0
  179. package/build/modules/basic-messages/BasicMessageRole.js.map +1 -0
  180. package/build/modules/basic-messages/BasicMessagesApi.d.ts +58 -0
  181. package/build/modules/basic-messages/BasicMessagesApi.js +102 -0
  182. package/build/modules/basic-messages/BasicMessagesApi.js.map +1 -0
  183. package/build/modules/basic-messages/BasicMessagesModule.d.ts +10 -0
  184. package/build/modules/basic-messages/BasicMessagesModule.js +32 -0
  185. package/build/modules/basic-messages/BasicMessagesModule.js.map +1 -0
  186. package/build/modules/basic-messages/handlers/BasicMessageHandler.d.ts +9 -0
  187. package/build/modules/basic-messages/handlers/BasicMessageHandler.js +16 -0
  188. package/build/modules/basic-messages/handlers/BasicMessageHandler.js.map +1 -0
  189. package/build/modules/basic-messages/handlers/index.d.ts +1 -0
  190. package/build/modules/basic-messages/handlers/index.js +18 -0
  191. package/build/modules/basic-messages/handlers/index.js.map +1 -0
  192. package/build/modules/basic-messages/index.d.ts +7 -0
  193. package/build/modules/basic-messages/index.js +24 -0
  194. package/build/modules/basic-messages/index.js.map +1 -0
  195. package/build/modules/basic-messages/messages/BasicMessage.d.ts +19 -0
  196. package/build/modules/basic-messages/messages/BasicMessage.js +53 -0
  197. package/build/modules/basic-messages/messages/BasicMessage.js.map +1 -0
  198. package/build/modules/basic-messages/messages/index.d.ts +1 -0
  199. package/build/modules/basic-messages/messages/index.js +18 -0
  200. package/build/modules/basic-messages/messages/index.js.map +1 -0
  201. package/build/modules/basic-messages/repository/BasicMessageRecord.d.ts +39 -0
  202. package/build/modules/basic-messages/repository/BasicMessageRecord.js +33 -0
  203. package/build/modules/basic-messages/repository/BasicMessageRecord.js.map +1 -0
  204. package/build/modules/basic-messages/repository/BasicMessageRepository.d.ts +5 -0
  205. package/build/modules/basic-messages/repository/BasicMessageRepository.js +29 -0
  206. package/build/modules/basic-messages/repository/BasicMessageRepository.js.map +1 -0
  207. package/build/modules/basic-messages/repository/index.d.ts +2 -0
  208. package/build/modules/basic-messages/repository/index.js +19 -0
  209. package/build/modules/basic-messages/repository/index.js.map +1 -0
  210. package/build/modules/basic-messages/services/BasicMessageService.d.ts +25 -0
  211. package/build/modules/basic-messages/services/BasicMessageService.js +84 -0
  212. package/build/modules/basic-messages/services/BasicMessageService.js.map +1 -0
  213. package/build/modules/basic-messages/services/index.d.ts +1 -0
  214. package/build/modules/basic-messages/services/index.js +18 -0
  215. package/build/modules/basic-messages/services/index.js.map +1 -0
  216. package/build/modules/connections/ConnectionEvents.d.ts +28 -0
  217. package/build/modules/connections/ConnectionEvents.js +9 -0
  218. package/build/modules/connections/ConnectionEvents.js.map +1 -0
  219. package/build/modules/connections/ConnectionsApi.d.ts +191 -0
  220. package/build/modules/connections/ConnectionsApi.js +444 -0
  221. package/build/modules/connections/ConnectionsApi.js.map +1 -0
  222. package/build/modules/connections/ConnectionsModule.d.ts +14 -0
  223. package/build/modules/connections/ConnectionsModule.js +47 -0
  224. package/build/modules/connections/ConnectionsModule.js.map +1 -0
  225. package/build/modules/connections/ConnectionsModuleConfig.d.ts +47 -0
  226. package/build/modules/connections/ConnectionsModuleConfig.js +54 -0
  227. package/build/modules/connections/ConnectionsModuleConfig.js.map +1 -0
  228. package/build/modules/connections/DidExchangeProtocol.d.ts +58 -0
  229. package/build/modules/connections/DidExchangeProtocol.js +469 -0
  230. package/build/modules/connections/DidExchangeProtocol.js.map +1 -0
  231. package/build/modules/connections/DidExchangeStateMachine.d.ts +10 -0
  232. package/build/modules/connections/DidExchangeStateMachine.js +78 -0
  233. package/build/modules/connections/DidExchangeStateMachine.js.map +1 -0
  234. package/build/modules/connections/TrustPingEvents.d.ts +21 -0
  235. package/build/modules/connections/TrustPingEvents.js +9 -0
  236. package/build/modules/connections/TrustPingEvents.js.map +1 -0
  237. package/build/modules/connections/errors/ConnectionProblemReportError.d.ts +13 -0
  238. package/build/modules/connections/errors/ConnectionProblemReportError.js +19 -0
  239. package/build/modules/connections/errors/ConnectionProblemReportError.js.map +1 -0
  240. package/build/modules/connections/errors/ConnectionProblemReportReason.d.ts +11 -0
  241. package/build/modules/connections/errors/ConnectionProblemReportReason.js +16 -0
  242. package/build/modules/connections/errors/ConnectionProblemReportReason.js.map +1 -0
  243. package/build/modules/connections/errors/DidExchangeProblemReportError.d.ts +13 -0
  244. package/build/modules/connections/errors/DidExchangeProblemReportError.js +19 -0
  245. package/build/modules/connections/errors/DidExchangeProblemReportError.js.map +1 -0
  246. package/build/modules/connections/errors/DidExchangeProblemReportReason.d.ts +12 -0
  247. package/build/modules/connections/errors/DidExchangeProblemReportReason.js +17 -0
  248. package/build/modules/connections/errors/DidExchangeProblemReportReason.js.map +1 -0
  249. package/build/modules/connections/errors/index.d.ts +4 -0
  250. package/build/modules/connections/errors/index.js +21 -0
  251. package/build/modules/connections/errors/index.js.map +1 -0
  252. package/build/modules/connections/handlers/AckMessageHandler.d.ts +9 -0
  253. package/build/modules/connections/handlers/AckMessageHandler.js +15 -0
  254. package/build/modules/connections/handlers/AckMessageHandler.js.map +1 -0
  255. package/build/modules/connections/handlers/ConnectionProblemReportHandler.d.ts +9 -0
  256. package/build/modules/connections/handlers/ConnectionProblemReportHandler.js +15 -0
  257. package/build/modules/connections/handlers/ConnectionProblemReportHandler.js.map +1 -0
  258. package/build/modules/connections/handlers/ConnectionRequestHandler.d.ts +18 -0
  259. package/build/modules/connections/handlers/ConnectionRequestHandler.js +67 -0
  260. package/build/modules/connections/handlers/ConnectionRequestHandler.js.map +1 -0
  261. package/build/modules/connections/handlers/ConnectionResponseHandler.d.ts +16 -0
  262. package/build/modules/connections/handlers/ConnectionResponseHandler.js +61 -0
  263. package/build/modules/connections/handlers/ConnectionResponseHandler.js.map +1 -0
  264. package/build/modules/connections/handlers/DidExchangeCompleteHandler.d.ts +11 -0
  265. package/build/modules/connections/handlers/DidExchangeCompleteHandler.js +39 -0
  266. package/build/modules/connections/handlers/DidExchangeCompleteHandler.js.map +1 -0
  267. package/build/modules/connections/handlers/DidExchangeRequestHandler.d.ts +18 -0
  268. package/build/modules/connections/handlers/DidExchangeRequestHandler.js +75 -0
  269. package/build/modules/connections/handlers/DidExchangeRequestHandler.js.map +1 -0
  270. package/build/modules/connections/handlers/DidExchangeResponseHandler.d.ts +17 -0
  271. package/build/modules/connections/handlers/DidExchangeResponseHandler.js +77 -0
  272. package/build/modules/connections/handlers/DidExchangeResponseHandler.js.map +1 -0
  273. package/build/modules/connections/handlers/DidRotateAckHandler.d.ts +9 -0
  274. package/build/modules/connections/handlers/DidRotateAckHandler.js +15 -0
  275. package/build/modules/connections/handlers/DidRotateAckHandler.js.map +1 -0
  276. package/build/modules/connections/handlers/DidRotateHandler.d.ts +10 -0
  277. package/build/modules/connections/handlers/DidRotateHandler.js +21 -0
  278. package/build/modules/connections/handlers/DidRotateHandler.js.map +1 -0
  279. package/build/modules/connections/handlers/DidRotateProblemReportHandler.d.ts +9 -0
  280. package/build/modules/connections/handlers/DidRotateProblemReportHandler.js +15 -0
  281. package/build/modules/connections/handlers/DidRotateProblemReportHandler.js.map +1 -0
  282. package/build/modules/connections/handlers/HangupHandler.d.ts +9 -0
  283. package/build/modules/connections/handlers/HangupHandler.js +15 -0
  284. package/build/modules/connections/handlers/HangupHandler.js.map +1 -0
  285. package/build/modules/connections/handlers/TrustPingMessageHandler.d.ts +10 -0
  286. package/build/modules/connections/handlers/TrustPingMessageHandler.js +27 -0
  287. package/build/modules/connections/handlers/TrustPingMessageHandler.js.map +1 -0
  288. package/build/modules/connections/handlers/TrustPingResponseMessageHandler.d.ts +9 -0
  289. package/build/modules/connections/handlers/TrustPingResponseMessageHandler.js +15 -0
  290. package/build/modules/connections/handlers/TrustPingResponseMessageHandler.js.map +1 -0
  291. package/build/modules/connections/handlers/index.d.ts +13 -0
  292. package/build/modules/connections/handlers/index.js +30 -0
  293. package/build/modules/connections/handlers/index.js.map +1 -0
  294. package/build/modules/connections/index.d.ts +12 -0
  295. package/build/modules/connections/index.js +29 -0
  296. package/build/modules/connections/index.js.map +1 -0
  297. package/build/modules/connections/messages/ConnectionInvitationMessage.d.ts +55 -0
  298. package/build/modules/connections/messages/ConnectionInvitationMessage.js +138 -0
  299. package/build/modules/connections/messages/ConnectionInvitationMessage.js.map +1 -0
  300. package/build/modules/connections/messages/ConnectionProblemReportMessage.d.ts +16 -0
  301. package/build/modules/connections/messages/ConnectionProblemReportMessage.js +35 -0
  302. package/build/modules/connections/messages/ConnectionProblemReportMessage.js.map +1 -0
  303. package/build/modules/connections/messages/ConnectionRequestMessage.d.ts +28 -0
  304. package/build/modules/connections/messages/ConnectionRequestMessage.js +64 -0
  305. package/build/modules/connections/messages/ConnectionRequestMessage.js.map +1 -0
  306. package/build/modules/connections/messages/ConnectionResponseMessage.d.ts +23 -0
  307. package/build/modules/connections/messages/ConnectionResponseMessage.js +52 -0
  308. package/build/modules/connections/messages/ConnectionResponseMessage.js.map +1 -0
  309. package/build/modules/connections/messages/DidExchangeCompleteMessage.d.ts +14 -0
  310. package/build/modules/connections/messages/DidExchangeCompleteMessage.js +37 -0
  311. package/build/modules/connections/messages/DidExchangeCompleteMessage.js.map +1 -0
  312. package/build/modules/connections/messages/DidExchangeProblemReportMessage.d.ts +11 -0
  313. package/build/modules/connections/messages/DidExchangeProblemReportMessage.js +30 -0
  314. package/build/modules/connections/messages/DidExchangeProblemReportMessage.js.map +1 -0
  315. package/build/modules/connections/messages/DidExchangeRequestMessage.d.ts +29 -0
  316. package/build/modules/connections/messages/DidExchangeRequestMessage.js +73 -0
  317. package/build/modules/connections/messages/DidExchangeRequestMessage.js.map +1 -0
  318. package/build/modules/connections/messages/DidExchangeResponseMessage.d.ts +24 -0
  319. package/build/modules/connections/messages/DidExchangeResponseMessage.js +64 -0
  320. package/build/modules/connections/messages/DidExchangeResponseMessage.js.map +1 -0
  321. package/build/modules/connections/messages/DidRotateAckMessage.d.ts +12 -0
  322. package/build/modules/connections/messages/DidRotateAckMessage.js +31 -0
  323. package/build/modules/connections/messages/DidRotateAckMessage.js.map +1 -0
  324. package/build/modules/connections/messages/DidRotateMessage.d.ts +20 -0
  325. package/build/modules/connections/messages/DidRotateMessage.js +47 -0
  326. package/build/modules/connections/messages/DidRotateMessage.js.map +1 -0
  327. package/build/modules/connections/messages/DidRotateProblemReportMessage.d.ts +11 -0
  328. package/build/modules/connections/messages/DidRotateProblemReportMessage.js +30 -0
  329. package/build/modules/connections/messages/DidRotateProblemReportMessage.js.map +1 -0
  330. package/build/modules/connections/messages/HangupMessage.d.ts +19 -0
  331. package/build/modules/connections/messages/HangupMessage.js +40 -0
  332. package/build/modules/connections/messages/HangupMessage.js.map +1 -0
  333. package/build/modules/connections/messages/TrustPingMessage.d.ts +26 -0
  334. package/build/modules/connections/messages/TrustPingMessage.js +63 -0
  335. package/build/modules/connections/messages/TrustPingMessage.js.map +1 -0
  336. package/build/modules/connections/messages/TrustPingResponseMessage.d.ts +25 -0
  337. package/build/modules/connections/messages/TrustPingResponseMessage.js +57 -0
  338. package/build/modules/connections/messages/TrustPingResponseMessage.js.map +1 -0
  339. package/build/modules/connections/messages/index.d.ts +14 -0
  340. package/build/modules/connections/messages/index.js +31 -0
  341. package/build/modules/connections/messages/index.js.map +1 -0
  342. package/build/modules/connections/models/Connection.d.ts +10 -0
  343. package/build/modules/connections/models/Connection.js +38 -0
  344. package/build/modules/connections/models/Connection.js.map +1 -0
  345. package/build/modules/connections/models/ConnectionRole.d.ts +4 -0
  346. package/build/modules/connections/models/ConnectionRole.js +9 -0
  347. package/build/modules/connections/models/ConnectionRole.js.map +1 -0
  348. package/build/modules/connections/models/ConnectionState.d.ts +14 -0
  349. package/build/modules/connections/models/ConnectionState.js +33 -0
  350. package/build/modules/connections/models/ConnectionState.js.map +1 -0
  351. package/build/modules/connections/models/ConnectionType.d.ts +3 -0
  352. package/build/modules/connections/models/ConnectionType.js +8 -0
  353. package/build/modules/connections/models/ConnectionType.js.map +1 -0
  354. package/build/modules/connections/models/DidExchangeRole.d.ts +4 -0
  355. package/build/modules/connections/models/DidExchangeRole.js +9 -0
  356. package/build/modules/connections/models/DidExchangeRole.js.map +1 -0
  357. package/build/modules/connections/models/DidExchangeState.d.ts +16 -0
  358. package/build/modules/connections/models/DidExchangeState.js +21 -0
  359. package/build/modules/connections/models/DidExchangeState.js.map +1 -0
  360. package/build/modules/connections/models/DidRotateRole.d.ts +4 -0
  361. package/build/modules/connections/models/DidRotateRole.js +9 -0
  362. package/build/modules/connections/models/DidRotateRole.js.map +1 -0
  363. package/build/modules/connections/models/HandshakeProtocol.d.ts +8 -0
  364. package/build/modules/connections/models/HandshakeProtocol.js +13 -0
  365. package/build/modules/connections/models/HandshakeProtocol.js.map +1 -0
  366. package/build/modules/connections/models/InvitationDetails.d.ts +6 -0
  367. package/build/modules/connections/models/InvitationDetails.js +3 -0
  368. package/build/modules/connections/models/InvitationDetails.js.map +1 -0
  369. package/build/modules/connections/models/did/DidDoc.d.ts +37 -0
  370. package/build/modules/connections/models/did/DidDoc.js +94 -0
  371. package/build/modules/connections/models/did/DidDoc.js.map +1 -0
  372. package/build/modules/connections/models/did/authentication/Authentication.d.ts +4 -0
  373. package/build/modules/connections/models/did/authentication/Authentication.js +7 -0
  374. package/build/modules/connections/models/did/authentication/Authentication.js.map +1 -0
  375. package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.d.ts +6 -0
  376. package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js +29 -0
  377. package/build/modules/connections/models/did/authentication/EmbeddedAuthentication.js.map +1 -0
  378. package/build/modules/connections/models/did/authentication/ReferencedAuthentication.d.ts +7 -0
  379. package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js +35 -0
  380. package/build/modules/connections/models/did/authentication/ReferencedAuthentication.js.map +1 -0
  381. package/build/modules/connections/models/did/authentication/index.d.ts +19 -0
  382. package/build/modules/connections/models/did/authentication/index.js +58 -0
  383. package/build/modules/connections/models/did/authentication/index.js.map +1 -0
  384. package/build/modules/connections/models/did/index.d.ts +3 -0
  385. package/build/modules/connections/models/did/index.js +20 -0
  386. package/build/modules/connections/models/did/index.js.map +1 -0
  387. package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.d.ts +10 -0
  388. package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js +35 -0
  389. package/build/modules/connections/models/did/publicKey/Ed25119Sig2018.js.map +1 -0
  390. package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.d.ts +10 -0
  391. package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js +35 -0
  392. package/build/modules/connections/models/did/publicKey/EddsaSaSigSecp256k1.js.map +1 -0
  393. package/build/modules/connections/models/did/publicKey/PublicKey.d.ts +12 -0
  394. package/build/modules/connections/models/did/publicKey/PublicKey.js +42 -0
  395. package/build/modules/connections/models/did/publicKey/PublicKey.js.map +1 -0
  396. package/build/modules/connections/models/did/publicKey/RsaSig2018.d.ts +10 -0
  397. package/build/modules/connections/models/did/publicKey/RsaSig2018.js +35 -0
  398. package/build/modules/connections/models/did/publicKey/RsaSig2018.js.map +1 -0
  399. package/build/modules/connections/models/did/publicKey/index.d.ts +18 -0
  400. package/build/modules/connections/models/did/publicKey/index.js +39 -0
  401. package/build/modules/connections/models/did/publicKey/index.js.map +1 -0
  402. package/build/modules/connections/models/index.d.ts +9 -0
  403. package/build/modules/connections/models/index.js +26 -0
  404. package/build/modules/connections/models/index.js.map +1 -0
  405. package/build/modules/connections/repository/ConnectionMetadataTypes.d.ts +14 -0
  406. package/build/modules/connections/repository/ConnectionMetadataTypes.js +9 -0
  407. package/build/modules/connections/repository/ConnectionMetadataTypes.js.map +1 -0
  408. package/build/modules/connections/repository/ConnectionRecord.d.ts +70 -0
  409. package/build/modules/connections/repository/ConnectionRecord.js +100 -0
  410. package/build/modules/connections/repository/ConnectionRecord.js.map +1 -0
  411. package/build/modules/connections/repository/ConnectionRepository.d.ts +13 -0
  412. package/build/modules/connections/repository/ConnectionRepository.js +47 -0
  413. package/build/modules/connections/repository/ConnectionRepository.js.map +1 -0
  414. package/build/modules/connections/repository/index.d.ts +2 -0
  415. package/build/modules/connections/repository/index.js +19 -0
  416. package/build/modules/connections/repository/index.js.map +1 -0
  417. package/build/modules/connections/services/ConnectionService.d.ts +171 -0
  418. package/build/modules/connections/services/ConnectionService.js +674 -0
  419. package/build/modules/connections/services/ConnectionService.js.map +1 -0
  420. package/build/modules/connections/services/DidRotateService.d.ts +51 -0
  421. package/build/modules/connections/services/DidRotateService.js +237 -0
  422. package/build/modules/connections/services/DidRotateService.js.map +1 -0
  423. package/build/modules/connections/services/TrustPingService.d.ts +12 -0
  424. package/build/modules/connections/services/TrustPingService.js +53 -0
  425. package/build/modules/connections/services/TrustPingService.js.map +1 -0
  426. package/build/modules/connections/services/helpers.d.ts +14 -0
  427. package/build/modules/connections/services/helpers.js +151 -0
  428. package/build/modules/connections/services/helpers.js.map +1 -0
  429. package/build/modules/connections/services/index.d.ts +3 -0
  430. package/build/modules/connections/services/index.js +20 -0
  431. package/build/modules/connections/services/index.js.map +1 -0
  432. package/build/modules/credentials/CredentialEvents.d.ts +20 -0
  433. package/build/modules/credentials/CredentialEvents.js +9 -0
  434. package/build/modules/credentials/CredentialEvents.js.map +1 -0
  435. package/build/modules/credentials/CredentialsApi.d.ts +59 -0
  436. package/build/modules/credentials/CredentialsApi.js +507 -0
  437. package/build/modules/credentials/CredentialsApi.js.map +1 -0
  438. package/build/modules/credentials/CredentialsApiOptions.d.ts +128 -0
  439. package/build/modules/credentials/CredentialsApiOptions.js +3 -0
  440. package/build/modules/credentials/CredentialsApiOptions.js.map +1 -0
  441. package/build/modules/credentials/CredentialsModule.d.ts +20 -0
  442. package/build/modules/credentials/CredentialsModule.js +51 -0
  443. package/build/modules/credentials/CredentialsModule.js.map +1 -0
  444. package/build/modules/credentials/CredentialsModuleConfig.d.ts +34 -0
  445. package/build/modules/credentials/CredentialsModuleConfig.js +19 -0
  446. package/build/modules/credentials/CredentialsModuleConfig.js.map +1 -0
  447. package/build/modules/credentials/formats/CredentialFormat.d.ts +40 -0
  448. package/build/modules/credentials/formats/CredentialFormat.js +3 -0
  449. package/build/modules/credentials/formats/CredentialFormat.js.map +1 -0
  450. package/build/modules/credentials/formats/CredentialFormatService.d.ts +23 -0
  451. package/build/modules/credentials/formats/CredentialFormatService.js +3 -0
  452. package/build/modules/credentials/formats/CredentialFormatService.js.map +1 -0
  453. package/build/modules/credentials/formats/CredentialFormatServiceOptions.d.ts +117 -0
  454. package/build/modules/credentials/formats/CredentialFormatServiceOptions.js +3 -0
  455. package/build/modules/credentials/formats/CredentialFormatServiceOptions.js.map +1 -0
  456. package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.d.ts +51 -0
  457. package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.js +3 -0
  458. package/build/modules/credentials/formats/dataIntegrity/DataIntegrityCredentialFormat.js.map +1 -0
  459. package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.d.ts +76 -0
  460. package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js +128 -0
  461. package/build/modules/credentials/formats/dataIntegrity/dataIntegrityExchange.js.map +1 -0
  462. package/build/modules/credentials/formats/dataIntegrity/index.d.ts +2 -0
  463. package/build/modules/credentials/formats/dataIntegrity/index.js +19 -0
  464. package/build/modules/credentials/formats/dataIntegrity/index.js.map +1 -0
  465. package/build/modules/credentials/formats/index.d.ts +5 -0
  466. package/build/modules/credentials/formats/index.js +22 -0
  467. package/build/modules/credentials/formats/index.js.map +1 -0
  468. package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.d.ts +15 -0
  469. package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.js +38 -0
  470. package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetail.js.map +1 -0
  471. package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.d.ts +24 -0
  472. package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.js +67 -0
  473. package/build/modules/credentials/formats/jsonld/JsonLdCredentialDetailOptions.js.map +1 -0
  474. package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.d.ts +90 -0
  475. package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.js +3 -0
  476. package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.js.map +1 -0
  477. package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.d.ts +71 -0
  478. package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js +294 -0
  479. package/build/modules/credentials/formats/jsonld/JsonLdCredentialFormatService.js.map +1 -0
  480. package/build/modules/credentials/formats/jsonld/index.d.ts +4 -0
  481. package/build/modules/credentials/formats/jsonld/index.js +21 -0
  482. package/build/modules/credentials/formats/jsonld/index.js.map +1 -0
  483. package/build/modules/credentials/index.d.ts +9 -0
  484. package/build/modules/credentials/index.js +26 -0
  485. package/build/modules/credentials/index.js.map +1 -0
  486. package/build/modules/credentials/models/CredentialAutoAcceptType.d.ts +11 -0
  487. package/build/modules/credentials/models/CredentialAutoAcceptType.js +16 -0
  488. package/build/modules/credentials/models/CredentialAutoAcceptType.js.map +1 -0
  489. package/build/modules/credentials/models/CredentialFormatSpec.d.ts +9 -0
  490. package/build/modules/credentials/models/CredentialFormatSpec.js +34 -0
  491. package/build/modules/credentials/models/CredentialFormatSpec.js.map +1 -0
  492. package/build/modules/credentials/models/CredentialPreviewAttribute.d.ts +15 -0
  493. package/build/modules/credentials/models/CredentialPreviewAttribute.js +44 -0
  494. package/build/modules/credentials/models/CredentialPreviewAttribute.js.map +1 -0
  495. package/build/modules/credentials/models/CredentialProblemReportReason.d.ts +8 -0
  496. package/build/modules/credentials/models/CredentialProblemReportReason.js +13 -0
  497. package/build/modules/credentials/models/CredentialProblemReportReason.js.map +1 -0
  498. package/build/modules/credentials/models/CredentialRole.d.ts +4 -0
  499. package/build/modules/credentials/models/CredentialRole.js +9 -0
  500. package/build/modules/credentials/models/CredentialRole.js.map +1 -0
  501. package/build/modules/credentials/models/CredentialState.d.ts +18 -0
  502. package/build/modules/credentials/models/CredentialState.js +23 -0
  503. package/build/modules/credentials/models/CredentialState.js.map +1 -0
  504. package/build/modules/credentials/models/RevocationNotification.d.ts +5 -0
  505. package/build/modules/credentials/models/RevocationNotification.js +11 -0
  506. package/build/modules/credentials/models/RevocationNotification.js.map +1 -0
  507. package/build/modules/credentials/models/index.d.ts +7 -0
  508. package/build/modules/credentials/models/index.js +24 -0
  509. package/build/modules/credentials/models/index.js.map +1 -0
  510. package/build/modules/credentials/protocol/BaseCredentialProtocol.d.ts +111 -0
  511. package/build/modules/credentials/protocol/BaseCredentialProtocol.js +168 -0
  512. package/build/modules/credentials/protocol/BaseCredentialProtocol.js.map +1 -0
  513. package/build/modules/credentials/protocol/CredentialProtocol.d.ts +53 -0
  514. package/build/modules/credentials/protocol/CredentialProtocol.js +3 -0
  515. package/build/modules/credentials/protocol/CredentialProtocol.js.map +1 -0
  516. package/build/modules/credentials/protocol/CredentialProtocolOptions.d.ts +143 -0
  517. package/build/modules/credentials/protocol/CredentialProtocolOptions.js +3 -0
  518. package/build/modules/credentials/protocol/CredentialProtocolOptions.js.map +1 -0
  519. package/build/modules/credentials/protocol/index.d.ts +6 -0
  520. package/build/modules/credentials/protocol/index.js +40 -0
  521. package/build/modules/credentials/protocol/index.js.map +1 -0
  522. package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.d.ts +9 -0
  523. package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.js +15 -0
  524. package/build/modules/credentials/protocol/revocation-notification/handlers/V1RevocationNotificationHandler.js.map +1 -0
  525. package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.d.ts +9 -0
  526. package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.js +15 -0
  527. package/build/modules/credentials/protocol/revocation-notification/handlers/V2RevocationNotificationHandler.js.map +1 -0
  528. package/build/modules/credentials/protocol/revocation-notification/handlers/index.d.ts +2 -0
  529. package/build/modules/credentials/protocol/revocation-notification/handlers/index.js +19 -0
  530. package/build/modules/credentials/protocol/revocation-notification/handlers/index.js.map +1 -0
  531. package/build/modules/credentials/protocol/revocation-notification/index.d.ts +1 -0
  532. package/build/modules/credentials/protocol/revocation-notification/index.js +18 -0
  533. package/build/modules/credentials/protocol/revocation-notification/index.js.map +1 -0
  534. package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.d.ts +15 -0
  535. package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.js +45 -0
  536. package/build/modules/credentials/protocol/revocation-notification/messages/V1RevocationNotificationMessage.js.map +1 -0
  537. package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.d.ts +17 -0
  538. package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.js +51 -0
  539. package/build/modules/credentials/protocol/revocation-notification/messages/V2RevocationNotificationMessage.js.map +1 -0
  540. package/build/modules/credentials/protocol/revocation-notification/messages/index.d.ts +2 -0
  541. package/build/modules/credentials/protocol/revocation-notification/messages/index.js +19 -0
  542. package/build/modules/credentials/protocol/revocation-notification/messages/index.js.map +1 -0
  543. package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.d.ts +35 -0
  544. package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.js +139 -0
  545. package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationService.js.map +1 -0
  546. package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationServiceOptions.d.ts +6 -0
  547. package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationServiceOptions.js +3 -0
  548. package/build/modules/credentials/protocol/revocation-notification/services/RevocationNotificationServiceOptions.js.map +1 -0
  549. package/build/modules/credentials/protocol/revocation-notification/services/index.d.ts +2 -0
  550. package/build/modules/credentials/protocol/revocation-notification/services/index.js +19 -0
  551. package/build/modules/credentials/protocol/revocation-notification/services/index.js.map +1 -0
  552. package/build/modules/credentials/protocol/revocation-notification/util/revocationIdentifier.d.ts +5 -0
  553. package/build/modules/credentials/protocol/revocation-notification/util/revocationIdentifier.js +13 -0
  554. package/build/modules/credentials/protocol/revocation-notification/util/revocationIdentifier.js.map +1 -0
  555. package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.d.ts +100 -0
  556. package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.js +363 -0
  557. package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.js.map +1 -0
  558. package/build/modules/credentials/protocol/v2/V2CredentialProtocol.d.ts +178 -0
  559. package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js +940 -0
  560. package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js.map +1 -0
  561. package/build/modules/credentials/protocol/v2/errors/V2CredentialProblemReportError.d.ts +11 -0
  562. package/build/modules/credentials/protocol/v2/errors/V2CredentialProblemReportError.js +18 -0
  563. package/build/modules/credentials/protocol/v2/errors/V2CredentialProblemReportError.js.map +1 -0
  564. package/build/modules/credentials/protocol/v2/errors/index.d.ts +1 -0
  565. package/build/modules/credentials/protocol/v2/errors/index.js +6 -0
  566. package/build/modules/credentials/protocol/v2/errors/index.js.map +1 -0
  567. package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.d.ts +9 -0
  568. package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.js +15 -0
  569. package/build/modules/credentials/protocol/v2/handlers/V2CredentialAckHandler.js.map +1 -0
  570. package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.d.ts +9 -0
  571. package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.js +15 -0
  572. package/build/modules/credentials/protocol/v2/handlers/V2CredentialProblemReportHandler.js.map +1 -0
  573. package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.d.ts +11 -0
  574. package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.js +41 -0
  575. package/build/modules/credentials/protocol/v2/handlers/V2IssueCredentialHandler.js.map +1 -0
  576. package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.d.ts +11 -0
  577. package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.js +33 -0
  578. package/build/modules/credentials/protocol/v2/handlers/V2OfferCredentialHandler.js.map +1 -0
  579. package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.d.ts +12 -0
  580. package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.js +36 -0
  581. package/build/modules/credentials/protocol/v2/handlers/V2ProposeCredentialHandler.js.map +1 -0
  582. package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.d.ts +11 -0
  583. package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.js +41 -0
  584. package/build/modules/credentials/protocol/v2/handlers/V2RequestCredentialHandler.js.map +1 -0
  585. package/build/modules/credentials/protocol/v2/handlers/index.d.ts +6 -0
  586. package/build/modules/credentials/protocol/v2/handlers/index.js +23 -0
  587. package/build/modules/credentials/protocol/v2/handlers/index.js.map +1 -0
  588. package/build/modules/credentials/protocol/v2/index.d.ts +3 -0
  589. package/build/modules/credentials/protocol/v2/index.js +20 -0
  590. package/build/modules/credentials/protocol/v2/index.js.map +1 -0
  591. package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.d.ts +14 -0
  592. package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js +34 -0
  593. package/build/modules/credentials/protocol/v2/messages/V2CredentialAckMessage.js.map +1 -0
  594. package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.d.ts +26 -0
  595. package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.js +71 -0
  596. package/build/modules/credentials/protocol/v2/messages/V2CredentialPreview.js.map +1 -0
  597. package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.d.ts +15 -0
  598. package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js +34 -0
  599. package/build/modules/credentials/protocol/v2/messages/V2CredentialProblemReportMessage.js.map +1 -0
  600. package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.d.ts +22 -0
  601. package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.js +75 -0
  602. package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.js.map +1 -0
  603. package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.d.ts +27 -0
  604. package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.js +91 -0
  605. package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.js.map +1 -0
  606. package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.d.ts +30 -0
  607. package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.js +86 -0
  608. package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.js.map +1 -0
  609. package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.d.ts +27 -0
  610. package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.js +76 -0
  611. package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.js.map +1 -0
  612. package/build/modules/credentials/protocol/v2/messages/index.d.ts +7 -0
  613. package/build/modules/credentials/protocol/v2/messages/index.js +24 -0
  614. package/build/modules/credentials/protocol/v2/messages/index.js.map +1 -0
  615. package/build/modules/credentials/repository/CredentialExchangeRecord.d.ts +66 -0
  616. package/build/modules/credentials/repository/CredentialExchangeRecord.js +85 -0
  617. package/build/modules/credentials/repository/CredentialExchangeRecord.js.map +1 -0
  618. package/build/modules/credentials/repository/CredentialRepository.d.ts +5 -0
  619. package/build/modules/credentials/repository/CredentialRepository.js +29 -0
  620. package/build/modules/credentials/repository/CredentialRepository.js.map +1 -0
  621. package/build/modules/credentials/repository/index.d.ts +2 -0
  622. package/build/modules/credentials/repository/index.js +19 -0
  623. package/build/modules/credentials/repository/index.js.map +1 -0
  624. package/build/modules/credentials/util/composeAutoAccept.d.ts +8 -0
  625. package/build/modules/credentials/util/composeAutoAccept.js +14 -0
  626. package/build/modules/credentials/util/composeAutoAccept.js.map +1 -0
  627. package/build/modules/credentials/util/previewAttributes.d.ts +2 -0
  628. package/build/modules/credentials/util/previewAttributes.js +24 -0
  629. package/build/modules/credentials/util/previewAttributes.js.map +1 -0
  630. package/build/modules/discover-features/DiscoverFeaturesApi.d.ts +30 -0
  631. package/build/modules/discover-features/DiscoverFeaturesApi.js +131 -0
  632. package/build/modules/discover-features/DiscoverFeaturesApi.js.map +1 -0
  633. package/build/modules/discover-features/DiscoverFeaturesApiOptions.d.ts +39 -0
  634. package/build/modules/discover-features/DiscoverFeaturesApiOptions.js +3 -0
  635. package/build/modules/discover-features/DiscoverFeaturesApiOptions.js.map +1 -0
  636. package/build/modules/discover-features/DiscoverFeaturesEvents.d.ts +28 -0
  637. package/build/modules/discover-features/DiscoverFeaturesEvents.js +9 -0
  638. package/build/modules/discover-features/DiscoverFeaturesEvents.js.map +1 -0
  639. package/build/modules/discover-features/DiscoverFeaturesModule.d.ts +14 -0
  640. package/build/modules/discover-features/DiscoverFeaturesModule.js +38 -0
  641. package/build/modules/discover-features/DiscoverFeaturesModule.js.map +1 -0
  642. package/build/modules/discover-features/DiscoverFeaturesModuleConfig.d.ts +18 -0
  643. package/build/modules/discover-features/DiscoverFeaturesModuleConfig.js +14 -0
  644. package/build/modules/discover-features/DiscoverFeaturesModuleConfig.js.map +1 -0
  645. package/build/modules/discover-features/DiscoverFeaturesServiceOptions.d.ts +13 -0
  646. package/build/modules/discover-features/DiscoverFeaturesServiceOptions.js +3 -0
  647. package/build/modules/discover-features/DiscoverFeaturesServiceOptions.js.map +1 -0
  648. package/build/modules/discover-features/index.d.ts +4 -0
  649. package/build/modules/discover-features/index.js +21 -0
  650. package/build/modules/discover-features/index.js.map +1 -0
  651. package/build/modules/discover-features/protocol/index.d.ts +2 -0
  652. package/build/modules/discover-features/protocol/index.js +19 -0
  653. package/build/modules/discover-features/protocol/index.js.map +1 -0
  654. package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.d.ts +21 -0
  655. package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.js +113 -0
  656. package/build/modules/discover-features/protocol/v1/V1DiscoverFeaturesService.js.map +1 -0
  657. package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.d.ts +9 -0
  658. package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.js +15 -0
  659. package/build/modules/discover-features/protocol/v1/handlers/V1DiscloseMessageHandler.js.map +1 -0
  660. package/build/modules/discover-features/protocol/v1/handlers/V1QueryMessageHandler.d.ts +10 -0
  661. package/build/modules/discover-features/protocol/v1/handlers/V1QueryMessageHandler.js +23 -0
  662. package/build/modules/discover-features/protocol/v1/handlers/V1QueryMessageHandler.js.map +1 -0
  663. package/build/modules/discover-features/protocol/v1/handlers/index.d.ts +2 -0
  664. package/build/modules/discover-features/protocol/v1/handlers/index.js +19 -0
  665. package/build/modules/discover-features/protocol/v1/handlers/index.js.map +1 -0
  666. package/build/modules/discover-features/protocol/v1/index.d.ts +2 -0
  667. package/build/modules/discover-features/protocol/v1/index.js +19 -0
  668. package/build/modules/discover-features/protocol/v1/index.js.map +1 -0
  669. package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.d.ts +21 -0
  670. package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.js +60 -0
  671. package/build/modules/discover-features/protocol/v1/messages/DiscloseMessage.js.map +1 -0
  672. package/build/modules/discover-features/protocol/v1/messages/QueryMessage.d.ts +13 -0
  673. package/build/modules/discover-features/protocol/v1/messages/QueryMessage.js +42 -0
  674. package/build/modules/discover-features/protocol/v1/messages/QueryMessage.js.map +1 -0
  675. package/build/modules/discover-features/protocol/v1/messages/index.d.ts +2 -0
  676. package/build/modules/discover-features/protocol/v1/messages/index.js +19 -0
  677. package/build/modules/discover-features/protocol/v1/messages/index.js.map +1 -0
  678. package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.d.ts +20 -0
  679. package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.js +94 -0
  680. package/build/modules/discover-features/protocol/v2/V2DiscoverFeaturesService.js.map +1 -0
  681. package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.d.ts +9 -0
  682. package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.js +15 -0
  683. package/build/modules/discover-features/protocol/v2/handlers/V2DisclosuresMessageHandler.js.map +1 -0
  684. package/build/modules/discover-features/protocol/v2/handlers/V2QueriesMessageHandler.d.ts +10 -0
  685. package/build/modules/discover-features/protocol/v2/handlers/V2QueriesMessageHandler.js +23 -0
  686. package/build/modules/discover-features/protocol/v2/handlers/V2QueriesMessageHandler.js.map +1 -0
  687. package/build/modules/discover-features/protocol/v2/handlers/index.d.ts +2 -0
  688. package/build/modules/discover-features/protocol/v2/handlers/index.js +19 -0
  689. package/build/modules/discover-features/protocol/v2/handlers/index.js.map +1 -0
  690. package/build/modules/discover-features/protocol/v2/index.d.ts +2 -0
  691. package/build/modules/discover-features/protocol/v2/index.js +19 -0
  692. package/build/modules/discover-features/protocol/v2/index.js.map +1 -0
  693. package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.d.ts +13 -0
  694. package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.js +44 -0
  695. package/build/modules/discover-features/protocol/v2/messages/V2DisclosuresMessage.js.map +1 -0
  696. package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.d.ts +14 -0
  697. package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.js +40 -0
  698. package/build/modules/discover-features/protocol/v2/messages/V2QueriesMessage.js.map +1 -0
  699. package/build/modules/discover-features/protocol/v2/messages/index.d.ts +2 -0
  700. package/build/modules/discover-features/protocol/v2/messages/index.js +19 -0
  701. package/build/modules/discover-features/protocol/v2/messages/index.js.map +1 -0
  702. package/build/modules/discover-features/services/DiscoverFeaturesService.d.ts +18 -0
  703. package/build/modules/discover-features/services/DiscoverFeaturesService.js +13 -0
  704. package/build/modules/discover-features/services/DiscoverFeaturesService.js.map +1 -0
  705. package/build/modules/discover-features/services/index.d.ts +1 -0
  706. package/build/modules/discover-features/services/index.js +18 -0
  707. package/build/modules/discover-features/services/index.js.map +1 -0
  708. package/build/modules/index.d.ts +8 -0
  709. package/build/modules/index.js +25 -0
  710. package/build/modules/index.js.map +1 -0
  711. package/build/modules/message-pickup/MessagePickupApi.d.ts +33 -0
  712. package/build/modules/message-pickup/MessagePickupApi.js +200 -0
  713. package/build/modules/message-pickup/MessagePickupApi.js.map +1 -0
  714. package/build/modules/message-pickup/MessagePickupApiOptions.d.ts +39 -0
  715. package/build/modules/message-pickup/MessagePickupApiOptions.js +3 -0
  716. package/build/modules/message-pickup/MessagePickupApiOptions.js.map +1 -0
  717. package/build/modules/message-pickup/MessagePickupEvents.d.ts +27 -0
  718. package/build/modules/message-pickup/MessagePickupEvents.js +10 -0
  719. package/build/modules/message-pickup/MessagePickupEvents.js.map +1 -0
  720. package/build/modules/message-pickup/MessagePickupModule.d.ts +21 -0
  721. package/build/modules/message-pickup/MessagePickupModule.js +51 -0
  722. package/build/modules/message-pickup/MessagePickupModule.js.map +1 -0
  723. package/build/modules/message-pickup/MessagePickupModuleConfig.d.ts +41 -0
  724. package/build/modules/message-pickup/MessagePickupModuleConfig.js +22 -0
  725. package/build/modules/message-pickup/MessagePickupModuleConfig.js.map +1 -0
  726. package/build/modules/message-pickup/MessagePickupSession.d.ts +12 -0
  727. package/build/modules/message-pickup/MessagePickupSession.js +9 -0
  728. package/build/modules/message-pickup/MessagePickupSession.js.map +1 -0
  729. package/build/modules/message-pickup/index.d.ts +8 -0
  730. package/build/modules/message-pickup/index.js +27 -0
  731. package/build/modules/message-pickup/index.js.map +1 -0
  732. package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.d.ts +17 -0
  733. package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.js +11 -0
  734. package/build/modules/message-pickup/protocol/BaseMessagePickupProtocol.js.map +1 -0
  735. package/build/modules/message-pickup/protocol/MessagePickupProtocol.d.ts +12 -0
  736. package/build/modules/message-pickup/protocol/MessagePickupProtocol.js +3 -0
  737. package/build/modules/message-pickup/protocol/MessagePickupProtocol.js.map +1 -0
  738. package/build/modules/message-pickup/protocol/MessagePickupProtocolOptions.d.ts +27 -0
  739. package/build/modules/message-pickup/protocol/MessagePickupProtocolOptions.js +3 -0
  740. package/build/modules/message-pickup/protocol/MessagePickupProtocolOptions.js.map +1 -0
  741. package/build/modules/message-pickup/protocol/index.d.ts +2 -0
  742. package/build/modules/message-pickup/protocol/index.js +19 -0
  743. package/build/modules/message-pickup/protocol/index.js.map +1 -0
  744. package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.d.ts +24 -0
  745. package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js +124 -0
  746. package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js.map +1 -0
  747. package/build/modules/message-pickup/protocol/v1/handlers/V1BatchHandler.d.ts +10 -0
  748. package/build/modules/message-pickup/protocol/v1/handlers/V1BatchHandler.js +23 -0
  749. package/build/modules/message-pickup/protocol/v1/handlers/V1BatchHandler.js.map +1 -0
  750. package/build/modules/message-pickup/protocol/v1/handlers/V1BatchPickupHandler.d.ts +9 -0
  751. package/build/modules/message-pickup/protocol/v1/handlers/V1BatchPickupHandler.js +16 -0
  752. package/build/modules/message-pickup/protocol/v1/handlers/V1BatchPickupHandler.js.map +1 -0
  753. package/build/modules/message-pickup/protocol/v1/handlers/index.d.ts +2 -0
  754. package/build/modules/message-pickup/protocol/v1/handlers/index.js +19 -0
  755. package/build/modules/message-pickup/protocol/v1/handlers/index.js.map +1 -0
  756. package/build/modules/message-pickup/protocol/v1/index.d.ts +2 -0
  757. package/build/modules/message-pickup/protocol/v1/index.js +19 -0
  758. package/build/modules/message-pickup/protocol/v1/index.js.map +1 -0
  759. package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.d.ts +27 -0
  760. package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.js +71 -0
  761. package/build/modules/message-pickup/protocol/v1/messages/V1BatchMessage.js.map +1 -0
  762. package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.d.ts +22 -0
  763. package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.js +49 -0
  764. package/build/modules/message-pickup/protocol/v1/messages/V1BatchPickupMessage.js.map +1 -0
  765. package/build/modules/message-pickup/protocol/v1/messages/index.d.ts +2 -0
  766. package/build/modules/message-pickup/protocol/v1/messages/index.js +19 -0
  767. package/build/modules/message-pickup/protocol/v1/messages/index.js.map +1 -0
  768. package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.d.ts +28 -0
  769. package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js +238 -0
  770. package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js.map +1 -0
  771. package/build/modules/message-pickup/protocol/v2/handlers/V2DeliveryRequestHandler.d.ts +10 -0
  772. package/build/modules/message-pickup/protocol/v2/handlers/V2DeliveryRequestHandler.js +16 -0
  773. package/build/modules/message-pickup/protocol/v2/handlers/V2DeliveryRequestHandler.js.map +1 -0
  774. package/build/modules/message-pickup/protocol/v2/handlers/V2LiveDeliveryChangeHandler.d.ts +10 -0
  775. package/build/modules/message-pickup/protocol/v2/handlers/V2LiveDeliveryChangeHandler.js +16 -0
  776. package/build/modules/message-pickup/protocol/v2/handlers/V2LiveDeliveryChangeHandler.js.map +1 -0
  777. package/build/modules/message-pickup/protocol/v2/handlers/V2MessageDeliveryHandler.d.ts +11 -0
  778. package/build/modules/message-pickup/protocol/v2/handlers/V2MessageDeliveryHandler.js +23 -0
  779. package/build/modules/message-pickup/protocol/v2/handlers/V2MessageDeliveryHandler.js.map +1 -0
  780. package/build/modules/message-pickup/protocol/v2/handlers/V2MessagesReceivedHandler.d.ts +10 -0
  781. package/build/modules/message-pickup/protocol/v2/handlers/V2MessagesReceivedHandler.js +16 -0
  782. package/build/modules/message-pickup/protocol/v2/handlers/V2MessagesReceivedHandler.js.map +1 -0
  783. package/build/modules/message-pickup/protocol/v2/handlers/V2StatusHandler.d.ts +11 -0
  784. package/build/modules/message-pickup/protocol/v2/handlers/V2StatusHandler.js +23 -0
  785. package/build/modules/message-pickup/protocol/v2/handlers/V2StatusHandler.js.map +1 -0
  786. package/build/modules/message-pickup/protocol/v2/handlers/V2StatusRequestHandler.d.ts +10 -0
  787. package/build/modules/message-pickup/protocol/v2/handlers/V2StatusRequestHandler.js +16 -0
  788. package/build/modules/message-pickup/protocol/v2/handlers/V2StatusRequestHandler.js.map +1 -0
  789. package/build/modules/message-pickup/protocol/v2/handlers/index.d.ts +6 -0
  790. package/build/modules/message-pickup/protocol/v2/handlers/index.js +23 -0
  791. package/build/modules/message-pickup/protocol/v2/handlers/index.js.map +1 -0
  792. package/build/modules/message-pickup/protocol/v2/index.d.ts +2 -0
  793. package/build/modules/message-pickup/protocol/v2/index.js +19 -0
  794. package/build/modules/message-pickup/protocol/v2/index.js.map +1 -0
  795. package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.d.ts +14 -0
  796. package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.js +47 -0
  797. package/build/modules/message-pickup/protocol/v2/messages/V2DeliveryRequestMessage.js.map +1 -0
  798. package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.d.ts +12 -0
  799. package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.js +41 -0
  800. package/build/modules/message-pickup/protocol/v2/messages/V2LiveDeliveryChangeMessage.js.map +1 -0
  801. package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.d.ts +15 -0
  802. package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.js +48 -0
  803. package/build/modules/message-pickup/protocol/v2/messages/V2MessageDeliveryMessage.js.map +1 -0
  804. package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.d.ts +12 -0
  805. package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.js +41 -0
  806. package/build/modules/message-pickup/protocol/v2/messages/V2MessagesReceivedMessage.js.map +1 -0
  807. package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.d.ts +25 -0
  808. package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.js +89 -0
  809. package/build/modules/message-pickup/protocol/v2/messages/V2StatusMessage.js.map +1 -0
  810. package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.d.ts +12 -0
  811. package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.js +40 -0
  812. package/build/modules/message-pickup/protocol/v2/messages/V2StatusRequestMessage.js.map +1 -0
  813. package/build/modules/message-pickup/protocol/v2/messages/index.d.ts +6 -0
  814. package/build/modules/message-pickup/protocol/v2/messages/index.js +23 -0
  815. package/build/modules/message-pickup/protocol/v2/messages/index.js.map +1 -0
  816. package/build/modules/message-pickup/services/MessagePickupSessionService.d.ts +27 -0
  817. package/build/modules/message-pickup/services/MessagePickupSessionService.js +88 -0
  818. package/build/modules/message-pickup/services/MessagePickupSessionService.js.map +1 -0
  819. package/build/modules/message-pickup/services/index.d.ts +1 -0
  820. package/build/modules/message-pickup/services/index.js +18 -0
  821. package/build/modules/message-pickup/services/index.js.map +1 -0
  822. package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.d.ts +13 -0
  823. package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js +75 -0
  824. package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js.map +1 -0
  825. package/build/modules/message-pickup/storage/MessagePickupRepository.d.ts +8 -0
  826. package/build/modules/message-pickup/storage/MessagePickupRepository.js +3 -0
  827. package/build/modules/message-pickup/storage/MessagePickupRepository.js.map +1 -0
  828. package/build/modules/message-pickup/storage/MessagePickupRepositoryOptions.d.ts +20 -0
  829. package/build/modules/message-pickup/storage/MessagePickupRepositoryOptions.js +3 -0
  830. package/build/modules/message-pickup/storage/MessagePickupRepositoryOptions.js.map +1 -0
  831. package/build/modules/message-pickup/storage/QueuedMessage.d.ts +12 -0
  832. package/build/modules/message-pickup/storage/QueuedMessage.js +3 -0
  833. package/build/modules/message-pickup/storage/QueuedMessage.js.map +1 -0
  834. package/build/modules/message-pickup/storage/index.d.ts +4 -0
  835. package/build/modules/message-pickup/storage/index.js +21 -0
  836. package/build/modules/message-pickup/storage/index.js.map +1 -0
  837. package/build/modules/oob/OutOfBandApi.d.ts +275 -0
  838. package/build/modules/oob/OutOfBandApi.js +717 -0
  839. package/build/modules/oob/OutOfBandApi.js.map +1 -0
  840. package/build/modules/oob/OutOfBandModule.d.ts +10 -0
  841. package/build/modules/oob/OutOfBandModule.js +32 -0
  842. package/build/modules/oob/OutOfBandModule.js.map +1 -0
  843. package/build/modules/oob/OutOfBandService.d.ts +48 -0
  844. package/build/modules/oob/OutOfBandService.js +218 -0
  845. package/build/modules/oob/OutOfBandService.js.map +1 -0
  846. package/build/modules/oob/converters.d.ts +9 -0
  847. package/build/modules/oob/converters.js +91 -0
  848. package/build/modules/oob/converters.js.map +1 -0
  849. package/build/modules/oob/domain/OutOfBandDidCommService.d.ts +18 -0
  850. package/build/modules/oob/domain/OutOfBandDidCommService.js +75 -0
  851. package/build/modules/oob/domain/OutOfBandDidCommService.js.map +1 -0
  852. package/build/modules/oob/domain/OutOfBandEvents.d.ts +23 -0
  853. package/build/modules/oob/domain/OutOfBandEvents.js +9 -0
  854. package/build/modules/oob/domain/OutOfBandEvents.js.map +1 -0
  855. package/build/modules/oob/domain/OutOfBandRole.d.ts +4 -0
  856. package/build/modules/oob/domain/OutOfBandRole.js +9 -0
  857. package/build/modules/oob/domain/OutOfBandRole.js.map +1 -0
  858. package/build/modules/oob/domain/OutOfBandState.d.ts +6 -0
  859. package/build/modules/oob/domain/OutOfBandState.js +11 -0
  860. package/build/modules/oob/domain/OutOfBandState.js.map +1 -0
  861. package/build/modules/oob/domain/index.d.ts +4 -0
  862. package/build/modules/oob/domain/index.js +21 -0
  863. package/build/modules/oob/domain/index.js.map +1 -0
  864. package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.d.ts +10 -0
  865. package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.js +16 -0
  866. package/build/modules/oob/handlers/HandshakeReuseAcceptedHandler.js.map +1 -0
  867. package/build/modules/oob/handlers/HandshakeReuseHandler.d.ts +11 -0
  868. package/build/modules/oob/handlers/HandshakeReuseHandler.js +21 -0
  869. package/build/modules/oob/handlers/HandshakeReuseHandler.js.map +1 -0
  870. package/build/modules/oob/handlers/index.d.ts +1 -0
  871. package/build/modules/oob/handlers/index.js +18 -0
  872. package/build/modules/oob/handlers/index.js.map +1 -0
  873. package/build/modules/oob/helpers.d.ts +3 -0
  874. package/build/modules/oob/helpers.js +41 -0
  875. package/build/modules/oob/helpers.js.map +1 -0
  876. package/build/modules/oob/index.d.ts +6 -0
  877. package/build/modules/oob/index.js +23 -0
  878. package/build/modules/oob/index.js.map +1 -0
  879. package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.d.ts +11 -0
  880. package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.js +34 -0
  881. package/build/modules/oob/messages/HandshakeReuseAcceptedMessage.js.map +1 -0
  882. package/build/modules/oob/messages/HandshakeReuseMessage.d.ts +10 -0
  883. package/build/modules/oob/messages/HandshakeReuseMessage.js +33 -0
  884. package/build/modules/oob/messages/HandshakeReuseMessage.js.map +1 -0
  885. package/build/modules/oob/messages/OutOfBandInvitation.d.ts +55 -0
  886. package/build/modules/oob/messages/OutOfBandInvitation.js +176 -0
  887. package/build/modules/oob/messages/OutOfBandInvitation.js.map +1 -0
  888. package/build/modules/oob/messages/index.d.ts +3 -0
  889. package/build/modules/oob/messages/index.js +20 -0
  890. package/build/modules/oob/messages/index.js.map +1 -0
  891. package/build/modules/oob/repository/OutOfBandRecord.d.ts +59 -0
  892. package/build/modules/oob/repository/OutOfBandRecord.js +67 -0
  893. package/build/modules/oob/repository/OutOfBandRecord.js.map +1 -0
  894. package/build/modules/oob/repository/OutOfBandRepository.d.ts +5 -0
  895. package/build/modules/oob/repository/OutOfBandRepository.js +29 -0
  896. package/build/modules/oob/repository/OutOfBandRepository.js.map +1 -0
  897. package/build/modules/oob/repository/index.d.ts +2 -0
  898. package/build/modules/oob/repository/index.js +19 -0
  899. package/build/modules/oob/repository/index.js.map +1 -0
  900. package/build/modules/oob/repository/outOfBandRecordMetadataTypes.d.ts +19 -0
  901. package/build/modules/oob/repository/outOfBandRecordMetadataTypes.js +9 -0
  902. package/build/modules/oob/repository/outOfBandRecordMetadataTypes.js.map +1 -0
  903. package/build/modules/proofs/ProofEvents.d.ts +13 -0
  904. package/build/modules/proofs/ProofEvents.js +8 -0
  905. package/build/modules/proofs/ProofEvents.js.map +1 -0
  906. package/build/modules/proofs/ProofsApi.d.ts +68 -0
  907. package/build/modules/proofs/ProofsApi.js +475 -0
  908. package/build/modules/proofs/ProofsApi.js.map +1 -0
  909. package/build/modules/proofs/ProofsApiOptions.d.ts +141 -0
  910. package/build/modules/proofs/ProofsApiOptions.js +3 -0
  911. package/build/modules/proofs/ProofsApiOptions.js.map +1 -0
  912. package/build/modules/proofs/ProofsModule.d.ts +21 -0
  913. package/build/modules/proofs/ProofsModule.js +38 -0
  914. package/build/modules/proofs/ProofsModule.js.map +1 -0
  915. package/build/modules/proofs/ProofsModuleConfig.d.ts +34 -0
  916. package/build/modules/proofs/ProofsModuleConfig.js +19 -0
  917. package/build/modules/proofs/ProofsModuleConfig.js.map +1 -0
  918. package/build/modules/proofs/errors/PresentationProblemReportReason.d.ts +8 -0
  919. package/build/modules/proofs/errors/PresentationProblemReportReason.js +13 -0
  920. package/build/modules/proofs/errors/PresentationProblemReportReason.js.map +1 -0
  921. package/build/modules/proofs/errors/index.d.ts +1 -0
  922. package/build/modules/proofs/errors/index.js +18 -0
  923. package/build/modules/proofs/errors/index.js.map +1 -0
  924. package/build/modules/proofs/formats/ProofFormat.d.ts +66 -0
  925. package/build/modules/proofs/formats/ProofFormat.js +3 -0
  926. package/build/modules/proofs/formats/ProofFormat.js.map +1 -0
  927. package/build/modules/proofs/formats/ProofFormatService.d.ts +19 -0
  928. package/build/modules/proofs/formats/ProofFormatService.js +3 -0
  929. package/build/modules/proofs/formats/ProofFormatService.js.map +1 -0
  930. package/build/modules/proofs/formats/ProofFormatServiceOptions.d.ts +103 -0
  931. package/build/modules/proofs/formats/ProofFormatServiceOptions.js +3 -0
  932. package/build/modules/proofs/formats/ProofFormatServiceOptions.js.map +1 -0
  933. package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.d.ts +52 -0
  934. package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.js +3 -0
  935. package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormat.js.map +1 -0
  936. package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.d.ts +31 -0
  937. package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js +291 -0
  938. package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js.map +1 -0
  939. package/build/modules/proofs/formats/dif-presentation-exchange/index.d.ts +2 -0
  940. package/build/modules/proofs/formats/dif-presentation-exchange/index.js +19 -0
  941. package/build/modules/proofs/formats/dif-presentation-exchange/index.js.map +1 -0
  942. package/build/modules/proofs/formats/index.d.ts +6 -0
  943. package/build/modules/proofs/formats/index.js +36 -0
  944. package/build/modules/proofs/formats/index.js.map +1 -0
  945. package/build/modules/proofs/index.d.ts +10 -0
  946. package/build/modules/proofs/index.js +29 -0
  947. package/build/modules/proofs/index.js.map +1 -0
  948. package/build/modules/proofs/models/ProofAutoAcceptType.d.ts +8 -0
  949. package/build/modules/proofs/models/ProofAutoAcceptType.js +16 -0
  950. package/build/modules/proofs/models/ProofAutoAcceptType.js.map +1 -0
  951. package/build/modules/proofs/models/ProofFormatSpec.d.ts +9 -0
  952. package/build/modules/proofs/models/ProofFormatSpec.js +34 -0
  953. package/build/modules/proofs/models/ProofFormatSpec.js.map +1 -0
  954. package/build/modules/proofs/models/ProofRole.d.ts +4 -0
  955. package/build/modules/proofs/models/ProofRole.js +9 -0
  956. package/build/modules/proofs/models/ProofRole.js.map +1 -0
  957. package/build/modules/proofs/models/ProofState.d.ts +16 -0
  958. package/build/modules/proofs/models/ProofState.js +21 -0
  959. package/build/modules/proofs/models/ProofState.js.map +1 -0
  960. package/build/modules/proofs/models/index.d.ts +4 -0
  961. package/build/modules/proofs/models/index.js +21 -0
  962. package/build/modules/proofs/models/index.js.map +1 -0
  963. package/build/modules/proofs/protocol/BaseProofProtocol.d.ts +97 -0
  964. package/build/modules/proofs/protocol/BaseProofProtocol.js +150 -0
  965. package/build/modules/proofs/protocol/BaseProofProtocol.js.map +1 -0
  966. package/build/modules/proofs/protocol/ProofProtocol.d.ts +51 -0
  967. package/build/modules/proofs/protocol/ProofProtocol.js +3 -0
  968. package/build/modules/proofs/protocol/ProofProtocol.js.map +1 -0
  969. package/build/modules/proofs/protocol/ProofProtocolOptions.d.ts +128 -0
  970. package/build/modules/proofs/protocol/ProofProtocolOptions.js +3 -0
  971. package/build/modules/proofs/protocol/ProofProtocolOptions.js.map +1 -0
  972. package/build/modules/proofs/protocol/index.d.ts +5 -0
  973. package/build/modules/proofs/protocol/index.js +39 -0
  974. package/build/modules/proofs/protocol/index.js.map +1 -0
  975. package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.d.ts +93 -0
  976. package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js +307 -0
  977. package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js.map +1 -0
  978. package/build/modules/proofs/protocol/v2/V2ProofProtocol.d.ts +114 -0
  979. package/build/modules/proofs/protocol/v2/V2ProofProtocol.js +797 -0
  980. package/build/modules/proofs/protocol/v2/V2ProofProtocol.js.map +1 -0
  981. package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.d.ts +13 -0
  982. package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.js +19 -0
  983. package/build/modules/proofs/protocol/v2/errors/V2PresentationProblemReportError.js.map +1 -0
  984. package/build/modules/proofs/protocol/v2/errors/index.d.ts +1 -0
  985. package/build/modules/proofs/protocol/v2/errors/index.js +18 -0
  986. package/build/modules/proofs/protocol/v2/errors/index.js.map +1 -0
  987. package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.d.ts +9 -0
  988. package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.js +15 -0
  989. package/build/modules/proofs/protocol/v2/handlers/V2PresentationAckHandler.js.map +1 -0
  990. package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.d.ts +10 -0
  991. package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.js +43 -0
  992. package/build/modules/proofs/protocol/v2/handlers/V2PresentationHandler.js.map +1 -0
  993. package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.d.ts +9 -0
  994. package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.js +15 -0
  995. package/build/modules/proofs/protocol/v2/handlers/V2PresentationProblemReportHandler.js.map +1 -0
  996. package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.d.ts +11 -0
  997. package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.js +36 -0
  998. package/build/modules/proofs/protocol/v2/handlers/V2ProposePresentationHandler.js.map +1 -0
  999. package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.d.ts +10 -0
  1000. package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.js +36 -0
  1001. package/build/modules/proofs/protocol/v2/handlers/V2RequestPresentationHandler.js.map +1 -0
  1002. package/build/modules/proofs/protocol/v2/index.d.ts +3 -0
  1003. package/build/modules/proofs/protocol/v2/index.js +20 -0
  1004. package/build/modules/proofs/protocol/v2/index.js.map +1 -0
  1005. package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.d.ts +5 -0
  1006. package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.js +27 -0
  1007. package/build/modules/proofs/protocol/v2/messages/V2PresentationAckMessage.js.map +1 -0
  1008. package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.d.ts +24 -0
  1009. package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.js +84 -0
  1010. package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.js.map +1 -0
  1011. package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.d.ts +8 -0
  1012. package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.js +30 -0
  1013. package/build/modules/proofs/protocol/v2/messages/V2PresentationProblemReportMessage.js.map +1 -0
  1014. package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.d.ts +22 -0
  1015. package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.js +76 -0
  1016. package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.js.map +1 -0
  1017. package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.d.ts +26 -0
  1018. package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.js +91 -0
  1019. package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.js.map +1 -0
  1020. package/build/modules/proofs/protocol/v2/messages/index.d.ts +5 -0
  1021. package/build/modules/proofs/protocol/v2/messages/index.js +22 -0
  1022. package/build/modules/proofs/protocol/v2/messages/index.js.map +1 -0
  1023. package/build/modules/proofs/repository/ProofExchangeRecord.d.ts +50 -0
  1024. package/build/modules/proofs/repository/ProofExchangeRecord.js +58 -0
  1025. package/build/modules/proofs/repository/ProofExchangeRecord.js.map +1 -0
  1026. package/build/modules/proofs/repository/ProofRepository.d.ts +24 -0
  1027. package/build/modules/proofs/repository/ProofRepository.js +51 -0
  1028. package/build/modules/proofs/repository/ProofRepository.js.map +1 -0
  1029. package/build/modules/proofs/repository/index.d.ts +2 -0
  1030. package/build/modules/proofs/repository/index.js +19 -0
  1031. package/build/modules/proofs/repository/index.js.map +1 -0
  1032. package/build/modules/proofs/utils/composeAutoAccept.d.ts +8 -0
  1033. package/build/modules/proofs/utils/composeAutoAccept.js +14 -0
  1034. package/build/modules/proofs/utils/composeAutoAccept.js.map +1 -0
  1035. package/build/modules/proofs/utils/index.d.ts +1 -0
  1036. package/build/modules/proofs/utils/index.js +18 -0
  1037. package/build/modules/proofs/utils/index.js.map +1 -0
  1038. package/build/modules/routing/MediationRecipientApi.d.ts +87 -0
  1039. package/build/modules/routing/MediationRecipientApi.js +455 -0
  1040. package/build/modules/routing/MediationRecipientApi.js.map +1 -0
  1041. package/build/modules/routing/MediationRecipientModule.d.ts +14 -0
  1042. package/build/modules/routing/MediationRecipientModule.js +37 -0
  1043. package/build/modules/routing/MediationRecipientModule.js.map +1 -0
  1044. package/build/modules/routing/MediationRecipientModuleConfig.d.ts +79 -0
  1045. package/build/modules/routing/MediationRecipientModuleConfig.js +34 -0
  1046. package/build/modules/routing/MediationRecipientModuleConfig.js.map +1 -0
  1047. package/build/modules/routing/MediatorApi.d.ts +17 -0
  1048. package/build/modules/routing/MediatorApi.js +59 -0
  1049. package/build/modules/routing/MediatorApi.js.map +1 -0
  1050. package/build/modules/routing/MediatorModule.d.ts +14 -0
  1051. package/build/modules/routing/MediatorModule.js +45 -0
  1052. package/build/modules/routing/MediatorModule.js.map +1 -0
  1053. package/build/modules/routing/MediatorModuleConfig.d.ts +33 -0
  1054. package/build/modules/routing/MediatorModuleConfig.js +19 -0
  1055. package/build/modules/routing/MediatorModuleConfig.js.map +1 -0
  1056. package/build/modules/routing/MediatorPickupStrategy.d.ts +7 -0
  1057. package/build/modules/routing/MediatorPickupStrategy.js +19 -0
  1058. package/build/modules/routing/MediatorPickupStrategy.js.map +1 -0
  1059. package/build/modules/routing/MessageForwardingStrategy.d.ts +5 -0
  1060. package/build/modules/routing/MessageForwardingStrategy.js +16 -0
  1061. package/build/modules/routing/MessageForwardingStrategy.js.map +1 -0
  1062. package/build/modules/routing/RoutingEvents.d.ts +30 -0
  1063. package/build/modules/routing/RoutingEvents.js +10 -0
  1064. package/build/modules/routing/RoutingEvents.js.map +1 -0
  1065. package/build/modules/routing/error/RoutingProblemReportReason.d.ts +3 -0
  1066. package/build/modules/routing/error/RoutingProblemReportReason.js +8 -0
  1067. package/build/modules/routing/error/RoutingProblemReportReason.js.map +1 -0
  1068. package/build/modules/routing/error/index.d.ts +1 -0
  1069. package/build/modules/routing/error/index.js +18 -0
  1070. package/build/modules/routing/error/index.js.map +1 -0
  1071. package/build/modules/routing/handlers/ForwardHandler.d.ts +9 -0
  1072. package/build/modules/routing/handlers/ForwardHandler.js +15 -0
  1073. package/build/modules/routing/handlers/ForwardHandler.js.map +1 -0
  1074. package/build/modules/routing/handlers/KeylistUpdateHandler.d.ts +10 -0
  1075. package/build/modules/routing/handlers/KeylistUpdateHandler.js +21 -0
  1076. package/build/modules/routing/handlers/KeylistUpdateHandler.js.map +1 -0
  1077. package/build/modules/routing/handlers/KeylistUpdateResponseHandler.d.ts +9 -0
  1078. package/build/modules/routing/handlers/KeylistUpdateResponseHandler.js +16 -0
  1079. package/build/modules/routing/handlers/KeylistUpdateResponseHandler.js.map +1 -0
  1080. package/build/modules/routing/handlers/MediationDenyHandler.d.ts +9 -0
  1081. package/build/modules/routing/handlers/MediationDenyHandler.js +16 -0
  1082. package/build/modules/routing/handlers/MediationDenyHandler.js.map +1 -0
  1083. package/build/modules/routing/handlers/MediationGrantHandler.d.ts +9 -0
  1084. package/build/modules/routing/handlers/MediationGrantHandler.js +16 -0
  1085. package/build/modules/routing/handlers/MediationGrantHandler.js.map +1 -0
  1086. package/build/modules/routing/handlers/MediationRequestHandler.d.ts +12 -0
  1087. package/build/modules/routing/handlers/MediationRequestHandler.js +26 -0
  1088. package/build/modules/routing/handlers/MediationRequestHandler.js.map +1 -0
  1089. package/build/modules/routing/handlers/index.d.ts +6 -0
  1090. package/build/modules/routing/handlers/index.js +23 -0
  1091. package/build/modules/routing/handlers/index.js.map +1 -0
  1092. package/build/modules/routing/index.d.ts +11 -0
  1093. package/build/modules/routing/index.js +28 -0
  1094. package/build/modules/routing/index.js.map +1 -0
  1095. package/build/modules/routing/messages/ForwardMessage.d.ts +23 -0
  1096. package/build/modules/routing/messages/ForwardMessage.js +52 -0
  1097. package/build/modules/routing/messages/ForwardMessage.js.map +1 -0
  1098. package/build/modules/routing/messages/KeylistMessage.d.ts +20 -0
  1099. package/build/modules/routing/messages/KeylistMessage.js +49 -0
  1100. package/build/modules/routing/messages/KeylistMessage.js.map +1 -0
  1101. package/build/modules/routing/messages/KeylistUpdateMessage.d.ts +29 -0
  1102. package/build/modules/routing/messages/KeylistUpdateMessage.js +68 -0
  1103. package/build/modules/routing/messages/KeylistUpdateMessage.js.map +1 -0
  1104. package/build/modules/routing/messages/KeylistUpdateResponseMessage.d.ts +34 -0
  1105. package/build/modules/routing/messages/KeylistUpdateResponseMessage.js +79 -0
  1106. package/build/modules/routing/messages/KeylistUpdateResponseMessage.js.map +1 -0
  1107. package/build/modules/routing/messages/MediationDenyMessage.d.ts +14 -0
  1108. package/build/modules/routing/messages/MediationDenyMessage.js +35 -0
  1109. package/build/modules/routing/messages/MediationDenyMessage.js.map +1 -0
  1110. package/build/modules/routing/messages/MediationGrantMessage.d.ts +20 -0
  1111. package/build/modules/routing/messages/MediationGrantMessage.js +54 -0
  1112. package/build/modules/routing/messages/MediationGrantMessage.js.map +1 -0
  1113. package/build/modules/routing/messages/MediationRequestMessage.d.ts +22 -0
  1114. package/build/modules/routing/messages/MediationRequestMessage.js +42 -0
  1115. package/build/modules/routing/messages/MediationRequestMessage.js.map +1 -0
  1116. package/build/modules/routing/messages/index.d.ts +6 -0
  1117. package/build/modules/routing/messages/index.js +23 -0
  1118. package/build/modules/routing/messages/index.js.map +1 -0
  1119. package/build/modules/routing/models/MediationRole.d.ts +9 -0
  1120. package/build/modules/routing/models/MediationRole.js +14 -0
  1121. package/build/modules/routing/models/MediationRole.js.map +1 -0
  1122. package/build/modules/routing/models/MediationState.d.ts +10 -0
  1123. package/build/modules/routing/models/MediationState.js +15 -0
  1124. package/build/modules/routing/models/MediationState.js.map +1 -0
  1125. package/build/modules/routing/models/index.d.ts +2 -0
  1126. package/build/modules/routing/models/index.js +19 -0
  1127. package/build/modules/routing/models/index.js.map +1 -0
  1128. package/build/modules/routing/repository/MediationRecord.d.ts +53 -0
  1129. package/build/modules/routing/repository/MediationRecord.js +91 -0
  1130. package/build/modules/routing/repository/MediationRecord.js.map +1 -0
  1131. package/build/modules/routing/repository/MediationRepository.d.ts +8 -0
  1132. package/build/modules/routing/repository/MediationRepository.js +37 -0
  1133. package/build/modules/routing/repository/MediationRepository.js.map +1 -0
  1134. package/build/modules/routing/repository/MediatorRoutingRecord.d.ts +15 -0
  1135. package/build/modules/routing/repository/MediatorRoutingRecord.js +21 -0
  1136. package/build/modules/routing/repository/MediatorRoutingRecord.js.map +1 -0
  1137. package/build/modules/routing/repository/MediatorRoutingRepository.d.ts +6 -0
  1138. package/build/modules/routing/repository/MediatorRoutingRepository.js +30 -0
  1139. package/build/modules/routing/repository/MediatorRoutingRepository.js.map +1 -0
  1140. package/build/modules/routing/repository/index.d.ts +4 -0
  1141. package/build/modules/routing/repository/index.js +21 -0
  1142. package/build/modules/routing/repository/index.js.map +1 -0
  1143. package/build/modules/routing/services/MediationRecipientService.d.ts +54 -0
  1144. package/build/modules/routing/services/MediationRecipientService.js +275 -0
  1145. package/build/modules/routing/services/MediationRecipientService.js.map +1 -0
  1146. package/build/modules/routing/services/MediatorService.d.ts +37 -0
  1147. package/build/modules/routing/services/MediatorService.js +250 -0
  1148. package/build/modules/routing/services/MediatorService.js.map +1 -0
  1149. package/build/modules/routing/services/RoutingService.d.ts +32 -0
  1150. package/build/modules/routing/services/RoutingService.js +54 -0
  1151. package/build/modules/routing/services/RoutingService.js.map +1 -0
  1152. package/build/modules/routing/services/helpers.d.ts +2 -0
  1153. package/build/modules/routing/services/helpers.js +13 -0
  1154. package/build/modules/routing/services/helpers.js.map +1 -0
  1155. package/build/modules/routing/services/index.d.ts +3 -0
  1156. package/build/modules/routing/services/index.js +20 -0
  1157. package/build/modules/routing/services/index.js.map +1 -0
  1158. package/build/repository/DidCommMessageRecord.d.ts +48 -0
  1159. package/build/repository/DidCommMessageRecord.js +51 -0
  1160. package/build/repository/DidCommMessageRecord.js.map +1 -0
  1161. package/build/repository/DidCommMessageRepository.d.ts +22 -0
  1162. package/build/repository/DidCommMessageRepository.js +74 -0
  1163. package/build/repository/DidCommMessageRepository.js.map +1 -0
  1164. package/build/repository/DidCommMessageRole.d.ts +4 -0
  1165. package/build/repository/DidCommMessageRole.js +9 -0
  1166. package/build/repository/DidCommMessageRole.js.map +1 -0
  1167. package/build/repository/index.d.ts +3 -0
  1168. package/build/repository/index.js +20 -0
  1169. package/build/repository/index.js.map +1 -0
  1170. package/build/services/DidCommDocumentService.d.ts +7 -0
  1171. package/build/services/DidCommDocumentService.js +78 -0
  1172. package/build/services/DidCommDocumentService.js.map +1 -0
  1173. package/build/services/index.d.ts +1 -0
  1174. package/build/services/index.js +18 -0
  1175. package/build/services/index.js.map +1 -0
  1176. package/build/transport/HttpOutboundTransport.d.ts +15 -0
  1177. package/build/transport/HttpOutboundTransport.js +126 -0
  1178. package/build/transport/HttpOutboundTransport.js.map +1 -0
  1179. package/build/transport/InboundTransport.d.ts +5 -0
  1180. package/build/transport/InboundTransport.js +3 -0
  1181. package/build/transport/InboundTransport.js.map +1 -0
  1182. package/build/transport/OutboundTransport.d.ts +8 -0
  1183. package/build/transport/OutboundTransport.js +3 -0
  1184. package/build/transport/OutboundTransport.js.map +1 -0
  1185. package/build/transport/TransportEventTypes.d.ts +34 -0
  1186. package/build/transport/TransportEventTypes.js +11 -0
  1187. package/build/transport/TransportEventTypes.js.map +1 -0
  1188. package/build/transport/WsOutboundTransport.d.ts +19 -0
  1189. package/build/transport/WsOutboundTransport.js +146 -0
  1190. package/build/transport/WsOutboundTransport.js.map +1 -0
  1191. package/build/transport/index.d.ts +5 -0
  1192. package/build/transport/index.js +22 -0
  1193. package/build/transport/index.js.map +1 -0
  1194. package/build/types.d.ts +46 -0
  1195. package/build/types.js +9 -0
  1196. package/build/types.js.map +1 -0
  1197. package/build/updates/0.1-0.2/connection.d.ts +119 -0
  1198. package/build/updates/0.1-0.2/connection.js +376 -0
  1199. package/build/updates/0.1-0.2/connection.js.map +1 -0
  1200. package/build/updates/0.1-0.2/credential.d.ts +80 -0
  1201. package/build/updates/0.1-0.2/credential.js +204 -0
  1202. package/build/updates/0.1-0.2/credential.js.map +1 -0
  1203. package/build/updates/0.1-0.2/index.d.ts +2 -0
  1204. package/build/updates/0.1-0.2/index.js +14 -0
  1205. package/build/updates/0.1-0.2/index.js.map +1 -0
  1206. package/build/updates/0.1-0.2/mediation.d.ts +29 -0
  1207. package/build/updates/0.1-0.2/mediation.js +67 -0
  1208. package/build/updates/0.1-0.2/mediation.js.map +1 -0
  1209. package/build/updates/0.2-0.3/connection.d.ts +14 -0
  1210. package/build/updates/0.2-0.3/connection.js +47 -0
  1211. package/build/updates/0.2-0.3/connection.js.map +1 -0
  1212. package/build/updates/0.2-0.3/index.d.ts +2 -0
  1213. package/build/updates/0.2-0.3/index.js +10 -0
  1214. package/build/updates/0.2-0.3/index.js.map +1 -0
  1215. package/build/updates/0.2-0.3/proof.d.ts +42 -0
  1216. package/build/updates/0.2-0.3/proof.js +130 -0
  1217. package/build/updates/0.2-0.3/proof.js.map +1 -0
  1218. package/build/updates/0.4-0.5/credentialExchangeRecord.d.ts +17 -0
  1219. package/build/updates/0.4-0.5/credentialExchangeRecord.js +106 -0
  1220. package/build/updates/0.4-0.5/credentialExchangeRecord.js.map +1 -0
  1221. package/build/updates/0.4-0.5/index.d.ts +2 -0
  1222. package/build/updates/0.4-0.5/index.js +10 -0
  1223. package/build/updates/0.4-0.5/index.js.map +1 -0
  1224. package/build/updates/0.4-0.5/proofExchangeRecord.d.ts +16 -0
  1225. package/build/updates/0.4-0.5/proofExchangeRecord.js +87 -0
  1226. package/build/updates/0.4-0.5/proofExchangeRecord.js.map +1 -0
  1227. package/build/util/JWE.d.ts +2 -0
  1228. package/build/util/JWE.js +14 -0
  1229. package/build/util/JWE.js.map +1 -0
  1230. package/build/util/LinkedAttachment.d.ts +23 -0
  1231. package/build/util/LinkedAttachment.js +51 -0
  1232. package/build/util/LinkedAttachment.js.map +1 -0
  1233. package/build/util/attachment.d.ts +18 -0
  1234. package/build/util/attachment.js +37 -0
  1235. package/build/util/attachment.js.map +1 -0
  1236. package/build/util/matchingEd25519Key.d.ts +9 -0
  1237. package/build/util/matchingEd25519Key.js +30 -0
  1238. package/build/util/matchingEd25519Key.js.map +1 -0
  1239. package/build/util/messageType.d.ts +138 -0
  1240. package/build/util/messageType.js +179 -0
  1241. package/build/util/messageType.js.map +1 -0
  1242. package/build/util/modules.d.ts +37 -0
  1243. package/build/util/modules.js +20 -0
  1244. package/build/util/modules.js.map +1 -0
  1245. package/build/util/parseInvitation.d.ts +30 -0
  1246. package/build/util/parseInvitation.js +155 -0
  1247. package/build/util/parseInvitation.js.map +1 -0
  1248. package/build/util/thread.d.ts +2 -0
  1249. package/build/util/thread.js +7 -0
  1250. package/build/util/thread.js.map +1 -0
  1251. package/build/util/transformers.d.ts +1 -0
  1252. package/build/util/transformers.js +20 -0
  1253. package/build/util/transformers.js.map +1 -0
  1254. package/package.json +41 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectionService.js","sourceRoot":"","sources":["../../../../src/modules/connections/services/ConnectionService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAWA,yCAmBuB;AACvB,+BAAoD;AACpD,8CAAoD;AAEpD,sEAAkE;AAClE,mGAAmH;AAEnH,iEAA6D;AAC7D,kEAA8D;AAC9D,oEAAgE;AAChE,iDAAmD;AACnD,qDAA0D;AAC1D,oGAA+F;AAC/F,0DAA0D;AAC1D,sCAAuF;AACvF,0CAAmG;AACnG,sCASkB;AAClB,8CAAsE;AAEtE,uCAAoF;AAW7E,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAM5B,YACmC,MAAc,EAC/C,oBAA0C,EAC1C,aAA4B,EAC5B,YAA0B;QAE1B,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAA;QAChD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,aAAa,CACxB,Y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AC,uBAAgB,CAAC,MAAM,CAAC,CAAA;6CACV,iCAAoB;QAC3B,oBAAa;QACd,mBAAY;GAVjB,iBAAiB,CA22B7B"}
@@ -0,0 +1,51 @@
1
+ import type { InboundMessageContext, Routing } from '../../../models';
2
+ import type { ConnectionRecord } from '../repository';
3
+ import type { AgentContext } from '@credo-ts/core';
4
+ import { EventEmitter, DidResolverService, Logger } from '@credo-ts/core';
5
+ import { OutboundMessageContext } from '../../../models';
6
+ import { DidRotateMessage, DidRotateAckMessage, DidRotateProblemReportMessage, HangupMessage } from '../messages';
7
+ export declare class DidRotateService {
8
+ private didResolverService;
9
+ private logger;
10
+ private eventEmitter;
11
+ constructor(didResolverService: DidResolverService, logger: Logger, eventEmitter: EventEmitter);
12
+ createRotate(agentContext: AgentContext, options: {
13
+ connection: ConnectionRecord;
14
+ toDid?: string;
15
+ routing?: Routing;
16
+ }): Promise<DidRotateMessage>;
17
+ createHangup(agentContext: AgentContext, options: {
18
+ connection: ConnectionRecord;
19
+ }): Promise<HangupMessage>;
20
+ /**
21
+ * Process a Hangup message and mark connection's theirDid as undefined so it is effectively terminated.
22
+ * Connection Record itself is not deleted (TODO: config parameter to automatically do so)
23
+ *
24
+ * Its previous did will be stored in record in order to be able to recognize any message received
25
+ * afterwards.
26
+ *
27
+ * @param messageContext
28
+ */
29
+ processHangup(messageContext: InboundMessageContext<HangupMessage>): Promise<void>;
30
+ /**
31
+ * Process an incoming DID Rotate message and update connection if success. Any acknowledge
32
+ * or problem report will be sent to the prior DID, so the created context will take former
33
+ * connection record data
34
+ *
35
+ * @param param
36
+ * @param connection
37
+ * @returns
38
+ */
39
+ processRotate(messageContext: InboundMessageContext<DidRotateMessage>): Promise<OutboundMessageContext<DidRotateProblemReportMessage> | OutboundMessageContext<DidRotateAckMessage>>;
40
+ processRotateAck(inboundMessage: InboundMessageContext<DidRotateAckMessage>): Promise<void>;
41
+ /**
42
+ * Process a problem report related to did rotate protocol, by simply deleting any temporary metadata.
43
+ *
44
+ * No specific event is thrown other than generic message processing
45
+ *
46
+ * @param messageContext
47
+ */
48
+ processProblemReport(messageContext: InboundMessageContext<DidRotateProblemReportMessage>): Promise<void>;
49
+ clearDidRotationData(agentContext: AgentContext, connection: ConnectionRecord): Promise<void>;
50
+ private emitDidRotatedEvent;
51
+ }
@@ -0,0 +1,237 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DidRotateService = void 0;
16
+ const core_1 = require("@credo-ts/core");
17
+ const messages_1 = require("../../../messages");
18
+ const models_1 = require("../../../models");
19
+ const helpers_1 = require("../../routing/services/helpers");
20
+ const ConnectionEvents_1 = require("../ConnectionEvents");
21
+ const ConnectionsModuleConfig_1 = require("../ConnectionsModuleConfig");
22
+ const messages_2 = require("../messages");
23
+ const ConnectionMetadataTypes_1 = require("../repository/ConnectionMetadataTypes");
24
+ const ConnectionService_1 = require("./ConnectionService");
25
+ const helpers_2 = require("./helpers");
26
+ let DidRotateService = class DidRotateService {
27
+ constructor(didResolverService, logger, eventEmitter) {
28
+ this.didResolverService = didResolverService;
29
+ this.logger = logger;
30
+ this.eventEmitter = eventEmitter;
31
+ }
32
+ async createRotate(agentContext, options) {
33
+ const { connection, toDid, routing } = options;
34
+ const config = agentContext.dependencyManager.resolve(ConnectionsModuleConfig_1.ConnectionsModuleConfig);
35
+ // Do not allow to receive concurrent did rotation flows
36
+ const didRotateMetadata = connection.metadata.get(ConnectionMetadataTypes_1.ConnectionMetadataKeys.DidRotate);
37
+ if (didRotateMetadata) {
38
+ throw new core_1.CredoError(`There is already an existing opened did rotation flow for connection id ${connection.id}`);
39
+ }
40
+ let didDocument, mediatorId;
41
+ // If did is specified, make sure we have all key material for it
42
+ if (toDid) {
43
+ didDocument = await (0, helpers_2.getDidDocumentForCreatedDid)(agentContext, toDid);
44
+ mediatorId = (await (0, helpers_1.getMediationRecordForDidDocument)(agentContext, didDocument))?.id;
45
+ // Otherwise, create a did:peer based on the provided routing
46
+ }
47
+ else {
48
+ if (!routing) {
49
+ throw new core_1.CredoError('Routing configuration must be defined when rotating to a new peer did');
50
+ }
51
+ didDocument = await (0, helpers_2.createPeerDidFromServices)(agentContext, (0, helpers_2.routingToServices)(routing), config.peerNumAlgoForDidRotation);
52
+ mediatorId = routing.mediatorId;
53
+ }
54
+ const message = new messages_2.DidRotateMessage({ toDid: didDocument.id });
55
+ // We set new info into connection metadata for further 'sealing' it once we receive an acknowledge
56
+ // All messages sent in-between will be using previous connection information
57
+ connection.metadata.set(ConnectionMetadataTypes_1.ConnectionMetadataKeys.DidRotate, {
58
+ threadId: message.threadId,
59
+ did: didDocument.id,
60
+ mediatorId,
61
+ });
62
+ await agentContext.dependencyManager.resolve(ConnectionService_1.ConnectionService).update(agentContext, connection);
63
+ return message;
64
+ }
65
+ async createHangup(agentContext, options) {
66
+ const { connection } = options;
67
+ const message = new messages_2.HangupMessage({});
68
+ // Remove did to indicate termination status for this connection
69
+ if (connection.did) {
70
+ connection.previousDids = [...connection.previousDids, connection.did];
71
+ }
72
+ connection.did = undefined;
73
+ await agentContext.dependencyManager.resolve(ConnectionService_1.ConnectionService).update(agentContext, connection);
74
+ return message;
75
+ }
76
+ /**
77
+ * Process a Hangup message and mark connection's theirDid as undefined so it is effectively terminated.
78
+ * Connection Record itself is not deleted (TODO: config parameter to automatically do so)
79
+ *
80
+ * Its previous did will be stored in record in order to be able to recognize any message received
81
+ * afterwards.
82
+ *
83
+ * @param messageContext
84
+ */
85
+ async processHangup(messageContext) {
86
+ const connection = messageContext.assertReadyConnection();
87
+ const { agentContext } = messageContext;
88
+ if (connection.theirDid) {
89
+ connection.previousTheirDids = [...connection.previousTheirDids, connection.theirDid];
90
+ }
91
+ connection.theirDid = undefined;
92
+ await agentContext.dependencyManager.resolve(ConnectionService_1.ConnectionService).update(agentContext, connection);
93
+ }
94
+ /**
95
+ * Process an incoming DID Rotate message and update connection if success. Any acknowledge
96
+ * or problem report will be sent to the prior DID, so the created context will take former
97
+ * connection record data
98
+ *
99
+ * @param param
100
+ * @param connection
101
+ * @returns
102
+ */
103
+ async processRotate(messageContext) {
104
+ const connection = messageContext.assertReadyConnection();
105
+ const { message, agentContext } = messageContext;
106
+ // Check and store their new did
107
+ const newDid = message.toDid;
108
+ // DID Rotation not supported for peer:1 dids, as we need explicit did document information
109
+ if ((0, core_1.isValidPeerDid)(newDid) && (0, core_1.getNumAlgoFromPeerDid)(newDid) === core_1.PeerDidNumAlgo.GenesisDoc) {
110
+ this.logger.error(`Unable to resolve DID Document for '${newDid}`);
111
+ const response = new messages_2.DidRotateProblemReportMessage({
112
+ description: { en: 'DID Method Unsupported', code: 'e.did.method_unsupported' },
113
+ });
114
+ return new models_1.OutboundMessageContext(response, { agentContext, connection });
115
+ }
116
+ const didDocument = (await this.didResolverService.resolve(agentContext, newDid)).didDocument;
117
+ // Cannot resolve did
118
+ if (!didDocument) {
119
+ this.logger.error(`Unable to resolve DID Document for '${newDid}`);
120
+ const response = new messages_2.DidRotateProblemReportMessage({
121
+ description: { en: 'DID Unresolvable', code: 'e.did.unresolvable' },
122
+ });
123
+ return new models_1.OutboundMessageContext(response, { agentContext, connection });
124
+ }
125
+ // Did is resolved but no compatible DIDComm services found
126
+ if (!didDocument.didCommServices) {
127
+ const response = new messages_2.DidRotateProblemReportMessage({
128
+ description: { en: 'DID Document Unsupported', code: 'e.did.doc_unsupported' },
129
+ });
130
+ return new models_1.OutboundMessageContext(response, { agentContext, connection });
131
+ }
132
+ // Send acknowledge to previous did and persist new did. Previous did will be stored in connection record in
133
+ // order to still accept messages from it
134
+ const outboundMessageContext = new models_1.OutboundMessageContext(new messages_2.DidRotateAckMessage({
135
+ threadId: message.threadId,
136
+ status: messages_1.AckStatus.OK,
137
+ }), { agentContext, connection: connection.clone() });
138
+ // Store received did and update connection for further message processing
139
+ await agentContext.dependencyManager.resolve(core_1.DidRepository).storeReceivedDid(agentContext, {
140
+ did: didDocument.id,
141
+ didDocument,
142
+ tags: {
143
+ // For did:peer, store any alternative dids (like short form did:peer:4),
144
+ // it may have in order to relate any message referencing it
145
+ alternativeDids: (0, core_1.isValidPeerDid)(didDocument.id) ? (0, core_1.getAlternativeDidsForPeerDid)(didDocument.id) : undefined,
146
+ },
147
+ });
148
+ if (connection.theirDid) {
149
+ connection.previousTheirDids = [...connection.previousTheirDids, connection.theirDid];
150
+ }
151
+ const previousTheirDid = connection.theirDid;
152
+ connection.theirDid = newDid;
153
+ await agentContext.dependencyManager.resolve(ConnectionService_1.ConnectionService).update(agentContext, connection);
154
+ this.emitDidRotatedEvent(agentContext, connection, {
155
+ previousTheirDid,
156
+ });
157
+ return outboundMessageContext;
158
+ }
159
+ async processRotateAck(inboundMessage) {
160
+ const { agentContext, message } = inboundMessage;
161
+ const connection = inboundMessage.assertReadyConnection();
162
+ // Update connection info based on metadata set when creating the rotate message
163
+ const didRotateMetadata = connection.metadata.get(ConnectionMetadataTypes_1.ConnectionMetadataKeys.DidRotate);
164
+ if (!didRotateMetadata) {
165
+ throw new core_1.CredoError(`No did rotation data found for connection with id '${connection.id}'`);
166
+ }
167
+ if (didRotateMetadata.threadId !== message.threadId) {
168
+ throw new core_1.CredoError(`Existing did rotation flow thread id '${didRotateMetadata.threadId} does not match incoming message'`);
169
+ }
170
+ // Store previous did in order to still accept out-of-order messages that arrived later using it
171
+ if (connection.did)
172
+ connection.previousDids = [...connection.previousDids, connection.did];
173
+ const previousOurDid = connection.did;
174
+ connection.did = didRotateMetadata.did;
175
+ connection.mediatorId = didRotateMetadata.mediatorId;
176
+ connection.metadata.delete(ConnectionMetadataTypes_1.ConnectionMetadataKeys.DidRotate);
177
+ await agentContext.dependencyManager.resolve(ConnectionService_1.ConnectionService).update(agentContext, connection);
178
+ this.emitDidRotatedEvent(agentContext, connection, {
179
+ previousOurDid,
180
+ });
181
+ }
182
+ /**
183
+ * Process a problem report related to did rotate protocol, by simply deleting any temporary metadata.
184
+ *
185
+ * No specific event is thrown other than generic message processing
186
+ *
187
+ * @param messageContext
188
+ */
189
+ async processProblemReport(messageContext) {
190
+ const { message, agentContext } = messageContext;
191
+ const connection = messageContext.assertReadyConnection();
192
+ this.logger.debug(`Processing problem report with id ${message.id}`);
193
+ // Delete any existing did rotation metadata in order to 'reset' the connection
194
+ const didRotateMetadata = connection.metadata.get(ConnectionMetadataTypes_1.ConnectionMetadataKeys.DidRotate);
195
+ if (!didRotateMetadata) {
196
+ throw new core_1.CredoError(`No did rotation data found for connection with id '${connection.id}'`);
197
+ }
198
+ connection.metadata.delete(ConnectionMetadataTypes_1.ConnectionMetadataKeys.DidRotate);
199
+ await agentContext.dependencyManager.resolve(ConnectionService_1.ConnectionService).update(agentContext, connection);
200
+ }
201
+ async clearDidRotationData(agentContext, connection) {
202
+ const didRotateMetadata = connection.metadata.get(ConnectionMetadataTypes_1.ConnectionMetadataKeys.DidRotate);
203
+ if (!didRotateMetadata) {
204
+ throw new core_1.CredoError(`No did rotation data found for connection with id '${connection.id}'`);
205
+ }
206
+ connection.metadata.delete(ConnectionMetadataTypes_1.ConnectionMetadataKeys.DidRotate);
207
+ await agentContext.dependencyManager.resolve(ConnectionService_1.ConnectionService).update(agentContext, connection);
208
+ }
209
+ emitDidRotatedEvent(agentContext, connectionRecord, { previousOurDid, previousTheirDid }) {
210
+ this.eventEmitter.emit(agentContext, {
211
+ type: ConnectionEvents_1.ConnectionEventTypes.ConnectionDidRotated,
212
+ payload: {
213
+ // Connection record in event should be static
214
+ connectionRecord: connectionRecord.clone(),
215
+ ourDid: previousOurDid && connectionRecord.did
216
+ ? {
217
+ from: previousOurDid,
218
+ to: connectionRecord.did,
219
+ }
220
+ : undefined,
221
+ theirDid: previousTheirDid && connectionRecord.theirDid
222
+ ? {
223
+ from: previousTheirDid,
224
+ to: connectionRecord.theirDid,
225
+ }
226
+ : undefined,
227
+ },
228
+ });
229
+ }
230
+ };
231
+ exports.DidRotateService = DidRotateService;
232
+ exports.DidRotateService = DidRotateService = __decorate([
233
+ (0, core_1.injectable)(),
234
+ __param(1, (0, core_1.inject)(core_1.InjectionSymbols.Logger)),
235
+ __metadata("design:paramtypes", [core_1.DidResolverService, Object, core_1.EventEmitter])
236
+ ], DidRotateService);
237
+ //# sourceMappingURL=DidRotateService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DidRotateService.js","sourceRoot":"","sources":["../../../../src/modules/connections/services/DidRotateService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAKA,yCAauB;AAEvB,gDAA6C;AAC7C,4CAAwD;AACxD,4DAAiF;AACjF,0DAA0D;AAC1D,wEAAoE;AACpE,0CAAiH;AACjH,mFAA8E;AAE9E,2DAAuD;AACvD,uCAAqG;AAG9F,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAK3B,YACE,kBAAsC,EACL,MAAc,EAC/C,YAA0B;QAE1B,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAA;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;IAEM,KAAK,CAAC,YAAY,CACvB,YAA0B,EAC1B,OAA4E;QAE5E,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG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E,gBAAgB,EAA0D;QAE5F,IAAI,CAAC,YAAY,CAAC,IAAI,CAA4B,YAAY,EAAE;YAC9D,IAAI,EAAE,uCAAoB,CAAC,oBAAoB;YAC/C,OAAO,EAAE;gBACP,8CAA8C;gBAC9C,gBAAgB,EAAE,gBAAgB,CAAC,KAAK,EAAE;gBAE1C,MAAM,EACJ,cAAc,IAAI,gBAAgB,CAAC,GAAG;oBACpC,CAAC,CAAC;wBACE,IAAI,EAAE,cAAc;wBACpB,EAAE,EAAE,gBAAgB,CAAC,GAAG;qBACzB;oBACH,CAAC,CAAC,SAAS;gBAEf,QAAQ,EACN,gBAAgB,IAAI,gBAAgB,CAAC,QAAQ;oBAC3C,CAAC,CAAC;wBACE,IAAI,EAAE,gBAAgB;wBACtB,EAAE,EAAE,gBAAgB,CAAC,QAAQ;qBAC9B;oBACH,CAAC,CAAC,SAAS;aAChB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AA/RY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,iBAAU,GAAE;IAQR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,MAAM,CAAC,CAAA;qCADZ,yBAAkB,UAExB,mBAAY;GARjB,gBAAgB,CA+R5B"}
@@ -0,0 +1,12 @@
1
+ import type { InboundMessageContext } from '../../../models';
2
+ import type { TrustPingMessage } from '../messages';
3
+ import type { ConnectionRecord } from '../repository';
4
+ import { EventEmitter } from '@credo-ts/core';
5
+ import { OutboundMessageContext } from '../../../models';
6
+ import { TrustPingResponseMessage } from '../messages';
7
+ export declare class TrustPingService {
8
+ private eventEmitter;
9
+ constructor(eventEmitter: EventEmitter);
10
+ processPing({ message, agentContext }: InboundMessageContext<TrustPingMessage>, connection: ConnectionRecord): OutboundMessageContext<TrustPingResponseMessage> | undefined;
11
+ processPingResponse(inboundMessage: InboundMessageContext<TrustPingResponseMessage>): void;
12
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TrustPingService = void 0;
13
+ const core_1 = require("@credo-ts/core");
14
+ const models_1 = require("../../../models");
15
+ const TrustPingEvents_1 = require("../TrustPingEvents");
16
+ const messages_1 = require("../messages");
17
+ let TrustPingService = class TrustPingService {
18
+ constructor(eventEmitter) {
19
+ this.eventEmitter = eventEmitter;
20
+ }
21
+ processPing({ message, agentContext }, connection) {
22
+ this.eventEmitter.emit(agentContext, {
23
+ type: TrustPingEvents_1.TrustPingEventTypes.TrustPingReceivedEvent,
24
+ payload: {
25
+ connectionRecord: connection,
26
+ message: message,
27
+ },
28
+ });
29
+ if (message.responseRequested) {
30
+ const response = new messages_1.TrustPingResponseMessage({
31
+ threadId: message.threadId,
32
+ });
33
+ return new models_1.OutboundMessageContext(response, { agentContext, connection });
34
+ }
35
+ }
36
+ processPingResponse(inboundMessage) {
37
+ const { agentContext, message } = inboundMessage;
38
+ const connection = inboundMessage.assertReadyConnection();
39
+ this.eventEmitter.emit(agentContext, {
40
+ type: TrustPingEvents_1.TrustPingEventTypes.TrustPingResponseReceivedEvent,
41
+ payload: {
42
+ connectionRecord: connection,
43
+ message: message,
44
+ },
45
+ });
46
+ }
47
+ };
48
+ exports.TrustPingService = TrustPingService;
49
+ exports.TrustPingService = TrustPingService = __decorate([
50
+ (0, core_1.injectable)(),
51
+ __metadata("design:paramtypes", [core_1.EventEmitter])
52
+ ], TrustPingService);
53
+ //# sourceMappingURL=TrustPingService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrustPingService.js","sourceRoot":"","sources":["../../../../src/modules/connections/services/TrustPingService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,yCAAyD;AAEzD,4CAAwD;AACxD,wDAAwD;AACxD,0CAAsD;AAG/C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAG3B,YAAmB,YAA0B;QAC3C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;IAEM,WAAW,CAAC,EAAE,OAAO,EAAE,YAAY,EAA2C,EAAE,UAA4B;QACjH,IAAI,CAAC,YAAY,CAAC,IAAI,CAAyB,YAAY,EAAE;YAC3D,IAAI,EAAE,qCAAmB,CAAC,sBAAsB;YAChD,OAAO,EAAE;gBACP,gBAAgB,EAAE,UAAU;gBAC5B,OAAO,EAAE,OAAO;aACjB;SACF,CAAC,CAAA;QAEF,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;YAC9B,MAAM,QAAQ,GAAG,IAAI,mCAAwB,CAAC;gBAC5C,QAAQ,EAAE,OAAO,CAAC,QAAQ;aAC3B,CAAC,CAAA;YAEF,OAAO,IAAI,+BAAsB,CAAC,QAAQ,EAAE,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC,CAAA;QAC3E,CAAC;IACH,CAAC;IAEM,mBAAmB,CAAC,cAA+D;QACxF,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,cAAc,CAAA;QAEhD,MAAM,UAAU,GAAG,cAAc,CAAC,qBAAqB,EAAE,CAAA;QAEzD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAiC,YAAY,EAAE;YACnE,IAAI,EAAE,qCAAmB,CAAC,8BAA8B;YACxD,OAAO,EAAE;gBACP,gBAAgB,EAAE,UAAU;gBAC5B,OAAO,EAAE,OAAO;aACjB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAtCY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,iBAAU,GAAE;qCAIsB,mBAAY;GAHlC,gBAAgB,CAsC5B"}
@@ -0,0 +1,14 @@
1
+ import type { Routing } from '../../../models';
2
+ import type { DidDoc } from '../models';
3
+ import type { AgentContext, DidDocument, PeerDidNumAlgo, ResolvedDidCommService } from '@credo-ts/core';
4
+ import { Key } from '@credo-ts/core';
5
+ export declare function convertToNewDidDocument(didDoc: DidDoc): DidDocument;
6
+ export declare function routingToServices(routing: Routing): ResolvedDidCommService[];
7
+ export declare function getDidDocumentForCreatedDid(agentContext: AgentContext, did: string): Promise<DidDocument>;
8
+ /**
9
+ * Asserts that the keys we are going to use for creating a did document haven't already been used in another did document
10
+ * Due to how DIDComm v1 works (only reference the key not the did in encrypted message) we can't have multiple dids containing
11
+ * the same key as we won't know which did (and thus which connection) a message is intended for.
12
+ */
13
+ export declare function assertNoCreatedDidExistsForKeys(agentContext: AgentContext, recipientKeys: Key[]): Promise<void>;
14
+ export declare function createPeerDidFromServices(agentContext: AgentContext, services: ResolvedDidCommService[], numAlgo: PeerDidNumAlgo): Promise<DidDocument>;
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.convertToNewDidDocument = convertToNewDidDocument;
4
+ exports.routingToServices = routingToServices;
5
+ exports.getDidDocumentForCreatedDid = getDidDocumentForCreatedDid;
6
+ exports.assertNoCreatedDidExistsForKeys = assertNoCreatedDidExistsForKeys;
7
+ exports.createPeerDidFromServices = createPeerDidFromServices;
8
+ const core_1 = require("@credo-ts/core");
9
+ const models_1 = require("../models");
10
+ function convertToNewDidDocument(didDoc) {
11
+ const didDocumentBuilder = new core_1.DidDocumentBuilder('');
12
+ const oldIdNewIdMapping = {};
13
+ didDoc.authentication.forEach((auth) => {
14
+ const { publicKey: pk } = auth;
15
+ // did:peer did documents can only use referenced keys.
16
+ if (pk.type === 'Ed25519VerificationKey2018' && pk.value) {
17
+ const ed25519VerificationMethod = convertPublicKeyToVerificationMethod(pk);
18
+ const oldKeyId = normalizeId(pk.id);
19
+ oldIdNewIdMapping[oldKeyId] = ed25519VerificationMethod.id;
20
+ didDocumentBuilder.addAuthentication(ed25519VerificationMethod.id);
21
+ // Only the auth is embedded, we also need to add the key to the verificationMethod
22
+ // for referenced authentication this should already be the case
23
+ if (auth instanceof models_1.EmbeddedAuthentication) {
24
+ didDocumentBuilder.addVerificationMethod(ed25519VerificationMethod);
25
+ }
26
+ }
27
+ });
28
+ didDoc.publicKey.forEach((pk) => {
29
+ if (pk.type === 'Ed25519VerificationKey2018' && pk.value) {
30
+ const ed25519VerificationMethod = convertPublicKeyToVerificationMethod(pk);
31
+ const oldKeyId = normalizeId(pk.id);
32
+ oldIdNewIdMapping[oldKeyId] = ed25519VerificationMethod.id;
33
+ didDocumentBuilder.addVerificationMethod(ed25519VerificationMethod);
34
+ }
35
+ });
36
+ // FIXME: we reverse the didCommServices here, as the previous implementation was wrong
37
+ // and we need to keep the same order to not break the did creation process.
38
+ // When we implement the migration to did:peer:2 and did:peer:3 according to the
39
+ // RFCs we can change it.
40
+ didDoc.didCommServices.reverse().forEach((service) => {
41
+ const serviceId = normalizeId(service.id);
42
+ // For didcommv1, we need to replace the old id with the new ones
43
+ if (service instanceof core_1.DidCommV1Service) {
44
+ const recipientKeys = service.recipientKeys.map((keyId) => {
45
+ const oldKeyId = normalizeId(keyId);
46
+ return oldIdNewIdMapping[oldKeyId];
47
+ });
48
+ service = new core_1.DidCommV1Service({
49
+ id: serviceId,
50
+ recipientKeys,
51
+ serviceEndpoint: service.serviceEndpoint,
52
+ routingKeys: service.routingKeys,
53
+ accept: service.accept,
54
+ priority: service.priority,
55
+ });
56
+ }
57
+ else if (service instanceof core_1.IndyAgentService) {
58
+ service = new core_1.IndyAgentService({
59
+ id: serviceId,
60
+ recipientKeys: service.recipientKeys,
61
+ serviceEndpoint: service.serviceEndpoint,
62
+ routingKeys: service.routingKeys,
63
+ priority: service.priority,
64
+ });
65
+ }
66
+ didDocumentBuilder.addService(service);
67
+ });
68
+ const didDocument = didDocumentBuilder.build();
69
+ const peerDid = (0, core_1.didDocumentJsonToNumAlgo1Did)(didDocument.toJSON());
70
+ didDocument.id = peerDid;
71
+ return didDocument;
72
+ }
73
+ function normalizeId(fullId) {
74
+ // Some old dids use `;` as the delimiter for the id. If we can't find a `#`
75
+ // and a `;` exists, we will parse everything after `;` as the id.
76
+ if (!fullId.includes('#') && fullId.includes(';')) {
77
+ const [, ...ids] = fullId.split(';');
78
+ return `#${ids.join(';')}`;
79
+ }
80
+ const [, ...ids] = fullId.split('#');
81
+ return `#${ids.length ? ids.join('#') : fullId}`;
82
+ }
83
+ function convertPublicKeyToVerificationMethod(publicKey) {
84
+ if (!publicKey.value) {
85
+ throw new core_1.CredoError(`Public key ${publicKey.id} does not have value property`);
86
+ }
87
+ const publicKeyBase58 = publicKey.value;
88
+ const ed25519Key = core_1.Key.fromPublicKeyBase58(publicKeyBase58, core_1.KeyType.Ed25519);
89
+ return (0, core_1.getEd25519VerificationKey2018)({
90
+ id: `#${publicKeyBase58.slice(0, 8)}`,
91
+ key: ed25519Key,
92
+ controller: '#id',
93
+ });
94
+ }
95
+ function routingToServices(routing) {
96
+ return routing.endpoints.map((endpoint, index) => ({
97
+ id: `#inline-${index}`,
98
+ serviceEndpoint: endpoint,
99
+ recipientKeys: [routing.recipientKey],
100
+ routingKeys: routing.routingKeys,
101
+ }));
102
+ }
103
+ async function getDidDocumentForCreatedDid(agentContext, did) {
104
+ const didRecord = await agentContext.dependencyManager.resolve(core_1.DidRepository).findCreatedDid(agentContext, did);
105
+ if (!didRecord?.didDocument) {
106
+ throw new core_1.CredoError(`Could not get DidDocument for created did ${did}`);
107
+ }
108
+ return didRecord.didDocument;
109
+ }
110
+ /**
111
+ * Asserts that the keys we are going to use for creating a did document haven't already been used in another did document
112
+ * Due to how DIDComm v1 works (only reference the key not the did in encrypted message) we can't have multiple dids containing
113
+ * the same key as we won't know which did (and thus which connection) a message is intended for.
114
+ */
115
+ async function assertNoCreatedDidExistsForKeys(agentContext, recipientKeys) {
116
+ const didRepository = agentContext.dependencyManager.resolve(core_1.DidRepository);
117
+ const recipientKeyFingerprints = recipientKeys.map((key) => key.fingerprint);
118
+ const didsForServices = await didRepository.findByQuery(agentContext, {
119
+ role: core_1.DidDocumentRole.Created,
120
+ // We want an $or query so we query for each key individually, not one did document
121
+ // containing exactly the same keys as the did document we are trying to create
122
+ $or: recipientKeyFingerprints.map((fingerprint) => ({
123
+ recipientKeyFingerprints: [fingerprint],
124
+ })),
125
+ });
126
+ if (didsForServices.length > 0) {
127
+ const allDidRecipientKeys = didsForServices.flatMap((did) => did.getTags().recipientKeyFingerprints ?? []);
128
+ const matchingFingerprints = allDidRecipientKeys.filter((f) => recipientKeyFingerprints.includes(f));
129
+ throw new core_1.CredoError(`A did already exists for some of the keys in the provided services. DIDComm v1 uses key based routing, and therefore it is not allowed to re-use the same key in multiple did documents for DIDComm. If you use the same 'routing' object for multiple invitations, instead provide an 'invitationDid' to the create invitation method. The following fingerprints are already in use: ${matchingFingerprints.join(',')}`);
130
+ }
131
+ }
132
+ async function createPeerDidFromServices(agentContext, services, numAlgo) {
133
+ const didsApi = agentContext.dependencyManager.resolve(core_1.DidsApi);
134
+ // Create did document without the id property
135
+ const didDocument = (0, core_1.createPeerDidDocumentFromServices)(services);
136
+ // Assert that the keys we are going to use for creating a did document haven't already been used in another did document
137
+ await assertNoCreatedDidExistsForKeys(agentContext, didDocument.recipientKeys);
138
+ // Register did:peer document. This will generate the id property and save it to a did record
139
+ const result = await didsApi.create({
140
+ method: 'peer',
141
+ didDocument,
142
+ options: {
143
+ numAlgo,
144
+ },
145
+ });
146
+ if (result.didState?.state !== 'finished') {
147
+ throw new core_1.CredoError(`Did document creation failed: ${JSON.stringify(result.didState)}`);
148
+ }
149
+ return result.didState.didDocument;
150
+ }
151
+ //# sourceMappingURL=helpers.js.map
@@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AAM,CAAC,QAAQ,CAAC,WAAW,CAAA;AACpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './ConnectionService';
2
+ export * from './DidRotateService';
3
+ export * from './TrustPingService';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ConnectionService"), exports);
18
+ __exportStar(require("./DidRotateService"), exports);
19
+ __exportStar(require("./TrustPingService"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/connections/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAmC;AACnC,qDAAkC;AAClC,qDAAkC"}