@twin.org/verifiable-storage-models 0.0.3-next.7 → 0.0.3-next.9
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/README.md +3 -1
- package/docs/changelog.md +95 -81
- package/docs/examples.md +51 -1
- package/docs/reference/interfaces/IVerifiableStorageComponent.md +4 -4
- package/docs/reference/interfaces/IVerifiableStorageConnector.md +4 -4
- package/docs/reference/interfaces/IVerifiableStorageCreateRequest.md +4 -4
- package/docs/reference/interfaces/IVerifiableStorageCreateResponse.md +1 -1
- package/docs/reference/interfaces/IVerifiableStorageGetRequest.md +5 -5
- package/docs/reference/interfaces/IVerifiableStorageGetResponse.md +3 -3
- package/docs/reference/interfaces/IVerifiableStorageRemoveRequest.md +1 -1
- package/docs/reference/interfaces/IVerifiableStorageUpdateRequest.md +4 -4
- package/docs/reference/interfaces/IVerifiableStorageUpdateResponse.md +1 -1
- package/docs/reference/variables/VerifiableStorageContexts.md +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# TWIN Verifiable Storage Models
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package defines the shared contracts used by verifiable storage components across the repository. It includes common interfaces, API request and response models, and context definitions so integrations can rely on a consistent shape for data and behaviour.
|
|
4
|
+
|
|
5
|
+
By centralising these reusable contracts, it reduces duplication and helps connectors, services, and clients evolve together without introducing mismatched assumptions.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
package/docs/changelog.md
CHANGED
|
@@ -1,248 +1,262 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0.3-next.
|
|
3
|
+
## [0.0.3-next.9](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.8...verifiable-storage-models-v0.0.3-next.9) (2026-05-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **verifiable-storage-models:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
## [0.0.3-next.8](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.7...verifiable-storage-models-v0.0.3-next.8) (2026-03-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* **verifiable-storage-models:** Synchronize repo versions
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.7](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.6...verifiable-storage-models-v0.0.3-next.7) (2026-02-25)
|
|
4
18
|
|
|
5
19
|
|
|
6
20
|
### Features
|
|
7
21
|
|
|
8
|
-
* add context id features ([#40](https://github.com/
|
|
9
|
-
* add support for allowlist ([#17](https://github.com/
|
|
10
|
-
* add validate-locales ([326384f](https://github.com/
|
|
11
|
-
* context updates ([#44](https://github.com/
|
|
12
|
-
* eslint migration to flat config ([b0a0b85](https://github.com/
|
|
13
|
-
* update allow list name case ([278a787](https://github.com/
|
|
14
|
-
* update context and namespaces ([#42](https://github.com/
|
|
15
|
-
* update dependencies ([a16a772](https://github.com/
|
|
16
|
-
* update descriptions ([696be4d](https://github.com/
|
|
17
|
-
* update framework core ([efa612e](https://github.com/
|
|
18
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
19
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
22
|
+
* add context id features ([#40](https://github.com/iotaledger/twin-verifiable-storage/issues/40)) ([260b96a](https://github.com/iotaledger/twin-verifiable-storage/commit/260b96a8b7d1a26c6c415f2de12e09671ee70220))
|
|
23
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
24
|
+
* add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
25
|
+
* context updates ([#44](https://github.com/iotaledger/twin-verifiable-storage/issues/44)) ([2f92558](https://github.com/iotaledger/twin-verifiable-storage/commit/2f9255835eddc9620268b6eb3bba723bc38a0591))
|
|
26
|
+
* eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
27
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
28
|
+
* update context and namespaces ([#42](https://github.com/iotaledger/twin-verifiable-storage/issues/42)) ([7863833](https://github.com/iotaledger/twin-verifiable-storage/commit/78638336c5cd7dce0c53aaf598aef603fbed7a9e))
|
|
29
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
30
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
31
|
+
* update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
32
|
+
* use new dlt packages with latency fix ([#6](https://github.com/iotaledger/twin-verifiable-storage/issues/6)) ([d81c45b](https://github.com/iotaledger/twin-verifiable-storage/commit/d81c45bce035864a41bbd498815169d7257fbcb8))
|
|
33
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
20
34
|
|
|
21
|
-
## [0.0.3-next.6](https://github.com/
|
|
35
|
+
## [0.0.3-next.6](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.5...verifiable-storage-models-v0.0.3-next.6) (2026-02-25)
|
|
22
36
|
|
|
23
37
|
|
|
24
38
|
### Miscellaneous Chores
|
|
25
39
|
|
|
26
40
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
27
41
|
|
|
28
|
-
## [0.0.3-next.5](https://github.com/
|
|
42
|
+
## [0.0.3-next.5](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.4...verifiable-storage-models-v0.0.3-next.5) (2026-02-09)
|
|
29
43
|
|
|
30
44
|
|
|
31
45
|
### Miscellaneous Chores
|
|
32
46
|
|
|
33
47
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
34
48
|
|
|
35
|
-
## [0.0.3-next.4](https://github.com/
|
|
49
|
+
## [0.0.3-next.4](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.3...verifiable-storage-models-v0.0.3-next.4) (2026-02-09)
|
|
36
50
|
|
|
37
51
|
|
|
38
52
|
### Miscellaneous Chores
|
|
39
53
|
|
|
40
54
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
41
55
|
|
|
42
|
-
## [0.0.3-next.3](https://github.com/
|
|
56
|
+
## [0.0.3-next.3](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.2...verifiable-storage-models-v0.0.3-next.3) (2026-01-21)
|
|
43
57
|
|
|
44
58
|
|
|
45
59
|
### Features
|
|
46
60
|
|
|
47
|
-
* context updates ([#44](https://github.com/
|
|
61
|
+
* context updates ([#44](https://github.com/iotaledger/twin-verifiable-storage/issues/44)) ([2f92558](https://github.com/iotaledger/twin-verifiable-storage/commit/2f9255835eddc9620268b6eb3bba723bc38a0591))
|
|
48
62
|
|
|
49
|
-
## [0.0.3-next.2](https://github.com/
|
|
63
|
+
## [0.0.3-next.2](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.1...verifiable-storage-models-v0.0.3-next.2) (2026-01-14)
|
|
50
64
|
|
|
51
65
|
|
|
52
66
|
### Features
|
|
53
67
|
|
|
54
|
-
* update context and namespaces ([#42](https://github.com/
|
|
68
|
+
* update context and namespaces ([#42](https://github.com/iotaledger/twin-verifiable-storage/issues/42)) ([7863833](https://github.com/iotaledger/twin-verifiable-storage/commit/78638336c5cd7dce0c53aaf598aef603fbed7a9e))
|
|
55
69
|
|
|
56
|
-
## [0.0.3-next.1](https://github.com/
|
|
70
|
+
## [0.0.3-next.1](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.0...verifiable-storage-models-v0.0.3-next.1) (2025-11-12)
|
|
57
71
|
|
|
58
72
|
|
|
59
73
|
### Features
|
|
60
74
|
|
|
61
|
-
* add context id features ([#40](https://github.com/
|
|
62
|
-
* add support for allowlist ([#17](https://github.com/
|
|
63
|
-
* add validate-locales ([326384f](https://github.com/
|
|
64
|
-
* eslint migration to flat config ([b0a0b85](https://github.com/
|
|
65
|
-
* update allow list name case ([278a787](https://github.com/
|
|
66
|
-
* update dependencies ([a16a772](https://github.com/
|
|
67
|
-
* update descriptions ([696be4d](https://github.com/
|
|
68
|
-
* update framework core ([efa612e](https://github.com/
|
|
69
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
70
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
75
|
+
* add context id features ([#40](https://github.com/iotaledger/twin-verifiable-storage/issues/40)) ([260b96a](https://github.com/iotaledger/twin-verifiable-storage/commit/260b96a8b7d1a26c6c415f2de12e09671ee70220))
|
|
76
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
77
|
+
* add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
78
|
+
* eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
79
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
80
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
81
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
82
|
+
* update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
83
|
+
* use new dlt packages with latency fix ([#6](https://github.com/iotaledger/twin-verifiable-storage/issues/6)) ([d81c45b](https://github.com/iotaledger/twin-verifiable-storage/commit/d81c45bce035864a41bbd498815169d7257fbcb8))
|
|
84
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
71
85
|
|
|
72
|
-
## [0.0.2-next.6](https://github.com/
|
|
86
|
+
## [0.0.2-next.6](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.2-next.5...verifiable-storage-models-v0.0.2-next.6) (2025-10-09)
|
|
73
87
|
|
|
74
88
|
|
|
75
89
|
### Features
|
|
76
90
|
|
|
77
|
-
* add validate-locales ([326384f](https://github.com/
|
|
91
|
+
* add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
78
92
|
|
|
79
|
-
## [0.0.2-next.5](https://github.com/
|
|
93
|
+
## [0.0.2-next.5](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.2-next.4...verifiable-storage-models-v0.0.2-next.5) (2025-09-26)
|
|
80
94
|
|
|
81
95
|
|
|
82
96
|
### Features
|
|
83
97
|
|
|
84
|
-
* eslint migration to flat config ([b0a0b85](https://github.com/
|
|
98
|
+
* eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
85
99
|
|
|
86
|
-
## [0.0.2-next.4](https://github.com/
|
|
100
|
+
## [0.0.2-next.4](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.2-next.3...verifiable-storage-models-v0.0.2-next.4) (2025-08-20)
|
|
87
101
|
|
|
88
102
|
|
|
89
103
|
### Features
|
|
90
104
|
|
|
91
|
-
* update framework core ([efa612e](https://github.com/
|
|
105
|
+
* update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
92
106
|
|
|
93
|
-
## [0.0.2-next.3](https://github.com/
|
|
107
|
+
## [0.0.2-next.3](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.2-next.2...verifiable-storage-models-v0.0.2-next.3) (2025-07-28)
|
|
94
108
|
|
|
95
109
|
|
|
96
110
|
### Miscellaneous Chores
|
|
97
111
|
|
|
98
112
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
99
113
|
|
|
100
|
-
## [0.0.2-next.2](https://github.com/
|
|
114
|
+
## [0.0.2-next.2](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.2-next.1...verifiable-storage-models-v0.0.2-next.2) (2025-07-16)
|
|
101
115
|
|
|
102
116
|
|
|
103
117
|
### Features
|
|
104
118
|
|
|
105
|
-
* add support for allowlist ([#17](https://github.com/
|
|
106
|
-
* update allow list name case ([278a787](https://github.com/
|
|
107
|
-
* update dependencies ([a16a772](https://github.com/
|
|
108
|
-
* update descriptions ([696be4d](https://github.com/
|
|
109
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
110
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
119
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
120
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
121
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
122
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
123
|
+
* use new dlt packages with latency fix ([#6](https://github.com/iotaledger/twin-verifiable-storage/issues/6)) ([d81c45b](https://github.com/iotaledger/twin-verifiable-storage/commit/d81c45bce035864a41bbd498815169d7257fbcb8))
|
|
124
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
111
125
|
|
|
112
|
-
## [0.0.2-next.0](https://github.com/
|
|
126
|
+
## [0.0.2-next.0](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.2-next.0...verifiable-storage-models-v0.0.2-next.0) (2025-07-16)
|
|
113
127
|
|
|
114
128
|
|
|
115
129
|
### Features
|
|
116
130
|
|
|
117
|
-
* add support for allowlist ([#17](https://github.com/
|
|
118
|
-
* update allow list name case ([278a787](https://github.com/
|
|
119
|
-
* update dependencies ([a16a772](https://github.com/
|
|
120
|
-
* update descriptions ([696be4d](https://github.com/
|
|
121
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
122
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
131
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
132
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
133
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
134
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
135
|
+
* use new dlt packages with latency fix ([#6](https://github.com/iotaledger/twin-verifiable-storage/issues/6)) ([d81c45b](https://github.com/iotaledger/twin-verifiable-storage/commit/d81c45bce035864a41bbd498815169d7257fbcb8))
|
|
136
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
123
137
|
|
|
124
138
|
## 0.0.1 (2025-07-09)
|
|
125
139
|
|
|
126
140
|
|
|
127
141
|
### Features
|
|
128
142
|
|
|
129
|
-
* release to production ([6ce6744](https://github.com/
|
|
143
|
+
* release to production ([6ce6744](https://github.com/iotaledger/twin-verifiable-storage/commit/6ce6744c124cca586c1ef0552624378d1207578d))
|
|
130
144
|
|
|
131
|
-
## [0.0.1-next.17](https://github.com/
|
|
145
|
+
## [0.0.1-next.17](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.16...verifiable-storage-models-v0.0.1-next.17) (2025-06-25)
|
|
132
146
|
|
|
133
147
|
|
|
134
148
|
### Miscellaneous Chores
|
|
135
149
|
|
|
136
150
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
137
151
|
|
|
138
|
-
## [0.0.1-next.16](https://github.com/
|
|
152
|
+
## [0.0.1-next.16](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.15...verifiable-storage-models-v0.0.1-next.16) (2025-06-12)
|
|
139
153
|
|
|
140
154
|
|
|
141
155
|
### Features
|
|
142
156
|
|
|
143
|
-
* update dependencies ([a16a772](https://github.com/
|
|
157
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
144
158
|
|
|
145
|
-
## [0.0.1-next.15](https://github.com/
|
|
159
|
+
## [0.0.1-next.15](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.14...verifiable-storage-models-v0.0.1-next.15) (2025-06-03)
|
|
146
160
|
|
|
147
161
|
|
|
148
162
|
### Miscellaneous Chores
|
|
149
163
|
|
|
150
164
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
151
165
|
|
|
152
|
-
## [0.0.1-next.14](https://github.com/
|
|
166
|
+
## [0.0.1-next.14](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.13...verifiable-storage-models-v0.0.1-next.14) (2025-05-28)
|
|
153
167
|
|
|
154
168
|
|
|
155
169
|
### Features
|
|
156
170
|
|
|
157
|
-
* add support for allowlist ([#17](https://github.com/
|
|
158
|
-
* update allow list name case ([278a787](https://github.com/
|
|
159
|
-
* update descriptions ([696be4d](https://github.com/
|
|
160
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
161
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
171
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
172
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
173
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
174
|
+
* use new dlt packages with latency fix ([#6](https://github.com/iotaledger/twin-verifiable-storage/issues/6)) ([d81c45b](https://github.com/iotaledger/twin-verifiable-storage/commit/d81c45bce035864a41bbd498815169d7257fbcb8))
|
|
175
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
162
176
|
|
|
163
|
-
## [0.0.1-next.13](https://github.com/
|
|
177
|
+
## [0.0.1-next.13](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.12...verifiable-storage-models-v0.0.1-next.13) (2025-05-28)
|
|
164
178
|
|
|
165
179
|
|
|
166
180
|
### Miscellaneous Chores
|
|
167
181
|
|
|
168
182
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
169
183
|
|
|
170
|
-
## [0.0.1-next.12](https://github.com/
|
|
184
|
+
## [0.0.1-next.12](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.11...verifiable-storage-models-v0.0.1-next.12) (2025-05-28)
|
|
171
185
|
|
|
172
186
|
|
|
173
187
|
### Features
|
|
174
188
|
|
|
175
|
-
* update allow list name case ([278a787](https://github.com/
|
|
189
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
176
190
|
|
|
177
|
-
## [0.0.1-next.11](https://github.com/
|
|
191
|
+
## [0.0.1-next.11](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.10...verifiable-storage-models-v0.0.1-next.11) (2025-05-22)
|
|
178
192
|
|
|
179
193
|
|
|
180
194
|
### Miscellaneous Chores
|
|
181
195
|
|
|
182
196
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
183
197
|
|
|
184
|
-
## [0.0.1-next.10](https://github.com/
|
|
198
|
+
## [0.0.1-next.10](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.9...verifiable-storage-models-v0.0.1-next.10) (2025-05-22)
|
|
185
199
|
|
|
186
200
|
|
|
187
201
|
### Features
|
|
188
202
|
|
|
189
|
-
* add support for allowlist ([#17](https://github.com/
|
|
203
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
190
204
|
|
|
191
|
-
## [0.0.1-next.9](https://github.com/
|
|
205
|
+
## [0.0.1-next.9](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.8...verifiable-storage-models-v0.0.1-next.9) (2025-05-06)
|
|
192
206
|
|
|
193
207
|
|
|
194
208
|
### Miscellaneous Chores
|
|
195
209
|
|
|
196
210
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
197
211
|
|
|
198
|
-
## [0.0.1-next.8](https://github.com/
|
|
212
|
+
## [0.0.1-next.8](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.7...verifiable-storage-models-v0.0.1-next.8) (2025-04-24)
|
|
199
213
|
|
|
200
214
|
|
|
201
215
|
### Miscellaneous Chores
|
|
202
216
|
|
|
203
217
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
204
218
|
|
|
205
|
-
## [0.0.1-next.7](https://github.com/
|
|
219
|
+
## [0.0.1-next.7](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.6...verifiable-storage-models-v0.0.1-next.7) (2025-04-23)
|
|
206
220
|
|
|
207
221
|
|
|
208
222
|
### Miscellaneous Chores
|
|
209
223
|
|
|
210
224
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
211
225
|
|
|
212
|
-
## [0.0.1-next.6](https://github.com/
|
|
226
|
+
## [0.0.1-next.6](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.5...verifiable-storage-models-v0.0.1-next.6) (2025-04-23)
|
|
213
227
|
|
|
214
228
|
|
|
215
229
|
### Miscellaneous Chores
|
|
216
230
|
|
|
217
231
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
218
232
|
|
|
219
|
-
## [0.0.1-next.5](https://github.com/
|
|
233
|
+
## [0.0.1-next.5](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.4...verifiable-storage-models-v0.0.1-next.5) (2025-04-23)
|
|
220
234
|
|
|
221
235
|
|
|
222
236
|
### Miscellaneous Chores
|
|
223
237
|
|
|
224
238
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
225
239
|
|
|
226
|
-
## [0.0.1-next.4](https://github.com/
|
|
240
|
+
## [0.0.1-next.4](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.3...verifiable-storage-models-v0.0.1-next.4) (2025-04-17)
|
|
227
241
|
|
|
228
242
|
|
|
229
243
|
### Features
|
|
230
244
|
|
|
231
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
245
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
232
246
|
|
|
233
|
-
## [0.0.1-next.3](https://github.com/
|
|
247
|
+
## [0.0.1-next.3](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.2...verifiable-storage-models-v0.0.1-next.3) (2025-04-17)
|
|
234
248
|
|
|
235
249
|
|
|
236
250
|
### Features
|
|
237
251
|
|
|
238
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
252
|
+
* use new dlt packages with latency fix ([#6](https://github.com/iotaledger/twin-verifiable-storage/issues/6)) ([d81c45b](https://github.com/iotaledger/twin-verifiable-storage/commit/d81c45bce035864a41bbd498815169d7257fbcb8))
|
|
239
253
|
|
|
240
|
-
## [0.0.1-next.2](https://github.com/
|
|
254
|
+
## [0.0.1-next.2](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.1-next.1...verifiable-storage-models-v0.0.1-next.2) (2025-03-28)
|
|
241
255
|
|
|
242
256
|
|
|
243
257
|
### Features
|
|
244
258
|
|
|
245
|
-
* update descriptions ([696be4d](https://github.com/
|
|
259
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
246
260
|
|
|
247
261
|
## v0.0.1-next.1
|
|
248
262
|
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,51 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Verifiable Storage Models Examples
|
|
2
|
+
|
|
3
|
+
This page provides TypeScript examples for the verifiable storage models, including how to use the main interfaces, types, and the connector factory. These examples are intended to help you understand the structure and usage of the verifiable storage model layer.
|
|
4
|
+
|
|
5
|
+
## VerifiableStorageConnectorFactory
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { VerifiableStorageConnectorFactory } from '@twin.org/verifiable-storage-models';
|
|
9
|
+
|
|
10
|
+
// List available connector names
|
|
11
|
+
const connectorNames = VerifiableStorageConnectorFactory.names();
|
|
12
|
+
console.log(connectorNames); // Outputs an array of connector names
|
|
13
|
+
|
|
14
|
+
// Get a connector instance (example, replace 'entity-storage' with your connector name)
|
|
15
|
+
const connector = VerifiableStorageConnectorFactory.get('entity-storage');
|
|
16
|
+
console.log(connector.className()); // Outputs the class name of the connector
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## IVerifiableStorageConnector
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { IVerifiableStorageConnector } from '@twin.org/verifiable-storage-models';
|
|
23
|
+
|
|
24
|
+
async function createAndGetItem(connector: IVerifiableStorageConnector) {
|
|
25
|
+
const controllerIdentity = 'did:example:controller1';
|
|
26
|
+
const data = new TextEncoder().encode('Sample data');
|
|
27
|
+
const allowList = ['did:example:controller1'];
|
|
28
|
+
const { id, receipt } = await connector.create(controllerIdentity, data, allowList, {
|
|
29
|
+
maxAllowListSize: 5
|
|
30
|
+
});
|
|
31
|
+
console.log(id); // Outputs the new item id
|
|
32
|
+
const item = await connector.get(id);
|
|
33
|
+
if (item.data) {
|
|
34
|
+
const decoded = new TextDecoder().decode(item.data);
|
|
35
|
+
console.log(decoded); // Sample data
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## IVerifiableStorageComponent
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
import type { IVerifiableStorageComponent } from '@twin.org/verifiable-storage-models';
|
|
44
|
+
|
|
45
|
+
async function createItem(component: IVerifiableStorageComponent) {
|
|
46
|
+
const data = new TextEncoder().encode('Component data');
|
|
47
|
+
const allowList = ['did:example:controller1'];
|
|
48
|
+
const { id, receipt } = await component.create(data, allowList, { maxAllowListSize: 3 });
|
|
49
|
+
console.log(id); // Outputs the new item id
|
|
50
|
+
}
|
|
51
|
+
```
|
|
@@ -8,7 +8,7 @@ Interface describing a Verifiable Storage component.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
### create()
|
|
11
|
+
### create() {#create}
|
|
12
12
|
|
|
13
13
|
> **create**(`data`, `allowList?`, `options?`, `namespace?`, `controller?`): `Promise`\<\{ `id`: `string`; `receipt`: `IJsonLdNodeObject`; \}\>
|
|
14
14
|
|
|
@@ -58,7 +58,7 @@ The id of the stored verifiable item in urn format and the receipt.
|
|
|
58
58
|
|
|
59
59
|
***
|
|
60
60
|
|
|
61
|
-
### update()
|
|
61
|
+
### update() {#update}
|
|
62
62
|
|
|
63
63
|
> **update**(`id`, `data?`, `allowList?`, `controller?`): `Promise`\<`IJsonLdNodeObject`\>
|
|
64
64
|
|
|
@@ -98,7 +98,7 @@ The updated receipt.
|
|
|
98
98
|
|
|
99
99
|
***
|
|
100
100
|
|
|
101
|
-
### get()
|
|
101
|
+
### get() {#get}
|
|
102
102
|
|
|
103
103
|
> **get**(`id`, `options?`): `Promise`\<\{ `data?`: `Uint8Array`\<`ArrayBufferLike`\>; `receipt`: `IJsonLdNodeObject`; `allowList?`: `string`[]; \}\>
|
|
104
104
|
|
|
@@ -136,7 +136,7 @@ The data for the item and the receipt.
|
|
|
136
136
|
|
|
137
137
|
***
|
|
138
138
|
|
|
139
|
-
### remove()
|
|
139
|
+
### remove() {#remove}
|
|
140
140
|
|
|
141
141
|
> **remove**(`id`, `controller?`): `Promise`\<`void`\>
|
|
142
142
|
|
|
@@ -8,7 +8,7 @@ Interface describing a verifiable storage connector.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
### create()
|
|
11
|
+
### create() {#create}
|
|
12
12
|
|
|
13
13
|
> **create**(`controllerIdentity`, `data`, `allowList?`, `options?`): `Promise`\<\{ `id`: `string`; `receipt`: `IJsonLdNodeObject`; \}\>
|
|
14
14
|
|
|
@@ -52,7 +52,7 @@ The id of the stored verifiable item in urn format and the receipt.
|
|
|
52
52
|
|
|
53
53
|
***
|
|
54
54
|
|
|
55
|
-
### update()
|
|
55
|
+
### update() {#update}
|
|
56
56
|
|
|
57
57
|
> **update**(`controllerIdentity`, `id`, `data?`, `allowList?`): `Promise`\<`IJsonLdNodeObject`\>
|
|
58
58
|
|
|
@@ -92,7 +92,7 @@ The updated receipt.
|
|
|
92
92
|
|
|
93
93
|
***
|
|
94
94
|
|
|
95
|
-
### get()
|
|
95
|
+
### get() {#get}
|
|
96
96
|
|
|
97
97
|
> **get**(`id`, `options?`): `Promise`\<\{ `data?`: `Uint8Array`\<`ArrayBufferLike`\>; `receipt`: `IJsonLdNodeObject`; `allowList?`: `string`[]; \}\>
|
|
98
98
|
|
|
@@ -130,7 +130,7 @@ The data for the item, the receipt and the allow list.
|
|
|
130
130
|
|
|
131
131
|
***
|
|
132
132
|
|
|
133
|
-
### remove()
|
|
133
|
+
### remove() {#remove}
|
|
134
134
|
|
|
135
135
|
> **remove**(`controllerIdentity`, `id`): `Promise`\<`void`\>
|
|
136
136
|
|
|
@@ -4,7 +4,7 @@ Store the data and return the verifiable storage item id.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### body
|
|
7
|
+
### body {#body}
|
|
8
8
|
|
|
9
9
|
> **body**: `object`
|
|
10
10
|
|
|
@@ -18,13 +18,13 @@ The data for the verifiable storage item, this is a string serialized as base64.
|
|
|
18
18
|
|
|
19
19
|
#### allowList?
|
|
20
20
|
|
|
21
|
-
> `optional` **allowList
|
|
21
|
+
> `optional` **allowList?**: `string`[]
|
|
22
22
|
|
|
23
23
|
The list of identities that are allowed to modify the item.
|
|
24
24
|
|
|
25
25
|
#### maxAllowListSize?
|
|
26
26
|
|
|
27
|
-
> `optional` **maxAllowListSize
|
|
27
|
+
> `optional` **maxAllowListSize?**: `number`
|
|
28
28
|
|
|
29
29
|
The maximum size of the allow list.
|
|
30
30
|
|
|
@@ -36,6 +36,6 @@ The maximum size of the allow list.
|
|
|
36
36
|
|
|
37
37
|
#### namespace?
|
|
38
38
|
|
|
39
|
-
> `optional` **namespace
|
|
39
|
+
> `optional` **namespace?**: `string`
|
|
40
40
|
|
|
41
41
|
The namespace of the connector to use for the verifiable storage item, defaults to component configured namespace.
|
|
@@ -4,7 +4,7 @@ Get the verifiable storage item.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### pathParams
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
8
|
|
|
9
9
|
> **pathParams**: `object`
|
|
10
10
|
|
|
@@ -18,15 +18,15 @@ The id of the verifiable storage item to resolve.
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### body?
|
|
21
|
+
### body? {#body}
|
|
22
22
|
|
|
23
|
-
> `optional` **body
|
|
23
|
+
> `optional` **body?**: `object`
|
|
24
24
|
|
|
25
25
|
The body optional param.
|
|
26
26
|
|
|
27
27
|
#### includeData?
|
|
28
28
|
|
|
29
|
-
> `optional` **includeData
|
|
29
|
+
> `optional` **includeData?**: `boolean`
|
|
30
30
|
|
|
31
31
|
The flag to include the data.
|
|
32
32
|
|
|
@@ -38,7 +38,7 @@ true
|
|
|
38
38
|
|
|
39
39
|
#### includeAllowList?
|
|
40
40
|
|
|
41
|
-
> `optional` **includeAllowList
|
|
41
|
+
> `optional` **includeAllowList?**: `boolean`
|
|
42
42
|
|
|
43
43
|
The flag to include the allow list.
|
|
44
44
|
|
|
@@ -4,7 +4,7 @@ Response to getting the verifiable storage item.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### body
|
|
7
|
+
### body {#body}
|
|
8
8
|
|
|
9
9
|
> **body**: `object`
|
|
10
10
|
|
|
@@ -18,12 +18,12 @@ The receipt associated to the verifiable storage item.
|
|
|
18
18
|
|
|
19
19
|
#### data?
|
|
20
20
|
|
|
21
|
-
> `optional` **data
|
|
21
|
+
> `optional` **data?**: `string`
|
|
22
22
|
|
|
23
23
|
The data of the verifiable storage item, this is a string serialized as base64.
|
|
24
24
|
|
|
25
25
|
#### allowList?
|
|
26
26
|
|
|
27
|
-
> `optional` **allowList
|
|
27
|
+
> `optional` **allowList?**: `string`[]
|
|
28
28
|
|
|
29
29
|
The list of identities that are allowed to modify the item.
|
|
@@ -4,7 +4,7 @@ Update the data and return the receipt.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### pathParams
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
8
|
|
|
9
9
|
> **pathParams**: `object`
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ The id of the verifiable storage item to update.
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### body
|
|
21
|
+
### body {#body}
|
|
22
22
|
|
|
23
23
|
> **body**: `object`
|
|
24
24
|
|
|
@@ -26,12 +26,12 @@ The data to be updated.
|
|
|
26
26
|
|
|
27
27
|
#### data?
|
|
28
28
|
|
|
29
|
-
> `optional` **data
|
|
29
|
+
> `optional` **data?**: `string`
|
|
30
30
|
|
|
31
31
|
The data which is a string serialized as base64, leave empty if just updating the allow list.
|
|
32
32
|
|
|
33
33
|
#### allowList?
|
|
34
34
|
|
|
35
|
-
> `optional` **allowList
|
|
35
|
+
> `optional` **allowList?**: `string`[]
|
|
36
36
|
|
|
37
37
|
An updated list of identities that are allowed to modify the item, send an empty list to remove all entries.
|
|
@@ -6,19 +6,19 @@ The contexts of verifiable storage data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### Namespace
|
|
9
|
+
### Namespace {#namespace}
|
|
10
10
|
|
|
11
11
|
> `readonly` **Namespace**: `"https://schema.twindev.org/verifiable-storage/"` = `"https://schema.twindev.org/verifiable-storage/"`
|
|
12
12
|
|
|
13
13
|
The canonical RDF namespace URI for Verifiable Storage.
|
|
14
14
|
|
|
15
|
-
### Context
|
|
15
|
+
### Context {#context}
|
|
16
16
|
|
|
17
17
|
> `readonly` **Context**: `"https://schema.twindev.org/verifiable-storage/"` = `"https://schema.twindev.org/verifiable-storage/"`
|
|
18
18
|
|
|
19
19
|
The value to use in context for Verifiable Storage.
|
|
20
20
|
|
|
21
|
-
### JsonLdContext
|
|
21
|
+
### JsonLdContext {#jsonldcontext}
|
|
22
22
|
|
|
23
23
|
> `readonly` **JsonLdContext**: `"https://schema.twindev.org/verifiable-storage/types.jsonld"` = `"https://schema.twindev.org/verifiable-storage/types.jsonld"`
|
|
24
24
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/verifiable-storage-models",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.9",
|
|
4
|
+
"description": "Shared interfaces, API payload models, and connector factory contracts for verifiable storage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/verifiable-storage.git",
|
|
8
8
|
"directory": "packages/verifiable-storage-models"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"schemas"
|
|
52
52
|
],
|
|
53
53
|
"bugs": {
|
|
54
|
-
"url": "git+https://github.com/
|
|
54
|
+
"url": "git+https://github.com/iotaledger/verifiable-storage/issues"
|
|
55
55
|
},
|
|
56
56
|
"homepage": "https://twindev.org"
|
|
57
57
|
}
|