@twin.org/verifiable-storage-rest-client 0.0.3-next.8 → 0.9.0-next.1
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/verifiableStorageRestClient.js +3 -3
- package/dist/es/verifiableStorageRestClient.js.map +1 -1
- package/dist/types/verifiableStorageRestClient.d.ts +3 -3
- package/docs/changelog.md +158 -66
- package/docs/examples.md +30 -1
- package/docs/reference/classes/VerifiableStorageRestClient.md +9 -9
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# TWIN Verifiable Storage REST Client
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
|
@@ -64,11 +64,11 @@ export class VerifiableStorageRestClient extends BaseRestClient {
|
|
|
64
64
|
return response.body;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Get
|
|
67
|
+
* Get a verifiable storage item.
|
|
68
68
|
* @param id The id of the verifiable storage item to get.
|
|
69
69
|
* @param options Additional options for getting the verifiable storage item.
|
|
70
70
|
* @param options.includeData Should the data be included in the response, defaults to true.
|
|
71
|
-
* @returns The data for the verifiable storage item.
|
|
71
|
+
* @returns The data and receipt for the verifiable storage item.
|
|
72
72
|
*/
|
|
73
73
|
async get(id, options) {
|
|
74
74
|
Guards.stringValue(VerifiableStorageRestClient.CLASS_NAME, "id", id);
|
|
@@ -87,7 +87,7 @@ export class VerifiableStorageRestClient extends BaseRestClient {
|
|
|
87
87
|
/**
|
|
88
88
|
* Remove a verifiable storage item.
|
|
89
89
|
* @param id The id of the verifiable storage item to remove.
|
|
90
|
-
* @returns
|
|
90
|
+
* @returns A promise that resolves when the item has been removed.
|
|
91
91
|
*/
|
|
92
92
|
async remove(id) {
|
|
93
93
|
Urn.guard(VerifiableStorageRestClient.CLASS_NAME, "id", id);
|
|
@@ -1 +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
|
|
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 a 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 and receipt 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 A promise that resolves when the item has been removed.\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"]}
|
|
@@ -43,11 +43,11 @@ export declare class VerifiableStorageRestClient extends BaseRestClient implemen
|
|
|
43
43
|
*/
|
|
44
44
|
update(id: string, data?: Uint8Array, allowList?: string[]): Promise<IJsonLdNodeObject>;
|
|
45
45
|
/**
|
|
46
|
-
* Get
|
|
46
|
+
* Get a verifiable storage item.
|
|
47
47
|
* @param id The id of the verifiable storage item to get.
|
|
48
48
|
* @param options Additional options for getting the verifiable storage item.
|
|
49
49
|
* @param options.includeData Should the data be included in the response, defaults to true.
|
|
50
|
-
* @returns The data for the verifiable storage item.
|
|
50
|
+
* @returns The data and receipt for the verifiable storage item.
|
|
51
51
|
*/
|
|
52
52
|
get(id: string, options?: {
|
|
53
53
|
includeData: boolean;
|
|
@@ -58,7 +58,7 @@ export declare class VerifiableStorageRestClient extends BaseRestClient implemen
|
|
|
58
58
|
/**
|
|
59
59
|
* Remove a verifiable storage item.
|
|
60
60
|
* @param id The id of the verifiable storage item to remove.
|
|
61
|
-
* @returns
|
|
61
|
+
* @returns A promise that resolves when the item has been removed.
|
|
62
62
|
*/
|
|
63
63
|
remove(id: string): Promise<void>;
|
|
64
64
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,6 +1,98 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0
|
|
3
|
+
## [0.9.0-next.1](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.9.0-next.0...verifiable-storage-rest-client-v0.9.0-next.1) (2026-06-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add context id features ([#40](https://github.com/iotaledger/twin-verifiable-storage/issues/40)) ([260b96a](https://github.com/iotaledger/twin-verifiable-storage/commit/260b96a8b7d1a26c6c415f2de12e09671ee70220))
|
|
9
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
10
|
+
* add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
11
|
+
* eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
12
|
+
* typescript 6 update ([66823cf](https://github.com/iotaledger/twin-verifiable-storage/commit/66823cf7a6522622c889afdc49005d016e8574fe))
|
|
13
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
14
|
+
* update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
15
|
+
* 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))
|
|
16
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Dependencies
|
|
20
|
+
|
|
21
|
+
* The following workspace dependencies were updated
|
|
22
|
+
* dependencies
|
|
23
|
+
* @twin.org/verifiable-storage-models bumped from 0.9.0-next.0 to 0.9.0-next.1
|
|
24
|
+
|
|
25
|
+
## [0.0.3-next.13](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.12...verifiable-storage-rest-client-v0.0.3-next.13) (2026-06-11)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Miscellaneous Chores
|
|
29
|
+
|
|
30
|
+
* **verifiable-storage-rest-client:** Synchronize repo versions
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Dependencies
|
|
34
|
+
|
|
35
|
+
* The following workspace dependencies were updated
|
|
36
|
+
* dependencies
|
|
37
|
+
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.12 to 0.0.3-next.13
|
|
38
|
+
|
|
39
|
+
## [0.0.3-next.12](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.11...verifiable-storage-rest-client-v0.0.3-next.12) (2026-05-28)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Miscellaneous Chores
|
|
43
|
+
|
|
44
|
+
* **verifiable-storage-rest-client:** Synchronize repo versions
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Dependencies
|
|
48
|
+
|
|
49
|
+
* The following workspace dependencies were updated
|
|
50
|
+
* dependencies
|
|
51
|
+
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.11 to 0.0.3-next.12
|
|
52
|
+
|
|
53
|
+
## [0.0.3-next.11](https://github.com/iotaledger/twin-verifiable-storage/compare/verifiable-storage-rest-client-v0.0.3-next.10...verifiable-storage-rest-client-v0.0.3-next.11) (2026-05-20)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Miscellaneous Chores
|
|
57
|
+
|
|
58
|
+
* **verifiable-storage-rest-client:** Synchronize repo versions
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Dependencies
|
|
62
|
+
|
|
63
|
+
* The following workspace dependencies were updated
|
|
64
|
+
* dependencies
|
|
65
|
+
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
66
|
+
|
|
67
|
+
## [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)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Features
|
|
71
|
+
|
|
72
|
+
* typescript 6 update ([66823cf](https://github.com/iotaledger/twin-verifiable-storage/commit/66823cf7a6522622c889afdc49005d016e8574fe))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Dependencies
|
|
76
|
+
|
|
77
|
+
* The following workspace dependencies were updated
|
|
78
|
+
* dependencies
|
|
79
|
+
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.9 to 0.0.3-next.10
|
|
80
|
+
|
|
81
|
+
## [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)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Miscellaneous Chores
|
|
85
|
+
|
|
86
|
+
* **verifiable-storage-rest-client:** Synchronize repo versions
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Dependencies
|
|
90
|
+
|
|
91
|
+
* The following workspace dependencies were updated
|
|
92
|
+
* dependencies
|
|
93
|
+
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.8 to 0.0.3-next.9
|
|
94
|
+
|
|
95
|
+
## [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)
|
|
4
96
|
|
|
5
97
|
|
|
6
98
|
### Miscellaneous Chores
|
|
@@ -14,19 +106,19 @@
|
|
|
14
106
|
* dependencies
|
|
15
107
|
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
16
108
|
|
|
17
|
-
## [0.0.3-next.7](https://github.com/
|
|
109
|
+
## [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)
|
|
18
110
|
|
|
19
111
|
|
|
20
112
|
### Features
|
|
21
113
|
|
|
22
|
-
* add context id features ([#40](https://github.com/
|
|
23
|
-
* add support for allowlist ([#17](https://github.com/
|
|
24
|
-
* add validate-locales ([326384f](https://github.com/
|
|
25
|
-
* eslint migration to flat config ([b0a0b85](https://github.com/
|
|
26
|
-
* update dependencies ([a16a772](https://github.com/
|
|
27
|
-
* update framework core ([efa612e](https://github.com/
|
|
28
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
29
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
114
|
+
* add context id features ([#40](https://github.com/iotaledger/twin-verifiable-storage/issues/40)) ([260b96a](https://github.com/iotaledger/twin-verifiable-storage/commit/260b96a8b7d1a26c6c415f2de12e09671ee70220))
|
|
115
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
116
|
+
* add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
117
|
+
* eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
118
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
119
|
+
* update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
120
|
+
* 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))
|
|
121
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
30
122
|
|
|
31
123
|
|
|
32
124
|
### Dependencies
|
|
@@ -35,7 +127,7 @@
|
|
|
35
127
|
* dependencies
|
|
36
128
|
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
37
129
|
|
|
38
|
-
## [0.0.3-next.6](https://github.com/
|
|
130
|
+
## [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)
|
|
39
131
|
|
|
40
132
|
|
|
41
133
|
### Miscellaneous Chores
|
|
@@ -49,7 +141,7 @@
|
|
|
49
141
|
* dependencies
|
|
50
142
|
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.5 to 0.0.3-next.6
|
|
51
143
|
|
|
52
|
-
## [0.0.3-next.5](https://github.com/
|
|
144
|
+
## [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)
|
|
53
145
|
|
|
54
146
|
|
|
55
147
|
### Miscellaneous Chores
|
|
@@ -63,7 +155,7 @@
|
|
|
63
155
|
* dependencies
|
|
64
156
|
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.4 to 0.0.3-next.5
|
|
65
157
|
|
|
66
|
-
## [0.0.3-next.4](https://github.com/
|
|
158
|
+
## [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)
|
|
67
159
|
|
|
68
160
|
|
|
69
161
|
### Miscellaneous Chores
|
|
@@ -77,7 +169,7 @@
|
|
|
77
169
|
* dependencies
|
|
78
170
|
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.3 to 0.0.3-next.4
|
|
79
171
|
|
|
80
|
-
## [0.0.3-next.3](https://github.com/
|
|
172
|
+
## [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)
|
|
81
173
|
|
|
82
174
|
|
|
83
175
|
### Miscellaneous Chores
|
|
@@ -91,7 +183,7 @@
|
|
|
91
183
|
* dependencies
|
|
92
184
|
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.2 to 0.0.3-next.3
|
|
93
185
|
|
|
94
|
-
## [0.0.3-next.2](https://github.com/
|
|
186
|
+
## [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)
|
|
95
187
|
|
|
96
188
|
|
|
97
189
|
### Miscellaneous Chores
|
|
@@ -105,19 +197,19 @@
|
|
|
105
197
|
* dependencies
|
|
106
198
|
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.1 to 0.0.3-next.2
|
|
107
199
|
|
|
108
|
-
## [0.0.3-next.1](https://github.com/
|
|
200
|
+
## [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)
|
|
109
201
|
|
|
110
202
|
|
|
111
203
|
### Features
|
|
112
204
|
|
|
113
|
-
* add context id features ([#40](https://github.com/
|
|
114
|
-
* add support for allowlist ([#17](https://github.com/
|
|
115
|
-
* add validate-locales ([326384f](https://github.com/
|
|
116
|
-
* eslint migration to flat config ([b0a0b85](https://github.com/
|
|
117
|
-
* update dependencies ([a16a772](https://github.com/
|
|
118
|
-
* update framework core ([efa612e](https://github.com/
|
|
119
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
120
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
205
|
+
* add context id features ([#40](https://github.com/iotaledger/twin-verifiable-storage/issues/40)) ([260b96a](https://github.com/iotaledger/twin-verifiable-storage/commit/260b96a8b7d1a26c6c415f2de12e09671ee70220))
|
|
206
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
207
|
+
* add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
208
|
+
* eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
209
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
210
|
+
* update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
211
|
+
* 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))
|
|
212
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
121
213
|
|
|
122
214
|
|
|
123
215
|
### Dependencies
|
|
@@ -126,12 +218,12 @@
|
|
|
126
218
|
* dependencies
|
|
127
219
|
* @twin.org/verifiable-storage-models bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
128
220
|
|
|
129
|
-
## [0.0.2-next.6](https://github.com/
|
|
221
|
+
## [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)
|
|
130
222
|
|
|
131
223
|
|
|
132
224
|
### Features
|
|
133
225
|
|
|
134
|
-
* add validate-locales ([326384f](https://github.com/
|
|
226
|
+
* add validate-locales ([326384f](https://github.com/iotaledger/twin-verifiable-storage/commit/326384fe867604e7cd450460a6a56c6c7bdc8f98))
|
|
135
227
|
|
|
136
228
|
|
|
137
229
|
### Dependencies
|
|
@@ -140,12 +232,12 @@
|
|
|
140
232
|
* dependencies
|
|
141
233
|
* @twin.org/verifiable-storage-models bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
142
234
|
|
|
143
|
-
## [0.0.2-next.5](https://github.com/
|
|
235
|
+
## [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)
|
|
144
236
|
|
|
145
237
|
|
|
146
238
|
### Features
|
|
147
239
|
|
|
148
|
-
* eslint migration to flat config ([b0a0b85](https://github.com/
|
|
240
|
+
* eslint migration to flat config ([b0a0b85](https://github.com/iotaledger/twin-verifiable-storage/commit/b0a0b8585a77c1e541531d60b432916b9dc0867e))
|
|
149
241
|
|
|
150
242
|
|
|
151
243
|
### Dependencies
|
|
@@ -154,12 +246,12 @@
|
|
|
154
246
|
* dependencies
|
|
155
247
|
* @twin.org/verifiable-storage-models bumped from 0.0.2-next.4 to 0.0.2-next.5
|
|
156
248
|
|
|
157
|
-
## [0.0.2-next.4](https://github.com/
|
|
249
|
+
## [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)
|
|
158
250
|
|
|
159
251
|
|
|
160
252
|
### Features
|
|
161
253
|
|
|
162
|
-
* update framework core ([efa612e](https://github.com/
|
|
254
|
+
* update framework core ([efa612e](https://github.com/iotaledger/twin-verifiable-storage/commit/efa612e54dbe2d8f223f27ff9e315e08a2fed04b))
|
|
163
255
|
|
|
164
256
|
|
|
165
257
|
### Dependencies
|
|
@@ -168,7 +260,7 @@
|
|
|
168
260
|
* dependencies
|
|
169
261
|
* @twin.org/verifiable-storage-models bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
170
262
|
|
|
171
|
-
## [0.0.2-next.3](https://github.com/
|
|
263
|
+
## [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)
|
|
172
264
|
|
|
173
265
|
|
|
174
266
|
### Miscellaneous Chores
|
|
@@ -182,15 +274,15 @@
|
|
|
182
274
|
* dependencies
|
|
183
275
|
* @twin.org/verifiable-storage-models bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
184
276
|
|
|
185
|
-
## [0.0.2-next.2](https://github.com/
|
|
277
|
+
## [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)
|
|
186
278
|
|
|
187
279
|
|
|
188
280
|
### Features
|
|
189
281
|
|
|
190
|
-
* add support for allowlist ([#17](https://github.com/
|
|
191
|
-
* update dependencies ([a16a772](https://github.com/
|
|
192
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
193
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
282
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
283
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
284
|
+
* 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))
|
|
285
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
194
286
|
|
|
195
287
|
|
|
196
288
|
### Dependencies
|
|
@@ -199,15 +291,15 @@
|
|
|
199
291
|
* dependencies
|
|
200
292
|
* @twin.org/verifiable-storage-models bumped from 0.0.2-next.0 to 0.0.2-next.2
|
|
201
293
|
|
|
202
|
-
## [0.0.2-next.0](https://github.com/
|
|
294
|
+
## [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)
|
|
203
295
|
|
|
204
296
|
|
|
205
297
|
### Features
|
|
206
298
|
|
|
207
|
-
* add support for allowlist ([#17](https://github.com/
|
|
208
|
-
* update dependencies ([a16a772](https://github.com/
|
|
209
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
210
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
299
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
300
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
301
|
+
* 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))
|
|
302
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
211
303
|
|
|
212
304
|
|
|
213
305
|
### Dependencies
|
|
@@ -221,7 +313,7 @@
|
|
|
221
313
|
|
|
222
314
|
### Features
|
|
223
315
|
|
|
224
|
-
* release to production ([6ce6744](https://github.com/
|
|
316
|
+
* release to production ([6ce6744](https://github.com/iotaledger/twin-verifiable-storage/commit/6ce6744c124cca586c1ef0552624378d1207578d))
|
|
225
317
|
|
|
226
318
|
|
|
227
319
|
### Dependencies
|
|
@@ -230,7 +322,7 @@
|
|
|
230
322
|
* dependencies
|
|
231
323
|
* @twin.org/verifiable-storage-models bumped from ^0.0.0 to ^0.0.1
|
|
232
324
|
|
|
233
|
-
## [0.0.1-next.17](https://github.com/
|
|
325
|
+
## [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)
|
|
234
326
|
|
|
235
327
|
|
|
236
328
|
### Miscellaneous Chores
|
|
@@ -244,12 +336,12 @@
|
|
|
244
336
|
* dependencies
|
|
245
337
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.16 to 0.0.1-next.17
|
|
246
338
|
|
|
247
|
-
## [0.0.1-next.16](https://github.com/
|
|
339
|
+
## [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)
|
|
248
340
|
|
|
249
341
|
|
|
250
342
|
### Features
|
|
251
343
|
|
|
252
|
-
* update dependencies ([a16a772](https://github.com/
|
|
344
|
+
* update dependencies ([a16a772](https://github.com/iotaledger/twin-verifiable-storage/commit/a16a77244cb1d312ea5ee74232bcdadd25f2b330))
|
|
253
345
|
|
|
254
346
|
|
|
255
347
|
### Dependencies
|
|
@@ -258,7 +350,7 @@
|
|
|
258
350
|
* dependencies
|
|
259
351
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.15 to 0.0.1-next.16
|
|
260
352
|
|
|
261
|
-
## [0.0.1-next.15](https://github.com/
|
|
353
|
+
## [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)
|
|
262
354
|
|
|
263
355
|
|
|
264
356
|
### Miscellaneous Chores
|
|
@@ -272,14 +364,14 @@
|
|
|
272
364
|
* dependencies
|
|
273
365
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.14 to 0.0.1-next.15
|
|
274
366
|
|
|
275
|
-
## [0.0.1-next.14](https://github.com/
|
|
367
|
+
## [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)
|
|
276
368
|
|
|
277
369
|
|
|
278
370
|
### Features
|
|
279
371
|
|
|
280
|
-
* add support for allowlist ([#17](https://github.com/
|
|
281
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
282
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
372
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
373
|
+
* 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))
|
|
374
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
283
375
|
|
|
284
376
|
|
|
285
377
|
### Dependencies
|
|
@@ -288,7 +380,7 @@
|
|
|
288
380
|
* dependencies
|
|
289
381
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.13 to 0.0.1-next.14
|
|
290
382
|
|
|
291
|
-
## [0.0.1-next.13](https://github.com/
|
|
383
|
+
## [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)
|
|
292
384
|
|
|
293
385
|
|
|
294
386
|
### Miscellaneous Chores
|
|
@@ -302,7 +394,7 @@
|
|
|
302
394
|
* dependencies
|
|
303
395
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.12 to 0.0.1-next.13
|
|
304
396
|
|
|
305
|
-
## [0.0.1-next.12](https://github.com/
|
|
397
|
+
## [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)
|
|
306
398
|
|
|
307
399
|
|
|
308
400
|
### Miscellaneous Chores
|
|
@@ -316,7 +408,7 @@
|
|
|
316
408
|
* dependencies
|
|
317
409
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.11 to 0.0.1-next.12
|
|
318
410
|
|
|
319
|
-
## [0.0.1-next.11](https://github.com/
|
|
411
|
+
## [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)
|
|
320
412
|
|
|
321
413
|
|
|
322
414
|
### Miscellaneous Chores
|
|
@@ -330,12 +422,12 @@
|
|
|
330
422
|
* dependencies
|
|
331
423
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.10 to 0.0.1-next.11
|
|
332
424
|
|
|
333
|
-
## [0.0.1-next.10](https://github.com/
|
|
425
|
+
## [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)
|
|
334
426
|
|
|
335
427
|
|
|
336
428
|
### Features
|
|
337
429
|
|
|
338
|
-
* add support for allowlist ([#17](https://github.com/
|
|
430
|
+
* add support for allowlist ([#17](https://github.com/iotaledger/twin-verifiable-storage/issues/17)) ([9341ea6](https://github.com/iotaledger/twin-verifiable-storage/commit/9341ea6b95dfbf2a5dc70a53e5979d7d0e8b2de6))
|
|
339
431
|
|
|
340
432
|
|
|
341
433
|
### Dependencies
|
|
@@ -344,7 +436,7 @@
|
|
|
344
436
|
* dependencies
|
|
345
437
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.9 to 0.0.1-next.10
|
|
346
438
|
|
|
347
|
-
## [0.0.1-next.9](https://github.com/
|
|
439
|
+
## [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)
|
|
348
440
|
|
|
349
441
|
|
|
350
442
|
### Miscellaneous Chores
|
|
@@ -358,7 +450,7 @@
|
|
|
358
450
|
* dependencies
|
|
359
451
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.8 to 0.0.1-next.9
|
|
360
452
|
|
|
361
|
-
## [0.0.1-next.8](https://github.com/
|
|
453
|
+
## [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)
|
|
362
454
|
|
|
363
455
|
|
|
364
456
|
### Miscellaneous Chores
|
|
@@ -372,7 +464,7 @@
|
|
|
372
464
|
* dependencies
|
|
373
465
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.7 to 0.0.1-next.8
|
|
374
466
|
|
|
375
|
-
## [0.0.1-next.7](https://github.com/
|
|
467
|
+
## [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)
|
|
376
468
|
|
|
377
469
|
|
|
378
470
|
### Miscellaneous Chores
|
|
@@ -386,7 +478,7 @@
|
|
|
386
478
|
* dependencies
|
|
387
479
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.6 to 0.0.1-next.7
|
|
388
480
|
|
|
389
|
-
## [0.0.1-next.6](https://github.com/
|
|
481
|
+
## [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)
|
|
390
482
|
|
|
391
483
|
|
|
392
484
|
### Miscellaneous Chores
|
|
@@ -400,7 +492,7 @@
|
|
|
400
492
|
* dependencies
|
|
401
493
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.5 to 0.0.1-next.6
|
|
402
494
|
|
|
403
|
-
## [0.0.1-next.5](https://github.com/
|
|
495
|
+
## [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)
|
|
404
496
|
|
|
405
497
|
|
|
406
498
|
### Miscellaneous Chores
|
|
@@ -414,12 +506,12 @@
|
|
|
414
506
|
* dependencies
|
|
415
507
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.4 to 0.0.1-next.5
|
|
416
508
|
|
|
417
|
-
## [0.0.1-next.4](https://github.com/
|
|
509
|
+
## [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)
|
|
418
510
|
|
|
419
511
|
|
|
420
512
|
### Features
|
|
421
513
|
|
|
422
|
-
* use shared store mechanism ([#8](https://github.com/
|
|
514
|
+
* use shared store mechanism ([#8](https://github.com/iotaledger/twin-verifiable-storage/issues/8)) ([8c8ecb8](https://github.com/iotaledger/twin-verifiable-storage/commit/8c8ecb83d32431952c594ea23d37040991f5b4d3))
|
|
423
515
|
|
|
424
516
|
|
|
425
517
|
### Dependencies
|
|
@@ -428,12 +520,12 @@
|
|
|
428
520
|
* dependencies
|
|
429
521
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.3 to 0.0.1-next.4
|
|
430
522
|
|
|
431
|
-
## [0.0.1-next.3](https://github.com/
|
|
523
|
+
## [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)
|
|
432
524
|
|
|
433
525
|
|
|
434
526
|
### Features
|
|
435
527
|
|
|
436
|
-
* use new dlt packages with latency fix ([#6](https://github.com/
|
|
528
|
+
* 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))
|
|
437
529
|
|
|
438
530
|
|
|
439
531
|
### Dependencies
|
|
@@ -442,7 +534,7 @@
|
|
|
442
534
|
* dependencies
|
|
443
535
|
* @twin.org/verifiable-storage-models bumped from 0.0.1-next.2 to 0.0.1-next.3
|
|
444
536
|
|
|
445
|
-
## [0.0.1-next.2](https://github.com/
|
|
537
|
+
## [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)
|
|
446
538
|
|
|
447
539
|
|
|
448
540
|
### Miscellaneous Chores
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
#
|
|
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
|
+
```
|
|
@@ -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,7 @@ Runtime name for the class.
|
|
|
44
44
|
|
|
45
45
|
## Methods
|
|
46
46
|
|
|
47
|
-
### className()
|
|
47
|
+
### className() {#classname}
|
|
48
48
|
|
|
49
49
|
> **className**(): `string`
|
|
50
50
|
|
|
@@ -62,7 +62,7 @@ The class name of the component.
|
|
|
62
62
|
|
|
63
63
|
***
|
|
64
64
|
|
|
65
|
-
### create()
|
|
65
|
+
### create() {#create}
|
|
66
66
|
|
|
67
67
|
> **create**(`data`, `allowList?`, `options?`): `Promise`\<\{ `id`: `string`; `receipt`: `IJsonLdNodeObject`; \}\>
|
|
68
68
|
|
|
@@ -104,7 +104,7 @@ The id of the created verifiable storage item.
|
|
|
104
104
|
|
|
105
105
|
***
|
|
106
106
|
|
|
107
|
-
### update()
|
|
107
|
+
### update() {#update}
|
|
108
108
|
|
|
109
109
|
> **update**(`id`, `data?`, `allowList?`): `Promise`\<`IJsonLdNodeObject`\>
|
|
110
110
|
|
|
@@ -142,11 +142,11 @@ The updated receipt.
|
|
|
142
142
|
|
|
143
143
|
***
|
|
144
144
|
|
|
145
|
-
### get()
|
|
145
|
+
### get() {#get}
|
|
146
146
|
|
|
147
147
|
> **get**(`id`, `options?`): `Promise`\<\{ `data?`: `Uint8Array`\<`ArrayBufferLike`\>; `receipt`: `IJsonLdNodeObject`; \}\>
|
|
148
148
|
|
|
149
|
-
Get
|
|
149
|
+
Get a verifiable storage item.
|
|
150
150
|
|
|
151
151
|
#### Parameters
|
|
152
152
|
|
|
@@ -170,7 +170,7 @@ Should the data be included in the response, defaults to true.
|
|
|
170
170
|
|
|
171
171
|
`Promise`\<\{ `data?`: `Uint8Array`\<`ArrayBufferLike`\>; `receipt`: `IJsonLdNodeObject`; \}\>
|
|
172
172
|
|
|
173
|
-
The data for the verifiable storage item.
|
|
173
|
+
The data and receipt for the verifiable storage item.
|
|
174
174
|
|
|
175
175
|
#### Implementation of
|
|
176
176
|
|
|
@@ -178,7 +178,7 @@ The data for the verifiable storage item.
|
|
|
178
178
|
|
|
179
179
|
***
|
|
180
180
|
|
|
181
|
-
### remove()
|
|
181
|
+
### remove() {#remove}
|
|
182
182
|
|
|
183
183
|
> **remove**(`id`): `Promise`\<`void`\>
|
|
184
184
|
|
|
@@ -196,7 +196,7 @@ The id of the verifiable storage item to remove.
|
|
|
196
196
|
|
|
197
197
|
`Promise`\<`void`\>
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
A promise that resolves when the item has been removed.
|
|
200
200
|
|
|
201
201
|
#### Implementation of
|
|
202
202
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/verifiable-storage-rest-client",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.9.0-next.1",
|
|
4
|
+
"description": "REST client component for calling verifiable storage service endpoints",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/twin-verifiable-storage.git",
|
|
8
8
|
"directory": "packages/verifiable-storage-rest-client"
|
|
9
9
|
},
|
|
10
10
|
"contributors": [
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"node": ">=20.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@twin.org/api-core": "next",
|
|
21
|
-
"@twin.org/api-models": "next",
|
|
22
|
-
"@twin.org/core": "next",
|
|
23
|
-
"@twin.org/entity": "next",
|
|
24
|
-
"@twin.org/nameof": "next",
|
|
25
|
-
"@twin.org/verifiable-storage-models": "0.0
|
|
26
|
-
"@twin.org/web": "next"
|
|
20
|
+
"@twin.org/api-core": "0.9.0-next.1",
|
|
21
|
+
"@twin.org/api-models": "0.9.0-next.1",
|
|
22
|
+
"@twin.org/core": "0.9.0-next.1",
|
|
23
|
+
"@twin.org/entity": "0.9.0-next.1",
|
|
24
|
+
"@twin.org/nameof": "0.9.0-next.1",
|
|
25
|
+
"@twin.org/verifiable-storage-models": "0.9.0-next.1",
|
|
26
|
+
"@twin.org/web": "0.9.0-next.1"
|
|
27
27
|
},
|
|
28
28
|
"main": "./dist/es/index.js",
|
|
29
29
|
"types": "./dist/types/index.d.ts",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"immutable"
|
|
55
55
|
],
|
|
56
56
|
"bugs": {
|
|
57
|
-
"url": "git+https://github.com/
|
|
57
|
+
"url": "git+https://github.com/iotaledger/twin-verifiable-storage/issues"
|
|
58
58
|
},
|
|
59
59
|
"homepage": "https://twindev.org"
|
|
60
60
|
}
|