@twin.org/verifiable-storage-service 0.0.1 → 0.0.2-next.3
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/cjs/index.cjs
CHANGED
|
@@ -269,8 +269,9 @@ async function verifiableStorageRemove(httpRequestContext, componentName, reques
|
|
|
269
269
|
class VerifiableStorageService {
|
|
270
270
|
/**
|
|
271
271
|
* The namespace supported by the verifiableStorage service.
|
|
272
|
+
* @internal
|
|
272
273
|
*/
|
|
273
|
-
static
|
|
274
|
+
static _NAMESPACE = "verifiable";
|
|
274
275
|
/**
|
|
275
276
|
* Runtime name for the class.
|
|
276
277
|
*/
|
|
@@ -377,9 +378,9 @@ class VerifiableStorageService {
|
|
|
377
378
|
*/
|
|
378
379
|
getConnector(id) {
|
|
379
380
|
const idUri = core.Urn.fromValidString(id);
|
|
380
|
-
if (idUri.namespaceIdentifier() !== VerifiableStorageService.
|
|
381
|
+
if (idUri.namespaceIdentifier() !== VerifiableStorageService._NAMESPACE) {
|
|
381
382
|
throw new core.GeneralError(this.CLASS_NAME, "namespaceMismatch", {
|
|
382
|
-
namespace: VerifiableStorageService.
|
|
383
|
+
namespace: VerifiableStorageService._NAMESPACE,
|
|
383
384
|
id
|
|
384
385
|
});
|
|
385
386
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -267,8 +267,9 @@ async function verifiableStorageRemove(httpRequestContext, componentName, reques
|
|
|
267
267
|
class VerifiableStorageService {
|
|
268
268
|
/**
|
|
269
269
|
* The namespace supported by the verifiableStorage service.
|
|
270
|
+
* @internal
|
|
270
271
|
*/
|
|
271
|
-
static
|
|
272
|
+
static _NAMESPACE = "verifiable";
|
|
272
273
|
/**
|
|
273
274
|
* Runtime name for the class.
|
|
274
275
|
*/
|
|
@@ -375,9 +376,9 @@ class VerifiableStorageService {
|
|
|
375
376
|
*/
|
|
376
377
|
getConnector(id) {
|
|
377
378
|
const idUri = Urn.fromValidString(id);
|
|
378
|
-
if (idUri.namespaceIdentifier() !== VerifiableStorageService.
|
|
379
|
+
if (idUri.namespaceIdentifier() !== VerifiableStorageService._NAMESPACE) {
|
|
379
380
|
throw new GeneralError(this.CLASS_NAME, "namespaceMismatch", {
|
|
380
|
-
namespace: VerifiableStorageService.
|
|
381
|
+
namespace: VerifiableStorageService._NAMESPACE,
|
|
381
382
|
id
|
|
382
383
|
});
|
|
383
384
|
}
|
|
@@ -5,10 +5,6 @@ import type { IVerifiableStorageServiceConstructorOptions } from "./models/IVeri
|
|
|
5
5
|
* Service for performing Verifiable Storage operations to a connector.
|
|
6
6
|
*/
|
|
7
7
|
export declare class VerifiableStorageService implements IVerifiableStorageComponent {
|
|
8
|
-
/**
|
|
9
|
-
* The namespace supported by the verifiableStorage service.
|
|
10
|
-
*/
|
|
11
|
-
static readonly NAMESPACE: string;
|
|
12
8
|
/**
|
|
13
9
|
* Runtime name for the class.
|
|
14
10
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# @twin.org/verifiable-storage-service - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.3](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-service-v0.0.2-next.2...verifiable-storage-service-v0.0.2-next.3) (2025-07-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* remove unused namespace ([e95b332](https://github.com/twinfoundation/verifiable-storage/commit/e95b33251950bb2f04bff0cb643ed8bcdb2897d3))
|
|
9
|
+
* update IOTA verifiable storage connector to use the updated move-to-json cli ([#33](https://github.com/twinfoundation/verifiable-storage/issues/33)) ([7c8d0d2](https://github.com/twinfoundation/verifiable-storage/commit/7c8d0d2e0418333ab1f897f744326c5c72857932))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* The following workspace dependencies were updated
|
|
15
|
+
* dependencies
|
|
16
|
+
* @twin.org/verifiable-storage-models bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
17
|
+
* devDependencies
|
|
18
|
+
* @twin.org/verifiable-storage-connector-entity-storage bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
19
|
+
|
|
20
|
+
## [0.0.2-next.2](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-service-v0.0.2-next.1...verifiable-storage-service-v0.0.2-next.2) (2025-07-16)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* add support for allowlist ([#17](https://github.com/twinfoundation/verifiable-storage/issues/17)) ([9341ea6](https://github.com/twinfoundation/verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
26
|
+
* update allow list name case ([278a787](https://github.com/twinfoundation/verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
27
|
+
* update connector config and tests for gas station ([#25](https://github.com/twinfoundation/verifiable-storage/issues/25)) ([e0997ff](https://github.com/twinfoundation/verifiable-storage/commit/e0997ffb0f4869dca11f248a9886acdd22c7dcc2))
|
|
28
|
+
* update dependencies ([a16a772](https://github.com/twinfoundation/verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
29
|
+
* use new dlt packages with latency fix ([#6](https://github.com/twinfoundation/verifiable-storage/issues/6)) ([d81c45b](https://github.com/twinfoundation/verifiable-storage/commit/d81c45bce035864a41bbd498815169d7257fbcb8))
|
|
30
|
+
* use shared store mechanism ([#8](https://github.com/twinfoundation/verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/twinfoundation/verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Dependencies
|
|
34
|
+
|
|
35
|
+
* The following workspace dependencies were updated
|
|
36
|
+
* dependencies
|
|
37
|
+
* @twin.org/verifiable-storage-models bumped from 0.0.2-next.0 to 0.0.2-next.2
|
|
38
|
+
* devDependencies
|
|
39
|
+
* @twin.org/verifiable-storage-connector-entity-storage bumped from 0.0.2-next.0 to 0.0.2-next.2
|
|
40
|
+
|
|
41
|
+
## [0.0.2-next.0](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-service-v0.0.2-next.0...verifiable-storage-service-v0.0.2-next.0) (2025-07-16)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Features
|
|
45
|
+
|
|
46
|
+
* add support for allowlist ([#17](https://github.com/twinfoundation/verifiable-storage/issues/17)) ([9341ea6](https://github.com/twinfoundation/verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
47
|
+
* update allow list name case ([278a787](https://github.com/twinfoundation/verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
48
|
+
* update connector config and tests for gas station ([#25](https://github.com/twinfoundation/verifiable-storage/issues/25)) ([e0997ff](https://github.com/twinfoundation/verifiable-storage/commit/e0997ffb0f4869dca11f248a9886acdd22c7dcc2))
|
|
49
|
+
* update dependencies ([a16a772](https://github.com/twinfoundation/verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
50
|
+
* use new dlt packages with latency fix ([#6](https://github.com/twinfoundation/verifiable-storage/issues/6)) ([d81c45b](https://github.com/twinfoundation/verifiable-storage/commit/d81c45bce035864a41bbd498815169d7257fbcb8))
|
|
51
|
+
* use shared store mechanism ([#8](https://github.com/twinfoundation/verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/twinfoundation/verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Dependencies
|
|
55
|
+
|
|
56
|
+
* The following workspace dependencies were updated
|
|
57
|
+
* dependencies
|
|
58
|
+
* @twin.org/verifiable-storage-models bumped from 0.0.2-next.0 to 0.0.2-next.0
|
|
59
|
+
* devDependencies
|
|
60
|
+
* @twin.org/verifiable-storage-connector-entity-storage bumped from 0.0.2-next.0 to 0.0.2-next.0
|
|
61
|
+
|
|
3
62
|
## 0.0.1 (2025-07-09)
|
|
4
63
|
|
|
5
64
|
|
package/docs/open-api/spec.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"openapi": "3.1.
|
|
2
|
+
"openapi": "3.1.1",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "TWIN - Test Endpoints",
|
|
5
5
|
"description": "REST API for TWIN - Test Endpoints.",
|
|
@@ -522,6 +522,7 @@
|
|
|
522
522
|
{
|
|
523
523
|
"type": "array",
|
|
524
524
|
"minItems": 2,
|
|
525
|
+
"items": false,
|
|
525
526
|
"maxItems": 2,
|
|
526
527
|
"prefixItems": [
|
|
527
528
|
{
|
|
@@ -537,6 +538,7 @@
|
|
|
537
538
|
{
|
|
538
539
|
"type": "array",
|
|
539
540
|
"minItems": 2,
|
|
541
|
+
"items": false,
|
|
540
542
|
"maxItems": 2,
|
|
541
543
|
"prefixItems": [
|
|
542
544
|
{
|
|
@@ -552,6 +554,7 @@
|
|
|
552
554
|
{
|
|
553
555
|
"type": "array",
|
|
554
556
|
"minItems": 3,
|
|
557
|
+
"items": false,
|
|
555
558
|
"maxItems": 3,
|
|
556
559
|
"prefixItems": [
|
|
557
560
|
{
|
|
@@ -571,6 +574,7 @@
|
|
|
571
574
|
{
|
|
572
575
|
"type": "array",
|
|
573
576
|
"minItems": 3,
|
|
577
|
+
"items": false,
|
|
574
578
|
"maxItems": 3,
|
|
575
579
|
"prefixItems": [
|
|
576
580
|
{
|
|
@@ -590,6 +594,7 @@
|
|
|
590
594
|
{
|
|
591
595
|
"type": "array",
|
|
592
596
|
"minItems": 3,
|
|
597
|
+
"items": false,
|
|
593
598
|
"maxItems": 3,
|
|
594
599
|
"prefixItems": [
|
|
595
600
|
{
|
|
@@ -609,6 +614,7 @@
|
|
|
609
614
|
{
|
|
610
615
|
"type": "array",
|
|
611
616
|
"minItems": 3,
|
|
617
|
+
"items": false,
|
|
612
618
|
"maxItems": 3,
|
|
613
619
|
"prefixItems": [
|
|
614
620
|
{
|
|
@@ -628,6 +634,7 @@
|
|
|
628
634
|
{
|
|
629
635
|
"type": "array",
|
|
630
636
|
"minItems": 3,
|
|
637
|
+
"items": false,
|
|
631
638
|
"maxItems": 3,
|
|
632
639
|
"prefixItems": [
|
|
633
640
|
{
|
|
@@ -647,6 +654,7 @@
|
|
|
647
654
|
{
|
|
648
655
|
"type": "array",
|
|
649
656
|
"minItems": 3,
|
|
657
|
+
"items": false,
|
|
650
658
|
"maxItems": 3,
|
|
651
659
|
"prefixItems": [
|
|
652
660
|
{
|
|
@@ -666,6 +674,7 @@
|
|
|
666
674
|
{
|
|
667
675
|
"type": "array",
|
|
668
676
|
"minItems": 2,
|
|
677
|
+
"items": false,
|
|
669
678
|
"maxItems": 2,
|
|
670
679
|
"prefixItems": [
|
|
671
680
|
{
|
|
@@ -680,6 +689,7 @@
|
|
|
680
689
|
{
|
|
681
690
|
"type": "array",
|
|
682
691
|
"minItems": 2,
|
|
692
|
+
"items": false,
|
|
683
693
|
"maxItems": 2,
|
|
684
694
|
"prefixItems": [
|
|
685
695
|
{
|
|
@@ -789,6 +799,7 @@
|
|
|
789
799
|
},
|
|
790
800
|
{
|
|
791
801
|
"type": "array",
|
|
802
|
+
"items": false,
|
|
792
803
|
"prefixItems": [
|
|
793
804
|
{
|
|
794
805
|
"$ref": "#/components/schemas/JsonLdContextDefinitionElement"
|
|
@@ -811,6 +822,7 @@
|
|
|
811
822
|
},
|
|
812
823
|
{
|
|
813
824
|
"type": "array",
|
|
825
|
+
"items": false,
|
|
814
826
|
"prefixItems": [
|
|
815
827
|
{
|
|
816
828
|
"type": "string"
|
|
@@ -840,6 +852,7 @@
|
|
|
840
852
|
},
|
|
841
853
|
{
|
|
842
854
|
"type": "array",
|
|
855
|
+
"items": false,
|
|
843
856
|
"prefixItems": [
|
|
844
857
|
{
|
|
845
858
|
"anyOf": [
|
|
@@ -946,6 +959,7 @@
|
|
|
946
959
|
},
|
|
947
960
|
{
|
|
948
961
|
"type": "array",
|
|
962
|
+
"items": false,
|
|
949
963
|
"prefixItems": [
|
|
950
964
|
{
|
|
951
965
|
"$ref": "#/components/schemas/JsonLdNodeObject"
|
|
@@ -964,6 +978,7 @@
|
|
|
964
978
|
},
|
|
965
979
|
{
|
|
966
980
|
"type": "array",
|
|
981
|
+
"items": false,
|
|
967
982
|
"prefixItems": [
|
|
968
983
|
{
|
|
969
984
|
"type": "string"
|
|
@@ -996,6 +1011,7 @@
|
|
|
996
1011
|
},
|
|
997
1012
|
{
|
|
998
1013
|
"type": "array",
|
|
1014
|
+
"items": false,
|
|
999
1015
|
"prefixItems": [
|
|
1000
1016
|
{
|
|
1001
1017
|
"$ref": "#/components/schemas/JsonLdNodeObject"
|
|
@@ -1014,6 +1030,7 @@
|
|
|
1014
1030
|
},
|
|
1015
1031
|
{
|
|
1016
1032
|
"type": "array",
|
|
1033
|
+
"items": false,
|
|
1017
1034
|
"prefixItems": [
|
|
1018
1035
|
{
|
|
1019
1036
|
"$ref": "#/components/schemas/JsonLdIndexMapItem"
|
|
@@ -1055,6 +1072,7 @@
|
|
|
1055
1072
|
},
|
|
1056
1073
|
"JsonLdJsonArray": {
|
|
1057
1074
|
"type": "array",
|
|
1075
|
+
"items": false,
|
|
1058
1076
|
"description": "JSON Type for array.",
|
|
1059
1077
|
"prefixItems": [
|
|
1060
1078
|
{
|
|
@@ -1111,6 +1129,7 @@
|
|
|
1111
1129
|
},
|
|
1112
1130
|
{
|
|
1113
1131
|
"type": "array",
|
|
1132
|
+
"items": false,
|
|
1114
1133
|
"prefixItems": [
|
|
1115
1134
|
{
|
|
1116
1135
|
"type": "string"
|
|
@@ -1131,6 +1150,7 @@
|
|
|
1131
1150
|
},
|
|
1132
1151
|
{
|
|
1133
1152
|
"type": "array",
|
|
1153
|
+
"items": false,
|
|
1134
1154
|
"prefixItems": [
|
|
1135
1155
|
{
|
|
1136
1156
|
"$ref": "#/components/schemas/JsonLdListOrSetItem"
|
|
@@ -1210,6 +1230,7 @@
|
|
|
1210
1230
|
},
|
|
1211
1231
|
{
|
|
1212
1232
|
"type": "array",
|
|
1233
|
+
"items": false,
|
|
1213
1234
|
"prefixItems": [
|
|
1214
1235
|
{
|
|
1215
1236
|
"type": "string"
|
|
@@ -1228,6 +1249,7 @@
|
|
|
1228
1249
|
},
|
|
1229
1250
|
{
|
|
1230
1251
|
"type": "array",
|
|
1252
|
+
"items": false,
|
|
1231
1253
|
"prefixItems": [
|
|
1232
1254
|
{
|
|
1233
1255
|
"$ref": "#/components/schemas/JsonLdNodeObject"
|
|
@@ -1243,6 +1265,7 @@
|
|
|
1243
1265
|
},
|
|
1244
1266
|
{
|
|
1245
1267
|
"type": "array",
|
|
1268
|
+
"items": false,
|
|
1246
1269
|
"prefixItems": [
|
|
1247
1270
|
{
|
|
1248
1271
|
"$ref": "#/components/schemas/JsonLdJsonObject"
|
|
@@ -1258,6 +1281,7 @@
|
|
|
1258
1281
|
},
|
|
1259
1282
|
{
|
|
1260
1283
|
"type": "array",
|
|
1284
|
+
"items": false,
|
|
1261
1285
|
"prefixItems": [
|
|
1262
1286
|
{
|
|
1263
1287
|
"type": "string"
|
|
@@ -1320,6 +1344,7 @@
|
|
|
1320
1344
|
},
|
|
1321
1345
|
{
|
|
1322
1346
|
"type": "array",
|
|
1347
|
+
"items": false,
|
|
1323
1348
|
"prefixItems": [
|
|
1324
1349
|
{
|
|
1325
1350
|
"$ref": "#/components/schemas/JsonLdListOrSetItem"
|
|
@@ -1472,6 +1497,7 @@
|
|
|
1472
1497
|
},
|
|
1473
1498
|
"allowList": {
|
|
1474
1499
|
"type": "array",
|
|
1500
|
+
"items": false,
|
|
1475
1501
|
"description": "The list of identities that are allowed to modify the item.",
|
|
1476
1502
|
"prefixItems": [
|
|
1477
1503
|
{
|
|
@@ -1542,6 +1568,7 @@
|
|
|
1542
1568
|
},
|
|
1543
1569
|
"allowList": {
|
|
1544
1570
|
"type": "array",
|
|
1571
|
+
"items": false,
|
|
1545
1572
|
"description": "The list of identities that are allowed to modify the item.",
|
|
1546
1573
|
"prefixItems": [
|
|
1547
1574
|
{
|
|
@@ -1565,6 +1592,7 @@
|
|
|
1565
1592
|
},
|
|
1566
1593
|
"allowList": {
|
|
1567
1594
|
"type": "array",
|
|
1595
|
+
"items": false,
|
|
1568
1596
|
"description": "An updated list of identities that are allowed to modify the item, send an empty list to remove all entries.",
|
|
1569
1597
|
"prefixItems": [
|
|
1570
1598
|
{
|
|
@@ -28,14 +28,6 @@ The options for the service.
|
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
31
|
-
### NAMESPACE
|
|
32
|
-
|
|
33
|
-
> `readonly` `static` **NAMESPACE**: `string` = `"verifiable"`
|
|
34
|
-
|
|
35
|
-
The namespace supported by the verifiableStorage service.
|
|
36
|
-
|
|
37
|
-
***
|
|
38
|
-
|
|
39
31
|
### CLASS\_NAME
|
|
40
32
|
|
|
41
33
|
> `readonly` **CLASS\_NAME**: `string`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/verifiable-storage-service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-next.3",
|
|
4
4
|
"description": "Verifiable Storage contract implementation and REST endpoint definitions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/api-models": "
|
|
18
|
-
"@twin.org/core": "
|
|
19
|
-
"@twin.org/entity": "
|
|
20
|
-
"@twin.org/nameof": "
|
|
21
|
-
"@twin.org/verifiable-storage-models": "
|
|
22
|
-
"@twin.org/web": "
|
|
17
|
+
"@twin.org/api-models": "next",
|
|
18
|
+
"@twin.org/core": "next",
|
|
19
|
+
"@twin.org/entity": "next",
|
|
20
|
+
"@twin.org/nameof": "next",
|
|
21
|
+
"@twin.org/verifiable-storage-models": "0.0.2-next.3",
|
|
22
|
+
"@twin.org/web": "next"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/cjs/index.cjs",
|
|
25
25
|
"module": "./dist/esm/index.mjs",
|