@nmshd/runtime 3.6.0 → 4.0.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 (101) 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 +4 -4
  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.map +1 -1
  9. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts +1 -1
  10. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts.map +1 -1
  11. package/dist/dataViews/consumption/LocalRequestDVO.d.ts +1 -1
  12. package/dist/dataViews/consumption/LocalRequestDVO.d.ts.map +1 -1
  13. package/dist/dataViews/content/ResponseItemDVOs.d.ts +1 -1
  14. package/dist/dataViews/content/ResponseItemDVOs.d.ts.map +1 -1
  15. package/dist/dataViews/transport/RelationshipDVO.d.ts +1 -1
  16. package/dist/dataViews/transport/RelationshipDVO.d.ts.map +1 -1
  17. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +14 -14
  18. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts.map +1 -1
  19. package/dist/extensibility/facades/consumption/AttributesFacade.js +25 -25
  20. package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
  21. package/dist/extensibility/facades/consumption/IncomingRequestsFacade.d.ts +1 -1
  22. package/dist/extensibility/facades/consumption/IncomingRequestsFacade.d.ts.map +1 -1
  23. package/dist/extensibility/facades/consumption/OutgoingRequestsFacade.d.ts +1 -1
  24. package/dist/extensibility/facades/consumption/OutgoingRequestsFacade.d.ts.map +1 -1
  25. package/dist/extensibility/facades/consumption/SettingsFacade.d.ts +1 -1
  26. package/dist/extensibility/facades/consumption/SettingsFacade.d.ts.map +1 -1
  27. package/dist/extensibility/facades/transport/DevicesFacade.d.ts +1 -1
  28. package/dist/extensibility/facades/transport/DevicesFacade.d.ts.map +1 -1
  29. package/dist/extensibility/facades/transport/FilesFacade.d.ts +1 -1
  30. package/dist/extensibility/facades/transport/FilesFacade.d.ts.map +1 -1
  31. package/dist/extensibility/facades/transport/RelationshipTemplatesFacade.d.ts +1 -1
  32. package/dist/extensibility/facades/transport/RelationshipTemplatesFacade.d.ts.map +1 -1
  33. package/dist/extensibility/facades/transport/RelationshipsFacade.d.ts +1 -1
  34. package/dist/extensibility/facades/transport/RelationshipsFacade.d.ts.map +1 -1
  35. package/dist/modules/AttributeListenerModule.d.ts.map +1 -1
  36. package/dist/modules/AttributeListenerModule.js.map +1 -1
  37. package/dist/modules/DeciderModule.d.ts.map +1 -1
  38. package/dist/modules/DeciderModule.js.map +1 -1
  39. package/dist/modules/RequestModule.d.ts.map +1 -1
  40. package/dist/modules/RequestModule.js.map +1 -1
  41. package/dist/useCases/common/RuntimeErrors.d.ts +4 -4
  42. package/dist/useCases/common/RuntimeErrors.d.ts.map +1 -1
  43. package/dist/useCases/common/RuntimeErrors.js +8 -8
  44. package/dist/useCases/common/RuntimeErrors.js.map +1 -1
  45. package/dist/useCases/common/Schemas.d.ts +6 -6
  46. package/dist/useCases/common/Schemas.d.ts.map +1 -1
  47. package/dist/useCases/common/Schemas.js +737 -701
  48. package/dist/useCases/common/Schemas.js.map +1 -1
  49. package/dist/useCases/consumption/attributes/CreateAndShareRelationshipAttribute.d.ts +6 -0
  50. package/dist/useCases/consumption/attributes/CreateAndShareRelationshipAttribute.d.ts.map +1 -1
  51. package/dist/useCases/consumption/attributes/CreateAndShareRelationshipAttribute.js +2 -2
  52. package/dist/useCases/consumption/attributes/CreateAndShareRelationshipAttribute.js.map +1 -1
  53. package/dist/useCases/consumption/attributes/{CreateIdentityAttribute.d.ts → CreateRepositoryAttribute.d.ts} +5 -5
  54. package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.d.ts.map +1 -0
  55. package/dist/useCases/consumption/attributes/{CreateIdentityAttribute.js → CreateRepositoryAttribute.js} +7 -7
  56. package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.js.map +1 -0
  57. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.d.ts +19 -0
  58. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.d.ts.map +1 -0
  59. package/dist/useCases/consumption/attributes/{GetOwnIdentityAttributes.js → GetRepositoryAttributes.js} +9 -9
  60. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.js.map +1 -0
  61. package/dist/useCases/consumption/attributes/{GetSharedVersionsOfIdentityAttribute.d.ts → GetSharedVersionsOfRepositoryAttribute.d.ts} +5 -5
  62. package/dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.d.ts.map +1 -0
  63. package/dist/useCases/consumption/attributes/{GetSharedVersionsOfIdentityAttribute.js → GetSharedVersionsOfRepositoryAttribute.js} +8 -8
  64. package/dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js.map +1 -0
  65. package/dist/useCases/consumption/attributes/{NotifyPeerAboutIdentityAttributeSuccession.d.ts → NotifyPeerAboutRepositoryAttributeSuccession.d.ts} +6 -6
  66. package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.d.ts.map +1 -0
  67. package/dist/useCases/consumption/attributes/{NotifyPeerAboutIdentityAttributeSuccession.js → NotifyPeerAboutRepositoryAttributeSuccession.js} +10 -10
  68. package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js.map +1 -0
  69. package/dist/useCases/consumption/attributes/{ShareIdentityAttribute.d.ts → ShareRepositoryAttribute.d.ts} +11 -5
  70. package/dist/useCases/consumption/attributes/ShareRepositoryAttribute.d.ts.map +1 -0
  71. package/dist/useCases/consumption/attributes/{ShareIdentityAttribute.js → ShareRepositoryAttribute.js} +14 -14
  72. package/dist/useCases/consumption/attributes/ShareRepositoryAttribute.js.map +1 -0
  73. package/dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.d.ts.map +1 -1
  74. package/dist/useCases/consumption/attributes/{SucceedIdentityAttribute.d.ts → SucceedRepositoryAttribute.d.ts} +6 -6
  75. package/dist/useCases/consumption/attributes/SucceedRepositoryAttribute.d.ts.map +1 -0
  76. package/dist/useCases/consumption/attributes/{SucceedIdentityAttribute.js → SucceedRepositoryAttribute.js} +7 -7
  77. package/dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js.map +1 -0
  78. package/dist/useCases/consumption/attributes/index.d.ts +6 -6
  79. package/dist/useCases/consumption/attributes/index.d.ts.map +1 -1
  80. package/dist/useCases/consumption/attributes/index.js +6 -6
  81. package/dist/useCases/consumption/attributes/index.js.map +1 -1
  82. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.d.ts +1 -1
  83. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.d.ts.map +1 -1
  84. package/lib-web/nmshd.runtime.js +974 -938
  85. package/lib-web/nmshd.runtime.js.map +1 -1
  86. package/lib-web/nmshd.runtime.min.js +1 -1
  87. package/lib-web/nmshd.runtime.min.js.map +1 -1
  88. package/package.json +1 -1
  89. package/dist/useCases/consumption/attributes/CreateIdentityAttribute.d.ts.map +0 -1
  90. package/dist/useCases/consumption/attributes/CreateIdentityAttribute.js.map +0 -1
  91. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.d.ts +0 -19
  92. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.d.ts.map +0 -1
  93. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js.map +0 -1
  94. package/dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.d.ts.map +0 -1
  95. package/dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js.map +0 -1
  96. package/dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.d.ts.map +0 -1
  97. package/dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js.map +0 -1
  98. package/dist/useCases/consumption/attributes/ShareIdentityAttribute.d.ts.map +0 -1
  99. package/dist/useCases/consumption/attributes/ShareIdentityAttribute.js.map +0 -1
  100. package/dist/useCases/consumption/attributes/SucceedIdentityAttribute.d.ts.map +0 -1
  101. 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,10 +45705,10 @@ 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.6.0",
