@twin.org/verifiable-storage-rest-client 0.0.2-next.6 → 0.0.3-next.10

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 CHANGED
@@ -1,6 +1,8 @@
1
1
  # TWIN Verifiable Storage REST Client
2
2
 
3
- Verifiable Storage contract implementation which can connect to REST endpoints.
3
+ This package provides a REST client for calling verifiable storage service endpoints from external applications and services. It wraps API requests and responses in the shared model contracts so consumers can integrate with predictable request shapes and result handling.
4
+
5
+ It is intended for client-side or service-to-service use cases where verifiable storage operations are accessed over HTTP rather than through direct connector invocation.
4
6
 
5
7
  ## Installation
6
8
 
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export * from "./verifiableStorageRestClient.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,kCAAkC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./verifiableStorageRestClient.js\";\n"]}
@@ -1,23 +1,29 @@
1
- import { BaseRestClient } from '@twin.org/api-core';
2
- import { Guards, Converter, Urn, Is } from '@twin.org/core';
3
-
4
1
  // Copyright 2024 IOTA Stiftung.
5
2
  // SPDX-License-Identifier: Apache-2.0.
3
+ import { BaseRestClient } from "@twin.org/api-core";
4
+ import { Converter, Guards, Is, Urn } from "@twin.org/core";
6
5
  /**
7
6
  * Client for performing Verifiable Storage through to REST endpoints.
8
7
  */
