@twin.org/node 0.0.3-next.16 → 0.0.3-next.17
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/locales/en.json +46 -17
- package/docs/changelog.md +14 -0
- package/docs/open-api/spec.json +425 -93
- package/package.json +2 -2
package/dist/locales/en.json
CHANGED
|
@@ -871,30 +871,43 @@
|
|
|
871
871
|
"notAuthorizedToQuery": "Not authorized to query asset type \"{assetType}\"",
|
|
872
872
|
"notAuthorizedToGet": "Not authorized to get asset type \"{assetType}\" with id \"{id}\""
|
|
873
873
|
},
|
|
874
|
+
"odrlPolicyHelper": {
|
|
875
|
+
"policyMissingAssignee": "The {policyType} with id \"{policyId}\" is missing an assignee.",
|
|
876
|
+
"policyMissingAssigner": "The {policyType} with id \"{policyId}\" is missing an assigner."
|
|
877
|
+
},
|
|
874
878
|
"trustHelper": {
|
|
875
879
|
"trustVerifyFailed": "Trust verification failed for action \"{action}\""
|
|
876
880
|
},
|
|
877
881
|
"policyAdministrationPointService": {
|
|
878
882
|
"namespaceMismatch": "The namespace in the urn \"{id}\" does not match the namespace of the rights management components \"{namespace}\"",
|
|
879
|
-
"policyNotFound": "Policy not found with id: \"{notFoundId}\""
|
|
883
|
+
"policyNotFound": "Policy not found with id: \"{notFoundId}\"",
|
|
884
|
+
"agreementNotFound": "Agreement not found with id: \"{notFoundId}\"",
|
|
885
|
+
"agreementTypeMismatch": "The policy with id: \"{agreementId}\" is not of type Agreement, it is of type: \"{type}\".",
|
|
886
|
+
"offerNotFound": "Offer not found with id: \"{notFoundId}\"",
|
|
887
|
+
"offerTypeMismatch": "The policy with id: \"{offerId}\" is not of type Offer, it is of type: \"{type}\".",
|
|
888
|
+
"setNotFound": "Set not found with id: \"{notFoundId}\"",
|
|
889
|
+
"setTypeMismatch": "The policy with id: \"{setId}\" is not of type Set, it is of type: \"{type}\"."
|
|
880
890
|
},
|
|
881
891
|
"policyDecisionPointService": {
|
|
882
|
-
"decidingFailed": "Deciding on policies for
|
|
883
|
-
"
|
|
892
|
+
"decidingFailed": "Deciding on policies for policy id \"{policyId}\" failed in arbiter with id: \"{arbiterId}\"",
|
|
893
|
+
"noArbiters": "No policy arbiters are registered in the system."
|
|
884
894
|
},
|
|
885
895
|
"policyEnforcementPointService": {
|
|
886
|
-
"
|
|
896
|
+
"noProcessors": "No processors available to process information",
|
|
897
|
+
"processingFailed": "Failed to process information using processor with id: \"{processorId}\", policy id: \"{policyId}\"",
|
|
898
|
+
"noPoliciesFound": "No policies found for locator: \"{locator}\"",
|
|
899
|
+
"multiplePoliciesFound": "Multiple policies found for locator: \"{locator}\""
|
|
887
900
|
},
|
|
888
901
|
"policyInformationPointService": {
|
|
889
|
-
"sourceRetrieveFailed": "Failed to retrieve information from source with id: \"{sourceId}\",
|
|
902
|
+
"sourceRetrieveFailed": "Failed to retrieve information from source with id: \"{sourceId}\", for policy: \"{policyId}\""
|
|
890
903
|
},
|
|
891
904
|
"identityPolicyInformationSource": {
|
|
892
|
-
"identityRetrievalFailed": "Failed to retrieve identity information for
|
|
905
|
+
"identityRetrievalFailed": "Failed to retrieve identity \"{id}\" information for policy id: \"{policyId}\""
|
|
893
906
|
},
|
|
894
907
|
"policyNegotiationPointService": {
|
|
895
908
|
"noOfferFound": "No offer found with id: \"{offerId}\"",
|
|
896
909
|
"noNegotiatorFound": "No negotiator found which support offer id: \"{offerId}\"",
|
|
897
|
-
"noRequesterFound": "No requester found with
|
|
910
|
+
"noRequesterFound": "No requester found with type: \"{notFoundId}\"",
|
|
898
911
|
"negotiationFailed": "Negotiation failed for offer id: \"{offerId}\"",
|
|
899
912
|
"agreementMissing": "The agreement is missing",
|
|
900
913
|
"negotiationNotFound": "No negotiation found with id: \"{notFoundId}\"",
|
|
@@ -908,7 +921,7 @@
|
|
|
908
921
|
"policyNotFound": "Policy with id: \"{notFoundId}\" not found"
|
|
909
922
|
},
|
|
910
923
|
"policyExecutionPointService": {
|
|
911
|
-
"actionExecutionFailed": "Action execution failed for id: \"{actionId}\", at stage \"{stage}\",
|
|
924
|
+
"actionExecutionFailed": "Action execution failed for id: \"{actionId}\", at stage \"{stage}\", policy id: \"{policyId}\""
|
|
912
925
|
},
|
|
913
926
|
"policyNegotiationPointRestClient": {
|
|
914
927
|
"notSupportedOnClient": "The method \"{methodName}\" is not supported on the REST client, it can only be used on a server side component"
|
|
@@ -1782,27 +1795,43 @@
|
|
|
1782
1795
|
"contractReady": "Contract ready for use"
|
|
1783
1796
|
},
|
|
1784
1797
|
"policyEnforcementPointService": {
|
|
1785
|
-
"processing": "Processing information using processor with id: \"{processorId}\",
|
|
1786
|
-
"intercepting": "Intercepting information for
|
|
1798
|
+
"processing": "Processing information using processor with id: \"{processorId}\", policy id: \"{policyId}\"",
|
|
1799
|
+
"intercepting": "Intercepting information for policy id: \"{policyId}\""
|
|
1787
1800
|
},
|
|
1788
1801
|
"identityPolicyInformationSource": {
|
|
1789
|
-
"identityRetrieving": "Retrieving identity information for
|
|
1802
|
+
"identityRetrieving": "Retrieving identity \"{id}\" information for policy id: \"{policyId}\""
|
|
1790
1803
|
},
|
|
1791
1804
|
"staticPolicyInformationSource": {
|
|
1792
|
-
"staticRetrieving": "Retrieving static policy information for
|
|
1793
|
-
"staticRetrieved": "Retrieved static policy information for
|
|
1805
|
+
"staticRetrieving": "Retrieving static policy information for policy id: \"{policyId}\" with access mode: \"{accessMode}\"",
|
|
1806
|
+
"staticRetrieved": "Retrieved static policy information for policy id: \"{policyId}\" with access mode: \"{accessMode}\", item count: {itemCount}"
|
|
1794
1807
|
},
|
|
1795
1808
|
"loggingPolicyExecutionAction": {
|
|
1796
|
-
"policyActionExecutedBefore": "Policy executed for
|
|
1797
|
-
"policyActionExecutedAfter": "Policy executed for
|
|
1809
|
+
"policyActionExecutedBefore": "Policy executed for policyId: \"{policyId}\", stage: \"{stage}\", data: \"{data}\", policy: \"{policy}\", decisions: \"{decisions}\"",
|
|
1810
|
+
"policyActionExecutedAfter": "Policy executed for policyId: \"{policyId}\", stage: \"{stage}\", data: \"{data}\", policy: \"{policy}\", decisions: \"{decisions}\""
|
|
1811
|
+
},
|
|
1812
|
+
"passThroughPolicyEnforcementProcessor": {
|
|
1813
|
+
"processingPolicy": "Processing policy enforcement for policy id: \"{policyId}\""
|
|
1814
|
+
},
|
|
1815
|
+
"passThroughPolicyArbiter": {
|
|
1816
|
+
"decidingPolicy": "Deciding policy for policy id: \"{policyId}\""
|
|
1817
|
+
},
|
|
1818
|
+
"passThroughPolicyNegotiator": {
|
|
1819
|
+
"handlingOffer": "Handling offer negotiation for offer id: \"{offerId}\"",
|
|
1820
|
+
"createAgreement": "Creating agreement for policy id: \"{offerId}\""
|
|
1821
|
+
},
|
|
1822
|
+
"passThroughPolicyRequester": {
|
|
1823
|
+
"offer": "Logging offer request for offer id: \"{offerId}\", negotiation id: \"{negotiationId}\"",
|
|
1824
|
+
"agreement": "Logging agreement request for agreement id: \"{agreementId}\", negotiation id: \"{negotiationId}\"",
|
|
1825
|
+
"finalised": "Logging finalised request for negotiation id: \"{negotiationId}\"",
|
|
1826
|
+
"terminated": "Logging terminated request for negotiation id: \"{negotiationId}\""
|
|
1798
1827
|
},
|
|
1799
1828
|
"policyManagementPointService": {
|
|
1800
1829
|
"retrieving": "Retrieving policies for locator \"locator\"",
|
|
1801
1830
|
"retrieved": "Retrieved {count} policies for locator \"locator\"."
|
|
1802
1831
|
},
|
|
1803
1832
|
"policyExecutionPointService": {
|
|
1804
|
-
"executingActions": "Executing actions for stage: \"{stage}\",
|
|
1805
|
-
"executingAction": "Executing action for stage: \"{stage}\",
|
|
1833
|
+
"executingActions": "Executing actions for stage: \"{stage}\", policy id: \"{policyId}\"",
|
|
1834
|
+
"executingAction": "Executing action for stage: \"{stage}\", policy id: \"{policyId}\""
|
|
1806
1835
|
},
|
|
1807
1836
|
"changeSetHelper": {
|
|
1808
1837
|
"changeSetApplyingChange": "Applying remote sync change with operation id \"{operation}\" for item with id \"{id}\"",
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/node - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.17](https://github.com/twinfoundation/node/compare/node-v0.0.3-next.16...node-v0.0.3-next.17) (2026-02-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update rights management ([5c992c6](https://github.com/twinfoundation/node/commit/5c992c6b0d72f3eeaa39ee267e096d9a3f477f4e))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/node-core bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
16
|
+
|
|
3
17
|
## [0.0.3-next.16](https://github.com/twinfoundation/node/compare/node-v0.0.3-next.15...node-v0.0.3-next.16) (2026-01-28)
|
|
4
18
|
|
|
5
19
|
|
package/docs/open-api/spec.json
CHANGED
|
@@ -12779,6 +12779,42 @@
|
|
|
12779
12779
|
"Policy Administration Point"
|
|
12780
12780
|
],
|
|
12781
12781
|
"parameters": [
|
|
12782
|
+
{
|
|
12783
|
+
"name": "assigner",
|
|
12784
|
+
"description": "The assigner to filter by.",
|
|
12785
|
+
"in": "query",
|
|
12786
|
+
"required": false,
|
|
12787
|
+
"schema": {
|
|
12788
|
+
"type": "string"
|
|
12789
|
+
}
|
|
12790
|
+
},
|
|
12791
|
+
{
|
|
12792
|
+
"name": "assignee",
|
|
12793
|
+
"description": "The assignee to filter by.",
|
|
12794
|
+
"in": "query",
|
|
12795
|
+
"required": false,
|
|
12796
|
+
"schema": {
|
|
12797
|
+
"type": "string"
|
|
12798
|
+
}
|
|
12799
|
+
},
|
|
12800
|
+
{
|
|
12801
|
+
"name": "action",
|
|
12802
|
+
"description": "The action to filter by.",
|
|
12803
|
+
"in": "query",
|
|
12804
|
+
"required": false,
|
|
12805
|
+
"schema": {
|
|
12806
|
+
"type": "string"
|
|
12807
|
+
}
|
|
12808
|
+
},
|
|
12809
|
+
{
|
|
12810
|
+
"name": "target",
|
|
12811
|
+
"description": "The target to filter by.",
|
|
12812
|
+
"in": "query",
|
|
12813
|
+
"required": false,
|
|
12814
|
+
"schema": {
|
|
12815
|
+
"type": "string"
|
|
12816
|
+
}
|
|
12817
|
+
},
|
|
12782
12818
|
{
|
|
12783
12819
|
"name": "conditions",
|
|
12784
12820
|
"description": "The condition for the query.",
|
|
@@ -12823,22 +12859,19 @@
|
|
|
12823
12859
|
},
|
|
12824
12860
|
"examples": {
|
|
12825
12861
|
"papQueryResponseExample": {
|
|
12826
|
-
"value":
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
}
|
|
12840
|
-
]
|
|
12841
|
-
}
|
|
12862
|
+
"value": [
|
|
12863
|
+
{
|
|
12864
|
+
"@context": "http://www.w3.org/ns/odrl.jsonld",
|
|
12865
|
+
"@type": "Set",
|
|
12866
|
+
"uid": "urn:rights-management:abc123def456",
|
|
12867
|
+
"permission": [
|
|
12868
|
+
{
|
|
12869
|
+
"target": "http://example.com/asset/1",
|
|
12870
|
+
"action": "use"
|
|
12871
|
+
}
|
|
12872
|
+
]
|
|
12873
|
+
}
|
|
12874
|
+
]
|
|
12842
12875
|
}
|
|
12843
12876
|
}
|
|
12844
12877
|
}
|
|
@@ -13215,6 +13248,345 @@
|
|
|
13215
13248
|
}
|
|
13216
13249
|
}
|
|
13217
13250
|
},
|
|
13251
|
+
"/rights-management/policy/admin/agreement/{id}": {
|
|
13252
|
+
"get": {
|
|
13253
|
+
"operationId": "papGetAgreement",
|
|
13254
|
+
"summary": "Get a policy agreement",
|
|
13255
|
+
"tags": [
|
|
13256
|
+
"Policy Administration Point"
|
|
13257
|
+
],
|
|
13258
|
+
"parameters": [
|
|
13259
|
+
{
|
|
13260
|
+
"name": "id",
|
|
13261
|
+
"description": "The ID of the agreement to get.",
|
|
13262
|
+
"in": "path",
|
|
13263
|
+
"required": true,
|
|
13264
|
+
"schema": {
|
|
13265
|
+
"type": "string"
|
|
13266
|
+
},
|
|
13267
|
+
"style": "simple",
|
|
13268
|
+
"example": "urn:rights-management:abc123def456"
|
|
13269
|
+
}
|
|
13270
|
+
],
|
|
13271
|
+
"security": [
|
|
13272
|
+
{
|
|
13273
|
+
"jwtBearerAuthScheme": []
|
|
13274
|
+
}
|
|
13275
|
+
],
|
|
13276
|
+
"responses": {
|
|
13277
|
+
"200": {
|
|
13278
|
+
"description": "The response structure for getting an agreement.",
|
|
13279
|
+
"content": {
|
|
13280
|
+
"application/json": {
|
|
13281
|
+
"schema": {
|
|
13282
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAgreement"
|
|
13283
|
+
},
|
|
13284
|
+
"examples": {
|
|
13285
|
+
"papGetResponseExample": {
|
|
13286
|
+
"value": {
|
|
13287
|
+
"@context": "http://www.w3.org/ns/odrl.jsonld",
|
|
13288
|
+
"@type": "Agreement",
|
|
13289
|
+
"uid": "urn:rights-management:abc123def456",
|
|
13290
|
+
"permission": [
|
|
13291
|
+
{
|
|
13292
|
+
"target": "http://example.com/asset/1",
|
|
13293
|
+
"action": "use"
|
|
13294
|
+
}
|
|
13295
|
+
],
|
|
13296
|
+
"assignee": "did:example:receiver",
|
|
13297
|
+
"assigner": "did:example:sender"
|
|
13298
|
+
}
|
|
13299
|
+
}
|
|
13300
|
+
}
|
|
13301
|
+
}
|
|
13302
|
+
}
|
|
13303
|
+
},
|
|
13304
|
+
"400": {
|
|
13305
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
13306
|
+
"content": {
|
|
13307
|
+
"application/json": {
|
|
13308
|
+
"schema": {
|
|
13309
|
+
"$ref": "#/components/schemas/Error"
|
|
13310
|
+
},
|
|
13311
|
+
"examples": {
|
|
13312
|
+
"exampleResponse": {
|
|
13313
|
+
"value": {
|
|
13314
|
+
"name": "GeneralError",
|
|
13315
|
+
"message": "errorMessage",
|
|
13316
|
+
"properties": {
|
|
13317
|
+
"foo": "bar"
|
|
13318
|
+
}
|
|
13319
|
+
}
|
|
13320
|
+
}
|
|
13321
|
+
}
|
|
13322
|
+
}
|
|
13323
|
+
}
|
|
13324
|
+
},
|
|
13325
|
+
"401": {
|
|
13326
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
13327
|
+
"content": {
|
|
13328
|
+
"application/json": {
|
|
13329
|
+
"schema": {
|
|
13330
|
+
"$ref": "#/components/schemas/Error"
|
|
13331
|
+
},
|
|
13332
|
+
"examples": {
|
|
13333
|
+
"exampleResponse": {
|
|
13334
|
+
"value": {
|
|
13335
|
+
"name": "UnauthorizedError",
|
|
13336
|
+
"message": "errorMessage"
|
|
13337
|
+
}
|
|
13338
|
+
}
|
|
13339
|
+
}
|
|
13340
|
+
}
|
|
13341
|
+
}
|
|
13342
|
+
},
|
|
13343
|
+
"500": {
|
|
13344
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
13345
|
+
"content": {
|
|
13346
|
+
"application/json": {
|
|
13347
|
+
"schema": {
|
|
13348
|
+
"$ref": "#/components/schemas/Error"
|
|
13349
|
+
},
|
|
13350
|
+
"examples": {
|
|
13351
|
+
"exampleResponse": {
|
|
13352
|
+
"value": {
|
|
13353
|
+
"name": "InternalServerError",
|
|
13354
|
+
"message": "errorMessage"
|
|
13355
|
+
}
|
|
13356
|
+
}
|
|
13357
|
+
}
|
|
13358
|
+
}
|
|
13359
|
+
}
|
|
13360
|
+
}
|
|
13361
|
+
}
|
|
13362
|
+
}
|
|
13363
|
+
},
|
|
13364
|
+
"/rights-management/policy/admin/offer/{id}": {
|
|
13365
|
+
"get": {
|
|
13366
|
+
"operationId": "papGetOffer",
|
|
13367
|
+
"summary": "Get a policy offer",
|
|
13368
|
+
"tags": [
|
|
13369
|
+
"Policy Administration Point"
|
|
13370
|
+
],
|
|
13371
|
+
"parameters": [
|
|
13372
|
+
{
|
|
13373
|
+
"name": "id",
|
|
13374
|
+
"description": "The ID of the offer to get.",
|
|
13375
|
+
"in": "path",
|
|
13376
|
+
"required": true,
|
|
13377
|
+
"schema": {
|
|
13378
|
+
"type": "string"
|
|
13379
|
+
},
|
|
13380
|
+
"style": "simple",
|
|
13381
|
+
"example": "urn:rights-management:abc123def456"
|
|
13382
|
+
}
|
|
13383
|
+
],
|
|
13384
|
+
"security": [
|
|
13385
|
+
{
|
|
13386
|
+
"jwtBearerAuthScheme": []
|
|
13387
|
+
}
|
|
13388
|
+
],
|
|
13389
|
+
"responses": {
|
|
13390
|
+
"200": {
|
|
13391
|
+
"description": "The response structure for getting an offer.",
|
|
13392
|
+
"content": {
|
|
13393
|
+
"application/json": {
|
|
13394
|
+
"schema": {
|
|
13395
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlOffer"
|
|
13396
|
+
},
|
|
13397
|
+
"examples": {
|
|
13398
|
+
"papGetResponseExample": {
|
|
13399
|
+
"value": {
|
|
13400
|
+
"@context": "http://www.w3.org/ns/odrl.jsonld",
|
|
13401
|
+
"@type": "Offer",
|
|
13402
|
+
"uid": "urn:rights-management:abc123def456",
|
|
13403
|
+
"permission": [
|
|
13404
|
+
{
|
|
13405
|
+
"target": "http://example.com/asset/1",
|
|
13406
|
+
"action": "use"
|
|
13407
|
+
}
|
|
13408
|
+
],
|
|
13409
|
+
"assignee": "did:example:receiver",
|
|
13410
|
+
"assigner": "did:example:sender"
|
|
13411
|
+
}
|
|
13412
|
+
}
|
|
13413
|
+
}
|
|
13414
|
+
}
|
|
13415
|
+
}
|
|
13416
|
+
},
|
|
13417
|
+
"400": {
|
|
13418
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
13419
|
+
"content": {
|
|
13420
|
+
"application/json": {
|
|
13421
|
+
"schema": {
|
|
13422
|
+
"$ref": "#/components/schemas/Error"
|
|
13423
|
+
},
|
|
13424
|
+
"examples": {
|
|
13425
|
+
"exampleResponse": {
|
|
13426
|
+
"value": {
|
|
13427
|
+
"name": "GeneralError",
|
|
13428
|
+
"message": "errorMessage",
|
|
13429
|
+
"properties": {
|
|
13430
|
+
"foo": "bar"
|
|
13431
|
+
}
|
|
13432
|
+
}
|
|
13433
|
+
}
|
|
13434
|
+
}
|
|
13435
|
+
}
|
|
13436
|
+
}
|
|
13437
|
+
},
|
|
13438
|
+
"401": {
|
|
13439
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
13440
|
+
"content": {
|
|
13441
|
+
"application/json": {
|
|
13442
|
+
"schema": {
|
|
13443
|
+
"$ref": "#/components/schemas/Error"
|
|
13444
|
+
},
|
|
13445
|
+
"examples": {
|
|
13446
|
+
"exampleResponse": {
|
|
13447
|
+
"value": {
|
|
13448
|
+
"name": "UnauthorizedError",
|
|
13449
|
+
"message": "errorMessage"
|
|
13450
|
+
}
|
|
13451
|
+
}
|
|
13452
|
+
}
|
|
13453
|
+
}
|
|
13454
|
+
}
|
|
13455
|
+
},
|
|
13456
|
+
"500": {
|
|
13457
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
13458
|
+
"content": {
|
|
13459
|
+
"application/json": {
|
|
13460
|
+
"schema": {
|
|
13461
|
+
"$ref": "#/components/schemas/Error"
|
|
13462
|
+
},
|
|
13463
|
+
"examples": {
|
|
13464
|
+
"exampleResponse": {
|
|
13465
|
+
"value": {
|
|
13466
|
+
"name": "InternalServerError",
|
|
13467
|
+
"message": "errorMessage"
|
|
13468
|
+
}
|
|
13469
|
+
}
|
|
13470
|
+
}
|
|
13471
|
+
}
|
|
13472
|
+
}
|
|
13473
|
+
}
|
|
13474
|
+
}
|
|
13475
|
+
}
|
|
13476
|
+
},
|
|
13477
|
+
"/rights-management/policy/admin/set/{id}": {
|
|
13478
|
+
"get": {
|
|
13479
|
+
"operationId": "papGetSet",
|
|
13480
|
+
"summary": "Get a policy set",
|
|
13481
|
+
"tags": [
|
|
13482
|
+
"Policy Administration Point"
|
|
13483
|
+
],
|
|
13484
|
+
"parameters": [
|
|
13485
|
+
{
|
|
13486
|
+
"name": "id",
|
|
13487
|
+
"description": "The ID of the set to get.",
|
|
13488
|
+
"in": "path",
|
|
13489
|
+
"required": true,
|
|
13490
|
+
"schema": {
|
|
13491
|
+
"type": "string"
|
|
13492
|
+
},
|
|
13493
|
+
"style": "simple",
|
|
13494
|
+
"example": "urn:rights-management:abc123def456"
|
|
13495
|
+
}
|
|
13496
|
+
],
|
|
13497
|
+
"security": [
|
|
13498
|
+
{
|
|
13499
|
+
"jwtBearerAuthScheme": []
|
|
13500
|
+
}
|
|
13501
|
+
],
|
|
13502
|
+
"responses": {
|
|
13503
|
+
"200": {
|
|
13504
|
+
"description": "The response structure for getting a set.",
|
|
13505
|
+
"content": {
|
|
13506
|
+
"application/json": {
|
|
13507
|
+
"schema": {
|
|
13508
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlSet"
|
|
13509
|
+
},
|
|
13510
|
+
"examples": {
|
|
13511
|
+
"papGetResponseExample": {
|
|
13512
|
+
"value": {
|
|
13513
|
+
"@context": "http://www.w3.org/ns/odrl.jsonld",
|
|
13514
|
+
"@type": "Set",
|
|
13515
|
+
"uid": "urn:rights-management:abc123def456",
|
|
13516
|
+
"permission": [
|
|
13517
|
+
{
|
|
13518
|
+
"target": "http://example.com/asset/1",
|
|
13519
|
+
"action": "use"
|
|
13520
|
+
}
|
|
13521
|
+
],
|
|
13522
|
+
"assignee": "did:example:receiver",
|
|
13523
|
+
"assigner": "did:example:sender"
|
|
13524
|
+
}
|
|
13525
|
+
}
|
|
13526
|
+
}
|
|
13527
|
+
}
|
|
13528
|
+
}
|
|
13529
|
+
},
|
|
13530
|
+
"400": {
|
|
13531
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
13532
|
+
"content": {
|
|
13533
|
+
"application/json": {
|
|
13534
|
+
"schema": {
|
|
13535
|
+
"$ref": "#/components/schemas/Error"
|
|
13536
|
+
},
|
|
13537
|
+
"examples": {
|
|
13538
|
+
"exampleResponse": {
|
|
13539
|
+
"value": {
|
|
13540
|
+
"name": "GeneralError",
|
|
13541
|
+
"message": "errorMessage",
|
|
13542
|
+
"properties": {
|
|
13543
|
+
"foo": "bar"
|
|
13544
|
+
}
|
|
13545
|
+
}
|
|
13546
|
+
}
|
|
13547
|
+
}
|
|
13548
|
+
}
|
|
13549
|
+
}
|
|
13550
|
+
},
|
|
13551
|
+
"401": {
|
|
13552
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
13553
|
+
"content": {
|
|
13554
|
+
"application/json": {
|
|
13555
|
+
"schema": {
|
|
13556
|
+
"$ref": "#/components/schemas/Error"
|
|
13557
|
+
},
|
|
13558
|
+
"examples": {
|
|
13559
|
+
"exampleResponse": {
|
|
13560
|
+
"value": {
|
|
13561
|
+
"name": "UnauthorizedError",
|
|
13562
|
+
"message": "errorMessage"
|
|
13563
|
+
}
|
|
13564
|
+
}
|
|
13565
|
+
}
|
|
13566
|
+
}
|
|
13567
|
+
}
|
|
13568
|
+
},
|
|
13569
|
+
"500": {
|
|
13570
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
13571
|
+
"content": {
|
|
13572
|
+
"application/json": {
|
|
13573
|
+
"schema": {
|
|
13574
|
+
"$ref": "#/components/schemas/Error"
|
|
13575
|
+
},
|
|
13576
|
+
"examples": {
|
|
13577
|
+
"exampleResponse": {
|
|
13578
|
+
"value": {
|
|
13579
|
+
"name": "InternalServerError",
|
|
13580
|
+
"message": "errorMessage"
|
|
13581
|
+
}
|
|
13582
|
+
}
|
|
13583
|
+
}
|
|
13584
|
+
}
|
|
13585
|
+
}
|
|
13586
|
+
}
|
|
13587
|
+
}
|
|
13588
|
+
}
|
|
13589
|
+
},
|
|
13218
13590
|
"/rights-management/negotiations/{id}": {
|
|
13219
13591
|
"get": {
|
|
13220
13592
|
"operationId": "pnpGetNegotiation",
|
|
@@ -14599,17 +14971,14 @@
|
|
|
14599
14971
|
},
|
|
14600
14972
|
"examples": {
|
|
14601
14973
|
"pnapQueryResponseExample": {
|
|
14602
|
-
"value":
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14607
|
-
|
|
14608
|
-
|
|
14609
|
-
|
|
14610
|
-
],
|
|
14611
|
-
"cursor": "next-cursor"
|
|
14612
|
-
}
|
|
14974
|
+
"value": [
|
|
14975
|
+
{
|
|
14976
|
+
"id": "pid",
|
|
14977
|
+
"correlationId": "cid",
|
|
14978
|
+
"dateCreated": "2025-09-03T00:00:00.000Z",
|
|
14979
|
+
"state": "REQUESTED"
|
|
14980
|
+
}
|
|
14981
|
+
]
|
|
14613
14982
|
}
|
|
14614
14983
|
}
|
|
14615
14984
|
}
|
|
@@ -18954,45 +19323,17 @@
|
|
|
18954
19323
|
"description": "The body of the request - the policy to create (uid will be auto-generated)."
|
|
18955
19324
|
},
|
|
18956
19325
|
"PapQueryResponse": {
|
|
18957
|
-
"type": "
|
|
18958
|
-
"
|
|
18959
|
-
"
|
|
18960
|
-
"type": "string",
|
|
18961
|
-
"description": "The cursor for the next page of results, if there are more results available."
|
|
18962
|
-
},
|
|
18963
|
-
"policies": {
|
|
18964
|
-
"type": "array",
|
|
18965
|
-
"items": {
|
|
18966
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPolicy"
|
|
18967
|
-
},
|
|
18968
|
-
"description": "The policies matching the query."
|
|
18969
|
-
}
|
|
19326
|
+
"type": "array",
|
|
19327
|
+
"items": {
|
|
19328
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPolicy"
|
|
18970
19329
|
},
|
|
18971
|
-
"required": [
|
|
18972
|
-
"policies"
|
|
18973
|
-
],
|
|
18974
|
-
"additionalProperties": false,
|
|
18975
19330
|
"description": "The body of the response."
|
|
18976
19331
|
},
|
|
18977
19332
|
"PnapQueryResponse": {
|
|
18978
|
-
"type": "
|
|
18979
|
-
"
|
|
18980
|
-
"
|
|
18981
|
-
"type": "array",
|
|
18982
|
-
"items": {
|
|
18983
|
-
"$ref": "#/components/schemas/PolicyNegotiation"
|
|
18984
|
-
},
|
|
18985
|
-
"description": "The list of policy negotiations."
|
|
18986
|
-
},
|
|
18987
|
-
"cursor": {
|
|
18988
|
-
"type": "string",
|
|
18989
|
-
"description": "The cursor for pagination."
|
|
18990
|
-
}
|
|
19333
|
+
"type": "array",
|
|
19334
|
+
"items": {
|
|
19335
|
+
"$ref": "#/components/schemas/PolicyNegotiation"
|
|
18991
19336
|
},
|
|
18992
|
-
"required": [
|
|
18993
|
-
"items"
|
|
18994
|
-
],
|
|
18995
|
-
"additionalProperties": false,
|
|
18996
19337
|
"description": "The body of the response."
|
|
18997
19338
|
},
|
|
18998
19339
|
"PnpContractNegotiationResponse": {
|
|
@@ -19006,39 +19347,9 @@
|
|
|
19006
19347
|
],
|
|
19007
19348
|
"description": "The state of the policy or an error."
|
|
19008
19349
|
},
|
|
19009
|
-
"PolicyInformation": {
|
|
19010
|
-
"type": "object",
|
|
19011
|
-
"additionalProperties": {
|
|
19012
|
-
"$ref": "#/components/schemas/PolicyInformationItems"
|
|
19013
|
-
},
|
|
19014
|
-
"description": "Interface describing a Policy Information."
|
|
19015
|
-
},
|
|
19016
|
-
"PolicyInformationItems": {
|
|
19017
|
-
"type": "array",
|
|
19018
|
-
"items": {
|
|
19019
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
19020
|
-
},
|
|
19021
|
-
"description": "Interface describing a Policy Information."
|
|
19022
|
-
},
|
|
19023
19350
|
"PolicyNegotiation": {
|
|
19024
19351
|
"type": "object",
|
|
19025
19352
|
"properties": {
|
|
19026
|
-
"assignee": {
|
|
19027
|
-
"type": "string",
|
|
19028
|
-
"description": "The assignee for the locator."
|
|
19029
|
-
},
|
|
19030
|
-
"action": {
|
|
19031
|
-
"type": "string",
|
|
19032
|
-
"description": "The action for the locator."
|
|
19033
|
-
},
|
|
19034
|
-
"assetType": {
|
|
19035
|
-
"type": "string",
|
|
19036
|
-
"description": "The asset type for the locator."
|
|
19037
|
-
},
|
|
19038
|
-
"resourceId": {
|
|
19039
|
-
"type": "string",
|
|
19040
|
-
"description": "A resource identifier for the locator."
|
|
19041
|
-
},
|
|
19042
19353
|
"id": {
|
|
19043
19354
|
"type": "string",
|
|
19044
19355
|
"description": "The primary id used by the provider."
|
|
@@ -19072,8 +19383,8 @@
|
|
|
19072
19383
|
"agreement": {
|
|
19073
19384
|
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAgreement"
|
|
19074
19385
|
},
|
|
19075
|
-
"
|
|
19076
|
-
"$ref": "#/components/schemas/
|
|
19386
|
+
"trustVerificationInfo": {
|
|
19387
|
+
"$ref": "#/components/schemas/TrustVerificationInfo"
|
|
19077
19388
|
},
|
|
19078
19389
|
"code": {
|
|
19079
19390
|
"type": "string",
|
|
@@ -19564,6 +19875,27 @@
|
|
|
19564
19875
|
"additionalProperties": false,
|
|
19565
19876
|
"description": "The response payload."
|
|
19566
19877
|
},
|
|
19878
|
+
"TrustVerificationInfo": {
|
|
19879
|
+
"type": "object",
|
|
19880
|
+
"properties": {
|
|
19881
|
+
"identity": {
|
|
19882
|
+
"type": "string",
|
|
19883
|
+
"description": "The identity associated with the payload."
|
|
19884
|
+
},
|
|
19885
|
+
"data": {
|
|
19886
|
+
"type": "object",
|
|
19887
|
+
"additionalProperties": {
|
|
19888
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
19889
|
+
},
|
|
19890
|
+
"description": "Additional JSON-LD node objects associated with the verification."
|
|
19891
|
+
}
|
|
19892
|
+
},
|
|
19893
|
+
"required": [
|
|
19894
|
+
"identity"
|
|
19895
|
+
],
|
|
19896
|
+
"additionalProperties": false,
|
|
19897
|
+
"description": "Interface describing a trust verifier information."
|
|
19898
|
+
},
|
|
19567
19899
|
"UpdatePasswordRequest": {
|
|
19568
19900
|
"type": "object",
|
|
19569
19901
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/node",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.17",
|
|
4
4
|
"description": "TWIN Node serving APIs using the specified configuration",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/node-core": "0.0.3-next.
|
|
17
|
+
"@twin.org/node-core": "0.0.3-next.17"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "git+https://github.com/twinfoundation/node/issues"
|