@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
|
@@ -6,14 +6,26 @@ The contexts for Dataspace Protocol Protocol.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Namespace
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **Namespace**: `"https://w3id.org/dspace/2025/1/"` = `"https://w3id.org/dspace/2025/1/"`
|
|
12
12
|
|
|
13
|
-
The
|
|
13
|
+
The canonical RDF namespace URI.
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Context
|
|
16
16
|
|
|
17
|
-
> `readonly` **
|
|
17
|
+
> `readonly` **Context**: `"https://w3id.org/dspace/2025/1/context.jsonld"` = `"https://w3id.org/dspace/2025/1/context.jsonld"`
|
|
18
18
|
|
|
19
|
-
The
|
|
19
|
+
The value to use in @context.
|
|
20
|
+
|
|
21
|
+
### JsonLdContext
|
|
22
|
+
|
|
23
|
+
> `readonly` **JsonLdContext**: `"https://w3id.org/dspace/2025/1/context.jsonld"` = `"https://w3id.org/dspace/2025/1/context.jsonld"`
|
|
24
|
+
|
|
25
|
+
The JSON-LD Context URL.
|
|
26
|
+
|
|
27
|
+
### JsonSchemaNamespace
|
|
28
|
+
|
|
29
|
+
> `readonly` **JsonSchemaNamespace**: `"https://schema.twindev.org/dataspace-protocol/"` = `"https://schema.twindev.org/dataspace-protocol/"`
|
|
30
|
+
|
|
31
|
+
The namespace location of the hosted version of the JSON Schema.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Variable:
|
|
1
|
+
# Variable: DataspaceProtocolContractNegotiationEventType
|
|
2
2
|
|
|
3
|
-
> `const` **
|
|
3
|
+
> `const` **DataspaceProtocolContractNegotiationEventType**: `object`
|
|
4
4
|
|
|
5
5
|
The types for Dataspace Protocol Contract Negotiation Events.
|
|
6
6
|
https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Variable:
|
|
1
|
+
# Variable: DataspaceProtocolContractNegotiationStateType
|
|
2
2
|
|
|
3
|
-
> `const` **
|
|
3
|
+
> `const` **DataspaceProtocolContractNegotiationStateType**: `object`
|
|
4
4
|
|
|
5
5
|
The types for Dataspace Protocol Contract Negotiation States.
|
|
6
6
|
https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-states
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Variable: DataspaceProtocolContractNegotiationTypes
|
|
2
|
+
|
|
3
|
+
> `const` **DataspaceProtocolContractNegotiationTypes**: `object`
|
|
4
|
+
|
|
5
|
+
The types for Dataspace Protocol Contract Negotiation.
|
|
6
|
+
https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#message-types-0
|
|
7
|
+
|
|
8
|
+
## Type Declaration
|
|
9
|
+
|
|
10
|
+
### ContractNegotiation
|
|
11
|
+
|
|
12
|
+
> `readonly` **ContractNegotiation**: `"ContractNegotiation"` = `"ContractNegotiation"`
|
|
13
|
+
|
|
14
|
+
Contract Negotiation.
|
|
15
|
+
|
|
16
|
+
### ContractRequestMessage
|
|
17
|
+
|
|
18
|
+
> `readonly` **ContractRequestMessage**: `"ContractRequestMessage"` = `"ContractRequestMessage"`
|
|
19
|
+
|
|
20
|
+
Contract Request Message.
|
|
21
|
+
|
|
22
|
+
### ContractOfferMessage
|
|
23
|
+
|
|
24
|
+
> `readonly` **ContractOfferMessage**: `"ContractOfferMessage"` = `"ContractOfferMessage"`
|
|
25
|
+
|
|
26
|
+
Contract Offer Message.
|
|
27
|
+
|
|
28
|
+
### ContractAgreementMessage
|
|
29
|
+
|
|
30
|
+
> `readonly` **ContractAgreementMessage**: `"ContractAgreementMessage"` = `"ContractAgreementMessage"`
|
|
31
|
+
|
|
32
|
+
Contract Agreement Message.
|
|
33
|
+
|
|
34
|
+
### ContractAgreementVerificationMessage
|
|
35
|
+
|
|
36
|
+
> `readonly` **ContractAgreementVerificationMessage**: `"ContractAgreementVerificationMessage"` = `"ContractAgreementVerificationMessage"`
|
|
37
|
+
|
|
38
|
+
Contract Agreement Verification Message.
|
|
39
|
+
|
|
40
|
+
### ContractNegotiationEventMessage
|
|
41
|
+
|
|
42
|
+
> `readonly` **ContractNegotiationEventMessage**: `"ContractNegotiationEventMessage"` = `"ContractNegotiationEventMessage"`
|
|
43
|
+
|
|
44
|
+
Contract Negotiation Event Message.
|
|
45
|
+
|
|
46
|
+
### ContractNegotiationTerminationMessage
|
|
47
|
+
|
|
48
|
+
> `readonly` **ContractNegotiationTerminationMessage**: `"ContractNegotiationTerminationMessage"` = `"ContractNegotiationTerminationMessage"`
|
|
49
|
+
|
|
50
|
+
Contract Negotiation Termination Message.
|
|
51
|
+
|
|
52
|
+
### ContractNegotiationError
|
|
53
|
+
|
|
54
|
+
> `readonly` **ContractNegotiationError**: `"ContractNegotiationError"` = `"ContractNegotiationError"`
|
|
55
|
+
|
|
56
|
+
Contract Negotiation Error.
|
|
57
|
+
|
|
58
|
+
### ContractNegotiationEventType
|
|
59
|
+
|
|
60
|
+
> `readonly` **ContractNegotiationEventType**: `"ContractNegotiationEventType"` = `"ContractNegotiationEventType"`
|
|
61
|
+
|
|
62
|
+
Contract Negotiation Event Type.
|
|
63
|
+
|
|
64
|
+
### ContractNegotiationStateType
|
|
65
|
+
|
|
66
|
+
> `readonly` **ContractNegotiationStateType**: `"ContractNegotiationStateType"` = `"ContractNegotiationStateType"`
|
|
67
|
+
|
|
68
|
+
Contract Negotiation State Type.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Variable: DataspaceProtocolEndpointType
|
|
2
|
+
|
|
3
|
+
> `const` **DataspaceProtocolEndpointType**: `object`
|
|
4
|
+
|
|
5
|
+
TWIN Data Space Protocol Profile endpoint type identifiers.
|
|
6
|
+
|
|
7
|
+
This module defines endpoint types according to the TWIN Foundation's
|
|
8
|
+
Data Space Protocol Profile (RFC 006), which extends the Eclipse Dataspace
|
|
9
|
+
Protocol specification with TWIN-specific vocabulary.
|
|
10
|
+
|
|
11
|
+
The TWIN vocabulary uses persistent identifiers under the
|
|
12
|
+
https://schema.twindev.org namespace to provide stable, semantic
|
|
13
|
+
identifiers for data space endpoint types.
|
|
14
|
+
|
|
15
|
+
References:
|
|
16
|
+
- TWIN RFC 006: https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/006-data-space-protocol-profile.md
|
|
17
|
+
- TWIN DS Protocol Context: https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/twin-ds-protocol-profile.jsonld
|
|
18
|
+
- Eclipse DSP Specification: https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/
|
|
19
|
+
- RFC 001 (Query Interface): https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-connector/001-data-space-connector-query.md
|
|
20
|
+
|
|
21
|
+
## Type Declaration
|
|
22
|
+
|
|
23
|
+
### HttpsQueryEndpoint
|
|
24
|
+
|
|
25
|
+
> `readonly` **HttpsQueryEndpoint**: `"https://schema.twindev.org/dspace/v1/Https-Query-Endpoint"` = `"https://schema.twindev.org/dspace/v1/Https-Query-Endpoint"`
|
|
26
|
+
|
|
27
|
+
HTTPS Query Endpoint (TWIN DS Profile).
|
|
28
|
+
|
|
29
|
+
Used for PULL transfers via the TWIN Data Space Connector Query interface.
|
|
30
|
+
The consumer retrieves data by querying this endpoint using the data access token.
|
|
31
|
+
Endpoint must implement the interface specified in RFC 001.
|
|
32
|
+
|
|
33
|
+
Transfer Flow:
|
|
34
|
+
1. Consumer initiates transfer request
|
|
35
|
+
2. Provider returns this endpoint type with data access token
|
|
36
|
+
3. Consumer queries the endpoint with the token to retrieve data
|
|
37
|
+
|
|
38
|
+
#### See
|
|
39
|
+
|
|
40
|
+
- https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/006-data-space-protocol-profile.md#data-transfer-profile-vocabulary
|
|
41
|
+
- https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-connector/001-data-space-connector-query.md
|
|
42
|
+
|
|
43
|
+
### HttpsActivityStreamEndpoint
|
|
44
|
+
|
|
45
|
+
> `readonly` **HttpsActivityStreamEndpoint**: `"https://schema.twindev.org/dspace/v1/Https-Activity-Stream-Endpoint"` = `"https://schema.twindev.org/dspace/v1/Https-Activity-Stream-Endpoint"`
|
|
46
|
+
|
|
47
|
+
HTTPS Activity Stream Endpoint (TWIN DS Profile).
|
|
48
|
+
|
|
49
|
+
Used for PUSH transfers via Activity Streams 2.0 protocol.
|
|
50
|
+
The provider actively sends data to the consumer's Activity Stream inbox endpoint.
|
|
51
|
+
Based on W3C Activity Streams 2.0 specification.
|
|
52
|
+
|
|
53
|
+
Transfer Flow:
|
|
54
|
+
1. Consumer initiates transfer request with this endpoint type
|
|
55
|
+
2. Consumer provides their Activity Stream inbox URL
|
|
56
|
+
3. Provider pushes data to the consumer's inbox as Activity Stream objects
|
|
57
|
+
|
|
58
|
+
#### See
|
|
59
|
+
|
|
60
|
+
- https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/006-data-space-protocol-profile.md#data-transfer-profile-vocabulary
|
|
61
|
+
- https://www.w3.org/TR/activitystreams-core/
|
|
62
|
+
- https://www.w3.org/TR/activitypub/
|
|
63
|
+
|
|
64
|
+
### HTTP
|
|
65
|
+
|
|
66
|
+
> `readonly` **HTTP**: `"https://w3id.org/idsa/v4.1/HTTP"` = `"https://w3id.org/idsa/v4.1/HTTP"`
|
|
67
|
+
|
|
68
|
+
HTTP endpoint (IDSA W3ID v4.1).
|
|
69
|
+
|
|
70
|
+
Persistent identifier for HTTP-based data access endpoints.
|
|
71
|
+
This W3ID URL is used as a semantic identifier in JSON-LD contexts.
|
|
72
|
+
|
|
73
|
+
Note: For TWIN-specific implementations, prefer using `HttpsQueryEndpoint`.
|
|
74
|
+
This constant is provided for interoperability with IDSA-based systems.
|
|
75
|
+
|
|
76
|
+
#### See
|
|
77
|
+
|
|
78
|
+
- https://w3id.org/idsa/v4.1/HTTP
|
|
79
|
+
- https://github.com/International-Data-Spaces-Association/InformationModel
|
|
80
|
+
|
|
81
|
+
### HTTPS
|
|
82
|
+
|
|
83
|
+
> `readonly` **HTTPS**: `"https://w3id.org/idsa/v4.1/HTTPS"` = `"https://w3id.org/idsa/v4.1/HTTPS"`
|
|
84
|
+
|
|
85
|
+
HTTPS endpoint (IDSA W3ID v4.1).
|
|
86
|
+
|
|
87
|
+
Persistent identifier for HTTPS-based secure data access endpoints.
|
|
88
|
+
This W3ID URL is used as a semantic identifier in JSON-LD contexts.
|
|
89
|
+
|
|
90
|
+
Note: For TWIN-specific implementations, prefer using `HttpsQueryEndpoint`.
|
|
91
|
+
This constant is provided for interoperability with IDSA-based systems.
|
|
92
|
+
|
|
93
|
+
#### See
|
|
94
|
+
|
|
95
|
+
- https://w3id.org/idsa/v4.1/HTTPS
|
|
96
|
+
- https://github.com/International-Data-Spaces-Association/InformationModel
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Variable: DataspaceProtocolTransferProcessStateType
|
|
2
|
+
|
|
3
|
+
> `const` **DataspaceProtocolTransferProcessStateType**: `object`
|
|
4
|
+
|
|
5
|
+
The states for Dataspace Protocol Transfer Process.
|
|
6
|
+
https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#ack-transfer-process
|
|
7
|
+
|
|
8
|
+
## Type Declaration
|
|
9
|
+
|
|
10
|
+
### COMPLETED
|
|
11
|
+
|
|
12
|
+
> `readonly` **COMPLETED**: `"COMPLETED"` = `"COMPLETED"`
|
|
13
|
+
|
|
14
|
+
Completed
|
|
15
|
+
|
|
16
|
+
### REQUESTED
|
|
17
|
+
|
|
18
|
+
> `readonly` **REQUESTED**: `"REQUESTED"` = `"REQUESTED"`
|
|
19
|
+
|
|
20
|
+
Requested
|
|
21
|
+
|
|
22
|
+
### STARTED
|
|
23
|
+
|
|
24
|
+
> `readonly` **STARTED**: `"STARTED"` = `"STARTED"`
|
|
25
|
+
|
|
26
|
+
Started
|
|
27
|
+
|
|
28
|
+
### SUSPENDED
|
|
29
|
+
|
|
30
|
+
> `readonly` **SUSPENDED**: `"SUSPENDED"` = `"SUSPENDED"`
|
|
31
|
+
|
|
32
|
+
Suspended
|
|
33
|
+
|
|
34
|
+
### TERMINATED
|
|
35
|
+
|
|
36
|
+
> `readonly` **TERMINATED**: `"TERMINATED"` = `"TERMINATED"`
|
|
37
|
+
|
|
38
|
+
Terminated
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Variable: DataspaceProtocolTransferProcessTypes
|
|
2
|
+
|
|
3
|
+
> `const` **DataspaceProtocolTransferProcessTypes**: `object`
|
|
4
|
+
|
|
5
|
+
The types for Dataspace Protocol Transfer Process.
|
|
6
|
+
https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#message-types-1
|
|
7
|
+
|
|
8
|
+
## Type Declaration
|
|
9
|
+
|
|
10
|
+
### TransferRequestMessage
|
|
11
|
+
|
|
12
|
+
> `readonly` **TransferRequestMessage**: `"TransferRequestMessage"` = `"TransferRequestMessage"`
|
|
13
|
+
|
|
14
|
+
Transfer Request Message.
|
|
15
|
+
|
|
16
|
+
### TransferStartMessage
|
|
17
|
+
|
|
18
|
+
> `readonly` **TransferStartMessage**: `"TransferStartMessage"` = `"TransferStartMessage"`
|
|
19
|
+
|
|
20
|
+
Transfer Start Message.
|
|
21
|
+
|
|
22
|
+
### TransferSuspensionMessage
|
|
23
|
+
|
|
24
|
+
> `readonly` **TransferSuspensionMessage**: `"TransferSuspensionMessage"` = `"TransferSuspensionMessage"`
|
|
25
|
+
|
|
26
|
+
Transfer Suspension Message.
|
|
27
|
+
|
|
28
|
+
### TransferCompletionMessage
|
|
29
|
+
|
|
30
|
+
> `readonly` **TransferCompletionMessage**: `"TransferCompletionMessage"` = `"TransferCompletionMessage"`
|
|
31
|
+
|
|
32
|
+
Transfer Completion Message.
|
|
33
|
+
|
|
34
|
+
### TransferTerminationMessage
|
|
35
|
+
|
|
36
|
+
> `readonly` **TransferTerminationMessage**: `"TransferTerminationMessage"` = `"TransferTerminationMessage"`
|
|
37
|
+
|
|
38
|
+
Transfer Termination Message.
|
|
39
|
+
|
|
40
|
+
### DataAddress
|
|
41
|
+
|
|
42
|
+
> `readonly` **DataAddress**: `"DataAddress"` = `"DataAddress"`
|
|
43
|
+
|
|
44
|
+
Data Address
|
|
45
|
+
|
|
46
|
+
### EndpointProperty
|
|
47
|
+
|
|
48
|
+
> `readonly` **EndpointProperty**: `"EndpointProperty"` = `"EndpointProperty"`
|
|
49
|
+
|
|
50
|
+
Endpoint property.
|
|
51
|
+
|
|
52
|
+
### TransferProcess
|
|
53
|
+
|
|
54
|
+
> `readonly` **TransferProcess**: `"TransferProcess"` = `"TransferProcess"`
|
|
55
|
+
|
|
56
|
+
Transfer Process
|
|
57
|
+
|
|
58
|
+
### TransferError
|
|
59
|
+
|
|
60
|
+
> `readonly` **TransferError**: `"TransferError"` = `"TransferError"`
|
|
61
|
+
|
|
62
|
+
Transfer Error.
|
package/locales/en.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-dataspace-protocol",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.41",
|
|
4
4
|
"description": "Models which define the structure of Dataspace Protocol",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
18
|
"@twin.org/data-core": "next",
|
|
19
19
|
"@twin.org/data-json-ld": "next",
|
|
20
|
-
"@twin.org/standards-w3c-dcat": "0.0.3-next.
|
|
21
|
-
"@twin.org/standards-w3c-odrl": "0.0.3-next.
|
|
20
|
+
"@twin.org/standards-w3c-dcat": "0.0.3-next.41",
|
|
21
|
+
"@twin.org/standards-w3c-odrl": "0.0.3-next.41",
|
|
22
22
|
"@twin.org/web": "next"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/es/index.js",
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
2
|
-
import { JsonLdProcessor } from "@twin.org/data-json-ld";
|
|
3
|
-
import { CatalogTypes } from "../models/catalog/catalogTypes.js";
|
|
4
|
-
import { ContractNegotiationTypes } from "../models/contractNegotiation/contractNegotiationTypes.js";
|
|
5
|
-
import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
|
|
6
|
-
import CatalogError from "../schemas/CatalogError.json" with { type: "json" };
|
|
7
|
-
import CatalogRequestMessage from "../schemas/CatalogRequestMessage.json" with { type: "json" };
|
|
8
|
-
import ContractAgreementMessage from "../schemas/ContractAgreementMessage.json" with { type: "json" };
|
|
9
|
-
import ContractAgreementVerificationMessage from "../schemas/ContractAgreementVerificationMessage.json" with { type: "json" };
|
|
10
|
-
import ContractNegotiation from "../schemas/ContractNegotiation.json" with { type: "json" };
|
|
11
|
-
import ContractNegotiationError from "../schemas/ContractNegotiationError.json" with { type: "json" };
|
|
12
|
-
import ContractNegotiationEventMessage from "../schemas/ContractNegotiationEventMessage.json" with { type: "json" };
|
|
13
|
-
import ContractNegotiationEventType from "../schemas/ContractNegotiationEventType.json" with { type: "json" };
|
|
14
|
-
import ContractNegotiationStateType from "../schemas/ContractNegotiationStateType.json" with { type: "json" };
|
|
15
|
-
import ContractNegotiationTerminationMessage from "../schemas/ContractNegotiationTerminationMessage.json" with { type: "json" };
|
|
16
|
-
import ContractOfferMessage from "../schemas/ContractOfferMessage.json" with { type: "json" };
|
|
17
|
-
import ContractRequestMessage from "../schemas/ContractRequestMessage.json" with { type: "json" };
|
|
18
|
-
import DatasetRequestMessage from "../schemas/DatasetRequestMessage.json" with { type: "json" };
|
|
19
|
-
/**
|
|
20
|
-
* Handle all the data types for Dataspace Protocol.
|
|
21
|
-
*/
|
|
22
|
-
export class DataspaceProtocolDataTypes {
|
|
23
|
-
/**
|
|
24
|
-
* Register the JSON-LD Redirects.
|
|
25
|
-
*/
|
|
26
|
-
static registerRedirects() {
|
|
27
|
-
JsonLdProcessor.addRedirect(new RegExp(DataspaceProtocolContexts.ContextRoot), DataspaceProtocolContexts.ContextRedirect);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Register all the data types.
|
|
31
|
-
*/
|
|
32
|
-
static registerTypes() {
|
|
33
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`, () => ({
|
|
34
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
35
|
-
type: ContractNegotiationTypes.ContractAgreementMessage,
|
|
36
|
-
jsonSchema: async () => ContractAgreementMessage
|
|
37
|
-
}));
|
|
38
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`, () => ({
|
|
39
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
40
|
-
type: ContractNegotiationTypes.ContractAgreementVerificationMessage,
|
|
41
|
-
jsonSchema: async () => ContractAgreementVerificationMessage
|
|
42
|
-
}));
|
|
43
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`, () => ({
|
|
44
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
45
|
-
type: ContractNegotiationTypes.ContractNegotiation,
|
|
46
|
-
jsonSchema: async () => ContractNegotiation
|
|
47
|
-
}));
|
|
48
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`, () => ({
|
|
49
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
50
|
-
type: ContractNegotiationTypes.ContractNegotiationError,
|
|
51
|
-
jsonSchema: async () => ContractNegotiationError
|
|
52
|
-
}));
|
|
53
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`, () => ({
|
|
54
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
55
|
-
type: ContractNegotiationTypes.ContractNegotiationEventMessage,
|
|
56
|
-
jsonSchema: async () => ContractNegotiationEventMessage
|
|
57
|
-
}));
|
|
58
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`, () => ({
|
|
59
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
60
|
-
type: ContractNegotiationTypes.ContractNegotiationTerminationMessage,
|
|
61
|
-
jsonSchema: async () => ContractNegotiationTerminationMessage
|
|
62
|
-
}));
|
|
63
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`, () => ({
|
|
64
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
65
|
-
type: ContractNegotiationTypes.ContractOfferMessage,
|
|
66
|
-
jsonSchema: async () => ContractOfferMessage
|
|
67
|
-
}));
|
|
68
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`, () => ({
|
|
69
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
70
|
-
type: ContractNegotiationTypes.ContractRequestMessage,
|
|
71
|
-
jsonSchema: async () => ContractRequestMessage
|
|
72
|
-
}));
|
|
73
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`, () => ({
|
|
74
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
75
|
-
type: ContractNegotiationTypes.ContractNegotiationEventType,
|
|
76
|
-
jsonSchema: async () => ContractNegotiationEventType
|
|
77
|
-
}));
|
|
78
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`, () => ({
|
|
79
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
80
|
-
type: ContractNegotiationTypes.ContractNegotiationStateType,
|
|
81
|
-
jsonSchema: async () => ContractNegotiationStateType
|
|
82
|
-
}));
|
|
83
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogRequestMessage}`, () => ({
|
|
84
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
85
|
-
type: CatalogTypes.CatalogRequestMessage,
|
|
86
|
-
jsonSchema: async () => CatalogRequestMessage
|
|
87
|
-
}));
|
|
88
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.DatasetRequestMessage}`, () => ({
|
|
89
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
90
|
-
type: CatalogTypes.DatasetRequestMessage,
|
|
91
|
-
jsonSchema: async () => DatasetRequestMessage
|
|
92
|
-
}));
|
|
93
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogError}`, () => ({
|
|
94
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
95
|
-
type: CatalogTypes.CatalogError,
|
|
96
|
-
jsonSchema: async () => CatalogError
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=dataspaceProtolDataTypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataspaceProtolDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/dataspaceProtolDataTypes.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { CatalogTypes } from \"../models/catalog/catalogTypes.js\";\nimport { ContractNegotiationTypes } from \"../models/contractNegotiation/contractNegotiationTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport CatalogError from \"../schemas/CatalogError.json\" with { type: \"json\" };\nimport CatalogRequestMessage from \"../schemas/CatalogRequestMessage.json\" with { type: \"json\" };\nimport ContractAgreementMessage from \"../schemas/ContractAgreementMessage.json\" with { type: \"json\" };\nimport ContractAgreementVerificationMessage from \"../schemas/ContractAgreementVerificationMessage.json\" with { type: \"json\" };\nimport ContractNegotiation from \"../schemas/ContractNegotiation.json\" with { type: \"json\" };\nimport ContractNegotiationError from \"../schemas/ContractNegotiationError.json\" with { type: \"json\" };\nimport ContractNegotiationEventMessage from \"../schemas/ContractNegotiationEventMessage.json\" with { type: \"json\" };\nimport ContractNegotiationEventType from \"../schemas/ContractNegotiationEventType.json\" with { type: \"json\" };\nimport ContractNegotiationStateType from \"../schemas/ContractNegotiationStateType.json\" with { type: \"json\" };\nimport ContractNegotiationTerminationMessage from \"../schemas/ContractNegotiationTerminationMessage.json\" with { type: \"json\" };\nimport ContractOfferMessage from \"../schemas/ContractOfferMessage.json\" with { type: \"json\" };\nimport ContractRequestMessage from \"../schemas/ContractRequestMessage.json\" with { type: \"json\" };\nimport DatasetRequestMessage from \"../schemas/DatasetRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for Dataspace Protocol.\n */\nexport class DataspaceProtocolDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(\n\t\t\tnew RegExp(DataspaceProtocolContexts.ContextRoot),\n\t\t\tDataspaceProtocolContexts.ContextRedirect\n\t\t);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementVerificationMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementVerificationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiation,\n\t\t\t\tjsonSchema: async () => ContractNegotiation as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationError,\n\t\t\t\tjsonSchema: async () => ContractNegotiationError as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationTerminationMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationTerminationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractOfferMessage,\n\t\t\t\tjsonSchema: async () => ContractOfferMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractRequestMessage,\n\t\t\t\tjsonSchema: async () => ContractRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventType as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationStateType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationStateType as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.CatalogRequestMessage,\n\t\t\t\tjsonSchema: async () => CatalogRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.DatasetRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.DatasetRequestMessage,\n\t\t\t\tjsonSchema: async () => DatasetRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.CatalogError,\n\t\t\t\tjsonSchema: async () => CatalogError as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICatalogError.js","sourceRoot":"","sources":["../../../../src/models/catalog/ICatalogError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Error.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error\n */\nexport interface ICatalogError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.CatalogError;\n\n\t/**\n\t * The error code.\n\t */\n\tcode: string;\n\n\t/**\n\t * An optional array of error reasons.\n\t */\n\treasons?: string[];\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICatalogRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/ICatalogRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message\n */\nexport interface ICatalogRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.CatalogRequestMessage;\n\n\t/**\n\t * An implementation-specific query or filter expression.\n\t */\n\tfilter?: unknown;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IDatasetRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDatasetRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Dataset Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#dataset-request-message\n */\nexport interface IDatasetRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.DatasetRequestMessage;\n\n\t/**\n\t * The identifier of the dataset.\n\t */\n\tdataset: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalogTypes.js","sourceRoot":"","sources":["../../../../src/models/catalog/catalogTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;OAEG;IACH,YAAY,EAAE,cAAc;CACnB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Catalog Protocol.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const CatalogTypes = {\n\t/**\n\t * Catalog Request Message.\n\t */\n\tCatalogRequestMessage: \"CatalogRequestMessage\",\n\n\t/**\n\t * Dataset Request Message.\n\t */\n\tDatasetRequestMessage: \"DatasetRequestMessage\",\n\n\t/**\n\t * Catalog Error.\n\t */\n\tCatalogError: \"CatalogError\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Catalog Protocol.\n */\nexport type CatalogTypes = (typeof CatalogTypes)[keyof typeof CatalogTypes];\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IContractAgreementMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractAgreementMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlAgreement } from \"@twin.org/standards-w3c-odrl\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message\n */\nexport interface IContractAgreementMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractAgreementMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The agreement being sent.\n\t */\n\tagreement: IOdrlAgreement;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IContractAgreementVerificationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractAgreementVerificationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Verification Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-verification-message\n */\nexport interface IContractAgreementVerificationMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractAgreementVerificationMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IContractNegotiation.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { ContractNegotiationStateType } from \"./types/contractNegotiationStateType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-contract-negotiation\n */\nexport interface IContractNegotiation {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiation;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\tstate: ContractNegotiationStateType;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IContractNegotiationError.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Error Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error\n */\nexport interface IContractNegotiationError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationError;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The error code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\treason?: {\n\t\t\"@value\": string;\n\t\t\"@language\"?: string;\n\t}[];\n\n\t/**\n\t * The error description(s).\n\t */\n\tdescription?: {\n\t\t\"@value\": string;\n\t\t\"@language\"?: string;\n\t}[];\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IContractNegotiationEventMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationEventMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { ContractNegotiationEventType } from \"./types/contractNegotiationEventType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Event Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message\n */\nexport interface IContractNegotiationEventMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationEventMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The event type.\n\t */\n\tevent: ContractNegotiationEventType;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IContractNegotiationTerminationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationTerminationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Termination Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-termination-message\n */\nexport interface IContractNegotiationTerminationMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationTerminationMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The termination code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The termination reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IContractOfferMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractOfferMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Offer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-message\n */\nexport interface IContractOfferMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractOfferMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid?: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\toffer: IOdrlOffer;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IContractRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-message\n */\nexport interface IContractRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractRequestMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid?: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\toffer: IOdrlOffer;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contractNegotiationTypes.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/contractNegotiationTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,oCAAoC,EAAE,sCAAsC;IAE5E;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,qCAAqC,EAAE,uCAAuC;IAE9E;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;CAC5D,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#message-types-0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationTypes = {\n\t/**\n\t * Contract Negotiation.\n\t */\n\tContractNegotiation: \"ContractNegotiation\",\n\n\t/**\n\t * Contract Request Message.\n\t */\n\tContractRequestMessage: \"ContractRequestMessage\",\n\n\t/**\n\t * Contract Offer Message.\n\t */\n\tContractOfferMessage: \"ContractOfferMessage\",\n\n\t/**\n\t * Contract Agreement Message.\n\t */\n\tContractAgreementMessage: \"ContractAgreementMessage\",\n\n\t/**\n\t * Contract Agreement Verification Message.\n\t */\n\tContractAgreementVerificationMessage: \"ContractAgreementVerificationMessage\",\n\n\t/**\n\t * Contract Negotiation Event Message.\n\t */\n\tContractNegotiationEventMessage: \"ContractNegotiationEventMessage\",\n\n\t/**\n\t * Contract Negotiation Termination Message.\n\t */\n\tContractNegotiationTerminationMessage: \"ContractNegotiationTerminationMessage\",\n\n\t/**\n\t * Contract Negotiation Error.\n\t */\n\tContractNegotiationError: \"ContractNegotiationError\",\n\n\t/**\n\t * Contract Negotiation Event Type.\n\t */\n\tContractNegotiationEventType: \"ContractNegotiationEventType\",\n\n\t/**\n\t * Contract Negotiation State Type.\n\t */\n\tContractNegotiationStateType: \"ContractNegotiationStateType\"\n};\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n */\nexport type ContractNegotiationTypes =\n\t(typeof ContractNegotiationTypes)[keyof typeof ContractNegotiationTypes];\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contractNegotiationEventType.js","sourceRoot":"","sources":["../../../../../src/models/contractNegotiation/types/contractNegotiationEventType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;CACb,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation Events.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationEventType = {\n\t/**\n\t * Accepted.\n\t */\n\tACCEPTED: \"ACCEPTED\",\n\n\t/**\n\t * Finalized.\n\t */\n\tFINALIZED: \"FINALIZED\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Contract Negotiation Events.\n */\nexport type ContractNegotiationEventType =\n\t(typeof ContractNegotiationEventType)[keyof typeof ContractNegotiationEventType];\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contractNegotiationStateType.js","sourceRoot":"","sources":["../../../../../src/models/contractNegotiation/types/contractNegotiationStateType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,UAAU,EAAE,YAAY;CACf,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation States.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-states\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationStateType = {\n\t/**\n\t * Requested.\n\t */\n\tREQUESTED: \"REQUESTED\",\n\n\t/**\n\t * Offered.\n\t */\n\tOFFERED: \"OFFERED\",\n\n\t/**\n\t * Accepted.\n\t */\n\tACCEPTED: \"ACCEPTED\",\n\n\t/**\n\t * Agreed.\n\t */\n\tAGREED: \"AGREED\",\n\n\t/**\n\t * Verified.\n\t */\n\tVERIFIED: \"VERIFIED\",\n\n\t/**\n\t * Finalized.\n\t */\n\tFINALIZED: \"FINALIZED\",\n\n\t/**\n\t * Terminated.\n\t */\n\tTERMINATED: \"TERMINATED\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Contract Negotiation States.\n */\nexport type ContractNegotiationStateType =\n\t(typeof ContractNegotiationStateType)[keyof typeof ContractNegotiationStateType];\n"]}
|