@twin.org/node 0.0.3-next.56 → 0.0.3-next.58
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 +19 -6
- package/docs/changelog.md +28 -0
- package/docs/open-api/spec.json +54 -463
- package/package.json +2 -2
package/dist/locales/en.json
CHANGED
|
@@ -196,6 +196,7 @@
|
|
|
196
196
|
"email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
|
|
197
197
|
"uuidV7": "Property \"{property}\" must be a UUIDv7 formatted string, it is \"{value}\"",
|
|
198
198
|
"uuidV7Compact": "Property \"{property}\" must be a UUIDv7 formatted string in compact mode, it is \"{value}\"",
|
|
199
|
+
"duration": "Property \"{property}\" must be an ISO 8601 duration string, it is \"{value}\"",
|
|
199
200
|
"length32Multiple": "Property \"{property}\" should be a multiple of 32, it is {value}",
|
|
200
201
|
"lengthEntropy": "Property \"{property}\" should be a multiple of 4, >=16 and <= 32, it is {value}",
|
|
201
202
|
"didPartsTooFew": "The DID \"{value}\" is invalid: expected at least 3 parts but got fewer",
|
|
@@ -593,12 +594,17 @@
|
|
|
593
594
|
"notSupportedOnClient": "The method \"{methodName}\" is not supported on the REST client, it can only be used on a server side component"
|
|
594
595
|
},
|
|
595
596
|
"dataspaceControlPlaneService": {
|
|
597
|
+
"transferCallbackRejected": "Consumer rejected a transfer state-change callback (messageKind: {messageKind}, consumerPid: {consumerPid}, providerPid: {providerPid}, callbackAddress: {callbackAddress})",
|
|
598
|
+
"transferCallbackFailed": "Failed to deliver a transfer state-change callback to the consumer (messageKind: {messageKind}, consumerPid: {consumerPid}, providerPid: {providerPid}, callbackAddress: {callbackAddress})",
|
|
599
|
+
"autoStartFailed": "Provider auto-start of a requested transfer failed (consumerPid: {consumerPid})",
|
|
600
|
+
"autoStartPublicOriginMissing": "Cannot auto-start the transfer: this node's public origin could not be resolved; holding the transfer in REQUESTED (consumerPid: {consumerPid})",
|
|
596
601
|
"transferProcessNotFound": "Transfer Process not found",
|
|
597
602
|
"pullTransfersNotSupported": "PULL transfers are not supported. Configure dataPlanePath in service configuration to enable PULL transfers.",
|
|
598
603
|
"transferProcessTerminated": "Transfer Process \"{consumerPid}\" is terminated and cannot be used",
|
|
599
604
|
"transferProcessTerminatedProvider": "Transfer Process \"{providerPid}\" is terminated and cannot be used",
|
|
600
605
|
"invalidTransferRequest": "Transfer Request does not conform to Dataspace Protocol specification",
|
|
601
606
|
"invalidStateForStart": "Transfer Process cannot be started: current state is \"{currentState}\", expected REQUESTED or SUSPENDED",
|
|
607
|
+
"transferStartNotProvider": "Transfer Process cannot be started by this node: it is not acting as the Provider for this transfer (pid: {pid}, role: {role})",
|
|
602
608
|
"invalidStateForComplete": "Transfer Process cannot be completed: current state is \"{currentState}\", expected STARTED",
|
|
603
609
|
"invalidStateForSuspend": "Transfer Process cannot be suspended: current state is \"{currentState}\", expected STARTED",
|
|
604
610
|
"invalidTransferStartMessage": "Transfer Start Message does not conform to Dataspace Protocol specification",
|
|
@@ -677,6 +683,7 @@
|
|
|
677
683
|
"invalidProcessingGroupId": "Invalid processing group id \"{processingGroupId}\" specified in activity query",
|
|
678
684
|
"missingHandleActivity": "Handler App \"{dataspaceAppId}\" does not export a \"handleActivity\" function",
|
|
679
685
|
"pushSubscriptionNotFound": "Push subscription not found for consumerPid \"{notFoundId}\"",
|
|
686
|
+
"activityLogEntryNotAuthorized": "Unauthorised access to activity log entry — the verified identity is not the entry generator",
|
|
680
687
|
"pushActivityNotAuthorized": "Unauthorized push activity — no matching STARTED transfer found for the activity generator",
|
|
681
688
|
"pushActivityNotPermittedByPolicy": "Push activity rejected — the transfer's agreement (\"{agreementId}\") does not permit the activity for consumerPid \"{consumerPid}\"",
|
|
682
689
|
"processOutboxActivityMultipleTo": "processOutboxActivity does not support multiple recipients — activity.to contains {count} values, expected exactly one consumerPid",
|
|
@@ -933,7 +940,6 @@
|
|
|
933
940
|
"missingDid": "The full id including DID is required",
|
|
934
941
|
"privateKeyMissing": "The verification method contains no privateKey \"{keyId}\"",
|
|
935
942
|
"publicKeyJwkMethodMissing": "The verification method contains no publicKeyJwk in method \"{method}\"",
|
|
936
|
-
"publicKeyJwkMissing": "The verification method contains no publicKeyJwk in JWK \"{jwk}\"",
|
|
937
943
|
"removeAlsoKnownAsFailed": "Removing from the alsoKnownAs property failed",
|
|
938
944
|
"removeDocumentFailed": "Removing the document failed",
|
|
939
945
|
"removeServiceFailed": "Removing the service failed",
|
|
@@ -958,7 +964,11 @@
|
|
|
958
964
|
"gasStationTransactionFailed": "The gas station transaction failed",
|
|
959
965
|
"dryRunFailed": "The dry run execution failed",
|
|
960
966
|
"fundingFailed": "Fund the address from faucet failed",
|
|
961
|
-
"faucetRateLimit": "Faucet rate limit exceeded"
|
|
967
|
+
"faucetRateLimit": "Faucet rate limit exceeded",
|
|
968
|
+
"missingPublicKey": "The public key is missing for vault key \"{keyName}\""
|
|
969
|
+
},
|
|
970
|
+
"vaultJwkStorage": {
|
|
971
|
+
"generateNotSupported": "Key generation is not supported; keys are managed by the vault"
|
|
962
972
|
},
|
|
963
973
|
"iotaIdentityUtils": {
|
|
964
974
|
"getControllerCapInfoFailed": "Getting the controller capability info for the identity failed",
|
|
@@ -1087,7 +1097,7 @@
|
|
|
1087
1097
|
"namespaceMismatch": "The namespace in the urn \"{id}\" does not match the namespace of the IOTA NFT connector \"{namespace}\"",
|
|
1088
1098
|
"failedToGetNftId": "Failed to get NFT ID from mint response",
|
|
1089
1099
|
"nftNotFound": "The NFT \"{notFoundId}\" was not found",
|
|
1090
|
-
"
|
|
1100
|
+
"nftOwnerNotFound": "The owner for NFT \"{nftId}\" was not found",
|
|
1091
1101
|
"startFailed": "Failed to start the IOTA NFT connector",
|
|
1092
1102
|
"packageIdNotInitialised": "The package id has not been initialised.",
|
|
1093
1103
|
"invalidImmutableMetadata": "The immutable metadata for NFT \"{nftId}\" is invalid",
|
|
@@ -1214,7 +1224,8 @@
|
|
|
1214
1224
|
"constraintStatusNotSupported": "Constraint status is not supported. State-based evaluation is not implemented.",
|
|
1215
1225
|
"jsonPathExpressionMissing": "Canonical JSONPath expression is missing for \"{operand}\". Provide twin:jsonPathExpression.",
|
|
1216
1226
|
"policyProfileNotSupported": "Policy \"{policyId}\" declares unsupported profile \"{unsupportedProfile}\". Only known profiles are supported.",
|
|
1217
|
-
"inheritedPolicyProfileNotSupported": "Inherited policy \"{policyId}\" declares an unsupported profile. All policies in the inheritFrom chain must declare only supported profiles."
|
|
1227
|
+
"inheritedPolicyProfileNotSupported": "Inherited policy \"{policyId}\" declares an unsupported profile. All policies in the inheritFrom chain must declare only supported profiles.",
|
|
1228
|
+
"leftOperandNotSupported": "Constraint leftOperand \"{leftOperand}\" is a recognised ODRL built-in but is not yet supported by this arbiter."
|
|
1218
1229
|
},
|
|
1219
1230
|
"defaultPolicyEnforcementProcessor": {
|
|
1220
1231
|
"targetNotJsonPath": "The policy decision target \"{target}\" is not a valid JSON-path string, it should be a minimum of $.",
|
|
@@ -1284,6 +1295,7 @@
|
|
|
1284
1295
|
"keyNotFound": "The key \"{notFoundId}\" was not found in the vault",
|
|
1285
1296
|
"secretNotFound": "The secret \"{notFoundId}\" was not found in the vault",
|
|
1286
1297
|
"unsupportedKeyType": "The key type \"{keyType}\" is not supported",
|
|
1298
|
+
"symmetricKeyHasNoPrivateKey": "The symmetric key \"{name}\" does not have a separate private key component",
|
|
1287
1299
|
"keyTypeMismatch": "The key type \"{keyType}\" does not match the requested encryption method \"{encryptionType}\""
|
|
1288
1300
|
},
|
|
1289
1301
|
"hashicorpVaultConnector": {
|
|
@@ -1307,6 +1319,7 @@
|
|
|
1307
1319
|
"keyNotFound": "The key \"{notFoundId}\" was not found in the vault",
|
|
1308
1320
|
"secretNotFound": "The secret \"{notFoundId}\" was not found in the vault",
|
|
1309
1321
|
"getKeyFailed": "Failed to get key \"{name}\"",
|
|
1322
|
+
"symmetricKeyHasNoPrivateKey": "The symmetric key \"{name}\" does not have a separate private key component",
|
|
1310
1323
|
"signDataFailed": "Failed to sign data \"{name}\"",
|
|
1311
1324
|
"invalidSignResponse": "Invalid sign response \"{name}\"",
|
|
1312
1325
|
"verifyDataFailed": "Failed to verify data \"{name}\"",
|
|
@@ -2074,8 +2087,8 @@
|
|
|
2074
2087
|
"negotiationHistoryRetrieved": "Negotiation history retrieved successfully",
|
|
2075
2088
|
"stalledNegotiationsCleanupComplete": "Stalled negotiations cleanup completed (cleanedUp: {cleanedUp})",
|
|
2076
2089
|
"pushTransferStarted": "PUSH transfer started (consumerPid: {consumerPid}, providerPid: {providerPid}, endpoint: {endpoint})",
|
|
2077
|
-
"
|
|
2078
|
-
"
|
|
2090
|
+
"preparingTransfer": "Preparing consumer-initiated data transfer (agreementId: {agreementId}, providerEndpoint: {providerEndpoint}, format: {format})",
|
|
2091
|
+
"transferPrepared": "Consumer data transfer prepared successfully (consumerPid: {consumerPid}, providerPid: {providerPid}, agreementId: {agreementId}, format: {format})"
|
|
2079
2092
|
},
|
|
2080
2093
|
"dataspaceControlPlanePolicyRequester": {
|
|
2081
2094
|
"offerReceived": "Offer received from provider (negotiationId: {negotiationId}, offerId: {offerId})",
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.58](https://github.com/iotaledger/twin-node/compare/node-v0.0.3-next.57...node-v0.0.3-next.58) (2026-06-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **node:** Synchronize repo versions
|
|
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.57 to 0.0.3-next.58
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.57](https://github.com/iotaledger/twin-node/compare/node-v0.0.3-next.56...node-v0.0.3-next.57) (2026-06-17)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Miscellaneous Chores
|
|
21
|
+
|
|
22
|
+
* **node:** Synchronize repo versions
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @twin.org/node-core bumped from 0.0.3-next.56 to 0.0.3-next.57
|
|
30
|
+
|
|
3
31
|
## [0.0.3-next.56](https://github.com/iotaledger/twin-node/compare/node-v0.0.3-next.55...node-v0.0.3-next.56) (2026-06-16)
|
|
4
32
|
|
|
5
33
|
|
package/docs/open-api/spec.json
CHANGED
|
@@ -7657,7 +7657,7 @@
|
|
|
7657
7657
|
}
|
|
7658
7658
|
],
|
|
7659
7659
|
"requestBody": {
|
|
7660
|
-
"description": "
|
|
7660
|
+
"description": "Request to mint a new NFT.",
|
|
7661
7661
|
"required": true,
|
|
7662
7662
|
"content": {
|
|
7663
7663
|
"application/json": {
|
|
@@ -7781,7 +7781,7 @@
|
|
|
7781
7781
|
],
|
|
7782
7782
|
"responses": {
|
|
7783
7783
|
"200": {
|
|
7784
|
-
"description": "Response
|
|
7784
|
+
"description": "Response returned after resolving an NFT.",
|
|
7785
7785
|
"content": {
|
|
7786
7786
|
"application/json": {
|
|
7787
7787
|
"schema": {
|
|
@@ -7962,7 +7962,7 @@
|
|
|
7962
7962
|
"parameters": [
|
|
7963
7963
|
{
|
|
7964
7964
|
"name": "id",
|
|
7965
|
-
"description": "The id of the NFT to
|
|
7965
|
+
"description": "The id of the NFT to update in urn format.",
|
|
7966
7966
|
"in": "path",
|
|
7967
7967
|
"required": true,
|
|
7968
7968
|
"schema": {
|
|
@@ -7978,7 +7978,7 @@
|
|
|
7978
7978
|
}
|
|
7979
7979
|
],
|
|
7980
7980
|
"requestBody": {
|
|
7981
|
-
"description": "
|
|
7981
|
+
"description": "Request to update the mutable metadata of an NFT.",
|
|
7982
7982
|
"required": true,
|
|
7983
7983
|
"content": {
|
|
7984
7984
|
"application/json": {
|
|
@@ -8087,7 +8087,7 @@
|
|
|
8087
8087
|
}
|
|
8088
8088
|
],
|
|
8089
8089
|
"requestBody": {
|
|
8090
|
-
"description": "
|
|
8090
|
+
"description": "Request to transfer an NFT to a new owner.",
|
|
8091
8091
|
"required": true,
|
|
8092
8092
|
"content": {
|
|
8093
8093
|
"application/json": {
|
|
@@ -16525,14 +16525,9 @@
|
|
|
16525
16525
|
"example": "urn:x-activity-log:1234567"
|
|
16526
16526
|
}
|
|
16527
16527
|
],
|
|
16528
|
-
"security": [
|
|
16529
|
-
{
|
|
16530
|
-
"jwtBearerAuthScheme": []
|
|
16531
|
-
}
|
|
16532
|
-
],
|
|
16533
16528
|
"responses": {
|
|
16534
16529
|
"200": {
|
|
16535
|
-
"description": "
|
|
16530
|
+
"description": "Response containing a single activity log entry.",
|
|
16536
16531
|
"content": {
|
|
16537
16532
|
"application/json": {
|
|
16538
16533
|
"schema": {
|
|
@@ -16580,24 +16575,6 @@
|
|
|
16580
16575
|
}
|
|
16581
16576
|
}
|
|
16582
16577
|
},
|
|
16583
|
-
"401": {
|
|
16584
|
-
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
16585
|
-
"content": {
|
|
16586
|
-
"application/json": {
|
|
16587
|
-
"schema": {
|
|
16588
|
-
"$ref": "#/components/schemas/Error"
|
|
16589
|
-
},
|
|
16590
|
-
"examples": {
|
|
16591
|
-
"exampleResponse": {
|
|
16592
|
-
"value": {
|
|
16593
|
-
"name": "UnauthorizedError",
|
|
16594
|
-
"message": "errorMessage"
|
|
16595
|
-
}
|
|
16596
|
-
}
|
|
16597
|
-
}
|
|
16598
|
-
}
|
|
16599
|
-
}
|
|
16600
|
-
},
|
|
16601
16578
|
"500": {
|
|
16602
16579
|
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
16603
16580
|
"content": {
|
|
@@ -16799,6 +16776,15 @@
|
|
|
16799
16776
|
"Transfer Process"
|
|
16800
16777
|
],
|
|
16801
16778
|
"parameters": [
|
|
16779
|
+
{
|
|
16780
|
+
"name": "autoStart",
|
|
16781
|
+
"description": "When \"true\", the provider immediately starts the requested transfer once it has been created.",
|
|
16782
|
+
"in": "query",
|
|
16783
|
+
"required": false,
|
|
16784
|
+
"schema": {
|
|
16785
|
+
"type": "string"
|
|
16786
|
+
}
|
|
16787
|
+
},
|
|
16802
16788
|
{
|
|
16803
16789
|
"name": "authorization",
|
|
16804
16790
|
"in": "header",
|
|
@@ -18062,7 +18048,7 @@
|
|
|
18062
18048
|
"description": "The request structure for creating a policy.",
|
|
18063
18049
|
"required": true,
|
|
18064
18050
|
"content": {
|
|
18065
|
-
"
|
|
18051
|
+
"text/plain": {
|
|
18066
18052
|
"schema": {
|
|
18067
18053
|
"$ref": "#/components/schemas/PapCreateRequest"
|
|
18068
18054
|
},
|
|
@@ -21534,6 +21520,10 @@
|
|
|
21534
21520
|
{
|
|
21535
21521
|
"const": "uint8array",
|
|
21536
21522
|
"description": "Uint8Array."
|
|
21523
|
+
},
|
|
21524
|
+
{
|
|
21525
|
+
"const": "duration",
|
|
21526
|
+
"description": "Duration in seconds."
|
|
21537
21527
|
}
|
|
21538
21528
|
]
|
|
21539
21529
|
},
|
|
@@ -22487,7 +22477,7 @@
|
|
|
22487
22477
|
"required": [
|
|
22488
22478
|
"tag"
|
|
22489
22479
|
],
|
|
22490
|
-
"description": "The
|
|
22480
|
+
"description": "The request body containing minting parameters."
|
|
22491
22481
|
},
|
|
22492
22482
|
"NftResolveResponse": {
|
|
22493
22483
|
"type": "object",
|
|
@@ -22516,7 +22506,7 @@
|
|
|
22516
22506
|
"issuerIdentityId",
|
|
22517
22507
|
"tag"
|
|
22518
22508
|
],
|
|
22519
|
-
"description": "The
|
|
22509
|
+
"description": "The resolved NFT data."
|
|
22520
22510
|
},
|
|
22521
22511
|
"NftTransferRequest": {
|
|
22522
22512
|
"type": "object",
|
|
@@ -22532,7 +22522,7 @@
|
|
|
22532
22522
|
"required": [
|
|
22533
22523
|
"recipientAddress"
|
|
22534
22524
|
],
|
|
22535
|
-
"description": "The
|
|
22525
|
+
"description": "The request body containing transfer parameters."
|
|
22536
22526
|
},
|
|
22537
22527
|
"NftUpdateRequest": {
|
|
22538
22528
|
"type": "object",
|
|
@@ -22541,7 +22531,7 @@
|
|
|
22541
22531
|
"description": "The metadata for the NFT."
|
|
22542
22532
|
}
|
|
22543
22533
|
},
|
|
22544
|
-
"description": "The
|
|
22534
|
+
"description": "The request body containing update parameters."
|
|
22545
22535
|
},
|
|
22546
22536
|
"NotFoundResponse": {
|
|
22547
22537
|
"type": "object",
|
|
@@ -22732,225 +22722,8 @@
|
|
|
22732
22722
|
"description": "The request data."
|
|
22733
22723
|
},
|
|
22734
22724
|
"PapCreateRequest": {
|
|
22735
|
-
"description": "The
|
|
22736
|
-
"type": "object"
|
|
22737
|
-
"properties": {
|
|
22738
|
-
"dateCreated": {
|
|
22739
|
-
"type": "string",
|
|
22740
|
-
"description": "schema.org dateCreated — ISO 8601 date-time set by PAP on create."
|
|
22741
|
-
},
|
|
22742
|
-
"dateModified": {
|
|
22743
|
-
"type": "string",
|
|
22744
|
-
"description": "schema.org dateModified — ISO 8601 date-time set by PAP on create and update."
|
|
22745
|
-
},
|
|
22746
|
-
"@context": {
|
|
22747
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType"
|
|
22748
|
-
},
|
|
22749
|
-
"profile": {
|
|
22750
|
-
"anyOf": [
|
|
22751
|
-
{
|
|
22752
|
-
"type": "string"
|
|
22753
|
-
},
|
|
22754
|
-
{
|
|
22755
|
-
"type": "array",
|
|
22756
|
-
"items": {
|
|
22757
|
-
"type": "string"
|
|
22758
|
-
}
|
|
22759
|
-
}
|
|
22760
|
-
],
|
|
22761
|
-
"description": "The profile(s) this policy conforms to.\nIRIs identifying the ODRL Profile(s)."
|
|
22762
|
-
},
|
|
22763
|
-
"assigner": {
|
|
22764
|
-
"anyOf": [
|
|
22765
|
-
{
|
|
22766
|
-
"type": "string"
|
|
22767
|
-
},
|
|
22768
|
-
{
|
|
22769
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
22770
|
-
},
|
|
22771
|
-
{
|
|
22772
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
22773
|
-
},
|
|
22774
|
-
{
|
|
22775
|
-
"type": "array",
|
|
22776
|
-
"items": {
|
|
22777
|
-
"anyOf": [
|
|
22778
|
-
{
|
|
22779
|
-
"type": "string"
|
|
22780
|
-
},
|
|
22781
|
-
{
|
|
22782
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
22783
|
-
},
|
|
22784
|
-
{
|
|
22785
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
22786
|
-
}
|
|
22787
|
-
]
|
|
22788
|
-
}
|
|
22789
|
-
}
|
|
22790
|
-
],
|
|
22791
|
-
"description": "The assigner of the policy.\nApplies to all rules unless overridden at rule level."
|
|
22792
|
-
},
|
|
22793
|
-
"assignee": {
|
|
22794
|
-
"anyOf": [
|
|
22795
|
-
{
|
|
22796
|
-
"type": "string"
|
|
22797
|
-
},
|
|
22798
|
-
{
|
|
22799
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
22800
|
-
},
|
|
22801
|
-
{
|
|
22802
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
22803
|
-
},
|
|
22804
|
-
{
|
|
22805
|
-
"type": "array",
|
|
22806
|
-
"items": {
|
|
22807
|
-
"anyOf": [
|
|
22808
|
-
{
|
|
22809
|
-
"type": "string"
|
|
22810
|
-
},
|
|
22811
|
-
{
|
|
22812
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
22813
|
-
},
|
|
22814
|
-
{
|
|
22815
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
22816
|
-
}
|
|
22817
|
-
]
|
|
22818
|
-
}
|
|
22819
|
-
}
|
|
22820
|
-
],
|
|
22821
|
-
"description": "The assignee of the policy.\nApplies to all rules unless overridden at rule level."
|
|
22822
|
-
},
|
|
22823
|
-
"target": {
|
|
22824
|
-
"anyOf": [
|
|
22825
|
-
{
|
|
22826
|
-
"type": "string"
|
|
22827
|
-
},
|
|
22828
|
-
{
|
|
22829
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
22830
|
-
},
|
|
22831
|
-
{
|
|
22832
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
22833
|
-
},
|
|
22834
|
-
{
|
|
22835
|
-
"type": "array",
|
|
22836
|
-
"items": {
|
|
22837
|
-
"anyOf": [
|
|
22838
|
-
{
|
|
22839
|
-
"type": "string"
|
|
22840
|
-
},
|
|
22841
|
-
{
|
|
22842
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
22843
|
-
},
|
|
22844
|
-
{
|
|
22845
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
22846
|
-
}
|
|
22847
|
-
]
|
|
22848
|
-
}
|
|
22849
|
-
}
|
|
22850
|
-
],
|
|
22851
|
-
"description": "The target asset for the rule."
|
|
22852
|
-
},
|
|
22853
|
-
"action": {
|
|
22854
|
-
"anyOf": [
|
|
22855
|
-
{
|
|
22856
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlActionType"
|
|
22857
|
-
},
|
|
22858
|
-
{
|
|
22859
|
-
"type": "string"
|
|
22860
|
-
},
|
|
22861
|
-
{
|
|
22862
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
22863
|
-
},
|
|
22864
|
-
{
|
|
22865
|
-
"type": "array",
|
|
22866
|
-
"items": {
|
|
22867
|
-
"anyOf": [
|
|
22868
|
-
{
|
|
22869
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlActionType"
|
|
22870
|
-
},
|
|
22871
|
-
{
|
|
22872
|
-
"type": "string"
|
|
22873
|
-
},
|
|
22874
|
-
{
|
|
22875
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
22876
|
-
}
|
|
22877
|
-
]
|
|
22878
|
-
}
|
|
22879
|
-
}
|
|
22880
|
-
],
|
|
22881
|
-
"description": "The action associated with the rule."
|
|
22882
|
-
},
|
|
22883
|
-
"inheritFrom": {
|
|
22884
|
-
"anyOf": [
|
|
22885
|
-
{
|
|
22886
|
-
"type": "string"
|
|
22887
|
-
},
|
|
22888
|
-
{
|
|
22889
|
-
"type": "array",
|
|
22890
|
-
"items": {
|
|
22891
|
-
"type": "string"
|
|
22892
|
-
}
|
|
22893
|
-
}
|
|
22894
|
-
],
|
|
22895
|
-
"description": "The parent policy(ies) this policy inherits from.\nIRIs identifying the parent Policy(ies)."
|
|
22896
|
-
},
|
|
22897
|
-
"conflict": {
|
|
22898
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlConflictStrategyType"
|
|
22899
|
-
},
|
|
22900
|
-
"permission": {
|
|
22901
|
-
"anyOf": [
|
|
22902
|
-
{
|
|
22903
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
22904
|
-
},
|
|
22905
|
-
{
|
|
22906
|
-
"type": "array",
|
|
22907
|
-
"items": {
|
|
22908
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
22909
|
-
}
|
|
22910
|
-
}
|
|
22911
|
-
],
|
|
22912
|
-
"description": "The permissions in the policy.\nAt least one of permission, prohibition, or obligation must be present."
|
|
22913
|
-
},
|
|
22914
|
-
"prohibition": {
|
|
22915
|
-
"anyOf": [
|
|
22916
|
-
{
|
|
22917
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
22918
|
-
},
|
|
22919
|
-
{
|
|
22920
|
-
"type": "array",
|
|
22921
|
-
"items": {
|
|
22922
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
22923
|
-
}
|
|
22924
|
-
}
|
|
22925
|
-
],
|
|
22926
|
-
"description": "The prohibitions in the policy.\nAt least one of permission, prohibition, or obligation must be present."
|
|
22927
|
-
},
|
|
22928
|
-
"obligation": {
|
|
22929
|
-
"anyOf": [
|
|
22930
|
-
{
|
|
22931
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
22932
|
-
},
|
|
22933
|
-
{
|
|
22934
|
-
"type": "array",
|
|
22935
|
-
"items": {
|
|
22936
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
22937
|
-
}
|
|
22938
|
-
}
|
|
22939
|
-
],
|
|
22940
|
-
"description": "The obligations in the policy.\nAt least one of permission, prohibition, or obligation must be present."
|
|
22941
|
-
},
|
|
22942
|
-
"@type": {
|
|
22943
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPolicyType"
|
|
22944
|
-
},
|
|
22945
|
-
"@id": {
|
|
22946
|
-
"type": "string",
|
|
22947
|
-
"description": "Unique identifier for the policy."
|
|
22948
|
-
}
|
|
22949
|
-
},
|
|
22950
|
-
"required": [
|
|
22951
|
-
"@context",
|
|
22952
|
-
"@type"
|
|
22953
|
-
]
|
|
22725
|
+
"description": "The request structure for creating a policy.",
|
|
22726
|
+
"type": "object"
|
|
22954
22727
|
},
|
|
22955
22728
|
"PapQueryResponse": {
|
|
22956
22729
|
"type": "array",
|
|
@@ -23141,6 +22914,9 @@
|
|
|
23141
22914
|
},
|
|
23142
22915
|
{
|
|
23143
22916
|
"$ref": "#/components/schemas/RightsManagementPolicyMetadata"
|
|
22917
|
+
},
|
|
22918
|
+
{
|
|
22919
|
+
"$ref": "#/components/schemas/RightsManagementPolicyTrust"
|
|
23144
22920
|
}
|
|
23145
22921
|
]
|
|
23146
22922
|
},
|
|
@@ -23153,225 +22929,24 @@
|
|
|
23153
22929
|
},
|
|
23154
22930
|
{
|
|
23155
22931
|
"$ref": "#/components/schemas/RightsManagementPolicyMetadata"
|
|
22932
|
+
},
|
|
22933
|
+
{
|
|
22934
|
+
"$ref": "#/components/schemas/RightsManagementPolicyTrust"
|
|
23156
22935
|
}
|
|
23157
22936
|
]
|
|
23158
22937
|
},
|
|
23159
22938
|
"RightsManagementPolicy": {
|
|
23160
22939
|
"description": "Base type for any ODRL policy stored and managed by the TWIN rights-management PAP.",
|
|
23161
22940
|
"type": "object",
|
|
23162
|
-
"properties": {
|
|
23163
|
-
"@context": {
|
|
23164
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType"
|
|
23165
|
-
},
|
|
23166
|
-
"profile": {
|
|
23167
|
-
"anyOf": [
|
|
23168
|
-
{
|
|
23169
|
-
"type": "string"
|
|
23170
|
-
},
|
|
23171
|
-
{
|
|
23172
|
-
"type": "array",
|
|
23173
|
-
"items": {
|
|
23174
|
-
"type": "string"
|
|
23175
|
-
}
|
|
23176
|
-
}
|
|
23177
|
-
],
|
|
23178
|
-
"description": "The profile(s) this policy conforms to.\nIRIs identifying the ODRL Profile(s)."
|
|
23179
|
-
},
|
|
23180
|
-
"assigner": {
|
|
23181
|
-
"anyOf": [
|
|
23182
|
-
{
|
|
23183
|
-
"type": "string"
|
|
23184
|
-
},
|
|
23185
|
-
{
|
|
23186
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
23187
|
-
},
|
|
23188
|
-
{
|
|
23189
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
23190
|
-
},
|
|
23191
|
-
{
|
|
23192
|
-
"type": "array",
|
|
23193
|
-
"items": {
|
|
23194
|
-
"anyOf": [
|
|
23195
|
-
{
|
|
23196
|
-
"type": "string"
|
|
23197
|
-
},
|
|
23198
|
-
{
|
|
23199
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
23200
|
-
},
|
|
23201
|
-
{
|
|
23202
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
23203
|
-
}
|
|
23204
|
-
]
|
|
23205
|
-
}
|
|
23206
|
-
}
|
|
23207
|
-
],
|
|
23208
|
-
"description": "The assigner of the policy.\nApplies to all rules unless overridden at rule level."
|
|
23209
|
-
},
|
|
23210
|
-
"assignee": {
|
|
23211
|
-
"anyOf": [
|
|
23212
|
-
{
|
|
23213
|
-
"type": "string"
|
|
23214
|
-
},
|
|
23215
|
-
{
|
|
23216
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
23217
|
-
},
|
|
23218
|
-
{
|
|
23219
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
23220
|
-
},
|
|
23221
|
-
{
|
|
23222
|
-
"type": "array",
|
|
23223
|
-
"items": {
|
|
23224
|
-
"anyOf": [
|
|
23225
|
-
{
|
|
23226
|
-
"type": "string"
|
|
23227
|
-
},
|
|
23228
|
-
{
|
|
23229
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
23230
|
-
},
|
|
23231
|
-
{
|
|
23232
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
23233
|
-
}
|
|
23234
|
-
]
|
|
23235
|
-
}
|
|
23236
|
-
}
|
|
23237
|
-
],
|
|
23238
|
-
"description": "The assignee of the policy.\nApplies to all rules unless overridden at rule level."
|
|
23239
|
-
},
|
|
23240
|
-
"target": {
|
|
23241
|
-
"anyOf": [
|
|
23242
|
-
{
|
|
23243
|
-
"type": "string"
|
|
23244
|
-
},
|
|
23245
|
-
{
|
|
23246
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
23247
|
-
},
|
|
23248
|
-
{
|
|
23249
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
23250
|
-
},
|
|
23251
|
-
{
|
|
23252
|
-
"type": "array",
|
|
23253
|
-
"items": {
|
|
23254
|
-
"anyOf": [
|
|
23255
|
-
{
|
|
23256
|
-
"type": "string"
|
|
23257
|
-
},
|
|
23258
|
-
{
|
|
23259
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
23260
|
-
},
|
|
23261
|
-
{
|
|
23262
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
23263
|
-
}
|
|
23264
|
-
]
|
|
23265
|
-
}
|
|
23266
|
-
}
|
|
23267
|
-
],
|
|
23268
|
-
"description": "The target asset for the rule."
|
|
23269
|
-
},
|
|
23270
|
-
"action": {
|
|
23271
|
-
"anyOf": [
|
|
23272
|
-
{
|
|
23273
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlActionType"
|
|
23274
|
-
},
|
|
23275
|
-
{
|
|
23276
|
-
"type": "string"
|
|
23277
|
-
},
|
|
23278
|
-
{
|
|
23279
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
23280
|
-
},
|
|
23281
|
-
{
|
|
23282
|
-
"type": "array",
|
|
23283
|
-
"items": {
|
|
23284
|
-
"anyOf": [
|
|
23285
|
-
{
|
|
23286
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlActionType"
|
|
23287
|
-
},
|
|
23288
|
-
{
|
|
23289
|
-
"type": "string"
|
|
23290
|
-
},
|
|
23291
|
-
{
|
|
23292
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
23293
|
-
}
|
|
23294
|
-
]
|
|
23295
|
-
}
|
|
23296
|
-
}
|
|
23297
|
-
],
|
|
23298
|
-
"description": "The action associated with the rule."
|
|
23299
|
-
},
|
|
23300
|
-
"inheritFrom": {
|
|
23301
|
-
"anyOf": [
|
|
23302
|
-
{
|
|
23303
|
-
"type": "string"
|
|
23304
|
-
},
|
|
23305
|
-
{
|
|
23306
|
-
"type": "array",
|
|
23307
|
-
"items": {
|
|
23308
|
-
"type": "string"
|
|
23309
|
-
}
|
|
23310
|
-
}
|
|
23311
|
-
],
|
|
23312
|
-
"description": "The parent policy(ies) this policy inherits from.\nIRIs identifying the parent Policy(ies)."
|
|
23313
|
-
},
|
|
23314
|
-
"conflict": {
|
|
23315
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlConflictStrategyType"
|
|
23316
|
-
},
|
|
23317
|
-
"permission": {
|
|
23318
|
-
"anyOf": [
|
|
23319
|
-
{
|
|
23320
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
23321
|
-
},
|
|
23322
|
-
{
|
|
23323
|
-
"type": "array",
|
|
23324
|
-
"items": {
|
|
23325
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
23326
|
-
}
|
|
23327
|
-
}
|
|
23328
|
-
],
|
|
23329
|
-
"description": "The permissions in the policy.\nAt least one of permission, prohibition, or obligation must be present."
|
|
23330
|
-
},
|
|
23331
|
-
"prohibition": {
|
|
23332
|
-
"anyOf": [
|
|
23333
|
-
{
|
|
23334
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
23335
|
-
},
|
|
23336
|
-
{
|
|
23337
|
-
"type": "array",
|
|
23338
|
-
"items": {
|
|
23339
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
23340
|
-
}
|
|
23341
|
-
}
|
|
23342
|
-
],
|
|
23343
|
-
"description": "The prohibitions in the policy.\nAt least one of permission, prohibition, or obligation must be present."
|
|
23344
|
-
},
|
|
23345
|
-
"obligation": {
|
|
23346
|
-
"anyOf": [
|
|
23347
|
-
{
|
|
23348
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
23349
|
-
},
|
|
23350
|
-
{
|
|
23351
|
-
"type": "array",
|
|
23352
|
-
"items": {
|
|
23353
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
23354
|
-
}
|
|
23355
|
-
}
|
|
23356
|
-
],
|
|
23357
|
-
"description": "The obligations in the policy.\nAt least one of permission, prohibition, or obligation must be present."
|
|
23358
|
-
},
|
|
23359
|
-
"@id": {
|
|
23360
|
-
"type": "string",
|
|
23361
|
-
"description": "Unique identifier for the policy."
|
|
23362
|
-
},
|
|
23363
|
-
"@type": {
|
|
23364
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPolicyType"
|
|
23365
|
-
}
|
|
23366
|
-
},
|
|
23367
|
-
"required": [
|
|
23368
|
-
"@context",
|
|
23369
|
-
"@id",
|
|
23370
|
-
"@type"
|
|
23371
|
-
],
|
|
23372
22941
|
"allOf": [
|
|
22942
|
+
{
|
|
22943
|
+
"$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolPolicy"
|
|
22944
|
+
},
|
|
23373
22945
|
{
|
|
23374
22946
|
"$ref": "#/components/schemas/RightsManagementPolicyMetadata"
|
|
22947
|
+
},
|
|
22948
|
+
{
|
|
22949
|
+
"$ref": "#/components/schemas/RightsManagementPolicyTrust"
|
|
23375
22950
|
}
|
|
23376
22951
|
]
|
|
23377
22952
|
},
|
|
@@ -23389,6 +22964,19 @@
|
|
|
23389
22964
|
}
|
|
23390
22965
|
}
|
|
23391
22966
|
},
|
|
22967
|
+
"RightsManagementPolicyTrust": {
|
|
22968
|
+
"description": "PAP-managed trust data attached to stored and returned ODRL policies.",
|
|
22969
|
+
"type": "object",
|
|
22970
|
+
"properties": {
|
|
22971
|
+
"trustData": {
|
|
22972
|
+
"type": "object",
|
|
22973
|
+
"additionalProperties": {
|
|
22974
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
22975
|
+
},
|
|
22976
|
+
"description": "Trust verification data captured at the beginning of the negotiation."
|
|
22977
|
+
}
|
|
22978
|
+
}
|
|
22979
|
+
},
|
|
23392
22980
|
"RightsManagementSet": {
|
|
23393
22981
|
"description": "Set policy returned by PAP, including optional PAP-managed lifecycle metadata.",
|
|
23394
22982
|
"type": "object",
|
|
@@ -23398,6 +22986,9 @@
|
|
|
23398
22986
|
},
|
|
23399
22987
|
{
|
|
23400
22988
|
"$ref": "#/components/schemas/RightsManagementPolicyMetadata"
|
|
22989
|
+
},
|
|
22990
|
+
{
|
|
22991
|
+
"$ref": "#/components/schemas/RightsManagementPolicyTrust"
|
|
23401
22992
|
}
|
|
23402
22993
|
]
|
|
23403
22994
|
},
|
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.58",
|
|
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.58"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "git+https://github.com/iotaledger/twin-node/issues"
|