@nmshd/runtime-types 6.60.0

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 (115) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +25 -0
  3. package/dist/RuntimeHealth.d.ts +5 -0
  4. package/dist/RuntimeHealth.d.ts.map +1 -0
  5. package/dist/RuntimeHealth.js +3 -0
  6. package/dist/RuntimeHealth.js.map +1 -0
  7. package/dist/consumption/AttributeTagCollectionDTO.d.ts +9 -0
  8. package/dist/consumption/AttributeTagCollectionDTO.d.ts.map +1 -0
  9. package/dist/consumption/AttributeTagCollectionDTO.js +3 -0
  10. package/dist/consumption/AttributeTagCollectionDTO.js.map +1 -0
  11. package/dist/consumption/DraftDTO.d.ts +8 -0
  12. package/dist/consumption/DraftDTO.d.ts.map +1 -0
  13. package/dist/consumption/DraftDTO.js +3 -0
  14. package/dist/consumption/DraftDTO.js.map +1 -0
  15. package/dist/consumption/IdentityMetadataDTO.d.ts +6 -0
  16. package/dist/consumption/IdentityMetadataDTO.d.ts.map +1 -0
  17. package/dist/consumption/IdentityMetadataDTO.js +3 -0
  18. package/dist/consumption/IdentityMetadataDTO.js.map +1 -0
  19. package/dist/consumption/LocalAttributeDTO.d.ts +33 -0
  20. package/dist/consumption/LocalAttributeDTO.d.ts.map +1 -0
  21. package/dist/consumption/LocalAttributeDTO.js +13 -0
  22. package/dist/consumption/LocalAttributeDTO.js.map +1 -0
  23. package/dist/consumption/LocalAttributeListenerDTO.d.ts +7 -0
  24. package/dist/consumption/LocalAttributeListenerDTO.d.ts.map +1 -0
  25. package/dist/consumption/LocalAttributeListenerDTO.js +3 -0
  26. package/dist/consumption/LocalAttributeListenerDTO.js.map +1 -0
  27. package/dist/consumption/LocalNotificationDTO.d.ts +21 -0
  28. package/dist/consumption/LocalNotificationDTO.d.ts.map +1 -0
  29. package/dist/consumption/LocalNotificationDTO.js +11 -0
  30. package/dist/consumption/LocalNotificationDTO.js.map +1 -0
  31. package/dist/consumption/LocalRequestDTO.d.ts +35 -0
  32. package/dist/consumption/LocalRequestDTO.d.ts.map +1 -0
  33. package/dist/consumption/LocalRequestDTO.js +14 -0
  34. package/dist/consumption/LocalRequestDTO.js.map +1 -0
  35. package/dist/consumption/RequestValidationResultDTO.d.ts +7 -0
  36. package/dist/consumption/RequestValidationResultDTO.d.ts.map +1 -0
  37. package/dist/consumption/RequestValidationResultDTO.js +3 -0
  38. package/dist/consumption/RequestValidationResultDTO.js.map +1 -0
  39. package/dist/consumption/SettingDTO.d.ts +16 -0
  40. package/dist/consumption/SettingDTO.d.ts.map +1 -0
  41. package/dist/consumption/SettingDTO.js +10 -0
  42. package/dist/consumption/SettingDTO.js.map +1 -0
  43. package/dist/consumption/index.d.ts +10 -0
  44. package/dist/consumption/index.d.ts.map +1 -0
  45. package/dist/consumption/index.js +26 -0
  46. package/dist/consumption/index.js.map +1 -0
  47. package/dist/index.d.ts +4 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +20 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/transport/AnnouncementDTO.d.ts +19 -0
  52. package/dist/transport/AnnouncementDTO.d.ts.map +1 -0
  53. package/dist/transport/AnnouncementDTO.js +10 -0
  54. package/dist/transport/AnnouncementDTO.js.map +1 -0
  55. package/dist/transport/ChallengeDTO.d.ts +10 -0
  56. package/dist/transport/ChallengeDTO.d.ts.map +1 -0
  57. package/dist/transport/ChallengeDTO.js +3 -0
  58. package/dist/transport/ChallengeDTO.js.map +1 -0
  59. package/dist/transport/DeviceDTO.d.ts +18 -0
  60. package/dist/transport/DeviceDTO.d.ts.map +1 -0
  61. package/dist/transport/DeviceDTO.js +3 -0
  62. package/dist/transport/DeviceDTO.js.map +1 -0
  63. package/dist/transport/DeviceOnboardingInfoDTO.d.ts +18 -0
  64. package/dist/transport/DeviceOnboardingInfoDTO.d.ts.map +1 -0
  65. package/dist/transport/DeviceOnboardingInfoDTO.js +3 -0
  66. package/dist/transport/DeviceOnboardingInfoDTO.js.map +1 -0
  67. package/dist/transport/FileDTO.d.ts +22 -0
  68. package/dist/transport/FileDTO.d.ts.map +1 -0
  69. package/dist/transport/FileDTO.js +3 -0
  70. package/dist/transport/FileDTO.js.map +1 -0
  71. package/dist/transport/IdentityDTO.d.ts +5 -0
  72. package/dist/transport/IdentityDTO.d.ts.map +1 -0
  73. package/dist/transport/IdentityDTO.js +3 -0
  74. package/dist/transport/IdentityDTO.js.map +1 -0
  75. package/dist/transport/IdentityDeletionProcessDTO.d.ts +21 -0
  76. package/dist/transport/IdentityDeletionProcessDTO.d.ts.map +1 -0
  77. package/dist/transport/IdentityDeletionProcessDTO.js +11 -0
  78. package/dist/transport/IdentityDeletionProcessDTO.js.map +1 -0
  79. package/dist/transport/MessageDTO.d.ts +15 -0
  80. package/dist/transport/MessageDTO.d.ts.map +1 -0
  81. package/dist/transport/MessageDTO.js +3 -0
  82. package/dist/transport/MessageDTO.js.map +1 -0
  83. package/dist/transport/MessageWithAttachmentsDTO.d.ts +14 -0
  84. package/dist/transport/MessageWithAttachmentsDTO.d.ts.map +1 -0
  85. package/dist/transport/MessageWithAttachmentsDTO.js +3 -0
  86. package/dist/transport/MessageWithAttachmentsDTO.js.map +1 -0
  87. package/dist/transport/PasswordProtectionDTO.d.ts +7 -0
  88. package/dist/transport/PasswordProtectionDTO.d.ts.map +1 -0
  89. package/dist/transport/PasswordProtectionDTO.js +3 -0
  90. package/dist/transport/PasswordProtectionDTO.js.map +1 -0
  91. package/dist/transport/PublicRelationshipTemplateReferenceDTO.d.ts +6 -0
  92. package/dist/transport/PublicRelationshipTemplateReferenceDTO.d.ts.map +1 -0
  93. package/dist/transport/PublicRelationshipTemplateReferenceDTO.js +3 -0
  94. package/dist/transport/PublicRelationshipTemplateReferenceDTO.js.map +1 -0
  95. package/dist/transport/RecipientDTO.d.ts +7 -0
  96. package/dist/transport/RecipientDTO.d.ts.map +1 -0
  97. package/dist/transport/RecipientDTO.js +3 -0
  98. package/dist/transport/RecipientDTO.js.map +1 -0
  99. package/dist/transport/RelationshipDTO.d.ts +54 -0
  100. package/dist/transport/RelationshipDTO.d.ts.map +1 -0
  101. package/dist/transport/RelationshipDTO.js +32 -0
  102. package/dist/transport/RelationshipDTO.js.map +1 -0
  103. package/dist/transport/RelationshipTemplateDTO.d.ts +21 -0
  104. package/dist/transport/RelationshipTemplateDTO.d.ts.map +1 -0
  105. package/dist/transport/RelationshipTemplateDTO.js +3 -0
  106. package/dist/transport/RelationshipTemplateDTO.js.map +1 -0
  107. package/dist/transport/TokenDTO.d.ts +19 -0
  108. package/dist/transport/TokenDTO.d.ts.map +1 -0
  109. package/dist/transport/TokenDTO.js +3 -0
  110. package/dist/transport/TokenDTO.js.map +1 -0
  111. package/dist/transport/index.d.ts +16 -0
  112. package/dist/transport/index.d.ts.map +1 -0
  113. package/dist/transport/index.js +32 -0
  114. package/dist/transport/index.js.map +1 -0
  115. package/package.json +30 -0
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2024 j&s-soft AG
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # Runtime Types
2
+
3
+ [![npm version](https://badge.fury.io/js/@nmshd%2fruntime-types.svg)](https://www.npmjs.com/package/@nmshd/runtime-types)
4
+
5
+ The runtime-types library provides common types for the runtime library.
6
+
7
+ ## Documentation
8
+
9
+ You can find the documentation for enmeshed on [enmeshed.eu](https://enmeshed.eu).
10
+
11
+ To get started developing in this repository, see the [developer's guide](README_dev.md).
12
+
13
+ ## Feedback
14
+
15
+ Please file any bugs or feature requests by creating an [issue](https://github.com/nmshd/feedback/issues).
16
+
17
+ Share your feedback with the enmeshed team by contributing to the [discussions](https://github.com/nmshd/feedback/discussions).
18
+
19
+ ## Contribute
20
+
21
+ Contribution to this project is highly appreciated. Head over to our [contribution guide](https://github.com/nmshd/.github/blob/main/CONTRIBUTING.md) to learn more.
22
+
23
+ ## License
24
+
25
+ [MIT](LICENSE)
@@ -0,0 +1,5 @@
1
+ export interface RuntimeHealth {
2
+ isHealthy: boolean;
3
+ services: Record<string, "healthy" | "unhealthy">;
4
+ }
5
+ //# sourceMappingURL=RuntimeHealth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuntimeHealth.d.ts","sourceRoot":"","sources":["../src/RuntimeHealth.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,WAAW,CAAC,CAAC;CACrD"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RuntimeHealth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuntimeHealth.js","sourceRoot":"","sources":["../src/RuntimeHealth.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export interface AttributeTagCollectionDTO {
2
+ supportedLanguages: string[];
3
+ tagsForAttributeValueTypes: Record<string, Record<string, AttributeTagDTO>>;
4
+ }
5
+ export interface AttributeTagDTO {
6
+ displayNames: Record<string, string>;
7
+ children?: Record<string, AttributeTagDTO>;
8
+ }
9
+ //# sourceMappingURL=AttributeTagCollectionDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributeTagCollectionDTO.d.ts","sourceRoot":"","sources":["../../src/consumption/AttributeTagCollectionDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACtC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;CAC/E;AAED,MAAM,WAAW,eAAe;IAC5B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC9C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AttributeTagCollectionDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributeTagCollectionDTO.js","sourceRoot":"","sources":["../../src/consumption/AttributeTagCollectionDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface DraftDTO {
2
+ id: string;
3
+ type: string;
4
+ createdAt: string;
5
+ lastModifiedAt: string;
6
+ content: any;
7
+ }
8
+ //# sourceMappingURL=DraftDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DraftDTO.d.ts","sourceRoot":"","sources":["../../src/consumption/DraftDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;CAChB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DraftDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DraftDTO.js","sourceRoot":"","sources":["../../src/consumption/DraftDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface IdentityMetadataDTO {
2
+ reference: string;
3
+ key?: string;
4
+ value: unknown;
5
+ }
6
+ //# sourceMappingURL=IdentityMetadataDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityMetadataDTO.d.ts","sourceRoot":"","sources":["../../src/consumption/IdentityMetadataDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IdentityMetadataDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityMetadataDTO.js","sourceRoot":"","sources":["../../src/consumption/IdentityMetadataDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import { IdentityAttributeJSON, RelationshipAttributeJSON } from "@nmshd/content";
2
+ export interface LocalAttributeShareInfoDTO {
3
+ requestReference?: string;
4
+ notificationReference?: string;
5
+ peer: string;
6
+ sourceAttribute?: string;
7
+ thirdPartyAddress?: string;
8
+ }
9
+ export declare enum LocalAttributeDeletionStatus {
10
+ DeletionRequestSent = "DeletionRequestSent",
11
+ DeletionRequestRejected = "DeletionRequestRejected",
12
+ ToBeDeleted = "ToBeDeleted",
13
+ ToBeDeletedByPeer = "ToBeDeletedByPeer",
14
+ DeletedByPeer = "DeletedByPeer",
15
+ DeletedByOwner = "DeletedByOwner"
16
+ }
17
+ export interface LocalAttributeDeletionInfoDTO {
18
+ deletionStatus: LocalAttributeDeletionStatus;
19
+ deletionDate: string;
20
+ }
21
+ export interface LocalAttributeDTO {
22
+ id: string;
23
+ parentId?: string;
24
+ createdAt: string;
25
+ content: IdentityAttributeJSON | RelationshipAttributeJSON;
26
+ succeeds?: string;
27
+ succeededBy?: string;
28
+ shareInfo?: LocalAttributeShareInfoDTO;
29
+ deletionInfo?: LocalAttributeDeletionInfoDTO;
30
+ isDefault?: true;
31
+ wasViewedAt?: string;
32
+ }
33
+ //# sourceMappingURL=LocalAttributeDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalAttributeDTO.d.ts","sourceRoot":"","sources":["../../src/consumption/LocalAttributeDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAElF,MAAM,WAAW,0BAA0B;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,oBAAY,4BAA4B;IACpC,mBAAmB,wBAAwB;IAC3C,uBAAuB,4BAA4B;IACnD,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CACpC;AAED,MAAM,WAAW,6BAA6B;IAC1C,cAAc,EAAE,4BAA4B,CAAC;IAC7C,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,qBAAqB,GAAG,yBAAyB,CAAC;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,0BAA0B,CAAC;IACvC,YAAY,CAAC,EAAE,6BAA6B,CAAC;IAC7C,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocalAttributeDeletionStatus = void 0;
4
+ var LocalAttributeDeletionStatus;
5
+ (function (LocalAttributeDeletionStatus) {
6
+ LocalAttributeDeletionStatus["DeletionRequestSent"] = "DeletionRequestSent";
7
+ LocalAttributeDeletionStatus["DeletionRequestRejected"] = "DeletionRequestRejected";
8
+ LocalAttributeDeletionStatus["ToBeDeleted"] = "ToBeDeleted";
9
+ LocalAttributeDeletionStatus["ToBeDeletedByPeer"] = "ToBeDeletedByPeer";
10
+ LocalAttributeDeletionStatus["DeletedByPeer"] = "DeletedByPeer";
11
+ LocalAttributeDeletionStatus["DeletedByOwner"] = "DeletedByOwner";
12
+ })(LocalAttributeDeletionStatus || (exports.LocalAttributeDeletionStatus = LocalAttributeDeletionStatus = {}));
13
+ //# sourceMappingURL=LocalAttributeDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalAttributeDTO.js","sourceRoot":"","sources":["../../src/consumption/LocalAttributeDTO.ts"],"names":[],"mappings":";;;AAUA,IAAY,4BAOX;AAPD,WAAY,4BAA4B;IACpC,2EAA2C,CAAA;IAC3C,mFAAmD,CAAA;IACnD,2DAA2B,CAAA;IAC3B,uEAAuC,CAAA;IACvC,+DAA+B,CAAA;IAC/B,iEAAiC,CAAA;AACrC,CAAC,EAPW,4BAA4B,4CAA5B,4BAA4B,QAOvC"}
@@ -0,0 +1,7 @@
1
+ import { IdentityAttributeQueryJSON, ThirdPartyRelationshipAttributeQueryJSON } from "@nmshd/content";
2
+ export interface LocalAttributeListenerDTO {
3
+ id: string;
4
+ query: IdentityAttributeQueryJSON | ThirdPartyRelationshipAttributeQueryJSON;
5
+ peer: string;
6
+ }
7
+ //# sourceMappingURL=LocalAttributeListenerDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalAttributeListenerDTO.d.ts","sourceRoot":"","sources":["../../src/consumption/LocalAttributeListenerDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,wCAAwC,EAAE,MAAM,gBAAgB,CAAC;AAEtG,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,0BAA0B,GAAG,wCAAwC,CAAC;IAC7E,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LocalAttributeListenerDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalAttributeListenerDTO.js","sourceRoot":"","sources":["../../src/consumption/LocalAttributeListenerDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import { NotificationJSON } from "@nmshd/content";
2
+ export declare enum LocalNotificationStatus {
3
+ Open = "Open",
4
+ Sent = "Sent",
5
+ Completed = "Completed",
6
+ Error = "Error"
7
+ }
8
+ export interface LocalNotificationDTO {
9
+ id: string;
10
+ isOwn: boolean;
11
+ peer: string;
12
+ createdAt: string;
13
+ receivedByDevice?: string;
14
+ content: NotificationJSON;
15
+ status: LocalNotificationStatus;
16
+ source: {
17
+ type: "Message";
18
+ reference: string;
19
+ };
20
+ }
21
+ //# sourceMappingURL=LocalNotificationDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalNotificationDTO.d.ts","sourceRoot":"","sources":["../../src/consumption/LocalNotificationDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,oBAAY,uBAAuB;IAC/B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,KAAK,UAAU;CAClB;AAED,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,EAAE;QACJ,IAAI,EAAE,SAAS,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;CACL"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocalNotificationStatus = void 0;
4
+ var LocalNotificationStatus;
5
+ (function (LocalNotificationStatus) {
6
+ LocalNotificationStatus["Open"] = "Open";
7
+ LocalNotificationStatus["Sent"] = "Sent";
8
+ LocalNotificationStatus["Completed"] = "Completed";
9
+ LocalNotificationStatus["Error"] = "Error";
10
+ })(LocalNotificationStatus || (exports.LocalNotificationStatus = LocalNotificationStatus = {}));
11
+ //# sourceMappingURL=LocalNotificationDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalNotificationDTO.js","sourceRoot":"","sources":["../../src/consumption/LocalNotificationDTO.ts"],"names":[],"mappings":";;;AAEA,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAC/B,wCAAa,CAAA;IACb,wCAAa,CAAA;IACb,kDAAuB,CAAA;IACvB,0CAAe,CAAA;AACnB,CAAC,EALW,uBAAuB,uCAAvB,uBAAuB,QAKlC"}
@@ -0,0 +1,35 @@
1
+ import { RequestJSON, ResponseJSON } from "@nmshd/content";
2
+ export declare enum LocalRequestStatus {
3
+ Draft = "Draft",
4
+ Open = "Open",
5
+ DecisionRequired = "DecisionRequired",
6
+ ManualDecisionRequired = "ManualDecisionRequired",
7
+ Decided = "Decided",
8
+ Completed = "Completed",
9
+ Expired = "Expired"
10
+ }
11
+ export interface LocalRequestDTO {
12
+ id: string;
13
+ isOwn: boolean;
14
+ peer: string;
15
+ createdAt: string;
16
+ status: LocalRequestStatus;
17
+ content: RequestJSON;
18
+ source?: LocalRequestSourceDTO;
19
+ response?: LocalResponseDTO;
20
+ wasAutomaticallyDecided?: true;
21
+ }
22
+ export interface LocalRequestSourceDTO {
23
+ type: "Message" | "RelationshipTemplate";
24
+ reference: string;
25
+ }
26
+ export interface LocalResponseSourceDTO {
27
+ type: "Message" | "Relationship";
28
+ reference: string;
29
+ }
30
+ export interface LocalResponseDTO {
31
+ createdAt: string;
32
+ content: ResponseJSON;
33
+ source?: LocalResponseSourceDTO;
34
+ }
35
+ //# sourceMappingURL=LocalRequestDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalRequestDTO.d.ts","sourceRoot":"","sources":["../../src/consumption/LocalRequestDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE3D,oBAAY,kBAAkB;IAC1B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,gBAAgB,qBAAqB;IACrC,sBAAsB,2BAA2B;IACjD,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;CACtB;AAED,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,uBAAuB,CAAC,EAAE,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,SAAS,GAAG,sBAAsB,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,SAAS,GAAG,cAAc,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,sBAAsB,CAAC;CACnC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocalRequestStatus = void 0;
4
+ var LocalRequestStatus;
5
+ (function (LocalRequestStatus) {
6
+ LocalRequestStatus["Draft"] = "Draft";
7
+ LocalRequestStatus["Open"] = "Open";
8
+ LocalRequestStatus["DecisionRequired"] = "DecisionRequired";
9
+ LocalRequestStatus["ManualDecisionRequired"] = "ManualDecisionRequired";
10
+ LocalRequestStatus["Decided"] = "Decided";
11
+ LocalRequestStatus["Completed"] = "Completed";
12
+ LocalRequestStatus["Expired"] = "Expired";
13
+ })(LocalRequestStatus || (exports.LocalRequestStatus = LocalRequestStatus = {}));
14
+ //# sourceMappingURL=LocalRequestDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalRequestDTO.js","sourceRoot":"","sources":["../../src/consumption/LocalRequestDTO.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC1B,qCAAe,CAAA;IACf,mCAAa,CAAA;IACb,2DAAqC,CAAA;IACrC,uEAAiD,CAAA;IACjD,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;AACvB,CAAC,EARW,kBAAkB,kCAAlB,kBAAkB,QAQ7B"}
@@ -0,0 +1,7 @@
1
+ export interface RequestValidationResultDTO {
2
+ isSuccess: boolean;
3
+ code?: string;
4
+ message?: string;
5
+ items: RequestValidationResultDTO[];
6
+ }
7
+ //# sourceMappingURL=RequestValidationResultDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestValidationResultDTO.d.ts","sourceRoot":"","sources":["../../src/consumption/RequestValidationResultDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACvC,SAAS,EAAE,OAAO,CAAC;IAEnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,0BAA0B,EAAE,CAAC;CACvC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RequestValidationResultDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestValidationResultDTO.js","sourceRoot":"","sources":["../../src/consumption/RequestValidationResultDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ export declare enum SettingScope {
2
+ Identity = "Identity",
3
+ Device = "Device",
4
+ Relationship = "Relationship"
5
+ }
6
+ export interface SettingDTO {
7
+ id: string;
8
+ key: string;
9
+ scope: SettingScope;
10
+ reference?: string;
11
+ value: any;
12
+ createdAt: string;
13
+ succeedsItem?: string;
14
+ succeedsAt?: string;
15
+ }
16
+ //# sourceMappingURL=SettingDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingDTO.d.ts","sourceRoot":"","sources":["../../src/consumption/SettingDTO.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACpB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,YAAY,iBAAiB;CAChC;AAED,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingScope = void 0;
4
+ var SettingScope;
5
+ (function (SettingScope) {
6
+ SettingScope["Identity"] = "Identity";
7
+ SettingScope["Device"] = "Device";
8
+ SettingScope["Relationship"] = "Relationship";
9
+ })(SettingScope || (exports.SettingScope = SettingScope = {}));
10
+ //# sourceMappingURL=SettingDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingDTO.js","sourceRoot":"","sources":["../../src/consumption/SettingDTO.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,6CAA6B,CAAA;AACjC,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
@@ -0,0 +1,10 @@
1
+ export * from "./AttributeTagCollectionDTO";
2
+ export * from "./DraftDTO";
3
+ export * from "./IdentityMetadataDTO";
4
+ export * from "./LocalAttributeDTO";
5
+ export * from "./LocalAttributeListenerDTO";
6
+ export * from "./LocalNotificationDTO";
7
+ export * from "./LocalRequestDTO";
8
+ export * from "./RequestValidationResultDTO";
9
+ export * from "./SettingDTO";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consumption/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AttributeTagCollectionDTO"), exports);
18
+ __exportStar(require("./DraftDTO"), exports);
19
+ __exportStar(require("./IdentityMetadataDTO"), exports);
20
+ __exportStar(require("./LocalAttributeDTO"), exports);
21
+ __exportStar(require("./LocalAttributeListenerDTO"), exports);
22
+ __exportStar(require("./LocalNotificationDTO"), exports);
23
+ __exportStar(require("./LocalRequestDTO"), exports);
24
+ __exportStar(require("./RequestValidationResultDTO"), exports);
25
+ __exportStar(require("./SettingDTO"), exports);
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/consumption/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,6CAA2B;AAC3B,wDAAsC;AACtC,sDAAoC;AACpC,8DAA4C;AAC5C,yDAAuC;AACvC,oDAAkC;AAClC,+DAA6C;AAC7C,+CAA6B"}
@@ -0,0 +1,4 @@
1
+ export * from "./consumption";
2
+ export * from "./RuntimeHealth";
3
+ export * from "./transport";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./consumption"), exports);
18
+ __exportStar(require("./RuntimeHealth"), exports);
19
+ __exportStar(require("./transport"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B"}
@@ -0,0 +1,19 @@
1
+ export interface AnnouncementDTO {
2
+ id: string;
3
+ createdAt: string;
4
+ expiresAt?: string;
5
+ severity: AnnouncementSeverity;
6
+ title: string;
7
+ body: string;
8
+ actions: AnnouncementActionDTO[];
9
+ }
10
+ export declare enum AnnouncementSeverity {
11
+ Low = "Low",
12
+ Medium = "Medium",
13
+ High = "High"
14
+ }
15
+ export interface AnnouncementActionDTO {
16
+ displayName: string;
17
+ link: string;
18
+ }
19
+ //# sourceMappingURL=AnnouncementDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnouncementDTO.d.ts","sourceRoot":"","sources":["../../src/transport/AnnouncementDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,qBAAqB,EAAE,CAAC;CACpC;AAED,oBAAY,oBAAoB;IAC5B,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;CAChB;AAED,MAAM,WAAW,qBAAqB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnnouncementSeverity = void 0;
4
+ var AnnouncementSeverity;
5
+ (function (AnnouncementSeverity) {
6
+ AnnouncementSeverity["Low"] = "Low";
7
+ AnnouncementSeverity["Medium"] = "Medium";
8
+ AnnouncementSeverity["High"] = "High";
9
+ })(AnnouncementSeverity || (exports.AnnouncementSeverity = AnnouncementSeverity = {}));
10
+ //# sourceMappingURL=AnnouncementDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnouncementDTO.js","sourceRoot":"","sources":["../../src/transport/AnnouncementDTO.ts"],"names":[],"mappings":";;;AAUA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,mCAAW,CAAA;IACX,yCAAiB,CAAA;IACjB,qCAAa,CAAA;AACjB,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}
@@ -0,0 +1,10 @@
1
+ export interface ChallengeDTO {
2
+ id: string;
3
+ expiresAt: string;
4
+ createdBy?: string;
5
+ createdByDevice?: string;
6
+ type: string;
7
+ signature: string;
8
+ challengeString: string;
9
+ }
10
+ //# sourceMappingURL=ChallengeDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChallengeDTO.d.ts","sourceRoot":"","sources":["../../src/transport/ChallengeDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;CAC3B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ChallengeDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChallengeDTO.js","sourceRoot":"","sources":["../../src/transport/ChallengeDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ export interface DeviceDTO {
2
+ id: string;
3
+ isAdmin: boolean;
4
+ publicKey?: string;
5
+ certificate?: string;
6
+ name: string;
7
+ description?: string;
8
+ createdAt: string;
9
+ createdByDevice: string;
10
+ operatingSystem?: string;
11
+ lastLoginAt?: string;
12
+ type: string;
13
+ username: string;
14
+ isCurrentDevice: boolean;
15
+ isOffboarded?: boolean;
16
+ isBackupDevice: boolean;
17
+ }
18
+ //# sourceMappingURL=DeviceDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceDTO.d.ts","sourceRoot":"","sources":["../../src/transport/DeviceDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;CAC3B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DeviceDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceDTO.js","sourceRoot":"","sources":["../../src/transport/DeviceDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { IdentityDTO } from "./IdentityDTO";
2
+ export interface DeviceOnboardingInfoDTO {
3
+ id: string;
4
+ createdAt: string;
5
+ createdByDevice: string;
6
+ name?: string;
7
+ description?: string;
8
+ profileName?: string;
9
+ secretBaseKey: string;
10
+ deviceIndex: number;
11
+ synchronizationKey: string;
12
+ identityPrivateKey?: string;
13
+ identity: IdentityDTO;
14
+ password: string;
15
+ username: string;
16
+ isBackupDevice: boolean;
17
+ }
18
+ //# sourceMappingURL=DeviceOnboardingInfoDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceOnboardingInfoDTO.d.ts","sourceRoot":"","sources":["../../src/transport/DeviceOnboardingInfoDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;CAC3B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DeviceOnboardingInfoDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceOnboardingInfoDTO.js","sourceRoot":"","sources":["../../src/transport/DeviceOnboardingInfoDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ export interface FileDTO {
2
+ id: string;
3
+ isOwn: boolean;
4
+ filename: string;
5
+ tags?: string[];
6
+ filesize: number;
7
+ createdAt: string;
8
+ createdBy: string;
9
+ createdByDevice: string;
10
+ expiresAt: string;
11
+ mimetype: string;
12
+ title: string;
13
+ description?: string;
14
+ truncatedReference: string;
15
+ reference: {
16
+ truncated: string;
17
+ url: string;
18
+ };
19
+ ownershipToken?: string;
20
+ ownershipIsLocked?: true;
21
+ }
22
+ //# sourceMappingURL=FileDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileDTO.d.ts","sourceRoot":"","sources":["../../src/transport/FileDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;IACF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,IAAI,CAAC;CAC5B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FileDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileDTO.js","sourceRoot":"","sources":["../../src/transport/FileDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface IdentityDTO {
2
+ address: string;
3
+ publicKey: string;
4
+ }
5
+ //# sourceMappingURL=IdentityDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityDTO.d.ts","sourceRoot":"","sources":["../../src/transport/IdentityDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IdentityDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityDTO.js","sourceRoot":"","sources":["../../src/transport/IdentityDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ export declare enum IdentityDeletionProcessStatus {
2
+ WaitingForApproval = "WaitingForApproval",
3
+ Rejected = "Rejected",
4
+ Approved = "Approved",
5
+ Cancelled = "Cancelled"
6
+ }
7
+ export interface IdentityDeletionProcessDTO {
8
+ id: string;
9
+ status: IdentityDeletionProcessStatus;
10
+ createdAt?: string;
11
+ createdByDevice?: string;
12
+ approvalPeriodEndsAt?: string;
13
+ rejectedAt?: string;
14
+ rejectedByDevice?: string;
15
+ approvedAt?: string;
16
+ approvedByDevice?: string;
17
+ gracePeriodEndsAt?: string;
18
+ cancelledAt?: string;
19
+ cancelledByDevice?: string;
20
+ }
21
+ //# sourceMappingURL=IdentityDeletionProcessDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityDeletionProcessDTO.d.ts","sourceRoot":"","sources":["../../src/transport/IdentityDeletionProcessDTO.ts"],"names":[],"mappings":"AAAA,oBAAY,6BAA6B;IACrC,kBAAkB,uBAAuB;IACzC,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;CAC1B;AAED,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,6BAA6B,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IdentityDeletionProcessStatus = void 0;
4
+ var IdentityDeletionProcessStatus;
5
+ (function (IdentityDeletionProcessStatus) {
6
+ IdentityDeletionProcessStatus["WaitingForApproval"] = "WaitingForApproval";
7
+ IdentityDeletionProcessStatus["Rejected"] = "Rejected";
8
+ IdentityDeletionProcessStatus["Approved"] = "Approved";
9
+ IdentityDeletionProcessStatus["Cancelled"] = "Cancelled";
10
+ })(IdentityDeletionProcessStatus || (exports.IdentityDeletionProcessStatus = IdentityDeletionProcessStatus = {}));
11
+ //# sourceMappingURL=IdentityDeletionProcessDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityDeletionProcessDTO.js","sourceRoot":"","sources":["../../src/transport/IdentityDeletionProcessDTO.ts"],"names":[],"mappings":";;;AAAA,IAAY,6BAKX;AALD,WAAY,6BAA6B;IACrC,0EAAyC,CAAA;IACzC,sDAAqB,CAAA;IACrB,sDAAqB,CAAA;IACrB,wDAAuB,CAAA;AAC3B,CAAC,EALW,6BAA6B,6CAA7B,6BAA6B,QAKxC"}
@@ -0,0 +1,15 @@
1
+ import { ArbitraryMessageContentJSON, MailJSON, NotificationJSON, RequestJSON, ResponseWrapperJSON } from "@nmshd/content";
2
+ import { RecipientDTO } from "./RecipientDTO";
3
+ export type MessageContentDerivation = MailJSON | ResponseWrapperJSON | RequestJSON | NotificationJSON | ArbitraryMessageContentJSON;
4
+ export interface MessageDTO {
5
+ id: string;
6
+ isOwn: boolean;
7
+ content: MessageContentDerivation;
8
+ createdBy: string;
9
+ createdByDevice: string;
10
+ recipients: RecipientDTO[];
11
+ createdAt: string;
12
+ attachments: string[];
13
+ wasReadAt?: string;
14
+ }
15
+ //# sourceMappingURL=MessageDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageDTO.d.ts","sourceRoot":"","sources":["../../src/transport/MessageDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC3H,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,MAAM,wBAAwB,GAAG,QAAQ,GAAG,mBAAmB,GAAG,WAAW,GAAG,gBAAgB,GAAG,2BAA2B,CAAC;AAErI,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,wBAAwB,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=MessageDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageDTO.js","sourceRoot":"","sources":["../../src/transport/MessageDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { FileDTO } from "./FileDTO";
2
+ import { RecipientDTO } from "./RecipientDTO";
3
+ export interface MessageWithAttachmentsDTO {
4
+ id: string;
5
+ isOwn: boolean;
6
+ content: any;
7
+ createdBy: string;
8
+ createdByDevice: string;
9
+ recipients: RecipientDTO[];
10
+ createdAt: string;
11
+ attachments: FileDTO[];
12
+ wasReadAt?: string;
13
+ }
14
+ //# sourceMappingURL=MessageWithAttachmentsDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageWithAttachmentsDTO.d.ts","sourceRoot":"","sources":["../../src/transport/MessageWithAttachmentsDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,GAAG,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=MessageWithAttachmentsDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageWithAttachmentsDTO.js","sourceRoot":"","sources":["../../src/transport/MessageWithAttachmentsDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { PasswordLocationIndicator } from "@nmshd/core-types";
2
+ export interface PasswordProtectionDTO {
3
+ password: string;
4
+ passwordIsPin?: true;
5
+ passwordLocationIndicator?: PasswordLocationIndicator;
6
+ }
7
+ //# sourceMappingURL=PasswordProtectionDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PasswordProtectionDTO.d.ts","sourceRoot":"","sources":["../../src/transport/PasswordProtectionDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;CACzD"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=PasswordProtectionDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PasswordProtectionDTO.js","sourceRoot":"","sources":["../../src/transport/PasswordProtectionDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface PublicRelationshipTemplateReferenceDTO {
2
+ title: string;
3
+ description: string;
4
+ truncatedReference: string;
5
+ }
6
+ //# sourceMappingURL=PublicRelationshipTemplateReferenceDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublicRelationshipTemplateReferenceDTO.d.ts","sourceRoot":"","sources":["../../src/transport/PublicRelationshipTemplateReferenceDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sCAAsC;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=PublicRelationshipTemplateReferenceDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublicRelationshipTemplateReferenceDTO.js","sourceRoot":"","sources":["../../src/transport/PublicRelationshipTemplateReferenceDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface RecipientDTO {
2
+ address: string;
3
+ receivedAt?: string;
4
+ receivedByDevice?: string;
5
+ relationshipId?: string;
6
+ }
7
+ //# sourceMappingURL=RecipientDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecipientDTO.d.ts","sourceRoot":"","sources":["../../src/transport/RecipientDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RecipientDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecipientDTO.js","sourceRoot":"","sources":["../../src/transport/RecipientDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ import { ArbitraryRelationshipCreationContentJSON, RelationshipCreationContentJSON } from "@nmshd/content";
2
+ import { IdentityDTO } from "./IdentityDTO";
3
+ import { RelationshipTemplateDTO } from "./RelationshipTemplateDTO";
4
+ export declare enum RelationshipStatus {
5
+ Pending = "Pending",
6
+ Active = "Active",
7
+ Rejected = "Rejected",
8
+ Revoked = "Revoked",
9
+ Terminated = "Terminated",
10
+ DeletionProposed = "DeletionProposed"
11
+ }
12
+ export declare enum RelationshipAuditLogEntryReason {
13
+ Creation = "Creation",
14
+ AcceptanceOfCreation = "AcceptanceOfCreation",
15
+ RejectionOfCreation = "RejectionOfCreation",
16
+ RevocationOfCreation = "RevocationOfCreation",
17
+ Termination = "Termination",
18
+ ReactivationRequested = "ReactivationRequested",
19
+ AcceptanceOfReactivation = "AcceptanceOfReactivation",
20
+ RejectionOfReactivation = "RejectionOfReactivation",
21
+ RevocationOfReactivation = "RevocationOfReactivation",
22
+ Decomposition = "Decomposition",
23
+ DecompositionDueToIdentityDeletion = "DecompositionDueToIdentityDeletion"
24
+ }
25
+ export interface RelationshipAuditLogEntryDTO {
26
+ createdAt: string;
27
+ createdBy: string;
28
+ createdByDevice?: string;
29
+ reason: RelationshipAuditLogEntryReason;
30
+ oldStatus?: RelationshipStatus;
31
+ newStatus: RelationshipStatus;
32
+ }
33
+ export interface RelationshipAuditLogDTO extends Array<RelationshipAuditLogEntryDTO> {
34
+ }
35
+ export type RelationshipCreationContentDerivation = RelationshipCreationContentJSON | ArbitraryRelationshipCreationContentJSON;
36
+ export declare enum PeerDeletionStatus {
37
+ ToBeDeleted = "ToBeDeleted",
38
+ Deleted = "Deleted"
39
+ }
40
+ export interface PeerDeletionInfoDTO {
41
+ deletionStatus: PeerDeletionStatus;
42
+ deletionDate: string;
43
+ }
44
+ export interface RelationshipDTO {
45
+ id: string;
46
+ template: RelationshipTemplateDTO;
47
+ status: RelationshipStatus;
48
+ peer: string;
49
+ peerIdentity: IdentityDTO;
50
+ peerDeletionInfo?: PeerDeletionInfoDTO;
51
+ creationContent: RelationshipCreationContentDerivation;
52
+ auditLog: RelationshipAuditLogDTO;
53
+ }
54
+ //# sourceMappingURL=RelationshipDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipDTO.d.ts","sourceRoot":"","sources":["../../src/transport/RelationshipDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAC3G,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,oBAAY,kBAAkB;IAC1B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,gBAAgB,qBAAqB;CACxC;AAED,oBAAY,+BAA+B;IACvC,QAAQ,aAAa;IACrB,oBAAoB,yBAAyB;IAC7C,mBAAmB,wBAAwB;IAC3C,oBAAoB,yBAAyB;IAC7C,WAAW,gBAAgB;IAC3B,qBAAqB,0BAA0B;IAC/C,wBAAwB,6BAA6B;IACrD,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,aAAa,kBAAkB;IAC/B,kCAAkC,uCAAuC;CAC5E;AAED,MAAM,WAAW,4BAA4B;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,+BAA+B,CAAC;IACxC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,SAAS,EAAE,kBAAkB,CAAC;CACjC;AAED,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,4BAA4B,CAAC;CAAG;AAEvF,MAAM,MAAM,qCAAqC,GAAG,+BAA+B,GAAG,wCAAwC,CAAC;AAE/H,oBAAY,kBAAkB;IAC1B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;CACtB;AAED,MAAM,WAAW,mBAAmB;IAChC,cAAc,EAAE,kBAAkB,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,uBAAuB,CAAC;IAClC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,WAAW,CAAC;IAC1B,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;IACvC,eAAe,EAAE,qCAAqC,CAAC;IACvD,QAAQ,EAAE,uBAAuB,CAAC;CACrC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PeerDeletionStatus = exports.RelationshipAuditLogEntryReason = exports.RelationshipStatus = void 0;
4
+ var RelationshipStatus;
5
+ (function (RelationshipStatus) {
6
+ RelationshipStatus["Pending"] = "Pending";
7
+ RelationshipStatus["Active"] = "Active";
8
+ RelationshipStatus["Rejected"] = "Rejected";
9
+ RelationshipStatus["Revoked"] = "Revoked";
10
+ RelationshipStatus["Terminated"] = "Terminated";
11
+ RelationshipStatus["DeletionProposed"] = "DeletionProposed";
12
+ })(RelationshipStatus || (exports.RelationshipStatus = RelationshipStatus = {}));
13
+ var RelationshipAuditLogEntryReason;
14
+ (function (RelationshipAuditLogEntryReason) {
15
+ RelationshipAuditLogEntryReason["Creation"] = "Creation";
16
+ RelationshipAuditLogEntryReason["AcceptanceOfCreation"] = "AcceptanceOfCreation";
17
+ RelationshipAuditLogEntryReason["RejectionOfCreation"] = "RejectionOfCreation";
18
+ RelationshipAuditLogEntryReason["RevocationOfCreation"] = "RevocationOfCreation";
19
+ RelationshipAuditLogEntryReason["Termination"] = "Termination";
20
+ RelationshipAuditLogEntryReason["ReactivationRequested"] = "ReactivationRequested";
21
+ RelationshipAuditLogEntryReason["AcceptanceOfReactivation"] = "AcceptanceOfReactivation";
22
+ RelationshipAuditLogEntryReason["RejectionOfReactivation"] = "RejectionOfReactivation";
23
+ RelationshipAuditLogEntryReason["RevocationOfReactivation"] = "RevocationOfReactivation";
24
+ RelationshipAuditLogEntryReason["Decomposition"] = "Decomposition";
25
+ RelationshipAuditLogEntryReason["DecompositionDueToIdentityDeletion"] = "DecompositionDueToIdentityDeletion";
26
+ })(RelationshipAuditLogEntryReason || (exports.RelationshipAuditLogEntryReason = RelationshipAuditLogEntryReason = {}));
27
+ var PeerDeletionStatus;
28
+ (function (PeerDeletionStatus) {
29
+ PeerDeletionStatus["ToBeDeleted"] = "ToBeDeleted";
30
+ PeerDeletionStatus["Deleted"] = "Deleted";
31
+ })(PeerDeletionStatus || (exports.PeerDeletionStatus = PeerDeletionStatus = {}));
32
+ //# sourceMappingURL=RelationshipDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipDTO.js","sourceRoot":"","sources":["../../src/transport/RelationshipDTO.ts"],"names":[],"mappings":";;;AAIA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,+CAAyB,CAAA;IACzB,2DAAqC,CAAA;AACzC,CAAC,EAPW,kBAAkB,kCAAlB,kBAAkB,QAO7B;AAED,IAAY,+BAYX;AAZD,WAAY,+BAA+B;IACvC,wDAAqB,CAAA;IACrB,gFAA6C,CAAA;IAC7C,8EAA2C,CAAA;IAC3C,gFAA6C,CAAA;IAC7C,8DAA2B,CAAA;IAC3B,kFAA+C,CAAA;IAC/C,wFAAqD,CAAA;IACrD,sFAAmD,CAAA;IACnD,wFAAqD,CAAA;IACrD,kEAA+B,CAAA;IAC/B,4GAAyE,CAAA;AAC7E,CAAC,EAZW,+BAA+B,+CAA/B,+BAA+B,QAY1C;AAeD,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,iDAA2B,CAAA;IAC3B,yCAAmB,CAAA;AACvB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
@@ -0,0 +1,21 @@
1
+ import { ArbitraryRelationshipTemplateContentJSON, RelationshipTemplateContentJSON } from "@nmshd/content";
2
+ import { PasswordProtectionDTO } from "./PasswordProtectionDTO";
3
+ export type RelationshipTemplateContentDerivation = RelationshipTemplateContentJSON | ArbitraryRelationshipTemplateContentJSON;
4
+ export interface RelationshipTemplateDTO {
5
+ id: string;
6
+ isOwn: boolean;
7
+ createdBy: string;
8
+ createdByDevice: string;
9
+ createdAt: string;
10
+ forIdentity?: string;
11
+ passwordProtection?: PasswordProtectionDTO;
12
+ content: RelationshipTemplateContentDerivation;
13
+ expiresAt?: string;
14
+ maxNumberOfAllocations?: number;
15
+ truncatedReference: string;
16
+ reference: {
17
+ truncated: string;
18
+ url: string;
19
+ };
20
+ }
21
+ //# sourceMappingURL=RelationshipTemplateDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipTemplateDTO.d.ts","sourceRoot":"","sources":["../../src/transport/RelationshipTemplateDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,MAAM,qCAAqC,GAAG,+BAA+B,GAAG,wCAAwC,CAAC;AAE/H,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;IAC3C,OAAO,EAAE,qCAAqC,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;CACL"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RelationshipTemplateDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipTemplateDTO.js","sourceRoot":"","sources":["../../src/transport/RelationshipTemplateDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { PasswordProtectionDTO } from "./PasswordProtectionDTO";
2
+ export interface TokenDTO {
3
+ id: string;
4
+ isOwn: boolean;
5
+ createdBy: string;
6
+ createdByDevice: string;
7
+ content: any;
8
+ createdAt: string;
9
+ expiresAt: string;
10
+ forIdentity?: string;
11
+ passwordProtection?: PasswordProtectionDTO;
12
+ truncatedReference: string;
13
+ reference: {
14
+ truncated: string;
15
+ url: string;
16
+ };
17
+ isEphemeral: boolean;
18
+ }
19
+ //# sourceMappingURL=TokenDTO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokenDTO.d.ts","sourceRoot":"","sources":["../../src/transport/TokenDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;IAC3C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;IACF,WAAW,EAAE,OAAO,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TokenDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokenDTO.js","sourceRoot":"","sources":["../../src/transport/TokenDTO.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ export * from "./AnnouncementDTO";
2
+ export * from "./ChallengeDTO";
3
+ export * from "./DeviceDTO";
4
+ export * from "./DeviceOnboardingInfoDTO";
5
+ export * from "./FileDTO";
6
+ export * from "./IdentityDeletionProcessDTO";
7
+ export * from "./IdentityDTO";
8
+ export * from "./MessageDTO";
9
+ export * from "./MessageWithAttachmentsDTO";
10
+ export * from "./PasswordProtectionDTO";
11
+ export * from "./PublicRelationshipTemplateReferenceDTO";
12
+ export * from "./RecipientDTO";
13
+ export * from "./RelationshipDTO";
14
+ export * from "./RelationshipTemplateDTO";
15
+ export * from "./TokenDTO";
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0CAA0C,CAAC;AACzD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AnnouncementDTO"), exports);
18
+ __exportStar(require("./ChallengeDTO"), exports);
19
+ __exportStar(require("./DeviceDTO"), exports);
20
+ __exportStar(require("./DeviceOnboardingInfoDTO"), exports);
21
+ __exportStar(require("./FileDTO"), exports);
22
+ __exportStar(require("./IdentityDeletionProcessDTO"), exports);
23
+ __exportStar(require("./IdentityDTO"), exports);
24
+ __exportStar(require("./MessageDTO"), exports);
25
+ __exportStar(require("./MessageWithAttachmentsDTO"), exports);
26
+ __exportStar(require("./PasswordProtectionDTO"), exports);
27
+ __exportStar(require("./PublicRelationshipTemplateReferenceDTO"), exports);
28
+ __exportStar(require("./RecipientDTO"), exports);
29
+ __exportStar(require("./RelationshipDTO"), exports);
30
+ __exportStar(require("./RelationshipTemplateDTO"), exports);
31
+ __exportStar(require("./TokenDTO"), exports);
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,iDAA+B;AAC/B,8CAA4B;AAC5B,4DAA0C;AAC1C,4CAA0B;AAC1B,+DAA6C;AAC7C,gDAA8B;AAC9B,+CAA6B;AAC7B,8DAA4C;AAC5C,0DAAwC;AACxC,2EAAyD;AACzD,iDAA+B;AAC/B,oDAAkC;AAClC,4DAA0C;AAC1C,6CAA2B"}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@nmshd/runtime-types",
3
+ "description": "The enmeshed runtime types.",
4
+ "homepage": "https://enmeshed.eu",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/nmshd/runtime.git",
8
+ "directory": "packages/runtime"
9
+ },
10
+ "license": "MIT",
11
+ "author": "j&s-soft AG",
12
+ "main": "dist/index.js",
13
+ "types": "dist/index.d.ts",
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "build": "tsc",
19
+ "build:ci": "tsc",
20
+ "cdep": "tsc && madge --circular dist",
21
+ "lint:tsc": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit"
22
+ },
23
+ "dependencies": {},
24
+ "devDependencies": {},
25
+ "publishConfig": {
26
+ "access": "public",
27
+ "provenance": true
28
+ },
29
+ "version": "6.60.0"
30
+ }