9
- class VerifiableStorageRestClient extends BaseRestClient {
8
+ export class VerifiableStorageRestClient extends BaseRestClient {
10
9
  /**
11
10
  * Runtime name for the class.
12
11
  */
13
12
  static CLASS_NAME = "VerifiableStorageRestClient";
14
13
  /**
15
- * Create a new instance of VerifiableStorageClient.
14
+ * Create a new instance of VerifiableStorageRestClient.
16
15
  * @param config The configuration for the client.
17
16
  */
18
17
  constructor(config) {
19
18
  super("VerifiableStorageRestClient", config, "verifiable");
20
19
  }
20
+ /**
21
+ * Returns the class name of the component.
22
+ * @returns The class name of the component.
23
+ */
24
+ className() {
25
+ return VerifiableStorageRestClient.CLASS_NAME;
26
+ }
21
27
  /**
22
28
  * Create a verifiable storage item.
23
29
  * @param data The data for the verifiable storage item.
@@ -92,5 +98,4 @@ class VerifiableStorageRestClient extends BaseRestClient {
92
98
  });
93
99
  }
94
100
  }
95
-
96
- export { VerifiableStorageRestClient };
101
+ //# sourceMappingURL=verifiableStorageRestClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifiableStorageRestClient.js","sourceRoot":"","sources":["../../src/verifiableStorageRestClient.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAc5D;;GAEG;AACH,MAAM,OAAO,2BACZ,SAAQ,cAAc;IAGtB;;OAEG;IACI,MAAM,CAAU,UAAU,iCAAiD;IAElF;;;OAGG;IACH,YAAY,MAA6B;QACxC,KAAK,gCAAwC,MAAM,EAAE,YAAY,CAAC,CAAC;IACpE,CAAC;IAED;;;OAGG;IACI,SAAS;QACf,OAAO,2BAA2B,CAAC,UAAU,CAAC;IAC/C,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,MAAM,CAClB,IAAgB,EAChB,SAAoB,EACpB,OAEC;QAKD,MAAM,CAAC,UAAU,CAAC,2BAA2B,CAAC,UAAU,UAAgB,IAAI,CAAC,CAAC;QAE9E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAG/B,GAAG,EAAE,MAAM,EAAE;YACd,IAAI,EAAE;gBACL,IAAI,EAAE,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC;gBACnC,SAAS;gBACT,gBAAgB,EAAE,OAAO,EAAE,gBAAgB;aAC3C;SACD,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACtB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CAClB,EAAU,EACV,IAAiB,EACjB,SAAoB;QAEpB,GAAG,CAAC,KAAK,CAAC,2BAA2B,CAAC,UAAU,QAAc,EAAE,CAAC,CAAC;QAElE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAG/B,MAAM,EAAE,KAAK,EAAE;YAChB,UAAU,EAAE;gBACX,EAAE;aACF;YACD,IAAI,EAAE;gBACL,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;gBACrE,SAAS;aACT;SACD,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACtB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACf,EAAU,EACV,OAAkC;QAKlC,MAAM,CAAC,WAAW,CAAC,2BAA2B,CAAC,UAAU,QAAc,EAAE,CAAC,CAAC;QAE3E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAChC,MAAM,EACN,KAAK,EACL;YACC,UAAU,EAAE;gBACX,EAAE;aACF;YACD,IAAI,EAAE,OAAO;SACb,CACD,CAAC;QAEF,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAE1F,OAAO;YACN,IAAI;YACJ,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO;SAC9B,CAAC;IACH,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,MAAM,CAAC,EAAU;QAC7B,GAAG,CAAC,KAAK,CAAC,2BAA2B,CAAC,UAAU,QAAc,EAAE,CAAC,CAAC;QAElE,MAAM,IAAI,CAAC,KAAK,CAAsD,MAAM,EAAE,QAAQ,EAAE;YACvF,UAAU,EAAE;gBACX,EAAE;aACF;SACD,CAAC,CAAC;IACJ,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { BaseRestClient } from \"@twin.org/api-core\";\nimport type { IBaseRestClientConfig, INoContentResponse } from \"@twin.org/api-models\";\nimport { Converter, Guards, Is, Urn } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport { nameof } from \"@twin.org/nameof\";\nimport type {\n\tIVerifiableStorageRemoveRequest,\n\tIVerifiableStorageComponent,\n\tIVerifiableStorageCreateRequest,\n\tIVerifiableStorageCreateResponse,\n\tIVerifiableStorageGetRequest,\n\tIVerifiableStorageGetResponse,\n\tIVerifiableStorageUpdateRequest,\n\tIVerifiableStorageUpdateResponse\n} from \"@twin.org/verifiable-storage-models\";\n\n/**\n * Client for performing Verifiable Storage through to REST endpoints.\n */\nexport class VerifiableStorageRestClient\n\textends BaseRestClient\n\timplements IVerifiableStorageComponent\n{\n\t/**\n\t * Runtime name for the class.\n\t */\n\tpublic static readonly CLASS_NAME: string = nameof<VerifiableStorageRestClient>();\n\n\t/**\n\t * Create a new instance of VerifiableStorageRestClient.\n\t * @param config The configuration for the client.\n\t */\n\tconstructor(config: IBaseRestClientConfig) {\n\t\tsuper(nameof<VerifiableStorageRestClient>(), config, \"verifiable\");\n\t}\n\n\t/**\n\t * Returns the class name of the component.\n\t * @returns The class name of the component.\n\t */\n\tpublic className(): string {\n\t\treturn VerifiableStorageRestClient.CLASS_NAME;\n\t}\n\n\t/**\n\t * Create a verifiable storage item.\n\t * @param data The data for the verifiable storage item.\n\t * @param allowList The list of identities that are allowed to modify the item.\n\t * @param options Additional options for creating the item.\n\t * @param options.maxAllowListSize The maximum size of the allow list.\n\t * @returns The id of the created verifiable storage item.\n\t */\n\tpublic async create(\n\t\tdata: Uint8Array,\n\t\tallowList?: string[],\n\t\toptions?: {\n\t\t\tmaxAllowListSize?: number;\n\t\t}\n\t): Promise<{\n\t\tid: string;\n\t\treceipt: IJsonLdNodeObject;\n\t}> {\n\t\tGuards.uint8Array(VerifiableStorageRestClient.CLASS_NAME, nameof(data), data);\n\n\t\tconst response = await this.fetch<\n\t\t\tIVerifiableStorageCreateRequest,\n\t\t\tIVerifiableStorageCreateResponse\n\t\t>(\"/\", \"POST\", {\n\t\t\tbody: {\n\t\t\t\tdata: Converter.bytesToBase64(data),\n\t\t\t\tallowList,\n\t\t\t\tmaxAllowListSize: options?.maxAllowListSize\n\t\t\t}\n\t\t});\n\n\t\treturn response.body;\n\t}\n\n\t/**\n\t * Update an item in verifiable storage.\n\t * @param id The id of the item to update.\n\t * @param data The data to store, optional if updating the allow list.\n\t * @param allowList Updated list of identities that are allowed to modify the item.\n\t * @returns The updated receipt.\n\t */\n\tpublic async update(\n\t\tid: string,\n\t\tdata?: Uint8Array,\n\t\tallowList?: string[]\n\t): Promise<IJsonLdNodeObject> {\n\t\tUrn.guard(VerifiableStorageRestClient.CLASS_NAME, nameof(id), id);\n\n\t\tconst response = await this.fetch<\n\t\t\tIVerifiableStorageUpdateRequest,\n\t\t\tIVerifiableStorageUpdateResponse\n\t\t>(\"/:id\", \"PUT\", {\n\t\t\tpathParams: {\n\t\t\t\tid\n\t\t\t},\n\t\t\tbody: {\n\t\t\t\tdata: Is.uint8Array(data) ? Converter.bytesToBase64(data) : undefined,\n\t\t\t\tallowList\n\t\t\t}\n\t\t});\n\n\t\treturn response.body;\n\t}\n\n\t/**\n\t * Get an verifiable storage item.\n\t * @param id The id of the verifiable storage item to get.\n\t * @param options Additional options for getting the verifiable storage item.\n\t * @param options.includeData Should the data be included in the response, defaults to true.\n\t * @returns The data for the verifiable storage item.\n\t */\n\tpublic async get(\n\t\tid: string,\n\t\toptions?: { includeData: boolean }\n\t): Promise<{\n\t\tdata?: Uint8Array;\n\t\treceipt: IJsonLdNodeObject;\n\t}> {\n\t\tGuards.stringValue(VerifiableStorageRestClient.CLASS_NAME, nameof(id), id);\n\n\t\tconst response = await this.fetch<IVerifiableStorageGetRequest, IVerifiableStorageGetResponse>(\n\t\t\t\"/:id\",\n\t\t\t\"GET\",\n\t\t\t{\n\t\t\t\tpathParams: {\n\t\t\t\t\tid\n\t\t\t\t},\n\t\t\t\tbody: options\n\t\t\t}\n\t\t);\n\n\t\tconst data = response.body.data ? Converter.base64ToBytes(response.body.data) : undefined;\n\n\t\treturn {\n\t\t\tdata,\n\t\t\treceipt: response.body.receipt\n\t\t};\n\t}\n\n\t/**\n\t * Remove a verifiable storage item.\n\t * @param id The id of the verifiable storage item to remove.\n\t * @returns Nothing.\n\t */\n\tpublic async remove(id: string): Promise<void> {\n\t\tUrn.guard(VerifiableStorageRestClient.CLASS_NAME, nameof(id), id);\n\n\t\tawait this.fetch<IVerifiableStorageRemoveRequest, INoContentResponse>(\"/:id\", \"DELETE\", {\n\t\t\tpathParams: {\n\t\t\t\tid\n\t\t\t}\n\t\t});\n\t}\n}\n"]}
@@ -1 +1 @@
1
- export * from "./verifiableStorageRestClient";
1
+ export * from "./verifiableStorageRestClient.js";
@@ -11,10 +11,15 @@ export declare class VerifiableStorageRestClient extends BaseRestClient implemen
11
11
  */
12
12
  static readonly CLASS_NAME: string;
13
13
  /**
14
- * Create a new instance of VerifiableStorageClient.
14
+ * Create a new instance of VerifiableStorageRestClient.
15
15
  * @param config The configuration for the client.
16
16
  */
17
17
  constructor(config: IBaseRestClientConfig);
18
+ /**
19
+ * Returns the class name of the component.
20
+ * @returns The class name of the component.
21
+ */
22
+ className(): string;
18
23
  /**
19
24
  * Create a verifiable storage item.
20
25
  * @param data The data for the verifiable storage item.
package/docs/changelog.md CHANGED
@@ -1,11 +1,165 @@
1
- # @twin.org/verifiable-storage-rest-client - Changelog
1
+ # Changelog
2
2
 
3
- ## [0.0.2-next.6](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.5...verifiable-storage-rest-client-v0.0.2-next.6) (2025-10-09)
3
+ ## [0.0.3-next.10](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.9...verifiable-storage-rest-client-v0.0.3-next.10) (2026-05-12)
4
4
 
5
5
 
6
6
  ### Features
7
7
 
8
- * add validate-locales ([326384f](https://github.com/twinfoundation/verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
8
+ * typescript 6 update ([66823cf](https://github.com/iotaledger/twin-verifiable-storage/commit/66823cf7a6522622c889afdc49005d016e8574fe))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/verifiable-storage-models bumped from 0.0.3-next.9 to 0.0.3-next.10
16
+
17
+ ## [0.0.3-next.9](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.8...verifiable-storage-rest-client-v0.0.3-next.9) (2026-05-08)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * **verifiable-storage-rest-client:** Synchronize repo versions
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @twin.org/verifiable-storage-models bumped from 0.0.3-next.8 to 0.0.3-next.9
30
+
31
+ ## [0.0.3-next.8](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.7...verifiable-storage-rest-client-v0.0.3-next.8) (2026-03-03)
32
+
33
+
34
+ ### Miscellaneous Chores
35
+
36
+ * **verifiable-storage-rest-client:** Synchronize repo versions
37
+
38
+
39
+ ### Dependencies
40
+
41
+ * The following workspace dependencies were updated
42
+ * dependencies
43
+ * @twin.org/verifiable-storage-models bumped from 0.0.3-next.7 to 0.0.3-next.8
44
+
45
+ ## [0.0.3-next.7](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.6...verifiable-storage-rest-client-v0.0.3-next.7) (2026-02-25)
46
+
47
+
48
+ ### Features
49
+
50
+ * add context id features ([#40](https://github.com/iotaledger/twin-verifiable-storage/issues/40)) ([260b96a](https://github.com/iotaledger/twin-verifiable-storage/commit/260b96a8b7d1a26c6c415f2de12e09671ee70220))
51
+ * add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
52
+ * add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
53
+ * eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
54
+ * update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
55
+ * update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
56
+ * 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))
57
+ * 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
+
59
+
60
+ ### Dependencies
61
+
62
+ * The following workspace dependencies were updated
63
+ * dependencies
64
+ * @twin.org/verifiable-storage-models bumped from 0.0.3-next.6 to 0.0.3-next.7
65
+
66
+ ## [0.0.3-next.6](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.5...verifiable-storage-rest-client-v0.0.3-next.6) (2026-02-25)
67
+
68
+
69
+ ### Miscellaneous Chores
70
+
71
+ * **verifiable-storage-rest-client:** Synchronize repo versions
72
+
73
+
74
+ ### Dependencies
75
+
76
+ * The following workspace dependencies were updated
77
+ * dependencies
78
+ * @twin.org/verifiable-storage-models bumped from 0.0.3-next.5 to 0.0.3-next.6
79
+
80
+ ## [0.0.3-next.5](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.4...verifiable-storage-rest-client-v0.0.3-next.5) (2026-02-09)
81
+
82
+
83
+ ### Miscellaneous Chores
84
+
85
+ * **verifiable-storage-rest-client:** Synchronize repo versions
86
+
87
+
88
+ ### Dependencies
89
+
90
+ * The following workspace dependencies were updated
91
+ * dependencies
92
+ * @twin.org/verifiable-storage-models bumped from 0.0.3-next.4 to 0.0.3-next.5
93
+
94
+ ## [0.0.3-next.4](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.3...verifiable-storage-rest-client-v0.0.3-next.4) (2026-02-09)
95
+
96
+
97
+ ### Miscellaneous Chores
98
+
99
+ * **verifiable-storage-rest-client:** Synchronize repo versions
100
+
101
+
102
+ ### Dependencies
103
+
104
+ * The following workspace dependencies were updated
105
+ * dependencies
106
+ * @twin.org/verifiable-storage-models bumped from 0.0.3-next.3 to 0.0.3-next.4
107
+
108
+ ## [0.0.3-next.3](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.2...verifiable-storage-rest-client-v0.0.3-next.3) (2026-01-21)
109
+
110
+
111
+ ### Miscellaneous Chores
112
+
113
+ * **verifiable-storage-rest-client:** Synchronize repo versions
114
+
115
+
116
+ ### Dependencies
117
+
118
+ * The following workspace dependencies were updated
119
+ * dependencies
120
+ * @twin.org/verifiable-storage-models bumped from 0.0.3-next.2 to 0.0.3-next.3
121
+
122
+ ## [0.0.3-next.2](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.1...verifiable-storage-rest-client-v0.0.3-next.2) (2026-01-14)
123
+
124
+
125
+ ### Miscellaneous Chores
126
+
127
+ * **verifiable-storage-rest-client:** Synchronize repo versions
128
+
129
+
130
+ ### Dependencies
131
+
132
+ * The following workspace dependencies were updated
133
+ * dependencies
134
+ * @twin.org/verifiable-storage-models bumped from 0.0.3-next.1 to 0.0.3-next.2
135
+
136
+ ## [0.0.3-next.1](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.0...verifiable-storage-rest-client-v0.0.3-next.1) (2025-11-12)
137
+
138
+
139
+ ### Features
140
+
141
+ * add context id features ([#40](https://github.com/iotaledger/twin-verifiable-storage/issues/40)) ([260b96a](https://github.com/iotaledger/twin-verifiable-storage/commit/260b96a8b7d1a26c6c415f2de12e09671ee70220))
142
+ * add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
143
+ * add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
144
+ * eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
145
+ * update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
146
+ * update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
147
+ * 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))
148
+ * use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
149
+
150
+
151
+ ### Dependencies
152
+
153
+ * The following workspace dependencies were updated
154
+ * dependencies
155
+ * @twin.org/verifiable-storage-models bumped from 0.0.3-next.0 to 0.0.3-next.1
156
+
157
+ ## [0.0.2-next.6](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.5...verifiable-storage-rest-client-v0.0.2-next.6) (2025-10-09)
158
+
159
+
160
+ ### Features
161
+
162
+ * add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
9
163
 
10
164
 
11
165
  ### Dependencies
@@ -14,12 +168,12 @@
14
168
  * dependencies
15
169
  * @twin.org/verifiable-storage-models bumped from 0.0.2-next.5 to 0.0.2-next.6
16
170
 
17
- ## [0.0.2-next.5](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.4...verifiable-storage-rest-client-v0.0.2-next.5) (2025-09-26)
171
+ ## [0.0.2-next.5](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.4...verifiable-storage-rest-client-v0.0.2-next.5) (2025-09-26)
18
172
 
19
173
 
20
174
  ### Features
21
175
 
22
- * eslint migration to flat config ([b0a0b85](https://github.com/twinfoundation/verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
176
+ * eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
23
177
 
24
178
 
25
179
  ### Dependencies
@@ -28,12 +182,12 @@
28
182
  * dependencies
29
183
  * @twin.org/verifiable-storage-models bumped from 0.0.2-next.4 to 0.0.2-next.5
30
184
 
31
- ## [0.0.2-next.4](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.3...verifiable-storage-rest-client-v0.0.2-next.4) (2025-08-20)
185
+ ## [0.0.2-next.4](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.3...verifiable-storage-rest-client-v0.0.2-next.4) (2025-08-20)
32
186
 
33
187
 
34
188
  ### Features
35
189
 
36
- * update framework core ([efa612e](https://github.com/twinfoundation/verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
190
+ * update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
37
191
 
38
192
 
39
193
  ### Dependencies
@@ -42,7 +196,7 @@
42
196
  * dependencies
43
197
  * @twin.org/verifiable-storage-models bumped from 0.0.2-next.3 to 0.0.2-next.4
44
198
 
45
- ## [0.0.2-next.3](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.2...verifiable-storage-rest-client-v0.0.2-next.3) (2025-07-28)
199
+ ## [0.0.2-next.3](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.2...verifiable-storage-rest-client-v0.0.2-next.3) (2025-07-28)
46
200
 
47
201
 
48
202
  ### Miscellaneous Chores
@@ -56,15 +210,15 @@
56
210
  * dependencies
57
211
  * @twin.org/verifiable-storage-models bumped from 0.0.2-next.2 to 0.0.2-next.3
58
212
 
59
- ## [0.0.2-next.2](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.1...verifiable-storage-rest-client-v0.0.2-next.2) (2025-07-16)
213
+ ## [0.0.2-next.2](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.1...verifiable-storage-rest-client-v0.0.2-next.2) (2025-07-16)
60
214
 
61
215
 
62
216
  ### Features
63
217
 
64
- * add support for allowlist ([#17](https://github.com/twinfoundation/verifiable-storage/issues/17)) ([9341ea6](https://github.com/twinfoundation/verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
65
- * update dependencies ([a16a772](https://github.com/twinfoundation/verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
66
- * 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))
67
- * use shared store mechanism ([#8](https://github.com/twinfoundation/verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/twinfoundation/verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
218
+ * add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
219
+ * update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
220
+ * 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))
221
+ * use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
68
222
 
69
223
 
70
224
  ### Dependencies
@@ -73,15 +227,15 @@
73
227
  * dependencies
74
228
  * @twin.org/verifiable-storage-models bumped from 0.0.2-next.0 to 0.0.2-next.2
75
229
 
76
- ## [0.0.2-next.0](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.0...verifiable-storage-rest-client-v0.0.2-next.0) (2025-07-16)
230
+ ## [0.0.2-next.0](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.2-next.0...verifiable-storage-rest-client-v0.0.2-next.0) (2025-07-16)
77
231
 
78
232
 
79
233
  ### Features
80
234
 
81
- * add support for allowlist ([#17](https://github.com/twinfoundation/verifiable-storage/issues/17)) ([9341ea6](https://github.com/twinfoundation/verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
82
- * update dependencies ([a16a772](https://github.com/twinfoundation/verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
83
- * 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))
84
- * use shared store mechanism ([#8](https://github.com/twinfoundation/verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/twinfoundation/verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
235
+ * add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
236
+ * update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
237
+ * 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))
238
+ * use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
85
239
 
86
240
 
87
241
  ### Dependencies
@@ -95,7 +249,7 @@
95
249
 
96
250
  ### Features
97
251
 
98
- * release to production ([6ce6744](https://github.com/twinfoundation/verifiable-storage/commit/6ce6744c124cca586c1ef0552624378d1207578d))
252
+ * release to production ([6ce6744](https://github.com/iotaledger/twin-verifiable-storage/commit/6ce6744c124cca586c1ef0552624378d1207578d))
99
253
 
100
254
 
101
255
  ### Dependencies
@@ -104,7 +258,7 @@
104
258
  * dependencies
105
259
  * @twin.org/verifiable-storage-models bumped from ^0.0.0 to ^0.0.1
106
260
 
107
- ## [0.0.1-next.17](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.16...verifiable-storage-rest-client-v0.0.1-next.17) (2025-06-25)
261
+ ## [0.0.1-next.17](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.16...verifiable-storage-rest-client-v0.0.1-next.17) (2025-06-25)
108
262
 
109
263
 
110
264
  ### Miscellaneous Chores
@@ -118,12 +272,12 @@
118
272
  * dependencies
119
273
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.16 to 0.0.1-next.17
120
274
 
121
- ## [0.0.1-next.16](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.15...verifiable-storage-rest-client-v0.0.1-next.16) (2025-06-12)
275
+ ## [0.0.1-next.16](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.15...verifiable-storage-rest-client-v0.0.1-next.16) (2025-06-12)
122
276
 
123
277
 
124
278
  ### Features
125
279
 
126
- * update dependencies ([a16a772](https://github.com/twinfoundation/verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
280
+ * update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
127
281
 
128
282
 
129
283
  ### Dependencies
@@ -132,7 +286,7 @@
132
286
  * dependencies
133
287
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.15 to 0.0.1-next.16
134
288
 
135
- ## [0.0.1-next.15](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.14...verifiable-storage-rest-client-v0.0.1-next.15) (2025-06-03)
289
+ ## [0.0.1-next.15](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.14...verifiable-storage-rest-client-v0.0.1-next.15) (2025-06-03)
136
290
 
137
291
 
138
292
  ### Miscellaneous Chores
@@ -146,14 +300,14 @@
146
300
  * dependencies
147
301
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.14 to 0.0.1-next.15
148
302
 
149
- ## [0.0.1-next.14](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.13...verifiable-storage-rest-client-v0.0.1-next.14) (2025-05-28)
303
+ ## [0.0.1-next.14](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.13...verifiable-storage-rest-client-v0.0.1-next.14) (2025-05-28)
150
304
 
151
305
 
152
306
  ### Features
153
307
 
154
- * add support for allowlist ([#17](https://github.com/twinfoundation/verifiable-storage/issues/17)) ([9341ea6](https://github.com/twinfoundation/verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
155
- * 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))
156
- * use shared store mechanism ([#8](https://github.com/twinfoundation/verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/twinfoundation/verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
308
+ * add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
309
+ * 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))
310
+ * use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
157
311
 
158
312
 
159
313
  ### Dependencies
@@ -162,7 +316,7 @@
162
316
  * dependencies
163
317
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.13 to 0.0.1-next.14
164
318
 
165
- ## [0.0.1-next.13](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.12...verifiable-storage-rest-client-v0.0.1-next.13) (2025-05-28)
319
+ ## [0.0.1-next.13](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.12...verifiable-storage-rest-client-v0.0.1-next.13) (2025-05-28)
166
320
 
167
321
 
168
322
  ### Miscellaneous Chores
@@ -176,7 +330,7 @@
176
330
  * dependencies
177
331
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.12 to 0.0.1-next.13
178
332
 
179
- ## [0.0.1-next.12](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.11...verifiable-storage-rest-client-v0.0.1-next.12) (2025-05-28)
333
+ ## [0.0.1-next.12](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.11...verifiable-storage-rest-client-v0.0.1-next.12) (2025-05-28)
180
334
 
181
335
 
182
336
  ### Miscellaneous Chores
@@ -190,7 +344,7 @@
190
344
  * dependencies
191
345
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.11 to 0.0.1-next.12
192
346
 
193
- ## [0.0.1-next.11](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.10...verifiable-storage-rest-client-v0.0.1-next.11) (2025-05-22)
347
+ ## [0.0.1-next.11](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.10...verifiable-storage-rest-client-v0.0.1-next.11) (2025-05-22)
194
348
 
195
349
 
196
350
  ### Miscellaneous Chores
@@ -204,12 +358,12 @@
204
358
  * dependencies
205
359
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.10 to 0.0.1-next.11
206
360
 
207
- ## [0.0.1-next.10](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.9...verifiable-storage-rest-client-v0.0.1-next.10) (2025-05-22)
361
+ ## [0.0.1-next.10](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.9...verifiable-storage-rest-client-v0.0.1-next.10) (2025-05-22)
208
362
 
209
363
 
210
364
  ### Features
211
365
 
212
- * add support for allowlist ([#17](https://github.com/twinfoundation/verifiable-storage/issues/17)) ([9341ea6](https://github.com/twinfoundation/verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
366
+ * add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
213
367
 
214
368
 
215
369
  ### Dependencies
@@ -218,7 +372,7 @@
218
372
  * dependencies
219
373
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.9 to 0.0.1-next.10
220
374
 
221
- ## [0.0.1-next.9](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.8...verifiable-storage-rest-client-v0.0.1-next.9) (2025-05-06)
375
+ ## [0.0.1-next.9](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.8...verifiable-storage-rest-client-v0.0.1-next.9) (2025-05-06)
222
376
 
223
377
 
224
378
  ### Miscellaneous Chores
@@ -232,7 +386,7 @@
232
386
  * dependencies
233
387
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.8 to 0.0.1-next.9
234
388
 
235
- ## [0.0.1-next.8](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.7...verifiable-storage-rest-client-v0.0.1-next.8) (2025-04-24)
389
+ ## [0.0.1-next.8](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.7...verifiable-storage-rest-client-v0.0.1-next.8) (2025-04-24)
236
390
 
237
391
 
238
392
  ### Miscellaneous Chores
@@ -246,7 +400,7 @@
246
400
  * dependencies
247
401
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.7 to 0.0.1-next.8
248
402
 
249
- ## [0.0.1-next.7](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.6...verifiable-storage-rest-client-v0.0.1-next.7) (2025-04-23)
403
+ ## [0.0.1-next.7](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.6...verifiable-storage-rest-client-v0.0.1-next.7) (2025-04-23)
250
404
 
251
405
 
252
406
  ### Miscellaneous Chores
@@ -260,7 +414,7 @@
260
414
  * dependencies
261
415
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.6 to 0.0.1-next.7
262
416
 
263
- ## [0.0.1-next.6](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.5...verifiable-storage-rest-client-v0.0.1-next.6) (2025-04-23)
417
+ ## [0.0.1-next.6](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.5...verifiable-storage-rest-client-v0.0.1-next.6) (2025-04-23)
264
418
 
265
419
 
266
420
  ### Miscellaneous Chores
@@ -274,7 +428,7 @@
274
428
  * dependencies
275
429
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.5 to 0.0.1-next.6
276
430
 
277
- ## [0.0.1-next.5](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.4...verifiable-storage-rest-client-v0.0.1-next.5) (2025-04-23)
431
+ ## [0.0.1-next.5](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.4...verifiable-storage-rest-client-v0.0.1-next.5) (2025-04-23)
278
432
 
279
433
 
280
434
  ### Miscellaneous Chores
@@ -288,12 +442,12 @@
288
442
  * dependencies
289
443
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.4 to 0.0.1-next.5
290
444
 
291
- ## [0.0.1-next.4](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.3...verifiable-storage-rest-client-v0.0.1-next.4) (2025-04-17)
445
+ ## [0.0.1-next.4](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.3...verifiable-storage-rest-client-v0.0.1-next.4) (2025-04-17)
292
446
 
293
447
 
294
448
  ### Features
295
449
 
296
- * use shared store mechanism ([#8](https://github.com/twinfoundation/verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/twinfoundation/verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
450
+ * use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
297
451
 
298
452
 
299
453
  ### Dependencies
@@ -302,12 +456,12 @@
302
456
  * dependencies
303
457
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.3 to 0.0.1-next.4
304
458
 
305
- ## [0.0.1-next.3](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.2...verifiable-storage-rest-client-v0.0.1-next.3) (2025-04-17)
459
+ ## [0.0.1-next.3](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.2...verifiable-storage-rest-client-v0.0.1-next.3) (2025-04-17)
306
460
 
307
461
 
308
462
  ### Features
309
463
 
310
- * 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))
464
+ * 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))
311
465
 
312
466
 
313
467
  ### Dependencies
@@ -316,7 +470,7 @@
316
470
  * dependencies
317
471
  * @twin.org/verifiable-storage-models bumped from 0.0.1-next.2 to 0.0.1-next.3
318
472
 
319
- ## [0.0.1-next.2](https://github.com/twinfoundation/verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.1...verifiable-storage-rest-client-v0.0.1-next.2) (2025-03-28)
473
+ ## [0.0.1-next.2](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.1-next.1...verifiable-storage-rest-client-v0.0.1-next.2) (2025-03-28)
320
474
 
321
475
 
322
476
  ### Miscellaneous Chores
package/docs/examples.md CHANGED
@@ -1 +1,30 @@
1
- # @twin.org/verifiable-storage-rest-client - Examples
1
+ # Verifiable Storage REST Client Examples
2
+
3
+ This page provides TypeScript examples for using the REST client to interact with verifiable storage endpoints. These samples show how to create, retrieve, and update verifiable storage items over HTTP, making it easier to integrate verifiable storage into your applications.
4
+
5
+ ## VerifiableStorageRestClient
6
+
7
+ ```typescript
8
+ import { VerifiableStorageRestClient } from '@twin.org/verifiable-storage-rest-client';
9
+
10
+ const config = { baseUrl: 'https://api.example.com', apiKey: 'your-api-key' };
11
+ const client = new VerifiableStorageRestClient(config);
12
+
13
+ // Create a new verifiable storage item
14
+ const data = new TextEncoder().encode('REST data');
15
+ const allowList = ['did:example:controller1'];
16
+ const { id, receipt } = await client.create(data, allowList, { maxAllowListSize: 2 });
17
+ console.log(id); // Outputs the new item id
18
+ console.log(receipt); // Outputs the receipt object
19
+ ```
20
+
21
+ ```typescript
22
+ // Retrieve a verifiable storage item
23
+ const item = await client.get(id);
24
+ if (item.data) {
25
+ const decoded = new TextDecoder().decode(item.data);
26
+ console.log(decoded); // REST data
27
+ }
28
+ console.log(item.allowList); // Outputs the allow list
29
+ console.log(item.receipt); // Outputs the receipt object
30
+ ```
@@ -16,7 +16,7 @@ Client for performing Verifiable Storage through to REST endpoints.
16
16
 
17
17
  > **new VerifiableStorageRestClient**(`config`): `VerifiableStorageRestClient`
18
18
 
19
- Create a new instance of VerifiableStorageClient.
19
+ Create a new instance of VerifiableStorageRestClient.
20
20
 
21
21
  #### Parameters
22
22
 
@@ -36,7 +36,7 @@ The configuration for the client.
36
36
 
37
37
  ## Properties
38
38
 
39
- ### CLASS\_NAME
39
+ ### CLASS\_NAME {#class_name}
40
40
 
41
41
  > `readonly` `static` **CLASS\_NAME**: `string`
42
42
 
@@ -44,7 +44,25 @@ Runtime name for the class.
44
44
 
45
45
  ## Methods
46
46
 
47
- ### create()
47
+ ### className() {#classname}
48
+
49
+ > **className**(): `string`
50
+
51
+ Returns the class name of the component.
52
+
53
+ #### Returns
54
+
55
+ `string`
56
+
57
+ The class name of the component.
58
+
59
+ #### Implementation of
60
+
61
+ `IVerifiableStorageComponent.className`
62
+
63
+ ***
64
+
65
+ ### create() {#create}
48
66
 
49
67
  > **create**(`data`, `allowList?`, `options?`): `Promise`\<\{ `id`: `string`; `receipt`: `IJsonLdNodeObject`; \}\>
50
68
 
@@ -86,7 +104,7 @@ The id of the created verifiable storage item.
86
104
 
87
105
  ***
88
106
 
89
- ### update()
107
+ ### update() {#update}
90
108
 
91
109
  > **update**(`id`, `data?`, `allowList?`): `Promise`\<`IJsonLdNodeObject`\>
92
110
 
@@ -124,7 +142,7 @@ The updated receipt.
124
142
 
125
143
  ***
126
144
 
127
- ### get()
145
+ ### get() {#get}
128
146
 
129
147
  > **get**(`id`, `options?`): `Promise`\<\{ `data?`: `Uint8Array`\<`ArrayBufferLike`\>; `receipt`: `IJsonLdNodeObject`; \}\>
130
148
 
@@ -160,7 +178,7 @@ The data for the verifiable storage item.
160
178
 
161
179
  ***
162
180
 
163
- ### remove()
181
+ ### remove() {#remove}
164
182
 
165
183
  > **remove**(`id`): `Promise`\<`void`\>
166
184
 
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@twin.org/verifiable-storage-rest-client",
3
- "version": "0.0.2-next.6",
4
- "description": "Verifiable Storage contract implementation which can connect to REST endpoints",
3
+ "version": "0.0.3-next.10",
4
+ "description": "REST client component for calling verifiable storage service endpoints",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git+https://github.com/twinfoundation/verifiable-storage.git",
7
+ "url": "git+https://github.com/iotaledger/verifiable-storage.git",
8
8
  "directory": "packages/verifiable-storage-rest-client"
9
9
  },
10
- "author": "cornel.filip@iota.org; adrian.sanchez.sequeira@iota.org",
10
+ "contributors": [
11
+ "cornel.filip@iota.org",
12
+ "adrian.sanchez.sequeira@iota.org"
13
+ ],
11
14
  "license": "Apache-2.0",
12
15
  "type": "module",
13
16
  "engines": {
@@ -19,23 +22,21 @@
19
22
  "@twin.org/core": "next",
20
23
  "@twin.org/entity": "next",
21
24
  "@twin.org/nameof": "next",
22
- "@twin.org/verifiable-storage-models": "0.0.2-next.6",
25
+ "@twin.org/verifiable-storage-models": "0.0.3-next.10",
23
26
  "@twin.org/web": "next"
24
27
  },
25
- "main": "./dist/cjs/index.cjs",
26
- "module": "./dist/esm/index.mjs",
28
+ "main": "./dist/es/index.js",
27
29
  "types": "./dist/types/index.d.ts",
28
30
  "exports": {
29
31
  ".": {
30
32
  "types": "./dist/types/index.d.ts",
31
- "require": "./dist/cjs/index.cjs",
32
- "import": "./dist/esm/index.mjs"
33
+ "import": "./dist/es/index.js",
34
+ "default": "./dist/es/index.js"
33
35
  },
34
36
  "./locales/*.json": "./locales/*.json"
35
37
  },
36
38
  "files": [
37
- "dist/cjs",
38
- "dist/esm",
39
+ "dist/es",
39
40
  "dist/types",
40
41
  "locales",
41
42
  "docs"
@@ -53,7 +54,7 @@
53
54
  "immutable"
54
55
  ],
55
56
  "bugs": {
56
- "url": "git+https://github.com/twinfoundation/verifiable-storage/issues"
57
+ "url": "git+https://github.com/iotaledger/verifiable-storage/issues"
57
58
  },
58
59
  "homepage": "https://twindev.org"
59
60
  }
@@ -1,98 +0,0 @@
1
- 'use strict';
2
-
3
- var apiCore = require('@twin.org/api-core');
4
- var core = require('@twin.org/core');
5
-
6
- // Copyright 2024 IOTA Stiftung.
7
- // SPDX-License-Identifier: Apache-2.0.
8
- /**
9
- * Client for performing Verifiable Storage through to REST endpoints.
10
- */
11
- class VerifiableStorageRestClient extends apiCore.BaseRestClient {
12
- /**
13
- * Runtime name for the class.
14
- */
15
- static CLASS_NAME = "VerifiableStorageRestClient";
16
- /**
17
- * Create a new instance of VerifiableStorageClient.
18
- * @param config The configuration for the client.
19
- */
20
- constructor(config) {
21
- super("VerifiableStorageRestClient", config, "verifiable");
22
- }
23
- /**
24
- * Create a verifiable storage item.
25
- * @param data The data for the verifiable storage item.
26
- * @param allowList The list of identities that are allowed to modify the item.
27
- * @param options Additional options for creating the item.
28
- * @param options.maxAllowListSize The maximum size of the allow list.
29
- * @returns The id of the created verifiable storage item.
30
- */
31
- async create(data, allowList, options) {
32
- core.Guards.uint8Array(VerifiableStorageRestClient.CLASS_NAME, "data", data);
33
- const response = await this.fetch("/", "POST", {
34
- body: {
35
- data: core.Converter.bytesToBase64(data),
36
- allowList,
37
- maxAllowListSize: options?.maxAllowListSize
38
- }
39
- });
40
- return response.body;
41
- }
42
- /**
43
- * Update an item in verifiable storage.
44
- * @param id The id of the item to update.
45
- * @param data The data to store, optional if updating the allow list.
46
- * @param allowList Updated list of identities that are allowed to modify the item.
47
- * @returns The updated receipt.
48
- */
49
- async update(id, data, allowList) {
50
- core.Urn.guard(VerifiableStorageRestClient.CLASS_NAME, "id", id);
51
- const response = await this.fetch("/:id", "PUT", {
52
- pathParams: {
53
- id
54
- },
55
- body: {
56
- data: core.Is.uint8Array(data) ? core.Converter.bytesToBase64(data) : undefined,
57
- allowList
58
- }
59
- });
60
- return response.body;
61
- }
62
- /**
63
- * Get an verifiable storage item.
64
- * @param id The id of the verifiable storage item to get.
65
- * @param options Additional options for getting the verifiable storage item.
66
- * @param options.includeData Should the data be included in the response, defaults to true.
67
- * @returns The data for the verifiable storage item.
68
- */
69
- async get(id, options) {
70
- core.Guards.stringValue(VerifiableStorageRestClient.CLASS_NAME, "id", id);
71
- const response = await this.fetch("/:id", "GET", {
72
- pathParams: {
73
- id
74
- },
75
- body: options
76
- });
77
- const data = response.body.data ? core.Converter.base64ToBytes(response.body.data) : undefined;
78
- return {
79
- data,
80
- receipt: response.body.receipt
81
- };
82
- }
83
- /**
84
- * Remove a verifiable storage item.
85
- * @param id The id of the verifiable storage item to remove.
86
- * @returns Nothing.
87
- */
88
- async remove(id) {
89
- core.Urn.guard(VerifiableStorageRestClient.CLASS_NAME, "id", id);
90
- await this.fetch("/:id", "DELETE", {
91
- pathParams: {
92
- id
93
- }
94
- });
95
- }
96
- }
97
-
98
- exports.VerifiableStorageRestClient = VerifiableStorageRestClient;