@twin.org/node 0.0.3-next.47 → 0.0.3-next.49

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.
@@ -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
  },
@@ -317,7 +313,8 @@
317
313
  "invalidEntityProperties": "The schema has no properties defined, but the entity has properties",
318
314
  "invalidEntityProperty": "The entity value of \"{value}\" does not match the type \"{type}\" for property \"{property}\"",
319
315
  "invalidOptional": "The entity property \"{property}\" of type \"{type}\" is not optional, but no value has been provided",
320
- "invalidEntityKeys": "The entity had additional properties that are not in the schema, \"{keys}\""
316
+ "invalidEntityKeys": "The entity had additional properties that are not in the schema, \"{keys}\"",
317
+ "versionMustBeGreaterThanOrEqualZero": "Property \"entitySchema.version\" must be an integer >= 0, but got {version}"
321
318
  },
322
319
  "migrationHelper": {
323
320
  "migrationFailed": "Migration failed.",
@@ -677,12 +674,14 @@
677
674
  },
678
675
  "documentManagementService": {
679
676
  "createFailed": "Failed to create document",
677
+ "connectedVertexNotFound": "The connected vertex \"{notFoundId}\" does not exist",
680
678
  "updateFailed": "Failed to update document",
681
679
  "getFailed": "Failed to get document",
682
680
  "getRevisionFailed": "Failed to get document revision",
683
681
  "queryFailed": "Failed to query document",
684
682
  "documentRevisionNone": "There are no revisions in the document",
685
683
  "documentRevisionNotFound": "There is no revision number \"{notFoundId}\" in the document",
684
+ "documentRevisionMissingId": "Revision {revision} was found but has no resolvable resource id — possible data integrity issue",
686
685
  "removeRevisionFailed": "Failed to remove document revision"
687
686
  },
688
687
  "cosmosDbEntityStorageConnector": {
@@ -1202,6 +1201,7 @@
1202
1201
  "noRequesterFound": "No requester found with type: \"{notFoundId}\"",
1203
1202
  "negotiationFailed": "Negotiation failed for offer id: \"{offerId}\"",
1204
1203
  "agreementMissing": "The agreement is missing",
1204
+ "agreementOfferIdCollision": "The agreement id collides with the offer id, the negotiator must allocate a distinct id: \"{id}\"",
1205
1205
  "negotiationNotFound": "No negotiation found with id: \"{notFoundId}\"",
1206
1206
  "requesterNotFound": "No requester found with id: \"{notFoundId}\"",
1207
1207
  "invalidState": "The negotiation is in an incorrect state \"{state}\" for negotiation with id: \"{negotiationId}\"",
@@ -1256,6 +1256,11 @@
1256
1256
  "noGeneratorsRegistered": "No trust generators are registered in the factory",
1257
1257
  "noVerifiersRegistered": "No trust verifiers are registered in the factory"
1258
1258
  },
1259
+ "identityAllowDenyVerifier": {
1260
+ "identityMissing": "The identity is missing from the verification info.",
1261
+ "identityNotAllowed": "The identity is not in the allowed identities list \"{identity}\".",
1262
+ "identityDenied": "The identity is in the denied identities list \"{identity}\"."
1263
+ },
1259
1264
  "jwtVerifiableCredentialVerifier": {
1260
1265
  "tokenMissingCredential": "The JWT token does not contain a verifiable credential.",
1261
1266
  "tokenMissingIssuer": "The verifiable credential in the JWT does not contain an issuer.",
@@ -1417,7 +1422,6 @@
1417
1422
  "synchronisedStorageKeyAdd": "Adding synchronised storage key for node identity",
1418
1423
  "nodeIdentitySet": "Setting node identity",
1419
1424
  "nodeTenantCreate": "Creating node tenant",
1420
- "nodeTenantSet": "Setting node tenant",
1421
1425
  "organisationCreate": "Creating organisation identity",
1422
1426
  "blobStorageKeyCreate": "Creating blob storage encryption key for organisation identity",
1423
1427
  "attestationMethodCreate": "Creating attestation method for organisation identity",
@@ -1746,7 +1750,7 @@
1746
1750
  }
1747
1751
  },
1748
1752
  "tenant-token": {
1749
- "description": "Generate the x-enc-tenant-id token value for a tenant",
1753
+ "description": "Generate the x-enc-tenant-token token value for a tenant",
1750
1754
  "example": "tenant-token --tenant-id=\"0011..aabb\"",
1751
1755
  "params": {
1752
1756
  "tenant-id": {
@@ -1769,24 +1773,6 @@
1769
1773
  "token": "Token"
1770
1774
  }
1771
1775
  },
1772
- "node-set-tenant": {
1773
- "description": "Set the node tenant",
1774
- "example": "node-set-tenant --tenant-id=\"0011..aabb\"",
1775
- "params": {
1776
- "env-prefix": {
1777
- "description": "Prefix to use for standard .env files e.g. TWIN_."
1778
- },
1779
- "tenant-id": {
1780
- "description": "The tenant ID to add. If not provided a random tenant id will be generated."
1781
- },
1782
- "load-env": {
1783
- "description": "Comma separated list of paths to .env files to read input parameters from."
1784
- }
1785
- },
1786
- "labels": {
1787
- "stored": "The tenant id has been stored"
1788
- }
1789
- },
1790
1776
  "user-create": {
1791
1777
  "description": "Create a user",
1792
1778
  "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.49](https://github.com/iotaledger/twin-node/compare/node-v0.0.3-next.48...node-v0.0.3-next.49) (2026-06-05)
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.48 to 0.0.3-next.49
16
+
17
+ ## [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)
18
+
19
+
20
+ ### Features
21
+
22
+ * remove set-tenant ([#186](https://github.com/iotaledger/twin-node/issues/186)) ([1fc1909](https://github.com/iotaledger/twin-node/commit/1fc1909e6335dea51dfec3bb91fba4badaa9790a))
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.47 to 0.0.3-next.48
30
+
3
31
  ## [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)
4
32
 
5
33
 
@@ -11231,9 +11231,9 @@
11231
11231
  }
11232
11232
  },
11233
11233
  "/document-management/{auditableItemGraphDocumentId}": {
11234
- "put": {
11235
- "operationId": "DocumentManagementUpdate",
11236
- "summary": "Update a document in an auditable item graph vertex and add its content to blob storage.",
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/DocumentManagementUpdateRequest"
11264
+ "$ref": "#/components/schemas/DocumentManagementUpdatePartialRequest"
11265
11265
  },
11266
11266
  "examples": {
11267
- "DocumentManagementUpdateRequestExample": {
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
- "type": "object",
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
- "DocumentManagementUpdateRequest": {
21937
+ "DocumentManagementUpdatePartialRequest": {
21952
21938
  "type": "object",
21953
21939
  "properties": {
21954
21940
  "blob": {
21955
21941
  "type": "string",
21956
- "description": "The data to create the document with, in base64."
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": "array",
21963
- "items": {
21964
- "type": "object",
21965
- "properties": {
21966
- "targetId": {
21967
- "type": "string"
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
- "aliasAnnotationObject": {
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
- "required": [
21977
- "targetId"
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": "The auditable item graph vertices to connect the document to."
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.47",
3
+ "version": "0.0.3-next.49",
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.47"
17
+ "@twin.org/node-core": "0.0.3-next.49"
18
18
  },
19
19
  "bugs": {
20
20
  "url": "git+https://github.com/iotaledger/twin-node/issues"