@twin.org/standards-dataspace-protocol 0.0.3-next.4 → 0.0.3-next.41
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/catalogDataTypes.js +61 -0
- package/dist/es/dataTypes/catalogDataTypes.js.map +1 -0
- package/dist/es/dataTypes/contractNegotiationDataTypes.js +70 -0
- package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +1 -0
- package/dist/es/dataTypes/dataspaceProtocolDataTypes.js +30 -0
- package/dist/es/dataTypes/dataspaceProtocolDataTypes.js.map +1 -0
- package/dist/es/dataTypes/transferProcessDataTypes.js +65 -0
- package/dist/es/dataTypes/transferProcessDataTypes.js.map +1 -0
- package/dist/es/index.js +37 -16
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/catalog/IDataspaceProtocolCatalog.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolCatalog.js.map +1 -0
- package/dist/es/models/catalog/IDataspaceProtocolCatalogError.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolCatalogError.js.map +1 -0
- package/dist/es/models/catalog/IDataspaceProtocolCatalogRequestMessage.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolCatalogRequestMessage.js.map +1 -0
- package/dist/es/models/catalog/IDataspaceProtocolDataService.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolDataService.js.map +1 -0
- package/dist/es/models/catalog/IDataspaceProtocolDataset.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolDataset.js.map +1 -0
- package/dist/es/models/catalog/IDataspaceProtocolDatasetRequestMessage.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolDatasetRequestMessage.js.map +1 -0
- package/dist/es/models/catalog/IDataspaceProtocolDistribution.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolDistribution.js.map +1 -0
- package/dist/es/models/catalog/{catalogTypes.js → dataspaceProtocolCatalogTypes.js} +19 -3
- package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiation.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiation.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/{contractNegotiationTypes.js → dataspaceProtocolContractNegotiationTypes.js} +2 -2
- package/dist/es/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js.map +1 -0
- package/dist/es/models/contractNegotiation/types/{contractNegotiationEventType.js → dataspaceProtocolContractNegotiationEventType.js} +2 -2
- package/dist/es/models/contractNegotiation/types/dataspaceProtocolContractNegotiationEventType.js.map +1 -0
- package/dist/es/models/contractNegotiation/types/{contractNegotiationStateType.js → dataspaceProtocolContractNegotiationStateType.js} +2 -2
- package/dist/es/models/contractNegotiation/types/dataspaceProtocolContractNegotiationStateType.js.map +1 -0
- package/dist/es/models/dataspaceProtocolContextType.js.map +1 -1
- package/dist/es/models/dataspaceProtocolContexts.js +12 -4
- package/dist/es/models/dataspaceProtocolContexts.js.map +1 -1
- package/dist/es/models/transferProcess/IDataspaceProtocolDataAddress.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolDataAddress.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolEndpointProperty.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolEndpointProperty.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferError.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferError.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferProcess.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferProcess.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferRequestMessage.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferRequestMessage.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferStartMessage.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferStartMessage.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js +4 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js.map +1 -0
- package/dist/es/models/transferProcess/dataspaceProtocolTransferProcessTypes.js +46 -0
- package/dist/es/models/transferProcess/dataspaceProtocolTransferProcessTypes.js.map +1 -0
- package/dist/es/models/transferProcess/types/dataspaceProtocolEndpointType.js +89 -0
- package/dist/es/models/transferProcess/types/dataspaceProtocolEndpointType.js.map +1 -0
- package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js +30 -0
- package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js.map +1 -0
- package/dist/es/schemas/DataspaceProtocolCatalog.json +11 -0
- package/dist/es/schemas/{CatalogError.json → DataspaceProtocolCatalogError.json} +17 -10
- package/dist/es/schemas/{CatalogRequestMessage.json → DataspaceProtocolCatalogRequestMessage.json} +16 -5
- package/dist/es/schemas/{ContractAgreementMessage.json → DataspaceProtocolContractAgreementMessage.json} +14 -5
- package/dist/es/schemas/{ContractAgreementVerificationMessage.json → DataspaceProtocolContractAgreementVerificationMessage.json} +14 -5
- package/dist/es/schemas/{ContractNegotiation.json → DataspaceProtocolContractNegotiation.json} +15 -6
- package/dist/es/schemas/{ContractNegotiationError.json → DataspaceProtocolContractNegotiationError.json} +15 -39
- package/dist/es/schemas/{ContractNegotiationEventMessage.json → DataspaceProtocolContractNegotiationEventMessage.json} +15 -6
- package/dist/es/schemas/{ContractNegotiationEventType.json → DataspaceProtocolContractNegotiationEventType.json} +1 -1
- package/dist/es/schemas/{ContractNegotiationStateType.json → DataspaceProtocolContractNegotiationStateType.json} +1 -1
- package/dist/es/schemas/{ContractNegotiationTerminationMessage.json → DataspaceProtocolContractNegotiationTerminationMessage.json} +14 -5
- package/dist/es/schemas/{ContractOfferMessage.json → DataspaceProtocolContractOfferMessage.json} +14 -5
- package/dist/es/schemas/{ContractRequestMessage.json → DataspaceProtocolContractRequestMessage.json} +14 -5
- package/dist/es/schemas/DataspaceProtocolDataAddress.json +33 -0
- package/dist/es/schemas/DataspaceProtocolDataset.json +11 -0
- package/dist/es/schemas/{DatasetRequestMessage.json → DataspaceProtocolDatasetRequestMessage.json} +14 -5
- package/dist/es/schemas/DataspaceProtocolEndpointProperty.json +27 -0
- package/dist/es/schemas/DataspaceProtocolTransferCompletionMessage.json +78 -0
- package/dist/es/schemas/DataspaceProtocolTransferError.json +87 -0
- package/dist/es/schemas/DataspaceProtocolTransferProcess.json +83 -0
- package/dist/es/schemas/DataspaceProtocolTransferRequestMessage.json +92 -0
- package/dist/es/schemas/DataspaceProtocolTransferStartMessage.json +82 -0
- package/dist/es/schemas/DataspaceProtocolTransferSuspensionMessage.json +87 -0
- package/dist/es/schemas/DataspaceProtocolTransferTerminationMessage.json +87 -0
- package/dist/es/schemas-src/DataspaceProtocolDataService.json +11 -0
- package/dist/es/schemas-src/DataspaceProtocolDistribution.json +11 -0
- package/dist/es/utils/dataspaceProtocolHelper.js +110 -0
- package/dist/es/utils/dataspaceProtocolHelper.js.map +1 -0
- package/dist/types/dataTypes/catalogDataTypes.d.ts +9 -0
- package/dist/types/dataTypes/contractNegotiationDataTypes.d.ts +9 -0
- package/dist/types/dataTypes/transferProcessDataTypes.d.ts +9 -0
- package/dist/types/index.d.ts +36 -16
- package/dist/types/models/catalog/IDataspaceProtocolCatalog.d.ts +63 -0
- package/dist/types/models/catalog/{ICatalogError.d.ts → IDataspaceProtocolCatalogError.d.ts} +5 -5
- package/dist/types/models/catalog/{ICatalogRequestMessage.d.ts → IDataspaceProtocolCatalogRequestMessage.d.ts} +4 -4
- package/dist/types/models/catalog/IDataspaceProtocolDataService.d.ts +49 -0
- package/dist/types/models/catalog/IDataspaceProtocolDataset.d.ts +66 -0
- package/dist/types/models/catalog/{IDatasetRequestMessage.d.ts → IDataspaceProtocolDatasetRequestMessage.d.ts} +3 -3
- package/dist/types/models/catalog/IDataspaceProtocolDistribution.d.ts +70 -0
- package/dist/types/models/catalog/{catalogTypes.d.ts → dataspaceProtocolCatalogTypes.d.ts} +18 -2
- package/dist/types/models/contractNegotiation/{IContractAgreementMessage.d.ts → IDataspaceProtocolContractAgreementMessage.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/{IContractAgreementVerificationMessage.d.ts → IDataspaceProtocolContractAgreementVerificationMessage.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/{IContractNegotiation.d.ts → IDataspaceProtocolContractNegotiation.d.ts} +5 -5
- package/dist/types/models/contractNegotiation/{IContractNegotiationError.d.ts → IDataspaceProtocolContractNegotiationError.d.ts} +4 -14
- package/dist/types/models/contractNegotiation/{IContractNegotiationEventMessage.d.ts → IDataspaceProtocolContractNegotiationEventMessage.d.ts} +5 -5
- package/dist/types/models/contractNegotiation/{IContractNegotiationTerminationMessage.d.ts → IDataspaceProtocolContractNegotiationTerminationMessage.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/{IContractOfferMessage.d.ts → IDataspaceProtocolContractOfferMessage.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/{IContractRequestMessage.d.ts → IDataspaceProtocolContractRequestMessage.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.d.ts +50 -0
- package/dist/types/models/contractNegotiation/types/{contractNegotiationEventType.d.ts → dataspaceProtocolContractNegotiationEventType.d.ts} +2 -2
- package/dist/types/models/contractNegotiation/types/{contractNegotiationStateType.d.ts → dataspaceProtocolContractNegotiationStateType.d.ts} +2 -2
- package/dist/types/models/dataspaceProtocolContextType.d.ts +4 -4
- package/dist/types/models/dataspaceProtocolContexts.d.ts +12 -4
- package/dist/types/models/transferProcess/IDataspaceProtocolDataAddress.d.ts +24 -0
- package/dist/types/models/transferProcess/IDataspaceProtocolEndpointProperty.d.ts +19 -0
- package/dist/types/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.d.ts +24 -0
- package/dist/types/models/transferProcess/IDataspaceProtocolTransferError.d.ts +32 -0
- package/dist/types/models/transferProcess/IDataspaceProtocolTransferProcess.d.ts +29 -0
- package/dist/types/models/transferProcess/IDataspaceProtocolTransferRequestMessage.d.ts +39 -0
- package/dist/types/models/transferProcess/IDataspaceProtocolTransferStartMessage.d.ts +30 -0
- package/dist/types/models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.d.ts +32 -0
- package/dist/types/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.d.ts +32 -0
- package/dist/types/models/transferProcess/dataspaceProtocolTransferProcessTypes.d.ts +46 -0
- package/dist/types/models/transferProcess/types/dataspaceProtocolEndpointType.d.ts +89 -0
- package/dist/types/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.d.ts +30 -0
- package/dist/types/utils/dataspaceProtocolHelper.d.ts +20 -0
- package/docs/changelog.md +673 -0
- package/docs/reference/classes/CatalogDataTypes.md +25 -0
- package/docs/reference/classes/ContractNegotiationDataTypes.md +25 -0
- package/docs/reference/classes/DataspaceProtocolHelper.md +63 -0
- package/docs/reference/classes/TransferProcessDataTypes.md +25 -0
- package/docs/reference/index.md +42 -19
- package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +96 -0
- package/docs/reference/interfaces/{ICatalogError.md → IDataspaceProtocolCatalogError.md} +4 -4
- package/docs/reference/interfaces/{ICatalogRequestMessage.md → IDataspaceProtocolCatalogRequestMessage.md} +2 -2
- package/docs/reference/interfaces/{IContractAgreementMessage.md → IDataspaceProtocolContractAgreementMessage.md} +2 -2
- package/docs/reference/interfaces/{IContractAgreementVerificationMessage.md → IDataspaceProtocolContractAgreementVerificationMessage.md} +2 -2
- package/docs/reference/interfaces/{IContractNegotiation.md → IDataspaceProtocolContractNegotiation.md} +3 -3
- package/docs/reference/interfaces/{IContractNegotiationError.md → IDataspaceProtocolContractNegotiationError.md} +3 -27
- package/docs/reference/interfaces/{IContractNegotiationEventMessage.md → IDataspaceProtocolContractNegotiationEventMessage.md} +3 -3
- package/docs/reference/interfaces/{IContractNegotiationTerminationMessage.md → IDataspaceProtocolContractNegotiationTerminationMessage.md} +2 -2
- package/docs/reference/interfaces/{IContractOfferMessage.md → IDataspaceProtocolContractOfferMessage.md} +2 -2
- package/docs/reference/interfaces/{IContractRequestMessage.md → IDataspaceProtocolContractRequestMessage.md} +2 -2
- package/docs/reference/interfaces/IDataspaceProtocolDataAddress.md +36 -0
- package/docs/reference/interfaces/IDataspaceProtocolDataService.md +72 -0
- package/docs/reference/interfaces/IDataspaceProtocolDataset.md +90 -0
- package/docs/reference/interfaces/{IDatasetRequestMessage.md → IDataspaceProtocolDatasetRequestMessage.md} +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +98 -0
- package/docs/reference/interfaces/IDataspaceProtocolEndpointProperty.md +28 -0
- package/docs/reference/interfaces/IDataspaceProtocolTransferCompletionMessage.md +36 -0
- package/docs/reference/interfaces/IDataspaceProtocolTransferError.md +52 -0
- package/docs/reference/interfaces/IDataspaceProtocolTransferProcess.md +44 -0
- package/docs/reference/interfaces/IDataspaceProtocolTransferRequestMessage.md +62 -0
- package/docs/reference/interfaces/IDataspaceProtocolTransferStartMessage.md +45 -0
- package/docs/reference/interfaces/IDataspaceProtocolTransferSuspensionMessage.md +52 -0
- package/docs/reference/interfaces/IDataspaceProtocolTransferTerminationMessage.md +52 -0
- package/docs/reference/type-aliases/DataspaceProtocolCatalogTypes.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolContextType.md +2 -2
- package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationEventType.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationStateType.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationTypes.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolEndpointType.md +12 -0
- package/docs/reference/type-aliases/DataspaceProtocolTransferProcessStateType.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolTransferProcessTypes.md +5 -0
- package/docs/reference/variables/{CatalogTypes.md → DataspaceProtocolCatalogTypes.md} +26 -2
- package/docs/reference/variables/DataspaceProtocolContexts.md +18 -6
- package/docs/reference/variables/{ContractNegotiationEventType.md → DataspaceProtocolContractNegotiationEventType.md} +2 -2
- package/docs/reference/variables/{ContractNegotiationStateType.md → DataspaceProtocolContractNegotiationStateType.md} +2 -2
- package/docs/reference/variables/DataspaceProtocolContractNegotiationTypes.md +68 -0
- package/docs/reference/variables/DataspaceProtocolEndpointType.md +96 -0
- package/docs/reference/variables/DataspaceProtocolTransferProcessStateType.md +38 -0
- package/docs/reference/variables/DataspaceProtocolTransferProcessTypes.md +62 -0
- package/locales/en.json +7 -1
- package/package.json +3 -3
- package/dist/es/dataTypes/dataspaceProtolDataTypes.js +0 -100
- package/dist/es/dataTypes/dataspaceProtolDataTypes.js.map +0 -1
- package/dist/es/models/catalog/ICatalogError.js +0 -2
- package/dist/es/models/catalog/ICatalogError.js.map +0 -1
- package/dist/es/models/catalog/ICatalogRequestMessage.js +0 -2
- package/dist/es/models/catalog/ICatalogRequestMessage.js.map +0 -1
- package/dist/es/models/catalog/IDatasetRequestMessage.js +0 -2
- package/dist/es/models/catalog/IDatasetRequestMessage.js.map +0 -1
- package/dist/es/models/catalog/catalogTypes.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractAgreementMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractAgreementMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractNegotiation.js +0 -2
- package/dist/es/models/contractNegotiation/IContractNegotiation.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractNegotiationError.js +0 -2
- package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractOfferMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractOfferMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractRequestMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractRequestMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/contractNegotiationTypes.js.map +0 -1
- package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js.map +0 -1
- package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js.map +0 -1
- package/dist/types/models/contractNegotiation/contractNegotiationTypes.d.ts +0 -50
- package/docs/reference/type-aliases/CatalogTypes.md +0 -5
- package/docs/reference/type-aliases/ContractNegotiationEventType.md +0 -5
- package/docs/reference/type-aliases/ContractNegotiationStateType.md +0 -5
- package/docs/reference/type-aliases/ContractNegotiationTypes.md +0 -5
- package/docs/reference/variables/ContractNegotiationTypes.md +0 -68
- /package/dist/types/dataTypes/{dataspaceProtolDataTypes.d.ts → dataspaceProtocolDataTypes.d.ts} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -1,18 +1,38 @@
|
|
|
1
1
|
export * from "./models/dataspaceProtocolContexts.js";
|
|
2
2
|
export * from "./models/dataspaceProtocolContextType.js";
|
|
3
|
-
export * from "./dataTypes/
|
|
4
|
-
export * from "./models/catalog/
|
|
5
|
-
export * from "./models/catalog/
|
|
6
|
-
export * from "./models/catalog/
|
|
7
|
-
export * from "./models/catalog/
|
|
8
|
-
export * from "./models/
|
|
9
|
-
export * from "./models/
|
|
10
|
-
export * from "./models/
|
|
11
|
-
export * from "./models/
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./models/contractNegotiation/
|
|
14
|
-
export * from "./models/contractNegotiation/
|
|
15
|
-
export * from "./models/contractNegotiation/
|
|
16
|
-
export * from "./models/contractNegotiation/
|
|
17
|
-
export * from "./models/contractNegotiation/
|
|
18
|
-
export * from "./models/contractNegotiation/
|
|
3
|
+
export * from "./dataTypes/dataspaceProtocolDataTypes.js";
|
|
4
|
+
export * from "./models/catalog/dataspaceProtocolCatalogTypes.js";
|
|
5
|
+
export * from "./models/catalog/IDataspaceProtocolCatalogError.js";
|
|
6
|
+
export * from "./models/catalog/IDataspaceProtocolCatalogRequestMessage.js";
|
|
7
|
+
export * from "./models/catalog/IDataspaceProtocolDatasetRequestMessage.js";
|
|
8
|
+
export * from "./models/catalog/IDataspaceProtocolDataset.js";
|
|
9
|
+
export * from "./models/catalog/IDataspaceProtocolCatalog.js";
|
|
10
|
+
export * from "./models/catalog/IDataspaceProtocolDistribution.js";
|
|
11
|
+
export * from "./models/catalog/IDataspaceProtocolDataService.js";
|
|
12
|
+
export * from "./dataTypes/catalogDataTypes.js";
|
|
13
|
+
export * from "./models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js";
|
|
14
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js";
|
|
15
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js";
|
|
16
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiation.js";
|
|
17
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js";
|
|
18
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js";
|
|
19
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js";
|
|
20
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js";
|
|
21
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js";
|
|
22
|
+
export * from "./models/contractNegotiation/types/dataspaceProtocolContractNegotiationEventType.js";
|
|
23
|
+
export * from "./models/contractNegotiation/types/dataspaceProtocolContractNegotiationStateType.js";
|
|
24
|
+
export * from "./dataTypes/contractNegotiationDataTypes.js";
|
|
25
|
+
export * from "./models/transferProcess/dataspaceProtocolTransferProcessTypes.js";
|
|
26
|
+
export * from "./models/transferProcess/IDataspaceProtocolDataAddress.js";
|
|
27
|
+
export * from "./models/transferProcess/IDataspaceProtocolEndpointProperty.js";
|
|
28
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js";
|
|
29
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferError.js";
|
|
30
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferProcess.js";
|
|
31
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferRequestMessage.js";
|
|
32
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferStartMessage.js";
|
|
33
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js";
|
|
34
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js";
|
|
35
|
+
export * from "./models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js";
|
|
36
|
+
export * from "./models/transferProcess/types/dataspaceProtocolEndpointType.js";
|
|
37
|
+
export * from "./dataTypes/transferProcessDataTypes.js";
|
|
38
|
+
export * from "./utils/dataspaceProtocolHelper.js";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
|
+
import type { IDcatCatalog } from "@twin.org/standards-w3c-dcat";
|
|
3
|
+
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
4
|
+
import type { DataspaceProtocolCatalogTypes } from "./dataspaceProtocolCatalogTypes.js";
|
|
5
|
+
import type { IDataspaceProtocolDataService } from "./IDataspaceProtocolDataService.js";
|
|
6
|
+
import type { IDataspaceProtocolDataset } from "./IDataspaceProtocolDataset.js";
|
|
7
|
+
import type { IDataspaceProtocolDistribution } from "./IDataspaceProtocolDistribution.js";
|
|
8
|
+
/**
|
|
9
|
+
* Catalog interface compliant with Eclipse Data Space Protocol.
|
|
10
|
+
*
|
|
11
|
+
* This interface extends ICatalog and enforces DS Protocol-specific requirements
|
|
12
|
+
* by overriding properties with more specific types and constraints.
|
|
13
|
+
*
|
|
14
|
+
* **Requirements per DS Protocol:**
|
|
15
|
+
* - `@id` MUST be present for dataset identification (REQUIRED)
|
|
16
|
+
* - participantId MUST be present (REQUIRED)
|
|
17
|
+
*
|
|
18
|
+
* **Type System Design:**
|
|
19
|
+
* - Interface extension allows TypeScript to override inherited property types
|
|
20
|
+
* - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly
|
|
21
|
+
* - DS Protocol-specific constraints are defined here
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
|
|
25
|
+
* @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export interface IDataspaceProtocolCatalog extends Omit<IDcatCatalog, "@type" | "@context" | "dcat:catalog" | "dcat:dataset" | "dcat:distribution" | "dcat:service"> {
|
|
29
|
+
/**
|
|
30
|
+
* LD Context. Required per Eclipse Data Space Protocol.
|
|
31
|
+
*/
|
|
32
|
+
"@context": DataspaceProtocolContextType;
|
|
33
|
+
/**
|
|
34
|
+
* The type identifier for the Catalog.
|
|
35
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
36
|
+
*/
|
|
37
|
+
"@type": typeof DataspaceProtocolCatalogTypes.Catalog;
|
|
38
|
+
/**
|
|
39
|
+
* Unique identifier for the dataset.
|
|
40
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
41
|
+
*/
|
|
42
|
+
"@id": string;
|
|
43
|
+
/**
|
|
44
|
+
* Participant Id
|
|
45
|
+
*/
|
|
46
|
+
participantId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Other concerned catalogs
|
|
49
|
+
*/
|
|
50
|
+
catalog?: ObjectOrArray<Omit<IDataspaceProtocolCatalog, "@context">>;
|
|
51
|
+
/**
|
|
52
|
+
* Datasets registered
|
|
53
|
+
*/
|
|
54
|
+
dataset?: ObjectOrArray<Omit<IDataspaceProtocolDataset, "@context">>;
|
|
55
|
+
/**
|
|
56
|
+
* Catalog's distributions
|
|
57
|
+
*/
|
|
58
|
+
distribution?: ObjectOrArray<Omit<IDataspaceProtocolDistribution, "@context">>;
|
|
59
|
+
/**
|
|
60
|
+
* Data services registered-
|
|
61
|
+
*/
|
|
62
|
+
service?: ObjectOrArray<Omit<IDataspaceProtocolDataService, "@context">>;
|
|
63
|
+
}
|
package/dist/types/models/catalog/{ICatalogError.d.ts → IDataspaceProtocolCatalogError.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolCatalogTypes } from "./dataspaceProtocolCatalogTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Catalog Error.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolCatalogError {
|
|
8
8
|
/**
|
|
9
9
|
* The JSON-LD context.
|
|
10
10
|
*/
|
|
@@ -12,13 +12,13 @@ export interface ICatalogError {
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of the message.
|
|
14
14
|
*/
|
|
15
|
-
"@type": typeof
|
|
15
|
+
"@type": typeof DataspaceProtocolCatalogTypes.CatalogError;
|
|
16
16
|
/**
|
|
17
17
|
* The error code.
|
|
18
18
|
*/
|
|
19
19
|
code: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* The error reason(s).
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
reason?: any[];
|
|
24
24
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolCatalogTypes } from "./dataspaceProtocolCatalogTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Catalog Request Messages.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolCatalogRequestMessage {
|
|
8
8
|
/**
|
|
9
9
|
* The JSON-LD context.
|
|
10
10
|
*/
|
|
@@ -12,9 +12,9 @@ export interface ICatalogRequestMessage {
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of the message.
|
|
14
14
|
*/
|
|
15
|
-
"@type": typeof
|
|
15
|
+
"@type": typeof DataspaceProtocolCatalogTypes.CatalogRequestMessage;
|
|
16
16
|
/**
|
|
17
17
|
* An implementation-specific query or filter expression.
|
|
18
18
|
*/
|
|
19
|
-
filter?: unknown;
|
|
19
|
+
filter?: unknown[];
|
|
20
20
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
|
+
import type { IDcatDataService } from "@twin.org/standards-w3c-dcat";
|
|
3
|
+
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
4
|
+
import type { DataspaceProtocolCatalogTypes } from "./dataspaceProtocolCatalogTypes.js";
|
|
5
|
+
import type { IDataspaceProtocolDataset } from "./IDataspaceProtocolDataset.js";
|
|
6
|
+
/**
|
|
7
|
+
* Data Service interface compliant with Eclipse Data Space Protocol.
|
|
8
|
+
*
|
|
9
|
+
* This interface extends IDataService and enforces DS Protocol-specific requirements
|
|
10
|
+
* by overriding properties with more specific types and constraints.
|
|
11
|
+
*
|
|
12
|
+
* **Requirements per DS Protocol:**
|
|
13
|
+
* - `@id` MUST be present for dataset identification (REQUIRED)
|
|
14
|
+
* - endpointURL MUST be present (REQUIRED)
|
|
15
|
+
*
|
|
16
|
+
* **Type System Design:**
|
|
17
|
+
* - Interface extension allows TypeScript to override inherited property types
|
|
18
|
+
* - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly
|
|
19
|
+
* - DS Protocol-specific constraints are defined here
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
|
|
23
|
+
* @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export interface IDataspaceProtocolDataService extends Omit<IDcatDataService, "@type" | "@context" | "dcat:servesDataset" | "dcat:endpointURL"> {
|
|
27
|
+
/**
|
|
28
|
+
* LD Context. Required per Eclipse Data Space Protocol.
|
|
29
|
+
*/
|
|
30
|
+
"@context": DataspaceProtocolContextType;
|
|
31
|
+
/**
|
|
32
|
+
* The type identifier for the Data Service.
|
|
33
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
34
|
+
*/
|
|
35
|
+
"@type": typeof DataspaceProtocolCatalogTypes.DataService;
|
|
36
|
+
/**
|
|
37
|
+
* Unique identifier for the dataset.
|
|
38
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
39
|
+
*/
|
|
40
|
+
"@id": string;
|
|
41
|
+
/**
|
|
42
|
+
* Endpoint URL
|
|
43
|
+
*/
|
|
44
|
+
endpointURL: string;
|
|
45
|
+
/**
|
|
46
|
+
* Datasets served.
|
|
47
|
+
*/
|
|
48
|
+
servesDataset?: ObjectOrArray<Omit<IDataspaceProtocolDataset, "@context">>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
|
+
import type { IDcatDataset } from "@twin.org/standards-w3c-dcat";
|
|
3
|
+
import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
|
|
4
|
+
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
5
|
+
import type { DataspaceProtocolCatalogTypes } from "./dataspaceProtocolCatalogTypes.js";
|
|
6
|
+
import type { IDataspaceProtocolDistribution } from "./IDataspaceProtocolDistribution.js";
|
|
7
|
+
/**
|
|
8
|
+
* Dataset interface compliant with Eclipse Data Space Protocol.
|
|
9
|
+
*
|
|
10
|
+
* This interface extends IDataset and enforces DS Protocol-specific requirements
|
|
11
|
+
* by overriding properties with more specific types and constraints.
|
|
12
|
+
*
|
|
13
|
+
* **Requirements per DS Protocol:**
|
|
14
|
+
* - `@id` MUST be present for dataset identification (REQUIRED)
|
|
15
|
+
* - `odrl:hasPolicy` MUST be present as an array of ODRL Offers (REQUIRED)
|
|
16
|
+
* - Array MUST contain at least one IOdrlOffer
|
|
17
|
+
* - Each Offer MUST have `@type`: "Offer"
|
|
18
|
+
* - Each Offer MUST have `@id` or `uid` for identification
|
|
19
|
+
* - `dcat:distribution` MUST be present (REQUIRED)
|
|
20
|
+
*
|
|
21
|
+
* **Type System Design:**
|
|
22
|
+
* - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`
|
|
23
|
+
* - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`
|
|
24
|
+
* - Interface extension allows TypeScript to override inherited property types
|
|
25
|
+
* - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly
|
|
26
|
+
* - DS Protocol-specific constraints are defined here
|
|
27
|
+
*
|
|
28
|
+
* **Future Compatibility:**
|
|
29
|
+
* - Currently only one Offer per dataset is supported
|
|
30
|
+
* - Array structure allows future support for multiple offers
|
|
31
|
+
*
|
|
32
|
+
* @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
|
|
33
|
+
* @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec
|
|
34
|
+
* @see IOdrlOffer from @twin.org/standards-w3c-odrl
|
|
35
|
+
* @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat
|
|
36
|
+
*/
|
|
37
|
+
export interface IDataspaceProtocolDataset extends Omit<IDcatDataset, "odrl:hasPolicy" | "dcat:distribution" | "@type" | "@context"> {
|
|
38
|
+
/**
|
|
39
|
+
* LD Context. Required per Eclipse Data Space Protocol.
|
|
40
|
+
*/
|
|
41
|
+
"@context": DataspaceProtocolContextType;
|
|
42
|
+
/**
|
|
43
|
+
* The type identifier for the dataset.
|
|
44
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
45
|
+
*/
|
|
46
|
+
"@type": typeof DataspaceProtocolCatalogTypes.Dataset;
|
|
47
|
+
/**
|
|
48
|
+
* Unique identifier for the dataset.
|
|
49
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
50
|
+
*/
|
|
51
|
+
"@id": string;
|
|
52
|
+
/**
|
|
53
|
+
* Array of ODRL policies (Offers) as required by DS Protocol.
|
|
54
|
+
*
|
|
55
|
+
* REQUIRED per Eclipse Data Space Protocol spec.
|
|
56
|
+
* Must contain at least one IOdrlOffer.
|
|
57
|
+
* Currently only single offer is supported, but array structure
|
|
58
|
+
* allows for future multi-offer support.
|
|
59
|
+
*/
|
|
60
|
+
hasPolicy: ObjectOrArray<Omit<IOdrlOffer, "@context">>;
|
|
61
|
+
/**
|
|
62
|
+
* Distribution of the dataset.
|
|
63
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
64
|
+
*/
|
|
65
|
+
distribution: ObjectOrArray<Omit<IDataspaceProtocolDistribution, "@context">>;
|
|
66
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolCatalogTypes } from "./dataspaceProtocolCatalogTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Dataset Request Messages.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#dataset-request-message
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolDatasetRequestMessage {
|
|
8
8
|
/**
|
|
9
9
|
* The JSON-LD context.
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ export interface IDatasetRequestMessage {
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of the message.
|
|
14
14
|
*/
|
|
15
|
-
"@type": typeof
|
|
15
|
+
"@type": typeof DataspaceProtocolCatalogTypes.DatasetRequestMessage;
|
|
16
16
|
/**
|
|
17
17
|
* The identifier of the dataset.
|
|
18
18
|
*/
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
|
+
import type { IDcatDistribution } from "@twin.org/standards-w3c-dcat";
|
|
3
|
+
import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
|
|
4
|
+
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
5
|
+
import type { DataspaceProtocolCatalogTypes } from "./dataspaceProtocolCatalogTypes.js";
|
|
6
|
+
import type { IDataspaceProtocolDataService } from "./IDataspaceProtocolDataService.js";
|
|
7
|
+
/**
|
|
8
|
+
* Distribution interface compliant with Eclipse Data Space Protocol.
|
|
9
|
+
*
|
|
10
|
+
* This interface extends IDistribution and enforces DS Protocol-specific requirements
|
|
11
|
+
* by overriding properties with more specific types and constraints.
|
|
12
|
+
*
|
|
13
|
+
* **Requirements per DS Protocol:**
|
|
14
|
+
* - `@id` MUST be present for dataset identification (REQUIRED)
|
|
15
|
+
* - `odrl:hasPolicy` MIGHT be present as an array of ODRL Offers (OPTIONAL)
|
|
16
|
+
* - Array MUST contain at least one IOdrlOffer
|
|
17
|
+
* - Each Offer MUST have `@type`: "Offer"
|
|
18
|
+
* - `format` is REQUIRED.
|
|
19
|
+
*
|
|
20
|
+
* **Type System Design:**
|
|
21
|
+
* - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`
|
|
22
|
+
* - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`
|
|
23
|
+
* - Interface extension allows TypeScript to override inherited property types
|
|
24
|
+
* - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly
|
|
25
|
+
* - DS Protocol-specific constraints are defined here
|
|
26
|
+
*
|
|
27
|
+
* **Future Compatibility:**
|
|
28
|
+
* - Currently only one Offer per dataset is supported
|
|
29
|
+
* - Array structure allows future support for multiple offers
|
|
30
|
+
*
|
|
31
|
+
* @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
|
|
32
|
+
* @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec
|
|
33
|
+
* @see IOdrlOffer from @twin.org/standards-w3c-odrl
|
|
34
|
+
* @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat
|
|
35
|
+
*/
|
|
36
|
+
export interface IDataspaceProtocolDistribution extends Omit<IDcatDistribution, "odrl:hasPolicy" | "@type" | "@context" | "dcterms:format"> {
|
|
37
|
+
/**
|
|
38
|
+
* LD Context. Required per Eclipse Data Space Protocol.
|
|
39
|
+
*/
|
|
40
|
+
"@context": DataspaceProtocolContextType;
|
|
41
|
+
/**
|
|
42
|
+
* The type identifier for the Distribution.
|
|
43
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
44
|
+
*/
|
|
45
|
+
"@type": typeof DataspaceProtocolCatalogTypes.Distribution;
|
|
46
|
+
/**
|
|
47
|
+
* Unique identifier for the dataset.
|
|
48
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
49
|
+
*/
|
|
50
|
+
"@id": string;
|
|
51
|
+
/**
|
|
52
|
+
* Array of ODRL policies (Offers) as required by DS Protocol.
|
|
53
|
+
*
|
|
54
|
+
* REQUIRED per Eclipse Data Space Protocol spec.
|
|
55
|
+
* Must contain at least one IOdrlOffer.
|
|
56
|
+
* Currently only single offer is supported, but array structure
|
|
57
|
+
* allows for future multi-offer support.
|
|
58
|
+
*/
|
|
59
|
+
hasPolicy?: ObjectOrArray<Omit<IOdrlOffer, "@context">>;
|
|
60
|
+
/**
|
|
61
|
+
* Access service.
|
|
62
|
+
* It can be a URI pointing to an access service or inline the access service itself
|
|
63
|
+
*/
|
|
64
|
+
accessService: string | Omit<IDataspaceProtocolDataService, "@context">;
|
|
65
|
+
/**
|
|
66
|
+
* Distribution format.
|
|
67
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
68
|
+
*/
|
|
69
|
+
format: string;
|
|
70
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The types for Dataspace Protocol Catalog Protocol.
|
|
3
3
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const DataspaceProtocolCatalogTypes: {
|
|
6
6
|
/**
|
|
7
7
|
* Catalog Request Message.
|
|
8
8
|
*/
|
|
@@ -15,8 +15,24 @@ export declare const CatalogTypes: {
|
|
|
15
15
|
* Catalog Error.
|
|
16
16
|
*/
|
|
17
17
|
readonly CatalogError: "CatalogError";
|
|
18
|
+
/**
|
|
19
|
+
* Dataset.
|
|
20
|
+
*/
|
|
21
|
+
readonly Dataset: "Dataset";
|
|
22
|
+
/**
|
|
23
|
+
* Data Service.
|
|
24
|
+
*/
|
|
25
|
+
readonly DataService: "DataService";
|
|
26
|
+
/**
|
|
27
|
+
* Distribution.
|
|
28
|
+
*/
|
|
29
|
+
readonly Distribution: "Distribution";
|
|
30
|
+
/**
|
|
31
|
+
* Catalog.
|
|
32
|
+
*/
|
|
33
|
+
readonly Catalog: "Catalog";
|
|
18
34
|
};
|
|
19
35
|
/**
|
|
20
36
|
* The types for Dataspace Protocol Catalog Protocol.
|
|
21
37
|
*/
|
|
22
|
-
export type
|
|
38
|
+
export type DataspaceProtocolCatalogTypes = (typeof DataspaceProtocolCatalogTypes)[keyof typeof DataspaceProtocolCatalogTypes];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IOdrlAgreement } from "@twin.org/standards-w3c-odrl";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
|
|
3
3
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for Dataspace Protocol Contract Agreement Messages.
|
|
6
6
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface IDataspaceProtocolContractAgreementMessage {
|
|
9
9
|
/**
|
|
10
10
|
* The JSON-LD context.
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ export interface IContractAgreementMessage {
|
|
|
13
13
|
/**
|
|
14
14
|
* The type of the message.
|
|
15
15
|
*/
|
|
16
|
-
"@type": typeof
|
|
16
|
+
"@type": typeof DataspaceProtocolContractNegotiationTypes.ContractAgreementMessage;
|
|
17
17
|
/**
|
|
18
18
|
* The provider id for the contract.
|
|
19
19
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Contract Agreement Verification Messages.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-verification-message
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolContractAgreementVerificationMessage {
|
|
8
8
|
/**
|
|
9
9
|
* The JSON-LD context.
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ export interface IContractAgreementVerificationMessage {
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of the message.
|
|
14
14
|
*/
|
|
15
|
-
"@type": typeof
|
|
15
|
+
"@type": typeof DataspaceProtocolContractNegotiationTypes.ContractAgreementVerificationMessage;
|
|
16
16
|
/**
|
|
17
17
|
* The provider id for the contract.
|
|
18
18
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
|
|
3
|
+
import type { DataspaceProtocolContractNegotiationStateType } from "./types/dataspaceProtocolContractNegotiationStateType.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for Dataspace Protocol Contract Agreement Messages.
|
|
6
6
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-contract-negotiation
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface IDataspaceProtocolContractNegotiation {
|
|
9
9
|
/**
|
|
10
10
|
* The JSON-LD context.
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ export interface IContractNegotiation {
|
|
|
13
13
|
/**
|
|
14
14
|
* The type of the message.
|
|
15
15
|
*/
|
|
16
|
-
"@type": typeof
|
|
16
|
+
"@type": typeof DataspaceProtocolContractNegotiationTypes.ContractNegotiation;
|
|
17
17
|
/**
|
|
18
18
|
* The provider id for the contract.
|
|
19
19
|
*/
|
|
@@ -25,5 +25,5 @@ export interface IContractNegotiation {
|
|
|
25
25
|
/**
|
|
26
26
|
* The offer being requested.
|
|
27
27
|
*/
|
|
28
|
-
state:
|
|
28
|
+
state: DataspaceProtocolContractNegotiationStateType;
|
|
29
29
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Contract Negotiation Error Messages.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolContractNegotiationError {
|
|
8
8
|
/**
|
|
9
9
|
* The JSON-LD context.
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ export interface IContractNegotiationError {
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of the message.
|
|
14
14
|
*/
|
|
15
|
-
"@type": typeof
|
|
15
|
+
"@type": typeof DataspaceProtocolContractNegotiationTypes.ContractNegotiationError;
|
|
16
16
|
/**
|
|
17
17
|
* The provider id for the contract.
|
|
18
18
|
*/
|
|
@@ -28,15 +28,5 @@ export interface IContractNegotiationError {
|
|
|
28
28
|
/**
|
|
29
29
|
* The error reason(s).
|
|
30
30
|
*/
|
|
31
|
-
reason?:
|
|
32
|
-
"@value": string;
|
|
33
|
-
"@language"?: string;
|
|
34
|
-
}[];
|
|
35
|
-
/**
|
|
36
|
-
* The error description(s).
|
|
37
|
-
*/
|
|
38
|
-
description?: {
|
|
39
|
-
"@value": string;
|
|
40
|
-
"@language"?: string;
|
|
41
|
-
}[];
|
|
31
|
+
reason?: any[];
|
|
42
32
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
|
|
3
|
+
import type { DataspaceProtocolContractNegotiationEventType } from "./types/dataspaceProtocolContractNegotiationEventType.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for Dataspace Protocol Contract Negotiation Event Messages.
|
|
6
6
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface IDataspaceProtocolContractNegotiationEventMessage {
|
|
9
9
|
/**
|
|
10
10
|
* The JSON-LD context.
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ export interface IContractNegotiationEventMessage {
|
|
|
13
13
|
/**
|
|
14
14
|
* The type of the message.
|
|
15
15
|
*/
|
|
16
|
-
"@type": typeof
|
|
16
|
+
"@type": typeof DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventMessage;
|
|
17
17
|
/**
|
|
18
18
|
* The provider id for the contract.
|
|
19
19
|
*/
|
|
@@ -25,5 +25,5 @@ export interface IContractNegotiationEventMessage {
|
|
|
25
25
|
/**
|
|
26
26
|
* The event type.
|
|
27
27
|
*/
|
|
28
|
-
event:
|
|
28
|
+
event: DataspaceProtocolContractNegotiationEventType;
|
|
29
29
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Contract Negotiation Termination Messages.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-termination-message
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolContractNegotiationTerminationMessage {
|
|
8
8
|
/**
|
|
9
9
|
* The JSON-LD context.
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ export interface IContractNegotiationTerminationMessage {
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of the message.
|
|
14
14
|
*/
|
|
15
|
-
"@type": typeof
|
|
15
|
+
"@type": typeof DataspaceProtocolContractNegotiationTypes.ContractNegotiationTerminationMessage;
|
|
16
16
|
/**
|
|
17
17
|
* The provider id for the contract.
|
|
18
18
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
|
|
2
2
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for Dataspace Protocol Contract Offer Messages.
|
|
6
6
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-message
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface IDataspaceProtocolContractOfferMessage {
|
|
9
9
|
/**
|
|
10
10
|
* The JSON-LD context.
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ export interface IContractOfferMessage {
|
|
|
13
13
|
/**
|
|
14
14
|
* The type of the message.
|
|
15
15
|
*/
|
|
16
|
-
"@type": typeof
|
|
16
|
+
"@type": typeof DataspaceProtocolContractNegotiationTypes.ContractOfferMessage;
|
|
17
17
|
/**
|
|
18
18
|
* The provider id for the contract.
|
|
19
19
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
|
|
2
2
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for Dataspace Protocol Contract Request Messages.
|
|
6
6
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-message
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface IDataspaceProtocolContractRequestMessage {
|
|
9
9
|
/**
|
|
10
10
|
* The JSON-LD context.
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ export interface IContractRequestMessage {
|
|
|
13
13
|
/**
|
|
14
14
|
* The type of the message.
|
|
15
15
|
*/
|
|
16
|
-
"@type": typeof
|
|
16
|
+
"@type": typeof DataspaceProtocolContractNegotiationTypes.ContractRequestMessage;
|
|
17
17
|
/**
|
|
18
18
|
* The provider id for the contract.
|
|
19
19
|
*/
|