@twin.org/standards-dataspace-protocol 0.0.3-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +21 -0
  3. package/dist/es/dataTypes/contractNegotiationDataTypes.js +81 -0
  4. package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +1 -0
  5. package/dist/es/index.js +17 -0
  6. package/dist/es/index.js.map +1 -0
  7. package/dist/es/models/contractNegotiation/IContractAgreementMessage.js +2 -0
  8. package/dist/es/models/contractNegotiation/IContractAgreementMessage.js.map +1 -0
  9. package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js +2 -0
  10. package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js.map +1 -0
  11. package/dist/es/models/contractNegotiation/IContractNegotiation.js +2 -0
  12. package/dist/es/models/contractNegotiation/IContractNegotiation.js.map +1 -0
  13. package/dist/es/models/contractNegotiation/IContractNegotiationError.js +2 -0
  14. package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +1 -0
  15. package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js +2 -0
  16. package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js.map +1 -0
  17. package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js +2 -0
  18. package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js.map +1 -0
  19. package/dist/es/models/contractNegotiation/IContractOfferMessage.js +2 -0
  20. package/dist/es/models/contractNegotiation/IContractOfferMessage.js.map +1 -0
  21. package/dist/es/models/contractNegotiation/IContractRequestMessage.js +2 -0
  22. package/dist/es/models/contractNegotiation/IContractRequestMessage.js.map +1 -0
  23. package/dist/es/models/contractNegotiation/contractNegotiationContextType.js +2 -0
  24. package/dist/es/models/contractNegotiation/contractNegotiationContextType.js.map +1 -0
  25. package/dist/es/models/contractNegotiation/contractNegotiationContexts.js +17 -0
  26. package/dist/es/models/contractNegotiation/contractNegotiationContexts.js.map +1 -0
  27. package/dist/es/models/contractNegotiation/contractNegotiationTypes.js +50 -0
  28. package/dist/es/models/contractNegotiation/contractNegotiationTypes.js.map +1 -0
  29. package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js +18 -0
  30. package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js.map +1 -0
  31. package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js +38 -0
  32. package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js.map +1 -0
  33. package/dist/es/schemas/ContractAgreementMessage.json +82 -0
  34. package/dist/es/schemas/ContractAgreementVerificationMessage.json +73 -0
  35. package/dist/es/schemas/ContractNegotiation.json +78 -0
  36. package/dist/es/schemas/ContractNegotiationError.json +115 -0
  37. package/dist/es/schemas/ContractNegotiationEventMessage.json +78 -0
  38. package/dist/es/schemas/ContractNegotiationEventType.json +10 -0
  39. package/dist/es/schemas/ContractNegotiationStateType.json +15 -0
  40. package/dist/es/schemas/ContractNegotiationTerminationMessage.json +82 -0
  41. package/dist/es/schemas/ContractOfferMessage.json +81 -0
  42. package/dist/es/schemas/ContractRequestMessage.json +81 -0
  43. package/dist/types/dataTypes/contractNegotiationDataTypes.d.ts +13 -0
  44. package/dist/types/index.d.ts +14 -0
  45. package/dist/types/models/contractNegotiation/IContractAgreementMessage.d.ts +33 -0
  46. package/dist/types/models/contractNegotiation/IContractAgreementVerificationMessage.d.ts +24 -0
  47. package/dist/types/models/contractNegotiation/IContractNegotiation.d.ts +29 -0
  48. package/dist/types/models/contractNegotiation/IContractNegotiationError.d.ts +42 -0
  49. package/dist/types/models/contractNegotiation/IContractNegotiationEventMessage.d.ts +29 -0
  50. package/dist/types/models/contractNegotiation/IContractNegotiationTerminationMessage.d.ts +32 -0
  51. package/dist/types/models/contractNegotiation/IContractOfferMessage.d.ts +33 -0
  52. package/dist/types/models/contractNegotiation/IContractRequestMessage.d.ts +33 -0
  53. package/dist/types/models/contractNegotiation/contractNegotiationContextType.d.ts +14 -0
  54. package/dist/types/models/contractNegotiation/contractNegotiationContexts.d.ts +17 -0
  55. package/dist/types/models/contractNegotiation/contractNegotiationTypes.d.ts +50 -0
  56. package/dist/types/models/contractNegotiation/types/contractNegotiationEventType.d.ts +18 -0
  57. package/dist/types/models/contractNegotiation/types/contractNegotiationStateType.d.ts +38 -0
  58. package/docs/changelog.md +17 -0
  59. package/docs/examples.md +1 -0
  60. package/docs/reference/classes/ContractNegotiationDataTypes.md +37 -0
  61. package/docs/reference/index.md +31 -0
  62. package/docs/reference/interfaces/IContractAgreementMessage.md +52 -0
  63. package/docs/reference/interfaces/IContractAgreementVerificationMessage.md +36 -0
  64. package/docs/reference/interfaces/IContractNegotiation.md +44 -0
  65. package/docs/reference/interfaces/IContractNegotiationError.md +76 -0
  66. package/docs/reference/interfaces/IContractNegotiationEventMessage.md +44 -0
  67. package/docs/reference/interfaces/IContractNegotiationTerminationMessage.md +52 -0
  68. package/docs/reference/interfaces/IContractOfferMessage.md +52 -0
  69. package/docs/reference/interfaces/IContractRequestMessage.md +52 -0
  70. package/docs/reference/type-aliases/ContractNegotiationContextType.md +5 -0
  71. package/docs/reference/type-aliases/ContractNegotiationContexts.md +5 -0
  72. package/docs/reference/type-aliases/ContractNegotiationEventType.md +5 -0
  73. package/docs/reference/type-aliases/ContractNegotiationStateType.md +5 -0
  74. package/docs/reference/type-aliases/ContractNegotiationTypes.md +5 -0
  75. package/docs/reference/variables/ContractNegotiationContexts.md +19 -0
  76. package/docs/reference/variables/ContractNegotiationEventType.md +20 -0
  77. package/docs/reference/variables/ContractNegotiationStateType.md +50 -0
  78. package/docs/reference/variables/ContractNegotiationTypes.md +68 -0
  79. package/locales/en.json +1 -0
  80. package/package.json +53 -0
