@nmshd/runtime 3.7.0 → 4.1.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 (113) hide show
  1. package/dist/Runtime.d.ts +1 -1
  2. package/dist/Runtime.d.ts.map +1 -1
  3. package/dist/Runtime.js +2 -2
  4. package/dist/Runtime.js.map +1 -1
  5. package/dist/buildInformation.js +5 -5
  6. package/dist/dataViews/DataViewExpander.d.ts +4 -4
  7. package/dist/dataViews/DataViewExpander.d.ts.map +1 -1
  8. package/dist/dataViews/DataViewExpander.js +2 -1
  9. package/dist/dataViews/DataViewExpander.js.map +1 -1
  10. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts +1 -1
  11. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts.map +1 -1
  12. package/dist/dataViews/consumption/LocalRequestDVO.d.ts +1 -1
  13. package/dist/dataViews/consumption/LocalRequestDVO.d.ts.map +1 -1
  14. package/dist/dataViews/content/ResponseItemDVOs.d.ts +1 -1
  15. package/dist/dataViews/content/ResponseItemDVOs.d.ts.map +1 -1
  16. package/dist/dataViews/transport/MessageDVO.d.ts +4 -0
  17. package/dist/dataViews/transport/MessageDVO.d.ts.map +1 -1
  18. package/dist/dataViews/transport/RelationshipDVO.d.ts +1 -1
  19. package/dist/dataViews/transport/RelationshipDVO.d.ts.map +1 -1
  20. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +14 -14
  21. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts.map +1 -1
  22. package/dist/extensibility/facades/consumption/AttributesFacade.js +25 -25
  23. package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
  24. package/dist/extensibility/facades/transport/MessagesFacade.d.ts +9 -5
  25. package/dist/extensibility/facades/transport/MessagesFacade.d.ts.map +1 -1
  26. package/dist/extensibility/facades/transport/MessagesFacade.js +20 -8
  27. package/dist/extensibility/facades/transport/MessagesFacade.js.map +1 -1
  28. package/dist/modules/AttributeListenerModule.d.ts.map +1 -1
  29. package/dist/modules/AttributeListenerModule.js.map +1 -1
  30. package/dist/modules/DeciderModule.d.ts.map +1 -1
  31. package/dist/modules/DeciderModule.js.map +1 -1
  32. package/dist/modules/RequestModule.d.ts.map +1 -1
  33. package/dist/modules/RequestModule.js.map +1 -1
  34. package/dist/types/transport/MessageDTO.d.ts +1 -0
  35. package/dist/types/transport/MessageDTO.d.ts.map +1 -1
  36. package/dist/types/transport/MessageWithAttachmentsDTO.d.ts +1 -0
  37. package/dist/types/transport/MessageWithAttachmentsDTO.d.ts.map +1 -1
  38. package/dist/useCases/common/RuntimeErrors.d.ts +4 -4
  39. package/dist/useCases/common/RuntimeErrors.d.ts.map +1 -1
  40. package/dist/useCases/common/RuntimeErrors.js +8 -8
  41. package/dist/useCases/common/RuntimeErrors.js.map +1 -1
  42. package/dist/useCases/common/Schemas.d.ts +8 -6
  43. package/dist/useCases/common/Schemas.d.ts.map +1 -1
  44. package/dist/useCases/common/Schemas.js +754 -697
  45. package/dist/useCases/common/Schemas.js.map +1 -1
  46. package/dist/useCases/consumption/attributes/{CreateIdentityAttribute.d.ts → CreateRepositoryAttribute.d.ts} +5 -5
  47. package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.d.ts.map +1 -0
  48. package/dist/useCases/consumption/attributes/{CreateIdentityAttribute.js → CreateRepositoryAttribute.js} +7 -7
  49. package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.js.map +1 -0
  50. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.d.ts +19 -0
  51. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.d.ts.map +1 -0
  52. package/dist/useCases/consumption/attributes/{GetOwnIdentityAttributes.js → GetRepositoryAttributes.js} +9 -9
  53. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.js.map +1 -0
  54. package/dist/useCases/consumption/attributes/{GetSharedVersionsOfIdentityAttribute.d.ts → GetSharedVersionsOfRepositoryAttribute.d.ts} +5 -5
  55. package/dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.d.ts.map +1 -0
  56. package/dist/useCases/consumption/attributes/{GetSharedVersionsOfIdentityAttribute.js → GetSharedVersionsOfRepositoryAttribute.js} +8 -8
  57. package/dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js.map +1 -0
  58. package/dist/useCases/consumption/attributes/{NotifyPeerAboutIdentityAttributeSuccession.d.ts → NotifyPeerAboutRepositoryAttributeSuccession.d.ts} +6 -6
  59. package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.d.ts.map +1 -0
  60. package/dist/useCases/consumption/attributes/{NotifyPeerAboutIdentityAttributeSuccession.js → NotifyPeerAboutRepositoryAttributeSuccession.js} +10 -10
  61. package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js.map +1 -0
  62. package/dist/useCases/consumption/attributes/{ShareIdentityAttribute.d.ts → ShareRepositoryAttribute.d.ts} +5 -5
  63. package/dist/useCases/consumption/attributes/ShareRepositoryAttribute.d.ts.map +1 -0
  64. package/dist/useCases/consumption/attributes/{ShareIdentityAttribute.js → ShareRepositoryAttribute.js} +12 -12
  65. package/dist/useCases/consumption/attributes/ShareRepositoryAttribute.js.map +1 -0
  66. package/dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.d.ts.map +1 -1
  67. package/dist/useCases/consumption/attributes/{SucceedIdentityAttribute.d.ts → SucceedRepositoryAttribute.d.ts} +6 -6
  68. package/dist/useCases/consumption/attributes/SucceedRepositoryAttribute.d.ts.map +1 -0
  69. package/dist/useCases/consumption/attributes/{SucceedIdentityAttribute.js → SucceedRepositoryAttribute.js} +7 -7
  70. package/dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js.map +1 -0
  71. package/dist/useCases/consumption/attributes/index.d.ts +6 -6
  72. package/dist/useCases/consumption/attributes/index.d.ts.map +1 -1
  73. package/dist/useCases/consumption/attributes/index.js +6 -6
  74. package/dist/useCases/consumption/attributes/index.js.map +1 -1
  75. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.d.ts +1 -1
  76. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.d.ts.map +1 -1
  77. package/dist/useCases/transport/messages/GetMessages.d.ts +1 -0
  78. package/dist/useCases/transport/messages/GetMessages.d.ts.map +1 -1
  79. package/dist/useCases/transport/messages/GetMessages.js +3 -1
  80. package/dist/useCases/transport/messages/GetMessages.js.map +1 -1
  81. package/dist/useCases/transport/messages/MarkMessageAsRead.d.ts +18 -0
  82. package/dist/useCases/transport/messages/MarkMessageAsRead.d.ts.map +1 -0
  83. package/dist/useCases/transport/messages/MarkMessageAsRead.js +51 -0
  84. package/dist/useCases/transport/messages/MarkMessageAsRead.js.map +1 -0
  85. package/dist/useCases/transport/messages/MarkMessageAsUnread.d.ts +18 -0
  86. package/dist/useCases/transport/messages/MarkMessageAsUnread.d.ts.map +1 -0
  87. package/dist/useCases/transport/messages/MarkMessageAsUnread.js +51 -0
  88. package/dist/useCases/transport/messages/MarkMessageAsUnread.js.map +1 -0
  89. package/dist/useCases/transport/messages/MessageMapper.d.ts.map +1 -1
  90. package/dist/useCases/transport/messages/MessageMapper.js +4 -2
  91. package/dist/useCases/transport/messages/MessageMapper.js.map +1 -1
  92. package/dist/useCases/transport/messages/index.d.ts +2 -0
  93. package/dist/useCases/transport/messages/index.d.ts.map +1 -1
  94. package/dist/useCases/transport/messages/index.js +2 -0
  95. package/dist/useCases/transport/messages/index.js.map +1 -1
  96. package/lib-web/nmshd.runtime.js +1565 -1367
  97. package/lib-web/nmshd.runtime.js.map +1 -1
  98. package/lib-web/nmshd.runtime.min.js +1 -1
  99. package/lib-web/nmshd.runtime.min.js.map +1 -1
  100. package/package.json +2 -2
  101. package/dist/useCases/consumption/attributes/CreateIdentityAttribute.d.ts.map +0 -1
  102. package/dist/useCases/consumption/attributes/CreateIdentityAttribute.js.map +0 -1
  103. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.d.ts +0 -19
  104. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.d.ts.map +0 -1
  105. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js.map +0 -1
  106. package/dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.d.ts.map +0 -1
  107. package/dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js.map +0 -1
  108. package/dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.d.ts.map +0 -1
  109. package/dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js.map +0 -1
  110. package/dist/useCases/consumption/attributes/ShareIdentityAttribute.d.ts.map +0 -1
  111. package/dist/useCases/consumption/attributes/ShareIdentityAttribute.js.map +0 -1
  112. package/dist/useCases/consumption/attributes/SucceedIdentityAttribute.d.ts.map +0 -1
  113. package/dist/useCases/consumption/attributes/SucceedIdentityAttribute.js.map +0 -1
@@ -45343,14 +45343,14 @@ const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modu
45343
45343
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
45344
45344
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
45345
45345
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
45346
- const DatabaseSchemaUpgrader_1 = __webpack_require__(/*! ./DatabaseSchemaUpgrader */ "./dist/DatabaseSchemaUpgrader.js");
45347
- const RuntimeLoggerFactory_1 = __webpack_require__(/*! ./RuntimeLoggerFactory */ "./dist/RuntimeLoggerFactory.js");
45348
45346
  const buildInformation_1 = __webpack_require__(/*! ./buildInformation */ "./dist/buildInformation.js");
45347
+ const DatabaseSchemaUpgrader_1 = __webpack_require__(/*! ./DatabaseSchemaUpgrader */ "./dist/DatabaseSchemaUpgrader.js");
45349
45348
  const dataViews_1 = __webpack_require__(/*! ./dataViews */ "./dist/dataViews/index.js");
45350
45349
  const events_1 = __webpack_require__(/*! ./events */ "./dist/events/index.js");
45351
45350
  const EventProxy_1 = __webpack_require__(/*! ./events/EventProxy */ "./dist/events/EventProxy.js");
45352
45351
  const extensibility_1 = __webpack_require__(/*! ./extensibility */ "./dist/extensibility/index.js");
45353
45352
  const modules_1 = __webpack_require__(/*! ./modules */ "./dist/modules/index.js");
45353
+ const RuntimeLoggerFactory_1 = __webpack_require__(/*! ./RuntimeLoggerFactory */ "./dist/RuntimeLoggerFactory.js");
45354
45354
  const useCases_1 = __webpack_require__(/*! ./useCases */ "./dist/useCases/index.js");
45355
45355
  const SchemaRepository_1 = __webpack_require__(/*! ./useCases/common/SchemaRepository */ "./dist/useCases/common/SchemaRepository.js");
