@twin.org/rights-management-models 0.0.2-next.11 → 0.0.2-next.13

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 (41) hide show
  1. package/dist/cjs/index.cjs +0 -106
  2. package/dist/esm/index.mjs +2 -107
  3. package/dist/types/index.d.ts +0 -2
  4. package/dist/types/models/api/dap/IDapCreateRequest.d.ts +6 -1
  5. package/dist/types/models/api/dap/IDapGetRequest.d.ts +6 -1
  6. package/dist/types/models/api/dap/IDapQueryRequest.d.ts +6 -1
  7. package/dist/types/models/api/dap/IDapRemoveRequest.d.ts +6 -1
  8. package/dist/types/models/api/dap/IDapUpdateRequest.d.ts +6 -1
  9. package/dist/types/models/api/pnp/IPnpAgreementRequest.d.ts +6 -1
  10. package/dist/types/models/api/pnp/IPnpAgreementVerificationRequest.d.ts +6 -1
  11. package/dist/types/models/api/pnp/IPnpEventRequest.d.ts +6 -1
  12. package/dist/types/models/api/pnp/IPnpNegotiateRequest.d.ts +6 -1
  13. package/dist/types/models/api/pnp/IPnpNegotiationGetRequest.d.ts +6 -1
  14. package/dist/types/models/api/pnp/IPnpOfferRequest.d.ts +6 -1
  15. package/dist/types/models/api/pnp/IPnpTerminateRequest.d.ts +6 -1
  16. package/dist/types/models/dap/IDataAccessPointComponent.d.ts +11 -10
  17. package/dist/types/models/pnp/IPolicyNegotiationPointComponent.d.ts +15 -14
  18. package/dist/types/models/rightsManagementTypes.d.ts +0 -4
  19. package/docs/changelog.md +14 -0
  20. package/docs/reference/index.md +0 -2
  21. package/docs/reference/interfaces/IDapCreateRequest.md +10 -2
  22. package/docs/reference/interfaces/IDapGetRequest.md +10 -2
  23. package/docs/reference/interfaces/IDapQueryRequest.md +10 -2
  24. package/docs/reference/interfaces/IDapRemoveRequest.md +10 -2
  25. package/docs/reference/interfaces/IDapUpdateRequest.md +10 -2
  26. package/docs/reference/interfaces/IDataAccessPointComponent.md +20 -20
  27. package/docs/reference/interfaces/IPnpAgreementRequest.md +10 -2
  28. package/docs/reference/interfaces/IPnpAgreementVerificationRequest.md +10 -2
  29. package/docs/reference/interfaces/IPnpEventRequest.md +10 -2
  30. package/docs/reference/interfaces/IPnpNegotiateRequest.md +10 -2
  31. package/docs/reference/interfaces/IPnpNegotiationGetRequest.md +10 -2
  32. package/docs/reference/interfaces/IPnpOfferRequest.md +10 -2
  33. package/docs/reference/interfaces/IPnpTerminateRequest.md +10 -2
  34. package/docs/reference/interfaces/IPolicyNegotiationPointComponent.md +28 -28
  35. package/docs/reference/variables/RightsManagementTypes.md +0 -6
  36. package/locales/en.json +1 -12
  37. package/package.json +2 -1
  38. package/dist/types/models/pnp/jsonLd/IPolicyRequest.d.ts +0 -28
  39. package/dist/types/utils/rightsManagementTokenHelper.d.ts +0 -43
  40. package/docs/reference/classes/RightsManagementTokenHelper.md +0 -151
  41. package/docs/reference/interfaces/IPolicyRequest.md +0 -43
@@ -1,4 +1,5 @@
1
1
  import type { IComponent } from "@twin.org/core";
2
+ import type { IIdentityAuthenticationActionRequest } from "@twin.org/identity-authentication";
2
3
  import type { IIdsContractAgreementMessage, IIdsContractAgreementVerificationMessage, IIdsContractNegotiation, IIdsContractNegotiationError, IIdsContractNegotiationEventMessage, IIdsContractNegotiationTerminationMessage, IIdsContractOfferMessage, IIdsContractRequestMessage } from "@twin.org/standards-ids-contract-negotiation";
3
4
  import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
4
5
  import type { IPolicyNegotiator } from "./IPolicyNegotiator";
