@twin.org/federated-catalogue-models 0.0.2-next.5 → 0.0.3-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/dist/es/dataTypes/federatedCatalogueDataTypes.js +72 -0
- package/dist/es/dataTypes/federatedCatalogueDataTypes.js.map +1 -0
- package/dist/es/index.js +45 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/ICatalogueBase.js +4 -0
- package/dist/es/models/ICatalogueBase.js.map +1 -0
- package/dist/es/models/ICatalogueEntry.js +2 -0
- package/dist/es/models/ICatalogueEntry.js.map +1 -0
- package/dist/es/models/IComplianceCredential.js +2 -0
- package/dist/es/models/IComplianceCredential.js.map +1 -0
- package/dist/es/models/IComplianceEvidence.js +2 -0
- package/dist/es/models/IComplianceEvidence.js.map +1 -0
- package/dist/es/models/IComplianceVerificationResult.js +2 -0
- package/dist/es/models/IComplianceVerificationResult.js.map +1 -0
- package/dist/es/models/ICredential.js +2 -0
- package/dist/es/models/ICredential.js.map +1 -0
- package/dist/es/models/IFederatedCatalogueComponent.js +2 -0
- package/dist/es/models/IFederatedCatalogueComponent.js.map +1 -0
- package/dist/es/models/IVerificationResult.js +4 -0
- package/dist/es/models/IVerificationResult.js.map +1 -0
- package/dist/es/models/api/ICatalogueEntryGetRequest.js +2 -0
- package/dist/es/models/api/ICatalogueEntryGetRequest.js.map +1 -0
- package/dist/es/models/api/ICompliancePresentationRequest.js +4 -0
- package/dist/es/models/api/ICompliancePresentationRequest.js.map +1 -0
- package/dist/es/models/api/IDataResourceGetResponse.js +2 -0
- package/dist/es/models/api/IDataResourceGetResponse.js.map +1 -0
- package/dist/es/models/api/IDataResourceListRequest.js +2 -0
- package/dist/es/models/api/IDataResourceListRequest.js.map +1 -0
- package/dist/es/models/api/IDataResourceListResponse.js +2 -0
- package/dist/es/models/api/IDataResourceListResponse.js.map +1 -0
- package/dist/es/models/api/IDataSpaceConnectorGetResponse.js +2 -0
- package/dist/es/models/api/IDataSpaceConnectorGetResponse.js.map +1 -0
- package/dist/es/models/api/IDataSpaceConnectorListRequest.js +2 -0
- package/dist/es/models/api/IDataSpaceConnectorListRequest.js.map +1 -0
- package/dist/es/models/api/IDataSpaceConnectorListResponse.js +2 -0
- package/dist/es/models/api/IDataSpaceConnectorListResponse.js.map +1 -0
- package/dist/es/models/api/IFederatedCatalogueGetRequest.js +2 -0
- package/dist/es/models/api/IFederatedCatalogueGetRequest.js.map +1 -0
- package/dist/es/models/api/IParticipantGetResponse.js +2 -0
- package/dist/es/models/api/IParticipantGetResponse.js.map +1 -0
- package/dist/es/models/api/IParticipantListRequest.js +2 -0
- package/dist/es/models/api/IParticipantListRequest.js.map +1 -0
- package/dist/es/models/api/IParticipantListResponse.js +2 -0
- package/dist/es/models/api/IParticipantListResponse.js.map +1 -0
- package/dist/es/models/api/IServiceOfferingGetResponse.js +2 -0
- package/dist/es/models/api/IServiceOfferingGetResponse.js.map +1 -0
- package/dist/es/models/api/IServiceOfferingListRequest.js +2 -0
- package/dist/es/models/api/IServiceOfferingListRequest.js.map +1 -0
- package/dist/es/models/api/IServiceOfferingListResponse.js +2 -0
- package/dist/es/models/api/IServiceOfferingListResponse.js.map +1 -0
- package/dist/es/models/data-resource/IDataResourceCredential.js +2 -0
- package/dist/es/models/data-resource/IDataResourceCredential.js.map +1 -0
- package/dist/es/models/data-resource/IDataResourceEntry.js +2 -0
- package/dist/es/models/data-resource/IDataResourceEntry.js.map +1 -0
- package/dist/es/models/data-resource/IDataResourceList.js +2 -0
- package/dist/es/models/data-resource/IDataResourceList.js.map +1 -0
- package/dist/es/models/data-space-connector/IDataSpaceConnector.js +2 -0
- package/dist/es/models/data-space-connector/IDataSpaceConnector.js.map +1 -0
- package/dist/es/models/data-space-connector/IDataSpaceConnectorCredential.js +2 -0
- package/dist/es/models/data-space-connector/IDataSpaceConnectorCredential.js.map +1 -0
- package/dist/es/models/data-space-connector/IDataSpaceConnectorEntry.js +2 -0
- package/dist/es/models/data-space-connector/IDataSpaceConnectorEntry.js.map +1 -0
- package/dist/es/models/data-space-connector/IDataSpaceConnectorList.js +2 -0
- package/dist/es/models/data-space-connector/IDataSpaceConnectorList.js.map +1 -0
- package/dist/es/models/federatedCatalogueContextInstances.js +23 -0
- package/dist/es/models/federatedCatalogueContextInstances.js.map +1 -0
- package/dist/es/models/federatedCatalogueContextType.js +2 -0
- package/dist/es/models/federatedCatalogueContextType.js.map +1 -0
- package/dist/es/models/federatedCatalogueContexts.js +13 -0
- package/dist/es/models/federatedCatalogueContexts.js.map +1 -0
- package/dist/es/models/federatedCatalogueEntryType.js +2 -0
- package/dist/es/models/federatedCatalogueEntryType.js.map +1 -0
- package/dist/es/models/federatedCatalogueTypes.js +53 -0
- package/dist/es/models/federatedCatalogueTypes.js.map +1 -0
- package/dist/es/models/participant/IParticipantCredential.js +2 -0
- package/dist/es/models/participant/IParticipantCredential.js.map +1 -0
- package/dist/es/models/participant/IParticipantEntry.js +2 -0
- package/dist/es/models/participant/IParticipantEntry.js.map +1 -0
- package/dist/es/models/participant/IParticipantList.js +2 -0
- package/dist/es/models/participant/IParticipantList.js.map +1 -0
- package/dist/es/models/service-offering/IServiceOfferingCredential.js +2 -0
- package/dist/es/models/service-offering/IServiceOfferingCredential.js.map +1 -0
- package/dist/es/models/service-offering/IServiceOfferingEntry.js +2 -0
- package/dist/es/models/service-offering/IServiceOfferingEntry.js.map +1 -0
- package/dist/es/models/service-offering/IServiceOfferingList.js +2 -0
- package/dist/es/models/service-offering/IServiceOfferingList.js.map +1 -0
- package/dist/es/models/verificationFailureReasons.js +53 -0
- package/dist/es/models/verificationFailureReasons.js.map +1 -0
- package/dist/es/schemas/DataResourceEntry.json +180 -0
- package/dist/es/schemas/DataResourceList.json +34 -0
- package/dist/es/schemas/DataSpaceConnectorEntry.json +201 -0
- package/dist/es/schemas/DataSpaceConnectorList.json +34 -0
- package/dist/es/schemas/ParticipantEntry.json +394 -0
- package/dist/es/schemas/ParticipantList.json +34 -0
- package/dist/es/schemas/ServiceOfferingEntry.json +176 -0
- package/dist/es/schemas/ServiceOfferingList.json +34 -0
- package/dist/types/index.d.ts +42 -42
- package/dist/types/models/ICatalogueEntry.d.ts +4 -4
- package/dist/types/models/IComplianceCredential.d.ts +3 -3
- package/dist/types/models/IComplianceEvidence.d.ts +1 -1
- package/dist/types/models/IComplianceVerificationResult.d.ts +2 -2
- package/dist/types/models/IFederatedCatalogueComponent.d.ts +6 -6
- package/dist/types/models/api/ICatalogueEntryGetRequest.d.ts +1 -1
- package/dist/types/models/api/IDataResourceGetResponse.d.ts +1 -1
- package/dist/types/models/api/IDataResourceListRequest.d.ts +1 -1
- package/dist/types/models/api/IDataResourceListResponse.d.ts +1 -1
- package/dist/types/models/api/IDataSpaceConnectorGetResponse.d.ts +1 -1
- package/dist/types/models/api/IDataSpaceConnectorListRequest.d.ts +1 -1
- package/dist/types/models/api/IDataSpaceConnectorListResponse.d.ts +1 -1
- package/dist/types/models/api/IParticipantGetResponse.d.ts +1 -1
- package/dist/types/models/api/IParticipantListRequest.d.ts +1 -1
- package/dist/types/models/api/IParticipantListResponse.d.ts +1 -1
- package/dist/types/models/api/IServiceOfferingGetResponse.d.ts +1 -1
- package/dist/types/models/api/IServiceOfferingListRequest.d.ts +1 -1
- package/dist/types/models/api/IServiceOfferingListResponse.d.ts +1 -1
- package/dist/types/models/data-resource/IDataResourceCredential.d.ts +1 -1
- package/dist/types/models/data-resource/IDataResourceEntry.d.ts +2 -2
- package/dist/types/models/data-resource/IDataResourceList.d.ts +2 -2
- package/dist/types/models/data-space-connector/IDataSpaceConnector.d.ts +1 -1
- package/dist/types/models/data-space-connector/IDataSpaceConnectorCredential.d.ts +2 -2
- package/dist/types/models/data-space-connector/IDataSpaceConnectorEntry.d.ts +3 -3
- package/dist/types/models/data-space-connector/IDataSpaceConnectorList.d.ts +2 -2
- package/dist/types/models/federatedCatalogueContextInstances.d.ts +1 -1
- package/dist/types/models/federatedCatalogueContextType.d.ts +1 -1
- package/dist/types/models/federatedCatalogueEntryType.d.ts +1 -1
- package/dist/types/models/participant/IParticipantCredential.d.ts +1 -1
- package/dist/types/models/participant/IParticipantEntry.d.ts +2 -2
- package/dist/types/models/participant/IParticipantList.d.ts +2 -2
- package/dist/types/models/service-offering/IServiceOfferingCredential.d.ts +1 -1
- package/dist/types/models/service-offering/IServiceOfferingEntry.d.ts +2 -2
- package/dist/types/models/service-offering/IServiceOfferingList.d.ts +2 -2
- package/docs/changelog.md +32 -0
- package/docs/reference/interfaces/IComplianceEvidence.md +1 -1
- package/docs/reference/interfaces/IDataResourceEntry.md +1 -1
- package/docs/reference/interfaces/IDataSpaceConnector.md +1 -1
- package/docs/reference/interfaces/IDataSpaceConnectorEntry.md +1 -1
- package/docs/reference/interfaces/IFederatedCatalogueComponent.md +0 -8
- package/docs/reference/interfaces/IParticipantEntry.md +1 -1
- package/docs/reference/interfaces/IServiceOfferingEntry.md +1 -1
- package/package.json +5 -7
- package/dist/cjs/index.cjs +0 -1452
- package/dist/esm/index.mjs +0 -1446
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
4
|
+
import { FederatedCatalogueContexts } from "../models/federatedCatalogueContexts.js";
|
|
5
|
+
import { FederatedCatalogueTypes } from "../models/federatedCatalogueTypes.js";
|
|
6
|
+
import DataResourceEntrySchema from "../schemas/DataResourceEntry.json" with { type: "json" };
|
|
7
|
+
import DataResourceListSchema from "../schemas/DataResourceList.json" with { type: "json" };
|
|
8
|
+
import DataSpaceConnectorEntrySchema from "../schemas/DataSpaceConnectorEntry.json" with { type: "json" };
|
|
9
|
+
import DataSpaceConnectorListSchema from "../schemas/DataSpaceConnectorList.json" with { type: "json" };
|
|
10
|
+
import ParticipantEntrySchema from "../schemas/ParticipantEntry.json" with { type: "json" };
|
|
11
|
+
import ParticipantListSchema from "../schemas/ParticipantList.json" with { type: "json" };
|
|
12
|
+
import ServiceOfferingEntrySchema from "../schemas/ServiceOfferingEntry.json" with { type: "json" };
|
|
13
|
+
import ServiceOfferingListSchema from "../schemas/ServiceOfferingList.json" with { type: "json" };
|
|
14
|
+
/**
|
|
15
|
+
* Handle all the data types for federated catalogue.
|
|
16
|
+
*/
|
|
17
|
+
export class FederatedCatalogueDataTypes {
|
|
18
|
+
/**
|
|
19
|
+
* Register all the data types.
|
|
20
|
+
*/
|
|
21
|
+
static registerTypes() {
|
|
22
|
+
DataTypeHandlerFactory.register(`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.DataResourceEntry}`, () => ({
|
|
23
|
+
context: FederatedCatalogueContexts.ContextRoot,
|
|
24
|
+
type: FederatedCatalogueTypes.DataResourceEntry,
|
|
25
|
+
defaultValue: {},
|
|
26
|
+
jsonSchema: async () => DataResourceEntrySchema
|
|
27
|
+
}));
|
|
28
|
+
DataTypeHandlerFactory.register(`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.DataResourceList}`, () => ({
|
|
29
|
+
context: FederatedCatalogueContexts.ContextRoot,
|
|
30
|
+
type: FederatedCatalogueTypes.DataResourceList,
|
|
31
|
+
defaultValue: {},
|
|
32
|
+
jsonSchema: async () => DataResourceListSchema
|
|
33
|
+
}));
|
|
34
|
+
DataTypeHandlerFactory.register(`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.DataSpaceConnectorEntry}`, () => ({
|
|
35
|
+
context: FederatedCatalogueContexts.ContextRoot,
|
|
36
|
+
type: FederatedCatalogueTypes.DataSpaceConnectorEntry,
|
|
37
|
+
defaultValue: {},
|
|
38
|
+
jsonSchema: async () => DataSpaceConnectorEntrySchema
|
|
39
|
+
}));
|
|
40
|
+
DataTypeHandlerFactory.register(`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.DataSpaceConnectorList}`, () => ({
|
|
41
|
+
context: FederatedCatalogueContexts.ContextRoot,
|
|
42
|
+
type: FederatedCatalogueTypes.DataSpaceConnectorList,
|
|
43
|
+
defaultValue: {},
|
|
44
|
+
jsonSchema: async () => DataSpaceConnectorListSchema
|
|
45
|
+
}));
|
|
46
|
+
DataTypeHandlerFactory.register(`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.ParticipantEntry}`, () => ({
|
|
47
|
+
context: FederatedCatalogueContexts.ContextRoot,
|
|
48
|
+
type: FederatedCatalogueTypes.ParticipantEntry,
|
|
49
|
+
defaultValue: {},
|
|
50
|
+
jsonSchema: async () => ParticipantEntrySchema
|
|
51
|
+
}));
|
|
52
|
+
DataTypeHandlerFactory.register(`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.ParticipantList}`, () => ({
|
|
53
|
+
context: FederatedCatalogueContexts.ContextRoot,
|
|
54
|
+
type: FederatedCatalogueTypes.ParticipantList,
|
|
55
|
+
defaultValue: {},
|
|
56
|
+
jsonSchema: async () => ParticipantListSchema
|
|
57
|
+
}));
|
|
58
|
+
DataTypeHandlerFactory.register(`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.ServiceOfferingEntry}`, () => ({
|
|
59
|
+
context: FederatedCatalogueContexts.ContextRoot,
|
|
60
|
+
type: FederatedCatalogueTypes.ServiceOfferingEntry,
|
|
61
|
+
defaultValue: {},
|
|
62
|
+
jsonSchema: async () => ServiceOfferingEntrySchema
|
|
63
|
+
}));
|
|
64
|
+
DataTypeHandlerFactory.register(`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.ServiceOfferingList}`, () => ({
|
|
65
|
+
context: FederatedCatalogueContexts.ContextRoot,
|
|
66
|
+
type: FederatedCatalogueTypes.ServiceOfferingList,
|
|
67
|
+
defaultValue: {},
|
|
68
|
+
jsonSchema: async () => ServiceOfferingListSchema
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=federatedCatalogueDataTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"federatedCatalogueDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/federatedCatalogueDataTypes.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHandlerFactory, type IJsonSchema } from \"@twin.org/data-core\";\nimport { FederatedCatalogueContexts } from \"../models/federatedCatalogueContexts.js\";\nimport { FederatedCatalogueTypes } from \"../models/federatedCatalogueTypes.js\";\nimport DataResourceEntrySchema from \"../schemas/DataResourceEntry.json\" with { type: \"json\" };\nimport DataResourceListSchema from \"../schemas/DataResourceList.json\" with { type: \"json\" };\nimport DataSpaceConnectorEntrySchema from \"../schemas/DataSpaceConnectorEntry.json\" with { type: \"json\" };\nimport DataSpaceConnectorListSchema from \"../schemas/DataSpaceConnectorList.json\" with { type: \"json\" };\nimport ParticipantEntrySchema from \"../schemas/ParticipantEntry.json\" with { type: \"json\" };\nimport ParticipantListSchema from \"../schemas/ParticipantList.json\" with { type: \"json\" };\nimport ServiceOfferingEntrySchema from \"../schemas/ServiceOfferingEntry.json\" with { type: \"json\" };\nimport ServiceOfferingListSchema from \"../schemas/ServiceOfferingList.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for federated catalogue.\n */\nexport class FederatedCatalogueDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.DataResourceEntry}`,\n\t\t\t() => ({\n\t\t\t\tcontext: FederatedCatalogueContexts.ContextRoot,\n\t\t\t\ttype: FederatedCatalogueTypes.DataResourceEntry,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => DataResourceEntrySchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.DataResourceList}`,\n\t\t\t() => ({\n\t\t\t\tcontext: FederatedCatalogueContexts.ContextRoot,\n\t\t\t\ttype: FederatedCatalogueTypes.DataResourceList,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => DataResourceListSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.DataSpaceConnectorEntry}`,\n\t\t\t() => ({\n\t\t\t\tcontext: FederatedCatalogueContexts.ContextRoot,\n\t\t\t\ttype: FederatedCatalogueTypes.DataSpaceConnectorEntry,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => DataSpaceConnectorEntrySchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.DataSpaceConnectorList}`,\n\t\t\t() => ({\n\t\t\t\tcontext: FederatedCatalogueContexts.ContextRoot,\n\t\t\t\ttype: FederatedCatalogueTypes.DataSpaceConnectorList,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => DataSpaceConnectorListSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.ParticipantEntry}`,\n\t\t\t() => ({\n\t\t\t\tcontext: FederatedCatalogueContexts.ContextRoot,\n\t\t\t\ttype: FederatedCatalogueTypes.ParticipantEntry,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => ParticipantEntrySchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.ParticipantList}`,\n\t\t\t() => ({\n\t\t\t\tcontext: FederatedCatalogueContexts.ContextRoot,\n\t\t\t\ttype: FederatedCatalogueTypes.ParticipantList,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => ParticipantListSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.ServiceOfferingEntry}`,\n\t\t\t() => ({\n\t\t\t\tcontext: FederatedCatalogueContexts.ContextRoot,\n\t\t\t\ttype: FederatedCatalogueTypes.ServiceOfferingEntry,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => ServiceOfferingEntrySchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FederatedCatalogueContexts.ContextRoot}${FederatedCatalogueTypes.ServiceOfferingList}`,\n\t\t\t() => ({\n\t\t\t\tcontext: FederatedCatalogueContexts.ContextRoot,\n\t\t\t\ttype: FederatedCatalogueTypes.ServiceOfferingList,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => ServiceOfferingListSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
export * from "./dataTypes/federatedCatalogueDataTypes.js";
|
|
4
|
+
export * from "./models/api/ICatalogueEntryGetRequest.js";
|
|
5
|
+
export * from "./models/api/ICompliancePresentationRequest.js";
|
|
6
|
+
export * from "./models/api/IDataResourceGetResponse.js";
|
|
7
|
+
export * from "./models/api/IDataResourceListRequest.js";
|
|
8
|
+
export * from "./models/api/IDataResourceListResponse.js";
|
|
9
|
+
export * from "./models/api/IDataSpaceConnectorGetResponse.js";
|
|
10
|
+
export * from "./models/api/IDataSpaceConnectorListRequest.js";
|
|
11
|
+
export * from "./models/api/IDataSpaceConnectorListResponse.js";
|
|
12
|
+
export * from "./models/api/IFederatedCatalogueGetRequest.js";
|
|
13
|
+
export * from "./models/api/IParticipantGetResponse.js";
|
|
14
|
+
export * from "./models/api/IParticipantListRequest.js";
|
|
15
|
+
export * from "./models/api/IParticipantListResponse.js";
|
|
16
|
+
export * from "./models/api/IServiceOfferingGetResponse.js";
|
|
17
|
+
export * from "./models/api/IServiceOfferingListRequest.js";
|
|
18
|
+
export * from "./models/api/IServiceOfferingListResponse.js";
|
|
19
|
+
export * from "./models/data-resource/IDataResourceCredential.js";
|
|
20
|
+
export * from "./models/data-resource/IDataResourceEntry.js";
|
|
21
|
+
export * from "./models/data-resource/IDataResourceList.js";
|
|
22
|
+
export * from "./models/data-space-connector/IDataSpaceConnector.js";
|
|
23
|
+
export * from "./models/data-space-connector/IDataSpaceConnectorCredential.js";
|
|
24
|
+
export * from "./models/data-space-connector/IDataSpaceConnectorEntry.js";
|
|
25
|
+
export * from "./models/data-space-connector/IDataSpaceConnectorList.js";
|
|
26
|
+
export * from "./models/federatedCatalogueContextInstances.js";
|
|
27
|
+
export * from "./models/federatedCatalogueContexts.js";
|
|
28
|
+
export * from "./models/federatedCatalogueContextType.js";
|
|
29
|
+
export * from "./models/federatedCatalogueEntryType.js";
|
|
30
|
+
export * from "./models/federatedCatalogueTypes.js";
|
|
31
|
+
export * from "./models/ICatalogueEntry.js";
|
|
32
|
+
export * from "./models/IComplianceCredential.js";
|
|
33
|
+
export * from "./models/IComplianceEvidence.js";
|
|
34
|
+
export * from "./models/IComplianceVerificationResult.js";
|
|
35
|
+
export * from "./models/ICredential.js";
|
|
36
|
+
export * from "./models/IFederatedCatalogueComponent.js";
|
|
37
|
+
export * from "./models/IVerificationResult.js";
|
|
38
|
+
export * from "./models/participant/IParticipantCredential.js";
|
|
39
|
+
export * from "./models/participant/IParticipantEntry.js";
|
|
40
|
+
export * from "./models/participant/IParticipantList.js";
|
|
41
|
+
export * from "./models/service-offering/IServiceOfferingCredential.js";
|
|
42
|
+
export * from "./models/service-offering/IServiceOfferingEntry.js";
|
|
43
|
+
export * from "./models/service-offering/IServiceOfferingList.js";
|
|
44
|
+
export * from "./models/verificationFailureReasons.js";
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mDAAmD,CAAC;AAClE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sDAAsD,CAAC;AACrE,cAAc,gEAAgE,CAAC;AAC/E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,0DAA0D,CAAC;AACzE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC;AACxC,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,yDAAyD,CAAC;AACxE,cAAc,oDAAoD,CAAC;AACnE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/federatedCatalogueDataTypes.js\";\nexport * from \"./models/api/ICatalogueEntryGetRequest.js\";\nexport * from \"./models/api/ICompliancePresentationRequest.js\";\nexport * from \"./models/api/IDataResourceGetResponse.js\";\nexport * from \"./models/api/IDataResourceListRequest.js\";\nexport * from \"./models/api/IDataResourceListResponse.js\";\nexport * from \"./models/api/IDataSpaceConnectorGetResponse.js\";\nexport * from \"./models/api/IDataSpaceConnectorListRequest.js\";\nexport * from \"./models/api/IDataSpaceConnectorListResponse.js\";\nexport * from \"./models/api/IFederatedCatalogueGetRequest.js\";\nexport * from \"./models/api/IParticipantGetResponse.js\";\nexport * from \"./models/api/IParticipantListRequest.js\";\nexport * from \"./models/api/IParticipantListResponse.js\";\nexport * from \"./models/api/IServiceOfferingGetResponse.js\";\nexport * from \"./models/api/IServiceOfferingListRequest.js\";\nexport * from \"./models/api/IServiceOfferingListResponse.js\";\nexport * from \"./models/data-resource/IDataResourceCredential.js\";\nexport * from \"./models/data-resource/IDataResourceEntry.js\";\nexport * from \"./models/data-resource/IDataResourceList.js\";\nexport * from \"./models/data-space-connector/IDataSpaceConnector.js\";\nexport * from \"./models/data-space-connector/IDataSpaceConnectorCredential.js\";\nexport * from \"./models/data-space-connector/IDataSpaceConnectorEntry.js\";\nexport * from \"./models/data-space-connector/IDataSpaceConnectorList.js\";\nexport * from \"./models/federatedCatalogueContextInstances.js\";\nexport * from \"./models/federatedCatalogueContexts.js\";\nexport * from \"./models/federatedCatalogueContextType.js\";\nexport * from \"./models/federatedCatalogueEntryType.js\";\nexport * from \"./models/federatedCatalogueTypes.js\";\nexport * from \"./models/ICatalogueEntry.js\";\nexport * from \"./models/IComplianceCredential.js\";\nexport * from \"./models/IComplianceEvidence.js\";\nexport * from \"./models/IComplianceVerificationResult.js\";\nexport * from \"./models/ICredential.js\";\nexport * from \"./models/IFederatedCatalogueComponent.js\";\nexport * from \"./models/IVerificationResult.js\";\nexport * from \"./models/participant/IParticipantCredential.js\";\nexport * from \"./models/participant/IParticipantEntry.js\";\nexport * from \"./models/participant/IParticipantList.js\";\nexport * from \"./models/service-offering/IServiceOfferingCredential.js\";\nexport * from \"./models/service-offering/IServiceOfferingEntry.js\";\nexport * from \"./models/service-offering/IServiceOfferingList.js\";\nexport * from \"./models/verificationFailureReasons.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICatalogueBase.js","sourceRoot":"","sources":["../../../src/models/ICatalogueBase.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Catalogue entry base fields.\n */\nexport interface ICatalogueBase {\n\t/**\n\t * The trusted issuer of the compliance credential\n\t */\n\tissuer: string;\n\n\t/**\n\t * Valid from (as per W3C VC Data Model v2)\n\t */\n\tvalidFrom: string;\n\n\t/**\n\t * Valid until (as per W3C VC Data Model v2)\n\t */\n\tvalidUntil: string;\n\n\t/**\n\t * The creation date.\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * The evidences concerning the data resource.\n\t */\n\tevidence: string[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICatalogueEntry.js","sourceRoot":"","sources":["../../../src/models/ICatalogueEntry.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataResourceEntry } from \"./data-resource/IDataResourceEntry.js\";\nimport type { IDataSpaceConnectorEntry } from \"./data-space-connector/IDataSpaceConnectorEntry.js\";\nimport type { IParticipantEntry } from \"./participant/IParticipantEntry.js\";\nimport type { IServiceOfferingEntry } from \"./service-offering/IServiceOfferingEntry.js\";\n\n/**\n * Catalogue entry base fields.\n */\nexport type ICatalogueEntry =\n\t| IParticipantEntry\n\t| IDataSpaceConnectorEntry\n\t| IServiceOfferingEntry\n\t| IDataResourceEntry;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IComplianceCredential.js","sourceRoot":"","sources":["../../../src/models/IComplianceCredential.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { GaiaXContexts } from \"@twin.org/standards-gaia-x\";\nimport type { DidContexts, DidTypes } from \"@twin.org/standards-w3c-did\";\nimport type { FederatedCatalogueTypes } from \"./federatedCatalogueTypes.js\";\nimport type { IComplianceEvidence } from \"./IComplianceEvidence.js\";\nimport type { ICredential } from \"./ICredential.js\";\n\n/**\n * A Compliance credential.\n */\nexport interface IComplianceCredential extends ICredential {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof DidContexts.ContextVCv2,\n\t\ttypeof GaiaXContexts.ContextRoot,\n\t\ttypeof DidContexts.ContextSecurityJws2020,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * Type of Credential.\n\t */\n\ttype: [typeof DidTypes.VerifiableCredential, typeof FederatedCatalogueTypes.ComplianceCredential];\n\n\t/**\n\t * A compliance credential requires a validity period\n\t */\n\tvalidFrom: string;\n\n\t/**\n\t * A compliance credential requires a validity period\n\t */\n\tvalidUntil: string;\n\n\t/**\n\t * Compliance evidence. It is mandatory.\n\t *\n\t */\n\tevidence: IComplianceEvidence[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IComplianceEvidence.js","sourceRoot":"","sources":["../../../src/models/IComplianceEvidence.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { FederatedCatalogueTypes } from \"./federatedCatalogueTypes.js\";\n\n/**\n * Compliance Evidence.\n */\nexport interface IComplianceEvidence extends IJsonLdNodeObject {\n\t/**\n\t * Resolvable Id that allows to get access to the credential that serves as evidence.\n\t */\n\tid: string;\n\n\t/**\n\t * Type of evidence.\n\t */\n\ttype: typeof FederatedCatalogueTypes.CompliantCredential;\n\n\t/**\n\t * One or more cryptographic digests, as defined by the hash-expression\n\t * ABNF grammar defined in the Sub-resource Integrity specification,\n\t * Section 3.5: The integrity attribute.\n\t */\n\tdigestSRI: string;\n\n\t/**\n\t * Original type\n\t *\n\t */\n\tcredentialType: string | string[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IComplianceVerificationResult.js","sourceRoot":"","sources":["../../../src/models/IComplianceVerificationResult.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ICredential } from \"./ICredential.js\";\nimport type { IVerificationResult } from \"./IVerificationResult.js\";\n\n/**\n * Compliance verification result\n */\nexport interface IComplianceVerificationResult extends IVerificationResult {\n\t/**\n\t * The credentials involved\n\t */\n\tcredentials: ICredential[];\n\n\t/**\n\t * Filled in case an evidence cannot be verified to provide the reason\n\t */\n\tevidenceVerificationResult?: IVerificationResult;\n\n\t/**\n\t * The evidences that failed to be verified.\n\t */\n\tevidenceFailedToVerify?: string[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICredential.js","sourceRoot":"","sources":["../../../src/models/ICredential.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDidVerifiableCredentialV2 } from \"@twin.org/standards-w3c-did\";\n\n/**\n * A credential with subject.\n */\nexport interface ICredential extends IDidVerifiableCredentialV2 {\n\t/**\n\t * The Id of the credential, it is mandatory.\n\t */\n\tid: string;\n\n\t/**\n\t * The issuer of the credential, it is mandatory.\n\t */\n\tissuer: string;\n\n\t/**\n\t * Credential subject must always include id and type\n\t */\n\tcredentialSubject: IDidVerifiableCredentialV2[\"credentialSubject\"] & {\n\t\tid: string;\n\t\ttype: string | string[];\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFederatedCatalogueComponent.js","sourceRoot":"","sources":["../../../src/models/IFederatedCatalogueComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IDataResourceList } from \"./data-resource/IDataResourceList.js\";\nimport type { IDataSpaceConnectorList } from \"./data-space-connector/IDataSpaceConnectorList.js\";\nimport type { FederatedCatalogueEntryType } from \"./federatedCatalogueEntryType.js\";\nimport type { ICatalogueEntry } from \"./ICatalogueEntry.js\";\nimport type { IParticipantList } from \"./participant/IParticipantList.js\";\nimport type { IServiceOfferingList } from \"./service-offering/IServiceOfferingList.js\";\n\n/**\n * Interface describing a Federated Catalogue Contract.\n */\nexport interface IFederatedCatalogueComponent extends IComponent {\n\t/**\n\t * Registers a Participant's compliance Credential to the service.\n\t * @param credential The credential as JWT.\n\t * @returns The participant Id (usually a DID).\n\t */\n\tregisterComplianceCredential(credential: string): Promise<string>;\n\n\t/**\n\t * Query the federated catalogue.\n\t * @param participant The identity of the participant.\n\t * @param legalRegistrationNumber The legal registration number.\n\t * @param lrnType The legal registration number type (EORI, VATID, GLEIF, Kenya's PIN, etc.)\n\t * @param cursor The cursor to request the next chunk of entities.\n\t * @param limit Limit the number of entities to return.\n\t * @returns All the entities for the storage matching the conditions,\n\t * and a cursor which can be used to request more entities.\n\t * @throws NotImplementedError if the implementation does not support retrieval.\n\t */\n\tqueryParticipants(\n\t\tparticipant?: string,\n\t\tlegalRegistrationNumber?: string,\n\t\tlrnType?: string,\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<IParticipantList>;\n\n\t/**\n\t * Registers a Data Space Connector to the service.\n\t * @param credential The credential as JWT.\n\t * @returns The Data Space Connector Id registered.\n\t */\n\tregisterDataSpaceConnectorCredential(credential: string): Promise<string>;\n\n\t/**\n\t * Query the federated catalogue.\n\t * @param id Data Space Connector Id.\n\t * @param maintainer The identity of the participant maintaining the Data Space Connector.\n\t * @param cursor The cursor to request the next chunk of entities.\n\t * @param limit Limit the number of entities to return.\n\t * @returns All the entities for the storage matching the conditions,\n\t * and a cursor which can be used to request more entities.\n\t * @throws NotImplementedError if the implementation does not support retrieval.\n\t */\n\tqueryDataSpaceConnectors(\n\t\tid?: string,\n\t\tmaintainer?: string,\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<IDataSpaceConnectorList>;\n\n\t/**\n\t * Registers a service offering Credential to the service.\n\t * @param credential The credential as JWT.\n\t * @returns The Id of the Service Offerings registered.\n\t */\n\tregisterServiceOfferingCredential(credential: string): Promise<string[]>;\n\n\t/**\n\t * Registers a data resource Credential to the service.\n\t * @param credential The credential as JWT.\n\t * @returns The Id of the Data Resources registered.\n\t */\n\tregisterDataResourceCredential(credential: string): Promise<string[]>;\n\n\t/**\n\t * Query the federated catalogue.\n\t * @param id Service Offering id.\n\t * @param providedBy The identity of the participant providing the Offering.\n\t * @param cursor The cursor to request the next chunk of entities.\n\t * @param limit Limit the number of entities to return.\n\t * @returns All the entities for the storage matching the conditions,\n\t * and a cursor which can be used to request more entities.\n\t * @throws NotImplementedError if the implementation does not support retrieval.\n\t */\n\tqueryServiceOfferings(\n\t\tid?: string,\n\t\tprovidedBy?: string,\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<IServiceOfferingList>;\n\n\t/**\n\t * Query the federated catalogue.\n\t * @param id The id of the Data Resource.\n\t * @param producedBy The identity of the participant producing the data behind the data resource.\n\t * @param cursor The cursor to request the next chunk of entities.\n\t * @param limit Limit the number of entities to return.\n\t * @returns All the entities for the storage matching the conditions,\n\t * and a cursor which can be used to request more entities.\n\t * @throws NotImplementedError if the implementation does not support retrieval.\n\t */\n\tqueryDataResources(\n\t\tid?: string,\n\t\tproducedBy?: string,\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<IDataResourceList>;\n\n\t/**\n\t * Returns a Federated Catalogue entry.\n\t * @param entryType The type of entry.\n\t * @param entryId The entry's id.\n\t * @returns Catalogue Entry\n\t * @throws NotFoundError if not found.\n\t */\n\tgetEntry(entryType: FederatedCatalogueEntryType, entryId: string): Promise<ICatalogueEntry>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IVerificationResult.js","sourceRoot":"","sources":["../../../src/models/IVerificationResult.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Verification Result\n */\nexport interface IVerificationResult {\n\t/**\n\t * True if verified. False the opposite.\n\t */\n\tverified: boolean;\n\t/**\n\t * Verification failure reason.\n\t */\n\tverificationFailureReason?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICatalogueEntryGetRequest.js","sourceRoot":"","sources":["../../../../src/models/api/ICatalogueEntryGetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IFederatedCatalogueGetRequest } from \"./IFederatedCatalogueGetRequest.js\";\n\n/**\n * Get a Catalogue Entry.\n */\nexport interface ICatalogueEntryGetRequest extends IFederatedCatalogueGetRequest {\n\t/**\n\t * The parameters from the path.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the entry (Participant, Service, etc.) to get.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICompliancePresentationRequest.js","sourceRoot":"","sources":["../../../../src/models/api/ICompliancePresentationRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Register a new Compliance Credential.\n */\nexport interface ICompliancePresentationRequest {\n\t/**\n\t * The data to be used in the create.\n\t */\n\tbody: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataResourceGetResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IDataResourceGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataResourceEntry } from \"../data-resource/IDataResourceEntry.js\";\n\n/**\n * Service Offering response\n */\nexport interface IDataResourceGetResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IDataResourceEntry;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataResourceListRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IDataResourceListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IFederatedCatalogueGetRequest } from \"./IFederatedCatalogueGetRequest.js\";\n\n/**\n * Get the a list of the data resource entries.\n */\nexport interface IDataResourceListRequest extends IFederatedCatalogueGetRequest {\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The Id of the Data Resource.\n\t\t */\n\t\tid?: string;\n\n\t\t/**\n\t\t * The service provider.\n\t\t */\n\t\tproducedBy?: string;\n\n\t\t/**\n\t\t * The optional cursor to get next chunk.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * Limit the number of entities to return.\n\t\t */\n\t\tlimit?: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataResourceListResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IDataResourceListResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataResourceList } from \"../data-resource/IDataResourceList.js\";\n\n/**\n * Response fo data resource list.\n */\nexport interface IDataResourceListResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IDataResourceList;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataSpaceConnectorGetResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IDataSpaceConnectorGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataSpaceConnectorEntry } from \"../data-space-connector/IDataSpaceConnectorEntry.js\";\n\n/**\n * Service Offering response\n */\nexport interface IDataSpaceConnectorGetResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IDataSpaceConnectorEntry;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataSpaceConnectorListRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IDataSpaceConnectorListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IFederatedCatalogueGetRequest } from \"./IFederatedCatalogueGetRequest.js\";\n\n/**\n * Get the a list of the data space connector entries.\n */\nexport interface IDataSpaceConnectorListRequest extends IFederatedCatalogueGetRequest {\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The id of the Data Space Connector.\n\t\t */\n\t\tid?: string;\n\n\t\t/**\n\t\t * The maintainer\n\t\t */\n\t\tmaintainedBy?: string;\n\n\t\t/**\n\t\t * The optional cursor to get next chunk.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * Limit the number of entities to return.\n\t\t */\n\t\tlimit?: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataSpaceConnectorListResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IDataSpaceConnectorListResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataSpaceConnectorList } from \"../data-space-connector/IDataSpaceConnectorList.js\";\n\n/**\n * Response for Data Space Connector list\n */\nexport interface IDataSpaceConnectorListResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IDataSpaceConnectorList;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFederatedCatalogueGetRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IFederatedCatalogueGetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * Base interface for Federated Catalogue Get Requests\n */\nexport interface IFederatedCatalogueGetRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IParticipantGetResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IParticipantGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IParticipantEntry } from \"../participant/IParticipantEntry.js\";\n\n/**\n * Response for a Participant Entry.\n */\nexport interface IParticipantGetResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IParticipantEntry;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IParticipantListRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IParticipantListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IFederatedCatalogueGetRequest } from \"./IFederatedCatalogueGetRequest.js\";\n\n/**\n * Get the a list of the participant entries.\n */\nexport interface IParticipantListRequest extends IFederatedCatalogueGetRequest {\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The participant Id.\n\t\t */\n\t\tid?: string;\n\n\t\t/**\n\t\t * The legal registration number.\n\t\t */\n\t\tregistrationNumber?: string;\n\n\t\t/**\n\t\t * The legal registration number type.\n\t\t */\n\t\tlrnType?: string;\n\n\t\t/**\n\t\t * The optional cursor to get next chunk.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * Limit the number of entities to return.\n\t\t */\n\t\tlimit?: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IParticipantListResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IParticipantListResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IParticipantList } from \"../participant/IParticipantList.js\";\n\n/**\n * Response for participant list query\n */\nexport interface IParticipantListResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IParticipantList;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IServiceOfferingGetResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IServiceOfferingGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IServiceOfferingEntry } from \"../service-offering/IServiceOfferingEntry.js\";\n\n/**\n * Service Offering response\n */\nexport interface IServiceOfferingGetResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IServiceOfferingEntry;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IServiceOfferingListRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IServiceOfferingListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IFederatedCatalogueGetRequest } from \"./IFederatedCatalogueGetRequest.js\";\n\n/**\n * Get the a list of the service offering entries.\n */\nexport interface IServiceOfferingListRequest extends IFederatedCatalogueGetRequest {\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The Service Offering Id.\n\t\t */\n\t\tid?: string;\n\n\t\t/**\n\t\t * The service provider.\n\t\t */\n\t\tprovidedBy?: string;\n\n\t\t/**\n\t\t * The optional cursor to get next chunk.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * Limit the number of entities to return.\n\t\t */\n\t\tlimit?: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IServiceOfferingListResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IServiceOfferingListResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IServiceOfferingList } from \"../service-offering/IServiceOfferingList.js\";\n\n/**\n * Response for Service Offering list\n */\nexport interface IServiceOfferingListResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IServiceOfferingList;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataResourceCredential.js","sourceRoot":"","sources":["../../../../src/models/data-resource/IDataResourceCredential.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataResource } from \"@twin.org/standards-gaia-x\";\nimport type { ICredential } from \"../ICredential.js\";\n\n/**\n * Data Resource Credential\n */\nexport interface IDataResourceCredential extends ICredential {\n\t/**\n\t * The subject of the Credential\n\t */\n\tcredentialSubject: IDataResource;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataResourceEntry.js","sourceRoot":"","sources":["../../../../src/models/data-resource/IDataResourceEntry.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataResource } from \"@twin.org/standards-gaia-x\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { FederatedCatalogueContextType } from \"../federatedCatalogueContextType.js\";\nimport type { ICatalogueBase } from \"../ICatalogueBase.js\";\n\n/**\n * Interface describing a Data Resource entry.\n */\nexport interface IDataResourceEntry extends ICatalogueBase, IDataResource {\n\t/**\n\t * The LD Context\n\t */\n\t\"@context\": FederatedCatalogueContextType;\n\n\t/**\n\t * Overwriting producedBy as we only store the identifier\n\t */\n\tproducedBy: string;\n\n\t/**\n\t * Overwriting copyrightOwnedBy as we only store the identifier\n\t */\n\tcopyrightOwnedBy: string;\n\n\t/**\n\t * Overwriting exposedThrough as we only store the id of the Data Exchange Component\n\t */\n\texposedThrough: string;\n\n\t/**\n\t * Overwriting to ensure always an array is stored\n\t */\n\tresourcePolicy: IOdrlPolicy[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataResourceList.js","sourceRoot":"","sources":["../../../../src/models/data-resource/IDataResourceList.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { SchemaOrgTypes } from \"@twin.org/standards-schema-org\";\nimport type { IDataResourceEntry } from \"./IDataResourceEntry.js\";\nimport type { FederatedCatalogueContextType } from \"../federatedCatalogueContextType.js\";\n\n/**\n * Interface describing a list of Data Resource entries.\n */\nexport interface IDataResourceList {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\": FederatedCatalogueContextType;\n\n\t/**\n\t * The type\n\t */\n\ttype: typeof SchemaOrgTypes.ItemList;\n\n\t/**\n\t * The components of the Collection\n\t *\n\t */\n\t[SchemaOrgTypes.ItemListElement]: Omit<IDataResourceEntry, \"@context\">[];\n\n\t/**\n\t * Next item cursor.\n\t */\n\t[SchemaOrgTypes.NextItem]?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataSpaceConnector.js","sourceRoot":"","sources":["../../../../src/models/data-space-connector/IDataSpaceConnector.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type {\n\tGaiaXContextType,\n\tGaiaXTypes,\n\tIDataExchangeComponent,\n\tIDataResource,\n\tIEndpoint\n} from \"@twin.org/standards-gaia-x\";\nimport type { FederatedCatalogueTypes } from \"../federatedCatalogueTypes.js\";\n\n/**\n * TWIN Data Space Connector.\n */\nexport interface IDataSpaceConnector extends IDataExchangeComponent {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\": GaiaXContextType;\n\n\t/**\n\t * A unique identifier given to this Data Space Connector.\n\t */\n\tid: string;\n\n\t/**\n\t * A Connector is a Data Exchange Component\n\t */\n\ttype: [\n\t\ttypeof GaiaXTypes.DataExchangeComponent,\n\t\ttypeof FederatedCatalogueTypes.DataSpaceConnector,\n\t\t...string[]\n\t];\n\n\t/**\n\t * Connector's Identity that allows to know public key of this Connector.\n\t */\n\tidentity: string;\n\n\t/**\n\t * Who maintains this Data Space Connector.\n\t */\n\tmaintainer: string;\n\n\t/**\n\t * The name of this Data Space Connector\n\t */\n\tname?: string;\n\n\t/**\n\t * A description of this Data Space Connector\n\t */\n\tdescription?: string;\n\n\t/**\n\t * The default endpoint of the Connector.\n\t * This endpoint can be used as a base to guess other endpoints in case they are not explicitly declared.\n\t */\n\tdefaultEndpoint: IEndpoint;\n\n\t/**\n\t * The endpoint used for data subscription by Consumers.\n\t * If the endpoint URL is a relative reference to a URL then it should be resolved using the\n\t * default endpoint URL as a base URL.\n\t */\n\tsubscriptionActivityEndpoint?: IEndpoint;\n\n\t/**\n\t * The endpoint used by Providers to push data.\n\t * If the endpoint URL is a relative reference to a URL then it should be resolved using the\n\t * default endpoint URL as a base URL.\n\t */\n\tpushActivityEndpoint: IEndpoint;\n\n\t/**\n\t * The endpoint used by Consumers to pull data from.\n\t * If the endpoint URL is a relative reference to a URL then it should be resolved using the\n\t * default endpoint URL as a base URL.\n\t */\n\tpullDataEndpoint: IEndpoint;\n\n\t/**\n\t * The resources offered by this Connector.\n\t * A resource index is usually a relative reference to the default endpoint base URL.\n\t * Nonetheless if the resource already declares an endpoint URL that one should be taken.\n\t * It is captured the case where the Data Resource is supplied\n\t * via a list of identifiers or through a map indexed by Id\n\t *\n\t */\n\tofferedResource:\n\t\t| string[]\n\t\t| {\n\t\t\t\t[resourceId: string]:\n\t\t\t\t\t| IDataResource\n\t\t\t\t\t| (IJsonLdNodeObject & { id: string; type: typeof GaiaXTypes.DataResource });\n\t\t };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataSpaceConnectorCredential.js","sourceRoot":"","sources":["../../../../src/models/data-space-connector/IDataSpaceConnectorCredential.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataSpaceConnector } from \"./IDataSpaceConnector.js\";\nimport type { ICredential } from \"../ICredential.js\";\n\n/**\n * Participant Credential.\n */\nexport interface IDataSpaceConnectorCredential extends ICredential {\n\t/**\n\t * The Credential Subject\n\t */\n\tcredentialSubject: IDataSpaceConnector;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataSpaceConnectorEntry.js","sourceRoot":"","sources":["../../../../src/models/data-space-connector/IDataSpaceConnectorEntry.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ICatalogueBase } from \"../ICatalogueBase.js\";\nimport type { IDataSpaceConnector } from \"./IDataSpaceConnector.js\";\nimport type { FederatedCatalogueContextType } from \"../federatedCatalogueContextType.js\";\n\n/**\n * Interface describing a participant.\n */\nexport interface IDataSpaceConnectorEntry extends IDataSpaceConnector, ICatalogueBase {\n\t/**\n\t * The LD Context\n\t */\n\t\"@context\": FederatedCatalogueContextType;\n\n\t/**\n\t * Offered resources. Probably in the future this wll be separated in a different entry so\n\t * that a Data Space Connector entry does not need to be modified when a new Data Resource\n\t * is offered.\n\t */\n\tofferedResource: string[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataSpaceConnectorList.js","sourceRoot":"","sources":["../../../../src/models/data-space-connector/IDataSpaceConnectorList.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { SchemaOrgTypes } from \"@twin.org/standards-schema-org\";\nimport type { IDataSpaceConnectorEntry } from \"./IDataSpaceConnectorEntry.js\";\nimport type { FederatedCatalogueContextType } from \"../federatedCatalogueContextType.js\";\n\n/**\n * Interface describing a list of Data Space Connectors.\n */\nexport interface IDataSpaceConnectorList {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\": FederatedCatalogueContextType;\n\n\t/**\n\t * The type\n\t */\n\ttype: typeof SchemaOrgTypes.ItemList;\n\n\t/**\n\t * The components of the Collection\n\t *\n\t */\n\t[SchemaOrgTypes.ItemListElement]: Omit<IDataSpaceConnectorEntry, \"@context\">[];\n\n\t/**\n\t * Next item cursor.\n\t */\n\t[SchemaOrgTypes.NextItem]?: string;\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { GaiaXContexts } from "@twin.org/standards-gaia-x";
|
|
4
|
+
import { SchemaOrgContexts } from "@twin.org/standards-schema-org";
|
|
5
|
+
import { FederatedCatalogueContexts } from "./federatedCatalogueContexts.js";
|
|
6
|
+
/**
|
|
7
|
+
* The LD context instances concerning the Federated Catalogue.
|
|
8
|
+
*/
|
|
9
|
+
export class FederatedCatalogueContextInstances {
|
|
10
|
+
/**
|
|
11
|
+
* The LD Context of a list of Catalogue entries.
|
|
12
|
+
*/
|
|
13
|
+
static DEFAULT_LD_CONTEXT_ENTRY_LIST = [
|
|
14
|
+
SchemaOrgContexts.ContextRoot,
|
|
15
|
+
GaiaXContexts.ContextRoot,
|
|
16
|
+
FederatedCatalogueContexts.ContextRoot
|
|
17
|
+
];
|
|
18
|
+
/**
|
|
19
|
+
* The LD Context of a Catalogue entry.
|
|
20
|
+
*/
|
|
21
|
+
static DEFAULT_LD_CONTEXT_ENTRY = this.DEFAULT_LD_CONTEXT_ENTRY_LIST;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=federatedCatalogueContextInstances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"federatedCatalogueContextInstances.js","sourceRoot":"","sources":["../../../src/models/federatedCatalogueContextInstances.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAG7E;;GAEG;AACH,MAAM,OAAgB,kCAAkC;IACvD;;OAEG;IACI,MAAM,CAAC,6BAA6B,GAAkC;QAC5E,iBAAiB,CAAC,WAAW;QAC7B,aAAa,CAAC,WAAW;QACzB,0BAA0B,CAAC,WAAW;KACtC,CAAC;IAEF;;OAEG;IACI,MAAM,CAAC,wBAAwB,GACrC,IAAI,CAAC,6BAA6B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { GaiaXContexts } from \"@twin.org/standards-gaia-x\";\nimport { SchemaOrgContexts } from \"@twin.org/standards-schema-org\";\nimport { FederatedCatalogueContexts } from \"./federatedCatalogueContexts.js\";\nimport type { FederatedCatalogueContextType } from \"./federatedCatalogueContextType.js\";\n\n/**\n * The LD context instances concerning the Federated Catalogue.\n */\nexport abstract class FederatedCatalogueContextInstances {\n\t/**\n\t * The LD Context of a list of Catalogue entries.\n\t */\n\tpublic static DEFAULT_LD_CONTEXT_ENTRY_LIST: FederatedCatalogueContextType = [\n\t\tSchemaOrgContexts.ContextRoot,\n\t\tGaiaXContexts.ContextRoot,\n\t\tFederatedCatalogueContexts.ContextRoot\n\t];\n\n\t/**\n\t * The LD Context of a Catalogue entry.\n\t */\n\tpublic static DEFAULT_LD_CONTEXT_ENTRY: FederatedCatalogueContextType =\n\t\tthis.DEFAULT_LD_CONTEXT_ENTRY_LIST;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"federatedCatalogueContextType.js","sourceRoot":"","sources":["../../../src/models/federatedCatalogueContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { GaiaXContexts } from \"@twin.org/standards-gaia-x\";\nimport type { SchemaOrgContexts } from \"@twin.org/standards-schema-org\";\nimport type { FederatedCatalogueContexts } from \"./federatedCatalogueContexts.js\";\n\n/**\n * Type that defines the LD Context for the Federated Catalogue entities and entries.\n */\nexport type FederatedCatalogueContextType = [\n\ttypeof SchemaOrgContexts.ContextRoot,\n\ttypeof GaiaXContexts.ContextRoot,\n\ttypeof FederatedCatalogueContexts.ContextRoot\n];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The LD context concerning the Federated Catalogue.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const FederatedCatalogueContexts = {
|
|
8
|
+
/**
|
|
9
|
+
* The context root for the federated catalogue types.
|
|
10
|
+
*/
|
|
11
|
+
ContextRoot: "https://schema.twindev.org/federated-catalogue/"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=federatedCatalogueContexts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"federatedCatalogueContexts.js","sourceRoot":"","sources":["../../../src/models/federatedCatalogueContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC;;OAEG;IACH,WAAW,EAAE,iDAAiD;CACrD,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The LD context concerning the Federated Catalogue.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const FederatedCatalogueContexts = {\n\t/**\n\t * The context root for the federated catalogue types.\n\t */\n\tContextRoot: \"https://schema.twindev.org/federated-catalogue/\"\n} as const;\n\n/**\n * The Exported types\n */\nexport type FederatedCatalogueContexts =\n\t(typeof FederatedCatalogueContexts)[keyof typeof FederatedCatalogueContexts];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"federatedCatalogueEntryType.js","sourceRoot":"","sources":["../../../src/models/federatedCatalogueEntryType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { GaiaXTypes } from \"@twin.org/standards-gaia-x\";\nimport type { FederatedCatalogueTypes } from \"./federatedCatalogueTypes.js\";\n\n/**\n * Types of entries in the Federated Catalogue\n *\n */\nexport type FederatedCatalogueEntryType =\n\t| typeof GaiaXTypes.LegalPerson\n\t| typeof GaiaXTypes.DataExchangeComponent\n\t| typeof GaiaXTypes.DataResource\n\t| typeof GaiaXTypes.ServiceOffering\n\t| typeof FederatedCatalogueTypes.DataSpaceConnector;\n"]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The types concerning the Federated Catalogue.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const FederatedCatalogueTypes = {
|
|
8
|
+
/**
|
|
9
|
+
* A Credential that is compliant.
|
|
10
|
+
*/
|
|
11
|
+
CompliantCredential: "CompliantCredential",
|
|
12
|
+
/**
|
|
13
|
+
* A Compliance Credential.
|
|
14
|
+
*/
|
|
15
|
+
ComplianceCredential: "ComplianceCredential",
|
|
16
|
+
/**
|
|
17
|
+
* A Data Space Connector.
|
|
18
|
+
*/
|
|
19
|
+
DataSpaceConnector: "DataSpaceConnector",
|
|
20
|
+
/**
|
|
21
|
+
* A Data Resource Entry.
|
|
22
|
+
*/
|
|
23
|
+
DataResourceEntry: "DataResourceEntry",
|
|
24
|
+
/**
|
|
25
|
+
* A Data Space Connector List.
|
|
26
|
+
*/
|
|
27
|
+
DataResourceList: "DataResourceList",
|
|
28
|
+
/**
|
|
29
|
+
* A Data Space Connector Entry.
|
|
30
|
+
*/
|
|
31
|
+
DataSpaceConnectorEntry: "DataSpaceConnectorEntry",
|
|
32
|
+
/**
|
|
33
|
+
* A Data Space Connector List.
|
|
34
|
+
*/
|
|
35
|
+
DataSpaceConnectorList: "DataSpaceConnectorList",
|
|
36
|
+
/**
|
|
37
|
+
* A Participant Entry.
|
|
38
|
+
*/
|
|
39
|
+
ParticipantEntry: "ParticipantEntry",
|
|
40
|
+
/**
|
|
41
|
+
* A Participant List.
|
|
42
|
+
*/
|
|
43
|
+
ParticipantList: "ParticipantList",
|
|
44
|
+
/**
|
|
45
|
+
* A Service Offering Entry.
|
|
46
|
+
*/
|
|
47
|
+
ServiceOfferingEntry: "ServiceOfferingEntry",
|
|
48
|
+
/**
|
|
49
|
+
* A Service Offering List.
|
|
50
|
+
*/
|
|
51
|
+
ServiceOfferingList: "ServiceOfferingList"
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=federatedCatalogueTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"federatedCatalogueTypes.js","sourceRoot":"","sources":["../../../src/models/federatedCatalogueTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,kBAAkB,EAAE,oBAAoB;IAExC;;OAEG;IACH,iBAAiB,EAAE,mBAAmB;IAEtC;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;IAEpC;;OAEG;IACH,uBAAuB,EAAE,yBAAyB;IAElD;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;IAEpC;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;CACjC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types concerning the Federated Catalogue.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const FederatedCatalogueTypes = {\n\t/**\n\t * A Credential that is compliant.\n\t */\n\tCompliantCredential: \"CompliantCredential\",\n\n\t/**\n\t * A Compliance Credential.\n\t */\n\tComplianceCredential: \"ComplianceCredential\",\n\n\t/**\n\t * A Data Space Connector.\n\t */\n\tDataSpaceConnector: \"DataSpaceConnector\",\n\n\t/**\n\t * A Data Resource Entry.\n\t */\n\tDataResourceEntry: \"DataResourceEntry\",\n\n\t/**\n\t * A Data Space Connector List.\n\t */\n\tDataResourceList: \"DataResourceList\",\n\n\t/**\n\t * A Data Space Connector Entry.\n\t */\n\tDataSpaceConnectorEntry: \"DataSpaceConnectorEntry\",\n\n\t/**\n\t * A Data Space Connector List.\n\t */\n\tDataSpaceConnectorList: \"DataSpaceConnectorList\",\n\n\t/**\n\t * A Participant Entry.\n\t */\n\tParticipantEntry: \"ParticipantEntry\",\n\n\t/**\n\t * A Participant List.\n\t */\n\tParticipantList: \"ParticipantList\",\n\n\t/**\n\t * A Service Offering Entry.\n\t */\n\tServiceOfferingEntry: \"ServiceOfferingEntry\",\n\n\t/**\n\t * A Service Offering List.\n\t */\n\tServiceOfferingList: \"ServiceOfferingList\"\n} as const;\n\n/**\n * The Exported types\n */\nexport type FederatedCatalogueTypes =\n\t(typeof FederatedCatalogueTypes)[keyof typeof FederatedCatalogueTypes];\n"]}
|