@twin.org/standards-dataspace-protocol 0.0.3-next.5 → 0.0.3-next.50
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 +114 -20
- package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
- package/dist/es/dataTypes/contractNegotiationDataTypes.js +58 -62
- package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +1 -1
- package/dist/es/dataTypes/dataspaceProtocolDataTypes.js +4 -1
- package/dist/es/dataTypes/dataspaceProtocolDataTypes.js.map +1 -1
- package/dist/es/dataTypes/transferProcessDataTypes.js +53 -56
- package/dist/es/dataTypes/transferProcessDataTypes.js.map +1 -1
- package/dist/es/index.js +47 -27
- package/dist/es/index.js.map +1 -1
- 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/IDataspaceProtocolDatasetRequestMessage.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolDatasetRequestMessage.js.map +1 -0
- package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js +86 -0
- 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/dcat3/IDataspaceProtocolCatalog.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolCatalog.js.map +1 -0
- package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js.map +1 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDataService.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDataService.js.map +1 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js.map +1 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDataset.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDataset.js.map +1 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js.map +1 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDistribution.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDistribution.js.map +1 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js.map +1 -0
- package/dist/es/models/odrl/IDataspaceProtocolAgreement.js +2 -0
- package/dist/es/models/odrl/IDataspaceProtocolAgreement.js.map +1 -0
- package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js +2 -0
- package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js.map +1 -0
- package/dist/es/models/odrl/IDataspaceProtocolOffer.js +2 -0
- package/dist/es/models/odrl/IDataspaceProtocolOffer.js.map +1 -0
- package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js +2 -0
- package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js.map +1 -0
- package/dist/es/models/odrl/IDataspaceProtocolPolicy.js +2 -0
- package/dist/es/models/odrl/IDataspaceProtocolPolicy.js.map +1 -0
- package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js +2 -0
- package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js.map +1 -0
- package/dist/es/models/odrl/IDataspaceProtocolSet.js +2 -0
- package/dist/es/models/odrl/IDataspaceProtocolSet.js.map +1 -0
- package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js +2 -0
- package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js.map +1 -0
- 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/{ITransferSuspensionMessage.js → IDataspaceProtocolTransferSuspensionMessage.js} +1 -1
- 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/{transferProcessTypes.js → dataspaceProtocolTransferProcessTypes.js} +2 -2
- 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/{transferProcessStateType.js → dataspaceProtocolTransferProcessStateType.js} +2 -2
- package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js.map +1 -0
- package/dist/es/schemas/DataspaceProtocolAgreement.json +184 -0
- package/dist/es/schemas/DataspaceProtocolAgreementNoContext.json +6 -0
- package/dist/es/schemas/DataspaceProtocolCatalog.json +11 -0
- package/dist/es/schemas/{CatalogError.json → DataspaceProtocolCatalogError.json} +10 -7
- package/dist/es/schemas/DataspaceProtocolCatalogNoContext.json +6 -0
- package/dist/es/schemas/{CatalogRequestMessage.json → DataspaceProtocolCatalogRequestMessage.json} +10 -7
- package/dist/es/schemas/{ContractAgreementMessage.json → DataspaceProtocolContractAgreementMessage.json} +11 -8
- package/dist/es/schemas/{ContractAgreementVerificationMessage.json → DataspaceProtocolContractAgreementVerificationMessage.json} +10 -7
- package/dist/es/schemas/{ContractNegotiation.json → DataspaceProtocolContractNegotiation.json} +11 -8
- package/dist/es/schemas/{ContractNegotiationError.json → DataspaceProtocolContractNegotiationError.json} +10 -7
- package/dist/es/schemas/{ContractNegotiationEventMessage.json → DataspaceProtocolContractNegotiationEventMessage.json} +11 -8
- 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} +10 -7
- package/dist/es/schemas/{ContractOfferMessage.json → DataspaceProtocolContractOfferMessage.json} +11 -8
- package/dist/es/schemas/{ContractRequestMessage.json → DataspaceProtocolContractRequestMessage.json} +11 -8
- package/dist/es/schemas/{DataAddress.json → DataspaceProtocolDataAddress.json} +3 -4
- package/dist/es/schemas/DataspaceProtocolDataServiceNoContext.json +6 -0
- package/dist/es/schemas/DataspaceProtocolDataset.json +11 -0
- package/dist/es/schemas/DataspaceProtocolDatasetNoContext.json +6 -0
- package/dist/es/schemas/{DatasetRequestMessage.json → DataspaceProtocolDatasetRequestMessage.json} +10 -7
- package/dist/es/schemas/DataspaceProtocolDistributionNoContext.json +6 -0
- package/dist/es/schemas/{EndpointProperty.json → DataspaceProtocolEndpointProperty.json} +2 -3
- package/dist/es/schemas/DataspaceProtocolOffer.json +202 -0
- package/dist/es/schemas/DataspaceProtocolOfferNoContext.json +6 -0
- package/dist/es/schemas/DataspaceProtocolPolicy.json +219 -0
- package/dist/es/schemas/DataspaceProtocolPolicyNoContext.json +6 -0
- package/dist/es/schemas/DataspaceProtocolSet.json +220 -0
- package/dist/es/schemas/DataspaceProtocolSetNoContext.json +6 -0
- package/dist/es/schemas/{TransferCompletionMessage.json → DataspaceProtocolTransferCompletionMessage.json} +10 -7
- package/dist/es/schemas/{TransferError.json → DataspaceProtocolTransferError.json} +10 -7
- package/dist/es/schemas/DataspaceProtocolTransferProcess.json +82 -0
- package/dist/es/schemas/{TransferRequestMessage.json → DataspaceProtocolTransferRequestMessage.json} +11 -8
- package/dist/es/schemas/{TransferStartMessage.json → DataspaceProtocolTransferStartMessage.json} +11 -8
- package/dist/es/schemas/{TransferSuspensionMessage.json → DataspaceProtocolTransferSuspensionMessage.json} +10 -7
- package/dist/es/schemas/{TransferTerminationMessage.json → DataspaceProtocolTransferTerminationMessage.json} +10 -7
- 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/index.d.ts +44 -26
- package/dist/types/models/catalog/{ICatalogError.d.ts → IDataspaceProtocolCatalogError.d.ts} +3 -3
- package/dist/types/models/catalog/{ICatalogRequestMessage.d.ts → IDataspaceProtocolCatalogRequestMessage.d.ts} +3 -3
- package/dist/types/models/catalog/{IDatasetRequestMessage.d.ts → IDataspaceProtocolDatasetRequestMessage.d.ts} +3 -3
- package/dist/types/models/catalog/dataspaceProtocolCatalogTypes.d.ts +86 -0
- package/dist/types/models/contractNegotiation/{IContractAgreementMessage.d.ts → IDataspaceProtocolContractAgreementMessage.d.ts} +5 -5
- 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} +3 -3
- 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} +5 -5
- package/dist/types/models/contractNegotiation/{IContractRequestMessage.d.ts → IDataspaceProtocolContractRequestMessage.d.ts} +5 -5
- 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/dcat3/IDataspaceProtocolCatalog.d.ts +63 -0
- package/dist/types/models/dcat3/IDataspaceProtocolCatalogNoContext.d.ts +5 -0
- package/dist/types/models/dcat3/IDataspaceProtocolDataService.d.ts +48 -0
- package/dist/types/models/dcat3/IDataspaceProtocolDataServiceNoContext.d.ts +5 -0
- package/dist/types/models/dcat3/IDataspaceProtocolDataset.d.ts +65 -0
- package/dist/types/models/dcat3/IDataspaceProtocolDatasetNoContext.d.ts +5 -0
- package/dist/types/models/dcat3/IDataspaceProtocolDistribution.d.ts +69 -0
- package/dist/types/models/dcat3/IDataspaceProtocolDistributionNoContext.d.ts +5 -0
- package/dist/types/models/odrl/IDataspaceProtocolAgreement.d.ts +17 -0
- package/dist/types/models/odrl/IDataspaceProtocolAgreementNoContext.d.ts +5 -0
- package/dist/types/models/odrl/IDataspaceProtocolOffer.d.ts +17 -0
- package/dist/types/models/odrl/IDataspaceProtocolOfferNoContext.d.ts +5 -0
- package/dist/types/models/odrl/IDataspaceProtocolPolicy.d.ts +17 -0
- package/dist/types/models/odrl/IDataspaceProtocolPolicyNoContext.d.ts +5 -0
- package/dist/types/models/odrl/IDataspaceProtocolSet.d.ts +17 -0
- package/dist/types/models/odrl/IDataspaceProtocolSetNoContext.d.ts +5 -0
- package/dist/types/models/transferProcess/{IDataAddress.d.ts → IDataspaceProtocolDataAddress.d.ts} +5 -5
- package/dist/types/models/transferProcess/{IEndpointProperty.d.ts → IDataspaceProtocolEndpointProperty.d.ts} +3 -3
- package/dist/types/models/transferProcess/{ITransferCompletionMessage.d.ts → IDataspaceProtocolTransferCompletionMessage.d.ts} +3 -3
- package/dist/types/models/transferProcess/{ITransferError.d.ts → IDataspaceProtocolTransferError.d.ts} +3 -3
- package/dist/types/models/transferProcess/{ITransferProcess.d.ts → IDataspaceProtocolTransferProcess.d.ts} +5 -5
- package/dist/types/models/transferProcess/{ITransferRequestMessage.d.ts → IDataspaceProtocolTransferRequestMessage.d.ts} +5 -5
- package/dist/types/models/transferProcess/{ITransferStartMessage.d.ts → IDataspaceProtocolTransferStartMessage.d.ts} +5 -5
- package/dist/types/models/transferProcess/{ITransferSuspensionMessage.d.ts → IDataspaceProtocolTransferSuspensionMessage.d.ts} +3 -3
- package/dist/types/models/transferProcess/{ITransferTerminationMessage.d.ts → IDataspaceProtocolTransferTerminationMessage.d.ts} +3 -3
- 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 +806 -0
- package/docs/reference/classes/DataspaceProtocolHelper.md +63 -0
- package/docs/reference/index.md +51 -32
- package/docs/reference/interfaces/IDataspaceProtocolAgreement.md +179 -0
- package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +574 -0
- package/docs/reference/interfaces/{ICatalogError.md → IDataspaceProtocolCatalogError.md} +1 -1
- package/docs/reference/interfaces/{ICatalogRequestMessage.md → IDataspaceProtocolCatalogRequestMessage.md} +1 -1
- package/docs/reference/interfaces/{IContractAgreementMessage.md → IDataspaceProtocolContractAgreementMessage.md} +3 -3
- 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} +2 -2
- 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} +3 -3
- package/docs/reference/interfaces/{IContractRequestMessage.md → IDataspaceProtocolContractRequestMessage.md} +3 -3
- package/docs/reference/interfaces/{IDataAddress.md → IDataspaceProtocolDataAddress.md} +3 -3
- package/docs/reference/interfaces/IDataspaceProtocolDataService.md +391 -0
- package/docs/reference/interfaces/IDataspaceProtocolDataset.md +488 -0
- package/docs/reference/interfaces/{IDatasetRequestMessage.md → IDataspaceProtocolDatasetRequestMessage.md} +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +384 -0
- package/docs/reference/interfaces/{IEndpointProperty.md → IDataspaceProtocolEndpointProperty.md} +2 -2
- package/docs/reference/interfaces/IDataspaceProtocolOffer.md +179 -0
- package/docs/reference/interfaces/IDataspaceProtocolPolicy.md +180 -0
- package/docs/reference/interfaces/IDataspaceProtocolSet.md +179 -0
- package/docs/reference/interfaces/{ITransferCompletionMessage.md → IDataspaceProtocolTransferCompletionMessage.md} +2 -2
- package/docs/reference/interfaces/{ITransferError.md → IDataspaceProtocolTransferError.md} +2 -2
- package/docs/reference/interfaces/IDataspaceProtocolTransferProcess.md +44 -0
- package/docs/reference/interfaces/{ITransferRequestMessage.md → IDataspaceProtocolTransferRequestMessage.md} +3 -3
- package/docs/reference/interfaces/{ITransferStartMessage.md → IDataspaceProtocolTransferStartMessage.md} +3 -3
- package/docs/reference/interfaces/{ITransferSuspensionMessage.md → IDataspaceProtocolTransferSuspensionMessage.md} +2 -2
- package/docs/reference/interfaces/{ITransferTerminationMessage.md → IDataspaceProtocolTransferTerminationMessage.md} +2 -2
- 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/type-aliases/IDataspaceProtocolAgreementNoContext.md +5 -0
- package/docs/reference/type-aliases/IDataspaceProtocolCatalogNoContext.md +5 -0
- package/docs/reference/type-aliases/IDataspaceProtocolDataServiceNoContext.md +5 -0
- package/docs/reference/type-aliases/IDataspaceProtocolDatasetNoContext.md +5 -0
- package/docs/reference/type-aliases/IDataspaceProtocolDistributionNoContext.md +5 -0
- package/docs/reference/type-aliases/IDataspaceProtocolOfferNoContext.md +5 -0
- package/docs/reference/type-aliases/IDataspaceProtocolPolicyNoContext.md +5 -0
- package/docs/reference/type-aliases/IDataspaceProtocolSetNoContext.md +5 -0
- package/docs/reference/variables/DataspaceProtocolCatalogTypes.md +122 -0
- 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/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 +0 -22
- 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/es/models/transferProcess/IDataAddress.js +0 -2
- package/dist/es/models/transferProcess/IDataAddress.js.map +0 -1
- package/dist/es/models/transferProcess/IEndpointProperty.js +0 -2
- package/dist/es/models/transferProcess/IEndpointProperty.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferCompletionMessage.js +0 -2
- package/dist/es/models/transferProcess/ITransferCompletionMessage.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferError.js +0 -2
- package/dist/es/models/transferProcess/ITransferError.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferProcess.js +0 -2
- package/dist/es/models/transferProcess/ITransferProcess.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferRequestMessage.js +0 -2
- package/dist/es/models/transferProcess/ITransferRequestMessage.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferStartMessage.js +0 -2
- package/dist/es/models/transferProcess/ITransferStartMessage.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferSuspensionMessage.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferTerminationMessage.js +0 -2
- package/dist/es/models/transferProcess/ITransferTerminationMessage.js.map +0 -1
- package/dist/es/models/transferProcess/transferProcessTypes.js.map +0 -1
- package/dist/es/models/transferProcess/types/transferProcessStateType.js.map +0 -1
- package/dist/es/schemas/TransferProcess.json +0 -109
- package/dist/types/models/catalog/catalogTypes.d.ts +0 -22
- package/dist/types/models/contractNegotiation/contractNegotiationTypes.d.ts +0 -50
- package/dist/types/models/transferProcess/transferProcessTypes.d.ts +0 -46
- package/dist/types/models/transferProcess/types/transferProcessStateType.d.ts +0 -30
- package/docs/reference/interfaces/ITransferProcess.md +0 -74
- 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/type-aliases/TransferProcessStateType.md +0 -5
- package/docs/reference/type-aliases/TransferProcessTypes.md +0 -5
- package/docs/reference/variables/CatalogTypes.md +0 -26
- package/docs/reference/variables/ContractNegotiationTypes.md +0 -68
- package/docs/reference/variables/TransferProcessStateType.md +0 -38
- package/docs/reference/variables/TransferProcessTypes.md +0 -62
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { IDcatDataset } from "@twin.org/standards-w3c-dcat";
|
|
2
|
+
import type { DataspaceProtocolCatalogTypes } from "../catalog/dataspaceProtocolCatalogTypes.js";
|
|
3
|
+
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
4
|
+
import type { IDataspaceProtocolDistributionNoContext } from "./IDataspaceProtocolDistributionNoContext.js";
|
|
5
|
+
import type { IDataspaceProtocolOfferNoContext } from "../odrl/IDataspaceProtocolOfferNoContext.js";
|
|
6
|
+
/**
|
|
7
|
+
* Dataset interface compliant with Eclipse Data Space Protocol.
|
|
8
|
+
*
|
|
9
|
+
* This interface extends IDataset 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
|
+
* - `odrl:hasPolicy` MUST be present as an array of ODRL Offers (REQUIRED)
|
|
15
|
+
* - Array MUST contain at least one IOdrlOffer
|
|
16
|
+
* - Each Offer MUST have `@type`: "Offer"
|
|
17
|
+
* - Each Offer MUST have `@id`
|
|
18
|
+
* - `dcat:distribution` MUST be present (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 IDataspaceProtocolDataset extends Omit<IDcatDataset, "odrl:hasPolicy" | "dcat:distribution" | "@type" | "@context"> {
|
|
37
|
+
/**
|
|
38
|
+
* LD Context. Required per Eclipse Data Space Protocol.
|
|
39
|
+
*/
|
|
40
|
+
"@context": DataspaceProtocolContextType;
|
|
41
|
+
/**
|
|
42
|
+
* The type identifier for the dataset.
|
|
43
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
44
|
+
*/
|
|
45
|
+
"@type": typeof DataspaceProtocolCatalogTypes.Dataset;
|
|
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: IDataspaceProtocolOfferNoContext | IDataspaceProtocolOfferNoContext[];
|
|
60
|
+
/**
|
|
61
|
+
* Distribution of the dataset.
|
|
62
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
63
|
+
*/
|
|
64
|
+
distribution: IDataspaceProtocolDistributionNoContext | IDataspaceProtocolDistributionNoContext[];
|
|
65
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDataspaceProtocolDataset } from "./IDataspaceProtocolDataset.js";
|
|
2
|
+
/**
|
|
3
|
+
* Dataset interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
|
|
4
|
+
*/
|
|
5
|
+
export type IDataspaceProtocolDatasetNoContext = Omit<IDataspaceProtocolDataset, "@context">;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { IDcatDistribution } from "@twin.org/standards-w3c-dcat";
|
|
2
|
+
import type { DataspaceProtocolCatalogTypes } from "../catalog/dataspaceProtocolCatalogTypes.js";
|
|
3
|
+
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
4
|
+
import type { IDataspaceProtocolDataServiceNoContext } from "./IDataspaceProtocolDataServiceNoContext.js";
|
|
5
|
+
import type { IDataspaceProtocolOfferNoContext } from "../odrl/IDataspaceProtocolOfferNoContext.js";
|
|
6
|
+
/**
|
|
7
|
+
* Distribution interface compliant with Eclipse Data Space Protocol.
|
|
8
|
+
*
|
|
9
|
+
* This interface extends IDistribution 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
|
+
* - `odrl:hasPolicy` MIGHT be present as an array of ODRL Offers (OPTIONAL)
|
|
15
|
+
* - Array MUST contain at least one IOdrlOffer
|
|
16
|
+
* - Each Offer MUST have `@type`: "Offer"
|
|
17
|
+
* - `format` is REQUIRED.
|
|
18
|
+
*
|
|
19
|
+
* **Type System Design:**
|
|
20
|
+
* - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`
|
|
21
|
+
* - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`
|
|
22
|
+
* - Interface extension allows TypeScript to override inherited property types
|
|
23
|
+
* - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly
|
|
24
|
+
* - DS Protocol-specific constraints are defined here
|
|
25
|
+
*
|
|
26
|
+
* **Future Compatibility:**
|
|
27
|
+
* - Currently only one Offer per dataset is supported
|
|
28
|
+
* - Array structure allows future support for multiple offers
|
|
29
|
+
*
|
|
30
|
+
* @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
|
|
31
|
+
* @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec
|
|
32
|
+
* @see IOdrlOffer from @twin.org/standards-w3c-odrl
|
|
33
|
+
* @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat
|
|
34
|
+
*/
|
|
35
|
+
export interface IDataspaceProtocolDistribution extends Omit<IDcatDistribution, "odrl:hasPolicy" | "@type" | "@context" | "dcterms:format"> {
|
|
36
|
+
/**
|
|
37
|
+
* LD Context. Required per Eclipse Data Space Protocol.
|
|
38
|
+
*/
|
|
39
|
+
"@context": DataspaceProtocolContextType;
|
|
40
|
+
/**
|
|
41
|
+
* The type identifier for the Distribution.
|
|
42
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
43
|
+
*/
|
|
44
|
+
"@type": typeof DataspaceProtocolCatalogTypes.Distribution;
|
|
45
|
+
/**
|
|
46
|
+
* Unique identifier for the dataset.
|
|
47
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
48
|
+
*/
|
|
49
|
+
"@id": string;
|
|
50
|
+
/**
|
|
51
|
+
* Array of ODRL policies (Offers) as required by DS Protocol.
|
|
52
|
+
*
|
|
53
|
+
* REQUIRED per Eclipse Data Space Protocol spec.
|
|
54
|
+
* Must contain at least one IOdrlOffer.
|
|
55
|
+
* Currently only single offer is supported, but array structure
|
|
56
|
+
* allows for future multi-offer support.
|
|
57
|
+
*/
|
|
58
|
+
hasPolicy?: IDataspaceProtocolOfferNoContext | IDataspaceProtocolOfferNoContext[];
|
|
59
|
+
/**
|
|
60
|
+
* Access service.
|
|
61
|
+
* It can be a URI pointing to an access service or inline the access service itself
|
|
62
|
+
*/
|
|
63
|
+
accessService: string | IDataspaceProtocolDataServiceNoContext;
|
|
64
|
+
/**
|
|
65
|
+
* Distribution format.
|
|
66
|
+
* REQUIRED per Eclipse Data Space Protocol.
|
|
67
|
+
*/
|
|
68
|
+
format: string;
|
|
69
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDataspaceProtocolDistribution } from "./IDataspaceProtocolDistribution.js";
|
|
2
|
+
/**
|
|
3
|
+
* Distribution interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
|
|
4
|
+
*/
|
|
5
|
+
export type IDataspaceProtocolDistributionNoContext = Omit<IDataspaceProtocolDistribution, "@context">;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IOdrlAgreement } from "@twin.org/standards-w3c-odrl";
|
|
2
|
+
/**
|
|
3
|
+
* Agreement interface compliant with Eclipse Data Space Protocol.
|
|
4
|
+
*
|
|
5
|
+
* Extends IOdrlAgreement with DS Protocol-specific constraints:
|
|
6
|
+
* - `@id` is REQUIRED (used as the primary agreement identifier in DS Protocol)
|
|
7
|
+
* - `@context` is omitted (inherited from the parent Dataset/Distribution)
|
|
8
|
+
*
|
|
9
|
+
* @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
|
|
10
|
+
* @see IOdrlAgreement from @twin.org/standards-w3c-odrl
|
|
11
|
+
*/
|
|
12
|
+
export interface IDataspaceProtocolAgreement extends Omit<IOdrlAgreement, "uid"> {
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier for the agreement.
|
|
15
|
+
*/
|
|
16
|
+
"@id": string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDataspaceProtocolAgreement } from "./IDataspaceProtocolAgreement.js";
|
|
2
|
+
/**
|
|
3
|
+
* Agreement interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
|
|
4
|
+
*/
|
|
5
|
+
export type IDataspaceProtocolAgreementNoContext = Omit<IDataspaceProtocolAgreement, "@context">;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
|
|
2
|
+
/**
|
|
3
|
+
* Offer interface compliant with Eclipse Data Space Protocol.
|
|
4
|
+
*
|
|
5
|
+
* Extends IOdrlOffer with DS Protocol-specific constraints:
|
|
6
|
+
* - `@id` is REQUIRED (used as the primary offer identifier in DS Protocol)
|
|
7
|
+
* - `@context` is omitted (inherited from the parent Dataset/Distribution)
|
|
8
|
+
*
|
|
9
|
+
* @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
|
|
10
|
+
* @see IOdrlOffer from @twin.org/standards-w3c-odrl
|
|
11
|
+
*/
|
|
12
|
+
export interface IDataspaceProtocolOffer extends Omit<IOdrlOffer, "uid"> {
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier for the offer.
|
|
15
|
+
*/
|
|
16
|
+
"@id": string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDataspaceProtocolOffer } from "./IDataspaceProtocolOffer.js";
|
|
2
|
+
/**
|
|
3
|
+
* Offer interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
|
|
4
|
+
*/
|
|
5
|
+
export type IDataspaceProtocolOfferNoContext = Omit<IDataspaceProtocolOffer, "@context">;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IOdrlPolicy } from "@twin.org/standards-w3c-odrl";
|
|
2
|
+
/**
|
|
3
|
+
* Policy interface compliant with Eclipse Data Space Protocol.
|
|
4
|
+
*
|
|
5
|
+
* Extends IOdrlPolicy with DS Protocol-specific constraints:
|
|
6
|
+
* - `@id` is REQUIRED (used as the primary policy identifier in DS Protocol)
|
|
7
|
+
* - `@context` is omitted (inherited from the parent Dataset/Distribution)
|
|
8
|
+
*
|
|
9
|
+
* @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
|
|
10
|
+
* @see IOdrlPolicy from @twin.org/standards-w3c-odrl
|
|
11
|
+
*/
|
|
12
|
+
export interface IDataspaceProtocolPolicy extends Omit<IOdrlPolicy, "uid"> {
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier for the policy.
|
|
15
|
+
*/
|
|
16
|
+
"@id": string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDataspaceProtocolPolicy } from "./IDataspaceProtocolPolicy.js";
|
|
2
|
+
/**
|
|
3
|
+
* Policy interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
|
|
4
|
+
*/
|
|
5
|
+
export type IDataspaceProtocolPolicyNoContext = Omit<IDataspaceProtocolPolicy, "@context">;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IOdrlSet } from "@twin.org/standards-w3c-odrl";
|
|
2
|
+
/**
|
|
3
|
+
* Set interface compliant with Eclipse Data Space Protocol.
|
|
4
|
+
*
|
|
5
|
+
* Extends IOdrlSet with DS Protocol-specific constraints:
|
|
6
|
+
* - `@id` is REQUIRED (used as the primary set identifier in DS Protocol)
|
|
7
|
+
* - `@context` is omitted (inherited from the parent Dataset/Distribution)
|
|
8
|
+
*
|
|
9
|
+
* @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
|
|
10
|
+
* @see IOdrlSet from @twin.org/standards-w3c-odrl
|
|
11
|
+
*/
|
|
12
|
+
export interface IDataspaceProtocolSet extends Omit<IOdrlSet, "uid"> {
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier for the set.
|
|
15
|
+
*/
|
|
16
|
+
"@id": string;
|
|
17
|
+
}
|
package/dist/types/models/transferProcess/{IDataAddress.d.ts → IDataspaceProtocolDataAddress.d.ts}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
|
|
2
|
+
import type { IDataspaceProtocolEndpointProperty } from "./IDataspaceProtocolEndpointProperty.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Transfer Messages.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolDataAddress {
|
|
8
8
|
/**
|
|
9
9
|
* LD Type
|
|
10
10
|
*/
|
|
11
|
-
"@type": typeof
|
|
11
|
+
"@type": typeof DataspaceProtocolTransferProcessTypes.DataAddress;
|
|
12
12
|
/**
|
|
13
13
|
* The type of endpoint of this data address.
|
|
14
14
|
*/
|
|
@@ -20,5 +20,5 @@ export interface IDataAddress {
|
|
|
20
20
|
/**
|
|
21
21
|
* Properties associated to the endpoint which might depend on the endpoint type.
|
|
22
22
|
*/
|
|
23
|
-
endpointProperties?:
|
|
23
|
+
endpointProperties?: IDataspaceProtocolEndpointProperty[];
|
|
24
24
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
|
|
2
2
|
/**
|
|
3
3
|
* Interface for Dataspace Protocol Transfer Messages.
|
|
4
4
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface IDataspaceProtocolEndpointProperty {
|
|
7
7
|
/**
|
|
8
8
|
* LD Type.
|
|
9
9
|
*/
|
|
10
|
-
"@type": typeof
|
|
10
|
+
"@type": typeof DataspaceProtocolTransferProcessTypes.EndpointProperty;
|
|
11
11
|
/**
|
|
12
12
|
* Property name.
|
|
13
13
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Transfer Messages.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-completion-message
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolTransferCompletionMessage {
|
|
8
8
|
/**
|
|
9
9
|
* LD Context
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ export interface ITransferCompletionMessage {
|
|
|
12
12
|
/**
|
|
13
13
|
* LD Type
|
|
14
14
|
*/
|
|
15
|
-
"@type": typeof
|
|
15
|
+
"@type": typeof DataspaceProtocolTransferProcessTypes.TransferCompletionMessage;
|
|
16
16
|
/**
|
|
17
17
|
* MUST refer to the transfer identifier of the Consumer side.
|
|
18
18
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Transfer Messages.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol#error-transfer-error
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolTransferError {
|
|
8
8
|
/**
|
|
9
9
|
* LD Context
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ export interface ITransferError {
|
|
|
12
12
|
/**
|
|
13
13
|
* LD Type
|
|
14
14
|
*/
|
|
15
|
-
"@type": typeof
|
|
15
|
+
"@type": typeof DataspaceProtocolTransferProcessTypes.TransferError;
|
|
16
16
|
/**
|
|
17
17
|
* MUST refer to the transfer identifier of the Consumer side.
|
|
18
18
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
|
|
3
|
+
import type { DataspaceProtocolTransferProcessStateType } from "./types/dataspaceProtocolTransferProcessStateType.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for Dataspace Protocol Transfer Messages.
|
|
6
6
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#ack-transfer-process
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface IDataspaceProtocolTransferProcess {
|
|
9
9
|
/**
|
|
10
10
|
* LD Context
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ export interface ITransferProcess {
|
|
|
13
13
|
/**
|
|
14
14
|
* LD Type
|
|
15
15
|
*/
|
|
16
|
-
"@type": typeof
|
|
16
|
+
"@type": typeof DataspaceProtocolTransferProcessTypes.TransferProcess;
|
|
17
17
|
/**
|
|
18
18
|
* MUST refer to the transfer identifier of the Consumer side.
|
|
19
19
|
*/
|
|
@@ -25,5 +25,5 @@ export interface ITransferProcess {
|
|
|
25
25
|
/**
|
|
26
26
|
* The transfer process state.
|
|
27
27
|
*/
|
|
28
|
-
state:
|
|
28
|
+
state: DataspaceProtocolTransferProcessStateType;
|
|
29
29
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
|
|
3
|
+
import type { IDataspaceProtocolDataAddress } from "./IDataspaceProtocolDataAddress.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for Dataspace Protocol Transfer Messages.
|
|
6
6
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-request-message
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface IDataspaceProtocolTransferRequestMessage {
|
|
9
9
|
/**
|
|
10
10
|
* LD Context
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ export interface ITransferRequestMessage {
|
|
|
13
13
|
/**
|
|
14
14
|
* LD Type
|
|
15
15
|
*/
|
|
16
|
-
"@type": typeof
|
|
16
|
+
"@type": typeof DataspaceProtocolTransferProcessTypes.TransferRequestMessage;
|
|
17
17
|
/**
|
|
18
18
|
* MUST refer to an existing Agreement between the Consumer and Provider.
|
|
19
19
|
*/
|
|
@@ -35,5 +35,5 @@ export interface ITransferRequestMessage {
|
|
|
35
35
|
* If defined MUST contain a transport-specific set of properties for pushing the data.
|
|
36
36
|
* It MAY include an endpoint, a temporary authorization via the endpointProperties property - depending on the endpointType.
|
|
37
37
|
*/
|
|
38
|
-
dataAddress?:
|
|
38
|
+
dataAddress?: IDataspaceProtocolDataAddress;
|
|
39
39
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
|
|
3
|
+
import type { IDataspaceProtocolDataAddress } from "./IDataspaceProtocolDataAddress.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for Dataspace Protocol Transfer Messages.
|
|
6
6
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-start-message
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface IDataspaceProtocolTransferStartMessage {
|
|
9
9
|
/**
|
|
10
10
|
* LD Context
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ export interface ITransferStartMessage {
|
|
|
13
13
|
/**
|
|
14
14
|
* LD Type
|
|
15
15
|
*/
|
|
16
|
-
"@type": typeof
|
|
16
|
+
"@type": typeof DataspaceProtocolTransferProcessTypes.TransferStartMessage;
|
|
17
17
|
/**
|
|
18
18
|
* MUST refer to the transfer identifier of the Consumer side.
|
|
19
19
|
*/
|
|
@@ -26,5 +26,5 @@ export interface ITransferStartMessage {
|
|
|
26
26
|
* MUST be provided if the current transfer is a pull transfer and
|
|
27
27
|
* contains a transport-specific endpoint address for obtaining the data.
|
|
28
28
|
*/
|
|
29
|
-
dataAddress?:
|
|
29
|
+
dataAddress?: IDataspaceProtocolDataAddress;
|
|
30
30
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Transfer Messages.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-suspension-message
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolTransferSuspensionMessage {
|
|
8
8
|
/**
|
|
9
9
|
* LD Context
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ export interface ITransferSuspensionMessage {
|
|
|
12
12
|
/**
|
|
13
13
|
* LD Type
|
|
14
14
|
*/
|
|
15
|
-
"@type": typeof
|
|
15
|
+
"@type": typeof DataspaceProtocolTransferProcessTypes.TransferSuspensionMessage;
|
|
16
16
|
/**
|
|
17
17
|
* MUST refer to the transfer identifier of the Consumer side.
|
|
18
18
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Dataspace Protocol Transfer Messages.
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-termination-message
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface IDataspaceProtocolTransferTerminationMessage {
|
|
8
8
|
/**
|
|
9
9
|
* LD Context
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ export interface ITransferTerminationMessage {
|
|
|
12
12
|
/**
|
|
13
13
|
* LD Type
|
|
14
14
|
*/
|
|
15
|
-
"@type": typeof
|
|
15
|
+
"@type": typeof DataspaceProtocolTransferProcessTypes.TransferTerminationMessage;
|
|
16
16
|
/**
|
|
17
17
|
* MUST refer to the transfer identifier of the Consumer side.
|
|
18
18
|
*/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The types for Dataspace Protocol Transfer Process.
|
|
3
|
+
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#message-types-1
|
|
4
|
+
*/
|
|
5
|
+
export declare const DataspaceProtocolTransferProcessTypes: {
|
|
6
|
+
/**
|
|
7
|
+
* Transfer Request Message.
|
|
8
|
+
*/
|
|
9
|
+
readonly TransferRequestMessage: "TransferRequestMessage";
|
|
10
|
+
/**
|
|
11
|
+
* Transfer Start Message.
|
|
12
|
+
*/
|
|
13
|
+
readonly TransferStartMessage: "TransferStartMessage";
|
|
14
|
+
/**
|
|
15
|
+
* Transfer Suspension Message.
|
|
16
|
+
*/
|
|
17
|
+
readonly TransferSuspensionMessage: "TransferSuspensionMessage";
|
|
18
|
+
/**
|
|
19
|
+
* Transfer Completion Message.
|
|
20
|
+
*/
|
|
21
|
+
readonly TransferCompletionMessage: "TransferCompletionMessage";
|
|
22
|
+
/**
|
|
23
|
+
* Transfer Termination Message.
|
|
24
|
+
*/
|
|
25
|
+
readonly TransferTerminationMessage: "TransferTerminationMessage";
|
|
26
|
+
/**
|
|
27
|
+
* Data Address
|
|
28
|
+
*/
|
|
29
|
+
readonly DataAddress: "DataAddress";
|
|
30
|
+
/**
|
|
31
|
+
* Endpoint property.
|
|
32
|
+
*/
|
|
33
|
+
readonly EndpointProperty: "EndpointProperty";
|
|
34
|
+
/**
|
|
35
|
+
* Transfer Process
|
|
36
|
+
*/
|
|
37
|
+
readonly TransferProcess: "TransferProcess";
|
|
38
|
+
/**
|
|
39
|
+
* Transfer Error.
|
|
40
|
+
*/
|
|
41
|
+
readonly TransferError: "TransferError";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The types for Dataspace Protocol Transfer.
|
|
45
|
+
*/
|
|
46
|
+
export type DataspaceProtocolTransferProcessTypes = (typeof DataspaceProtocolTransferProcessTypes)[keyof typeof DataspaceProtocolTransferProcessTypes];
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TWIN Data Space Protocol Profile endpoint type identifiers.
|
|
3
|
+
*
|
|
4
|
+
* This module defines endpoint types according to the TWIN Foundation's
|
|
5
|
+
* Data Space Protocol Profile (RFC 006), which extends the Eclipse Dataspace
|
|
6
|
+
* Protocol specification with TWIN-specific vocabulary.
|
|
7
|
+
*
|
|
8
|
+
* The TWIN vocabulary uses persistent identifiers under the
|
|
9
|
+
* https://schema.twindev.org namespace to provide stable, semantic
|
|
10
|
+
* identifiers for data space endpoint types.
|
|
11
|
+
*
|
|
12
|
+
* References:
|
|
13
|
+
* - TWIN RFC 006: https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/006-data-space-protocol-profile.md
|
|
14
|
+
* - TWIN DS Protocol Context: https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/twin-ds-protocol-profile.jsonld
|
|
15
|
+
* - Eclipse DSP Specification: https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/
|
|
16
|
+
* - RFC 001 (Query Interface): https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-connector/001-data-space-connector-query.md
|
|
17
|
+
*/
|
|
18
|
+
export declare const DataspaceProtocolEndpointType: {
|
|
19
|
+
/**
|
|
20
|
+
* HTTPS Query Endpoint (TWIN DS Profile).
|
|
21
|
+
*
|
|
22
|
+
* Used for PULL transfers via the TWIN Data Space Connector Query interface.
|
|
23
|
+
* The consumer retrieves data by querying this endpoint using the data access token.
|
|
24
|
+
* Endpoint must implement the interface specified in RFC 001.
|
|
25
|
+
*
|
|
26
|
+
* Transfer Flow:
|
|
27
|
+
* 1. Consumer initiates transfer request
|
|
28
|
+
* 2. Provider returns this endpoint type with data access token
|
|
29
|
+
* 3. Consumer queries the endpoint with the token to retrieve data
|
|
30
|
+
*
|
|
31
|
+
* @see https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/006-data-space-protocol-profile.md#data-transfer-profile-vocabulary
|
|
32
|
+
* @see https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-connector/001-data-space-connector-query.md
|
|
33
|
+
*/
|
|
34
|
+
readonly HttpsQueryEndpoint: "https://schema.twindev.org/dspace/v1/Https-Query-Endpoint";
|
|
35
|
+
/**
|
|
36
|
+
* HTTPS Activity Stream Endpoint (TWIN DS Profile).
|
|
37
|
+
*
|
|
38
|
+
* Used for PUSH transfers via Activity Streams 2.0 protocol.
|
|
39
|
+
* The provider actively sends data to the consumer's Activity Stream inbox endpoint.
|
|
40
|
+
* Based on W3C Activity Streams 2.0 specification.
|
|
41
|
+
*
|
|
42
|
+
* Transfer Flow:
|
|
43
|
+
* 1. Consumer initiates transfer request with this endpoint type
|
|
44
|
+
* 2. Consumer provides their Activity Stream inbox URL
|
|
45
|
+
* 3. Provider pushes data to the consumer's inbox as Activity Stream objects
|
|
46
|
+
*
|
|
47
|
+
* @see https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/006-data-space-protocol-profile.md#data-transfer-profile-vocabulary
|
|
48
|
+
* @see https://www.w3.org/TR/activitystreams-core/
|
|
49
|
+
* @see https://www.w3.org/TR/activitypub/
|
|
50
|
+
*/
|
|
51
|
+
readonly HttpsActivityStreamEndpoint: "https://schema.twindev.org/dspace/v1/Https-Activity-Stream-Endpoint";
|
|
52
|
+
/**
|
|
53
|
+
* HTTP endpoint (IDSA W3ID v4.1).
|
|
54
|
+
*
|
|
55
|
+
* Persistent identifier for HTTP-based data access endpoints.
|
|
56
|
+
* This W3ID URL is used as a semantic identifier in JSON-LD contexts.
|
|
57
|
+
*
|
|
58
|
+
* Note: For TWIN-specific implementations, prefer using `HttpsQueryEndpoint`.
|
|
59
|
+
* This constant is provided for interoperability with IDSA-based systems.
|
|
60
|
+
*
|
|
61
|
+
* @see https://w3id.org/idsa/v4.1/HTTP
|
|
62
|
+
* @see https://github.com/International-Data-Spaces-Association/InformationModel
|
|
63
|
+
*/
|
|
64
|
+
readonly HTTP: "https://w3id.org/idsa/v4.1/HTTP";
|
|
65
|
+
/**
|
|
66
|
+
* HTTPS endpoint (IDSA W3ID v4.1).
|
|
67
|
+
*
|
|
68
|
+
* Persistent identifier for HTTPS-based secure data access endpoints.
|
|
69
|
+
* This W3ID URL is used as a semantic identifier in JSON-LD contexts.
|
|
70
|
+
*
|
|
71
|
+
* Note: For TWIN-specific implementations, prefer using `HttpsQueryEndpoint`.
|
|
72
|
+
* This constant is provided for interoperability with IDSA-based systems.
|
|
73
|
+
*
|
|
74
|
+
* @see https://w3id.org/idsa/v4.1/HTTPS
|
|
75
|
+
* @see https://github.com/International-Data-Spaces-Association/InformationModel
|
|
76
|
+
*/
|
|
77
|
+
readonly HTTPS: "https://w3id.org/idsa/v4.1/HTTPS";
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Type representing all valid Dataspace Protocol endpoint types.
|
|
81
|
+
*
|
|
82
|
+
* All values are valid URIs as required by the DS Protocol JSON-LD context
|
|
83
|
+
* which defines endpointType as @type:@vocab.
|
|
84
|
+
*
|
|
85
|
+
* Includes:
|
|
86
|
+
* - TWIN RFC 006 types: HttpsQueryEndpoint, HttpsActivityStreamEndpoint
|
|
87
|
+
* - IDSA W3ID types: HTTP, HTTPS
|
|
88
|
+
*/
|
|
89
|
+
export type DataspaceProtocolEndpointType = (typeof DataspaceProtocolEndpointType)[keyof typeof DataspaceProtocolEndpointType];
|
package/dist/types/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The states for Dataspace Protocol Transfer Process.
|
|
3
|
+
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#ack-transfer-process
|
|
4
|
+
*/
|
|
5
|
+
export declare const DataspaceProtocolTransferProcessStateType: {
|
|
6
|
+
/**
|
|
7
|
+
* Completed
|
|
8
|
+
*/
|
|
9
|
+
readonly COMPLETED: "COMPLETED";
|
|
10
|
+
/**
|
|
11
|
+
* Requested
|
|
12
|
+
*/
|
|
13
|
+
readonly REQUESTED: "REQUESTED";
|
|
14
|
+
/**
|
|
15
|
+
* Started
|
|
16
|
+
*/
|
|
17
|
+
readonly STARTED: "STARTED";
|
|
18
|
+
/**
|
|
19
|
+
* Suspended
|
|
20
|
+
*/
|
|
21
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
22
|
+
/**
|
|
23
|
+
* Terminated
|
|
24
|
+
*/
|
|
25
|
+
readonly TERMINATED: "TERMINATED";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The types for Dataspace Protocol Transfer.
|
|
29
|
+
*/
|
|
30
|
+
export type DataspaceProtocolTransferProcessStateType = (typeof DataspaceProtocolTransferProcessStateType)[keyof typeof DataspaceProtocolTransferProcessStateType];
|