45356
45356
  class Runtime {
@@ -45705,11 +45705,11 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
45705
45705
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
45706
45706
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
45707
45707
  exports.buildInformation = {
45708
- version: "3.7.0",
45709
- build: "16",
45710
- date: "2024-02-09T13:19:21+00:00",
45711
- commit: "76c5bb66d22a3a01f0a29723ab3bbeffb8539de0",
45712
- dependencies: {"@js-soft/docdb-querytranslator":"^1.1.2","@js-soft/logging-abstractions":"^1.0.1","@js-soft/ts-serval":"2.0.10","@js-soft/ts-utils":"^2.3.3","@nmshd/consumption":"3.9.3","@nmshd/content":"2.8.4","@nmshd/crypto":"2.0.6","@nmshd/transport":"2.2.2","ajv":"^8.12.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^3.4.4","qrcode":"1.5.3","reflect-metadata":"^0.2.1","ts-simple-nameof":"^1.3.1","typescript-ioc":"3.2.2"},
45708
+ version: "4.1.0",
45709
+ build: "22",
45710
+ date: "2024-02-14T10:44:49+00:00",
45711
+ commit: "f1d82b38d21b9be5277a3b7a8d8ffaf86579bba6",
45712
+ dependencies: {"@js-soft/docdb-querytranslator":"^1.1.2","@js-soft/logging-abstractions":"^1.0.1","@js-soft/ts-serval":"2.0.10","@js-soft/ts-utils":"^2.3.3","@nmshd/consumption":"3.9.3","@nmshd/content":"2.8.4","@nmshd/crypto":"2.0.6","@nmshd/transport":"2.3.0","ajv":"^8.12.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^3.4.4","qrcode":"1.5.3","reflect-metadata":"^0.2.1","ts-simple-nameof":"^1.3.1","typescript-ioc":"3.2.2"},
45713
45713
  libraries: {
45714
45714
  serval: ts_serval_1.buildInformation,
45715
45715
  consumption: consumption_1.buildInformation,
@@ -45870,7 +45870,8 @@ let DataViewExpander = class DataViewExpander {
45870
45870
  statusText: `i18n://dvo.message.${status}`,
45871
45871
  image: "",
45872
45872
  peer: peer,
45873
- content: message.content
45873
+ content: message.content,
45874
+ wasReadAt: message.wasReadAt
45874
45875
  };
45875
45876
  if (message.content["@type"] === "Mail" || message.content["@type"] === "RequestMail") {
45876
45877
  const mailContent = message.content;
@@ -48948,17 +48949,17 @@ exports.AttributesFacade = void 0;
48948
48949
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
48949
48950
  const useCases_1 = __webpack_require__(/*! ../../../useCases */ "./dist/useCases/index.js");
48950
48951
  let AttributesFacade = class AttributesFacade {
48951
- constructor(createIdentityAttributeUseCase, shareIdentityAttributeUseCase, getPeerSharedAttributesUseCase, getOwnSharedAttributesUseCase, getOwnIdentityAttributesUseCase, getAttributeUseCase, getAttributesUseCase, getVersionsOfAttributeUseCase, getSharedVersionsOfIdentityAttributeUseCase, succeedIdentityAttributeUseCase, executeIdentityAttributeQueryUseCase, executeRelationshipAttributeQueryUseCase, succeedRelationshipAttributeAndNotifyPeerUseCase, executeThirdPartyRelationshipAttributeQueryUseCase, executeIQLQueryUseCase, validateIQLQueryUseCase, createAndShareRelationshipAttributeUseCase, notifyPeerAboutIdentityAttributeSuccessionUseCase) {
48952
- this.createIdentityAttributeUseCase = createIdentityAttributeUseCase;
48953
- this.shareIdentityAttributeUseCase = shareIdentityAttributeUseCase;
48952
+ constructor(createRepositoryAttributeUseCase, shareRepositoryAttributeUseCase, getPeerSharedAttributesUseCase, getOwnSharedAttributesUseCase, getRepositoryAttributesUseCase, getAttributeUseCase, getAttributesUseCase, getVersionsOfAttributeUseCase, getSharedVersionsOfRepositoryAttributeUseCase, succeedRepositoryAttributeUseCase, executeIdentityAttributeQueryUseCase, executeRelationshipAttributeQueryUseCase, succeedRelationshipAttributeAndNotifyPeerUseCase, executeThirdPartyRelationshipAttributeQueryUseCase, executeIQLQueryUseCase, validateIQLQueryUseCase, createAndShareRelationshipAttributeUseCase, notifyPeerAboutRepositoryAttributeSuccessionUseCase) {
48953
+ this.createRepositoryAttributeUseCase = createRepositoryAttributeUseCase;
48954
+ this.shareRepositoryAttributeUseCase = shareRepositoryAttributeUseCase;
48954
48955
  this.getPeerSharedAttributesUseCase = getPeerSharedAttributesUseCase;
48955
48956
  this.getOwnSharedAttributesUseCase = getOwnSharedAttributesUseCase;
48956
- this.getOwnIdentityAttributesUseCase = getOwnIdentityAttributesUseCase;
48957
+ this.getRepositoryAttributesUseCase = getRepositoryAttributesUseCase;
48957
48958
  this.getAttributeUseCase = getAttributeUseCase;
48958
48959
  this.getAttributesUseCase = getAttributesUseCase;
48959
48960
  this.getVersionsOfAttributeUseCase = getVersionsOfAttributeUseCase;
48960
- this.getSharedVersionsOfIdentityAttributeUseCase = getSharedVersionsOfIdentityAttributeUseCase;
48961
- this.succeedIdentityAttributeUseCase = succeedIdentityAttributeUseCase;
48961
+ this.getSharedVersionsOfRepositoryAttributeUseCase = getSharedVersionsOfRepositoryAttributeUseCase;
48962
+ this.succeedRepositoryAttributeUseCase = succeedRepositoryAttributeUseCase;
48962
48963
  this.executeIdentityAttributeQueryUseCase = executeIdentityAttributeQueryUseCase;
48963
48964
  this.executeRelationshipAttributeQueryUseCase = executeRelationshipAttributeQueryUseCase;
48964
48965
  this.succeedRelationshipAttributeAndNotifyPeerUseCase = succeedRelationshipAttributeAndNotifyPeerUseCase;
@@ -48966,10 +48967,10 @@ let AttributesFacade = class AttributesFacade {
48966
48967
  this.executeIQLQueryUseCase = executeIQLQueryUseCase;
48967
48968
  this.validateIQLQueryUseCase = validateIQLQueryUseCase;
48968
48969
  this.createAndShareRelationshipAttributeUseCase = createAndShareRelationshipAttributeUseCase;
48969
- this.notifyPeerAboutIdentityAttributeSuccessionUseCase = notifyPeerAboutIdentityAttributeSuccessionUseCase;
48970
+ this.notifyPeerAboutRepositoryAttributeSuccessionUseCase = notifyPeerAboutRepositoryAttributeSuccessionUseCase;
48970
48971
  }
48971
- async createIdentityAttribute(request) {
48972
- return await this.createIdentityAttributeUseCase.execute(request);
48972
+ async createRepositoryAttribute(request) {
48973
+ return await this.createRepositoryAttributeUseCase.execute(request);
48973
48974
  }
48974
48975
  async getPeerSharedAttributes(request) {
48975
48976
  return await this.getPeerSharedAttributesUseCase.execute(request);
@@ -48977,8 +48978,8 @@ let AttributesFacade = class AttributesFacade {
48977
48978
  async getOwnSharedAttributes(request) {
48978
48979
  return await this.getOwnSharedAttributesUseCase.execute(request);
48979
48980
  }
48980
- async getOwnIdentityAttributes(request) {
48981
- return await this.getOwnIdentityAttributesUseCase.execute(request);
48981
+ async getRepositoryAttributes(request) {
48982
+ return await this.getRepositoryAttributesUseCase.execute(request);
48982
48983
  }
48983
48984
  async getAttribute(request) {
48984
48985
  return await this.getAttributeUseCase.execute(request);
@@ -48989,8 +48990,8 @@ let AttributesFacade = class AttributesFacade {
48989
48990
  async getVersionsOfAttribute(request) {
48990
48991
  return await this.getVersionsOfAttributeUseCase.execute(request);
48991
48992
  }
48992
- async getSharedVersionsOfIdentityAttribute(request) {
48993
- return await this.getSharedVersionsOfIdentityAttributeUseCase.execute(request);
48993
+ async getSharedVersionsOfRepositoryAttribute(request) {
48994
+ return await this.getSharedVersionsOfRepositoryAttributeUseCase.execute(request);
48994
48995
  }
48995
48996
  async executeIdentityAttributeQuery(request) {
48996
48997
  return await this.executeIdentityAttributeQueryUseCase.execute(request);
@@ -49010,17 +49011,17 @@ let AttributesFacade = class AttributesFacade {
49010
49011
  async validateIQLQuery(request) {
49011
49012
  return await this.validateIQLQueryUseCase.execute(request);
49012
49013
  }
49013
- async succeedIdentityAttribute(request) {
49014
- return await this.succeedIdentityAttributeUseCase.execute(request);
49014
+ async succeedRepositoryAttribute(request) {
49015
+ return await this.succeedRepositoryAttributeUseCase.execute(request);
49015
49016
  }
49016
- async shareIdentityAttribute(request) {
49017
- return await this.shareIdentityAttributeUseCase.execute(request);
49017
+ async shareRepositoryAttribute(request) {
49018
+ return await this.shareRepositoryAttributeUseCase.execute(request);
49018
49019
  }
49019
49020
  async createAndShareRelationshipAttribute(request) {
49020
49021
  return await this.createAndShareRelationshipAttributeUseCase.execute(request);
49021
49022
  }
49022
- async notifyPeerAboutIdentityAttributeSuccession(request) {
49023
- return await this.notifyPeerAboutIdentityAttributeSuccessionUseCase.execute(request);
49023
+ async notifyPeerAboutRepositoryAttributeSuccession(request) {
49024
+ return await this.notifyPeerAboutRepositoryAttributeSuccessionUseCase.execute(request);
49024
49025
  }
49025
49026
  };
49026
49027
  exports.AttributesFacade = AttributesFacade;
@@ -49043,16 +49044,16 @@ exports.AttributesFacade = AttributesFacade = __decorate([
49043
49044
  __param(15, typescript_ioc_1.Inject),
49044
49045
  __param(16, typescript_ioc_1.Inject),
49045
49046
  __param(17, typescript_ioc_1.Inject),
49046
- __metadata("design:paramtypes", [useCases_1.CreateIdentityAttributeUseCase,
49047
- useCases_1.ShareIdentityAttributeUseCase,
49047
+ __metadata("design:paramtypes", [useCases_1.CreateRepositoryAttributeUseCase,
49048
+ useCases_1.ShareRepositoryAttributeUseCase,
49048
49049
  useCases_1.GetPeerSharedAttributesUseCase,
49049
49050
  useCases_1.GetOwnSharedAttributesUseCase,
49050
- useCases_1.GetOwnIdentityAttributesUseCase,
49051
+ useCases_1.GetRepositoryAttributesUseCase,
49051
49052
  useCases_1.GetAttributeUseCase,
49052
49053
  useCases_1.GetAttributesUseCase,
49053
49054
  useCases_1.GetVersionsOfAttributeUseCase,
49054
- useCases_1.GetSharedVersionsOfIdentityAttributeUseCase,
49055
- useCases_1.SucceedIdentityAttributeUseCase,
49055
+ useCases_1.GetSharedVersionsOfRepositoryAttributeUseCase,
49056
+ useCases_1.SucceedRepositoryAttributeUseCase,
49056
49057
  useCases_1.ExecuteIdentityAttributeQueryUseCase,
49057
49058
  useCases_1.ExecuteRelationshipAttributeQueryUseCase,
49058
49059
  useCases_1.SucceedRelationshipAttributeAndNotifyPeerUseCase,
@@ -49060,7 +49061,7 @@ exports.AttributesFacade = AttributesFacade = __decorate([
49060
49061
  useCases_1.ExecuteIQLQueryUseCase,
49061
49062
  useCases_1.ValidateIQLQueryUseCase,
49062
49063
  useCases_1.CreateAndShareRelationshipAttributeUseCase,
49063
- useCases_1.NotifyPeerAboutIdentityAttributeSuccessionUseCase])
49064
+ useCases_1.NotifyPeerAboutRepositoryAttributeSuccessionUseCase])
49064
49065
  ], AttributesFacade);
49065
49066
  //# sourceMappingURL=AttributesFacade.js.map
49066
49067
 
@@ -49847,12 +49848,14 @@ exports.MessagesFacade = void 0;
49847
49848
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
49848
49849
  const useCases_1 = __webpack_require__(/*! ../../../useCases */ "./dist/useCases/index.js");
49849
49850
  let MessagesFacade = class MessagesFacade {
49850
- constructor(getMessagesUseCase, getMessageUseCase, sendMessageUseCase, downloadAttachmentUseCase, getAttachmentMetadataUseCase) {
49851
- this.getMessagesUseCase = getMessagesUseCase;
49852
- this.getMessageUseCase = getMessageUseCase;
49853
- this.sendMessageUseCase = sendMessageUseCase;
49851
+ constructor(downloadAttachmentUseCase, getAttachmentMetadataUseCase, getMessageUseCase, getMessagesUseCase, markMessageAsReadUseCase, markMessageAsUnreadUseCase, sendMessageUseCase) {
49854
49852
  this.downloadAttachmentUseCase = downloadAttachmentUseCase;
49855
49853
  this.getAttachmentMetadataUseCase = getAttachmentMetadataUseCase;
49854
+ this.getMessageUseCase = getMessageUseCase;
49855
+ this.getMessagesUseCase = getMessagesUseCase;
49856
+ this.markMessageAsReadUseCase = markMessageAsReadUseCase;
49857
+ this.markMessageAsUnreadUseCase = markMessageAsUnreadUseCase;
49858
+ this.sendMessageUseCase = sendMessageUseCase;
49856
49859
  }
49857
49860
  async sendMessage(request) {
49858
49861
  return await this.sendMessageUseCase.execute(request);
@@ -49869,6 +49872,12 @@ let MessagesFacade = class MessagesFacade {
49869
49872
  async getAttachmentMetadata(request) {
49870
49873
  return await this.getAttachmentMetadataUseCase.execute(request);
49871
49874
  }
49875
+ async markMessageAsRead(request) {
49876
+ return await this.markMessageAsReadUseCase.execute(request);
49877
+ }
49878
+ async markMessageAsUnread(request) {
49879
+ return await this.markMessageAsUnreadUseCase.execute(request);
49880
+ }
49872
49881
  };
49873
49882
  exports.MessagesFacade = MessagesFacade;
49874
49883
  exports.MessagesFacade = MessagesFacade = __decorate([
@@ -49877,11 +49886,15 @@ exports.MessagesFacade = MessagesFacade = __decorate([
49877
49886
  __param(2, typescript_ioc_1.Inject),
49878
49887
  __param(3, typescript_ioc_1.Inject),
49879
49888
  __param(4, typescript_ioc_1.Inject),
49880
- __metadata("design:paramtypes", [useCases_1.GetMessagesUseCase,
49889
+ __param(5, typescript_ioc_1.Inject),
49890
+ __param(6, typescript_ioc_1.Inject),
49891
+ __metadata("design:paramtypes", [useCases_1.DownloadAttachmentUseCase,
49892
+ useCases_1.GetAttachmentMetadataUseCase,
49881
49893
  useCases_1.GetMessageUseCase,
49882
- useCases_1.SendMessageUseCase,
49883
- useCases_1.DownloadAttachmentUseCase,
49884
- useCases_1.GetAttachmentMetadataUseCase])
49894
+ useCases_1.GetMessagesUseCase,
49895
+ useCases_1.MarkMessageAsReadUseCase,
49896
+ useCases_1.MarkMessageAsUnreadUseCase,
49897
+ useCases_1.SendMessageUseCase])
49885
49898
  ], MessagesFacade);
49886
49899
  //# sourceMappingURL=MessagesFacade.js.map
49887
49900
 
@@ -51682,17 +51695,17 @@ class Notifications {
51682
51695
  }
51683
51696
  }
51684
51697
  class Attributes {
51685
- isNoIdentityAttribute(attributeId) {
51686
- return new ts_utils_1.ApplicationError("error.runtime.attributes.isNoIdentityAttribute", `Attribute '${attributeId.toString()}' is not an identity attribute.`);
51698
+ isNotRepositoryAttribute(attributeId) {
51699
+ return new ts_utils_1.ApplicationError("error.runtime.attributes.isNotRepositoryAttribute", `Attribute '${attributeId.toString()}' is not a repository attribute.`);
51687
51700
  }
51688
- identityAttributeHasAlreadyBeenSharedWithPeer(repositoryAttributeId, peer, ownSharedIdentityAttributeId) {
51689
- return new ts_utils_1.ApplicationError("error.runtime.attributes.identityAttributeHasAlreadyBeenSharedWithPeer", `Identity attribute '${repositoryAttributeId.toString()}' has already been shared with peer '${peer.toString()}'. Id of shared identity attribute: ${ownSharedIdentityAttributeId.toString()}.`);
51701
+ repositoryAttributeHasAlreadyBeenSharedWithPeer(repositoryAttributeId, peer, ownSharedIdentityAttributeId) {
51702
+ return new ts_utils_1.ApplicationError("error.runtime.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer", `Repository attribute '${repositoryAttributeId.toString()}' has already been shared with peer '${peer.toString()}'. ID of own shared identity attribute: ${ownSharedIdentityAttributeId.toString()}.`);
51690
51703
  }
51691
- anotherVersionOfIdentityAttributeHasAlreadyBeenSharedWithPeer(repositoryAttributeId, peer, ownSharedIdentityAttributeId) {
51692
- return new ts_utils_1.ApplicationError("error.runtime.attributes.anotherVersionOfIdentityAttributeHasAlreadyBeenSharedWithPeer", `Another version of identity attribute '${repositoryAttributeId.toString()}' has already been shared with peer '${peer.toString()}'. Id of previously shared identity attribute: ${ownSharedIdentityAttributeId.toString()}.`);
51704
+ anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer(repositoryAttributeId, peer, ownSharedIdentityAttributeId) {
51705
+ return new ts_utils_1.ApplicationError("error.runtime.attributes.anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer", `Another version of repository attribute '${repositoryAttributeId.toString()}' has already been shared with peer '${peer.toString()}'. ID of previous own shared identity attribute: ${ownSharedIdentityAttributeId.toString()}.`);
51693
51706
  }
51694
- noOtherVersionOfIdentityAttributeHasBeenSharedWithPeerBefore(repositoryAttributeId, peer) {
51695
- return new ts_utils_1.ApplicationError("error.runtime.attributes.noOtherVersionOfIdentityAttributeHasBeenSharedWithPeerBefore", `No other version of identity attribute '${repositoryAttributeId.toString()}' has been shared with peer '${peer.toString()}' before. If you wish to execute an initial sharing of this attribute, use 'ShareIdentityAttribute'.`);
51707
+ noOtherVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore(repositoryAttributeId, peer) {
51708
+ return new ts_utils_1.ApplicationError("error.runtime.attributes.noOtherVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore", `No other version of repository attribute '${repositoryAttributeId.toString()}' has been shared with peer '${peer.toString()}' before. If you wish to execute an initial sharing of this attribute, use 'ShareRepositoryAttribute'.`);
51696
51709
  }
51697
51710
  }
51698
51711
  class RuntimeErrors {
@@ -51799,9 +51812,9 @@ exports.JsonSchema = JsonSchema;
51799
51812
  "use strict";
51800
51813
 
51801
51814
  Object.defineProperty(exports, "__esModule", ({ value: true }));
51802
- exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.SentNotificationRequest = exports.ReceivedNotificationRequest = exports.ProcessNotificationByIdRequest = exports.GetNotificationsRequest = exports.GetNotificationRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.ValidateIQLQueryRequest = exports.SucceedRelationshipAttributeAndNotifyPeerRequest = exports.SucceedIdentityAttributeRequest = exports.ShareIdentityAttributeRequest = exports.NotifyPeerAboutIdentityAttributeSuccessionRequest = exports.GetVersionsOfAttributeRequest = exports.GetSharedVersionsOfIdentityAttributeRequest = exports.GetPeerSharedAttributesRequest = exports.GetOwnSharedAttributesRequest = exports.GetOwnIdentityAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteThirdPartyRelationshipAttributeQueryRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIQLQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.CreateIdentityAttributeRequest = exports.CreateAndShareRelationshipAttributeRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.DiscardOutgoingRequestRequest = exports.CreateOutgoingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CanCreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.GetAttributeListenerRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
51803
- exports.LoadPeerRelationshipTemplateViaSecretRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.CreateTokenQRCodeForOwnTemplateRequest = exports.CreateTokenForOwnTemplateRequest = exports.CreateQRCodeForOwnTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.RevokeRelationshipChangeRequest = exports.RejectRelationshipChangeRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.GetAttributesForRelationshipRequest = exports.CreateRelationshipRequest = exports.AcceptRelationshipChangeRequest = exports.SendMessageRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CheckIdentityRequest = exports.UploadOwnFileValidatableRequest = exports.UploadOwnFileRequest = exports.GetOrLoadFileRequest = exports.GetOrLoadFileViaReferenceRequest = exports.GetOrLoadFileViaSecretRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.CreateTokenQRCodeForFileRequest = exports.CreateTokenForFileRequest = exports.CreateQRCodeForFileRequest = exports.UpdateDeviceRequest = exports.GetDeviceOnboardingInfoRequest = exports.GetDeviceRequest = exports.DeleteDeviceRequest = exports.CreateDeviceOnboardingTokenRequest = exports.CreateDeviceRequest = exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.CreateDeviceChallengeRequest = exports.CreateIdentityChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.SyncEverythingRequest = exports.DownloadAttachmentRequest = exports.SyncDatawalletRequest = exports.RegisterPushNotificationTokenRequest = exports.LoadItemFromTruncatedReferenceRequest = exports.DownloadFileRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingByKeyRequest = void 0;
51804
- exports.LoadPeerTokenRequest = exports.LoadPeerTokenViaSecretRequest = exports.LoadPeerTokenViaReferenceRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.LoadPeerRelationshipTemplateViaReferenceRequest = void 0;
51815
+ exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.SentNotificationRequest = exports.ReceivedNotificationRequest = exports.ProcessNotificationByIdRequest = exports.GetNotificationsRequest = exports.GetNotificationRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.ValidateIQLQueryRequest = exports.SucceedRepositoryAttributeRequest = exports.SucceedRelationshipAttributeAndNotifyPeerRequest = exports.ShareRepositoryAttributeRequest = exports.NotifyPeerAboutRepositoryAttributeSuccessionRequest = exports.GetVersionsOfAttributeRequest = exports.GetSharedVersionsOfRepositoryAttributeRequest = exports.GetRepositoryAttributesRequest = exports.GetPeerSharedAttributesRequest = exports.GetOwnSharedAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteThirdPartyRelationshipAttributeQueryRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIQLQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.CreateRepositoryAttributeRequest = exports.CreateAndShareRelationshipAttributeRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.DiscardOutgoingRequestRequest = exports.CreateOutgoingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CanCreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.GetAttributeListenerRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
51816
+ exports.GetRelationshipTemplateRequest = exports.CreateTokenQRCodeForOwnTemplateRequest = exports.CreateTokenForOwnTemplateRequest = exports.CreateQRCodeForOwnTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.RevokeRelationshipChangeRequest = exports.RejectRelationshipChangeRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.GetAttributesForRelationshipRequest = exports.CreateRelationshipRequest = exports.AcceptRelationshipChangeRequest = exports.SendMessageRequest = exports.MarkMessageAsUnreadRequest = exports.MarkMessageAsReadRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CheckIdentityRequest = exports.UploadOwnFileValidatableRequest = exports.UploadOwnFileRequest = exports.GetOrLoadFileRequest = exports.GetOrLoadFileViaReferenceRequest = exports.GetOrLoadFileViaSecretRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.CreateTokenQRCodeForFileRequest = exports.CreateTokenForFileRequest = exports.CreateQRCodeForFileRequest = exports.UpdateDeviceRequest = exports.GetDeviceOnboardingInfoRequest = exports.GetDeviceRequest = exports.DeleteDeviceRequest = exports.CreateDeviceOnboardingTokenRequest = exports.CreateDeviceRequest = exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.CreateDeviceChallengeRequest = exports.CreateIdentityChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.SyncEverythingRequest = exports.DownloadAttachmentRequest = exports.SyncDatawalletRequest = exports.RegisterPushNotificationTokenRequest = exports.LoadItemFromTruncatedReferenceRequest = exports.DownloadFileRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingByKeyRequest = void 0;
51817
+ exports.LoadPeerTokenRequest = exports.LoadPeerTokenViaSecretRequest = exports.LoadPeerTokenViaReferenceRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.LoadPeerRelationshipTemplateViaReferenceRequest = exports.LoadPeerRelationshipTemplateViaSecretRequest = exports.GetRelationshipTemplatesRequest = void 0;
51805
51818
  exports.LoadPeerTokenAnonymousByIdAndKeyRequest = {
51806
51819
  "$schema": "http://json-schema.org/draft-07/schema#",
51807
51820
  "$ref": "#/definitions/LoadPeerTokenAnonymousByIdAndKeyRequest",
@@ -66345,11 +66358,11 @@ exports.CreateAndShareRelationshipAttributeRequest = {
66345
66358
  }
66346
66359
  }
66347
66360
  };
66348
- exports.CreateIdentityAttributeRequest = {
66361
+ exports.CreateRepositoryAttributeRequest = {
66349
66362
  "$schema": "http://json-schema.org/draft-07/schema#",
66350
- "$ref": "#/definitions/CreateIdentityAttributeRequest",
66363
+ "$ref": "#/definitions/CreateRepositoryAttributeRequest",
66351
66364
  "definitions": {
66352
- "CreateIdentityAttributeRequest": {
66365
+ "CreateRepositoryAttributeRequest": {
66353
66366
  "type": "object",
66354
66367
  "properties": {
66355
66368
  "content": {
@@ -68327,21 +68340,6 @@ exports.GetAttributesRequest = {
68327
68340
  }
68328
68341
  }
68329
68342
  };
68330
- exports.GetOwnIdentityAttributesRequest = {
68331
- "$schema": "http://json-schema.org/draft-07/schema#",
68332
- "$ref": "#/definitions/GetOwnIdentityAttributesRequest",
68333
- "definitions": {
68334
- "GetOwnIdentityAttributesRequest": {
68335
- "type": "object",
68336
- "properties": {
68337
- "onlyLatestVersions": {
68338
- "type": "boolean"
68339
- }
68340
- },
68341
- "additionalProperties": false
68342
- }
68343
- }
68344
- };
68345
68343
  exports.GetOwnSharedAttributesRequest = {
68346
68344
  "$schema": "http://json-schema.org/draft-07/schema#",
68347
68345
  "$ref": "#/definitions/GetOwnSharedAttributesRequest",
@@ -68727,11 +68725,26 @@ exports.GetPeerSharedAttributesRequest = {
68727
68725
  }
68728
68726
  }
68729
68727
  };
68730
- exports.GetSharedVersionsOfIdentityAttributeRequest = {
68728
+ exports.GetRepositoryAttributesRequest = {
68729
+ "$schema": "http://json-schema.org/draft-07/schema#",
68730
+ "$ref": "#/definitions/GetRepositoryAttributesRequest",
68731
+ "definitions": {
68732
+ "GetRepositoryAttributesRequest": {
68733
+ "type": "object",
68734
+ "properties": {
68735
+ "onlyLatestVersions": {
68736
+ "type": "boolean"
68737
+ }
68738
+ },
68739
+ "additionalProperties": false
68740
+ }
68741
+ }
68742
+ };
68743
+ exports.GetSharedVersionsOfRepositoryAttributeRequest = {
68731
68744
  "$schema": "http://json-schema.org/draft-07/schema#",
68732
- "$ref": "#/definitions/GetSharedVersionsOfIdentityAttributeRequest",
68745
+ "$ref": "#/definitions/GetSharedVersionsOfRepositoryAttributeRequest",
68733
68746
  "definitions": {
68734
- "GetSharedVersionsOfIdentityAttributeRequest": {
68747
+ "GetSharedVersionsOfRepositoryAttributeRequest": {
68735
68748
  "type": "object",
68736
68749
  "properties": {
68737
68750
  "attributeId": {
@@ -68784,11 +68797,11 @@ exports.GetVersionsOfAttributeRequest = {
68784
68797
  }
68785
68798
  }
68786
68799
  };
68787
- exports.NotifyPeerAboutIdentityAttributeSuccessionRequest = {
68800
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionRequest = {
68788
68801
  "$schema": "http://json-schema.org/draft-07/schema#",
68789
- "$ref": "#/definitions/NotifyPeerAboutIdentityAttributeSuccessionRequest",
68802
+ "$ref": "#/definitions/NotifyPeerAboutRepositoryAttributeSuccessionRequest",
68790
68803
  "definitions": {
68791
- "NotifyPeerAboutIdentityAttributeSuccessionRequest": {
68804
+ "NotifyPeerAboutRepositoryAttributeSuccessionRequest": {
68792
68805
  "type": "object",
68793
68806
  "properties": {
68794
68807
  "attributeId": {
@@ -68814,11 +68827,11 @@ exports.NotifyPeerAboutIdentityAttributeSuccessionRequest = {
68814
68827
  }
68815
68828
  }
68816
68829
  };
68817
- exports.ShareIdentityAttributeRequest = {
68830
+ exports.ShareRepositoryAttributeRequest = {
68818
68831
  "$schema": "http://json-schema.org/draft-07/schema#",
68819
- "$ref": "#/definitions/ShareIdentityAttributeRequest",
68832
+ "$ref": "#/definitions/ShareRepositoryAttributeRequest",
68820
68833
  "definitions": {
68821
- "ShareIdentityAttributeRequest": {
68834
+ "ShareRepositoryAttributeRequest": {
68822
68835
  "type": "object",
68823
68836
  "properties": {
68824
68837
  "attributeId": {
@@ -68885,27 +68898,21 @@ exports.ShareIdentityAttributeRequest = {
68885
68898
  }
68886
68899
  }
68887
68900
  };
68888
- exports.SucceedIdentityAttributeRequest = {
68901
+ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
68889
68902
  "$schema": "http://json-schema.org/draft-07/schema#",
68890
- "$ref": "#/definitions/SucceedIdentityAttributeRequest",
68903
+ "$ref": "#/definitions/SucceedRelationshipAttributeAndNotifyPeerRequest",
68891
68904
  "definitions": {
68892
- "SucceedIdentityAttributeRequest": {
68905
+ "SucceedRelationshipAttributeAndNotifyPeerRequest": {
68893
68906
  "type": "object",
68894
68907
  "properties": {
68895
68908
  "predecessorId": {
68896
- "type": "string"
68909
+ "$ref": "#/definitions/AttributeIdString"
68897
68910
  },
68898
68911
  "successorContent": {
68899
68912
  "type": "object",
68900
68913
  "properties": {
68901
68914
  "value": {
68902
- "$ref": "#/definitions/AttributeValues.Identity.Json"
68903
- },
68904
- "tags": {
68905
- "type": "array",
68906
- "items": {
68907
- "type": "string"
68908
- }
68915
+ "$ref": "#/definitions/AttributeValues.Relationship.Json"
68909
68916
  },
68910
68917
  "validFrom": {
68911
68918
  "$ref": "#/definitions/ISO8601DateTimeString"
@@ -68926,86 +68933,62 @@ exports.SucceedIdentityAttributeRequest = {
68926
68933
  ],
68927
68934
  "additionalProperties": false
68928
68935
  },
68929
- "AttributeValues.Identity.Json": {
68930
- "anyOf": [
68931
- {
68932
- "$ref": "#/definitions/AttributeValues.Identity.Editable.Json"
68933
- },
68934
- {
68935
- "$ref": "#/definitions/AttributeValues.Identity.Uneditable.Json"
68936
- }
68937
- ]
68936
+ "AttributeIdString": {
68937
+ "type": "string",
68938
+ "pattern": "ATT[A-Za-z0-9]{17}"
68938
68939
  },
68939
- "AttributeValues.Identity.Editable.Json": {
68940
+ "AttributeValues.Relationship.Json": {
68940
68941
  "anyOf": [
68941
68942
  {
68942
- "$ref": "#/definitions/AffiliationJSON"
68943
- },
68944
- {
68945
- "$ref": "#/definitions/BirthDateJSON"
68946
- },
68947
- {
68948
- "$ref": "#/definitions/BirthNameJSON"
68949
- },
68950
- {
68951
- "$ref": "#/definitions/BirthPlaceJSON"
68952
- },
68953
- {
68954
- "$ref": "#/definitions/CitizenshipJSON"
68955
- },
68956
- {
68957
- "$ref": "#/definitions/CommunicationLanguageJSON"
68958
- },
68959
- {
68960
- "$ref": "#/definitions/DeliveryBoxAddressJSON"
68943
+ "$ref": "#/definitions/ProprietaryBooleanJSON"
68961
68944
  },
68962
68945
  {
68963
- "$ref": "#/definitions/DisplayNameJSON"
68946
+ "$ref": "#/definitions/ProprietaryCountryJSON"
68964
68947
  },
68965
68948
  {
68966
- "$ref": "#/definitions/EMailAddressJSON"
68949
+ "$ref": "#/definitions/ProprietaryEMailAddressJSON"
68967
68950
  },
68968
68951
  {
68969
- "$ref": "#/definitions/FaxNumberJSON"
68952
+ "$ref": "#/definitions/ProprietaryFileReferenceJSON"
68970
68953
  },
68971
68954
  {
68972
- "$ref": "#/definitions/IdentityFileReferenceJSON"
68955
+ "$ref": "#/definitions/ProprietaryFloatJSON"
68973
68956
  },
68974
68957
  {
68975
- "$ref": "#/definitions/JobTitleJSON"
68958
+ "$ref": "#/definitions/ProprietaryHEXColorJSON"
68976
68959
  },
68977
68960
  {
68978
- "$ref": "#/definitions/NationalityJSON"
68961
+ "$ref": "#/definitions/ProprietaryIntegerJSON"
68979
68962
  },
68980
68963
  {
68981
- "$ref": "#/definitions/PersonNameJSON"
68964
+ "$ref": "#/definitions/ProprietaryLanguageJSON"
68982
68965
  },
68983
68966
  {
68984
- "$ref": "#/definitions/PhoneNumberJSON"
68967
+ "$ref": "#/definitions/ProprietaryPhoneNumberJSON"
68985
68968
  },
68986
68969
  {
68987
- "$ref": "#/definitions/PostOfficeBoxAddressJSON"
68970
+ "$ref": "#/definitions/ProprietaryStringJSON"
68988
68971
  },
68989
68972
  {
68990
- "$ref": "#/definitions/PseudonymJSON"
68973
+ "$ref": "#/definitions/ProprietaryURLJSON"
68991
68974
  },
68992
68975
  {
68993
- "$ref": "#/definitions/SexJSON"
68976
+ "$ref": "#/definitions/ProprietaryJSONJSON"
68994
68977
  },
68995
68978
  {
68996
- "$ref": "#/definitions/StreetAddressJSON"
68979
+ "$ref": "#/definitions/ProprietaryXMLJSON"
68997
68980
  },
68998
68981
  {
68999
- "$ref": "#/definitions/WebsiteJSON"
68982
+ "$ref": "#/definitions/ConsentJSON"
69000
68983
  }
69001
68984
  ]
69002
68985
  },
69003
- "AffiliationJSON": {
68986
+ "ProprietaryBooleanJSON": {
69004
68987
  "type": "object",
69005
68988
  "properties": {
69006
68989
  "@type": {
69007
68990
  "type": "string",
69008
- "const": "Affiliation"
68991
+ "const": "ProprietaryBoolean"
69009
68992
  },
69010
68993
  "@context": {
69011
68994
  "type": "string"
@@ -69013,82 +68996,99 @@ exports.SucceedIdentityAttributeRequest = {
69013
68996
  "@version": {
69014
68997
  "type": "string"
69015
68998
  },
69016
- "organization": {
69017
- "type": "string"
68999
+ "value": {
69000
+ "type": "boolean"
69018
69001
  },
69019
- "role": {
69002
+ "title": {
69020
69003
  "type": "string"
69021
69004
  },
69022
- "unit": {
69005
+ "description": {
69023
69006
  "type": "string"
69007
+ },
69008
+ "valueHintsOverride": {
69009
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69024
69010
  }
69025
69011
  },
69026
69012
  "required": [
69027
69013
  "@type",
69028
- "organization"
69014
+ "title",
69015
+ "value"
69029
69016
  ],
69030
69017
  "additionalProperties": false
69031
69018
  },
69032
- "BirthDateJSON": {
69019
+ "ValueHintsOverrideJSON": {
69033
69020
  "type": "object",
69021
+ "additionalProperties": false,
69034
69022
  "properties": {
69035
69023
  "@type": {
69036
69024
  "type": "string",
69037
- "const": "BirthDate"
69038
- },
69039
- "@context": {
69040
- "type": "string"
69025
+ "const": "ValueHints"
69041
69026
  },
69042
- "@version": {
69027
+ "editHelp": {
69043
69028
  "type": "string"
69044
69029
  },
69045
- "day": {
69030
+ "min": {
69046
69031
  "type": "number"
69047
69032
  },
69048
- "month": {
69033
+ "max": {
69049
69034
  "type": "number"
69050
69035
  },
69051
- "year": {
69052
- "type": "number"
69053
- }
69054
- },
69055
- "required": [
69056
- "@type",
69057
- "day",
69058
- "month",
69059
- "year"
69060
- ],
69061
- "additionalProperties": false
69062
- },
69063
- "BirthNameJSON": {
69064
- "type": "object",
69065
- "properties": {
69066
- "@type": {
69067
- "type": "string",
69068
- "const": "BirthName"
69036
+ "pattern": {
69037
+ "type": "string"
69038
+ },
69039
+ "values": {
69040
+ "type": "array",
69041
+ "items": {
69042
+ "$ref": "#/definitions/ValueHintsValueJSON"
69043
+ }
69044
+ },
69045
+ "defaultValue": {
69046
+ "type": [
69047
+ "string",
69048
+ "number",
69049
+ "boolean"
69050
+ ]
69051
+ },
69052
+ "propertyHints": {
69053
+ "type": "object",
69054
+ "additionalProperties": {
69055
+ "$ref": "#/definitions/ValueHintsJSON"
69056
+ }
69069
69057
  },
69070
69058
  "@context": {
69071
69059
  "type": "string"
69072
69060
  },
69073
69061
  "@version": {
69074
69062
  "type": "string"
69063
+ }
69064
+ }
69065
+ },
69066
+ "ValueHintsValueJSON": {
69067
+ "type": "object",
69068
+ "properties": {
69069
+ "key": {
69070
+ "type": [
69071
+ "string",
69072
+ "number",
69073
+ "boolean"
69074
+ ]
69075
69075
  },
69076
- "value": {
69076
+ "displayName": {
69077
69077
  "type": "string"
69078
69078
  }
69079
69079
  },
69080
69080
  "required": [
69081
- "@type",
69082
- "value"
69081
+ "key",
69082
+ "displayName"
69083
69083
  ],
69084
69084
  "additionalProperties": false
69085
69085
  },
69086
- "BirthPlaceJSON": {
69086
+ "ValueHintsJSON": {
69087
69087
  "type": "object",
69088
69088
  "properties": {
69089
69089
  "@type": {
69090
69090
  "type": "string",
69091
- "const": "BirthPlace"
69091
+ "const": "ValueHints"
69092
69092
  },
69093
69093
  "@context": {
69094
69094
  "type": "string"
@@ -69096,29 +69096,49 @@ exports.SucceedIdentityAttributeRequest = {
69096
69096
  "@version": {
69097
69097
  "type": "string"
69098
69098
  },
69099
- "city": {
69099
+ "editHelp": {
69100
69100
  "type": "string"
69101
69101
  },
69102
- "country": {
69103
- "type": "string"
69102
+ "min": {
69103
+ "type": "number"
69104
69104
  },
69105
- "state": {
69105
+ "max": {
69106
+ "type": "number"
69107
+ },
69108
+ "pattern": {
69106
69109
  "type": "string"
69110
+ },
69111
+ "values": {
69112
+ "type": "array",
69113
+ "items": {
69114
+ "$ref": "#/definitions/ValueHintsValueJSON"
69115
+ }
69116
+ },
69117
+ "defaultValue": {
69118
+ "type": [
69119
+ "string",
69120
+ "number",
69121
+ "boolean"
69122
+ ]
69123
+ },
69124
+ "propertyHints": {
69125
+ "type": "object",
69126
+ "additionalProperties": {
69127
+ "$ref": "#/definitions/ValueHintsJSON"
69128
+ }
69107
69129
  }
69108
69130
  },
69109
69131
  "required": [
69110
- "@type",
69111
- "city",
69112
- "country"
69132
+ "@type"
69113
69133
  ],
69114
69134
  "additionalProperties": false
69115
69135
  },
69116
- "CitizenshipJSON": {
69136
+ "ProprietaryCountryJSON": {
69117
69137
  "type": "object",
69118
69138
  "properties": {
69119
69139
  "@type": {
69120
69140
  "type": "string",
69121
- "const": "Citizenship"
69141
+ "const": "ProprietaryCountry"
69122
69142
  },
69123
69143
  "@context": {
69124
69144
  "type": "string"
@@ -69128,43 +69148,30 @@ exports.SucceedIdentityAttributeRequest = {
69128
69148
  },
69129
69149
  "value": {
69130
69150
  "type": "string"
69131
- }
69132
- },
69133
- "required": [
69134
- "@type",
69135
- "value"
69136
- ],
69137
- "additionalProperties": false
69138
- },
69139
- "CommunicationLanguageJSON": {
69140
- "type": "object",
69141
- "properties": {
69142
- "@type": {
69143
- "type": "string",
69144
- "const": "CommunicationLanguage"
69145
69151
  },
69146
- "@context": {
69152
+ "title": {
69147
69153
  "type": "string"
69148
69154
  },
69149
- "@version": {
69155
+ "description": {
69150
69156
  "type": "string"
69151
69157
  },
69152
- "value": {
69153
- "type": "string"
69158
+ "valueHintsOverride": {
69159
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69154
69160
  }
69155
69161
  },
69156
69162
  "required": [
69157
69163
  "@type",
69164
+ "title",
69158
69165
  "value"
69159
69166
  ],
69160
69167
  "additionalProperties": false
69161
69168
  },
69162
- "DeliveryBoxAddressJSON": {
69169
+ "ProprietaryEMailAddressJSON": {
69163
69170
  "type": "object",
69164
69171
  "properties": {
69165
69172
  "@type": {
69166
69173
  "type": "string",
69167
- "const": "DeliveryBoxAddress"
69174
+ "const": "ProprietaryEMailAddress"
69168
69175
  },
69169
69176
  "@context": {
69170
69177
  "type": "string"
@@ -69172,48 +69179,32 @@ exports.SucceedIdentityAttributeRequest = {
69172
69179
  "@version": {
69173
69180
  "type": "string"
69174
69181
  },
69175
- "recipient": {
69176
- "type": "string"
69177
- },
69178
- "userId": {
69179
- "type": "string"
69180
- },
69181
- "deliveryBoxId": {
69182
- "type": "string"
69183
- },
69184
- "zipCode": {
69185
- "type": "string"
69186
- },
69187
- "city": {
69182
+ "value": {
69188
69183
  "type": "string"
69189
69184
  },
69190
- "country": {
69185
+ "title": {
69191
69186
  "type": "string"
69192
69187
  },
69193
- "phoneNumber": {
69188
+ "description": {
69194
69189
  "type": "string"
69195
69190
  },
69196
- "state": {
69197
- "type": "string"
69191
+ "valueHintsOverride": {
69192
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69198
69193
  }
69199
69194
  },
69200
69195
  "required": [
69201
69196
  "@type",
69202
- "city",
69203
- "country",
69204
- "deliveryBoxId",
69205
- "recipient",
69206
- "userId",
69207
- "zipCode"
69197
+ "title",
69198
+ "value"
69208
69199
  ],
69209
69200
  "additionalProperties": false
69210
69201
  },
69211
- "DisplayNameJSON": {
69202
+ "ProprietaryFileReferenceJSON": {
69212
69203
  "type": "object",
69213
69204
  "properties": {
69214
69205
  "@type": {
69215
69206
  "type": "string",
69216
- "const": "DisplayName"
69207
+ "const": "ProprietaryFileReference"
69217
69208
  },
69218
69209
  "@context": {
69219
69210
  "type": "string"
@@ -69223,43 +69214,30 @@ exports.SucceedIdentityAttributeRequest = {
69223
69214
  },
69224
69215
  "value": {
69225
69216
  "type": "string"
69226
- }
69227
- },
69228
- "required": [
69229
- "@type",
69230
- "value"
69231
- ],
69232
- "additionalProperties": false
69233
- },
69234
- "EMailAddressJSON": {
69235
- "type": "object",
69236
- "properties": {
69237
- "@type": {
69238
- "type": "string",
69239
- "const": "EMailAddress"
69240
69217
  },
69241
- "@context": {
69218
+ "title": {
69242
69219
  "type": "string"
69243
69220
  },
69244
- "@version": {
69221
+ "description": {
69245
69222
  "type": "string"
69246
69223
  },
69247
- "value": {
69248
- "type": "string"
69224
+ "valueHintsOverride": {
69225
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69249
69226
  }
69250
69227
  },
69251
69228
  "required": [
69252
69229
  "@type",
69230
+ "title",
69253
69231
  "value"
69254
69232
  ],
69255
69233
  "additionalProperties": false
69256
69234
  },
69257
- "FaxNumberJSON": {
69235
+ "ProprietaryFloatJSON": {
69258
69236
  "type": "object",
69259
69237
  "properties": {
69260
69238
  "@type": {
69261
69239
  "type": "string",
69262
- "const": "FaxNumber"
69240
+ "const": "ProprietaryFloat"
69263
69241
  },
69264
69242
  "@context": {
69265
69243
  "type": "string"
@@ -69268,21 +69246,31 @@ exports.SucceedIdentityAttributeRequest = {
69268
69246
  "type": "string"
69269
69247
  },
69270
69248
  "value": {
69249
+ "type": "number"
69250
+ },
69251
+ "title": {
69252
+ "type": "string"
69253
+ },
69254
+ "description": {
69271
69255
  "type": "string"
69256
+ },
69257
+ "valueHintsOverride": {
69258
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69272
69259
  }
69273
69260
  },
69274
69261
  "required": [
69275
69262
  "@type",
69263
+ "title",
69276
69264
  "value"
69277
69265
  ],
69278
69266
  "additionalProperties": false
69279
69267
  },
69280
- "IdentityFileReferenceJSON": {
69268
+ "ProprietaryHEXColorJSON": {
69281
69269
  "type": "object",
69282
69270
  "properties": {
69283
69271
  "@type": {
69284
69272
  "type": "string",
69285
- "const": "IdentityFileReference"
69273
+ "const": "ProprietaryHEXColor"
69286
69274
  },
69287
69275
  "@context": {
69288
69276
  "type": "string"
@@ -69292,43 +69280,30 @@ exports.SucceedIdentityAttributeRequest = {
69292
69280
  },
69293
69281
  "value": {
69294
69282
  "type": "string"
69295
- }
69296
- },
69297
- "required": [
69298
- "@type",
69299
- "value"
69300
- ],
69301
- "additionalProperties": false
69302
- },
69303
- "JobTitleJSON": {
69304
- "type": "object",
69305
- "properties": {
69306
- "@type": {
69307
- "type": "string",
69308
- "const": "JobTitle"
69309
69283
  },
69310
- "@context": {
69284
+ "title": {
69311
69285
  "type": "string"
69312
69286
  },
69313
- "@version": {
69287
+ "description": {
69314
69288
  "type": "string"
69315
69289
  },
69316
- "value": {
69317
- "type": "string"
69290
+ "valueHintsOverride": {
69291
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69318
69292
  }
69319
69293
  },
69320
69294
  "required": [
69321
69295
  "@type",
69296
+ "title",
69322
69297
  "value"
69323
69298
  ],
69324
69299
  "additionalProperties": false
69325
69300
  },
69326
- "NationalityJSON": {
69301
+ "ProprietaryIntegerJSON": {
69327
69302
  "type": "object",
69328
69303
  "properties": {
69329
69304
  "@type": {
69330
69305
  "type": "string",
69331
- "const": "Nationality"
69306
+ "const": "ProprietaryInteger"
69332
69307
  },
69333
69308
  "@context": {
69334
69309
  "type": "string"
@@ -69337,21 +69312,31 @@ exports.SucceedIdentityAttributeRequest = {
69337
69312
  "type": "string"
69338
69313
  },
69339
69314
  "value": {
69315
+ "type": "number"
69316
+ },
69317
+ "title": {
69318
+ "type": "string"
69319
+ },
69320
+ "description": {
69340
69321
  "type": "string"
69322
+ },
69323
+ "valueHintsOverride": {
69324
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69341
69325
  }
69342
69326
  },
69343
69327
  "required": [
69344
69328
  "@type",
69329
+ "title",
69345
69330
  "value"
69346
69331
  ],
69347
69332
  "additionalProperties": false
69348
69333
  },
69349
- "PersonNameJSON": {
69334
+ "ProprietaryLanguageJSON": {
69350
69335
  "type": "object",
69351
69336
  "properties": {
69352
69337
  "@type": {
69353
69338
  "type": "string",
69354
- "const": "PersonName"
69339
+ "const": "ProprietaryLanguage"
69355
69340
  },
69356
69341
  "@context": {
69357
69342
  "type": "string"
@@ -69359,35 +69344,32 @@ exports.SucceedIdentityAttributeRequest = {
69359
69344
  "@version": {
69360
69345
  "type": "string"
69361
69346
  },
69362
- "givenName": {
69363
- "type": "string"
69364
- },
69365
- "middleName": {
69347
+ "value": {
69366
69348
  "type": "string"
69367
69349
  },
69368
- "surname": {
69350
+ "title": {
69369
69351
  "type": "string"
69370
69352
  },
69371
- "honorificSuffix": {
69353
+ "description": {
69372
69354
  "type": "string"
69373
69355
  },
69374
- "honorificPrefix": {
69375
- "type": "string"
69356
+ "valueHintsOverride": {
69357
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69376
69358
  }
69377
69359
  },
69378
69360
  "required": [
69379
69361
  "@type",
69380
- "givenName",
69381
- "surname"
69362
+ "title",
69363
+ "value"
69382
69364
  ],
69383
69365
  "additionalProperties": false
69384
69366
  },
69385
- "PhoneNumberJSON": {
69367
+ "ProprietaryPhoneNumberJSON": {
69386
69368
  "type": "object",
69387
69369
  "properties": {
69388
69370
  "@type": {
69389
69371
  "type": "string",
69390
- "const": "PhoneNumber"
69372
+ "const": "ProprietaryPhoneNumber"
69391
69373
  },
69392
69374
  "@context": {
69393
69375
  "type": "string"
@@ -69397,20 +69379,30 @@ exports.SucceedIdentityAttributeRequest = {
69397
69379
  },
69398
69380
  "value": {
69399
69381
  "type": "string"
69382
+ },
69383
+ "title": {
69384
+ "type": "string"
69385
+ },
69386
+ "description": {
69387
+ "type": "string"
69388
+ },
69389
+ "valueHintsOverride": {
69390
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69400
69391
  }
69401
69392
  },
69402
69393
  "required": [
69403
69394
  "@type",
69395
+ "title",
69404
69396
  "value"
69405
69397
  ],
69406
69398
  "additionalProperties": false
69407
69399
  },
69408
- "PostOfficeBoxAddressJSON": {
69400
+ "ProprietaryStringJSON": {
69409
69401
  "type": "object",
69410
69402
  "properties": {
69411
69403
  "@type": {
69412
69404
  "type": "string",
69413
- "const": "PostOfficeBoxAddress"
69405
+ "const": "ProprietaryString"
69414
69406
  },
69415
69407
  "@context": {
69416
69408
  "type": "string"
@@ -69418,41 +69410,32 @@ exports.SucceedIdentityAttributeRequest = {
69418
69410
  "@version": {
69419
69411
  "type": "string"
69420
69412
  },
69421
- "recipient": {
69422
- "type": "string"
69423
- },
69424
- "boxId": {
69425
- "type": "string"
69426
- },
69427
- "zipCode": {
69413
+ "value": {
69428
69414
  "type": "string"
69429
69415
  },
69430
- "city": {
69416
+ "title": {
69431
69417
  "type": "string"
69432
69418
  },
69433
- "country": {
69419
+ "description": {
69434
69420
  "type": "string"
69435
69421
  },
69436
- "state": {
69437
- "type": "string"
69422
+ "valueHintsOverride": {
69423
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69438
69424
  }
69439
69425
  },
69440
69426
  "required": [
69441
69427
  "@type",
69442
- "boxId",
69443
- "city",
69444
- "country",
69445
- "recipient",
69446
- "zipCode"
69428
+ "title",
69429
+ "value"
69447
69430
  ],
69448
69431
  "additionalProperties": false
69449
69432
  },
69450
- "PseudonymJSON": {
69433
+ "ProprietaryURLJSON": {
69451
69434
  "type": "object",
69452
69435
  "properties": {
69453
69436
  "@type": {
69454
69437
  "type": "string",
69455
- "const": "Pseudonym"
69438
+ "const": "ProprietaryURL"
69456
69439
  },
69457
69440
  "@context": {
69458
69441
  "type": "string"
@@ -69462,20 +69445,30 @@ exports.SucceedIdentityAttributeRequest = {
69462
69445
  },
69463
69446
  "value": {
69464
69447
  "type": "string"
69448
+ },
69449
+ "title": {
69450
+ "type": "string"
69451
+ },
69452
+ "description": {
69453
+ "type": "string"
69454
+ },
69455
+ "valueHintsOverride": {
69456
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69465
69457
  }
69466
69458
  },
69467
69459
  "required": [
69468
69460
  "@type",
69461
+ "title",
69469
69462
  "value"
69470
69463
  ],
69471
69464
  "additionalProperties": false
69472
69465
  },
69473
- "SexJSON": {
69466
+ "ProprietaryJSONJSON": {
69474
69467
  "type": "object",
69475
69468
  "properties": {
69476
69469
  "@type": {
69477
69470
  "type": "string",
69478
- "const": "Sex"
69471
+ "const": "ProprietaryJSON"
69479
69472
  },
69480
69473
  "@context": {
69481
69474
  "type": "string"
@@ -69483,22 +69476,27 @@ exports.SucceedIdentityAttributeRequest = {
69483
69476
  "@version": {
69484
69477
  "type": "string"
69485
69478
  },
69486
- "value": {
69479
+ "title": {
69487
69480
  "type": "string"
69488
- }
69481
+ },
69482
+ "description": {
69483
+ "type": "string"
69484
+ },
69485
+ "value": {}
69489
69486
  },
69490
69487
  "required": [
69491
69488
  "@type",
69489
+ "title",
69492
69490
  "value"
69493
69491
  ],
69494
69492
  "additionalProperties": false
69495
69493
  },
69496
- "StreetAddressJSON": {
69494
+ "ProprietaryXMLJSON": {
69497
69495
  "type": "object",
69498
69496
  "properties": {
69499
69497
  "@type": {
69500
69498
  "type": "string",
69501
- "const": "StreetAddress"
69499
+ "const": "ProprietaryXML"
69502
69500
  },
69503
69501
  "@context": {
69504
69502
  "type": "string"
@@ -69506,45 +69504,34 @@ exports.SucceedIdentityAttributeRequest = {
69506
69504
  "@version": {
69507
69505
  "type": "string"
69508
69506
  },
69509
- "recipient": {
69510
- "type": "string"
69511
- },
69512
- "street": {
69513
- "type": "string"
69514
- },
69515
- "houseNo": {
69507
+ "value": {
69516
69508
  "type": "string"
69517
69509
  },
69518
- "zipCode": {
69510
+ "title": {
69519
69511
  "type": "string"
69520
69512
  },
69521
- "city": {
69513
+ "description": {
69522
69514
  "type": "string"
69523
69515
  },
69524
- "country": {
69525
- "type": "string"
69516
+ "valueHintsOverride": {
69517
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69526
69518
  },
69527
- "state": {
69519
+ "schemaURL": {
69528
69520
  "type": "string"
69529
69521
  }
69530
69522
  },
69531
69523
  "required": [
69532
69524
  "@type",
69533
- "city",
69534
- "country",
69535
- "houseNo",
69536
- "recipient",
69537
- "street",
69538
- "zipCode"
69525
+ "title",
69526
+ "value"
69539
69527
  ],
69540
69528
  "additionalProperties": false
69541
69529
  },
69542
- "WebsiteJSON": {
69530
+ "ConsentJSON": {
69543
69531
  "type": "object",
69544
69532
  "properties": {
69545
69533
  "@type": {
69546
- "type": "string",
69547
- "const": "Website"
69534
+ "type": "string"
69548
69535
  },
69549
69536
  "@context": {
69550
69537
  "type": "string"
@@ -69552,89 +69539,147 @@ exports.SucceedIdentityAttributeRequest = {
69552
69539
  "@version": {
69553
69540
  "type": "string"
69554
69541
  },
69555
- "value": {
69542
+ "consent": {
69543
+ "type": "string"
69544
+ },
69545
+ "link": {
69556
69546
  "type": "string"
69557
69547
  }
69558
69548
  },
69559
69549
  "required": [
69560
69550
  "@type",
69561
- "value"
69551
+ "consent"
69562
69552
  ],
69563
69553
  "additionalProperties": false
69564
69554
  },
69565
- "AttributeValues.Identity.Uneditable.Json": {
69555
+ "ISO8601DateTimeString": {
69556
+ "type": "string",
69557
+ "errorMessage": "must match ISO8601 datetime format",
69558
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
69559
+ }
69560
+ }
69561
+ };
69562
+ exports.SucceedRepositoryAttributeRequest = {
69563
+ "$schema": "http://json-schema.org/draft-07/schema#",
69564
+ "$ref": "#/definitions/SucceedRepositoryAttributeRequest",
69565
+ "definitions": {
69566
+ "SucceedRepositoryAttributeRequest": {
69567
+ "type": "object",
69568
+ "properties": {
69569
+ "predecessorId": {
69570
+ "type": "string"
69571
+ },
69572
+ "successorContent": {
69573
+ "type": "object",
69574
+ "properties": {
69575
+ "value": {
69576
+ "$ref": "#/definitions/AttributeValues.Identity.Json"
69577
+ },
69578
+ "tags": {
69579
+ "type": "array",
69580
+ "items": {
69581
+ "type": "string"
69582
+ }
69583
+ },
69584
+ "validFrom": {
69585
+ "$ref": "#/definitions/ISO8601DateTimeString"
69586
+ },
69587
+ "validTo": {
69588
+ "$ref": "#/definitions/ISO8601DateTimeString"
69589
+ }
69590
+ },
69591
+ "required": [
69592
+ "value"
69593
+ ],
69594
+ "additionalProperties": false
69595
+ }
69596
+ },
69597
+ "required": [
69598
+ "predecessorId",
69599
+ "successorContent"
69600
+ ],
69601
+ "additionalProperties": false
69602
+ },
69603
+ "AttributeValues.Identity.Json": {
69566
69604
  "anyOf": [
69567
69605
  {
69568
- "$ref": "#/definitions/AffiliationOrganizationJSON"
69606
+ "$ref": "#/definitions/AttributeValues.Identity.Editable.Json"
69569
69607
  },
69570
69608
  {
69571
- "$ref": "#/definitions/AffiliationRoleJSON"
69609
+ "$ref": "#/definitions/AttributeValues.Identity.Uneditable.Json"
69610
+ }
69611
+ ]
69612
+ },
69613
+ "AttributeValues.Identity.Editable.Json": {
69614
+ "anyOf": [
69615
+ {
69616
+ "$ref": "#/definitions/AffiliationJSON"
69572
69617
  },
69573
69618
  {
69574
- "$ref": "#/definitions/AffiliationUnitJSON"
69619
+ "$ref": "#/definitions/BirthDateJSON"
69575
69620
  },
69576
69621
  {
69577
- "$ref": "#/definitions/BirthCityJSON"
69622
+ "$ref": "#/definitions/BirthNameJSON"
69578
69623
  },
69579
69624
  {
69580
- "$ref": "#/definitions/BirthCountryJSON"
69625
+ "$ref": "#/definitions/BirthPlaceJSON"
69581
69626
  },
69582
69627
  {
69583
- "$ref": "#/definitions/BirthDayJSON"
69628
+ "$ref": "#/definitions/CitizenshipJSON"
69584
69629
  },
69585
69630
  {
69586
- "$ref": "#/definitions/BirthMonthJSON"
69631
+ "$ref": "#/definitions/CommunicationLanguageJSON"
69587
69632
  },
69588
69633
  {
69589
- "$ref": "#/definitions/BirthStateJSON"
69634
+ "$ref": "#/definitions/DeliveryBoxAddressJSON"
69590
69635
  },
69591
69636
  {
69592
- "$ref": "#/definitions/BirthYearJSON"
69637
+ "$ref": "#/definitions/DisplayNameJSON"
69593
69638
  },
69594
69639
  {
69595
- "$ref": "#/definitions/CityJSON"
69640
+ "$ref": "#/definitions/EMailAddressJSON"
69596
69641
  },
69597
69642
  {
69598
- "$ref": "#/definitions/CountryJSON"
69643
+ "$ref": "#/definitions/FaxNumberJSON"
69599
69644
  },
69600
69645
  {
69601
- "$ref": "#/definitions/GivenNameJSON"
69646
+ "$ref": "#/definitions/IdentityFileReferenceJSON"
69602
69647
  },
69603
69648
  {
69604
- "$ref": "#/definitions/HonorificPrefixJSON"
69649
+ "$ref": "#/definitions/JobTitleJSON"
69605
69650
  },
69606
69651
  {
69607
- "$ref": "#/definitions/HonorificSuffixJSON"
69652
+ "$ref": "#/definitions/NationalityJSON"
69608
69653
  },
69609
69654
  {
69610
- "$ref": "#/definitions/HouseNumberJSON"
69655
+ "$ref": "#/definitions/PersonNameJSON"
69611
69656
  },
69612
69657
  {
69613
- "$ref": "#/definitions/MiddleNameJSON"
69658
+ "$ref": "#/definitions/PhoneNumberJSON"
69614
69659
  },
69615
69660
  {
69616
- "$ref": "#/definitions/SchematizedXMLJSON"
69661
+ "$ref": "#/definitions/PostOfficeBoxAddressJSON"
69617
69662
  },
69618
69663
  {
69619
- "$ref": "#/definitions/StateJSON"
69664
+ "$ref": "#/definitions/PseudonymJSON"
69620
69665
  },
69621
69666
  {
69622
- "$ref": "#/definitions/StreetJSON"
69667
+ "$ref": "#/definitions/SexJSON"
69623
69668
  },
69624
69669
  {
69625
- "$ref": "#/definitions/SurnameJSON"
69670
+ "$ref": "#/definitions/StreetAddressJSON"
69626
69671
  },
69627
69672
  {
69628
- "$ref": "#/definitions/ZipCodeJSON"
69673
+ "$ref": "#/definitions/WebsiteJSON"
69629
69674
  }
69630
69675
  ]
69631
69676
  },
69632
- "AffiliationOrganizationJSON": {
69677
+ "AffiliationJSON": {
69633
69678
  "type": "object",
69634
69679
  "properties": {
69635
69680
  "@type": {
69636
69681
  "type": "string",
69637
- "const": "AffiliationOrganization"
69682
+ "const": "Affiliation"
69638
69683
  },
69639
69684
  "@context": {
69640
69685
  "type": "string"
@@ -69642,22 +69687,28 @@ exports.SucceedIdentityAttributeRequest = {
69642
69687
  "@version": {
69643
69688
  "type": "string"
69644
69689
  },
69645
- "value": {
69690
+ "organization": {
69691
+ "type": "string"
69692
+ },
69693
+ "role": {
69694
+ "type": "string"
69695
+ },
69696
+ "unit": {
69646
69697
  "type": "string"
69647
69698
  }
69648
69699
  },
69649
69700
  "required": [
69650
69701
  "@type",
69651
- "value"
69702
+ "organization"
69652
69703
  ],
69653
69704
  "additionalProperties": false
69654
69705
  },
69655
- "AffiliationRoleJSON": {
69706
+ "BirthDateJSON": {
69656
69707
  "type": "object",
69657
69708
  "properties": {
69658
69709
  "@type": {
69659
69710
  "type": "string",
69660
- "const": "AffiliationRole"
69711
+ "const": "BirthDate"
69661
69712
  },
69662
69713
  "@context": {
69663
69714
  "type": "string"
@@ -69665,22 +69716,30 @@ exports.SucceedIdentityAttributeRequest = {
69665
69716
  "@version": {
69666
69717
  "type": "string"
69667
69718
  },
69668
- "value": {
69669
- "type": "string"
69719
+ "day": {
69720
+ "type": "number"
69721
+ },
69722
+ "month": {
69723
+ "type": "number"
69724
+ },
69725
+ "year": {
69726
+ "type": "number"
69670
69727
  }
69671
69728
  },
69672
69729
  "required": [
69673
69730
  "@type",
69674
- "value"
69731
+ "day",
69732
+ "month",
69733
+ "year"
69675
69734
  ],
69676
69735
  "additionalProperties": false
69677
69736
  },
69678
- "AffiliationUnitJSON": {
69737
+ "BirthNameJSON": {
69679
69738
  "type": "object",
69680
69739
  "properties": {
69681
69740
  "@type": {
69682
69741
  "type": "string",
69683
- "const": "AffiliationUnit"
69742
+ "const": "BirthName"
69684
69743
  },
69685
69744
  "@context": {
69686
69745
  "type": "string"
@@ -69698,11 +69757,12 @@ exports.SucceedIdentityAttributeRequest = {
69698
69757
  ],
69699
69758
  "additionalProperties": false
69700
69759
  },
69701
- "BirthCityJSON": {
69760
+ "BirthPlaceJSON": {
69702
69761
  "type": "object",
69703
69762
  "properties": {
69704
- "value": {
69705
- "type": "string"
69763
+ "@type": {
69764
+ "type": "string",
69765
+ "const": "BirthPlace"
69706
69766
  },
69707
69767
  "@context": {
69708
69768
  "type": "string"
@@ -69710,46 +69770,29 @@ exports.SucceedIdentityAttributeRequest = {
69710
69770
  "@version": {
69711
69771
  "type": "string"
69712
69772
  },
69713
- "@type": {
69714
- "type": "string",
69715
- "const": "BirthCity"
69716
- }
69717
- },
69718
- "required": [
69719
- "@type",
69720
- "value"
69721
- ],
69722
- "additionalProperties": false
69723
- },
69724
- "BirthCountryJSON": {
69725
- "type": "object",
69726
- "properties": {
69727
- "value": {
69773
+ "city": {
69728
69774
  "type": "string"
69729
69775
  },
69730
- "@context": {
69776
+ "country": {
69731
69777
  "type": "string"
69732
69778
  },
69733
- "@version": {
69779
+ "state": {
69734
69780
  "type": "string"
69735
- },
69736
- "@type": {
69737
- "type": "string",
69738
- "const": "BirthCountry"
69739
69781
  }
69740
69782
  },
69741
69783
  "required": [
69742
69784
  "@type",
69743
- "value"
69785
+ "city",
69786
+ "country"
69744
69787
  ],
69745
69788
  "additionalProperties": false
69746
69789
  },
69747
- "BirthDayJSON": {
69790
+ "CitizenshipJSON": {
69748
69791
  "type": "object",
69749
69792
  "properties": {
69750
69793
  "@type": {
69751
69794
  "type": "string",
69752
- "const": "BirthDay"
69795
+ "const": "Citizenship"
69753
69796
  },
69754
69797
  "@context": {
69755
69798
  "type": "string"
@@ -69758,7 +69801,7 @@ exports.SucceedIdentityAttributeRequest = {
69758
69801
  "type": "string"
69759
69802
  },
69760
69803
  "value": {
69761
- "type": "number"
69804
+ "type": "string"
69762
69805
  }
69763
69806
  },
69764
69807
  "required": [
@@ -69767,12 +69810,12 @@ exports.SucceedIdentityAttributeRequest = {
69767
69810
  ],
69768
69811
  "additionalProperties": false
69769
69812
  },
69770
- "BirthMonthJSON": {
69813
+ "CommunicationLanguageJSON": {
69771
69814
  "type": "object",
69772
69815
  "properties": {
69773
69816
  "@type": {
69774
69817
  "type": "string",
69775
- "const": "BirthMonth"
69818
+ "const": "CommunicationLanguage"
69776
69819
  },
69777
69820
  "@context": {
69778
69821
  "type": "string"
@@ -69781,22 +69824,7 @@ exports.SucceedIdentityAttributeRequest = {
69781
69824
  "type": "string"
69782
69825
  },
69783
69826
  "value": {
69784
- "type": "number",
69785
- "enum": [
69786
- 1,
69787
- 2,
69788
- 3,
69789
- 4,
69790
- 5,
69791
- 6,
69792
- 7,
69793
- 8,
69794
- 9,
69795
- 10,
69796
- 11,
69797
- 12
69798
- ],
69799
- "description": "Month values: 1 (january) - 12 (december)"
69827
+ "type": "string"
69800
69828
  }
69801
69829
  },
69802
69830
  "required": [
@@ -69805,11 +69833,12 @@ exports.SucceedIdentityAttributeRequest = {
69805
69833
  ],
69806
69834
  "additionalProperties": false
69807
69835
  },
69808
- "BirthStateJSON": {
69836
+ "DeliveryBoxAddressJSON": {
69809
69837
  "type": "object",
69810
69838
  "properties": {
69811
- "value": {
69812
- "type": "string"
69839
+ "@type": {
69840
+ "type": "string",
69841
+ "const": "DeliveryBoxAddress"
69813
69842
  },
69814
69843
  "@context": {
69815
69844
  "type": "string"
@@ -69817,23 +69846,48 @@ exports.SucceedIdentityAttributeRequest = {
69817
69846
  "@version": {
69818
69847
  "type": "string"
69819
69848
  },
69820
- "@type": {
69821
- "type": "string",
69822
- "const": "BirthState"
69849
+ "recipient": {
69850
+ "type": "string"
69851
+ },
69852
+ "userId": {
69853
+ "type": "string"
69854
+ },
69855
+ "deliveryBoxId": {
69856
+ "type": "string"
69857
+ },
69858
+ "zipCode": {
69859
+ "type": "string"
69860
+ },
69861
+ "city": {
69862
+ "type": "string"
69863
+ },
69864
+ "country": {
69865
+ "type": "string"
69866
+ },
69867
+ "phoneNumber": {
69868
+ "type": "string"
69869
+ },
69870
+ "state": {
69871
+ "type": "string"
69823
69872
  }
69824
69873
  },
69825
69874
  "required": [
69826
69875
  "@type",
69827
- "value"
69876
+ "city",
69877
+ "country",
69878
+ "deliveryBoxId",
69879
+ "recipient",
69880
+ "userId",
69881
+ "zipCode"
69828
69882
  ],
69829
69883
  "additionalProperties": false
69830
69884
  },
69831
- "BirthYearJSON": {
69885
+ "DisplayNameJSON": {
69832
69886
  "type": "object",
69833
69887
  "properties": {
69834
69888
  "@type": {
69835
69889
  "type": "string",
69836
- "const": "BirthYear"
69890
+ "const": "DisplayName"
69837
69891
  },
69838
69892
  "@context": {
69839
69893
  "type": "string"
@@ -69842,7 +69896,7 @@ exports.SucceedIdentityAttributeRequest = {
69842
69896
  "type": "string"
69843
69897
  },
69844
69898
  "value": {
69845
- "type": "number"
69899
+ "type": "string"
69846
69900
  }
69847
69901
  },
69848
69902
  "required": [
@@ -69851,12 +69905,12 @@ exports.SucceedIdentityAttributeRequest = {
69851
69905
  ],
69852
69906
  "additionalProperties": false
69853
69907
  },
69854
- "CityJSON": {
69908
+ "EMailAddressJSON": {
69855
69909
  "type": "object",
69856
69910
  "properties": {
69857
69911
  "@type": {
69858
69912
  "type": "string",
69859
- "const": "City"
69913
+ "const": "EMailAddress"
69860
69914
  },
69861
69915
  "@context": {
69862
69916
  "type": "string"
@@ -69874,12 +69928,12 @@ exports.SucceedIdentityAttributeRequest = {
69874
69928
  ],
69875
69929
  "additionalProperties": false
69876
69930
  },
69877
- "CountryJSON": {
69931
+ "FaxNumberJSON": {
69878
69932
  "type": "object",
69879
69933
  "properties": {
69880
69934
  "@type": {
69881
69935
  "type": "string",
69882
- "const": "Country"
69936
+ "const": "FaxNumber"
69883
69937
  },
69884
69938
  "@context": {
69885
69939
  "type": "string"
@@ -69897,12 +69951,12 @@ exports.SucceedIdentityAttributeRequest = {
69897
69951
  ],
69898
69952
  "additionalProperties": false
69899
69953
  },
69900
- "GivenNameJSON": {
69954
+ "IdentityFileReferenceJSON": {
69901
69955
  "type": "object",
69902
69956
  "properties": {
69903
69957
  "@type": {
69904
69958
  "type": "string",
69905
- "const": "GivenName"
69959
+ "const": "IdentityFileReference"
69906
69960
  },
69907
69961
  "@context": {
69908
69962
  "type": "string"
@@ -69920,12 +69974,12 @@ exports.SucceedIdentityAttributeRequest = {
69920
69974
  ],
69921
69975
  "additionalProperties": false
69922
69976
  },
69923
- "HonorificPrefixJSON": {
69977
+ "JobTitleJSON": {
69924
69978
  "type": "object",
69925
69979
  "properties": {
69926
69980
  "@type": {
69927
69981
  "type": "string",
69928
- "const": "HonorificPrefix"
69982
+ "const": "JobTitle"
69929
69983
  },
69930
69984
  "@context": {
69931
69985
  "type": "string"
@@ -69943,12 +69997,12 @@ exports.SucceedIdentityAttributeRequest = {
69943
69997
  ],
69944
69998
  "additionalProperties": false
69945
69999
  },
69946
- "HonorificSuffixJSON": {
70000
+ "NationalityJSON": {
69947
70001
  "type": "object",
69948
70002
  "properties": {
69949
70003
  "@type": {
69950
70004
  "type": "string",
69951
- "const": "HonorificSuffix"
70005
+ "const": "Nationality"
69952
70006
  },
69953
70007
  "@context": {
69954
70008
  "type": "string"
@@ -69966,12 +70020,12 @@ exports.SucceedIdentityAttributeRequest = {
69966
70020
  ],
69967
70021
  "additionalProperties": false
69968
70022
  },
69969
- "HouseNumberJSON": {
70023
+ "PersonNameJSON": {
69970
70024
  "type": "object",
69971
70025
  "properties": {
69972
70026
  "@type": {
69973
70027
  "type": "string",
69974
- "const": "HouseNumber"
70028
+ "const": "PersonName"
69975
70029
  },
69976
70030
  "@context": {
69977
70031
  "type": "string"
@@ -69979,22 +70033,35 @@ exports.SucceedIdentityAttributeRequest = {
69979
70033
  "@version": {
69980
70034
  "type": "string"
69981
70035
  },
69982
- "value": {
70036
+ "givenName": {
70037
+ "type": "string"
70038
+ },
70039
+ "middleName": {
70040
+ "type": "string"
70041
+ },
70042
+ "surname": {
70043
+ "type": "string"
70044
+ },
70045
+ "honorificSuffix": {
70046
+ "type": "string"
70047
+ },
70048
+ "honorificPrefix": {
69983
70049
  "type": "string"
69984
70050
  }
69985
70051
  },
69986
70052
  "required": [
69987
70053
  "@type",
69988
- "value"
70054
+ "givenName",
70055
+ "surname"
69989
70056
  ],
69990
70057
  "additionalProperties": false
69991
70058
  },
69992
- "MiddleNameJSON": {
70059
+ "PhoneNumberJSON": {
69993
70060
  "type": "object",
69994
70061
  "properties": {
69995
70062
  "@type": {
69996
70063
  "type": "string",
69997
- "const": "MiddleName"
70064
+ "const": "PhoneNumber"
69998
70065
  },
69999
70066
  "@context": {
70000
70067
  "type": "string"
@@ -70012,12 +70079,12 @@ exports.SucceedIdentityAttributeRequest = {
70012
70079
  ],
70013
70080
  "additionalProperties": false
70014
70081
  },
70015
- "SchematizedXMLJSON": {
70082
+ "PostOfficeBoxAddressJSON": {
70016
70083
  "type": "object",
70017
70084
  "properties": {
70018
70085
  "@type": {
70019
70086
  "type": "string",
70020
- "const": "SchematizedXML"
70087
+ "const": "PostOfficeBoxAddress"
70021
70088
  },
70022
70089
  "@context": {
70023
70090
  "type": "string"
@@ -70025,25 +70092,41 @@ exports.SucceedIdentityAttributeRequest = {
70025
70092
  "@version": {
70026
70093
  "type": "string"
70027
70094
  },
70028
- "value": {
70095
+ "recipient": {
70029
70096
  "type": "string"
70030
70097
  },
70031
- "schemaURL": {
70098
+ "boxId": {
70099
+ "type": "string"
70100
+ },
70101
+ "zipCode": {
70102
+ "type": "string"
70103
+ },
70104
+ "city": {
70105
+ "type": "string"
70106
+ },
70107
+ "country": {
70108
+ "type": "string"
70109
+ },
70110
+ "state": {
70032
70111
  "type": "string"
70033
70112
  }
70034
70113
  },
70035
70114
  "required": [
70036
70115
  "@type",
70037
- "value"
70116
+ "boxId",
70117
+ "city",
70118
+ "country",
70119
+ "recipient",
70120
+ "zipCode"
70038
70121
  ],
70039
70122
  "additionalProperties": false
70040
70123
  },
70041
- "StateJSON": {
70124
+ "PseudonymJSON": {
70042
70125
  "type": "object",
70043
70126
  "properties": {
70044
70127
  "@type": {
70045
70128
  "type": "string",
70046
- "const": "State"
70129
+ "const": "Pseudonym"
70047
70130
  },
70048
70131
  "@context": {
70049
70132
  "type": "string"
@@ -70061,12 +70144,12 @@ exports.SucceedIdentityAttributeRequest = {
70061
70144
  ],
70062
70145
  "additionalProperties": false
70063
70146
  },
70064
- "StreetJSON": {
70147
+ "SexJSON": {
70065
70148
  "type": "object",
70066
70149
  "properties": {
70067
70150
  "@type": {
70068
70151
  "type": "string",
70069
- "const": "Street"
70152
+ "const": "Sex"
70070
70153
  },
70071
70154
  "@context": {
70072
70155
  "type": "string"
@@ -70084,12 +70167,12 @@ exports.SucceedIdentityAttributeRequest = {
70084
70167
  ],
70085
70168
  "additionalProperties": false
70086
70169
  },
70087
- "SurnameJSON": {
70170
+ "StreetAddressJSON": {
70088
70171
  "type": "object",
70089
70172
  "properties": {
70090
70173
  "@type": {
70091
70174
  "type": "string",
70092
- "const": "Surname"
70175
+ "const": "StreetAddress"
70093
70176
  },
70094
70177
  "@context": {
70095
70178
  "type": "string"
@@ -70097,22 +70180,45 @@ exports.SucceedIdentityAttributeRequest = {
70097
70180
  "@version": {
70098
70181
  "type": "string"
70099
70182
  },
70100
- "value": {
70183
+ "recipient": {
70184
+ "type": "string"
70185
+ },
70186
+ "street": {
70187
+ "type": "string"
70188
+ },
70189
+ "houseNo": {
70190
+ "type": "string"
70191
+ },
70192
+ "zipCode": {
70193
+ "type": "string"
70194
+ },
70195
+ "city": {
70196
+ "type": "string"
70197
+ },
70198
+ "country": {
70199
+ "type": "string"
70200
+ },
70201
+ "state": {
70101
70202
  "type": "string"
70102
70203
  }
70103
70204
  },
70104
70205
  "required": [
70105
70206
  "@type",
70106
- "value"
70207
+ "city",
70208
+ "country",
70209
+ "houseNo",
70210
+ "recipient",
70211
+ "street",
70212
+ "zipCode"
70107
70213
  ],
70108
70214
  "additionalProperties": false
70109
70215
  },
70110
- "ZipCodeJSON": {
70216
+ "WebsiteJSON": {
70111
70217
  "type": "object",
70112
70218
  "properties": {
70113
70219
  "@type": {
70114
70220
  "type": "string",
70115
- "const": "ZipCode"
70221
+ "const": "Website"
70116
70222
  },
70117
70223
  "@context": {
70118
70224
  "type": "string"
@@ -70130,104 +70236,79 @@ exports.SucceedIdentityAttributeRequest = {
70130
70236
  ],
70131
70237
  "additionalProperties": false
70132
70238
  },
70133
- "ISO8601DateTimeString": {
70134
- "type": "string",
70135
- "errorMessage": "must match ISO8601 datetime format",
70136
- "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
70137
- }
70138
- }
70139
- };
70140
- exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70141
- "$schema": "http://json-schema.org/draft-07/schema#",
70142
- "$ref": "#/definitions/SucceedRelationshipAttributeAndNotifyPeerRequest",
70143
- "definitions": {
70144
- "SucceedRelationshipAttributeAndNotifyPeerRequest": {
70145
- "type": "object",
70146
- "properties": {
70147
- "predecessorId": {
70148
- "$ref": "#/definitions/AttributeIdString"
70149
- },
70150
- "successorContent": {
70151
- "type": "object",
70152
- "properties": {
70153
- "value": {
70154
- "$ref": "#/definitions/AttributeValues.Relationship.Json"
70155
- },
70156
- "validFrom": {
70157
- "$ref": "#/definitions/ISO8601DateTimeString"
70158
- },
70159
- "validTo": {
70160
- "$ref": "#/definitions/ISO8601DateTimeString"
70161
- }
70162
- },
70163
- "required": [
70164
- "value"
70165
- ],
70166
- "additionalProperties": false
70167
- }
70168
- },
70169
- "required": [
70170
- "predecessorId",
70171
- "successorContent"
70172
- ],
70173
- "additionalProperties": false
70174
- },
70175
- "AttributeIdString": {
70176
- "type": "string",
70177
- "pattern": "ATT[A-Za-z0-9]{17}"
70178
- },
70179
- "AttributeValues.Relationship.Json": {
70239
+ "AttributeValues.Identity.Uneditable.Json": {
70180
70240
  "anyOf": [
70181
70241
  {
70182
- "$ref": "#/definitions/ProprietaryBooleanJSON"
70242
+ "$ref": "#/definitions/AffiliationOrganizationJSON"
70183
70243
  },
70184
70244
  {
70185
- "$ref": "#/definitions/ProprietaryCountryJSON"
70245
+ "$ref": "#/definitions/AffiliationRoleJSON"
70186
70246
  },
70187
70247
  {
70188
- "$ref": "#/definitions/ProprietaryEMailAddressJSON"
70248
+ "$ref": "#/definitions/AffiliationUnitJSON"
70189
70249
  },
70190
70250
  {
70191
- "$ref": "#/definitions/ProprietaryFileReferenceJSON"
70251
+ "$ref": "#/definitions/BirthCityJSON"
70192
70252
  },
70193
70253
  {
70194
- "$ref": "#/definitions/ProprietaryFloatJSON"
70254
+ "$ref": "#/definitions/BirthCountryJSON"
70195
70255
  },
70196
70256
  {
70197
- "$ref": "#/definitions/ProprietaryHEXColorJSON"
70257
+ "$ref": "#/definitions/BirthDayJSON"
70198
70258
  },
70199
70259
  {
70200
- "$ref": "#/definitions/ProprietaryIntegerJSON"
70260
+ "$ref": "#/definitions/BirthMonthJSON"
70201
70261
  },
70202
70262
  {
70203
- "$ref": "#/definitions/ProprietaryLanguageJSON"
70263
+ "$ref": "#/definitions/BirthStateJSON"
70204
70264
  },
70205
70265
  {
70206
- "$ref": "#/definitions/ProprietaryPhoneNumberJSON"
70266
+ "$ref": "#/definitions/BirthYearJSON"
70207
70267
  },
70208
70268
  {
70209
- "$ref": "#/definitions/ProprietaryStringJSON"
70269
+ "$ref": "#/definitions/CityJSON"
70210
70270
  },
70211
70271
  {
70212
- "$ref": "#/definitions/ProprietaryURLJSON"
70272
+ "$ref": "#/definitions/CountryJSON"
70213
70273
  },
70214
70274
  {
70215
- "$ref": "#/definitions/ProprietaryJSONJSON"
70275
+ "$ref": "#/definitions/GivenNameJSON"
70216
70276
  },
70217
70277
  {
70218
- "$ref": "#/definitions/ProprietaryXMLJSON"
70278
+ "$ref": "#/definitions/HonorificPrefixJSON"
70219
70279
  },
70220
70280
  {
70221
- "$ref": "#/definitions/ConsentJSON"
70281
+ "$ref": "#/definitions/HonorificSuffixJSON"
70282
+ },
70283
+ {
70284
+ "$ref": "#/definitions/HouseNumberJSON"
70285
+ },
70286
+ {
70287
+ "$ref": "#/definitions/MiddleNameJSON"
70288
+ },
70289
+ {
70290
+ "$ref": "#/definitions/SchematizedXMLJSON"
70291
+ },
70292
+ {
70293
+ "$ref": "#/definitions/StateJSON"
70294
+ },
70295
+ {
70296
+ "$ref": "#/definitions/StreetJSON"
70297
+ },
70298
+ {
70299
+ "$ref": "#/definitions/SurnameJSON"
70300
+ },
70301
+ {
70302
+ "$ref": "#/definitions/ZipCodeJSON"
70222
70303
  }
70223
70304
  ]
70224
70305
  },
70225
- "ProprietaryBooleanJSON": {
70306
+ "AffiliationOrganizationJSON": {
70226
70307
  "type": "object",
70227
70308
  "properties": {
70228
70309
  "@type": {
70229
70310
  "type": "string",
70230
- "const": "ProprietaryBoolean"
70311
+ "const": "AffiliationOrganization"
70231
70312
  },
70232
70313
  "@context": {
70233
70314
  "type": "string"
@@ -70236,98 +70317,44 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70236
70317
  "type": "string"
70237
70318
  },
70238
70319
  "value": {
70239
- "type": "boolean"
70240
- },
70241
- "title": {
70242
- "type": "string"
70243
- },
70244
- "description": {
70245
70320
  "type": "string"
70246
- },
70247
- "valueHintsOverride": {
70248
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70249
70321
  }
70250
70322
  },
70251
70323
  "required": [
70252
70324
  "@type",
70253
- "title",
70254
70325
  "value"
70255
70326
  ],
70256
70327
  "additionalProperties": false
70257
70328
  },
70258
- "ValueHintsOverrideJSON": {
70329
+ "AffiliationRoleJSON": {
70259
70330
  "type": "object",
70260
- "additionalProperties": false,
70261
70331
  "properties": {
70262
70332
  "@type": {
70263
70333
  "type": "string",
70264
- "const": "ValueHints"
70265
- },
70266
- "editHelp": {
70267
- "type": "string"
70268
- },
70269
- "min": {
70270
- "type": "number"
70271
- },
70272
- "max": {
70273
- "type": "number"
70274
- },
70275
- "pattern": {
70276
- "type": "string"
70277
- },
70278
- "values": {
70279
- "type": "array",
70280
- "items": {
70281
- "$ref": "#/definitions/ValueHintsValueJSON"
70282
- }
70283
- },
70284
- "defaultValue": {
70285
- "type": [
70286
- "string",
70287
- "number",
70288
- "boolean"
70289
- ]
70290
- },
70291
- "propertyHints": {
70292
- "type": "object",
70293
- "additionalProperties": {
70294
- "$ref": "#/definitions/ValueHintsJSON"
70295
- }
70334
+ "const": "AffiliationRole"
70296
70335
  },
70297
70336
  "@context": {
70298
70337
  "type": "string"
70299
70338
  },
70300
70339
  "@version": {
70301
70340
  "type": "string"
70302
- }
70303
- }
70304
- },
70305
- "ValueHintsValueJSON": {
70306
- "type": "object",
70307
- "properties": {
70308
- "key": {
70309
- "type": [
70310
- "string",
70311
- "number",
70312
- "boolean"
70313
- ]
70314
70341
  },
70315
- "displayName": {
70342
+ "value": {
70316
70343
  "type": "string"
70317
70344
  }
70318
70345
  },
70319
70346
  "required": [
70320
- "key",
70321
- "displayName"
70347
+ "@type",
70348
+ "value"
70322
70349
  ],
70323
70350
  "additionalProperties": false
70324
70351
  },
70325
- "ValueHintsJSON": {
70352
+ "AffiliationUnitJSON": {
70326
70353
  "type": "object",
70327
70354
  "properties": {
70328
70355
  "@type": {
70329
70356
  "type": "string",
70330
- "const": "ValueHints"
70357
+ "const": "AffiliationUnit"
70331
70358
  },
70332
70359
  "@context": {
70333
70360
  "type": "string"
@@ -70335,49 +70362,21 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70335
70362
  "@version": {
70336
70363
  "type": "string"
70337
70364
  },
70338
- "editHelp": {
70339
- "type": "string"
70340
- },
70341
- "min": {
70342
- "type": "number"
70343
- },
70344
- "max": {
70345
- "type": "number"
70346
- },
70347
- "pattern": {
70365
+ "value": {
70348
70366
  "type": "string"
70349
- },
70350
- "values": {
70351
- "type": "array",
70352
- "items": {
70353
- "$ref": "#/definitions/ValueHintsValueJSON"
70354
- }
70355
- },
70356
- "defaultValue": {
70357
- "type": [
70358
- "string",
70359
- "number",
70360
- "boolean"
70361
- ]
70362
- },
70363
- "propertyHints": {
70364
- "type": "object",
70365
- "additionalProperties": {
70366
- "$ref": "#/definitions/ValueHintsJSON"
70367
- }
70368
70367
  }
70369
70368
  },
70370
70369
  "required": [
70371
- "@type"
70370
+ "@type",
70371
+ "value"
70372
70372
  ],
70373
70373
  "additionalProperties": false
70374
70374
  },
70375
- "ProprietaryCountryJSON": {
70375
+ "BirthCityJSON": {
70376
70376
  "type": "object",
70377
70377
  "properties": {
70378
- "@type": {
70379
- "type": "string",
70380
- "const": "ProprietaryCountry"
70378
+ "value": {
70379
+ "type": "string"
70381
70380
  },
70382
70381
  "@context": {
70383
70382
  "type": "string"
@@ -70385,32 +70384,46 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70385
70384
  "@version": {
70386
70385
  "type": "string"
70387
70386
  },
70387
+ "@type": {
70388
+ "type": "string",
70389
+ "const": "BirthCity"
70390
+ }
70391
+ },
70392
+ "required": [
70393
+ "@type",
70394
+ "value"
70395
+ ],
70396
+ "additionalProperties": false
70397
+ },
70398
+ "BirthCountryJSON": {
70399
+ "type": "object",
70400
+ "properties": {
70388
70401
  "value": {
70389
70402
  "type": "string"
70390
70403
  },
70391
- "title": {
70404
+ "@context": {
70392
70405
  "type": "string"
70393
70406
  },
70394
- "description": {
70407
+ "@version": {
70395
70408
  "type": "string"
70396
70409
  },
70397
- "valueHintsOverride": {
70398
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70410
+ "@type": {
70411
+ "type": "string",
70412
+ "const": "BirthCountry"
70399
70413
  }
70400
70414
  },
70401
70415
  "required": [
70402
70416
  "@type",
70403
- "title",
70404
70417
  "value"
70405
70418
  ],
70406
70419
  "additionalProperties": false
70407
70420
  },
70408
- "ProprietaryEMailAddressJSON": {
70421
+ "BirthDayJSON": {
70409
70422
  "type": "object",
70410
70423
  "properties": {
70411
70424
  "@type": {
70412
70425
  "type": "string",
70413
- "const": "ProprietaryEMailAddress"
70426
+ "const": "BirthDay"
70414
70427
  },
70415
70428
  "@context": {
70416
70429
  "type": "string"
@@ -70419,31 +70432,21 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70419
70432
  "type": "string"
70420
70433
  },
70421
70434
  "value": {
70422
- "type": "string"
70423
- },
70424
- "title": {
70425
- "type": "string"
70426
- },
70427
- "description": {
70428
- "type": "string"
70429
- },
70430
- "valueHintsOverride": {
70431
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70435
+ "type": "number"
70432
70436
  }
70433
70437
  },
70434
70438
  "required": [
70435
70439
  "@type",
70436
- "title",
70437
70440
  "value"
70438
70441
  ],
70439
70442
  "additionalProperties": false
70440
70443
  },
70441
- "ProprietaryFileReferenceJSON": {
70444
+ "BirthMonthJSON": {
70442
70445
  "type": "object",
70443
70446
  "properties": {
70444
70447
  "@type": {
70445
70448
  "type": "string",
70446
- "const": "ProprietaryFileReference"
70449
+ "const": "BirthMonth"
70447
70450
  },
70448
70451
  "@context": {
70449
70452
  "type": "string"
@@ -70451,32 +70454,60 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70451
70454
  "@version": {
70452
70455
  "type": "string"
70453
70456
  },
70457
+ "value": {
70458
+ "type": "number",
70459
+ "enum": [
70460
+ 1,
70461
+ 2,
70462
+ 3,
70463
+ 4,
70464
+ 5,
70465
+ 6,
70466
+ 7,
70467
+ 8,
70468
+ 9,
70469
+ 10,
70470
+ 11,
70471
+ 12
70472
+ ],
70473
+ "description": "Month values: 1 (january) - 12 (december)"
70474
+ }
70475
+ },
70476
+ "required": [
70477
+ "@type",
70478
+ "value"
70479
+ ],
70480
+ "additionalProperties": false
70481
+ },
70482
+ "BirthStateJSON": {
70483
+ "type": "object",
70484
+ "properties": {
70454
70485
  "value": {
70455
70486
  "type": "string"
70456
70487
  },
70457
- "title": {
70488
+ "@context": {
70458
70489
  "type": "string"
70459
70490
  },
70460
- "description": {
70491
+ "@version": {
70461
70492
  "type": "string"
70462
70493
  },
70463
- "valueHintsOverride": {
70464
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70494
+ "@type": {
70495
+ "type": "string",
70496
+ "const": "BirthState"
70465
70497
  }
70466
70498
  },
70467
70499
  "required": [
70468
70500
  "@type",
70469
- "title",
70470
70501
  "value"
70471
70502
  ],
70472
70503
  "additionalProperties": false
70473
70504
  },
70474
- "ProprietaryFloatJSON": {
70505
+ "BirthYearJSON": {
70475
70506
  "type": "object",
70476
70507
  "properties": {
70477
70508
  "@type": {
70478
70509
  "type": "string",
70479
- "const": "ProprietaryFloat"
70510
+ "const": "BirthYear"
70480
70511
  },
70481
70512
  "@context": {
70482
70513
  "type": "string"
@@ -70486,30 +70517,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70486
70517
  },
70487
70518
  "value": {
70488
70519
  "type": "number"
70489
- },
70490
- "title": {
70491
- "type": "string"
70492
- },
70493
- "description": {
70494
- "type": "string"
70495
- },
70496
- "valueHintsOverride": {
70497
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70498
70520
  }
70499
70521
  },
70500
70522
  "required": [
70501
70523
  "@type",
70502
- "title",
70503
70524
  "value"
70504
70525
  ],
70505
70526
  "additionalProperties": false
70506
70527
  },
70507
- "ProprietaryHEXColorJSON": {
70528
+ "CityJSON": {
70508
70529
  "type": "object",
70509
70530
  "properties": {
70510
70531
  "@type": {
70511
70532
  "type": "string",
70512
- "const": "ProprietaryHEXColor"
70533
+ "const": "City"
70513
70534
  },
70514
70535
  "@context": {
70515
70536
  "type": "string"
@@ -70519,30 +70540,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70519
70540
  },
70520
70541
  "value": {
70521
70542
  "type": "string"
70522
- },
70523
- "title": {
70524
- "type": "string"
70525
- },
70526
- "description": {
70527
- "type": "string"
70528
- },
70529
- "valueHintsOverride": {
70530
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70531
70543
  }
70532
70544
  },
70533
70545
  "required": [
70534
70546
  "@type",
70535
- "title",
70536
70547
  "value"
70537
70548
  ],
70538
70549
  "additionalProperties": false
70539
70550
  },
70540
- "ProprietaryIntegerJSON": {
70551
+ "CountryJSON": {
70541
70552
  "type": "object",
70542
70553
  "properties": {
70543
70554
  "@type": {
70544
70555
  "type": "string",
70545
- "const": "ProprietaryInteger"
70556
+ "const": "Country"
70546
70557
  },
70547
70558
  "@context": {
70548
70559
  "type": "string"
@@ -70551,31 +70562,21 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70551
70562
  "type": "string"
70552
70563
  },
70553
70564
  "value": {
70554
- "type": "number"
70555
- },
70556
- "title": {
70557
- "type": "string"
70558
- },
70559
- "description": {
70560
70565
  "type": "string"
70561
- },
70562
- "valueHintsOverride": {
70563
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70564
70566
  }
70565
70567
  },
70566
70568
  "required": [
70567
70569
  "@type",
70568
- "title",
70569
70570
  "value"
70570
70571
  ],
70571
70572
  "additionalProperties": false
70572
70573
  },
70573
- "ProprietaryLanguageJSON": {
70574
+ "GivenNameJSON": {
70574
70575
  "type": "object",
70575
70576
  "properties": {
70576
70577
  "@type": {
70577
70578
  "type": "string",
70578
- "const": "ProprietaryLanguage"
70579
+ "const": "GivenName"
70579
70580
  },
70580
70581
  "@context": {
70581
70582
  "type": "string"
@@ -70585,30 +70586,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70585
70586
  },
70586
70587
  "value": {
70587
70588
  "type": "string"
70588
- },
70589
- "title": {
70590
- "type": "string"
70591
- },
70592
- "description": {
70593
- "type": "string"
70594
- },
70595
- "valueHintsOverride": {
70596
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70597
70589
  }
70598
70590
  },
70599
70591
  "required": [
70600
70592
  "@type",
70601
- "title",
70602
70593
  "value"
70603
70594
  ],
70604
70595
  "additionalProperties": false
70605
70596
  },
70606
- "ProprietaryPhoneNumberJSON": {
70597
+ "HonorificPrefixJSON": {
70607
70598
  "type": "object",
70608
70599
  "properties": {
70609
70600
  "@type": {
70610
70601
  "type": "string",
70611
- "const": "ProprietaryPhoneNumber"
70602
+ "const": "HonorificPrefix"
70612
70603
  },
70613
70604
  "@context": {
70614
70605
  "type": "string"
@@ -70618,30 +70609,43 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70618
70609
  },
70619
70610
  "value": {
70620
70611
  "type": "string"
70612
+ }
70613
+ },
70614
+ "required": [
70615
+ "@type",
70616
+ "value"
70617
+ ],
70618
+ "additionalProperties": false
70619
+ },
70620
+ "HonorificSuffixJSON": {
70621
+ "type": "object",
70622
+ "properties": {
70623
+ "@type": {
70624
+ "type": "string",
70625
+ "const": "HonorificSuffix"
70621
70626
  },
70622
- "title": {
70627
+ "@context": {
70623
70628
  "type": "string"
70624
70629
  },
70625
- "description": {
70630
+ "@version": {
70626
70631
  "type": "string"
70627
70632
  },
70628
- "valueHintsOverride": {
70629
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70633
+ "value": {
70634
+ "type": "string"
70630
70635
  }
70631
70636
  },
70632
70637
  "required": [
70633
70638
  "@type",
70634
- "title",
70635
70639
  "value"
70636
70640
  ],
70637
70641
  "additionalProperties": false
70638
70642
  },
70639
- "ProprietaryStringJSON": {
70643
+ "HouseNumberJSON": {
70640
70644
  "type": "object",
70641
70645
  "properties": {
70642
70646
  "@type": {
70643
70647
  "type": "string",
70644
- "const": "ProprietaryString"
70648
+ "const": "HouseNumber"
70645
70649
  },
70646
70650
  "@context": {
70647
70651
  "type": "string"
@@ -70651,30 +70655,43 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70651
70655
  },
70652
70656
  "value": {
70653
70657
  "type": "string"
70658
+ }
70659
+ },
70660
+ "required": [
70661
+ "@type",
70662
+ "value"
70663
+ ],
70664
+ "additionalProperties": false
70665
+ },
70666
+ "MiddleNameJSON": {
70667
+ "type": "object",
70668
+ "properties": {
70669
+ "@type": {
70670
+ "type": "string",
70671
+ "const": "MiddleName"
70654
70672
  },
70655
- "title": {
70673
+ "@context": {
70656
70674
  "type": "string"
70657
70675
  },
70658
- "description": {
70676
+ "@version": {
70659
70677
  "type": "string"
70660
70678
  },
70661
- "valueHintsOverride": {
70662
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70679
+ "value": {
70680
+ "type": "string"
70663
70681
  }
70664
70682
  },
70665
70683
  "required": [
70666
70684
  "@type",
70667
- "title",
70668
70685
  "value"
70669
70686
  ],
70670
70687
  "additionalProperties": false
70671
70688
  },
70672
- "ProprietaryURLJSON": {
70689
+ "SchematizedXMLJSON": {
70673
70690
  "type": "object",
70674
70691
  "properties": {
70675
70692
  "@type": {
70676
70693
  "type": "string",
70677
- "const": "ProprietaryURL"
70694
+ "const": "SchematizedXML"
70678
70695
  },
70679
70696
  "@context": {
70680
70697
  "type": "string"
@@ -70685,29 +70702,22 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70685
70702
  "value": {
70686
70703
  "type": "string"
70687
70704
  },
70688
- "title": {
70689
- "type": "string"
70690
- },
70691
- "description": {
70705
+ "schemaURL": {
70692
70706
  "type": "string"
70693
- },
70694
- "valueHintsOverride": {
70695
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70696
70707
  }
70697
70708
  },
70698
70709
  "required": [
70699
70710
  "@type",
70700
- "title",
70701
70711
  "value"
70702
70712
  ],
70703
70713
  "additionalProperties": false
70704
70714
  },
70705
- "ProprietaryJSONJSON": {
70715
+ "StateJSON": {
70706
70716
  "type": "object",
70707
70717
  "properties": {
70708
70718
  "@type": {
70709
70719
  "type": "string",
70710
- "const": "ProprietaryJSON"
70720
+ "const": "State"
70711
70721
  },
70712
70722
  "@context": {
70713
70723
  "type": "string"
@@ -70715,27 +70725,22 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70715
70725
  "@version": {
70716
70726
  "type": "string"
70717
70727
  },
70718
- "title": {
70719
- "type": "string"
70720
- },
70721
- "description": {
70728
+ "value": {
70722
70729
  "type": "string"
70723
- },
70724
- "value": {}
70730
+ }
70725
70731
  },
70726
70732
  "required": [
70727
70733
  "@type",
70728
- "title",
70729
70734
  "value"
70730
70735
  ],
70731
70736
  "additionalProperties": false
70732
70737
  },
70733
- "ProprietaryXMLJSON": {
70738
+ "StreetJSON": {
70734
70739
  "type": "object",
70735
70740
  "properties": {
70736
70741
  "@type": {
70737
70742
  "type": "string",
70738
- "const": "ProprietaryXML"
70743
+ "const": "Street"
70739
70744
  },
70740
70745
  "@context": {
70741
70746
  "type": "string"
@@ -70745,32 +70750,43 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70745
70750
  },
70746
70751
  "value": {
70747
70752
  "type": "string"
70753
+ }
70754
+ },
70755
+ "required": [
70756
+ "@type",
70757
+ "value"
70758
+ ],
70759
+ "additionalProperties": false
70760
+ },
70761
+ "SurnameJSON": {
70762
+ "type": "object",
70763
+ "properties": {
70764
+ "@type": {
70765
+ "type": "string",
70766
+ "const": "Surname"
70748
70767
  },
70749
- "title": {
70768
+ "@context": {
70750
70769
  "type": "string"
70751
70770
  },
70752
- "description": {
70771
+ "@version": {
70753
70772
  "type": "string"
70754
70773
  },
70755
- "valueHintsOverride": {
70756
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70757
- },
70758
- "schemaURL": {
70774
+ "value": {
70759
70775
  "type": "string"
70760
70776
  }
70761
70777
  },
70762
70778
  "required": [
70763
70779
  "@type",
70764
- "title",
70765
70780
  "value"
70766
70781
  ],
70767
70782
  "additionalProperties": false
70768
70783
  },
70769
- "ConsentJSON": {
70784
+ "ZipCodeJSON": {
70770
70785
  "type": "object",
70771
70786
  "properties": {
70772
70787
  "@type": {
70773
- "type": "string"
70788
+ "type": "string",
70789
+ "const": "ZipCode"
70774
70790
  },
70775
70791
  "@context": {
70776
70792
  "type": "string"
@@ -70778,16 +70794,13 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70778
70794
  "@version": {
70779
70795
  "type": "string"
70780
70796
  },
70781
- "consent": {
70782
- "type": "string"
70783
- },
70784
- "link": {
70797
+ "value": {
70785
70798
  "type": "string"
70786
70799
  }
70787
70800
  },
70788
70801
  "required": [
70789
70802
  "@type",
70790
- "consent"
70803
+ "value"
70791
70804
  ],
70792
70805
  "additionalProperties": false
70793
70806
  },
@@ -72031,7 +72044,472 @@ exports.GetFilesRequest = {
72031
72044
  }
72032
72045
  ]
72033
72046
  },
72034
- "description": {
72047
+ "description": {
72048
+ "anyOf": [
72049
+ {
72050
+ "type": "string"
72051
+ },
72052
+ {
72053
+ "type": "array",
72054
+ "items": {
72055
+ "type": "string"
72056
+ }
72057
+ }
72058
+ ]
72059
+ },
72060
+ "expiresAt": {
72061
+ "anyOf": [
72062
+ {
72063
+ "type": "string"
72064
+ },
72065
+ {
72066
+ "type": "array",
72067
+ "items": {
72068
+ "type": "string"
72069
+ }
72070
+ }
72071
+ ]
72072
+ },
72073
+ "filename": {
72074
+ "anyOf": [
72075
+ {
72076
+ "type": "string"
72077
+ },
72078
+ {
72079
+ "type": "array",
72080
+ "items": {
72081
+ "type": "string"
72082
+ }
72083
+ }
72084
+ ]
72085
+ },
72086
+ "filesize": {
72087
+ "anyOf": [
72088
+ {
72089
+ "type": "string"
72090
+ },
72091
+ {
72092
+ "type": "array",
72093
+ "items": {
72094
+ "type": "string"
72095
+ }
72096
+ }
72097
+ ]
72098
+ },
72099
+ "mimetype": {
72100
+ "anyOf": [
72101
+ {
72102
+ "type": "string"
72103
+ },
72104
+ {
72105
+ "type": "array",
72106
+ "items": {
72107
+ "type": "string"
72108
+ }
72109
+ }
72110
+ ]
72111
+ },
72112
+ "title": {
72113
+ "anyOf": [
72114
+ {
72115
+ "type": "string"
72116
+ },
72117
+ {
72118
+ "type": "array",
72119
+ "items": {
72120
+ "type": "string"
72121
+ }
72122
+ }
72123
+ ]
72124
+ },
72125
+ "isOwn": {
72126
+ "anyOf": [
72127
+ {
72128
+ "type": "string"
72129
+ },
72130
+ {
72131
+ "type": "array",
72132
+ "items": {
72133
+ "type": "string"
72134
+ }
72135
+ }
72136
+ ]
72137
+ }
72138
+ },
72139
+ "additionalProperties": false
72140
+ },
72141
+ "OwnerRestriction": {
72142
+ "type": "string",
72143
+ "enum": [
72144
+ "o",
72145
+ "p"
72146
+ ]
72147
+ }
72148
+ }
72149
+ };
72150
+ exports.GetOrLoadFileViaSecretRequest = {
72151
+ "$schema": "http://json-schema.org/draft-07/schema#",
72152
+ "$ref": "#/definitions/GetOrLoadFileViaSecretRequest",
72153
+ "definitions": {
72154
+ "GetOrLoadFileViaSecretRequest": {
72155
+ "type": "object",
72156
+ "properties": {
72157
+ "id": {
72158
+ "$ref": "#/definitions/FileIdString"
72159
+ },
72160
+ "secretKey": {
72161
+ "type": "string",
72162
+ "minLength": 10
72163
+ }
72164
+ },
72165
+ "required": [
72166
+ "id",
72167
+ "secretKey"
72168
+ ],
72169
+ "additionalProperties": false
72170
+ },
72171
+ "FileIdString": {
72172
+ "type": "string",
72173
+ "pattern": "FIL[A-Za-z0-9]{17}"
72174
+ }
72175
+ }
72176
+ };
72177
+ exports.GetOrLoadFileViaReferenceRequest = {
72178
+ "$schema": "http://json-schema.org/draft-07/schema#",
72179
+ "$ref": "#/definitions/GetOrLoadFileViaReferenceRequest",
72180
+ "definitions": {
72181
+ "GetOrLoadFileViaReferenceRequest": {
72182
+ "type": "object",
72183
+ "properties": {
72184
+ "reference": {
72185
+ "anyOf": [
72186
+ {
72187
+ "$ref": "#/definitions/TokenReferenceString"
72188
+ },
72189
+ {
72190
+ "$ref": "#/definitions/FileReferenceString"
72191
+ }
72192
+ ]
72193
+ }
72194
+ },
72195
+ "required": [
72196
+ "reference"
72197
+ ],
72198
+ "additionalProperties": false,
72199
+ "errorMessage": "token / file reference invalid"
72200
+ },
72201
+ "TokenReferenceString": {
72202
+ "type": "string",
72203
+ "pattern": "VE9L.{84}"
72204
+ },
72205
+ "FileReferenceString": {
72206
+ "type": "string",
72207
+ "pattern": "RklM.{84}"
72208
+ }
72209
+ }
72210
+ };
72211
+ exports.GetOrLoadFileRequest = {
72212
+ "$schema": "http://json-schema.org/draft-07/schema#",
72213
+ "$ref": "#/definitions/GetOrLoadFileRequest",
72214
+ "definitions": {
72215
+ "GetOrLoadFileRequest": {
72216
+ "anyOf": [
72217
+ {
72218
+ "$ref": "#/definitions/GetOrLoadFileViaSecretRequest"
72219
+ },
72220
+ {
72221
+ "$ref": "#/definitions/GetOrLoadFileViaReferenceRequest"
72222
+ }
72223
+ ]
72224
+ },
72225
+ "GetOrLoadFileViaSecretRequest": {
72226
+ "type": "object",
72227
+ "properties": {
72228
+ "id": {
72229
+ "$ref": "#/definitions/FileIdString"
72230
+ },
72231
+ "secretKey": {
72232
+ "type": "string",
72233
+ "minLength": 10
72234
+ }
72235
+ },
72236
+ "required": [
72237
+ "id",
72238
+ "secretKey"
72239
+ ],
72240
+ "additionalProperties": false
72241
+ },
72242
+ "FileIdString": {
72243
+ "type": "string",
72244
+ "pattern": "FIL[A-Za-z0-9]{17}"
72245
+ },
72246
+ "GetOrLoadFileViaReferenceRequest": {
72247
+ "type": "object",
72248
+ "properties": {
72249
+ "reference": {
72250
+ "anyOf": [
72251
+ {
72252
+ "$ref": "#/definitions/TokenReferenceString"
72253
+ },
72254
+ {
72255
+ "$ref": "#/definitions/FileReferenceString"
72256
+ }
72257
+ ]
72258
+ }
72259
+ },
72260
+ "required": [
72261
+ "reference"
72262
+ ],
72263
+ "additionalProperties": false,
72264
+ "errorMessage": "token / file reference invalid"
72265
+ },
72266
+ "TokenReferenceString": {
72267
+ "type": "string",
72268
+ "pattern": "VE9L.{84}"
72269
+ },
72270
+ "FileReferenceString": {
72271
+ "type": "string",
72272
+ "pattern": "RklM.{84}"
72273
+ }
72274
+ }
72275
+ };
72276
+ exports.UploadOwnFileRequest = {
72277
+ "$schema": "http://json-schema.org/draft-07/schema#",
72278
+ "$ref": "#/definitions/UploadOwnFileRequest",
72279
+ "definitions": {
72280
+ "UploadOwnFileRequest": {
72281
+ "type": "object",
72282
+ "properties": {
72283
+ "content": {
72284
+ "type": "object",
72285
+ "properties": {
72286
+ "BYTES_PER_ELEMENT": {
72287
+ "type": "number"
72288
+ },
72289
+ "buffer": {
72290
+ "type": "object",
72291
+ "properties": {
72292
+ "byteLength": {
72293
+ "type": "number"
72294
+ }
72295
+ },
72296
+ "required": [
72297
+ "byteLength"
72298
+ ],
72299
+ "additionalProperties": false
72300
+ },
72301
+ "byteLength": {
72302
+ "type": "number"
72303
+ },
72304
+ "byteOffset": {
72305
+ "type": "number"
72306
+ },
72307
+ "length": {
72308
+ "type": "number"
72309
+ }
72310
+ },
72311
+ "required": [
72312
+ "BYTES_PER_ELEMENT",
72313
+ "buffer",
72314
+ "byteLength",
72315
+ "byteOffset",
72316
+ "length"
72317
+ ],
72318
+ "additionalProperties": {
72319
+ "type": "number"
72320
+ }
72321
+ },
72322
+ "filename": {
72323
+ "type": "string"
72324
+ },
72325
+ "mimetype": {
72326
+ "type": "string"
72327
+ },
72328
+ "expiresAt": {
72329
+ "$ref": "#/definitions/ISO8601DateTimeString"
72330
+ },
72331
+ "title": {
72332
+ "type": "string"
72333
+ },
72334
+ "description": {
72335
+ "type": "string"
72336
+ }
72337
+ },
72338
+ "required": [
72339
+ "content",
72340
+ "filename",
72341
+ "mimetype",
72342
+ "expiresAt",
72343
+ "title"
72344
+ ],
72345
+ "additionalProperties": false
72346
+ },
72347
+ "ISO8601DateTimeString": {
72348
+ "type": "string",
72349
+ "errorMessage": "must match ISO8601 datetime format",
72350
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
72351
+ }
72352
+ }
72353
+ };
72354
+ exports.UploadOwnFileValidatableRequest = {
72355
+ "$schema": "http://json-schema.org/draft-07/schema#",
72356
+ "$ref": "#/definitions/UploadOwnFileValidatableRequest",
72357
+ "definitions": {
72358
+ "UploadOwnFileValidatableRequest": {
72359
+ "type": "object",
72360
+ "properties": {
72361
+ "filename": {
72362
+ "type": "string"
72363
+ },
72364
+ "mimetype": {
72365
+ "type": "string"
72366
+ },
72367
+ "expiresAt": {
72368
+ "$ref": "#/definitions/ISO8601DateTimeString"
72369
+ },
72370
+ "title": {
72371
+ "type": "string"
72372
+ },
72373
+ "description": {
72374
+ "type": "string"
72375
+ },
72376
+ "content": {
72377
+ "type": "object"
72378
+ }
72379
+ },
72380
+ "required": [
72381
+ "content",
72382
+ "expiresAt",
72383
+ "filename",
72384
+ "mimetype",
72385
+ "title"
72386
+ ],
72387
+ "additionalProperties": false
72388
+ },
72389
+ "ISO8601DateTimeString": {
72390
+ "type": "string",
72391
+ "errorMessage": "must match ISO8601 datetime format",
72392
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
72393
+ }
72394
+ }
72395
+ };
72396
+ exports.CheckIdentityRequest = {
72397
+ "$schema": "http://json-schema.org/draft-07/schema#",
72398
+ "$ref": "#/definitions/CheckIdentityRequest",
72399
+ "definitions": {
72400
+ "CheckIdentityRequest": {
72401
+ "type": "object",
72402
+ "properties": {
72403
+ "address": {
72404
+ "$ref": "#/definitions/AddressString"
72405
+ }
72406
+ },
72407
+ "required": [
72408
+ "address"
72409
+ ],
72410
+ "additionalProperties": false
72411
+ },
72412
+ "AddressString": {
72413
+ "type": "string",
72414
+ "pattern": "id1[A-Za-z0-9]{32,33}"
72415
+ }
72416
+ }
72417
+ };
72418
+ exports.GetAttachmentMetadataRequest = {
72419
+ "$schema": "http://json-schema.org/draft-07/schema#",
72420
+ "$ref": "#/definitions/GetAttachmentMetadataRequest",
72421
+ "definitions": {
72422
+ "GetAttachmentMetadataRequest": {
72423
+ "type": "object",
72424
+ "properties": {
72425
+ "id": {
72426
+ "$ref": "#/definitions/MessageIdString"
72427
+ },
72428
+ "attachmentId": {
72429
+ "$ref": "#/definitions/FileIdString"
72430
+ }
72431
+ },
72432
+ "required": [
72433
+ "id",
72434
+ "attachmentId"
72435
+ ],
72436
+ "additionalProperties": false
72437
+ },
72438
+ "MessageIdString": {
72439
+ "type": "string",
72440
+ "pattern": "MSG[A-Za-z0-9]{17}"
72441
+ },
72442
+ "FileIdString": {
72443
+ "type": "string",
72444
+ "pattern": "FIL[A-Za-z0-9]{17}"
72445
+ }
72446
+ }
72447
+ };
72448
+ exports.GetMessageRequest = {
72449
+ "$schema": "http://json-schema.org/draft-07/schema#",
72450
+ "$ref": "#/definitions/GetMessageRequest",
72451
+ "definitions": {
72452
+ "GetMessageRequest": {
72453
+ "type": "object",
72454
+ "properties": {
72455
+ "id": {
72456
+ "$ref": "#/definitions/MessageIdString"
72457
+ }
72458
+ },
72459
+ "required": [
72460
+ "id"
72461
+ ],
72462
+ "additionalProperties": false
72463
+ },
72464
+ "MessageIdString": {
72465
+ "type": "string",
72466
+ "pattern": "MSG[A-Za-z0-9]{17}"
72467
+ }
72468
+ }
72469
+ };
72470
+ exports.GetMessagesRequest = {
72471
+ "$schema": "http://json-schema.org/draft-07/schema#",
72472
+ "$ref": "#/definitions/GetMessagesRequest",
72473
+ "definitions": {
72474
+ "GetMessagesRequest": {
72475
+ "type": "object",
72476
+ "properties": {
72477
+ "query": {
72478
+ "$ref": "#/definitions/GetMessagesQuery"
72479
+ }
72480
+ },
72481
+ "additionalProperties": false
72482
+ },
72483
+ "GetMessagesQuery": {
72484
+ "type": "object",
72485
+ "properties": {
72486
+ "createdBy": {
72487
+ "anyOf": [
72488
+ {
72489
+ "type": "string"
72490
+ },
72491
+ {
72492
+ "type": "array",
72493
+ "items": {
72494
+ "type": "string"
72495
+ }
72496
+ }
72497
+ ]
72498
+ },
72499
+ "createdByDevice": {
72500
+ "anyOf": [
72501
+ {
72502
+ "type": "string"
72503
+ },
72504
+ {
72505
+ "type": "array",
72506
+ "items": {
72507
+ "type": "string"
72508
+ }
72509
+ }
72510
+ ]
72511
+ },
72512
+ "createdAt": {
72035
72513
  "anyOf": [
72036
72514
  {
72037
72515
  "type": "string"
@@ -72044,7 +72522,7 @@ exports.GetFilesRequest = {
72044
72522
  }
72045
72523
  ]
72046
72524
  },
72047
- "expiresAt": {
72525
+ "content.@type": {
72048
72526
  "anyOf": [
72049
72527
  {
72050
72528
  "type": "string"
@@ -72057,7 +72535,7 @@ exports.GetFilesRequest = {
72057
72535
  }
72058
72536
  ]
72059
72537
  },
72060
- "filename": {
72538
+ "content.body": {
72061
72539
  "anyOf": [
72062
72540
  {
72063
72541
  "type": "string"
@@ -72070,7 +72548,7 @@ exports.GetFilesRequest = {
72070
72548
  }
72071
72549
  ]
72072
72550
  },
72073
- "filesize": {
72551
+ "content.subject": {
72074
72552
  "anyOf": [
72075
72553
  {
72076
72554
  "type": "string"
@@ -72083,7 +72561,7 @@ exports.GetFilesRequest = {
72083
72561
  }
72084
72562
  ]
72085
72563
  },
72086
- "mimetype": {
72564
+ "attachments": {
72087
72565
  "anyOf": [
72088
72566
  {
72089
72567
  "type": "string"
@@ -72096,7 +72574,7 @@ exports.GetFilesRequest = {
72096
72574
  }
72097
72575
  ]
72098
72576
  },
72099
- "title": {
72577
+ "recipients.address": {
72100
72578
  "anyOf": [
72101
72579
  {
72102
72580
  "type": "string"
@@ -72109,7 +72587,7 @@ exports.GetFilesRequest = {
72109
72587
  }
72110
72588
  ]
72111
72589
  },
72112
- "isOwn": {
72590
+ "recipients.relationshipId": {
72113
72591
  "anyOf": [
72114
72592
  {
72115
72593
  "type": "string"
@@ -72121,322 +72599,65 @@ exports.GetFilesRequest = {
72121
72599
  }
72122
72600
  }
72123
72601
  ]
72124
- }
72125
- },
72126
- "additionalProperties": false
72127
- },
72128
- "OwnerRestriction": {
72129
- "type": "string",
72130
- "enum": [
72131
- "o",
72132
- "p"
72133
- ]
72134
- }
72135
- }
72136
- };
72137
- exports.GetOrLoadFileViaSecretRequest = {
72138
- "$schema": "http://json-schema.org/draft-07/schema#",
72139
- "$ref": "#/definitions/GetOrLoadFileViaSecretRequest",
72140
- "definitions": {
72141
- "GetOrLoadFileViaSecretRequest": {
72142
- "type": "object",
72143
- "properties": {
72144
- "id": {
72145
- "$ref": "#/definitions/FileIdString"
72146
72602
  },
72147
- "secretKey": {
72148
- "type": "string",
72149
- "minLength": 10
72150
- }
72151
- },
72152
- "required": [
72153
- "id",
72154
- "secretKey"
72155
- ],
72156
- "additionalProperties": false
72157
- },
72158
- "FileIdString": {
72159
- "type": "string",
72160
- "pattern": "FIL[A-Za-z0-9]{17}"
72161
- }
72162
- }
72163
- };
72164
- exports.GetOrLoadFileViaReferenceRequest = {
72165
- "$schema": "http://json-schema.org/draft-07/schema#",
72166
- "$ref": "#/definitions/GetOrLoadFileViaReferenceRequest",
72167
- "definitions": {
72168
- "GetOrLoadFileViaReferenceRequest": {
72169
- "type": "object",
72170
- "properties": {
72171
- "reference": {
72603
+ "wasReadAt": {
72172
72604
  "anyOf": [
72173
72605
  {
72174
- "$ref": "#/definitions/TokenReferenceString"
72606
+ "type": "string"
72175
72607
  },
72176
72608
  {
72177
- "$ref": "#/definitions/FileReferenceString"
72609
+ "type": "array",
72610
+ "items": {
72611
+ "type": "string"
72612
+ }
72178
72613
  }
72179
72614
  ]
72180
- }
72181
- },
72182
- "required": [
72183
- "reference"
72184
- ],
72185
- "additionalProperties": false,
72186
- "errorMessage": "token / file reference invalid"
72187
- },
72188
- "TokenReferenceString": {
72189
- "type": "string",
72190
- "pattern": "VE9L.{84}"
72191
- },
72192
- "FileReferenceString": {
72193
- "type": "string",
72194
- "pattern": "RklM.{84}"
72195
- }
72196
- }
72197
- };
72198
- exports.GetOrLoadFileRequest = {
72199
- "$schema": "http://json-schema.org/draft-07/schema#",
72200
- "$ref": "#/definitions/GetOrLoadFileRequest",
72201
- "definitions": {
72202
- "GetOrLoadFileRequest": {
72203
- "anyOf": [
72204
- {
72205
- "$ref": "#/definitions/GetOrLoadFileViaSecretRequest"
72206
- },
72207
- {
72208
- "$ref": "#/definitions/GetOrLoadFileViaReferenceRequest"
72209
- }
72210
- ]
72211
- },
72212
- "GetOrLoadFileViaSecretRequest": {
72213
- "type": "object",
72214
- "properties": {
72215
- "id": {
72216
- "$ref": "#/definitions/FileIdString"
72217
72615
  },
72218
- "secretKey": {
72219
- "type": "string",
72220
- "minLength": 10
72221
- }
72222
- },
72223
- "required": [
72224
- "id",
72225
- "secretKey"
72226
- ],
72227
- "additionalProperties": false
72228
- },
72229
- "FileIdString": {
72230
- "type": "string",
72231
- "pattern": "FIL[A-Za-z0-9]{17}"
72232
- },
72233
- "GetOrLoadFileViaReferenceRequest": {
72234
- "type": "object",
72235
- "properties": {
72236
- "reference": {
72616
+ "participant": {
72237
72617
  "anyOf": [
72238
72618
  {
72239
- "$ref": "#/definitions/TokenReferenceString"
72619
+ "type": "string"
72240
72620
  },
72241
72621
  {
72242
- "$ref": "#/definitions/FileReferenceString"
72622
+ "type": "array",
72623
+ "items": {
72624
+ "type": "string"
72625
+ }
72243
72626
  }
72244
72627
  ]
72245
72628
  }
72246
72629
  },
72247
- "required": [
72248
- "reference"
72249
- ],
72250
- "additionalProperties": false,
72251
- "errorMessage": "token / file reference invalid"
72252
- },
72253
- "TokenReferenceString": {
72254
- "type": "string",
72255
- "pattern": "VE9L.{84}"
72256
- },
72257
- "FileReferenceString": {
72258
- "type": "string",
72259
- "pattern": "RklM.{84}"
72260
- }
72261
- }
72262
- };
72263
- exports.UploadOwnFileRequest = {
72264
- "$schema": "http://json-schema.org/draft-07/schema#",
72265
- "$ref": "#/definitions/UploadOwnFileRequest",
72266
- "definitions": {
72267
- "UploadOwnFileRequest": {
72268
- "type": "object",
72269
- "properties": {
72270
- "content": {
72271
- "type": "object",
72272
- "properties": {
72273
- "BYTES_PER_ELEMENT": {
72274
- "type": "number"
72275
- },
72276
- "buffer": {
72277
- "type": "object",
72278
- "properties": {
72279
- "byteLength": {
72280
- "type": "number"
72281
- }
72282
- },
72283
- "required": [
72284
- "byteLength"
72285
- ],
72286
- "additionalProperties": false
72287
- },
72288
- "byteLength": {
72289
- "type": "number"
72290
- },
72291
- "byteOffset": {
72292
- "type": "number"
72293
- },
72294
- "length": {
72295
- "type": "number"
72296
- }
72297
- },
72298
- "required": [
72299
- "BYTES_PER_ELEMENT",
72300
- "buffer",
72301
- "byteLength",
72302
- "byteOffset",
72303
- "length"
72304
- ],
72305
- "additionalProperties": {
72306
- "type": "number"
72307
- }
72308
- },
72309
- "filename": {
72310
- "type": "string"
72311
- },
72312
- "mimetype": {
72313
- "type": "string"
72314
- },
72315
- "expiresAt": {
72316
- "$ref": "#/definitions/ISO8601DateTimeString"
72317
- },
72318
- "title": {
72319
- "type": "string"
72320
- },
72321
- "description": {
72322
- "type": "string"
72323
- }
72324
- },
72325
- "required": [
72326
- "content",
72327
- "filename",
72328
- "mimetype",
72329
- "expiresAt",
72330
- "title"
72331
- ],
72332
72630
  "additionalProperties": false
72333
- },
72334
- "ISO8601DateTimeString": {
72335
- "type": "string",
72336
- "errorMessage": "must match ISO8601 datetime format",
72337
- "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
72338
72631
  }
72339
72632
  }
72340
72633
  };
72341
- exports.UploadOwnFileValidatableRequest = {
72634
+ exports.MarkMessageAsReadRequest = {
72342
72635
  "$schema": "http://json-schema.org/draft-07/schema#",
72343
- "$ref": "#/definitions/UploadOwnFileValidatableRequest",
72636
+ "$ref": "#/definitions/MarkMessageAsReadRequest",
72344
72637
  "definitions": {
72345
- "UploadOwnFileValidatableRequest": {
72346
- "type": "object",
72347
- "properties": {
72348
- "filename": {
72349
- "type": "string"
72350
- },
72351
- "mimetype": {
72352
- "type": "string"
72353
- },
72354
- "expiresAt": {
72355
- "$ref": "#/definitions/ISO8601DateTimeString"
72356
- },
72357
- "title": {
72358
- "type": "string"
72359
- },
72360
- "description": {
72361
- "type": "string"
72362
- },
72363
- "content": {
72364
- "type": "object"
72365
- }
72366
- },
72367
- "required": [
72368
- "content",
72369
- "expiresAt",
72370
- "filename",
72371
- "mimetype",
72372
- "title"
72373
- ],
72374
- "additionalProperties": false
72375
- },
72376
- "ISO8601DateTimeString": {
72377
- "type": "string",
72378
- "errorMessage": "must match ISO8601 datetime format",
72379
- "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
72380
- }
72381
- }
72382
- };
72383
- exports.CheckIdentityRequest = {
72384
- "$schema": "http://json-schema.org/draft-07/schema#",
72385
- "$ref": "#/definitions/CheckIdentityRequest",
72386
- "definitions": {
72387
- "CheckIdentityRequest": {
72388
- "type": "object",
72389
- "properties": {
72390
- "address": {
72391
- "$ref": "#/definitions/AddressString"
72392
- }
72393
- },
72394
- "required": [
72395
- "address"
72396
- ],
72397
- "additionalProperties": false
72398
- },
72399
- "AddressString": {
72400
- "type": "string",
72401
- "pattern": "id1[A-Za-z0-9]{32,33}"
72402
- }
72403
- }
72404
- };
72405
- exports.GetAttachmentMetadataRequest = {
72406
- "$schema": "http://json-schema.org/draft-07/schema#",
72407
- "$ref": "#/definitions/GetAttachmentMetadataRequest",
72408
- "definitions": {
72409
- "GetAttachmentMetadataRequest": {
72638
+ "MarkMessageAsReadRequest": {
72410
72639
  "type": "object",
72411
72640
  "properties": {
72412
72641
  "id": {
72413
72642
  "$ref": "#/definitions/MessageIdString"
72414
- },
72415
- "attachmentId": {
72416
- "$ref": "#/definitions/FileIdString"
72417
72643
  }
72418
72644
  },
72419
72645
  "required": [
72420
- "id",
72421
- "attachmentId"
72646
+ "id"
72422
72647
  ],
72423
72648
  "additionalProperties": false
72424
72649
  },
72425
72650
  "MessageIdString": {
72426
72651
  "type": "string",
72427
72652
  "pattern": "MSG[A-Za-z0-9]{17}"
72428
- },
72429
- "FileIdString": {
72430
- "type": "string",
72431
- "pattern": "FIL[A-Za-z0-9]{17}"
72432
72653
  }
72433
72654
  }
72434
72655
  };
72435
- exports.GetMessageRequest = {
72656
+ exports.MarkMessageAsUnreadRequest = {
72436
72657
  "$schema": "http://json-schema.org/draft-07/schema#",
72437
- "$ref": "#/definitions/GetMessageRequest",
72658
+ "$ref": "#/definitions/MarkMessageAsUnreadRequest",
72438
72659
  "definitions": {
72439
- "GetMessageRequest": {
72660
+ "MarkMessageAsUnreadRequest": {
72440
72661
  "type": "object",
72441
72662
  "properties": {
72442
72663
  "id": {
@@ -72454,157 +72675,6 @@ exports.GetMessageRequest = {
72454
72675
  }
72455
72676
  }
72456
72677
  };
72457
- exports.GetMessagesRequest = {
72458
- "$schema": "http://json-schema.org/draft-07/schema#",
72459
- "$ref": "#/definitions/GetMessagesRequest",
72460
- "definitions": {
72461
- "GetMessagesRequest": {
72462
- "type": "object",
72463
- "properties": {
72464
- "query": {
72465
- "$ref": "#/definitions/GetMessagesQuery"
72466
- }
72467
- },
72468
- "additionalProperties": false
72469
- },
72470
- "GetMessagesQuery": {
72471
- "type": "object",
72472
- "properties": {
72473
- "createdBy": {
72474
- "anyOf": [
72475
- {
72476
- "type": "string"
72477
- },
72478
- {
72479
- "type": "array",
72480
- "items": {
72481
- "type": "string"
72482
- }
72483
- }
72484
- ]
72485
- },
72486
- "createdByDevice": {
72487
- "anyOf": [
72488
- {
72489
- "type": "string"
72490
- },
72491
- {
72492
- "type": "array",
72493
- "items": {
72494
- "type": "string"
72495
- }
72496
- }
72497
- ]
72498
- },
72499
- "createdAt": {
72500
- "anyOf": [
72501
- {
72502
- "type": "string"
72503
- },
72504
- {
72505
- "type": "array",
72506
- "items": {
72507
- "type": "string"
72508
- }
72509
- }
72510
- ]
72511
- },
72512
- "content.@type": {
72513
- "anyOf": [
72514
- {
72515
- "type": "string"
72516
- },
72517
- {
72518
- "type": "array",
72519
- "items": {
72520
- "type": "string"
72521
- }
72522
- }
72523
- ]
72524
- },
72525
- "content.body": {
72526
- "anyOf": [
72527
- {
72528
- "type": "string"
72529
- },
72530
- {
72531
- "type": "array",
72532
- "items": {
72533
- "type": "string"
72534
- }
72535
- }
72536
- ]
72537
- },
72538
- "content.subject": {
72539
- "anyOf": [
72540
- {
72541
- "type": "string"
72542
- },
72543
- {
72544
- "type": "array",
72545
- "items": {
72546
- "type": "string"
72547
- }
72548
- }
72549
- ]
72550
- },
72551
- "attachments": {
72552
- "anyOf": [
72553
- {
72554
- "type": "string"
72555
- },
72556
- {
72557
- "type": "array",
72558
- "items": {
72559
- "type": "string"
72560
- }
72561
- }
72562
- ]
72563
- },
72564
- "recipients.address": {
72565
- "anyOf": [
72566
- {
72567
- "type": "string"
72568
- },
72569
- {
72570
- "type": "array",
72571
- "items": {
72572
- "type": "string"
72573
- }
72574
- }
72575
- ]
72576
- },
72577
- "recipients.relationshipId": {
72578
- "anyOf": [
72579
- {
72580
- "type": "string"
72581
- },
72582
- {
72583
- "type": "array",
72584
- "items": {
72585
- "type": "string"
72586
- }
72587
- }
72588
- ]
72589
- },
72590
- "participant": {
72591
- "anyOf": [
72592
- {
72593
- "type": "string"
72594
- },
72595
- {
72596
- "type": "array",
72597
- "items": {
72598
- "type": "string"
72599
- }
72600
- }
72601
- ]
72602
- }
72603
- },
72604
- "additionalProperties": false
72605
- }
72606
- }
72607
- };
72608
72678
  exports.SendMessageRequest = {
72609
72679
  "$schema": "http://json-schema.org/draft-07/schema#",
72610
72680
  "$ref": "#/definitions/SendMessageRequest",
@@ -74104,10 +74174,10 @@ exports.CreateAndShareRelationshipAttributeUseCase = CreateAndShareRelationshipA
74104
74174
 
74105
74175
  /***/ }),
74106
74176
 
74107
- /***/ "./dist/useCases/consumption/attributes/CreateIdentityAttribute.js":
74108
- /*!*************************************************************************!*\
74109
- !*** ./dist/useCases/consumption/attributes/CreateIdentityAttribute.js ***!
74110
- \*************************************************************************/
74177
+ /***/ "./dist/useCases/consumption/attributes/CreateRepositoryAttribute.js":
74178
+ /*!***************************************************************************!*\
74179
+ !*** ./dist/useCases/consumption/attributes/CreateRepositoryAttribute.js ***!
74180
+ \***************************************************************************/
74111
74181
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74112
74182
 
74113
74183
  "use strict";
@@ -74125,7 +74195,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74125
74195
  return function (target, key) { decorator(target, key, paramIndex); }
74126
74196
  };
74127
74197
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74128
- exports.CreateIdentityAttributeUseCase = void 0;
74198
+ exports.CreateRepositoryAttributeUseCase = void 0;
74129
74199
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74130
74200
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74131
74201
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
@@ -74134,14 +74204,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
74134
74204
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74135
74205
  let Validator = class Validator extends common_1.SchemaValidator {
74136
74206
  constructor(schemaRepository) {
74137
- super(schemaRepository.getSchema("CreateIdentityAttributeRequest"));
74207
+ super(schemaRepository.getSchema("CreateRepositoryAttributeRequest"));
74138
74208
  }
74139
74209
  };
74140
74210
  Validator = __decorate([
74141
74211
  __param(0, typescript_ioc_1.Inject),
74142
74212
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74143
74213
  ], Validator);
74144
- let CreateIdentityAttributeUseCase = class CreateIdentityAttributeUseCase extends common_1.UseCase {
74214
+ let CreateRepositoryAttributeUseCase = class CreateRepositoryAttributeUseCase extends common_1.UseCase {
74145
74215
  constructor(attributeController, accountController, validator) {
74146
74216
  super(validator);
74147
74217
  this.attributeController = attributeController;
@@ -74160,16 +74230,16 @@ let CreateIdentityAttributeUseCase = class CreateIdentityAttributeUseCase extend
74160
74230
  return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTO(createdAttribute));
74161
74231
  }
74162
74232
  };
74163
- exports.CreateIdentityAttributeUseCase = CreateIdentityAttributeUseCase;
74164
- exports.CreateIdentityAttributeUseCase = CreateIdentityAttributeUseCase = __decorate([
74233
+ exports.CreateRepositoryAttributeUseCase = CreateRepositoryAttributeUseCase;
74234
+ exports.CreateRepositoryAttributeUseCase = CreateRepositoryAttributeUseCase = __decorate([
74165
74235
  __param(0, typescript_ioc_1.Inject),
74166
74236
  __param(1, typescript_ioc_1.Inject),
74167
74237
  __param(2, typescript_ioc_1.Inject),
74168
74238
  __metadata("design:paramtypes", [consumption_1.AttributesController,
74169
74239
  transport_1.AccountController,
74170
74240
  Validator])
74171
- ], CreateIdentityAttributeUseCase);
74172
- //# sourceMappingURL=CreateIdentityAttribute.js.map
74241
+ ], CreateRepositoryAttributeUseCase);
74242
+ //# sourceMappingURL=CreateRepositoryAttribute.js.map
74173
74243
 
74174
74244
  /***/ }),
74175
74245
 
@@ -74598,69 +74668,6 @@ exports.GetAttributesUseCase = GetAttributesUseCase = GetAttributesUseCase_1 = _
74598
74668
 
74599
74669
  /***/ }),
74600
74670
 
74601
- /***/ "./dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js":
74602
- /*!**************************************************************************!*\
74603
- !*** ./dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js ***!
74604
- \**************************************************************************/
74605
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74606
-
74607
- "use strict";
74608
-
74609
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
74610
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
74611
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
74612
- 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;
74613
- return c > 3 && r && Object.defineProperty(target, key, r), r;
74614
- };
74615
- var __metadata = (this && this.__metadata) || function (k, v) {
74616
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
74617
- };
74618
- var __param = (this && this.__param) || function (paramIndex, decorator) {
74619
- return function (target, key) { decorator(target, key, paramIndex); }
74620
- };
74621
- Object.defineProperty(exports, "__esModule", ({ value: true }));
74622
- exports.GetOwnIdentityAttributesUseCase = void 0;
74623
- const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74624
- const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74625
- const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
74626
- const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
74627
- const consumption_2 = __webpack_require__(/*! ../../consumption */ "./dist/useCases/consumption/index.js");
74628
- let Validator = class Validator extends common_1.SchemaValidator {
74629
- constructor(schemaRepository) {
74630
- super(schemaRepository.getSchema("GetOwnIdentityAttributesRequest"));
74631
- }
74632
- };
74633
- Validator = __decorate([
74634
- __param(0, typescript_ioc_1.Inject),
74635
- __metadata("design:paramtypes", [common_1.SchemaRepository])
74636
- ], Validator);
74637
- let GetOwnIdentityAttributesUseCase = class GetOwnIdentityAttributesUseCase extends common_1.UseCase {
74638
- constructor(attributesController, validator) {
74639
- super(validator);
74640
- this.attributesController = attributesController;
74641
- }
74642
- async executeInternal(request) {
74643
- const query = {
74644
- shareInfo: { $exists: false }
74645
- };
74646
- if (typeof request.onlyLatestVersions === "undefined" || request.onlyLatestVersions) {
74647
- query["succeededBy"] = { $exists: false };
74648
- }
74649
- const attributes = await this.attributesController.getLocalAttributes(query);
74650
- return ts_utils_1.Result.ok(consumption_2.AttributeMapper.toAttributeDTOList(attributes));
74651
- }
74652
- };
74653
- exports.GetOwnIdentityAttributesUseCase = GetOwnIdentityAttributesUseCase;
74654
- exports.GetOwnIdentityAttributesUseCase = GetOwnIdentityAttributesUseCase = __decorate([
74655
- __param(0, typescript_ioc_1.Inject),
74656
- __param(1, typescript_ioc_1.Inject),
74657
- __metadata("design:paramtypes", [consumption_1.AttributesController,
74658
- Validator])
74659
- ], GetOwnIdentityAttributesUseCase);
74660
- //# sourceMappingURL=GetOwnIdentityAttributes.js.map
74661
-
74662
- /***/ }),
74663
-
74664
74671
  /***/ "./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js":
74665
74672
  /*!************************************************************************!*\
74666
74673
  !*** ./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js ***!
@@ -74798,10 +74805,10 @@ exports.GetPeerSharedAttributesUseCase = GetPeerSharedAttributesUseCase = __deco
74798
74805
 
74799
74806
  /***/ }),
74800
74807
 
74801
- /***/ "./dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js":
74802
- /*!**************************************************************************************!*\
74803
- !*** ./dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js ***!
74804
- \**************************************************************************************/
74808
+ /***/ "./dist/useCases/consumption/attributes/GetRepositoryAttributes.js":
74809
+ /*!*************************************************************************!*\
74810
+ !*** ./dist/useCases/consumption/attributes/GetRepositoryAttributes.js ***!
74811
+ \*************************************************************************/
74805
74812
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74806
74813
 
74807
74814
  "use strict";
@@ -74819,7 +74826,70 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74819
74826
  return function (target, key) { decorator(target, key, paramIndex); }
74820
74827
  };
74821
74828
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74822
- exports.GetSharedVersionsOfIdentityAttributeUseCase = void 0;
74829
+ exports.GetRepositoryAttributesUseCase = void 0;
74830
+ const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74831
+ const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74832
+ const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
74833
+ const __1 = __webpack_require__(/*! .. */ "./dist/useCases/consumption/index.js");
74834
+ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
74835
+ let Validator = class Validator extends common_1.SchemaValidator {
74836
+ constructor(schemaRepository) {
74837
+ super(schemaRepository.getSchema("GetRepositoryAttributesRequest"));
74838
+ }
74839
+ };
74840
+ Validator = __decorate([
74841
+ __param(0, typescript_ioc_1.Inject),
74842
+ __metadata("design:paramtypes", [common_1.SchemaRepository])
74843
+ ], Validator);
74844
+ let GetRepositoryAttributesUseCase = class GetRepositoryAttributesUseCase extends common_1.UseCase {
74845
+ constructor(attributesController, validator) {
74846
+ super(validator);
74847
+ this.attributesController = attributesController;
74848
+ }
74849
+ async executeInternal(request) {
74850
+ const query = {
74851
+ shareInfo: { $exists: false }
74852
+ };
74853
+ if (typeof request.onlyLatestVersions === "undefined" || request.onlyLatestVersions) {
74854
+ query["succeededBy"] = { $exists: false };
74855
+ }
74856
+ const attributes = await this.attributesController.getLocalAttributes(query);
74857
+ return ts_utils_1.Result.ok(__1.AttributeMapper.toAttributeDTOList(attributes));
74858
+ }
74859
+ };
74860
+ exports.GetRepositoryAttributesUseCase = GetRepositoryAttributesUseCase;
74861
+ exports.GetRepositoryAttributesUseCase = GetRepositoryAttributesUseCase = __decorate([
74862
+ __param(0, typescript_ioc_1.Inject),
74863
+ __param(1, typescript_ioc_1.Inject),
74864
+ __metadata("design:paramtypes", [consumption_1.AttributesController,
74865
+ Validator])
74866
+ ], GetRepositoryAttributesUseCase);
74867
+ //# sourceMappingURL=GetRepositoryAttributes.js.map
74868
+
74869
+ /***/ }),
74870
+
74871
+ /***/ "./dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js":
74872
+ /*!****************************************************************************************!*\
74873
+ !*** ./dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js ***!
74874
+ \****************************************************************************************/
74875
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74876
+
74877
+ "use strict";
74878
+
74879
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
74880
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
74881
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
74882
+ 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;
74883
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
74884
+ };
74885
+ var __metadata = (this && this.__metadata) || function (k, v) {
74886
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
74887
+ };
74888
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
74889
+ return function (target, key) { decorator(target, key, paramIndex); }
74890
+ };
74891
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
74892
+ exports.GetSharedVersionsOfRepositoryAttributeUseCase = void 0;
74823
74893
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74824
74894
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74825
74895
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
@@ -74828,14 +74898,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
74828
74898
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74829
74899
  let Validator = class Validator extends common_1.SchemaValidator {
74830
74900
  constructor(schemaRepository) {
74831
- super(schemaRepository.getSchema("GetSharedVersionsOfIdentityAttributeRequest"));
74901
+ super(schemaRepository.getSchema("GetSharedVersionsOfRepositoryAttributeRequest"));
74832
74902
  }
74833
74903
  };
74834
74904
  Validator = __decorate([
74835
74905
  __param(0, typescript_ioc_1.Inject),
74836
74906
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74837
74907
  ], Validator);
74838
- let GetSharedVersionsOfIdentityAttributeUseCase = class GetSharedVersionsOfIdentityAttributeUseCase extends common_1.UseCase {
74908
+ let GetSharedVersionsOfRepositoryAttributeUseCase = class GetSharedVersionsOfRepositoryAttributeUseCase extends common_1.UseCase {
74839
74909
  constructor(accountController, attributeController, validator) {
74840
74910
  super(validator);
74841
74911
  this.accountController = accountController;
@@ -74848,7 +74918,7 @@ let GetSharedVersionsOfIdentityAttributeUseCase = class GetSharedVersionsOfIdent
74848
74918
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute));
74849
74919
  }
74850
74920
  if (!repositoryAttribute.isRepositoryAttribute(this.accountController.identity.address)) {
74851
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNoIdentityAttribute(repositoryAttributeId));
74921
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(repositoryAttributeId));
74852
74922
  }
74853
74923
  if (request.peers?.length === 0) {
74854
74924
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.invalidPropertyValue("The `peers` property may not be an empty array."));
@@ -74858,16 +74928,16 @@ let GetSharedVersionsOfIdentityAttributeUseCase = class GetSharedVersionsOfIdent
74858
74928
  return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(sharedVersions));
74859
74929
  }
74860
74930
  };
74861
- exports.GetSharedVersionsOfIdentityAttributeUseCase = GetSharedVersionsOfIdentityAttributeUseCase;
74862
- exports.GetSharedVersionsOfIdentityAttributeUseCase = GetSharedVersionsOfIdentityAttributeUseCase = __decorate([
74931
+ exports.GetSharedVersionsOfRepositoryAttributeUseCase = GetSharedVersionsOfRepositoryAttributeUseCase;
74932
+ exports.GetSharedVersionsOfRepositoryAttributeUseCase = GetSharedVersionsOfRepositoryAttributeUseCase = __decorate([
74863
74933
  __param(0, typescript_ioc_1.Inject),
74864
74934
  __param(1, typescript_ioc_1.Inject),
74865
74935
  __param(2, typescript_ioc_1.Inject),
74866
74936
  __metadata("design:paramtypes", [transport_1.AccountController,
74867
74937
  consumption_1.AttributesController,
74868
74938
  Validator])
74869
- ], GetSharedVersionsOfIdentityAttributeUseCase);
74870
- //# sourceMappingURL=GetSharedVersionsOfIdentityAttribute.js.map
74939
+ ], GetSharedVersionsOfRepositoryAttributeUseCase);
74940
+ //# sourceMappingURL=GetSharedVersionsOfRepositoryAttribute.js.map
74871
74941
 
74872
74942
  /***/ }),
74873
74943
 
@@ -74933,10 +75003,10 @@ exports.GetVersionsOfAttributeUseCase = GetVersionsOfAttributeUseCase = __decora
74933
75003
 
74934
75004
  /***/ }),
74935
75005
 
74936
- /***/ "./dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js":
74937
- /*!********************************************************************************************!*\
74938
- !*** ./dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js ***!
74939
- \********************************************************************************************/
75006
+ /***/ "./dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js":
75007
+ /*!**********************************************************************************************!*\
75008
+ !*** ./dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js ***!
75009
+ \**********************************************************************************************/
74940
75010
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74941
75011
 
74942
75012
  "use strict";
@@ -74954,7 +75024,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74954
75024
  return function (target, key) { decorator(target, key, paramIndex); }
74955
75025
  };
74956
75026
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74957
- exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = void 0;
75027
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = void 0;
74958
75028
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74959
75029
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74960
75030
  const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
@@ -74964,14 +75034,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
74964
75034
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74965
75035
  let Validator = class Validator extends common_1.SchemaValidator {
74966
75036
  constructor(schemaRepository) {
74967
- super(schemaRepository.getSchema("NotifyPeerAboutIdentityAttributeSuccessionRequest"));
75037
+ super(schemaRepository.getSchema("NotifyPeerAboutRepositoryAttributeSuccessionRequest"));
74968
75038
  }
74969
75039
  };
74970
75040
  Validator = __decorate([
74971
75041
  __param(0, typescript_ioc_1.Inject),
74972
75042
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74973
75043
  ], Validator);
74974
- let NotifyPeerAboutIdentityAttributeSuccessionUseCase = class NotifyPeerAboutIdentityAttributeSuccessionUseCase extends common_1.UseCase {
75044
+ let NotifyPeerAboutRepositoryAttributeSuccessionUseCase = class NotifyPeerAboutRepositoryAttributeSuccessionUseCase extends common_1.UseCase {
74975
75045
  constructor(accountController, attributeController, messageController, validator) {
74976
75046
  super(validator);
74977
75047
  this.accountController = accountController;
@@ -74985,14 +75055,14 @@ let NotifyPeerAboutIdentityAttributeSuccessionUseCase = class NotifyPeerAboutIde
74985
75055
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute.name));
74986
75056
  }
74987
75057
  if (!repositoryAttributeSuccessor.isRepositoryAttribute(this.accountController.identity.address)) {
74988
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNoIdentityAttribute(repositoryAttributeSuccessorId));
75058
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(repositoryAttributeSuccessorId));
74989
75059
  }
74990
75060
  const candidatePredecessors = await this.attributeController.getSharedVersionsOfRepositoryAttribute(repositoryAttributeSuccessorId, [transport_1.CoreAddress.from(request.peer)]);
74991
75061
  if (candidatePredecessors.length === 0) {
74992
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.noOtherVersionOfIdentityAttributeHasBeenSharedWithPeerBefore(repositoryAttributeSuccessorId, request.peer));
75062
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.noOtherVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore(repositoryAttributeSuccessorId, request.peer));
74993
75063
  }
74994
75064
  if (candidatePredecessors[0].shareInfo?.sourceAttribute?.toString() === request.attributeId) {
74995
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.identityAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, candidatePredecessors[0].id));
75065
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, candidatePredecessors[0].id));
74996
75066
  }
74997
75067
  const ownSharedIdentityAttributePredecessor = candidatePredecessors[0];
74998
75068
  const notificationId = await consumption_1.ConsumptionIds.notification.generate();
@@ -75029,8 +75099,8 @@ let NotifyPeerAboutIdentityAttributeSuccessionUseCase = class NotifyPeerAboutIde
75029
75099
  return ts_utils_1.Result.ok(result);
75030
75100
  }
75031
75101
  };
75032
- exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = NotifyPeerAboutIdentityAttributeSuccessionUseCase;
75033
- exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = NotifyPeerAboutIdentityAttributeSuccessionUseCase = __decorate([
75102
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = NotifyPeerAboutRepositoryAttributeSuccessionUseCase;
75103
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = NotifyPeerAboutRepositoryAttributeSuccessionUseCase = __decorate([
75034
75104
  __param(0, typescript_ioc_1.Inject),
75035
75105
  __param(1, typescript_ioc_1.Inject),
75036
75106
  __param(2, typescript_ioc_1.Inject),
@@ -75039,15 +75109,15 @@ exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = NotifyPeerAboutIdent
75039
75109
  consumption_1.AttributesController,
75040
75110
  transport_1.MessageController,
75041
75111
  Validator])
75042
- ], NotifyPeerAboutIdentityAttributeSuccessionUseCase);
75043
- //# sourceMappingURL=NotifyPeerAboutIdentityAttributeSuccession.js.map
75112
+ ], NotifyPeerAboutRepositoryAttributeSuccessionUseCase);
75113
+ //# sourceMappingURL=NotifyPeerAboutRepositoryAttributeSuccession.js.map
75044
75114
 
75045
75115
  /***/ }),
75046
75116
 
75047
- /***/ "./dist/useCases/consumption/attributes/ShareIdentityAttribute.js":
75048
- /*!************************************************************************!*\
75049
- !*** ./dist/useCases/consumption/attributes/ShareIdentityAttribute.js ***!
75050
- \************************************************************************/
75117
+ /***/ "./dist/useCases/consumption/attributes/ShareRepositoryAttribute.js":
75118
+ /*!**************************************************************************!*\
75119
+ !*** ./dist/useCases/consumption/attributes/ShareRepositoryAttribute.js ***!
75120
+ \**************************************************************************/
75051
75121
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75052
75122
 
75053
75123
  "use strict";
@@ -75065,7 +75135,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
75065
75135
  return function (target, key) { decorator(target, key, paramIndex); }
75066
75136
  };
75067
75137
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75068
- exports.ShareIdentityAttributeUseCase = void 0;
75138
+ exports.ShareRepositoryAttributeUseCase = void 0;
75069
75139
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
75070
75140
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
75071
75141
  const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
@@ -75075,14 +75145,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
75075
75145
  const requests_1 = __webpack_require__(/*! ../requests */ "./dist/useCases/consumption/requests/index.js");
75076
75146
  let Validator = class Validator extends common_1.SchemaValidator {
75077
75147
  constructor(schemaRepository) {
75078
- super(schemaRepository.getSchema("ShareIdentityAttributeRequest"));
75148
+ super(schemaRepository.getSchema("ShareRepositoryAttributeRequest"));
75079
75149
  }
75080
75150
  };
75081
75151
  Validator = __decorate([
75082
75152
  __param(0, typescript_ioc_1.Inject),
75083
75153
  __metadata("design:paramtypes", [common_1.SchemaRepository])
75084
75154
  ], Validator);
75085
- let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends common_1.UseCase {
75155
+ let ShareRepositoryAttributeUseCase = class ShareRepositoryAttributeUseCase extends common_1.UseCase {
75086
75156
  constructor(attributeController, accountController, requestsController, messageController, validator) {
75087
75157
  super(validator);
75088
75158
  this.attributeController = attributeController;
@@ -75097,7 +75167,7 @@ let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends
75097
75167
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute.name));
75098
75168
  }
75099
75169
  if (!repositoryAttribute.isRepositoryAttribute(this.accountController.identity.address)) {
75100
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNoIdentityAttribute(repositoryAttributeId));
75170
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(repositoryAttributeId));
75101
75171
  }
75102
75172
  const query = {
75103
75173
  "content.owner": this.accountController.identity.address.toString(),
@@ -75107,11 +75177,11 @@ let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends
75107
75177
  };
75108
75178
  const ownSharedIdentityAttributesOfRepositoryAttribute = await this.attributeController.getLocalAttributes(query);
75109
75179
  if (ownSharedIdentityAttributesOfRepositoryAttribute.length > 0) {
75110
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.identityAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, ownSharedIdentityAttributesOfRepositoryAttribute[0].id));
75180
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, ownSharedIdentityAttributesOfRepositoryAttribute[0].id));
75111
75181
  }
75112
- const ownSharedIdentityAttributesOfRepositoryAttributeVersion = await this.attributeController.getSharedVersionsOfRepositoryAttribute(repositoryAttributeId, [transport_1.CoreAddress.from(request.peer)], false);
75113
- if (ownSharedIdentityAttributesOfRepositoryAttributeVersion.length > 0) {
75114
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.anotherVersionOfIdentityAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, ownSharedIdentityAttributesOfRepositoryAttributeVersion[0].id));
75182
+ const sharedVersionsOfRepositoryAttribute = await this.attributeController.getSharedVersionsOfRepositoryAttribute(repositoryAttributeId, [transport_1.CoreAddress.from(request.peer)], false);
75183
+ if (sharedVersionsOfRepositoryAttribute.length > 0) {
75184
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, sharedVersionsOfRepositoryAttribute[0].id));
75115
75185
  }
75116
75186
  const requestParams = consumption_1.CreateOutgoingRequestParameters.from({
75117
75187
  peer: request.peer,
@@ -75136,8 +75206,8 @@ let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends
75136
75206
  return ts_utils_1.Result.ok(requests_1.RequestMapper.toLocalRequestDTO(localRequest));
75137
75207
  }
75138
75208
  };
75139
- exports.ShareIdentityAttributeUseCase = ShareIdentityAttributeUseCase;
75140
- exports.ShareIdentityAttributeUseCase = ShareIdentityAttributeUseCase = __decorate([
75209
+ exports.ShareRepositoryAttributeUseCase = ShareRepositoryAttributeUseCase;
75210
+ exports.ShareRepositoryAttributeUseCase = ShareRepositoryAttributeUseCase = __decorate([
75141
75211
  __param(0, typescript_ioc_1.Inject),
75142
75212
  __param(1, typescript_ioc_1.Inject),
75143
75213
  __param(2, typescript_ioc_1.Inject),
@@ -75148,15 +75218,15 @@ exports.ShareIdentityAttributeUseCase = ShareIdentityAttributeUseCase = __decora
75148
75218
  consumption_1.OutgoingRequestsController,
75149
75219
  transport_1.MessageController,
75150
75220
  Validator])
75151
- ], ShareIdentityAttributeUseCase);
75152
- //# sourceMappingURL=ShareIdentityAttribute.js.map
75221
+ ], ShareRepositoryAttributeUseCase);
75222
+ //# sourceMappingURL=ShareRepositoryAttribute.js.map
75153
75223
 
75154
75224
  /***/ }),
75155
75225
 
75156
- /***/ "./dist/useCases/consumption/attributes/SucceedIdentityAttribute.js":
75157
- /*!**************************************************************************!*\
75158
- !*** ./dist/useCases/consumption/attributes/SucceedIdentityAttribute.js ***!
75159
- \**************************************************************************/
75226
+ /***/ "./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js":
75227
+ /*!*******************************************************************************************!*\
75228
+ !*** ./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js ***!
75229
+ \*******************************************************************************************/
75160
75230
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75161
75231
 
75162
75232
  "use strict";
@@ -75174,72 +75244,97 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
75174
75244
  return function (target, key) { decorator(target, key, paramIndex); }
75175
75245
  };
75176
75246
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75177
- exports.SucceedIdentityAttributeUseCase = void 0;
75247
+ exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = void 0;
75178
75248
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
75179
75249
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
75250
+ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
75180
75251
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
75181
75252
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
75182
75253
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
75183
75254
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
75184
75255
  let Validator = class Validator extends common_1.SchemaValidator {
75185
75256
  constructor(schemaRepository) {
75186
- super(schemaRepository.getSchema("SucceedIdentityAttributeRequest"));
75257
+ super(schemaRepository.getSchema("SucceedRelationshipAttributeAndNotifyPeerRequest"));
75187
75258
  }
75188
75259
  };
75189
75260
  Validator = __decorate([
75190
75261
  __param(0, typescript_ioc_1.Inject),
75191
75262
  __metadata("design:paramtypes", [common_1.SchemaRepository])
75192
75263
  ], Validator);
75193
- let SucceedIdentityAttributeUseCase = class SucceedIdentityAttributeUseCase extends common_1.UseCase {
75194
- constructor(attributeController, accountController, validator) {
75264
+ let SucceedRelationshipAttributeAndNotifyPeerUseCase = class SucceedRelationshipAttributeAndNotifyPeerUseCase extends common_1.UseCase {
75265
+ constructor(accountController, attributeController, messageController, validator) {
75195
75266
  super(validator);
75196
- this.attributeController = attributeController;
75197
75267
  this.accountController = accountController;
75268
+ this.attributeController = attributeController;
75269
+ this.messageController = messageController;
75198
75270
  }
75199
75271
  async executeInternal(request) {
75200
75272
  const predecessor = await this.attributeController.getLocalAttribute(transport_1.CoreId.from(request.predecessorId));
75201
75273
  if (typeof predecessor === "undefined") {
75202
75274
  return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.predecessorDoesNotExist());
75203
75275
  }
75204
- const successorParams = {
75205
- content: {
75206
- "@type": "IdentityAttribute",
75207
- owner: this.accountController.identity.address.toString(),
75208
- ...request.successorContent
75209
- },
75210
- succeeds: predecessor.id.toString()
75211
- };
75276
+ if (!predecessor.isOwnSharedRelationshipAttribute(this.accountController.identity.address, predecessor.shareInfo?.peer)) {
75277
+ return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.invalidPredecessor());
75278
+ }
75279
+ const notificationId = await consumption_1.ConsumptionIds.notification.generate();
75212
75280
  const predecessorId = transport_1.CoreId.from(request.predecessorId);
75213
- const validationResult = await this.attributeController.validateRepositoryAttributeSuccession(predecessorId, successorParams);
75281
+ const att = {
75282
+ "@type": "RelationshipAttribute",
75283
+ ...request.successorContent,
75284
+ confidentiality: predecessor.content.confidentiality,
75285
+ isTechnical: predecessor.content.isTechnical,
75286
+ key: predecessor.content.key,
75287
+ owner: predecessor.content.owner.toString()
75288
+ };
75289
+ const successorParams = consumption_1.AttributeSuccessorParams.from({
75290
+ content: content_1.RelationshipAttribute.from(att),
75291
+ shareInfo: { peer: predecessor.shareInfo.peer, notificationReference: notificationId }
75292
+ });
75293
+ const validationResult = await this.attributeController.validateOwnSharedRelationshipAttributeSuccession(predecessorId, successorParams);
75214
75294
  if (validationResult.isError()) {
75215
75295
  return ts_utils_1.Result.fail(validationResult.error);
75216
75296
  }
75217
- const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedRepositoryAttribute(predecessorId, successorParams, false);
75218
- await this.accountController.syncDatawallet();
75297
+ const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedOwnSharedRelationshipAttribute(predecessorId, successorParams, false);
75298
+ const notificationItem = content_1.PeerSharedAttributeSucceededNotificationItem.from({
75299
+ predecessorId: predecessor.id,
75300
+ successorId: successor.id,
75301
+ successorContent: successor.content
75302
+ });
75303
+ const notification = content_1.Notification.from({
75304
+ id: notificationId,
75305
+ items: [notificationItem]
75306
+ });
75307
+ await this.messageController.sendMessage({
75308
+ recipients: [predecessor.shareInfo.peer],
75309
+ content: notification
75310
+ });
75219
75311
  const response = {
75220
75312
  predecessor: AttributeMapper_1.AttributeMapper.toAttributeDTO(updatedPredecessor),
75221
- successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor)
75313
+ successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor),
75314
+ notificationId: notificationId
75222
75315
  };
75223
75316
  return ts_utils_1.Result.ok(response);
75224
75317
  }
75225
75318
  };
75226
- exports.SucceedIdentityAttributeUseCase = SucceedIdentityAttributeUseCase;
75227
- exports.SucceedIdentityAttributeUseCase = SucceedIdentityAttributeUseCase = __decorate([
75319
+ exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase;
75320
+ exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase = __decorate([
75228
75321
  __param(0, typescript_ioc_1.Inject),
75229
75322
  __param(1, typescript_ioc_1.Inject),
75230
75323
  __param(2, typescript_ioc_1.Inject),
75231
- __metadata("design:paramtypes", [consumption_1.AttributesController,
75232
- transport_1.AccountController,
75324
+ __param(3, typescript_ioc_1.Inject),
75325
+ __metadata("design:paramtypes", [transport_1.AccountController,
75326
+ consumption_1.AttributesController,
75327
+ transport_1.MessageController,
75233
75328
  Validator])
75234
- ], SucceedIdentityAttributeUseCase);
75235
- //# sourceMappingURL=SucceedIdentityAttribute.js.map
75329
+ ], SucceedRelationshipAttributeAndNotifyPeerUseCase);
75330
+ //# sourceMappingURL=SucceedRelationshipAttributeAndNotifyPeer.js.map
75236
75331
 
75237
75332
  /***/ }),
75238
75333
 
75239
- /***/ "./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js":
75240
- /*!*******************************************************************************************!*\
75241
- !*** ./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js ***!
75242
- \*******************************************************************************************/
75334
+ /***/ "./dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js":
75335
+ /*!****************************************************************************!*\
75336
+ !*** ./dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js ***!
75337
+ \****************************************************************************/
75243
75338
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75244
75339
 
75245
75340
  "use strict";
@@ -75257,90 +75352,65 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
75257
75352
  return function (target, key) { decorator(target, key, paramIndex); }
75258
75353
  };
75259
75354
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75260
- exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = void 0;
75355
+ exports.SucceedRepositoryAttributeUseCase = void 0;
75261
75356
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
75262
75357
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
75263
- const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
75264
75358
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
75265
75359
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
75266
75360
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
75267
75361
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
75268
75362
  let Validator = class Validator extends common_1.SchemaValidator {
75269
75363
  constructor(schemaRepository) {
75270
- super(schemaRepository.getSchema("SucceedRelationshipAttributeAndNotifyPeerRequest"));
75364
+ super(schemaRepository.getSchema("SucceedRepositoryAttributeRequest"));
75271
75365
  }
75272
75366
  };
75273
75367
  Validator = __decorate([
75274
75368
  __param(0, typescript_ioc_1.Inject),
75275
75369
  __metadata("design:paramtypes", [common_1.SchemaRepository])
75276
75370
  ], Validator);
75277
- let SucceedRelationshipAttributeAndNotifyPeerUseCase = class SucceedRelationshipAttributeAndNotifyPeerUseCase extends common_1.UseCase {
75278
- constructor(accountController, attributeController, messageController, validator) {
75371
+ let SucceedRepositoryAttributeUseCase = class SucceedRepositoryAttributeUseCase extends common_1.UseCase {
75372
+ constructor(attributeController, accountController, validator) {
75279
75373
  super(validator);
75280
- this.accountController = accountController;
75281
75374
  this.attributeController = attributeController;
75282
- this.messageController = messageController;
75375
+ this.accountController = accountController;
75283
75376
  }
75284
75377
  async executeInternal(request) {
75285
75378
  const predecessor = await this.attributeController.getLocalAttribute(transport_1.CoreId.from(request.predecessorId));
75286
75379
  if (typeof predecessor === "undefined") {
75287
75380
  return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.predecessorDoesNotExist());
75288
75381
  }
75289
- if (!predecessor.isOwnSharedRelationshipAttribute(this.accountController.identity.address, predecessor.shareInfo?.peer)) {
75290
- return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.invalidPredecessor());
75291
- }
75292
- const notificationId = await consumption_1.ConsumptionIds.notification.generate();
75293
- const predecessorId = transport_1.CoreId.from(request.predecessorId);
75294
- const att = {
75295
- "@type": "RelationshipAttribute",
75296
- ...request.successorContent,
75297
- confidentiality: predecessor.content.confidentiality,
75298
- isTechnical: predecessor.content.isTechnical,
75299
- key: predecessor.content.key,
75300
- owner: predecessor.content.owner.toString()
75382
+ const successorParams = {
75383
+ content: {
75384
+ "@type": "IdentityAttribute",
75385
+ owner: this.accountController.identity.address.toString(),
75386
+ ...request.successorContent
75387
+ },
75388
+ succeeds: predecessor.id.toString()
75301
75389
  };
75302
- const successorParams = consumption_1.AttributeSuccessorParams.from({
75303
- content: content_1.RelationshipAttribute.from(att),
75304
- shareInfo: { peer: predecessor.shareInfo.peer, notificationReference: notificationId }
75305
- });
75306
- const validationResult = await this.attributeController.validateOwnSharedRelationshipAttributeSuccession(predecessorId, successorParams);
75390
+ const predecessorId = transport_1.CoreId.from(request.predecessorId);
75391
+ const validationResult = await this.attributeController.validateRepositoryAttributeSuccession(predecessorId, successorParams);
75307
75392
  if (validationResult.isError()) {
75308
75393
  return ts_utils_1.Result.fail(validationResult.error);
75309
75394
  }
75310
- const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedOwnSharedRelationshipAttribute(predecessorId, successorParams, false);
75311
- const notificationItem = content_1.PeerSharedAttributeSucceededNotificationItem.from({
75312
- predecessorId: predecessor.id,
75313
- successorId: successor.id,
75314
- successorContent: successor.content
75315
- });
75316
- const notification = content_1.Notification.from({
75317
- id: notificationId,
75318
- items: [notificationItem]
75319
- });
75320
- await this.messageController.sendMessage({
75321
- recipients: [predecessor.shareInfo.peer],
75322
- content: notification
75323
- });
75395
+ const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedRepositoryAttribute(predecessorId, successorParams, false);
75396
+ await this.accountController.syncDatawallet();
75324
75397
  const response = {
75325
75398
  predecessor: AttributeMapper_1.AttributeMapper.toAttributeDTO(updatedPredecessor),
75326
- successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor),
75327
- notificationId: notificationId
75399
+ successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor)
75328
75400
  };
75329
75401
  return ts_utils_1.Result.ok(response);
75330
75402
  }
75331
75403
  };
75332
- exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase;
75333
- exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase = __decorate([
75404
+ exports.SucceedRepositoryAttributeUseCase = SucceedRepositoryAttributeUseCase;
75405
+ exports.SucceedRepositoryAttributeUseCase = SucceedRepositoryAttributeUseCase = __decorate([
75334
75406
  __param(0, typescript_ioc_1.Inject),
75335
75407
  __param(1, typescript_ioc_1.Inject),
75336
75408
  __param(2, typescript_ioc_1.Inject),
75337
- __param(3, typescript_ioc_1.Inject),
75338
- __metadata("design:paramtypes", [transport_1.AccountController,
75339
- consumption_1.AttributesController,
75340
- transport_1.MessageController,
75409
+ __metadata("design:paramtypes", [consumption_1.AttributesController,
75410
+ transport_1.AccountController,
75341
75411
  Validator])
75342
- ], SucceedRelationshipAttributeAndNotifyPeerUseCase);
75343
- //# sourceMappingURL=SucceedRelationshipAttributeAndNotifyPeer.js.map
75412
+ ], SucceedRepositoryAttributeUseCase);
75413
+ //# sourceMappingURL=SucceedRepositoryAttribute.js.map
75344
75414
 
75345
75415
  /***/ }),
75346
75416
 
@@ -75424,22 +75494,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
75424
75494
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75425
75495
  __exportStar(__webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js"), exports);
75426
75496
  __exportStar(__webpack_require__(/*! ./CreateAndShareRelationshipAttribute */ "./dist/useCases/consumption/attributes/CreateAndShareRelationshipAttribute.js"), exports);
75427
- __exportStar(__webpack_require__(/*! ./CreateIdentityAttribute */ "./dist/useCases/consumption/attributes/CreateIdentityAttribute.js"), exports);
75497
+ __exportStar(__webpack_require__(/*! ./CreateRepositoryAttribute */ "./dist/useCases/consumption/attributes/CreateRepositoryAttribute.js"), exports);
75428
75498
  __exportStar(__webpack_require__(/*! ./ExecuteIdentityAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js"), exports);
75429
75499
  __exportStar(__webpack_require__(/*! ./ExecuteIQLQuery */ "./dist/useCases/consumption/attributes/ExecuteIQLQuery.js"), exports);
75430
75500
  __exportStar(__webpack_require__(/*! ./ExecuteRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js"), exports);
75431
75501
  __exportStar(__webpack_require__(/*! ./ExecuteThirdPartyRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteThirdPartyRelationshipAttributeQuery.js"), exports);
75432
75502
  __exportStar(__webpack_require__(/*! ./GetAttribute */ "./dist/useCases/consumption/attributes/GetAttribute.js"), exports);
75433
75503
  __exportStar(__webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js"), exports);
75434
- __exportStar(__webpack_require__(/*! ./GetOwnIdentityAttributes */ "./dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js"), exports);
75435
75504
  __exportStar(__webpack_require__(/*! ./GetOwnSharedAttributes */ "./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js"), exports);
75436
75505
  __exportStar(__webpack_require__(/*! ./GetPeerSharedAttributes */ "./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js"), exports);
75437
- __exportStar(__webpack_require__(/*! ./GetSharedVersionsOfIdentityAttribute */ "./dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js"), exports);
75506
+ __exportStar(__webpack_require__(/*! ./GetRepositoryAttributes */ "./dist/useCases/consumption/attributes/GetRepositoryAttributes.js"), exports);
75507
+ __exportStar(__webpack_require__(/*! ./GetSharedVersionsOfRepositoryAttribute */ "./dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js"), exports);
75438
75508
  __exportStar(__webpack_require__(/*! ./GetVersionsOfAttribute */ "./dist/useCases/consumption/attributes/GetVersionsOfAttribute.js"), exports);
75439
- __exportStar(__webpack_require__(/*! ./NotifyPeerAboutIdentityAttributeSuccession */ "./dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js"), exports);
75440
- __exportStar(__webpack_require__(/*! ./ShareIdentityAttribute */ "./dist/useCases/consumption/attributes/ShareIdentityAttribute.js"), exports);
75441
- __exportStar(__webpack_require__(/*! ./SucceedIdentityAttribute */ "./dist/useCases/consumption/attributes/SucceedIdentityAttribute.js"), exports);
75509
+ __exportStar(__webpack_require__(/*! ./NotifyPeerAboutRepositoryAttributeSuccession */ "./dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js"), exports);
75510
+ __exportStar(__webpack_require__(/*! ./ShareRepositoryAttribute */ "./dist/useCases/consumption/attributes/ShareRepositoryAttribute.js"), exports);
75442
75511
  __exportStar(__webpack_require__(/*! ./SucceedRelationshipAttributeAndNotifyPeer */ "./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js"), exports);
75512
+ __exportStar(__webpack_require__(/*! ./SucceedRepositoryAttribute */ "./dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js"), exports);
75443
75513
  __exportStar(__webpack_require__(/*! ./ValidateIQLQuery */ "./dist/useCases/consumption/attributes/ValidateIQLQuery.js"), exports);
75444
75514
  //# sourceMappingURL=index.js.map
75445
75515
 
@@ -80603,6 +80673,7 @@ let GetMessagesUseCase = class GetMessagesUseCase extends common_1.UseCase {
80603
80673
  [(0, ts_simple_nameof_1.nameof)((m) => m.attachments)]: true,
80604
80674
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.address)}`]: true,
80605
80675
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.relationshipId)}`]: true,
80676
+ [(0, ts_simple_nameof_1.nameof)((m) => m.wasReadAt)]: true,
80606
80677
  participant: true
80607
80678
  },
80608
80679
  alias: {
@@ -80612,7 +80683,8 @@ let GetMessagesUseCase = class GetMessagesUseCase extends common_1.UseCase {
80612
80683
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.address)}`]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.address)}`,
80613
80684
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.@type`]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.@type`,
80614
80685
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.body`]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.body`,
80615
- [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.subject`]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.subject`
80686
+ [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.subject`]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.subject`,
80687
+ [(0, ts_simple_nameof_1.nameof)((m) => m.wasReadAt)]: [(0, ts_simple_nameof_1.nameof)((m) => m.wasReadAt)]
80616
80688
  },
80617
80689
  custom: {
80618
80690
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.relationshipId)}`]: (query, input) => {
@@ -80684,6 +80756,128 @@ exports.GetMessagesUseCase = GetMessagesUseCase = GetMessagesUseCase_1 = __decor
80684
80756
 
80685
80757
  /***/ }),
80686
80758
 
80759
+ /***/ "./dist/useCases/transport/messages/MarkMessageAsRead.js":
80760
+ /*!***************************************************************!*\
80761
+ !*** ./dist/useCases/transport/messages/MarkMessageAsRead.js ***!
80762
+ \***************************************************************/
80763
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
80764
+
80765
+ "use strict";
80766
+
80767
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
80768
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
80769
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
80770
+ 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;
80771
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
80772
+ };
80773
+ var __metadata = (this && this.__metadata) || function (k, v) {
80774
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
80775
+ };
80776
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
80777
+ return function (target, key) { decorator(target, key, paramIndex); }
80778
+ };
80779
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
80780
+ exports.MarkMessageAsReadUseCase = void 0;
80781
+ const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
80782
+ const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
80783
+ const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
80784
+ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
80785
+ const MessageMapper_1 = __webpack_require__(/*! ./MessageMapper */ "./dist/useCases/transport/messages/MessageMapper.js");
80786
+ let Validator = class Validator extends common_1.SchemaValidator {
80787
+ constructor(schemaRepository) {
80788
+ super(schemaRepository.getSchema("MarkMessageAsReadRequest"));
80789
+ }
80790
+ };
80791
+ Validator = __decorate([
80792
+ __param(0, typescript_ioc_1.Inject),
80793
+ __metadata("design:paramtypes", [common_1.SchemaRepository])
80794
+ ], Validator);
80795
+ let MarkMessageAsReadUseCase = class MarkMessageAsReadUseCase extends common_1.UseCase {
80796
+ constructor(messageController, accountController, validator) {
80797
+ super(validator);
80798
+ this.messageController = messageController;
80799
+ this.accountController = accountController;
80800
+ }
80801
+ async executeInternal(request) {
80802
+ const updatedMessage = await this.messageController.markMessageAsRead(transport_1.CoreId.from(request.id));
80803
+ await this.accountController.syncDatawallet();
80804
+ return ts_utils_1.Result.ok(MessageMapper_1.MessageMapper.toMessageDTO(updatedMessage));
80805
+ }
80806
+ };
80807
+ exports.MarkMessageAsReadUseCase = MarkMessageAsReadUseCase;
80808
+ exports.MarkMessageAsReadUseCase = MarkMessageAsReadUseCase = __decorate([
80809
+ __param(0, typescript_ioc_1.Inject),
80810
+ __param(1, typescript_ioc_1.Inject),
80811
+ __param(2, typescript_ioc_1.Inject),
80812
+ __metadata("design:paramtypes", [transport_1.MessageController,
80813
+ transport_1.AccountController,
80814
+ Validator])
80815
+ ], MarkMessageAsReadUseCase);
80816
+ //# sourceMappingURL=MarkMessageAsRead.js.map
80817
+
80818
+ /***/ }),
80819
+
80820
+ /***/ "./dist/useCases/transport/messages/MarkMessageAsUnread.js":
80821
+ /*!*****************************************************************!*\
80822
+ !*** ./dist/useCases/transport/messages/MarkMessageAsUnread.js ***!
80823
+ \*****************************************************************/
80824
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
80825
+
80826
+ "use strict";
80827
+
80828
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
80829
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
80830
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
80831
+ 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;
80832
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
80833
+ };
80834
+ var __metadata = (this && this.__metadata) || function (k, v) {
80835
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
80836
+ };
80837
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
80838
+ return function (target, key) { decorator(target, key, paramIndex); }
80839
+ };
80840
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
80841
+ exports.MarkMessageAsUnreadUseCase = void 0;
80842
+ const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
80843
+ const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
80844
+ const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
80845
+ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
80846
+ const MessageMapper_1 = __webpack_require__(/*! ./MessageMapper */ "./dist/useCases/transport/messages/MessageMapper.js");
80847
+ let Validator = class Validator extends common_1.SchemaValidator {
80848
+ constructor(schemaRepository) {
80849
+ super(schemaRepository.getSchema("MarkMessageAsUnreadRequest"));
80850
+ }
80851
+ };
80852
+ Validator = __decorate([
80853
+ __param(0, typescript_ioc_1.Inject),
80854
+ __metadata("design:paramtypes", [common_1.SchemaRepository])
80855
+ ], Validator);
80856
+ let MarkMessageAsUnreadUseCase = class MarkMessageAsUnreadUseCase extends common_1.UseCase {
80857
+ constructor(messageController, accountController, validator) {
80858
+ super(validator);
80859
+ this.messageController = messageController;
80860
+ this.accountController = accountController;
80861
+ }
80862
+ async executeInternal(request) {
80863
+ const updatedMessage = await this.messageController.markMessageAsUnread(transport_1.CoreId.from(request.id));
80864
+ await this.accountController.syncDatawallet();
80865
+ return ts_utils_1.Result.ok(MessageMapper_1.MessageMapper.toMessageDTO(updatedMessage));
80866
+ }
80867
+ };
80868
+ exports.MarkMessageAsUnreadUseCase = MarkMessageAsUnreadUseCase;
80869
+ exports.MarkMessageAsUnreadUseCase = MarkMessageAsUnreadUseCase = __decorate([
80870
+ __param(0, typescript_ioc_1.Inject),
80871
+ __param(1, typescript_ioc_1.Inject),
80872
+ __param(2, typescript_ioc_1.Inject),
80873
+ __metadata("design:paramtypes", [transport_1.MessageController,
80874
+ transport_1.AccountController,
80875
+ Validator])
80876
+ ], MarkMessageAsUnreadUseCase);
80877
+ //# sourceMappingURL=MarkMessageAsUnread.js.map
80878
+
80879
+ /***/ }),
80880
+
80687
80881
  /***/ "./dist/useCases/transport/messages/MessageMapper.js":
80688
80882
  /*!***********************************************************!*\
80689
80883
  !*** ./dist/useCases/transport/messages/MessageMapper.js ***!
@@ -80720,7 +80914,8 @@ class MessageMapper {
80720
80914
  recipients: message.cache.recipients.map((r, i) => this.toRecipient(r, message.relationshipIds[i])),
80721
80915
  createdAt: message.cache.createdAt.toString(),
80722
80916
  attachments: attachments.map((f) => FileMapper_1.FileMapper.toFileDTO(f)),
80723
- isOwn: message.isOwn
80917
+ isOwn: message.isOwn,
80918
+ wasReadAt: message.wasReadAt?.toString()
80724
80919
  };
80725
80920
  }
80726
80921
  static toMessageDTO(message) {
@@ -80735,7 +80930,8 @@ class MessageMapper {
80735
80930
  recipients: message.cache.recipients.map((r, i) => this.toRecipient(r, message.relationshipIds[i])),
80736
80931
  createdAt: message.cache.createdAt.toString(),
80737
80932
  attachments: message.cache.attachments.map((a) => a.toString()),
80738
- isOwn: message.isOwn
80933
+ isOwn: message.isOwn,
80934
+ wasReadAt: message.wasReadAt?.toString()
80739
80935
  };
80740
80936
  }
80741
80937
  static toMessageDTOList(messages) {
@@ -80868,6 +81064,8 @@ __exportStar(__webpack_require__(/*! ./DownloadAttachment */ "./dist/useCases/tr
80868
81064
  __exportStar(__webpack_require__(/*! ./GetAttachmentMetadata */ "./dist/useCases/transport/messages/GetAttachmentMetadata.js"), exports);
80869
81065
  __exportStar(__webpack_require__(/*! ./GetMessage */ "./dist/useCases/transport/messages/GetMessage.js"), exports);
80870
81066
  __exportStar(__webpack_require__(/*! ./GetMessages */ "./dist/useCases/transport/messages/GetMessages.js"), exports);
81067
+ __exportStar(__webpack_require__(/*! ./MarkMessageAsRead */ "./dist/useCases/transport/messages/MarkMessageAsRead.js"), exports);
81068
+ __exportStar(__webpack_require__(/*! ./MarkMessageAsUnread */ "./dist/useCases/transport/messages/MarkMessageAsUnread.js"), exports);
80871
81069
  __exportStar(__webpack_require__(/*! ./MessageMapper */ "./dist/useCases/transport/messages/MessageMapper.js"), exports);
80872
81070
  __exportStar(__webpack_require__(/*! ./SendMessage */ "./dist/useCases/transport/messages/SendMessage.js"), exports);
80873
81071
  //# sourceMappingURL=index.js.map