@twin.org/node 0.0.3-next.17 → 0.0.3-next.19
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 +99 -7
- package/docs/changelog.md +28 -0
- package/docs/examples.md +8 -2
- package/package.json +2 -2
package/dist/locales/en.json
CHANGED
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
"tenantAdminComponentNotRegistered": "Multi-tenant support must be enabled to use this command."
|
|
39
39
|
},
|
|
40
40
|
"tenantUpdate": {
|
|
41
|
-
"tenantAdminComponentNotRegistered": "Multi-tenant support must be enabled to use this command."
|
|
42
|
-
"tenantNotFound": "The tenant with ID \"{notFoundId}\" was not found in the system."
|
|
41
|
+
"tenantAdminComponentNotRegistered": "Multi-tenant support must be enabled to use this command."
|
|
43
42
|
},
|
|
44
43
|
"userCreate": {
|
|
45
44
|
"passwordTooShort": "The password provided is too short, it must be at least {minLength} characters long.",
|
|
@@ -49,7 +48,6 @@
|
|
|
49
48
|
"vaultKeyAlreadyExists": "The vault key with ID already exists and overwriteMode is set to \"error\"."
|
|
50
49
|
},
|
|
51
50
|
"nodeSetTenant": {
|
|
52
|
-
"tenantNotFound": "The tenant with ID \"{notFoundId}\" was not found in the system.",
|
|
53
51
|
"tenantAdminComponentNotRegistered": "Multi-tenant support must be enabled to use this command."
|
|
54
52
|
},
|
|
55
53
|
"nodeSetIdentity": {
|
|
@@ -63,6 +61,8 @@
|
|
|
63
61
|
"entityStorageAuthenticationAdminService": {
|
|
64
62
|
"userExists": "The user with the specified e-mail already exists",
|
|
65
63
|
"createUserFailed": "Creating the user failed",
|
|
64
|
+
"getUserFailed": "Getting the user failed",
|
|
65
|
+
"updateUserFailed": "Updating the user failed",
|
|
66
66
|
"removeUserFailed": "Removing the user failed",
|
|
67
67
|
"updatePasswordFailed": "Updating the user's password failed",
|
|
68
68
|
"passwordTooShort": "The password is too short, it must be at least {minLength} characters long",
|
|
@@ -73,7 +73,8 @@
|
|
|
73
73
|
"missing": "The JSON Web token could not be found in the authorization header",
|
|
74
74
|
"payloadMissingSubject": "The JSON Web token payload does not contain a subject",
|
|
75
75
|
"payloadMissingOrganization": "The JSON Web token payload does not contain an organization",
|
|
76
|
-
"expired": "The JSON Web token has expired"
|
|
76
|
+
"expired": "The JSON Web token has expired",
|
|
77
|
+
"insufficientScopes": "The JSON Web token does not have the required scopes to access this resource"
|
|
77
78
|
},
|
|
78
79
|
"authHeaderProcessor": {
|
|
79
80
|
"tenantIdMismatch": "The tenant ID in the token does not match the tenant ID in the context"
|
|
@@ -293,7 +294,8 @@
|
|
|
293
294
|
"apiKeyNotFound": "No node tenant found for API key \"{key}\"."
|
|
294
295
|
},
|
|
295
296
|
"tenantAdminService": {
|
|
296
|
-
"apiKeyAlreadyInUse": "The provided API key is already in use by another tenant."
|
|
297
|
+
"apiKeyAlreadyInUse": "The provided API key is already in use by another tenant.",
|
|
298
|
+
"tenantNotFound": "Tenant with ID \"{notFoundId}\" not found."
|
|
297
299
|
},
|
|
298
300
|
"commands": {
|
|
299
301
|
"common": {
|
|
@@ -904,6 +906,10 @@
|
|
|
904
906
|
"identityPolicyInformationSource": {
|
|
905
907
|
"identityRetrievalFailed": "Failed to retrieve identity \"{id}\" information for policy id: \"{policyId}\""
|
|
906
908
|
},
|
|
909
|
+
"defaultPolicyEnforcementProcessor": {
|
|
910
|
+
"targetNotJsonPath": "The policy decision target \"{target}\" is not a valid JSON-path string, it should be a minimum of $.",
|
|
911
|
+
"replaceValueMissing": "The policy decision replaceValue was not provided for target \"{target}\"."
|
|
912
|
+
},
|
|
907
913
|
"policyNegotiationPointService": {
|
|
908
914
|
"noOfferFound": "No offer found with id: \"{offerId}\"",
|
|
909
915
|
"noNegotiatorFound": "No negotiator found which support offer id: \"{offerId}\"",
|
|
@@ -1109,6 +1115,9 @@
|
|
|
1109
1115
|
"description": "Bootstrap in legacy mode for backwards compatibility, **will be deprecated in future versions**",
|
|
1110
1116
|
"example": "bootstrap-legacy --load-env=\"./.env.bootstrap-legacy\"",
|
|
1111
1117
|
"params": {
|
|
1118
|
+
"env-prefix": {
|
|
1119
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1120
|
+
},
|
|
1112
1121
|
"load-env": {
|
|
1113
1122
|
"description": "Comma separated list of paths to .env files to read input parameters from."
|
|
1114
1123
|
}
|
|
@@ -1133,6 +1142,9 @@
|
|
|
1133
1142
|
"description": "Create an identity",
|
|
1134
1143
|
"example": "identity-create --mnemonic=\"...\" --fund-wallet=true",
|
|
1135
1144
|
"params": {
|
|
1145
|
+
"env-prefix": {
|
|
1146
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1147
|
+
},
|
|
1136
1148
|
"mnemonic": {
|
|
1137
1149
|
"description": "The mnemonic phrase to use for the identity. If not provided, a random mnemonic will be generated."
|
|
1138
1150
|
},
|
|
@@ -1184,6 +1196,9 @@
|
|
|
1184
1196
|
"description": "Import an identity",
|
|
1185
1197
|
"example": "identity-import --identity=\"did:iota:...\" --mnemonic=\"...\"",
|
|
1186
1198
|
"params": {
|
|
1199
|
+
"env-prefix": {
|
|
1200
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1201
|
+
},
|
|
1187
1202
|
"identity": {
|
|
1188
1203
|
"description": "The DID of the identity to import."
|
|
1189
1204
|
},
|
|
@@ -1203,6 +1218,9 @@
|
|
|
1203
1218
|
"description": "Create a verifiable credential",
|
|
1204
1219
|
"example": "identity-verifiable-credential-create --identity=\"did:iota:....\" --verification-method-id=\"my-id\" --subject-json=\"./subject.json\"",
|
|
1205
1220
|
"params": {
|
|
1221
|
+
"env-prefix": {
|
|
1222
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1223
|
+
},
|
|
1206
1224
|
"identity": {
|
|
1207
1225
|
"description": "The DID of the identity to use to create the credential."
|
|
1208
1226
|
},
|
|
@@ -1244,6 +1262,9 @@
|
|
|
1244
1262
|
"description": "Import an identity verification method",
|
|
1245
1263
|
"example": "identity-verification-method-import --identity=\"did:iota:....\" --verification-method-type=\"verificationMethod\" --verification-method-id=\"my-key-1\" ----private-key-hex=\"15...a2\"",
|
|
1246
1264
|
"params": {
|
|
1265
|
+
"env-prefix": {
|
|
1266
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1267
|
+
},
|
|
1247
1268
|
"identity": {
|
|
1248
1269
|
"description": "The DID of the identity to import the verification method to."
|
|
1249
1270
|
},
|
|
@@ -1273,6 +1294,9 @@
|
|
|
1273
1294
|
"description": "Create an identity verification method",
|
|
1274
1295
|
"example": "identity-verification-method-create --identity=\"did:iota:....\" --verification-method-type=\"verificationMethod\" --verification-method-id=\"my-key-1\" --controller=\"did:iota:....\"",
|
|
1275
1296
|
"params": {
|
|
1297
|
+
"env-prefix": {
|
|
1298
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1299
|
+
},
|
|
1276
1300
|
"identity": {
|
|
1277
1301
|
"description": "The DID of the identity to add the verification method to."
|
|
1278
1302
|
},
|
|
@@ -1321,6 +1345,9 @@
|
|
|
1321
1345
|
"description": "Set the node identity",
|
|
1322
1346
|
"example": "node-set-identity --identity=\"did:iota...\"",
|
|
1323
1347
|
"params": {
|
|
1348
|
+
"env-prefix": {
|
|
1349
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1350
|
+
},
|
|
1324
1351
|
"identity": {
|
|
1325
1352
|
"description": "The identity to set in the node."
|
|
1326
1353
|
},
|
|
@@ -1337,6 +1364,9 @@
|
|
|
1337
1364
|
"description": "Create a tenant with associated api key",
|
|
1338
1365
|
"example": "tenant-create --tenant-id=\"0011..aabb\" --api-key=\"aabb..0099\" --label=\"My Tenant\" --public-origin=\"https://example.com:1234\"",
|
|
1339
1366
|
"params": {
|
|
1367
|
+
"env-prefix": {
|
|
1368
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1369
|
+
},
|
|
1340
1370
|
"tenant-id": {
|
|
1341
1371
|
"description": "The tenant ID to add. If not provided a random tenant id will be generated."
|
|
1342
1372
|
},
|
|
@@ -1374,6 +1404,9 @@
|
|
|
1374
1404
|
"description": "Import a tenant with associated api key",
|
|
1375
1405
|
"example": "tenant-import --tenant-id=\"0011..aabb\" --api-key=\"aabb..0099\" --label=\"My Tenant\" --public-origin=\"https://example.com:1234\"",
|
|
1376
1406
|
"params": {
|
|
1407
|
+
"env-prefix": {
|
|
1408
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1409
|
+
},
|
|
1377
1410
|
"tenant-id": {
|
|
1378
1411
|
"description": "The tenant ID to import."
|
|
1379
1412
|
},
|
|
@@ -1399,6 +1432,9 @@
|
|
|
1399
1432
|
"description": "Update a tenant with associated api key",
|
|
1400
1433
|
"example": "tenant-update --tenant-id=\"0011..aabb\" --api-key=\"aabb..0099\" --label=\"My Tenant\" --public-origin=\"https://example.com:1234\"",
|
|
1401
1434
|
"params": {
|
|
1435
|
+
"env-prefix": {
|
|
1436
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1437
|
+
},
|
|
1402
1438
|
"tenant-id": {
|
|
1403
1439
|
"description": "The tenant ID to update."
|
|
1404
1440
|
},
|
|
@@ -1424,6 +1460,9 @@
|
|
|
1424
1460
|
"description": "Set the node tenant",
|
|
1425
1461
|
"example": "node-set-tenant --tenant-id=\"0011..aabb\"",
|
|
1426
1462
|
"params": {
|
|
1463
|
+
"env-prefix": {
|
|
1464
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1465
|
+
},
|
|
1427
1466
|
"tenant-id": {
|
|
1428
1467
|
"description": "The tenant ID to add. If not provided a random tenant id will be generated."
|
|
1429
1468
|
},
|
|
@@ -1437,8 +1476,11 @@
|
|
|
1437
1476
|
},
|
|
1438
1477
|
"user-create": {
|
|
1439
1478
|
"description": "Create a user",
|
|
1440
|
-
"example": "user-create --user-identity=\"did:iota:....\" --organization-identity=\"did:iota:....\" --email=\"bob@examples.com\" --password=\"pass1234\" --givenName=\"Bob\" --familyName=\"Smith\"",
|
|
1479
|
+
"example": "user-create --user-identity=\"did:iota:....\" --organization-identity=\"did:iota:....\" --email=\"bob@examples.com\" --password=\"pass1234\" --scope=\"tenant-admin\" --givenName=\"Bob\" --familyName=\"Smith\"",
|
|
1441
1480
|
"params": {
|
|
1481
|
+
"env-prefix": {
|
|
1482
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1483
|
+
},
|
|
1442
1484
|
"user-identity": {
|
|
1443
1485
|
"description": "The DID to associate the user with."
|
|
1444
1486
|
},
|
|
@@ -1451,6 +1493,9 @@
|
|
|
1451
1493
|
"password": {
|
|
1452
1494
|
"description": "The password for the user."
|
|
1453
1495
|
},
|
|
1496
|
+
"scope": {
|
|
1497
|
+
"description": "List of scopes to associate with the user, comma separated."
|
|
1498
|
+
},
|
|
1454
1499
|
"given-name": {
|
|
1455
1500
|
"description": "The given name of the user."
|
|
1456
1501
|
},
|
|
@@ -1479,13 +1524,54 @@
|
|
|
1479
1524
|
"storingProfile": "Storing profile",
|
|
1480
1525
|
"userCreated": "User created",
|
|
1481
1526
|
"skipping": "The user with ID already exists, skipping creation",
|
|
1482
|
-
"overwriting": "Overwriting existing user with ID"
|
|
1527
|
+
"overwriting": "Overwriting existing user with ID",
|
|
1528
|
+
"email": "Email",
|
|
1529
|
+
"password": "Password"
|
|
1530
|
+
}
|
|
1531
|
+
},
|
|
1532
|
+
"user-update": {
|
|
1533
|
+
"description": "Update a user",
|
|
1534
|
+
"example": "user-update --email=\"bob@examples.com\" --user-identity=\"did:iota:....\" --organization-identity=\"did:iota:....\" --scope=\"tenant-admin\" --givenName=\"Bob\" --familyName=\"Smith\"",
|
|
1535
|
+
"params": {
|
|
1536
|
+
"env-prefix": {
|
|
1537
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1538
|
+
},
|
|
1539
|
+
"user-identity": {
|
|
1540
|
+
"description": "The DID to associate the user with."
|
|
1541
|
+
},
|
|
1542
|
+
"organization-identity": {
|
|
1543
|
+
"description": "The organization DID to associate the user with."
|
|
1544
|
+
},
|
|
1545
|
+
"email": {
|
|
1546
|
+
"description": "The email address of the user."
|
|
1547
|
+
},
|
|
1548
|
+
"scope": {
|
|
1549
|
+
"description": "List of scopes to associate with the user, comma separated."
|
|
1550
|
+
},
|
|
1551
|
+
"given-name": {
|
|
1552
|
+
"description": "The given name of the user."
|
|
1553
|
+
},
|
|
1554
|
+
"family-name": {
|
|
1555
|
+
"description": "The family name of the user."
|
|
1556
|
+
},
|
|
1557
|
+
"load-env": {
|
|
1558
|
+
"description": "Comma separated list of paths to .env files to read input parameters from."
|
|
1559
|
+
}
|
|
1560
|
+
},
|
|
1561
|
+
"labels": {
|
|
1562
|
+
"updating": "Updating user",
|
|
1563
|
+
"storingUser": "Storing user",
|
|
1564
|
+
"storingProfile": "Storing profile",
|
|
1565
|
+
"userUpdated": "User updated"
|
|
1483
1566
|
}
|
|
1484
1567
|
},
|
|
1485
1568
|
"vault-key-create": {
|
|
1486
1569
|
"description": "Create a vault key for an identity",
|
|
1487
1570
|
"example": "vault-key-create --identity=\"did:iota:....\" --key-id=\"my-key\" --type=\"Ed25519\"",
|
|
1488
1571
|
"params": {
|
|
1572
|
+
"env-prefix": {
|
|
1573
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1574
|
+
},
|
|
1489
1575
|
"identity": {
|
|
1490
1576
|
"description": "The DID to associate the key with."
|
|
1491
1577
|
},
|
|
@@ -1528,6 +1614,9 @@
|
|
|
1528
1614
|
"description": "Import a vault key for an identity",
|
|
1529
1615
|
"example": "vault-key-import --identity=\"did:iota:....\" --key-id=\"my-key\" --key-type=Ed25519 --private-key-hex=\"15...a2\"",
|
|
1530
1616
|
"params": {
|
|
1617
|
+
"env-prefix": {
|
|
1618
|
+
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
|
1619
|
+
},
|
|
1531
1620
|
"identity": {
|
|
1532
1621
|
"description": "The DID to associate the key with."
|
|
1533
1622
|
},
|
|
@@ -1812,6 +1901,9 @@
|
|
|
1812
1901
|
"passThroughPolicyEnforcementProcessor": {
|
|
1813
1902
|
"processingPolicy": "Processing policy enforcement for policy id: \"{policyId}\""
|
|
1814
1903
|
},
|
|
1904
|
+
"defaultPolicyEnforcementProcessor": {
|
|
1905
|
+
"processingPolicy": "Processing policy enforcement for policy id: \"{policyId}\""
|
|
1906
|
+
},
|
|
1815
1907
|
"passThroughPolicyArbiter": {
|
|
1816
1908
|
"decidingPolicy": "Deciding policy for policy id: \"{policyId}\""
|
|
1817
1909
|
},
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @twin.org/node - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.19](https://github.com/twinfoundation/node/compare/node-v0.0.3-next.18...node-v0.0.3-next.19) (2026-02-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update dependencies ([351f777](https://github.com/twinfoundation/node/commit/351f777e001bf4183762657fc565b133a317600a))
|
|
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.18 to 0.0.3-next.19
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.18](https://github.com/twinfoundation/node/compare/node-v0.0.3-next.17...node-v0.0.3-next.18) (2026-02-04)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* env-prefix option and user-update cli command ([#83](https://github.com/twinfoundation/node/issues/83)) ([fc48efa](https://github.com/twinfoundation/node/commit/fc48efa7ad72173def048170c3afb5eeb9f1b292))
|
|
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.17 to 0.0.3-next.18
|
|
30
|
+
|
|
3
31
|
## [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
32
|
|
|
5
33
|
|
package/docs/examples.md
CHANGED
|
@@ -142,7 +142,7 @@ twin-node identity-verification-method-create --load-env="node-identity.env,orga
|
|
|
142
142
|
twin-node vault-key-create --load-env="organization-identity.env" --identity=!ORGANIZATION_DID --key-id=!TWIN_BLOB_STORAGE_ENCRYPTION_KEY_ID --key-type=ChaCha20Poly1305 --output-json="organization-blob-encryption.json" --output-env="organization-blob-encryption.env"
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
### Create
|
|
145
|
+
### Create an identity associated with the organization
|
|
146
146
|
|
|
147
147
|
```shell
|
|
148
148
|
twin-node identity-create --load-env="organization-identity.env" --controller=!ORGANIZATION_DID --output-json="user-identity.json" --output-env="user-identity.env" --output-env-prefix=user
|
|
@@ -151,5 +151,11 @@ twin-node identity-create --load-env="organization-identity.env" --controller=!O
|
|
|
151
151
|
### Create a user login associated with the user identity
|
|
152
152
|
|
|
153
153
|
```shell
|
|
154
|
-
twin-node user-create --load-env="organization-identity.env,user-identity.env,node-tenant.env" --user-identity=!USER_DID --organization-identity=!ORGANIZATION_DID --
|
|
154
|
+
twin-node user-create --load-env="organization-identity.env,user-identity.env,node-tenant.env" --user-identity=!USER_DID --organization-identity=!ORGANIZATION_DID --email="admin@node" --scope="tenant-admin" --output-json="user-account-admin.json" --output-env="user-account-admin.env" --output-env-prefix=admin
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Update a user login associated with the user identity
|
|
158
|
+
|
|
159
|
+
```shell
|
|
160
|
+
twin-node user-update --load-env="organization-identity.env,user-identity.env,node-tenant.env" --email="admin@node" --scope="tenant-admin,foo"
|
|
155
161
|
```
|
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.19",
|
|
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.19"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "git+https://github.com/twinfoundation/node/issues"
|