@@ -0,0 +1,81 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/ContractRequestMessage",
4
+ "description": "Interface for Dataspace Protocol Contract Request Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-message",
5
+ "type": "object",
6
+ "properties": {
7
+ "@context": {
8
+ "description": "The Dataspace Protocol Contract Negotiation JSON-LD context type.",
9
+ "anyOf": [
10
+ {
11
+ "type": "string",
12
+ "const": "https://w3id.org/dspace/2024/1/context.json"
13
+ },
14
+ {
15
+ "type": "array",
16
+ "minItems": 2,
17
+ "items": {
18
+ "anyOf": [
19
+ {
20
+ "type": "string",
21
+ "const": "https://w3id.org/dspace/2024/1/context.json"
22
+ },
23
+ {
24
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
25
+ }
26
+ ]
27
+ },
28
+ "additionalItems": {
29
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
30
+ }
31
+ },
32
+ {
33
+ "type": "array",
34
+ "minItems": 2,
35
+ "items": {
36
+ "anyOf": [
37
+ {
38
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
39
+ },
40
+ {
41
+ "type": "string",
42
+ "const": "https://w3id.org/dspace/2024/1/context.json"
43
+ }
44
+ ]
45
+ },
46
+ "additionalItems": {
47
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
48
+ }
49
+ }
50
+ ]
51
+ },
52
+ "@type": {
53
+ "type": "string",
54
+ "const": "ContractRequestMessage",
55
+ "description": "The type of the message."
56
+ },
57
+ "providerPid": {
58
+ "type": "string",
59
+ "description": "The provider id for the contract."
60
+ },
61
+ "consumerPid": {
62
+ "type": "string",
63
+ "description": "The consumer id for the contract."
64
+ },
65
+ "offer": {
66
+ "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlOffer",
67
+ "description": "The offer being requested."
68
+ },
69
+ "callbackAddress": {
70
+ "type": "string",
71
+ "description": "The base callback address for the provider to update the consumer on the state of the negotiation."
72
+ }
73
+ },
74
+ "required": [
75
+ "@context",
76
+ "@type",
77
+ "consumerPid",
78
+ "offer"
79
+ ],
80
+ "additionalProperties": false
81
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Handle all the data types for Dataspace Protocol Contract Negotiation.
3
+ */
4
+ export declare class ContractNegotiationDataTypes {
5
+ /**
6
+ * Register the JSON-LD Redirects.
7
+ */
8
+ static registerRedirects(): void;
9
+ /**
10
+ * Register all the data types.
11
+ */
12
+ static registerTypes(): void;
13
+ }
@@ -0,0 +1,14 @@
1
+ export * from "./dataTypes/contractNegotiationDataTypes.js";
2
+ export * from "./models/contractNegotiation/contractNegotiationContexts.js";
3
+ export * from "./models/contractNegotiation/contractNegotiationContextType.js";
4
+ export * from "./models/contractNegotiation/contractNegotiationTypes.js";
5
+ export * from "./models/contractNegotiation/IContractAgreementMessage.js";
6
+ export * from "./models/contractNegotiation/IContractAgreementVerificationMessage.js";
7
+ export * from "./models/contractNegotiation/IContractNegotiation.js";
8
+ export * from "./models/contractNegotiation/IContractNegotiationError.js";
9
+ export * from "./models/contractNegotiation/IContractNegotiationEventMessage.js";
10
+ export * from "./models/contractNegotiation/IContractNegotiationTerminationMessage.js";
11
+ export * from "./models/contractNegotiation/IContractOfferMessage.js";
12
+ export * from "./models/contractNegotiation/IContractRequestMessage.js";
13
+ export * from "./models/contractNegotiation/types/contractNegotiationEventType.js";
14
+ export * from "./models/contractNegotiation/types/contractNegotiationStateType.js";
@@ -0,0 +1,33 @@
1
+ import type { IOdrlAgreement } from "@twin.org/standards-w3c-odrl";
2
+ import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
3
+ import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
4
+ /**
5
+ * Interface for Dataspace Protocol Contract Agreement Messages.
6
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message
7
+ */
8
+ export interface IContractAgreementMessage {
9
+ /**
10
+ * The JSON-LD context.
11
+ */
12
+ "@context": ContractNegotiationContextType;
13
+ /**
14
+ * The type of the message.
15
+ */
16
+ "@type": typeof ContractNegotiationTypes.ContractAgreementMessage;
17
+ /**
18
+ * The provider id for the contract.
19
+ */
20
+ providerPid: string;
21
+ /**
22
+ * The consumer id for the contract.
23
+ */
24
+ consumerPid: string;
25
+ /**
26
+ * The agreement being sent.
27
+ */
28
+ agreement: IOdrlAgreement;
29
+ /**
30
+ * The base callback address for the provider to update the consumer on the state of the negotiation.
31
+ */
32
+ callbackAddress?: string;
33
+ }
@@ -0,0 +1,24 @@
1
+ import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
2
+ import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
+ /**
4
+ * Interface for Dataspace Protocol Contract Agreement Verification Messages.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-verification-message
6
+ */
7
+ export interface IContractAgreementVerificationMessage {
8
+ /**
9
+ * The JSON-LD context.
10
+ */
11
+ "@context": ContractNegotiationContextType;
12
+ /**
13
+ * The type of the message.
14
+ */
15
+ "@type": typeof ContractNegotiationTypes.ContractAgreementVerificationMessage;
16
+ /**
17
+ * The provider id for the contract.
18
+ */
19
+ providerPid: string;
20
+ /**
21
+ * The consumer id for the contract.
22
+ */
23
+ consumerPid: string;
24
+ }
@@ -0,0 +1,29 @@
1
+ import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
2
+ import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
+ import type { ContractNegotiationStateType } from "./types/contractNegotiationStateType.js";
4
+ /**
5
+ * Interface for Dataspace Protocol Contract Agreement Messages.
6
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-contract-negotiation
7
+ */
8
+ export interface IContractNegotiation {
9
+ /**
10
+ * The JSON-LD context.
11
+ */
12
+ "@context": ContractNegotiationContextType;
13
+ /**
14
+ * The type of the message.
15
+ */
16
+ "@type": typeof ContractNegotiationTypes.ContractNegotiation;
17
+ /**
18
+ * The provider id for the contract.
19
+ */
20
+ providerPid: string;
21
+ /**
22
+ * The consumer id for the contract.
23
+ */
24
+ consumerPid: string;
25
+ /**
26
+ * The offer being requested.
27
+ */
28
+ state: ContractNegotiationStateType;
29
+ }
@@ -0,0 +1,42 @@
1
+ import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
2
+ import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
+ /**
4
+ * Interface for Dataspace Protocol Contract Negotiation Error Messages.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error
6
+ */
7
+ export interface IContractNegotiationError {
8
+ /**
9
+ * The JSON-LD context.
10
+ */
11
+ "@context": ContractNegotiationContextType;
12
+ /**
13
+ * The type of the message.
14
+ */
15
+ "@type": typeof ContractNegotiationTypes.ContractNegotiationError;
16
+ /**
17
+ * The provider id for the contract.
18
+ */
19
+ providerPid: string;
20
+ /**
21
+ * The consumer id for the contract.
22
+ */
23
+ consumerPid: string;
24
+ /**
25
+ * The error code.
26
+ */
27
+ code?: string;
28
+ /**
29
+ * The error reason(s).
30
+ */
31
+ reason?: {
32
+ "@value": string;
33
+ "@language"?: string;
34
+ }[];
35
+ /**
36
+ * The error description(s).
37
+ */
38
+ description?: {
39
+ "@value": string;
40
+ "@language"?: string;
41
+ }[];
42
+ }
@@ -0,0 +1,29 @@
1
+ import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
2
+ import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
+ import type { ContractNegotiationEventType } from "./types/contractNegotiationEventType.js";
4
+ /**
5
+ * Interface for Dataspace Protocol Contract Negotiation Event Messages.
6
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message
7
+ */
8
+ export interface IContractNegotiationEventMessage {
9
+ /**
10
+ * The JSON-LD context.
11
+ */
12
+ "@context": ContractNegotiationContextType;
13
+ /**
14
+ * The type of the message.
15
+ */
16
+ "@type": typeof ContractNegotiationTypes.ContractNegotiationEventMessage;
17
+ /**
18
+ * The provider id for the contract.
19
+ */
20
+ providerPid: string;
21
+ /**
22
+ * The consumer id for the contract.
23
+ */
24
+ consumerPid: string;
25
+ /**
26
+ * The event type.
27
+ */
28
+ event: ContractNegotiationEventType;
29
+ }
@@ -0,0 +1,32 @@
1
+ import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
2
+ import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
+ /**
4
+ * Interface for Dataspace Protocol Contract Negotiation Termination Messages.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-termination-message
6
+ */
7
+ export interface IContractNegotiationTerminationMessage {
8
+ /**
9
+ * The JSON-LD context.
10
+ */
11
+ "@context": ContractNegotiationContextType;
12
+ /**
13
+ * The type of the message.
14
+ */
15
+ "@type": typeof ContractNegotiationTypes.ContractNegotiationTerminationMessage;
16
+ /**
17
+ * The provider id for the contract.
18
+ */
19
+ providerPid: string;
20
+ /**
21
+ * The consumer id for the contract.
22
+ */
23
+ consumerPid: string;
24
+ /**
25
+ * The termination code.
26
+ */
27
+ code?: string;
28
+ /**
29
+ * The termination reason(s).
30
+ */
31
+ reason?: any[];
32
+ }
@@ -0,0 +1,33 @@
1
+ import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
2
+ import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
3
+ import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
4
+ /**
5
+ * Interface for Dataspace Protocol Contract Offer Messages.
6
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-message
7
+ */
8
+ export interface IContractOfferMessage {
9
+ /**
10
+ * The JSON-LD context.
11
+ */
12
+ "@context": ContractNegotiationContextType;
13
+ /**
14
+ * The type of the message.
15
+ */
16
+ "@type": typeof ContractNegotiationTypes.ContractOfferMessage;
17
+ /**
18
+ * The provider id for the contract.
19
+ */
20
+ providerPid: string;
21
+ /**
22
+ * The consumer id for the contract.
23
+ */
24
+ consumerPid?: string;
25
+ /**
26
+ * The offer being requested.
27
+ */
28
+ offer: IOdrlOffer;
29
+ /**
30
+ * The base callback address for the provider to update the consumer on the state of the negotiation.
31
+ */
32
+ callbackAddress?: string;
33
+ }
@@ -0,0 +1,33 @@
1
+ import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
2
+ import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
3
+ import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
4
+ /**
5
+ * Interface for Dataspace Protocol Contract Request Messages.
6
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-message
7
+ */
8
+ export interface IContractRequestMessage {
9
+ /**
10
+ * The JSON-LD context.
11
+ */
12
+ "@context": ContractNegotiationContextType;
13
+ /**
14
+ * The type of the message.
15
+ */
16
+ "@type": typeof ContractNegotiationTypes.ContractRequestMessage;
17
+ /**
18
+ * The provider id for the contract.
19
+ */
20
+ providerPid?: string;
21
+ /**
22
+ * The consumer id for the contract.
23
+ */
24
+ consumerPid: string;
25
+ /**
26
+ * The offer being requested.
27
+ */
28
+ offer: IOdrlOffer;
29
+ /**
30
+ * The base callback address for the provider to update the consumer on the state of the negotiation.
31
+ */
32
+ callbackAddress?: string;
33
+ }
@@ -0,0 +1,14 @@
1
+ import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
2
+ import type { ContractNegotiationContexts } from "./contractNegotiationContexts.js";
3
+ /**
4
+ * The Dataspace Protocol Contract Negotiation JSON-LD context type.
5
+ */
6
+ export type ContractNegotiationContextType = typeof ContractNegotiationContexts.ContextRoot | [
7
+ ...IJsonLdContextDefinitionElement[],
8
+ typeof ContractNegotiationContexts.ContextRoot,
9
+ IJsonLdContextDefinitionElement
10
+ ] | [
11
+ IJsonLdContextDefinitionElement,
12
+ typeof ContractNegotiationContexts.ContextRoot,
13
+ ...IJsonLdContextDefinitionElement[]
14
+ ];
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The contexts for Dataspace Protocol Contract Negotiation Protocol.
3
+ */
4
+ export declare const ContractNegotiationContexts: {
5
+ /**
6
+ * The context root for Dataspace Protocol Contract Negotiation Protocol.
7
+ */
8
+ readonly ContextRoot: "https://w3id.org/dspace/2024/1/context.json";
9
+ /**
10
+ * The context redirect for Dataspace Protocol Contract Negotiation Protocol.
11
+ */
12
+ readonly ContextRedirect: "https://w3id.org/dspace/2025/1/context.jsonld";
13
+ };
14
+ /**
15
+ * The contexts for Dataspace Protocol Contract Negotiation Protocol.
16
+ */
17
+ export type ContractNegotiationContexts = (typeof ContractNegotiationContexts)[keyof typeof ContractNegotiationContexts];
@@ -0,0 +1,50 @@
1
+ /**
2
+ * The types for Dataspace Protocol Contract Negotiation.
3
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#message-types-0
4
+ */
5
+ export declare const ContractNegotiationTypes: {
6
+ /**
7
+ * Contract Negotiation.
8
+ */
9
+ ContractNegotiation: string;
10
+ /**
11
+ * Contract Request Message.
12
+ */
13
+ ContractRequestMessage: string;
14
+ /**
15
+ * Contract Offer Message.
16
+ */
17
+ ContractOfferMessage: string;
18
+ /**
19
+ * Contract Agreement Message.
20
+ */
21
+ ContractAgreementMessage: string;
22
+ /**
23
+ * Contract Agreement Verification Message.
24
+ */
25
+ ContractAgreementVerificationMessage: string;
26
+ /**
27
+ * Contract Negotiation Event Message.
28
+ */
29
+ ContractNegotiationEventMessage: string;
30
+ /**
31
+ * Contract Negotiation Termination Message.
32
+ */
33
+ ContractNegotiationTerminationMessage: string;
34
+ /**
35
+ * Contract Negotiation Error.
36
+ */
37
+ ContractNegotiationError: string;
38
+ /**
39
+ * Contract Negotiation Event Type.
40
+ */
41
+ ContractNegotiationEventType: string;
42
+ /**
43
+ * Contract Negotiation State Type.
44
+ */
45
+ ContractNegotiationStateType: string;
46
+ };
47
+ /**
48
+ * The types for Dataspace Protocol Contract Negotiation.
49
+ */
50
+ export type ContractNegotiationTypes = (typeof ContractNegotiationTypes)[keyof typeof ContractNegotiationTypes];
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The types for Dataspace Protocol Contract Negotiation Events.
3
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message
4
+ */
5
+ export declare const ContractNegotiationEventType: {
6
+ /**
7
+ * Accepted.
8
+ */
9
+ readonly ACCEPTED: "ACCEPTED";
10
+ /**
11
+ * Finalized.
12
+ */
13
+ readonly FINALIZED: "FINALIZED";
14
+ };
15
+ /**
16
+ * The types for Dataspace Protocol Contract Negotiation Events.
17
+ */
18
+ export type ContractNegotiationEventType = (typeof ContractNegotiationEventType)[keyof typeof ContractNegotiationEventType];
@@ -0,0 +1,38 @@
1
+ /**
2
+ * The types for Dataspace Protocol Contract Negotiation States.
3
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-states
4
+ */
5
+ export declare const ContractNegotiationStateType: {
6
+ /**
7
+ * Requested.
8
+ */
9
+ readonly REQUESTED: "REQUESTED";
10
+ /**
11
+ * Offered.
12
+ */
13
+ readonly OFFERED: "OFFERED";
14
+ /**
15
+ * Accepted.
16
+ */
17
+ readonly ACCEPTED: "ACCEPTED";
18
+ /**
19
+ * Agreed.
20
+ */
21
+ readonly AGREED: "AGREED";
22
+ /**
23
+ * Verified.
24
+ */
25
+ readonly VERIFIED: "VERIFIED";
26
+ /**
27
+ * Finalized.
28
+ */
29
+ readonly FINALIZED: "FINALIZED";
30
+ /**
31
+ * Terminated.
32
+ */
33
+ readonly TERMINATED: "TERMINATED";
34
+ };
35
+ /**
36
+ * The types for Dataspace Protocol Contract Negotiation States.
37
+ */
38
+ export type ContractNegotiationStateType = (typeof ContractNegotiationStateType)[keyof typeof ContractNegotiationStateType];
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ ## [0.0.3-next.1](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.0...standards-dataspace-protocol-v0.0.3-next.1) (2025-11-10)
4
+
5
+
6
+ ### Features
7
+
8
+ * add context id features ([#64](https://github.com/twinfoundation/standards/issues/64)) ([e68bb87](https://github.com/twinfoundation/standards/commit/e68bb87a215f3c3956cfd6400a5e1e2a16256085))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/standards-w3c-odrl bumped from 0.0.3-next.0 to 0.0.3-next.1
16
+
17
+ ## Changelog
@@ -0,0 +1 @@
1
+ # @twin.org/standards-dataspace-protocol - Examples
@@ -0,0 +1,37 @@
1
+ # Class: ContractNegotiationDataTypes
2
+
3
+ Handle all the data types for Dataspace Protocol Contract Negotiation.
4
+
5
+ ## Constructors
6
+
7
+ ### Constructor
8
+
9
+ > **new ContractNegotiationDataTypes**(): `ContractNegotiationDataTypes`
10
+
11
+ #### Returns
12
+
13
+ `ContractNegotiationDataTypes`
14
+
15
+ ## Methods
16
+
17
+ ### registerRedirects()
18
+
19
+ > `static` **registerRedirects**(): `void`
20
+
21
+ Register the JSON-LD Redirects.
22
+
23
+ #### Returns
24
+
25
+ `void`
26
+
27
+ ***
28
+
29
+ ### registerTypes()
30
+
31
+ > `static` **registerTypes**(): `void`
32
+
33
+ Register all the data types.
34
+
35
+ #### Returns
36
+
37
+ `void`
@@ -0,0 +1,31 @@
1
+ # @twin.org/standards-dataspace-protocol
2
+
3
+ ## Classes
4
+
5
+ - [ContractNegotiationDataTypes](classes/ContractNegotiationDataTypes.md)
6
+
7
+ ## Interfaces
8
+
9
+ - [IContractAgreementMessage](interfaces/IContractAgreementMessage.md)
10
+ - [IContractAgreementVerificationMessage](interfaces/IContractAgreementVerificationMessage.md)
11
+ - [IContractNegotiation](interfaces/IContractNegotiation.md)
12
+ - [IContractNegotiationError](interfaces/IContractNegotiationError.md)
13
+ - [IContractNegotiationEventMessage](interfaces/IContractNegotiationEventMessage.md)
14
+ - [IContractNegotiationTerminationMessage](interfaces/IContractNegotiationTerminationMessage.md)
15
+ - [IContractOfferMessage](interfaces/IContractOfferMessage.md)
16
+ - [IContractRequestMessage](interfaces/IContractRequestMessage.md)
17
+
18
+ ## Type Aliases
19
+
20
+ - [ContractNegotiationContextType](type-aliases/ContractNegotiationContextType.md)
21
+ - [ContractNegotiationContexts](type-aliases/ContractNegotiationContexts.md)
22
+ - [ContractNegotiationTypes](type-aliases/ContractNegotiationTypes.md)
23
+ - [ContractNegotiationEventType](type-aliases/ContractNegotiationEventType.md)
24
+ - [ContractNegotiationStateType](type-aliases/ContractNegotiationStateType.md)
25
+
26
+ ## Variables
27
+
28
+ - [ContractNegotiationContexts](variables/ContractNegotiationContexts.md)
29
+ - [ContractNegotiationTypes](variables/ContractNegotiationTypes.md)
30
+ - [ContractNegotiationEventType](variables/ContractNegotiationEventType.md)
31
+ - [ContractNegotiationStateType](variables/ContractNegotiationStateType.md)
@@ -0,0 +1,52 @@
1
+ # Interface: IContractAgreementMessage
2
+
3
+ Interface for Dataspace Protocol Contract Agreement Messages.
4
+ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message
5
+
6
+ ## Properties
7
+
8
+ ### @context
9
+
10
+ > **@context**: [`ContractNegotiationContextType`](../type-aliases/ContractNegotiationContextType.md)
11
+
12
+ The JSON-LD context.
13
+
14
+ ***
15
+
16
+ ### @type
17
+
18
+ > **@type**: `string`
19
+
20
+ The type of the message.
21
+
22
+ ***
23
+
24
+ ### providerPid
25
+
26
+ > **providerPid**: `string`
27
+
28
+ The provider id for the contract.
29
+
30
+ ***
31
+
32
+ ### consumerPid
33
+
34
+ > **consumerPid**: `string`
35
+
36
+ The consumer id for the contract.
37
+
38
+ ***
39
+
40
+ ### agreement
41
+
42
+ > **agreement**: `IOdrlAgreement`
43
+
44
+ The agreement being sent.
45
+
46
+ ***
47
+
48
+ ### callbackAddress?
49
+
50
+ > `optional` **callbackAddress**: `string`
51
+
52
+ The base callback address for the provider to update the consumer on the state of the negotiation.