@nmshd/transport 7.0.0-alpha.52 → 7.0.0-alpha.54

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 (235) 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/TransportController.d.ts +0 -4
  11. package/dist/core/TransportController.d.ts.map +1 -1
  12. package/dist/core/TransportController.js +0 -6
  13. package/dist/core/TransportController.js.map +1 -1
  14. package/dist/core/TransportCoreErrors.d.ts +0 -1
  15. package/dist/core/TransportCoreErrors.d.ts.map +1 -1
  16. package/dist/core/TransportCoreErrors.js +0 -3
  17. package/dist/core/TransportCoreErrors.js.map +1 -1
  18. package/dist/core/backbone/RESTClient.d.ts.map +1 -1
  19. package/dist/core/backbone/RESTClient.js +8 -10
  20. package/dist/core/backbone/RESTClient.js.map +1 -1
  21. package/dist/modules/accounts/AccountController.d.ts +0 -6
  22. package/dist/modules/accounts/AccountController.d.ts.map +1 -1
  23. package/dist/modules/accounts/AccountController.js +2 -9
  24. package/dist/modules/accounts/AccountController.js.map +1 -1
  25. package/dist/modules/accounts/IdentityDeletionProcessController.d.ts +2 -8
  26. package/dist/modules/accounts/IdentityDeletionProcessController.d.ts.map +1 -1
  27. package/dist/modules/accounts/IdentityDeletionProcessController.js +4 -24
  28. package/dist/modules/accounts/IdentityDeletionProcessController.js.map +1 -1
  29. package/dist/modules/accounts/data/IdentityDeletionProcess.d.ts +35 -8
  30. package/dist/modules/accounts/data/IdentityDeletionProcess.d.ts.map +1 -1
  31. package/dist/modules/accounts/data/IdentityDeletionProcess.js +65 -10
  32. package/dist/modules/accounts/data/IdentityDeletionProcess.js.map +1 -1
  33. package/dist/modules/announcements/data/Announcement.d.ts +1 -9
  34. package/dist/modules/announcements/data/Announcement.d.ts.map +1 -1
  35. package/dist/modules/announcements/data/Announcement.js +3 -21
  36. package/dist/modules/announcements/data/Announcement.js.map +1 -1
  37. package/dist/modules/announcements/data/AnnouncementAction.d.ts +11 -0
  38. package/dist/modules/announcements/data/AnnouncementAction.d.ts.map +1 -0
  39. package/dist/modules/{certificates/data/items/CertificateRoleItem.js → announcements/data/AnnouncementAction.js} +13 -17
  40. package/dist/modules/announcements/data/AnnouncementAction.js.map +1 -0
  41. package/dist/modules/devices/DeviceController.d.ts +0 -1
  42. package/dist/modules/devices/DeviceController.d.ts.map +1 -1
  43. package/dist/modules/devices/DeviceController.js +0 -3
  44. package/dist/modules/devices/DeviceController.js.map +1 -1
  45. package/dist/modules/devices/local/Device.d.ts +0 -2
  46. package/dist/modules/devices/local/Device.d.ts.map +1 -1
  47. package/dist/modules/devices/local/Device.js +0 -6
  48. package/dist/modules/devices/local/Device.js.map +1 -1
  49. package/dist/modules/files/FileController.d.ts +2 -9
  50. package/dist/modules/files/FileController.d.ts.map +1 -1
  51. package/dist/modules/files/FileController.js +37 -82
  52. package/dist/modules/files/FileController.js.map +1 -1
  53. package/dist/modules/files/local/File.d.ts +49 -9
  54. package/dist/modules/files/local/File.d.ts.map +1 -1
  55. package/dist/modules/files/local/File.js +134 -12
  56. package/dist/modules/files/local/File.js.map +1 -1
  57. package/dist/modules/index.d.ts +2 -23
  58. package/dist/modules/index.d.ts.map +1 -1
  59. package/dist/modules/index.js +2 -23
  60. package/dist/modules/index.js.map +1 -1
  61. package/dist/modules/messages/MessageController.d.ts +3 -8
  62. package/dist/modules/messages/MessageController.d.ts.map +1 -1
  63. package/dist/modules/messages/MessageController.js +28 -54
  64. package/dist/modules/messages/MessageController.js.map +1 -1
  65. package/dist/modules/messages/local/Message.d.ts +28 -7
  66. package/dist/modules/messages/local/Message.d.ts.map +1 -1
  67. package/dist/modules/messages/local/Message.js +53 -12
  68. package/dist/modules/messages/local/Message.js.map +1 -1
  69. package/dist/modules/messages/local/{CachedMessageRecipient.d.ts → MessageRecipient.d.ts} +4 -4
  70. package/dist/modules/messages/local/MessageRecipient.d.ts.map +1 -0
  71. package/dist/modules/messages/local/{CachedMessageRecipient.js → MessageRecipient.js} +12 -12
  72. package/dist/modules/messages/local/MessageRecipient.js.map +1 -0
  73. package/dist/modules/messages/transmission/MessageContentWrapper.js +1 -2
  74. package/dist/modules/messages/transmission/MessageContentWrapper.js.map +1 -1
  75. package/dist/modules/relationshipTemplates/RelationshipTemplateController.d.ts +1 -10
  76. package/dist/modules/relationshipTemplates/RelationshipTemplateController.d.ts.map +1 -1
  77. package/dist/modules/relationshipTemplates/RelationshipTemplateController.js +42 -125
  78. package/dist/modules/relationshipTemplates/RelationshipTemplateController.js.map +1 -1
  79. package/dist/modules/relationshipTemplates/local/RelationshipTemplate.d.ts +25 -8
  80. package/dist/modules/relationshipTemplates/local/RelationshipTemplate.d.ts.map +1 -1
  81. package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js +68 -14
  82. package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js.map +1 -1
  83. package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js +2 -2
  84. package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js.map +1 -1
  85. package/dist/modules/relationships/RelationshipSecretController.d.ts +3 -3
  86. package/dist/modules/relationships/RelationshipSecretController.d.ts.map +1 -1
  87. package/dist/modules/relationships/RelationshipSecretController.js +2 -2
  88. package/dist/modules/relationships/RelationshipSecretController.js.map +1 -1
  89. package/dist/modules/relationships/RelationshipsController.d.ts +0 -10
  90. package/dist/modules/relationships/RelationshipsController.d.ts.map +1 -1
  91. package/dist/modules/relationships/RelationshipsController.js +41 -117
  92. package/dist/modules/relationships/RelationshipsController.js.map +1 -1
  93. package/dist/modules/relationships/local/Relationship.d.ts +14 -10
  94. package/dist/modules/relationships/local/Relationship.d.ts.map +1 -1
  95. package/dist/modules/relationships/local/Relationship.js +30 -28
  96. package/dist/modules/relationships/local/Relationship.js.map +1 -1
  97. package/dist/modules/sync/DatawalletModificationMapper.js +3 -3
  98. package/dist/modules/sync/DatawalletModificationMapper.js.map +1 -1
  99. package/dist/modules/sync/DatawalletModificationsProcessor.d.ts +2 -60
  100. package/dist/modules/sync/DatawalletModificationsProcessor.d.ts.map +1 -1
  101. package/dist/modules/sync/DatawalletModificationsProcessor.js +11 -158
  102. package/dist/modules/sync/DatawalletModificationsProcessor.js.map +1 -1
  103. package/dist/modules/sync/SyncController.d.ts +0 -2
  104. package/dist/modules/sync/SyncController.d.ts.map +1 -1
  105. package/dist/modules/sync/SyncController.js +3 -9
  106. package/dist/modules/sync/SyncController.js.map +1 -1
  107. package/dist/modules/sync/SynchronizedCollection.d.ts.map +1 -1
  108. package/dist/modules/sync/SynchronizedCollection.js +24 -10
  109. package/dist/modules/sync/SynchronizedCollection.js.map +1 -1
  110. package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.d.ts.map +1 -1
  111. package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.js +1 -4
  112. package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.js.map +1 -1
  113. package/dist/modules/sync/externalEventProcessors/IdentityDeletionProcessStatusChangedExternalEventProcessor.js +1 -1
  114. package/dist/modules/sync/externalEventProcessors/IdentityDeletionProcessStatusChangedExternalEventProcessor.js.map +1 -1
  115. package/dist/modules/sync/externalEventProcessors/MessageDeliveredExternalEventProcessor.js +1 -1
  116. package/dist/modules/sync/externalEventProcessors/MessageDeliveredExternalEventProcessor.js.map +1 -1
  117. package/dist/modules/sync/externalEventProcessors/RelationshipExternalEventProcessor.js +1 -1
  118. package/dist/modules/sync/externalEventProcessors/RelationshipExternalEventProcessor.js.map +1 -1
  119. package/dist/modules/sync/local/DatawalletModification.d.ts +2 -2
  120. package/dist/modules/sync/local/DatawalletModification.d.ts.map +1 -1
  121. package/dist/modules/sync/local/DatawalletModification.js +1 -1
  122. package/dist/modules/sync/local/DatawalletModification.js.map +1 -1
  123. package/dist/modules/sync/migrations/DeviceMigrations.d.ts +2 -2
  124. package/dist/modules/sync/migrations/DeviceMigrations.d.ts.map +1 -1
  125. package/dist/modules/sync/migrations/DeviceMigrations.js +5 -15
  126. package/dist/modules/sync/migrations/DeviceMigrations.js.map +1 -1
  127. package/dist/modules/tokens/AnonymousTokenController.d.ts.map +1 -1
  128. package/dist/modules/tokens/AnonymousTokenController.js +1 -5
  129. package/dist/modules/tokens/AnonymousTokenController.js.map +1 -1
  130. package/dist/modules/tokens/TokenController.d.ts +1 -10
  131. package/dist/modules/tokens/TokenController.d.ts.map +1 -1
  132. package/dist/modules/tokens/TokenController.js +28 -122
  133. package/dist/modules/tokens/TokenController.js.map +1 -1
  134. package/dist/modules/tokens/local/Token.d.ts +15 -7
  135. package/dist/modules/tokens/local/Token.d.ts.map +1 -1
  136. package/dist/modules/tokens/local/Token.js +38 -13
  137. package/dist/modules/tokens/local/Token.js.map +1 -1
  138. package/package.json +10 -10
  139. package/dist/core/ICacheable.d.ts +0 -6
  140. package/dist/core/ICacheable.d.ts.map +0 -1
  141. package/dist/core/ICacheable.js +0 -17
  142. package/dist/core/ICacheable.js.map +0 -1
  143. package/dist/modules/accounts/data/CachedIdentityDeletionProcess.d.ts +0 -44
  144. package/dist/modules/accounts/data/CachedIdentityDeletionProcess.d.ts.map +0 -1
  145. package/dist/modules/accounts/data/CachedIdentityDeletionProcess.js +0 -80
  146. package/dist/modules/accounts/data/CachedIdentityDeletionProcess.js.map +0 -1
  147. package/dist/modules/certificates/CertificateController.d.ts +0 -15
  148. package/dist/modules/certificates/CertificateController.d.ts.map +0 -1
  149. package/dist/modules/certificates/CertificateController.js +0 -20
  150. package/dist/modules/certificates/CertificateController.js.map +0 -1
  151. package/dist/modules/certificates/CertificateIssuer.d.ts +0 -29
  152. package/dist/modules/certificates/CertificateIssuer.d.ts.map +0 -1
  153. package/dist/modules/certificates/CertificateIssuer.js +0 -43
  154. package/dist/modules/certificates/CertificateIssuer.js.map +0 -1
  155. package/dist/modules/certificates/CertificateValidator.d.ts +0 -15
  156. package/dist/modules/certificates/CertificateValidator.d.ts.map +0 -1
  157. package/dist/modules/certificates/CertificateValidator.js +0 -20
  158. package/dist/modules/certificates/CertificateValidator.js.map +0 -1
  159. package/dist/modules/certificates/data/Certificate.d.ts +0 -34
  160. package/dist/modules/certificates/data/Certificate.d.ts.map +0 -1
  161. package/dist/modules/certificates/data/Certificate.js +0 -61
  162. package/dist/modules/certificates/data/Certificate.js.map +0 -1
  163. package/dist/modules/certificates/data/CertificateConstraint.d.ts +0 -10
  164. package/dist/modules/certificates/data/CertificateConstraint.d.ts.map +0 -1
  165. package/dist/modules/certificates/data/CertificateConstraint.js +0 -23
  166. package/dist/modules/certificates/data/CertificateConstraint.js.map +0 -1
  167. package/dist/modules/certificates/data/CertificateContent.d.ts +0 -29
  168. package/dist/modules/certificates/data/CertificateContent.d.ts.map +0 -1
  169. package/dist/modules/certificates/data/CertificateContent.js +0 -66
  170. package/dist/modules/certificates/data/CertificateContent.js.map +0 -1
  171. package/dist/modules/certificates/data/CertificateItem.d.ts +0 -11
  172. package/dist/modules/certificates/data/CertificateItem.d.ts.map +0 -1
  173. package/dist/modules/certificates/data/CertificateItem.js +0 -24
  174. package/dist/modules/certificates/data/CertificateItem.js.map +0 -1
  175. package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.d.ts +0 -30
  176. package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.d.ts.map +0 -1
  177. package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js +0 -56
  178. package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js.map +0 -1
  179. package/dist/modules/certificates/data/constraints/CertificateCityConstraint.d.ts +0 -32
  180. package/dist/modules/certificates/data/constraints/CertificateCityConstraint.d.ts.map +0 -1
  181. package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js +0 -59
  182. package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js.map +0 -1
  183. package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.d.ts +0 -10
  184. package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.d.ts.map +0 -1
  185. package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js +0 -30
  186. package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js.map +0 -1
  187. package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.d.ts +0 -17
  188. package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.d.ts.map +0 -1
  189. package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js +0 -40
  190. package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js.map +0 -1
  191. package/dist/modules/certificates/data/items/CertificateAuthorizationItem.d.ts +0 -18
  192. package/dist/modules/certificates/data/items/CertificateAuthorizationItem.d.ts.map +0 -1
  193. package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js +0 -38
  194. package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js.map +0 -1
  195. package/dist/modules/certificates/data/items/CertificateDelegateItem.d.ts +0 -19
  196. package/dist/modules/certificates/data/items/CertificateDelegateItem.d.ts.map +0 -1
  197. package/dist/modules/certificates/data/items/CertificateDelegateItem.js +0 -45
  198. package/dist/modules/certificates/data/items/CertificateDelegateItem.js.map +0 -1
  199. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.d.ts +0 -21
  200. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.d.ts.map +0 -1
  201. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js +0 -41
  202. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js.map +0 -1
  203. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.d.ts +0 -26
  204. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.d.ts.map +0 -1
  205. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js +0 -54
  206. package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js.map +0 -1
  207. package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.d.ts +0 -15
  208. package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.d.ts.map +0 -1
  209. package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js +0 -38
  210. package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js.map +0 -1
  211. package/dist/modules/certificates/data/items/CertificateRoleItem.d.ts +0 -17
  212. package/dist/modules/certificates/data/items/CertificateRoleItem.d.ts.map +0 -1
  213. package/dist/modules/certificates/data/items/CertificateRoleItem.js.map +0 -1
  214. package/dist/modules/files/local/CachedFile.d.ts +0 -52
  215. package/dist/modules/files/local/CachedFile.d.ts.map +0 -1
  216. package/dist/modules/files/local/CachedFile.js +0 -145
  217. package/dist/modules/files/local/CachedFile.js.map +0 -1
  218. package/dist/modules/messages/local/CachedMessage.d.ts +0 -23
  219. package/dist/modules/messages/local/CachedMessage.d.ts.map +0 -1
  220. package/dist/modules/messages/local/CachedMessage.js +0 -65
  221. package/dist/modules/messages/local/CachedMessage.js.map +0 -1
  222. package/dist/modules/messages/local/CachedMessageRecipient.d.ts.map +0 -1
  223. package/dist/modules/messages/local/CachedMessageRecipient.js.map +0 -1
  224. package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.d.ts +0 -30
  225. package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.d.ts.map +0 -1
  226. package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js +0 -80
  227. package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js.map +0 -1
  228. package/dist/modules/relationships/local/CachedRelationship.d.ts +0 -20
  229. package/dist/modules/relationships/local/CachedRelationship.d.ts.map +0 -1
  230. package/dist/modules/relationships/local/CachedRelationship.js +0 -57
  231. package/dist/modules/relationships/local/CachedRelationship.js.map +0 -1
  232. package/dist/modules/tokens/local/CachedToken.d.ts +0 -20
  233. package/dist/modules/tokens/local/CachedToken.d.ts.map +0 -1
  234. package/dist/modules/tokens/local/CachedToken.js +0 -54
  235. package/dist/modules/tokens/local/CachedToken.js.map +0 -1
