@nmshd/transport 7.0.0-alpha.7 → 7.0.0-alpha.70

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 (398) hide show
  1. package/dist/buildInformation.js +5 -5
  2. package/dist/core/CoreSynchronizable.d.ts +1 -0
  3. package/dist/core/CoreSynchronizable.d.ts.map +1 -1
  4. package/dist/core/CoreSynchronizable.js +1 -0
  5. package/dist/core/CoreSynchronizable.js.map +1 -1
  6. package/dist/core/DbCollectionName.d.ts +0 -1
  7. package/dist/core/DbCollectionName.d.ts.map +1 -1
  8. package/dist/core/DbCollectionName.js +0 -1
  9. package/dist/core/DbCollectionName.js.map +1 -1
  10. package/dist/core/Transport.d.ts +2 -0
  11. package/dist/core/Transport.d.ts.map +1 -1
  12. package/dist/core/Transport.js +2 -1
  13. package/dist/core/Transport.js.map +1 -1
  14. package/dist/core/TransportController.d.ts +1 -4
  15. package/dist/core/TransportController.d.ts.map +1 -1
  16. package/dist/core/TransportController.js +7 -7
  17. package/dist/core/TransportController.js.map +1 -1
  18. package/dist/core/TransportCoreErrors.d.ts +8 -2
  19. package/dist/core/TransportCoreErrors.d.ts.map +1 -1
  20. package/dist/core/TransportCoreErrors.js +18 -6
  21. package/dist/core/TransportCoreErrors.js.map +1 -1
  22. package/dist/core/backbone/ClientResult.d.ts +2 -0
  23. package/dist/core/backbone/ClientResult.d.ts.map +1 -1
  24. package/dist/core/backbone/ClientResult.js +2 -0
  25. package/dist/core/backbone/ClientResult.js.map +1 -1
  26. package/dist/core/backbone/PlatformParameters.d.ts +2 -0
  27. package/dist/core/backbone/PlatformParameters.d.ts.map +1 -1
  28. package/dist/core/backbone/RESTClient.d.ts +3 -2
  29. package/dist/core/backbone/RESTClient.d.ts.map +1 -1
  30. package/dist/core/backbone/RESTClient.js +43 -36
  31. package/dist/core/backbone/RESTClient.js.map +1 -1
  32. package/dist/core/backbone/RESTClientAuthenticate.d.ts +1 -0
  33. package/dist/core/backbone/RESTClientAuthenticate.d.ts.map +1 -1
  34. package/dist/core/backbone/RESTClientAuthenticate.js +5 -0
  35. package/dist/core/backbone/RESTClientAuthenticate.js.map +1 -1
  36. package/dist/core/backbone/RequestError.d.ts.map +1 -1
  37. package/dist/core/backbone/RequestError.js +3 -0
  38. package/dist/core/backbone/RequestError.js.map +1 -1
  39. package/dist/core/types/PasswordProtection.d.ts +5 -6
  40. package/dist/core/types/PasswordProtection.d.ts.map +1 -1
  41. package/dist/core/types/PasswordProtection.js +12 -10
  42. package/dist/core/types/PasswordProtection.js.map +1 -1
  43. package/dist/core/types/PasswordProtectionCreationParameters.d.ts +3 -0
  44. package/dist/core/types/PasswordProtectionCreationParameters.d.ts.map +1 -1
  45. package/dist/core/types/PasswordProtectionCreationParameters.js +7 -1
  46. package/dist/core/types/PasswordProtectionCreationParameters.js.map +1 -1
  47. package/dist/events/FileOwnershipClaimedEvent.d.ts +7 -0
  48. package/dist/events/FileOwnershipClaimedEvent.d.ts.map +1 -0
  49. package/dist/events/FileOwnershipClaimedEvent.js +12 -0
  50. package/dist/events/FileOwnershipClaimedEvent.js.map +1 -0
  51. package/dist/events/FileOwnershipLockedEvent.d.ts +7 -0
  52. package/dist/events/FileOwnershipLockedEvent.d.ts.map +1 -0
  53. package/dist/events/FileOwnershipLockedEvent.js +12 -0
  54. package/dist/events/FileOwnershipLockedEvent.js.map +1 -0
  55. package/dist/events/MessageDeliveredEvent.d.ts +1 -1
  56. package/dist/events/MessageDeliveredEvent.d.ts.map +1 -1
  57. package/dist/events/MessageReceivedEvent.d.ts +1 -1
  58. package/dist/events/MessageReceivedEvent.d.ts.map +1 -1
  59. package/dist/events/MessageSentEvent.d.ts +1 -1
  60. package/dist/events/MessageSentEvent.d.ts.map +1 -1
  61. package/dist/events/MessageWasReadAtChangedEvent.d.ts +1 -1
  62. package/dist/events/MessageWasReadAtChangedEvent.d.ts.map +1 -1
  63. package/dist/events/PeerRelationshipTemplateLoadedEvent.d.ts +1 -1
  64. package/dist/events/PeerRelationshipTemplateLoadedEvent.d.ts.map +1 -1
  65. package/dist/events/RelationshipChangedEvent.d.ts +1 -1
  66. package/dist/events/RelationshipChangedEvent.d.ts.map +1 -1
  67. package/dist/events/RelationshipReactivationCompletedEvent.d.ts +1 -1
  68. package/dist/events/RelationshipReactivationCompletedEvent.d.ts.map +1 -1
  69. package/dist/events/RelationshipReactivationRequestedEvent.d.ts +1 -1
  70. package/dist/events/RelationshipReactivationRequestedEvent.d.ts.map +1 -1
  71. package/dist/events/RelationshipTemplateAllocationsExhaustedEvent.d.ts +7 -0
  72. package/dist/events/RelationshipTemplateAllocationsExhaustedEvent.d.ts.map +1 -0
  73. package/dist/events/RelationshipTemplateAllocationsExhaustedEvent.js +12 -0
  74. package/dist/events/RelationshipTemplateAllocationsExhaustedEvent.js.map +1 -0
  75. package/dist/events/index.d.ts +3 -0
  76. package/dist/events/index.d.ts.map +1 -1
  77. package/dist/events/index.js +3 -0
  78. package/dist/events/index.js.map +1 -1
  79. package/dist/modules/accounts/AccountController.d.ts +6 -8
  80. package/dist/modules/accounts/AccountController.d.ts.map +1 -1
  81. package/dist/modules/accounts/AccountController.js +40 -26
  82. package/dist/modules/accounts/AccountController.js.map +1 -1
  83. package/dist/modules/accounts/IdentityDeletionProcessController.d.ts +2 -10
  84. package/dist/modules/accounts/IdentityDeletionProcessController.d.ts.map +1 -1
  85. package/dist/modules/accounts/IdentityDeletionProcessController.js +4 -36
  86. package/dist/modules/accounts/IdentityDeletionProcessController.js.map +1 -1
  87. package/dist/modules/accounts/backbone/BackboneIdentityDeletionProcess.d.ts +0 -5
  88. package/dist/modules/accounts/backbone/BackboneIdentityDeletionProcess.d.ts.map +1 -1
  89. package/dist/modules/accounts/backbone/IdentityClient.js +2 -2
  90. package/dist/modules/accounts/backbone/IdentityDeletionProcessClient.d.ts +0 -2
  91. package/dist/modules/accounts/backbone/IdentityDeletionProcessClient.d.ts.map +1 -1
  92. package/dist/modules/accounts/backbone/IdentityDeletionProcessClient.js +3 -9
  93. package/dist/modules/accounts/backbone/IdentityDeletionProcessClient.js.map +1 -1
  94. package/dist/modules/accounts/data/IdentityDeletionProcess.d.ts +20 -8
  95. package/dist/modules/accounts/data/IdentityDeletionProcess.d.ts.map +1 -1
  96. package/dist/modules/accounts/data/IdentityDeletionProcess.js +35 -10
  97. package/dist/modules/accounts/data/IdentityDeletionProcess.js.map +1 -1
  98. package/dist/modules/accounts/data/IdentityDeletionProcessStatus.d.ts +1 -3
  99. package/dist/modules/accounts/data/IdentityDeletionProcessStatus.d.ts.map +1 -1
  100. package/dist/modules/accounts/data/IdentityDeletionProcessStatus.js +1 -3
  101. package/dist/modules/accounts/data/IdentityDeletionProcessStatus.js.map +1 -1
  102. package/dist/modules/announcements/AnnouncementController.d.ts +11 -0
  103. package/dist/modules/announcements/AnnouncementController.d.ts.map +1 -0
  104. package/dist/modules/announcements/AnnouncementController.js +26 -0
  105. package/dist/modules/announcements/AnnouncementController.js.map +1 -0
  106. package/dist/modules/announcements/backbone/AnnouncementClient.d.ts +6 -0
  107. package/dist/modules/announcements/backbone/AnnouncementClient.d.ts.map +1 -0
  108. package/dist/modules/announcements/backbone/AnnouncementClient.js +11 -0
  109. package/dist/modules/announcements/backbone/AnnouncementClient.js.map +1 -0
  110. package/dist/modules/announcements/backbone/BackboneGetAnnouncements.d.ts +18 -0
  111. package/dist/modules/announcements/backbone/BackboneGetAnnouncements.d.ts.map +1 -0
  112. package/dist/modules/announcements/backbone/BackboneGetAnnouncements.js +3 -0
  113. package/dist/modules/announcements/backbone/BackboneGetAnnouncements.js.map +1 -0
  114. package/dist/modules/announcements/data/Announcement.d.ts +30 -0
  115. package/dist/modules/announcements/data/Announcement.d.ts.map +1 -0
  116. package/dist/modules/{messages/local/CachedMessage.js → announcements/data/Announcement.js} +37 -31
  117. package/dist/modules/announcements/data/Announcement.js.map +1 -0
  118. package/dist/modules/announcements/data/AnnouncementAction.d.ts +11 -0
  119. package/dist/modules/announcements/data/AnnouncementAction.d.ts.map +1 -0
  120. package/dist/modules/{certificates/data/items/CertificateRoleItem.js → announcements/data/AnnouncementAction.js} +13 -17
  121. package/dist/modules/announcements/data/AnnouncementAction.js.map +1 -0
  122. package/dist/modules/backboneCompatibility/backbone/VersionClient.js +1 -1
  123. package/dist/modules/backboneNotifications/BackboneNotificationsController.d.ts +13 -0
  124. package/dist/modules/backboneNotifications/BackboneNotificationsController.d.ts.map +1 -0
  125. package/dist/modules/backboneNotifications/BackboneNotificationsController.js +42 -0
  126. package/dist/modules/backboneNotifications/BackboneNotificationsController.js.map +1 -0
  127. package/dist/modules/backboneNotifications/backbone/BackboneNotificationsClient.d.ts +9 -0
  128. package/dist/modules/backboneNotifications/backbone/BackboneNotificationsClient.d.ts.map +1 -0
  129. package/dist/modules/backboneNotifications/backbone/BackboneNotificationsClient.js +11 -0
  130. package/dist/modules/backboneNotifications/backbone/BackboneNotificationsClient.js.map +1 -0
  131. package/dist/modules/challenges/backbone/ChallengeAuthClient.js +2 -2
  132. package/dist/modules/challenges/backbone/ChallengeClient.js +1 -1
  133. package/dist/modules/devices/DeviceController.d.ts +1 -2
  134. package/dist/modules/devices/DeviceController.d.ts.map +1 -1
  135. package/dist/modules/devices/DeviceController.js +0 -3
  136. package/dist/modules/devices/DeviceController.js.map +1 -1
  137. package/dist/modules/devices/DevicesController.d.ts.map +1 -1
  138. package/dist/modules/devices/DevicesController.js +0 -4
  139. package/dist/modules/devices/DevicesController.js.map +1 -1
  140. package/dist/modules/devices/backbone/BackboneGetDevices.d.ts +12 -0
  141. package/dist/modules/devices/backbone/BackboneGetDevices.d.ts.map +1 -0
  142. package/dist/modules/devices/backbone/BackboneGetDevices.js +3 -0
  143. package/dist/modules/devices/backbone/BackboneGetDevices.js.map +1 -0
  144. package/dist/modules/devices/backbone/DeviceAuthClient.d.ts +2 -0
  145. package/dist/modules/devices/backbone/DeviceAuthClient.d.ts.map +1 -1
  146. package/dist/modules/devices/backbone/DeviceAuthClient.js +9 -6
  147. package/dist/modules/devices/backbone/DeviceAuthClient.js.map +1 -1
  148. package/dist/modules/devices/local/Device.d.ts +2 -4
  149. package/dist/modules/devices/local/Device.d.ts.map +1 -1
  150. package/dist/modules/devices/local/Device.js +0 -6
  151. package/dist/modules/devices/local/Device.js.map +1 -1
  152. package/dist/modules/devices/local/SendDeviceParameters.d.ts +1 -1
  153. package/dist/modules/devices/local/SendDeviceParameters.d.ts.map +1 -1
  154. package/dist/modules/devices/local/SendDeviceParameters.js +1 -1
  155. package/dist/modules/devices/local/SendDeviceParameters.js.map +1 -1
  156. package/dist/modules/files/FileController.d.ts +8 -10
  157. package/dist/modules/files/FileController.d.ts.map +1 -1
  158. package/dist/modules/files/FileController.js +71 -84
  159. package/dist/modules/files/FileController.js.map +1 -1
  160. package/dist/modules/files/backbone/BackbonePostFiles.d.ts +1 -0
  161. package/dist/modules/files/backbone/BackbonePostFiles.d.ts.map +1 -1
  162. package/dist/modules/files/backbone/FileClient.d.ts +9 -0
  163. package/dist/modules/files/backbone/FileClient.d.ts.map +1 -1
  164. package/dist/modules/files/backbone/FileClient.js +14 -5
  165. package/dist/modules/files/backbone/FileClient.js.map +1 -1
  166. package/dist/modules/files/local/File.d.ts +57 -11
  167. package/dist/modules/files/local/File.d.ts.map +1 -1
  168. package/dist/modules/files/local/File.js +171 -18
  169. package/dist/modules/files/local/File.js.map +1 -1
  170. package/dist/modules/index.d.ts +6 -23
  171. package/dist/modules/index.d.ts.map +1 -1
  172. package/dist/modules/index.js +6 -23
  173. package/dist/modules/index.js.map +1 -1
  174. package/dist/modules/messages/MessageController.d.ts +3 -8
  175. package/dist/modules/messages/MessageController.d.ts.map +1 -1
  176. package/dist/modules/messages/MessageController.js +29 -55
  177. package/dist/modules/messages/MessageController.js.map +1 -1
  178. package/dist/modules/messages/backbone/MessageClient.js +5 -5
  179. package/dist/modules/messages/local/Message.d.ts +28 -7
  180. package/dist/modules/messages/local/Message.d.ts.map +1 -1
  181. package/dist/modules/messages/local/Message.js +53 -12
  182. package/dist/modules/messages/local/Message.js.map +1 -1
  183. package/dist/modules/messages/local/{CachedMessageRecipient.d.ts → MessageRecipient.d.ts} +4 -4
  184. package/dist/modules/messages/local/MessageRecipient.d.ts.map +1 -0
  185. package/dist/modules/messages/local/{CachedMessageRecipient.js → MessageRecipient.js} +12 -12
  186. package/dist/modules/messages/local/MessageRecipient.js.map +1 -0
  187. package/dist/modules/messages/transmission/MessageContentWrapper.js +1 -2
  188. package/dist/modules/messages/transmission/MessageContentWrapper.js.map +1 -1
  189. package/dist/modules/relationshipTemplates/RelationshipTemplateController.d.ts +3 -11
  190. package/dist/modules/relationshipTemplates/RelationshipTemplateController.d.ts.map +1 -1
  191. package/dist/modules/relationshipTemplates/RelationshipTemplateController.js +49 -131
  192. package/dist/modules/relationshipTemplates/RelationshipTemplateController.js.map +1 -1
  193. package/dist/modules/relationshipTemplates/backbone/RelationshipTemplateClient.js +4 -4
  194. package/dist/modules/relationshipTemplates/local/RelationshipTemplate.d.ts +26 -10
  195. package/dist/modules/relationshipTemplates/local/RelationshipTemplate.d.ts.map +1 -1
  196. package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js +70 -19
  197. package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js.map +1 -1
  198. package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js +2 -2
  199. package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js.map +1 -1
  200. package/dist/modules/relationships/RelationshipSecretController.d.ts +3 -3
  201. package/dist/modules/relationships/RelationshipSecretController.d.ts.map +1 -1
  202. package/dist/modules/relationships/RelationshipSecretController.js +2 -2
  203. package/dist/modules/relationships/RelationshipSecretController.js.map +1 -1
  204. package/dist/modules/relationships/RelationshipsController.d.ts +0 -10
  205. package/dist/modules/relationships/RelationshipsController.d.ts.map +1 -1
  206. package/dist/modules/relationships/RelationshipsController.js +41 -117
  207. package/dist/modules/relationships/RelationshipsController.js.map +1 -1
  208. package/dist/modules/relationships/backbone/RelationshipClient.js +13 -13
  209. package/dist/modules/relationships/local/Relationship.d.ts +14 -10
  210. package/dist/modules/relationships/local/Relationship.d.ts.map +1 -1
  211. package/dist/modules/relationships/local/Relationship.js +30 -28
  212. package/dist/modules/relationships/local/Relationship.js.map +1 -1
  213. package/dist/modules/sync/ChangedItems.d.ts +5 -2
  214. package/dist/modules/sync/ChangedItems.d.ts.map +1 -1
  215. package/dist/modules/sync/ChangedItems.js +6 -1
  216. package/dist/modules/sync/ChangedItems.js.map +1 -1
  217. package/dist/modules/sync/DatawalletModificationMapper.js +3 -3
  218. package/dist/modules/sync/DatawalletModificationMapper.js.map +1 -1
  219. package/dist/modules/sync/DatawalletModificationsProcessor.d.ts +2 -60
  220. package/dist/modules/sync/DatawalletModificationsProcessor.d.ts.map +1 -1
  221. package/dist/modules/sync/DatawalletModificationsProcessor.js +11 -158
  222. package/dist/modules/sync/DatawalletModificationsProcessor.js.map +1 -1
  223. package/dist/modules/sync/SyncController.d.ts +0 -3
  224. package/dist/modules/sync/SyncController.d.ts.map +1 -1
  225. package/dist/modules/sync/SyncController.js +17 -38
  226. package/dist/modules/sync/SyncController.js.map +1 -1
  227. package/dist/modules/sync/SynchronizedCollection.d.ts.map +1 -1
  228. package/dist/modules/sync/SynchronizedCollection.js +24 -10
  229. package/dist/modules/sync/SynchronizedCollection.js.map +1 -1
  230. package/dist/modules/sync/backbone/FinalizeSyncRun.d.ts +1 -0
  231. package/dist/modules/sync/backbone/FinalizeSyncRun.d.ts.map +1 -1
  232. package/dist/modules/sync/backbone/SyncClient.d.ts +0 -1
  233. package/dist/modules/sync/backbone/SyncClient.d.ts.map +1 -1
  234. package/dist/modules/sync/backbone/SyncClient.js +7 -7
  235. package/dist/modules/sync/backbone/SyncClient.js.map +1 -1
  236. package/dist/modules/sync/externalEventProcessors/ExternalEventProcessor.d.ts +2 -1
  237. package/dist/modules/sync/externalEventProcessors/ExternalEventProcessor.d.ts.map +1 -1
  238. package/dist/modules/sync/externalEventProcessors/ExternalEventProcessor.js.map +1 -1
  239. package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.d.ts.map +1 -1
  240. package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.js +6 -0
  241. package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.js.map +1 -1
  242. package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.d.ts +7 -0
  243. package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.d.ts.map +1 -0
  244. package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.js +34 -0
  245. package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.js.map +1 -0
  246. package/dist/modules/sync/externalEventProcessors/FileOwnershipLockedExternalEventProcessor.d.ts +7 -0
  247. package/dist/modules/sync/externalEventProcessors/FileOwnershipLockedExternalEventProcessor.d.ts.map +1 -0
  248. package/dist/modules/sync/externalEventProcessors/FileOwnershipLockedExternalEventProcessor.js +37 -0
  249. package/dist/modules/sync/externalEventProcessors/FileOwnershipLockedExternalEventProcessor.js.map +1 -0
  250. package/dist/modules/sync/externalEventProcessors/IdentityDeletionProcessStatusChangedExternalEventProcessor.js +1 -1
  251. package/dist/modules/sync/externalEventProcessors/IdentityDeletionProcessStatusChangedExternalEventProcessor.js.map +1 -1
  252. package/dist/modules/sync/externalEventProcessors/MessageDeliveredExternalEventProcessor.js +1 -1
  253. package/dist/modules/sync/externalEventProcessors/MessageDeliveredExternalEventProcessor.js.map +1 -1
  254. package/dist/modules/sync/externalEventProcessors/RelationshipExternalEventProcessor.js +1 -1
  255. package/dist/modules/sync/externalEventProcessors/RelationshipExternalEventProcessor.js.map +1 -1
  256. package/dist/modules/sync/externalEventProcessors/RelationshipTemplateAllocationsExhaustedProcessor.d.ts +6 -0
  257. package/dist/modules/sync/externalEventProcessors/RelationshipTemplateAllocationsExhaustedProcessor.d.ts.map +1 -0
  258. package/dist/modules/sync/externalEventProcessors/RelationshipTemplateAllocationsExhaustedProcessor.js +34 -0
  259. package/dist/modules/sync/externalEventProcessors/RelationshipTemplateAllocationsExhaustedProcessor.js.map +1 -0
  260. package/dist/modules/sync/local/DatawalletModification.d.ts +2 -2
  261. package/dist/modules/sync/local/DatawalletModification.d.ts.map +1 -1
  262. package/dist/modules/sync/local/DatawalletModification.js +1 -1
  263. package/dist/modules/sync/local/DatawalletModification.js.map +1 -1
  264. package/dist/modules/sync/migrations/DeviceMigrations.d.ts +2 -2
  265. package/dist/modules/sync/migrations/DeviceMigrations.d.ts.map +1 -1
  266. package/dist/modules/sync/migrations/DeviceMigrations.js +5 -15
  267. package/dist/modules/sync/migrations/DeviceMigrations.js.map +1 -1
  268. package/dist/modules/tags/backbone/TagClient.d.ts +1 -1
  269. package/dist/modules/tags/backbone/TagClient.d.ts.map +1 -1
  270. package/dist/modules/tags/backbone/TagClient.js +13 -2
  271. package/dist/modules/tags/backbone/TagClient.js.map +1 -1
  272. package/dist/modules/tokens/AnonymousTokenController.d.ts +4 -1
  273. package/dist/modules/tokens/AnonymousTokenController.d.ts.map +1 -1
  274. package/dist/modules/tokens/AnonymousTokenController.js +18 -10
  275. package/dist/modules/tokens/AnonymousTokenController.js.map +1 -1
  276. package/dist/modules/tokens/TokenController.d.ts +6 -11
  277. package/dist/modules/tokens/TokenController.d.ts.map +1 -1
  278. package/dist/modules/tokens/TokenController.js +75 -129
  279. package/dist/modules/tokens/TokenController.js.map +1 -1
  280. package/dist/modules/tokens/backbone/AnonymousTokenClient.d.ts +2 -0
  281. package/dist/modules/tokens/backbone/AnonymousTokenClient.d.ts.map +1 -1
  282. package/dist/modules/tokens/backbone/AnonymousTokenClient.js +4 -1
  283. package/dist/modules/tokens/backbone/AnonymousTokenClient.js.map +1 -1
  284. package/dist/modules/tokens/backbone/BackboneGetTokens.d.ts +3 -3
  285. package/dist/modules/tokens/backbone/BackboneGetTokens.d.ts.map +1 -1
  286. package/dist/modules/tokens/backbone/BackbonePostTokens.d.ts +10 -0
  287. package/dist/modules/tokens/backbone/BackbonePostTokens.d.ts.map +1 -1
  288. package/dist/modules/tokens/backbone/TokenClient.d.ts +2 -1
  289. package/dist/modules/tokens/backbone/TokenClient.d.ts.map +1 -1
  290. package/dist/modules/tokens/backbone/TokenClient.js +7 -4
  291. package/dist/modules/tokens/backbone/TokenClient.js.map +1 -1
  292. package/dist/modules/tokens/local/EmptyToken.d.ts +20 -0
  293. package/dist/modules/tokens/local/EmptyToken.d.ts.map +1 -0
  294. package/dist/modules/{relationships/local/CachedRelationship.js → tokens/local/EmptyToken.js} +26 -28
  295. package/dist/modules/tokens/local/EmptyToken.js.map +1 -0
  296. package/dist/modules/tokens/local/Token.d.ts +16 -9
  297. package/dist/modules/tokens/local/Token.d.ts.map +1 -1
  298. package/dist/modules/tokens/local/Token.js +40 -18
  299. package/dist/modules/tokens/local/Token.js.map +1 -1
  300. package/dist/modules/tokens/local/UpdateTokenContentParameters.d.ts +17 -0
  301. package/dist/modules/tokens/local/UpdateTokenContentParameters.d.ts.map +1 -0
  302. package/dist/modules/tokens/local/{CachedToken.js → UpdateTokenContentParameters.js} +15 -24
  303. package/dist/modules/tokens/local/UpdateTokenContentParameters.js.map +1 -0
  304. package/package.json +20 -23
  305. package/dist/core/ICacheable.d.ts +0 -6
  306. package/dist/core/ICacheable.d.ts.map +0 -1
  307. package/dist/core/ICacheable.js +0 -17
  308. package/dist/core/ICacheable.js.map +0 -1
  309. package/dist/modules/accounts/data/CachedIdentityDeletionProcess.d.ts +0 -44
  310. package/dist/modules/accounts/data/CachedIdentityDeletionProcess.d.ts.map +0 -1
  311. package/dist/modules/accounts/data/CachedIdentityDeletionProcess.js +0 -80
  312. package/dist/modules/accounts/data/CachedIdentityDeletionProcess.js.map +0 -1
  313. package/dist/modules/certificates/CertificateController.d.ts +0 -15
  314. package/dist/modules/certificates/CertificateController.d.ts.map +0 -1
  315. package/dist/modules/certificates/CertificateController.js +0 -20
  316. package/dist/modules/certificates/CertificateController.js.map +0 -1
  317. package/dist/modules/certificates/CertificateIssuer.d.ts +0 -29
  318. package/dist/modules/certificates/CertificateIssuer.d.ts.map +0 -1
  319. package/dist/modules/certificates/CertificateIssuer.js +0 -43
  320. package/dist/modules/certificates/CertificateIssuer.js.map +0 -1
  321. package/dist/modules/certificates/CertificateValidator.d.ts +0 -15
  322. package/dist/modules/certificates/CertificateValidator.d.ts.map +0 -1
  323. package/dist/modules/certificates/CertificateValidator.js +0 -20
  324. package/dist/modules/certificates/CertificateValidator.js.map +0 -1
  325. package/dist/modules/certificates/data/Certificate.d.ts +0 -34
  326. package/dist/modules/certificates/data/Certificate.d.ts.map +0 -1
  327. package/dist/modules/certificates/data/Certificate.js +0 -61
  328. package/dist/modules/certificates/data/Certificate.js.map +0 -1
  329. package/dist/modules/certificates/data/CertificateConstraint.d.ts +0 -10
  330. package/dist/modules/certificates/data/CertificateConstraint.d.ts.map +0 -1
  331. package/dist/modules/certificates/data/CertificateConstraint.js +0 -23
  332. package/dist/modules/certificates/data/CertificateConstraint.js.map +0 -1
  333. package/dist/modules/certificates/data/CertificateContent.d.ts +0 -29
  334. package/dist/modules/certificates/data/CertificateContent.d.ts.map +0 -1
  335. package/dist/modules/certificates/data/CertificateContent.js +0 -66
  336. package/dist/modules/certificates/data/CertificateContent.js.map +0 -1
  337. package/dist/modules/certificates/data/CertificateItem.d.ts +0 -11
  338. package/dist/modules/certificates/data/CertificateItem.d.ts.map +0 -1
  339. package/dist/modules/certificates/data/CertificateItem.js +0 -24
  340. package/dist/modules/certificates/data/CertificateItem.js.map +0 -1
  341. package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.d.ts +0 -30
  342. package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.d.ts.map +0 -1
  343. package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js +0 -56
  344. package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js.map +0 -1
  345. package/dist/modules/certificates/data/constraints/CertificateCityConstraint.d.ts +0 -32
  346. package/dist/modules/certificates/data/constraints/CertificateCityConstraint.d.ts.map +0 -1
  347. package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js +0 -59
  348. package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js.map +0 -1
  349. package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.d.ts +0 -10
  350. package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.d.ts.map +0 -1
  351. package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js +0 -30
  352. package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js.map +0 -1
  353. package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.d.ts +0 -17
  354. package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.d.ts.map +0 -1
  355. package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js +0 -40
  356. package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js.map +0 -1
  357. package/dist/modules/certificates/data/items/CertificateAuthorizationItem.d.ts +0 -18
  358. package/dist/modules/certificates/data/items/CertificateAuthorizationItem.d.ts.map +0 -1
  359. package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js +0 -38
  360. package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js.map +0 -1
  361. package/dist/modules/certificates/data/items/CertificateDelegateItem.d.ts +0 -19
  362. package/dist/modules/certificates/data/items/CertificateDelegateItem.d.ts.map +0 -1
  363. package/dist/modules/certificates/data/items/CertificateDelegateItem.js +0 -45
  364. package/dist/modules/certificates/data/items/CertificateDelegateItem.js.map +0 -1
  365. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.d.ts +0 -21
  366. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.d.ts.map +0 -1
  367. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js +0 -41
  368. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js.map +0 -1
  369. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.d.ts +0 -26
  370. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.d.ts.map +0 -1
  371. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js +0 -54
  372. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js.map +0 -1
  373. package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.d.ts +0 -15
  374. package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.d.ts.map +0 -1
  375. package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js +0 -38
  376. package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js.map +0 -1
  377. package/dist/modules/certificates/data/items/CertificateRoleItem.d.ts +0 -17
  378. package/dist/modules/certificates/data/items/CertificateRoleItem.d.ts.map +0 -1
  379. package/dist/modules/certificates/data/items/CertificateRoleItem.js.map +0 -1
  380. package/dist/modules/files/local/CachedFile.d.ts +0 -52
  381. package/dist/modules/files/local/CachedFile.d.ts.map +0 -1
  382. package/dist/modules/files/local/CachedFile.js +0 -145
  383. package/dist/modules/files/local/CachedFile.js.map +0 -1
  384. package/dist/modules/messages/local/CachedMessage.d.ts +0 -23
  385. package/dist/modules/messages/local/CachedMessage.d.ts.map +0 -1
  386. package/dist/modules/messages/local/CachedMessage.js.map +0 -1
  387. package/dist/modules/messages/local/CachedMessageRecipient.d.ts.map +0 -1
  388. package/dist/modules/messages/local/CachedMessageRecipient.js.map +0 -1
  389. package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.d.ts +0 -30
  390. package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.d.ts.map +0 -1
  391. package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js +0 -80
  392. package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js.map +0 -1
  393. package/dist/modules/relationships/local/CachedRelationship.d.ts +0 -20
  394. package/dist/modules/relationships/local/CachedRelationship.d.ts.map +0 -1
  395. package/dist/modules/relationships/local/CachedRelationship.js.map +0 -1
  396. package/dist/modules/tokens/local/CachedToken.d.ts +0 -20
  397. package/dist/modules/tokens/local/CachedToken.d.ts.map +0 -1
  398. package/dist/modules/tokens/local/CachedToken.js.map +0 -1
