@nmshd/runtime 6.3.1 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/RuntimeConfig.d.ts +4 -1
  2. package/dist/RuntimeConfig.d.ts.map +1 -1
  3. package/dist/buildInformation.js +4 -4
  4. package/dist/dataViews/DataViewExpander.d.ts.map +1 -1
  5. package/dist/dataViews/DataViewExpander.js +2 -0
  6. package/dist/dataViews/DataViewExpander.js.map +1 -1
  7. package/dist/dataViews/consumption/DecidableRequestItemDVOs.d.ts +1 -0
  8. package/dist/dataViews/consumption/DecidableRequestItemDVOs.d.ts.map +1 -1
  9. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts +2 -0
  10. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts.map +1 -1
  11. package/dist/dataViews/content/RequestItemDVOs.d.ts +1 -0
  12. package/dist/dataViews/content/RequestItemDVOs.d.ts.map +1 -1
  13. package/dist/dataViews/content/ResponseItemDVOs.d.ts +1 -0
  14. package/dist/dataViews/content/ResponseItemDVOs.d.ts.map +1 -1
  15. package/dist/events/EventProxy.d.ts.map +1 -1
  16. package/dist/events/EventProxy.js +7 -2
  17. package/dist/events/EventProxy.js.map +1 -1
  18. package/dist/events/consumption/MessageProcessedEvent.d.ts +1 -0
  19. package/dist/events/consumption/MessageProcessedEvent.d.ts.map +1 -1
  20. package/dist/events/consumption/MessageProcessedEvent.js +1 -0
  21. package/dist/events/consumption/MessageProcessedEvent.js.map +1 -1
  22. package/dist/events/consumption/RelationshipTemplateProcessedEvent.d.ts +5 -0
  23. package/dist/events/consumption/RelationshipTemplateProcessedEvent.d.ts.map +1 -1
  24. package/dist/events/consumption/RelationshipTemplateProcessedEvent.js +1 -0
  25. package/dist/events/consumption/RelationshipTemplateProcessedEvent.js.map +1 -1
  26. package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent.d.ts +3 -0
  27. package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent.d.ts.map +1 -1
  28. package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent.js +3 -0
  29. package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent.js.map +1 -1
  30. package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts +7 -0
  31. package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts.map +1 -0
  32. package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js +12 -0
  33. package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js.map +1 -0
  34. package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.d.ts +7 -0
  35. package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.d.ts.map +1 -0
  36. package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.js +12 -0
  37. package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.js.map +1 -0
  38. package/dist/events/consumption/index.d.ts +2 -0
  39. package/dist/events/consumption/index.d.ts.map +1 -1
  40. package/dist/events/consumption/index.js +2 -0
  41. package/dist/events/consumption/index.js.map +1 -1
  42. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +8 -4
  43. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts.map +1 -1
  44. package/dist/extensibility/facades/consumption/AttributesFacade.js +10 -4
  45. package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
  46. package/dist/extensibility/facades/transport/RelationshipsFacade.d.ts +4 -1
  47. package/dist/extensibility/facades/transport/RelationshipsFacade.d.ts.map +1 -1
  48. package/dist/extensibility/facades/transport/RelationshipsFacade.js +8 -1
  49. package/dist/extensibility/facades/transport/RelationshipsFacade.js.map +1 -1
  50. package/dist/modules/AttributeListenerModule.d.ts.map +1 -1
  51. package/dist/modules/AttributeListenerModule.js +3 -0
  52. package/dist/modules/AttributeListenerModule.js.map +1 -1
  53. package/dist/modules/DeciderModule.d.ts +14 -2
  54. package/dist/modules/DeciderModule.d.ts.map +1 -1
  55. package/dist/modules/DeciderModule.js +246 -5
  56. package/dist/modules/DeciderModule.js.map +1 -1
  57. package/dist/modules/decide/RequestConfig.d.ts +119 -0
  58. package/dist/modules/decide/RequestConfig.d.ts.map +1 -0
  59. package/dist/modules/decide/RequestConfig.js +11 -0
  60. package/dist/modules/decide/RequestConfig.js.map +1 -0
  61. package/dist/modules/decide/ResponseConfig.d.ts +31 -0
  62. package/dist/modules/decide/ResponseConfig.d.ts.map +1 -0
  63. package/dist/modules/decide/ResponseConfig.js +31 -0
  64. package/dist/modules/decide/ResponseConfig.js.map +1 -0
  65. package/dist/modules/decide/index.d.ts +3 -0
  66. package/dist/modules/decide/index.d.ts.map +1 -0
  67. package/dist/modules/decide/index.js +19 -0
  68. package/dist/modules/decide/index.js.map +1 -0
  69. package/dist/types/consumption/LocalAttributeDTO.d.ts +1 -0
  70. package/dist/types/consumption/LocalAttributeDTO.d.ts.map +1 -1
  71. package/dist/types/consumption/LocalAttributeDTO.js.map +1 -1
  72. package/dist/useCases/common/RuntimeErrors.d.ts +6 -2
  73. package/dist/useCases/common/RuntimeErrors.d.ts.map +1 -1
  74. package/dist/useCases/common/RuntimeErrors.js +11 -5
  75. package/dist/useCases/common/RuntimeErrors.js.map +1 -1
  76. package/dist/useCases/common/Schemas.d.ts +2 -2
  77. package/dist/useCases/common/Schemas.d.ts.map +1 -1
  78. package/dist/useCases/common/Schemas.js +107 -53
  79. package/dist/useCases/common/Schemas.js.map +1 -1
  80. package/dist/useCases/consumption/attributes/{DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeer.d.ts → DeleteThirdPartyRelationshipAttributeAndNotifyPeer.d.ts} +6 -6
  81. package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.d.ts.map +1 -0
  82. package/dist/useCases/consumption/attributes/{DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeer.js → DeleteThirdPartyRelationshipAttributeAndNotifyPeer.js} +16 -16
  83. package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.js.map +1 -0
  84. package/dist/useCases/consumption/attributes/GetAttributes.d.ts +1 -0
  85. package/dist/useCases/consumption/attributes/GetAttributes.d.ts.map +1 -1
  86. package/dist/useCases/consumption/attributes/GetAttributes.js.map +1 -1
  87. package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.d.ts +1 -0
  88. package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.d.ts.map +1 -1
  89. package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.js.map +1 -1
  90. package/dist/useCases/consumption/attributes/GetPeerSharedAttributes.d.ts +1 -0
  91. package/dist/useCases/consumption/attributes/GetPeerSharedAttributes.d.ts.map +1 -1
  92. package/dist/useCases/consumption/attributes/GetPeerSharedAttributes.js.map +1 -1
  93. package/dist/useCases/consumption/attributes/index.d.ts +2 -2
  94. package/dist/useCases/consumption/attributes/index.d.ts.map +1 -1
  95. package/dist/useCases/consumption/attributes/index.js +2 -2
  96. package/dist/useCases/consumption/attributes/index.js.map +1 -1
  97. package/dist/useCases/transport/relationshipTemplates/CreateOwnRelationshipTemplate.d.ts.map +1 -1
  98. package/dist/useCases/transport/relationshipTemplates/CreateOwnRelationshipTemplate.js +10 -3
  99. package/dist/useCases/transport/relationshipTemplates/CreateOwnRelationshipTemplate.js.map +1 -1
  100. package/dist/useCases/transport/relationships/CanCreateRelationship.d.ts +18 -0
  101. package/dist/useCases/transport/relationships/CanCreateRelationship.d.ts.map +1 -0
  102. package/dist/useCases/transport/relationships/CanCreateRelationship.js +57 -0
  103. package/dist/useCases/transport/relationships/CanCreateRelationship.js.map +1 -0
  104. package/dist/useCases/transport/relationships/CreateRelationship.d.ts +3 -1
  105. package/dist/useCases/transport/relationships/CreateRelationship.d.ts.map +1 -1
  106. package/dist/useCases/transport/relationships/CreateRelationship.js +10 -6
  107. package/dist/useCases/transport/relationships/CreateRelationship.js.map +1 -1
  108. package/package.json +6 -6
  109. package/dist/useCases/consumption/attributes/DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeer.d.ts.map +0 -1
  110. package/dist/useCases/consumption/attributes/DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeer.js.map +0 -1
