@nmshd/runtime 2.2.1 → 2.3.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 (39) hide show
  1. package/dist/buildInformation.js +5 -5
  2. package/dist/events/EventProxy.js +6 -2
  3. package/dist/events/EventProxy.js.map +1 -1
  4. package/dist/events/consumption/OutgoingRequestCreatedAndCompletedEvent.d.ts +6 -0
  5. package/dist/events/consumption/OutgoingRequestCreatedAndCompletedEvent.js +14 -0
  6. package/dist/events/consumption/OutgoingRequestCreatedAndCompletedEvent.js.map +1 -0
  7. package/dist/events/consumption/index.d.ts +1 -0
  8. package/dist/events/consumption/index.js +1 -0
  9. package/dist/events/consumption/index.js.map +1 -1
  10. package/dist/extensibility/facades/consumption/OutgoingRequestsFacade.d.ts +4 -4
  11. package/dist/extensibility/facades/consumption/OutgoingRequestsFacade.js +5 -5
  12. package/dist/extensibility/facades/consumption/OutgoingRequestsFacade.js.map +1 -1
  13. package/dist/modules/RequestModule.d.ts +4 -1
  14. package/dist/modules/RequestModule.js +54 -15
  15. package/dist/modules/RequestModule.js.map +1 -1
  16. package/dist/useCases/common/Schemas.d.ts +1 -1
  17. package/dist/useCases/common/Schemas.js +2570 -76
  18. package/dist/useCases/common/Schemas.js.map +1 -1
  19. package/dist/useCases/consumption/requests/CompleteOutgoingRequest.js.map +1 -1
  20. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.d.ts +20 -0
  21. package/dist/useCases/consumption/requests/{CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.js → CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.js} +29 -16
  22. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.js.map +1 -0
  23. package/dist/useCases/consumption/requests/index.d.ts +1 -1
  24. package/dist/useCases/consumption/requests/index.js +1 -1
  25. package/dist/useCases/consumption/requests/index.js.map +1 -1
  26. package/dist/useCases/consumption/settings/DeleteSetting.js +1 -2
  27. package/dist/useCases/consumption/settings/DeleteSetting.js.map +1 -1
  28. package/dist/useCases/consumption/settings/UpdateSetting.js +1 -2
  29. package/dist/useCases/consumption/settings/UpdateSetting.js.map +1 -1
  30. package/dist/useCases/transport/devices/UpdateDevice.d.ts +1 -1
  31. package/dist/useCases/transport/devices/UpdateDevice.js +2 -2
  32. package/dist/useCases/transport/devices/UpdateDevice.js.map +1 -1
  33. package/lib-web/nmshd.runtime.js +2702 -129
  34. package/lib-web/nmshd.runtime.js.map +1 -1
  35. package/lib-web/nmshd.runtime.min.js +3 -3
  36. package/lib-web/nmshd.runtime.min.js.map +1 -1
  37. package/package.json +7 -7
  38. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.d.ts +0 -16
  39. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.js.map +0 -1
