@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,77 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { GaiaXContextType, GaiaXTypes, IDataExchangeComponent, IDataResource, IEndpoint } from "@twin.org/standards-gaia-x";
|
|
3
|
+
import type { FederatedCatalogueTypes } from "../federatedCatalogueTypes";
|
|
4
|
+
/**
|
|
5
|
+
* TWIN Data Space Connector.
|
|
6
|
+
*/
|
|
7
|
+
export interface IDataSpaceConnector extends IDataExchangeComponent {
|
|
8
|
+
/**
|
|
9
|
+
* The LD Context.
|
|
10
|
+
*/
|
|
11
|
+
"@context": GaiaXContextType;
|
|
12
|
+
/**
|
|
13
|
+
* A unique identifier given to this Data Space Connector.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* A Connector is a Data Exchange Component
|
|
18
|
+
*/
|
|
19
|
+
type: [
|
|
20
|
+
typeof GaiaXTypes.DataExchangeComponent,
|
|
21
|
+
typeof FederatedCatalogueTypes.DataSpaceConnector,
|
|
22
|
+
...string[]
|
|
23
|
+
];
|
|
24
|
+
/**
|
|
25
|
+
* Connector's Identity that allows to know public key of this Connector.
|
|
26
|
+
*/
|
|
27
|
+
identity: string;
|
|
28
|
+
/**
|
|
29
|
+
* Who maintains this Data Space Connector.
|
|
30
|
+
*/
|
|
31
|
+
maintainer: string;
|
|
32
|
+
/**
|
|
33
|
+
* The name of this Data Space Connector
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* A description of this Data Space Connector
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The default endpoint of the Connector.
|
|
42
|
+
* This endpoint can be used as a base to guess other endpoints in case they are not explicitly declared.
|
|
43
|
+
*/
|
|
44
|
+
defaultEndpoint: IEndpoint;
|
|
45
|
+
/**
|
|
46
|
+
* The endpoint used for data subscription by Consumers.
|
|
47
|
+
* If the endpoint URL is a relative reference to a URL then it should be resolved using the
|
|
48
|
+
* default endpoint URL as a base URL.
|
|
49
|
+
*/
|
|
50
|
+
subscriptionActivityEndpoint?: IEndpoint;
|
|
51
|
+
/**
|
|
52
|
+
* The endpoint used by Providers to push data.
|
|
53
|
+
* If the endpoint URL is a relative reference to a URL then it should be resolved using the
|
|
54
|
+
* default endpoint URL as a base URL.
|
|
55
|
+
*/
|
|
56
|
+
pushActivityEndpoint: IEndpoint;
|
|
57
|
+
/**
|
|
58
|
+
* The endpoint used by Consumers to pull data from.
|
|
59
|
+
* If the endpoint URL is a relative reference to a URL then it should be resolved using the
|
|
60
|
+
* default endpoint URL as a base URL.
|
|
61
|
+
*/
|
|
62
|
+
pullDataEndpoint: IEndpoint;
|
|
63
|
+
/**
|
|
64
|
+
* The resources offered by this Connector.
|
|
65
|
+
* A resource index is usually a relative reference to the default endpoint base URL.
|
|
66
|
+
* Nonetheless if the resource already declares an endpoint URL that one should be taken.
|
|
67
|
+
* It is captured the case where the Data Resource is supplied
|
|
68
|
+
* via a list of identifiers or through a map indexed by Id
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
offeredResource: string[] | {
|
|
72
|
+
[resourceId: string]: IDataResource | (IJsonLdNodeObject & {
|
|
73
|
+
id: string;
|
|
74
|
+
type: typeof GaiaXTypes.DataResource;
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IDataSpaceConnector } from "./IDataSpaceConnector";
|
|
2
|
+
import type { ICredential } from "../ICredential";
|
|
3
|
+
/**
|
|
4
|
+
* Participant Credential.
|
|
5
|
+
*/
|
|
6
|
+
export interface IDataSpaceConnectorCredential extends ICredential {
|
|
7
|
+
/**
|
|
8
|
+
* The Credential Subject
|
|
9
|
+
*/
|
|
10
|
+
credentialSubject: IDataSpaceConnector;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ICatalogueBase } from "../ICatalogueBase";
|
|
2
|
+
import type { IDataSpaceConnector } from "./IDataSpaceConnector";
|
|
3
|
+
import type { FederatedCatalogueContextType } from "../federatedCatalogueContextType";
|
|
4
|
+
/**
|
|
5
|
+
* Interface describing a participant.
|
|
6
|
+
*/
|
|
7
|
+
export interface IDataSpaceConnectorEntry extends IDataSpaceConnector, ICatalogueBase {
|
|
8
|
+
/**
|
|
9
|
+
* The LD Context
|
|
10
|
+
*/
|
|
11
|
+
"@context": FederatedCatalogueContextType;
|
|
12
|
+
/**
|
|
13
|
+
* Offered resources. Probably in the future this wll be separated in a different entry so
|
|
14
|
+
* that a Data Space Connector entry does not need to be modified when a new Data Resource
|
|
15
|
+
* is offered.
|
|
16
|
+
*/
|
|
17
|
+
offeredResource: string[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { SchemaOrgTypes } from "@twin.org/standards-schema-org";
|
|
2
|
+
import type { IDataSpaceConnectorEntry } from "./IDataSpaceConnectorEntry";
|
|
3
|
+
import type { FederatedCatalogueContextType } from "../federatedCatalogueContextType";
|
|
4
|
+
/**
|
|
5
|
+
* Interface describing a list of Data Space Connectors.
|
|
6
|
+
*/
|
|
7
|
+
export interface IDataSpaceConnectorList {
|
|
8
|
+
/**
|
|
9
|
+
* The LD Context.
|
|
10
|
+
*/
|
|
11
|
+
"@context": FederatedCatalogueContextType;
|
|
12
|
+
/**
|
|
13
|
+
* The type
|
|
14
|
+
*/
|
|
15
|
+
type: typeof SchemaOrgTypes.ItemList;
|
|
16
|
+
/**
|
|
17
|
+
* The components of the Collection
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
[SchemaOrgTypes.ItemListElement]: Omit<IDataSpaceConnectorEntry, "@context">[];
|
|
21
|
+
/**
|
|
22
|
+
* Next item cursor.
|
|
23
|
+
*/
|
|
24
|
+
[SchemaOrgTypes.NextItem]?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FederatedCatalogueContextType } from "./federatedCatalogueContextType";
|
|
2
|
+
/**
|
|
3
|
+
* The LD context instances concerning the Federated Catalogue.
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class FederatedCatalogueContextInstances {
|
|
6
|
+
/**
|
|
7
|
+
* The LD Context of a list of Catalogue entries.
|
|
8
|
+
*/
|
|
9
|
+
static DEFAULT_LD_CONTEXT_ENTRY_LIST: FederatedCatalogueContextType;
|
|
10
|
+
/**
|
|
11
|
+
* The LD Context of a Catalogue entry.
|
|
12
|
+
*/
|
|
13
|
+
static DEFAULT_LD_CONTEXT_ENTRY: FederatedCatalogueContextType;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { GaiaXContexts } from "@twin.org/standards-gaia-x";
|
|
2
|
+
import type { SchemaOrgContexts } from "@twin.org/standards-schema-org";
|
|
3
|
+
import type { FederatedCatalogueContexts } from "./federatedCatalogueContexts";
|
|
4
|
+
/**
|
|
5
|
+
* Type that defines the LD Context for the Federated Catalogue entities and entries.
|
|
6
|
+
*/
|
|
7
|
+
export type FederatedCatalogueContextType = [
|
|
8
|
+
typeof SchemaOrgContexts.ContextRoot,
|
|
9
|
+
typeof GaiaXContexts.ContextRoot,
|
|
10
|
+
typeof FederatedCatalogueContexts.ContextRoot
|
|
11
|
+
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The LD context concerning the Federated Catalogue.
|
|
3
|
+
*/
|
|
4
|
+
export declare const FederatedCatalogueContexts: {
|
|
5
|
+
/**
|
|
6
|
+
* The context root for the federated catalogue types.
|
|
7
|
+
*/
|
|
8
|
+
readonly ContextRoot: "https://schema.twindev.org/federated-catalogue/";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The Exported types
|
|
12
|
+
*/
|
|
13
|
+
export type FederatedCatalogueContexts = (typeof FederatedCatalogueContexts)[keyof typeof FederatedCatalogueContexts];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GaiaXTypes } from "@twin.org/standards-gaia-x";
|
|
2
|
+
import type { FederatedCatalogueTypes } from "./federatedCatalogueTypes";
|
|
3
|
+
/**
|
|
4
|
+
* Types of entries in the Federated Catalogue
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type FederatedCatalogueEntryType = typeof GaiaXTypes.Participant | typeof GaiaXTypes.DataExchangeComponent | typeof GaiaXTypes.DataResource | typeof GaiaXTypes.ServiceOffering | typeof FederatedCatalogueTypes.DataSpaceConnector;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The types concerning the Federated Catalogue.
|
|
3
|
+
*/
|
|
4
|
+
export declare const FederatedCatalogueTypes: {
|
|
5
|
+
/**
|
|
6
|
+
* A Credential that is compliant.
|
|
7
|
+
*/
|
|
8
|
+
readonly CompliantCredential: "CompliantCredential";
|
|
9
|
+
/**
|
|
10
|
+
* A Compliance Credential.
|
|
11
|
+
*/
|
|
12
|
+
readonly ComplianceCredential: "ComplianceCredential";
|
|
13
|
+
/**
|
|
14
|
+
* A Data Space Connector.
|
|
15
|
+
*/
|
|
16
|
+
readonly DataSpaceConnector: "DataSpaceConnector";
|
|
17
|
+
/**
|
|
18
|
+
* A Data Resource Entry.
|
|
19
|
+
*/
|
|
20
|
+
readonly DataResourceEntry: "DataResourceEntry";
|
|
21
|
+
/**
|
|
22
|
+
* A Data Space Connector List.
|
|
23
|
+
*/
|
|
24
|
+
readonly DataResourceList: "DataResourceList";
|
|
25
|
+
/**
|
|
26
|
+
* A Data Space Connector Entry.
|
|
27
|
+
*/
|
|
28
|
+
readonly DataSpaceConnectorEntry: "DataSpaceConnectorEntry";
|
|
29
|
+
/**
|
|
30
|
+
* A Data Space Connector List.
|
|
31
|
+
*/
|
|
32
|
+
readonly DataSpaceConnectorList: "DataSpaceConnectorList";
|
|
33
|
+
/**
|
|
34
|
+
* A Participant Entry.
|
|
35
|
+
*/
|
|
36
|
+
readonly ParticipantEntry: "ParticipantEntry";
|
|
37
|
+
/**
|
|
38
|
+
* A Participant List.
|
|
39
|
+
*/
|
|
40
|
+
readonly ParticipantList: "ParticipantList";
|
|
41
|
+
/**
|
|
42
|
+
* A Service Offering Entry.
|
|
43
|
+
*/
|
|
44
|
+
readonly ServiceOfferingEntry: "ServiceOfferingEntry";
|
|
45
|
+
/**
|
|
46
|
+
* A Service Offering List.
|
|
47
|
+
*/
|
|
48
|
+
readonly ServiceOfferingList: "ServiceOfferingList";
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* The Exported types
|
|
52
|
+
*/
|
|
53
|
+
export type FederatedCatalogueTypes = (typeof FederatedCatalogueTypes)[keyof typeof FederatedCatalogueTypes];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IParticipant } from "@twin.org/standards-gaia-x";
|
|
2
|
+
import type { ICredential } from "../ICredential";
|
|
3
|
+
/**
|
|
4
|
+
* Participant Credential.
|
|
5
|
+
*/
|
|
6
|
+
export interface IParticipantCredential extends ICredential {
|
|
7
|
+
/**
|
|
8
|
+
* The Credential Subject
|
|
9
|
+
*/
|
|
10
|
+
credentialSubject: IParticipant;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IParticipant } from "@twin.org/standards-gaia-x";
|
|
2
|
+
import type { FederatedCatalogueContextType } from "../federatedCatalogueContextType";
|
|
3
|
+
import type { ICatalogueBase } from "../ICatalogueBase";
|
|
4
|
+
/**
|
|
5
|
+
* Interface describing a participant.
|
|
6
|
+
*/
|
|
7
|
+
export interface IParticipantEntry extends IParticipant, ICatalogueBase {
|
|
8
|
+
/**
|
|
9
|
+
* The LD Context
|
|
10
|
+
*/
|
|
11
|
+
"@context": FederatedCatalogueContextType;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { SchemaOrgTypes } from "@twin.org/standards-schema-org";
|
|
2
|
+
import type { IParticipantEntry } from "./IParticipantEntry";
|
|
3
|
+
import type { FederatedCatalogueContextType } from "../federatedCatalogueContextType";
|
|
4
|
+
/**
|
|
5
|
+
* Interface describing a participant entry list.
|
|
6
|
+
*/
|
|
7
|
+
export interface IParticipantList {
|
|
8
|
+
/**
|
|
9
|
+
* The LD Context.
|
|
10
|
+
*/
|
|
11
|
+
"@context": FederatedCatalogueContextType;
|
|
12
|
+
/**
|
|
13
|
+
* The type
|
|
14
|
+
*/
|
|
15
|
+
type: typeof SchemaOrgTypes.ItemList;
|
|
16
|
+
/**
|
|
17
|
+
* The components of the Collection
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
[SchemaOrgTypes.ItemListElement]: Omit<IParticipantEntry, "@context">[];
|
|
21
|
+
/**
|
|
22
|
+
* Next item cursor.
|
|
23
|
+
*/
|
|
24
|
+
[SchemaOrgTypes.NextItem]?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IServiceOffering } from "@twin.org/standards-gaia-x";
|
|
2
|
+
import type { ICredential } from "../ICredential";
|
|
3
|
+
/**
|
|
4
|
+
* A Service Offering Credential
|
|
5
|
+
*/
|
|
6
|
+
export interface IServiceOfferingCredential extends ICredential {
|
|
7
|
+
/**
|
|
8
|
+
* The Credential Subject
|
|
9
|
+
*/
|
|
10
|
+
credentialSubject: IServiceOffering;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IServiceOffering } from "@twin.org/standards-gaia-x";
|
|
2
|
+
import type { IOdrlPolicy } from "@twin.org/standards-w3c-odrl";
|
|
3
|
+
import type { FederatedCatalogueContextType } from "../federatedCatalogueContextType";
|
|
4
|
+
import type { ICatalogueBase } from "../ICatalogueBase";
|
|
5
|
+
/**
|
|
6
|
+
* Interface describing a Service Offering.
|
|
7
|
+
*/
|
|
8
|
+
export interface IServiceOfferingEntry extends ICatalogueBase, IServiceOffering {
|
|
9
|
+
/**
|
|
10
|
+
* The LD Context
|
|
11
|
+
*/
|
|
12
|
+
"@context": FederatedCatalogueContextType;
|
|
13
|
+
/**
|
|
14
|
+
* Overwrites providedBy as we only store identifier as string
|
|
15
|
+
*/
|
|
16
|
+
providedBy: string;
|
|
17
|
+
/**
|
|
18
|
+
* Overwrites aggregationOfResources as we only store identifier as string
|
|
19
|
+
*/
|
|
20
|
+
aggregationOfResources?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* The service policy is always stored as an array
|
|
23
|
+
*/
|
|
24
|
+
servicePolicy: IOdrlPolicy[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { SchemaOrgTypes } from "@twin.org/standards-schema-org";
|
|
2
|
+
import type { IServiceOfferingEntry } from "./IServiceOfferingEntry";
|
|
3
|
+
import type { FederatedCatalogueContextType } from "../federatedCatalogueContextType";
|
|
4
|
+
/**
|
|
5
|
+
* Interface describing a list of Service Offering Entries.
|
|
6
|
+
*/
|
|
7
|
+
export interface IServiceOfferingList {
|
|
8
|
+
/**
|
|
9
|
+
* The LD Context.
|
|
10
|
+
*/
|
|
11
|
+
"@context": FederatedCatalogueContextType;
|
|
12
|
+
/**
|
|
13
|
+
* The type
|
|
14
|
+
*/
|
|
15
|
+
type: typeof SchemaOrgTypes.ItemList;
|
|
16
|
+
/**
|
|
17
|
+
* The components of the Collection
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
[SchemaOrgTypes.ItemListElement]: Omit<IServiceOfferingEntry, "@context">[];
|
|
21
|
+
/**
|
|
22
|
+
* Next item cursor.
|
|
23
|
+
*/
|
|
24
|
+
[SchemaOrgTypes.NextItem]?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The verification failure reasons.
|
|
3
|
+
*/
|
|
4
|
+
export declare const VerificationFailureReasons: {
|
|
5
|
+
/**
|
|
6
|
+
* Credential type is invalid.
|
|
7
|
+
*/
|
|
8
|
+
readonly InvalidCredentialType: "invalidCredentialType";
|
|
9
|
+
/**
|
|
10
|
+
* The issuer is invalid.
|
|
11
|
+
*/
|
|
12
|
+
readonly InvalidIssuer: "invalidIssuer";
|
|
13
|
+
/**
|
|
14
|
+
* Credential is not valid yet.
|
|
15
|
+
*/
|
|
16
|
+
readonly NotValidYet: "notValidYet";
|
|
17
|
+
/**
|
|
18
|
+
* Credential ahs expired.
|
|
19
|
+
*/
|
|
20
|
+
readonly Expired: "expired";
|
|
21
|
+
/**
|
|
22
|
+
* Credential's evidence cannot be verified.
|
|
23
|
+
*/
|
|
24
|
+
readonly EvidenceCannotBeVerified: "evidenceCannotBeVerified";
|
|
25
|
+
/**
|
|
26
|
+
* Credential has no expiration.
|
|
27
|
+
*/
|
|
28
|
+
readonly NoValidityEndPeriod: "noValidityEndPeriod";
|
|
29
|
+
/**
|
|
30
|
+
* Credential's subject is missing.
|
|
31
|
+
*/
|
|
32
|
+
readonly MissingSubject: "missingSubject";
|
|
33
|
+
/**
|
|
34
|
+
* Credential's evidences are missing.
|
|
35
|
+
*/
|
|
36
|
+
readonly MissingEvidences: "missingEvidences";
|
|
37
|
+
/**
|
|
38
|
+
* General error happened while verifying and the credential cannot be deemed as verified.
|
|
39
|
+
*/
|
|
40
|
+
readonly GeneralVerificationError: "generalVerificationError";
|
|
41
|
+
/**
|
|
42
|
+
* Credential's integrity check has failed
|
|
43
|
+
*/
|
|
44
|
+
readonly IntegrityCheckFailed: "integrityCheckFailed";
|
|
45
|
+
/**
|
|
46
|
+
* Credential's Evidence cannot be retrieved.
|
|
47
|
+
*/
|
|
48
|
+
readonly EvidenceCannotBeRetrieved: "evidenceCannotBeRetrieved";
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* The verification failure Reasons.
|
|
52
|
+
*/
|
|
53
|
+
export type VerificationFailureReasons = (typeof VerificationFailureReasons)[keyof typeof VerificationFailureReasons];
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# @twin.org/federated-catalogue-models - Changelog
|
|
2
|
+
|
|
3
|
+
## [0.0.1-next.10](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.1-next.9...federated-catalogue-models-v0.0.1-next.10) (2025-06-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update schemas ([58d8581](https://github.com/twinfoundation/federated-catalogue/commit/58d85813231f6576490937d4394e7be0f6d8c58d))
|
|
9
|
+
|
|
10
|
+
## [0.0.1-next.9](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.1-next.8...federated-catalogue-models-v0.0.1-next.9) (2025-06-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* update dependencies ([24ff3d7](https://github.com/twinfoundation/federated-catalogue/commit/24ff3d772cf7bd7f60547c5b314355e75ba55424))
|
|
16
|
+
|
|
17
|
+
## [0.0.1-next.8](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.1-next.7...federated-catalogue-models-v0.0.1-next.8) (2025-06-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* update ts-to-schema generation ([41bdde7](https://github.com/twinfoundation/federated-catalogue/commit/41bdde7ff9f0cfa1ea4376b7a952bbaed9988d0a))
|
|
23
|
+
|
|
24
|
+
## [0.0.1-next.7](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.1-next.6...federated-catalogue-models-v0.0.1-next.7) (2025-05-28)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* add data types with fully qualified names ([993eb09](https://github.com/twinfoundation/federated-catalogue/commit/993eb09e25f6caad5d82a3908a2ba648900f5ca7))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* broken docs ([4588d86](https://github.com/twinfoundation/federated-catalogue/commit/4588d861575522da5374291167d57bacd1b21867))
|
|
35
|
+
|
|
36
|
+
## [0.0.1-next.6](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.1-next.5...federated-catalogue-models-v0.0.1-next.6) (2025-05-23)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Miscellaneous Chores
|
|
40
|
+
|
|
41
|
+
* **federated-catalogue-models:** Synchronize repo versions
|
|
42
|
+
|
|
43
|
+
## [0.0.1-next.5](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.1-next.4...federated-catalogue-models-v0.0.1-next.5) (2025-05-23)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* consistent component naming with other repos ([83fc03d](https://github.com/twinfoundation/federated-catalogue/commit/83fc03dee3846600ae6a45d710248a0ae60af570))
|
|
49
|
+
|
|
50
|
+
## [0.0.1-next.4](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.1-next.3...federated-catalogue-models-v0.0.1-next.4) (2025-05-23)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Miscellaneous Chores
|
|
54
|
+
|
|
55
|
+
* **federated-catalogue-models:** Synchronize repo versions
|
|
56
|
+
|
|
57
|
+
## [0.0.1-next.3](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.1-next.2...federated-catalogue-models-v0.0.1-next.3) (2025-05-22)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Features
|
|
61
|
+
|
|
62
|
+
* version 0 federated catalogue ([#2](https://github.com/twinfoundation/federated-catalogue/issues/2)) ([93fb8bd](https://github.com/twinfoundation/federated-catalogue/commit/93fb8bdbb03aa781ef9e8dc4053beea1b397cc36))
|
|
63
|
+
|
|
64
|
+
## [0.0.1-next.2](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.1-next.1...federated-catalogue-models-v0.0.1-next.2) (2025-05-22)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Features
|
|
68
|
+
|
|
69
|
+
* version 0 federated catalogue ([#2](https://github.com/twinfoundation/federated-catalogue/issues/2)) ([93fb8bd](https://github.com/twinfoundation/federated-catalogue/commit/93fb8bdbb03aa781ef9e8dc4053beea1b397cc36))
|
|
70
|
+
|
|
71
|
+
## v0.0.1
|
|
72
|
+
|
|
73
|
+
- Initial Release
|
package/docs/examples.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @twin.org/federated-catalogue-models - Examples
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Class: `abstract` FederatedCatalogueContextInstances
|
|
2
|
+
|
|
3
|
+
The LD context instances concerning the Federated Catalogue.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### Constructor
|
|
8
|
+
|
|
9
|
+
> **new FederatedCatalogueContextInstances**(): `FederatedCatalogueContextInstances`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`FederatedCatalogueContextInstances`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### DEFAULT\_LD\_CONTEXT\_ENTRY\_LIST
|
|
18
|
+
|
|
19
|
+
> `static` **DEFAULT\_LD\_CONTEXT\_ENTRY\_LIST**: [`FederatedCatalogueContextType`](../type-aliases/FederatedCatalogueContextType.md)
|
|
20
|
+
|
|
21
|
+
The LD Context of a list of Catalogue entries.
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### DEFAULT\_LD\_CONTEXT\_ENTRY
|
|
26
|
+
|
|
27
|
+
> `static` **DEFAULT\_LD\_CONTEXT\_ENTRY**: [`FederatedCatalogueContextType`](../type-aliases/FederatedCatalogueContextType.md)
|
|
28
|
+
|
|
29
|
+
The LD Context of a Catalogue entry.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Class: FederatedCatalogueDataTypes
|
|
2
|
+
|
|
3
|
+
Handle all the data types for federated catalogue.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### Constructor
|
|
8
|
+
|
|
9
|
+
> **new FederatedCatalogueDataTypes**(): `FederatedCatalogueDataTypes`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`FederatedCatalogueDataTypes`
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
### registerTypes()
|
|
18
|
+
|
|
19
|
+
> `static` **registerTypes**(): `void`
|
|
20
|
+
|
|
21
|
+
Register all the data types.
|
|
22
|
+
|
|
23
|
+
#### Returns
|
|
24
|
+
|
|
25
|
+
`void`
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# @twin.org/federated-catalogue-models
|
|
2
|
+
|
|
3
|
+
## Classes
|
|
4
|
+
|
|
5
|
+
- [FederatedCatalogueDataTypes](classes/FederatedCatalogueDataTypes.md)
|
|
6
|
+
- [FederatedCatalogueContextInstances](classes/FederatedCatalogueContextInstances.md)
|
|
7
|
+
|
|
8
|
+
## Interfaces
|
|
9
|
+
|
|
10
|
+
- [IComplianceCredential](interfaces/IComplianceCredential.md)
|
|
11
|
+
- [IComplianceEvidence](interfaces/IComplianceEvidence.md)
|
|
12
|
+
- [IComplianceVerificationResult](interfaces/IComplianceVerificationResult.md)
|
|
13
|
+
- [ICredential](interfaces/ICredential.md)
|
|
14
|
+
- [IFederatedCatalogueComponent](interfaces/IFederatedCatalogueComponent.md)
|
|
15
|
+
- [IVerificationResult](interfaces/IVerificationResult.md)
|
|
16
|
+
- [ICatalogueEntryGetRequest](interfaces/ICatalogueEntryGetRequest.md)
|
|
17
|
+
- [ICompliancePresentationRequest](interfaces/ICompliancePresentationRequest.md)
|
|
18
|
+
- [IDataResourceGetResponse](interfaces/IDataResourceGetResponse.md)
|
|
19
|
+
- [IDataResourceListRequest](interfaces/IDataResourceListRequest.md)
|
|
20
|
+
- [IDataResourceListResponse](interfaces/IDataResourceListResponse.md)
|
|
21
|
+
- [IDataSpaceConnectorGetResponse](interfaces/IDataSpaceConnectorGetResponse.md)
|
|
22
|
+
- [IDataSpaceConnectorListRequest](interfaces/IDataSpaceConnectorListRequest.md)
|
|
23
|
+
- [IDataSpaceConnectorListResponse](interfaces/IDataSpaceConnectorListResponse.md)
|
|
24
|
+
- [IFederatedCatalogueGetRequest](interfaces/IFederatedCatalogueGetRequest.md)
|
|
25
|
+
- [IParticipantGetResponse](interfaces/IParticipantGetResponse.md)
|
|
26
|
+
- [IParticipantListRequest](interfaces/IParticipantListRequest.md)
|
|
27
|
+
- [IParticipantListResponse](interfaces/IParticipantListResponse.md)
|
|
28
|
+
- [IServiceOfferingGetResponse](interfaces/IServiceOfferingGetResponse.md)
|
|
29
|
+
- [IServiceOfferingListRequest](interfaces/IServiceOfferingListRequest.md)
|
|
30
|
+
- [IServiceOfferingListResponse](interfaces/IServiceOfferingListResponse.md)
|
|
31
|
+
- [IDataResourceCredential](interfaces/IDataResourceCredential.md)
|
|
32
|
+
- [IDataResourceEntry](interfaces/IDataResourceEntry.md)
|
|
33
|
+
- [IDataResourceList](interfaces/IDataResourceList.md)
|
|
34
|
+
- [IDataSpaceConnector](interfaces/IDataSpaceConnector.md)
|
|
35
|
+
- [IDataSpaceConnectorCredential](interfaces/IDataSpaceConnectorCredential.md)
|
|
36
|
+
- [IDataSpaceConnectorEntry](interfaces/IDataSpaceConnectorEntry.md)
|
|
37
|
+
- [IDataSpaceConnectorList](interfaces/IDataSpaceConnectorList.md)
|
|
38
|
+
- [IParticipantCredential](interfaces/IParticipantCredential.md)
|
|
39
|
+
- [IParticipantEntry](interfaces/IParticipantEntry.md)
|
|
40
|
+
- [IParticipantList](interfaces/IParticipantList.md)
|
|
41
|
+
- [IServiceOfferingCredential](interfaces/IServiceOfferingCredential.md)
|
|
42
|
+
- [IServiceOfferingEntry](interfaces/IServiceOfferingEntry.md)
|
|
43
|
+
- [IServiceOfferingList](interfaces/IServiceOfferingList.md)
|
|
44
|
+
|
|
45
|
+
## Type Aliases
|
|
46
|
+
|
|
47
|
+
- [ICatalogueEntry](type-aliases/ICatalogueEntry.md)
|
|
48
|
+
- [FederatedCatalogueContextType](type-aliases/FederatedCatalogueContextType.md)
|
|
49
|
+
- [FederatedCatalogueContexts](type-aliases/FederatedCatalogueContexts.md)
|
|
50
|
+
- [FederatedCatalogueEntryType](type-aliases/FederatedCatalogueEntryType.md)
|
|
51
|
+
- [FederatedCatalogueTypes](type-aliases/FederatedCatalogueTypes.md)
|
|
52
|
+
- [VerificationFailureReasons](type-aliases/VerificationFailureReasons.md)
|
|
53
|
+
|
|
54
|
+
## Variables
|
|
55
|
+
|
|
56
|
+
- [FederatedCatalogueContexts](variables/FederatedCatalogueContexts.md)
|
|
57
|
+
- [FederatedCatalogueTypes](variables/FederatedCatalogueTypes.md)
|
|
58
|
+
- [VerificationFailureReasons](variables/VerificationFailureReasons.md)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Interface: ICatalogueEntryGetRequest
|
|
2
|
+
|
|
3
|
+
Get a Catalogue Entry.
|
|
4
|
+
|
|
5
|
+
## Extends
|
|
6
|
+
|
|
7
|
+
- [`IFederatedCatalogueGetRequest`](IFederatedCatalogueGetRequest.md)
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### pathParams
|
|
12
|
+
|
|
13
|
+
> **pathParams**: `object`
|
|
14
|
+
|
|
15
|
+
The parameters from the path.
|
|
16
|
+
|
|
17
|
+
#### id
|
|
18
|
+
|
|
19
|
+
> **id**: `string`
|
|
20
|
+
|
|
21
|
+
The ID of the entry (Participant, Service, etc.) to get.
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### headers?
|
|
26
|
+
|
|
27
|
+
> `optional` **headers**: `object`
|
|
28
|
+
|
|
29
|
+
The headers which can be used to determine the response data type.
|
|
30
|
+
|
|
31
|
+
#### accept
|
|
32
|
+
|
|
33
|
+
> **accept**: `"application/json"` \| `"application/ld+json"`
|
|
34
|
+
|
|
35
|
+
#### Inherited from
|
|
36
|
+
|
|
37
|
+
[`IFederatedCatalogueGetRequest`](IFederatedCatalogueGetRequest.md).[`headers`](IFederatedCatalogueGetRequest.md#headers)
|