@twin.org/hierarchies-models 0.9.0-next.1

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 (148) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/dist/es/factories/hierarchiesConnectorFactory.js +9 -0
  4. package/dist/es/factories/hierarchiesConnectorFactory.js.map +1 -0
  5. package/dist/es/index.js +37 -0
  6. package/dist/es/index.js.map +1 -0
  7. package/dist/es/models/IAccreditation.js +2 -0
  8. package/dist/es/models/IAccreditation.js.map +1 -0
  9. package/dist/es/models/IFederation.js +2 -0
  10. package/dist/es/models/IFederation.js.map +1 -0
  11. package/dist/es/models/IGovernance.js +2 -0
  12. package/dist/es/models/IGovernance.js.map +1 -0
  13. package/dist/es/models/IHierarchiesComponent.js +2 -0
  14. package/dist/es/models/IHierarchiesComponent.js.map +1 -0
  15. package/dist/es/models/IHierarchiesConnector.js +2 -0
  16. package/dist/es/models/IHierarchiesConnector.js.map +1 -0
  17. package/dist/es/models/IProperty.js +2 -0
  18. package/dist/es/models/IProperty.js.map +1 -0
  19. package/dist/es/models/IPropertyCondition.js +2 -0
  20. package/dist/es/models/IPropertyCondition.js.map +1 -0
  21. package/dist/es/models/IPropertyValue.js +2 -0
  22. package/dist/es/models/IPropertyValue.js.map +1 -0
  23. package/dist/es/models/IRootAuthority.js +4 -0
  24. package/dist/es/models/IRootAuthority.js.map +1 -0
  25. package/dist/es/models/ITimespan.js +4 -0
  26. package/dist/es/models/ITimespan.js.map +1 -0
  27. package/dist/es/models/api/IHierarchiesAccreditationAddRequest.js +2 -0
  28. package/dist/es/models/api/IHierarchiesAccreditationAddRequest.js.map +1 -0
  29. package/dist/es/models/api/IHierarchiesAccreditationGetRequest.js +4 -0
  30. package/dist/es/models/api/IHierarchiesAccreditationGetRequest.js.map +1 -0
  31. package/dist/es/models/api/IHierarchiesAccreditationGetResponse.js +2 -0
  32. package/dist/es/models/api/IHierarchiesAccreditationGetResponse.js.map +1 -0
  33. package/dist/es/models/api/IHierarchiesAccreditationRemoveRequest.js +4 -0
  34. package/dist/es/models/api/IHierarchiesAccreditationRemoveRequest.js.map +1 -0
  35. package/dist/es/models/api/IHierarchiesAccreditationsGetRequest.js +4 -0
  36. package/dist/es/models/api/IHierarchiesAccreditationsGetRequest.js.map +1 -0
  37. package/dist/es/models/api/IHierarchiesAccreditationsGetResponse.js +2 -0
  38. package/dist/es/models/api/IHierarchiesAccreditationsGetResponse.js.map +1 -0
  39. package/dist/es/models/api/IHierarchiesAuthorityAddRequest.js +4 -0
  40. package/dist/es/models/api/IHierarchiesAuthorityAddRequest.js.map +1 -0
  41. package/dist/es/models/api/IHierarchiesAuthorityRemoveRequest.js +4 -0
  42. package/dist/es/models/api/IHierarchiesAuthorityRemoveRequest.js.map +1 -0
  43. package/dist/es/models/api/IHierarchiesFederationCreateRequest.js +4 -0
  44. package/dist/es/models/api/IHierarchiesFederationCreateRequest.js.map +1 -0
  45. package/dist/es/models/api/IHierarchiesFederationGetRequest.js +4 -0
  46. package/dist/es/models/api/IHierarchiesFederationGetRequest.js.map +1 -0
  47. package/dist/es/models/api/IHierarchiesFederationGetResponse.js +2 -0
  48. package/dist/es/models/api/IHierarchiesFederationGetResponse.js.map +1 -0
  49. package/dist/es/models/api/IHierarchiesPropertiesGetRequest.js +4 -0
  50. package/dist/es/models/api/IHierarchiesPropertiesGetRequest.js.map +1 -0
  51. package/dist/es/models/api/IHierarchiesPropertiesGetResponse.js +2 -0
  52. package/dist/es/models/api/IHierarchiesPropertiesGetResponse.js.map +1 -0
  53. package/dist/es/models/api/IHierarchiesPropertiesValidateRequest.js +2 -0
  54. package/dist/es/models/api/IHierarchiesPropertiesValidateRequest.js.map +1 -0
  55. package/dist/es/models/api/IHierarchiesPropertiesValidateResponse.js +4 -0
  56. package/dist/es/models/api/IHierarchiesPropertiesValidateResponse.js.map +1 -0
  57. package/dist/es/models/api/IHierarchiesPropertyAddRequest.js +2 -0
  58. package/dist/es/models/api/IHierarchiesPropertyAddRequest.js.map +1 -0
  59. package/dist/es/models/api/IHierarchiesPropertyGetRequest.js +4 -0
  60. package/dist/es/models/api/IHierarchiesPropertyGetRequest.js.map +1 -0
  61. package/dist/es/models/api/IHierarchiesPropertyGetResponse.js +2 -0
  62. package/dist/es/models/api/IHierarchiesPropertyGetResponse.js.map +1 -0
  63. package/dist/es/models/api/IHierarchiesPropertyRemoveRequest.js +4 -0
  64. package/dist/es/models/api/IHierarchiesPropertyRemoveRequest.js.map +1 -0
  65. package/dist/es/models/api/IHierarchiesPropertyValidateRequest.js +2 -0
  66. package/dist/es/models/api/IHierarchiesPropertyValidateRequest.js.map +1 -0
  67. package/dist/es/models/api/IHierarchiesPropertyValidateResponse.js +4 -0
  68. package/dist/es/models/api/IHierarchiesPropertyValidateResponse.js.map +1 -0
  69. package/dist/es/models/propertyConstraintType.js +29 -0
  70. package/dist/es/models/propertyConstraintType.js.map +1 -0
  71. package/dist/es/models/propertyType.js +17 -0
  72. package/dist/es/models/propertyType.js.map +1 -0
  73. package/dist/types/factories/hierarchiesConnectorFactory.d.ts +6 -0
  74. package/dist/types/index.d.ts +34 -0
  75. package/dist/types/models/IAccreditation.d.ts +18 -0
  76. package/dist/types/models/IFederation.d.ts +24 -0
  77. package/dist/types/models/IGovernance.d.ts +28 -0
  78. package/dist/types/models/IHierarchiesComponent.d.ts +160 -0
  79. package/dist/types/models/IHierarchiesConnector.d.ts +159 -0
  80. package/dist/types/models/IProperty.d.ts +24 -0
  81. package/dist/types/models/IPropertyCondition.d.ts +19 -0
  82. package/dist/types/models/IPropertyValue.d.ts +14 -0
  83. package/dist/types/models/IRootAuthority.d.ts +13 -0
  84. package/dist/types/models/ITimespan.d.ts +13 -0
  85. package/dist/types/models/api/IHierarchiesAccreditationAddRequest.d.ts +19 -0
  86. package/dist/types/models/api/IHierarchiesAccreditationGetRequest.d.ts +22 -0
  87. package/dist/types/models/api/IHierarchiesAccreditationGetResponse.d.ts +10 -0
  88. package/dist/types/models/api/IHierarchiesAccreditationRemoveRequest.d.ts +22 -0
  89. package/dist/types/models/api/IHierarchiesAccreditationsGetRequest.d.ts +18 -0
  90. package/dist/types/models/api/IHierarchiesAccreditationsGetResponse.d.ts +10 -0
  91. package/dist/types/models/api/IHierarchiesAuthorityAddRequest.d.ts +23 -0
  92. package/dist/types/models/api/IHierarchiesAuthorityRemoveRequest.d.ts +18 -0
  93. package/dist/types/models/api/IHierarchiesFederationCreateRequest.d.ts +18 -0
  94. package/dist/types/models/api/IHierarchiesFederationGetRequest.d.ts +23 -0
  95. package/dist/types/models/api/IHierarchiesFederationGetResponse.d.ts +10 -0
  96. package/dist/types/models/api/IHierarchiesPropertiesGetRequest.d.ts +23 -0
  97. package/dist/types/models/api/IHierarchiesPropertiesGetResponse.d.ts +10 -0
  98. package/dist/types/models/api/IHierarchiesPropertiesValidateRequest.d.ts +30 -0
  99. package/dist/types/models/api/IHierarchiesPropertiesValidateResponse.d.ts +14 -0
  100. package/dist/types/models/api/IHierarchiesPropertyAddRequest.d.ts +19 -0
  101. package/dist/types/models/api/IHierarchiesPropertyGetRequest.d.ts +18 -0
  102. package/dist/types/models/api/IHierarchiesPropertyGetResponse.d.ts +10 -0
  103. package/dist/types/models/api/IHierarchiesPropertyRemoveRequest.d.ts +18 -0
  104. package/dist/types/models/api/IHierarchiesPropertyValidateRequest.d.ts +32 -0
  105. package/dist/types/models/api/IHierarchiesPropertyValidateResponse.d.ts +14 -0
  106. package/dist/types/models/propertyConstraintType.d.ts +29 -0
  107. package/dist/types/models/propertyType.d.ts +17 -0
  108. package/docs/changelog.md +11 -0
  109. package/docs/examples.md +74 -0
  110. package/docs/reference/index.md +46 -0
  111. package/docs/reference/interfaces/IAccreditation.md +27 -0
  112. package/docs/reference/interfaces/IFederation.md +36 -0
  113. package/docs/reference/interfaces/IGovernance.md +44 -0
  114. package/docs/reference/interfaces/IHierarchiesAccreditationAddRequest.md +25 -0
  115. package/docs/reference/interfaces/IHierarchiesAccreditationGetRequest.md +29 -0
  116. package/docs/reference/interfaces/IHierarchiesAccreditationGetResponse.md +11 -0
  117. package/docs/reference/interfaces/IHierarchiesAccreditationRemoveRequest.md +29 -0
  118. package/docs/reference/interfaces/IHierarchiesAccreditationsGetRequest.md +23 -0
  119. package/docs/reference/interfaces/IHierarchiesAccreditationsGetResponse.md +11 -0
  120. package/docs/reference/interfaces/IHierarchiesAuthorityAddRequest.md +31 -0
  121. package/docs/reference/interfaces/IHierarchiesAuthorityRemoveRequest.md +23 -0
  122. package/docs/reference/interfaces/IHierarchiesComponent.md +613 -0
  123. package/docs/reference/interfaces/IHierarchiesConnector.md +607 -0
  124. package/docs/reference/interfaces/IHierarchiesFederationCreateRequest.md +23 -0
  125. package/docs/reference/interfaces/IHierarchiesFederationGetRequest.md +31 -0
  126. package/docs/reference/interfaces/IHierarchiesFederationGetResponse.md +11 -0
  127. package/docs/reference/interfaces/IHierarchiesPropertiesGetRequest.md +31 -0
  128. package/docs/reference/interfaces/IHierarchiesPropertiesGetResponse.md +11 -0
  129. package/docs/reference/interfaces/IHierarchiesPropertiesValidateRequest.md +41 -0
  130. package/docs/reference/interfaces/IHierarchiesPropertiesValidateResponse.md +17 -0
  131. package/docs/reference/interfaces/IHierarchiesPropertyAddRequest.md +25 -0
  132. package/docs/reference/interfaces/IHierarchiesPropertyGetRequest.md +23 -0
  133. package/docs/reference/interfaces/IHierarchiesPropertyGetResponse.md +11 -0
  134. package/docs/reference/interfaces/IHierarchiesPropertyRemoveRequest.md +23 -0
  135. package/docs/reference/interfaces/IHierarchiesPropertyValidateRequest.md +43 -0
  136. package/docs/reference/interfaces/IHierarchiesPropertyValidateResponse.md +17 -0
  137. package/docs/reference/interfaces/IProperty.md +35 -0
  138. package/docs/reference/interfaces/IPropertyCondition.md +27 -0
  139. package/docs/reference/interfaces/IPropertyValue.md +19 -0
  140. package/docs/reference/interfaces/IRootAuthority.md +19 -0
  141. package/docs/reference/interfaces/ITimespan.md +19 -0
  142. package/docs/reference/type-aliases/PropertyConstraintType.md +5 -0
  143. package/docs/reference/type-aliases/PropertyType.md +5 -0
  144. package/docs/reference/variables/HierarchiesConnectorFactory.md +5 -0
  145. package/docs/reference/variables/PropertyConstraintType.md +37 -0
  146. package/docs/reference/variables/PropertyType.md +19 -0
  147. package/locales/en.json +3 -0
  148. package/package.json +53 -0