@@ -466,11 +466,11 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
466
466
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
467
467
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
468
468
  exports.buildInformation = {
469
- version: "2.2.1",
470
- build: "134",
471
- date: "2022-12-06T13:09:23+00:00",
472
- commit: "d7f19253acca6735402d45f41ccc4c30d42ff2b5",
473
- dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.5","@js-soft/ts-utils":"^2.3.0","@nmshd/consumption":"2.3.0","@nmshd/content":"2.1.2","@nmshd/crypto":"2.0.3","@nmshd/transport":"2.0.0","ajv":"^8.11.2","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","luxon":"^3.1.1","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
469
+ version: "2.3.0",
470
+ build: "136",
471
+ date: "2022-12-09T11:27:00+00:00",
472
+ commit: "1ff4dc37555a51b07debecf3f2dc5d2960b88327",
473
+ dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.5","@js-soft/ts-utils":"^2.3.0","@nmshd/consumption":"3.1.0","@nmshd/content":"2.3.0","@nmshd/crypto":"2.0.3","@nmshd/transport":"2.0.0","ajv":"^8.11.2","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","luxon":"^3.1.1","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
474
474
  libraries: {
475
475
  serval: ts_serval_1.buildInformation,
476
476
  consumption: consumption_1.buildInformation,
@@ -2480,8 +2480,12 @@ class EventProxy {
2480
2480
  this.subscribeToSourceEvent(consumption.OutgoingRequestCreatedEvent, (event) => {
2481
2481
  this.targetEventBus.publish(new consumption_1.OutgoingRequestCreatedEvent(event.eventTargetAddress, useCases_1.RequestMapper.toLocalRequestDTO(event.data)));
2482
2482
  });
2483
- this.subscribeToSourceEvent(consumption.OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent, (event) => {
2484
- this.targetEventBus.publish(new consumption_1.OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent(event.eventTargetAddress, useCases_1.RequestMapper.toLocalRequestDTO(event.data)));
2483
+ this.subscribeToSourceEvent(consumption.OutgoingRequestCreatedAndCompletedEvent, (event) => {
2484
+ const mappedRequest = useCases_1.RequestMapper.toLocalRequestDTO(event.data);
2485
+ this.targetEventBus.publish(new consumption_1.OutgoingRequestCreatedAndCompletedEvent(event.eventTargetAddress, mappedRequest));
2486
+ if (event.data.response?.source?.type === "RelationshipChange") {
2487
+ this.targetEventBus.publish(new consumption_1.OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent(event.eventTargetAddress, mappedRequest));
2488
+ }
2485
2489
  });
2486
2490
  this.subscribeToSourceEvent(consumption.OutgoingRequestStatusChangedEvent, (event) => {
2487
2491
  this.targetEventBus.publish(new consumption_1.OutgoingRequestStatusChangedEvent(event.eventTargetAddress, {
@@ -2741,6 +2745,30 @@ var MessageProcessedResult;
2741
2745
 
2742
2746
  /***/ }),
2743
2747
 
2748
+ /***/ "./dist/events/consumption/OutgoingRequestCreatedAndCompletedEvent.js":
2749
+ /*!****************************************************************************!*\
2750
+ !*** ./dist/events/consumption/OutgoingRequestCreatedAndCompletedEvent.js ***!
2751
+ \****************************************************************************/
2752
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2753
+
2754
+ "use strict";
2755
+
2756
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
2757
+ exports.OutgoingRequestCreatedAndCompletedEvent = void 0;
2758
+ const DataEvent_1 = __webpack_require__(/*! ../DataEvent */ "./dist/events/DataEvent.js");
2759
+ class OutgoingRequestCreatedAndCompletedEvent extends DataEvent_1.DataEvent {
2760
+ constructor(eventTargetAddress, data) {
2761
+ super(OutgoingRequestCreatedAndCompletedEvent.namespace, eventTargetAddress, data);
2762
+ if (!data.isOwn)
2763
+ throw new Error("Cannot create this event for an incoming Request");
2764
+ }
2765
+ }
2766
+ exports.OutgoingRequestCreatedAndCompletedEvent = OutgoingRequestCreatedAndCompletedEvent;
2767
+ OutgoingRequestCreatedAndCompletedEvent.namespace = "consumption.outgoingRequestCreatedAndCompleted";
2768
+ //# sourceMappingURL=OutgoingRequestCreatedAndCompletedEvent.js.map
2769
+
2770
+ /***/ }),
2771
+
2744
2772
  /***/ "./dist/events/consumption/OutgoingRequestCreatedEvent.js":
2745
2773
  /*!****************************************************************!*\
2746
2774
  !*** ./dist/events/consumption/OutgoingRequestCreatedEvent.js ***!
@@ -2923,6 +2951,7 @@ __exportStar(__webpack_require__(/*! ./IncomingRequestReceivedEvent */ "./dist/e
2923
2951
  __exportStar(__webpack_require__(/*! ./IncomingRequestStatusChangedEvent */ "./dist/events/consumption/IncomingRequestStatusChangedEvent.js"), exports);
2924
2952
  __exportStar(__webpack_require__(/*! ./MailReceivedEvent */ "./dist/events/consumption/MailReceivedEvent.js"), exports);
2925
2953
  __exportStar(__webpack_require__(/*! ./MessageProcessedEvent */ "./dist/events/consumption/MessageProcessedEvent.js"), exports);
2954
+ __exportStar(__webpack_require__(/*! ./OutgoingRequestCreatedAndCompletedEvent */ "./dist/events/consumption/OutgoingRequestCreatedAndCompletedEvent.js"), exports);
2926
2955
  __exportStar(__webpack_require__(/*! ./OutgoingRequestCreatedEvent */ "./dist/events/consumption/OutgoingRequestCreatedEvent.js"), exports);
2927
2956
  __exportStar(__webpack_require__(/*! ./OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent */ "./dist/events/consumption/OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent.js"), exports);
2928
2957
  __exportStar(__webpack_require__(/*! ./OutgoingRequestStatusChangedEvent */ "./dist/events/consumption/OutgoingRequestStatusChangedEvent.js"), exports);
@@ -3819,11 +3848,11 @@ exports.OutgoingRequestsFacade = void 0;
3819
3848
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
3820
3849
  const useCases_1 = __webpack_require__(/*! ../../../useCases */ "./dist/useCases/index.js");
3821
3850
  let OutgoingRequestsFacade = class OutgoingRequestsFacade {
3822
- constructor(canCreateUseCase, createUseCase, sentUseCase, createAndCompleteFromRelationshipCreationChangeUseCase, completeUseCase, getRequestUseCase, getRequestsUseCase, discardRequestUseCase) {
3851
+ constructor(canCreateUseCase, createUseCase, sentUseCase, createAndCompleteFromRelationshipTemplateResponseUseCase, completeUseCase, getRequestUseCase, getRequestsUseCase, discardRequestUseCase) {
3823
3852
  this.canCreateUseCase = canCreateUseCase;
3824
3853
  this.createUseCase = createUseCase;
3825
3854
  this.sentUseCase = sentUseCase;
3826
- this.createAndCompleteFromRelationshipCreationChangeUseCase = createAndCompleteFromRelationshipCreationChangeUseCase;
3855
+ this.createAndCompleteFromRelationshipTemplateResponseUseCase = createAndCompleteFromRelationshipTemplateResponseUseCase;
3827
3856
  this.completeUseCase = completeUseCase;
3828
3857
  this.getRequestUseCase = getRequestUseCase;
3829
3858
  this.getRequestsUseCase = getRequestsUseCase;
@@ -3835,8 +3864,8 @@ let OutgoingRequestsFacade = class OutgoingRequestsFacade {
3835
3864
  async create(request) {
3836
3865
  return await this.createUseCase.execute(request);
3837
3866
  }
3838
- async createAndCompleteFromRelationshipCreationChange(request) {
3839
- return await this.createAndCompleteFromRelationshipCreationChangeUseCase.execute(request);
3867
+ async createAndCompleteFromRelationshipTemplateResponse(request) {
3868
+ return await this.createAndCompleteFromRelationshipTemplateResponseUseCase.execute(request);
3840
3869
  }
3841
3870
  async sent(request) {
3842
3871
  return await this.sentUseCase.execute(request);
@@ -3866,7 +3895,7 @@ OutgoingRequestsFacade = __decorate([
3866
3895
  __metadata("design:paramtypes", [useCases_1.CanCreateOutgoingRequestUseCase,
3867
3896
  useCases_1.CreateOutgoingRequestUseCase,
3868
3897
  useCases_1.SentOutgoingRequestUseCase,
3869
- useCases_1.CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeUseCase,
3898
+ useCases_1.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase,
3870
3899
  useCases_1.CompleteOutgoingRequestUseCase,
3871
3900
  useCases_1.GetOutgoingRequestUseCase,
3872
3901
  useCases_1.GetOutgoingRequestsUseCase,
@@ -5086,18 +5115,34 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
5086
5115
  case "Request":
5087
5116
  await this.createIncomingRequest(services, message.content, message.id);
5088
5117
  break;
5118
+ // Handle responses directly sent via messages. This is only for backwards compatibility and
5119
+ // not viable for responding to Requests from RelationshipTemplates' onExistingRelationship.
5089
5120
  case "Response":
5090
- const receivedResponse = message.content;
5091
- const result = await services.consumptionServices.outgoingRequests.complete({ receivedResponse, messageId: message.id });
5092
- if (result.isError) {
5093
- this.logger.error(`Could not complete outgoing request for message id ${message.id} due to ${result.error}. Root error:`, result.error);
5094
- }
5121
+ await this.completeExistingRequestWithResponseReceivedByMessage(services, message.id, message.content);
5122
+ break;
5123
+ case "ResponseWrapper":
5124
+ const responseWrapper = message.content;
5125
+ if (responseWrapper.requestSourceType === "Message") {
5126
+ await this.completeExistingRequestWithResponseReceivedByMessage(services, message.id, responseWrapper.response);
5127
+ break;
5128
+ }
5129
+ await services.consumptionServices.outgoingRequests.createAndCompleteFromRelationshipTemplateResponse({
5130
+ responseSourceId: message.id,
5131
+ templateId: responseWrapper.requestSourceReference,
5132
+ response: responseWrapper.response
5133
+ });
5095
5134
  break;
5096
5135
  }
5097
5136
  if (messageContentType !== "Request") {
5098
5137
  this.runtime.eventBus.publish(new events_1.MessageProcessedEvent(event.eventTargetAddress, message, events_1.MessageProcessedResult.NoRequest));
5099
5138
  }
5100
5139
  }
5140
+ async completeExistingRequestWithResponseReceivedByMessage(services, messageId, receivedResponse) {
5141
+ const result = await services.consumptionServices.outgoingRequests.complete({ receivedResponse, messageId });
5142
+ if (result.isError) {
5143
+ this.logger.error(`Could not complete outgoing request for message id ${messageId} due to ${result.error}. Root error:`, result.error);
5144
+ }
5145
+ }
5101
5146
  async handleMessageSentEvent(event) {
5102
5147
  const message = event.data;
5103
5148
  if (message.content["@type"] !== "Request")
@@ -5116,9 +5161,9 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
5116
5161
  this.logger.error(`Could not receive request ${request.id}. Root error:`, receivedRequestResult.error);
5117
5162
  return false;
5118
5163
  }
5119
- const checkPrerequitesResult = await services.consumptionServices.incomingRequests.checkPrerequisites({ requestId: receivedRequestResult.value.id });
5120
- if (checkPrerequitesResult.isError) {
5121
- this.logger.error(`Could not check prerequisites for request ${request.id}. Root error:`, checkPrerequitesResult.error);
5164
+ const checkPrerequisitesResult = await services.consumptionServices.incomingRequests.checkPrerequisites({ requestId: receivedRequestResult.value.id });
5165
+ if (checkPrerequisitesResult.isError) {
5166
+ this.logger.error(`Could not check prerequisites for request ${request.id}. Root error:`, checkPrerequisitesResult.error);
5122
5167
  return false;
5123
5168
  }
5124
5169
  return true;
@@ -5129,7 +5174,7 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
5129
5174
  const request = event.data.request;
5130
5175
  switch (request.source.type) {
5131
5176
  case "RelationshipTemplate":
5132
- await this.handleIncomingRequestDecidedForRelationship(event);
5177
+ await this.handleIncomingRequestDecidedForRelationshipTemplate(event);
5133
5178
  break;
5134
5179
  case "Message":
5135
5180
  await this.handleIncomingRequestDecidedForMessage(event);
@@ -5138,10 +5183,20 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
5138
5183
  throw new Error(`Cannot handle source.type '${request.source.type}'.`);
5139
5184
  }
5140
5185
  }
5141
- async handleIncomingRequestDecidedForRelationship(event) {
5186
+ async handleIncomingRequestDecidedForRelationshipTemplate(event) {
5142
5187
  const request = event.data.request;
5143
- const templateId = request.source.reference;
5144
5188
  const services = await this.runtime.getServices(event.eventTargetAddress);
5189
+ const activeRelationshipsToPeer = (await services.transportServices.relationships.getRelationships({ query: { peer: event.data.request.peer, status: types_1.RelationshipStatus.Active } })).value;
5190
+ if (activeRelationshipsToPeer.length === 0) {
5191
+ await this.respondToRequestViaRelationship(request, event.eventTargetAddress);
5192
+ }
5193
+ else {
5194
+ await this.respondToRequestViaMessage(request, event.eventTargetAddress);
5195
+ }
5196
+ }
5197
+ async respondToRequestViaRelationship(request, currentIdentity) {
5198
+ const services = await this.runtime.getServices(currentIdentity);
5199
+ const templateId = request.source.reference;
5145
5200
  if (request.response.content.result === content_1.ResponseResult.Rejected) {
5146
5201
  await services.consumptionServices.incomingRequests.complete({ requestId: request.id });
5147
5202
  return;
@@ -5162,13 +5217,18 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
5162
5217
  return;
5163
5218
  }
5164
5219
  }
5165
- async handleIncomingRequestDecidedForMessage(event) {
5166
- const request = event.data.request;
5220
+ async respondToRequestViaMessage(request, currentIdentity) {
5167
5221
  const requestId = request.id;
5168
- const services = await this.runtime.getServices(event.eventTargetAddress);
5222
+ const services = await this.runtime.getServices(currentIdentity);
5223
+ const messageContent = content_1.ResponseWrapper.from({
5224
+ response: request.response.content,
5225
+ requestId,
5226
+ requestSourceReference: request.source.reference,
5227
+ requestSourceType: request.source.type
5228
+ }).toJSON();
5169
5229
  const sendMessageResult = await services.transportServices.messages.sendMessage({
5170
5230
  recipients: [request.peer],
5171
- content: request.response.content
5231
+ content: messageContent
5172
5232
  });
5173
5233
  if (sendMessageResult.isError) {
5174
5234
  this.logger.error(`Could not send message to answer the request '${requestId}'.`, sendMessageResult.error);
@@ -5183,6 +5243,9 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
5183
5243
  return;
5184
5244
  }
5185
5245
  }
5246
+ async handleIncomingRequestDecidedForMessage(event) {
5247
+ await this.respondToRequestViaMessage(event.data.request, event.eventTargetAddress);
5248
+ }
5186
5249
  async handleRelationshipChangedEvent(event) {
5187
5250
  // only trigger for new relationships that were created from an own template
5188
5251
  const createdRelationship = event.data;
@@ -5199,7 +5262,12 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
5199
5262
  // do not trigger for creation changes without the correct content type
5200
5263
  if (relationshipCreationChange.request.content["@type"] !== "RelationshipCreationChangeRequestContent")
5201
5264
  return;
5202
- const result = await services.consumptionServices.outgoingRequests.createAndCompleteFromRelationshipCreationChange({ templateId, relationshipChangeId });
5265
+ const relationshipCreationChangeContent = relationshipCreationChange.request.content;
5266
+ const result = await services.consumptionServices.outgoingRequests.createAndCompleteFromRelationshipTemplateResponse({
5267
+ templateId,
5268
+ responseSourceId: relationshipChangeId,
5269
+ response: relationshipCreationChangeContent.response
5270
+ });
5203
5271
  if (result.isError) {
5204
5272
  this.logger.error(`Could not create and complete request for templateId '${templateId}' and changeId '${relationshipChangeId}'. Root error:`, result.error);
5205
5273
  return;
@@ -6120,7 +6188,7 @@ exports.JsonSchema = JsonSchema;
6120
6188
  "use strict";
6121
6189
 
6122
6190
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6123
- exports.CreateIdentityChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.SyncEverythingRequest = exports.DownloadAttachmentRequest = exports.SyncDatawalletRequest = exports.RegisterPushNotificationTokenRequest = exports.LoadItemFromTruncatedReferenceRequest = exports.DownloadFileRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.UpdateAttributeRequest = exports.SucceedAttributeRequest = exports.ShareAttributeRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.DiscardOutgoingRequestRequest = exports.CreateOutgoingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CanCreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.GetSharedToPeerAttributesRequest = exports.GetPeerAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteThirdPartyRelationshipAttributeQueryRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.DeleteAttributeRequest = exports.CreateSharedAttributeCopyRequest = exports.CreateAttributeRequest = exports.GetAttributeListenerRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
6191
+ exports.CreateIdentityChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.SyncEverythingRequest = exports.DownloadAttachmentRequest = exports.SyncDatawalletRequest = exports.RegisterPushNotificationTokenRequest = exports.LoadItemFromTruncatedReferenceRequest = exports.DownloadFileRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.UpdateAttributeRequest = exports.SucceedAttributeRequest = exports.ShareAttributeRequest = 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.GetSharedToPeerAttributesRequest = exports.GetPeerAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteThirdPartyRelationshipAttributeQueryRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.DeleteAttributeRequest = exports.CreateSharedAttributeCopyRequest = exports.CreateAttributeRequest = exports.GetAttributeListenerRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
6124
6192
  exports.LoadPeerTokenRequest = exports.LoadPeerTokenViaSecretRequest = exports.LoadPeerTokenViaReferenceRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.LoadPeerRelationshipTemplateViaReferenceRequest = 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 = void 0;
6125
6193
  exports.LoadPeerTokenAnonymousByIdAndKeyRequest = {
6126
6194
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -9523,6 +9591,9 @@ exports.CanCreateOutgoingRequestRequest = {
9523
9591
  },
9524
9592
  {
9525
9593
  "$ref": "#/definitions/RegisterAttributeListenerRequestItemJSON"
9594
+ },
9595
+ {
9596
+ "$ref": "#/definitions/SucceedAttributeRequestItemJSON"
9526
9597
  }
9527
9598
  ]
9528
9599
  },
@@ -11983,6 +12054,74 @@ exports.CanCreateOutgoingRequestRequest = {
11983
12054
  ],
11984
12055
  "additionalProperties": false
11985
12056
  },
12057
+ "SucceedAttributeRequestItemJSON": {
12058
+ "type": "object",
12059
+ "properties": {
12060
+ "@type": {
12061
+ "type": "string"
12062
+ },
12063
+ "@context": {
12064
+ "type": "string"
12065
+ },
12066
+ "@version": {
12067
+ "type": "string"
12068
+ },
12069
+ "title": {
12070
+ "type": "string",
12071
+ "description": "The human-readable title of this item."
12072
+ },
12073
+ "description": {
12074
+ "type": "string",
12075
+ "description": "The human-readable description of this item."
12076
+ },
12077
+ "metadata": {
12078
+ "type": "object",
12079
+ "description": "This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
12080
+ },
12081
+ "mustBeAccepted": {
12082
+ "type": "boolean",
12083
+ "description": "If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a\n {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."
12084
+ },
12085
+ "requireManualDecision": {
12086
+ "type": "boolean",
12087
+ "description": "If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."
12088
+ },
12089
+ "succeededId": {
12090
+ "type": "string",
12091
+ "description": "The id of the Attribute to be succeeded."
12092
+ },
12093
+ "succeededAttribute": {
12094
+ "anyOf": [
12095
+ {
12096
+ "$ref": "#/definitions/IdentityAttributeJSON"
12097
+ },
12098
+ {
12099
+ "$ref": "#/definitions/RelationshipAttributeJSON"
12100
+ }
12101
+ ],
12102
+ "description": "The succeeded Attribute with the updated validTo date. Its validTo date must be lower than the validFrom date of the new Attribute."
12103
+ },
12104
+ "newAttribute": {
12105
+ "anyOf": [
12106
+ {
12107
+ "$ref": "#/definitions/IdentityAttributeJSON"
12108
+ },
12109
+ {
12110
+ "$ref": "#/definitions/RelationshipAttributeJSON"
12111
+ }
12112
+ ],
12113
+ "description": "The new Attribute. Its validFrom date must be greater than the validTo date of the succeeded Attribute."
12114
+ }
12115
+ },
12116
+ "required": [
12117
+ "@type",
12118
+ "mustBeAccepted",
12119
+ "newAttribute",
12120
+ "succeededAttribute",
12121
+ "succeededId"
12122
+ ],
12123
+ "additionalProperties": false
12124
+ },
11986
12125
  "AddressString": {
11987
12126
  "type": "string",
11988
12127
  "pattern": "id1[A-Za-z0-9]{32,33}"
@@ -12090,75 +12229,2359 @@ exports.CheckPrerequisitesOfIncomingRequestRequest = {
12090
12229
  }
12091
12230
  },
12092
12231
  "required": [
12093
- "requestId"
12232
+ "requestId"
12233
+ ],
12234
+ "additionalProperties": false
12235
+ },
12236
+ "RequestIdString": {
12237
+ "type": "string",
12238
+ "pattern": "REQ[A-Za-z0-9]{17}"
12239
+ }
12240
+ }
12241
+ };
12242
+ exports.CompleteIncomingRequestRequest = {
12243
+ "$schema": "http://json-schema.org/draft-07/schema#",
12244
+ "$ref": "#/definitions/CompleteIncomingRequestRequest",
12245
+ "definitions": {
12246
+ "CompleteIncomingRequestRequest": {
12247
+ "type": "object",
12248
+ "properties": {
12249
+ "requestId": {
12250
+ "$ref": "#/definitions/RequestIdString"
12251
+ },
12252
+ "responseSourceId": {
12253
+ "anyOf": [
12254
+ {
12255
+ "$ref": "#/definitions/MessageIdString"
12256
+ },
12257
+ {
12258
+ "$ref": "#/definitions/RelationshipChangeIdString"
12259
+ }
12260
+ ]
12261
+ }
12262
+ },
12263
+ "required": [
12264
+ "requestId"
12265
+ ],
12266
+ "additionalProperties": false
12267
+ },
12268
+ "RequestIdString": {
12269
+ "type": "string",
12270
+ "pattern": "REQ[A-Za-z0-9]{17}"
12271
+ },
12272
+ "MessageIdString": {
12273
+ "type": "string",
12274
+ "pattern": "MSG[A-Za-z0-9]{17}"
12275
+ },
12276
+ "RelationshipChangeIdString": {
12277
+ "type": "string",
12278
+ "pattern": "RCH[A-Za-z0-9]{17}"
12279
+ }
12280
+ }
12281
+ };
12282
+ exports.CompleteOutgoingRequestRequest = {
12283
+ "$schema": "http://json-schema.org/draft-07/schema#",
12284
+ "$ref": "#/definitions/CompleteOutgoingRequestRequest",
12285
+ "definitions": {
12286
+ "CompleteOutgoingRequestRequest": {
12287
+ "type": "object",
12288
+ "properties": {
12289
+ "receivedResponse": {
12290
+ "$ref": "#/definitions/ResponseJSON"
12291
+ },
12292
+ "messageId": {
12293
+ "$ref": "#/definitions/MessageIdString"
12294
+ }
12295
+ },
12296
+ "required": [
12297
+ "receivedResponse",
12298
+ "messageId"
12299
+ ],
12300
+ "additionalProperties": false
12301
+ },
12302
+ "ResponseJSON": {
12303
+ "type": "object",
12304
+ "properties": {
12305
+ "@type": {
12306
+ "type": "string",
12307
+ "const": "Response"
12308
+ },
12309
+ "@context": {
12310
+ "type": "string"
12311
+ },
12312
+ "@version": {
12313
+ "type": "string"
12314
+ },
12315
+ "result": {
12316
+ "$ref": "#/definitions/ResponseResult"
12317
+ },
12318
+ "requestId": {
12319
+ "type": "string"
12320
+ },
12321
+ "items": {
12322
+ "type": "array",
12323
+ "items": {
12324
+ "anyOf": [
12325
+ {
12326
+ "$ref": "#/definitions/ResponseItemGroupJSON"
12327
+ },
12328
+ {
12329
+ "$ref": "#/definitions/ResponseItemJSONDerivations"
12330
+ }
12331
+ ]
12332
+ }
12333
+ }
12334
+ },
12335
+ "required": [
12336
+ "@type",
12337
+ "items",
12338
+ "requestId",
12339
+ "result"
12340
+ ],
12341
+ "additionalProperties": false
12342
+ },
12343
+ "ResponseResult": {
12344
+ "type": "string",
12345
+ "enum": [
12346
+ "Accepted",
12347
+ "Rejected"
12348
+ ]
12349
+ },
12350
+ "ResponseItemGroupJSON": {
12351
+ "type": "object",
12352
+ "properties": {
12353
+ "@type": {
12354
+ "type": "string",
12355
+ "const": "ResponseItemGroup"
12356
+ },
12357
+ "@context": {
12358
+ "type": "string"
12359
+ },
12360
+ "@version": {
12361
+ "type": "string"
12362
+ },
12363
+ "items": {
12364
+ "type": "array",
12365
+ "items": {
12366
+ "$ref": "#/definitions/ResponseItemJSONDerivations"
12367
+ }
12368
+ }
12369
+ },
12370
+ "required": [
12371
+ "@type",
12372
+ "items"
12373
+ ],
12374
+ "additionalProperties": false
12375
+ },
12376
+ "ResponseItemJSONDerivations": {
12377
+ "anyOf": [
12378
+ {
12379
+ "$ref": "#/definitions/AcceptResponseItemJSONDerivations"
12380
+ },
12381
+ {
12382
+ "$ref": "#/definitions/RejectResponseItemJSONDerivations"
12383
+ },
12384
+ {
12385
+ "$ref": "#/definitions/ErrorResponseItemJSONDerivations"
12386
+ }
12387
+ ]
12388
+ },
12389
+ "AcceptResponseItemJSONDerivations": {
12390
+ "anyOf": [
12391
+ {
12392
+ "$ref": "#/definitions/AcceptResponseItemJSON"
12393
+ },
12394
+ {
12395
+ "$ref": "#/definitions/CreateAttributeAcceptResponseItemJSON"
12396
+ },
12397
+ {
12398
+ "$ref": "#/definitions/ShareAttributeAcceptResponseItemJSON"
12399
+ },
12400
+ {
12401
+ "$ref": "#/definitions/ProposeAttributeAcceptResponseItemJSON"
12402
+ },
12403
+ {
12404
+ "$ref": "#/definitions/ReadAttributeAcceptResponseItemJSON"
12405
+ },
12406
+ {
12407
+ "$ref": "#/definitions/RegisterAttributeListenerAcceptResponseItemJSON"
12408
+ },
12409
+ {
12410
+ "$ref": "#/definitions/SucceedAttributeAcceptResponseItemJSON"
12411
+ }
12412
+ ]
12413
+ },
12414
+ "AcceptResponseItemJSON": {
12415
+ "type": "object",
12416
+ "properties": {
12417
+ "@type": {
12418
+ "type": "string"
12419
+ },
12420
+ "@context": {
12421
+ "type": "string"
12422
+ },
12423
+ "@version": {
12424
+ "type": "string"
12425
+ },
12426
+ "result": {
12427
+ "type": "string",
12428
+ "const": "Accepted"
12429
+ }
12430
+ },
12431
+ "required": [
12432
+ "@type",
12433
+ "result"
12434
+ ],
12435
+ "additionalProperties": false
12436
+ },
12437
+ "CreateAttributeAcceptResponseItemJSON": {
12438
+ "type": "object",
12439
+ "properties": {
12440
+ "@type": {
12441
+ "type": "string",
12442
+ "const": "CreateAttributeAcceptResponseItem"
12443
+ },
12444
+ "@context": {
12445
+ "type": "string"
12446
+ },
12447
+ "@version": {
12448
+ "type": "string"
12449
+ },
12450
+ "result": {
12451
+ "type": "string",
12452
+ "const": "Accepted"
12453
+ },
12454
+ "attributeId": {
12455
+ "type": "string"
12456
+ }
12457
+ },
12458
+ "required": [
12459
+ "@type",
12460
+ "attributeId",
12461
+ "result"
12462
+ ],
12463
+ "additionalProperties": false
12464
+ },
12465
+ "ShareAttributeAcceptResponseItemJSON": {
12466
+ "type": "object",
12467
+ "properties": {
12468
+ "@type": {
12469
+ "type": "string",
12470
+ "const": "ShareAttributeAcceptResponseItem"
12471
+ },
12472
+ "@context": {
12473
+ "type": "string"
12474
+ },
12475
+ "@version": {
12476
+ "type": "string"
12477
+ },
12478
+ "result": {
12479
+ "type": "string",
12480
+ "const": "Accepted"
12481
+ },
12482
+ "attributeId": {
12483
+ "type": "string"
12484
+ }
12485
+ },
12486
+ "required": [
12487
+ "@type",
12488
+ "attributeId",
12489
+ "result"
12490
+ ],
12491
+ "additionalProperties": false
12492
+ },
12493
+ "ProposeAttributeAcceptResponseItemJSON": {
12494
+ "type": "object",
12495
+ "properties": {
12496
+ "@type": {
12497
+ "type": "string",
12498
+ "const": "ProposeAttributeAcceptResponseItem"
12499
+ },
12500
+ "@context": {
12501
+ "type": "string"
12502
+ },
12503
+ "@version": {
12504
+ "type": "string"
12505
+ },
12506
+ "result": {
12507
+ "type": "string",
12508
+ "const": "Accepted"
12509
+ },
12510
+ "attributeId": {
12511
+ "type": "string"
12512
+ },
12513
+ "attribute": {
12514
+ "anyOf": [
12515
+ {
12516
+ "$ref": "#/definitions/IdentityAttributeJSON"
12517
+ },
12518
+ {
12519
+ "$ref": "#/definitions/RelationshipAttributeJSON"
12520
+ }
12521
+ ]
12522
+ }
12523
+ },
12524
+ "required": [
12525
+ "@type",
12526
+ "attribute",
12527
+ "attributeId",
12528
+ "result"
12529
+ ],
12530
+ "additionalProperties": false
12531
+ },
12532
+ "IdentityAttributeJSON": {
12533
+ "type": "object",
12534
+ "properties": {
12535
+ "@type": {
12536
+ "type": "string",
12537
+ "const": "IdentityAttribute"
12538
+ },
12539
+ "@context": {
12540
+ "type": "string"
12541
+ },
12542
+ "@version": {
12543
+ "type": "string"
12544
+ },
12545
+ "owner": {
12546
+ "type": "string"
12547
+ },
12548
+ "validFrom": {
12549
+ "type": "string"
12550
+ },
12551
+ "validTo": {
12552
+ "type": "string"
12553
+ },
12554
+ "value": {
12555
+ "$ref": "#/definitions/AttributeValues.Identity.Json"
12556
+ },
12557
+ "tags": {
12558
+ "type": "array",
12559
+ "items": {
12560
+ "type": "string"
12561
+ }
12562
+ }
12563
+ },
12564
+ "required": [
12565
+ "@type",
12566
+ "owner",
12567
+ "value"
12568
+ ],
12569
+ "additionalProperties": false
12570
+ },
12571
+ "AttributeValues.Identity.Json": {
12572
+ "anyOf": [
12573
+ {
12574
+ "$ref": "#/definitions/AttributeValues.Identity.Editable.Json"
12575
+ },
12576
+ {
12577
+ "$ref": "#/definitions/AttributeValues.Identity.Uneditable.Json"
12578
+ }
12579
+ ]
12580
+ },
12581
+ "AttributeValues.Identity.Editable.Json": {
12582
+ "anyOf": [
12583
+ {
12584
+ "$ref": "#/definitions/AffiliationJSON"
12585
+ },
12586
+ {
12587
+ "$ref": "#/definitions/BirthDateJSON"
12588
+ },
12589
+ {
12590
+ "$ref": "#/definitions/BirthNameJSON"
12591
+ },
12592
+ {
12593
+ "$ref": "#/definitions/BirthPlaceJSON"
12594
+ },
12595
+ {
12596
+ "$ref": "#/definitions/CitizenshipJSON"
12597
+ },
12598
+ {
12599
+ "$ref": "#/definitions/CommunicationLanguageJSON"
12600
+ },
12601
+ {
12602
+ "$ref": "#/definitions/DeliveryBoxAddressJSON"
12603
+ },
12604
+ {
12605
+ "$ref": "#/definitions/DisplayNameJSON"
12606
+ },
12607
+ {
12608
+ "$ref": "#/definitions/EMailAddressJSON"
12609
+ },
12610
+ {
12611
+ "$ref": "#/definitions/FaxNumberJSON"
12612
+ },
12613
+ {
12614
+ "$ref": "#/definitions/FileReferenceJSON"
12615
+ },
12616
+ {
12617
+ "$ref": "#/definitions/JobTitleJSON"
12618
+ },
12619
+ {
12620
+ "$ref": "#/definitions/NationalityJSON"
12621
+ },
12622
+ {
12623
+ "$ref": "#/definitions/PersonNameJSON"
12624
+ },
12625
+ {
12626
+ "$ref": "#/definitions/PhoneNumberJSON"
12627
+ },
12628
+ {
12629
+ "$ref": "#/definitions/PostOfficeBoxAddressJSON"
12630
+ },
12631
+ {
12632
+ "$ref": "#/definitions/PseudonymJSON"
12633
+ },
12634
+ {
12635
+ "$ref": "#/definitions/SexJSON"
12636
+ },
12637
+ {
12638
+ "$ref": "#/definitions/StreetAddressJSON"
12639
+ },
12640
+ {
12641
+ "$ref": "#/definitions/WebsiteJSON"
12642
+ }
12643
+ ]
12644
+ },
12645
+ "AffiliationJSON": {
12646
+ "type": "object",
12647
+ "properties": {
12648
+ "@type": {
12649
+ "type": "string",
12650
+ "const": "Affiliation"
12651
+ },
12652
+ "@context": {
12653
+ "type": "string"
12654
+ },
12655
+ "@version": {
12656
+ "type": "string"
12657
+ },
12658
+ "organization": {
12659
+ "type": "string"
12660
+ },
12661
+ "role": {
12662
+ "type": "string"
12663
+ },
12664
+ "unit": {
12665
+ "type": "string"
12666
+ }
12667
+ },
12668
+ "required": [
12669
+ "@type",
12670
+ "organization"
12671
+ ],
12672
+ "additionalProperties": false
12673
+ },
12674
+ "BirthDateJSON": {
12675
+ "type": "object",
12676
+ "properties": {
12677
+ "@type": {
12678
+ "type": "string",
12679
+ "const": "BirthDate"
12680
+ },
12681
+ "@context": {
12682
+ "type": "string"
12683
+ },
12684
+ "@version": {
12685
+ "type": "string"
12686
+ },
12687
+ "day": {
12688
+ "type": "number"
12689
+ },
12690
+ "month": {
12691
+ "type": "number"
12692
+ },
12693
+ "year": {
12694
+ "type": "number"
12695
+ }
12696
+ },
12697
+ "required": [
12698
+ "@type",
12699
+ "day",
12700
+ "month",
12701
+ "year"
12702
+ ],
12703
+ "additionalProperties": false
12704
+ },
12705
+ "BirthNameJSON": {
12706
+ "type": "object",
12707
+ "properties": {
12708
+ "@type": {
12709
+ "type": "string",
12710
+ "const": "BirthName"
12711
+ },
12712
+ "@context": {
12713
+ "type": "string"
12714
+ },
12715
+ "@version": {
12716
+ "type": "string"
12717
+ },
12718
+ "value": {
12719
+ "type": "string"
12720
+ }
12721
+ },
12722
+ "required": [
12723
+ "@type",
12724
+ "value"
12725
+ ],
12726
+ "additionalProperties": false
12727
+ },
12728
+ "BirthPlaceJSON": {
12729
+ "type": "object",
12730
+ "properties": {
12731
+ "@type": {
12732
+ "type": "string",
12733
+ "const": "BirthPlace"
12734
+ },
12735
+ "@context": {
12736
+ "type": "string"
12737
+ },
12738
+ "@version": {
12739
+ "type": "string"
12740
+ },
12741
+ "city": {
12742
+ "type": "string"
12743
+ },
12744
+ "country": {
12745
+ "type": "string"
12746
+ },
12747
+ "state": {
12748
+ "type": "string"
12749
+ }
12750
+ },
12751
+ "required": [
12752
+ "@type",
12753
+ "city",
12754
+ "country"
12755
+ ],
12756
+ "additionalProperties": false
12757
+ },
12758
+ "CitizenshipJSON": {
12759
+ "type": "object",
12760
+ "properties": {
12761
+ "@type": {
12762
+ "type": "string",
12763
+ "const": "Citizenship"
12764
+ },
12765
+ "@context": {
12766
+ "type": "string"
12767
+ },
12768
+ "@version": {
12769
+ "type": "string"
12770
+ },
12771
+ "value": {
12772
+ "type": "string"
12773
+ }
12774
+ },
12775
+ "required": [
12776
+ "@type",
12777
+ "value"
12778
+ ],
12779
+ "additionalProperties": false
12780
+ },
12781
+ "CommunicationLanguageJSON": {
12782
+ "type": "object",
12783
+ "properties": {
12784
+ "@type": {
12785
+ "type": "string",
12786
+ "const": "CommunicationLanguage"
12787
+ },
12788
+ "@context": {
12789
+ "type": "string"
12790
+ },
12791
+ "@version": {
12792
+ "type": "string"
12793
+ },
12794
+ "value": {
12795
+ "type": "string"
12796
+ }
12797
+ },
12798
+ "required": [
12799
+ "@type",
12800
+ "value"
12801
+ ],
12802
+ "additionalProperties": false
12803
+ },
12804
+ "DeliveryBoxAddressJSON": {
12805
+ "type": "object",
12806
+ "properties": {
12807
+ "@type": {
12808
+ "type": "string",
12809
+ "const": "DeliveryBoxAddress"
12810
+ },
12811
+ "@context": {
12812
+ "type": "string"
12813
+ },
12814
+ "@version": {
12815
+ "type": "string"
12816
+ },
12817
+ "recipient": {
12818
+ "type": "string"
12819
+ },
12820
+ "userId": {
12821
+ "type": "string"
12822
+ },
12823
+ "deliveryBoxId": {
12824
+ "type": "string"
12825
+ },
12826
+ "zipCode": {
12827
+ "type": "string"
12828
+ },
12829
+ "city": {
12830
+ "type": "string"
12831
+ },
12832
+ "country": {
12833
+ "type": "string"
12834
+ },
12835
+ "phoneNumber": {
12836
+ "type": "string"
12837
+ },
12838
+ "state": {
12839
+ "type": "string"
12840
+ }
12841
+ },
12842
+ "required": [
12843
+ "@type",
12844
+ "city",
12845
+ "country",
12846
+ "deliveryBoxId",
12847
+ "recipient",
12848
+ "userId",
12849
+ "zipCode"
12850
+ ],
12851
+ "additionalProperties": false
12852
+ },
12853
+ "DisplayNameJSON": {
12854
+ "type": "object",
12855
+ "properties": {
12856
+ "@type": {
12857
+ "type": "string",
12858
+ "const": "DisplayName"
12859
+ },
12860
+ "@context": {
12861
+ "type": "string"
12862
+ },
12863
+ "@version": {
12864
+ "type": "string"
12865
+ },
12866
+ "value": {
12867
+ "type": "string"
12868
+ }
12869
+ },
12870
+ "required": [
12871
+ "@type",
12872
+ "value"
12873
+ ],
12874
+ "additionalProperties": false
12875
+ },
12876
+ "EMailAddressJSON": {
12877
+ "type": "object",
12878
+ "properties": {
12879
+ "@type": {
12880
+ "type": "string",
12881
+ "const": "EMailAddress"
12882
+ },
12883
+ "@context": {
12884
+ "type": "string"
12885
+ },
12886
+ "@version": {
12887
+ "type": "string"
12888
+ },
12889
+ "value": {
12890
+ "type": "string"
12891
+ }
12892
+ },
12893
+ "required": [
12894
+ "@type",
12895
+ "value"
12896
+ ],
12897
+ "additionalProperties": false
12898
+ },
12899
+ "FaxNumberJSON": {
12900
+ "type": "object",
12901
+ "properties": {
12902
+ "@type": {
12903
+ "type": "string",
12904
+ "const": "FaxNumber"
12905
+ },
12906
+ "@context": {
12907
+ "type": "string"
12908
+ },
12909
+ "@version": {
12910
+ "type": "string"
12911
+ },
12912
+ "value": {
12913
+ "type": "string"
12914
+ }
12915
+ },
12916
+ "required": [
12917
+ "@type",
12918
+ "value"
12919
+ ],
12920
+ "additionalProperties": false
12921
+ },
12922
+ "FileReferenceJSON": {
12923
+ "type": "object",
12924
+ "properties": {
12925
+ "@type": {
12926
+ "type": "string",
12927
+ "const": "FileReference"
12928
+ },
12929
+ "@context": {
12930
+ "type": "string"
12931
+ },
12932
+ "@version": {
12933
+ "type": "string"
12934
+ },
12935
+ "value": {
12936
+ "type": "string"
12937
+ }
12938
+ },
12939
+ "required": [
12940
+ "@type",
12941
+ "value"
12942
+ ],
12943
+ "additionalProperties": false
12944
+ },
12945
+ "JobTitleJSON": {
12946
+ "type": "object",
12947
+ "properties": {
12948
+ "@type": {
12949
+ "type": "string",
12950
+ "const": "JobTitle"
12951
+ },
12952
+ "@context": {
12953
+ "type": "string"
12954
+ },
12955
+ "@version": {
12956
+ "type": "string"
12957
+ },
12958
+ "value": {
12959
+ "type": "string"
12960
+ }
12961
+ },
12962
+ "required": [
12963
+ "@type",
12964
+ "value"
12965
+ ],
12966
+ "additionalProperties": false
12967
+ },
12968
+ "NationalityJSON": {
12969
+ "type": "object",
12970
+ "properties": {
12971
+ "@type": {
12972
+ "type": "string",
12973
+ "const": "Nationality"
12974
+ },
12975
+ "@context": {
12976
+ "type": "string"
12977
+ },
12978
+ "@version": {
12979
+ "type": "string"
12980
+ },
12981
+ "value": {
12982
+ "type": "string"
12983
+ }
12984
+ },
12985
+ "required": [
12986
+ "@type",
12987
+ "value"
12988
+ ],
12989
+ "additionalProperties": false
12990
+ },
12991
+ "PersonNameJSON": {
12992
+ "type": "object",
12993
+ "properties": {
12994
+ "@type": {
12995
+ "type": "string",
12996
+ "const": "PersonName"
12997
+ },
12998
+ "@context": {
12999
+ "type": "string"
13000
+ },
13001
+ "@version": {
13002
+ "type": "string"
13003
+ },
13004
+ "givenName": {
13005
+ "type": "string"
13006
+ },
13007
+ "middleName": {
13008
+ "type": "string"
13009
+ },
13010
+ "surname": {
13011
+ "type": "string"
13012
+ },
13013
+ "honorificSuffix": {
13014
+ "type": "string"
13015
+ },
13016
+ "honorificPrefix": {
13017
+ "type": "string"
13018
+ }
13019
+ },
13020
+ "required": [
13021
+ "@type",
13022
+ "givenName",
13023
+ "surname"
13024
+ ],
13025
+ "additionalProperties": false
13026
+ },
13027
+ "PhoneNumberJSON": {
13028
+ "type": "object",
13029
+ "properties": {
13030
+ "@type": {
13031
+ "type": "string",
13032
+ "const": "PhoneNumber"
13033
+ },
13034
+ "@context": {
13035
+ "type": "string"
13036
+ },
13037
+ "@version": {
13038
+ "type": "string"
13039
+ },
13040
+ "value": {
13041
+ "type": "string"
13042
+ }
13043
+ },
13044
+ "required": [
13045
+ "@type",
13046
+ "value"
13047
+ ],
13048
+ "additionalProperties": false
13049
+ },
13050
+ "PostOfficeBoxAddressJSON": {
13051
+ "type": "object",
13052
+ "properties": {
13053
+ "@type": {
13054
+ "type": "string",
13055
+ "const": "PostOfficeBoxAddress"
13056
+ },
13057
+ "@context": {
13058
+ "type": "string"
13059
+ },
13060
+ "@version": {
13061
+ "type": "string"
13062
+ },
13063
+ "recipient": {
13064
+ "type": "string"
13065
+ },
13066
+ "boxId": {
13067
+ "type": "string"
13068
+ },
13069
+ "zipCode": {
13070
+ "type": "string"
13071
+ },
13072
+ "city": {
13073
+ "type": "string"
13074
+ },
13075
+ "country": {
13076
+ "type": "string"
13077
+ },
13078
+ "state": {
13079
+ "type": "string"
13080
+ }
13081
+ },
13082
+ "required": [
13083
+ "@type",
13084
+ "boxId",
13085
+ "city",
13086
+ "country",
13087
+ "recipient",
13088
+ "zipCode"
13089
+ ],
13090
+ "additionalProperties": false
13091
+ },
13092
+ "PseudonymJSON": {
13093
+ "type": "object",
13094
+ "properties": {
13095
+ "@type": {
13096
+ "type": "string",
13097
+ "const": "Pseudonym"
13098
+ },
13099
+ "@context": {
13100
+ "type": "string"
13101
+ },
13102
+ "@version": {
13103
+ "type": "string"
13104
+ },
13105
+ "value": {
13106
+ "type": "string"
13107
+ }
13108
+ },
13109
+ "required": [
13110
+ "@type",
13111
+ "value"
13112
+ ],
13113
+ "additionalProperties": false
13114
+ },
13115
+ "SexJSON": {
13116
+ "type": "object",
13117
+ "properties": {
13118
+ "@type": {
13119
+ "type": "string",
13120
+ "const": "Sex"
13121
+ },
13122
+ "@context": {
13123
+ "type": "string"
13124
+ },
13125
+ "@version": {
13126
+ "type": "string"
13127
+ },
13128
+ "value": {
13129
+ "type": "string"
13130
+ }
13131
+ },
13132
+ "required": [
13133
+ "@type",
13134
+ "value"
13135
+ ],
13136
+ "additionalProperties": false
13137
+ },
13138
+ "StreetAddressJSON": {
13139
+ "type": "object",
13140
+ "properties": {
13141
+ "@type": {
13142
+ "type": "string",
13143
+ "const": "StreetAddress"
13144
+ },
13145
+ "@context": {
13146
+ "type": "string"
13147
+ },
13148
+ "@version": {
13149
+ "type": "string"
13150
+ },
13151
+ "recipient": {
13152
+ "type": "string"
13153
+ },
13154
+ "street": {
13155
+ "type": "string"
13156
+ },
13157
+ "houseNo": {
13158
+ "type": "string"
13159
+ },
13160
+ "zipCode": {
13161
+ "type": "string"
13162
+ },
13163
+ "city": {
13164
+ "type": "string"
13165
+ },
13166
+ "country": {
13167
+ "type": "string"
13168
+ },
13169
+ "state": {
13170
+ "type": "string"
13171
+ }
13172
+ },
13173
+ "required": [
13174
+ "@type",
13175
+ "city",
13176
+ "country",
13177
+ "houseNo",
13178
+ "recipient",
13179
+ "street",
13180
+ "zipCode"
13181
+ ],
13182
+ "additionalProperties": false
13183
+ },
13184
+ "WebsiteJSON": {
13185
+ "type": "object",
13186
+ "properties": {
13187
+ "@type": {
13188
+ "type": "string",
13189
+ "const": "Website"
13190
+ },
13191
+ "@context": {
13192
+ "type": "string"
13193
+ },
13194
+ "@version": {
13195
+ "type": "string"
13196
+ },
13197
+ "value": {
13198
+ "type": "string"
13199
+ }
13200
+ },
13201
+ "required": [
13202
+ "@type",
13203
+ "value"
13204
+ ],
13205
+ "additionalProperties": false
13206
+ },
13207
+ "AttributeValues.Identity.Uneditable.Json": {
13208
+ "anyOf": [
13209
+ {
13210
+ "$ref": "#/definitions/AffiliationOrganizationJSON"
13211
+ },
13212
+ {
13213
+ "$ref": "#/definitions/AffiliationRoleJSON"
13214
+ },
13215
+ {
13216
+ "$ref": "#/definitions/AffiliationUnitJSON"
13217
+ },
13218
+ {
13219
+ "$ref": "#/definitions/BirthCityJSON"
13220
+ },
13221
+ {
13222
+ "$ref": "#/definitions/BirthCountryJSON"
13223
+ },
13224
+ {
13225
+ "$ref": "#/definitions/BirthDayJSON"
13226
+ },
13227
+ {
13228
+ "$ref": "#/definitions/BirthMonthJSON"
13229
+ },
13230
+ {
13231
+ "$ref": "#/definitions/BirthStateJSON"
13232
+ },
13233
+ {
13234
+ "$ref": "#/definitions/BirthYearJSON"
13235
+ },
13236
+ {
13237
+ "$ref": "#/definitions/CityJSON"
13238
+ },
13239
+ {
13240
+ "$ref": "#/definitions/CountryJSON"
13241
+ },
13242
+ {
13243
+ "$ref": "#/definitions/GivenNameJSON"
13244
+ },
13245
+ {
13246
+ "$ref": "#/definitions/HonorificPrefixJSON"
13247
+ },
13248
+ {
13249
+ "$ref": "#/definitions/HonorificSuffixJSON"
13250
+ },
13251
+ {
13252
+ "$ref": "#/definitions/HouseNumberJSON"
13253
+ },
13254
+ {
13255
+ "$ref": "#/definitions/MiddleNameJSON"
13256
+ },
13257
+ {
13258
+ "$ref": "#/definitions/StateJSON"
13259
+ },
13260
+ {
13261
+ "$ref": "#/definitions/StreetJSON"
13262
+ },
13263
+ {
13264
+ "$ref": "#/definitions/SurnameJSON"
13265
+ },
13266
+ {
13267
+ "$ref": "#/definitions/ZipCodeJSON"
13268
+ }
13269
+ ]
13270
+ },
13271
+ "AffiliationOrganizationJSON": {
13272
+ "type": "object",
13273
+ "properties": {
13274
+ "@type": {
13275
+ "type": "string",
13276
+ "const": "AffiliationOrganization"
13277
+ },
13278
+ "@context": {
13279
+ "type": "string"
13280
+ },
13281
+ "@version": {
13282
+ "type": "string"
13283
+ },
13284
+ "value": {
13285
+ "type": "string"
13286
+ }
13287
+ },
13288
+ "required": [
13289
+ "@type",
13290
+ "value"
13291
+ ],
13292
+ "additionalProperties": false
13293
+ },
13294
+ "AffiliationRoleJSON": {
13295
+ "type": "object",
13296
+ "properties": {
13297
+ "@type": {
13298
+ "type": "string",
13299
+ "const": "AffiliationRole"
13300
+ },
13301
+ "@context": {
13302
+ "type": "string"
13303
+ },
13304
+ "@version": {
13305
+ "type": "string"
13306
+ },
13307
+ "value": {
13308
+ "type": "string"
13309
+ }
13310
+ },
13311
+ "required": [
13312
+ "@type",
13313
+ "value"
13314
+ ],
13315
+ "additionalProperties": false
13316
+ },
13317
+ "AffiliationUnitJSON": {
13318
+ "type": "object",
13319
+ "properties": {
13320
+ "@type": {
13321
+ "type": "string",
13322
+ "const": "AffiliationUnit"
13323
+ },
13324
+ "@context": {
13325
+ "type": "string"
13326
+ },
13327
+ "@version": {
13328
+ "type": "string"
13329
+ },
13330
+ "value": {
13331
+ "type": "string"
13332
+ }
13333
+ },
13334
+ "required": [
13335
+ "@type",
13336
+ "value"
13337
+ ],
13338
+ "additionalProperties": false
13339
+ },
13340
+ "BirthCityJSON": {
13341
+ "type": "object",
13342
+ "properties": {
13343
+ "value": {
13344
+ "type": "string"
13345
+ },
13346
+ "@context": {
13347
+ "type": "string"
13348
+ },
13349
+ "@version": {
13350
+ "type": "string"
13351
+ },
13352
+ "@type": {
13353
+ "type": "string",
13354
+ "const": "BirthCity"
13355
+ }
13356
+ },
13357
+ "required": [
13358
+ "@type",
13359
+ "value"
13360
+ ],
13361
+ "additionalProperties": false
13362
+ },
13363
+ "BirthCountryJSON": {
13364
+ "type": "object",
13365
+ "properties": {
13366
+ "value": {
13367
+ "type": "string"
13368
+ },
13369
+ "@context": {
13370
+ "type": "string"
13371
+ },
13372
+ "@version": {
13373
+ "type": "string"
13374
+ },
13375
+ "@type": {
13376
+ "type": "string",
13377
+ "const": "BirthCountry"
13378
+ }
13379
+ },
13380
+ "required": [
13381
+ "@type",
13382
+ "value"
13383
+ ],
13384
+ "additionalProperties": false
13385
+ },
13386
+ "BirthDayJSON": {
13387
+ "type": "object",
13388
+ "properties": {
13389
+ "@type": {
13390
+ "type": "string",
13391
+ "const": "BirthDay"
13392
+ },
13393
+ "@context": {
13394
+ "type": "string"
13395
+ },
13396
+ "@version": {
13397
+ "type": "string"
13398
+ },
13399
+ "value": {
13400
+ "type": "number"
13401
+ }
13402
+ },
13403
+ "required": [
13404
+ "@type",
13405
+ "value"
13406
+ ],
13407
+ "additionalProperties": false
13408
+ },
13409
+ "BirthMonthJSON": {
13410
+ "type": "object",
13411
+ "properties": {
13412
+ "@type": {
13413
+ "type": "string",
13414
+ "const": "BirthMonth"
13415
+ },
13416
+ "@context": {
13417
+ "type": "string"
13418
+ },
13419
+ "@version": {
13420
+ "type": "string"
13421
+ },
13422
+ "value": {
13423
+ "type": "number",
13424
+ "enum": [
13425
+ 1,
13426
+ 2,
13427
+ 3,
13428
+ 4,
13429
+ 5,
13430
+ 6,
13431
+ 7,
13432
+ 8,
13433
+ 9,
13434
+ 10,
13435
+ 11,
13436
+ 12
13437
+ ],
13438
+ "description": "Month values: 1 (january) - 12 (december)"
13439
+ }
13440
+ },
13441
+ "required": [
13442
+ "@type",
13443
+ "value"
13444
+ ],
13445
+ "additionalProperties": false
13446
+ },
13447
+ "BirthStateJSON": {
13448
+ "type": "object",
13449
+ "properties": {
13450
+ "value": {
13451
+ "type": "string"
13452
+ },
13453
+ "@context": {
13454
+ "type": "string"
13455
+ },
13456
+ "@version": {
13457
+ "type": "string"
13458
+ },
13459
+ "@type": {
13460
+ "type": "string",
13461
+ "const": "BirthState"
13462
+ }
13463
+ },
13464
+ "required": [
13465
+ "@type",
13466
+ "value"
13467
+ ],
13468
+ "additionalProperties": false
13469
+ },
13470
+ "BirthYearJSON": {
13471
+ "type": "object",
13472
+ "properties": {
13473
+ "@type": {
13474
+ "type": "string",
13475
+ "const": "BirthYear"
13476
+ },
13477
+ "@context": {
13478
+ "type": "string"
13479
+ },
13480
+ "@version": {
13481
+ "type": "string"
13482
+ },
13483
+ "value": {
13484
+ "type": "number"
13485
+ }
13486
+ },
13487
+ "required": [
13488
+ "@type",
13489
+ "value"
13490
+ ],
13491
+ "additionalProperties": false
13492
+ },
13493
+ "CityJSON": {
13494
+ "type": "object",
13495
+ "properties": {
13496
+ "@type": {
13497
+ "type": "string",
13498
+ "const": "City"
13499
+ },
13500
+ "@context": {
13501
+ "type": "string"
13502
+ },
13503
+ "@version": {
13504
+ "type": "string"
13505
+ },
13506
+ "value": {
13507
+ "type": "string"
13508
+ }
13509
+ },
13510
+ "required": [
13511
+ "@type",
13512
+ "value"
13513
+ ],
13514
+ "additionalProperties": false
13515
+ },
13516
+ "CountryJSON": {
13517
+ "type": "object",
13518
+ "properties": {
13519
+ "@type": {
13520
+ "type": "string",
13521
+ "const": "Country"
13522
+ },
13523
+ "@context": {
13524
+ "type": "string"
13525
+ },
13526
+ "@version": {
13527
+ "type": "string"
13528
+ },
13529
+ "value": {
13530
+ "type": "string"
13531
+ }
13532
+ },
13533
+ "required": [
13534
+ "@type",
13535
+ "value"
13536
+ ],
13537
+ "additionalProperties": false
13538
+ },
13539
+ "GivenNameJSON": {
13540
+ "type": "object",
13541
+ "properties": {
13542
+ "@type": {
13543
+ "type": "string",
13544
+ "const": "GivenName"
13545
+ },
13546
+ "@context": {
13547
+ "type": "string"
13548
+ },
13549
+ "@version": {
13550
+ "type": "string"
13551
+ },
13552
+ "value": {
13553
+ "type": "string"
13554
+ }
13555
+ },
13556
+ "required": [
13557
+ "@type",
13558
+ "value"
13559
+ ],
13560
+ "additionalProperties": false
13561
+ },
13562
+ "HonorificPrefixJSON": {
13563
+ "type": "object",
13564
+ "properties": {
13565
+ "@type": {
13566
+ "type": "string",
13567
+ "const": "HonorificPrefix"
13568
+ },
13569
+ "@context": {
13570
+ "type": "string"
13571
+ },
13572
+ "@version": {
13573
+ "type": "string"
13574
+ },
13575
+ "value": {
13576
+ "type": "string"
13577
+ }
13578
+ },
13579
+ "required": [
13580
+ "@type",
13581
+ "value"
13582
+ ],
13583
+ "additionalProperties": false
13584
+ },
13585
+ "HonorificSuffixJSON": {
13586
+ "type": "object",
13587
+ "properties": {
13588
+ "@type": {
13589
+ "type": "string",
13590
+ "const": "HonorificSuffix"
13591
+ },
13592
+ "@context": {
13593
+ "type": "string"
13594
+ },
13595
+ "@version": {
13596
+ "type": "string"
13597
+ },
13598
+ "value": {
13599
+ "type": "string"
13600
+ }
13601
+ },
13602
+ "required": [
13603
+ "@type",
13604
+ "value"
13605
+ ],
13606
+ "additionalProperties": false
13607
+ },
13608
+ "HouseNumberJSON": {
13609
+ "type": "object",
13610
+ "properties": {
13611
+ "@type": {
13612
+ "type": "string",
13613
+ "const": "HouseNumber"
13614
+ },
13615
+ "@context": {
13616
+ "type": "string"
13617
+ },
13618
+ "@version": {
13619
+ "type": "string"
13620
+ },
13621
+ "value": {
13622
+ "type": "string"
13623
+ }
13624
+ },
13625
+ "required": [
13626
+ "@type",
13627
+ "value"
13628
+ ],
13629
+ "additionalProperties": false
13630
+ },
13631
+ "MiddleNameJSON": {
13632
+ "type": "object",
13633
+ "properties": {
13634
+ "@type": {
13635
+ "type": "string",
13636
+ "const": "MiddleName"
13637
+ },
13638
+ "@context": {
13639
+ "type": "string"
13640
+ },
13641
+ "@version": {
13642
+ "type": "string"
13643
+ },
13644
+ "value": {
13645
+ "type": "string"
13646
+ }
13647
+ },
13648
+ "required": [
13649
+ "@type",
13650
+ "value"
13651
+ ],
13652
+ "additionalProperties": false
13653
+ },
13654
+ "StateJSON": {
13655
+ "type": "object",
13656
+ "properties": {
13657
+ "@type": {
13658
+ "type": "string",
13659
+ "const": "State"
13660
+ },
13661
+ "@context": {
13662
+ "type": "string"
13663
+ },
13664
+ "@version": {
13665
+ "type": "string"
13666
+ },
13667
+ "value": {
13668
+ "type": "string"
13669
+ }
13670
+ },
13671
+ "required": [
13672
+ "@type",
13673
+ "value"
13674
+ ],
13675
+ "additionalProperties": false
13676
+ },
13677
+ "StreetJSON": {
13678
+ "type": "object",
13679
+ "properties": {
13680
+ "@type": {
13681
+ "type": "string",
13682
+ "const": "Street"
13683
+ },
13684
+ "@context": {
13685
+ "type": "string"
13686
+ },
13687
+ "@version": {
13688
+ "type": "string"
13689
+ },
13690
+ "value": {
13691
+ "type": "string"
13692
+ }
13693
+ },
13694
+ "required": [
13695
+ "@type",
13696
+ "value"
13697
+ ],
13698
+ "additionalProperties": false
13699
+ },
13700
+ "SurnameJSON": {
13701
+ "type": "object",
13702
+ "properties": {
13703
+ "@type": {
13704
+ "type": "string",
13705
+ "const": "Surname"
13706
+ },
13707
+ "@context": {
13708
+ "type": "string"
13709
+ },
13710
+ "@version": {
13711
+ "type": "string"
13712
+ },
13713
+ "value": {
13714
+ "type": "string"
13715
+ }
13716
+ },
13717
+ "required": [
13718
+ "@type",
13719
+ "value"
13720
+ ],
13721
+ "additionalProperties": false
13722
+ },
13723
+ "ZipCodeJSON": {
13724
+ "type": "object",
13725
+ "properties": {
13726
+ "@type": {
13727
+ "type": "string",
13728
+ "const": "ZipCode"
13729
+ },
13730
+ "@context": {
13731
+ "type": "string"
13732
+ },
13733
+ "@version": {
13734
+ "type": "string"
13735
+ },
13736
+ "value": {
13737
+ "type": "string"
13738
+ }
13739
+ },
13740
+ "required": [
13741
+ "@type",
13742
+ "value"
13743
+ ],
13744
+ "additionalProperties": false
13745
+ },
13746
+ "RelationshipAttributeJSON": {
13747
+ "type": "object",
13748
+ "properties": {
13749
+ "@type": {
13750
+ "type": "string",
13751
+ "const": "RelationshipAttribute"
13752
+ },
13753
+ "@context": {
13754
+ "type": "string"
13755
+ },
13756
+ "@version": {
13757
+ "type": "string"
13758
+ },
13759
+ "owner": {
13760
+ "type": "string"
13761
+ },
13762
+ "validFrom": {
13763
+ "type": "string"
13764
+ },
13765
+ "validTo": {
13766
+ "type": "string"
13767
+ },
13768
+ "value": {
13769
+ "$ref": "#/definitions/AttributeValues.Relationship.Json"
13770
+ },
13771
+ "key": {
13772
+ "type": "string"
13773
+ },
13774
+ "isTechnical": {
13775
+ "type": "boolean"
13776
+ },
13777
+ "confidentiality": {
13778
+ "$ref": "#/definitions/RelationshipAttributeConfidentiality"
13779
+ }
13780
+ },
13781
+ "required": [
13782
+ "@type",
13783
+ "confidentiality",
13784
+ "key",
13785
+ "owner",
13786
+ "value"
13787
+ ],
13788
+ "additionalProperties": false
13789
+ },
13790
+ "AttributeValues.Relationship.Json": {
13791
+ "anyOf": [
13792
+ {
13793
+ "$ref": "#/definitions/ProprietaryBooleanJSON"
13794
+ },
13795
+ {
13796
+ "$ref": "#/definitions/ProprietaryCountryJSON"
13797
+ },
13798
+ {
13799
+ "$ref": "#/definitions/ProprietaryEMailAddressJSON"
13800
+ },
13801
+ {
13802
+ "$ref": "#/definitions/ProprietaryFileReferenceJSON"
13803
+ },
13804
+ {
13805
+ "$ref": "#/definitions/ProprietaryFloatJSON"
13806
+ },
13807
+ {
13808
+ "$ref": "#/definitions/ProprietaryHEXColorJSON"
13809
+ },
13810
+ {
13811
+ "$ref": "#/definitions/ProprietaryIntegerJSON"
13812
+ },
13813
+ {
13814
+ "$ref": "#/definitions/ProprietaryLanguageJSON"
13815
+ },
13816
+ {
13817
+ "$ref": "#/definitions/ProprietaryPhoneNumberJSON"
13818
+ },
13819
+ {
13820
+ "$ref": "#/definitions/ProprietaryStringJSON"
13821
+ },
13822
+ {
13823
+ "$ref": "#/definitions/ProprietaryURLJSON"
13824
+ },
13825
+ {
13826
+ "$ref": "#/definitions/ProprietaryJSONJSON"
13827
+ },
13828
+ {
13829
+ "$ref": "#/definitions/ConsentJSON"
13830
+ }
13831
+ ]
13832
+ },
13833
+ "ProprietaryBooleanJSON": {
13834
+ "type": "object",
13835
+ "properties": {
13836
+ "@type": {
13837
+ "type": "string",
13838
+ "const": "ProprietaryBoolean"
13839
+ },
13840
+ "@context": {
13841
+ "type": "string"
13842
+ },
13843
+ "@version": {
13844
+ "type": "string"
13845
+ },
13846
+ "value": {
13847
+ "type": "boolean"
13848
+ },
13849
+ "title": {
13850
+ "type": "string"
13851
+ },
13852
+ "description": {
13853
+ "type": "string"
13854
+ },
13855
+ "valueHintsOverride": {
13856
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
13857
+ }
13858
+ },
13859
+ "required": [
13860
+ "@type",
13861
+ "title",
13862
+ "value"
13863
+ ],
13864
+ "additionalProperties": false
13865
+ },
13866
+ "ValueHintsOverrideJSON": {
13867
+ "type": "object",
13868
+ "additionalProperties": false,
13869
+ "properties": {
13870
+ "@type": {
13871
+ "type": "string",
13872
+ "const": "ValueHints"
13873
+ },
13874
+ "editHelp": {
13875
+ "type": "string"
13876
+ },
13877
+ "min": {
13878
+ "type": "number"
13879
+ },
13880
+ "max": {
13881
+ "type": "number"
13882
+ },
13883
+ "pattern": {
13884
+ "type": "string"
13885
+ },
13886
+ "values": {
13887
+ "type": "array",
13888
+ "items": {
13889
+ "$ref": "#/definitions/ValueHintsValueJSON"
13890
+ }
13891
+ },
13892
+ "defaultValue": {
13893
+ "type": [
13894
+ "string",
13895
+ "number",
13896
+ "boolean"
13897
+ ]
13898
+ },
13899
+ "propertyHints": {
13900
+ "type": "object",
13901
+ "additionalProperties": {
13902
+ "$ref": "#/definitions/ValueHintsJSON"
13903
+ }
13904
+ },
13905
+ "@context": {
13906
+ "type": "string"
13907
+ },
13908
+ "@version": {
13909
+ "type": "string"
13910
+ }
13911
+ }
13912
+ },
13913
+ "ValueHintsValueJSON": {
13914
+ "type": "object",
13915
+ "properties": {
13916
+ "key": {
13917
+ "type": [
13918
+ "string",
13919
+ "number",
13920
+ "boolean"
13921
+ ]
13922
+ },
13923
+ "displayName": {
13924
+ "type": "string"
13925
+ }
13926
+ },
13927
+ "required": [
13928
+ "key",
13929
+ "displayName"
13930
+ ],
13931
+ "additionalProperties": false
13932
+ },
13933
+ "ValueHintsJSON": {
13934
+ "type": "object",
13935
+ "properties": {
13936
+ "@type": {
13937
+ "type": "string",
13938
+ "const": "ValueHints"
13939
+ },
13940
+ "@context": {
13941
+ "type": "string"
13942
+ },
13943
+ "@version": {
13944
+ "type": "string"
13945
+ },
13946
+ "editHelp": {
13947
+ "type": "string"
13948
+ },
13949
+ "min": {
13950
+ "type": "number"
13951
+ },
13952
+ "max": {
13953
+ "type": "number"
13954
+ },
13955
+ "pattern": {
13956
+ "type": "string"
13957
+ },
13958
+ "values": {
13959
+ "type": "array",
13960
+ "items": {
13961
+ "$ref": "#/definitions/ValueHintsValueJSON"
13962
+ }
13963
+ },
13964
+ "defaultValue": {
13965
+ "type": [
13966
+ "string",
13967
+ "number",
13968
+ "boolean"
13969
+ ]
13970
+ },
13971
+ "propertyHints": {
13972
+ "type": "object",
13973
+ "additionalProperties": {
13974
+ "$ref": "#/definitions/ValueHintsJSON"
13975
+ }
13976
+ }
13977
+ },
13978
+ "required": [
13979
+ "@type"
13980
+ ],
13981
+ "additionalProperties": false
13982
+ },
13983
+ "ProprietaryCountryJSON": {
13984
+ "type": "object",
13985
+ "properties": {
13986
+ "@type": {
13987
+ "type": "string",
13988
+ "const": "ProprietaryCountry"
13989
+ },
13990
+ "@context": {
13991
+ "type": "string"
13992
+ },
13993
+ "@version": {
13994
+ "type": "string"
13995
+ },
13996
+ "value": {
13997
+ "type": "string"
13998
+ },
13999
+ "title": {
14000
+ "type": "string"
14001
+ },
14002
+ "description": {
14003
+ "type": "string"
14004
+ },
14005
+ "valueHintsOverride": {
14006
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
14007
+ }
14008
+ },
14009
+ "required": [
14010
+ "@type",
14011
+ "title",
14012
+ "value"
14013
+ ],
14014
+ "additionalProperties": false
14015
+ },
14016
+ "ProprietaryEMailAddressJSON": {
14017
+ "type": "object",
14018
+ "properties": {
14019
+ "@type": {
14020
+ "type": "string",
14021
+ "const": "ProprietaryEMailAddress"
14022
+ },
14023
+ "@context": {
14024
+ "type": "string"
14025
+ },
14026
+ "@version": {
14027
+ "type": "string"
14028
+ },
14029
+ "value": {
14030
+ "type": "string"
14031
+ },
14032
+ "title": {
14033
+ "type": "string"
14034
+ },
14035
+ "description": {
14036
+ "type": "string"
14037
+ },
14038
+ "valueHintsOverride": {
14039
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
14040
+ }
14041
+ },
14042
+ "required": [
14043
+ "@type",
14044
+ "title",
14045
+ "value"
14046
+ ],
14047
+ "additionalProperties": false
14048
+ },
14049
+ "ProprietaryFileReferenceJSON": {
14050
+ "type": "object",
14051
+ "properties": {
14052
+ "@type": {
14053
+ "type": "string",
14054
+ "const": "ProprietaryFileReference"
14055
+ },
14056
+ "@context": {
14057
+ "type": "string"
14058
+ },
14059
+ "@version": {
14060
+ "type": "string"
14061
+ },
14062
+ "value": {
14063
+ "type": "string"
14064
+ },
14065
+ "title": {
14066
+ "type": "string"
14067
+ },
14068
+ "description": {
14069
+ "type": "string"
14070
+ },
14071
+ "valueHintsOverride": {
14072
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
14073
+ }
14074
+ },
14075
+ "required": [
14076
+ "@type",
14077
+ "title",
14078
+ "value"
14079
+ ],
14080
+ "additionalProperties": false
14081
+ },
14082
+ "ProprietaryFloatJSON": {
14083
+ "type": "object",
14084
+ "properties": {
14085
+ "@type": {
14086
+ "type": "string",
14087
+ "const": "ProprietaryFloat"
14088
+ },
14089
+ "@context": {
14090
+ "type": "string"
14091
+ },
14092
+ "@version": {
14093
+ "type": "string"
14094
+ },
14095
+ "value": {
14096
+ "type": "number"
14097
+ },
14098
+ "title": {
14099
+ "type": "string"
14100
+ },
14101
+ "description": {
14102
+ "type": "string"
14103
+ },
14104
+ "valueHintsOverride": {
14105
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
14106
+ }
14107
+ },
14108
+ "required": [
14109
+ "@type",
14110
+ "title",
14111
+ "value"
14112
+ ],
14113
+ "additionalProperties": false
14114
+ },
14115
+ "ProprietaryHEXColorJSON": {
14116
+ "type": "object",
14117
+ "properties": {
14118
+ "@type": {
14119
+ "type": "string",
14120
+ "const": "ProprietaryHEXColor"
14121
+ },
14122
+ "@context": {
14123
+ "type": "string"
14124
+ },
14125
+ "@version": {
14126
+ "type": "string"
14127
+ },
14128
+ "value": {
14129
+ "type": "string"
14130
+ },
14131
+ "title": {
14132
+ "type": "string"
14133
+ },
14134
+ "description": {
14135
+ "type": "string"
14136
+ },
14137
+ "valueHintsOverride": {
14138
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
14139
+ }
14140
+ },
14141
+ "required": [
14142
+ "@type",
14143
+ "title",
14144
+ "value"
14145
+ ],
14146
+ "additionalProperties": false
14147
+ },
14148
+ "ProprietaryIntegerJSON": {
14149
+ "type": "object",
14150
+ "properties": {
14151
+ "@type": {
14152
+ "type": "string",
14153
+ "const": "ProprietaryInteger"
14154
+ },
14155
+ "@context": {
14156
+ "type": "string"
14157
+ },
14158
+ "@version": {
14159
+ "type": "string"
14160
+ },
14161
+ "value": {
14162
+ "type": "number"
14163
+ },
14164
+ "title": {
14165
+ "type": "string"
14166
+ },
14167
+ "description": {
14168
+ "type": "string"
14169
+ },
14170
+ "valueHintsOverride": {
14171
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
14172
+ }
14173
+ },
14174
+ "required": [
14175
+ "@type",
14176
+ "title",
14177
+ "value"
14178
+ ],
14179
+ "additionalProperties": false
14180
+ },
14181
+ "ProprietaryLanguageJSON": {
14182
+ "type": "object",
14183
+ "properties": {
14184
+ "@type": {
14185
+ "type": "string",
14186
+ "const": "ProprietaryLanguage"
14187
+ },
14188
+ "@context": {
14189
+ "type": "string"
14190
+ },
14191
+ "@version": {
14192
+ "type": "string"
14193
+ },
14194
+ "value": {
14195
+ "type": "string"
14196
+ },
14197
+ "title": {
14198
+ "type": "string"
14199
+ },
14200
+ "description": {
14201
+ "type": "string"
14202
+ },
14203
+ "valueHintsOverride": {
14204
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
14205
+ }
14206
+ },
14207
+ "required": [
14208
+ "@type",
14209
+ "title",
14210
+ "value"
14211
+ ],
14212
+ "additionalProperties": false
14213
+ },
14214
+ "ProprietaryPhoneNumberJSON": {
14215
+ "type": "object",
14216
+ "properties": {
14217
+ "@type": {
14218
+ "type": "string",
14219
+ "const": "ProprietaryPhoneNumber"
14220
+ },
14221
+ "@context": {
14222
+ "type": "string"
14223
+ },
14224
+ "@version": {
14225
+ "type": "string"
14226
+ },
14227
+ "value": {
14228
+ "type": "string"
14229
+ },
14230
+ "title": {
14231
+ "type": "string"
14232
+ },
14233
+ "description": {
14234
+ "type": "string"
14235
+ },
14236
+ "valueHintsOverride": {
14237
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
14238
+ }
14239
+ },
14240
+ "required": [
14241
+ "@type",
14242
+ "title",
14243
+ "value"
14244
+ ],
14245
+ "additionalProperties": false
14246
+ },
14247
+ "ProprietaryStringJSON": {
14248
+ "type": "object",
14249
+ "properties": {
14250
+ "@type": {
14251
+ "type": "string",
14252
+ "const": "ProprietaryString"
14253
+ },
14254
+ "@context": {
14255
+ "type": "string"
14256
+ },
14257
+ "@version": {
14258
+ "type": "string"
14259
+ },
14260
+ "value": {
14261
+ "type": "string"
14262
+ },
14263
+ "title": {
14264
+ "type": "string"
14265
+ },
14266
+ "description": {
14267
+ "type": "string"
14268
+ },
14269
+ "valueHintsOverride": {
14270
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
14271
+ }
14272
+ },
14273
+ "required": [
14274
+ "@type",
14275
+ "title",
14276
+ "value"
14277
+ ],
14278
+ "additionalProperties": false
14279
+ },
14280
+ "ProprietaryURLJSON": {
14281
+ "type": "object",
14282
+ "properties": {
14283
+ "@type": {
14284
+ "type": "string",
14285
+ "const": "ProprietaryURL"
14286
+ },
14287
+ "@context": {
14288
+ "type": "string"
14289
+ },
14290
+ "@version": {
14291
+ "type": "string"
14292
+ },
14293
+ "value": {
14294
+ "type": "string"
14295
+ },
14296
+ "title": {
14297
+ "type": "string"
14298
+ },
14299
+ "description": {
14300
+ "type": "string"
14301
+ },
14302
+ "valueHintsOverride": {
14303
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
14304
+ }
14305
+ },
14306
+ "required": [
14307
+ "@type",
14308
+ "title",
14309
+ "value"
14310
+ ],
14311
+ "additionalProperties": false
14312
+ },
14313
+ "ProprietaryJSONJSON": {
14314
+ "type": "object",
14315
+ "properties": {
14316
+ "@type": {
14317
+ "type": "string",
14318
+ "const": "ProprietaryJSON"
14319
+ },
14320
+ "@context": {
14321
+ "type": "string"
14322
+ },
14323
+ "@version": {
14324
+ "type": "string"
14325
+ },
14326
+ "title": {
14327
+ "type": "string"
14328
+ },
14329
+ "description": {
14330
+ "type": "string"
14331
+ },
14332
+ "value": {}
14333
+ },
14334
+ "required": [
14335
+ "@type",
14336
+ "title",
14337
+ "value"
14338
+ ],
14339
+ "additionalProperties": false
14340
+ },
14341
+ "ConsentJSON": {
14342
+ "type": "object",
14343
+ "properties": {
14344
+ "@type": {
14345
+ "type": "string"
14346
+ },
14347
+ "@context": {
14348
+ "type": "string"
14349
+ },
14350
+ "@version": {
14351
+ "type": "string"
14352
+ },
14353
+ "consent": {
14354
+ "type": "string"
14355
+ },
14356
+ "link": {
14357
+ "type": "string"
14358
+ }
14359
+ },
14360
+ "required": [
14361
+ "@type",
14362
+ "consent"
14363
+ ],
14364
+ "additionalProperties": false
14365
+ },
14366
+ "RelationshipAttributeConfidentiality": {
14367
+ "type": "string",
14368
+ "enum": [
14369
+ "public",
14370
+ "private",
14371
+ "protected"
14372
+ ]
14373
+ },
14374
+ "ReadAttributeAcceptResponseItemJSON": {
14375
+ "type": "object",
14376
+ "properties": {
14377
+ "@type": {
14378
+ "type": "string",
14379
+ "const": "ReadAttributeAcceptResponseItem"
14380
+ },
14381
+ "@context": {
14382
+ "type": "string"
14383
+ },
14384
+ "@version": {
14385
+ "type": "string"
14386
+ },
14387
+ "result": {
14388
+ "type": "string",
14389
+ "const": "Accepted"
14390
+ },
14391
+ "attributeId": {
14392
+ "type": "string"
14393
+ },
14394
+ "attribute": {
14395
+ "anyOf": [
14396
+ {
14397
+ "$ref": "#/definitions/IdentityAttributeJSON"
14398
+ },
14399
+ {
14400
+ "$ref": "#/definitions/RelationshipAttributeJSON"
14401
+ }
14402
+ ]
14403
+ }
14404
+ },
14405
+ "required": [
14406
+ "@type",
14407
+ "attribute",
14408
+ "attributeId",
14409
+ "result"
14410
+ ],
14411
+ "additionalProperties": false
14412
+ },
14413
+ "RegisterAttributeListenerAcceptResponseItemJSON": {
14414
+ "type": "object",
14415
+ "properties": {
14416
+ "@type": {
14417
+ "type": "string",
14418
+ "const": "RegisterAttributeListenerAcceptResponseItem"
14419
+ },
14420
+ "@context": {
14421
+ "type": "string"
14422
+ },
14423
+ "@version": {
14424
+ "type": "string"
14425
+ },
14426
+ "result": {
14427
+ "type": "string",
14428
+ "const": "Accepted"
14429
+ },
14430
+ "listenerId": {
14431
+ "type": "string"
14432
+ }
14433
+ },
14434
+ "required": [
14435
+ "@type",
14436
+ "listenerId",
14437
+ "result"
14438
+ ],
14439
+ "additionalProperties": false
14440
+ },
14441
+ "SucceedAttributeAcceptResponseItemJSON": {
14442
+ "type": "object",
14443
+ "properties": {
14444
+ "@type": {
14445
+ "type": "string",
14446
+ "const": "SucceedAttributeAcceptResponseItem"
14447
+ },
14448
+ "@context": {
14449
+ "type": "string"
14450
+ },
14451
+ "@version": {
14452
+ "type": "string"
14453
+ },
14454
+ "result": {
14455
+ "type": "string",
14456
+ "const": "Accepted"
14457
+ },
14458
+ "attributeId": {
14459
+ "type": "string"
14460
+ }
14461
+ },
14462
+ "required": [
14463
+ "@type",
14464
+ "attributeId",
14465
+ "result"
14466
+ ],
14467
+ "additionalProperties": false
14468
+ },
14469
+ "RejectResponseItemJSONDerivations": {
14470
+ "$ref": "#/definitions/RejectResponseItemJSON"
14471
+ },
14472
+ "RejectResponseItemJSON": {
14473
+ "type": "object",
14474
+ "properties": {
14475
+ "@type": {
14476
+ "type": "string",
14477
+ "const": "RejectResponseItem"
14478
+ },
14479
+ "@context": {
14480
+ "type": "string"
14481
+ },
14482
+ "@version": {
14483
+ "type": "string"
14484
+ },
14485
+ "result": {
14486
+ "type": "string",
14487
+ "const": "Rejected"
14488
+ },
14489
+ "code": {
14490
+ "type": "string"
14491
+ },
14492
+ "message": {
14493
+ "type": "string"
14494
+ }
14495
+ },
14496
+ "required": [
14497
+ "@type",
14498
+ "result"
14499
+ ],
14500
+ "additionalProperties": false
14501
+ },
14502
+ "ErrorResponseItemJSONDerivations": {
14503
+ "$ref": "#/definitions/ErrorResponseItemJSON"
14504
+ },
14505
+ "ErrorResponseItemJSON": {
14506
+ "type": "object",
14507
+ "properties": {
14508
+ "@type": {
14509
+ "type": "string",
14510
+ "const": "ErrorResponseItem"
14511
+ },
14512
+ "@context": {
14513
+ "type": "string"
14514
+ },
14515
+ "@version": {
14516
+ "type": "string"
14517
+ },
14518
+ "result": {
14519
+ "type": "string",
14520
+ "const": "Error"
14521
+ },
14522
+ "code": {
14523
+ "type": "string"
14524
+ },
14525
+ "message": {
14526
+ "type": "string"
14527
+ }
14528
+ },
14529
+ "required": [
14530
+ "@type",
14531
+ "code",
14532
+ "message",
14533
+ "result"
12094
14534
  ],
12095
14535
  "additionalProperties": false
12096
14536
  },
12097
- "RequestIdString": {
14537
+ "MessageIdString": {
12098
14538
  "type": "string",
12099
- "pattern": "REQ[A-Za-z0-9]{17}"
14539
+ "pattern": "MSG[A-Za-z0-9]{17}"
12100
14540
  }
12101
14541
  }
12102
14542
  };
12103
- exports.CompleteIncomingRequestRequest = {
14543
+ exports.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest = {
12104
14544
  "$schema": "http://json-schema.org/draft-07/schema#",
12105
- "$ref": "#/definitions/CompleteIncomingRequestRequest",
14545
+ "$ref": "#/definitions/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest",
12106
14546
  "definitions": {
12107
- "CompleteIncomingRequestRequest": {
14547
+ "CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest": {
12108
14548
  "type": "object",
12109
14549
  "properties": {
12110
- "requestId": {
12111
- "$ref": "#/definitions/RequestIdString"
14550
+ "templateId": {
14551
+ "$ref": "#/definitions/RelationshipTemplateIdString"
12112
14552
  },
12113
14553
  "responseSourceId": {
12114
14554
  "anyOf": [
12115
14555
  {
12116
- "$ref": "#/definitions/MessageIdString"
14556
+ "$ref": "#/definitions/RelationshipChangeIdString"
12117
14557
  },
12118
14558
  {
12119
- "$ref": "#/definitions/RelationshipChangeIdString"
14559
+ "$ref": "#/definitions/MessageIdString"
12120
14560
  }
12121
14561
  ]
14562
+ },
14563
+ "response": {
14564
+ "$ref": "#/definitions/ResponseJSON"
12122
14565
  }
12123
14566
  },
12124
14567
  "required": [
12125
- "requestId"
14568
+ "templateId",
14569
+ "responseSourceId",
14570
+ "response"
12126
14571
  ],
12127
14572
  "additionalProperties": false
12128
14573
  },
12129
- "RequestIdString": {
12130
- "type": "string",
12131
- "pattern": "REQ[A-Za-z0-9]{17}"
12132
- },
12133
- "MessageIdString": {
14574
+ "RelationshipTemplateIdString": {
12134
14575
  "type": "string",
12135
- "pattern": "MSG[A-Za-z0-9]{17}"
14576
+ "pattern": "RLT[A-Za-z0-9]{17}"
12136
14577
  },
12137
14578
  "RelationshipChangeIdString": {
12138
14579
  "type": "string",
12139
14580
  "pattern": "RCH[A-Za-z0-9]{17}"
12140
- }
12141
- }
12142
- };
12143
- exports.CompleteOutgoingRequestRequest = {
12144
- "$schema": "http://json-schema.org/draft-07/schema#",
12145
- "$ref": "#/definitions/CompleteOutgoingRequestRequest",
12146
- "definitions": {
12147
- "CompleteOutgoingRequestRequest": {
12148
- "type": "object",
12149
- "properties": {
12150
- "receivedResponse": {
12151
- "$ref": "#/definitions/ResponseJSON"
12152
- },
12153
- "messageId": {
12154
- "$ref": "#/definitions/MessageIdString"
12155
- }
12156
- },
12157
- "required": [
12158
- "receivedResponse",
12159
- "messageId"
12160
- ],
12161
- "additionalProperties": false
14581
+ },
14582
+ "MessageIdString": {
14583
+ "type": "string",
14584
+ "pattern": "MSG[A-Za-z0-9]{17}"
12162
14585
  },
12163
14586
  "ResponseJSON": {
12164
14587
  "type": "object",
@@ -12266,6 +14689,9 @@ exports.CompleteOutgoingRequestRequest = {
12266
14689
  },
12267
14690
  {
12268
14691
  "$ref": "#/definitions/RegisterAttributeListenerAcceptResponseItemJSON"
14692
+ },
14693
+ {
14694
+ "$ref": "#/definitions/SucceedAttributeAcceptResponseItemJSON"
12269
14695
  }
12270
14696
  ]
12271
14697
  },
@@ -14296,6 +16722,34 @@ exports.CompleteOutgoingRequestRequest = {
14296
16722
  ],
14297
16723
  "additionalProperties": false
14298
16724
  },
16725
+ "SucceedAttributeAcceptResponseItemJSON": {
16726
+ "type": "object",
16727
+ "properties": {
16728
+ "@type": {
16729
+ "type": "string",
16730
+ "const": "SucceedAttributeAcceptResponseItem"
16731
+ },
16732
+ "@context": {
16733
+ "type": "string"
16734
+ },
16735
+ "@version": {
16736
+ "type": "string"
16737
+ },
16738
+ "result": {
16739
+ "type": "string",
16740
+ "const": "Accepted"
16741
+ },
16742
+ "attributeId": {
16743
+ "type": "string"
16744
+ }
16745
+ },
16746
+ "required": [
16747
+ "@type",
16748
+ "attributeId",
16749
+ "result"
16750
+ ],
16751
+ "additionalProperties": false
16752
+ },
14299
16753
  "RejectResponseItemJSONDerivations": {
14300
16754
  "$ref": "#/definitions/RejectResponseItemJSON"
14301
16755
  },
@@ -14363,40 +16817,6 @@ exports.CompleteOutgoingRequestRequest = {
14363
16817
  "result"
14364
16818
  ],
14365
16819
  "additionalProperties": false
14366
- },
14367
- "MessageIdString": {
14368
- "type": "string",
14369
- "pattern": "MSG[A-Za-z0-9]{17}"
14370
- }
14371
- }
14372
- };
14373
- exports.CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeRequest = {
14374
- "$schema": "http://json-schema.org/draft-07/schema#",
14375
- "$ref": "#/definitions/CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeRequest",
14376
- "definitions": {
14377
- "CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeRequest": {
14378
- "type": "object",
14379
- "properties": {
14380
- "templateId": {
14381
- "$ref": "#/definitions/RelationshipTemplateIdString"
14382
- },
14383
- "relationshipChangeId": {
14384
- "$ref": "#/definitions/RelationshipChangeIdString"
14385
- }
14386
- },
14387
- "required": [
14388
- "templateId",
14389
- "relationshipChangeId"
14390
- ],
14391
- "additionalProperties": false
14392
- },
14393
- "RelationshipTemplateIdString": {
14394
- "type": "string",
14395
- "pattern": "RLT[A-Za-z0-9]{17}"
14396
- },
14397
- "RelationshipChangeIdString": {
14398
- "type": "string",
14399
- "pattern": "RCH[A-Za-z0-9]{17}"
14400
16820
  }
14401
16821
  }
14402
16822
  };
@@ -14530,6 +16950,9 @@ exports.CreateOutgoingRequestRequest = {
14530
16950
  },
14531
16951
  {
14532
16952
  "$ref": "#/definitions/RegisterAttributeListenerRequestItemJSON"
16953
+ },
16954
+ {
16955
+ "$ref": "#/definitions/SucceedAttributeRequestItemJSON"
14533
16956
  }
14534
16957
  ]
14535
16958
  },
@@ -16990,6 +19413,74 @@ exports.CreateOutgoingRequestRequest = {
16990
19413
  ],
16991
19414
  "additionalProperties": false
16992
19415
  },
19416
+ "SucceedAttributeRequestItemJSON": {
19417
+ "type": "object",
19418
+ "properties": {
19419
+ "@type": {
19420
+ "type": "string"
19421
+ },
19422
+ "@context": {
19423
+ "type": "string"
19424
+ },
19425
+ "@version": {
19426
+ "type": "string"
19427
+ },
19428
+ "title": {
19429
+ "type": "string",
19430
+ "description": "The human-readable title of this item."
19431
+ },
19432
+ "description": {
19433
+ "type": "string",
19434
+ "description": "The human-readable description of this item."
19435
+ },
19436
+ "metadata": {
19437
+ "type": "object",
19438
+ "description": "This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
19439
+ },
19440
+ "mustBeAccepted": {
19441
+ "type": "boolean",
19442
+ "description": "If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a\n {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."
19443
+ },
19444
+ "requireManualDecision": {
19445
+ "type": "boolean",
19446
+ "description": "If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."
19447
+ },
19448
+ "succeededId": {
19449
+ "type": "string",
19450
+ "description": "The id of the Attribute to be succeeded."
19451
+ },
19452
+ "succeededAttribute": {
19453
+ "anyOf": [
19454
+ {
19455
+ "$ref": "#/definitions/IdentityAttributeJSON"
19456
+ },
19457
+ {
19458
+ "$ref": "#/definitions/RelationshipAttributeJSON"
19459
+ }
19460
+ ],
19461
+ "description": "The succeeded Attribute with the updated validTo date. Its validTo date must be lower than the validFrom date of the new Attribute."
19462
+ },
19463
+ "newAttribute": {
19464
+ "anyOf": [
19465
+ {
19466
+ "$ref": "#/definitions/IdentityAttributeJSON"
19467
+ },
19468
+ {
19469
+ "$ref": "#/definitions/RelationshipAttributeJSON"
19470
+ }
19471
+ ],
19472
+ "description": "The new Attribute. Its validFrom date must be greater than the validTo date of the succeeded Attribute."
19473
+ }
19474
+ },
19475
+ "required": [
19476
+ "@type",
19477
+ "mustBeAccepted",
19478
+ "newAttribute",
19479
+ "succeededAttribute",
19480
+ "succeededId"
19481
+ ],
19482
+ "additionalProperties": false
19483
+ },
16993
19484
  "AddressString": {
16994
19485
  "type": "string",
16995
19486
  "pattern": "id1[A-Za-z0-9]{32,33}"
@@ -17619,6 +20110,9 @@ exports.ReceivedIncomingRequestRequest = {
17619
20110
  },
17620
20111
  {
17621
20112
  "$ref": "#/definitions/RegisterAttributeListenerRequestItemJSON"
20113
+ },
20114
+ {
20115
+ "$ref": "#/definitions/SucceedAttributeRequestItemJSON"
17622
20116
  }
17623
20117
  ]
17624
20118
  },
@@ -20079,6 +22573,74 @@ exports.ReceivedIncomingRequestRequest = {
20079
22573
  ],
20080
22574
  "additionalProperties": false
20081
22575
  },
22576
+ "SucceedAttributeRequestItemJSON": {
22577
+ "type": "object",
22578
+ "properties": {
22579
+ "@type": {
22580
+ "type": "string"
22581
+ },
22582
+ "@context": {
22583
+ "type": "string"
22584
+ },
22585
+ "@version": {
22586
+ "type": "string"
22587
+ },
22588
+ "title": {
22589
+ "type": "string",
22590
+ "description": "The human-readable title of this item."
22591
+ },
22592
+ "description": {
22593
+ "type": "string",
22594
+ "description": "The human-readable description of this item."
22595
+ },
22596
+ "metadata": {
22597
+ "type": "object",
22598
+ "description": "This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
22599
+ },
22600
+ "mustBeAccepted": {
22601
+ "type": "boolean",
22602
+ "description": "If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a\n {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."
22603
+ },
22604
+ "requireManualDecision": {
22605
+ "type": "boolean",
22606
+ "description": "If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."
22607
+ },
22608
+ "succeededId": {
22609
+ "type": "string",
22610
+ "description": "The id of the Attribute to be succeeded."
22611
+ },
22612
+ "succeededAttribute": {
22613
+ "anyOf": [
22614
+ {
22615
+ "$ref": "#/definitions/IdentityAttributeJSON"
22616
+ },
22617
+ {
22618
+ "$ref": "#/definitions/RelationshipAttributeJSON"
22619
+ }
22620
+ ],
22621
+ "description": "The succeeded Attribute with the updated validTo date. Its validTo date must be lower than the validFrom date of the new Attribute."
22622
+ },
22623
+ "newAttribute": {
22624
+ "anyOf": [
22625
+ {
22626
+ "$ref": "#/definitions/IdentityAttributeJSON"
22627
+ },
22628
+ {
22629
+ "$ref": "#/definitions/RelationshipAttributeJSON"
22630
+ }
22631
+ ],
22632
+ "description": "The new Attribute. Its validFrom date must be greater than the validTo date of the succeeded Attribute."
22633
+ }
22634
+ },
22635
+ "required": [
22636
+ "@type",
22637
+ "mustBeAccepted",
22638
+ "newAttribute",
22639
+ "succeededAttribute",
22640
+ "succeededId"
22641
+ ],
22642
+ "additionalProperties": false
22643
+ },
20082
22644
  "MessageIdString": {
20083
22645
  "type": "string",
20084
22646
  "pattern": "MSG[A-Za-z0-9]{17}"
@@ -28359,10 +30921,10 @@ exports.CompleteOutgoingRequestUseCase = CompleteOutgoingRequestUseCase;
28359
30921
 
28360
30922
  /***/ }),
28361
30923
 
28362
- /***/ "./dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.js":
28363
- /*!**************************************************************************************************************!*\
28364
- !*** ./dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.js ***!
28365
- \**************************************************************************************************************/
30924
+ /***/ "./dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.js":
30925
+ /*!****************************************************************************************************************!*\
30926
+ !*** ./dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.js ***!
30927
+ \****************************************************************************************************************/
28366
30928
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
28367
30929
 
28368
30930
  "use strict";
@@ -28380,48 +30942,61 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
28380
30942
  return function (target, key) { decorator(target, key, paramIndex); }
28381
30943
  };
28382
30944
  Object.defineProperty(exports, "__esModule", ({ value: true }));
28383
- exports.CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeUseCase = void 0;
30945
+ exports.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase = void 0;
28384
30946
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/@js-soft/ts-utils/dist/index.js");
28385
30947
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
30948
+ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
28386
30949
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
28387
30950
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
28388
30951
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
28389
30952
  const RequestMapper_1 = __webpack_require__(/*! ./RequestMapper */ "./dist/useCases/consumption/requests/RequestMapper.js");
28390
- let CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeUseCase = class CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeUseCase extends common_1.UseCase {
28391
- constructor(outgoingRequestsController, relationshipController, relationshipTemplateController) {
30953
+ let CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase = class CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase extends common_1.UseCase {
30954
+ constructor(outgoingRequestsController, relationshipController, relationshipTemplateController, messageController) {
28392
30955
  super();
28393
30956
  this.outgoingRequestsController = outgoingRequestsController;
28394
30957
  this.relationshipController = relationshipController;
28395
30958
  this.relationshipTemplateController = relationshipTemplateController;
30959
+ this.messageController = messageController;
28396
30960
  }
28397
30961
  async executeInternal(request) {
28398
30962
  const template = await this.relationshipTemplateController.getRelationshipTemplate(transport_1.CoreId.from(request.templateId));
28399
30963
  if (!template) {
28400
30964
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(transport_1.RelationshipTemplate));
28401
30965
  }
28402
- const relationships = await this.relationshipController.getRelationships({ "cache.changes.id": request.relationshipChangeId });
28403
- if (relationships.length === 0) {
30966
+ const responseSource = await this.getResponseSource(request.responseSourceId);
30967
+ if (!responseSource) {
28404
30968
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(transport_1.RelationshipChange));
28405
30969
  }
28406
- const relationship = relationships[0];
28407
- const params = {
28408
- template: template,
28409
- creationChange: relationship.cache.creationChange
28410
- };
28411
- const localRequest = await this.outgoingRequestsController.createFromRelationshipCreationChange(params);
30970
+ const localRequest = await this.outgoingRequestsController.createAndCompleteFromRelationshipTemplateResponse({
30971
+ template,
30972
+ responseSource,
30973
+ response: content_1.Response.from(request.response)
30974
+ });
28412
30975
  return ts_utils_1.Result.ok(RequestMapper_1.RequestMapper.toLocalRequestDTO(localRequest));
28413
30976
  }
30977
+ async getResponseSource(responseSourceId) {
30978
+ if (responseSourceId.startsWith("MSG"))
30979
+ return await this.messageController.getMessage(transport_1.CoreId.from(responseSourceId));
30980
+ const relationships = await this.relationshipController.getRelationships({ "cache.changes.id": responseSourceId });
30981
+ if (relationships.length !== 0) {
30982
+ const relationship = relationships[0];
30983
+ return relationship.cache.creationChange;
30984
+ }
30985
+ return;
30986
+ }
28414
30987
  };
28415
- CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeUseCase = __decorate([
30988
+ CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase = __decorate([
28416
30989
  __param(0, typescript_ioc_1.Inject),
28417
30990
  __param(1, typescript_ioc_1.Inject),
28418
30991
  __param(2, typescript_ioc_1.Inject),
30992
+ __param(3, typescript_ioc_1.Inject),
28419
30993
  __metadata("design:paramtypes", [consumption_1.OutgoingRequestsController,
28420
30994
  transport_1.RelationshipsController,
28421
- transport_1.RelationshipTemplateController])
28422
- ], CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeUseCase);
28423
- exports.CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeUseCase = CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeUseCase;
28424
- //# sourceMappingURL=CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.js.map
30995
+ transport_1.RelationshipTemplateController,
30996
+ transport_1.MessageController])
30997
+ ], CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase);
30998
+ exports.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase = CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase;
30999
+ //# sourceMappingURL=CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.js.map
28425
31000
 
28426
31001
  /***/ }),
28427
31002
 
@@ -29225,7 +31800,7 @@ __exportStar(__webpack_require__(/*! ./CanRejectIncomingRequest */ "./dist/useCa
29225
31800
  __exportStar(__webpack_require__(/*! ./CheckPrerequisitesOfIncomingRequest */ "./dist/useCases/consumption/requests/CheckPrerequisitesOfIncomingRequest.js"), exports);
29226
31801
  __exportStar(__webpack_require__(/*! ./CompleteIncomingRequest */ "./dist/useCases/consumption/requests/CompleteIncomingRequest.js"), exports);
29227
31802
  __exportStar(__webpack_require__(/*! ./CompleteOutgoingRequest */ "./dist/useCases/consumption/requests/CompleteOutgoingRequest.js"), exports);
29228
- __exportStar(__webpack_require__(/*! ./CreateAndCompleteOutgoingRequestFromRelationshipCreationChange */ "./dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.js"), exports);
31803
+ __exportStar(__webpack_require__(/*! ./CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse */ "./dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.js"), exports);
29229
31804
  __exportStar(__webpack_require__(/*! ./CreateOutgoingRequest */ "./dist/useCases/consumption/requests/CreateOutgoingRequest.js"), exports);
29230
31805
  __exportStar(__webpack_require__(/*! ./DiscardOutgoingRequest */ "./dist/useCases/consumption/requests/DiscardOutgoingRequest.js"), exports);
29231
31806
  __exportStar(__webpack_require__(/*! ./GetIncomingRequest */ "./dist/useCases/consumption/requests/GetIncomingRequest.js"), exports);
@@ -29336,7 +31911,6 @@ const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/
29336
31911
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
29337
31912
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
29338
31913
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
29339
- const __1 = __webpack_require__(/*! ../.. */ "./dist/useCases/index.js");
29340
31914
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
29341
31915
  let Validator = class Validator extends common_1.SchemaValidator {
29342
31916
  constructor(schemaRepository) {
@@ -29356,7 +31930,7 @@ let DeleteSettingUseCase = class DeleteSettingUseCase extends common_1.UseCase {
29356
31930
  async executeInternal(request) {
29357
31931
  const setting = await this.settingController.getSetting(transport_1.CoreId.from(request.id));
29358
31932
  if (!setting) {
29359
- return ts_utils_1.Result.fail(__1.RuntimeErrors.general.recordNotFound(consumption_1.Setting));
31933
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.Setting));
29360
31934
  }
29361
31935
  await this.settingController.deleteSetting(setting);
29362
31936
  await this.accountController.syncDatawallet();
@@ -29564,7 +32138,6 @@ const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/
29564
32138
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
29565
32139
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
29566
32140
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
29567
- const __1 = __webpack_require__(/*! ../.. */ "./dist/useCases/index.js");
29568
32141
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
29569
32142
  const SettingMapper_1 = __webpack_require__(/*! ./SettingMapper */ "./dist/useCases/consumption/settings/SettingMapper.js");
29570
32143
  let Validator = class Validator extends common_1.SchemaValidator {
@@ -29585,7 +32158,7 @@ let UpdateSettingUseCase = class UpdateSettingUseCase extends common_1.UseCase {
29585
32158
  async executeInternal(request) {
29586
32159
  const setting = await this.settingController.getSetting(transport_1.CoreId.from(request.id));
29587
32160
  if (!setting) {
29588
- return ts_utils_1.Result.fail(__1.RuntimeErrors.general.recordNotFound(consumption_1.Setting));
32161
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.Setting));
29589
32162
  }
29590
32163
  setting.value = ts_serval_1.Serializable.fromUnknown(request.value);
29591
32164
  await this.settingController.updateSetting(setting);
@@ -30958,8 +33531,8 @@ exports.UpdateDeviceUseCase = void 0;
30958
33531
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/@js-soft/ts-utils/dist/index.js");
30959
33532
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
30960
33533
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
30961
- const _1 = __webpack_require__(/*! . */ "./dist/useCases/transport/devices/index.js");
30962
33534
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
33535
+ const DeviceMapper_1 = __webpack_require__(/*! ./DeviceMapper */ "./dist/useCases/transport/devices/DeviceMapper.js");
30963
33536
  let Validator = class Validator extends common_1.SchemaValidator {
30964
33537
  constructor(schemaRepository) {
30965
33538
  super(schemaRepository.getSchema("UpdateDeviceRequest"));
@@ -30986,7 +33559,7 @@ let UpdateDeviceUseCase = class UpdateDeviceUseCase extends common_1.UseCase {
30986
33559
  device.description = request.description;
30987
33560
  await this.devicesController.update(device);
30988
33561
  await this.accountController.syncDatawallet();
30989
- return ts_utils_1.Result.ok(_1.DeviceMapper.toDeviceDTO(device));
33562
+ return ts_utils_1.Result.ok(DeviceMapper_1.DeviceMapper.toDeviceDTO(device));
30990
33563
  }
30991
33564
  };
30992
33565
  UpdateDeviceUseCase = __decorate([