@nmshd/runtime 2.0.0-beta.20 → 2.0.0-beta.23

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 (55) hide show
  1. package/dist/buildInformation.js +5 -5
  2. package/dist/dataViews/DataViewExpander.d.ts +17 -7
  3. package/dist/dataViews/DataViewExpander.js +311 -81
  4. package/dist/dataViews/DataViewExpander.js.map +1 -1
  5. package/dist/dataViews/consumption/DecidableRequestItemDVOs.d.ts +6 -6
  6. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts +47 -3
  7. package/dist/dataViews/consumption/PeerRelationshipTemplateDVO.d.ts +4 -2
  8. package/dist/dataViews/content/AttributeDVOs.d.ts +32 -8
  9. package/dist/dataViews/content/RequestItemDVOs.d.ts +6 -6
  10. package/dist/dataViews/transport/RelationshipDVO.d.ts +1 -0
  11. package/dist/dataViews/transport/RelationshipTemplateDVO.d.ts +2 -0
  12. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +5 -3
  13. package/dist/extensibility/facades/consumption/AttributesFacade.js +8 -2
  14. package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
  15. package/dist/useCases/common/SchemaRepository.js +1 -1
  16. package/dist/useCases/common/SchemaRepository.js.map +1 -1
  17. package/dist/useCases/common/Schemas.d.ts +1 -0
  18. package/dist/useCases/common/Schemas.js +722 -437
  19. package/dist/useCases/common/Schemas.js.map +1 -1
  20. package/dist/useCases/common/validation/ValidatableStrings.d.ts +3 -2
  21. package/dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.d.ts +2 -2
  22. package/dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js +5 -2
  23. package/dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js.map +1 -1
  24. package/dist/useCases/consumption/attributes/ExecuteThirdPartyRelationshipAttributeQuery.d.ts +13 -0
  25. package/dist/useCases/consumption/attributes/ExecuteThirdPartyRelationshipAttributeQuery.js +40 -0
  26. package/dist/useCases/consumption/attributes/ExecuteThirdPartyRelationshipAttributeQuery.js.map +1 -0
  27. package/dist/useCases/consumption/attributes/index.d.ts +1 -0
  28. package/dist/useCases/consumption/attributes/index.js +1 -0
  29. package/dist/useCases/consumption/attributes/index.js.map +1 -1
  30. package/dist/useCases/consumption/requests/CanCreateOutgoingRequest.d.ts +2 -6
  31. package/dist/useCases/consumption/requests/CanCreateOutgoingRequest.js +8 -11
  32. package/dist/useCases/consumption/requests/CanCreateOutgoingRequest.js.map +1 -1
  33. package/dist/useCases/consumption/settings/CreateSetting.d.ts +2 -2
  34. package/dist/useCases/consumption/settings/CreateSetting.js.map +1 -1
  35. package/dist/useCases/transport/devices/CreateDeviceOnboardingToken.d.ts +2 -2
  36. package/dist/useCases/transport/devices/CreateDeviceOnboardingToken.js.map +1 -1
  37. package/dist/useCases/transport/files/CreateTokenForFile.d.ts +2 -2
  38. package/dist/useCases/transport/files/CreateTokenForFile.js.map +1 -1
  39. package/dist/useCases/transport/files/CreateTokenQrCodeForFile.d.ts +2 -2
  40. package/dist/useCases/transport/files/CreateTokenQrCodeForFile.js.map +1 -1
  41. package/dist/useCases/transport/files/UploadOwnFile.d.ts +2 -2
  42. package/dist/useCases/transport/files/UploadOwnFile.js.map +1 -1
  43. package/dist/useCases/transport/relationshipTemplates/CreateOwnRelationshipTemplate.d.ts +2 -2
  44. package/dist/useCases/transport/relationshipTemplates/CreateOwnRelationshipTemplate.js.map +1 -1
  45. package/dist/useCases/transport/relationshipTemplates/CreateTokenForOwnRelationshipTemplate.d.ts +2 -2
  46. package/dist/useCases/transport/relationshipTemplates/CreateTokenForOwnRelationshipTemplate.js.map +1 -1
  47. package/dist/useCases/transport/relationshipTemplates/CreateTokenQrCodeForOwnRelationshipTemplate.d.ts +2 -2
  48. package/dist/useCases/transport/relationshipTemplates/CreateTokenQrCodeForOwnRelationshipTemplate.js.map +1 -1
  49. package/dist/useCases/transport/tokens/CreateOwnToken.d.ts +2 -2
  50. package/dist/useCases/transport/tokens/CreateOwnToken.js.map +1 -1
  51. package/lib-web/nmshd.runtime.js +1129 -536
  52. package/lib-web/nmshd.runtime.js.map +1 -1
  53. package/lib-web/nmshd.runtime.min.js +3 -3
  54. package/lib-web/nmshd.runtime.min.js.map +1 -1
  55. package/package.json +17 -17