@@ -13,10 +14,10 @@ export interface IPolicyNegotiationPointComponent extends IComponent {
13
14
  /**
14
15
  * Get the current state of the negotiation.
15
16
  * @param id The id of the negotiation to retrieve.
16
- * @param proofToken The proof provided by the requester to support the get.
17
+ * @param actionRequest The action request used in the verifiable credential.
17
18
  * @returns The current state of the negotiation or an error.
18
19
  */
19
- getNegotiation(id: string, proofToken: string): Promise<IIdsContractNegotiation | IIdsContractNegotiationError>;
20
+ getNegotiation(id: string, actionRequest: IIdentityAuthenticationActionRequest): Promise<IIdsContractNegotiation | IIdsContractNegotiationError>;
20
21
  /**
21
22
  * Send a request to a provider.
22
23
  * @param url The url of the provider to send the request to.
@@ -28,47 +29,47 @@ export interface IPolicyNegotiationPointComponent extends IComponent {
28
29
  /**
29
30
  * Processes an incoming request on a provider from a consumer.
30
31
  * @param message The negotiation request.
31
- * @param proofToken The proof provided by the requester to support the policy creation.
32
+ * @param actionRequest The action request used in the verifiable credential.
32
33
  * @returns The current state of the contract negotiation or an error.
33
34
  */
34
- requestFromConsumer(message: IIdsContractRequestMessage, proofToken: string): Promise<IIdsContractNegotiation | IIdsContractNegotiationError>;
35
+ requestFromConsumer(message: IIdsContractRequestMessage, actionRequest: IIdentityAuthenticationActionRequest): Promise<IIdsContractNegotiation | IIdsContractNegotiationError>;
35
36
  /**
36
37
  * An offer has been received by a consumer.
37
38
  * @param message The offer being received by the consumer.
38
- * @param proofToken The proof provided by the requester to support the offer.
39
+ * @param actionRequest The action request used in the verifiable credential.
39
40
  * @returns The current state of the contract negotiation or an error.
40
41
  */
41
- offerFromProvider(message: IIdsContractOfferMessage, proofToken: string): Promise<IIdsContractNegotiation | IIdsContractNegotiationError>;
42
+ offerFromProvider(message: IIdsContractOfferMessage, actionRequest: IIdentityAuthenticationActionRequest): Promise<IIdsContractNegotiation | IIdsContractNegotiationError>;
42
43
  /**
43
44
  * An agreement has been received by a consumer.
44
45
  * @param message The agreement message to send.
45
- * @param proofToken The proof provided by the requester to support the agreement.
46
+ * @param actionRequest The action request used in the verifiable credential.
46
47
  * @returns The error if there is one.
47
48
  */
48
- agreementFromProvider(message: IIdsContractAgreementMessage, proofToken: string): Promise<IIdsContractNegotiationError | undefined>;
49
+ agreementFromProvider(message: IIdsContractAgreementMessage, actionRequest: IIdentityAuthenticationActionRequest): Promise<IIdsContractNegotiationError | undefined>;
49
50
  /**
50
51
  * An agreement verification has been received by a provider.
51
52
  * @param message The agreement verification message to send.
52
- * @param proofToken The proof provided by the requester to support the agreement.
53
+ * @param actionRequest The action request used in the verifiable credential.
53
54
  * @returns The error if there is one.
54
55
  */
55
- agreementVerificationFromConsumer(message: IIdsContractAgreementVerificationMessage, proofToken: string): Promise<IIdsContractNegotiationError | undefined>;
56
+ agreementVerificationFromConsumer(message: IIdsContractAgreementVerificationMessage, actionRequest: IIdentityAuthenticationActionRequest): Promise<IIdsContractNegotiationError | undefined>;
56
57
  /**
57
58
  * An event has been received by the provider or consumer.
58
59
  * @param message The event message to send.
59
60
  * @param destination The destination is provider or consumer.
60
- * @param proofToken The proof provided by the requester to support the event.
61
+ * @param actionRequest The action request used in the verifiable credential.
61
62
  * @returns The error if there is one.
62
63
  */
63
- event(message: IIdsContractNegotiationEventMessage, destination: "provider" | "consumer", proofToken: string): Promise<IIdsContractNegotiationError | undefined>;
64
+ event(message: IIdsContractNegotiationEventMessage, destination: "provider" | "consumer", actionRequest: IIdentityAuthenticationActionRequest): Promise<IIdsContractNegotiationError | undefined>;
64
65
  /**
65
66
  * A termination message has been received by the provider or consumer.
66
67
  * @param message The termination message to send.
67
68
  * @param destination The destination is provider or consumer.
68
- * @param proofToken The proof provided by the requester to support the termination.
69
+ * @param actionRequest The action request used in the verifiable credential.
69
70
  * @returns The error if there is one.
70
71
  */
71
- terminate(message: IIdsContractNegotiationTerminationMessage, destination: "provider" | "consumer", proofToken: string): Promise<IIdsContractNegotiationError | undefined>;
72
+ terminate(message: IIdsContractNegotiationTerminationMessage, destination: "provider" | "consumer", actionRequest: IIdentityAuthenticationActionRequest): Promise<IIdsContractNegotiationError | undefined>;
72
73
  /**
73
74
  * Register a negotiator to use for handling data.
74
75
  * @param negotiatorId The id of the negotiator to register.
@@ -2,10 +2,6 @@
2
2
  * The types of Rights Management data.
3
3
  */
4
4
  export declare const RightsManagementTypes: {
5
- /**
6
- * Represents policy request.
7
- */
8
- readonly PolicyRequest: "PolicyRequest";
9
5
  /**
10
6
  * Represents data access request.
11
7
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/rights-management-models - Changelog
2
2
 
3
+ ## [0.0.2-next.13](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.2-next.12...rights-management-models-v0.0.2-next.13) (2025-09-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * update to use built in vc authentication ([f982b86](https://github.com/twinfoundation/rights-management/commit/f982b8676a7d21add85195c73558ef4f0fd9be29))
9
+
10
+ ## [0.0.2-next.12](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.2-next.11...rights-management-models-v0.0.2-next.12) (2025-09-22)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * **rights-management-models:** Synchronize repo versions
16
+
3
17
  ## [0.0.2-next.11](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.2-next.10...rights-management-models-v0.0.2-next.11) (2025-09-19)
4
18
 
5
19
 
@@ -4,7 +4,6 @@
4
4
 
5
5
  - [LocatorHelper](classes/LocatorHelper.md)
6
6
  - [OdrlPolicyHelper](classes/OdrlPolicyHelper.md)
7
- - [RightsManagementTokenHelper](classes/RightsManagementTokenHelper.md)
8
7
 
9
8
  ## Interfaces
10
9
 
@@ -60,7 +59,6 @@
60
59
  - [IPolicyNegotiationPointComponent](interfaces/IPolicyNegotiationPointComponent.md)
61
60
  - [IPolicyNegotiator](interfaces/IPolicyNegotiator.md)
62
61
  - [IPolicyRequester](interfaces/IPolicyRequester.md)
63
- - [IPolicyRequest](interfaces/IPolicyRequest.md)
64
62
  - [IPolicyExecutionAction](interfaces/IPolicyExecutionAction.md)
65
63
  - [IPolicyExecutionPointComponent](interfaces/IPolicyExecutionPointComponent.md)
66
64
 
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -39,3 +39,11 @@ The type of the item being created.
39
39
  > **body**: [`IDataAccessRequestWithObject`](IDataAccessRequestWithObject.md)
40
40
 
41
41
  The body parameters of the request.
42
+
43
+ ***
44
+
45
+ ### authentication
46
+
47
+ > **authentication**: `IIdentityAuthenticationActionRequest`
48
+
49
+ The action request used in the verifiable credential.
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -37,3 +37,11 @@ The type of the item being requested.
37
37
  > **id**: `string`
38
38
 
39
39
  The id of the item being requested.
40
+
41
+ ***
42
+
43
+ ### authentication
44
+
45
+ > **authentication**: `IIdentityAuthenticationActionRequest`
46
+
47
+ The action request used in the verifiable credential.
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -39,3 +39,11 @@ The type of the item being requested.
39
39
  > **body**: [`IDataAccessQuery`](IDataAccessQuery.md)
40
40
 
41
41
  The body parameters of the request.
42
+
43
+ ***
44
+
45
+ ### authentication
46
+
47
+ > **authentication**: `IIdentityAuthenticationActionRequest`
48
+
49
+ The action request used in the verifiable credential.
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -37,3 +37,11 @@ The type of the item being removed.
37
37
  > **id**: `string`
38
38
 
39
39
  The id of the item being removed.
40
+
41
+ ***
42
+
43
+ ### authentication
44
+
45
+ > **authentication**: `IIdentityAuthenticationActionRequest`
46
+
47
+ The action request used in the verifiable credential.
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -45,3 +45,11 @@ The id of the item being updated.
45
45
  > **body**: [`IDataAccessRequestWithObject`](IDataAccessRequestWithObject.md)
46
46
 
47
47
  The body parameters of the updated.
48
+
49
+ ***
50
+
51
+ ### authentication
52
+
53
+ > **authentication**: `IIdentityAuthenticationActionRequest`
54
+
55
+ The action request used in the verifiable credential.
@@ -13,7 +13,7 @@ The registered data handlers support specific asset types.
13
13
 
14
14
  ### create()
15
15
 
16
- > **create**(`assetType`, `item`, `proofToken`): `Promise`\<`string`\>
16
+ > **create**(`assetType`, `item`, `actionRequest`): `Promise`\<`string`\>
17
17
 
18
18
  Create an item.
19
19
 
@@ -31,11 +31,11 @@ The type of the item to create.
31
31
 
32
32
  The item to create.
33
33
 
34
- ##### proofToken
34
+ ##### actionRequest
35
35
 
36
- `string`
36
+ `IIdentityAuthenticationActionRequest`
37
37
 
38
- The proof provided by the requester to support the creation.
38
+ The action request used in the verifiable credential.
39
39
 
40
40
  #### Returns
41
41
 
@@ -47,7 +47,7 @@ The id of the item created, for some items this is supplied in the `item`.
47
47
 
48
48
  ### get()
49
49
 
50
- > **get**(`assetType`, `id`, `proofToken`): `Promise`\<`IJsonLdNodeObject`\>
50
+ > **get**(`assetType`, `id`, `actionRequest`): `Promise`\<`IJsonLdNodeObject`\>
51
51
 
52
52
  Get an item.
53
53
 
@@ -65,11 +65,11 @@ The type of the item to retrieve.
65
65
 
66
66
  The ID of the item to retrieve.
67
67
 
68
- ##### proofToken
68
+ ##### actionRequest
69
69
 
70
- `string`
70
+ `IIdentityAuthenticationActionRequest`
71
71
 
72
- The proof provided by the requester to support the lookup.
72
+ The action request used in the verifiable credential.
73
73
 
74
74
  #### Returns
75
75
 
@@ -81,7 +81,7 @@ The item retrieved if the policies allow it.
81
81
 
82
82
  ### update()
83
83
 
84
- > **update**(`assetType`, `item`, `proofToken`): `Promise`\<`void`\>
84
+ > **update**(`assetType`, `item`, `actionRequest`): `Promise`\<`void`\>
85
85
 
86
86
  Update an item.
87
87
 
@@ -99,11 +99,11 @@ The type of the item to update.
99
99
 
100
100
  The item to update.
101
101
 
102
- ##### proofToken
102
+ ##### actionRequest
103
103
 
104
- `string`
104
+ `IIdentityAuthenticationActionRequest`
105
105
 
106
- The proof provided by the requester to support the update.
106
+ The action request used in the verifiable credential.
107
107
 
108
108
  #### Returns
109
109
 
@@ -115,7 +115,7 @@ Nothing.
115
115
 
116
116
  ### remove()
117
117
 
118
- > **remove**(`assetType`, `id`, `proofToken`): `Promise`\<`void`\>
118
+ > **remove**(`assetType`, `id`, `actionRequest`): `Promise`\<`void`\>
119
119
 
120
120
  Remove an item.
121
121
 
@@ -133,11 +133,11 @@ The type of the item to remove.
133
133
 
134
134
  The id of the item to remove.
135
135
 
136
- ##### proofToken
136
+ ##### actionRequest
137
137
 
138
- `string`
138
+ `IIdentityAuthenticationActionRequest`
139
139
 
140
- The proof provided by the requester to support the removal.
140
+ The action request used in the verifiable credential.
141
141
 
142
142
  #### Returns
143
143
 
@@ -149,7 +149,7 @@ Nothing.
149
149
 
150
150
  ### query()
151
151
 
152
- > **query**(`assetType`, `conditions`, `cursor`, `options`, `proofToken`): `Promise`\<\{ `items`: `IJsonLdNodeObject`[]; `cursor?`: `string`; \}\>
152
+ > **query**(`assetType`, `conditions`, `cursor`, `options`, `actionRequest`): `Promise`\<\{ `items`: `IJsonLdNodeObject`[]; `cursor?`: `string`; \}\>
153
153
 
154
154
  Query for items.
155
155
 
@@ -179,11 +179,11 @@ The cursor for pagination.
179
179
 
180
180
  Additional options which might be supported by the handler.
181
181
 
182
- ##### proofToken
182
+ ##### actionRequest
183
183
 
184
- `string`
184
+ `IIdentityAuthenticationActionRequest`
185
185
 
186
- The proof provided by the requester to support the query.
186
+ The action request used in the verifiable credential.
187
187
 
188
188
  #### Returns
189
189
 
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -39,3 +39,11 @@ The identifier of the negotiation to target.
39
39
  > **body**: `IIdsContractAgreementMessage`
40
40
 
41
41
  The body parameters of the request.
42
+
43
+ ***
44
+
45
+ ### authentication
46
+
47
+ > **authentication**: `IIdentityAuthenticationActionRequest`
48
+
49
+ The action request used in the verifiable credential.
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -39,3 +39,11 @@ The identifier of the contract negotiation to be retrieved.
39
39
  > **body**: `IIdsContractAgreementVerificationMessage`
40
40
 
41
41
  The body parameters of the request.
42
+
43
+ ***
44
+
45
+ ### authentication
46
+
47
+ > **authentication**: `IIdentityAuthenticationActionRequest`
48
+
49
+ The action request used in the verifiable credential.
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -39,3 +39,11 @@ The identifier of the negotiation to target.
39
39
  > **body**: `IIdsContractNegotiationEventMessage`
40
40
 
41
41
  The body parameters of the request.
42
+
43
+ ***
44
+
45
+ ### authentication
46
+
47
+ > **authentication**: `IIdentityAuthenticationActionRequest`
48
+
49
+ The action request used in the verifiable credential.
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -39,3 +39,11 @@ The identifier of the contract negotiation to be retrieved, can be undefined.
39
39
  > **body**: `IIdsContractRequestMessage`
40
40
 
41
41
  The body parameters of the request.
42
+
43
+ ***
44
+
45
+ ### authentication
46
+
47
+ > **authentication**: `IIdentityAuthenticationActionRequest`
48
+
49
+ The action request used in the verifiable credential.
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -31,3 +31,11 @@ The path parameters of the request.
31
31
  > **id**: `string`
32
32
 
33
33
  The identifier of the contract negotiation to be retrieved.
34
+
35
+ ***
36
+
37
+ ### authentication
38
+
39
+ > **authentication**: `IIdentityAuthenticationActionRequest`
40
+
41
+ The action request used in the verifiable credential.
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -39,3 +39,11 @@ The identifier of the consumer being offered, this can be undefined.
39
39
  > **body**: `IIdsContractOfferMessage`
40
40
 
41
41
  The body parameters of the request.
42
+
43
+ ***
44
+
45
+ ### authentication
46
+
47
+ > **authentication**: `IIdentityAuthenticationActionRequest`
48
+
49
+ The action request used in the verifiable credential.
@@ -14,9 +14,9 @@ The headers which can be used to determine the response data type.
14
14
 
15
15
  > `optional` **accept**: `"application/ld+json"` \| `"application/json"`
16
16
 
17
- #### authorization
17
+ #### authorization?
18
18
 
19
- > **authorization**: `string`
19
+ > `optional` **authorization**: `string`
20
20
 
21
21
  ***
22
22
 
@@ -39,3 +39,11 @@ The identifier of the negotiation to target.
39
39
  > **body**: `IIdsContractNegotiationTerminationMessage`
40
40
 
41
41
  The body parameters of the request.
42
+
43
+ ***
44
+
45
+ ### authentication
46
+
47
+ > **authentication**: `IIdentityAuthenticationActionRequest`
48
+
49
+ The action request used in the verifiable credential.