@@ -0,0 +1,607 @@
1
+ # Interface: IHierarchiesConnector
2
+
3
+ Interface describing a hierarchies connector.
4
+
5
+ ## Extends
6
+
7
+ - `IComponent`
8
+
9
+ ## Methods
10
+
11
+ ### federationCreate() {#federationcreate}
12
+
13
+ > **federationCreate**(`controllerIdentity`, `rootAuthorities?`): `Promise`\<`string`\>
14
+
15
+ Creates a new federation.
16
+
17
+ #### Parameters
18
+
19
+ ##### controllerIdentity
20
+
21
+ `string`
22
+
23
+ The identity of the controller creating the federation.
24
+
25
+ ##### rootAuthorities?
26
+
27
+ `string`[]
28
+
29
+ The root authorities to be included in the federation.
30
+
31
+ #### Returns
32
+
33
+ `Promise`\<`string`\>
34
+
35
+ The ID of the created federation.
36
+
37
+ ***
38
+
39
+ ### federationGet() {#federationget}
40
+
41
+ > **federationGet**(`federationId`, `options?`): `Promise`\<[`IFederation`](IFederation.md)\>
42
+
43
+ Retrieves a federation by its ID.
44
+
45
+ #### Parameters
46
+
47
+ ##### federationId
48
+
49
+ `string`
50
+
51
+ The ID of the federation to retrieve.
52
+
53
+ ##### options?
54
+
55
+ Options for retrieving the federation.
56
+
57
+ ###### includeRevokedProperties?
58
+
59
+ `boolean`
60
+
61
+ Whether to include revoked properties in the retrieved federation, defaults to false.
62
+
63
+ #### Returns
64
+
65
+ `Promise`\<[`IFederation`](IFederation.md)\>
66
+
67
+ The federation with the specified ID.
68
+
69
+ ***
70
+
71
+ ### authorityAdd() {#authorityadd}
72
+
73
+ > **authorityAdd**(`controllerIdentity`, `federationId`, `accountId`): `Promise`\<`string`\>
74
+
75
+ Adds a new authority to an existing federation.
76
+
77
+ #### Parameters
78
+
79
+ ##### controllerIdentity
80
+
81
+ `string`
82
+
83
+ The identity of the controller adding the authority.
84
+
85
+ ##### federationId
86
+
87
+ `string`
88
+
89
+ The ID of the federation to which the authority will be added.
90
+
91
+ ##### accountId
92
+
93
+ `string`
94
+
95
+ The account ID of the authority to be added.
96
+
97
+ #### Returns
98
+
99
+ `Promise`\<`string`\>
100
+
101
+ The id of the authority.
102
+
103
+ ***
104
+
105
+ ### authorityRemove() {#authorityremove}
106
+
107
+ > **authorityRemove**(`controllerIdentity`, `federationId`, `accountId`): `Promise`\<`void`\>
108
+
109
+ Removes an authority from an existing federation.
110
+
111
+ #### Parameters
112
+
113
+ ##### controllerIdentity
114
+
115
+ `string`
116
+
117
+ The identity of the controller removing the authority.
118
+
119
+ ##### federationId
120
+
121
+ `string`
122
+
123
+ The ID of the federation from which the authority will be removed.
124
+
125
+ ##### accountId
126
+
127
+ `string`
128
+
129
+ The account ID of the authority to be removed.
130
+
131
+ #### Returns
132
+
133
+ `Promise`\<`void`\>
134
+
135
+ A promise that resolves when the authority has been removed.
136
+
137
+ ***
138
+
139
+ ### propertyAdd() {#propertyadd}
140
+
141
+ > **propertyAdd**(`controllerIdentity`, `federationId`, `property`): `Promise`\<`void`\>
142
+
143
+ Adds a new property to an existing federation.
144
+
145
+ #### Parameters
146
+
147
+ ##### controllerIdentity
148
+
149
+ `string`
150
+
151
+ The identity of the controller adding the property.
152
+
153
+ ##### federationId
154
+
155
+ `string`
156
+
157
+ The ID of the federation to which the property will be added.
158
+
159
+ ##### property
160
+
161
+ [`IProperty`](IProperty.md)
162
+
163
+ The property to be added.
164
+
165
+ #### Returns
166
+
167
+ `Promise`\<`void`\>
168
+
169
+ A promise that resolves when the property has been added.
170
+
171
+ ***
172
+
173
+ ### propertyRemove() {#propertyremove}
174
+
175
+ > **propertyRemove**(`controllerIdentity`, `federationId`, `propertyName`): `Promise`\<`void`\>
176
+
177
+ Removes a property from an existing federation.
178
+
179
+ #### Parameters
180
+
181
+ ##### controllerIdentity
182
+
183
+ `string`
184
+
185
+ The identity of the controller removing the property.
186
+
187
+ ##### federationId
188
+
189
+ `string`
190
+
191
+ The ID of the federation from which the property will be removed.
192
+
193
+ ##### propertyName
194
+
195
+ `string`
196
+
197
+ The name of the property to be removed.
198
+
199
+ #### Returns
200
+
201
+ `Promise`\<`void`\>
202
+
203
+ A promise that resolves when the property has been removed.
204
+
205
+ ***
206
+
207
+ ### propertyGet() {#propertyget}
208
+
209
+ > **propertyGet**(`federationId`, `propertyName`): `Promise`\<[`IProperty`](IProperty.md)\>
210
+
211
+ Gets a property from an existing federation.
212
+
213
+ #### Parameters
214
+
215
+ ##### federationId
216
+
217
+ `string`
218
+
219
+ The ID of the federation from which the property will be retrieved.
220
+
221
+ ##### propertyName
222
+
223
+ `string`
224
+
225
+ The name of the property to be retrieved.
226
+
227
+ #### Returns
228
+
229
+ `Promise`\<[`IProperty`](IProperty.md)\>
230
+
231
+ A promise that resolves with the property.
232
+
233
+ ***
234
+
235
+ ### propertiesGet() {#propertiesget}
236
+
237
+ > **propertiesGet**(`federationId`, `options?`): `Promise`\<[`IProperty`](IProperty.md)[]\>
238
+
239
+ Gets all properties from an existing federation.
240
+
241
+ #### Parameters
242
+
243
+ ##### federationId
244
+
245
+ `string`
246
+
247
+ The ID of the federation from which the properties will be retrieved.
248
+
249
+ ##### options?
250
+
251
+ Options for retrieving the properties.
252
+
253
+ ###### includeRevokedProperties?
254
+
255
+ `boolean`
256
+
257
+ Whether to include revoked properties in the retrieved properties, defaults to false.
258
+
259
+ #### Returns
260
+
261
+ `Promise`\<[`IProperty`](IProperty.md)[]\>
262
+
263
+ A promise that resolves with the properties.
264
+
265
+ ***
266
+
267
+ ### propertyValidate() {#propertyvalidate}
268
+
269
+ > **propertyValidate**(`federationId`, `accreditedById`, `propertyName`, `propertyValue`): `Promise`\<`boolean`\>
270
+
271
+ Validates property for an existing federation.
272
+
273
+ #### Parameters
274
+
275
+ ##### federationId
276
+
277
+ `string`
278
+
279
+ The ID of the federation for which the property will be validated.
280
+
281
+ ##### accreditedById
282
+
283
+ `string`
284
+
285
+ The ID of the entity that granted the accreditation.
286
+
287
+ ##### propertyName
288
+
289
+ `string`
290
+
291
+ The name of the property to be validated.
292
+
293
+ ##### propertyValue
294
+
295
+ [`IPropertyValue`](IPropertyValue.md)
296
+
297
+ The value of the property to be validated.
298
+
299
+ #### Returns
300
+
301
+ `Promise`\<`boolean`\>
302
+
303
+ A promise that resolves with a boolean indicating whether the property is valid.
304
+
305
+ ***
306
+
307
+ ### propertiesValidate() {#propertiesvalidate}
308
+
309
+ > **propertiesValidate**(`federationId`, `accreditedById`, `propertiesToValidate`): `Promise`\<`boolean`\>
310
+
311
+ Validates properties for an existing federation.
312
+
313
+ #### Parameters
314
+
315
+ ##### federationId
316
+
317
+ `string`
318
+
319
+ The ID of the federation for which the properties will be validated.
320
+
321
+ ##### accreditedById
322
+
323
+ `string`
324
+
325
+ The ID of the entity that granted the accreditations.
326
+
327
+ ##### propertiesToValidate
328
+
329
+ The properties to be validated.
330
+
331
+ #### Returns
332
+
333
+ `Promise`\<`boolean`\>
334
+
335
+ A promise that resolves with a boolean indicating whether the properties are valid.
336
+
337
+ ***
338
+
339
+ ### accreditationToAttestAdd() {#accreditationtoattestadd}
340
+
341
+ > **accreditationToAttestAdd**(`controllerIdentity`, `federationId`, `accreditation`): `Promise`\<`string`\>
342
+
343
+ Adds a new accreditation to attest to an existing federation.
344
+
345
+ #### Parameters
346
+
347
+ ##### controllerIdentity
348
+
349
+ `string`
350
+
351
+ The identity of the controller adding the accreditation.
352
+
353
+ ##### federationId
354
+
355
+ `string`
356
+
357
+ The ID of the federation to which the accreditation will be added.
358
+
359
+ ##### accreditation
360
+
361
+ `Omit`\<[`IAccreditation`](IAccreditation.md), `"permissionId"`\>
362
+
363
+ The accreditation to be added.
364
+
365
+ #### Returns
366
+
367
+ `Promise`\<`string`\>
368
+
369
+ The ID of the added accreditation.
370
+
371
+ ***
372
+
373
+ ### accreditationToAttestRemove() {#accreditationtoattestremove}
374
+
375
+ > **accreditationToAttestRemove**(`controllerIdentity`, `federationId`, `accreditedById`, `permissionId`): `Promise`\<`void`\>
376
+
377
+ Removes an accreditation to attest from an existing federation.
378
+
379
+ #### Parameters
380
+
381
+ ##### controllerIdentity
382
+
383
+ `string`
384
+
385
+ The identity of the controller removing the accreditation.
386
+
387
+ ##### federationId
388
+
389
+ `string`
390
+
391
+ The ID of the federation from which the accreditation will be removed.
392
+
393
+ ##### accreditedById
394
+
395
+ `string`
396
+
397
+ The ID of the entity that granted the accreditation to be removed.
398
+
399
+ ##### permissionId
400
+
401
+ `string`
402
+
403
+ The ID of the accreditation to be removed.
404
+
405
+ #### Returns
406
+
407
+ `Promise`\<`void`\>
408
+
409
+ A promise that resolves when the accreditation has been removed.
410
+
411
+ ***
412
+
413
+ ### accreditationToAttestGet() {#accreditationtoattestget}
414
+
415
+ > **accreditationToAttestGet**(`federationId`, `accreditedById`, `permissionId`): `Promise`\<[`IAccreditation`](IAccreditation.md)\>
416
+
417
+ Get accreditation to attest to an existing federation.
418
+
419
+ #### Parameters
420
+
421
+ ##### federationId
422
+
423
+ `string`
424
+
425
+ The ID of the federation for which to get the accreditation.
426
+
427
+ ##### accreditedById
428
+
429
+ `string`
430
+
431
+ The ID of the entity that granted the accreditation.
432
+
433
+ ##### permissionId
434
+
435
+ `string`
436
+
437
+ The ID of the accreditation to be retrieved.
438
+
439
+ #### Returns
440
+
441
+ `Promise`\<[`IAccreditation`](IAccreditation.md)\>
442
+
443
+ A promise that resolves with the accreditation.
444
+
445
+ ***
446
+
447
+ ### accreditationsToAttestGet() {#accreditationstoattestget}
448
+
449
+ > **accreditationsToAttestGet**(`federationId`, `accreditedById`): `Promise`\<[`IAccreditation`](IAccreditation.md)[]\>
450
+
451
+ Gets accreditations to attest to an existing federation.
452
+
453
+ #### Parameters
454
+
455
+ ##### federationId
456
+
457
+ `string`
458
+
459
+ The ID of the federation for which to get the accreditations.
460
+
461
+ ##### accreditedById
462
+
463
+ `string`
464
+
465
+ The ID of the entity that granted the accreditations.
466
+
467
+ #### Returns
468
+
469
+ `Promise`\<[`IAccreditation`](IAccreditation.md)[]\>
470
+
471
+ A promise that resolves with the accreditations.
472
+
473
+ ***
474
+
475
+ ### accreditationToAccreditAdd() {#accreditationtoaccreditadd}
476
+
477
+ > **accreditationToAccreditAdd**(`controllerIdentity`, `federationId`, `accreditation`): `Promise`\<`string`\>
478
+
479
+ Adds a new accreditation to accredit to an existing federation.
480
+
481
+ #### Parameters
482
+
483
+ ##### controllerIdentity
484
+
485
+ `string`
486
+
487
+ The identity of the controller adding the accreditation.
488
+
489
+ ##### federationId
490
+
491
+ `string`
492
+
493
+ The ID of the federation to which the accreditation will be added.
494
+
495
+ ##### accreditation
496
+
497
+ `Omit`\<[`IAccreditation`](IAccreditation.md), `"permissionId"`\>
498
+
499
+ The accreditation to be added.
500
+
501
+ #### Returns
502
+
503
+ `Promise`\<`string`\>
504
+
505
+ The ID of the added accreditation.
506
+
507
+ ***
508
+
509
+ ### accreditationToAccreditRemove() {#accreditationtoaccreditremove}
510
+
511
+ > **accreditationToAccreditRemove**(`controllerIdentity`, `federationId`, `accreditedById`, `permissionId`): `Promise`\<`void`\>
512
+
513
+ Removes an accreditation to accredit from an existing federation.
514
+
515
+ #### Parameters
516
+
517
+ ##### controllerIdentity
518
+
519
+ `string`
520
+
521
+ The identity of the controller removing the accreditation.
522
+
523
+ ##### federationId
524
+
525
+ `string`
526
+
527
+ The ID of the federation from which the accreditation will be removed.
528
+
529
+ ##### accreditedById
530
+
531
+ `string`
532
+
533
+ The ID of the entity that granted the accreditation to be removed.
534
+
535
+ ##### permissionId
536
+
537
+ `string`
538
+
539
+ The ID of the accreditation to be removed.
540
+
541
+ #### Returns
542
+
543
+ `Promise`\<`void`\>
544
+
545
+ A promise that resolves when the accreditation has been removed.
546
+
547
+ ***
548
+
549
+ ### accreditationToAccreditGet() {#accreditationtoaccreditget}
550
+
551
+ > **accreditationToAccreditGet**(`federationId`, `accreditedById`, `permissionId`): `Promise`\<[`IAccreditation`](IAccreditation.md)\>
552
+
553
+ Get accreditation to accredit to an existing federation.
554
+
555
+ #### Parameters
556
+
557
+ ##### federationId
558
+
559
+ `string`
560
+
561
+ The ID of the federation for which to get the accreditation.
562
+
563
+ ##### accreditedById
564
+
565
+ `string`
566
+
567
+ The ID of the entity that granted the accreditation.
568
+
569
+ ##### permissionId
570
+
571
+ `string`
572
+
573
+ The ID of the accreditation to be retrieved.
574
+
575
+ #### Returns
576
+
577
+ `Promise`\<[`IAccreditation`](IAccreditation.md)\>
578
+
579
+ A promise that resolves with the accreditation.
580
+
581
+ ***
582
+
583
+ ### accreditationsToAccreditGet() {#accreditationstoaccreditget}
584
+
585
+ > **accreditationsToAccreditGet**(`federationId`, `accreditedById`): `Promise`\<[`IAccreditation`](IAccreditation.md)[]\>
586
+
587
+ Gets accreditations to accredit to an existing federation.
588
+
589
+ #### Parameters
590
+
591
+ ##### federationId
592
+
593
+ `string`
594
+
595
+ The ID of the federation for which to get the accreditations.
596
+
597
+ ##### accreditedById
598
+
599
+ `string`
600
+
601
+ The ID of the entity that granted the accreditations.
602
+
603
+ #### Returns
604
+
605
+ `Promise`\<[`IAccreditation`](IAccreditation.md)[]\>
606
+
607
+ A promise that resolves with the accreditations.
@@ -0,0 +1,23 @@
1
+ # Interface: IHierarchiesFederationCreateRequest
2
+
3
+ Request to create a federation.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: `object`
10
+
11
+ The request data.
12
+
13
+ #### rootAuthorities?
14
+
15
+ > `optional` **rootAuthorities?**: `string`[]
16
+
17
+ The root authorities to be included in the federation.
18
+
19
+ #### namespace?
20
+
21
+ > `optional` **namespace?**: `string`
22
+
23
+ The namespace of the connector to use for the federation, defaults to component configured namespace.
@@ -0,0 +1,31 @@
1
+ # Interface: IHierarchiesFederationGetRequest
2
+
3
+ Request to get a federation.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The request path parameters.
12
+
13
+ #### federationId
14
+
15
+ > **federationId**: `string`
16
+
17
+ The id of the federation to get.
18
+
19
+ ***
20
+
21
+ ### query? {#query}
22
+
23
+ > `optional` **query?**: `object`
24
+
25
+ The request query parameters.
26
+
27
+ #### includeRevokedProperties?
28
+
29
+ > `optional` **includeRevokedProperties?**: `string`
30
+
31
+ Whether to include revoked properties in the retrieved federation, defaults to false.
@@ -0,0 +1,11 @@
1
+ # Interface: IHierarchiesFederationGetResponse
2
+
3
+ Response for getting a federation.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: [`IFederation`](IFederation.md)
10
+
11
+ The response body.
@@ -0,0 +1,31 @@
1
+ # Interface: IHierarchiesPropertiesGetRequest
2
+
3
+ Request to get federation properties.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The request path parameters.
12
+
13
+ #### federationId
14
+
15
+ > **federationId**: `string`
16
+
17
+ The id of the federation to get.
18
+
19
+ ***
20
+
21
+ ### query? {#query}
22
+
23
+ > `optional` **query?**: `object`
24
+
25
+ The request query parameters.
26
+
27
+ #### includeRevokedProperties?
28
+
29
+ > `optional` **includeRevokedProperties?**: `string`
30
+
31
+ Whether to include revoked properties in the retrieved federation, defaults to false.
@@ -0,0 +1,11 @@
1
+ # Interface: IHierarchiesPropertiesGetResponse
2
+
3
+ Response for getting properties.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: [`IProperty`](IProperty.md)[]
10
+
11
+ The response body.