@twin.org/verifiable-storage-models 0.0.3-next.1 → 0.0.3-next.11
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/dist/es/models/verifiableStorageContexts.js +10 -2
- package/dist/es/models/verifiableStorageContexts.js.map +1 -1
- package/dist/types/models/verifiableStorageContexts.d.ts +10 -2
- package/docs/changelog.md +142 -61
- 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 +15 -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
|
|
|
@@ -6,8 +6,16 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const VerifiableStorageContexts = {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The canonical RDF namespace URI for Verifiable Storage.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
Namespace: "https://schema.twindev.org/verifiable-storage/",
|
|
12
|
+
/**
|
|
13
|
+
* The value to use in context for Verifiable Storage.
|
|
14
|
+
*/
|
|
15
|
+
Context: "https://schema.twindev.org/verifiable-storage/",
|
|
16
|
+
/**
|
|
17
|
+
* The JSON-LD Context URL for Verifiable Storage.
|
|
18
|
+
*/
|
|
19
|
+
JsonLdContext: "https://schema.twindev.org/verifiable-storage/types.jsonld"
|
|
12
20
|
};
|
|
13
21
|
//# sourceMappingURL=verifiableStorageContexts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifiableStorageContexts.js","sourceRoot":"","sources":["../../../src/models/verifiableStorageContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"verifiableStorageContexts.js","sourceRoot":"","sources":["../../../src/models/verifiableStorageContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC;;OAEG;IACH,SAAS,EAAE,gDAAgD;IAE3D;;OAEG;IACH,OAAO,EAAE,gDAAgD;IAEzD;;OAEG;IACH,aAAa,EAAE,4DAA4D;CAClE,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts of verifiable storage data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const VerifiableStorageContexts = {\n\t/**\n\t * The canonical RDF namespace URI for Verifiable Storage.\n\t */\n\tNamespace: \"https://schema.twindev.org/verifiable-storage/\",\n\n\t/**\n\t * The value to use in context for Verifiable Storage.\n\t */\n\tContext: \"https://schema.twindev.org/verifiable-storage/\",\n\n\t/**\n\t * The JSON-LD Context URL for Verifiable Storage.\n\t */\n\tJsonLdContext: \"https://schema.twindev.org/verifiable-storage/types.jsonld\"\n} as const;\n\n/**\n * The contexts of verifiable storage data.\n */\nexport type VerifiableStorageContexts =\n\t(typeof VerifiableStorageContexts)[keyof typeof VerifiableStorageContexts];\n"]}
|
|
@@ -3,9 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const VerifiableStorageContexts: {
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
6
|
+
* The canonical RDF namespace URI for Verifiable Storage.
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly Namespace: "https://schema.twindev.org/verifiable-storage/";
|
|
9
|
+
/**
|
|
10
|
+
* The value to use in context for Verifiable Storage.
|
|
11
|
+
*/
|
|
12
|
+
readonly Context: "https://schema.twindev.org/verifiable-storage/";
|
|
13
|
+
/**
|
|
14
|
+
* The JSON-LD Context URL for Verifiable Storage.
|
|
15
|
+
*/
|
|
16
|
+
readonly JsonLdContext: "https://schema.twindev.org/verifiable-storage/types.jsonld";
|
|
9
17
|
};
|
|
10
18
|
/**
|
|
11
19
|
* The contexts of verifiable storage data.
|
package/docs/changelog.md
CHANGED
|
@@ -1,195 +1,276 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0.3-next.
|
|
3
|
+
## [0.0.3-next.11](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.10...verifiable-storage-models-v0.0.3-next.11) (2026-05-20)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Features
|
|
7
7
|
|
|
8
|
-
*
|
|
9
|
-
* add support for allowlist ([#17](https://github.com/twinfoundation/verifiable-storage/issues/17)) ([9341ea6](https://github.com/twinfoundation/verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
10
|
-
* add validate-locales ([326384f](https://github.com/twinfoundation/verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
11
|
-
* eslint migration to flat config ([b0a0b85](https://github.com/twinfoundation/verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
12
|
-
* update allow list name case ([278a787](https://github.com/twinfoundation/verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
13
|
-
* update dependencies ([a16a772](https://github.com/twinfoundation/verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
14
|
-
* update descriptions ([696be4d](https://github.com/twinfoundation/verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
15
|
-
* update framework core ([efa612e](https://github.com/twinfoundation/verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
16
|
-
* 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))
|
|
17
|
-
* use shared store mechanism ([#8](https://github.com/twinfoundation/verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/twinfoundation/verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
8
|
+
* update dependencies ([44f2a99](https://github.com/iotaledger/twin-verifiable-storage/commit/44f2a99954ab54ecc0726c8c984bccffc3eaa433))
|
|
18
9
|
|
|
19
|
-
## [0.0.
|
|
10
|
+
## [0.0.3-next.10](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-models-v0.0.3-next.9...verifiable-storage-models-v0.0.3-next.10) (2026-05-12)
|
|
20
11
|
|
|
21
12
|
|
|
22
13
|
### Features
|
|
23
14
|
|
|
24
|
-
*
|
|
15
|
+
* typescript 6 update ([66823cf](https://github.com/iotaledger/twin-verifiable-storage/commit/66823cf7a6522622c889afdc49005d016e8574fe))
|
|
25
16
|
|
|
26
|
-
## [0.0.
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Miscellaneous Chores
|
|
21
|
+
|
|
22
|
+
* **verifiable-storage-models:** Synchronize repo versions
|
|
23
|
+
|
|
24
|
+
## [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)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Miscellaneous Chores
|
|
28
|
+
|
|
29
|
+
* **verifiable-storage-models:** Synchronize repo versions
|
|
30
|
+
|
|
31
|
+
## [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)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* add context id features ([#40](https://github.com/iotaledger/twin-verifiable-storage/issues/40)) ([260b96a](https://github.com/iotaledger/twin-verifiable-storage/commit/260b96a8b7d1a26c6c415f2de12e09671ee70220))
|
|
37
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
38
|
+
* add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
39
|
+
* context updates ([#44](https://github.com/iotaledger/twin-verifiable-storage/issues/44)) ([2f92558](https://github.com/iotaledger/twin-verifiable-storage/commit/2f9255835eddc9620268b6eb3bba723bc38a0591))
|
|
40
|
+
* eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
41
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
42
|
+
* update context and namespaces ([#42](https://github.com/iotaledger/twin-verifiable-storage/issues/42)) ([7863833](https://github.com/iotaledger/twin-verifiable-storage/commit/78638336c5cd7dce0c53aaf598aef603fbed7a9e))
|
|
43
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
44
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
45
|
+
* update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
46
|
+
* 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))
|
|
47
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
48
|
+
|
|
49
|
+
## [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)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Miscellaneous Chores
|
|
53
|
+
|
|
54
|
+
* **verifiable-storage-models:** Synchronize repo versions
|
|
55
|
+
|
|
56
|
+
## [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)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Miscellaneous Chores
|
|
60
|
+
|
|
61
|
+
* **verifiable-storage-models:** Synchronize repo versions
|
|
62
|
+
|
|
63
|
+
## [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)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Miscellaneous Chores
|
|
67
|
+
|
|
68
|
+
* **verifiable-storage-models:** Synchronize repo versions
|
|
69
|
+
|
|
70
|
+
## [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)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Features
|
|
74
|
+
|
|
75
|
+
* context updates ([#44](https://github.com/iotaledger/twin-verifiable-storage/issues/44)) ([2f92558](https://github.com/iotaledger/twin-verifiable-storage/commit/2f9255835eddc9620268b6eb3bba723bc38a0591))
|
|
76
|
+
|
|
77
|
+
## [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)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Features
|
|
81
|
+
|
|
82
|
+
* update context and namespaces ([#42](https://github.com/iotaledger/twin-verifiable-storage/issues/42)) ([7863833](https://github.com/iotaledger/twin-verifiable-storage/commit/78638336c5cd7dce0c53aaf598aef603fbed7a9e))
|
|
83
|
+
|
|
84
|
+
## [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)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Features
|
|
88
|
+
|
|
89
|
+
* add context id features ([#40](https://github.com/iotaledger/twin-verifiable-storage/issues/40)) ([260b96a](https://github.com/iotaledger/twin-verifiable-storage/commit/260b96a8b7d1a26c6c415f2de12e09671ee70220))
|
|
90
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
91
|
+
* add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
92
|
+
* eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
93
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
94
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
95
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
96
|
+
* update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
97
|
+
* 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))
|
|
98
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
99
|
+
|
|
100
|
+
## [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)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Features
|
|
104
|
+
|
|
105
|
+
* add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
106
|
+
|
|
107
|
+
## [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)
|
|
27
108
|
|
|
28
109
|
|
|
29
110
|
### Features
|
|
30
111
|
|
|
31
|
-
* eslint migration to flat config ([b0a0b85](https://github.com/
|
|
112
|
+
* eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
32
113
|
|
|
33
|
-
## [0.0.2-next.4](https://github.com/
|
|
114
|
+
## [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)
|
|
34
115
|
|
|
35
116
|
|
|
36
117
|
### Features
|
|
37
118
|
|
|
38
|
-
* update framework core ([efa612e](https://github.com/
|
|
119
|
+
* update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
39
120
|
|
|
40
|
-
## [0.0.2-next.3](https://github.com/
|
|
121
|
+
## [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)
|
|
41
122
|
|
|
42
123
|
|
|
43
124
|
### Miscellaneous Chores
|
|
44
125
|
|
|
45
126
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
46
127
|
|
|
47
|
-
## [0.0.2-next.2](https://github.com/
|
|
128
|
+
## [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)
|
|
48
129
|
|
|
49
130
|
|
|
50
131
|
### Features
|
|
51
132
|
|
|
52
|
-
* add support for allowlist ([#17](https://github.com/
|
|
53
|
-
* update allow list name case ([278a787](https://github.com/
|
|
54
|
-
* update dependencies ([a16a772](https://github.com/
|
|
55
|
-
* update descriptions ([696be4d](https://github.com/
|
|
56
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
57
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
133
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
134
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
135
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
136
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
137
|
+
* 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))
|
|
138
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
58
139
|
|
|
59
|
-
## [0.0.2-next.0](https://github.com/
|
|
140
|
+
## [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)
|
|
60
141
|
|
|
61
142
|
|
|
62
143
|
### Features
|
|
63
144
|
|
|
64
|
-
* add support for allowlist ([#17](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
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
69
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
145
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
146
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
147
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
148
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
149
|
+
* 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))
|
|
150
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
70
151
|
|
|
71
152
|
## 0.0.1 (2025-07-09)
|
|
72
153
|
|
|
73
154
|
|
|
74
155
|
### Features
|
|
75
156
|
|
|
76
|
-
* release to production ([6ce6744](https://github.com/
|
|
157
|
+
* release to production ([6ce6744](https://github.com/iotaledger/twin-verifiable-storage/commit/6ce6744c124cca586c1ef0552624378d1207578d))
|
|
77
158
|
|
|
78
|
-
## [0.0.1-next.17](https://github.com/
|
|
159
|
+
## [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)
|
|
79
160
|
|
|
80
161
|
|
|
81
162
|
### Miscellaneous Chores
|
|
82
163
|
|
|
83
164
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
84
165
|
|
|
85
|
-
## [0.0.1-next.16](https://github.com/
|
|
166
|
+
## [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)
|
|
86
167
|
|
|
87
168
|
|
|
88
169
|
### Features
|
|
89
170
|
|
|
90
|
-
* update dependencies ([a16a772](https://github.com/
|
|
171
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
91
172
|
|
|
92
|
-
## [0.0.1-next.15](https://github.com/
|
|
173
|
+
## [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)
|
|
93
174
|
|
|
94
175
|
|
|
95
176
|
### Miscellaneous Chores
|
|
96
177
|
|
|
97
178
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
98
179
|
|
|
99
|
-
## [0.0.1-next.14](https://github.com/
|
|
180
|
+
## [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)
|
|
100
181
|
|
|
101
182
|
|
|
102
183
|
### Features
|
|
103
184
|
|
|
104
|
-
* add support for allowlist ([#17](https://github.com/
|
|
105
|
-
* update allow list name case ([278a787](https://github.com/
|
|
106
|
-
* update descriptions ([696be4d](https://github.com/
|
|
107
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
108
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
185
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
186
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
187
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
188
|
+
* 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))
|
|
189
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
109
190
|
|
|
110
|
-
## [0.0.1-next.13](https://github.com/
|
|
191
|
+
## [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)
|
|
111
192
|
|
|
112
193
|
|
|
113
194
|
### Miscellaneous Chores
|
|
114
195
|
|
|
115
196
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
116
197
|
|
|
117
|
-
## [0.0.1-next.12](https://github.com/
|
|
198
|
+
## [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)
|
|
118
199
|
|
|
119
200
|
|
|
120
201
|
### Features
|
|
121
202
|
|
|
122
|
-
* update allow list name case ([278a787](https://github.com/
|
|
203
|
+
* update allow list name case ([278a787](https://github.com/iotaledger/twin-verifiable-storage/commit/278a787e96864c95438f87adaac6f2fc8b6bebcd))
|
|
123
204
|
|
|
124
|
-
## [0.0.1-next.11](https://github.com/
|
|
205
|
+
## [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)
|
|
125
206
|
|
|
126
207
|
|
|
127
208
|
### Miscellaneous Chores
|
|
128
209
|
|
|
129
210
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
130
211
|
|
|
131
|
-
## [0.0.1-next.10](https://github.com/
|
|
212
|
+
## [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)
|
|
132
213
|
|
|
133
214
|
|
|
134
215
|
### Features
|
|
135
216
|
|
|
136
|
-
* add support for allowlist ([#17](https://github.com/
|
|
217
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
137
218
|
|
|
138
|
-
## [0.0.1-next.9](https://github.com/
|
|
219
|
+
## [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)
|
|
139
220
|
|
|
140
221
|
|
|
141
222
|
### Miscellaneous Chores
|
|
142
223
|
|
|
143
224
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
144
225
|
|
|
145
|
-
## [0.0.1-next.8](https://github.com/
|
|
226
|
+
## [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)
|
|
146
227
|
|
|
147
228
|
|
|
148
229
|
### Miscellaneous Chores
|
|
149
230
|
|
|
150
231
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
151
232
|
|
|
152
|
-
## [0.0.1-next.7](https://github.com/
|
|
233
|
+
## [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)
|
|
153
234
|
|
|
154
235
|
|
|
155
236
|
### Miscellaneous Chores
|
|
156
237
|
|
|
157
238
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
158
239
|
|
|
159
|
-
## [0.0.1-next.6](https://github.com/
|
|
240
|
+
## [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)
|
|
160
241
|
|
|
161
242
|
|
|
162
243
|
### Miscellaneous Chores
|
|
163
244
|
|
|
164
245
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
165
246
|
|
|
166
|
-
## [0.0.1-next.5](https://github.com/
|
|
247
|
+
## [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)
|
|
167
248
|
|
|
168
249
|
|
|
169
250
|
### Miscellaneous Chores
|
|
170
251
|
|
|
171
252
|
* **verifiable-storage-models:** Synchronize repo versions
|
|
172
253
|
|
|
173
|
-
## [0.0.1-next.4](https://github.com/
|
|
254
|
+
## [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)
|
|
174
255
|
|
|
175
256
|
|
|
176
257
|
### Features
|
|
177
258
|
|
|
178
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
259
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
179
260
|
|
|
180
|
-
## [0.0.1-next.3](https://github.com/
|
|
261
|
+
## [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)
|
|
181
262
|
|
|
182
263
|
|
|
183
264
|
### Features
|
|
184
265
|
|
|
185
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
266
|
+
* 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))
|
|
186
267
|
|
|
187
|
-
## [0.0.1-next.2](https://github.com/
|
|
268
|
+
## [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)
|
|
188
269
|
|
|
189
270
|
|
|
190
271
|
### Features
|
|
191
272
|
|
|
192
|
-
* update descriptions ([696be4d](https://github.com/
|
|
273
|
+
* update descriptions ([696be4d](https://github.com/iotaledger/twin-verifiable-storage/commit/696be4d253183375d4c96e5b74eca0c814fe2fd1))
|
|
193
274
|
|
|
194
275
|
## v0.0.1-next.1
|
|
195
276
|
|
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,8 +6,20 @@ The contexts of verifiable storage data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Namespace {#namespace}
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **Namespace**: `"https://schema.twindev.org/verifiable-storage/"` = `"https://schema.twindev.org/verifiable-storage/"`
|
|
12
12
|
|
|
13
|
-
The
|
|
13
|
+
The canonical RDF namespace URI for Verifiable Storage.
|
|
14
|
+
|
|
15
|
+
### Context {#context}
|
|
16
|
+
|
|
17
|
+
> `readonly` **Context**: `"https://schema.twindev.org/verifiable-storage/"` = `"https://schema.twindev.org/verifiable-storage/"`
|
|
18
|
+
|
|
19
|
+
The value to use in context for Verifiable Storage.
|
|
20
|
+
|
|
21
|
+
### JsonLdContext {#jsonldcontext}
|
|
22
|
+
|
|
23
|
+
> `readonly` **JsonLdContext**: `"https://schema.twindev.org/verifiable-storage/types.jsonld"` = `"https://schema.twindev.org/verifiable-storage/types.jsonld"`
|
|
24
|
+
|
|
25
|
+
The JSON-LD Context URL for Verifiable Storage.
|
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.11",
|
|
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
|
}
|