@@ -448,11 +448,11 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
448
448
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
449
449
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
450
450
  exports.buildInformation = {
451
- version: "2.0.0-beta.20",
452
- build: "106",
453
- date: "2022-08-25T08:33:05+00:00",
454
- commit: "9d3977f9788c489ac4a353b0fc4c183a35b8a365",
455
- dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.4","@js-soft/ts-utils":"^2.2.2","@nmshd/consumption":"2.0.0-beta.10","@nmshd/content":"2.0.0-beta.13","@nmshd/crypto":"2.0.1","@nmshd/transport":"2.0.0-beta.4","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","luxon":"^3.0.1","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
451
+ version: "2.0.0-beta.23",
452
+ build: "109",
453
+ date: "2022-09-09T12:00:25+00:00",
454
+ commit: "c947562c2d16fb241d86de627a054fef64edc5bf",
455
+ dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.4","@js-soft/ts-utils":"^2.2.2","@nmshd/consumption":"2.0.0-beta.15","@nmshd/content":"2.0.0-beta.22","@nmshd/crypto":"2.0.1","@nmshd/transport":"2.0.0-beta.4","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","luxon":"^3.0.3","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
456
456
  libraries: {
457
457
  serval: ts_serval_1.buildInformation,
458
458
  consumption: consumption_1.buildInformation,
@@ -710,7 +710,11 @@ let DataViewExpander = class DataViewExpander {
710
710
  async expandRelationshipTemplateDTO(template) {
711
711
  let onNewRelationship;
712
712
  let onExistingRelationship;
713
- let name = "i18n://dvo.template.name";
713
+ const createdBy = await this.expandAddress(template.createdBy);
714
+ const type = template.isOwn ? "RelationshipTemplateDVO" : "PeerRelationshipTemplateDVO";
715
+ let name = template.isOwn ? "i18n://dvo.template.outgoing.name" : "i18n://dvo.template.incoming.name";
716
+ const description = template.isOwn ? "i18n://dvo.template.outgoing.description" : "i18n://dvo.template.incoming.description";
717
+ let expandedLocalRequest;
714
718
  if (template.content["@type"] === "RelationshipTemplateBody") {
715
719
  const templateBody = content_1.RelationshipTemplateBody.from(template.content).toJSON();
716
720
  if (templateBody.title) {
@@ -718,20 +722,28 @@ let DataViewExpander = class DataViewExpander {
718
722
  }
719
723
  let localRequest;
720
724
  if (!template.isOwn) {
721
- const onNewRelationshipRequest = await this.consumption.incomingRequests.getRequests({
725
+ const incomingRequestResult = await this.consumption.incomingRequests.getRequests({
722
726
  query: {
723
- "source.reference": template.id
727
+ "source.reference": template.id,
728
+ status: consumption_1.LocalRequestStatus.ManualDecisionRequired
724
729
  }
725
730
  });
726
- localRequest = onNewRelationshipRequest.value[0];
727
- return {
728
- name,
729
- type: "PeerRelationshipTemplateDVO",
730
- date: template.createdAt,
731
- ...template,
732
- createdBy: await this.expandAddress(template.createdBy),
733
- onNewRelationship: await this.expandLocalRequestDTO(localRequest)
734
- };
731
+ if (incomingRequestResult.value.length > 0) {
732
+ localRequest = incomingRequestResult.value[0];
733
+ expandedLocalRequest = await this.expandLocalRequestDTO(localRequest);
734
+ }
735
+ else {
736
+ const completedRequestResult = await this.consumption.incomingRequests.getRequests({
737
+ query: {
738
+ "source.reference": template.id,
739
+ status: [consumption_1.LocalRequestStatus.Decided, consumption_1.LocalRequestStatus.Completed]
740
+ }
741
+ });
742
+ if (completedRequestResult.value.length > 0) {
743
+ localRequest = completedRequestResult.value[0];
744
+ expandedLocalRequest = await this.expandLocalRequestDTO(localRequest);
745
+ }
746
+ }
735
747
  }
736
748
  onNewRelationship = await this.expandRequest(templateBody.onNewRelationship);
737
749
  if (templateBody.onExistingRelationship) {
@@ -740,10 +752,12 @@ let DataViewExpander = class DataViewExpander {
740
752
  }
741
753
  return {
742
754
  name,
743
- type: "RelationshipTemplateDVO",
755
+ description,
756
+ type,
744
757
  date: template.createdAt,
745
758
  ...template,
746
- createdBy: await this.expandAddress(template.createdBy),
759
+ createdBy,
760
+ request: expandedLocalRequest,
747
761
  onNewRelationship,
748
762
  onExistingRelationship
749
763
  };
@@ -784,8 +798,8 @@ let DataViewExpander = class DataViewExpander {
784
798
  ...readAttributeRequestItem,
785
799
  type: "DecidableReadAttributeRequestItemDVO",
786
800
  id: "",
787
- name: requestItem.title ? requestItem.title : "i18n://dvo.requestItem.ReadAttributeRequestItem.name",
788
- query: await this.processIdentityAttributeQuery(readAttributeRequestItem.query),
801
+ name: requestItem.title ? requestItem.title : "i18n://dvo.requestItem.DecidableReadAttributeRequestItem.name",
802
+ query: await this.processAttributeQuery(readAttributeRequestItem.query),
789
803
  isDecidable
790
804
  };
791
805
  }
@@ -794,27 +808,45 @@ let DataViewExpander = class DataViewExpander {
794
808
  type: "ReadAttributeRequestItemDVO",
795
809
  id: "",
796
810
  name: requestItem.title ? requestItem.title : "i18n://dvo.requestItem.ReadAttributeRequestItem.name",
797
- query: this.expandIdentityAttributeQuery(readAttributeRequestItem.query),
811
+ query: await this.expandAttributeQuery(readAttributeRequestItem.query),
798
812
  isDecidable
799
813
  };
800
- case "CreateRelationshipAttributeRequestItem":
814
+ case "CreateAttributeRequestItem":
801
815
  const createAttributeRequestItem = requestItem;
816
+ const attribute = await this.expandAttribute(createAttributeRequestItem.attribute);
817
+ let isIdentityAttribute = false;
818
+ if (attribute.type === "DraftIdentityAttributeDVO") {
819
+ isIdentityAttribute = true;
820
+ }
821
+ const name = requestItem.title;
822
+ const description = requestItem.description;
823
+ let fallbackName;
802
824
  if (isDecidable) {
825
+ fallbackName = "i18n://dvo.requestItem.DecidableCreateIdentityAttributeRequestItem.name";
826
+ if (isIdentityAttribute) {
827
+ fallbackName = "i18n://dvo.requestItem.DecidableCreateRelationshipAttributeRequestItem.name";
828
+ }
803
829
  return {
804
830
  ...createAttributeRequestItem,
805
- type: "DecidableCreateRelationshipAttributeRequestItemDVO",
831
+ type: "DecidableCreateAttributeRequestItemDVO",
806
832
  id: "",
807
- name: requestItem.title ? requestItem.title : "i18n://dvo.requestItem.CreateRelationshipAttributeRequestItem.name",
808
- attribute: await this.expandAttribute(createAttributeRequestItem.attribute),
833
+ name: name ? name : fallbackName,
834
+ description: description ? description : fallbackName,
835
+ attribute,
809
836
  isDecidable
810
837
  };
811
838
  }
839
+ fallbackName = "i18n://dvo.requestItem.CreateIdentityAttributeRequestItem.name";
840
+ if (isIdentityAttribute) {
841
+ fallbackName = "i18n://dvo.requestItem.CreateRelationshipAttributeRequestItem.name";
842
+ }
812
843
  return {
813
844
  ...createAttributeRequestItem,
814
- type: "CreateRelationshipAttributeRequestItemDVO",
845
+ type: "CreateAttributeRequestItemDVO",
815
846
  id: "",
816
- name: requestItem.title ? requestItem.title : "i18n://dvo.requestItem.CreateRelationshipAttributeRequestItem.name",
817
- attribute: await this.expandAttribute(createAttributeRequestItem.attribute),
847
+ name: name ? name : fallbackName,
848
+ description: description ? description : fallbackName,
849
+ attribute,
818
850
  isDecidable
819
851
  };
820
852
  case "ProposeAttributeRequestItem":
@@ -827,9 +859,9 @@ let DataViewExpander = class DataViewExpander {
827
859
  ...proposeAttributeRequestItem,
828
860
  type: "DecidableProposeAttributeRequestItemDVO",
829
861
  id: "",
830
- name: requestItem.title ? requestItem.title : "i18n://dvo.requestItem.ProposeAttributeRequestItem.name",
862
+ name: requestItem.title ? requestItem.title : "i18n://dvo.requestItem.DecidableProposeAttributeRequestItem.name",
831
863
  attribute: await this.expandAttribute(proposeAttributeRequestItem.attribute),
832
- query: await this.processIdentityAttributeQuery(proposeAttributeRequestItem.query),
864
+ query: await this.processAttributeQuery(proposeAttributeRequestItem.query),
833
865
  isDecidable
834
866
  };
835
867
  }
@@ -839,7 +871,7 @@ let DataViewExpander = class DataViewExpander {
839
871
  id: "",
840
872
  name: requestItem.title ? requestItem.title : "i18n://dvo.requestItem.ProposeAttributeRequestItem.name",
841
873
  attribute: await this.expandAttribute(proposeAttributeRequestItem.attribute),
842
- query: this.expandIdentityAttributeQuery(proposeAttributeRequestItem.query),
874
+ query: await this.expandAttributeQuery(proposeAttributeRequestItem.query),
843
875
  isDecidable
844
876
  };
845
877
  case "ShareAttributeRequestItem":
@@ -850,7 +882,7 @@ let DataViewExpander = class DataViewExpander {
850
882
  ...shareAttributeRequestItem,
851
883
  type: "DecidableShareAttributeRequestItemDVO",
852
884
  id: "",
853
- name: requestItem.title ? requestItem.title : "i18n://dvo.requestItem.ProposeAttributeRequestItem.name",
885
+ name: requestItem.title ? requestItem.title : "i18n://dvo.requestItem.DecidableProposeAttributeRequestItem.name",
854
886
  attribute: attributeDVO,
855
887
  isDecidable
856
888
  };
@@ -910,7 +942,7 @@ let DataViewExpander = class DataViewExpander {
910
942
  name: name,
911
943
  attribute: localAttributeDVOForRead
912
944
  };
913
- case "CreateRelationshipAttributeAcceptResponseItem":
945
+ case "CreateAttributeAcceptResponseItem":
914
946
  const createAttributeResponseItem = responseItem;
915
947
  const localAttributeResultForCreate = await this.consumption.attributes.getAttribute({ id: createAttributeResponseItem.attributeId });
916
948
  const localAttributeDVOForCreate = await this.expandLocalAttributeDTO(localAttributeResultForCreate.value);
@@ -983,10 +1015,12 @@ let DataViewExpander = class DataViewExpander {
983
1015
  }
984
1016
  const directionLabel = request.isOwn ? "outgoing" : "incoming";
985
1017
  const statusText = `i18n://dvo.localRequest.status.${request.status}`;
1018
+ const response = request.response ? await this.expandLocalResponseDTO(request.response, request) : undefined;
986
1019
  // TODO: Wait for request.title from content and use it
1020
+ const requestIdOutOfResponse = request.response ? request.response.content.requestId : "";
987
1021
  return {
988
1022
  ...request,
989
- id: request.id,
1023
+ id: request.id ? request.id : requestIdOutOfResponse,
990
1024
  content: requestDVO,
991
1025
  items: requestDVO.items,
992
1026
  name: `i18n://dvo.localRequest.${directionLabel}.name`,
@@ -996,7 +1030,7 @@ let DataViewExpander = class DataViewExpander {
996
1030
  createdBy: request.isOwn ? this.expandSelf() : peerDVO,
997
1031
  decider: request.isOwn ? peerDVO : this.expandSelf(),
998
1032
  peer: peerDVO,
999
- response: request.response ? await this.expandLocalResponseDTO(request.response, request) : undefined,
1033
+ response,
1000
1034
  statusText: statusText,
1001
1035
  isDecidable
1002
1036
  };
@@ -1038,14 +1072,69 @@ let DataViewExpander = class DataViewExpander {
1038
1072
  const owner = attribute.content.owner;
1039
1073
  let name = `i18n://dvo.attribute.name.${valueType}`;
1040
1074
  let description = `i18n://dvo.attribute.description.${valueType}`;
1041
- if (localAttribute.content instanceof content_1.RelationshipAttribute) {
1042
- name = "";
1043
- description = "";
1044
- }
1045
1075
  const renderHints = localAttribute.content.value.renderHints.toJSON();
1046
1076
  const valueHints = localAttribute.content.value.valueHints.toJSON();
1047
1077
  if (localAttribute.shareInfo) {
1048
1078
  const peer = localAttribute.shareInfo.peer.toString();
1079
+ if (localAttribute.content instanceof content_1.RelationshipAttribute) {
1080
+ const relationshipAttribute = localAttribute.content;
1081
+ const valueAsAny = relationshipAttribute.value;
1082
+ if (valueAsAny.title) {
1083
+ name = valueAsAny.title;
1084
+ }
1085
+ if (valueAsAny.description) {
1086
+ description = valueAsAny.description;
1087
+ }
1088
+ // Peer Relationship Attribute
1089
+ if (relationshipAttribute.owner === localAttribute.shareInfo.peer) {
1090
+ return {
1091
+ type: "PeerRelationshipAttributeDVO",
1092
+ id: attribute.id,
1093
+ name,
1094
+ key: relationshipAttribute.key,
1095
+ confidentiality: relationshipAttribute.confidentiality,
1096
+ description,
1097
+ content: attribute.content,
1098
+ value: attribute.content.value,
1099
+ date: attribute.createdAt,
1100
+ owner,
1101
+ renderHints,
1102
+ valueHints,
1103
+ isValid: true,
1104
+ createdAt: attribute.createdAt,
1105
+ isOwn: false,
1106
+ peer: peer,
1107
+ isDraft: false,
1108
+ requestReference: localAttribute.shareInfo.requestReference.toString(),
1109
+ valueType,
1110
+ isTechnical: relationshipAttribute.isTechnical
1111
+ };
1112
+ }
1113
+ // Own Relationship Attribute
1114
+ return {
1115
+ type: "OwnRelationshipAttributeDVO",
1116
+ id: attribute.id,
1117
+ name,
1118
+ key: relationshipAttribute.key,
1119
+ confidentiality: relationshipAttribute.confidentiality,
1120
+ description,
1121
+ content: attribute.content,
1122
+ value: attribute.content.value,
1123
+ date: attribute.createdAt,
1124
+ owner,
1125
+ renderHints,
1126
+ valueHints,
1127
+ isValid: true,
1128
+ createdAt: attribute.createdAt,
1129
+ isOwn: true,
1130
+ peer: peer,
1131
+ isDraft: false,
1132
+ requestReference: localAttribute.shareInfo.requestReference.toString(),
1133
+ valueType,
1134
+ isTechnical: relationshipAttribute.isTechnical
1135
+ };
1136
+ }
1137
+ const identityAttribute = localAttribute.content;
1049
1138
  if (localAttribute.shareInfo.sourceAttribute) {
1050
1139
  // Own Shared Attribute
1051
1140
  return {
@@ -1066,7 +1155,7 @@ let DataViewExpander = class DataViewExpander {
1066
1155
  isDraft: false,
1067
1156
  requestReference: localAttribute.shareInfo.requestReference.toString(),
1068
1157
  sourceAttribute: localAttribute.shareInfo.sourceAttribute.toString(),
1069
- tags: [],
1158
+ tags: identityAttribute.tags ? identityAttribute.tags : [],
1070
1159
  valueType
1071
1160
  };
1072
1161
  }
@@ -1088,10 +1177,11 @@ let DataViewExpander = class DataViewExpander {
1088
1177
  peer: peer,
1089
1178
  isDraft: false,
1090
1179
  requestReference: localAttribute.shareInfo.requestReference.toString(),
1091
- tags: [],
1180
+ tags: identityAttribute.tags ? identityAttribute.tags : [],
1092
1181
  valueType
1093
1182
  };
1094
1183
  }
1184
+ const identityAttribute = localAttribute.content;
1095
1185
  const sharedToPeerAttributes = await this.consumption.attributes.getAttributes({ query: { "shareInfo.sourceAttribute": attribute.id } });
1096
1186
  const sharedToPeerDVOs = await this.expandLocalAttributeDTOs(sharedToPeerAttributes.value);
1097
1187
  // Own Source Attribute
@@ -1111,7 +1201,7 @@ let DataViewExpander = class DataViewExpander {
1111
1201
  isOwn: true,
1112
1202
  isDraft: false,
1113
1203
  sharedWith: sharedToPeerDVOs,
1114
- tags: [],
1204
+ tags: identityAttribute.tags ? identityAttribute.tags : [],
1115
1205
  valueType
1116
1206
  };
1117
1207
  }
@@ -1119,50 +1209,83 @@ let DataViewExpander = class DataViewExpander {
1119
1209
  const attributesPromise = attributes.map((attribute) => this.expandLocalAttributeDTO(attribute));
1120
1210
  return await Promise.all(attributesPromise);
1121
1211
  }
1212
+ async expandAttributeQuery(query) {
1213
+ switch (query["@type"]) {
1214
+ case "IdentityAttributeQuery":
1215
+ return this.expandIdentityAttributeQuery(query);
1216
+ case "RelationshipAttributeQuery":
1217
+ return await this.expandRelationshipAttributeQuery(query);
1218
+ case "ThirdPartyRelationshipAttributeQuery":
1219
+ return await this.expandThirdPartyRelationshipAttributeQuery(query);
1220
+ default:
1221
+ throw new Error("Wrong attribute query");
1222
+ }
1223
+ }
1122
1224
  expandIdentityAttributeQuery(query) {
1123
1225
  const valueType = query.valueType;
1124
1226
  const name = `i18n://dvo.attribute.name.${valueType}`;
1125
1227
  const description = `i18n://dvo.attribute.description.${valueType}`;
1126
- const valueTypeClass = ts_serval_1.SerializableBase.getModule(valueType, 1);
1127
- if (!valueTypeClass) {
1128
- throw new Error(`No class implementation found for ${valueType}`);
1129
- }
1130
- let renderHints = {
1131
- "@type": "RenderHints",
1132
- editType: content_1.RenderHintsEditType.InputLike,
1133
- technicalType: content_1.RenderHintsTechnicalType.String
1134
- };
1135
- let valueHints = {
1136
- "@type": "ValueHints",
1137
- max: 200
1228
+ const hints = this.getHintsForValueType(valueType);
1229
+ return {
1230
+ type: "IdentityAttributeQueryDVO",
1231
+ id: "",
1232
+ name,
1233
+ description,
1234
+ valueType,
1235
+ validFrom: query.validFrom,
1236
+ validTo: query.validTo,
1237
+ renderHints: hints.renderHints,
1238
+ valueHints: hints.valueHints,
1239
+ isProcessed: false
1138
1240
  };
1139
- if (valueTypeClass.renderHints && valueTypeClass.renderHints instanceof content_1.RenderHints) {
1140
- renderHints = valueTypeClass.renderHints.toJSON();
1241
+ }
1242
+ async expandRelationshipAttributeQuery(query) {
1243
+ const valueType = query.attributeCreationHints.valueType;
1244
+ let name = "i18n://dvo.attributeQuery.name.ThirdPartyRelationshipAttributeQuery";
1245
+ let description = "i18n://dvo.attributeQuery.name.ThirdPartyRelationshipAttributeQuery";
1246
+ if (query.attributeCreationHints.title) {
1247
+ name = query.attributeCreationHints.title;
1141
1248
  }
1142
- if (valueTypeClass.valueHints && valueTypeClass.valueHints instanceof content_1.ValueHints) {
1143
- valueHints = valueTypeClass.valueHints.toJSON();
1249
+ if (query.attributeCreationHints.description) {
1250
+ description = query.attributeCreationHints.description;
1251
+ }
1252
+ const hints = this.getHintsForValueType(valueType);
1253
+ if (query.attributeCreationHints.valueHints) {
1254
+ hints.valueHints = query.attributeCreationHints.valueHints;
1144
1255
  }
1145
1256
  return {
1146
- type: "IdentityAttributeQueryDVO",
1257
+ type: "RelationshipAttributeQueryDVO",
1147
1258
  id: "",
1148
1259
  name,
1149
1260
  description,
1150
- valueType,
1151
1261
  validFrom: query.validFrom,
1152
1262
  validTo: query.validTo,
1153
- renderHints,
1154
- valueHints,
1263
+ owner: await this.expandAddress(query.owner),
1264
+ key: query.key,
1265
+ attributeCreationHints: query.attributeCreationHints,
1266
+ renderHints: hints.renderHints,
1267
+ valueHints: hints.valueHints,
1268
+ isProcessed: false,
1269
+ valueType
1270
+ };
1271
+ }
1272
+ async expandThirdPartyRelationshipAttributeQuery(query) {
1273
+ const name = "i18n://dvo.attributeQuery.name.ThirdPartyRelationshipAttributeQuery";
1274
+ const description = "i18n://dvo.attributeQuery.name.ThirdPartyRelationshipAttributeQuery";
1275
+ return {
1276
+ type: "ThirdPartyRelationshipAttributeQueryDVO",
1277
+ id: "",
1278
+ name,
1279
+ description,
1280
+ validFrom: query.validFrom,
1281
+ validTo: query.validTo,
1282
+ owner: await this.expandAddress(query.owner),
1283
+ thirdParty: await this.expandAddress(query.thirdParty),
1284
+ key: query.key,
1155
1285
  isProcessed: false
1156
1286
  };
1157
1287
  }
1158
- async processIdentityAttributeQuery(query) {
1159
- const matchedAttributeDTOs = await this.consumption.attributes.executeIdentityAttributeQuery({
1160
- query
1161
- });
1162
- const matchedAttributeDVOs = await this.expandLocalAttributeDTOs(matchedAttributeDTOs.value);
1163
- const valueType = query.valueType;
1164
- const name = `i18n://dvo.attribute.name.${valueType}`;
1165
- const description = `i18n://dvo.attribute.description.${valueType}`;
1288
+ getHintsForValueType(valueType) {
1166
1289
  const valueTypeClass = ts_serval_1.SerializableBase.getModule(valueType, 1);
1167
1290
  if (!valueTypeClass) {
1168
1291
  throw new Error(`No class implementation found for ${valueType}`);
@@ -1182,37 +1305,127 @@ let DataViewExpander = class DataViewExpander {
1182
1305
  if (valueTypeClass.valueHints && valueTypeClass.valueHints instanceof content_1.ValueHints) {
1183
1306
  valueHints = valueTypeClass.valueHints.toJSON();
1184
1307
  }
1308
+ return { renderHints, valueHints };
1309
+ }
1310
+ async processAttributeQuery(attributeQuery) {
1311
+ switch (attributeQuery["@type"]) {
1312
+ case "IdentityAttributeQuery":
1313
+ return await this.processIdentityAttributeQuery(attributeQuery);
1314
+ case "RelationshipAttributeQuery":
1315
+ return await this.processRelationshipAttributeQuery(attributeQuery);
1316
+ case "ThirdPartyRelationshipAttributeQuery":
1317
+ return await this.processThirdPartyRelationshipAttributeQuery(attributeQuery);
1318
+ default:
1319
+ throw new Error("Wrong attribute query");
1320
+ }
1321
+ }
1322
+ async processIdentityAttributeQuery(query) {
1323
+ const matchedAttributeDTOs = await this.consumption.attributes.executeIdentityAttributeQuery({
1324
+ query
1325
+ });
1326
+ const matchedAttributeDVOs = await this.expandLocalAttributeDTOs(matchedAttributeDTOs.value);
1185
1327
  return {
1328
+ ...this.expandIdentityAttributeQuery(query),
1186
1329
  type: "ProcessedIdentityAttributeQueryDVO",
1187
- id: "",
1330
+ results: matchedAttributeDVOs,
1331
+ isProcessed: true
1332
+ };
1333
+ }
1334
+ async processRelationshipAttributeQuery(query) {
1335
+ const matchedAttributeDTOResult = await this.consumption.attributes.executeRelationshipAttributeQuery({
1336
+ query
1337
+ });
1338
+ if (matchedAttributeDTOResult.isError) {
1339
+ if (matchedAttributeDTOResult.error.code !== "error.runtime.recordNotFound") {
1340
+ throw matchedAttributeDTOResult.error;
1341
+ }
1342
+ return {
1343
+ ...(await this.expandRelationshipAttributeQuery(query)),
1344
+ type: "ProcessedRelationshipAttributeQueryDVO",
1345
+ results: [],
1346
+ isProcessed: true
1347
+ };
1348
+ }
1349
+ const matchedAttributeDVOs = await this.expandLocalAttributeDTO(matchedAttributeDTOResult.value);
1350
+ return {
1351
+ ...(await this.expandRelationshipAttributeQuery(query)),
1352
+ type: "ProcessedRelationshipAttributeQueryDVO",
1353
+ results: [matchedAttributeDVOs],
1354
+ isProcessed: true
1355
+ };
1356
+ }
1357
+ async processThirdPartyRelationshipAttributeQuery(query) {
1358
+ const matchedAttributeDTOResult = await this.consumption.attributes.executeThirdPartyRelationshipAttributeQuery({
1359
+ query
1360
+ });
1361
+ if (matchedAttributeDTOResult.isError) {
1362
+ if (matchedAttributeDTOResult.error.code !== "error.runtime.recordNotFound") {
1363
+ throw matchedAttributeDTOResult.error;
1364
+ }
1365
+ return {
1366
+ ...(await this.expandThirdPartyRelationshipAttributeQuery(query)),
1367
+ type: "ProcessedThirdPartyRelationshipAttributeQueryDVO",
1368
+ results: [],
1369
+ isProcessed: true
1370
+ };
1371
+ }
1372
+ const matchedAttributeDVO = await this.expandLocalAttributeDTO(matchedAttributeDTOResult.value);
1373
+ const correctlyTypedAttribute = matchedAttributeDVO;
1374
+ return {
1375
+ ...(await this.expandThirdPartyRelationshipAttributeQuery(query)),
1376
+ type: "ProcessedThirdPartyRelationshipAttributeQueryDVO",
1377
+ results: [correctlyTypedAttribute],
1378
+ renderHints: correctlyTypedAttribute.renderHints,
1379
+ valueHints: correctlyTypedAttribute.valueHints,
1380
+ valueType: correctlyTypedAttribute.valueType,
1381
+ isProcessed: true
1382
+ };
1383
+ }
1384
+ async expandIdentityAttribute(attribute, attributeInstance) {
1385
+ const valueType = attribute.value["@type"];
1386
+ const name = `i18n://dvo.attribute.name.${valueType}`;
1387
+ const description = `i18n://dvo.attribute.description.${valueType}`;
1388
+ const renderHints = attributeInstance.value.renderHints.toJSON();
1389
+ const valueHints = attributeInstance.value.valueHints.toJSON();
1390
+ const owner = await this.expandAddress(attribute.owner);
1391
+ return {
1392
+ type: "DraftIdentityAttributeDVO",
1393
+ content: attribute,
1188
1394
  name,
1189
1395
  description,
1190
- valueType,
1191
- validFrom: query.validFrom,
1192
- validTo: query.validTo,
1193
- results: matchedAttributeDVOs,
1396
+ id: "",
1397
+ owner: owner,
1194
1398
  renderHints,
1195
1399
  valueHints,
1196
- isProcessed: true
1400
+ value: attribute.value,
1401
+ isDraft: true,
1402
+ isOwn: owner.isSelf,
1403
+ valueType,
1404
+ tags: attributeInstance.tags ? attributeInstance.tags : []
1197
1405
  };
1198
1406
  }
1199
- async expandAttribute(attribute) {
1200
- const attributeInstance = ts_serval_1.Serializable.fromAny(attribute);
1407
+ async expandRelationshipAttribute(attribute, attributeInstance) {
1201
1408
  const valueType = attribute.value["@type"];
1202
1409
  let name = `i18n://dvo.attribute.name.${valueType}`;
1203
1410
  let description = `i18n://dvo.attribute.description.${valueType}`;
1204
1411
  const renderHints = attributeInstance.value.renderHints.toJSON();
1205
1412
  const valueHints = attributeInstance.value.valueHints.toJSON();
1206
- if (attributeInstance instanceof content_1.RelationshipAttribute) {
1207
- name = ""; // attributeInstance.value.title;
1208
- description = ""; // attributeInstance.value.description;
1413
+ const valueAsAny = attributeInstance.value;
1414
+ if (valueAsAny.title) {
1415
+ name = valueAsAny.title;
1416
+ }
1417
+ if (valueAsAny.description) {
1418
+ description = valueAsAny.description;
1209
1419
  }
1210
1420
  const owner = await this.expandAddress(attribute.owner);
1211
1421
  return {
1212
- type: "DraftAttributeDVO",
1422
+ type: "DraftRelationshipAttributeDVO",
1213
1423
  content: attribute,
1214
1424
  name,
1215
1425
  description,
1426
+ key: attribute.key,
1427
+ confidentiality: attribute.confidentiality,
1428
+ isTechnical: !!attribute.isTechnical,
1216
1429
  id: "",
1217
1430
  owner: owner,
1218
1431
  renderHints,
@@ -1220,9 +1433,19 @@ let DataViewExpander = class DataViewExpander {
1220
1433
  value: attribute.value,
1221
1434
  isDraft: true,
1222
1435
  isOwn: owner.isSelf,
1223
- valueType: attribute.value["@type"]
1436
+ valueType
1224
1437
  };
1225
1438
  }
1439
+ async expandAttribute(attribute) {
1440
+ const attributeInstance = ts_serval_1.Serializable.fromAny(attribute);
1441
+ if (attributeInstance instanceof content_1.IdentityAttribute) {
1442
+ return await this.expandIdentityAttribute(attribute, attributeInstance);
1443
+ }
1444
+ else if (attributeInstance instanceof content_1.RelationshipAttribute) {
1445
+ return await this.expandRelationshipAttribute(attribute, attributeInstance);
1446
+ }
1447
+ throw new Error("Wrong attribute instance");
1448
+ }
1226
1449
  async expandAttributes(attributes) {
1227
1450
  const attributesPromise = attributes.map((attribute) => this.expandAttribute(attribute));
1228
1451
  return await Promise.all(attributesPromise);
@@ -1346,7 +1569,7 @@ let DataViewExpander = class DataViewExpander {
1346
1569
  attributesByType[valueType] = [attribute];
1347
1570
  }
1348
1571
  if (nameRelevantAttributeTypes.includes(valueType)) {
1349
- if (stringByType[valueType]) {
1572
+ if (stringByType[valueType] && valueType === "GivenName") {
1350
1573
  stringByType[valueType] += ` ${attribute.content.value.value}`;
1351
1574
  }
1352
1575
  else {
@@ -1379,12 +1602,18 @@ let DataViewExpander = class DataViewExpander {
1379
1602
  if (stringByType["DisplayName"]) {
1380
1603
  name = stringByType["DisplayName"];
1381
1604
  }
1605
+ else if (stringByType["MiddleName"] && stringByType["GivenName"] && stringByType["Surname"]) {
1606
+ name = `${stringByType["GivenName"]} ${stringByType["MiddleName"]} ${stringByType["Surname"]}`;
1607
+ }
1382
1608
  else if (stringByType["GivenName"] && stringByType["Surname"]) {
1383
1609
  name = `${stringByType["GivenName"]} ${stringByType["Surname"]}`;
1384
1610
  }
1385
1611
  else if (stringByType["Sex"] && stringByType["Surname"]) {
1386
1612
  name = `i18n://dvo.identity.Salutation.${stringByType["Sex"]} ${stringByType["Surname"]}`;
1387
1613
  }
1614
+ else if (stringByType["Surname"]) {
1615
+ name = `${stringByType["Surname"]}`;
1616
+ }
1388
1617
  else {
1389
1618
  name = relationship.peer.substring(3, 9);
1390
1619
  }
@@ -1403,7 +1632,8 @@ let DataViewExpander = class DataViewExpander {
1403
1632
  items: expandedAttributes,
1404
1633
  nameMap: stringByType,
1405
1634
  changes: changes,
1406
- changeCount: changes.length
1635
+ changeCount: changes.length,
1636
+ templateId: relationship.template.id
1407
1637
  };
1408
1638
  }
1409
1639
  async expandRelationshipDTO(relationship) {
@@ -3069,7 +3299,7 @@ exports.AttributesFacade = void 0;
3069
3299
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
3070
3300
  const useCases_1 = __webpack_require__(/*! ../../../useCases */ "./dist/useCases/index.js");
3071
3301
  let AttributesFacade = class AttributesFacade {
3072
- constructor(createAttributeUseCase, createSharedAttributeCopyUseCase, deleteAttributeUseCase, getPeerAttributesUseCase, getSharedToPeerAttributesUseCase, getAttributeUseCase, getAttributesUseCase, succeedAttributeUseCase, updateAttributeUseCase, executeIdentityAttributeQueryUseCase, executeRelationshipAttributeQueryUseCase) {
3302
+ constructor(createAttributeUseCase, createSharedAttributeCopyUseCase, deleteAttributeUseCase, getPeerAttributesUseCase, getSharedToPeerAttributesUseCase, getAttributeUseCase, getAttributesUseCase, succeedAttributeUseCase, updateAttributeUseCase, executeIdentityAttributeQueryUseCase, executeRelationshipAttributeQueryUseCase, executeThirdPartyRelationshipAttributeQueryUseCase) {
3073
3303
  this.createAttributeUseCase = createAttributeUseCase;
3074
3304
  this.createSharedAttributeCopyUseCase = createSharedAttributeCopyUseCase;
3075
3305
  this.deleteAttributeUseCase = deleteAttributeUseCase;
@@ -3081,6 +3311,7 @@ let AttributesFacade = class AttributesFacade {
3081
3311
  this.updateAttributeUseCase = updateAttributeUseCase;
3082
3312
  this.executeIdentityAttributeQueryUseCase = executeIdentityAttributeQueryUseCase;
3083
3313
  this.executeRelationshipAttributeQueryUseCase = executeRelationshipAttributeQueryUseCase;
3314
+ this.executeThirdPartyRelationshipAttributeQueryUseCase = executeThirdPartyRelationshipAttributeQueryUseCase;
3084
3315
  }
3085
3316
  async createAttribute(request) {
3086
3317
  return await this.createAttributeUseCase.execute(request);
@@ -3109,6 +3340,9 @@ let AttributesFacade = class AttributesFacade {
3109
3340
  async executeRelationshipAttributeQuery(request) {
3110
3341
  return await this.executeRelationshipAttributeQueryUseCase.execute(request);
3111
3342
  }
3343
+ async executeThirdPartyRelationshipAttributeQuery(request) {
3344
+ return await this.executeThirdPartyRelationshipAttributeQueryUseCase.execute(request);
3345
+ }
3112
3346
  async succeedAttribute(request) {
3113
3347
  return await this.succeedAttributeUseCase.execute(request);
3114
3348
  }
@@ -3128,6 +3362,7 @@ AttributesFacade = __decorate([
3128
3362
  __param(8, typescript_ioc_1.Inject),
3129
3363
  __param(9, typescript_ioc_1.Inject),
3130
3364
  __param(10, typescript_ioc_1.Inject),
3365
+ __param(11, typescript_ioc_1.Inject),
3131
3366
  __metadata("design:paramtypes", [useCases_1.CreateAttributeUseCase,
3132
3367
  useCases_1.CreateSharedAttributeCopyUseCase,
3133
3368
  useCases_1.DeleteAttributeUseCase,
@@ -3138,7 +3373,8 @@ AttributesFacade = __decorate([
3138
3373
  useCases_1.SucceedAttributeUseCase,
3139
3374
  useCases_1.UpdateAttributeUseCase,
3140
3375
  useCases_1.ExecuteIdentityAttributeQueryUseCase,
3141
- useCases_1.ExecuteRelationshipAttributeQueryUseCase])
3376
+ useCases_1.ExecuteRelationshipAttributeQueryUseCase,
3377
+ useCases_1.ExecuteThirdPartyRelationshipAttributeQueryUseCase])
3142
3378
  ], AttributesFacade);
3143
3379
  exports.AttributesFacade = AttributesFacade;
3144
3380
  //# sourceMappingURL=AttributesFacade.js.map
@@ -5524,7 +5760,7 @@ const ajv_formats_1 = __importDefault(__webpack_require__(/*! ajv-formats */ "./
5524
5760
  class SchemaRepository {
5525
5761
  constructor() {
5526
5762
  this.jsonSchemas = new Map();
5527
- this.compiler = new ajv_1.default({ allErrors: true });
5763
+ this.compiler = new ajv_1.default({ allErrors: true, allowUnionTypes: true });
5528
5764
  (0, ajv_formats_1.default)(this.compiler);
5529
5765
  (0, ajv_errors_1.default)(this.compiler);
5530
5766
  }
@@ -5570,8 +5806,8 @@ exports.JsonSchema = JsonSchema;
5570
5806
  "use strict";
5571
5807
 
5572
5808
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5573
- exports.CreateDeviceRequest = exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.CreateDeviceChallengeRequest = exports.CreateIdentityChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.SyncEverythingRequest = exports.DownloadAttachmentRequest = exports.SyncDatawalletRequest = exports.RegisterPushNotificationTokenRequest = exports.LoadItemFromTruncatedReferenceRequest = exports.DownloadFileRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.CreateOutgoingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CanCreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.UpdateAttributeRequest = exports.SucceedAttributeRequest = exports.GetSharedToPeerAttributesRequest = exports.GetPeerAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.DeleteAttributeRequest = exports.CreateSharedAttributeCopyRequest = exports.CreateAttributeRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
5574
- 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.CreateRelationshipChangeRequest = 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 = void 0;
5809
+ exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.CreateDeviceChallengeRequest = exports.CreateIdentityChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.SyncEverythingRequest = exports.DownloadAttachmentRequest = exports.SyncDatawalletRequest = exports.RegisterPushNotificationTokenRequest = exports.LoadItemFromTruncatedReferenceRequest = exports.DownloadFileRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.CreateOutgoingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CanCreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.UpdateAttributeRequest = exports.SucceedAttributeRequest = exports.GetSharedToPeerAttributesRequest = exports.GetPeerAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteThirdPartyRelationshipAttributeQueryRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.DeleteAttributeRequest = exports.CreateSharedAttributeCopyRequest = exports.CreateAttributeRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
5810
+ 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.CreateRelationshipChangeRequest = 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 = void 0;
5575
5811
  exports.LoadPeerTokenAnonymousByIdAndKeyRequest = {
5576
5812
  "$schema": "http://json-schema.org/draft-07/schema#",
5577
5813
  "$ref": "#/definitions/LoadPeerTokenAnonymousByIdAndKeyRequest",
@@ -5647,7 +5883,8 @@ exports.CreateAttributeRequest = {
5647
5883
  "type": "object",
5648
5884
  "properties": {
5649
5885
  "@type": {
5650
- "type": "string"
5886
+ "type": "string",
5887
+ "const": "IdentityAttribute"
5651
5888
  },
5652
5889
  "@context": {
5653
5890
  "type": "string"
@@ -5699,7 +5936,8 @@ exports.CreateAttributeRequest = {
5699
5936
  "type": "object",
5700
5937
  "properties": {
5701
5938
  "@type": {
5702
- "type": "string"
5939
+ "type": "string",
5940
+ "const": "RelationshipAttribute"
5703
5941
  },
5704
5942
  "@context": {
5705
5943
  "type": "string"
@@ -5848,15 +6086,15 @@ exports.ExecuteIdentityAttributeQueryRequest = {
5848
6086
  "IIdentityAttributeQuery": {
5849
6087
  "type": "object",
5850
6088
  "properties": {
5851
- "valueType": {
5852
- "type": "string"
5853
- },
5854
6089
  "validFrom": {
5855
6090
  "$ref": "#/definitions/ICoreDate"
5856
6091
  },
5857
6092
  "validTo": {
5858
6093
  "$ref": "#/definitions/ICoreDate"
5859
6094
  },
6095
+ "valueType": {
6096
+ "type": "string"
6097
+ },
5860
6098
  "tags": {
5861
6099
  "type": "array",
5862
6100
  "items": {
@@ -5864,10 +6102,10 @@ exports.ExecuteIdentityAttributeQueryRequest = {
5864
6102
  }
5865
6103
  }
5866
6104
  },
5867
- "additionalProperties": false,
5868
6105
  "required": [
5869
6106
  "valueType"
5870
- ]
6107
+ ],
6108
+ "additionalProperties": false
5871
6109
  },
5872
6110
  "ICoreDate": {
5873
6111
  "type": "object",
@@ -5885,7 +6123,8 @@ exports.ExecuteIdentityAttributeQueryRequest = {
5885
6123
  "type": "object",
5886
6124
  "properties": {
5887
6125
  "@type": {
5888
- "type": "string"
6126
+ "type": "string",
6127
+ "const": "IdentityAttributeQuery"
5889
6128
  },
5890
6129
  "@context": {
5891
6130
  "type": "string"
@@ -5893,15 +6132,15 @@ exports.ExecuteIdentityAttributeQueryRequest = {
5893
6132
  "@version": {
5894
6133
  "type": "string"
5895
6134
  },
5896
- "valueType": {
5897
- "type": "string"
5898
- },
5899
6135
  "validFrom": {
5900
6136
  "type": "string"
5901
6137
  },
5902
6138
  "validTo": {
5903
6139
  "type": "string"
5904
6140
  },
6141
+ "valueType": {
6142
+ "type": "string"
6143
+ },
5905
6144
  "tags": {
5906
6145
  "type": "array",
5907
6146
  "items": {
@@ -5909,11 +6148,11 @@ exports.ExecuteIdentityAttributeQueryRequest = {
5909
6148
  }
5910
6149
  }
5911
6150
  },
5912
- "additionalProperties": false,
5913
6151
  "required": [
5914
6152
  "@type",
5915
6153
  "valueType"
5916
- ]
6154
+ ],
6155
+ "additionalProperties": false
5917
6156
  }
5918
6157
  }
5919
6158
  };
@@ -5943,9 +6182,6 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
5943
6182
  "IRelationshipAttributeQuery": {
5944
6183
  "type": "object",
5945
6184
  "properties": {
5946
- "valueType": {
5947
- "type": "string"
5948
- },
5949
6185
  "validFrom": {
5950
6186
  "$ref": "#/definitions/ICoreDate"
5951
6187
  },
@@ -5958,18 +6194,14 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
5958
6194
  "owner": {
5959
6195
  "$ref": "#/definitions/ICoreAddress"
5960
6196
  },
5961
- "thirdParty": {
5962
- "$ref": "#/definitions/ICoreAddress"
5963
- },
5964
6197
  "attributeCreationHints": {
5965
6198
  "$ref": "#/definitions/IRelationshipAttributeCreationHints"
5966
6199
  }
5967
6200
  },
5968
6201
  "required": [
5969
- "attributeCreationHints",
5970
6202
  "key",
5971
6203
  "owner",
5972
- "valueType"
6204
+ "attributeCreationHints"
5973
6205
  ],
5974
6206
  "additionalProperties": false
5975
6207
  },
@@ -6003,6 +6235,9 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6003
6235
  "title": {
6004
6236
  "type": "string"
6005
6237
  },
6238
+ "valueType": {
6239
+ "type": "string"
6240
+ },
6006
6241
  "description": {
6007
6242
  "type": "string"
6008
6243
  },
@@ -6018,6 +6253,7 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6018
6253
  },
6019
6254
  "required": [
6020
6255
  "title",
6256
+ "valueType",
6021
6257
  "confidentiality"
6022
6258
  ],
6023
6259
  "additionalProperties": false
@@ -6091,7 +6327,8 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6091
6327
  "type": "object",
6092
6328
  "properties": {
6093
6329
  "@type": {
6094
- "type": "string"
6330
+ "type": "string",
6331
+ "const": "RelationshipAttributeQuery"
6095
6332
  },
6096
6333
  "@context": {
6097
6334
  "type": "string"
@@ -6099,9 +6336,6 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6099
6336
  "@version": {
6100
6337
  "type": "string"
6101
6338
  },
6102
- "valueType": {
6103
- "type": "string"
6104
- },
6105
6339
  "validFrom": {
6106
6340
  "type": "string"
6107
6341
  },
@@ -6114,9 +6348,6 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6114
6348
  "owner": {
6115
6349
  "type": "string"
6116
6350
  },
6117
- "thirdParty": {
6118
- "type": "string"
6119
- },
6120
6351
  "attributeCreationHints": {
6121
6352
  "$ref": "#/definitions/RelationshipAttributeCreationHintsJSON"
6122
6353
  }
@@ -6125,8 +6356,7 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6125
6356
  "@type",
6126
6357
  "attributeCreationHints",
6127
6358
  "key",
6128
- "owner",
6129
- "valueType"
6359
+ "owner"
6130
6360
  ],
6131
6361
  "additionalProperties": false
6132
6362
  },
@@ -6136,6 +6366,9 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6136
6366
  "title": {
6137
6367
  "type": "string"
6138
6368
  },
6369
+ "valueType": {
6370
+ "type": "string"
6371
+ },
6139
6372
  "description": {
6140
6373
  "type": "string"
6141
6374
  },
@@ -6151,6 +6384,7 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6151
6384
  },
6152
6385
  "required": [
6153
6386
  "title",
6387
+ "valueType",
6154
6388
  "confidentiality"
6155
6389
  ],
6156
6390
  "additionalProperties": false
@@ -6159,7 +6393,8 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6159
6393
  "type": "object",
6160
6394
  "properties": {
6161
6395
  "@type": {
6162
- "type": "string"
6396
+ "type": "string",
6397
+ "const": "ValueHints"
6163
6398
  },
6164
6399
  "@context": {
6165
6400
  "type": "string"
@@ -6199,10 +6434,10 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6199
6434
  }
6200
6435
  }
6201
6436
  },
6202
- "additionalProperties": false,
6203
6437
  "required": [
6204
6438
  "@type"
6205
- ]
6439
+ ],
6440
+ "additionalProperties": false
6206
6441
  },
6207
6442
  "ValueHintsValueJSON": {
6208
6443
  "type": "object",
@@ -6226,6 +6461,118 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
6226
6461
  }
6227
6462
  }
6228
6463
  };
6464
+ exports.ExecuteThirdPartyRelationshipAttributeQueryRequest = {
6465
+ "$schema": "http://json-schema.org/draft-07/schema#",
6466
+ "$ref": "#/definitions/ExecuteThirdPartyRelationshipAttributeQueryRequest",
6467
+ "definitions": {
6468
+ "ExecuteThirdPartyRelationshipAttributeQueryRequest": {
6469
+ "type": "object",
6470
+ "properties": {
6471
+ "query": {
6472
+ "anyOf": [
6473
+ {
6474
+ "$ref": "#/definitions/IThirdPartyRelationshipAttributeQuery"
6475
+ },
6476
+ {
6477
+ "$ref": "#/definitions/ThirdPartyRelationshipAttributeQueryJSON"
6478
+ }
6479
+ ]
6480
+ }
6481
+ },
6482
+ "required": [
6483
+ "query"
6484
+ ],
6485
+ "additionalProperties": false
6486
+ },
6487
+ "IThirdPartyRelationshipAttributeQuery": {
6488
+ "type": "object",
6489
+ "properties": {
6490
+ "validFrom": {
6491
+ "$ref": "#/definitions/ICoreDate"
6492
+ },
6493
+ "validTo": {
6494
+ "$ref": "#/definitions/ICoreDate"
6495
+ },
6496
+ "key": {
6497
+ "type": "string"
6498
+ },
6499
+ "owner": {
6500
+ "$ref": "#/definitions/ICoreAddress"
6501
+ },
6502
+ "thirdParty": {
6503
+ "$ref": "#/definitions/ICoreAddress"
6504
+ }
6505
+ },
6506
+ "required": [
6507
+ "key",
6508
+ "owner",
6509
+ "thirdParty"
6510
+ ],
6511
+ "additionalProperties": false
6512
+ },
6513
+ "ICoreDate": {
6514
+ "type": "object",
6515
+ "properties": {
6516
+ "date": {
6517
+ "type": "string"
6518
+ }
6519
+ },
6520
+ "required": [
6521
+ "date"
6522
+ ],
6523
+ "additionalProperties": false
6524
+ },
6525
+ "ICoreAddress": {
6526
+ "type": "object",
6527
+ "properties": {
6528
+ "address": {
6529
+ "type": "string"
6530
+ }
6531
+ },
6532
+ "required": [
6533
+ "address"
6534
+ ],
6535
+ "additionalProperties": false
6536
+ },
6537
+ "ThirdPartyRelationshipAttributeQueryJSON": {
6538
+ "type": "object",
6539
+ "properties": {
6540
+ "@type": {
6541
+ "type": "string",
6542
+ "const": "ThirdPartyRelationshipAttributeQuery"
6543
+ },
6544
+ "@context": {
6545
+ "type": "string"
6546
+ },
6547
+ "@version": {
6548
+ "type": "string"
6549
+ },
6550
+ "validFrom": {
6551
+ "type": "string"
6552
+ },
6553
+ "validTo": {
6554
+ "type": "string"
6555
+ },
6556
+ "key": {
6557
+ "type": "string"
6558
+ },
6559
+ "owner": {
6560
+ "type": "string"
6561
+ },
6562
+ "thirdParty": {
6563
+ "type": "string"
6564
+ }
6565
+ },
6566
+ "required": [
6567
+ "@type",
6568
+ "key",
6569
+ "owner",
6570
+ "thirdParty"
6571
+ ],
6572
+ "additionalProperties": false
6573
+ }
6574
+ }
6575
+ };
6229
6576
  exports.GetAttributeRequest = {
6230
6577
  "$schema": "http://json-schema.org/draft-07/schema#",
6231
6578
  "$ref": "#/definitions/GetAttributeRequest",
@@ -6840,7 +7187,8 @@ exports.SucceedAttributeRequest = {
6840
7187
  "type": "object",
6841
7188
  "properties": {
6842
7189
  "@type": {
6843
- "type": "string"
7190
+ "type": "string",
7191
+ "const": "IdentityAttribute"
6844
7192
  },
6845
7193
  "@context": {
6846
7194
  "type": "string"
@@ -6892,7 +7240,8 @@ exports.SucceedAttributeRequest = {
6892
7240
  "type": "object",
6893
7241
  "properties": {
6894
7242
  "@type": {
6895
- "type": "string"
7243
+ "type": "string",
7244
+ "const": "RelationshipAttribute"
6896
7245
  },
6897
7246
  "@context": {
6898
7247
  "type": "string"
@@ -6994,7 +7343,8 @@ exports.UpdateAttributeRequest = {
6994
7343
  "type": "object",
6995
7344
  "properties": {
6996
7345
  "@type": {
6997
- "type": "string"
7346
+ "type": "string",
7347
+ "const": "IdentityAttribute"
6998
7348
  },
6999
7349
  "@context": {
7000
7350
  "type": "string"
@@ -7046,7 +7396,8 @@ exports.UpdateAttributeRequest = {
7046
7396
  "type": "object",
7047
7397
  "properties": {
7048
7398
  "@type": {
7049
- "type": "string"
7399
+ "type": "string",
7400
+ "const": "RelationshipAttribute"
7050
7401
  },
7051
7402
  "@context": {
7052
7403
  "type": "string"
@@ -7459,7 +7810,8 @@ exports.CanCreateOutgoingRequestRequest = {
7459
7810
  "type": "object",
7460
7811
  "properties": {
7461
7812
  "@type": {
7462
- "type": "string"
7813
+ "type": "string",
7814
+ "const": "RequestItemGroup"
7463
7815
  },
7464
7816
  "@context": {
7465
7817
  "type": "string"
@@ -7505,7 +7857,7 @@ exports.CanCreateOutgoingRequestRequest = {
7505
7857
  "$ref": "#/definitions/RequestItemJSON"
7506
7858
  },
7507
7859
  {
7508
- "$ref": "#/definitions/CreateRelationshipAttributeRequestItemJSON"
7860
+ "$ref": "#/definitions/CreateAttributeRequestItemJSON"
7509
7861
  },
7510
7862
  {
7511
7863
  "$ref": "#/definitions/ShareAttributeRequestItemJSON"
@@ -7563,11 +7915,12 @@ exports.CanCreateOutgoingRequestRequest = {
7563
7915
  ],
7564
7916
  "additionalProperties": false
7565
7917
  },
7566
- "CreateRelationshipAttributeRequestItemJSON": {
7918
+ "CreateAttributeRequestItemJSON": {
7567
7919
  "type": "object",
7568
7920
  "properties": {
7569
7921
  "@type": {
7570
- "type": "string"
7922
+ "type": "string",
7923
+ "const": "CreateAttributeRequestItem"
7571
7924
  },
7572
7925
  "@context": {
7573
7926
  "type": "string"
@@ -7596,7 +7949,14 @@ exports.CanCreateOutgoingRequestRequest = {
7596
7949
  "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."
7597
7950
  },
7598
7951
  "attribute": {
7599
- "$ref": "#/definitions/RelationshipAttributeJSON"
7952
+ "anyOf": [
7953
+ {
7954
+ "$ref": "#/definitions/RelationshipAttributeJSON"
7955
+ },
7956
+ {
7957
+ "$ref": "#/definitions/IdentityAttributeJSON"
7958
+ }
7959
+ ]
7600
7960
  }
7601
7961
  },
7602
7962
  "required": [
@@ -7610,7 +7970,8 @@ exports.CanCreateOutgoingRequestRequest = {
7610
7970
  "type": "object",
7611
7971
  "properties": {
7612
7972
  "@type": {
7613
- "type": "string"
7973
+ "type": "string",
7974
+ "const": "RelationshipAttribute"
7614
7975
  },
7615
7976
  "@context": {
7616
7977
  "type": "string"
@@ -7674,12 +8035,52 @@ exports.CanCreateOutgoingRequestRequest = {
7674
8035
  "protected"
7675
8036
  ]
7676
8037
  },
7677
- "ShareAttributeRequestItemJSON": {
8038
+ "IdentityAttributeJSON": {
7678
8039
  "type": "object",
7679
8040
  "properties": {
7680
8041
  "@type": {
8042
+ "type": "string",
8043
+ "const": "IdentityAttribute"
8044
+ },
8045
+ "@context": {
8046
+ "type": "string"
8047
+ },
8048
+ "@version": {
8049
+ "type": "string"
8050
+ },
8051
+ "owner": {
8052
+ "type": "string"
8053
+ },
8054
+ "validFrom": {
8055
+ "type": "string"
8056
+ },
8057
+ "validTo": {
7681
8058
  "type": "string"
7682
8059
  },
8060
+ "value": {
8061
+ "$ref": "#/definitions/AbstractAttributeValueJSON"
8062
+ },
8063
+ "tags": {
8064
+ "type": "array",
8065
+ "items": {
8066
+ "type": "string"
8067
+ }
8068
+ }
8069
+ },
8070
+ "required": [
8071
+ "@type",
8072
+ "owner",
8073
+ "value"
8074
+ ],
8075
+ "additionalProperties": false
8076
+ },
8077
+ "ShareAttributeRequestItemJSON": {
8078
+ "type": "object",
8079
+ "properties": {
8080
+ "@type": {
8081
+ "type": "string",
8082
+ "const": "ShareAttributeRequestItem"
8083
+ },
7683
8084
  "@context": {
7684
8085
  "type": "string"
7685
8086
  },
@@ -7728,49 +8129,12 @@ exports.CanCreateOutgoingRequestRequest = {
7728
8129
  ],
7729
8130
  "additionalProperties": false
7730
8131
  },
7731
- "IdentityAttributeJSON": {
7732
- "type": "object",
7733
- "properties": {
7734
- "@type": {
7735
- "type": "string"
7736
- },
7737
- "@context": {
7738
- "type": "string"
7739
- },
7740
- "@version": {
7741
- "type": "string"
7742
- },
7743
- "owner": {
7744
- "type": "string"
7745
- },
7746
- "validFrom": {
7747
- "type": "string"
7748
- },
7749
- "validTo": {
7750
- "type": "string"
7751
- },
7752
- "value": {
7753
- "$ref": "#/definitions/AbstractAttributeValueJSON"
7754
- },
7755
- "tags": {
7756
- "type": "array",
7757
- "items": {
7758
- "type": "string"
7759
- }
7760
- }
7761
- },
7762
- "required": [
7763
- "@type",
7764
- "owner",
7765
- "value"
7766
- ],
7767
- "additionalProperties": false
7768
- },
7769
8132
  "ProposeAttributeRequestItemJSON": {
7770
8133
  "type": "object",
7771
8134
  "properties": {
7772
8135
  "@type": {
7773
- "type": "string"
8136
+ "type": "string",
8137
+ "const": "ProposeAttributeRequestItem"
7774
8138
  },
7775
8139
  "@context": {
7776
8140
  "type": "string"
@@ -7831,7 +8195,8 @@ exports.CanCreateOutgoingRequestRequest = {
7831
8195
  "type": "object",
7832
8196
  "properties": {
7833
8197
  "@type": {
7834
- "type": "string"
8198
+ "type": "string",
8199
+ "const": "IdentityAttributeQuery"
7835
8200
  },
7836
8201
  "@context": {
7837
8202
  "type": "string"
@@ -7839,15 +8204,15 @@ exports.CanCreateOutgoingRequestRequest = {
7839
8204
  "@version": {
7840
8205
  "type": "string"
7841
8206
  },
7842
- "valueType": {
7843
- "type": "string"
7844
- },
7845
8207
  "validFrom": {
7846
8208
  "type": "string"
7847
8209
  },
7848
8210
  "validTo": {
7849
8211
  "type": "string"
7850
8212
  },
8213
+ "valueType": {
8214
+ "type": "string"
8215
+ },
7851
8216
  "tags": {
7852
8217
  "type": "array",
7853
8218
  "items": {
@@ -7855,17 +8220,18 @@ exports.CanCreateOutgoingRequestRequest = {
7855
8220
  }
7856
8221
  }
7857
8222
  },
7858
- "additionalProperties": false,
7859
8223
  "required": [
7860
8224
  "@type",
7861
8225
  "valueType"
7862
- ]
8226
+ ],
8227
+ "additionalProperties": false
7863
8228
  },
7864
8229
  "RelationshipAttributeQueryJSON": {
7865
8230
  "type": "object",
7866
8231
  "properties": {
7867
8232
  "@type": {
7868
- "type": "string"
8233
+ "type": "string",
8234
+ "const": "RelationshipAttributeQuery"
7869
8235
  },
7870
8236
  "@context": {
7871
8237
  "type": "string"
@@ -7873,9 +8239,6 @@ exports.CanCreateOutgoingRequestRequest = {
7873
8239
  "@version": {
7874
8240
  "type": "string"
7875
8241
  },
7876
- "valueType": {
7877
- "type": "string"
7878
- },
7879
8242
  "validFrom": {
7880
8243
  "type": "string"
7881
8244
  },
@@ -7888,9 +8251,6 @@ exports.CanCreateOutgoingRequestRequest = {
7888
8251
  "owner": {
7889
8252
  "type": "string"
7890
8253
  },
7891
- "thirdParty": {
7892
- "type": "string"
7893
- },
7894
8254
  "attributeCreationHints": {
7895
8255
  "$ref": "#/definitions/RelationshipAttributeCreationHintsJSON"
7896
8256
  }
@@ -7899,8 +8259,7 @@ exports.CanCreateOutgoingRequestRequest = {
7899
8259
  "@type",
7900
8260
  "attributeCreationHints",
7901
8261
  "key",
7902
- "owner",
7903
- "valueType"
8262
+ "owner"
7904
8263
  ],
7905
8264
  "additionalProperties": false
7906
8265
  },
@@ -7910,6 +8269,9 @@ exports.CanCreateOutgoingRequestRequest = {
7910
8269
  "title": {
7911
8270
  "type": "string"
7912
8271
  },
8272
+ "valueType": {
8273
+ "type": "string"
8274
+ },
7913
8275
  "description": {
7914
8276
  "type": "string"
7915
8277
  },
@@ -7925,6 +8287,7 @@ exports.CanCreateOutgoingRequestRequest = {
7925
8287
  },
7926
8288
  "required": [
7927
8289
  "title",
8290
+ "valueType",
7928
8291
  "confidentiality"
7929
8292
  ],
7930
8293
  "additionalProperties": false
@@ -7933,7 +8296,8 @@ exports.CanCreateOutgoingRequestRequest = {
7933
8296
  "type": "object",
7934
8297
  "properties": {
7935
8298
  "@type": {
7936
- "type": "string"
8299
+ "type": "string",
8300
+ "const": "ValueHints"
7937
8301
  },
7938
8302
  "@context": {
7939
8303
  "type": "string"
@@ -7973,10 +8337,10 @@ exports.CanCreateOutgoingRequestRequest = {
7973
8337
  }
7974
8338
  }
7975
8339
  },
7976
- "additionalProperties": false,
7977
8340
  "required": [
7978
8341
  "@type"
7979
- ]
8342
+ ],
8343
+ "additionalProperties": false
7980
8344
  },
7981
8345
  "ValueHintsValueJSON": {
7982
8346
  "type": "object",
@@ -8002,7 +8366,8 @@ exports.CanCreateOutgoingRequestRequest = {
8002
8366
  "type": "object",
8003
8367
  "properties": {
8004
8368
  "@type": {
8005
- "type": "string"
8369
+ "type": "string",
8370
+ "const": "ReadAttributeRequestItem"
8006
8371
  },
8007
8372
  "@context": {
8008
8373
  "type": "string"
@@ -8031,7 +8396,17 @@ exports.CanCreateOutgoingRequestRequest = {
8031
8396
  "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."
8032
8397
  },
8033
8398
  "query": {
8034
- "$ref": "#/definitions/AbstractAttributeQueryJSON"
8399
+ "anyOf": [
8400
+ {
8401
+ "$ref": "#/definitions/IdentityAttributeQueryJSON"
8402
+ },
8403
+ {
8404
+ "$ref": "#/definitions/RelationshipAttributeQueryJSON"
8405
+ },
8406
+ {
8407
+ "$ref": "#/definitions/ThirdPartyRelationshipAttributeQueryJSON"
8408
+ }
8409
+ ]
8035
8410
  }
8036
8411
  },
8037
8412
  "required": [
@@ -8041,11 +8416,12 @@ exports.CanCreateOutgoingRequestRequest = {
8041
8416
  ],
8042
8417
  "additionalProperties": false
8043
8418
  },
8044
- "AbstractAttributeQueryJSON": {
8419
+ "ThirdPartyRelationshipAttributeQueryJSON": {
8045
8420
  "type": "object",
8046
8421
  "properties": {
8047
8422
  "@type": {
8048
- "type": "string"
8423
+ "type": "string",
8424
+ "const": "ThirdPartyRelationshipAttributeQuery"
8049
8425
  },
8050
8426
  "@context": {
8051
8427
  "type": "string"
@@ -8053,19 +8429,27 @@ exports.CanCreateOutgoingRequestRequest = {
8053
8429
  "@version": {
8054
8430
  "type": "string"
8055
8431
  },
8056
- "valueType": {
8057
- "type": "string"
8058
- },
8059
8432
  "validFrom": {
8060
8433
  "type": "string"
8061
8434
  },
8062
8435
  "validTo": {
8063
8436
  "type": "string"
8437
+ },
8438
+ "key": {
8439
+ "type": "string"
8440
+ },
8441
+ "owner": {
8442
+ "type": "string"
8443
+ },
8444
+ "thirdParty": {
8445
+ "type": "string"
8064
8446
  }
8065
8447
  },
8066
8448
  "required": [
8067
8449
  "@type",
8068
- "valueType"
8450
+ "key",
8451
+ "owner",
8452
+ "thirdParty"
8069
8453
  ],
8070
8454
  "additionalProperties": false
8071
8455
  },
@@ -8073,7 +8457,8 @@ exports.CanCreateOutgoingRequestRequest = {
8073
8457
  "type": "object",
8074
8458
  "properties": {
8075
8459
  "@type": {
8076
- "type": "string"
8460
+ "type": "string",
8461
+ "const": "ConsentRequestItem"
8077
8462
  },
8078
8463
  "@context": {
8079
8464
  "type": "string"
@@ -8117,10 +8502,10 @@ exports.CanCreateOutgoingRequestRequest = {
8117
8502
  },
8118
8503
  "AuthenticationRequestItemJSON": {
8119
8504
  "type": "object",
8120
- "additionalProperties": false,
8121
8505
  "properties": {
8122
8506
  "@type": {
8123
- "type": "string"
8507
+ "type": "string",
8508
+ "const": "AuthenticationRequestItem"
8124
8509
  },
8125
8510
  "@context": {
8126
8511
  "type": "string"
@@ -8152,7 +8537,8 @@ exports.CanCreateOutgoingRequestRequest = {
8152
8537
  "required": [
8153
8538
  "@type",
8154
8539
  "mustBeAccepted"
8155
- ]
8540
+ ],
8541
+ "additionalProperties": false
8156
8542
  },
8157
8543
  "IRequestItemGroup": {
8158
8544
  "type": "object",
@@ -8194,7 +8580,7 @@ exports.CanCreateOutgoingRequestRequest = {
8194
8580
  "$ref": "#/definitions/IRequestItem"
8195
8581
  },
8196
8582
  {
8197
- "$ref": "#/definitions/ICreateRelationshipAttributeRequestItem"
8583
+ "$ref": "#/definitions/ICreateAttributeRequestItem"
8198
8584
  },
8199
8585
  {
8200
8586
  "$ref": "#/definitions/IShareAttributeRequestItem"
@@ -8242,7 +8628,7 @@ exports.CanCreateOutgoingRequestRequest = {
8242
8628
  ],
8243
8629
  "additionalProperties": false
8244
8630
  },
8245
- "ICreateRelationshipAttributeRequestItem": {
8631
+ "ICreateAttributeRequestItem": {
8246
8632
  "type": "object",
8247
8633
  "properties": {
8248
8634
  "title": {
@@ -8266,7 +8652,14 @@ exports.CanCreateOutgoingRequestRequest = {
8266
8652
  "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."
8267
8653
  },
8268
8654
  "attribute": {
8269
- "$ref": "#/definitions/IRelationshipAttribute"
8655
+ "anyOf": [
8656
+ {
8657
+ "$ref": "#/definitions/IRelationshipAttribute"
8658
+ },
8659
+ {
8660
+ "$ref": "#/definitions/IIdentityAttribute"
8661
+ }
8662
+ ]
8270
8663
  }
8271
8664
  },
8272
8665
  "required": [
@@ -8325,6 +8718,34 @@ exports.CanCreateOutgoingRequestRequest = {
8325
8718
  "additionalProperties": false,
8326
8719
  "properties": {}
8327
8720
  },
8721
+ "IIdentityAttribute": {
8722
+ "type": "object",
8723
+ "properties": {
8724
+ "owner": {
8725
+ "$ref": "#/definitions/ICoreAddress"
8726
+ },
8727
+ "validFrom": {
8728
+ "$ref": "#/definitions/ICoreDate"
8729
+ },
8730
+ "validTo": {
8731
+ "$ref": "#/definitions/ICoreDate"
8732
+ },
8733
+ "value": {
8734
+ "$ref": "#/definitions/IAbstractAttributeValue"
8735
+ },
8736
+ "tags": {
8737
+ "type": "array",
8738
+ "items": {
8739
+ "type": "string"
8740
+ }
8741
+ }
8742
+ },
8743
+ "required": [
8744
+ "owner",
8745
+ "value"
8746
+ ],
8747
+ "additionalProperties": false
8748
+ },
8328
8749
  "IShareAttributeRequestItem": {
8329
8750
  "type": "object",
8330
8751
  "properties": {
@@ -8369,34 +8790,6 @@ exports.CanCreateOutgoingRequestRequest = {
8369
8790
  ],
8370
8791
  "additionalProperties": false
8371
8792
  },
8372
- "IIdentityAttribute": {
8373
- "type": "object",
8374
- "properties": {
8375
- "owner": {
8376
- "$ref": "#/definitions/ICoreAddress"
8377
- },
8378
- "validFrom": {
8379
- "$ref": "#/definitions/ICoreDate"
8380
- },
8381
- "validTo": {
8382
- "$ref": "#/definitions/ICoreDate"
8383
- },
8384
- "value": {
8385
- "$ref": "#/definitions/IAbstractAttributeValue"
8386
- },
8387
- "tags": {
8388
- "type": "array",
8389
- "items": {
8390
- "type": "string"
8391
- }
8392
- }
8393
- },
8394
- "required": [
8395
- "owner",
8396
- "value"
8397
- ],
8398
- "additionalProperties": false
8399
- },
8400
8793
  "ICoreId": {
8401
8794
  "type": "object",
8402
8795
  "properties": {
@@ -8463,15 +8856,15 @@ exports.CanCreateOutgoingRequestRequest = {
8463
8856
  "IIdentityAttributeQuery": {
8464
8857
  "type": "object",
8465
8858
  "properties": {
8466
- "valueType": {
8467
- "type": "string"
8468
- },
8469
8859
  "validFrom": {
8470
8860
  "$ref": "#/definitions/ICoreDate"
8471
8861
  },
8472
8862
  "validTo": {
8473
8863
  "$ref": "#/definitions/ICoreDate"
8474
8864
  },
8865
+ "valueType": {
8866
+ "type": "string"
8867
+ },
8475
8868
  "tags": {
8476
8869
  "type": "array",
8477
8870
  "items": {
@@ -8479,17 +8872,14 @@ exports.CanCreateOutgoingRequestRequest = {
8479
8872
  }
8480
8873
  }
8481
8874
  },
8482
- "additionalProperties": false,
8483
8875
  "required": [
8484
8876
  "valueType"
8485
- ]
8877
+ ],
8878
+ "additionalProperties": false
8486
8879
  },
8487
8880
  "IRelationshipAttributeQuery": {
8488
8881
  "type": "object",
8489
8882
  "properties": {
8490
- "valueType": {
8491
- "type": "string"
8492
- },
8493
8883
  "validFrom": {
8494
8884
  "$ref": "#/definitions/ICoreDate"
8495
8885
  },
@@ -8502,18 +8892,14 @@ exports.CanCreateOutgoingRequestRequest = {
8502
8892
  "owner": {
8503
8893
  "$ref": "#/definitions/ICoreAddress"
8504
8894
  },
8505
- "thirdParty": {
8506
- "$ref": "#/definitions/ICoreAddress"
8507
- },
8508
8895
  "attributeCreationHints": {
8509
8896
  "$ref": "#/definitions/IRelationshipAttributeCreationHints"
8510
8897
  }
8511
8898
  },
8512
8899
  "required": [
8513
- "attributeCreationHints",
8514
8900
  "key",
8515
8901
  "owner",
8516
- "valueType"
8902
+ "attributeCreationHints"
8517
8903
  ],
8518
8904
  "additionalProperties": false
8519
8905
  },
@@ -8523,6 +8909,9 @@ exports.CanCreateOutgoingRequestRequest = {
8523
8909
  "title": {
8524
8910
  "type": "string"
8525
8911
  },
8912
+ "valueType": {
8913
+ "type": "string"
8914
+ },
8526
8915
  "description": {
8527
8916
  "type": "string"
8528
8917
  },
@@ -8538,6 +8927,7 @@ exports.CanCreateOutgoingRequestRequest = {
8538
8927
  },
8539
8928
  "required": [
8540
8929
  "title",
8930
+ "valueType",
8541
8931
  "confidentiality"
8542
8932
  ],
8543
8933
  "additionalProperties": false
@@ -8623,7 +9013,17 @@ exports.CanCreateOutgoingRequestRequest = {
8623
9013
  "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."
8624
9014
  },
8625
9015
  "query": {
8626
- "$ref": "#/definitions/IAbstractAttributeQuery"
9016
+ "anyOf": [
9017
+ {
9018
+ "$ref": "#/definitions/IIdentityAttributeQuery"
9019
+ },
9020
+ {
9021
+ "$ref": "#/definitions/IRelationshipAttributeQuery"
9022
+ },
9023
+ {
9024
+ "$ref": "#/definitions/IThirdPartyRelationshipAttributeQuery"
9025
+ }
9026
+ ]
8627
9027
  }
8628
9028
  },
8629
9029
  "required": [
@@ -8632,21 +9032,29 @@ exports.CanCreateOutgoingRequestRequest = {
8632
9032
  ],
8633
9033
  "additionalProperties": false
8634
9034
  },
8635
- "IAbstractAttributeQuery": {
9035
+ "IThirdPartyRelationshipAttributeQuery": {
8636
9036
  "type": "object",
8637
9037
  "properties": {
8638
- "valueType": {
8639
- "type": "string"
8640
- },
8641
9038
  "validFrom": {
8642
9039
  "$ref": "#/definitions/ICoreDate"
8643
9040
  },
8644
9041
  "validTo": {
8645
9042
  "$ref": "#/definitions/ICoreDate"
9043
+ },
9044
+ "key": {
9045
+ "type": "string"
9046
+ },
9047
+ "owner": {
9048
+ "$ref": "#/definitions/ICoreAddress"
9049
+ },
9050
+ "thirdParty": {
9051
+ "$ref": "#/definitions/ICoreAddress"
8646
9052
  }
8647
9053
  },
8648
9054
  "required": [
8649
- "valueType"
9055
+ "key",
9056
+ "owner",
9057
+ "thirdParty"
8650
9058
  ],
8651
9059
  "additionalProperties": false
8652
9060
  },
@@ -8896,7 +9304,8 @@ exports.CompleteOutgoingRequestRequest = {
8896
9304
  "type": "object",
8897
9305
  "properties": {
8898
9306
  "@type": {
8899
- "type": "string"
9307
+ "type": "string",
9308
+ "const": "Response"
8900
9309
  },
8901
9310
  "@context": {
8902
9311
  "type": "string"
@@ -8943,7 +9352,8 @@ exports.CompleteOutgoingRequestRequest = {
8943
9352
  "type": "object",
8944
9353
  "properties": {
8945
9354
  "@type": {
8946
- "type": "string"
9355
+ "type": "string",
9356
+ "const": "ResponseItemGroup"
8947
9357
  },
8948
9358
  "@context": {
8949
9359
  "type": "string"
@@ -8983,7 +9393,7 @@ exports.CompleteOutgoingRequestRequest = {
8983
9393
  "$ref": "#/definitions/AcceptResponseItemJSON"
8984
9394
  },
8985
9395
  {
8986
- "$ref": "#/definitions/CreateRelationshipAttributeAcceptResponseItemJSON"
9396
+ "$ref": "#/definitions/CreateAttributeAcceptResponseItemJSON"
8987
9397
  },
8988
9398
  {
8989
9399
  "$ref": "#/definitions/ShareAttributeAcceptResponseItemJSON"
@@ -9019,11 +9429,12 @@ exports.CompleteOutgoingRequestRequest = {
9019
9429
  ],
9020
9430
  "additionalProperties": false
9021
9431
  },
9022
- "CreateRelationshipAttributeAcceptResponseItemJSON": {
9432
+ "CreateAttributeAcceptResponseItemJSON": {
9023
9433
  "type": "object",
9024
9434
  "properties": {
9025
9435
  "@type": {
9026
- "type": "string"
9436
+ "type": "string",
9437
+ "const": "CreateAttributeAcceptResponseItem"
9027
9438
  },
9028
9439
  "@context": {
9029
9440
  "type": "string"
@@ -9050,7 +9461,8 @@ exports.CompleteOutgoingRequestRequest = {
9050
9461
  "type": "object",
9051
9462
  "properties": {
9052
9463
  "@type": {
9053
- "type": "string"
9464
+ "type": "string",
9465
+ "const": "ShareAttributeAcceptResponseItem"
9054
9466
  },
9055
9467
  "@context": {
9056
9468
  "type": "string"
@@ -9077,7 +9489,8 @@ exports.CompleteOutgoingRequestRequest = {
9077
9489
  "type": "object",
9078
9490
  "properties": {
9079
9491
  "@type": {
9080
- "type": "string"
9492
+ "type": "string",
9493
+ "const": "ProposeAttributeAcceptResponseItem"
9081
9494
  },
9082
9495
  "@context": {
9083
9496
  "type": "string"
@@ -9115,7 +9528,8 @@ exports.CompleteOutgoingRequestRequest = {
9115
9528
  "type": "object",
9116
9529
  "properties": {
9117
9530
  "@type": {
9118
- "type": "string"
9531
+ "type": "string",
9532
+ "const": "IdentityAttribute"
9119
9533
  },
9120
9534
  "@context": {
9121
9535
  "type": "string"
@@ -9170,7 +9584,8 @@ exports.CompleteOutgoingRequestRequest = {
9170
9584
  "type": "object",
9171
9585
  "properties": {
9172
9586
  "@type": {
9173
- "type": "string"
9587
+ "type": "string",
9588
+ "const": "RelationshipAttribute"
9174
9589
  },
9175
9590
  "@context": {
9176
9591
  "type": "string"
@@ -9221,7 +9636,8 @@ exports.CompleteOutgoingRequestRequest = {
9221
9636
  "type": "object",
9222
9637
  "properties": {
9223
9638
  "@type": {
9224
- "type": "string"
9639
+ "type": "string",
9640
+ "const": "ReadAttributeAcceptResponseItem"
9225
9641
  },
9226
9642
  "@context": {
9227
9643
  "type": "string"
@@ -9262,7 +9678,8 @@ exports.CompleteOutgoingRequestRequest = {
9262
9678
  "type": "object",
9263
9679
  "properties": {
9264
9680
  "@type": {
9265
- "type": "string"
9681
+ "type": "string",
9682
+ "const": "RejectResponseItem"
9266
9683
  },
9267
9684
  "@context": {
9268
9685
  "type": "string"
@@ -9294,7 +9711,8 @@ exports.CompleteOutgoingRequestRequest = {
9294
9711
  "type": "object",
9295
9712
  "properties": {
9296
9713
  "@type": {
9297
- "type": "string"
9714
+ "type": "string",
9715
+ "const": "ErrorResponseItem"
9298
9716
  },
9299
9717
  "@context": {
9300
9718
  "type": "string"
@@ -9472,7 +9890,8 @@ exports.CreateOutgoingRequestRequest = {
9472
9890
  "type": "object",
9473
9891
  "properties": {
9474
9892
  "@type": {
9475
- "type": "string"
9893
+ "type": "string",
9894
+ "const": "RequestItemGroup"
9476
9895
  },
9477
9896
  "@context": {
9478
9897
  "type": "string"
@@ -9518,7 +9937,7 @@ exports.CreateOutgoingRequestRequest = {
9518
9937
  "$ref": "#/definitions/RequestItemJSON"
9519
9938
  },
9520
9939
  {
9521
- "$ref": "#/definitions/CreateRelationshipAttributeRequestItemJSON"
9940
+ "$ref": "#/definitions/CreateAttributeRequestItemJSON"
9522
9941
  },
9523
9942
  {
9524
9943
  "$ref": "#/definitions/ShareAttributeRequestItemJSON"
@@ -9576,11 +9995,12 @@ exports.CreateOutgoingRequestRequest = {
9576
9995
  ],
9577
9996
  "additionalProperties": false
9578
9997
  },
9579
- "CreateRelationshipAttributeRequestItemJSON": {
9998
+ "CreateAttributeRequestItemJSON": {
9580
9999
  "type": "object",
9581
10000
  "properties": {
9582
10001
  "@type": {
9583
- "type": "string"
10002
+ "type": "string",
10003
+ "const": "CreateAttributeRequestItem"
9584
10004
  },
9585
10005
  "@context": {
9586
10006
  "type": "string"
@@ -9609,7 +10029,14 @@ exports.CreateOutgoingRequestRequest = {
9609
10029
  "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."
9610
10030
  },
9611
10031
  "attribute": {
9612
- "$ref": "#/definitions/RelationshipAttributeJSON"
10032
+ "anyOf": [
10033
+ {
10034
+ "$ref": "#/definitions/RelationshipAttributeJSON"
10035
+ },
10036
+ {
10037
+ "$ref": "#/definitions/IdentityAttributeJSON"
10038
+ }
10039
+ ]
9613
10040
  }
9614
10041
  },
9615
10042
  "required": [
@@ -9623,7 +10050,8 @@ exports.CreateOutgoingRequestRequest = {
9623
10050
  "type": "object",
9624
10051
  "properties": {
9625
10052
  "@type": {
9626
- "type": "string"
10053
+ "type": "string",
10054
+ "const": "RelationshipAttribute"
9627
10055
  },
9628
10056
  "@context": {
9629
10057
  "type": "string"
@@ -9687,12 +10115,52 @@ exports.CreateOutgoingRequestRequest = {
9687
10115
  "protected"
9688
10116
  ]
9689
10117
  },
9690
- "ShareAttributeRequestItemJSON": {
10118
+ "IdentityAttributeJSON": {
9691
10119
  "type": "object",
9692
10120
  "properties": {
9693
10121
  "@type": {
10122
+ "type": "string",
10123
+ "const": "IdentityAttribute"
10124
+ },
10125
+ "@context": {
9694
10126
  "type": "string"
9695
10127
  },
10128
+ "@version": {
10129
+ "type": "string"
10130
+ },
10131
+ "owner": {
10132
+ "type": "string"
10133
+ },
10134
+ "validFrom": {
10135
+ "type": "string"
10136
+ },
10137
+ "validTo": {
10138
+ "type": "string"
10139
+ },
10140
+ "value": {
10141
+ "$ref": "#/definitions/AbstractAttributeValueJSON"
10142
+ },
10143
+ "tags": {
10144
+ "type": "array",
10145
+ "items": {
10146
+ "type": "string"
10147
+ }
10148
+ }
10149
+ },
10150
+ "required": [
10151
+ "@type",
10152
+ "owner",
10153
+ "value"
10154
+ ],
10155
+ "additionalProperties": false
10156
+ },
10157
+ "ShareAttributeRequestItemJSON": {
10158
+ "type": "object",
10159
+ "properties": {
10160
+ "@type": {
10161
+ "type": "string",
10162
+ "const": "ShareAttributeRequestItem"
10163
+ },
9696
10164
  "@context": {
9697
10165
  "type": "string"
9698
10166
  },
@@ -9741,49 +10209,12 @@ exports.CreateOutgoingRequestRequest = {
9741
10209
  ],
9742
10210
  "additionalProperties": false
9743
10211
  },
9744
- "IdentityAttributeJSON": {
9745
- "type": "object",
9746
- "properties": {
9747
- "@type": {
9748
- "type": "string"
9749
- },
9750
- "@context": {
9751
- "type": "string"
9752
- },
9753
- "@version": {
9754
- "type": "string"
9755
- },
9756
- "owner": {
9757
- "type": "string"
9758
- },
9759
- "validFrom": {
9760
- "type": "string"
9761
- },
9762
- "validTo": {
9763
- "type": "string"
9764
- },
9765
- "value": {
9766
- "$ref": "#/definitions/AbstractAttributeValueJSON"
9767
- },
9768
- "tags": {
9769
- "type": "array",
9770
- "items": {
9771
- "type": "string"
9772
- }
9773
- }
9774
- },
9775
- "required": [
9776
- "@type",
9777
- "owner",
9778
- "value"
9779
- ],
9780
- "additionalProperties": false
9781
- },
9782
10212
  "ProposeAttributeRequestItemJSON": {
9783
10213
  "type": "object",
9784
10214
  "properties": {
9785
10215
  "@type": {
9786
- "type": "string"
10216
+ "type": "string",
10217
+ "const": "ProposeAttributeRequestItem"
9787
10218
  },
9788
10219
  "@context": {
9789
10220
  "type": "string"
@@ -9844,7 +10275,8 @@ exports.CreateOutgoingRequestRequest = {
9844
10275
  "type": "object",
9845
10276
  "properties": {
9846
10277
  "@type": {
9847
- "type": "string"
10278
+ "type": "string",
10279
+ "const": "IdentityAttributeQuery"
9848
10280
  },
9849
10281
  "@context": {
9850
10282
  "type": "string"
@@ -9852,15 +10284,15 @@ exports.CreateOutgoingRequestRequest = {
9852
10284
  "@version": {
9853
10285
  "type": "string"
9854
10286
  },
9855
- "valueType": {
9856
- "type": "string"
9857
- },
9858
10287
  "validFrom": {
9859
10288
  "type": "string"
9860
10289
  },
9861
10290
  "validTo": {
9862
10291
  "type": "string"
9863
10292
  },
10293
+ "valueType": {
10294
+ "type": "string"
10295
+ },
9864
10296
  "tags": {
9865
10297
  "type": "array",
9866
10298
  "items": {
@@ -9868,17 +10300,18 @@ exports.CreateOutgoingRequestRequest = {
9868
10300
  }
9869
10301
  }
9870
10302
  },
9871
- "additionalProperties": false,
9872
10303
  "required": [
9873
10304
  "@type",
9874
10305
  "valueType"
9875
- ]
10306
+ ],
10307
+ "additionalProperties": false
9876
10308
  },
9877
10309
  "RelationshipAttributeQueryJSON": {
9878
10310
  "type": "object",
9879
10311
  "properties": {
9880
10312
  "@type": {
9881
- "type": "string"
10313
+ "type": "string",
10314
+ "const": "RelationshipAttributeQuery"
9882
10315
  },
9883
10316
  "@context": {
9884
10317
  "type": "string"
@@ -9886,9 +10319,6 @@ exports.CreateOutgoingRequestRequest = {
9886
10319
  "@version": {
9887
10320
  "type": "string"
9888
10321
  },
9889
- "valueType": {
9890
- "type": "string"
9891
- },
9892
10322
  "validFrom": {
9893
10323
  "type": "string"
9894
10324
  },
@@ -9901,9 +10331,6 @@ exports.CreateOutgoingRequestRequest = {
9901
10331
  "owner": {
9902
10332
  "type": "string"
9903
10333
  },
9904
- "thirdParty": {
9905
- "type": "string"
9906
- },
9907
10334
  "attributeCreationHints": {
9908
10335
  "$ref": "#/definitions/RelationshipAttributeCreationHintsJSON"
9909
10336
  }
@@ -9912,8 +10339,7 @@ exports.CreateOutgoingRequestRequest = {
9912
10339
  "@type",
9913
10340
  "attributeCreationHints",
9914
10341
  "key",
9915
- "owner",
9916
- "valueType"
10342
+ "owner"
9917
10343
  ],
9918
10344
  "additionalProperties": false
9919
10345
  },
@@ -9923,6 +10349,9 @@ exports.CreateOutgoingRequestRequest = {
9923
10349
  "title": {
9924
10350
  "type": "string"
9925
10351
  },
10352
+ "valueType": {
10353
+ "type": "string"
10354
+ },
9926
10355
  "description": {
9927
10356
  "type": "string"
9928
10357
  },
@@ -9938,6 +10367,7 @@ exports.CreateOutgoingRequestRequest = {
9938
10367
  },
9939
10368
  "required": [
9940
10369
  "title",
10370
+ "valueType",
9941
10371
  "confidentiality"
9942
10372
  ],
9943
10373
  "additionalProperties": false
@@ -9946,7 +10376,8 @@ exports.CreateOutgoingRequestRequest = {
9946
10376
  "type": "object",
9947
10377
  "properties": {
9948
10378
  "@type": {
9949
- "type": "string"
10379
+ "type": "string",
10380
+ "const": "ValueHints"
9950
10381
  },
9951
10382
  "@context": {
9952
10383
  "type": "string"
@@ -9986,10 +10417,10 @@ exports.CreateOutgoingRequestRequest = {
9986
10417
  }
9987
10418
  }
9988
10419
  },
9989
- "additionalProperties": false,
9990
10420
  "required": [
9991
10421
  "@type"
9992
- ]
10422
+ ],
10423
+ "additionalProperties": false
9993
10424
  },
9994
10425
  "ValueHintsValueJSON": {
9995
10426
  "type": "object",
@@ -10015,7 +10446,8 @@ exports.CreateOutgoingRequestRequest = {
10015
10446
  "type": "object",
10016
10447
  "properties": {
10017
10448
  "@type": {
10018
- "type": "string"
10449
+ "type": "string",
10450
+ "const": "ReadAttributeRequestItem"
10019
10451
  },
10020
10452
  "@context": {
10021
10453
  "type": "string"
@@ -10044,7 +10476,17 @@ exports.CreateOutgoingRequestRequest = {
10044
10476
  "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."
10045
10477
  },
10046
10478
  "query": {
10047
- "$ref": "#/definitions/AbstractAttributeQueryJSON"
10479
+ "anyOf": [
10480
+ {
10481
+ "$ref": "#/definitions/IdentityAttributeQueryJSON"
10482
+ },
10483
+ {
10484
+ "$ref": "#/definitions/RelationshipAttributeQueryJSON"
10485
+ },
10486
+ {
10487
+ "$ref": "#/definitions/ThirdPartyRelationshipAttributeQueryJSON"
10488
+ }
10489
+ ]
10048
10490
  }
10049
10491
  },
10050
10492
  "required": [
@@ -10054,11 +10496,12 @@ exports.CreateOutgoingRequestRequest = {
10054
10496
  ],
10055
10497
  "additionalProperties": false
10056
10498
  },
10057
- "AbstractAttributeQueryJSON": {
10499
+ "ThirdPartyRelationshipAttributeQueryJSON": {
10058
10500
  "type": "object",
10059
10501
  "properties": {
10060
10502
  "@type": {
10061
- "type": "string"
10503
+ "type": "string",
10504
+ "const": "ThirdPartyRelationshipAttributeQuery"
10062
10505
  },
10063
10506
  "@context": {
10064
10507
  "type": "string"
@@ -10066,19 +10509,27 @@ exports.CreateOutgoingRequestRequest = {
10066
10509
  "@version": {
10067
10510
  "type": "string"
10068
10511
  },
10069
- "valueType": {
10070
- "type": "string"
10071
- },
10072
10512
  "validFrom": {
10073
10513
  "type": "string"
10074
10514
  },
10075
10515
  "validTo": {
10076
10516
  "type": "string"
10517
+ },
10518
+ "key": {
10519
+ "type": "string"
10520
+ },
10521
+ "owner": {
10522
+ "type": "string"
10523
+ },
10524
+ "thirdParty": {
10525
+ "type": "string"
10077
10526
  }
10078
10527
  },
10079
10528
  "required": [
10080
10529
  "@type",
10081
- "valueType"
10530
+ "key",
10531
+ "owner",
10532
+ "thirdParty"
10082
10533
  ],
10083
10534
  "additionalProperties": false
10084
10535
  },
@@ -10086,7 +10537,8 @@ exports.CreateOutgoingRequestRequest = {
10086
10537
  "type": "object",
10087
10538
  "properties": {
10088
10539
  "@type": {
10089
- "type": "string"
10540
+ "type": "string",
10541
+ "const": "ConsentRequestItem"
10090
10542
  },
10091
10543
  "@context": {
10092
10544
  "type": "string"
@@ -10130,10 +10582,10 @@ exports.CreateOutgoingRequestRequest = {
10130
10582
  },
10131
10583
  "AuthenticationRequestItemJSON": {
10132
10584
  "type": "object",
10133
- "additionalProperties": false,
10134
10585
  "properties": {
10135
10586
  "@type": {
10136
- "type": "string"
10587
+ "type": "string",
10588
+ "const": "AuthenticationRequestItem"
10137
10589
  },
10138
10590
  "@context": {
10139
10591
  "type": "string"
@@ -10165,7 +10617,8 @@ exports.CreateOutgoingRequestRequest = {
10165
10617
  "required": [
10166
10618
  "@type",
10167
10619
  "mustBeAccepted"
10168
- ]
10620
+ ],
10621
+ "additionalProperties": false
10169
10622
  },
10170
10623
  "IRequestItemGroup": {
10171
10624
  "type": "object",
@@ -10207,7 +10660,7 @@ exports.CreateOutgoingRequestRequest = {
10207
10660
  "$ref": "#/definitions/IRequestItem"
10208
10661
  },
10209
10662
  {
10210
- "$ref": "#/definitions/ICreateRelationshipAttributeRequestItem"
10663
+ "$ref": "#/definitions/ICreateAttributeRequestItem"
10211
10664
  },
10212
10665
  {
10213
10666
  "$ref": "#/definitions/IShareAttributeRequestItem"
@@ -10255,7 +10708,7 @@ exports.CreateOutgoingRequestRequest = {
10255
10708
  ],
10256
10709
  "additionalProperties": false
10257
10710
  },
10258
- "ICreateRelationshipAttributeRequestItem": {
10711
+ "ICreateAttributeRequestItem": {
10259
10712
  "type": "object",
10260
10713
  "properties": {
10261
10714
  "title": {
@@ -10279,7 +10732,14 @@ exports.CreateOutgoingRequestRequest = {
10279
10732
  "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."
10280
10733
  },
10281
10734
  "attribute": {
10282
- "$ref": "#/definitions/IRelationshipAttribute"
10735
+ "anyOf": [
10736
+ {
10737
+ "$ref": "#/definitions/IRelationshipAttribute"
10738
+ },
10739
+ {
10740
+ "$ref": "#/definitions/IIdentityAttribute"
10741
+ }
10742
+ ]
10283
10743
  }
10284
10744
  },
10285
10745
  "required": [
@@ -10338,6 +10798,34 @@ exports.CreateOutgoingRequestRequest = {
10338
10798
  "additionalProperties": false,
10339
10799
  "properties": {}
10340
10800
  },
10801
+ "IIdentityAttribute": {
10802
+ "type": "object",
10803
+ "properties": {
10804
+ "owner": {
10805
+ "$ref": "#/definitions/ICoreAddress"
10806
+ },
10807
+ "validFrom": {
10808
+ "$ref": "#/definitions/ICoreDate"
10809
+ },
10810
+ "validTo": {
10811
+ "$ref": "#/definitions/ICoreDate"
10812
+ },
10813
+ "value": {
10814
+ "$ref": "#/definitions/IAbstractAttributeValue"
10815
+ },
10816
+ "tags": {
10817
+ "type": "array",
10818
+ "items": {
10819
+ "type": "string"
10820
+ }
10821
+ }
10822
+ },
10823
+ "required": [
10824
+ "owner",
10825
+ "value"
10826
+ ],
10827
+ "additionalProperties": false
10828
+ },
10341
10829
  "IShareAttributeRequestItem": {
10342
10830
  "type": "object",
10343
10831
  "properties": {
@@ -10382,34 +10870,6 @@ exports.CreateOutgoingRequestRequest = {
10382
10870
  ],
10383
10871
  "additionalProperties": false
10384
10872
  },
10385
- "IIdentityAttribute": {
10386
- "type": "object",
10387
- "properties": {
10388
- "owner": {
10389
- "$ref": "#/definitions/ICoreAddress"
10390
- },
10391
- "validFrom": {
10392
- "$ref": "#/definitions/ICoreDate"
10393
- },
10394
- "validTo": {
10395
- "$ref": "#/definitions/ICoreDate"
10396
- },
10397
- "value": {
10398
- "$ref": "#/definitions/IAbstractAttributeValue"
10399
- },
10400
- "tags": {
10401
- "type": "array",
10402
- "items": {
10403
- "type": "string"
10404
- }
10405
- }
10406
- },
10407
- "required": [
10408
- "owner",
10409
- "value"
10410
- ],
10411
- "additionalProperties": false
10412
- },
10413
10873
  "ICoreId": {
10414
10874
  "type": "object",
10415
10875
  "properties": {
@@ -10476,15 +10936,15 @@ exports.CreateOutgoingRequestRequest = {
10476
10936
  "IIdentityAttributeQuery": {
10477
10937
  "type": "object",
10478
10938
  "properties": {
10479
- "valueType": {
10480
- "type": "string"
10481
- },
10482
10939
  "validFrom": {
10483
10940
  "$ref": "#/definitions/ICoreDate"
10484
10941
  },
10485
10942
  "validTo": {
10486
10943
  "$ref": "#/definitions/ICoreDate"
10487
10944
  },
10945
+ "valueType": {
10946
+ "type": "string"
10947
+ },
10488
10948
  "tags": {
10489
10949
  "type": "array",
10490
10950
  "items": {
@@ -10492,17 +10952,14 @@ exports.CreateOutgoingRequestRequest = {
10492
10952
  }
10493
10953
  }
10494
10954
  },
10495
- "additionalProperties": false,
10496
10955
  "required": [
10497
10956
  "valueType"
10498
- ]
10957
+ ],
10958
+ "additionalProperties": false
10499
10959
  },
10500
10960
  "IRelationshipAttributeQuery": {
10501
10961
  "type": "object",
10502
10962
  "properties": {
10503
- "valueType": {
10504
- "type": "string"
10505
- },
10506
10963
  "validFrom": {
10507
10964
  "$ref": "#/definitions/ICoreDate"
10508
10965
  },
@@ -10515,18 +10972,14 @@ exports.CreateOutgoingRequestRequest = {
10515
10972
  "owner": {
10516
10973
  "$ref": "#/definitions/ICoreAddress"
10517
10974
  },
10518
- "thirdParty": {
10519
- "$ref": "#/definitions/ICoreAddress"
10520
- },
10521
10975
  "attributeCreationHints": {
10522
10976
  "$ref": "#/definitions/IRelationshipAttributeCreationHints"
10523
10977
  }
10524
10978
  },
10525
10979
  "required": [
10526
- "attributeCreationHints",
10527
10980
  "key",
10528
10981
  "owner",
10529
- "valueType"
10982
+ "attributeCreationHints"
10530
10983
  ],
10531
10984
  "additionalProperties": false
10532
10985
  },
@@ -10536,6 +10989,9 @@ exports.CreateOutgoingRequestRequest = {
10536
10989
  "title": {
10537
10990
  "type": "string"
10538
10991
  },
10992
+ "valueType": {
10993
+ "type": "string"
10994
+ },
10539
10995
  "description": {
10540
10996
  "type": "string"
10541
10997
  },
@@ -10551,6 +11007,7 @@ exports.CreateOutgoingRequestRequest = {
10551
11007
  },
10552
11008
  "required": [
10553
11009
  "title",
11010
+ "valueType",
10554
11011
  "confidentiality"
10555
11012
  ],
10556
11013
  "additionalProperties": false
@@ -10636,7 +11093,17 @@ exports.CreateOutgoingRequestRequest = {
10636
11093
  "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."
10637
11094
  },
10638
11095
  "query": {
10639
- "$ref": "#/definitions/IAbstractAttributeQuery"
11096
+ "anyOf": [
11097
+ {
11098
+ "$ref": "#/definitions/IIdentityAttributeQuery"
11099
+ },
11100
+ {
11101
+ "$ref": "#/definitions/IRelationshipAttributeQuery"
11102
+ },
11103
+ {
11104
+ "$ref": "#/definitions/IThirdPartyRelationshipAttributeQuery"
11105
+ }
11106
+ ]
10640
11107
  }
10641
11108
  },
10642
11109
  "required": [
@@ -10645,21 +11112,29 @@ exports.CreateOutgoingRequestRequest = {
10645
11112
  ],
10646
11113
  "additionalProperties": false
10647
11114
  },
10648
- "IAbstractAttributeQuery": {
11115
+ "IThirdPartyRelationshipAttributeQuery": {
10649
11116
  "type": "object",
10650
11117
  "properties": {
10651
- "valueType": {
10652
- "type": "string"
10653
- },
10654
11118
  "validFrom": {
10655
11119
  "$ref": "#/definitions/ICoreDate"
10656
11120
  },
10657
11121
  "validTo": {
10658
11122
  "$ref": "#/definitions/ICoreDate"
11123
+ },
11124
+ "key": {
11125
+ "type": "string"
11126
+ },
11127
+ "owner": {
11128
+ "$ref": "#/definitions/ICoreAddress"
11129
+ },
11130
+ "thirdParty": {
11131
+ "$ref": "#/definitions/ICoreAddress"
10659
11132
  }
10660
11133
  },
10661
11134
  "required": [
10662
- "valueType"
11135
+ "key",
11136
+ "owner",
11137
+ "thirdParty"
10663
11138
  ],
10664
11139
  "additionalProperties": false
10665
11140
  },
@@ -11215,7 +11690,8 @@ exports.ReceivedIncomingRequestRequest = {
11215
11690
  "type": "object",
11216
11691
  "properties": {
11217
11692
  "@type": {
11218
- "type": "string"
11693
+ "type": "string",
11694
+ "const": "Request"
11219
11695
  },
11220
11696
  "@context": {
11221
11697
  "type": "string"
@@ -11268,7 +11744,8 @@ exports.ReceivedIncomingRequestRequest = {
11268
11744
  "type": "object",
11269
11745
  "properties": {
11270
11746
  "@type": {
11271
- "type": "string"
11747
+ "type": "string",
11748
+ "const": "RequestItemGroup"
11272
11749
  },
11273
11750
  "@context": {
11274
11751
  "type": "string"
@@ -11314,7 +11791,7 @@ exports.ReceivedIncomingRequestRequest = {
11314
11791
  "$ref": "#/definitions/RequestItemJSON"
11315
11792
  },
11316
11793
  {
11317
- "$ref": "#/definitions/CreateRelationshipAttributeRequestItemJSON"
11794
+ "$ref": "#/definitions/CreateAttributeRequestItemJSON"
11318
11795
  },
11319
11796
  {
11320
11797
  "$ref": "#/definitions/ShareAttributeRequestItemJSON"
@@ -11372,11 +11849,12 @@ exports.ReceivedIncomingRequestRequest = {
11372
11849
  ],
11373
11850
  "additionalProperties": false
11374
11851
  },
11375
- "CreateRelationshipAttributeRequestItemJSON": {
11852
+ "CreateAttributeRequestItemJSON": {
11376
11853
  "type": "object",
11377
11854
  "properties": {
11378
11855
  "@type": {
11379
- "type": "string"
11856
+ "type": "string",
11857
+ "const": "CreateAttributeRequestItem"
11380
11858
  },
11381
11859
  "@context": {
11382
11860
  "type": "string"
@@ -11405,7 +11883,14 @@ exports.ReceivedIncomingRequestRequest = {
11405
11883
  "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."
11406
11884
  },
11407
11885
  "attribute": {
11408
- "$ref": "#/definitions/RelationshipAttributeJSON"
11886
+ "anyOf": [
11887
+ {
11888
+ "$ref": "#/definitions/RelationshipAttributeJSON"
11889
+ },
11890
+ {
11891
+ "$ref": "#/definitions/IdentityAttributeJSON"
11892
+ }
11893
+ ]
11409
11894
  }
11410
11895
  },
11411
11896
  "required": [
@@ -11419,7 +11904,8 @@ exports.ReceivedIncomingRequestRequest = {
11419
11904
  "type": "object",
11420
11905
  "properties": {
11421
11906
  "@type": {
11422
- "type": "string"
11907
+ "type": "string",
11908
+ "const": "RelationshipAttribute"
11423
11909
  },
11424
11910
  "@context": {
11425
11911
  "type": "string"
@@ -11483,12 +11969,52 @@ exports.ReceivedIncomingRequestRequest = {
11483
11969
  "protected"
11484
11970
  ]
11485
11971
  },
11486
- "ShareAttributeRequestItemJSON": {
11972
+ "IdentityAttributeJSON": {
11487
11973
  "type": "object",
11488
11974
  "properties": {
11489
11975
  "@type": {
11976
+ "type": "string",
11977
+ "const": "IdentityAttribute"
11978
+ },
11979
+ "@context": {
11980
+ "type": "string"
11981
+ },
11982
+ "@version": {
11983
+ "type": "string"
11984
+ },
11985
+ "owner": {
11490
11986
  "type": "string"
11491
11987
  },
11988
+ "validFrom": {
11989
+ "type": "string"
11990
+ },
11991
+ "validTo": {
11992
+ "type": "string"
11993
+ },
11994
+ "value": {
11995
+ "$ref": "#/definitions/AbstractAttributeValueJSON"
11996
+ },
11997
+ "tags": {
11998
+ "type": "array",
11999
+ "items": {
12000
+ "type": "string"
12001
+ }
12002
+ }
12003
+ },
12004
+ "required": [
12005
+ "@type",
12006
+ "owner",
12007
+ "value"
12008
+ ],
12009
+ "additionalProperties": false
12010
+ },
12011
+ "ShareAttributeRequestItemJSON": {
12012
+ "type": "object",
12013
+ "properties": {
12014
+ "@type": {
12015
+ "type": "string",
12016
+ "const": "ShareAttributeRequestItem"
12017
+ },
11492
12018
  "@context": {
11493
12019
  "type": "string"
11494
12020
  },
@@ -11537,49 +12063,12 @@ exports.ReceivedIncomingRequestRequest = {
11537
12063
  ],
11538
12064
  "additionalProperties": false
11539
12065
  },
11540
- "IdentityAttributeJSON": {
11541
- "type": "object",
11542
- "properties": {
11543
- "@type": {
11544
- "type": "string"
11545
- },
11546
- "@context": {
11547
- "type": "string"
11548
- },
11549
- "@version": {
11550
- "type": "string"
11551
- },
11552
- "owner": {
11553
- "type": "string"
11554
- },
11555
- "validFrom": {
11556
- "type": "string"
11557
- },
11558
- "validTo": {
11559
- "type": "string"
11560
- },
11561
- "value": {
11562
- "$ref": "#/definitions/AbstractAttributeValueJSON"
11563
- },
11564
- "tags": {
11565
- "type": "array",
11566
- "items": {
11567
- "type": "string"
11568
- }
11569
- }
11570
- },
11571
- "required": [
11572
- "@type",
11573
- "owner",
11574
- "value"
11575
- ],
11576
- "additionalProperties": false
11577
- },
11578
12066
  "ProposeAttributeRequestItemJSON": {
11579
12067
  "type": "object",
11580
12068
  "properties": {
11581
12069
  "@type": {
11582
- "type": "string"
12070
+ "type": "string",
12071
+ "const": "ProposeAttributeRequestItem"
11583
12072
  },
11584
12073
  "@context": {
11585
12074
  "type": "string"
@@ -11640,7 +12129,8 @@ exports.ReceivedIncomingRequestRequest = {
11640
12129
  "type": "object",
11641
12130
  "properties": {
11642
12131
  "@type": {
11643
- "type": "string"
12132
+ "type": "string",
12133
+ "const": "IdentityAttributeQuery"
11644
12134
  },
11645
12135
  "@context": {
11646
12136
  "type": "string"
@@ -11648,15 +12138,15 @@ exports.ReceivedIncomingRequestRequest = {
11648
12138
  "@version": {
11649
12139
  "type": "string"
11650
12140
  },
11651
- "valueType": {
11652
- "type": "string"
11653
- },
11654
12141
  "validFrom": {
11655
12142
  "type": "string"
11656
12143
  },
11657
12144
  "validTo": {
11658
12145
  "type": "string"
11659
12146
  },
12147
+ "valueType": {
12148
+ "type": "string"
12149
+ },
11660
12150
  "tags": {
11661
12151
  "type": "array",
11662
12152
  "items": {
@@ -11664,17 +12154,18 @@ exports.ReceivedIncomingRequestRequest = {
11664
12154
  }
11665
12155
  }
11666
12156
  },
11667
- "additionalProperties": false,
11668
12157
  "required": [
11669
12158
  "@type",
11670
12159
  "valueType"
11671
- ]
12160
+ ],
12161
+ "additionalProperties": false
11672
12162
  },
11673
12163
  "RelationshipAttributeQueryJSON": {
11674
12164
  "type": "object",
11675
12165
  "properties": {
11676
12166
  "@type": {
11677
- "type": "string"
12167
+ "type": "string",
12168
+ "const": "RelationshipAttributeQuery"
11678
12169
  },
11679
12170
  "@context": {
11680
12171
  "type": "string"
@@ -11682,9 +12173,6 @@ exports.ReceivedIncomingRequestRequest = {
11682
12173
  "@version": {
11683
12174
  "type": "string"
11684
12175
  },
11685
- "valueType": {
11686
- "type": "string"
11687
- },
11688
12176
  "validFrom": {
11689
12177
  "type": "string"
11690
12178
  },
@@ -11697,9 +12185,6 @@ exports.ReceivedIncomingRequestRequest = {
11697
12185
  "owner": {
11698
12186
  "type": "string"
11699
12187
  },
11700
- "thirdParty": {
11701
- "type": "string"
11702
- },
11703
12188
  "attributeCreationHints": {
11704
12189
  "$ref": "#/definitions/RelationshipAttributeCreationHintsJSON"
11705
12190
  }
@@ -11708,8 +12193,7 @@ exports.ReceivedIncomingRequestRequest = {
11708
12193
  "@type",
11709
12194
  "attributeCreationHints",
11710
12195
  "key",
11711
- "owner",
11712
- "valueType"
12196
+ "owner"
11713
12197
  ],
11714
12198
  "additionalProperties": false
11715
12199
  },
@@ -11719,6 +12203,9 @@ exports.ReceivedIncomingRequestRequest = {
11719
12203
  "title": {
11720
12204
  "type": "string"
11721
12205
  },
12206
+ "valueType": {
12207
+ "type": "string"
12208
+ },
11722
12209
  "description": {
11723
12210
  "type": "string"
11724
12211
  },
@@ -11734,6 +12221,7 @@ exports.ReceivedIncomingRequestRequest = {
11734
12221
  },
11735
12222
  "required": [
11736
12223
  "title",
12224
+ "valueType",
11737
12225
  "confidentiality"
11738
12226
  ],
11739
12227
  "additionalProperties": false
@@ -11742,7 +12230,8 @@ exports.ReceivedIncomingRequestRequest = {
11742
12230
  "type": "object",
11743
12231
  "properties": {
11744
12232
  "@type": {
11745
- "type": "string"
12233
+ "type": "string",
12234
+ "const": "ValueHints"
11746
12235
  },
11747
12236
  "@context": {
11748
12237
  "type": "string"
@@ -11782,10 +12271,10 @@ exports.ReceivedIncomingRequestRequest = {
11782
12271
  }
11783
12272
  }
11784
12273
  },
11785
- "additionalProperties": false,
11786
12274
  "required": [
11787
12275
  "@type"
11788
- ]
12276
+ ],
12277
+ "additionalProperties": false
11789
12278
  },
11790
12279
  "ValueHintsValueJSON": {
11791
12280
  "type": "object",
@@ -11811,7 +12300,8 @@ exports.ReceivedIncomingRequestRequest = {
11811
12300
  "type": "object",
11812
12301
  "properties": {
11813
12302
  "@type": {
11814
- "type": "string"
12303
+ "type": "string",
12304
+ "const": "ReadAttributeRequestItem"
11815
12305
  },
11816
12306
  "@context": {
11817
12307
  "type": "string"
@@ -11840,7 +12330,17 @@ exports.ReceivedIncomingRequestRequest = {
11840
12330
  "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."
11841
12331
  },
11842
12332
  "query": {
11843
- "$ref": "#/definitions/AbstractAttributeQueryJSON"
12333
+ "anyOf": [
12334
+ {
12335
+ "$ref": "#/definitions/IdentityAttributeQueryJSON"
12336
+ },
12337
+ {
12338
+ "$ref": "#/definitions/RelationshipAttributeQueryJSON"
12339
+ },
12340
+ {
12341
+ "$ref": "#/definitions/ThirdPartyRelationshipAttributeQueryJSON"
12342
+ }
12343
+ ]
11844
12344
  }
11845
12345
  },
11846
12346
  "required": [
@@ -11850,11 +12350,12 @@ exports.ReceivedIncomingRequestRequest = {
11850
12350
  ],
11851
12351
  "additionalProperties": false
11852
12352
  },
11853
- "AbstractAttributeQueryJSON": {
12353
+ "ThirdPartyRelationshipAttributeQueryJSON": {
11854
12354
  "type": "object",
11855
12355
  "properties": {
11856
12356
  "@type": {
11857
- "type": "string"
12357
+ "type": "string",
12358
+ "const": "ThirdPartyRelationshipAttributeQuery"
11858
12359
  },
11859
12360
  "@context": {
11860
12361
  "type": "string"
@@ -11862,19 +12363,27 @@ exports.ReceivedIncomingRequestRequest = {
11862
12363
  "@version": {
11863
12364
  "type": "string"
11864
12365
  },
11865
- "valueType": {
11866
- "type": "string"
11867
- },
11868
12366
  "validFrom": {
11869
12367
  "type": "string"
11870
12368
  },
11871
12369
  "validTo": {
11872
12370
  "type": "string"
12371
+ },
12372
+ "key": {
12373
+ "type": "string"
12374
+ },
12375
+ "owner": {
12376
+ "type": "string"
12377
+ },
12378
+ "thirdParty": {
12379
+ "type": "string"
11873
12380
  }
11874
12381
  },
11875
12382
  "required": [
11876
12383
  "@type",
11877
- "valueType"
12384
+ "key",
12385
+ "owner",
12386
+ "thirdParty"
11878
12387
  ],
11879
12388
  "additionalProperties": false
11880
12389
  },
@@ -11882,7 +12391,8 @@ exports.ReceivedIncomingRequestRequest = {
11882
12391
  "type": "object",
11883
12392
  "properties": {
11884
12393
  "@type": {
11885
- "type": "string"
12394
+ "type": "string",
12395
+ "const": "ConsentRequestItem"
11886
12396
  },
11887
12397
  "@context": {
11888
12398
  "type": "string"
@@ -11926,10 +12436,10 @@ exports.ReceivedIncomingRequestRequest = {
11926
12436
  },
11927
12437
  "AuthenticationRequestItemJSON": {
11928
12438
  "type": "object",
11929
- "additionalProperties": false,
11930
12439
  "properties": {
11931
12440
  "@type": {
11932
- "type": "string"
12441
+ "type": "string",
12442
+ "const": "AuthenticationRequestItem"
11933
12443
  },
11934
12444
  "@context": {
11935
12445
  "type": "string"
@@ -11961,7 +12471,8 @@ exports.ReceivedIncomingRequestRequest = {
11961
12471
  "required": [
11962
12472
  "@type",
11963
12473
  "mustBeAccepted"
11964
- ]
12474
+ ],
12475
+ "additionalProperties": false
11965
12476
  },
11966
12477
  "MessageIdString": {
11967
12478
  "type": "string",
@@ -12048,7 +12559,7 @@ exports.CreateSettingRequest = {
12048
12559
  ]
12049
12560
  },
12050
12561
  "succeedsAt": {
12051
- "$ref": "#/definitions/DateTimeString"
12562
+ "$ref": "#/definitions/ISO8601DateTimeString"
12052
12563
  },
12053
12564
  "succeedsItem": {
12054
12565
  "$ref": "#/definitions/LocalSettingIdString"
@@ -12064,9 +12575,10 @@ exports.CreateSettingRequest = {
12064
12575
  "type": "string",
12065
12576
  "pattern": "[A-Za-z0-9]{20}"
12066
12577
  },
12067
- "DateTimeString": {
12578
+ "ISO8601DateTimeString": {
12068
12579
  "type": "string",
12069
- "format": "date-time"
12580
+ "errorMessage": "must match ISO8601 datetime format",
12581
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
12070
12582
  },
12071
12583
  "LocalSettingIdString": {
12072
12584
  "type": "string",
@@ -12564,7 +13076,7 @@ exports.CreateDeviceOnboardingTokenRequest = {
12564
13076
  "$ref": "#/definitions/DeviceIdString"
12565
13077
  },
12566
13078
  "expiresAt": {
12567
- "$ref": "#/definitions/DateTimeString"
13079
+ "$ref": "#/definitions/ISO8601DateTimeString"
12568
13080
  }
12569
13081
  },
12570
13082
  "required": [
@@ -12576,9 +13088,10 @@ exports.CreateDeviceOnboardingTokenRequest = {
12576
13088
  "type": "string",
12577
13089
  "pattern": "DVC[A-Za-z0-9]{17}"
12578
13090
  },
12579
- "DateTimeString": {
13091
+ "ISO8601DateTimeString": {
12580
13092
  "type": "string",
12581
- "format": "date-time"
13093
+ "errorMessage": "must match ISO8601 datetime format",
13094
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
12582
13095
  }
12583
13096
  }
12584
13097
  };
@@ -12709,7 +13222,7 @@ exports.CreateTokenForFileRequest = {
12709
13222
  "$ref": "#/definitions/FileIdString"
12710
13223
  },
12711
13224
  "expiresAt": {
12712
- "$ref": "#/definitions/DateTimeString"
13225
+ "$ref": "#/definitions/ISO8601DateTimeString"
12713
13226
  },
12714
13227
  "ephemeral": {
12715
13228
  "type": "boolean"
@@ -12724,9 +13237,10 @@ exports.CreateTokenForFileRequest = {
12724
13237
  "type": "string",
12725
13238
  "pattern": "FIL[A-Za-z0-9]{17}"
12726
13239
  },
12727
- "DateTimeString": {
13240
+ "ISO8601DateTimeString": {
12728
13241
  "type": "string",
12729
- "format": "date-time"
13242
+ "errorMessage": "must match ISO8601 datetime format",
13243
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
12730
13244
  }
12731
13245
  }
12732
13246
  };
@@ -12741,7 +13255,7 @@ exports.CreateTokenQrCodeForFileRequest = {
12741
13255
  "$ref": "#/definitions/FileIdString"
12742
13256
  },
12743
13257
  "expiresAt": {
12744
- "$ref": "#/definitions/DateTimeString"
13258
+ "$ref": "#/definitions/ISO8601DateTimeString"
12745
13259
  }
12746
13260
  },
12747
13261
  "required": [
@@ -12753,9 +13267,10 @@ exports.CreateTokenQrCodeForFileRequest = {
12753
13267
  "type": "string",
12754
13268
  "pattern": "FIL[A-Za-z0-9]{17}"
12755
13269
  },
12756
- "DateTimeString": {
13270
+ "ISO8601DateTimeString": {
12757
13271
  "type": "string",
12758
- "format": "date-time"
13272
+ "errorMessage": "must match ISO8601 datetime format",
13273
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
12759
13274
  }
12760
13275
  }
12761
13276
  };
@@ -13121,7 +13636,7 @@ exports.UploadOwnFileRequest = {
13121
13636
  "type": "string"
13122
13637
  },
13123
13638
  "expiresAt": {
13124
- "$ref": "#/definitions/DateTimeString"
13639
+ "$ref": "#/definitions/ISO8601DateTimeString"
13125
13640
  },
13126
13641
  "title": {
13127
13642
  "type": "string"
@@ -13139,9 +13654,10 @@ exports.UploadOwnFileRequest = {
13139
13654
  ],
13140
13655
  "additionalProperties": false
13141
13656
  },
13142
- "DateTimeString": {
13657
+ "ISO8601DateTimeString": {
13143
13658
  "type": "string",
13144
- "format": "date-time"
13659
+ "errorMessage": "must match ISO8601 datetime format",
13660
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
13145
13661
  }
13146
13662
  }
13147
13663
  };
@@ -13159,7 +13675,7 @@ exports.UploadOwnFileValidatableRequest = {
13159
13675
  "type": "string"
13160
13676
  },
13161
13677
  "expiresAt": {
13162
- "$ref": "#/definitions/DateTimeString"
13678
+ "$ref": "#/definitions/ISO8601DateTimeString"
13163
13679
  },
13164
13680
  "title": {
13165
13681
  "type": "string"
@@ -13180,9 +13696,10 @@ exports.UploadOwnFileValidatableRequest = {
13180
13696
  ],
13181
13697
  "additionalProperties": false
13182
13698
  },
13183
- "DateTimeString": {
13699
+ "ISO8601DateTimeString": {
13184
13700
  "type": "string",
13185
- "format": "date-time"
13701
+ "errorMessage": "must match ISO8601 datetime format",
13702
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
13186
13703
  }
13187
13704
  }
13188
13705
  };
@@ -13588,7 +14105,7 @@ exports.CreateOwnRelationshipTemplateRequest = {
13588
14105
  "type": "object",
13589
14106
  "properties": {
13590
14107
  "expiresAt": {
13591
- "$ref": "#/definitions/DateTimeString"
14108
+ "$ref": "#/definitions/ISO8601DateTimeString"
13592
14109
  },
13593
14110
  "content": {},
13594
14111
  "maxNumberOfAllocations": {
@@ -13607,9 +14124,10 @@ exports.CreateOwnRelationshipTemplateRequest = {
13607
14124
  ],
13608
14125
  "additionalProperties": false
13609
14126
  },
13610
- "DateTimeString": {
14127
+ "ISO8601DateTimeString": {
13611
14128
  "type": "string",
13612
- "format": "date-time"
14129
+ "errorMessage": "must match ISO8601 datetime format",
14130
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
13613
14131
  }
13614
14132
  }
13615
14133
  };
@@ -13646,7 +14164,7 @@ exports.CreateTokenForOwnTemplateRequest = {
13646
14164
  "$ref": "#/definitions/RelationshipTemplateIdString"
13647
14165
  },
13648
14166
  "expiresAt": {
13649
- "$ref": "#/definitions/DateTimeString"
14167
+ "$ref": "#/definitions/ISO8601DateTimeString"
13650
14168
  },
13651
14169
  "ephemeral": {
13652
14170
  "type": "boolean"
@@ -13661,9 +14179,10 @@ exports.CreateTokenForOwnTemplateRequest = {
13661
14179
  "type": "string",
13662
14180
  "pattern": "RLT[A-Za-z0-9]{17}"
13663
14181
  },
13664
- "DateTimeString": {
14182
+ "ISO8601DateTimeString": {
13665
14183
  "type": "string",
13666
- "format": "date-time"
14184
+ "errorMessage": "must match ISO8601 datetime format",
14185
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
13667
14186
  }
13668
14187
  }
13669
14188
  };
@@ -13678,7 +14197,7 @@ exports.CreateTokenQrCodeForOwnTemplateRequest = {
13678
14197
  "$ref": "#/definitions/RelationshipTemplateIdString"
13679
14198
  },
13680
14199
  "expiresAt": {
13681
- "$ref": "#/definitions/DateTimeString"
14200
+ "$ref": "#/definitions/ISO8601DateTimeString"
13682
14201
  }
13683
14202
  },
13684
14203
  "required": [
@@ -13690,9 +14209,10 @@ exports.CreateTokenQrCodeForOwnTemplateRequest = {
13690
14209
  "type": "string",
13691
14210
  "pattern": "RLT[A-Za-z0-9]{17}"
13692
14211
  },
13693
- "DateTimeString": {
14212
+ "ISO8601DateTimeString": {
13694
14213
  "type": "string",
13695
- "format": "date-time"
14214
+ "errorMessage": "must match ISO8601 datetime format",
14215
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
13696
14216
  }
13697
14217
  }
13698
14218
  };
@@ -13876,7 +14396,7 @@ exports.CreateOwnTokenRequest = {
13876
14396
  "properties": {
13877
14397
  "content": {},
13878
14398
  "expiresAt": {
13879
- "$ref": "#/definitions/DateTimeString"
14399
+ "$ref": "#/definitions/ISO8601DateTimeString"
13880
14400
  },
13881
14401
  "ephemeral": {
13882
14402
  "type": "boolean"
@@ -13889,9 +14409,10 @@ exports.CreateOwnTokenRequest = {
13889
14409
  ],
13890
14410
  "additionalProperties": false
13891
14411
  },
13892
- "DateTimeString": {
14412
+ "ISO8601DateTimeString": {
13893
14413
  "type": "string",
13894
- "format": "date-time"
14414
+ "errorMessage": "must match ISO8601 datetime format",
14415
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
13895
14416
  }
13896
14417
  }
13897
14418
  };
@@ -14696,8 +15217,11 @@ let ExecuteRelationshipAttributeQueryUseCase = class ExecuteRelationshipAttribut
14696
15217
  this.attributeController = attributeController;
14697
15218
  }
14698
15219
  async executeInternal(request) {
14699
- const attributes = await this.attributeController.executeRelationshipAttributeQuery(content_1.RelationshipAttributeQuery.from(request.query));
14700
- return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
15220
+ const attribute = await this.attributeController.executeRelationshipAttributeQuery(content_1.RelationshipAttributeQuery.from(request.query));
15221
+ if (!attribute) {
15222
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound("RelationshipAttribute"));
15223
+ }
15224
+ return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTO(attribute));
14701
15225
  }
14702
15226
  };
14703
15227
  ExecuteRelationshipAttributeQueryUseCase = __decorate([
@@ -14709,6 +15233,56 @@ exports.ExecuteRelationshipAttributeQueryUseCase = ExecuteRelationshipAttributeQ
14709
15233
 
14710
15234
  /***/ }),
14711
15235
 
15236
+ /***/ "./dist/useCases/consumption/attributes/ExecuteThirdPartyRelationshipAttributeQuery.js":
15237
+ /*!*********************************************************************************************!*\
15238
+ !*** ./dist/useCases/consumption/attributes/ExecuteThirdPartyRelationshipAttributeQuery.js ***!
15239
+ \*********************************************************************************************/
15240
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
15241
+
15242
+ "use strict";
15243
+
15244
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15245
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15246
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15247
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
15248
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
15249
+ };
15250
+ var __metadata = (this && this.__metadata) || function (k, v) {
15251
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
15252
+ };
15253
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
15254
+ return function (target, key) { decorator(target, key, paramIndex); }
15255
+ };
15256
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
15257
+ exports.ExecuteThirdPartyRelationshipAttributeQueryUseCase = void 0;
15258
+ const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/@js-soft/ts-utils/dist/index.js");
15259
+ const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
15260
+ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
15261
+ const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
15262
+ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
15263
+ const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
15264
+ let ExecuteThirdPartyRelationshipAttributeQueryUseCase = class ExecuteThirdPartyRelationshipAttributeQueryUseCase extends common_1.UseCase {
15265
+ constructor(attributeController) {
15266
+ super();
15267
+ this.attributeController = attributeController;
15268
+ }
15269
+ async executeInternal(request) {
15270
+ const attribute = await this.attributeController.executeThirdPartyRelationshipAttributeQuery(content_1.ThirdPartyRelationshipAttributeQuery.from(request.query));
15271
+ if (!attribute) {
15272
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound("RelationshipAttribute"));
15273
+ }
15274
+ return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTO(attribute));
15275
+ }
15276
+ };
15277
+ ExecuteThirdPartyRelationshipAttributeQueryUseCase = __decorate([
15278
+ __param(0, typescript_ioc_1.Inject),
15279
+ __metadata("design:paramtypes", [consumption_1.LocalAttributesController])
15280
+ ], ExecuteThirdPartyRelationshipAttributeQueryUseCase);
15281
+ exports.ExecuteThirdPartyRelationshipAttributeQueryUseCase = ExecuteThirdPartyRelationshipAttributeQueryUseCase;
15282
+ //# sourceMappingURL=ExecuteThirdPartyRelationshipAttributeQuery.js.map
15283
+
15284
+ /***/ }),
15285
+
14712
15286
  /***/ "./dist/useCases/consumption/attributes/GetAttribute.js":
14713
15287
  /*!**************************************************************!*\
14714
15288
  !*** ./dist/useCases/consumption/attributes/GetAttribute.js ***!
@@ -15209,6 +15783,7 @@ __exportStar(__webpack_require__(/*! ./CreateSharedAttributeCopy */ "./dist/useC
15209
15783
  __exportStar(__webpack_require__(/*! ./DeleteAttribute */ "./dist/useCases/consumption/attributes/DeleteAttribute.js"), exports);
15210
15784
  __exportStar(__webpack_require__(/*! ./ExecuteIdentityAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js"), exports);
15211
15785
  __exportStar(__webpack_require__(/*! ./ExecuteRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js"), exports);
15786
+ __exportStar(__webpack_require__(/*! ./ExecuteThirdPartyRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteThirdPartyRelationshipAttributeQuery.js"), exports);
15212
15787
  __exportStar(__webpack_require__(/*! ./GetAttribute */ "./dist/useCases/consumption/attributes/GetAttribute.js"), exports);
15213
15788
  __exportStar(__webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js"), exports);
15214
15789
  __exportStar(__webpack_require__(/*! ./GetPeerAttributes */ "./dist/useCases/consumption/attributes/GetPeerAttributes.js"), exports);
@@ -15753,18 +16328,16 @@ const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transpor
15753
16328
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
15754
16329
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
15755
16330
  const RequestValidationResultMapper_1 = __webpack_require__(/*! ./RequestValidationResultMapper */ "./dist/useCases/consumption/requests/RequestValidationResultMapper.js");
15756
- let Validator = class Validator extends common_1.SchemaValidator {
15757
- constructor(schemaRepository) {
16331
+ /*
16332
+ class Validator extends SchemaValidator<CanCreateOutgoingRequestRequest> {
16333
+ public constructor(@Inject schemaRepository: SchemaRepository) {
15758
16334
  super(schemaRepository.getSchema("CanCreateOutgoingRequestRequest"));
15759
16335
  }
15760
- };
15761
- Validator = __decorate([
15762
- __param(0, typescript_ioc_1.Inject),
15763
- __metadata("design:paramtypes", [common_1.SchemaRepository])
15764
- ], Validator);
16336
+ }
16337
+ */
15765
16338
  let CanCreateOutgoingRequestUseCase = class CanCreateOutgoingRequestUseCase extends common_1.UseCase {
15766
- constructor(outgoingRequestsController, validator) {
15767
- super(validator);
16339
+ constructor(outgoingRequestsController) {
16340
+ super();
15768
16341
  this.outgoingRequestsController = outgoingRequestsController;
15769
16342
  }
15770
16343
  async executeInternal(request) {
@@ -15780,8 +16353,7 @@ let CanCreateOutgoingRequestUseCase = class CanCreateOutgoingRequestUseCase exte
15780
16353
  };
15781
16354
  CanCreateOutgoingRequestUseCase = __decorate([
15782
16355
  __param(0, typescript_ioc_1.Inject),
15783
- __param(1, typescript_ioc_1.Inject),
15784
- __metadata("design:paramtypes", [consumption_1.OutgoingRequestsController, Validator])
16356
+ __metadata("design:paramtypes", [consumption_1.OutgoingRequestsController])
15785
16357
  ], CanCreateOutgoingRequestUseCase);
15786
16358
  exports.CanCreateOutgoingRequestUseCase = CanCreateOutgoingRequestUseCase;
15787
16359
  //# sourceMappingURL=CanCreateOutgoingRequest.js.map
@@ -35765,7 +36337,8 @@ function clone$1(dur, alts, clear = false) {
35765
36337
  ...(alts.values || {})
35766
36338
  },
35767
36339
  loc: dur.loc.clone(alts.loc),
35768
- conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy
36340
+ conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,
36341
+ matrix: alts.matrix || dur.matrix
35769
36342
  };
35770
36343
  return new Duration(conf);
35771
36344
  }
@@ -35804,7 +36377,7 @@ function normalizeValues(matrix, vals) {
35804
36377
  *
35805
36378
  * Here is a brief overview of commonly used methods and getters in Duration:
35806
36379
  *
35807
- * * **Creation** To create a Duration, use {@link Duration#fromMillis}, {@link Duration#fromObject}, or {@link Duration#fromISO}.
36380
+ * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.
35808
36381
  * * **Unit values** See the {@link Duration#years}, {@link Duration#months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.
35809
36382
  * * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.
35810
36383
  * * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.
@@ -35820,10 +36393,16 @@ class Duration {
35820
36393
  */
35821
36394
  constructor(config) {
35822
36395
  const accurate = config.conversionAccuracy === "longterm" || false;
36396
+ let matrix = accurate ? accurateMatrix : casualMatrix;
36397
+
36398
+ if (config.matrix) {
36399
+ matrix = config.matrix;
36400
+ }
35823
36401
  /**
35824
36402
  * @access private
35825
36403
  */
35826
36404
 
36405
+
35827
36406
  this.values = config.values;
35828
36407
  /**
35829
36408
  * @access private
@@ -35844,7 +36423,7 @@ class Duration {
35844
36423
  * @access private
35845
36424
  */
35846
36425
 
35847
- this.matrix = accurate ? accurateMatrix : casualMatrix;
36426
+ this.matrix = matrix;
35848
36427
  /**
35849
36428
  * @access private
35850
36429
  */
@@ -35883,7 +36462,8 @@ class Duration {
35883
36462
  * @param {Object} [opts=[]] - options for creating this Duration
35884
36463
  * @param {string} [opts.locale='en-US'] - the locale to use
35885
36464
  * @param {string} opts.numberingSystem - the numbering system to use
35886
- * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
36465
+ * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use
36466
+ * @param {string} [opts.matrix=Object] - the custom conversion system to use
35887
36467
  * @return {Duration}
35888
36468
  */
35889
36469
 
@@ -35896,7 +36476,8 @@ class Duration {
35896
36476
  return new Duration({
35897
36477
  values: normalizeObject(obj, Duration.normalizeUnit),
35898
36478
  loc: Locale.fromObject(opts),
35899
- conversionAccuracy: opts.conversionAccuracy
36479
+ conversionAccuracy: opts.conversionAccuracy,
36480
+ matrix: opts.matrix
35900
36481
  });
35901
36482
  }
35902
36483
  /**
@@ -35928,7 +36509,8 @@ class Duration {
35928
36509
  * @param {Object} opts - options for parsing
35929
36510
  * @param {string} [opts.locale='en-US'] - the locale to use
35930
36511
  * @param {string} opts.numberingSystem - the numbering system to use
35931
- * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
36512
+ * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use
36513
+ * @param {string} [opts.matrix=Object] - the preset conversion system to use
35932
36514
  * @see https://en.wikipedia.org/wiki/ISO_8601#Durations
35933
36515
  * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }
35934
36516
  * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }
@@ -35952,7 +36534,8 @@ class Duration {
35952
36534
  * @param {Object} opts - options for parsing
35953
36535
  * @param {string} [opts.locale='en-US'] - the locale to use
35954
36536
  * @param {string} opts.numberingSystem - the numbering system to use
35955
- * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
36537
+ * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use
36538
+ * @param {string} [opts.matrix=Object] - the conversion system to use
35956
36539
  * @see https://en.wikipedia.org/wiki/ISO_8601#Times
35957
36540
  * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }
35958
36541
  * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
@@ -36283,7 +36866,7 @@ class Duration {
36283
36866
  * Scale this Duration by the specified amount. Return a newly-constructed Duration.
36284
36867
  * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.
36285
36868
  * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }
36286
- * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === "hour" ? x * 2 : x) //=> { hours: 2, minutes: 30 }
36869
+ * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === "hours" ? x * 2 : x) //=> { hours: 2, minutes: 30 }
36287
36870
  * @return {Duration}
36288
36871
  */
36289
36872
 
@@ -36341,20 +36924,18 @@ class Duration {
36341
36924
  reconfigure({
36342
36925
  locale,
36343
36926
  numberingSystem,
36344
- conversionAccuracy
36927
+ conversionAccuracy,
36928
+ matrix
36345
36929
  } = {}) {
36346
36930
  const loc = this.loc.clone({
36347
36931
  locale,
36348
36932
  numberingSystem
36349
- }),
36350
- opts = {
36351
- loc
36933
+ });
36934
+ const opts = {
36935
+ loc,
36936
+ matrix,
36937
+ conversionAccuracy
36352
36938
  };
36353
-
36354
- if (conversionAccuracy) {
36355
- opts.conversionAccuracy = conversionAccuracy;
36356
- }
36357
-
36358
36939
  return clone$1(this, opts);
36359
36940
  }
36360
36941
  /**
@@ -36628,10 +37209,10 @@ function validateStartEnd(start, end) {
36628
37209
  *
36629
37210
  * Here is a brief overview of the most commonly used methods and getters in Interval:
36630
37211
  *
36631
- * * **Creation** To create an Interval, use {@link Interval#fromDateTimes}, {@link Interval#after}, {@link Interval#before}, or {@link Interval#fromISO}.
37212
+ * * **Creation** To create an Interval, use {@link Interval.fromDateTimes}, {@link Interval.after}, {@link Interval.before}, or {@link Interval.fromISO}.
36632
37213
  * * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.
36633
37214
  * * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.
36634
- * * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval#merge}, {@link Interval#xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.
37215
+ * * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval.merge}, {@link Interval.xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.
36635
37216
  * * **Comparison** To compare this Interval to another one, use {@link Interval#equals}, {@link Interval#overlaps}, {@link Interval#abutsStart}, {@link Interval#abutsEnd}, {@link Interval#engulfs}
36636
37217
  * * **Output** To convert the Interval into other representations, see {@link Interval#toString}, {@link Interval#toISO}, {@link Interval#toISODate}, {@link Interval#toISOTime}, {@link Interval#toFormat}, and {@link Interval#toDuration}.
36637
37218
  */
@@ -38072,7 +38653,6 @@ function expandMacroTokens(tokens, locale) {
38072
38653
  * @private
38073
38654
  */
38074
38655
 
38075
-
38076
38656
  function explainFromTokens(locale, input, format) {
38077
38657
  const tokens = expandMacroTokens(Formatter.parseFormat(format), locale),
38078
38658
  units = tokens.map(t => unitForToken(t, locale)),
@@ -38668,7 +39248,7 @@ function lastOpts(argList) {
38668
39248
  *
38669
39249
  * Here is a brief overview of the most commonly used functionality it provides:
38670
39250
  *
38671
- * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime#local}, {@link DateTime#utc}, and (most flexibly) {@link DateTime#fromObject}. To create one from a standard string format, use {@link DateTime#fromISO}, {@link DateTime#fromHTTP}, and {@link DateTime#fromRFC2822}. To create one from a custom string format, use {@link DateTime#fromFormat}. To create one from a native JS date, use {@link DateTime#fromJSDate}.
39251
+ * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime.local}, {@link DateTime.utc}, and (most flexibly) {@link DateTime.fromObject}. To create one from a standard string format, use {@link DateTime.fromISO}, {@link DateTime.fromHTTP}, and {@link DateTime.fromRFC2822}. To create one from a custom string format, use {@link DateTime.fromFormat}. To create one from a native JS date, use {@link DateTime.fromJSDate}.
38672
39252
  * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},
38673
39253
  * {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.
38674
39254
  * * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.
@@ -39207,6 +39787,19 @@ class DateTime {
39207
39787
  static parseFormatForOpts(formatOpts, localeOpts = {}) {
39208
39788
  const tokenList = formatOptsToTokens(formatOpts, Locale.fromObject(localeOpts));
39209
39789
  return !tokenList ? null : tokenList.map(t => t ? t.val : null).join("");
39790
+ }
39791
+ /**
39792
+ * Produce the the fully expanded format token for the locale
39793
+ * Does NOT quote characters, so quoted tokens will not round trip correctly
39794
+ * @param fmt
39795
+ * @param localeOpts
39796
+ * @returns {string}
39797
+ */
39798
+
39799
+
39800
+ static expandFormat(fmt, localeOpts = {}) {
39801
+ const expanded = expandMacroTokens(Formatter.parseFormat(fmt), Locale.fromObject(localeOpts));
39802
+ return expanded.map(t => t.val).join("");
39210
39803
  } // INFO
39211
39804
 
39212
39805
  /**
@@ -39899,8 +40492,8 @@ class DateTime {
39899
40492
  * @param {Object} opts - opts to override the configuration options on this DateTime
39900
40493
  * @example DateTime.now().toLocaleString(); //=> 4/20/2017
39901
40494
  * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'
39902
- * @example DateTime.now().toLocaleString({ locale: 'en-gb' }); //=> '20/04/2017'
39903
40495
  * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'
40496
+ * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'
39904
40497
  * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'
39905
40498
  * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'
39906
40499
  * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'
@@ -39937,7 +40530,7 @@ class DateTime {
39937
40530
  * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
39938
40531
  * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
39939
40532
  * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
39940
- * @param {boolean} [opts.extendedZone=true] - add the time zone format extension
40533
+ * @param {boolean} [opts.extendedZone=false] - add the time zone format extension
39941
40534
  * @param {string} [opts.format='extended'] - choose between the basic and extended format
39942
40535
  * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'
39943
40536
  * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'
@@ -40642,7 +41235,7 @@ function friendlyDateTime(dateTimeish) {
40642
41235
  }
40643
41236
  }
40644
41237
 
40645
- const VERSION = "3.0.1";
41238
+ const VERSION = "3.0.3";
40646
41239
 
40647
41240
  exports.DateTime = DateTime;
40648
41241
  exports.Duration = Duration;