@@ -1,15 +0,0 @@
1
- import { TransportController } from "../../core";
2
- import { AccountController } from "../accounts/AccountController";
3
- /**
4
- * The CertificateValidator includes all functionality for validating certificates.
5
- * - Check Issuer (+Signature)
6
- * - Check Subject
7
- * - Check Revocation (online vs. cached)
8
- * -> possibly register for push notifications on status changes of this certificate
9
- * - Check Constraints (Time, Region, ...)
10
- * - Check Content
11
- */
12
- export declare class CertificateValidator extends TransportController {
13
- constructor(parent: AccountController);
14
- }
15
- //# sourceMappingURL=CertificateValidator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateValidator.d.ts","sourceRoot":"","sources":["../../../src/modules/certificates/CertificateValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,SAAQ,mBAAmB;gBACtC,MAAM,EAAE,iBAAiB;CAG/C"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CertificateValidator = void 0;
4
- const core_1 = require("../../core");
5
- /**
6
- * The CertificateValidator includes all functionality for validating certificates.
7
- * - Check Issuer (+Signature)
8
- * - Check Subject
9
- * - Check Revocation (online vs. cached)
10
- * -> possibly register for push notifications on status changes of this certificate
11
- * - Check Constraints (Time, Region, ...)
12
- * - Check Content
13
- */
14
- class CertificateValidator extends core_1.TransportController {
15
- constructor(parent) {
16
- super(core_1.ControllerName.CertificateValidator, parent);
17
- }
18
- }
19
- exports.CertificateValidator = CertificateValidator;
20
- //# sourceMappingURL=CertificateValidator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateValidator.js","sourceRoot":"","sources":["../../../src/modules/certificates/CertificateValidator.ts"],"names":[],"mappings":";;;AAAA,qCAAiE;AAGjE;;;;;;;;GAQG;AACH,MAAa,oBAAqB,SAAQ,0BAAmB;IACzD,YAAmB,MAAyB;QACxC,KAAK,CAAC,qBAAc,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;CACJ;AAJD,oDAIC"}
@@ -1,34 +0,0 @@
1
- import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
- import { CryptoSignature, CryptoSignaturePublicKey, ICryptoSignature } from "@nmshd/crypto";
3
- export interface ICertificate extends ISerializable {
4
- content: string;
5
- signature: ICryptoSignature;
6
- }
7
- /**
8
- * A Certificate is digitally signed data which is issued by one user A (issuer) for another user B (subject).
9
- * The subject is eligible to share the certificate to any other user C, who in turn can verify, if the information
10
- * provided really comes from user A. Certificates always contain structured data, thus it is machine readable and
11
- * can be used for automatic checks.
12
- *
13
- * The content of a certificate is comparable with standardized SSL/TLS certificates, but they are not compatible
14
- * with each other. However, the content can be transformed.
15
- *
16
- *
17
- */
18
- export declare class Certificate extends Serializable {
19
- content: string;
20
- signature: CryptoSignature;
21
- static from(value: ICertificate): Certificate;
22
- /**
23
- * Checks the validity of the digital signature. You have to provide the
24
- * public key of the issuer.
25
- *
26
- * Careful: This method does only check the digital signature (if the certificate
27
- * really comes from the issuer). Anything else, like validity, revocation or other
28
- * constraints is not checked!
29
- *
30
- * @param publicKey The issuer's public key.
31
- */
32
- verify(publicKey: CryptoSignaturePublicKey): Promise<boolean>;
33
- }
34
- //# sourceMappingURL=Certificate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Certificate.d.ts","sourceRoot":"","sources":["../../../../src/modules/certificates/data/Certificate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAc,eAAe,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGxG,MAAM,WAAW,YAAa,SAAQ,aAAa;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,gBAAgB,CAAC;CAC/B;AAED;;;;;;;;;;GAUG;AACH,qBACa,WAAY,SAAQ,YAAY;IAGlC,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,eAAe,CAAC;WAEpB,IAAI,CAAC,KAAK,EAAE,YAAY,GAAG,WAAW;IAIpD;;;;;;;;;OASG;IACU,MAAM,CAAC,SAAS,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC;CAK7E"}
@@ -1,61 +0,0 @@
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.Certificate = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
- const crypto_1 = require("@nmshd/crypto");
15
- const core_1 = require("../../../core");
16
- /**
17
- * A Certificate is digitally signed data which is issued by one user A (issuer) for another user B (subject).
18
- * The subject is eligible to share the certificate to any other user C, who in turn can verify, if the information
19
- * provided really comes from user A. Certificates always contain structured data, thus it is machine readable and
20
- * can be used for automatic checks.
21
- *
22
- * The content of a certificate is comparable with standardized SSL/TLS certificates, but they are not compatible
23
- * with each other. However, the content can be transformed.
24
- *
25
- *
26
- */
27
- let Certificate = class Certificate extends ts_serval_1.Serializable {
28
- static from(value) {
29
- return this.fromAny(value);
30
- }
31
- /**
32
- * Checks the validity of the digital signature. You have to provide the
33
- * public key of the issuer.
34
- *
35
- * Careful: This method does only check the digital signature (if the certificate
36
- * really comes from the issuer). Anything else, like validity, revocation or other
37
- * constraints is not checked!
38
- *
39
- * @param publicKey The issuer's public key.
40
- */
41
- async verify(publicKey) {
42
- const buffer = crypto_1.CoreBuffer.fromUtf8(this.content);
43
- const correct = await core_1.CoreCrypto.verify(buffer, this.signature, publicKey);
44
- return correct;
45
- }
46
- };
47
- exports.Certificate = Certificate;
48
- __decorate([
49
- (0, ts_serval_1.validate)(),
50
- (0, ts_serval_1.serialize)(),
51
- __metadata("design:type", String)
52
- ], Certificate.prototype, "content", void 0);
53
- __decorate([
54
- (0, ts_serval_1.validate)(),
55
- (0, ts_serval_1.serialize)(),
56
- __metadata("design:type", crypto_1.CryptoSignature)
57
- ], Certificate.prototype, "signature", void 0);
58
- exports.Certificate = Certificate = __decorate([
59
- (0, ts_serval_1.type)("Certificate")
60
- ], Certificate);
61
- //# sourceMappingURL=Certificate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Certificate.js","sourceRoot":"","sources":["../../../../src/modules/certificates/data/Certificate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,0CAAwG;AACxG,wCAA2C;AAO3C;;;;;;;;;;GAUG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,wBAAY;IASlC,MAAM,CAAC,IAAI,CAAC,KAAmB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,MAAM,CAAC,SAAmC;QACnD,MAAM,MAAM,GAAG,mBAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,MAAM,iBAAU,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAC3E,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAA;AA5BY,kCAAW;AAGb;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;4CACW;AAIhB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,wBAAe;8CAAC;sBAPzB,WAAW;IADvB,IAAA,gBAAI,EAAC,aAAa,CAAC;GACP,WAAW,CA4BvB"}
@@ -1,10 +0,0 @@
1
- import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
- export interface ICertificateConstraint extends ISerializable {
3
- }
4
- /**
5
- * A CertificateConstraint limits a Certificate to a specific time, region or identity.
6
- */
7
- export declare class CertificateConstraint extends Serializable {
8
- static from(value: ICertificateConstraint): CertificateConstraint;
9
- }
10
- //# sourceMappingURL=CertificateConstraint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateConstraint.d.ts","sourceRoot":"","sources":["../../../../src/modules/certificates/data/CertificateConstraint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAQ,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,sBAAuB,SAAQ,aAAa;CAAG;AAEhE;;GAEG;AACH,qBACa,qBAAsB,SAAQ,YAAY;WACrC,IAAI,CAAC,KAAK,EAAE,sBAAsB,GAAG,qBAAqB;CAG3E"}
@@ -1,23 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.CertificateConstraint = void 0;
10
- const ts_serval_1 = require("@js-soft/ts-serval");
11
- /**
12
- * A CertificateConstraint limits a Certificate to a specific time, region or identity.
13
- */
14
- let CertificateConstraint = class CertificateConstraint extends ts_serval_1.Serializable {
15
- static from(value) {
16
- return this.fromAny(value);
17
- }
18
- };
19
- exports.CertificateConstraint = CertificateConstraint;
20
- exports.CertificateConstraint = CertificateConstraint = __decorate([
21
- (0, ts_serval_1.type)("CertificateConstraint")
22
- ], CertificateConstraint);
23
- //# sourceMappingURL=CertificateConstraint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateConstraint.js","sourceRoot":"","sources":["../../../../src/modules/certificates/data/CertificateConstraint.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAuE;AAIvE;;GAEG;AAEI,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,wBAAY;IAC5C,MAAM,CAAC,IAAI,CAAC,KAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAJY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,gBAAI,EAAC,uBAAuB,CAAC;GACjB,qBAAqB,CAIjC"}
@@ -1,29 +0,0 @@
1
- import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
- import { CoreAddress, CoreDate, ICoreAddress, ICoreDate } from "@nmshd/core-types";
3
- import { CryptoSignaturePublicKey, ICryptoSignaturePublicKey } from "@nmshd/crypto";
4
- import { CertificateConstraint, ICertificateConstraint } from "./CertificateConstraint";
5
- import { CertificateItem, ICertificateItem } from "./CertificateItem";
6
- export interface ICertificateContent extends ISerializable {
7
- issuedAt: ICoreDate;
8
- issuer: ICoreAddress;
9
- issuerData?: ISerializable;
10
- subject: ICoreAddress;
11
- subjectPublicKey: ICryptoSignaturePublicKey;
12
- constraints: ICertificateConstraint[];
13
- items: ICertificateItem[];
14
- }
15
- /**
16
- * A CertificateContent is the content which should be digitally signed. The digital signature
17
- * is done on top of the serialized content of this data structure.
18
- */
19
- export declare class CertificateContent extends Serializable {
20
- issuedAt: CoreDate;
21
- issuer: CoreAddress;
22
- issuerData: Serializable;
23
- subject: CoreAddress;
24
- subjectPublicKey: CryptoSignaturePublicKey;
25
- constraints: CertificateConstraint[];
26
- items: CertificateItem[];
27
- static from(value: ICertificateContent): CertificateContent;
28
- }
29
- //# sourceMappingURL=CertificateContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateContent.d.ts","sourceRoot":"","sources":["../../../../src/modules/certificates/data/CertificateContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEtE,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,WAAW,EAAE,sBAAsB,EAAE,CAAC;IACtC,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED;;;GAGG;AACH,qBACa,kBAAmB,SAAQ,YAAY;IAGzC,QAAQ,EAAE,QAAQ,CAAC;IAInB,MAAM,EAAE,WAAW,CAAC;IAIpB,UAAU,EAAE,YAAY,CAAC;IAIzB,OAAO,EAAE,WAAW,CAAC;IAIrB,gBAAgB,EAAE,wBAAwB,CAAC;IAI3C,WAAW,EAAE,qBAAqB,EAAE,CAAC;IAIrC,KAAK,EAAE,eAAe,EAAE,CAAC;WAElB,IAAI,CAAC,KAAK,EAAE,mBAAmB,GAAG,kBAAkB;CAGrE"}
@@ -1,66 +0,0 @@
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.CertificateContent = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
- const core_types_1 = require("@nmshd/core-types");
15
- const crypto_1 = require("@nmshd/crypto");
16
- const CertificateConstraint_1 = require("./CertificateConstraint");
17
- const CertificateItem_1 = require("./CertificateItem");
18
- /**
19
- * A CertificateContent is the content which should be digitally signed. The digital signature
20
- * is done on top of the serialized content of this data structure.
21
- */
22
- let CertificateContent = class CertificateContent extends ts_serval_1.Serializable {
23
- static from(value) {
24
- return this.fromAny(value);
25
- }
26
- };
27
- exports.CertificateContent = CertificateContent;
28
- __decorate([
29
- (0, ts_serval_1.validate)(),
30
- (0, ts_serval_1.serialize)(),
31
- __metadata("design:type", core_types_1.CoreDate)
32
- ], CertificateContent.prototype, "issuedAt", void 0);
33
- __decorate([
34
- (0, ts_serval_1.validate)(),
35
- (0, ts_serval_1.serialize)(),
36
- __metadata("design:type", core_types_1.CoreAddress)
37
- ], CertificateContent.prototype, "issuer", void 0);
38
- __decorate([
39
- (0, ts_serval_1.validate)(),
40
- (0, ts_serval_1.serialize)(),
41
- __metadata("design:type", ts_serval_1.Serializable)
42
- ], CertificateContent.prototype, "issuerData", void 0);
43
- __decorate([
44
- (0, ts_serval_1.validate)(),
45
- (0, ts_serval_1.serialize)(),
46
- __metadata("design:type", core_types_1.CoreAddress)
47
- ], CertificateContent.prototype, "subject", void 0);
48
- __decorate([
49
- (0, ts_serval_1.validate)(),
50
- (0, ts_serval_1.serialize)(),
51
- __metadata("design:type", crypto_1.CryptoSignaturePublicKey)
52
- ], CertificateContent.prototype, "subjectPublicKey", void 0);
53
- __decorate([
54
- (0, ts_serval_1.validate)(),
55
- (0, ts_serval_1.serialize)({ type: CertificateConstraint_1.CertificateConstraint }),
56
- __metadata("design:type", Array)
57
- ], CertificateContent.prototype, "constraints", void 0);
58
- __decorate([
59
- (0, ts_serval_1.validate)(),
60
- (0, ts_serval_1.serialize)({ type: CertificateItem_1.CertificateItem }),
61
- __metadata("design:type", Array)
62
- ], CertificateContent.prototype, "items", void 0);
63
- exports.CertificateContent = CertificateContent = __decorate([
64
- (0, ts_serval_1.type)("CertificateContent")
65
- ], CertificateContent);
66
- //# sourceMappingURL=CertificateContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateContent.js","sourceRoot":"","sources":["../../../../src/modules/certificates/data/CertificateContent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,kDAAmF;AACnF,0CAAoF;AACpF,mEAAwF;AACxF,uDAAsE;AAYtE;;;GAGG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wBAAY;IA6BzC,MAAM,CAAC,IAAI,CAAC,KAA0B;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAhCY,gDAAkB;AAGpB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACK,qBAAQ;oDAAC;AAInB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACG,wBAAW;kDAAC;AAIpB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACO,wBAAY;sDAAC;AAIzB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,wBAAW;mDAAC;AAIrB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACa,iCAAwB;4DAAC;AAI3C;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,6CAAqB,EAAE,CAAC;;uDACC;AAIrC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,iCAAe,EAAE,CAAC;;iDACL;6BA3BvB,kBAAkB;IAD9B,IAAA,gBAAI,EAAC,oBAAoB,CAAC;GACd,kBAAkB,CAgC9B"}
@@ -1,11 +0,0 @@
1
- import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
- export interface ICertificateItem extends ISerializable {
3
- }
4
- /**
5
- * A CertificateItem is a digitally signed hash with information about the signature date,
6
- * the signer, the signature algorithm and the version.
7
- */
8
- export declare class CertificateItem extends Serializable {
9
- static from(value: ICertificateItem): CertificateItem;
10
- }
11
- //# sourceMappingURL=CertificateItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateItem.d.ts","sourceRoot":"","sources":["../../../../src/modules/certificates/data/CertificateItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAQ,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,gBAAiB,SAAQ,aAAa;CAAG;AAE1D;;;GAGG;AACH,qBACa,eAAgB,SAAQ,YAAY;WAC/B,IAAI,CAAC,KAAK,EAAE,gBAAgB,GAAG,eAAe;CAG/D"}
@@ -1,24 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.CertificateItem = void 0;
10
- const ts_serval_1 = require("@js-soft/ts-serval");
11
- /**
12
- * A CertificateItem is a digitally signed hash with information about the signature date,
13
- * the signer, the signature algorithm and the version.
14
- */
15
- let CertificateItem = class CertificateItem extends ts_serval_1.Serializable {
16
- static from(value) {
17
- return this.fromAny(value);
18
- }
19
- };
20
- exports.CertificateItem = CertificateItem;
21
- exports.CertificateItem = CertificateItem = __decorate([
22
- (0, ts_serval_1.type)("CertificateItem")
23
- ], CertificateItem);
24
- //# sourceMappingURL=CertificateItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateItem.js","sourceRoot":"","sources":["../../../../src/modules/certificates/data/CertificateItem.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAuE;AAIvE;;;GAGG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAY;IACtC,MAAM,CAAC,IAAI,CAAC,KAAuB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAJY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,gBAAI,EAAC,iBAAiB,CAAC;GACX,eAAe,CAI3B"}
@@ -1,30 +0,0 @@
1
- import { CertificateConstraint, ICertificateConstraint } from "../CertificateConstraint";
2
- export interface ICertificateBorderConstraint extends ICertificateConstraint {
3
- union: string;
4
- country: string;
5
- state: string;
6
- }
7
- /**
8
- * A CertificateBorderConstraint specifies a state, a country or a union in which
9
- * this certificate should be valid.
10
- *
11
- * This constraint is primarily telling any verifier, that the issuer of the certificate does not
12
- * hold the eligibility to issue a certificate anywhere else. Thus, the certificate should be
13
- * treated as not valid outside the specified border.
14
- *
15
- * However, showing a certificate which is valid within a certain country (e.g. Germany) might be
16
- * much better than not having a certificate at all. Therefore, the verifier could still treat this
17
- * certificate as valid, although the issuer is no longer taking liability.
18
- *
19
- * Examples:
20
- * - Freight papers for the EU
21
- * - Access rights to buildings of the UN
22
- * - German driver license
23
- */
24
- export declare class CertificateBorderConstraint extends CertificateConstraint {
25
- union: string;
26
- country: string;
27
- state: string;
28
- static from(value: ICertificateBorderConstraint): CertificateBorderConstraint;
29
- }
30
- //# sourceMappingURL=CertificateBorderConstraint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateBorderConstraint.d.ts","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/constraints/CertificateBorderConstraint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,4BAA6B,SAAQ,sBAAsB;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,2BAA4B,SAAQ,qBAAqB;IAG3D,KAAK,EAAE,MAAM,CAAC;IAId,OAAO,EAAE,MAAM,CAAC;IAIhB,KAAK,EAAE,MAAM,CAAC;WAEE,IAAI,CAAC,KAAK,EAAE,4BAA4B,GAAG,2BAA2B;CAGhG"}
@@ -1,56 +0,0 @@
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.CertificateBorderConstraint = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
- const CertificateConstraint_1 = require("../CertificateConstraint");
15
- /**
16
- * A CertificateBorderConstraint specifies a state, a country or a union in which
17
- * this certificate should be valid.
18
- *
19
- * This constraint is primarily telling any verifier, that the issuer of the certificate does not
20
- * hold the eligibility to issue a certificate anywhere else. Thus, the certificate should be
21
- * treated as not valid outside the specified border.
22
- *
23
- * However, showing a certificate which is valid within a certain country (e.g. Germany) might be
24
- * much better than not having a certificate at all. Therefore, the verifier could still treat this
25
- * certificate as valid, although the issuer is no longer taking liability.
26
- *
27
- * Examples:
28
- * - Freight papers for the EU
29
- * - Access rights to buildings of the UN
30
- * - German driver license
31
- */
32
- let CertificateBorderConstraint = class CertificateBorderConstraint extends CertificateConstraint_1.CertificateConstraint {
33
- static from(value) {
34
- return this.fromAny(value);
35
- }
36
- };
37
- exports.CertificateBorderConstraint = CertificateBorderConstraint;
38
- __decorate([
39
- (0, ts_serval_1.validate)(),
40
- (0, ts_serval_1.serialize)(),
41
- __metadata("design:type", String)
42
- ], CertificateBorderConstraint.prototype, "union", void 0);
43
- __decorate([
44
- (0, ts_serval_1.validate)(),
45
- (0, ts_serval_1.serialize)(),
46
- __metadata("design:type", String)
47
- ], CertificateBorderConstraint.prototype, "country", void 0);
48
- __decorate([
49
- (0, ts_serval_1.validate)(),
50
- (0, ts_serval_1.serialize)(),
51
- __metadata("design:type", String)
52
- ], CertificateBorderConstraint.prototype, "state", void 0);
53
- exports.CertificateBorderConstraint = CertificateBorderConstraint = __decorate([
54
- (0, ts_serval_1.type)("CertificateBorderConstraint")
55
- ], CertificateBorderConstraint);
56
- //# sourceMappingURL=CertificateBorderConstraint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateBorderConstraint.js","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/constraints/CertificateBorderConstraint.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,oEAAyF;AAQzF;;;;;;;;;;;;;;;;GAgBG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,6CAAqB;IAa3D,MAAM,CAAU,IAAI,CAAC,KAAmC;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAhBY,kEAA2B;AAG7B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;0DACS;AAId;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;4DACW;AAIhB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;0DACS;sCAXZ,2BAA2B;IADvC,IAAA,gBAAI,EAAC,6BAA6B,CAAC;GACvB,2BAA2B,CAgBvC"}
@@ -1,32 +0,0 @@
1
- import { CertificateConstraint, ICertificateConstraint } from "../CertificateConstraint";
2
- export interface ICertificateCityConstraint extends ICertificateConstraint {
3
- city: string;
4
- zipCode: string;
5
- }
6
- /**
7
- * A CertificateCityConstraint specifies the district, city and zip code in which the
8
- * certificate is valid.
9
- *
10
- * This constraint is primarily telling any verifier, that the issuer of the certificate does not
11
- * hold the eligibility to issue a certificate anywhere else. Thus, the certificate should be
12
- * treated as not valid outside the specified city.
13
- *
14
- * However, showing a certificate which is valid within a certain city (e.g. Cologne) might be
15
- * much better than not having a certificate at all. Therefore, the verifier could still treat this
16
- * certificate as valid, although the issuer is no longer taking liability.
17
- *
18
- * Consider using a CertificateBorderConstraint with a CertificateCityConstraint, otherwise the city
19
- * could not be unique in the world.
20
- *
21
- * Examples:
22
- * - Parking permits within a city
23
- * - Public transport tickets
24
- * - City-Inhabitant IDs
25
- */
26
- export declare class CertificateCityConstraint extends CertificateConstraint {
27
- district: string;
28
- city: string;
29
- zipCode: string;
30
- static from(value: ICertificateCityConstraint): CertificateCityConstraint;
31
- }
32
- //# sourceMappingURL=CertificateCityConstraint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateCityConstraint.d.ts","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/constraints/CertificateCityConstraint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBACa,yBAA0B,SAAQ,qBAAqB;IAGzD,QAAQ,EAAE,MAAM,CAAC;IAIjB,IAAI,EAAE,MAAM,CAAC;IAIb,OAAO,EAAE,MAAM,CAAC;WAEA,IAAI,CAAC,KAAK,EAAE,0BAA0B,GAAG,yBAAyB;CAG5F"}
@@ -1,59 +0,0 @@
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.CertificateCityConstraint = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
- const CertificateConstraint_1 = require("../CertificateConstraint");
15
- /**
16
- * A CertificateCityConstraint specifies the district, city and zip code in which the
17
- * certificate is valid.
18
- *
19
- * This constraint is primarily telling any verifier, that the issuer of the certificate does not
20
- * hold the eligibility to issue a certificate anywhere else. Thus, the certificate should be
21
- * treated as not valid outside the specified city.
22
- *
23
- * However, showing a certificate which is valid within a certain city (e.g. Cologne) might be
24
- * much better than not having a certificate at all. Therefore, the verifier could still treat this
25
- * certificate as valid, although the issuer is no longer taking liability.
26
- *
27
- * Consider using a CertificateBorderConstraint with a CertificateCityConstraint, otherwise the city
28
- * could not be unique in the world.
29
- *
30
- * Examples:
31
- * - Parking permits within a city
32
- * - Public transport tickets
33
- * - City-Inhabitant IDs
34
- */
35
- let CertificateCityConstraint = class CertificateCityConstraint extends CertificateConstraint_1.CertificateConstraint {
36
- static from(value) {
37
- return this.fromAny(value);
38
- }
39
- };
40
- exports.CertificateCityConstraint = CertificateCityConstraint;
41
- __decorate([
42
- (0, ts_serval_1.validate)(),
43
- (0, ts_serval_1.serialize)(),
44
- __metadata("design:type", String)
45
- ], CertificateCityConstraint.prototype, "district", void 0);
46
- __decorate([
47
- (0, ts_serval_1.validate)(),
48
- (0, ts_serval_1.serialize)(),
49
- __metadata("design:type", String)
50
- ], CertificateCityConstraint.prototype, "city", void 0);
51
- __decorate([
52
- (0, ts_serval_1.validate)(),
53
- (0, ts_serval_1.serialize)(),
54
- __metadata("design:type", String)
55
- ], CertificateCityConstraint.prototype, "zipCode", void 0);
56
- exports.CertificateCityConstraint = CertificateCityConstraint = __decorate([
57
- (0, ts_serval_1.type)("CertificateCityConstraint")
58
- ], CertificateCityConstraint);
59
- //# sourceMappingURL=CertificateCityConstraint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateCityConstraint.js","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/constraints/CertificateCityConstraint.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,oEAAyF;AAOzF;;;;;;;;;;;;;;;;;;;GAmBG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,6CAAqB;IAazD,MAAM,CAAU,IAAI,CAAC,KAAiC;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAhBY,8DAAyB;AAG3B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;2DACY;AAIjB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;uDACQ;AAIb;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;0DACW;oCAXd,yBAAyB;IADrC,IAAA,gBAAI,EAAC,2BAA2B,CAAC;GACrB,yBAAyB,CAgBrC"}
@@ -1,10 +0,0 @@
1
- import { CoreAddress, ICoreAddress } from "@nmshd/core-types";
2
- import { CertificateConstraint, ICertificateConstraint } from "../CertificateConstraint";
3
- export interface ICertificateIdentityConstraint extends ICertificateConstraint {
4
- identity: ICoreAddress;
5
- }
6
- export declare class CertificateIdentityConstraint extends CertificateConstraint {
7
- identity: CoreAddress;
8
- static from(value: ICertificateIdentityConstraint): CertificateIdentityConstraint;
9
- }
10
- //# sourceMappingURL=CertificateIdentityConstraint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateIdentityConstraint.d.ts","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/constraints/CertificateIdentityConstraint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,8BAA+B,SAAQ,sBAAsB;IAC1E,QAAQ,EAAE,YAAY,CAAC;CAC1B;AAED,qBACa,6BAA8B,SAAQ,qBAAqB;IAG7D,QAAQ,EAAE,WAAW,CAAC;WAEN,IAAI,CAAC,KAAK,EAAE,8BAA8B,GAAG,6BAA6B;CAGpG"}
@@ -1,30 +0,0 @@
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.CertificateIdentityConstraint = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
- const core_types_1 = require("@nmshd/core-types");
15
- const CertificateConstraint_1 = require("../CertificateConstraint");
16
- let CertificateIdentityConstraint = class CertificateIdentityConstraint extends CertificateConstraint_1.CertificateConstraint {
17
- static from(value) {
18
- return this.fromAny(value);
19
- }
20
- };
21
- exports.CertificateIdentityConstraint = CertificateIdentityConstraint;
22
- __decorate([
23
- (0, ts_serval_1.validate)(),
24
- (0, ts_serval_1.serialize)(),
25
- __metadata("design:type", core_types_1.CoreAddress)
26
- ], CertificateIdentityConstraint.prototype, "identity", void 0);
27
- exports.CertificateIdentityConstraint = CertificateIdentityConstraint = __decorate([
28
- (0, ts_serval_1.type)("CertificateIdentityConstraint")
29
- ], CertificateIdentityConstraint);
30
- //# sourceMappingURL=CertificateIdentityConstraint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateIdentityConstraint.js","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/constraints/CertificateIdentityConstraint.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,kDAA8D;AAC9D,oEAAyF;AAOlF,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,6CAAqB;IAK7D,MAAM,CAAU,IAAI,CAAC,KAAqC;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AARY,sEAA6B;AAG/B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACK,wBAAW;+DAAC;wCAHpB,6BAA6B;IADzC,IAAA,gBAAI,EAAC,+BAA+B,CAAC;GACzB,6BAA6B,CAQzC"}
@@ -1,17 +0,0 @@
1
- import { CoreDate, ICoreDate } from "@nmshd/core-types";
2
- import { CertificateConstraint, ICertificateConstraint } from "../CertificateConstraint";
3
- export interface ICertificateTimeConstraint extends ICertificateConstraint {
4
- validFrom: ICoreDate;
5
- validTo: ICoreDate;
6
- }
7
- /**
8
- * A CertificateTimeConstraint limits the validity of the certificate to the specified
9
- * dates. The certificate is not valid before the validFrom date, and not after the
10
- * validTo date.
11
- */
12
- export declare class CertificateTimeConstraint extends CertificateConstraint {
13
- validFrom: CoreDate;
14
- validTo: CoreDate;
15
- static from(value: ICertificateTimeConstraint): CertificateTimeConstraint;
16
- }
17
- //# sourceMappingURL=CertificateTimeConstraint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateTimeConstraint.d.ts","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/constraints/CertificateTimeConstraint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACtE,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,SAAS,CAAC;CACtB;AAED;;;;GAIG;AACH,qBACa,yBAA0B,SAAQ,qBAAqB;IAGzD,SAAS,EAAE,QAAQ,CAAC;IAIpB,OAAO,EAAE,QAAQ,CAAC;WAEF,IAAI,CAAC,KAAK,EAAE,0BAA0B,GAAG,yBAAyB;CAG5F"}