@twin.org/node 0.0.3-next.41 → 0.0.3-next.43
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 +11 -9
- package/docs/changelog.md +28 -0
- package/docs/open-api/spec.json +198 -12
- package/package.json +2 -2
package/dist/locales/en.json
CHANGED
|
@@ -85,10 +85,8 @@
|
|
|
85
85
|
"expired": "The JSON Web token has expired",
|
|
86
86
|
"insufficientScopes": "The JSON Web token does not have the required scopes to access this resource",
|
|
87
87
|
"userNotVerified": "The user associated with the JSON Web token could not be verified",
|
|
88
|
-
"organizationNotVerified": "The organization associated with the JSON Web token could not be verified"
|
|
89
|
-
|
|
90
|
-
"authHeaderProcessor": {
|
|
91
|
-
"tenantIdMismatch": "The tenant ID in the token does not match the tenant ID in the context"
|
|
88
|
+
"organizationNotVerified": "The organization associated with the JSON Web token could not be verified",
|
|
89
|
+
"tenantNotVerified": "The tenant associated with the JSON Web token could not be verified"
|
|
92
90
|
},
|
|
93
91
|
"validation": {
|
|
94
92
|
"saltEntropyTooLow": "Salt must have at least 8 unique characters for sufficient entropy.",
|
|
@@ -167,6 +165,9 @@
|
|
|
167
165
|
"bigint": "Property \"{property}\" must be a bigint, it is \"{value}\"",
|
|
168
166
|
"boolean": "Property \"{property}\" must be a boolean, it is \"{value}\"",
|
|
169
167
|
"date": "Property \"{property}\" must be a date, it is \"{value}\"",
|
|
168
|
+
"dateString": "Property \"{property}\" must be a date-only string in ISO 8601 format, it is \"{value}\"",
|
|
169
|
+
"dateTimeString": "Property \"{property}\" must be a date-time string in ISO 8601 format, it is \"{value}\"",
|
|
170
|
+
"timeString": "Property \"{property}\" must be a time string in ISO 8601 format, it is \"{value}\"",
|
|
170
171
|
"timestampMilliseconds": "Property \"{property}\" must be a timestamp in milliseconds, it is \"{value}\"",
|
|
171
172
|
"timestampSeconds": "Property \"{property}\" must be a timestamp in seconds, it is \"{value}\"",
|
|
172
173
|
"objectUndefined": "Property \"{property}\" must be an object, it is \"undefined\"",
|
|
@@ -179,8 +180,8 @@
|
|
|
179
180
|
"arrayEndsWith": "Property \"{property}\" must be an array ending with [{endValues}], it is \"{value}\"",
|
|
180
181
|
"uint8Array": "Property \"{property}\" must be a Uint8Array, it is \"{value}\"",
|
|
181
182
|
"function": "Property \"{property}\" must be a function, it is \"{value}\"",
|
|
182
|
-
"urn": "Property \"{property}\" must be a
|
|
183
|
-
"url": "Property \"{property}\" must be a
|
|
183
|
+
"urn": "Property \"{property}\" must be a URN formatted string, it is \"{value}\"",
|
|
184
|
+
"url": "Property \"{property}\" must be a URL formatted string, it is \"{value}\"",
|
|
184
185
|
"email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
|
|
185
186
|
"uuidV7": "Property \"{property}\" must be a UUIDv7 formatted string, it is \"{value}\"",
|
|
186
187
|
"uuidV7Compact": "Property \"{property}\" must be a UUIDv7 formatted string in compact mode, it is \"{value}\"",
|
|
@@ -447,7 +448,8 @@
|
|
|
447
448
|
"changesetNotFound": "The changeset with the Id \"{notFoundId}\" was not found",
|
|
448
449
|
"resourceIdMissing": "You must provide either the id, or the resourceObject must contain an id property for index \"{index}\"",
|
|
449
450
|
"aliasNotUnique": "The alias id \"{aliasId}\" is already in use on another vertex and the unique flag was set",
|
|
450
|
-
"invalidEdgeId": "The edge id \"{edgeId}\" is not valid"
|
|
451
|
+
"invalidEdgeId": "The edge id \"{edgeId}\" is not valid",
|
|
452
|
+
"listPatchInvalidFormat": "The property \"{property}\" must be a list patch object with add and/or remove, not a bare array"
|
|
451
453
|
},
|
|
452
454
|
"auditableItemStreamRestClient": {
|
|
453
455
|
"notSupportedOnClient": "The method \"{methodName}\" is not supported on the REST client, it can only be used on a server side component"
|
|
@@ -1003,7 +1005,7 @@
|
|
|
1003
1005
|
"createFailed": "Creating the proof failed",
|
|
1004
1006
|
"getFailed": "Getting the proof failed",
|
|
1005
1007
|
"verifyFailed": "Verifying the proof failed",
|
|
1006
|
-
"
|
|
1008
|
+
"removeNotarizationFailed": "Removing notarization entry from the Immutable Proof failed",
|
|
1007
1009
|
"proofNotFound": "The proof with the Id \"{notFoundId}\" was not found",
|
|
1008
1010
|
"createProofFailed": "Creating the immutable proof failed"
|
|
1009
1011
|
},
|
|
@@ -1856,7 +1858,7 @@
|
|
|
1856
1858
|
},
|
|
1857
1859
|
"vault-key-create": {
|
|
1858
1860
|
"description": "Create a vault key for an identity",
|
|
1859
|
-
"example": "vault-key-create --identity=\"did:iota:....\" --key-id=\"my-key\" --type=\"Ed25519\"",
|
|
1861
|
+
"example": "vault-key-create --identity=\"did:iota:....\" --key-id=\"my-key\" --key-type=\"Ed25519\"",
|
|
1860
1862
|
"params": {
|
|
1861
1863
|
"env-prefix": {
|
|
1862
1864
|
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.43](https://github.com/iotaledger/twin-node/compare/node-v0.0.3-next.42...node-v0.0.3-next.43) (2026-05-28)
|
|
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.42 to 0.0.3-next.43
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.42](https://github.com/iotaledger/twin-node/compare/node-v0.0.3-next.41...node-v0.0.3-next.42) (2026-05-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* immutable proof gate and additional config ([#157](https://github.com/iotaledger/twin-node/issues/157)) ([1d1fbb7](https://github.com/iotaledger/twin-node/commit/1d1fbb7c53525af848761dc25b42e9e676929972))
|
|
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.41 to 0.0.3-next.42
|
|
30
|
+
|
|
3
31
|
## [0.0.3-next.41](https://github.com/iotaledger/twin-node/compare/node-v0.0.3-next.40...node-v0.0.3-next.41) (2026-05-27)
|
|
4
32
|
|
|
5
33
|
|
package/docs/open-api/spec.json
CHANGED
|
@@ -9622,11 +9622,7 @@
|
|
|
9622
9622
|
"proofPurpose": "assertionMethod",
|
|
9623
9623
|
"proofValue": "7DdiPPYtxLjCD3wA1po2rv...",
|
|
9624
9624
|
"verificationMethod": "did:iota:testnet:0xcb07cabaa2f23b7e53d8cdc4228efb351ebb270554d13bc382e4f94ca8d3136b#immutable-proof-assertion",
|
|
9625
|
-
"
|
|
9626
|
-
"immutableReceipt": {
|
|
9627
|
-
"id": "immutable-receipt:1234567890",
|
|
9628
|
-
"type": "ImmutableReceipt"
|
|
9629
|
-
}
|
|
9625
|
+
"notarizationId": "notarization:iota:0xabcdef1234567890"
|
|
9630
9626
|
}
|
|
9631
9627
|
}
|
|
9632
9628
|
}
|
|
@@ -9660,11 +9656,7 @@
|
|
|
9660
9656
|
"proofPurpose": "assertionMethod",
|
|
9661
9657
|
"proofValue": "7DdiPPYtxLjCD3wA1po2rv...",
|
|
9662
9658
|
"verificationMethod": "did:iota:testnet:0xcb07cabaa2f23b7e53d8cdc4228efb351ebb270554d13bc382e4f94ca8d3136b#immutable-proof-assertion",
|
|
9663
|
-
"
|
|
9664
|
-
"immutableReceipt": {
|
|
9665
|
-
"id": "immutable-receipt:1234567890",
|
|
9666
|
-
"type": "ImmutableReceipt"
|
|
9667
|
-
}
|
|
9659
|
+
"notarizationId": "notarization:iota:0xabcdef1234567890"
|
|
9668
9660
|
}
|
|
9669
9661
|
}
|
|
9670
9662
|
}
|
|
@@ -12090,7 +12082,7 @@
|
|
|
12090
12082
|
}
|
|
12091
12083
|
],
|
|
12092
12084
|
"requestBody": {
|
|
12093
|
-
"description": "Update an auditable item graph vertex.",
|
|
12085
|
+
"description": "Update an auditable item graph vertex (PUT — full replacement of vertex state).",
|
|
12094
12086
|
"required": true,
|
|
12095
12087
|
"content": {
|
|
12096
12088
|
"application/json": {
|
|
@@ -12246,6 +12238,125 @@
|
|
|
12246
12238
|
}
|
|
12247
12239
|
}
|
|
12248
12240
|
}
|
|
12241
|
+
},
|
|
12242
|
+
"patch": {
|
|
12243
|
+
"operationId": "auditableItemGraphUpdatePartial",
|
|
12244
|
+
"summary": "Partially update a graph vertex",
|
|
12245
|
+
"tags": [
|
|
12246
|
+
"Auditable Item Graph"
|
|
12247
|
+
],
|
|
12248
|
+
"parameters": [
|
|
12249
|
+
{
|
|
12250
|
+
"name": "id",
|
|
12251
|
+
"description": "The id of the vertex to update.",
|
|
12252
|
+
"in": "path",
|
|
12253
|
+
"required": true,
|
|
12254
|
+
"schema": {
|
|
12255
|
+
"type": "string"
|
|
12256
|
+
},
|
|
12257
|
+
"style": "simple",
|
|
12258
|
+
"example": "aig:1234567890"
|
|
12259
|
+
}
|
|
12260
|
+
],
|
|
12261
|
+
"security": [
|
|
12262
|
+
{
|
|
12263
|
+
"jwtBearerAuthScheme": []
|
|
12264
|
+
}
|
|
12265
|
+
],
|
|
12266
|
+
"requestBody": {
|
|
12267
|
+
"description": "Partially update an auditable item graph vertex (PATCH — explicit list patches).",
|
|
12268
|
+
"required": true,
|
|
12269
|
+
"content": {
|
|
12270
|
+
"application/json": {
|
|
12271
|
+
"schema": {
|
|
12272
|
+
"$ref": "#/components/schemas/AuditableItemGraphUpdatePartialRequest"
|
|
12273
|
+
},
|
|
12274
|
+
"examples": {
|
|
12275
|
+
"auditableItemGraphUpdatePartialRequestExample": {
|
|
12276
|
+
"value": {
|
|
12277
|
+
"@context": [
|
|
12278
|
+
"https://schema.twindev.org/aig/",
|
|
12279
|
+
"https://schema.twindev.org/common/"
|
|
12280
|
+
],
|
|
12281
|
+
"edgePatches": {
|
|
12282
|
+
"add": [
|
|
12283
|
+
{
|
|
12284
|
+
"type": "AuditableItemGraphEdge",
|
|
12285
|
+
"targetId": "aig:45678901234",
|
|
12286
|
+
"edgeRelationships": [
|
|
12287
|
+
"document"
|
|
12288
|
+
]
|
|
12289
|
+
}
|
|
12290
|
+
]
|
|
12291
|
+
}
|
|
12292
|
+
}
|
|
12293
|
+
}
|
|
12294
|
+
}
|
|
12295
|
+
}
|
|
12296
|
+
}
|
|
12297
|
+
},
|
|
12298
|
+
"responses": {
|
|
12299
|
+
"204": {
|
|
12300
|
+
"description": "The rest request ended in success with no data."
|
|
12301
|
+
},
|
|
12302
|
+
"400": {
|
|
12303
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
12304
|
+
"content": {
|
|
12305
|
+
"application/json": {
|
|
12306
|
+
"schema": {
|
|
12307
|
+
"$ref": "#/components/schemas/Error"
|
|
12308
|
+
},
|
|
12309
|
+
"examples": {
|
|
12310
|
+
"exampleResponse": {
|
|
12311
|
+
"value": {
|
|
12312
|
+
"name": "GeneralError",
|
|
12313
|
+
"message": "errorMessage",
|
|
12314
|
+
"properties": {
|
|
12315
|
+
"foo": "bar"
|
|
12316
|
+
}
|
|
12317
|
+
}
|
|
12318
|
+
}
|
|
12319
|
+
}
|
|
12320
|
+
}
|
|
12321
|
+
}
|
|
12322
|
+
},
|
|
12323
|
+
"401": {
|
|
12324
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
12325
|
+
"content": {
|
|
12326
|
+
"application/json": {
|
|
12327
|
+
"schema": {
|
|
12328
|
+
"$ref": "#/components/schemas/Error"
|
|
12329
|
+
},
|
|
12330
|
+
"examples": {
|
|
12331
|
+
"exampleResponse": {
|
|
12332
|
+
"value": {
|
|
12333
|
+
"name": "UnauthorizedError",
|
|
12334
|
+
"message": "errorMessage"
|
|
12335
|
+
}
|
|
12336
|
+
}
|
|
12337
|
+
}
|
|
12338
|
+
}
|
|
12339
|
+
}
|
|
12340
|
+
},
|
|
12341
|
+
"500": {
|
|
12342
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
12343
|
+
"content": {
|
|
12344
|
+
"application/json": {
|
|
12345
|
+
"schema": {
|
|
12346
|
+
"$ref": "#/components/schemas/Error"
|
|
12347
|
+
},
|
|
12348
|
+
"examples": {
|
|
12349
|
+
"exampleResponse": {
|
|
12350
|
+
"value": {
|
|
12351
|
+
"name": "InternalServerError",
|
|
12352
|
+
"message": "errorMessage"
|
|
12353
|
+
}
|
|
12354
|
+
}
|
|
12355
|
+
}
|
|
12356
|
+
}
|
|
12357
|
+
}
|
|
12358
|
+
}
|
|
12359
|
+
}
|
|
12249
12360
|
}
|
|
12250
12361
|
},
|
|
12251
12362
|
"/aig/{id}/versions/{version}": {
|
|
@@ -20636,8 +20747,73 @@
|
|
|
20636
20747
|
"type"
|
|
20637
20748
|
]
|
|
20638
20749
|
},
|
|
20750
|
+
"AuditableItemGraphUpdatePartialRequest": {
|
|
20751
|
+
"description": "Partial vertex data; only defined properties are applied.\nSub-lists use `{ add, remove }` patch objects.",
|
|
20752
|
+
"type": "object",
|
|
20753
|
+
"properties": {
|
|
20754
|
+
"dateCreated": {
|
|
20755
|
+
"type": "string",
|
|
20756
|
+
"description": "The date/time of when the element was created."
|
|
20757
|
+
},
|
|
20758
|
+
"dateModified": {
|
|
20759
|
+
"type": "string",
|
|
20760
|
+
"description": "The date/time of when the element was modified."
|
|
20761
|
+
},
|
|
20762
|
+
"dateDeleted": {
|
|
20763
|
+
"type": "string",
|
|
20764
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
20765
|
+
},
|
|
20766
|
+
"@context": {
|
|
20767
|
+
"type": "array",
|
|
20768
|
+
"prefixItems": [
|
|
20769
|
+
{
|
|
20770
|
+
"const": "https://schema.twindev.org/aig/"
|
|
20771
|
+
},
|
|
20772
|
+
{
|
|
20773
|
+
"const": "https://schema.twindev.org/common/"
|
|
20774
|
+
}
|
|
20775
|
+
],
|
|
20776
|
+
"items": {
|
|
20777
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
20778
|
+
},
|
|
20779
|
+
"minItems": 2,
|
|
20780
|
+
"description": "JSON-LD Context."
|
|
20781
|
+
},
|
|
20782
|
+
"organizationIdentity": {
|
|
20783
|
+
"type": "string",
|
|
20784
|
+
"description": "The identity of the organization which controls the vertex."
|
|
20785
|
+
},
|
|
20786
|
+
"annotationObject": {
|
|
20787
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
20788
|
+
},
|
|
20789
|
+
"verified": {
|
|
20790
|
+
"type": "boolean",
|
|
20791
|
+
"description": "Is the vertex verified, will only be populated when verification is requested."
|
|
20792
|
+
},
|
|
20793
|
+
"version": {
|
|
20794
|
+
"type": "number",
|
|
20795
|
+
"description": "The version of the vertex, populated only when getting a specific version.\nMaps to https://schema.org/version."
|
|
20796
|
+
},
|
|
20797
|
+
"type": {
|
|
20798
|
+
"const": "AuditableItemGraphVertex",
|
|
20799
|
+
"description": "JSON-LD Type."
|
|
20800
|
+
},
|
|
20801
|
+
"aliasPatches": {
|
|
20802
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphListPatch"
|
|
20803
|
+
},
|
|
20804
|
+
"resourcePatches": {
|
|
20805
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphListPatch"
|
|
20806
|
+
},
|
|
20807
|
+
"edgePatches": {
|
|
20808
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphListPatch"
|
|
20809
|
+
}
|
|
20810
|
+
},
|
|
20811
|
+
"required": [
|
|
20812
|
+
"@context"
|
|
20813
|
+
]
|
|
20814
|
+
},
|
|
20639
20815
|
"AuditableItemGraphUpdateRequest": {
|
|
20640
|
-
"description": "The
|
|
20816
|
+
"description": "The full vertex payload. Replaces annotation and active sub-lists; omitted collections are cleared.",
|
|
20641
20817
|
"type": "object",
|
|
20642
20818
|
"properties": {
|
|
20643
20819
|
"dateCreated": {
|
|
@@ -21881,6 +22057,16 @@
|
|
|
21881
22057
|
"properties": {
|
|
21882
22058
|
"document": {
|
|
21883
22059
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
22060
|
+
},
|
|
22061
|
+
"options": {
|
|
22062
|
+
"type": "object",
|
|
22063
|
+
"properties": {
|
|
22064
|
+
"deleteLock": {
|
|
22065
|
+
"type": "string",
|
|
22066
|
+
"description": "An ISO 8601 date-time string specifying when the notarization lock expires.\nIf omitted, no deletion lock is applied."
|
|
22067
|
+
}
|
|
22068
|
+
},
|
|
22069
|
+
"description": "Optional settings for the proof."
|
|
21884
22070
|
}
|
|
21885
22071
|
},
|
|
21886
22072
|
"required": [
|
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.43",
|
|
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.43"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "git+https://github.com/iotaledger/node/issues"
|