@@ -2,11 +2,39 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeciderModule = void 0;
4
4
  const consumption_1 = require("@nmshd/consumption");
5
+ const core_types_1 = require("@nmshd/core-types");
6
+ const __1 = require("..");
5
7
  const events_1 = require("../events");
6
8
  const extensibility_1 = require("../extensibility");
9
+ const decide_1 = require("./decide");
7
10
  class DeciderModule extends extensibility_1.RuntimeModule {
8
11
  init() {
9
- // Nothing to do here
12
+ if (!this.configuration.automationConfig)
13
+ return;
14
+ for (const automationConfigElement of this.configuration.automationConfig) {
15
+ const isCompatible = this.validateAutomationConfig(automationConfigElement.requestConfig, automationConfigElement.responseConfig);
16
+ if (!isCompatible) {
17
+ throw __1.RuntimeErrors.deciderModule.requestConfigDoesNotMatchResponseConfig();
18
+ }
19
+ }
20
+ }
21
+ validateAutomationConfig(requestConfig, responseConfig) {
22
+ if ((0, decide_1.isRejectResponseConfig)(responseConfig))
23
+ return true;
24
+ if ((0, decide_1.isGeneralRequestConfig)(requestConfig))
25
+ return (0, decide_1.isSimpleAcceptResponseConfig)(responseConfig);
26
+ switch (requestConfig["content.item.@type"]) {
27
+ case "DeleteAttributeRequestItem":
28
+ return (0, decide_1.isDeleteAttributeAcceptResponseConfig)(responseConfig);
29
+ case "FreeTextRequestItem":
30
+ return (0, decide_1.isFreeTextAcceptResponseConfig)(responseConfig);
31
+ case "ProposeAttributeRequestItem":
32
+ return (0, decide_1.isProposeAttributeWithNewAttributeAcceptResponseConfig)(responseConfig);
33
+ case "ReadAttributeRequestItem":
34
+ return (0, decide_1.isReadAttributeWithNewAttributeAcceptResponseConfig)(responseConfig);
35
+ default:
36
+ return (0, decide_1.isSimpleAcceptResponseConfig)(responseConfig);
37
+ }
10
38
  }
11
39
  start() {
12
40
  this.subscribeToEvent(events_1.IncomingRequestStatusChangedEvent, this.handleIncomingRequestStatusChanged.bind(this));
@@ -14,16 +42,83 @@ class DeciderModule extends extensibility_1.RuntimeModule {
14
42
  async handleIncomingRequestStatusChanged(event) {
15
43
  if (event.data.newStatus !== consumption_1.LocalRequestStatus.DecisionRequired)
16
44
  return;
17
- if (event.data.request.content.items.some(flaggedAsManualDecisionRequired))
45
+ const requestContent = event.data.request.content;
46
+ if (containsItem(requestContent, (item) => item["requireManualDecision"] === true)) {
18
47
  return await this.requireManualDecision(event);
48
+ }
49
+ const automaticallyDecided = (await this.automaticallyDecideRequest(event)).wasDecided;
50
+ if (automaticallyDecided) {
51
+ const services = await this.runtime.getServices(event.eventTargetAddress);
52
+ await this.publishEvent(event, services, "RequestAutomaticallyDecided");
53
+ return;
54
+ }
19
55
  return await this.requireManualDecision(event);
20
56
  }
57
+ async automaticallyDecideRequest(event) {
58
+ if (!this.configuration.automationConfig)
59
+ return { wasDecided: false };
60
+ const request = event.data.request;
61
+ const itemsOfRequest = request.content.items;
62
+ let decideRequestItemParameters = createEmptyDecideRequestItemParameters(itemsOfRequest);
63
+ for (const automationConfigElement of this.configuration.automationConfig) {
64
+ const requestConfigElement = automationConfigElement.requestConfig;
65
+ const responseConfigElement = automationConfigElement.responseConfig;
66
+ const generalRequestIsCompatible = checkGeneralRequestCompatibility(requestConfigElement, request);
67
+ if (!generalRequestIsCompatible) {
68
+ continue;
69
+ }
70
+ const updatedRequestItemParameters = checkRequestItemCompatibilityAndApplyResponseConfig(itemsOfRequest, decideRequestItemParameters, requestConfigElement, responseConfigElement);
71
+ decideRequestItemParameters = updatedRequestItemParameters;
72
+ if (!containsItem(decideRequestItemParameters, (element) => element === undefined)) {
73
+ const decideRequestResult = await this.decideRequest(event, decideRequestItemParameters);
74
+ return decideRequestResult;
75
+ }
76
+ }
77
+ this.logger.info("The Request couldn't be decided automatically, since it contains RequestItems for which no suitable automationConfig was provided.");
78
+ return { wasDecided: false };
79
+ }
80
+ async decideRequest(event, decideRequestItemParameters) {
81
+ const services = await this.runtime.getServices(event.eventTargetAddress);
82
+ const request = event.data.request;
83
+ if (!containsItem(decideRequestItemParameters, decide_1.isAcceptResponseConfig)) {
84
+ const canRejectResult = await services.consumptionServices.incomingRequests.canReject({ requestId: request.id, items: decideRequestItemParameters.items });
85
+ if (canRejectResult.isError) {
86
+ this.logger.error(`Can not reject Request ${request.id}`, canRejectResult.value.code, canRejectResult.error);
87
+ return { wasDecided: false };
88
+ }
89
+ else if (!canRejectResult.value.isSuccess) {
90
+ this.logger.warn(`Can not reject Request ${request.id}`, canRejectResult.value.code, canRejectResult.value.message);
91
+ return { wasDecided: false };
92
+ }
93
+ const rejectResult = await services.consumptionServices.incomingRequests.reject({ requestId: request.id, items: decideRequestItemParameters.items });
94
+ if (rejectResult.isError) {
95
+ this.logger.error(`An error occured trying to reject Request ${request.id}`, rejectResult.error);
96
+ return { wasDecided: false };
97
+ }
98
+ return { wasDecided: true };
99
+ }
100
+ const canAcceptResult = await services.consumptionServices.incomingRequests.canAccept({ requestId: request.id, items: decideRequestItemParameters.items });
101
+ if (canAcceptResult.isError) {
102
+ this.logger.error(`Can not accept Request ${request.id}.`, canAcceptResult.error);
103
+ return { wasDecided: false };
104
+ }
105
+ else if (!canAcceptResult.value.isSuccess) {
106
+ this.logger.warn(`Can not accept Request ${request.id}.`, canAcceptResult.value.message);
107
+ return { wasDecided: false };
108
+ }
109
+ const acceptResult = await services.consumptionServices.incomingRequests.accept({ requestId: request.id, items: decideRequestItemParameters.items });
110
+ if (acceptResult.isError) {
111
+ this.logger.error(`An error occured trying to accept Request ${request.id}`, acceptResult.error);
112
+ return { wasDecided: false };
113
+ }
114
+ return { wasDecided: true };
115
+ }
21
116
  async requireManualDecision(event) {
22
117
  const request = event.data.request;
23
118
  const services = await this.runtime.getServices(event.eventTargetAddress);
24
119
  const requireManualDecisionResult = await services.consumptionServices.incomingRequests.requireManualDecision({ requestId: request.id });
25
120
  if (requireManualDecisionResult.isError) {
26
- this.logger.error(`Could not require manual decision for request ${request.id}`, requireManualDecisionResult.error);
121
+ this.logger.error(`Could not require manual decision for Request ${request.id}`, requireManualDecisionResult.error);
27
122
  await this.publishEvent(event, services, "Error");
28
123
  return;
29
124
  }
@@ -49,6 +144,13 @@ class DeciderModule extends extensibility_1.RuntimeModule {
49
144
  requestId
50
145
  }));
51
146
  }
147
+ if (result === "RequestAutomaticallyDecided") {
148
+ this.runtime.eventBus.publish(new events_1.RelationshipTemplateProcessedEvent(event.eventTargetAddress, {
149
+ template,
150
+ result: result,
151
+ requestId
152
+ }));
153
+ }
52
154
  break;
53
155
  case "Message":
54
156
  const getMessageResult = await services.transportServices.messages.getMessage({ id: request.source.reference });
@@ -62,7 +164,146 @@ class DeciderModule extends extensibility_1.RuntimeModule {
62
164
  }
63
165
  }