45709
- build: "15",
45710
- date: "2024-02-09T10:05:55+00:00",
45711
- commit: "f25a1cadd22fbbd3f0f7e90d178499d89c3b1a59",
45708
+ version: "4.0.0",
45709
+ build: "19",
45710
+ date: "2024-02-12T12:42:50+00:00",
45711
+ commit: "d1e6aeea6af9c7398bb1e86f795d8257515e1903",
45712
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"},
45713
45713
  libraries: {
45714
45714
  serval: ts_serval_1.buildInformation,
@@ -48948,17 +48948,17 @@ exports.AttributesFacade = void 0;
48948
48948
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
48949
48949
  const useCases_1 = __webpack_require__(/*! ../../../useCases */ "./dist/useCases/index.js");
48950
48950
  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;
48951
+ constructor(createRepositoryAttributeUseCase, shareRepositoryAttributeUseCase, getPeerSharedAttributesUseCase, getOwnSharedAttributesUseCase, getRepositoryAttributesUseCase, getAttributeUseCase, getAttributesUseCase, getVersionsOfAttributeUseCase, getSharedVersionsOfRepositoryAttributeUseCase, succeedRepositoryAttributeUseCase, executeIdentityAttributeQueryUseCase, executeRelationshipAttributeQueryUseCase, succeedRelationshipAttributeAndNotifyPeerUseCase, executeThirdPartyRelationshipAttributeQueryUseCase, executeIQLQueryUseCase, validateIQLQueryUseCase, createAndShareRelationshipAttributeUseCase, notifyPeerAboutRepositoryAttributeSuccessionUseCase) {
48952
+ this.createRepositoryAttributeUseCase = createRepositoryAttributeUseCase;
48953
+ this.shareRepositoryAttributeUseCase = shareRepositoryAttributeUseCase;
48954
48954
  this.getPeerSharedAttributesUseCase = getPeerSharedAttributesUseCase;
48955
48955
  this.getOwnSharedAttributesUseCase = getOwnSharedAttributesUseCase;
48956
- this.getOwnIdentityAttributesUseCase = getOwnIdentityAttributesUseCase;
48956
+ this.getRepositoryAttributesUseCase = getRepositoryAttributesUseCase;
48957
48957
  this.getAttributeUseCase = getAttributeUseCase;
48958
48958
  this.getAttributesUseCase = getAttributesUseCase;
48959
48959
  this.getVersionsOfAttributeUseCase = getVersionsOfAttributeUseCase;
48960
- this.getSharedVersionsOfIdentityAttributeUseCase = getSharedVersionsOfIdentityAttributeUseCase;
48961
- this.succeedIdentityAttributeUseCase = succeedIdentityAttributeUseCase;
48960
+ this.getSharedVersionsOfRepositoryAttributeUseCase = getSharedVersionsOfRepositoryAttributeUseCase;
48961
+ this.succeedRepositoryAttributeUseCase = succeedRepositoryAttributeUseCase;
48962
48962
  this.executeIdentityAttributeQueryUseCase = executeIdentityAttributeQueryUseCase;
48963
48963
  this.executeRelationshipAttributeQueryUseCase = executeRelationshipAttributeQueryUseCase;
48964
48964
  this.succeedRelationshipAttributeAndNotifyPeerUseCase = succeedRelationshipAttributeAndNotifyPeerUseCase;
@@ -48966,10 +48966,10 @@ let AttributesFacade = class AttributesFacade {
48966
48966
  this.executeIQLQueryUseCase = executeIQLQueryUseCase;
48967
48967
  this.validateIQLQueryUseCase = validateIQLQueryUseCase;
48968
48968
  this.createAndShareRelationshipAttributeUseCase = createAndShareRelationshipAttributeUseCase;
48969
- this.notifyPeerAboutIdentityAttributeSuccessionUseCase = notifyPeerAboutIdentityAttributeSuccessionUseCase;
48969
+ this.notifyPeerAboutRepositoryAttributeSuccessionUseCase = notifyPeerAboutRepositoryAttributeSuccessionUseCase;
48970
48970
  }
48971
- async createIdentityAttribute(request) {
48972
- return await this.createIdentityAttributeUseCase.execute(request);
48971
+ async createRepositoryAttribute(request) {
48972
+ return await this.createRepositoryAttributeUseCase.execute(request);
48973
48973
  }
48974
48974
  async getPeerSharedAttributes(request) {
48975
48975
  return await this.getPeerSharedAttributesUseCase.execute(request);
@@ -48977,8 +48977,8 @@ let AttributesFacade = class AttributesFacade {
48977
48977
  async getOwnSharedAttributes(request) {
48978
48978
  return await this.getOwnSharedAttributesUseCase.execute(request);
48979
48979
  }
48980
- async getOwnIdentityAttributes(request) {
48981
- return await this.getOwnIdentityAttributesUseCase.execute(request);
48980
+ async getRepositoryAttributes(request) {
48981
+ return await this.getRepositoryAttributesUseCase.execute(request);
48982
48982
  }
48983
48983
  async getAttribute(request) {
48984
48984
  return await this.getAttributeUseCase.execute(request);
@@ -48989,8 +48989,8 @@ let AttributesFacade = class AttributesFacade {
48989
48989
  async getVersionsOfAttribute(request) {
48990
48990
  return await this.getVersionsOfAttributeUseCase.execute(request);
48991
48991
  }
48992
- async getSharedVersionsOfIdentityAttribute(request) {
48993
- return await this.getSharedVersionsOfIdentityAttributeUseCase.execute(request);
48992
+ async getSharedVersionsOfRepositoryAttribute(request) {
48993
+ return await this.getSharedVersionsOfRepositoryAttributeUseCase.execute(request);
48994
48994
  }
48995
48995
  async executeIdentityAttributeQuery(request) {
48996
48996
  return await this.executeIdentityAttributeQueryUseCase.execute(request);
@@ -49010,17 +49010,17 @@ let AttributesFacade = class AttributesFacade {
49010
49010
  async validateIQLQuery(request) {
49011
49011
  return await this.validateIQLQueryUseCase.execute(request);
49012
49012
  }
49013
- async succeedIdentityAttribute(request) {
49014
- return await this.succeedIdentityAttributeUseCase.execute(request);
49013
+ async succeedRepositoryAttribute(request) {
49014
+ return await this.succeedRepositoryAttributeUseCase.execute(request);
49015
49015
  }
49016
- async shareIdentityAttribute(request) {
49017
- return await this.shareIdentityAttributeUseCase.execute(request);
49016
+ async shareRepositoryAttribute(request) {
49017
+ return await this.shareRepositoryAttributeUseCase.execute(request);
49018
49018
  }
49019
49019
  async createAndShareRelationshipAttribute(request) {
49020
49020
  return await this.createAndShareRelationshipAttributeUseCase.execute(request);
49021
49021
  }
49022
- async notifyPeerAboutIdentityAttributeSuccession(request) {
49023
- return await this.notifyPeerAboutIdentityAttributeSuccessionUseCase.execute(request);
49022
+ async notifyPeerAboutRepositoryAttributeSuccession(request) {
49023
+ return await this.notifyPeerAboutRepositoryAttributeSuccessionUseCase.execute(request);
49024
49024
  }
49025
49025
  };
49026
49026
  exports.AttributesFacade = AttributesFacade;
@@ -49043,16 +49043,16 @@ exports.AttributesFacade = AttributesFacade = __decorate([
49043
49043
  __param(15, typescript_ioc_1.Inject),
49044
49044
  __param(16, typescript_ioc_1.Inject),
49045
49045
  __param(17, typescript_ioc_1.Inject),
49046
- __metadata("design:paramtypes", [useCases_1.CreateIdentityAttributeUseCase,
49047
- useCases_1.ShareIdentityAttributeUseCase,
49046
+ __metadata("design:paramtypes", [useCases_1.CreateRepositoryAttributeUseCase,
49047
+ useCases_1.ShareRepositoryAttributeUseCase,
49048
49048
  useCases_1.GetPeerSharedAttributesUseCase,
49049
49049
  useCases_1.GetOwnSharedAttributesUseCase,
49050
- useCases_1.GetOwnIdentityAttributesUseCase,
49050
+ useCases_1.GetRepositoryAttributesUseCase,
49051
49051
  useCases_1.GetAttributeUseCase,
49052
49052
  useCases_1.GetAttributesUseCase,
49053
49053
  useCases_1.GetVersionsOfAttributeUseCase,
49054
- useCases_1.GetSharedVersionsOfIdentityAttributeUseCase,
49055
- useCases_1.SucceedIdentityAttributeUseCase,
49054
+ useCases_1.GetSharedVersionsOfRepositoryAttributeUseCase,
49055
+ useCases_1.SucceedRepositoryAttributeUseCase,
49056
49056
  useCases_1.ExecuteIdentityAttributeQueryUseCase,
49057
49057
  useCases_1.ExecuteRelationshipAttributeQueryUseCase,
49058
49058
  useCases_1.SucceedRelationshipAttributeAndNotifyPeerUseCase,
@@ -49060,7 +49060,7 @@ exports.AttributesFacade = AttributesFacade = __decorate([
49060
49060
  useCases_1.ExecuteIQLQueryUseCase,
49061
49061
  useCases_1.ValidateIQLQueryUseCase,
49062
49062
  useCases_1.CreateAndShareRelationshipAttributeUseCase,
49063
- useCases_1.NotifyPeerAboutIdentityAttributeSuccessionUseCase])
49063
+ useCases_1.NotifyPeerAboutRepositoryAttributeSuccessionUseCase])
49064
49064
  ], AttributesFacade);
49065
49065
  //# sourceMappingURL=AttributesFacade.js.map
49066
49066
 
@@ -51682,17 +51682,17 @@ class Notifications {
51682
51682
  }
51683
51683
  }
51684
51684
  class Attributes {
51685
- isNoIdentityAttribute(attributeId) {
51686
- return new ts_utils_1.ApplicationError("error.runtime.attributes.isNoIdentityAttribute", `Attribute '${attributeId.toString()}' is not an identity attribute.`);
51685
+ isNotRepositoryAttribute(attributeId) {
51686
+ return new ts_utils_1.ApplicationError("error.runtime.attributes.isNotRepositoryAttribute", `Attribute '${attributeId.toString()}' is not a repository attribute.`);
51687
51687
  }
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()}.`);
51688
+ repositoryAttributeHasAlreadyBeenSharedWithPeer(repositoryAttributeId, peer, ownSharedIdentityAttributeId) {
51689
+ 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
51690
  }
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()}.`);
51691
+ anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer(repositoryAttributeId, peer, ownSharedIdentityAttributeId) {
51692
+ 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
51693
  }
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'.`);
51694
+ noOtherVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore(repositoryAttributeId, peer) {
51695
+ 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
51696
  }
51697
51697
  }
51698
51698
  class RuntimeErrors {
@@ -51799,7 +51799,7 @@ exports.JsonSchema = JsonSchema;
51799
51799
  "use strict";
51800
51800
 
51801
51801
  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;
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.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;
51803
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
51804
  exports.LoadPeerTokenRequest = exports.LoadPeerTokenViaSecretRequest = exports.LoadPeerTokenViaReferenceRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.LoadPeerRelationshipTemplateViaReferenceRequest = void 0;
51805
51805
  exports.LoadPeerTokenAnonymousByIdAndKeyRequest = {
@@ -65685,6 +65685,24 @@ exports.CreateAndShareRelationshipAttributeRequest = {
65685
65685
  }
65686
65686
  },
65687
65687
  "additionalProperties": false
65688
+ },
65689
+ "requestItemMetadata": {
65690
+ "type": "object",
65691
+ "properties": {
65692
+ "title": {
65693
+ "type": "string"
65694
+ },
65695
+ "description": {
65696
+ "type": "string"
65697
+ },
65698
+ "metadata": {
65699
+ "type": "object"
65700
+ },
65701
+ "requireManualDecision": {
65702
+ "type": "boolean"
65703
+ }
65704
+ },
65705
+ "additionalProperties": false
65688
65706
  }
65689
65707
  },
65690
65708
  "required": [
@@ -66327,11 +66345,11 @@ exports.CreateAndShareRelationshipAttributeRequest = {
66327
66345
  }
66328
66346
  }
66329
66347
  };
66330
- exports.CreateIdentityAttributeRequest = {
66348
+ exports.CreateRepositoryAttributeRequest = {
66331
66349
  "$schema": "http://json-schema.org/draft-07/schema#",
66332
- "$ref": "#/definitions/CreateIdentityAttributeRequest",
66350
+ "$ref": "#/definitions/CreateRepositoryAttributeRequest",
66333
66351
  "definitions": {
66334
- "CreateIdentityAttributeRequest": {
66352
+ "CreateRepositoryAttributeRequest": {
66335
66353
  "type": "object",
66336
66354
  "properties": {
66337
66355
  "content": {
@@ -68309,21 +68327,6 @@ exports.GetAttributesRequest = {
68309
68327
  }
68310
68328
  }
68311
68329
  };
68312
- exports.GetOwnIdentityAttributesRequest = {
68313
- "$schema": "http://json-schema.org/draft-07/schema#",
68314
- "$ref": "#/definitions/GetOwnIdentityAttributesRequest",
68315
- "definitions": {
68316
- "GetOwnIdentityAttributesRequest": {
68317
- "type": "object",
68318
- "properties": {
68319
- "onlyLatestVersions": {
68320
- "type": "boolean"
68321
- }
68322
- },
68323
- "additionalProperties": false
68324
- }
68325
- }
68326
- };
68327
68330
  exports.GetOwnSharedAttributesRequest = {
68328
68331
  "$schema": "http://json-schema.org/draft-07/schema#",
68329
68332
  "$ref": "#/definitions/GetOwnSharedAttributesRequest",
@@ -68709,11 +68712,26 @@ exports.GetPeerSharedAttributesRequest = {
68709
68712
  }
68710
68713
  }
68711
68714
  };
68712
- exports.GetSharedVersionsOfIdentityAttributeRequest = {
68715
+ exports.GetRepositoryAttributesRequest = {
68713
68716
  "$schema": "http://json-schema.org/draft-07/schema#",
68714
- "$ref": "#/definitions/GetSharedVersionsOfIdentityAttributeRequest",
68717
+ "$ref": "#/definitions/GetRepositoryAttributesRequest",
68715
68718
  "definitions": {
68716
- "GetSharedVersionsOfIdentityAttributeRequest": {
68719
+ "GetRepositoryAttributesRequest": {
68720
+ "type": "object",
68721
+ "properties": {
68722
+ "onlyLatestVersions": {
68723
+ "type": "boolean"
68724
+ }
68725
+ },
68726
+ "additionalProperties": false
68727
+ }
68728
+ }
68729
+ };
68730
+ exports.GetSharedVersionsOfRepositoryAttributeRequest = {
68731
+ "$schema": "http://json-schema.org/draft-07/schema#",
68732
+ "$ref": "#/definitions/GetSharedVersionsOfRepositoryAttributeRequest",
68733
+ "definitions": {
68734
+ "GetSharedVersionsOfRepositoryAttributeRequest": {
68717
68735
  "type": "object",
68718
68736
  "properties": {
68719
68737
  "attributeId": {
@@ -68766,11 +68784,11 @@ exports.GetVersionsOfAttributeRequest = {
68766
68784
  }
68767
68785
  }
68768
68786
  };
68769
- exports.NotifyPeerAboutIdentityAttributeSuccessionRequest = {
68787
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionRequest = {
68770
68788
  "$schema": "http://json-schema.org/draft-07/schema#",
68771
- "$ref": "#/definitions/NotifyPeerAboutIdentityAttributeSuccessionRequest",
68789
+ "$ref": "#/definitions/NotifyPeerAboutRepositoryAttributeSuccessionRequest",
68772
68790
  "definitions": {
68773
- "NotifyPeerAboutIdentityAttributeSuccessionRequest": {
68791
+ "NotifyPeerAboutRepositoryAttributeSuccessionRequest": {
68774
68792
  "type": "object",
68775
68793
  "properties": {
68776
68794
  "attributeId": {
@@ -68796,11 +68814,11 @@ exports.NotifyPeerAboutIdentityAttributeSuccessionRequest = {
68796
68814
  }
68797
68815
  }
68798
68816
  };
68799
- exports.ShareIdentityAttributeRequest = {
68817
+ exports.ShareRepositoryAttributeRequest = {
68800
68818
  "$schema": "http://json-schema.org/draft-07/schema#",
68801
- "$ref": "#/definitions/ShareIdentityAttributeRequest",
68819
+ "$ref": "#/definitions/ShareRepositoryAttributeRequest",
68802
68820
  "definitions": {
68803
- "ShareIdentityAttributeRequest": {
68821
+ "ShareRepositoryAttributeRequest": {
68804
68822
  "type": "object",
68805
68823
  "properties": {
68806
68824
  "attributeId": {
@@ -68826,6 +68844,24 @@ exports.ShareIdentityAttributeRequest = {
68826
68844
  }
68827
68845
  },
68828
68846
  "additionalProperties": false
68847
+ },
68848
+ "requestItemMetadata": {
68849
+ "type": "object",
68850
+ "properties": {
68851
+ "title": {
68852
+ "type": "string"
68853
+ },
68854
+ "description": {
68855
+ "type": "string"
68856
+ },
68857
+ "metadata": {
68858
+ "type": "object"
68859
+ },
68860
+ "requireManualDecision": {
68861
+ "type": "boolean"
68862
+ }
68863
+ },
68864
+ "additionalProperties": false
68829
68865
  }
68830
68866
  },
68831
68867
  "required": [
@@ -68849,27 +68885,21 @@ exports.ShareIdentityAttributeRequest = {
68849
68885
  }
68850
68886
  }
68851
68887
  };
68852
- exports.SucceedIdentityAttributeRequest = {
68888
+ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
68853
68889
  "$schema": "http://json-schema.org/draft-07/schema#",
68854
- "$ref": "#/definitions/SucceedIdentityAttributeRequest",
68890
+ "$ref": "#/definitions/SucceedRelationshipAttributeAndNotifyPeerRequest",
68855
68891
  "definitions": {
68856
- "SucceedIdentityAttributeRequest": {
68892
+ "SucceedRelationshipAttributeAndNotifyPeerRequest": {
68857
68893
  "type": "object",
68858
68894
  "properties": {
68859
68895
  "predecessorId": {
68860
- "type": "string"
68896
+ "$ref": "#/definitions/AttributeIdString"
68861
68897
  },
68862
68898
  "successorContent": {
68863
68899
  "type": "object",
68864
68900
  "properties": {
68865
68901
  "value": {
68866
- "$ref": "#/definitions/AttributeValues.Identity.Json"
68867
- },
68868
- "tags": {
68869
- "type": "array",
68870
- "items": {
68871
- "type": "string"
68872
- }
68902
+ "$ref": "#/definitions/AttributeValues.Relationship.Json"
68873
68903
  },
68874
68904
  "validFrom": {
68875
68905
  "$ref": "#/definitions/ISO8601DateTimeString"
@@ -68890,86 +68920,62 @@ exports.SucceedIdentityAttributeRequest = {
68890
68920
  ],
68891
68921
  "additionalProperties": false
68892
68922
  },
68893
- "AttributeValues.Identity.Json": {
68894
- "anyOf": [
68895
- {
68896
- "$ref": "#/definitions/AttributeValues.Identity.Editable.Json"
68897
- },
68898
- {
68899
- "$ref": "#/definitions/AttributeValues.Identity.Uneditable.Json"
68900
- }
68901
- ]
68923
+ "AttributeIdString": {
68924
+ "type": "string",
68925
+ "pattern": "ATT[A-Za-z0-9]{17}"
68902
68926
  },
68903
- "AttributeValues.Identity.Editable.Json": {
68927
+ "AttributeValues.Relationship.Json": {
68904
68928
  "anyOf": [
68905
68929
  {
68906
- "$ref": "#/definitions/AffiliationJSON"
68907
- },
68908
- {
68909
- "$ref": "#/definitions/BirthDateJSON"
68910
- },
68911
- {
68912
- "$ref": "#/definitions/BirthNameJSON"
68913
- },
68914
- {
68915
- "$ref": "#/definitions/BirthPlaceJSON"
68916
- },
68917
- {
68918
- "$ref": "#/definitions/CitizenshipJSON"
68919
- },
68920
- {
68921
- "$ref": "#/definitions/CommunicationLanguageJSON"
68922
- },
68923
- {
68924
- "$ref": "#/definitions/DeliveryBoxAddressJSON"
68930
+ "$ref": "#/definitions/ProprietaryBooleanJSON"
68925
68931
  },
68926
68932
  {
68927
- "$ref": "#/definitions/DisplayNameJSON"
68933
+ "$ref": "#/definitions/ProprietaryCountryJSON"
68928
68934
  },
68929
68935
  {
68930
- "$ref": "#/definitions/EMailAddressJSON"
68936
+ "$ref": "#/definitions/ProprietaryEMailAddressJSON"
68931
68937
  },
68932
68938
  {
68933
- "$ref": "#/definitions/FaxNumberJSON"
68939
+ "$ref": "#/definitions/ProprietaryFileReferenceJSON"
68934
68940
  },
68935
68941
  {
68936
- "$ref": "#/definitions/IdentityFileReferenceJSON"
68942
+ "$ref": "#/definitions/ProprietaryFloatJSON"
68937
68943
  },
68938
68944
  {
68939
- "$ref": "#/definitions/JobTitleJSON"
68945
+ "$ref": "#/definitions/ProprietaryHEXColorJSON"
68940
68946
  },
68941
68947
  {
68942
- "$ref": "#/definitions/NationalityJSON"
68948
+ "$ref": "#/definitions/ProprietaryIntegerJSON"
68943
68949
  },
68944
68950
  {
68945
- "$ref": "#/definitions/PersonNameJSON"
68951
+ "$ref": "#/definitions/ProprietaryLanguageJSON"
68946
68952
  },
68947
68953
  {
68948
- "$ref": "#/definitions/PhoneNumberJSON"
68954
+ "$ref": "#/definitions/ProprietaryPhoneNumberJSON"
68949
68955
  },
68950
68956
  {
68951
- "$ref": "#/definitions/PostOfficeBoxAddressJSON"
68957
+ "$ref": "#/definitions/ProprietaryStringJSON"
68952
68958
  },
68953
68959
  {
68954
- "$ref": "#/definitions/PseudonymJSON"
68960
+ "$ref": "#/definitions/ProprietaryURLJSON"
68955
68961
  },
68956
68962
  {
68957
- "$ref": "#/definitions/SexJSON"
68963
+ "$ref": "#/definitions/ProprietaryJSONJSON"
68958
68964
  },
68959
68965
  {
68960
- "$ref": "#/definitions/StreetAddressJSON"
68966
+ "$ref": "#/definitions/ProprietaryXMLJSON"
68961
68967
  },
68962
68968
  {
68963
- "$ref": "#/definitions/WebsiteJSON"
68969
+ "$ref": "#/definitions/ConsentJSON"
68964
68970
  }
68965
68971
  ]
68966
68972
  },
68967
- "AffiliationJSON": {
68973
+ "ProprietaryBooleanJSON": {
68968
68974
  "type": "object",
68969
68975
  "properties": {
68970
68976
  "@type": {
68971
68977
  "type": "string",
68972
- "const": "Affiliation"
68978
+ "const": "ProprietaryBoolean"
68973
68979
  },
68974
68980
  "@context": {
68975
68981
  "type": "string"
@@ -68977,59 +68983,99 @@ exports.SucceedIdentityAttributeRequest = {
68977
68983
  "@version": {
68978
68984
  "type": "string"
68979
68985
  },
68980
- "organization": {
68981
- "type": "string"
68986
+ "value": {
68987
+ "type": "boolean"
68982
68988
  },
68983
- "role": {
68989
+ "title": {
68984
68990
  "type": "string"
68985
68991
  },
68986
- "unit": {
68992
+ "description": {
68987
68993
  "type": "string"
68994
+ },
68995
+ "valueHintsOverride": {
68996
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
68988
68997
  }
68989
68998
  },
68990
68999
  "required": [
68991
69000
  "@type",
68992
- "organization"
69001
+ "title",
69002
+ "value"
68993
69003
  ],
68994
69004
  "additionalProperties": false
68995
69005
  },
68996
- "BirthDateJSON": {
69006
+ "ValueHintsOverrideJSON": {
68997
69007
  "type": "object",
69008
+ "additionalProperties": false,
68998
69009
  "properties": {
68999
69010
  "@type": {
69000
69011
  "type": "string",
69001
- "const": "BirthDate"
69002
- },
69003
- "@context": {
69004
- "type": "string"
69012
+ "const": "ValueHints"
69005
69013
  },
69006
- "@version": {
69014
+ "editHelp": {
69007
69015
  "type": "string"
69008
69016
  },
69009
- "day": {
69017
+ "min": {
69010
69018
  "type": "number"
69011
69019
  },
69012
- "month": {
69020
+ "max": {
69013
69021
  "type": "number"
69014
69022
  },
69015
- "year": {
69016
- "type": "number"
69023
+ "pattern": {
69024
+ "type": "string"
69025
+ },
69026
+ "values": {
69027
+ "type": "array",
69028
+ "items": {
69029
+ "$ref": "#/definitions/ValueHintsValueJSON"
69030
+ }
69031
+ },
69032
+ "defaultValue": {
69033
+ "type": [
69034
+ "string",
69035
+ "number",
69036
+ "boolean"
69037
+ ]
69038
+ },
69039
+ "propertyHints": {
69040
+ "type": "object",
69041
+ "additionalProperties": {
69042
+ "$ref": "#/definitions/ValueHintsJSON"
69043
+ }
69044
+ },
69045
+ "@context": {
69046
+ "type": "string"
69047
+ },
69048
+ "@version": {
69049
+ "type": "string"
69050
+ }
69051
+ }
69052
+ },
69053
+ "ValueHintsValueJSON": {
69054
+ "type": "object",
69055
+ "properties": {
69056
+ "key": {
69057
+ "type": [
69058
+ "string",
69059
+ "number",
69060
+ "boolean"
69061
+ ]
69062
+ },
69063
+ "displayName": {
69064
+ "type": "string"
69017
69065
  }
69018
69066
  },
69019
69067
  "required": [
69020
- "@type",
69021
- "day",
69022
- "month",
69023
- "year"
69068
+ "key",
69069
+ "displayName"
69024
69070
  ],
69025
69071
  "additionalProperties": false
69026
69072
  },
69027
- "BirthNameJSON": {
69073
+ "ValueHintsJSON": {
69028
69074
  "type": "object",
69029
69075
  "properties": {
69030
69076
  "@type": {
69031
69077
  "type": "string",
69032
- "const": "BirthName"
69078
+ "const": "ValueHints"
69033
69079
  },
69034
69080
  "@context": {
69035
69081
  "type": "string"
@@ -69037,22 +69083,49 @@ exports.SucceedIdentityAttributeRequest = {
69037
69083
  "@version": {
69038
69084
  "type": "string"
69039
69085
  },
69040
- "value": {
69086
+ "editHelp": {
69087
+ "type": "string"
69088
+ },
69089
+ "min": {
69090
+ "type": "number"
69091
+ },
69092
+ "max": {
69093
+ "type": "number"
69094
+ },
69095
+ "pattern": {
69041
69096
  "type": "string"
69097
+ },
69098
+ "values": {
69099
+ "type": "array",
69100
+ "items": {
69101
+ "$ref": "#/definitions/ValueHintsValueJSON"
69102
+ }
69103
+ },
69104
+ "defaultValue": {
69105
+ "type": [
69106
+ "string",
69107
+ "number",
69108
+ "boolean"
69109
+ ]
69110
+ },
69111
+ "propertyHints": {
69112
+ "type": "object",
69113
+ "additionalProperties": {
69114
+ "$ref": "#/definitions/ValueHintsJSON"
69115
+ }
69042
69116
  }
69043
69117
  },
69044
69118
  "required": [
69045
- "@type",
69046
- "value"
69119
+ "@type"
69047
69120
  ],
69048
69121
  "additionalProperties": false
69049
69122
  },
69050
- "BirthPlaceJSON": {
69123
+ "ProprietaryCountryJSON": {
69051
69124
  "type": "object",
69052
69125
  "properties": {
69053
69126
  "@type": {
69054
69127
  "type": "string",
69055
- "const": "BirthPlace"
69128
+ "const": "ProprietaryCountry"
69056
69129
  },
69057
69130
  "@context": {
69058
69131
  "type": "string"
@@ -69060,29 +69133,32 @@ exports.SucceedIdentityAttributeRequest = {
69060
69133
  "@version": {
69061
69134
  "type": "string"
69062
69135
  },
69063
- "city": {
69136
+ "value": {
69064
69137
  "type": "string"
69065
69138
  },
69066
- "country": {
69139
+ "title": {
69067
69140
  "type": "string"
69068
69141
  },
69069
- "state": {
69142
+ "description": {
69070
69143
  "type": "string"
69144
+ },
69145
+ "valueHintsOverride": {
69146
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69071
69147
  }
69072
69148
  },
69073
69149
  "required": [
69074
69150
  "@type",
69075
- "city",
69076
- "country"
69151
+ "title",
69152
+ "value"
69077
69153
  ],
69078
69154
  "additionalProperties": false
69079
69155
  },
69080
- "CitizenshipJSON": {
69156
+ "ProprietaryEMailAddressJSON": {
69081
69157
  "type": "object",
69082
69158
  "properties": {
69083
69159
  "@type": {
69084
69160
  "type": "string",
69085
- "const": "Citizenship"
69161
+ "const": "ProprietaryEMailAddress"
69086
69162
  },
69087
69163
  "@context": {
69088
69164
  "type": "string"
@@ -69092,43 +69168,30 @@ exports.SucceedIdentityAttributeRequest = {
69092
69168
  },
69093
69169
  "value": {
69094
69170
  "type": "string"
69095
- }
69096
- },
69097
- "required": [
69098
- "@type",
69099
- "value"
69100
- ],
69101
- "additionalProperties": false
69102
- },
69103
- "CommunicationLanguageJSON": {
69104
- "type": "object",
69105
- "properties": {
69106
- "@type": {
69107
- "type": "string",
69108
- "const": "CommunicationLanguage"
69109
69171
  },
69110
- "@context": {
69172
+ "title": {
69111
69173
  "type": "string"
69112
69174
  },
69113
- "@version": {
69175
+ "description": {
69114
69176
  "type": "string"
69115
69177
  },
69116
- "value": {
69117
- "type": "string"
69178
+ "valueHintsOverride": {
69179
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69118
69180
  }
69119
69181
  },
69120
69182
  "required": [
69121
69183
  "@type",
69184
+ "title",
69122
69185
  "value"
69123
69186
  ],
69124
69187
  "additionalProperties": false
69125
69188
  },
69126
- "DeliveryBoxAddressJSON": {
69189
+ "ProprietaryFileReferenceJSON": {
69127
69190
  "type": "object",
69128
69191
  "properties": {
69129
69192
  "@type": {
69130
69193
  "type": "string",
69131
- "const": "DeliveryBoxAddress"
69194
+ "const": "ProprietaryFileReference"
69132
69195
  },
69133
69196
  "@context": {
69134
69197
  "type": "string"
@@ -69136,48 +69199,32 @@ exports.SucceedIdentityAttributeRequest = {
69136
69199
  "@version": {
69137
69200
  "type": "string"
69138
69201
  },
69139
- "recipient": {
69140
- "type": "string"
69141
- },
69142
- "userId": {
69143
- "type": "string"
69144
- },
69145
- "deliveryBoxId": {
69146
- "type": "string"
69147
- },
69148
- "zipCode": {
69149
- "type": "string"
69150
- },
69151
- "city": {
69202
+ "value": {
69152
69203
  "type": "string"
69153
69204
  },
69154
- "country": {
69205
+ "title": {
69155
69206
  "type": "string"
69156
69207
  },
69157
- "phoneNumber": {
69208
+ "description": {
69158
69209
  "type": "string"
69159
69210
  },
69160
- "state": {
69161
- "type": "string"
69211
+ "valueHintsOverride": {
69212
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69162
69213
  }
69163
69214
  },
69164
69215
  "required": [
69165
69216
  "@type",
69166
- "city",
69167
- "country",
69168
- "deliveryBoxId",
69169
- "recipient",
69170
- "userId",
69171
- "zipCode"
69217
+ "title",
69218
+ "value"
69172
69219
  ],
69173
69220
  "additionalProperties": false
69174
69221
  },
69175
- "DisplayNameJSON": {
69222
+ "ProprietaryFloatJSON": {
69176
69223
  "type": "object",
69177
69224
  "properties": {
69178
69225
  "@type": {
69179
69226
  "type": "string",
69180
- "const": "DisplayName"
69227
+ "const": "ProprietaryFloat"
69181
69228
  },
69182
69229
  "@context": {
69183
69230
  "type": "string"
@@ -69186,21 +69233,31 @@ exports.SucceedIdentityAttributeRequest = {
69186
69233
  "type": "string"
69187
69234
  },
69188
69235
  "value": {
69236
+ "type": "number"
69237
+ },
69238
+ "title": {
69239
+ "type": "string"
69240
+ },
69241
+ "description": {
69189
69242
  "type": "string"
69243
+ },
69244
+ "valueHintsOverride": {
69245
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69190
69246
  }
69191
69247
  },
69192
69248
  "required": [
69193
69249
  "@type",
69250
+ "title",
69194
69251
  "value"
69195
69252
  ],
69196
69253
  "additionalProperties": false
69197
69254
  },
69198
- "EMailAddressJSON": {
69255
+ "ProprietaryHEXColorJSON": {
69199
69256
  "type": "object",
69200
69257
  "properties": {
69201
69258
  "@type": {
69202
69259
  "type": "string",
69203
- "const": "EMailAddress"
69260
+ "const": "ProprietaryHEXColor"
69204
69261
  },
69205
69262
  "@context": {
69206
69263
  "type": "string"
@@ -69210,20 +69267,30 @@ exports.SucceedIdentityAttributeRequest = {
69210
69267
  },
69211
69268
  "value": {
69212
69269
  "type": "string"
69270
+ },
69271
+ "title": {
69272
+ "type": "string"
69273
+ },
69274
+ "description": {
69275
+ "type": "string"
69276
+ },
69277
+ "valueHintsOverride": {
69278
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69213
69279
  }
69214
69280
  },
69215
69281
  "required": [
69216
69282
  "@type",
69283
+ "title",
69217
69284
  "value"
69218
69285
  ],
69219
69286
  "additionalProperties": false
69220
69287
  },
69221
- "FaxNumberJSON": {
69288
+ "ProprietaryIntegerJSON": {
69222
69289
  "type": "object",
69223
69290
  "properties": {
69224
69291
  "@type": {
69225
69292
  "type": "string",
69226
- "const": "FaxNumber"
69293
+ "const": "ProprietaryInteger"
69227
69294
  },
69228
69295
  "@context": {
69229
69296
  "type": "string"
@@ -69232,21 +69299,31 @@ exports.SucceedIdentityAttributeRequest = {
69232
69299
  "type": "string"
69233
69300
  },
69234
69301
  "value": {
69302
+ "type": "number"
69303
+ },
69304
+ "title": {
69305
+ "type": "string"
69306
+ },
69307
+ "description": {
69235
69308
  "type": "string"
69309
+ },
69310
+ "valueHintsOverride": {
69311
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69236
69312
  }
69237
69313
  },
69238
69314
  "required": [
69239
69315
  "@type",
69316
+ "title",
69240
69317
  "value"
69241
69318
  ],
69242
69319
  "additionalProperties": false
69243
69320
  },
69244
- "IdentityFileReferenceJSON": {
69321
+ "ProprietaryLanguageJSON": {
69245
69322
  "type": "object",
69246
69323
  "properties": {
69247
69324
  "@type": {
69248
69325
  "type": "string",
69249
- "const": "IdentityFileReference"
69326
+ "const": "ProprietaryLanguage"
69250
69327
  },
69251
69328
  "@context": {
69252
69329
  "type": "string"
@@ -69256,20 +69333,30 @@ exports.SucceedIdentityAttributeRequest = {
69256
69333
  },
69257
69334
  "value": {
69258
69335
  "type": "string"
69336
+ },
69337
+ "title": {
69338
+ "type": "string"
69339
+ },
69340
+ "description": {
69341
+ "type": "string"
69342
+ },
69343
+ "valueHintsOverride": {
69344
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69259
69345
  }
69260
69346
  },
69261
69347
  "required": [
69262
69348
  "@type",
69349
+ "title",
69263
69350
  "value"
69264
69351
  ],
69265
69352
  "additionalProperties": false
69266
69353
  },
69267
- "JobTitleJSON": {
69354
+ "ProprietaryPhoneNumberJSON": {
69268
69355
  "type": "object",
69269
69356
  "properties": {
69270
69357
  "@type": {
69271
69358
  "type": "string",
69272
- "const": "JobTitle"
69359
+ "const": "ProprietaryPhoneNumber"
69273
69360
  },
69274
69361
  "@context": {
69275
69362
  "type": "string"
@@ -69279,20 +69366,30 @@ exports.SucceedIdentityAttributeRequest = {
69279
69366
  },
69280
69367
  "value": {
69281
69368
  "type": "string"
69369
+ },
69370
+ "title": {
69371
+ "type": "string"
69372
+ },
69373
+ "description": {
69374
+ "type": "string"
69375
+ },
69376
+ "valueHintsOverride": {
69377
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69282
69378
  }
69283
69379
  },
69284
69380
  "required": [
69285
69381
  "@type",
69382
+ "title",
69286
69383
  "value"
69287
69384
  ],
69288
69385
  "additionalProperties": false
69289
69386
  },
69290
- "NationalityJSON": {
69387
+ "ProprietaryStringJSON": {
69291
69388
  "type": "object",
69292
69389
  "properties": {
69293
69390
  "@type": {
69294
69391
  "type": "string",
69295
- "const": "Nationality"
69392
+ "const": "ProprietaryString"
69296
69393
  },
69297
69394
  "@context": {
69298
69395
  "type": "string"
@@ -69302,20 +69399,30 @@ exports.SucceedIdentityAttributeRequest = {
69302
69399
  },
69303
69400
  "value": {
69304
69401
  "type": "string"
69402
+ },
69403
+ "title": {
69404
+ "type": "string"
69405
+ },
69406
+ "description": {
69407
+ "type": "string"
69408
+ },
69409
+ "valueHintsOverride": {
69410
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69305
69411
  }
69306
69412
  },
69307
69413
  "required": [
69308
69414
  "@type",
69415
+ "title",
69309
69416
  "value"
69310
69417
  ],
69311
69418
  "additionalProperties": false
69312
69419
  },
69313
- "PersonNameJSON": {
69420
+ "ProprietaryURLJSON": {
69314
69421
  "type": "object",
69315
69422
  "properties": {
69316
69423
  "@type": {
69317
69424
  "type": "string",
69318
- "const": "PersonName"
69425
+ "const": "ProprietaryURL"
69319
69426
  },
69320
69427
  "@context": {
69321
69428
  "type": "string"
@@ -69323,35 +69430,32 @@ exports.SucceedIdentityAttributeRequest = {
69323
69430
  "@version": {
69324
69431
  "type": "string"
69325
69432
  },
69326
- "givenName": {
69327
- "type": "string"
69328
- },
69329
- "middleName": {
69433
+ "value": {
69330
69434
  "type": "string"
69331
69435
  },
69332
- "surname": {
69436
+ "title": {
69333
69437
  "type": "string"
69334
69438
  },
69335
- "honorificSuffix": {
69439
+ "description": {
69336
69440
  "type": "string"
69337
69441
  },
69338
- "honorificPrefix": {
69339
- "type": "string"
69442
+ "valueHintsOverride": {
69443
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69340
69444
  }
69341
69445
  },
69342
69446
  "required": [
69343
69447
  "@type",
69344
- "givenName",
69345
- "surname"
69448
+ "title",
69449
+ "value"
69346
69450
  ],
69347
69451
  "additionalProperties": false
69348
69452
  },
69349
- "PhoneNumberJSON": {
69453
+ "ProprietaryJSONJSON": {
69350
69454
  "type": "object",
69351
69455
  "properties": {
69352
69456
  "@type": {
69353
69457
  "type": "string",
69354
- "const": "PhoneNumber"
69458
+ "const": "ProprietaryJSON"
69355
69459
  },
69356
69460
  "@context": {
69357
69461
  "type": "string"
@@ -69359,22 +69463,27 @@ exports.SucceedIdentityAttributeRequest = {
69359
69463
  "@version": {
69360
69464
  "type": "string"
69361
69465
  },
69362
- "value": {
69466
+ "title": {
69363
69467
  "type": "string"
69364
- }
69468
+ },
69469
+ "description": {
69470
+ "type": "string"
69471
+ },
69472
+ "value": {}
69365
69473
  },
69366
69474
  "required": [
69367
69475
  "@type",
69476
+ "title",
69368
69477
  "value"
69369
69478
  ],
69370
69479
  "additionalProperties": false
69371
69480
  },
69372
- "PostOfficeBoxAddressJSON": {
69481
+ "ProprietaryXMLJSON": {
69373
69482
  "type": "object",
69374
69483
  "properties": {
69375
69484
  "@type": {
69376
69485
  "type": "string",
69377
- "const": "PostOfficeBoxAddress"
69486
+ "const": "ProprietaryXML"
69378
69487
  },
69379
69488
  "@context": {
69380
69489
  "type": "string"
@@ -69382,41 +69491,34 @@ exports.SucceedIdentityAttributeRequest = {
69382
69491
  "@version": {
69383
69492
  "type": "string"
69384
69493
  },
69385
- "recipient": {
69386
- "type": "string"
69387
- },
69388
- "boxId": {
69494
+ "value": {
69389
69495
  "type": "string"
69390
69496
  },
69391
- "zipCode": {
69497
+ "title": {
69392
69498
  "type": "string"
69393
69499
  },
69394
- "city": {
69500
+ "description": {
69395
69501
  "type": "string"
69396
69502
  },
69397
- "country": {
69398
- "type": "string"
69503
+ "valueHintsOverride": {
69504
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69399
69505
  },
69400
- "state": {
69506
+ "schemaURL": {
69401
69507
  "type": "string"
69402
69508
  }
69403
69509
  },
69404
69510
  "required": [
69405
69511
  "@type",
69406
- "boxId",
69407
- "city",
69408
- "country",
69409
- "recipient",
69410
- "zipCode"
69512
+ "title",
69513
+ "value"
69411
69514
  ],
69412
69515
  "additionalProperties": false
69413
69516
  },
69414
- "PseudonymJSON": {
69517
+ "ConsentJSON": {
69415
69518
  "type": "object",
69416
69519
  "properties": {
69417
69520
  "@type": {
69418
- "type": "string",
69419
- "const": "Pseudonym"
69521
+ "type": "string"
69420
69522
  },
69421
69523
  "@context": {
69422
69524
  "type": "string"
@@ -69424,181 +69526,147 @@ exports.SucceedIdentityAttributeRequest = {
69424
69526
  "@version": {
69425
69527
  "type": "string"
69426
69528
  },
69427
- "value": {
69529
+ "consent": {
69530
+ "type": "string"
69531
+ },
69532
+ "link": {
69428
69533
  "type": "string"
69429
69534
  }
69430
69535
  },
69431
69536
  "required": [
69432
69537
  "@type",
69433
- "value"
69538
+ "consent"
69434
69539
  ],
69435
69540
  "additionalProperties": false
69436
69541
  },
69437
- "SexJSON": {
69542
+ "ISO8601DateTimeString": {
69543
+ "type": "string",
69544
+ "errorMessage": "must match ISO8601 datetime format",
69545
+ "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)?)?)?)?$"
69546
+ }
69547
+ }
69548
+ };
69549
+ exports.SucceedRepositoryAttributeRequest = {
69550
+ "$schema": "http://json-schema.org/draft-07/schema#",
69551
+ "$ref": "#/definitions/SucceedRepositoryAttributeRequest",
69552
+ "definitions": {
69553
+ "SucceedRepositoryAttributeRequest": {
69438
69554
  "type": "object",
69439
69555
  "properties": {
69440
- "@type": {
69441
- "type": "string",
69442
- "const": "Sex"
69443
- },
69444
- "@context": {
69445
- "type": "string"
69446
- },
69447
- "@version": {
69556
+ "predecessorId": {
69448
69557
  "type": "string"
69449
69558
  },
69450
- "value": {
69451
- "type": "string"
69452
- }
69453
- },
69454
- "required": [
69455
- "@type",
69456
- "value"
69457
- ],
69458
- "additionalProperties": false
69459
- },
69460
- "StreetAddressJSON": {
69461
- "type": "object",
69462
- "properties": {
69463
- "@type": {
69464
- "type": "string",
69465
- "const": "StreetAddress"
69466
- },
69467
- "@context": {
69468
- "type": "string"
69469
- },
69470
- "@version": {
69471
- "type": "string"
69472
- },
69473
- "recipient": {
69474
- "type": "string"
69475
- },
69476
- "street": {
69477
- "type": "string"
69478
- },
69479
- "houseNo": {
69480
- "type": "string"
69481
- },
69482
- "zipCode": {
69483
- "type": "string"
69484
- },
69485
- "city": {
69486
- "type": "string"
69487
- },
69488
- "country": {
69489
- "type": "string"
69490
- },
69491
- "state": {
69492
- "type": "string"
69559
+ "successorContent": {
69560
+ "type": "object",
69561
+ "properties": {
69562
+ "value": {
69563
+ "$ref": "#/definitions/AttributeValues.Identity.Json"
69564
+ },
69565
+ "tags": {
69566
+ "type": "array",
69567
+ "items": {
69568
+ "type": "string"
69569
+ }
69570
+ },
69571
+ "validFrom": {
69572
+ "$ref": "#/definitions/ISO8601DateTimeString"
69573
+ },
69574
+ "validTo": {
69575
+ "$ref": "#/definitions/ISO8601DateTimeString"
69576
+ }
69577
+ },
69578
+ "required": [
69579
+ "value"
69580
+ ],
69581
+ "additionalProperties": false
69493
69582
  }
69494
69583
  },
69495
69584
  "required": [
69496
- "@type",
69497
- "city",
69498
- "country",
69499
- "houseNo",
69500
- "recipient",
69501
- "street",
69502
- "zipCode"
69585
+ "predecessorId",
69586
+ "successorContent"
69503
69587
  ],
69504
69588
  "additionalProperties": false
69505
69589
  },
69506
- "WebsiteJSON": {
69507
- "type": "object",
69508
- "properties": {
69509
- "@type": {
69510
- "type": "string",
69511
- "const": "Website"
69512
- },
69513
- "@context": {
69514
- "type": "string"
69515
- },
69516
- "@version": {
69517
- "type": "string"
69590
+ "AttributeValues.Identity.Json": {
69591
+ "anyOf": [
69592
+ {
69593
+ "$ref": "#/definitions/AttributeValues.Identity.Editable.Json"
69518
69594
  },
69519
- "value": {
69520
- "type": "string"
69595
+ {
69596
+ "$ref": "#/definitions/AttributeValues.Identity.Uneditable.Json"
69521
69597
  }
69522
- },
69523
- "required": [
69524
- "@type",
69525
- "value"
69526
- ],
69527
- "additionalProperties": false
69598
+ ]
69528
69599
  },
69529
- "AttributeValues.Identity.Uneditable.Json": {
69600
+ "AttributeValues.Identity.Editable.Json": {
69530
69601
  "anyOf": [
69531
69602
  {
69532
- "$ref": "#/definitions/AffiliationOrganizationJSON"
69533
- },
69534
- {
69535
- "$ref": "#/definitions/AffiliationRoleJSON"
69603
+ "$ref": "#/definitions/AffiliationJSON"
69536
69604
  },
69537
69605
  {
69538
- "$ref": "#/definitions/AffiliationUnitJSON"
69606
+ "$ref": "#/definitions/BirthDateJSON"
69539
69607
  },
69540
69608
  {
69541
- "$ref": "#/definitions/BirthCityJSON"
69609
+ "$ref": "#/definitions/BirthNameJSON"
69542
69610
  },
69543
69611
  {
69544
- "$ref": "#/definitions/BirthCountryJSON"
69612
+ "$ref": "#/definitions/BirthPlaceJSON"
69545
69613
  },
69546
69614
  {
69547
- "$ref": "#/definitions/BirthDayJSON"
69615
+ "$ref": "#/definitions/CitizenshipJSON"
69548
69616
  },
69549
69617
  {
69550
- "$ref": "#/definitions/BirthMonthJSON"
69618
+ "$ref": "#/definitions/CommunicationLanguageJSON"
69551
69619
  },
69552
69620
  {
69553
- "$ref": "#/definitions/BirthStateJSON"
69621
+ "$ref": "#/definitions/DeliveryBoxAddressJSON"
69554
69622
  },
69555
69623
  {
69556
- "$ref": "#/definitions/BirthYearJSON"
69624
+ "$ref": "#/definitions/DisplayNameJSON"
69557
69625
  },
69558
69626
  {
69559
- "$ref": "#/definitions/CityJSON"
69627
+ "$ref": "#/definitions/EMailAddressJSON"
69560
69628
  },
69561
69629
  {
69562
- "$ref": "#/definitions/CountryJSON"
69630
+ "$ref": "#/definitions/FaxNumberJSON"
69563
69631
  },
69564
69632
  {
69565
- "$ref": "#/definitions/GivenNameJSON"
69633
+ "$ref": "#/definitions/IdentityFileReferenceJSON"
69566
69634
  },
69567
69635
  {
69568
- "$ref": "#/definitions/HonorificPrefixJSON"
69636
+ "$ref": "#/definitions/JobTitleJSON"
69569
69637
  },
69570
69638
  {
69571
- "$ref": "#/definitions/HonorificSuffixJSON"
69639
+ "$ref": "#/definitions/NationalityJSON"
69572
69640
  },
69573
69641
  {
69574
- "$ref": "#/definitions/HouseNumberJSON"
69642
+ "$ref": "#/definitions/PersonNameJSON"
69575
69643
  },
69576
69644
  {
69577
- "$ref": "#/definitions/MiddleNameJSON"
69645
+ "$ref": "#/definitions/PhoneNumberJSON"
69578
69646
  },
69579
69647
  {
69580
- "$ref": "#/definitions/SchematizedXMLJSON"
69648
+ "$ref": "#/definitions/PostOfficeBoxAddressJSON"
69581
69649
  },
69582
69650
  {
69583
- "$ref": "#/definitions/StateJSON"
69651
+ "$ref": "#/definitions/PseudonymJSON"
69584
69652
  },
69585
69653
  {
69586
- "$ref": "#/definitions/StreetJSON"
69654
+ "$ref": "#/definitions/SexJSON"
69587
69655
  },
69588
69656
  {
69589
- "$ref": "#/definitions/SurnameJSON"
69657
+ "$ref": "#/definitions/StreetAddressJSON"
69590
69658
  },
69591
69659
  {
69592
- "$ref": "#/definitions/ZipCodeJSON"
69660
+ "$ref": "#/definitions/WebsiteJSON"
69593
69661
  }
69594
69662
  ]
69595
69663
  },
69596
- "AffiliationOrganizationJSON": {
69664
+ "AffiliationJSON": {
69597
69665
  "type": "object",
69598
69666
  "properties": {
69599
69667
  "@type": {
69600
69668
  "type": "string",
69601
- "const": "AffiliationOrganization"
69669
+ "const": "Affiliation"
69602
69670
  },
69603
69671
  "@context": {
69604
69672
  "type": "string"
@@ -69606,22 +69674,28 @@ exports.SucceedIdentityAttributeRequest = {
69606
69674
  "@version": {
69607
69675
  "type": "string"
69608
69676
  },
69609
- "value": {
69677
+ "organization": {
69678
+ "type": "string"
69679
+ },
69680
+ "role": {
69681
+ "type": "string"
69682
+ },
69683
+ "unit": {
69610
69684
  "type": "string"
69611
69685
  }
69612
69686
  },
69613
69687
  "required": [
69614
69688
  "@type",
69615
- "value"
69689
+ "organization"
69616
69690
  ],
69617
69691
  "additionalProperties": false
69618
69692
  },
69619
- "AffiliationRoleJSON": {
69693
+ "BirthDateJSON": {
69620
69694
  "type": "object",
69621
69695
  "properties": {
69622
69696
  "@type": {
69623
69697
  "type": "string",
69624
- "const": "AffiliationRole"
69698
+ "const": "BirthDate"
69625
69699
  },
69626
69700
  "@context": {
69627
69701
  "type": "string"
@@ -69629,22 +69703,30 @@ exports.SucceedIdentityAttributeRequest = {
69629
69703
  "@version": {
69630
69704
  "type": "string"
69631
69705
  },
69632
- "value": {
69633
- "type": "string"
69706
+ "day": {
69707
+ "type": "number"
69708
+ },
69709
+ "month": {
69710
+ "type": "number"
69711
+ },
69712
+ "year": {
69713
+ "type": "number"
69634
69714
  }
69635
69715
  },
69636
69716
  "required": [
69637
69717
  "@type",
69638
- "value"
69718
+ "day",
69719
+ "month",
69720
+ "year"
69639
69721
  ],
69640
69722
  "additionalProperties": false
69641
69723
  },
69642
- "AffiliationUnitJSON": {
69724
+ "BirthNameJSON": {
69643
69725
  "type": "object",
69644
69726
  "properties": {
69645
69727
  "@type": {
69646
69728
  "type": "string",
69647
- "const": "AffiliationUnit"
69729
+ "const": "BirthName"
69648
69730
  },
69649
69731
  "@context": {
69650
69732
  "type": "string"
@@ -69662,11 +69744,12 @@ exports.SucceedIdentityAttributeRequest = {
69662
69744
  ],
69663
69745
  "additionalProperties": false
69664
69746
  },
69665
- "BirthCityJSON": {
69747
+ "BirthPlaceJSON": {
69666
69748
  "type": "object",
69667
69749
  "properties": {
69668
- "value": {
69669
- "type": "string"
69750
+ "@type": {
69751
+ "type": "string",
69752
+ "const": "BirthPlace"
69670
69753
  },
69671
69754
  "@context": {
69672
69755
  "type": "string"
@@ -69674,46 +69757,29 @@ exports.SucceedIdentityAttributeRequest = {
69674
69757
  "@version": {
69675
69758
  "type": "string"
69676
69759
  },
69677
- "@type": {
69678
- "type": "string",
69679
- "const": "BirthCity"
69680
- }
69681
- },
69682
- "required": [
69683
- "@type",
69684
- "value"
69685
- ],
69686
- "additionalProperties": false
69687
- },
69688
- "BirthCountryJSON": {
69689
- "type": "object",
69690
- "properties": {
69691
- "value": {
69760
+ "city": {
69692
69761
  "type": "string"
69693
69762
  },
69694
- "@context": {
69763
+ "country": {
69695
69764
  "type": "string"
69696
69765
  },
69697
- "@version": {
69766
+ "state": {
69698
69767
  "type": "string"
69699
- },
69700
- "@type": {
69701
- "type": "string",
69702
- "const": "BirthCountry"
69703
69768
  }
69704
69769
  },
69705
69770
  "required": [
69706
69771
  "@type",
69707
- "value"
69772
+ "city",
69773
+ "country"
69708
69774
  ],
69709
69775
  "additionalProperties": false
69710
69776
  },
69711
- "BirthDayJSON": {
69777
+ "CitizenshipJSON": {
69712
69778
  "type": "object",
69713
69779
  "properties": {
69714
69780
  "@type": {
69715
69781
  "type": "string",
69716
- "const": "BirthDay"
69782
+ "const": "Citizenship"
69717
69783
  },
69718
69784
  "@context": {
69719
69785
  "type": "string"
@@ -69722,7 +69788,7 @@ exports.SucceedIdentityAttributeRequest = {
69722
69788
  "type": "string"
69723
69789
  },
69724
69790
  "value": {
69725
- "type": "number"
69791
+ "type": "string"
69726
69792
  }
69727
69793
  },
69728
69794
  "required": [
@@ -69731,12 +69797,12 @@ exports.SucceedIdentityAttributeRequest = {
69731
69797
  ],
69732
69798
  "additionalProperties": false
69733
69799
  },
69734
- "BirthMonthJSON": {
69800
+ "CommunicationLanguageJSON": {
69735
69801
  "type": "object",
69736
69802
  "properties": {
69737
69803
  "@type": {
69738
69804
  "type": "string",
69739
- "const": "BirthMonth"
69805
+ "const": "CommunicationLanguage"
69740
69806
  },
69741
69807
  "@context": {
69742
69808
  "type": "string"
@@ -69745,22 +69811,7 @@ exports.SucceedIdentityAttributeRequest = {
69745
69811
  "type": "string"
69746
69812
  },
69747
69813
  "value": {
69748
- "type": "number",
69749
- "enum": [
69750
- 1,
69751
- 2,
69752
- 3,
69753
- 4,
69754
- 5,
69755
- 6,
69756
- 7,
69757
- 8,
69758
- 9,
69759
- 10,
69760
- 11,
69761
- 12
69762
- ],
69763
- "description": "Month values: 1 (january) - 12 (december)"
69814
+ "type": "string"
69764
69815
  }
69765
69816
  },
69766
69817
  "required": [
@@ -69769,11 +69820,12 @@ exports.SucceedIdentityAttributeRequest = {
69769
69820
  ],
69770
69821
  "additionalProperties": false
69771
69822
  },
69772
- "BirthStateJSON": {
69823
+ "DeliveryBoxAddressJSON": {
69773
69824
  "type": "object",
69774
69825
  "properties": {
69775
- "value": {
69776
- "type": "string"
69826
+ "@type": {
69827
+ "type": "string",
69828
+ "const": "DeliveryBoxAddress"
69777
69829
  },
69778
69830
  "@context": {
69779
69831
  "type": "string"
@@ -69781,23 +69833,48 @@ exports.SucceedIdentityAttributeRequest = {
69781
69833
  "@version": {
69782
69834
  "type": "string"
69783
69835
  },
69784
- "@type": {
69785
- "type": "string",
69786
- "const": "BirthState"
69787
- }
69788
- },
69789
- "required": [
69790
- "@type",
69791
- "value"
69792
- ],
69793
- "additionalProperties": false
69794
- },
69795
- "BirthYearJSON": {
69836
+ "recipient": {
69837
+ "type": "string"
69838
+ },
69839
+ "userId": {
69840
+ "type": "string"
69841
+ },
69842
+ "deliveryBoxId": {
69843
+ "type": "string"
69844
+ },
69845
+ "zipCode": {
69846
+ "type": "string"
69847
+ },
69848
+ "city": {
69849
+ "type": "string"
69850
+ },
69851
+ "country": {
69852
+ "type": "string"
69853
+ },
69854
+ "phoneNumber": {
69855
+ "type": "string"
69856
+ },
69857
+ "state": {
69858
+ "type": "string"
69859
+ }
69860
+ },
69861
+ "required": [
69862
+ "@type",
69863
+ "city",
69864
+ "country",
69865
+ "deliveryBoxId",
69866
+ "recipient",
69867
+ "userId",
69868
+ "zipCode"
69869
+ ],
69870
+ "additionalProperties": false
69871
+ },
69872
+ "DisplayNameJSON": {
69796
69873
  "type": "object",
69797
69874
  "properties": {
69798
69875
  "@type": {
69799
69876
  "type": "string",
69800
- "const": "BirthYear"
69877
+ "const": "DisplayName"
69801
69878
  },
69802
69879
  "@context": {
69803
69880
  "type": "string"
@@ -69806,7 +69883,7 @@ exports.SucceedIdentityAttributeRequest = {
69806
69883
  "type": "string"
69807
69884
  },
69808
69885
  "value": {
69809
- "type": "number"
69886
+ "type": "string"
69810
69887
  }
69811
69888
  },
69812
69889
  "required": [
@@ -69815,12 +69892,12 @@ exports.SucceedIdentityAttributeRequest = {
69815
69892
  ],
69816
69893
  "additionalProperties": false
69817
69894
  },
69818
- "CityJSON": {
69895
+ "EMailAddressJSON": {
69819
69896
  "type": "object",
69820
69897
  "properties": {
69821
69898
  "@type": {
69822
69899
  "type": "string",
69823
- "const": "City"
69900
+ "const": "EMailAddress"
69824
69901
  },
69825
69902
  "@context": {
69826
69903
  "type": "string"
@@ -69838,12 +69915,12 @@ exports.SucceedIdentityAttributeRequest = {
69838
69915
  ],
69839
69916
  "additionalProperties": false
69840
69917
  },
69841
- "CountryJSON": {
69918
+ "FaxNumberJSON": {
69842
69919
  "type": "object",
69843
69920
  "properties": {
69844
69921
  "@type": {
69845
69922
  "type": "string",
69846
- "const": "Country"
69923
+ "const": "FaxNumber"
69847
69924
  },
69848
69925
  "@context": {
69849
69926
  "type": "string"
@@ -69861,12 +69938,12 @@ exports.SucceedIdentityAttributeRequest = {
69861
69938
  ],
69862
69939
  "additionalProperties": false
69863
69940
  },
69864
- "GivenNameJSON": {
69941
+ "IdentityFileReferenceJSON": {
69865
69942
  "type": "object",
69866
69943
  "properties": {
69867
69944
  "@type": {
69868
69945
  "type": "string",
69869
- "const": "GivenName"
69946
+ "const": "IdentityFileReference"
69870
69947
  },
69871
69948
  "@context": {
69872
69949
  "type": "string"
@@ -69884,12 +69961,12 @@ exports.SucceedIdentityAttributeRequest = {
69884
69961
  ],
69885
69962
  "additionalProperties": false
69886
69963
  },
69887
- "HonorificPrefixJSON": {
69964
+ "JobTitleJSON": {
69888
69965
  "type": "object",
69889
69966
  "properties": {
69890
69967
  "@type": {
69891
69968
  "type": "string",
69892
- "const": "HonorificPrefix"
69969
+ "const": "JobTitle"
69893
69970
  },
69894
69971
  "@context": {
69895
69972
  "type": "string"
@@ -69907,12 +69984,12 @@ exports.SucceedIdentityAttributeRequest = {
69907
69984
  ],
69908
69985
  "additionalProperties": false
69909
69986
  },
69910
- "HonorificSuffixJSON": {
69987
+ "NationalityJSON": {
69911
69988
  "type": "object",
69912
69989
  "properties": {
69913
69990
  "@type": {
69914
69991
  "type": "string",
69915
- "const": "HonorificSuffix"
69992
+ "const": "Nationality"
69916
69993
  },
69917
69994
  "@context": {
69918
69995
  "type": "string"
@@ -69930,12 +70007,12 @@ exports.SucceedIdentityAttributeRequest = {
69930
70007
  ],
69931
70008
  "additionalProperties": false
69932
70009
  },
69933
- "HouseNumberJSON": {
70010
+ "PersonNameJSON": {
69934
70011
  "type": "object",
69935
70012
  "properties": {
69936
70013
  "@type": {
69937
70014
  "type": "string",
69938
- "const": "HouseNumber"
70015
+ "const": "PersonName"
69939
70016
  },
69940
70017
  "@context": {
69941
70018
  "type": "string"
@@ -69943,22 +70020,35 @@ exports.SucceedIdentityAttributeRequest = {
69943
70020
  "@version": {
69944
70021
  "type": "string"
69945
70022
  },
69946
- "value": {
70023
+ "givenName": {
70024
+ "type": "string"
70025
+ },
70026
+ "middleName": {
70027
+ "type": "string"
70028
+ },
70029
+ "surname": {
70030
+ "type": "string"
70031
+ },
70032
+ "honorificSuffix": {
70033
+ "type": "string"
70034
+ },
70035
+ "honorificPrefix": {
69947
70036
  "type": "string"
69948
70037
  }
69949
70038
  },
69950
70039
  "required": [
69951
70040
  "@type",
69952
- "value"
70041
+ "givenName",
70042
+ "surname"
69953
70043
  ],
69954
70044
  "additionalProperties": false
69955
70045
  },
69956
- "MiddleNameJSON": {
70046
+ "PhoneNumberJSON": {
69957
70047
  "type": "object",
69958
70048
  "properties": {
69959
70049
  "@type": {
69960
70050
  "type": "string",
69961
- "const": "MiddleName"
70051
+ "const": "PhoneNumber"
69962
70052
  },
69963
70053
  "@context": {
69964
70054
  "type": "string"
@@ -69976,12 +70066,12 @@ exports.SucceedIdentityAttributeRequest = {
69976
70066
  ],
69977
70067
  "additionalProperties": false
69978
70068
  },
69979
- "SchematizedXMLJSON": {
70069
+ "PostOfficeBoxAddressJSON": {
69980
70070
  "type": "object",
69981
70071
  "properties": {
69982
70072
  "@type": {
69983
70073
  "type": "string",
69984
- "const": "SchematizedXML"
70074
+ "const": "PostOfficeBoxAddress"
69985
70075
  },
69986
70076
  "@context": {
69987
70077
  "type": "string"
@@ -69989,25 +70079,41 @@ exports.SucceedIdentityAttributeRequest = {
69989
70079
  "@version": {
69990
70080
  "type": "string"
69991
70081
  },
69992
- "value": {
70082
+ "recipient": {
69993
70083
  "type": "string"
69994
70084
  },
69995
- "schemaURL": {
70085
+ "boxId": {
70086
+ "type": "string"
70087
+ },
70088
+ "zipCode": {
70089
+ "type": "string"
70090
+ },
70091
+ "city": {
70092
+ "type": "string"
70093
+ },
70094
+ "country": {
70095
+ "type": "string"
70096
+ },
70097
+ "state": {
69996
70098
  "type": "string"
69997
70099
  }
69998
70100
  },
69999
70101
  "required": [
70000
70102
  "@type",
70001
- "value"
70103
+ "boxId",
70104
+ "city",
70105
+ "country",
70106
+ "recipient",
70107
+ "zipCode"
70002
70108
  ],
70003
70109
  "additionalProperties": false
70004
70110
  },
70005
- "StateJSON": {
70111
+ "PseudonymJSON": {
70006
70112
  "type": "object",
70007
70113
  "properties": {
70008
70114
  "@type": {
70009
70115
  "type": "string",
70010
- "const": "State"
70116
+ "const": "Pseudonym"
70011
70117
  },
70012
70118
  "@context": {
70013
70119
  "type": "string"
@@ -70025,12 +70131,12 @@ exports.SucceedIdentityAttributeRequest = {
70025
70131
  ],
70026
70132
  "additionalProperties": false
70027
70133
  },
70028
- "StreetJSON": {
70134
+ "SexJSON": {
70029
70135
  "type": "object",
70030
70136
  "properties": {
70031
70137
  "@type": {
70032
70138
  "type": "string",
70033
- "const": "Street"
70139
+ "const": "Sex"
70034
70140
  },
70035
70141
  "@context": {
70036
70142
  "type": "string"
@@ -70048,12 +70154,12 @@ exports.SucceedIdentityAttributeRequest = {
70048
70154
  ],
70049
70155
  "additionalProperties": false
70050
70156
  },
70051
- "SurnameJSON": {
70157
+ "StreetAddressJSON": {
70052
70158
  "type": "object",
70053
70159
  "properties": {
70054
70160
  "@type": {
70055
70161
  "type": "string",
70056
- "const": "Surname"
70162
+ "const": "StreetAddress"
70057
70163
  },
70058
70164
  "@context": {
70059
70165
  "type": "string"
@@ -70061,22 +70167,45 @@ exports.SucceedIdentityAttributeRequest = {
70061
70167
  "@version": {
70062
70168
  "type": "string"
70063
70169
  },
70064
- "value": {
70170
+ "recipient": {
70171
+ "type": "string"
70172
+ },
70173
+ "street": {
70174
+ "type": "string"
70175
+ },
70176
+ "houseNo": {
70177
+ "type": "string"
70178
+ },
70179
+ "zipCode": {
70180
+ "type": "string"
70181
+ },
70182
+ "city": {
70183
+ "type": "string"
70184
+ },
70185
+ "country": {
70186
+ "type": "string"
70187
+ },
70188
+ "state": {
70065
70189
  "type": "string"
70066
70190
  }
70067
70191
  },
70068
70192
  "required": [
70069
70193
  "@type",
70070
- "value"
70194
+ "city",
70195
+ "country",
70196
+ "houseNo",
70197
+ "recipient",
70198
+ "street",
70199
+ "zipCode"
70071
70200
  ],
70072
70201
  "additionalProperties": false
70073
70202
  },
70074
- "ZipCodeJSON": {
70203
+ "WebsiteJSON": {
70075
70204
  "type": "object",
70076
70205
  "properties": {
70077
70206
  "@type": {
70078
70207
  "type": "string",
70079
- "const": "ZipCode"
70208
+ "const": "Website"
70080
70209
  },
70081
70210
  "@context": {
70082
70211
  "type": "string"
@@ -70094,104 +70223,79 @@ exports.SucceedIdentityAttributeRequest = {
70094
70223
  ],
70095
70224
  "additionalProperties": false
70096
70225
  },
70097
- "ISO8601DateTimeString": {
70098
- "type": "string",
70099
- "errorMessage": "must match ISO8601 datetime format",
70100
- "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)?)?)?)?$"
70101
- }
70102
- }
70103
- };
70104
- exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70105
- "$schema": "http://json-schema.org/draft-07/schema#",
70106
- "$ref": "#/definitions/SucceedRelationshipAttributeAndNotifyPeerRequest",
70107
- "definitions": {
70108
- "SucceedRelationshipAttributeAndNotifyPeerRequest": {
70109
- "type": "object",
70110
- "properties": {
70111
- "predecessorId": {
70112
- "$ref": "#/definitions/AttributeIdString"
70113
- },
70114
- "successorContent": {
70115
- "type": "object",
70116
- "properties": {
70117
- "value": {
70118
- "$ref": "#/definitions/AttributeValues.Relationship.Json"
70119
- },
70120
- "validFrom": {
70121
- "$ref": "#/definitions/ISO8601DateTimeString"
70122
- },
70123
- "validTo": {
70124
- "$ref": "#/definitions/ISO8601DateTimeString"
70125
- }
70126
- },
70127
- "required": [
70128
- "value"
70129
- ],
70130
- "additionalProperties": false
70131
- }
70132
- },
70133
- "required": [
70134
- "predecessorId",
70135
- "successorContent"
70136
- ],
70137
- "additionalProperties": false
70138
- },
70139
- "AttributeIdString": {
70140
- "type": "string",
70141
- "pattern": "ATT[A-Za-z0-9]{17}"
70142
- },
70143
- "AttributeValues.Relationship.Json": {
70226
+ "AttributeValues.Identity.Uneditable.Json": {
70144
70227
  "anyOf": [
70145
70228
  {
70146
- "$ref": "#/definitions/ProprietaryBooleanJSON"
70229
+ "$ref": "#/definitions/AffiliationOrganizationJSON"
70147
70230
  },
70148
70231
  {
70149
- "$ref": "#/definitions/ProprietaryCountryJSON"
70232
+ "$ref": "#/definitions/AffiliationRoleJSON"
70150
70233
  },
70151
70234
  {
70152
- "$ref": "#/definitions/ProprietaryEMailAddressJSON"
70235
+ "$ref": "#/definitions/AffiliationUnitJSON"
70153
70236
  },
70154
70237
  {
70155
- "$ref": "#/definitions/ProprietaryFileReferenceJSON"
70238
+ "$ref": "#/definitions/BirthCityJSON"
70156
70239
  },
70157
70240
  {
70158
- "$ref": "#/definitions/ProprietaryFloatJSON"
70241
+ "$ref": "#/definitions/BirthCountryJSON"
70159
70242
  },
70160
70243
  {
70161
- "$ref": "#/definitions/ProprietaryHEXColorJSON"
70244
+ "$ref": "#/definitions/BirthDayJSON"
70162
70245
  },
70163
70246
  {
70164
- "$ref": "#/definitions/ProprietaryIntegerJSON"
70247
+ "$ref": "#/definitions/BirthMonthJSON"
70165
70248
  },
70166
70249
  {
70167
- "$ref": "#/definitions/ProprietaryLanguageJSON"
70250
+ "$ref": "#/definitions/BirthStateJSON"
70168
70251
  },
70169
70252
  {
70170
- "$ref": "#/definitions/ProprietaryPhoneNumberJSON"
70253
+ "$ref": "#/definitions/BirthYearJSON"
70171
70254
  },
70172
70255
  {
70173
- "$ref": "#/definitions/ProprietaryStringJSON"
70256
+ "$ref": "#/definitions/CityJSON"
70174
70257
  },
70175
70258
  {
70176
- "$ref": "#/definitions/ProprietaryURLJSON"
70259
+ "$ref": "#/definitions/CountryJSON"
70177
70260
  },
70178
70261
  {
70179
- "$ref": "#/definitions/ProprietaryJSONJSON"
70262
+ "$ref": "#/definitions/GivenNameJSON"
70180
70263
  },
70181
70264
  {
70182
- "$ref": "#/definitions/ProprietaryXMLJSON"
70265
+ "$ref": "#/definitions/HonorificPrefixJSON"
70183
70266
  },
70184
70267
  {
70185
- "$ref": "#/definitions/ConsentJSON"
70268
+ "$ref": "#/definitions/HonorificSuffixJSON"
70269
+ },
70270
+ {
70271
+ "$ref": "#/definitions/HouseNumberJSON"
70272
+ },
70273
+ {
70274
+ "$ref": "#/definitions/MiddleNameJSON"
70275
+ },
70276
+ {
70277
+ "$ref": "#/definitions/SchematizedXMLJSON"
70278
+ },
70279
+ {
70280
+ "$ref": "#/definitions/StateJSON"
70281
+ },
70282
+ {
70283
+ "$ref": "#/definitions/StreetJSON"
70284
+ },
70285
+ {
70286
+ "$ref": "#/definitions/SurnameJSON"
70287
+ },
70288
+ {
70289
+ "$ref": "#/definitions/ZipCodeJSON"
70186
70290
  }
70187
70291
  ]
70188
70292
  },
70189
- "ProprietaryBooleanJSON": {
70293
+ "AffiliationOrganizationJSON": {
70190
70294
  "type": "object",
70191
70295
  "properties": {
70192
70296
  "@type": {
70193
70297
  "type": "string",
70194
- "const": "ProprietaryBoolean"
70298
+ "const": "AffiliationOrganization"
70195
70299
  },
70196
70300
  "@context": {
70197
70301
  "type": "string"
@@ -70200,98 +70304,113 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70200
70304
  "type": "string"
70201
70305
  },
70202
70306
  "value": {
70203
- "type": "boolean"
70307
+ "type": "string"
70308
+ }
70309
+ },
70310
+ "required": [
70311
+ "@type",
70312
+ "value"
70313
+ ],
70314
+ "additionalProperties": false
70315
+ },
70316
+ "AffiliationRoleJSON": {
70317
+ "type": "object",
70318
+ "properties": {
70319
+ "@type": {
70320
+ "type": "string",
70321
+ "const": "AffiliationRole"
70204
70322
  },
70205
- "title": {
70323
+ "@context": {
70206
70324
  "type": "string"
70207
70325
  },
70208
- "description": {
70326
+ "@version": {
70209
70327
  "type": "string"
70210
70328
  },
70211
- "valueHintsOverride": {
70212
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70329
+ "value": {
70330
+ "type": "string"
70213
70331
  }
70214
70332
  },
70215
70333
  "required": [
70216
70334
  "@type",
70217
- "title",
70218
70335
  "value"
70219
70336
  ],
70220
70337
  "additionalProperties": false
70221
70338
  },
70222
- "ValueHintsOverrideJSON": {
70339
+ "AffiliationUnitJSON": {
70223
70340
  "type": "object",
70224
- "additionalProperties": false,
70225
70341
  "properties": {
70226
70342
  "@type": {
70227
70343
  "type": "string",
70228
- "const": "ValueHints"
70344
+ "const": "AffiliationUnit"
70229
70345
  },
70230
- "editHelp": {
70346
+ "@context": {
70231
70347
  "type": "string"
70232
70348
  },
70233
- "min": {
70234
- "type": "number"
70235
- },
70236
- "max": {
70237
- "type": "number"
70238
- },
70239
- "pattern": {
70349
+ "@version": {
70240
70350
  "type": "string"
70241
70351
  },
70242
- "values": {
70243
- "type": "array",
70244
- "items": {
70245
- "$ref": "#/definitions/ValueHintsValueJSON"
70246
- }
70247
- },
70248
- "defaultValue": {
70249
- "type": [
70250
- "string",
70251
- "number",
70252
- "boolean"
70253
- ]
70254
- },
70255
- "propertyHints": {
70256
- "type": "object",
70257
- "additionalProperties": {
70258
- "$ref": "#/definitions/ValueHintsJSON"
70259
- }
70352
+ "value": {
70353
+ "type": "string"
70354
+ }
70355
+ },
70356
+ "required": [
70357
+ "@type",
70358
+ "value"
70359
+ ],
70360
+ "additionalProperties": false
70361
+ },
70362
+ "BirthCityJSON": {
70363
+ "type": "object",
70364
+ "properties": {
70365
+ "value": {
70366
+ "type": "string"
70260
70367
  },
70261
70368
  "@context": {
70262
70369
  "type": "string"
70263
70370
  },
70264
70371
  "@version": {
70265
70372
  "type": "string"
70373
+ },
70374
+ "@type": {
70375
+ "type": "string",
70376
+ "const": "BirthCity"
70266
70377
  }
70267
- }
70378
+ },
70379
+ "required": [
70380
+ "@type",
70381
+ "value"
70382
+ ],
70383
+ "additionalProperties": false
70268
70384
  },
70269
- "ValueHintsValueJSON": {
70385
+ "BirthCountryJSON": {
70270
70386
  "type": "object",
70271
70387
  "properties": {
70272
- "key": {
70273
- "type": [
70274
- "string",
70275
- "number",
70276
- "boolean"
70277
- ]
70388
+ "value": {
70389
+ "type": "string"
70278
70390
  },
70279
- "displayName": {
70391
+ "@context": {
70392
+ "type": "string"
70393
+ },
70394
+ "@version": {
70280
70395
  "type": "string"
70396
+ },
70397
+ "@type": {
70398
+ "type": "string",
70399
+ "const": "BirthCountry"
70281
70400
  }
70282
70401
  },
70283
70402
  "required": [
70284
- "key",
70285
- "displayName"
70403
+ "@type",
70404
+ "value"
70286
70405
  ],
70287
70406
  "additionalProperties": false
70288
70407
  },
70289
- "ValueHintsJSON": {
70408
+ "BirthDayJSON": {
70290
70409
  "type": "object",
70291
70410
  "properties": {
70292
70411
  "@type": {
70293
70412
  "type": "string",
70294
- "const": "ValueHints"
70413
+ "const": "BirthDay"
70295
70414
  },
70296
70415
  "@context": {
70297
70416
  "type": "string"
@@ -70299,49 +70418,22 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70299
70418
  "@version": {
70300
70419
  "type": "string"
70301
70420
  },
70302
- "editHelp": {
70303
- "type": "string"
70304
- },
70305
- "min": {
70306
- "type": "number"
70307
- },
70308
- "max": {
70421
+ "value": {
70309
70422
  "type": "number"
70310
- },
70311
- "pattern": {
70312
- "type": "string"
70313
- },
70314
- "values": {
70315
- "type": "array",
70316
- "items": {
70317
- "$ref": "#/definitions/ValueHintsValueJSON"
70318
- }
70319
- },
70320
- "defaultValue": {
70321
- "type": [
70322
- "string",
70323
- "number",
70324
- "boolean"
70325
- ]
70326
- },
70327
- "propertyHints": {
70328
- "type": "object",
70329
- "additionalProperties": {
70330
- "$ref": "#/definitions/ValueHintsJSON"
70331
- }
70332
70423
  }
70333
70424
  },
70334
70425
  "required": [
70335
- "@type"
70426
+ "@type",
70427
+ "value"
70336
70428
  ],
70337
70429
  "additionalProperties": false
70338
70430
  },
70339
- "ProprietaryCountryJSON": {
70431
+ "BirthMonthJSON": {
70340
70432
  "type": "object",
70341
70433
  "properties": {
70342
70434
  "@type": {
70343
70435
  "type": "string",
70344
- "const": "ProprietaryCountry"
70436
+ "const": "BirthMonth"
70345
70437
  },
70346
70438
  "@context": {
70347
70439
  "type": "string"
@@ -70349,32 +70441,60 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70349
70441
  "@version": {
70350
70442
  "type": "string"
70351
70443
  },
70444
+ "value": {
70445
+ "type": "number",
70446
+ "enum": [
70447
+ 1,
70448
+ 2,
70449
+ 3,
70450
+ 4,
70451
+ 5,
70452
+ 6,
70453
+ 7,
70454
+ 8,
70455
+ 9,
70456
+ 10,
70457
+ 11,
70458
+ 12
70459
+ ],
70460
+ "description": "Month values: 1 (january) - 12 (december)"
70461
+ }
70462
+ },
70463
+ "required": [
70464
+ "@type",
70465
+ "value"
70466
+ ],
70467
+ "additionalProperties": false
70468
+ },
70469
+ "BirthStateJSON": {
70470
+ "type": "object",
70471
+ "properties": {
70352
70472
  "value": {
70353
70473
  "type": "string"
70354
70474
  },
70355
- "title": {
70475
+ "@context": {
70356
70476
  "type": "string"
70357
70477
  },
70358
- "description": {
70478
+ "@version": {
70359
70479
  "type": "string"
70360
70480
  },
70361
- "valueHintsOverride": {
70362
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70481
+ "@type": {
70482
+ "type": "string",
70483
+ "const": "BirthState"
70363
70484
  }
70364
70485
  },
70365
70486
  "required": [
70366
70487
  "@type",
70367
- "title",
70368
70488
  "value"
70369
70489
  ],
70370
70490
  "additionalProperties": false
70371
70491
  },
70372
- "ProprietaryEMailAddressJSON": {
70492
+ "BirthYearJSON": {
70373
70493
  "type": "object",
70374
70494
  "properties": {
70375
70495
  "@type": {
70376
70496
  "type": "string",
70377
- "const": "ProprietaryEMailAddress"
70497
+ "const": "BirthYear"
70378
70498
  },
70379
70499
  "@context": {
70380
70500
  "type": "string"
@@ -70383,31 +70503,21 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70383
70503
  "type": "string"
70384
70504
  },
70385
70505
  "value": {
70386
- "type": "string"
70387
- },
70388
- "title": {
70389
- "type": "string"
70390
- },
70391
- "description": {
70392
- "type": "string"
70393
- },
70394
- "valueHintsOverride": {
70395
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70506
+ "type": "number"
70396
70507
  }
70397
70508
  },
70398
70509
  "required": [
70399
70510
  "@type",
70400
- "title",
70401
70511
  "value"
70402
70512
  ],
70403
70513
  "additionalProperties": false
70404
70514
  },
70405
- "ProprietaryFileReferenceJSON": {
70515
+ "CityJSON": {
70406
70516
  "type": "object",
70407
70517
  "properties": {
70408
70518
  "@type": {
70409
70519
  "type": "string",
70410
- "const": "ProprietaryFileReference"
70520
+ "const": "City"
70411
70521
  },
70412
70522
  "@context": {
70413
70523
  "type": "string"
@@ -70417,30 +70527,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70417
70527
  },
70418
70528
  "value": {
70419
70529
  "type": "string"
70420
- },
70421
- "title": {
70422
- "type": "string"
70423
- },
70424
- "description": {
70425
- "type": "string"
70426
- },
70427
- "valueHintsOverride": {
70428
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70429
70530
  }
70430
70531
  },
70431
70532
  "required": [
70432
70533
  "@type",
70433
- "title",
70434
70534
  "value"
70435
70535
  ],
70436
70536
  "additionalProperties": false
70437
70537
  },
70438
- "ProprietaryFloatJSON": {
70538
+ "CountryJSON": {
70439
70539
  "type": "object",
70440
70540
  "properties": {
70441
70541
  "@type": {
70442
70542
  "type": "string",
70443
- "const": "ProprietaryFloat"
70543
+ "const": "Country"
70444
70544
  },
70445
70545
  "@context": {
70446
70546
  "type": "string"
@@ -70449,31 +70549,21 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70449
70549
  "type": "string"
70450
70550
  },
70451
70551
  "value": {
70452
- "type": "number"
70453
- },
70454
- "title": {
70455
- "type": "string"
70456
- },
70457
- "description": {
70458
70552
  "type": "string"
70459
- },
70460
- "valueHintsOverride": {
70461
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70462
70553
  }
70463
70554
  },
70464
70555
  "required": [
70465
70556
  "@type",
70466
- "title",
70467
70557
  "value"
70468
70558
  ],
70469
70559
  "additionalProperties": false
70470
70560
  },
70471
- "ProprietaryHEXColorJSON": {
70561
+ "GivenNameJSON": {
70472
70562
  "type": "object",
70473
70563
  "properties": {
70474
70564
  "@type": {
70475
70565
  "type": "string",
70476
- "const": "ProprietaryHEXColor"
70566
+ "const": "GivenName"
70477
70567
  },
70478
70568
  "@context": {
70479
70569
  "type": "string"
@@ -70483,30 +70573,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70483
70573
  },
70484
70574
  "value": {
70485
70575
  "type": "string"
70486
- },
70487
- "title": {
70488
- "type": "string"
70489
- },
70490
- "description": {
70491
- "type": "string"
70492
- },
70493
- "valueHintsOverride": {
70494
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70495
70576
  }
70496
70577
  },
70497
70578
  "required": [
70498
70579
  "@type",
70499
- "title",
70500
70580
  "value"
70501
70581
  ],
70502
70582
  "additionalProperties": false
70503
70583
  },
70504
- "ProprietaryIntegerJSON": {
70584
+ "HonorificPrefixJSON": {
70505
70585
  "type": "object",
70506
70586
  "properties": {
70507
70587
  "@type": {
70508
70588
  "type": "string",
70509
- "const": "ProprietaryInteger"
70589
+ "const": "HonorificPrefix"
70510
70590
  },
70511
70591
  "@context": {
70512
70592
  "type": "string"
@@ -70515,31 +70595,21 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70515
70595
  "type": "string"
70516
70596
  },
70517
70597
  "value": {
70518
- "type": "number"
70519
- },
70520
- "title": {
70521
- "type": "string"
70522
- },
70523
- "description": {
70524
70598
  "type": "string"
70525
- },
70526
- "valueHintsOverride": {
70527
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70528
70599
  }
70529
70600
  },
70530
70601
  "required": [
70531
70602
  "@type",
70532
- "title",
70533
70603
  "value"
70534
70604
  ],
70535
70605
  "additionalProperties": false
70536
70606
  },
70537
- "ProprietaryLanguageJSON": {
70607
+ "HonorificSuffixJSON": {
70538
70608
  "type": "object",
70539
70609
  "properties": {
70540
70610
  "@type": {
70541
70611
  "type": "string",
70542
- "const": "ProprietaryLanguage"
70612
+ "const": "HonorificSuffix"
70543
70613
  },
70544
70614
  "@context": {
70545
70615
  "type": "string"
@@ -70549,30 +70619,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70549
70619
  },
70550
70620
  "value": {
70551
70621
  "type": "string"
70552
- },
70553
- "title": {
70554
- "type": "string"
70555
- },
70556
- "description": {
70557
- "type": "string"
70558
- },
70559
- "valueHintsOverride": {
70560
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70561
70622
  }
70562
70623
  },
70563
70624
  "required": [
70564
70625
  "@type",
70565
- "title",
70566
70626
  "value"
70567
70627
  ],
70568
70628
  "additionalProperties": false
70569
70629
  },
70570
- "ProprietaryPhoneNumberJSON": {
70630
+ "HouseNumberJSON": {
70571
70631
  "type": "object",
70572
70632
  "properties": {
70573
70633
  "@type": {
70574
70634
  "type": "string",
70575
- "const": "ProprietaryPhoneNumber"
70635
+ "const": "HouseNumber"
70576
70636
  },
70577
70637
  "@context": {
70578
70638
  "type": "string"
@@ -70582,30 +70642,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70582
70642
  },
70583
70643
  "value": {
70584
70644
  "type": "string"
70585
- },
70586
- "title": {
70587
- "type": "string"
70588
- },
70589
- "description": {
70590
- "type": "string"
70591
- },
70592
- "valueHintsOverride": {
70593
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70594
70645
  }
70595
70646
  },
70596
70647
  "required": [
70597
70648
  "@type",
70598
- "title",
70599
70649
  "value"
70600
70650
  ],
70601
70651
  "additionalProperties": false
70602
70652
  },
70603
- "ProprietaryStringJSON": {
70653
+ "MiddleNameJSON": {
70604
70654
  "type": "object",
70605
70655
  "properties": {
70606
70656
  "@type": {
70607
70657
  "type": "string",
70608
- "const": "ProprietaryString"
70658
+ "const": "MiddleName"
70609
70659
  },
70610
70660
  "@context": {
70611
70661
  "type": "string"
@@ -70615,30 +70665,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70615
70665
  },
70616
70666
  "value": {
70617
70667
  "type": "string"
70618
- },
70619
- "title": {
70620
- "type": "string"
70621
- },
70622
- "description": {
70623
- "type": "string"
70624
- },
70625
- "valueHintsOverride": {
70626
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70627
70668
  }
70628
70669
  },
70629
70670
  "required": [
70630
70671
  "@type",
70631
- "title",
70632
70672
  "value"
70633
70673
  ],
70634
70674
  "additionalProperties": false
70635
70675
  },
70636
- "ProprietaryURLJSON": {
70676
+ "SchematizedXMLJSON": {
70637
70677
  "type": "object",
70638
70678
  "properties": {
70639
70679
  "@type": {
70640
70680
  "type": "string",
70641
- "const": "ProprietaryURL"
70681
+ "const": "SchematizedXML"
70642
70682
  },
70643
70683
  "@context": {
70644
70684
  "type": "string"
@@ -70649,29 +70689,22 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70649
70689
  "value": {
70650
70690
  "type": "string"
70651
70691
  },
70652
- "title": {
70653
- "type": "string"
70654
- },
70655
- "description": {
70692
+ "schemaURL": {
70656
70693
  "type": "string"
70657
- },
70658
- "valueHintsOverride": {
70659
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70660
70694
  }
70661
70695
  },
70662
70696
  "required": [
70663
70697
  "@type",
70664
- "title",
70665
70698
  "value"
70666
70699
  ],
70667
70700
  "additionalProperties": false
70668
70701
  },
70669
- "ProprietaryJSONJSON": {
70702
+ "StateJSON": {
70670
70703
  "type": "object",
70671
70704
  "properties": {
70672
70705
  "@type": {
70673
70706
  "type": "string",
70674
- "const": "ProprietaryJSON"
70707
+ "const": "State"
70675
70708
  },
70676
70709
  "@context": {
70677
70710
  "type": "string"
@@ -70679,27 +70712,22 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70679
70712
  "@version": {
70680
70713
  "type": "string"
70681
70714
  },
70682
- "title": {
70683
- "type": "string"
70684
- },
70685
- "description": {
70715
+ "value": {
70686
70716
  "type": "string"
70687
- },
70688
- "value": {}
70717
+ }
70689
70718
  },
70690
70719
  "required": [
70691
70720
  "@type",
70692
- "title",
70693
70721
  "value"
70694
70722
  ],
70695
70723
  "additionalProperties": false
70696
70724
  },
70697
- "ProprietaryXMLJSON": {
70725
+ "StreetJSON": {
70698
70726
  "type": "object",
70699
70727
  "properties": {
70700
70728
  "@type": {
70701
70729
  "type": "string",
70702
- "const": "ProprietaryXML"
70730
+ "const": "Street"
70703
70731
  },
70704
70732
  "@context": {
70705
70733
  "type": "string"
@@ -70709,32 +70737,43 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70709
70737
  },
70710
70738
  "value": {
70711
70739
  "type": "string"
70740
+ }
70741
+ },
70742
+ "required": [
70743
+ "@type",
70744
+ "value"
70745
+ ],
70746
+ "additionalProperties": false
70747
+ },
70748
+ "SurnameJSON": {
70749
+ "type": "object",
70750
+ "properties": {
70751
+ "@type": {
70752
+ "type": "string",
70753
+ "const": "Surname"
70712
70754
  },
70713
- "title": {
70755
+ "@context": {
70714
70756
  "type": "string"
70715
70757
  },
70716
- "description": {
70758
+ "@version": {
70717
70759
  "type": "string"
70718
70760
  },
70719
- "valueHintsOverride": {
70720
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70721
- },
70722
- "schemaURL": {
70761
+ "value": {
70723
70762
  "type": "string"
70724
70763
  }
70725
70764
  },
70726
70765
  "required": [
70727
70766
  "@type",
70728
- "title",
70729
70767
  "value"
70730
70768
  ],
70731
70769
  "additionalProperties": false
70732
70770
  },
70733
- "ConsentJSON": {
70771
+ "ZipCodeJSON": {
70734
70772
  "type": "object",
70735
70773
  "properties": {
70736
70774
  "@type": {
70737
- "type": "string"
70775
+ "type": "string",
70776
+ "const": "ZipCode"
70738
70777
  },
70739
70778
  "@context": {
70740
70779
  "type": "string"
@@ -70742,16 +70781,13 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70742
70781
  "@version": {
70743
70782
  "type": "string"
70744
70783
  },
70745
- "consent": {
70746
- "type": "string"
70747
- },
70748
- "link": {
70784
+ "value": {
70749
70785
  "type": "string"
70750
70786
  }
70751
70787
  },
70752
70788
  "required": [
70753
70789
  "@type",
70754
- "consent"
70790
+ "value"
70755
70791
  ],
70756
70792
  "additionalProperties": false
70757
70793
  },
@@ -74027,13 +74063,13 @@ let CreateAndShareRelationshipAttributeUseCase = class CreateAndShareRelationshi
74027
74063
  this.messageController = messageController;
74028
74064
  }
74029
74065
  async executeInternal(request) {
74030
- const requestMetadata = request.requestMetadata ?? {};
74031
74066
  const requestParams = consumption_1.CreateOutgoingRequestParameters.from({
74032
74067
  peer: request.peer,
74033
74068
  content: content_1.Request.from({
74034
- ...requestMetadata,
74069
+ ...(request.requestMetadata ?? {}),
74035
74070
  items: [
74036
74071
  content_1.CreateAttributeRequestItem.from({
74072
+ ...(request.requestItemMetadata ?? {}),
74037
74073
  attribute: content_1.RelationshipAttribute.from({
74038
74074
  "@type": "RelationshipAttribute",
74039
74075
  owner: this.accountController.identity.address.toString(),
@@ -74068,10 +74104,10 @@ exports.CreateAndShareRelationshipAttributeUseCase = CreateAndShareRelationshipA
74068
74104
 
74069
74105
  /***/ }),
74070
74106
 
74071
- /***/ "./dist/useCases/consumption/attributes/CreateIdentityAttribute.js":
74072
- /*!*************************************************************************!*\
74073
- !*** ./dist/useCases/consumption/attributes/CreateIdentityAttribute.js ***!
74074
- \*************************************************************************/
74107
+ /***/ "./dist/useCases/consumption/attributes/CreateRepositoryAttribute.js":
74108
+ /*!***************************************************************************!*\
74109
+ !*** ./dist/useCases/consumption/attributes/CreateRepositoryAttribute.js ***!
74110
+ \***************************************************************************/
74075
74111
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74076
74112
 
74077
74113
  "use strict";
@@ -74089,7 +74125,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74089
74125
  return function (target, key) { decorator(target, key, paramIndex); }
74090
74126
  };
74091
74127
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74092
- exports.CreateIdentityAttributeUseCase = void 0;
74128
+ exports.CreateRepositoryAttributeUseCase = void 0;
74093
74129
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74094
74130
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74095
74131
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
@@ -74098,14 +74134,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
74098
74134
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74099
74135
  let Validator = class Validator extends common_1.SchemaValidator {
74100
74136
  constructor(schemaRepository) {
74101
- super(schemaRepository.getSchema("CreateIdentityAttributeRequest"));
74137
+ super(schemaRepository.getSchema("CreateRepositoryAttributeRequest"));
74102
74138
  }
74103
74139
  };
74104
74140
  Validator = __decorate([
74105
74141
  __param(0, typescript_ioc_1.Inject),
74106
74142
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74107
74143
  ], Validator);
74108
- let CreateIdentityAttributeUseCase = class CreateIdentityAttributeUseCase extends common_1.UseCase {
74144
+ let CreateRepositoryAttributeUseCase = class CreateRepositoryAttributeUseCase extends common_1.UseCase {
74109
74145
  constructor(attributeController, accountController, validator) {
74110
74146
  super(validator);
74111
74147
  this.attributeController = attributeController;
@@ -74124,16 +74160,16 @@ let CreateIdentityAttributeUseCase = class CreateIdentityAttributeUseCase extend
74124
74160
  return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTO(createdAttribute));
74125
74161
  }
74126
74162
  };
74127
- exports.CreateIdentityAttributeUseCase = CreateIdentityAttributeUseCase;
74128
- exports.CreateIdentityAttributeUseCase = CreateIdentityAttributeUseCase = __decorate([
74163
+ exports.CreateRepositoryAttributeUseCase = CreateRepositoryAttributeUseCase;
74164
+ exports.CreateRepositoryAttributeUseCase = CreateRepositoryAttributeUseCase = __decorate([
74129
74165
  __param(0, typescript_ioc_1.Inject),
74130
74166
  __param(1, typescript_ioc_1.Inject),
74131
74167
  __param(2, typescript_ioc_1.Inject),
74132
74168
  __metadata("design:paramtypes", [consumption_1.AttributesController,
74133
74169
  transport_1.AccountController,
74134
74170
  Validator])
74135
- ], CreateIdentityAttributeUseCase);
74136
- //# sourceMappingURL=CreateIdentityAttribute.js.map
74171
+ ], CreateRepositoryAttributeUseCase);
74172
+ //# sourceMappingURL=CreateRepositoryAttribute.js.map
74137
74173
 
74138
74174
  /***/ }),
74139
74175
 
@@ -74562,10 +74598,10 @@ exports.GetAttributesUseCase = GetAttributesUseCase = GetAttributesUseCase_1 = _
74562
74598
 
74563
74599
  /***/ }),
74564
74600
 
74565
- /***/ "./dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js":
74566
- /*!**************************************************************************!*\
74567
- !*** ./dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js ***!
74568
- \**************************************************************************/
74601
+ /***/ "./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js":
74602
+ /*!************************************************************************!*\
74603
+ !*** ./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js ***!
74604
+ \************************************************************************/
74569
74605
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74570
74606
 
74571
74607
  "use strict";
@@ -74583,52 +74619,60 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74583
74619
  return function (target, key) { decorator(target, key, paramIndex); }
74584
74620
  };
74585
74621
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74586
- exports.GetOwnIdentityAttributesUseCase = void 0;
74622
+ exports.GetOwnSharedAttributesUseCase = void 0;
74587
74623
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74588
74624
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74625
+ const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
74589
74626
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
74590
74627
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
74591
- const consumption_2 = __webpack_require__(/*! ../../consumption */ "./dist/useCases/consumption/index.js");
74628
+ const flattenObject_1 = __webpack_require__(/*! ../../common/flattenObject */ "./dist/useCases/common/flattenObject.js");
74629
+ const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74630
+ const GetAttributes_1 = __webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js");
74592
74631
  let Validator = class Validator extends common_1.SchemaValidator {
74593
74632
  constructor(schemaRepository) {
74594
- super(schemaRepository.getSchema("GetOwnIdentityAttributesRequest"));
74633
+ super(schemaRepository.getSchema("GetOwnSharedAttributesRequest"));
74595
74634
  }
74596
74635
  };
74597
74636
  Validator = __decorate([
74598
74637
  __param(0, typescript_ioc_1.Inject),
74599
74638
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74600
74639
  ], Validator);
74601
- let GetOwnIdentityAttributesUseCase = class GetOwnIdentityAttributesUseCase extends common_1.UseCase {
74602
- constructor(attributesController, validator) {
74640
+ let GetOwnSharedAttributesUseCase = class GetOwnSharedAttributesUseCase extends common_1.UseCase {
74641
+ constructor(attributeController, identityController, validator) {
74603
74642
  super(validator);
74604
- this.attributesController = attributesController;
74643
+ this.attributeController = attributeController;
74644
+ this.identityController = identityController;
74605
74645
  }
74606
74646
  async executeInternal(request) {
74607
- const query = {
74608
- shareInfo: { $exists: false }
74609
- };
74610
- if (typeof request.onlyLatestVersions === "undefined" || request.onlyLatestVersions) {
74611
- query["succeededBy"] = { $exists: false };
74647
+ const query = request.query ?? {};
74648
+ query["content.owner"] = this.identityController.address.toString();
74649
+ query["shareInfo.peer"] = request.peer;
74650
+ const flattenedQuery = (0, flattenObject_1.flattenObject)(query);
74651
+ const dbQuery = GetAttributes_1.GetAttributesUseCase.queryTranslator.parse(flattenedQuery);
74652
+ if (request.onlyLatestVersions ?? true) {
74653
+ dbQuery["succeededBy"] = { $exists: false };
74612
74654
  }
74613
- const attributes = await this.attributesController.getLocalAttributes(query);
74614
- return ts_utils_1.Result.ok(consumption_2.AttributeMapper.toAttributeDTOList(attributes));
74655
+ const attributes = await this.attributeController.getLocalAttributes(dbQuery, request.hideTechnical, request.onlyValid);
74656
+ return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
74615
74657
  }
74616
74658
  };
74617
- exports.GetOwnIdentityAttributesUseCase = GetOwnIdentityAttributesUseCase;
74618
- exports.GetOwnIdentityAttributesUseCase = GetOwnIdentityAttributesUseCase = __decorate([
74659
+ exports.GetOwnSharedAttributesUseCase = GetOwnSharedAttributesUseCase;
74660
+ exports.GetOwnSharedAttributesUseCase = GetOwnSharedAttributesUseCase = __decorate([
74619
74661
  __param(0, typescript_ioc_1.Inject),
74620
74662
  __param(1, typescript_ioc_1.Inject),
74663
+ __param(2, typescript_ioc_1.Inject),
74621
74664
  __metadata("design:paramtypes", [consumption_1.AttributesController,
74665
+ transport_1.IdentityController,
74622
74666
  Validator])
74623
- ], GetOwnIdentityAttributesUseCase);
74624
- //# sourceMappingURL=GetOwnIdentityAttributes.js.map
74667
+ ], GetOwnSharedAttributesUseCase);
74668
+ //# sourceMappingURL=GetOwnSharedAttributes.js.map
74625
74669
 
74626
74670
  /***/ }),
74627
74671
 
74628
- /***/ "./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js":
74629
- /*!************************************************************************!*\
74630
- !*** ./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js ***!
74631
- \************************************************************************/
74672
+ /***/ "./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js":
74673
+ /*!*************************************************************************!*\
74674
+ !*** ./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js ***!
74675
+ \*************************************************************************/
74632
74676
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74633
74677
 
74634
74678
  "use strict";
@@ -74646,10 +74690,9 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74646
74690
  return function (target, key) { decorator(target, key, paramIndex); }
74647
74691
  };
74648
74692
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74649
- exports.GetOwnSharedAttributesUseCase = void 0;
74693
+ exports.GetPeerSharedAttributesUseCase = void 0;
74650
74694
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74651
74695
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74652
- const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
74653
74696
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
74654
74697
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
74655
74698
  const flattenObject_1 = __webpack_require__(/*! ../../common/flattenObject */ "./dist/useCases/common/flattenObject.js");
@@ -74657,23 +74700,21 @@ const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/u
74657
74700
  const GetAttributes_1 = __webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js");
74658
74701
  let Validator = class Validator extends common_1.SchemaValidator {
74659
74702
  constructor(schemaRepository) {
74660
- super(schemaRepository.getSchema("GetOwnSharedAttributesRequest"));
74703
+ super(schemaRepository.getSchema("GetPeerSharedAttributesRequest"));
74661
74704
  }
74662
74705
  };
74663
74706
  Validator = __decorate([
74664
74707
  __param(0, typescript_ioc_1.Inject),
74665
74708
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74666
74709
  ], Validator);
74667
- let GetOwnSharedAttributesUseCase = class GetOwnSharedAttributesUseCase extends common_1.UseCase {
74668
- constructor(attributeController, identityController, validator) {
74710
+ let GetPeerSharedAttributesUseCase = class GetPeerSharedAttributesUseCase extends common_1.UseCase {
74711
+ constructor(attributeController, validator) {
74669
74712
  super(validator);
74670
74713
  this.attributeController = attributeController;
74671
- this.identityController = identityController;
74672
74714
  }
74673
74715
  async executeInternal(request) {
74674
74716
  const query = request.query ?? {};
74675
- query["content.owner"] = this.identityController.address.toString();
74676
- query["shareInfo.peer"] = request.peer;
74717
+ query["content.owner"] = request.peer;
74677
74718
  const flattenedQuery = (0, flattenObject_1.flattenObject)(query);
74678
74719
  const dbQuery = GetAttributes_1.GetAttributesUseCase.queryTranslator.parse(flattenedQuery);
74679
74720
  if (request.onlyLatestVersions ?? true) {
@@ -74683,22 +74724,20 @@ let GetOwnSharedAttributesUseCase = class GetOwnSharedAttributesUseCase extends
74683
74724
  return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
74684
74725
  }
74685
74726
  };
74686
- exports.GetOwnSharedAttributesUseCase = GetOwnSharedAttributesUseCase;
74687
- exports.GetOwnSharedAttributesUseCase = GetOwnSharedAttributesUseCase = __decorate([
74727
+ exports.GetPeerSharedAttributesUseCase = GetPeerSharedAttributesUseCase;
74728
+ exports.GetPeerSharedAttributesUseCase = GetPeerSharedAttributesUseCase = __decorate([
74688
74729
  __param(0, typescript_ioc_1.Inject),
74689
74730
  __param(1, typescript_ioc_1.Inject),
74690
- __param(2, typescript_ioc_1.Inject),
74691
74731
  __metadata("design:paramtypes", [consumption_1.AttributesController,
74692
- transport_1.IdentityController,
74693
74732
  Validator])
74694
- ], GetOwnSharedAttributesUseCase);
74695
- //# sourceMappingURL=GetOwnSharedAttributes.js.map
74733
+ ], GetPeerSharedAttributesUseCase);
74734
+ //# sourceMappingURL=GetPeerSharedAttributes.js.map
74696
74735
 
74697
74736
  /***/ }),
74698
74737
 
74699
- /***/ "./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js":
74738
+ /***/ "./dist/useCases/consumption/attributes/GetRepositoryAttributes.js":
74700
74739
  /*!*************************************************************************!*\
74701
- !*** ./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js ***!
74740
+ !*** ./dist/useCases/consumption/attributes/GetRepositoryAttributes.js ***!
74702
74741
  \*************************************************************************/
74703
74742
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74704
74743
 
@@ -74717,55 +74756,52 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74717
74756
  return function (target, key) { decorator(target, key, paramIndex); }
74718
74757
  };
74719
74758
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74720
- exports.GetPeerSharedAttributesUseCase = void 0;
74759
+ exports.GetRepositoryAttributesUseCase = void 0;
74721
74760
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74722
74761
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74723
74762
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
74763
+ const __1 = __webpack_require__(/*! .. */ "./dist/useCases/consumption/index.js");
74724
74764
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
74725
- const flattenObject_1 = __webpack_require__(/*! ../../common/flattenObject */ "./dist/useCases/common/flattenObject.js");
74726
- const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74727
- const GetAttributes_1 = __webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js");
74728
74765
  let Validator = class Validator extends common_1.SchemaValidator {
74729
74766
  constructor(schemaRepository) {
74730
- super(schemaRepository.getSchema("GetPeerSharedAttributesRequest"));
74767
+ super(schemaRepository.getSchema("GetRepositoryAttributesRequest"));
74731
74768
  }
74732
74769
  };
74733
74770
  Validator = __decorate([
74734
74771
  __param(0, typescript_ioc_1.Inject),
74735
74772
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74736
74773
  ], Validator);
74737
- let GetPeerSharedAttributesUseCase = class GetPeerSharedAttributesUseCase extends common_1.UseCase {
74738
- constructor(attributeController, validator) {
74774
+ let GetRepositoryAttributesUseCase = class GetRepositoryAttributesUseCase extends common_1.UseCase {
74775
+ constructor(attributesController, validator) {
74739
74776
  super(validator);
74740
- this.attributeController = attributeController;
74777
+ this.attributesController = attributesController;
74741
74778
  }
74742
74779
  async executeInternal(request) {
74743
- const query = request.query ?? {};
74744
- query["content.owner"] = request.peer;
74745
- const flattenedQuery = (0, flattenObject_1.flattenObject)(query);
74746
- const dbQuery = GetAttributes_1.GetAttributesUseCase.queryTranslator.parse(flattenedQuery);
74747
- if (request.onlyLatestVersions ?? true) {
74748
- dbQuery["succeededBy"] = { $exists: false };
74780
+ const query = {
74781
+ shareInfo: { $exists: false }
74782
+ };
74783
+ if (typeof request.onlyLatestVersions === "undefined" || request.onlyLatestVersions) {
74784
+ query["succeededBy"] = { $exists: false };
74749
74785
  }
74750
- const attributes = await this.attributeController.getLocalAttributes(dbQuery, request.hideTechnical, request.onlyValid);
74751
- return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
74786
+ const attributes = await this.attributesController.getLocalAttributes(query);
74787
+ return ts_utils_1.Result.ok(__1.AttributeMapper.toAttributeDTOList(attributes));
74752
74788
  }
74753
74789
  };
74754
- exports.GetPeerSharedAttributesUseCase = GetPeerSharedAttributesUseCase;
74755
- exports.GetPeerSharedAttributesUseCase = GetPeerSharedAttributesUseCase = __decorate([
74790
+ exports.GetRepositoryAttributesUseCase = GetRepositoryAttributesUseCase;
74791
+ exports.GetRepositoryAttributesUseCase = GetRepositoryAttributesUseCase = __decorate([
74756
74792
  __param(0, typescript_ioc_1.Inject),
74757
74793
  __param(1, typescript_ioc_1.Inject),
74758
74794
  __metadata("design:paramtypes", [consumption_1.AttributesController,
74759
74795
  Validator])
74760
- ], GetPeerSharedAttributesUseCase);
74761
- //# sourceMappingURL=GetPeerSharedAttributes.js.map
74796
+ ], GetRepositoryAttributesUseCase);
74797
+ //# sourceMappingURL=GetRepositoryAttributes.js.map
74762
74798
 
74763
74799
  /***/ }),
74764
74800
 
74765
- /***/ "./dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js":
74766
- /*!**************************************************************************************!*\
74767
- !*** ./dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js ***!
74768
- \**************************************************************************************/
74801
+ /***/ "./dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js":
74802
+ /*!****************************************************************************************!*\
74803
+ !*** ./dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js ***!
74804
+ \****************************************************************************************/
74769
74805
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74770
74806
 
74771
74807
  "use strict";
@@ -74783,7 +74819,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74783
74819
  return function (target, key) { decorator(target, key, paramIndex); }
74784
74820
  };
74785
74821
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74786
- exports.GetSharedVersionsOfIdentityAttributeUseCase = void 0;
74822
+ exports.GetSharedVersionsOfRepositoryAttributeUseCase = void 0;
74787
74823
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74788
74824
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74789
74825
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
@@ -74792,14 +74828,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
74792
74828
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74793
74829
  let Validator = class Validator extends common_1.SchemaValidator {
74794
74830
  constructor(schemaRepository) {
74795
- super(schemaRepository.getSchema("GetSharedVersionsOfIdentityAttributeRequest"));
74831
+ super(schemaRepository.getSchema("GetSharedVersionsOfRepositoryAttributeRequest"));
74796
74832
  }
74797
74833
  };
74798
74834
  Validator = __decorate([
74799
74835
  __param(0, typescript_ioc_1.Inject),
74800
74836
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74801
74837
  ], Validator);
74802
- let GetSharedVersionsOfIdentityAttributeUseCase = class GetSharedVersionsOfIdentityAttributeUseCase extends common_1.UseCase {
74838
+ let GetSharedVersionsOfRepositoryAttributeUseCase = class GetSharedVersionsOfRepositoryAttributeUseCase extends common_1.UseCase {
74803
74839
  constructor(accountController, attributeController, validator) {
74804
74840
  super(validator);
74805
74841
  this.accountController = accountController;
@@ -74812,7 +74848,7 @@ let GetSharedVersionsOfIdentityAttributeUseCase = class GetSharedVersionsOfIdent
74812
74848
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute));
74813
74849
  }
74814
74850
  if (!repositoryAttribute.isRepositoryAttribute(this.accountController.identity.address)) {
74815
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNoIdentityAttribute(repositoryAttributeId));
74851
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(repositoryAttributeId));
74816
74852
  }
74817
74853
  if (request.peers?.length === 0) {
74818
74854
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.invalidPropertyValue("The `peers` property may not be an empty array."));
@@ -74822,16 +74858,16 @@ let GetSharedVersionsOfIdentityAttributeUseCase = class GetSharedVersionsOfIdent
74822
74858
  return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(sharedVersions));
74823
74859
  }
74824
74860
  };
74825
- exports.GetSharedVersionsOfIdentityAttributeUseCase = GetSharedVersionsOfIdentityAttributeUseCase;
74826
- exports.GetSharedVersionsOfIdentityAttributeUseCase = GetSharedVersionsOfIdentityAttributeUseCase = __decorate([
74861
+ exports.GetSharedVersionsOfRepositoryAttributeUseCase = GetSharedVersionsOfRepositoryAttributeUseCase;
74862
+ exports.GetSharedVersionsOfRepositoryAttributeUseCase = GetSharedVersionsOfRepositoryAttributeUseCase = __decorate([
74827
74863
  __param(0, typescript_ioc_1.Inject),
74828
74864
  __param(1, typescript_ioc_1.Inject),
74829
74865
  __param(2, typescript_ioc_1.Inject),
74830
74866
  __metadata("design:paramtypes", [transport_1.AccountController,
74831
74867
  consumption_1.AttributesController,
74832
74868
  Validator])
74833
- ], GetSharedVersionsOfIdentityAttributeUseCase);
74834
- //# sourceMappingURL=GetSharedVersionsOfIdentityAttribute.js.map
74869
+ ], GetSharedVersionsOfRepositoryAttributeUseCase);
74870
+ //# sourceMappingURL=GetSharedVersionsOfRepositoryAttribute.js.map
74835
74871
 
74836
74872
  /***/ }),
74837
74873
 
@@ -74897,10 +74933,10 @@ exports.GetVersionsOfAttributeUseCase = GetVersionsOfAttributeUseCase = __decora
74897
74933
 
74898
74934
  /***/ }),
74899
74935
 
74900
- /***/ "./dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js":
74901
- /*!********************************************************************************************!*\
74902
- !*** ./dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js ***!
74903
- \********************************************************************************************/
74936
+ /***/ "./dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js":
74937
+ /*!**********************************************************************************************!*\
74938
+ !*** ./dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js ***!
74939
+ \**********************************************************************************************/
74904
74940
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74905
74941
 
74906
74942
  "use strict";
@@ -74918,7 +74954,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74918
74954
  return function (target, key) { decorator(target, key, paramIndex); }
74919
74955
  };
74920
74956
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74921
- exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = void 0;
74957
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = void 0;
74922
74958
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74923
74959
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74924
74960
  const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
@@ -74928,14 +74964,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
74928
74964
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74929
74965
  let Validator = class Validator extends common_1.SchemaValidator {
74930
74966
  constructor(schemaRepository) {
74931
- super(schemaRepository.getSchema("NotifyPeerAboutIdentityAttributeSuccessionRequest"));
74967
+ super(schemaRepository.getSchema("NotifyPeerAboutRepositoryAttributeSuccessionRequest"));
74932
74968
  }
74933
74969
  };
74934
74970
  Validator = __decorate([
74935
74971
  __param(0, typescript_ioc_1.Inject),
74936
74972
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74937
74973
  ], Validator);
74938
- let NotifyPeerAboutIdentityAttributeSuccessionUseCase = class NotifyPeerAboutIdentityAttributeSuccessionUseCase extends common_1.UseCase {
74974
+ let NotifyPeerAboutRepositoryAttributeSuccessionUseCase = class NotifyPeerAboutRepositoryAttributeSuccessionUseCase extends common_1.UseCase {
74939
74975
  constructor(accountController, attributeController, messageController, validator) {
74940
74976
  super(validator);
74941
74977
  this.accountController = accountController;
@@ -74949,14 +74985,14 @@ let NotifyPeerAboutIdentityAttributeSuccessionUseCase = class NotifyPeerAboutIde
74949
74985
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute.name));
74950
74986
  }
74951
74987
  if (!repositoryAttributeSuccessor.isRepositoryAttribute(this.accountController.identity.address)) {
74952
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNoIdentityAttribute(repositoryAttributeSuccessorId));
74988
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(repositoryAttributeSuccessorId));
74953
74989
  }
74954
74990
  const candidatePredecessors = await this.attributeController.getSharedVersionsOfRepositoryAttribute(repositoryAttributeSuccessorId, [transport_1.CoreAddress.from(request.peer)]);
74955
74991
  if (candidatePredecessors.length === 0) {
74956
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.noOtherVersionOfIdentityAttributeHasBeenSharedWithPeerBefore(repositoryAttributeSuccessorId, request.peer));
74992
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.noOtherVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore(repositoryAttributeSuccessorId, request.peer));
74957
74993
  }
74958
74994
  if (candidatePredecessors[0].shareInfo?.sourceAttribute?.toString() === request.attributeId) {
74959
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.identityAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, candidatePredecessors[0].id));
74995
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, candidatePredecessors[0].id));
74960
74996
  }
74961
74997
  const ownSharedIdentityAttributePredecessor = candidatePredecessors[0];
74962
74998
  const notificationId = await consumption_1.ConsumptionIds.notification.generate();
@@ -74993,8 +75029,8 @@ let NotifyPeerAboutIdentityAttributeSuccessionUseCase = class NotifyPeerAboutIde
74993
75029
  return ts_utils_1.Result.ok(result);
74994
75030
  }
74995
75031
  };
74996
- exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = NotifyPeerAboutIdentityAttributeSuccessionUseCase;
74997
- exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = NotifyPeerAboutIdentityAttributeSuccessionUseCase = __decorate([
75032
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = NotifyPeerAboutRepositoryAttributeSuccessionUseCase;
75033
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = NotifyPeerAboutRepositoryAttributeSuccessionUseCase = __decorate([
74998
75034
  __param(0, typescript_ioc_1.Inject),
74999
75035
  __param(1, typescript_ioc_1.Inject),
75000
75036
  __param(2, typescript_ioc_1.Inject),
@@ -75003,15 +75039,15 @@ exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = NotifyPeerAboutIdent
75003
75039
  consumption_1.AttributesController,
75004
75040
  transport_1.MessageController,
75005
75041
  Validator])
75006
- ], NotifyPeerAboutIdentityAttributeSuccessionUseCase);
75007
- //# sourceMappingURL=NotifyPeerAboutIdentityAttributeSuccession.js.map
75042
+ ], NotifyPeerAboutRepositoryAttributeSuccessionUseCase);
75043
+ //# sourceMappingURL=NotifyPeerAboutRepositoryAttributeSuccession.js.map
75008
75044
 
75009
75045
  /***/ }),
75010
75046
 
75011
- /***/ "./dist/useCases/consumption/attributes/ShareIdentityAttribute.js":
75012
- /*!************************************************************************!*\
75013
- !*** ./dist/useCases/consumption/attributes/ShareIdentityAttribute.js ***!
75014
- \************************************************************************/
75047
+ /***/ "./dist/useCases/consumption/attributes/ShareRepositoryAttribute.js":
75048
+ /*!**************************************************************************!*\
75049
+ !*** ./dist/useCases/consumption/attributes/ShareRepositoryAttribute.js ***!
75050
+ \**************************************************************************/
75015
75051
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75016
75052
 
75017
75053
  "use strict";
@@ -75029,7 +75065,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
75029
75065
  return function (target, key) { decorator(target, key, paramIndex); }
75030
75066
  };
75031
75067
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75032
- exports.ShareIdentityAttributeUseCase = void 0;
75068
+ exports.ShareRepositoryAttributeUseCase = void 0;
75033
75069
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
75034
75070
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
75035
75071
  const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
@@ -75039,14 +75075,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
75039
75075
  const requests_1 = __webpack_require__(/*! ../requests */ "./dist/useCases/consumption/requests/index.js");
75040
75076
  let Validator = class Validator extends common_1.SchemaValidator {
75041
75077
  constructor(schemaRepository) {
75042
- super(schemaRepository.getSchema("ShareIdentityAttributeRequest"));
75078
+ super(schemaRepository.getSchema("ShareRepositoryAttributeRequest"));
75043
75079
  }
75044
75080
  };
75045
75081
  Validator = __decorate([
75046
75082
  __param(0, typescript_ioc_1.Inject),
75047
75083
  __metadata("design:paramtypes", [common_1.SchemaRepository])
75048
75084
  ], Validator);
75049
- let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends common_1.UseCase {
75085
+ let ShareRepositoryAttributeUseCase = class ShareRepositoryAttributeUseCase extends common_1.UseCase {
75050
75086
  constructor(attributeController, accountController, requestsController, messageController, validator) {
75051
75087
  super(validator);
75052
75088
  this.attributeController = attributeController;
@@ -75061,7 +75097,7 @@ let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends
75061
75097
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute.name));
75062
75098
  }
75063
75099
  if (!repositoryAttribute.isRepositoryAttribute(this.accountController.identity.address)) {
75064
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNoIdentityAttribute(repositoryAttributeId));
75100
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(repositoryAttributeId));
75065
75101
  }
75066
75102
  const query = {
75067
75103
  "content.owner": this.accountController.identity.address.toString(),
@@ -75071,19 +75107,19 @@ let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends
75071
75107
  };
75072
75108
  const ownSharedIdentityAttributesOfRepositoryAttribute = await this.attributeController.getLocalAttributes(query);
75073
75109
  if (ownSharedIdentityAttributesOfRepositoryAttribute.length > 0) {
75074
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.identityAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, ownSharedIdentityAttributesOfRepositoryAttribute[0].id));
75110
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, ownSharedIdentityAttributesOfRepositoryAttribute[0].id));
75075
75111
  }
75076
- const ownSharedIdentityAttributesOfRepositoryAttributeVersion = await this.attributeController.getSharedVersionsOfRepositoryAttribute(repositoryAttributeId, [transport_1.CoreAddress.from(request.peer)], false);
75077
- if (ownSharedIdentityAttributesOfRepositoryAttributeVersion.length > 0) {
75078
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.anotherVersionOfIdentityAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, ownSharedIdentityAttributesOfRepositoryAttributeVersion[0].id));
75112
+ const sharedVersionsOfRepositoryAttribute = await this.attributeController.getSharedVersionsOfRepositoryAttribute(repositoryAttributeId, [transport_1.CoreAddress.from(request.peer)], false);
75113
+ if (sharedVersionsOfRepositoryAttribute.length > 0) {
75114
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, sharedVersionsOfRepositoryAttribute[0].id));
75079
75115
  }
75080
- const requestMetadata = request.requestMetadata ?? {};
75081
75116
  const requestParams = consumption_1.CreateOutgoingRequestParameters.from({
75082
75117
  peer: request.peer,
75083
75118
  content: content_1.Request.from({
75084
- ...requestMetadata,
75119
+ ...(request.requestMetadata ?? {}),
75085
75120
  items: [
75086
75121
  content_1.ShareAttributeRequestItem.from({
75122
+ ...(request.requestItemMetadata ?? {}),
75087
75123
  attribute: repositoryAttribute.content,
75088
75124
  sourceAttributeId: repositoryAttribute.id,
75089
75125
  mustBeAccepted: true
@@ -75100,8 +75136,8 @@ let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends
75100
75136
  return ts_utils_1.Result.ok(requests_1.RequestMapper.toLocalRequestDTO(localRequest));
75101
75137
  }
75102
75138
  };
75103
- exports.ShareIdentityAttributeUseCase = ShareIdentityAttributeUseCase;
75104
- exports.ShareIdentityAttributeUseCase = ShareIdentityAttributeUseCase = __decorate([
75139
+ exports.ShareRepositoryAttributeUseCase = ShareRepositoryAttributeUseCase;
75140
+ exports.ShareRepositoryAttributeUseCase = ShareRepositoryAttributeUseCase = __decorate([
75105
75141
  __param(0, typescript_ioc_1.Inject),
75106
75142
  __param(1, typescript_ioc_1.Inject),
75107
75143
  __param(2, typescript_ioc_1.Inject),
@@ -75112,15 +75148,15 @@ exports.ShareIdentityAttributeUseCase = ShareIdentityAttributeUseCase = __decora
75112
75148
  consumption_1.OutgoingRequestsController,
75113
75149
  transport_1.MessageController,
75114
75150
  Validator])
75115
- ], ShareIdentityAttributeUseCase);
75116
- //# sourceMappingURL=ShareIdentityAttribute.js.map
75151
+ ], ShareRepositoryAttributeUseCase);
75152
+ //# sourceMappingURL=ShareRepositoryAttribute.js.map
75117
75153
 
75118
75154
  /***/ }),
75119
75155
 
75120
- /***/ "./dist/useCases/consumption/attributes/SucceedIdentityAttribute.js":
75121
- /*!**************************************************************************!*\
75122
- !*** ./dist/useCases/consumption/attributes/SucceedIdentityAttribute.js ***!
75123
- \**************************************************************************/
75156
+ /***/ "./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js":
75157
+ /*!*******************************************************************************************!*\
75158
+ !*** ./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js ***!
75159
+ \*******************************************************************************************/
75124
75160
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75125
75161
 
75126
75162
  "use strict";
@@ -75138,72 +75174,97 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
75138
75174
  return function (target, key) { decorator(target, key, paramIndex); }
75139
75175
  };
75140
75176
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75141
- exports.SucceedIdentityAttributeUseCase = void 0;
75177
+ exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = void 0;
75142
75178
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
75143
75179
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
75180
+ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
75144
75181
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
75145
75182
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
75146
75183
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
75147
75184
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
75148
75185
  let Validator = class Validator extends common_1.SchemaValidator {
75149
75186
  constructor(schemaRepository) {
75150
- super(schemaRepository.getSchema("SucceedIdentityAttributeRequest"));
75187
+ super(schemaRepository.getSchema("SucceedRelationshipAttributeAndNotifyPeerRequest"));
75151
75188
  }
75152
75189
  };
75153
75190
  Validator = __decorate([
75154
75191
  __param(0, typescript_ioc_1.Inject),
75155
75192
  __metadata("design:paramtypes", [common_1.SchemaRepository])
75156
75193
  ], Validator);
75157
- let SucceedIdentityAttributeUseCase = class SucceedIdentityAttributeUseCase extends common_1.UseCase {
75158
- constructor(attributeController, accountController, validator) {
75194
+ let SucceedRelationshipAttributeAndNotifyPeerUseCase = class SucceedRelationshipAttributeAndNotifyPeerUseCase extends common_1.UseCase {
75195
+ constructor(accountController, attributeController, messageController, validator) {
75159
75196
  super(validator);
75160
- this.attributeController = attributeController;
75161
75197
  this.accountController = accountController;
75198
+ this.attributeController = attributeController;
75199
+ this.messageController = messageController;
75162
75200
  }
75163
75201
  async executeInternal(request) {
75164
75202
  const predecessor = await this.attributeController.getLocalAttribute(transport_1.CoreId.from(request.predecessorId));
75165
75203
  if (typeof predecessor === "undefined") {
75166
75204
  return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.predecessorDoesNotExist());
75167
75205
  }
75168
- const successorParams = {
75169
- content: {
75170
- "@type": "IdentityAttribute",
75171
- owner: this.accountController.identity.address.toString(),
75172
- ...request.successorContent
75173
- },
75174
- succeeds: predecessor.id.toString()
75175
- };
75206
+ if (!predecessor.isOwnSharedRelationshipAttribute(this.accountController.identity.address, predecessor.shareInfo?.peer)) {
75207
+ return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.invalidPredecessor());
75208
+ }
75209
+ const notificationId = await consumption_1.ConsumptionIds.notification.generate();
75176
75210
  const predecessorId = transport_1.CoreId.from(request.predecessorId);
75177
- const validationResult = await this.attributeController.validateRepositoryAttributeSuccession(predecessorId, successorParams);
75211
+ const att = {
75212
+ "@type": "RelationshipAttribute",
75213
+ ...request.successorContent,
75214
+ confidentiality: predecessor.content.confidentiality,
75215
+ isTechnical: predecessor.content.isTechnical,
75216
+ key: predecessor.content.key,
75217
+ owner: predecessor.content.owner.toString()
75218
+ };
75219
+ const successorParams = consumption_1.AttributeSuccessorParams.from({
75220
+ content: content_1.RelationshipAttribute.from(att),
75221
+ shareInfo: { peer: predecessor.shareInfo.peer, notificationReference: notificationId }
75222
+ });
75223
+ const validationResult = await this.attributeController.validateOwnSharedRelationshipAttributeSuccession(predecessorId, successorParams);
75178
75224
  if (validationResult.isError()) {
75179
75225
  return ts_utils_1.Result.fail(validationResult.error);
75180
75226
  }
75181
- const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedRepositoryAttribute(predecessorId, successorParams, false);
75182
- await this.accountController.syncDatawallet();
75227
+ const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedOwnSharedRelationshipAttribute(predecessorId, successorParams, false);
75228
+ const notificationItem = content_1.PeerSharedAttributeSucceededNotificationItem.from({
75229
+ predecessorId: predecessor.id,
75230
+ successorId: successor.id,
75231
+ successorContent: successor.content
75232
+ });
75233
+ const notification = content_1.Notification.from({
75234
+ id: notificationId,
75235
+ items: [notificationItem]
75236
+ });
75237
+ await this.messageController.sendMessage({
75238
+ recipients: [predecessor.shareInfo.peer],
75239
+ content: notification
75240
+ });
75183
75241
  const response = {
75184
75242
  predecessor: AttributeMapper_1.AttributeMapper.toAttributeDTO(updatedPredecessor),
75185
- successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor)
75243
+ successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor),
75244
+ notificationId: notificationId
75186
75245
  };
75187
75246
  return ts_utils_1.Result.ok(response);
75188
75247
  }
75189
75248
  };
75190
- exports.SucceedIdentityAttributeUseCase = SucceedIdentityAttributeUseCase;
75191
- exports.SucceedIdentityAttributeUseCase = SucceedIdentityAttributeUseCase = __decorate([
75249
+ exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase;
75250
+ exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase = __decorate([
75192
75251
  __param(0, typescript_ioc_1.Inject),
75193
75252
  __param(1, typescript_ioc_1.Inject),
75194
75253
  __param(2, typescript_ioc_1.Inject),
75195
- __metadata("design:paramtypes", [consumption_1.AttributesController,
75196
- transport_1.AccountController,
75254
+ __param(3, typescript_ioc_1.Inject),
75255
+ __metadata("design:paramtypes", [transport_1.AccountController,
75256
+ consumption_1.AttributesController,
75257
+ transport_1.MessageController,
75197
75258
  Validator])
75198
- ], SucceedIdentityAttributeUseCase);
75199
- //# sourceMappingURL=SucceedIdentityAttribute.js.map
75259
+ ], SucceedRelationshipAttributeAndNotifyPeerUseCase);
75260
+ //# sourceMappingURL=SucceedRelationshipAttributeAndNotifyPeer.js.map
75200
75261
 
75201
75262
  /***/ }),
75202
75263
 
75203
- /***/ "./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js":
75204
- /*!*******************************************************************************************!*\
75205
- !*** ./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js ***!
75206
- \*******************************************************************************************/
75264
+ /***/ "./dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js":
75265
+ /*!****************************************************************************!*\
75266
+ !*** ./dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js ***!
75267
+ \****************************************************************************/
75207
75268
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75208
75269
 
75209
75270
  "use strict";
@@ -75221,90 +75282,65 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
75221
75282
  return function (target, key) { decorator(target, key, paramIndex); }
75222
75283
  };
75223
75284
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75224
- exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = void 0;
75285
+ exports.SucceedRepositoryAttributeUseCase = void 0;
75225
75286
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
75226
75287
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
75227
- const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
75228
75288
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
75229
75289
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
75230
75290
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
75231
75291
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
75232
75292
  let Validator = class Validator extends common_1.SchemaValidator {
75233
75293
  constructor(schemaRepository) {
75234
- super(schemaRepository.getSchema("SucceedRelationshipAttributeAndNotifyPeerRequest"));
75294
+ super(schemaRepository.getSchema("SucceedRepositoryAttributeRequest"));
75235
75295
  }
75236
75296
  };
75237
75297
  Validator = __decorate([
75238
75298
  __param(0, typescript_ioc_1.Inject),
75239
75299
  __metadata("design:paramtypes", [common_1.SchemaRepository])
75240
75300
  ], Validator);
75241
- let SucceedRelationshipAttributeAndNotifyPeerUseCase = class SucceedRelationshipAttributeAndNotifyPeerUseCase extends common_1.UseCase {
75242
- constructor(accountController, attributeController, messageController, validator) {
75301
+ let SucceedRepositoryAttributeUseCase = class SucceedRepositoryAttributeUseCase extends common_1.UseCase {
75302
+ constructor(attributeController, accountController, validator) {
75243
75303
  super(validator);
75244
- this.accountController = accountController;
75245
75304
  this.attributeController = attributeController;
75246
- this.messageController = messageController;
75305
+ this.accountController = accountController;
75247
75306
  }
75248
75307
  async executeInternal(request) {
75249
75308
  const predecessor = await this.attributeController.getLocalAttribute(transport_1.CoreId.from(request.predecessorId));
75250
75309
  if (typeof predecessor === "undefined") {
75251
75310
  return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.predecessorDoesNotExist());
75252
75311
  }
75253
- if (!predecessor.isOwnSharedRelationshipAttribute(this.accountController.identity.address, predecessor.shareInfo?.peer)) {
75254
- return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.invalidPredecessor());
75255
- }
75256
- const notificationId = await consumption_1.ConsumptionIds.notification.generate();
75257
- const predecessorId = transport_1.CoreId.from(request.predecessorId);
75258
- const att = {
75259
- "@type": "RelationshipAttribute",
75260
- ...request.successorContent,
75261
- confidentiality: predecessor.content.confidentiality,
75262
- isTechnical: predecessor.content.isTechnical,
75263
- key: predecessor.content.key,
75264
- owner: predecessor.content.owner.toString()
75312
+ const successorParams = {
75313
+ content: {
75314
+ "@type": "IdentityAttribute",
75315
+ owner: this.accountController.identity.address.toString(),
75316
+ ...request.successorContent
75317
+ },
75318
+ succeeds: predecessor.id.toString()
75265
75319
  };
75266
- const successorParams = consumption_1.AttributeSuccessorParams.from({
75267
- content: content_1.RelationshipAttribute.from(att),
75268
- shareInfo: { peer: predecessor.shareInfo.peer, notificationReference: notificationId }
75269
- });
75270
- const validationResult = await this.attributeController.validateOwnSharedRelationshipAttributeSuccession(predecessorId, successorParams);
75320
+ const predecessorId = transport_1.CoreId.from(request.predecessorId);
75321
+ const validationResult = await this.attributeController.validateRepositoryAttributeSuccession(predecessorId, successorParams);
75271
75322
  if (validationResult.isError()) {
75272
75323
  return ts_utils_1.Result.fail(validationResult.error);
75273
75324
  }
75274
- const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedOwnSharedRelationshipAttribute(predecessorId, successorParams, false);
75275
- const notificationItem = content_1.PeerSharedAttributeSucceededNotificationItem.from({
75276
- predecessorId: predecessor.id,
75277
- successorId: successor.id,
75278
- successorContent: successor.content
75279
- });
75280
- const notification = content_1.Notification.from({
75281
- id: notificationId,
75282
- items: [notificationItem]
75283
- });
75284
- await this.messageController.sendMessage({
75285
- recipients: [predecessor.shareInfo.peer],
75286
- content: notification
75287
- });
75325
+ const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedRepositoryAttribute(predecessorId, successorParams, false);
75326
+ await this.accountController.syncDatawallet();
75288
75327
  const response = {
75289
75328
  predecessor: AttributeMapper_1.AttributeMapper.toAttributeDTO(updatedPredecessor),
75290
- successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor),
75291
- notificationId: notificationId
75329
+ successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor)
75292
75330
  };
75293
75331
  return ts_utils_1.Result.ok(response);
75294
75332
  }
75295
75333
  };
75296
- exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase;
75297
- exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase = __decorate([
75334
+ exports.SucceedRepositoryAttributeUseCase = SucceedRepositoryAttributeUseCase;
75335
+ exports.SucceedRepositoryAttributeUseCase = SucceedRepositoryAttributeUseCase = __decorate([
75298
75336
  __param(0, typescript_ioc_1.Inject),
75299
75337
  __param(1, typescript_ioc_1.Inject),
75300
75338
  __param(2, typescript_ioc_1.Inject),
75301
- __param(3, typescript_ioc_1.Inject),
75302
- __metadata("design:paramtypes", [transport_1.AccountController,
75303
- consumption_1.AttributesController,
75304
- transport_1.MessageController,
75339
+ __metadata("design:paramtypes", [consumption_1.AttributesController,
75340
+ transport_1.AccountController,
75305
75341
  Validator])
75306
- ], SucceedRelationshipAttributeAndNotifyPeerUseCase);
75307
- //# sourceMappingURL=SucceedRelationshipAttributeAndNotifyPeer.js.map
75342
+ ], SucceedRepositoryAttributeUseCase);
75343
+ //# sourceMappingURL=SucceedRepositoryAttribute.js.map
75308
75344
 
75309
75345
  /***/ }),
75310
75346
 
@@ -75388,22 +75424,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
75388
75424
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75389
75425
  __exportStar(__webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js"), exports);
75390
75426
  __exportStar(__webpack_require__(/*! ./CreateAndShareRelationshipAttribute */ "./dist/useCases/consumption/attributes/CreateAndShareRelationshipAttribute.js"), exports);
75391
- __exportStar(__webpack_require__(/*! ./CreateIdentityAttribute */ "./dist/useCases/consumption/attributes/CreateIdentityAttribute.js"), exports);
75427
+ __exportStar(__webpack_require__(/*! ./CreateRepositoryAttribute */ "./dist/useCases/consumption/attributes/CreateRepositoryAttribute.js"), exports);
75392
75428
  __exportStar(__webpack_require__(/*! ./ExecuteIdentityAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js"), exports);
75393
75429
  __exportStar(__webpack_require__(/*! ./ExecuteIQLQuery */ "./dist/useCases/consumption/attributes/ExecuteIQLQuery.js"), exports);
75394
75430
  __exportStar(__webpack_require__(/*! ./ExecuteRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js"), exports);
75395
75431
  __exportStar(__webpack_require__(/*! ./ExecuteThirdPartyRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteThirdPartyRelationshipAttributeQuery.js"), exports);
75396
75432
  __exportStar(__webpack_require__(/*! ./GetAttribute */ "./dist/useCases/consumption/attributes/GetAttribute.js"), exports);
75397
75433
  __exportStar(__webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js"), exports);
75398
- __exportStar(__webpack_require__(/*! ./GetOwnIdentityAttributes */ "./dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js"), exports);
75399
75434
  __exportStar(__webpack_require__(/*! ./GetOwnSharedAttributes */ "./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js"), exports);
75400
75435
  __exportStar(__webpack_require__(/*! ./GetPeerSharedAttributes */ "./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js"), exports);
75401
- __exportStar(__webpack_require__(/*! ./GetSharedVersionsOfIdentityAttribute */ "./dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js"), exports);
75436
+ __exportStar(__webpack_require__(/*! ./GetRepositoryAttributes */ "./dist/useCases/consumption/attributes/GetRepositoryAttributes.js"), exports);
75437
+ __exportStar(__webpack_require__(/*! ./GetSharedVersionsOfRepositoryAttribute */ "./dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js"), exports);
75402
75438
  __exportStar(__webpack_require__(/*! ./GetVersionsOfAttribute */ "./dist/useCases/consumption/attributes/GetVersionsOfAttribute.js"), exports);
75403
- __exportStar(__webpack_require__(/*! ./NotifyPeerAboutIdentityAttributeSuccession */ "./dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js"), exports);
75404
- __exportStar(__webpack_require__(/*! ./ShareIdentityAttribute */ "./dist/useCases/consumption/attributes/ShareIdentityAttribute.js"), exports);
75405
- __exportStar(__webpack_require__(/*! ./SucceedIdentityAttribute */ "./dist/useCases/consumption/attributes/SucceedIdentityAttribute.js"), exports);
75439
+ __exportStar(__webpack_require__(/*! ./NotifyPeerAboutRepositoryAttributeSuccession */ "./dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js"), exports);
75440
+ __exportStar(__webpack_require__(/*! ./ShareRepositoryAttribute */ "./dist/useCases/consumption/attributes/ShareRepositoryAttribute.js"), exports);
75406
75441
  __exportStar(__webpack_require__(/*! ./SucceedRelationshipAttributeAndNotifyPeer */ "./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js"), exports);
75442
+ __exportStar(__webpack_require__(/*! ./SucceedRepositoryAttribute */ "./dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js"), exports);
75407
75443
  __exportStar(__webpack_require__(/*! ./ValidateIQLQuery */ "./dist/useCases/consumption/attributes/ValidateIQLQuery.js"), exports);
75408
75444
  //# sourceMappingURL=index.js.map
75409
75445