@@ -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"}
@@ -1,40 +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.CertificateTimeConstraint = 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
- /**
17
- * A CertificateTimeConstraint limits the validity of the certificate to the specified
18
- * dates. The certificate is not valid before the validFrom date, and not after the
19
- * validTo date.
20
- */
21
- let CertificateTimeConstraint = class CertificateTimeConstraint extends CertificateConstraint_1.CertificateConstraint {
22
- static from(value) {
23
- return this.fromAny(value);
24
- }
25
- };
26
- exports.CertificateTimeConstraint = CertificateTimeConstraint;
27
- __decorate([
28
- (0, ts_serval_1.validate)(),
29
- (0, ts_serval_1.serialize)(),
30
- __metadata("design:type", core_types_1.CoreDate)
31
- ], CertificateTimeConstraint.prototype, "validFrom", void 0);
32
- __decorate([
33
- (0, ts_serval_1.validate)(),
34
- (0, ts_serval_1.serialize)(),
35
- __metadata("design:type", core_types_1.CoreDate)
36
- ], CertificateTimeConstraint.prototype, "validTo", void 0);
37
- exports.CertificateTimeConstraint = CertificateTimeConstraint = __decorate([
38
- (0, ts_serval_1.type)("CertificateTimeConstraint")
39
- ], CertificateTimeConstraint);
40
- //# sourceMappingURL=CertificateTimeConstraint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateTimeConstraint.js","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/constraints/CertificateTimeConstraint.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,kDAAwD;AACxD,oEAAyF;AAOzF;;;;GAIG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,6CAAqB;IASzD,MAAM,CAAU,IAAI,CAAC,KAAiC;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAZY,8DAAyB;AAG3B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,qBAAQ;4DAAC;AAIpB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,qBAAQ;0DAAC;oCAPhB,yBAAyB;IADrC,IAAA,gBAAI,EAAC,2BAA2B,CAAC;GACrB,yBAAyB,CAYrC"}
@@ -1,18 +0,0 @@
1
- import { CertificateItem, ICertificateItem } from "../CertificateItem";
2
- export interface ICertificateAuthorizationItem extends ICertificateItem {
3
- authorization: string;
4
- }
5
- /**
6
- * A CertificateAuthorizationItem gives a certain authorization, from the issuer to the
7
- * subject.
8
- *
9
- * Example:
10
- * - Access Service XYZ
11
- * - Admin access to a computer
12
- * - Facility access to a visitor
13
- */
14
- export declare class CertificateAuthorizationItem extends CertificateItem {
15
- authorization: string;
16
- static from(value: ICertificateAuthorizationItem): CertificateAuthorizationItem;
17
- }
18
- //# sourceMappingURL=CertificateAuthorizationItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateAuthorizationItem.d.ts","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificateAuthorizationItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACnE,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,qBACa,4BAA6B,SAAQ,eAAe;IAGtD,aAAa,EAAE,MAAM,CAAC;WAEN,IAAI,CAAC,KAAK,EAAE,6BAA6B,GAAG,4BAA4B;CAGlG"}
@@ -1,38 +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.CertificateAuthorizationItem = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
- const CertificateItem_1 = require("../CertificateItem");
15
- /**
16
- * A CertificateAuthorizationItem gives a certain authorization, from the issuer to the
17
- * subject.
18
- *
19
- * Example:
20
- * - Access Service XYZ
21
- * - Admin access to a computer
22
- * - Facility access to a visitor
23
- */
24
- let CertificateAuthorizationItem = class CertificateAuthorizationItem extends CertificateItem_1.CertificateItem {
25
- static from(value) {
26
- return this.fromAny(value);
27
- }
28
- };
29
- exports.CertificateAuthorizationItem = CertificateAuthorizationItem;
30
- __decorate([
31
- (0, ts_serval_1.validate)(),
32
- (0, ts_serval_1.serialize)(),
33
- __metadata("design:type", String)
34
- ], CertificateAuthorizationItem.prototype, "authorization", void 0);
35
- exports.CertificateAuthorizationItem = CertificateAuthorizationItem = __decorate([
36
- (0, ts_serval_1.type)("CertificateAuthorizationItem")
37
- ], CertificateAuthorizationItem);
38
- //# sourceMappingURL=CertificateAuthorizationItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateAuthorizationItem.js","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificateAuthorizationItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,wDAAuE;AAMvE;;;;;;;;GAQG;AAEI,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,iCAAe;IAKtD,MAAM,CAAU,IAAI,CAAC,KAAoC;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AARY,oEAA4B;AAG9B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;mEACiB;uCAHpB,4BAA4B;IADxC,IAAA,gBAAI,EAAC,8BAA8B,CAAC;GACxB,4BAA4B,CAQxC"}
@@ -1,19 +0,0 @@
1
- import { CertificateItem, ICertificateItem } from "../CertificateItem";
2
- export interface ICertificateDelegateItem extends ICertificateItem {
3
- }
4
- export declare enum CertificateDelegateType {
5
- Clone = "clone",
6
- Custodian = "custodian",
7
- Sign = "sign",
8
- Ppa = "ppa",
9
- Communication = "communication"
10
- }
11
- /**
12
- * A CertificateDelegateItem
13
- */
14
- export declare class CertificateDelegateItem extends CertificateItem {
15
- type: CertificateDelegateType;
16
- content: string;
17
- static from(value: ICertificateDelegateItem): CertificateDelegateItem;
18
- }
19
- //# sourceMappingURL=CertificateDelegateItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateDelegateItem.d.ts","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificateDelegateItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;CAAG;AAErE,oBAAY,uBAAuB;IAC/B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,aAAa,kBAAkB;CAClC;AAED;;GAEG;AACH,qBACa,uBAAwB,SAAQ,eAAe;IAGjD,IAAI,EAAE,uBAAuB,CAAC;IAI9B,OAAO,EAAE,MAAM,CAAC;WAEA,IAAI,CAAC,KAAK,EAAE,wBAAwB,GAAG,uBAAuB;CAGxF"}
@@ -1,45 +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.CertificateDelegateItem = exports.CertificateDelegateType = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
- const CertificateItem_1 = require("../CertificateItem");
15
- var CertificateDelegateType;
16
- (function (CertificateDelegateType) {
17
- CertificateDelegateType["Clone"] = "clone";
18
- CertificateDelegateType["Custodian"] = "custodian";
19
- CertificateDelegateType["Sign"] = "sign";
20
- CertificateDelegateType["Ppa"] = "ppa";
21
- CertificateDelegateType["Communication"] = "communication";
22
- })(CertificateDelegateType || (exports.CertificateDelegateType = CertificateDelegateType = {}));
23
- /**
24
- * A CertificateDelegateItem
25
- */
26
- let CertificateDelegateItem = class CertificateDelegateItem extends CertificateItem_1.CertificateItem {
27
- static from(value) {
28
- return this.fromAny(value);
29
- }
30
- };
31
- exports.CertificateDelegateItem = CertificateDelegateItem;
32
- __decorate([
33
- (0, ts_serval_1.validate)(),
34
- (0, ts_serval_1.serialize)(),
35
- __metadata("design:type", String)
36
- ], CertificateDelegateItem.prototype, "type", void 0);
37
- __decorate([
38
- (0, ts_serval_1.validate)({ nullable: true }),
39
- (0, ts_serval_1.serialize)(),
40
- __metadata("design:type", String)
41
- ], CertificateDelegateItem.prototype, "content", void 0);
42
- exports.CertificateDelegateItem = CertificateDelegateItem = __decorate([
43
- (0, ts_serval_1.type)("CertificateDelegateItem")
44
- ], CertificateDelegateItem);
45
- //# sourceMappingURL=CertificateDelegateItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateDelegateItem.js","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificateDelegateItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,wDAAuE;AAIvE,IAAY,uBAMX;AAND,WAAY,uBAAuB;IAC/B,0CAAe,CAAA;IACf,kDAAuB,CAAA;IACvB,wCAAa,CAAA;IACb,sCAAW,CAAA;IACX,0DAA+B,CAAA;AACnC,CAAC,EANW,uBAAuB,uCAAvB,uBAAuB,QAMlC;AAED;;GAEG;AAEI,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,iCAAe;IASjD,MAAM,CAAU,IAAI,CAAC,KAA+B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAZY,0DAAuB;AAGzB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;qDACyB;AAI9B;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;wDACW;kCAPd,uBAAuB;IADnC,IAAA,gBAAI,EAAC,yBAAyB,CAAC;GACnB,uBAAuB,CAYnC"}
@@ -1,21 +0,0 @@
1
- import { CoreHash, ICoreHash } from "../../../../core";
2
- import { CertificateItem, ICertificateItem } from "../CertificateItem";
3
- export interface ICertificatePrivateAttributeItem extends ICertificateItem {
4
- hash: ICoreHash;
5
- }
6
- /**
7
- * A CertificatePrivateAttributeItem is a hashed representation of a single attribute,
8
- * consisting of a user-defined random nonce, the name of the attribute and its value.
9
- *
10
- * With this approach, one Certificate can be used for certifying multiple attributes,
11
- * but without leaking any private/confidential data. A user can still select the attributes to
12
- * share with a third party (e.g. name, address, email) while submitting a Certificate
13
- * certifying much more data (e.g. name, address, email, mobile, birthdate, tax id, ...). However,
14
- * the additional data within the shared certificate is of no value to the third party, without
15
- * the shared attributes (+ nonce).
16
- */
17
- export declare class CertificatePrivateAttributeItem extends CertificateItem {
18
- hash: CoreHash;
19
- static from(value: ICertificatePrivateAttributeItem): CertificatePrivateAttributeItem;
20
- }
21
- //# sourceMappingURL=CertificatePrivateAttributeItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificatePrivateAttributeItem.d.ts","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificatePrivateAttributeItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;IACtE,IAAI,EAAE,SAAS,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,qBACa,+BAAgC,SAAQ,eAAe;IAGzD,IAAI,EAAE,QAAQ,CAAC;WAEC,IAAI,CAAC,KAAK,EAAE,gCAAgC,GAAG,+BAA+B;CAGxG"}
@@ -1,41 +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.CertificatePrivateAttributeItem = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
- const core_1 = require("../../../../core");
15
- const CertificateItem_1 = require("../CertificateItem");
16
- /**
17
- * A CertificatePrivateAttributeItem is a hashed representation of a single attribute,
18
- * consisting of a user-defined random nonce, the name of the attribute and its value.
19
- *
20
- * With this approach, one Certificate can be used for certifying multiple attributes,
21
- * but without leaking any private/confidential data. A user can still select the attributes to
22
- * share with a third party (e.g. name, address, email) while submitting a Certificate
23
- * certifying much more data (e.g. name, address, email, mobile, birthdate, tax id, ...). However,
24
- * the additional data within the shared certificate is of no value to the third party, without
25
- * the shared attributes (+ nonce).
26
- */
27
- let CertificatePrivateAttributeItem = class CertificatePrivateAttributeItem extends CertificateItem_1.CertificateItem {
28
- static from(value) {
29
- return this.fromAny(value);
30
- }
31
- };
32
- exports.CertificatePrivateAttributeItem = CertificatePrivateAttributeItem;
33
- __decorate([
34
- (0, ts_serval_1.validate)(),
35
- (0, ts_serval_1.serialize)(),
36
- __metadata("design:type", core_1.CoreHash)
37
- ], CertificatePrivateAttributeItem.prototype, "hash", void 0);
38
- exports.CertificatePrivateAttributeItem = CertificatePrivateAttributeItem = __decorate([
39
- (0, ts_serval_1.type)("CertificatePrivateAttributeItem")
40
- ], CertificatePrivateAttributeItem);
41
- //# sourceMappingURL=CertificatePrivateAttributeItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificatePrivateAttributeItem.js","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificatePrivateAttributeItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,2CAAuD;AACvD,wDAAuE;AAMvE;;;;;;;;;;GAUG;AAEI,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,iCAAe;IAKzD,MAAM,CAAU,IAAI,CAAC,KAAuC;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AARY,0EAA+B;AAGjC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACC,eAAQ;6DAAC;0CAHb,+BAA+B;IAD3C,IAAA,gBAAI,EAAC,iCAAiC,CAAC;GAC3B,+BAA+B,CAQ3C"}
@@ -1,26 +0,0 @@
1
- import { CoreHash } from "../../../../core";
2
- import { CertificateItem, ICertificateItem } from "../CertificateItem";
3
- export interface ICertificatePrivateAttributeItemSource extends ICertificateItem {
4
- nonce: string;
5
- name: string;
6
- value: string;
7
- }
8
- /**
9
- * A CertificatePrivateAttributeItemSource is the cleartext version of a
10
- * CertificatePrivateAttributeItem.
11
- *
12
- * With this approach, one Certificate can be used for certifying multiple attributes,
13
- * but without leaking any private/confidential data. A user can still select the attributes to
14
- * share with a third party (e.g. name, address, email) while submitting a Certificate
15
- * certifying much more data (e.g. name, address, email, mobile, birthdate, tax id, ...). However,
16
- * the additional data within the shared certificate is of no value to the third party, without
17
- * the shared attributes (+ nonce).
18
- */
19
- export declare class CertificatePrivateAttributeItemSource extends CertificateItem {
20
- nonce: string;
21
- name: string;
22
- value: string;
23
- hash(): Promise<CoreHash>;
24
- static from(value: ICertificatePrivateAttributeItemSource): CertificatePrivateAttributeItemSource;
25
- }
26
- //# sourceMappingURL=CertificatePrivateAttributeItemSource.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificatePrivateAttributeItemSource.d.ts","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificatePrivateAttributeItemSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,sCAAuC,SAAQ,gBAAgB;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;GAUG;AACH,qBACa,qCAAsC,SAAQ,eAAe;IAG/D,KAAK,EAAE,MAAM,CAAC;IAId,IAAI,EAAE,MAAM,CAAC;IAIb,KAAK,EAAE,MAAM,CAAC;IAER,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC;WAIf,IAAI,CAAC,KAAK,EAAE,sCAAsC,GAAG,qCAAqC;CAGpH"}
@@ -1,54 +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.CertificatePrivateAttributeItemSource = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
- const core_1 = require("../../../../core");
15
- const CertificateItem_1 = require("../CertificateItem");
16
- /**
17
- * A CertificatePrivateAttributeItemSource is the cleartext version of a
18
- * CertificatePrivateAttributeItem.
19
- *
20
- * With this approach, one Certificate can be used for certifying multiple attributes,
21
- * but without leaking any private/confidential data. A user can still select the attributes to
22
- * share with a third party (e.g. name, address, email) while submitting a Certificate
23
- * certifying much more data (e.g. name, address, email, mobile, birthdate, tax id, ...). However,
24
- * the additional data within the shared certificate is of no value to the third party, without
25
- * the shared attributes (+ nonce).
26
- */
27
- let CertificatePrivateAttributeItemSource = class CertificatePrivateAttributeItemSource extends CertificateItem_1.CertificateItem {
28
- async hash() {
29
- return await core_1.CoreHash.hash(`${this.nonce}|${this.name}|${this.value}`);
30
- }
31
- static from(value) {
32
- return this.fromAny(value);
33
- }
34
- };
35
- exports.CertificatePrivateAttributeItemSource = CertificatePrivateAttributeItemSource;
36
- __decorate([
37
- (0, ts_serval_1.validate)(),
38
- (0, ts_serval_1.serialize)(),
39
- __metadata("design:type", String)
40
- ], CertificatePrivateAttributeItemSource.prototype, "nonce", void 0);
41
- __decorate([
42
- (0, ts_serval_1.validate)(),
43
- (0, ts_serval_1.serialize)(),
44
- __metadata("design:type", String)
45
- ], CertificatePrivateAttributeItemSource.prototype, "name", void 0);
46
- __decorate([
47
- (0, ts_serval_1.validate)(),
48
- (0, ts_serval_1.serialize)(),
49
- __metadata("design:type", String)
50
- ], CertificatePrivateAttributeItemSource.prototype, "value", void 0);
51
- exports.CertificatePrivateAttributeItemSource = CertificatePrivateAttributeItemSource = __decorate([
52
- (0, ts_serval_1.type)("CertificatePrivateAttributeItem")
53
- ], CertificatePrivateAttributeItemSource);
54
- //# sourceMappingURL=CertificatePrivateAttributeItemSource.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificatePrivateAttributeItemSource.js","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificatePrivateAttributeItemSource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,2CAA4C;AAC5C,wDAAuE;AAQvE;;;;;;;;;;GAUG;AAEI,IAAM,qCAAqC,GAA3C,MAAM,qCAAsC,SAAQ,iCAAe;IAa/D,KAAK,CAAC,IAAI;QACb,OAAO,MAAM,eAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IAC3E,CAAC;IAEM,MAAM,CAAU,IAAI,CAAC,KAA6C;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AApBY,sFAAqC;AAGvC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;oEACS;AAId;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;mEACQ;AAIb;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;oEACS;gDAXZ,qCAAqC;IADjD,IAAA,gBAAI,EAAC,iCAAiC,CAAC;GAC3B,qCAAqC,CAoBjD"}
@@ -1,15 +0,0 @@
1
- import { CertificateItem, ICertificateItem } from "../CertificateItem";
2
- export interface ICertificatePublicAttributeItem extends ICertificateItem {
3
- name: string;
4
- value: string;
5
- }
6
- /**
7
- * A CertificatePublicAttributeItem is a representation of a single attribute,
8
- * consisting of a name of the attribute and its value.
9
- */
10
- export declare class CertificatePublicAttributeItem extends CertificateItem {
11
- name: string;
12
- value: string;
13
- static from(value: ICertificatePublicAttributeItem): CertificatePublicAttributeItem;
14
- }
15
- //# sourceMappingURL=CertificatePublicAttributeItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificatePublicAttributeItem.d.ts","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificatePublicAttributeItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,+BAAgC,SAAQ,gBAAgB;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,qBACa,8BAA+B,SAAQ,eAAe;IAGxD,IAAI,EAAE,MAAM,CAAC;IAIb,KAAK,EAAE,MAAM,CAAC;WAEE,IAAI,CAAC,KAAK,EAAE,+BAA+B,GAAG,8BAA8B;CAGtG"}
@@ -1,38 +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.CertificatePublicAttributeItem = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
- const CertificateItem_1 = require("../CertificateItem");
15
- /**
16
- * A CertificatePublicAttributeItem is a representation of a single attribute,
17
- * consisting of a name of the attribute and its value.
18
- */
19
- let CertificatePublicAttributeItem = class CertificatePublicAttributeItem extends CertificateItem_1.CertificateItem {
20
- static from(value) {
21
- return this.fromAny(value);
22
- }
23
- };
24
- exports.CertificatePublicAttributeItem = CertificatePublicAttributeItem;
25
- __decorate([
26
- (0, ts_serval_1.validate)(),
27
- (0, ts_serval_1.serialize)(),
28
- __metadata("design:type", String)
29
- ], CertificatePublicAttributeItem.prototype, "name", void 0);
30
- __decorate([
31
- (0, ts_serval_1.validate)(),
32
- (0, ts_serval_1.serialize)(),
33
- __metadata("design:type", String)
34
- ], CertificatePublicAttributeItem.prototype, "value", void 0);
35
- exports.CertificatePublicAttributeItem = CertificatePublicAttributeItem = __decorate([
36
- (0, ts_serval_1.type)("CertificatePublicAttributeItem")
37
- ], CertificatePublicAttributeItem);
38
- //# sourceMappingURL=CertificatePublicAttributeItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificatePublicAttributeItem.js","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificatePublicAttributeItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,wDAAuE;AAOvE;;;GAGG;AAEI,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,iCAAe;IASxD,MAAM,CAAU,IAAI,CAAC,KAAsC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAZY,wEAA8B;AAGhC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;4DACQ;AAIb;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;6DACS;yCAPZ,8BAA8B;IAD1C,IAAA,gBAAI,EAAC,gCAAgC,CAAC;GAC1B,8BAA8B,CAY1C"}
@@ -1,17 +0,0 @@
1
- import { CertificateItem, ICertificateItem } from "../CertificateItem";
2
- export interface ICertificateRoleItem extends ICertificateItem {
3
- role: string;
4
- }
5
- /**
6
- * A CertificateRoleItem certifies a certain role, that the subject got from
7
- * the issuer.
8
- *
9
- * Example:
10
- * - Employee
11
- * - Administrator
12
- */
13
- export declare class CertificateRoleItem extends CertificateItem {
14
- role: string;
15
- static from(value: ICertificateRoleItem): CertificateRoleItem;
16
- }
17
- //# sourceMappingURL=CertificateRoleItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateRoleItem.d.ts","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificateRoleItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC1D,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,qBACa,mBAAoB,SAAQ,eAAe;IAG7C,IAAI,EAAE,MAAM,CAAC;WAEG,IAAI,CAAC,KAAK,EAAE,oBAAoB,GAAG,mBAAmB;CAGhF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateRoleItem.js","sourceRoot":"","sources":["../../../../../src/modules/certificates/data/items/CertificateRoleItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,wDAAuE;AAMvE;;;;;;;GAOG;AAEI,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,iCAAe;IAK7C,MAAM,CAAU,IAAI,CAAC,KAA2B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AARY,kDAAmB;AAGrB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;iDACQ;8BAHX,mBAAmB;IAD/B,IAAA,gBAAI,EAAC,qBAAqB,CAAC;GACf,mBAAmB,CAQ/B"}