64
166
  exports.DeciderModule = DeciderModule;
65
- function flaggedAsManualDecisionRequired(itemOrGroup) {
66
- return itemOrGroup.requireManualDecision ?? itemOrGroup.items?.some((i) => i.requireManualDecision);
167
+ function containsItem(objectWithItems, callback) {
168
+ const items = objectWithItems.items;
169
+ return items.some((item) => {
170
+ if (item?.hasOwnProperty("items")) {
171
+ return containsItem(item, callback);
172
+ }
173
+ return callback(item);
174
+ });
175
+ }
176
+ function createEmptyDecideRequestItemParameters(array) {
177
+ return {
178
+ items: array.map((element) => {
179
+ if (element["@type"] === "RequestItemGroup") {
180
+ const responseItems = createEmptyDecideRequestItemParameters(element.items);
181
+ return responseItems;
182
+ }
183
+ return undefined;
184
+ })
185
+ };
186
+ }
187
+ function checkGeneralRequestCompatibility(requestConfigElement, request) {
188
+ let generalRequestPartOfConfigElement = requestConfigElement;
189
+ if ((0, decide_1.isRequestItemDerivationConfig)(requestConfigElement)) {
190
+ generalRequestPartOfConfigElement = filterConfigElementByPrefix(requestConfigElement, false);
191
+ }
192
+ return checkCompatibility(generalRequestPartOfConfigElement, request);
193
+ }
194
+ function filterConfigElementByPrefix(requestItemConfigElement, includePrefix) {
195
+ const prefix = "content.item.";
196
+ const filteredRequestItemConfigElement = {};
197
+ for (const key in requestItemConfigElement) {
198
+ const startsWithPrefix = key.startsWith(prefix);
199
+ if (includePrefix && startsWithPrefix) {
200
+ const reducedKey = key.substring(prefix.length).trim();
201
+ filteredRequestItemConfigElement[reducedKey] = requestItemConfigElement[key];
202
+ }
203
+ else if (!includePrefix && !startsWithPrefix) {
204
+ filteredRequestItemConfigElement[key] = requestItemConfigElement[key];
205
+ }
206
+ }
207
+ return filteredRequestItemConfigElement;
208
+ }
209
+ function checkCompatibility(requestConfigElement, requestOrRequestItem) {
210
+ let compatible = true;
211
+ for (const property in requestConfigElement) {
212
+ const unformattedRequestConfigProperty = requestConfigElement[property];
213
+ if (!unformattedRequestConfigProperty) {
214
+ continue;
215
+ }
216
+ const requestConfigProperty = makeObjectsToStrings(unformattedRequestConfigProperty);
217
+ const unformattedRequestProperty = getNestedProperty(requestOrRequestItem, property);
218
+ if (!unformattedRequestProperty) {
219
+ compatible = false;
220
+ break;
221
+ }
222
+ const requestProperty = makeObjectsToStrings(unformattedRequestProperty);
223
+ if (property.endsWith("tags")) {
224
+ compatible &&= checkTagCompatibility(requestConfigProperty, requestProperty);
225
+ if (!compatible)
226
+ break;
227
+ continue;
228
+ }
229
+ if (property.endsWith("At") || property.endsWith("From") || property.endsWith("To")) {
230
+ compatible &&= checkDatesCompatibility(requestConfigProperty, requestProperty);
231
+ if (!compatible)
232
+ break;
233
+ continue;
234
+ }
235
+ if (Array.isArray(requestConfigProperty)) {
236
+ compatible &&= requestConfigProperty.includes(requestProperty);
237
+ }
238
+ else {
239
+ compatible &&= requestConfigProperty === requestProperty;
240
+ }
241
+ if (!compatible)
242
+ break;
243
+ }
244
+ return compatible;
245
+ }
246
+ function makeObjectsToStrings(data) {
247
+ if (Array.isArray(data)) {
248
+ return data.map((element) => (typeof element === "object" ? JSON.stringify(element) : element));
249
+ }
250
+ if (typeof data === "object")
251
+ return JSON.stringify(data);
252
+ return data;
253
+ }
254
+ function getNestedProperty(object, path) {
255
+ const nestedProperty = path.split(".").reduce((currentObject, key) => currentObject?.[key], object);
256
+ return nestedProperty;
257
+ }
258
+ function checkTagCompatibility(requestConfigTags, requestTags) {
259
+ const atLeastOneMatchingTag = requestConfigTags.some((tag) => requestTags.includes(tag));
260
+ return atLeastOneMatchingTag;
261
+ }
262
+ function checkDatesCompatibility(requestConfigDates, requestDate) {
263
+ if (typeof requestConfigDates === "string")
264
+ return checkDateCompatibility(requestConfigDates, requestDate);
265
+ return requestConfigDates.every((requestConfigDate) => checkDateCompatibility(requestConfigDate, requestDate));
266
+ }
267
+ function checkDateCompatibility(requestConfigDate, requestDate) {
268
+ if (requestConfigDate.startsWith(">"))
269
+ return core_types_1.CoreDate.from(requestDate).isAfter(core_types_1.CoreDate.from(requestConfigDate.substring(1)));
270
+ if (requestConfigDate.startsWith("<"))
271
+ return core_types_1.CoreDate.from(requestDate).isBefore(core_types_1.CoreDate.from(requestConfigDate.substring(1)));
272
+ return core_types_1.CoreDate.from(requestDate).equals(core_types_1.CoreDate.from(requestConfigDate));
273
+ }
274
+ function checkRequestItemCompatibilityAndApplyResponseConfig(itemsOfRequest, parametersToDecideRequest, requestConfigElement, responseConfigElement) {
275
+ for (let i = 0; i < itemsOfRequest.length; i++) {
276
+ const item = itemsOfRequest[i];
277
+ if (item["@type"] === "RequestItemGroup") {
278
+ checkRequestItemCompatibilityAndApplyResponseConfig(item.items, parametersToDecideRequest.items[i], requestConfigElement, responseConfigElement);
279
+ }
280
+ else {
281
+ const alreadyDecidedByOtherConfig = !!parametersToDecideRequest.items[i];
282
+ if (alreadyDecidedByOtherConfig)
283
+ continue;
284
+ if ((0, decide_1.isRequestItemDerivationConfig)(requestConfigElement)) {
285
+ const requestItemIsCompatible = checkRequestItemCompatibility(requestConfigElement, item);
286
+ if (!requestItemIsCompatible)
287
+ continue;
288
+ }
289
+ if ((0, decide_1.isGeneralRequestConfig)(requestConfigElement) && responseConfigElement.accept) {
290
+ const requestItemsWithSimpleAccept = [
291
+ "AuthenticationRequestItem",
292
+ "ConsentRequestItem",
293
+ "CreateAttributeRequestItem",
294
+ "RegisterAttributeListenerRequestItem",
295
+ "ShareAttributeRequestItem"
296
+ ];
297
+ if (!requestItemsWithSimpleAccept.includes(item["@type"]))
298
+ continue;
299
+ }
300
+ parametersToDecideRequest.items[i] = responseConfigElement;
301
+ }
302
+ }
303
+ return parametersToDecideRequest;
304
+ }
305
+ function checkRequestItemCompatibility(requestConfigElement, requestItem) {
306
+ const requestItemPartOfConfigElement = filterConfigElementByPrefix(requestConfigElement, true);
307
+ return checkCompatibility(requestItemPartOfConfigElement, requestItem);
67
308
  }
68
309
  //# sourceMappingURL=DeciderModule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeciderModule.js","sourceRoot":"","sources":["../../src/modules/DeciderModule.ts"],"names":[],"mappings":";;;AAAA,oDAAwD;AAExD,sCAMmB;AACnB,oDAAiD;AAGjD,MAAa,aAAc,SAAQ,6BAAa;IACrC,IAAI;QACP,qBAAqB;IACzB,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,gBAAgB,CAAC,0CAAiC,EAAE,IAAI,CAAC,kCAAkC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjH,CAAC;IAEO,KAAK,CAAC,kCAAkC,CAAC,KAAwC;QACrF,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,KAAK,gCAAkB,CAAC,gBAAgB;YAAE,OAAO;QAEzE,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,+BAA+B,CAAC;YAAE,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAE3H,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;I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aAAM,CAAC;YACJ,MAAM,2BAA2B,GAAG,CAAC,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACzE,IAAI,2BAA2B;gBAAE,SAAS;YAE1C,IAAI,IAAA,sCAA6B,EAAC,oBAAoB,CAAC,EAAE,CAAC;gBACtD,MAAM,uBAAuB,GAAG,6BAA6B,CAAC,oBAAoB,EAAE,IAAkC,CAAC,CAAC;gBACxH,IAAI,CAAC,uBAAuB;oBAAE,SAAS;YAC3C,CAAC;YAED,IAAI,IAAA,+BAAsB,EAAC,oBAAoB,CAAC,IAAI,qBAAqB,CAAC,MAAM,EAAE,CAAC;gBAC/E,MAAM,4BAA4B,GAAG;oBACjC,2BAA2B;oBAC3B,oBAAoB;oBACpB,4BAA4B;oBAC5B,sCAAsC;oBACtC,2BAA2B;iBAC9B,CAAC;gBACF,IAAI,CAAC,4BAA4B,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;oBAAE,SAAS;YACxE,CAAC;YAED,yBAAyB,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC;QAC/D,CAAC;IACL,CAAC;IACD,OAAO,yBAAyB,CAAC;AACrC,CAAC;AAED,SAAS,6BAA6B,CAAC,oBAAiD,EAAE,WAAuC;IAC7H,MAAM,8BAA8B,GAAG,2BAA2B,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;IAC/F,OAAO,kBAAkB,CAAC,8BAA8B,EAAE,WAAW,CAAC,CAAC;AAC3E,CAAC"}
@@ -0,0 +1,119 @@
1
+ import { RelationshipAttributeConfidentiality } from "@nmshd/content";
2
+ export interface GeneralRequestConfig {
3
+ peer?: string | string[];
4
+ createdAt?: string | string[];
5
+ "source.type"?: "Message" | "RelationshipTemplate";
6
+ "content.expiresAt"?: string | string[];
7
+ "content.title"?: string | string[];
8
+ "content.description"?: string | string[];
9
+ "content.metadata"?: object | object[];
10
+ }
11
+ export interface RequestItemConfig extends GeneralRequestConfig {
12
+ "content.item.@type"?: string | string[];
13
+ "content.item.mustBeAccepted"?: boolean;
14
+ "content.item.title"?: string | string[];
15
+ "content.item.description"?: string | string[];
16
+ "content.item.metadata"?: object | object[];
17
+ }
18
+ export interface AuthenticationRequestItemConfig extends RequestItemConfig {
19
+ "content.item.@type": "AuthenticationRequestItem";
20
+ }
21
+ export interface ConsentRequestItemConfig extends RequestItemConfig {
22
+ "content.item.@type": "ConsentRequestItem";
23
+ "content.item.consent"?: string | string[];
24
+ "content.item.link"?: string | string[];
25
+ }
26
+ export interface CreateAttributeRequestItemConfig extends RequestItemConfig {
27
+ "content.item.@type": "CreateAttributeRequestItem";
28
+ "content.item.attribute.@type"?: "IdentityAttribute" | "RelationshipAttribute";
29
+ "content.item.attribute.owner"?: string | string[];
30
+ "content.item.attribute.validFrom"?: string | string[];
31
+ "content.item.attribute.validTo"?: string | string[];
32
+ "content.item.attribute.tags"?: string[];
33
+ "content.item.attribute.key"?: string | string[];
34
+ "content.item.attribute.isTechnical"?: boolean;
35
+ "content.item.attribute.confidentiality"?: RelationshipAttributeConfidentiality | RelationshipAttributeConfidentiality[];
36
+ "content.item.attribute.value.@type"?: string | string[];
37
+ "content.item.attribute.value.value"?: string | string[];
38
+ "content.item.attribute.value.title"?: string | string[];
39
+ "content.item.attribute.value.description"?: string | string[];
40
+ }
41
+ export interface DeleteAttributeRequestItemConfig extends RequestItemConfig {
42
+ "content.item.@type": "DeleteAttributeRequestItem";
43
+ }
44
+ export interface FreeTextRequestItemConfig extends RequestItemConfig {
45
+ "content.item.@type": "FreeTextRequestItem";
46
+ "content.item.freeText"?: string | string[];
47
+ }
48
+ export interface ProposeAttributeRequestItemConfig extends RequestItemConfig {
49
+ "content.item.@type": "ProposeAttributeRequestItem";
50
+ "content.item.attribute.@type"?: "IdentityAttribute" | "RelationshipAttribute";
51
+ "content.item.attribute.owner"?: string | string[];
52
+ "content.item.attribute.validFrom"?: string | string[];
53
+ "content.item.attribute.validTo"?: string | string[];
54
+ "content.item.attribute.tags"?: string[];
55
+ "content.item.attribute.key"?: string | string[];
56
+ "content.item.attribute.isTechnical"?: boolean;
57
+ "content.item.attribute.confidentiality"?: RelationshipAttributeConfidentiality | RelationshipAttributeConfidentiality[];
58
+ "content.item.attribute.value.@type"?: string | string[];
59
+ "content.item.attribute.value.value"?: string | string[];
60
+ "content.item.attribute.value.title"?: string | string[];
61
+ "content.item.attribute.value.description"?: string | string[];
62
+ "content.item.query.@type"?: "IdentityAttributeQuery" | "RelationshipAttributeQuery" | "IQLQuery";
63
+ "content.item.query.validFrom"?: string | string[];
64
+ "content.item.query.validTo"?: string | string[];
65
+ "content.item.query.valueType"?: string | string[];
66
+ "content.item.query.tags"?: string[];
67
+ "content.item.query.key"?: string | string[];
68
+ "content.item.query.owner"?: string | string[];
69
+ "content.item.query.queryString"?: string | string[];
70
+ "content.item.query.attributeCreationHints.title"?: string | string[];
71
+ "content.item.query.attributeCreationHints.description"?: string | string[];
72
+ "content.item.query.attributeCreationHints.valueType"?: string | string[];
73
+ "content.item.query.attributeCreationHints.confidentiality"?: RelationshipAttributeConfidentiality | RelationshipAttributeConfidentiality[];
74
+ "content.item.query.attributeCreationHints.tags"?: string[];
75
+ }
76
+ export interface ReadAttributeRequestItemConfig extends RequestItemConfig {
77
+ "content.item.@type": "ReadAttributeRequestItem";
78
+ "content.item.query.@type"?: "IdentityAttributeQuery" | "RelationshipAttributeQuery" | "IQLQuery";
79
+ "content.item.query.validFrom"?: string | string[];
80
+ "content.item.query.validTo"?: string | string[];
81
+ "content.item.query.valueType"?: string | string[];
82
+ "content.item.query.tags"?: string[];
83
+ "content.item.query.key"?: string | string[];
84
+ "content.item.query.owner"?: string | string[];
85
+ "content.item.query.queryString"?: string | string[];
86
+ "content.item.query.attributeCreationHints.title"?: string | string[];
87
+ "content.item.query.attributeCreationHints.description"?: string | string[];
88
+ "content.item.query.attributeCreationHints.valueType"?: string | string[];
89
+ "content.item.query.attributeCreationHints.confidentiality"?: RelationshipAttributeConfidentiality | RelationshipAttributeConfidentiality[];
90
+ "content.item.query.attributeCreationHints.tags"?: string[];
91
+ }
92
+ export interface RegisterAttributeListenerRequestItemConfig extends RequestItemConfig {
93
+ "content.item.@type": "RegisterAttributeListenerRequestItem";
94
+ "content.item.query.@type"?: "IdentityAttributeQuery";
95
+ "content.item.query.validFrom"?: string | string[];
96
+ "content.item.query.validTo"?: string | string[];
97
+ "content.item.query.valueType"?: string | string[];
98
+ "content.item.query.tags"?: string[];
99
+ }
100
+ export interface ShareAttributeRequestItemConfig extends RequestItemConfig {
101
+ "content.item.@type": "ShareAttributeRequestItem";
102
+ "content.item.attribute.@type"?: "IdentityAttribute" | "RelationshipAttribute";
103
+ "content.item.attribute.owner"?: string | string[];
104
+ "content.item.attribute.validFrom"?: string | string[];
105
+ "content.item.attribute.validTo"?: string | string[];
106
+ "content.item.attribute.tags"?: string[];
107
+ "content.item.attribute.key"?: string | string[];
108
+ "content.item.attribute.isTechnical"?: boolean;
109
+ "content.item.attribute.confidentiality"?: RelationshipAttributeConfidentiality | RelationshipAttributeConfidentiality[];
110
+ "content.item.attribute.value.@type"?: string | string[];
111
+ "content.item.attribute.value.value"?: string | string[];
112
+ "content.item.attribute.value.title"?: string | string[];
113
+ "content.item.attribute.value.description"?: string | string[];
114
+ }
115
+ export type RequestItemDerivationConfig = RequestItemConfig | AuthenticationRequestItemConfig | ConsentRequestItemConfig | CreateAttributeRequestItemConfig | DeleteAttributeRequestItemConfig | FreeTextRequestItemConfig | ProposeAttributeRequestItemConfig | ReadAttributeRequestItemConfig | RegisterAttributeListenerRequestItemConfig | ShareAttributeRequestItemConfig;
116
+ export declare function isGeneralRequestConfig(input: any): input is GeneralRequestConfig;
117
+ export declare function isRequestItemDerivationConfig(input: any): input is RequestItemDerivationConfig;
118
+ export type RequestConfig = GeneralRequestConfig | RequestItemDerivationConfig;
119
+ //# sourceMappingURL=RequestConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestConfig.d.ts","source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AAG,MAAM,EAAE,CAAC;IACvD,gCAAgC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACrD,6BAA6B,CAAC,EAAE,MAAM,EAAE,CAAC;IACzC,4BAA4B,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjD,oCAAoC,CAAC,EAAE,OAAO,CAAC;IAC/C,wCAAwC,CAAC,EAAE,oCAAoC,GAAG,oCAAoC,EAAE,CAAC;IACzH,oCAAoC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzD,oCAAoC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzD,oCAAoC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzD,0CAA0C,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAClE;AAED,MAAM,MAAM,2BAA2B,GACjC,iBAAiB,GACjB,+BAA+B,GAC/B,wBAAwB,GACxB,gCAAgC,GAChC,gCAAgC,GAChC,yBAAyB,GACzB,iCAAiC,GACjC,8BAA8B,GAC9B,0CAA0C,GAC1C,+BAA+B,CAAC;AAEtC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,oBAAoB,CAEhF;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,2BAA2B,CAE9F;AAED,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG,2BAA2B,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isGeneralRequestConfig = isGeneralRequestConfig;
4
+ exports.isRequestItemDerivationConfig = isRequestItemDerivationConfig;
5
+ function isGeneralRequestConfig(input) {
6
+ return !Object.keys(input).some((key) => key.startsWith("content.item."));
7
+ }
8
+ function isRequestItemDerivationConfig(input) {
9
+ return Object.keys(input).some((key) => key.startsWith("content.item."));
10
+ }
11
+ //# sourceMappingURL=RequestConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestConfig.js","sourceRoot":"","sources":["../../../src/modules/decide/RequestConfig.ts"],"names":[],"mappings":";;AA0IA,wDAEC;AAED,sEAEC;AAND,SAAgB,sBAAsB,CAAC,KAAU;IAC7C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC;AAC9E,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAU;IACpD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC;AAC7E,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { IdentityAttribute, RelationshipAttribute } from "@nmshd/content";
2
+ export interface RejectResponseConfig {
3
+ accept: false;
4
+ code?: string;
5
+ message?: string;
6
+ }
7
+ export declare function isRejectResponseConfig(input: any): input is RejectResponseConfig;
8
+ export interface AcceptResponseConfig {
9
+ accept: true;
10
+ }
11
+ export declare function isAcceptResponseConfig(input: any): input is AcceptResponseConfig;
12
+ export declare function isSimpleAcceptResponseConfig(input: any): input is AcceptResponseConfig;
13
+ export interface DeleteAttributeAcceptResponseConfig extends AcceptResponseConfig {
14
+ deletionDate: string;
15
+ }
16
+ export declare function isDeleteAttributeAcceptResponseConfig(object: any): object is DeleteAttributeAcceptResponseConfig;
17
+ export interface FreeTextAcceptResponseConfig extends AcceptResponseConfig {
18
+ freeText: string;
19
+ }
20
+ export declare function isFreeTextAcceptResponseConfig(object: any): object is FreeTextAcceptResponseConfig;
21
+ export interface ProposeAttributeWithNewAttributeAcceptResponseConfig extends AcceptResponseConfig {
22
+ attribute: IdentityAttribute | RelationshipAttribute;
23
+ }
24
+ export declare function isProposeAttributeWithNewAttributeAcceptResponseConfig(object: any): object is ProposeAttributeWithNewAttributeAcceptResponseConfig;
25
+ export interface ReadAttributeWithNewAttributeAcceptResponseConfig extends AcceptResponseConfig {
26
+ newAttribute: IdentityAttribute | RelationshipAttribute;
27
+ }
28
+ export declare function isReadAttributeWithNewAttributeAcceptResponseConfig(object: any): object is ReadAttributeWithNewAttributeAcceptResponseConfig;
29
+ export type AcceptResponseConfigDerivation = AcceptResponseConfig | DeleteAttributeAcceptResponseConfig | FreeTextAcceptResponseConfig | ProposeAttributeWithNewAttributeAcceptResponseConfig | ReadAttributeWithNewAttributeAcceptResponseConfig;
30
+ export type ResponseConfig = AcceptResponseConfigDerivation | RejectResponseConfig;
31
+ //# sourceMappingURL=ResponseConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResponseConfig.d.ts","sourceRoot":"","sources":["../../../src/modules/decide/ResponseConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,oBAAoB,CAEhF;AAED,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,IAAI,CAAC;CAChB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,oBAAoB,CAEhF;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,oBAAoB,CAEtF;AAED,MAAM,WAAW,mCAAoC,SAAQ,oBAAoB;IAC7E,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,qCAAqC,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,mCAAmC,CAEhH;AAED,MAAM,WAAW,4BAA6B,SAAQ,oBAAoB;IACtE,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,4BAA4B,CAElG;AAED,MAAM,WAAW,oDAAqD,SAAQ,oBAAoB;IAC9F,SAAS,EAAE,iBAAiB,GAAG,qBAAqB,CAAC;CACxD;AAED,wBAAgB,sDAAsD,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,oDAAoD,CAElJ;AAED,MAAM,WAAW,iDAAkD,SAAQ,oBAAoB;IAC3F,YAAY,EAAE,iBAAiB,GAAG,qBAAqB,CAAC;CAC3D;AAED,wBAAgB,mDAAmD,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,iDAAiD,CAE5I;AAED,MAAM,MAAM,8BAA8B,GACpC,oBAAoB,GACpB,mCAAmC,GACnC,4BAA4B,GAC5B,oDAAoD,GACpD,iDAAiD,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,8BAA8B,GAAG,oBAAoB,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isRejectResponseConfig = isRejectResponseConfig;
4
+ exports.isAcceptResponseConfig = isAcceptResponseConfig;
5
+ exports.isSimpleAcceptResponseConfig = isSimpleAcceptResponseConfig;
6
+ exports.isDeleteAttributeAcceptResponseConfig = isDeleteAttributeAcceptResponseConfig;
7
+ exports.isFreeTextAcceptResponseConfig = isFreeTextAcceptResponseConfig;
8
+ exports.isProposeAttributeWithNewAttributeAcceptResponseConfig = isProposeAttributeWithNewAttributeAcceptResponseConfig;
9
+ exports.isReadAttributeWithNewAttributeAcceptResponseConfig = isReadAttributeWithNewAttributeAcceptResponseConfig;
10
+ function isRejectResponseConfig(input) {
11
+ return input.accept === false;
12
+ }
13
+ function isAcceptResponseConfig(input) {
14
+ return input.accept === true;
15
+ }
16
+ function isSimpleAcceptResponseConfig(input) {
17
+ return input.accept === true && Object.keys(input).length === 1;
18
+ }
19
+ function isDeleteAttributeAcceptResponseConfig(object) {
20
+ return "deletionDate" in object;
21
+ }
22
+ function isFreeTextAcceptResponseConfig(object) {
23
+ return "freeText" in object;
24
+ }
25
+ function isProposeAttributeWithNewAttributeAcceptResponseConfig(object) {
26
+ return "attribute" in object;
27
+ }
28
+ function isReadAttributeWithNewAttributeAcceptResponseConfig(object) {
29
+ return "newAttribute" in object;
30
+ }
31
+ //# sourceMappingURL=ResponseConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResponseConfig.js","sourceRoot":"","sources":["../../../src/modules/decide/ResponseConfig.ts"],"names":[],"mappings":";;AAQA,wDAEC;AAMD,wDAEC;AAED,oEAEC;AAMD,sFAEC;AAMD,wEAEC;AAMD,wHAEC;AAMD,kHAEC;AA9CD,SAAgB,sBAAsB,CAAC,KAAU;IAC7C,OAAO,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC;AAClC,CAAC;AAMD,SAAgB,sBAAsB,CAAC,KAAU;IAC7C,OAAO,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC;AACjC,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAU;IACnD,OAAO,KAAK,CAAC,MAAM,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AACpE,CAAC;AAMD,SAAgB,qCAAqC,CAAC,MAAW;IAC7D,OAAO,cAAc,IAAI,MAAM,CAAC;AACpC,CAAC;AAMD,SAAgB,8BAA8B,CAAC,MAAW;IACtD,OAAO,UAAU,IAAI,MAAM,CAAC;AAChC,CAAC;AAMD,SAAgB,sDAAsD,CAAC,MAAW;IAC9E,OAAO,WAAW,IAAI,MAAM,CAAC;AACjC,CAAC;AAMD,SAAgB,mDAAmD,CAAC,MAAW;IAC3E,OAAO,cAAc,IAAI,MAAM,CAAC;AACpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./RequestConfig";
2
+ export * from "./ResponseConfig";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/decide/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./RequestConfig"), exports);
18
+ __exportStar(require("./ResponseConfig"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/decide/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC"}
@@ -4,6 +4,7 @@ export interface LocalAttributeShareInfoDTO {
4
4
  notificationReference?: string;
5
5
  peer: string;
6
6
  sourceAttribute?: string;
7
+ thirdPartyAddress?: string;
7
8
  }
8
9
  export declare enum LocalAttributeDeletionStatus {
9
10
  DeletionRequestSent = "DeletionRequestSent",
@@ -1 +1 @@
1
- {"version":3,"file":"LocalAttributeDTO.d.ts","sourceRoot":"","sources":["../../../src/types/consumption/LocalAttributeDTO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB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AY,4BAA4B;IACpC,mBAAmB,wBAAwB;IAC3C,uBAAuB,4BAA4B;IACnD,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CACpC;AAED,MAAM,WAAW,6BAA6B;IAC1C,cAAc,EAAE,4BAA4B,CAAC;IAC7C,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,qBAAqB,GAAG,yBAAyB,CAAC;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,0BAA0B,CAAC;IACvC,YAAY,CAAC,EAAE,6BAA6B,CAAC;IAC7C,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"LocalAttributeDTO.js","sourceRoot":"","sources":["../../../src/types/consumption/LocalAttributeDTO.ts"],"names":[],"mappings":";;;AASA,IAAY,4BAOX;AAPD,WAAY,4BAA4B;IACpC,2EAA2C,CAAA;IAC3C,mFAAmD,CAAA;IACnD,2DAA2B,CAAA;IAC3B,uEAAuC,CAAA;IACvC,+DAA+B,CAAA;IAC/B,iEAAiC,CAAA;AACrC,CAAC,EAPW,4BAA4B,4CAA5B,4BAA4B,QAOvC"}
1
+ {"version":3,"file":"LocalAttributeDTO.js","sourceRoot":"","sources":["../../../src/types/consumption/LocalAttributeDTO.ts"],"names":[],"mappings":";;;AAUA,IAAY,4BAOX;AAPD,WAAY,4BAA4B;IACpC,2EAA2C,CAAA;IAC3C,mFAAmD,CAAA;IACnD,2DAA2B,CAAA;IAC3B,uEAAuC,CAAA;IACvC,+DAA+B,CAAA;IAC/B,iEAAiC,CAAA;AACrC,CAAC,EAPW,4BAA4B,4CAA5B,4BAA4B,QAOvC"}
@@ -28,9 +28,9 @@ declare class RelationshipTemplates {
28
28
  cannotCreateTokenForPeerTemplate(): ApplicationError;
29
29
  cannotCreateQRCodeForPeerTemplate(): ApplicationError;
30
30
  invalidReference(reference: string): ApplicationError;
31
+ requestCannotExpireAfterRelationshipTemplate(): ApplicationError;
31
32
  }
32
33
  declare class Relationships {
33
- wrongRelationshipStatus(relationshipId: string, status: string): ApplicationError;
34
34
  isNeitherRejectedNorRevoked(): ApplicationError;
35
35
  }
36
36
  declare class Messages {
@@ -56,7 +56,7 @@ declare class Attributes {
56
56
  noPreviousVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore(repositoryAttributeId: CoreId | string, peer: CoreAddress | string): ApplicationError;
57
57
  isNotOwnSharedAttribute(attributeId: CoreId | string): ApplicationError;
58
58
  isNotPeerSharedAttribute(attributeId: CoreId | string): ApplicationError;
59
- isNotThirdPartyOwnedRelationshipAttribute(attributeId: CoreId | string): ApplicationError;
59
+ isNotThirdPartyRelationshipAttribute(attributeId: CoreId | string): ApplicationError;
60
60
  hasSuccessor(predecessor: LocalAttribute): ApplicationError;
61
61
  cannotSeparatelyDeleteChildOfComplexAttribute(attributeId: CoreId | string): ApplicationError;
62
62
  setDefaultRepositoryAttributesIsDisabled(): ApplicationError;
@@ -67,6 +67,9 @@ declare class IdentityDeletionProcess {
67
67
  noApprovedIdentityDeletionProcess(): ApplicationError;
68
68
  activeIdentityDeletionProcessAlreadyExists(): ApplicationError;
69
69
  }
70
+ declare class DeciderModule {
71
+ requestConfigDoesNotMatchResponseConfig(): ApplicationError;
72
+ }
70
73
  export declare class RuntimeErrors {
71
74
  static readonly general: General;
72
75
  static readonly serval: Serval;
@@ -79,6 +82,7 @@ export declare class RuntimeErrors {
79
82
  static readonly notifications: Notifications;
80
83
  static readonly attributes: Attributes;
81
84
  static readonly identityDeletionProcess: IdentityDeletionProcess;
85
+ static readonly deciderModule: DeciderModule;
82
86
  }
83
87
  export {};
84
88
  //# sourceMappingURL=RuntimeErrors.d.ts.map