@twin.org/standards-dataspace-protocol 0.0.3-next.2 → 0.0.3-next.4
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/dataspaceProtolDataTypes.js +100 -0
- package/dist/es/dataTypes/dataspaceProtolDataTypes.js.map +1 -0
- package/dist/es/index.js +10 -4
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/catalog/ICatalogError.js +2 -0
- package/dist/es/models/catalog/ICatalogError.js.map +1 -0
- package/dist/es/models/catalog/ICatalogRequestMessage.js +2 -0
- package/dist/es/models/catalog/ICatalogRequestMessage.js.map +1 -0
- package/dist/es/models/catalog/IDatasetRequestMessage.js +2 -0
- package/dist/es/models/catalog/IDatasetRequestMessage.js.map +1 -0
- package/dist/es/models/catalog/catalogTypes.js +22 -0
- package/dist/es/models/catalog/catalogTypes.js.map +1 -0
- package/dist/es/models/contractNegotiation/IContractAgreementMessage.js.map +1 -1
- package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js.map +1 -1
- package/dist/es/models/contractNegotiation/IContractNegotiation.js.map +1 -1
- package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +1 -1
- package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js.map +1 -1
- package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js.map +1 -1
- package/dist/es/models/contractNegotiation/IContractOfferMessage.js.map +1 -1
- package/dist/es/models/contractNegotiation/IContractRequestMessage.js.map +1 -1
- package/dist/es/models/contractNegotiation/contractNegotiationTypes.js +1 -1
- package/dist/es/models/contractNegotiation/contractNegotiationTypes.js.map +1 -1
- package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js +1 -1
- package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js.map +1 -1
- package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js +1 -1
- package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js.map +1 -1
- package/dist/es/models/dataspaceProtocolContextType.js +2 -0
- package/dist/es/models/dataspaceProtocolContextType.js.map +1 -0
- package/dist/es/models/dataspaceProtocolContexts.js +17 -0
- package/dist/es/models/dataspaceProtocolContexts.js.map +1 -0
- package/dist/es/schemas/CatalogError.json +71 -0
- package/dist/es/schemas/CatalogRequestMessage.json +62 -0
- package/dist/es/schemas/ContractAgreementMessage.json +4 -4
- package/dist/es/schemas/ContractAgreementVerificationMessage.json +4 -4
- package/dist/es/schemas/ContractNegotiation.json +4 -4
- package/dist/es/schemas/ContractNegotiationError.json +4 -4
- package/dist/es/schemas/ContractNegotiationEventMessage.json +4 -4
- package/dist/es/schemas/ContractNegotiationTerminationMessage.json +4 -4
- package/dist/es/schemas/ContractOfferMessage.json +4 -4
- package/dist/es/schemas/ContractRequestMessage.json +4 -4
- package/dist/es/schemas/DatasetRequestMessage.json +64 -0
- package/dist/types/dataTypes/{contractNegotiationDataTypes.d.ts → dataspaceProtolDataTypes.d.ts} +2 -2
- package/dist/types/index.d.ts +7 -3
- package/dist/types/models/catalog/ICatalogError.d.ts +24 -0
- package/dist/types/models/catalog/ICatalogRequestMessage.d.ts +20 -0
- package/dist/types/models/catalog/IDatasetRequestMessage.d.ts +20 -0
- package/dist/types/models/catalog/catalogTypes.d.ts +22 -0
- package/dist/types/models/contractNegotiation/IContractAgreementMessage.d.ts +2 -2
- package/dist/types/models/contractNegotiation/IContractAgreementVerificationMessage.d.ts +2 -2
- package/dist/types/models/contractNegotiation/IContractNegotiation.d.ts +2 -2
- package/dist/types/models/contractNegotiation/IContractNegotiationError.d.ts +2 -2
- package/dist/types/models/contractNegotiation/IContractNegotiationEventMessage.d.ts +2 -2
- package/dist/types/models/contractNegotiation/IContractNegotiationTerminationMessage.d.ts +2 -2
- package/dist/types/models/contractNegotiation/IContractOfferMessage.d.ts +2 -2
- package/dist/types/models/contractNegotiation/IContractRequestMessage.d.ts +2 -2
- package/dist/types/models/dataspaceProtocolContextType.d.ts +14 -0
- package/dist/types/models/dataspaceProtocolContexts.d.ts +17 -0
- package/docs/changelog.md +29 -0
- package/docs/reference/classes/{ContractNegotiationDataTypes.md → DataspaceProtocolDataTypes.md} +4 -4
- package/docs/reference/index.md +9 -4
- package/docs/reference/interfaces/ICatalogError.md +36 -0
- package/docs/reference/interfaces/ICatalogRequestMessage.md +28 -0
- package/docs/reference/interfaces/IContractAgreementMessage.md +1 -1
- package/docs/reference/interfaces/IContractAgreementVerificationMessage.md +1 -1
- package/docs/reference/interfaces/IContractNegotiation.md +1 -1
- package/docs/reference/interfaces/IContractNegotiationError.md +1 -1
- package/docs/reference/interfaces/IContractNegotiationEventMessage.md +1 -1
- package/docs/reference/interfaces/IContractNegotiationTerminationMessage.md +1 -1
- package/docs/reference/interfaces/IContractOfferMessage.md +1 -1
- package/docs/reference/interfaces/IContractRequestMessage.md +1 -1
- package/docs/reference/interfaces/IDatasetRequestMessage.md +28 -0
- package/docs/reference/type-aliases/CatalogTypes.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolContextType.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolContexts.md +5 -0
- package/docs/reference/variables/CatalogTypes.md +26 -0
- package/docs/reference/variables/DataspaceProtocolContexts.md +19 -0
- package/package.json +3 -2
- package/dist/es/dataTypes/contractNegotiationDataTypes.js +0 -81
- package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +0 -1
- package/dist/es/models/contractNegotiation/contractNegotiationContextType.js +0 -2
- package/dist/es/models/contractNegotiation/contractNegotiationContextType.js.map +0 -1
- package/dist/es/models/contractNegotiation/contractNegotiationContexts.js +0 -17
- package/dist/es/models/contractNegotiation/contractNegotiationContexts.js.map +0 -1
- package/dist/types/models/contractNegotiation/contractNegotiationContextType.d.ts +0 -14
- package/dist/types/models/contractNegotiation/contractNegotiationContexts.d.ts +0 -17
- package/docs/reference/type-aliases/ContractNegotiationContextType.md +0 -5
- package/docs/reference/type-aliases/ContractNegotiationContexts.md +0 -5
- package/docs/reference/variables/ContractNegotiationContexts.md +0 -19
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
2
|
+
import { JsonLdProcessor } from "@twin.org/data-json-ld";
|
|
3
|
+
import { CatalogTypes } from "../models/catalog/catalogTypes.js";
|
|
4
|
+
import { ContractNegotiationTypes } from "../models/contractNegotiation/contractNegotiationTypes.js";
|
|
5
|
+
import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
|
|
6
|
+
import CatalogError from "../schemas/CatalogError.json" with { type: "json" };
|
|
7
|
+
import CatalogRequestMessage from "../schemas/CatalogRequestMessage.json" with { type: "json" };
|
|
8
|
+
import ContractAgreementMessage from "../schemas/ContractAgreementMessage.json" with { type: "json" };
|
|
9
|
+
import ContractAgreementVerificationMessage from "../schemas/ContractAgreementVerificationMessage.json" with { type: "json" };
|
|
10
|
+
import ContractNegotiation from "../schemas/ContractNegotiation.json" with { type: "json" };
|
|
11
|
+
import ContractNegotiationError from "../schemas/ContractNegotiationError.json" with { type: "json" };
|
|
12
|
+
import ContractNegotiationEventMessage from "../schemas/ContractNegotiationEventMessage.json" with { type: "json" };
|
|
13
|
+
import ContractNegotiationEventType from "../schemas/ContractNegotiationEventType.json" with { type: "json" };
|
|
14
|
+
import ContractNegotiationStateType from "../schemas/ContractNegotiationStateType.json" with { type: "json" };
|
|
15
|
+
import ContractNegotiationTerminationMessage from "../schemas/ContractNegotiationTerminationMessage.json" with { type: "json" };
|
|
16
|
+
import ContractOfferMessage from "../schemas/ContractOfferMessage.json" with { type: "json" };
|
|
17
|
+
import ContractRequestMessage from "../schemas/ContractRequestMessage.json" with { type: "json" };
|
|
18
|
+
import DatasetRequestMessage from "../schemas/DatasetRequestMessage.json" with { type: "json" };
|
|
19
|
+
/**
|
|
20
|
+
* Handle all the data types for Dataspace Protocol.
|
|
21
|
+
*/
|
|
22
|
+
export class DataspaceProtocolDataTypes {
|
|
23
|
+
/**
|
|
24
|
+
* Register the JSON-LD Redirects.
|
|
25
|
+
*/
|
|
26
|
+
static registerRedirects() {
|
|
27
|
+
JsonLdProcessor.addRedirect(new RegExp(DataspaceProtocolContexts.ContextRoot), DataspaceProtocolContexts.ContextRedirect);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Register all the data types.
|
|
31
|
+
*/
|
|
32
|
+
static registerTypes() {
|
|
33
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`, () => ({
|
|
34
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
35
|
+
type: ContractNegotiationTypes.ContractAgreementMessage,
|
|
36
|
+
jsonSchema: async () => ContractAgreementMessage
|
|
37
|
+
}));
|
|
38
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`, () => ({
|
|
39
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
40
|
+
type: ContractNegotiationTypes.ContractAgreementVerificationMessage,
|
|
41
|
+
jsonSchema: async () => ContractAgreementVerificationMessage
|
|
42
|
+
}));
|
|
43
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`, () => ({
|
|
44
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
45
|
+
type: ContractNegotiationTypes.ContractNegotiation,
|
|
46
|
+
jsonSchema: async () => ContractNegotiation
|
|
47
|
+
}));
|
|
48
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`, () => ({
|
|
49
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
50
|
+
type: ContractNegotiationTypes.ContractNegotiationError,
|
|
51
|
+
jsonSchema: async () => ContractNegotiationError
|
|
52
|
+
}));
|
|
53
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`, () => ({
|
|
54
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
55
|
+
type: ContractNegotiationTypes.ContractNegotiationEventMessage,
|
|
56
|
+
jsonSchema: async () => ContractNegotiationEventMessage
|
|
57
|
+
}));
|
|
58
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`, () => ({
|
|
59
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
60
|
+
type: ContractNegotiationTypes.ContractNegotiationTerminationMessage,
|
|
61
|
+
jsonSchema: async () => ContractNegotiationTerminationMessage
|
|
62
|
+
}));
|
|
63
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`, () => ({
|
|
64
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
65
|
+
type: ContractNegotiationTypes.ContractOfferMessage,
|
|
66
|
+
jsonSchema: async () => ContractOfferMessage
|
|
67
|
+
}));
|
|
68
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`, () => ({
|
|
69
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
70
|
+
type: ContractNegotiationTypes.ContractRequestMessage,
|
|
71
|
+
jsonSchema: async () => ContractRequestMessage
|
|
72
|
+
}));
|
|
73
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`, () => ({
|
|
74
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
75
|
+
type: ContractNegotiationTypes.ContractNegotiationEventType,
|
|
76
|
+
jsonSchema: async () => ContractNegotiationEventType
|
|
77
|
+
}));
|
|
78
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`, () => ({
|
|
79
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
80
|
+
type: ContractNegotiationTypes.ContractNegotiationStateType,
|
|
81
|
+
jsonSchema: async () => ContractNegotiationStateType
|
|
82
|
+
}));
|
|
83
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogRequestMessage}`, () => ({
|
|
84
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
85
|
+
type: CatalogTypes.CatalogRequestMessage,
|
|
86
|
+
jsonSchema: async () => CatalogRequestMessage
|
|
87
|
+
}));
|
|
88
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.DatasetRequestMessage}`, () => ({
|
|
89
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
90
|
+
type: CatalogTypes.DatasetRequestMessage,
|
|
91
|
+
jsonSchema: async () => DatasetRequestMessage
|
|
92
|
+
}));
|
|
93
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogError}`, () => ({
|
|
94
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
95
|
+
type: CatalogTypes.CatalogError,
|
|
96
|
+
jsonSchema: async () => CatalogError
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=dataspaceProtolDataTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceProtolDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/dataspaceProtolDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAC;AACrG,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,YAAY,MAAM,8BAA8B,CAAC,OAAO,IA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"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { CatalogTypes } from \"../models/catalog/catalogTypes.js\";\nimport { ContractNegotiationTypes } from \"../models/contractNegotiation/contractNegotiationTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport CatalogError from \"../schemas/CatalogError.json\" with { type: \"json\" };\nimport CatalogRequestMessage from \"../schemas/CatalogRequestMessage.json\" with { type: \"json\" };\nimport ContractAgreementMessage from \"../schemas/ContractAgreementMessage.json\" with { type: \"json\" };\nimport ContractAgreementVerificationMessage from \"../schemas/ContractAgreementVerificationMessage.json\" with { type: \"json\" };\nimport ContractNegotiation from \"../schemas/ContractNegotiation.json\" with { type: \"json\" };\nimport ContractNegotiationError from \"../schemas/ContractNegotiationError.json\" with { type: \"json\" };\nimport ContractNegotiationEventMessage from \"../schemas/ContractNegotiationEventMessage.json\" with { type: \"json\" };\nimport ContractNegotiationEventType from \"../schemas/ContractNegotiationEventType.json\" with { type: \"json\" };\nimport ContractNegotiationStateType from \"../schemas/ContractNegotiationStateType.json\" with { type: \"json\" };\nimport ContractNegotiationTerminationMessage from \"../schemas/ContractNegotiationTerminationMessage.json\" with { type: \"json\" };\nimport ContractOfferMessage from \"../schemas/ContractOfferMessage.json\" with { type: \"json\" };\nimport ContractRequestMessage from \"../schemas/ContractRequestMessage.json\" with { type: \"json\" };\nimport DatasetRequestMessage from \"../schemas/DatasetRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for Dataspace Protocol.\n */\nexport class DataspaceProtocolDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(\n\t\t\tnew RegExp(DataspaceProtocolContexts.ContextRoot),\n\t\t\tDataspaceProtocolContexts.ContextRedirect\n\t\t);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementVerificationMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementVerificationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiation,\n\t\t\t\tjsonSchema: async () => ContractNegotiation as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationError,\n\t\t\t\tjsonSchema: async () => ContractNegotiationError as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationTerminationMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationTerminationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractOfferMessage,\n\t\t\t\tjsonSchema: async () => ContractOfferMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractRequestMessage,\n\t\t\t\tjsonSchema: async () => ContractRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventType as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationStateType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationStateType as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.CatalogRequestMessage,\n\t\t\t\tjsonSchema: async () => CatalogRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.DatasetRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.DatasetRequestMessage,\n\t\t\t\tjsonSchema: async () => DatasetRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.CatalogError,\n\t\t\t\tjsonSchema: async () => CatalogError as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./models/
|
|
5
|
-
export * from "./
|
|
3
|
+
export * from "./models/dataspaceProtocolContexts.js";
|
|
4
|
+
export * from "./models/dataspaceProtocolContextType.js";
|
|
5
|
+
export * from "./dataTypes/dataspaceProtolDataTypes.js";
|
|
6
|
+
// Catalog Protocol
|
|
7
|
+
export * from "./models/catalog/catalogTypes.js";
|
|
8
|
+
export * from "./models/catalog/ICatalogError.js";
|
|
9
|
+
export * from "./models/catalog/ICatalogRequestMessage.js";
|
|
10
|
+
export * from "./models/catalog/IDatasetRequestMessage.js";
|
|
11
|
+
// Contract Negotiation Protocol
|
|
6
12
|
export * from "./models/contractNegotiation/contractNegotiationTypes.js";
|
|
7
13
|
export * from "./models/contractNegotiation/IContractAgreementMessage.js";
|
|
8
14
|
export * from "./models/contractNegotiation/IContractAgreementVerificationMessage.js";
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AAExD,mBAAmB;AACnB,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAE3D,gCAAgC;AAChC,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uEAAuE,CAAC;AACtF,cAAc,sDAAsD,CAAC;AACrE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kEAAkE,CAAC;AACjF,cAAc,wEAAwE,CAAC;AACvF,cAAc,uDAAuD,CAAC;AACtE,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,oEAAoE,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/dataspaceProtocolContexts.js\";\nexport * from \"./models/dataspaceProtocolContextType.js\";\nexport * from \"./dataTypes/dataspaceProtolDataTypes.js\";\n\n// Catalog Protocol\nexport * from \"./models/catalog/catalogTypes.js\";\nexport * from \"./models/catalog/ICatalogError.js\";\nexport * from \"./models/catalog/ICatalogRequestMessage.js\";\nexport * from \"./models/catalog/IDatasetRequestMessage.js\";\n\n// Contract Negotiation Protocol\nexport * from \"./models/contractNegotiation/contractNegotiationTypes.js\";\nexport * from \"./models/contractNegotiation/IContractAgreementMessage.js\";\nexport * from \"./models/contractNegotiation/IContractAgreementVerificationMessage.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiation.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationError.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationEventMessage.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationTerminationMessage.js\";\nexport * from \"./models/contractNegotiation/IContractOfferMessage.js\";\nexport * from \"./models/contractNegotiation/IContractRequestMessage.js\";\nexport * from \"./models/contractNegotiation/types/contractNegotiationEventType.js\";\nexport * from \"./models/contractNegotiation/types/contractNegotiationStateType.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICatalogError.js","sourceRoot":"","sources":["../../../../src/models/catalog/ICatalogError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Error.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error\n */\nexport interface ICatalogError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.CatalogError;\n\n\t/**\n\t * The error code.\n\t */\n\tcode: string;\n\n\t/**\n\t * An optional array of error reasons.\n\t */\n\treasons?: string[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICatalogRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/ICatalogRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message\n */\nexport interface ICatalogRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.CatalogRequestMessage;\n\n\t/**\n\t * An implementation-specific query or filter expression.\n\t */\n\tfilter?: unknown;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDatasetRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDatasetRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Dataset Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#dataset-request-message\n */\nexport interface IDatasetRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.DatasetRequestMessage;\n\n\t/**\n\t * The identifier of the dataset.\n\t */\n\tdataset: string;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The types for Dataspace Protocol Catalog Protocol.
|
|
5
|
+
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const CatalogTypes = {
|
|
9
|
+
/**
|
|
10
|
+
* Catalog Request Message.
|
|
11
|
+
*/
|
|
12
|
+
CatalogRequestMessage: "CatalogRequestMessage",
|
|
13
|
+
/**
|
|
14
|
+
* Dataset Request Message.
|
|
15
|
+
*/
|
|
16
|
+
DatasetRequestMessage: "DatasetRequestMessage",
|
|
17
|
+
/**
|
|
18
|
+
* Catalog Error.
|
|
19
|
+
*/
|
|
20
|
+
CatalogError: "CatalogError"
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=catalogTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogTypes.js","sourceRoot":"","sources":["../../../../src/models/catalog/catalogTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;OAEG;IACH,YAAY,EAAE,cAAc;CACnB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Catalog Protocol.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const CatalogTypes = {\n\t/**\n\t * Catalog Request Message.\n\t */\n\tCatalogRequestMessage: \"CatalogRequestMessage\",\n\n\t/**\n\t * Dataset Request Message.\n\t */\n\tDatasetRequestMessage: \"DatasetRequestMessage\",\n\n\t/**\n\t * Catalog Error.\n\t */\n\tCatalogError: \"CatalogError\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Catalog Protocol.\n */\nexport type CatalogTypes = (typeof CatalogTypes)[keyof typeof CatalogTypes];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContractAgreementMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractAgreementMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"IContractAgreementMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractAgreementMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlAgreement } from \"@twin.org/standards-w3c-odrl\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message\n */\nexport interface IContractAgreementMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractAgreementMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The agreement being sent.\n\t */\n\tagreement: IOdrlAgreement;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContractAgreementVerificationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractAgreementVerificationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"IContractAgreementVerificationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractAgreementVerificationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Verification Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-verification-message\n */\nexport interface IContractAgreementVerificationMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractAgreementVerificationMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContractNegotiation.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"IContractNegotiation.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { ContractNegotiationStateType } from \"./types/contractNegotiationStateType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-contract-negotiation\n */\nexport interface IContractNegotiation {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiation;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\tstate: ContractNegotiationStateType;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContractNegotiationError.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"IContractNegotiationError.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Error Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error\n */\nexport interface IContractNegotiationError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationError;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The error code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\treason?: {\n\t\t\"@value\": string;\n\t\t\"@language\"?: string;\n\t}[];\n\n\t/**\n\t * The error description(s).\n\t */\n\tdescription?: {\n\t\t\"@value\": string;\n\t\t\"@language\"?: string;\n\t}[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContractNegotiationEventMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationEventMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"IContractNegotiationEventMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationEventMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { ContractNegotiationEventType } from \"./types/contractNegotiationEventType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Event Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message\n */\nexport interface IContractNegotiationEventMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationEventMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The event type.\n\t */\n\tevent: ContractNegotiationEventType;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContractNegotiationTerminationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationTerminationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"IContractNegotiationTerminationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationTerminationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Termination Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-termination-message\n */\nexport interface IContractNegotiationTerminationMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationTerminationMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The termination code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The termination reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContractOfferMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractOfferMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"IContractOfferMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractOfferMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Offer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-message\n */\nexport interface IContractOfferMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractOfferMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid?: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\toffer: IOdrlOffer;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContractRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"IContractRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-message\n */\nexport interface IContractRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractRequestMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid?: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\toffer: IOdrlOffer;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractNegotiationTypes.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/contractNegotiationTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,oCAAoC,EAAE,sCAAsC;IAE5E;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,qCAAqC,EAAE,uCAAuC;IAE9E;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;CAC5D,CAAC","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"contractNegotiationTypes.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/contractNegotiationTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,oCAAoC,EAAE,sCAAsC;IAE5E;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,qCAAqC,EAAE,uCAAuC;IAE9E;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;CAC5D,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#message-types-0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationTypes = {\n\t/**\n\t * Contract Negotiation.\n\t */\n\tContractNegotiation: \"ContractNegotiation\",\n\n\t/**\n\t * Contract Request Message.\n\t */\n\tContractRequestMessage: \"ContractRequestMessage\",\n\n\t/**\n\t * Contract Offer Message.\n\t */\n\tContractOfferMessage: \"ContractOfferMessage\",\n\n\t/**\n\t * Contract Agreement Message.\n\t */\n\tContractAgreementMessage: \"ContractAgreementMessage\",\n\n\t/**\n\t * Contract Agreement Verification Message.\n\t */\n\tContractAgreementVerificationMessage: \"ContractAgreementVerificationMessage\",\n\n\t/**\n\t * Contract Negotiation Event Message.\n\t */\n\tContractNegotiationEventMessage: \"ContractNegotiationEventMessage\",\n\n\t/**\n\t * Contract Negotiation Termination Message.\n\t */\n\tContractNegotiationTerminationMessage: \"ContractNegotiationTerminationMessage\",\n\n\t/**\n\t * Contract Negotiation Error.\n\t */\n\tContractNegotiationError: \"ContractNegotiationError\",\n\n\t/**\n\t * Contract Negotiation Event Type.\n\t */\n\tContractNegotiationEventType: \"ContractNegotiationEventType\",\n\n\t/**\n\t * Contract Negotiation State Type.\n\t */\n\tContractNegotiationStateType: \"ContractNegotiationStateType\"\n};\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n */\nexport type ContractNegotiationTypes =\n\t(typeof ContractNegotiationTypes)[keyof typeof ContractNegotiationTypes];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractNegotiationEventType.js","sourceRoot":"","sources":["../../../../../src/models/contractNegotiation/types/contractNegotiationEventType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;CACb,CAAC","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"contractNegotiationEventType.js","sourceRoot":"","sources":["../../../../../src/models/contractNegotiation/types/contractNegotiationEventType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;CACb,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation Events.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationEventType = {\n\t/**\n\t * Accepted.\n\t */\n\tACCEPTED: \"ACCEPTED\",\n\n\t/**\n\t * Finalized.\n\t */\n\tFINALIZED: \"FINALIZED\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Contract Negotiation Events.\n */\nexport type ContractNegotiationEventType =\n\t(typeof ContractNegotiationEventType)[keyof typeof ContractNegotiationEventType];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractNegotiationStateType.js","sourceRoot":"","sources":["../../../../../src/models/contractNegotiation/types/contractNegotiationStateType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,UAAU,EAAE,YAAY;CACf,CAAC","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"contractNegotiationStateType.js","sourceRoot":"","sources":["../../../../../src/models/contractNegotiation/types/contractNegotiationStateType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,UAAU,EAAE,YAAY;CACf,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation States.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-states\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationStateType = {\n\t/**\n\t * Requested.\n\t */\n\tREQUESTED: \"REQUESTED\",\n\n\t/**\n\t * Offered.\n\t */\n\tOFFERED: \"OFFERED\",\n\n\t/**\n\t * Accepted.\n\t */\n\tACCEPTED: \"ACCEPTED\",\n\n\t/**\n\t * Agreed.\n\t */\n\tAGREED: \"AGREED\",\n\n\t/**\n\t * Verified.\n\t */\n\tVERIFIED: \"VERIFIED\",\n\n\t/**\n\t * Finalized.\n\t */\n\tFINALIZED: \"FINALIZED\",\n\n\t/**\n\t * Terminated.\n\t */\n\tTERMINATED: \"TERMINATED\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Contract Negotiation States.\n */\nexport type ContractNegotiationStateType =\n\t(typeof ContractNegotiationStateType)[keyof typeof ContractNegotiationStateType];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceProtocolContextType.js","sourceRoot":"","sources":["../../../src/models/dataspaceProtocolContextType.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 { DataspaceProtocolContexts } from \"./dataspaceProtocolContexts.js\";\n\n/**\n * The Dataspace Protocol Protocol JSON-LD context type.\n */\nexport type DataspaceProtocolContextType =\n\t| typeof DataspaceProtocolContexts.ContextRoot\n\t| [\n\t\t\t...IJsonLdContextDefinitionElement[],\n\t\t\ttypeof DataspaceProtocolContexts.ContextRoot,\n\t\t\tIJsonLdContextDefinitionElement\n\t ]\n\t| [\n\t\t\tIJsonLdContextDefinitionElement,\n\t\t\ttypeof DataspaceProtocolContexts.ContextRoot,\n\t\t\t...IJsonLdContextDefinitionElement[]\n\t ];\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The contexts for Dataspace Protocol Protocol.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const DataspaceProtocolContexts = {
|
|
8
|
+
/**
|
|
9
|
+
* The context root for Dataspace Protocol Protocol.
|
|
10
|
+
*/
|
|
11
|
+
ContextRoot: "https://w3id.org/dspace/2025/1/context.json",
|
|
12
|
+
/**
|
|
13
|
+
* The context redirect for Dataspace Protocol Protocol.
|
|
14
|
+
*/
|
|
15
|
+
ContextRedirect: "https://w3id.org/dspace/2025/1/context.jsonld"
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=dataspaceProtocolContexts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceProtocolContexts.js","sourceRoot":"","sources":["../../../src/models/dataspaceProtocolContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC;;OAEG;IACH,WAAW,EAAE,6CAA6C;IAE1D;;OAEG;IACH,eAAe,EAAE,+CAA+C;CACvD,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts for Dataspace Protocol Protocol.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceProtocolContexts = {\n\t/**\n\t * The context root for Dataspace Protocol Protocol.\n\t */\n\tContextRoot: \"https://w3id.org/dspace/2025/1/context.json\",\n\n\t/**\n\t * The context redirect for Dataspace Protocol Protocol.\n\t */\n\tContextRedirect: \"https://w3id.org/dspace/2025/1/context.jsonld\"\n} as const;\n\n/**\n * The contexts for Dataspace Protocol Protocol.\n */\nexport type DataspaceProtocolContexts =\n\t(typeof DataspaceProtocolContexts)[keyof typeof DataspaceProtocolContexts];\n"]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/dataspace-protocol/CatalogError",
|
|
4
|
+
"description": "Interface for Dataspace Protocol Catalog Error. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"@context": {
|
|
8
|
+
"description": "The Dataspace Protocol Protocol JSON-LD context type.",
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "array",
|
|
16
|
+
"minItems": 2,
|
|
17
|
+
"prefixItems": [
|
|
18
|
+
{
|
|
19
|
+
"type": "string",
|
|
20
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"items": {
|
|
27
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "array",
|
|
32
|
+
"minItems": 2,
|
|
33
|
+
"prefixItems": [
|
|
34
|
+
{
|
|
35
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "string",
|
|
39
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"items": {
|
|
43
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"@type": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"const": "CatalogError",
|
|
51
|
+
"description": "The type of the message."
|
|
52
|
+
},
|
|
53
|
+
"code": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "The error code."
|
|
56
|
+
},
|
|
57
|
+
"reasons": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"description": "An optional array of error reasons."
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"@context",
|
|
67
|
+
"@type",
|
|
68
|
+
"code"
|
|
69
|
+
],
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/dataspace-protocol/CatalogRequestMessage",
|
|
4
|
+
"description": "Interface for Dataspace Protocol Catalog Request Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"@context": {
|
|
8
|
+
"description": "The Dataspace Protocol Protocol JSON-LD context type.",
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "array",
|
|
16
|
+
"minItems": 2,
|
|
17
|
+
"prefixItems": [
|
|
18
|
+
{
|
|
19
|
+
"type": "string",
|
|
20
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"items": {
|
|
27
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "array",
|
|
32
|
+
"minItems": 2,
|
|
33
|
+
"prefixItems": [
|
|
34
|
+
{
|
|
35
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "string",
|
|
39
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"items": {
|
|
43
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"@type": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"const": "CatalogRequestMessage",
|
|
51
|
+
"description": "The type of the message."
|
|
52
|
+
},
|
|
53
|
+
"filter": {
|
|
54
|
+
"description": "An implementation-specific query or filter expression."
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": [
|
|
58
|
+
"@context",
|
|
59
|
+
"@type"
|
|
60
|
+
],
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"@context": {
|
|
8
|
-
"description": "The Dataspace Protocol
|
|
8
|
+
"description": "The Dataspace Protocol Protocol JSON-LD context type.",
|
|
9
9
|
"anyOf": [
|
|
10
10
|
{
|
|
11
11
|
"type": "string",
|
|
12
|
-
"const": "https://w3id.org/dspace/
|
|
12
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"type": "array",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"prefixItems": [
|
|
18
18
|
{
|
|
19
19
|
"type": "string",
|
|
20
|
-
"const": "https://w3id.org/dspace/
|
|
20
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"type": "string",
|
|
39
|
-
"const": "https://w3id.org/dspace/
|
|
39
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
42
|
"items": {
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"@context": {
|
|
8
|
-
"description": "The Dataspace Protocol
|
|
8
|
+
"description": "The Dataspace Protocol Protocol JSON-LD context type.",
|
|
9
9
|
"anyOf": [
|
|
10
10
|
{
|
|
11
11
|
"type": "string",
|
|
12
|
-
"const": "https://w3id.org/dspace/
|
|
12
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"type": "array",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"prefixItems": [
|
|
18
18
|
{
|
|
19
19
|
"type": "string",
|
|
20
|
-
"const": "https://w3id.org/dspace/
|
|
20
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"type": "string",
|
|
39
|
-
"const": "https://w3id.org/dspace/
|
|
39
|
+
"const": "https://w3id.org/dspace/2025/1/context.json"
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
42
|
"items": {
|