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