@twin.org/node 0.0.3-next.41 → 0.0.3-next.42
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 +9 -5
- package/docs/changelog.md +14 -0
- package/docs/open-api/spec.json +198 -12
- package/package.json +2 -2
package/dist/locales/en.json
CHANGED
|
@@ -167,6 +167,9 @@
|
|
|
167
167
|
"bigint": "Property \"{property}\" must be a bigint, it is \"{value}\"",
|
|
168
168
|
"boolean": "Property \"{property}\" must be a boolean, it is \"{value}\"",
|
|
169
169
|
"date": "Property \"{property}\" must be a date, it is \"{value}\"",
|
|
170
|
+
"dateString": "Property \"{property}\" must be a date-only string in ISO 8601 format, it is \"{value}\"",
|
|
171
|
+
"dateTimeString": "Property \"{property}\" must be a date-time string in ISO 8601 format, it is \"{value}\"",
|
|
172
|
+
"timeString": "Property \"{property}\" must be a time string in ISO 8601 format, it is \"{value}\"",
|
|
170
173
|
"timestampMilliseconds": "Property \"{property}\" must be a timestamp in milliseconds, it is \"{value}\"",
|
|
171
174
|
"timestampSeconds": "Property \"{property}\" must be a timestamp in seconds, it is \"{value}\"",
|
|
172
175
|
"objectUndefined": "Property \"{property}\" must be an object, it is \"undefined\"",
|
|
@@ -179,8 +182,8 @@
|
|
|
179
182
|
"arrayEndsWith": "Property \"{property}\" must be an array ending with [{endValues}], it is \"{value}\"",
|
|
180
183
|
"uint8Array": "Property \"{property}\" must be a Uint8Array, it is \"{value}\"",
|
|
181
184
|
"function": "Property \"{property}\" must be a function, it is \"{value}\"",
|
|
182
|
-
"urn": "Property \"{property}\" must be a
|
|
183
|
-
"url": "Property \"{property}\" must be a
|
|
185
|
+
"urn": "Property \"{property}\" must be a URN formatted string, it is \"{value}\"",
|
|
186
|
+
"url": "Property \"{property}\" must be a URL formatted string, it is \"{value}\"",
|
|
184
187
|
"email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
|
|
185
188
|
"uuidV7": "Property \"{property}\" must be a UUIDv7 formatted string, it is \"{value}\"",
|
|
186
189
|
"uuidV7Compact": "Property \"{property}\" must be a UUIDv7 formatted string in compact mode, it is \"{value}\"",
|
|
@@ -447,7 +450,8 @@
|
|
|
447
450
|
"changesetNotFound": "The changeset with the Id \"{notFoundId}\" was not found",
|
|
448
451
|
"resourceIdMissing": "You must provide either the id, or the resourceObject must contain an id property for index \"{index}\"",
|
|
449
452
|
"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"
|
|
453
|
+
"invalidEdgeId": "The edge id \"{edgeId}\" is not valid",
|
|
454
|
+
"listPatchInvalidFormat": "The property \"{property}\" must be a list patch object with add and/or remove, not a bare array"
|
|
451
455
|
},
|
|
452
456
|
"auditableItemStreamRestClient": {
|
|
453
457
|
"notSupportedOnClient": "The method \"{methodName}\" is not supported on the REST client, it can only be used on a server side component"
|
|
@@ -1003,7 +1007,7 @@
|
|
|
1003
1007
|
"createFailed": "Creating the proof failed",
|
|
1004
1008
|
"getFailed": "Getting the proof failed",
|
|
1005
1009
|
"verifyFailed": "Verifying the proof failed",
|
|
1006
|
-
"
|
|
1010
|
+
"removeNotarizationFailed": "Removing notarization entry from the Immutable Proof failed",
|
|
1007
1011
|
"proofNotFound": "The proof with the Id \"{notFoundId}\" was not found",
|
|
1008
1012
|
"createProofFailed": "Creating the immutable proof failed"
|
|
1009
1013
|
},
|
|
@@ -1856,7 +1860,7 @@
|
|
|
1856
1860
|
},
|
|
1857
1861
|
"vault-key-create": {
|
|
1858
1862
|
"description": "Create a vault key for an identity",
|
|
1859
|
-
"example": "vault-key-create --identity=\"did:iota:....\" --key-id=\"my-key\" --type=\"Ed25519\"",
|
|
1863
|
+
"example": "vault-key-create --identity=\"did:iota:....\" --key-id=\"my-key\" --key-type=\"Ed25519\"",
|
|
1860
1864
|
"params": {
|
|
1861
1865
|
"env-prefix": {
|
|
1862
1866
|
"description": "Prefix to use for standard .env files e.g. TWIN_."
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [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)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* immutable proof gate and additional config ([#157](https://github.com/iotaledger/twin-node/issues/157)) ([1d1fbb7](https://github.com/iotaledger/twin-node/commit/1d1fbb7c53525af848761dc25b42e9e676929972))
|
|
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.41 to 0.0.3-next.42
|
|
16
|
+
|
|
3
17
|
## [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
18
|
|
|
5
19
|
|
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.42",
|
|
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.42"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "git+https://github.com/iotaledger/node/issues"
|