@twin.org/node 0.0.3-next.46 → 0.0.3-next.48
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 +6 -24
- package/docs/changelog.md +28 -0
- package/docs/open-api/spec.json +24 -39
- package/docs/usage.md +1 -7
- package/package.json +2 -2
package/dist/locales/en.json
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"error": {
|
|
3
3
|
"node": {
|
|
4
4
|
"nodeIdentityNotSet": "The node identity is enabled in config but is not set, please set it using the \"node-set-identity\" CLI command.",
|
|
5
|
-
"nodeTenantNotSet": "Multi-tenancy is enabled but node tenant is not set, please set it using the \"node-set-tenant\" CLI command.",
|
|
6
5
|
"storageFileRootNotSet": "{storageFileRoot} is not set, the server will not start without it, please set it in the shell or create a .env file",
|
|
7
6
|
"extensionLoadingError": "Failed to load extension \"{extension}\"",
|
|
8
7
|
"insecureProtocol": "Cannot load extension from insecure protocol: {protocol}. Only HTTPS is allowed for remote extensions.",
|
|
@@ -56,9 +55,6 @@
|
|
|
56
55
|
"vaultKeyCreate": {
|
|
57
56
|
"vaultKeyAlreadyExists": "The vault key with ID already exists and overwriteMode is set to \"error\"."
|
|
58
57
|
},
|
|
59
|
-
"nodeSetTenant": {
|
|
60
|
-
"tenantAdminComponentNotRegistered": "Multi-tenant support must be enabled to use this command."
|
|
61
|
-
},
|
|
62
58
|
"nodeSetIdentity": {
|
|
63
59
|
"identityNotFound": "The identity with DID \"{notFoundId}\" was not found in the system."
|
|
64
60
|
},
|
|
@@ -677,12 +673,14 @@
|
|
|
677
673
|
},
|
|
678
674
|
"documentManagementService": {
|
|
679
675
|
"createFailed": "Failed to create document",
|
|
676
|
+
"connectedVertexNotFound": "The connected vertex \"{notFoundId}\" does not exist",
|
|
680
677
|
"updateFailed": "Failed to update document",
|
|
681
678
|
"getFailed": "Failed to get document",
|
|
682
679
|
"getRevisionFailed": "Failed to get document revision",
|
|
683
680
|
"queryFailed": "Failed to query document",
|
|
684
681
|
"documentRevisionNone": "There are no revisions in the document",
|
|
685
682
|
"documentRevisionNotFound": "There is no revision number \"{notFoundId}\" in the document",
|
|
683
|
+
"documentRevisionMissingId": "Revision {revision} was found but has no resolvable resource id — possible data integrity issue",
|
|
686
684
|
"removeRevisionFailed": "Failed to remove document revision"
|
|
687
685
|
},
|
|
688
686
|
"cosmosDbEntityStorageConnector": {
|
|
@@ -1417,7 +1415,6 @@
|
|
|
1417
1415
|
"synchronisedStorageKeyAdd": "Adding synchronised storage key for node identity",
|
|
1418
1416
|
"nodeIdentitySet": "Setting node identity",
|
|
1419
1417
|
"nodeTenantCreate": "Creating node tenant",
|
|
1420
|
-
"nodeTenantSet": "Setting node tenant",
|
|
1421
1418
|
"organisationCreate": "Creating organisation identity",
|
|
1422
1419
|
"blobStorageKeyCreate": "Creating blob storage encryption key for organisation identity",
|
|
1423
1420
|
"attestationMethodCreate": "Creating attestation method for organisation identity",
|
|
@@ -1746,7 +1743,7 @@
|
|
|
1746
1743
|
}
|
|
1747
1744
|
},
|
|
1748
1745
|
"tenant-token": {
|
|
1749
|
-
"description": "Generate the x-enc-tenant-
|
|
1746
|
+
"description": "Generate the x-enc-tenant-token token value for a tenant",
|
|
1750
1747
|
"example": "tenant-token --tenant-id=\"0011..aabb\"",
|
|
1751
1748
|
"params": {
|
|
1752
1749
|
"tenant-id": {
|
|
@@ -1755,6 +1752,9 @@
|
|
|
1755
1752
|
"api-key": {
|
|
1756
1753
|
"description": "The API key to look up the tenant ID from."
|
|
1757
1754
|
},
|
|
1755
|
+
"load-env": {
|
|
1756
|
+
"description": "Comma separated list of paths to .env files to read input parameters from."
|
|
1757
|
+
},
|
|
1758
1758
|
"output-json": {
|
|
1759
1759
|
"description": "Path to a .json file to store the command output."
|
|
1760
1760
|
}
|
|
@@ -1766,24 +1766,6 @@
|
|
|
1766
1766
|
"token": "Token"
|
|
1767
1767
|
}
|
|
1768
1768
|
},
|
|
1769
|
-
"node-set-tenant": {
|
|
1770
|
-
"description": "Set the node tenant",
|
|
1771
|
-
"example": "node-set-tenant --tenant-id=\"0011..aabb\"",
|
|
1772
|
-
"params": {
|
|
1773
|
-
"env-prefix": {
|
|
1774
|
-
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1775
|
-
},
|
|
1776
|
-
"tenant-id": {
|
|
1777
|
-
"description": "The tenant ID to add. If not provided a random tenant id will be generated."
|
|
1778
|
-
},
|
|
1779
|
-
"load-env": {
|
|
1780
|
-
"description": "Comma separated list of paths to .env files to read input parameters from."
|
|
1781
|
-
}
|
|
1782
|
-
},
|
|
1783
|
-
"labels": {
|
|
1784
|
-
"stored": "The tenant id has been stored"
|
|
1785
|
-
}
|
|
1786
|
-
},
|
|
1787
1769
|
"user-create": {
|
|
1788
1770
|
"description": "Create a user",
|
|
1789
1771
|
"example": "user-create --user-identity=\"did:iota:....\" --organization-identity=\"did:iota:....\" --email=\"bob@examples.com\" --password=\"pass1234\" --scope=\"tenant-admin\" --givenName=\"Bob\" --familyName=\"Smith\"",
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.48](https://github.com/iotaledger/twin-node/compare/node-v0.0.3-next.47...node-v0.0.3-next.48) (2026-06-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* remove set-tenant ([#186](https://github.com/iotaledger/twin-node/issues/186)) ([1fc1909](https://github.com/iotaledger/twin-node/commit/1fc1909e6335dea51dfec3bb91fba4badaa9790a))
|
|
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.47 to 0.0.3-next.48
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.47](https://github.com/iotaledger/twin-node/compare/node-v0.0.3-next.46...node-v0.0.3-next.47) (2026-06-03)
|
|
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.46 to 0.0.3-next.47
|
|
30
|
+
|
|
3
31
|
## [0.0.3-next.46](https://github.com/iotaledger/twin-node/compare/node-v0.0.3-next.45...node-v0.0.3-next.46) (2026-06-03)
|
|
4
32
|
|
|
5
33
|
|
package/docs/open-api/spec.json
CHANGED
|
@@ -11231,9 +11231,9 @@
|
|
|
11231
11231
|
}
|
|
11232
11232
|
},
|
|
11233
11233
|
"/document-management/{auditableItemGraphDocumentId}": {
|
|
11234
|
-
"
|
|
11235
|
-
"operationId": "
|
|
11236
|
-
"summary": "
|
|
11234
|
+
"patch": {
|
|
11235
|
+
"operationId": "DocumentManagementUpdatePartial",
|
|
11236
|
+
"summary": "Partially update a document in an auditable item graph vertex and add its content to blob storage.",
|
|
11237
11237
|
"tags": [
|
|
11238
11238
|
"Document Management"
|
|
11239
11239
|
],
|
|
@@ -11256,15 +11256,15 @@
|
|
|
11256
11256
|
}
|
|
11257
11257
|
],
|
|
11258
11258
|
"requestBody": {
|
|
11259
|
-
"description": "Request to update a document as an auditable item graph vertex.",
|
|
11259
|
+
"description": "Request to partially update a document as an auditable item graph vertex.",
|
|
11260
11260
|
"required": true,
|
|
11261
11261
|
"content": {
|
|
11262
11262
|
"application/json": {
|
|
11263
11263
|
"schema": {
|
|
11264
|
-
"$ref": "#/components/schemas/
|
|
11264
|
+
"$ref": "#/components/schemas/DocumentManagementUpdatePartialRequest"
|
|
11265
11265
|
},
|
|
11266
11266
|
"examples": {
|
|
11267
|
-
"
|
|
11267
|
+
"DocumentManagementUpdatePartialRequestExample": {
|
|
11268
11268
|
"value": {
|
|
11269
11269
|
"blob": "SGVsbG8gV29ybGQ=",
|
|
11270
11270
|
"annotationObject": {
|
|
@@ -21910,21 +21910,7 @@
|
|
|
21910
21910
|
"auditableItemGraphEdges": {
|
|
21911
21911
|
"type": "array",
|
|
21912
21912
|
"items": {
|
|
21913
|
-
"
|
|
21914
|
-
"properties": {
|
|
21915
|
-
"targetId": {
|
|
21916
|
-
"type": "string"
|
|
21917
|
-
},
|
|
21918
|
-
"addAlias": {
|
|
21919
|
-
"type": "boolean"
|
|
21920
|
-
},
|
|
21921
|
-
"aliasAnnotationObject": {
|
|
21922
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
21923
|
-
}
|
|
21924
|
-
},
|
|
21925
|
-
"required": [
|
|
21926
|
-
"targetId"
|
|
21927
|
-
]
|
|
21913
|
+
"$ref": "https://schema.twindev.org/documents/DocumentManagementEdgeEntry"
|
|
21928
21914
|
},
|
|
21929
21915
|
"description": "The auditable item graph vertices to connect the document to."
|
|
21930
21916
|
},
|
|
@@ -21948,36 +21934,35 @@
|
|
|
21948
21934
|
],
|
|
21949
21935
|
"description": "The body parameters."
|
|
21950
21936
|
},
|
|
21951
|
-
"
|
|
21937
|
+
"DocumentManagementUpdatePartialRequest": {
|
|
21952
21938
|
"type": "object",
|
|
21953
21939
|
"properties": {
|
|
21954
21940
|
"blob": {
|
|
21955
21941
|
"type": "string",
|
|
21956
|
-
"description": "The data to
|
|
21942
|
+
"description": "The data to update the document with, in base64."
|
|
21957
21943
|
},
|
|
21958
21944
|
"annotationObject": {
|
|
21959
21945
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
21960
21946
|
},
|
|
21961
21947
|
"auditableItemGraphEdges": {
|
|
21962
|
-
"type": "
|
|
21963
|
-
"
|
|
21964
|
-
"
|
|
21965
|
-
|
|
21966
|
-
"
|
|
21967
|
-
"
|
|
21968
|
-
},
|
|
21969
|
-
"addAlias": {
|
|
21970
|
-
"type": "boolean"
|
|
21948
|
+
"type": "object",
|
|
21949
|
+
"properties": {
|
|
21950
|
+
"add": {
|
|
21951
|
+
"type": "array",
|
|
21952
|
+
"items": {
|
|
21953
|
+
"$ref": "https://schema.twindev.org/documents/DocumentManagementEdgeEntry"
|
|
21971
21954
|
},
|
|
21972
|
-
"
|
|
21973
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
21974
|
-
}
|
|
21955
|
+
"description": "Connections to add; each entry creates a back-edge on the connected vertex."
|
|
21975
21956
|
},
|
|
21976
|
-
"
|
|
21977
|
-
"
|
|
21978
|
-
|
|
21957
|
+
"remove": {
|
|
21958
|
+
"type": "array",
|
|
21959
|
+
"items": {
|
|
21960
|
+
"type": "string"
|
|
21961
|
+
},
|
|
21962
|
+
"description": "Target vertex IDs to disconnect; their back-edges are removed."
|
|
21963
|
+
}
|
|
21979
21964
|
},
|
|
21980
|
-
"description": "
|
|
21965
|
+
"description": "Explicit edge delta to apply. Use `add` to create new connections and `remove` to\ndisconnect existing ones by their target vertex id."
|
|
21981
21966
|
}
|
|
21982
21967
|
},
|
|
21983
21968
|
"description": "The body parameters."
|
package/docs/usage.md
CHANGED
|
@@ -32,9 +32,9 @@ identity-verification-method-create: Create an identity verification method
|
|
|
32
32
|
identity-verification-method-import: Import an identity verification method
|
|
33
33
|
identity-verifiable-credential-create: Create a verifiable credential
|
|
34
34
|
node-set-identity: Set the node identity
|
|
35
|
-
node-set-tenant: Set the node tenant
|
|
36
35
|
tenant-create: Create a tenant with associated api key
|
|
37
36
|
tenant-import: Import a tenant with associated api key
|
|
37
|
+
tenant-token: Generate the x-enc-tenant-token token value for a tenant
|
|
38
38
|
tenant-update: Update a tenant with associated api key
|
|
39
39
|
user-create: Create a user
|
|
40
40
|
user-update: Update a user
|
|
@@ -151,12 +151,6 @@ twin-node tenant-import --load-env="node-tenant.json" --tenant-id=!NODE_TENANT_I
|
|
|
151
151
|
twin-node tenant-update --load-env="node-tenant.json" --tenant-id=!NODE_TENANT_ID --label="New Label"
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
### Associate the tenant with the node
|
|
155
|
-
|
|
156
|
-
```shell
|
|
157
|
-
twin-node node-set-tenant --load-env="node-tenant.env" --tenant-id=!NODE_TENANT_ID
|
|
158
|
-
```
|
|
159
|
-
|
|
160
154
|
### Create an organisation identity
|
|
161
155
|
|
|
162
156
|
```shell
|
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.48",
|
|
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.48"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "git+https://github.com/iotaledger/twin-node/issues"
|