@twin.org/federated-catalogue-models 0.0.1-next.10
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 +21 -0
- package/dist/cjs/index.cjs +1212 -0
- package/dist/esm/index.mjs +1206 -0
- package/dist/types/dataTypes/federatedCatalogueDataTypes.d.ts +9 -0
- package/dist/types/index.d.ts +42 -0
- package/dist/types/models/ICatalogueBase.d.ts +25 -0
- package/dist/types/models/ICatalogueEntry.d.ts +8 -0
- package/dist/types/models/IComplianceCredential.d.ts +37 -0
- package/dist/types/models/IComplianceEvidence.d.ts +26 -0
- package/dist/types/models/IComplianceVerificationResult.d.ts +19 -0
- package/dist/types/models/ICredential.d.ts +21 -0
- package/dist/types/models/IFederatedCatalogueComponent.d.ts +89 -0
- package/dist/types/models/IVerificationResult.d.ts +13 -0
- package/dist/types/models/api/ICatalogueEntryGetRequest.d.ts +15 -0
- package/dist/types/models/api/ICompliancePresentationRequest.d.ts +9 -0
- package/dist/types/models/api/IDataResourceGetResponse.d.ts +10 -0
- package/dist/types/models/api/IDataResourceListRequest.d.ts +27 -0
- package/dist/types/models/api/IDataResourceListResponse.d.ts +10 -0
- package/dist/types/models/api/IDataSpaceConnectorGetResponse.d.ts +10 -0
- package/dist/types/models/api/IDataSpaceConnectorListRequest.d.ts +27 -0
- package/dist/types/models/api/IDataSpaceConnectorListResponse.d.ts +10 -0
- package/dist/types/models/api/IFederatedCatalogueGetRequest.d.ts +12 -0
- package/dist/types/models/api/IParticipantGetResponse.d.ts +10 -0
- package/dist/types/models/api/IParticipantListRequest.d.ts +31 -0
- package/dist/types/models/api/IParticipantListResponse.d.ts +10 -0
- package/dist/types/models/api/IServiceOfferingGetResponse.d.ts +10 -0
- package/dist/types/models/api/IServiceOfferingListRequest.d.ts +27 -0
- package/dist/types/models/api/IServiceOfferingListResponse.d.ts +10 -0
- package/dist/types/models/data-resource/IDataResourceCredential.d.ts +11 -0
- package/dist/types/models/data-resource/IDataResourceEntry.d.ts +29 -0
- package/dist/types/models/data-resource/IDataResourceList.d.ts +25 -0
- package/dist/types/models/data-space-connector/IDataSpaceConnector.d.ts +77 -0
- package/dist/types/models/data-space-connector/IDataSpaceConnectorCredential.d.ts +11 -0
- package/dist/types/models/data-space-connector/IDataSpaceConnectorEntry.d.ts +18 -0
- package/dist/types/models/data-space-connector/IDataSpaceConnectorList.d.ts +25 -0
- package/dist/types/models/federatedCatalogueContextInstances.d.ts +14 -0
- package/dist/types/models/federatedCatalogueContextType.d.ts +11 -0
- package/dist/types/models/federatedCatalogueContexts.d.ts +13 -0
- package/dist/types/models/federatedCatalogueEntryType.d.ts +7 -0
- package/dist/types/models/federatedCatalogueTypes.d.ts +53 -0
- package/dist/types/models/participant/IParticipantCredential.d.ts +11 -0
- package/dist/types/models/participant/IParticipantEntry.d.ts +12 -0
- package/dist/types/models/participant/IParticipantList.d.ts +25 -0
- package/dist/types/models/service-offering/IServiceOfferingCredential.d.ts +11 -0
- package/dist/types/models/service-offering/IServiceOfferingEntry.d.ts +25 -0
- package/dist/types/models/service-offering/IServiceOfferingList.d.ts +25 -0
- package/dist/types/models/verificationFailureReasons.d.ts +53 -0
- package/docs/changelog.md +73 -0
- package/docs/examples.md +1 -0
- package/docs/reference/classes/FederatedCatalogueContextInstances.md +29 -0
- package/docs/reference/classes/FederatedCatalogueDataTypes.md +25 -0
- package/docs/reference/index.md +58 -0
- package/docs/reference/interfaces/ICatalogueEntryGetRequest.md +37 -0
- package/docs/reference/interfaces/IComplianceCredential.md +103 -0
- package/docs/reference/interfaces/IComplianceEvidence.md +45 -0
- package/docs/reference/interfaces/ICompliancePresentationRequest.md +11 -0
- package/docs/reference/interfaces/IComplianceVerificationResult.md +55 -0
- package/docs/reference/interfaces/ICredential.md +51 -0
- package/docs/reference/interfaces/IDataResourceCredential.md +43 -0
- package/docs/reference/interfaces/IDataResourceEntry.md +131 -0
- package/docs/reference/interfaces/IDataResourceGetResponse.md +11 -0
- package/docs/reference/interfaces/IDataResourceList.md +35 -0
- package/docs/reference/interfaces/IDataResourceListRequest.md +55 -0
- package/docs/reference/interfaces/IDataResourceListResponse.md +11 -0
- package/docs/reference/interfaces/IDataSpaceConnector.md +130 -0
- package/docs/reference/interfaces/IDataSpaceConnectorCredential.md +43 -0
- package/docs/reference/interfaces/IDataSpaceConnectorEntry.md +224 -0
- package/docs/reference/interfaces/IDataSpaceConnectorGetResponse.md +11 -0
- package/docs/reference/interfaces/IDataSpaceConnectorList.md +35 -0
- package/docs/reference/interfaces/IDataSpaceConnectorListRequest.md +55 -0
- package/docs/reference/interfaces/IDataSpaceConnectorListResponse.md +11 -0
- package/docs/reference/interfaces/IFederatedCatalogueComponent.md +313 -0
- package/docs/reference/interfaces/IFederatedCatalogueGetRequest.md +23 -0
- package/docs/reference/interfaces/IParticipantCredential.md +43 -0
- package/docs/reference/interfaces/IParticipantEntry.md +83 -0
- package/docs/reference/interfaces/IParticipantGetResponse.md +11 -0
- package/docs/reference/interfaces/IParticipantList.md +35 -0
- package/docs/reference/interfaces/IParticipantListRequest.md +61 -0
- package/docs/reference/interfaces/IParticipantListResponse.md +11 -0
- package/docs/reference/interfaces/IServiceOfferingCredential.md +43 -0
- package/docs/reference/interfaces/IServiceOfferingEntry.md +119 -0
- package/docs/reference/interfaces/IServiceOfferingGetResponse.md +11 -0
- package/docs/reference/interfaces/IServiceOfferingList.md +35 -0
- package/docs/reference/interfaces/IServiceOfferingListRequest.md +55 -0
- package/docs/reference/interfaces/IServiceOfferingListResponse.md +11 -0
- package/docs/reference/interfaces/IVerificationResult.md +23 -0
- package/docs/reference/type-aliases/FederatedCatalogueContextType.md +5 -0
- package/docs/reference/type-aliases/FederatedCatalogueContexts.md +5 -0
- package/docs/reference/type-aliases/FederatedCatalogueEntryType.md +5 -0
- package/docs/reference/type-aliases/FederatedCatalogueTypes.md +5 -0
- package/docs/reference/type-aliases/ICatalogueEntry.md +5 -0
- package/docs/reference/type-aliases/VerificationFailureReasons.md +5 -0
- package/docs/reference/variables/FederatedCatalogueContexts.md +13 -0
- package/docs/reference/variables/FederatedCatalogueTypes.md +73 -0
- package/docs/reference/variables/VerificationFailureReasons.md +73 -0
- package/package.json +45 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Interface: IDataSpaceConnectorCredential
|
|
2
|
+
|
|
3
|
+
Participant Credential.
|
|
4
|
+
|
|
5
|
+
## Extends
|
|
6
|
+
|
|
7
|
+
- [`ICredential`](ICredential.md)
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### id
|
|
12
|
+
|
|
13
|
+
> **id**: `string`
|
|
14
|
+
|
|
15
|
+
The Id of the credential, it is mandatory.
|
|
16
|
+
|
|
17
|
+
#### Inherited from
|
|
18
|
+
|
|
19
|
+
[`ICredential`](ICredential.md).[`id`](ICredential.md#id)
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### issuer
|
|
24
|
+
|
|
25
|
+
> **issuer**: `string`
|
|
26
|
+
|
|
27
|
+
The issuer of the credential, it is mandatory.
|
|
28
|
+
|
|
29
|
+
#### Inherited from
|
|
30
|
+
|
|
31
|
+
[`ICredential`](ICredential.md).[`issuer`](ICredential.md#issuer)
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### credentialSubject
|
|
36
|
+
|
|
37
|
+
> **credentialSubject**: [`IDataSpaceConnector`](IDataSpaceConnector.md)
|
|
38
|
+
|
|
39
|
+
The Credential Subject
|
|
40
|
+
|
|
41
|
+
#### Overrides
|
|
42
|
+
|
|
43
|
+
[`ICredential`](ICredential.md).[`credentialSubject`](ICredential.md#credentialsubject)
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# Interface: IDataSpaceConnectorEntry
|
|
2
|
+
|
|
3
|
+
Interface describing a participant.
|
|
4
|
+
|
|
5
|
+
## Extends
|
|
6
|
+
|
|
7
|
+
- [`IDataSpaceConnector`](IDataSpaceConnector.md).`ICatalogueBase`
|
|
8
|
+
|
|
9
|
+
## Indexable
|
|
10
|
+
|
|
11
|
+
\[`key`: `string`\]: `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `string`[] \| `IJsonLdNodeObject` \| `IJsonLdGraphObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdListObject` \| `IJsonLdSetObject` \| `IJsonLdNodePrimitive`[] \| `IJsonLdLanguageMap` \| `IJsonLdIndexMap` \| `IJsonLdNodeObject`[] \| `IJsonLdIdMap` \| `IJsonLdTypeMap` \| `IJsonLdContextDefinition` \| `IJsonLdContextDefinitionElement`[] \| `IJsonLdJsonObject` \| `IJsonLdJsonObject`[] \| \{[`key`: `string`]: `string`; \}
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### issuer
|
|
16
|
+
|
|
17
|
+
> **issuer**: `string`
|
|
18
|
+
|
|
19
|
+
The trusted issuer of the compliance credential
|
|
20
|
+
|
|
21
|
+
#### Inherited from
|
|
22
|
+
|
|
23
|
+
`ICatalogueBase.issuer`
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### validFrom
|
|
28
|
+
|
|
29
|
+
> **validFrom**: `string`
|
|
30
|
+
|
|
31
|
+
Valid from (as per W3C VC Data Model v2)
|
|
32
|
+
|
|
33
|
+
#### Inherited from
|
|
34
|
+
|
|
35
|
+
`ICatalogueBase.validFrom`
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### validUntil
|
|
40
|
+
|
|
41
|
+
> **validUntil**: `string`
|
|
42
|
+
|
|
43
|
+
Valid until (as per W3C VC Data Model v2)
|
|
44
|
+
|
|
45
|
+
#### Inherited from
|
|
46
|
+
|
|
47
|
+
`ICatalogueBase.validUntil`
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### dateCreated
|
|
52
|
+
|
|
53
|
+
> **dateCreated**: `string`
|
|
54
|
+
|
|
55
|
+
The creation date.
|
|
56
|
+
|
|
57
|
+
#### Inherited from
|
|
58
|
+
|
|
59
|
+
`ICatalogueBase.dateCreated`
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### evidence
|
|
64
|
+
|
|
65
|
+
> **evidence**: `string`[]
|
|
66
|
+
|
|
67
|
+
The evidences concerning the data resource.
|
|
68
|
+
|
|
69
|
+
#### Inherited from
|
|
70
|
+
|
|
71
|
+
`ICatalogueBase.evidence`
|
|
72
|
+
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
### id
|
|
76
|
+
|
|
77
|
+
> **id**: `string`
|
|
78
|
+
|
|
79
|
+
A unique identifier given to this Data Space Connector.
|
|
80
|
+
|
|
81
|
+
#### Inherited from
|
|
82
|
+
|
|
83
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`id`](IDataSpaceConnector.md#id)
|
|
84
|
+
|
|
85
|
+
***
|
|
86
|
+
|
|
87
|
+
### type
|
|
88
|
+
|
|
89
|
+
> **type**: \[`"DataExchangeComponent"`, `"DataSpaceConnector"`, `...string[]`\]
|
|
90
|
+
|
|
91
|
+
A Connector is a Data Exchange Component
|
|
92
|
+
|
|
93
|
+
#### Inherited from
|
|
94
|
+
|
|
95
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`type`](IDataSpaceConnector.md#type)
|
|
96
|
+
|
|
97
|
+
***
|
|
98
|
+
|
|
99
|
+
### identity
|
|
100
|
+
|
|
101
|
+
> **identity**: `string`
|
|
102
|
+
|
|
103
|
+
Connector's Identity that allows to know public key of this Connector.
|
|
104
|
+
|
|
105
|
+
#### Inherited from
|
|
106
|
+
|
|
107
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`identity`](IDataSpaceConnector.md#identity)
|
|
108
|
+
|
|
109
|
+
***
|
|
110
|
+
|
|
111
|
+
### maintainer
|
|
112
|
+
|
|
113
|
+
> **maintainer**: `string`
|
|
114
|
+
|
|
115
|
+
Who maintains this Data Space Connector.
|
|
116
|
+
|
|
117
|
+
#### Inherited from
|
|
118
|
+
|
|
119
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`maintainer`](IDataSpaceConnector.md#maintainer)
|
|
120
|
+
|
|
121
|
+
***
|
|
122
|
+
|
|
123
|
+
### name?
|
|
124
|
+
|
|
125
|
+
> `optional` **name**: `string`
|
|
126
|
+
|
|
127
|
+
The name of this Data Space Connector
|
|
128
|
+
|
|
129
|
+
#### Inherited from
|
|
130
|
+
|
|
131
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`name`](IDataSpaceConnector.md#name)
|
|
132
|
+
|
|
133
|
+
***
|
|
134
|
+
|
|
135
|
+
### description?
|
|
136
|
+
|
|
137
|
+
> `optional` **description**: `string`
|
|
138
|
+
|
|
139
|
+
A description of this Data Space Connector
|
|
140
|
+
|
|
141
|
+
#### Inherited from
|
|
142
|
+
|
|
143
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`description`](IDataSpaceConnector.md#description)
|
|
144
|
+
|
|
145
|
+
***
|
|
146
|
+
|
|
147
|
+
### defaultEndpoint
|
|
148
|
+
|
|
149
|
+
> **defaultEndpoint**: `IEndpoint`
|
|
150
|
+
|
|
151
|
+
The default endpoint of the Connector.
|
|
152
|
+
This endpoint can be used as a base to guess other endpoints in case they are not explicitly declared.
|
|
153
|
+
|
|
154
|
+
#### Inherited from
|
|
155
|
+
|
|
156
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`defaultEndpoint`](IDataSpaceConnector.md#defaultendpoint)
|
|
157
|
+
|
|
158
|
+
***
|
|
159
|
+
|
|
160
|
+
### subscriptionActivityEndpoint?
|
|
161
|
+
|
|
162
|
+
> `optional` **subscriptionActivityEndpoint**: `IEndpoint`
|
|
163
|
+
|
|
164
|
+
The endpoint used for data subscription by Consumers.
|
|
165
|
+
If the endpoint URL is a relative reference to a URL then it should be resolved using the
|
|
166
|
+
default endpoint URL as a base URL.
|
|
167
|
+
|
|
168
|
+
#### Inherited from
|
|
169
|
+
|
|
170
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`subscriptionActivityEndpoint`](IDataSpaceConnector.md#subscriptionactivityendpoint)
|
|
171
|
+
|
|
172
|
+
***
|
|
173
|
+
|
|
174
|
+
### pushActivityEndpoint
|
|
175
|
+
|
|
176
|
+
> **pushActivityEndpoint**: `IEndpoint`
|
|
177
|
+
|
|
178
|
+
The endpoint used by Providers to push data.
|
|
179
|
+
If the endpoint URL is a relative reference to a URL then it should be resolved using the
|
|
180
|
+
default endpoint URL as a base URL.
|
|
181
|
+
|
|
182
|
+
#### Inherited from
|
|
183
|
+
|
|
184
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`pushActivityEndpoint`](IDataSpaceConnector.md#pushactivityendpoint)
|
|
185
|
+
|
|
186
|
+
***
|
|
187
|
+
|
|
188
|
+
### pullDataEndpoint
|
|
189
|
+
|
|
190
|
+
> **pullDataEndpoint**: `IEndpoint`
|
|
191
|
+
|
|
192
|
+
The endpoint used by Consumers to pull data from.
|
|
193
|
+
If the endpoint URL is a relative reference to a URL then it should be resolved using the
|
|
194
|
+
default endpoint URL as a base URL.
|
|
195
|
+
|
|
196
|
+
#### Inherited from
|
|
197
|
+
|
|
198
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`pullDataEndpoint`](IDataSpaceConnector.md#pulldataendpoint)
|
|
199
|
+
|
|
200
|
+
***
|
|
201
|
+
|
|
202
|
+
### @context
|
|
203
|
+
|
|
204
|
+
> **@context**: [`FederatedCatalogueContextType`](../type-aliases/FederatedCatalogueContextType.md)
|
|
205
|
+
|
|
206
|
+
The LD Context
|
|
207
|
+
|
|
208
|
+
#### Overrides
|
|
209
|
+
|
|
210
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`@context`](IDataSpaceConnector.md#context)
|
|
211
|
+
|
|
212
|
+
***
|
|
213
|
+
|
|
214
|
+
### offeredResource
|
|
215
|
+
|
|
216
|
+
> **offeredResource**: `string`[]
|
|
217
|
+
|
|
218
|
+
Offered resources. Probably in the future this wll be separated in a different entry so
|
|
219
|
+
that a Data Space Connector entry does not need to be modified when a new Data Resource
|
|
220
|
+
is offered.
|
|
221
|
+
|
|
222
|
+
#### Overrides
|
|
223
|
+
|
|
224
|
+
[`IDataSpaceConnector`](IDataSpaceConnector.md).[`offeredResource`](IDataSpaceConnector.md#offeredresource)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Interface: IDataSpaceConnectorList
|
|
2
|
+
|
|
3
|
+
Interface describing a list of Data Space Connectors.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### @context
|
|
8
|
+
|
|
9
|
+
> **@context**: [`FederatedCatalogueContextType`](../type-aliases/FederatedCatalogueContextType.md)
|
|
10
|
+
|
|
11
|
+
The LD Context.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### type
|
|
16
|
+
|
|
17
|
+
> **type**: `"ItemList"`
|
|
18
|
+
|
|
19
|
+
The type
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### itemListElement
|
|
24
|
+
|
|
25
|
+
> **itemListElement**: `Omit`\<[`IDataSpaceConnectorEntry`](IDataSpaceConnectorEntry.md), `"@context"`\>[]
|
|
26
|
+
|
|
27
|
+
The components of the Collection
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### nextItem?
|
|
32
|
+
|
|
33
|
+
> `optional` **nextItem**: `string`
|
|
34
|
+
|
|
35
|
+
Next item cursor.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Interface: IDataSpaceConnectorListRequest
|
|
2
|
+
|
|
3
|
+
Get the a list of the data space connector entries.
|
|
4
|
+
|
|
5
|
+
## Extends
|
|
6
|
+
|
|
7
|
+
- [`IFederatedCatalogueGetRequest`](IFederatedCatalogueGetRequest.md)
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### query
|
|
12
|
+
|
|
13
|
+
> **query**: `object`
|
|
14
|
+
|
|
15
|
+
The query parameters.
|
|
16
|
+
|
|
17
|
+
#### id?
|
|
18
|
+
|
|
19
|
+
> `optional` **id**: `string`
|
|
20
|
+
|
|
21
|
+
The id of the Data Space Connector.
|
|
22
|
+
|
|
23
|
+
#### maintainedBy?
|
|
24
|
+
|
|
25
|
+
> `optional` **maintainedBy**: `string`
|
|
26
|
+
|
|
27
|
+
The maintainer
|
|
28
|
+
|
|
29
|
+
#### cursor?
|
|
30
|
+
|
|
31
|
+
> `optional` **cursor**: `string`
|
|
32
|
+
|
|
33
|
+
The optional cursor to get next chunk.
|
|
34
|
+
|
|
35
|
+
#### pageSize?
|
|
36
|
+
|
|
37
|
+
> `optional` **pageSize**: `number`
|
|
38
|
+
|
|
39
|
+
The maximum number of entities in a page.
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### headers?
|
|
44
|
+
|
|
45
|
+
> `optional` **headers**: `object`
|
|
46
|
+
|
|
47
|
+
The headers which can be used to determine the response data type.
|
|
48
|
+
|
|
49
|
+
#### accept
|
|
50
|
+
|
|
51
|
+
> **accept**: `"application/json"` \| `"application/ld+json"`
|
|
52
|
+
|
|
53
|
+
#### Inherited from
|
|
54
|
+
|
|
55
|
+
[`IFederatedCatalogueGetRequest`](IFederatedCatalogueGetRequest.md).[`headers`](IFederatedCatalogueGetRequest.md#headers)
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
# Interface: IFederatedCatalogueComponent
|
|
2
|
+
|
|
3
|
+
Interface describing a Federated Catalogue Contract.
|
|
4
|
+
|
|
5
|
+
## Extends
|
|
6
|
+
|
|
7
|
+
- `IComponent`
|
|
8
|
+
|
|
9
|
+
## Methods
|
|
10
|
+
|
|
11
|
+
### registerComplianceCredential()
|
|
12
|
+
|
|
13
|
+
> **registerComplianceCredential**(`credential`): `Promise`\<`string`\>
|
|
14
|
+
|
|
15
|
+
Registers a Participant's compliance Credential to the service.
|
|
16
|
+
|
|
17
|
+
#### Parameters
|
|
18
|
+
|
|
19
|
+
##### credential
|
|
20
|
+
|
|
21
|
+
`string`
|
|
22
|
+
|
|
23
|
+
The credential as JWT.
|
|
24
|
+
|
|
25
|
+
#### Returns
|
|
26
|
+
|
|
27
|
+
`Promise`\<`string`\>
|
|
28
|
+
|
|
29
|
+
The participant Id (usually a DID).
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### queryParticipants()
|
|
34
|
+
|
|
35
|
+
> **queryParticipants**(`participant?`, `legalRegistrationNumber?`, `lrnType?`, `cursor?`, `pageSize?`): `Promise`\<[`IParticipantList`](IParticipantList.md)\>
|
|
36
|
+
|
|
37
|
+
Query the federated catalogue.
|
|
38
|
+
|
|
39
|
+
#### Parameters
|
|
40
|
+
|
|
41
|
+
##### participant?
|
|
42
|
+
|
|
43
|
+
`string`
|
|
44
|
+
|
|
45
|
+
The identity of the participant.
|
|
46
|
+
|
|
47
|
+
##### legalRegistrationNumber?
|
|
48
|
+
|
|
49
|
+
`string`
|
|
50
|
+
|
|
51
|
+
The legal registration number.
|
|
52
|
+
|
|
53
|
+
##### lrnType?
|
|
54
|
+
|
|
55
|
+
`string`
|
|
56
|
+
|
|
57
|
+
The legal registration number type (EORI, VATID, GLEIF, Kenya's PIN, etc.)
|
|
58
|
+
|
|
59
|
+
##### cursor?
|
|
60
|
+
|
|
61
|
+
`string`
|
|
62
|
+
|
|
63
|
+
The cursor to request the next page of entities.
|
|
64
|
+
|
|
65
|
+
##### pageSize?
|
|
66
|
+
|
|
67
|
+
`number`
|
|
68
|
+
|
|
69
|
+
The maximum number of entities in a page.
|
|
70
|
+
|
|
71
|
+
#### Returns
|
|
72
|
+
|
|
73
|
+
`Promise`\<[`IParticipantList`](IParticipantList.md)\>
|
|
74
|
+
|
|
75
|
+
All the entities for the storage matching the conditions,
|
|
76
|
+
and a cursor which can be used to request more entities.
|
|
77
|
+
|
|
78
|
+
#### Throws
|
|
79
|
+
|
|
80
|
+
NotImplementedError if the implementation does not support retrieval.
|
|
81
|
+
|
|
82
|
+
***
|
|
83
|
+
|
|
84
|
+
### registerDataSpaceConnectorCredential()
|
|
85
|
+
|
|
86
|
+
> **registerDataSpaceConnectorCredential**(`credential`): `Promise`\<`string`\>
|
|
87
|
+
|
|
88
|
+
Registers a Data Space Connector to the service.
|
|
89
|
+
|
|
90
|
+
#### Parameters
|
|
91
|
+
|
|
92
|
+
##### credential
|
|
93
|
+
|
|
94
|
+
`string`
|
|
95
|
+
|
|
96
|
+
The credential as JWT.
|
|
97
|
+
|
|
98
|
+
#### Returns
|
|
99
|
+
|
|
100
|
+
`Promise`\<`string`\>
|
|
101
|
+
|
|
102
|
+
The Data Space Connector Id registered.
|
|
103
|
+
|
|
104
|
+
***
|
|
105
|
+
|
|
106
|
+
### queryDataSpaceConnectors()
|
|
107
|
+
|
|
108
|
+
> **queryDataSpaceConnectors**(`id?`, `maintainer?`, `cursor?`, `pageSize?`): `Promise`\<[`IDataSpaceConnectorList`](IDataSpaceConnectorList.md)\>
|
|
109
|
+
|
|
110
|
+
Query the federated catalogue.
|
|
111
|
+
|
|
112
|
+
#### Parameters
|
|
113
|
+
|
|
114
|
+
##### id?
|
|
115
|
+
|
|
116
|
+
`string`
|
|
117
|
+
|
|
118
|
+
Data Space Connector Id.
|
|
119
|
+
|
|
120
|
+
##### maintainer?
|
|
121
|
+
|
|
122
|
+
`string`
|
|
123
|
+
|
|
124
|
+
The identity of the participant maintaining the Data Space Connector.
|
|
125
|
+
|
|
126
|
+
##### cursor?
|
|
127
|
+
|
|
128
|
+
`string`
|
|
129
|
+
|
|
130
|
+
The cursor to request the next page of entities.
|
|
131
|
+
|
|
132
|
+
##### pageSize?
|
|
133
|
+
|
|
134
|
+
`number`
|
|
135
|
+
|
|
136
|
+
The maximum number of entities in a page.
|
|
137
|
+
|
|
138
|
+
#### Returns
|
|
139
|
+
|
|
140
|
+
`Promise`\<[`IDataSpaceConnectorList`](IDataSpaceConnectorList.md)\>
|
|
141
|
+
|
|
142
|
+
All the entities for the storage matching the conditions,
|
|
143
|
+
and a cursor which can be used to request more entities.
|
|
144
|
+
|
|
145
|
+
#### Throws
|
|
146
|
+
|
|
147
|
+
NotImplementedError if the implementation does not support retrieval.
|
|
148
|
+
|
|
149
|
+
***
|
|
150
|
+
|
|
151
|
+
### registerServiceOfferingCredential()
|
|
152
|
+
|
|
153
|
+
> **registerServiceOfferingCredential**(`credential`): `Promise`\<`string`[]\>
|
|
154
|
+
|
|
155
|
+
Registers a service offering Credential to the service.
|
|
156
|
+
|
|
157
|
+
#### Parameters
|
|
158
|
+
|
|
159
|
+
##### credential
|
|
160
|
+
|
|
161
|
+
`string`
|
|
162
|
+
|
|
163
|
+
The credential as JWT.
|
|
164
|
+
|
|
165
|
+
#### Returns
|
|
166
|
+
|
|
167
|
+
`Promise`\<`string`[]\>
|
|
168
|
+
|
|
169
|
+
The Id of the Service Offerings registered.
|
|
170
|
+
|
|
171
|
+
***
|
|
172
|
+
|
|
173
|
+
### registerDataResourceCredential()
|
|
174
|
+
|
|
175
|
+
> **registerDataResourceCredential**(`credential`): `Promise`\<`string`[]\>
|
|
176
|
+
|
|
177
|
+
Registers a data resource Credential to the service.
|
|
178
|
+
|
|
179
|
+
#### Parameters
|
|
180
|
+
|
|
181
|
+
##### credential
|
|
182
|
+
|
|
183
|
+
`string`
|
|
184
|
+
|
|
185
|
+
The credential as JWT.
|
|
186
|
+
|
|
187
|
+
#### Returns
|
|
188
|
+
|
|
189
|
+
`Promise`\<`string`[]\>
|
|
190
|
+
|
|
191
|
+
The Id of the Data Resources registered.
|
|
192
|
+
|
|
193
|
+
***
|
|
194
|
+
|
|
195
|
+
### queryServiceOfferings()
|
|
196
|
+
|
|
197
|
+
> **queryServiceOfferings**(`id?`, `providedBy?`, `cursor?`, `pageSize?`): `Promise`\<[`IServiceOfferingList`](IServiceOfferingList.md)\>
|
|
198
|
+
|
|
199
|
+
Query the federated catalogue.
|
|
200
|
+
|
|
201
|
+
#### Parameters
|
|
202
|
+
|
|
203
|
+
##### id?
|
|
204
|
+
|
|
205
|
+
`string`
|
|
206
|
+
|
|
207
|
+
Service Offering id.
|
|
208
|
+
|
|
209
|
+
##### providedBy?
|
|
210
|
+
|
|
211
|
+
`string`
|
|
212
|
+
|
|
213
|
+
The identity of the participant providing the Offering.
|
|
214
|
+
|
|
215
|
+
##### cursor?
|
|
216
|
+
|
|
217
|
+
`string`
|
|
218
|
+
|
|
219
|
+
The cursor to request the next page of entities.
|
|
220
|
+
|
|
221
|
+
##### pageSize?
|
|
222
|
+
|
|
223
|
+
`number`
|
|
224
|
+
|
|
225
|
+
The maximum number of entities in a page.
|
|
226
|
+
|
|
227
|
+
#### Returns
|
|
228
|
+
|
|
229
|
+
`Promise`\<[`IServiceOfferingList`](IServiceOfferingList.md)\>
|
|
230
|
+
|
|
231
|
+
All the entities for the storage matching the conditions,
|
|
232
|
+
and a cursor which can be used to request more entities.
|
|
233
|
+
|
|
234
|
+
#### Throws
|
|
235
|
+
|
|
236
|
+
NotImplementedError if the implementation does not support retrieval.
|
|
237
|
+
|
|
238
|
+
***
|
|
239
|
+
|
|
240
|
+
### queryDataResources()
|
|
241
|
+
|
|
242
|
+
> **queryDataResources**(`id?`, `producedBy?`, `cursor?`, `pageSize?`): `Promise`\<[`IDataResourceList`](IDataResourceList.md)\>
|
|
243
|
+
|
|
244
|
+
Query the federated catalogue.
|
|
245
|
+
|
|
246
|
+
#### Parameters
|
|
247
|
+
|
|
248
|
+
##### id?
|
|
249
|
+
|
|
250
|
+
`string`
|
|
251
|
+
|
|
252
|
+
The id of the Data Resource.
|
|
253
|
+
|
|
254
|
+
##### producedBy?
|
|
255
|
+
|
|
256
|
+
`string`
|
|
257
|
+
|
|
258
|
+
The identity of the participant producing the data behind the data resource.
|
|
259
|
+
|
|
260
|
+
##### cursor?
|
|
261
|
+
|
|
262
|
+
`string`
|
|
263
|
+
|
|
264
|
+
The cursor to request the next page of entities.
|
|
265
|
+
|
|
266
|
+
##### pageSize?
|
|
267
|
+
|
|
268
|
+
`number`
|
|
269
|
+
|
|
270
|
+
The maximum number of entities in a page.
|
|
271
|
+
|
|
272
|
+
#### Returns
|
|
273
|
+
|
|
274
|
+
`Promise`\<[`IDataResourceList`](IDataResourceList.md)\>
|
|
275
|
+
|
|
276
|
+
All the entities for the storage matching the conditions,
|
|
277
|
+
and a cursor which can be used to request more entities.
|
|
278
|
+
|
|
279
|
+
#### Throws
|
|
280
|
+
|
|
281
|
+
NotImplementedError if the implementation does not support retrieval.
|
|
282
|
+
|
|
283
|
+
***
|
|
284
|
+
|
|
285
|
+
### getEntry()
|
|
286
|
+
|
|
287
|
+
> **getEntry**(`entryType`, `entryId`): `Promise`\<[`ICatalogueEntry`](../type-aliases/ICatalogueEntry.md)\>
|
|
288
|
+
|
|
289
|
+
Returns a Federated Catalogue entry.
|
|
290
|
+
|
|
291
|
+
#### Parameters
|
|
292
|
+
|
|
293
|
+
##### entryType
|
|
294
|
+
|
|
295
|
+
[`FederatedCatalogueEntryType`](../type-aliases/FederatedCatalogueEntryType.md)
|
|
296
|
+
|
|
297
|
+
The type of entry.
|
|
298
|
+
|
|
299
|
+
##### entryId
|
|
300
|
+
|
|
301
|
+
`string`
|
|
302
|
+
|
|
303
|
+
The entry's id.
|
|
304
|
+
|
|
305
|
+
#### Returns
|
|
306
|
+
|
|
307
|
+
`Promise`\<[`ICatalogueEntry`](../type-aliases/ICatalogueEntry.md)\>
|
|
308
|
+
|
|
309
|
+
Catalogue Entry
|
|
310
|
+
|
|
311
|
+
#### Throws
|
|
312
|
+
|
|
313
|
+
NotFoundError if not found.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IFederatedCatalogueGetRequest
|
|
2
|
+
|
|
3
|
+
Base interface for Federated Catalogue Get Requests
|
|
4
|
+
|
|
5
|
+
## Extended by
|
|
6
|
+
|
|
7
|
+
- [`IParticipantListRequest`](IParticipantListRequest.md)
|
|
8
|
+
- [`IServiceOfferingListRequest`](IServiceOfferingListRequest.md)
|
|
9
|
+
- [`IDataResourceListRequest`](IDataResourceListRequest.md)
|
|
10
|
+
- [`ICatalogueEntryGetRequest`](ICatalogueEntryGetRequest.md)
|
|
11
|
+
- [`IDataSpaceConnectorListRequest`](IDataSpaceConnectorListRequest.md)
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### headers?
|
|
16
|
+
|
|
17
|
+
> `optional` **headers**: `object`
|
|
18
|
+
|
|
19
|
+
The headers which can be used to determine the response data type.
|
|
20
|
+
|
|
21
|
+
#### accept
|
|
22
|
+
|
|
23
|
+
> **accept**: `"application/json"` \| `"application/ld+json"`
|