@twin.org/blob-storage-models 0.0.2-next.5 → 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 +1 -1
- package/dist/es/dataTypes/blobStorageDataTypes.js +30 -0
- package/dist/es/dataTypes/blobStorageDataTypes.js.map +1 -0
- package/dist/es/factories/blobStorageConnectorFactory.js +9 -0
- package/dist/es/factories/blobStorageConnectorFactory.js.map +1 -0
- package/dist/es/index.js +21 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IBlobStorageComponent.js +2 -0
- package/dist/es/models/IBlobStorageComponent.js.map +1 -0
- package/dist/es/models/IBlobStorageConnector.js +2 -0
- package/dist/es/models/IBlobStorageConnector.js.map +1 -0
- package/dist/es/models/IBlobStorageEntry.js +2 -0
- package/dist/es/models/IBlobStorageEntry.js.map +1 -0
- package/dist/es/models/IBlobStorageEntryList.js +2 -0
- package/dist/es/models/IBlobStorageEntryList.js.map +1 -0
- package/dist/es/models/api/IBlobStorageCreateRequest.js +2 -0
- package/dist/es/models/api/IBlobStorageCreateRequest.js.map +1 -0
- package/dist/es/models/api/IBlobStorageGetContentRequest.js +4 -0
- package/dist/es/models/api/IBlobStorageGetContentRequest.js.map +1 -0
- package/dist/es/models/api/IBlobStorageGetContentResponse.js +4 -0
- package/dist/es/models/api/IBlobStorageGetContentResponse.js.map +1 -0
- package/dist/es/models/api/IBlobStorageGetRequest.js +2 -0
- package/dist/es/models/api/IBlobStorageGetRequest.js.map +1 -0
- package/dist/es/models/api/IBlobStorageGetResponse.js +2 -0
- package/dist/es/models/api/IBlobStorageGetResponse.js.map +1 -0
- package/dist/es/models/api/IBlobStorageListRequest.js +2 -0
- package/dist/es/models/api/IBlobStorageListRequest.js.map +1 -0
- package/dist/es/models/api/IBlobStorageListResponse.js +2 -0
- package/dist/es/models/api/IBlobStorageListResponse.js.map +1 -0
- package/dist/es/models/api/IBlobStorageRemoveRequest.js +4 -0
- package/dist/es/models/api/IBlobStorageRemoveRequest.js.map +1 -0
- package/dist/es/models/api/IBlobStorageUpdateRequest.js +2 -0
- package/dist/es/models/api/IBlobStorageUpdateRequest.js.map +1 -0
- package/dist/es/models/blobStorageCompressionType.js +17 -0
- package/dist/es/models/blobStorageCompressionType.js.map +1 -0
- package/dist/es/models/blobStorageContexts.js +33 -0
- package/dist/es/models/blobStorageContexts.js.map +1 -0
- package/dist/es/models/blobStorageTypes.js +17 -0
- package/dist/es/models/blobStorageTypes.js.map +1 -0
- package/dist/es/schemas/BlobStorageCompressionType.json +16 -0
- package/dist/es/schemas/BlobStorageEntry.json +81 -0
- package/dist/types/factories/blobStorageConnectorFactory.d.ts +1 -1
- package/dist/types/index.d.ts +18 -18
- package/dist/types/models/IBlobStorageComponent.d.ts +11 -15
- package/dist/types/models/IBlobStorageEntry.d.ts +17 -7
- package/dist/types/models/IBlobStorageEntryList.d.ts +5 -9
- package/dist/types/models/api/IBlobStorageCreateRequest.d.ts +1 -1
- package/dist/types/models/api/IBlobStorageGetContentRequest.d.ts +2 -2
- package/dist/types/models/api/IBlobStorageGetRequest.d.ts +2 -2
- package/dist/types/models/api/IBlobStorageGetResponse.d.ts +1 -1
- package/dist/types/models/api/IBlobStorageListRequest.d.ts +1 -1
- package/dist/types/models/api/IBlobStorageListResponse.d.ts +2 -1
- package/dist/types/models/blobStorageContexts.d.ts +20 -4
- package/docs/changelog.md +152 -38
- package/docs/examples.md +23 -1
- package/docs/reference/classes/BlobStorageDataTypes.md +1 -1
- package/docs/reference/interfaces/IBlobStorageComponent.md +13 -63
- package/docs/reference/interfaces/IBlobStorageConnector.md +5 -13
- package/docs/reference/interfaces/IBlobStorageCreateRequest.md +8 -8
- package/docs/reference/interfaces/IBlobStorageEntry.md +22 -22
- package/docs/reference/interfaces/IBlobStorageEntryList.md +3 -11
- package/docs/reference/interfaces/IBlobStorageGetContentRequest.md +7 -7
- package/docs/reference/interfaces/IBlobStorageGetContentResponse.md +1 -1
- package/docs/reference/interfaces/IBlobStorageGetRequest.md +8 -8
- package/docs/reference/interfaces/IBlobStorageGetResponse.md +3 -3
- package/docs/reference/interfaces/IBlobStorageListRequest.md +9 -9
- package/docs/reference/interfaces/IBlobStorageListResponse.md +7 -3
- package/docs/reference/interfaces/IBlobStorageRemoveRequest.md +1 -1
- package/docs/reference/interfaces/IBlobStorageUpdateRequest.md +5 -5
- package/docs/reference/variables/BlobStorageCompressionType.md +2 -2
- package/docs/reference/variables/BlobStorageContexts.md +30 -6
- package/docs/reference/variables/BlobStorageTypes.md +2 -2
- package/package.json +8 -10
- package/dist/cjs/index.cjs +0 -201
- package/dist/esm/index.mjs +0 -195
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { BlobStorageCompressionType } from "./blobStorageCompressionType";
|
|
3
|
-
import type { BlobStorageContexts } from "./blobStorageContexts";
|
|
4
|
-
import type { BlobStorageTypes } from "./blobStorageTypes";
|
|
2
|
+
import type { BlobStorageCompressionType } from "./blobStorageCompressionType.js";
|
|
3
|
+
import type { BlobStorageContexts } from "./blobStorageContexts.js";
|
|
4
|
+
import type { BlobStorageTypes } from "./blobStorageTypes.js";
|
|
5
5
|
/**
|
|
6
6
|
* Interface describing a blob storage entry.
|
|
7
7
|
*/
|
|
@@ -10,8 +10,8 @@ export interface IBlobStorageEntry {
|
|
|
10
10
|
* JSON-LD Context.
|
|
11
11
|
*/
|
|
12
12
|
"@context": [
|
|
13
|
-
typeof BlobStorageContexts.
|
|
14
|
-
typeof BlobStorageContexts.
|
|
13
|
+
typeof BlobStorageContexts.Context,
|
|
14
|
+
typeof BlobStorageContexts.ContextCommon,
|
|
15
15
|
...IJsonLdContextDefinitionElement[]
|
|
16
16
|
];
|
|
17
17
|
/**
|
|
@@ -24,42 +24,52 @@ export interface IBlobStorageEntry {
|
|
|
24
24
|
id: string;
|
|
25
25
|
/**
|
|
26
26
|
* The date/time when the entry was created.
|
|
27
|
+
* @json-ld namespace:schema
|
|
27
28
|
*/
|
|
28
29
|
dateCreated: string;
|
|
29
30
|
/**
|
|
30
31
|
* The date/time when the entry was modified.
|
|
32
|
+
* @json-ld namespace:schema
|
|
31
33
|
*/
|
|
32
34
|
dateModified?: string;
|
|
33
35
|
/**
|
|
34
36
|
* The size of the data in the blob.
|
|
37
|
+
* @json-ld type:schema:Integer
|
|
35
38
|
*/
|
|
36
39
|
blobSize: number;
|
|
37
40
|
/**
|
|
38
|
-
* The
|
|
41
|
+
* The integrity of the data in the blob.
|
|
42
|
+
* @json-ld namespace:twin-common
|
|
39
43
|
*/
|
|
40
|
-
|
|
44
|
+
integrity: string;
|
|
41
45
|
/**
|
|
42
46
|
* The mime type for the blob.
|
|
47
|
+
* @json-ld namespace:schema
|
|
43
48
|
*/
|
|
44
49
|
encodingFormat?: string;
|
|
45
50
|
/**
|
|
46
51
|
* Indicates if the blob is encrypted.
|
|
52
|
+
* @json-ld type:schema:Boolean
|
|
47
53
|
*/
|
|
48
54
|
isEncrypted?: boolean;
|
|
49
55
|
/**
|
|
50
56
|
* The type of compression used for the blob, if not set it is not stored with compression.
|
|
57
|
+
* @json-ld type:schema:Text
|
|
51
58
|
*/
|
|
52
59
|
compression?: BlobStorageCompressionType;
|
|
53
60
|
/**
|
|
54
61
|
* The extension.
|
|
62
|
+
* @json-ld type:schema:Text
|
|
55
63
|
*/
|
|
56
64
|
fileExtension?: string;
|
|
57
65
|
/**
|
|
58
66
|
* The metadata for the blob as JSON-LD.
|
|
67
|
+
* @json-ld id
|
|
59
68
|
*/
|
|
60
69
|
metadata?: IJsonLdNodeObject;
|
|
61
70
|
/**
|
|
62
71
|
* The blob in base64 format, included if the includeContent flag was set in the request.
|
|
72
|
+
* @json-ld type:schema:Text
|
|
63
73
|
*/
|
|
64
74
|
blob?: string;
|
|
65
75
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { SchemaOrgContexts, SchemaOrgTypes } from "@twin.org/standards-schema-org";
|
|
3
|
-
import type { BlobStorageContexts } from "./blobStorageContexts";
|
|
4
|
-
import type { IBlobStorageEntry } from "./IBlobStorageEntry";
|
|
3
|
+
import type { BlobStorageContexts } from "./blobStorageContexts.js";
|
|
4
|
+
import type { IBlobStorageEntry } from "./IBlobStorageEntry.js";
|
|
5
5
|
/**
|
|
6
6
|
* Interface describing an blob storage entry list.
|
|
7
7
|
*/
|
|
@@ -10,9 +10,9 @@ export interface IBlobStorageEntryList {
|
|
|
10
10
|
* JSON-LD Context.
|
|
11
11
|
*/
|
|
12
12
|
"@context": [
|
|
13
|
-
typeof SchemaOrgContexts.
|
|
14
|
-
typeof BlobStorageContexts.
|
|
15
|
-
typeof BlobStorageContexts.
|
|
13
|
+
typeof SchemaOrgContexts.Context,
|
|
14
|
+
typeof BlobStorageContexts.Context,
|
|
15
|
+
typeof BlobStorageContexts.ContextCommon,
|
|
16
16
|
...IJsonLdContextDefinitionElement[]
|
|
17
17
|
];
|
|
18
18
|
/**
|
|
@@ -23,8 +23,4 @@ export interface IBlobStorageEntryList {
|
|
|
23
23
|
* The list of entries.
|
|
24
24
|
*/
|
|
25
25
|
[SchemaOrgTypes.ItemListElement]: IBlobStorageEntry[];
|
|
26
|
-
/**
|
|
27
|
-
* The cursor to get the next chunk of entries.
|
|
28
|
-
*/
|
|
29
|
-
[SchemaOrgTypes.NextItem]?: string;
|
|
30
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { BlobStorageCompressionType } from "../blobStorageCompressionType";
|
|
2
|
+
import type { BlobStorageCompressionType } from "../blobStorageCompressionType.js";
|
|
3
3
|
/**
|
|
4
4
|
* Request to create an entry in blob storage.
|
|
5
5
|
*/
|
|
@@ -19,7 +19,7 @@ export interface IBlobStorageGetContentRequest {
|
|
|
19
19
|
* If the content should be decompressed, if it was compressed when stored, defaults to true.
|
|
20
20
|
* @default true
|
|
21
21
|
*/
|
|
22
|
-
decompress?:
|
|
22
|
+
decompress?: string;
|
|
23
23
|
/**
|
|
24
24
|
* Use a different vault key id for decryption, if not provided the default vault key id will be used.
|
|
25
25
|
* @default undefined
|
|
@@ -30,7 +30,7 @@ export interface IBlobStorageGetContentRequest {
|
|
|
30
30
|
* Otherwise the browser should show the content inside the page.
|
|
31
31
|
* @default false
|
|
32
32
|
*/
|
|
33
|
-
download?:
|
|
33
|
+
download?: string;
|
|
34
34
|
/**
|
|
35
35
|
* Set the filename to use when a download is triggered.
|
|
36
36
|
* A filename will be generated if not provided.
|
|
@@ -26,12 +26,12 @@ export interface IBlobStorageGetRequest {
|
|
|
26
26
|
* Include the content in the response, otherwise only metadata is returned.
|
|
27
27
|
* @default false
|
|
28
28
|
*/
|
|
29
|
-
includeContent?:
|
|
29
|
+
includeContent?: string;
|
|
30
30
|
/**
|
|
31
31
|
* If the content should be decompressed, if it was compressed when stored, defaults to true.
|
|
32
32
|
* @default true
|
|
33
33
|
*/
|
|
34
|
-
decompress?:
|
|
34
|
+
decompress?: string;
|
|
35
35
|
/**
|
|
36
36
|
* Use a different vault key id for decryption, if not provided the default vault key id will be used.
|
|
37
37
|
* @default undefined
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SortDirection } from "@twin.org/entity";
|
|
2
2
|
import type { HeaderTypes, MimeTypes } from "@twin.org/web";
|
|
3
|
-
import type { IBlobStorageEntry } from "../IBlobStorageEntry";
|
|
3
|
+
import type { IBlobStorageEntry } from "../IBlobStorageEntry.js";
|
|
4
4
|
/**
|
|
5
5
|
* Query the entries from blob storage.
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HeaderTypes, MimeTypes } from "@twin.org/web";
|
|
2
|
-
import type { IBlobStorageEntryList } from "../IBlobStorageEntryList";
|
|
2
|
+
import type { IBlobStorageEntryList } from "../IBlobStorageEntryList.js";
|
|
3
3
|
/**
|
|
4
4
|
* Response to getting the list of entries from a query.
|
|
5
5
|
*/
|
|
@@ -9,6 +9,7 @@ export interface IBlobStorageListResponse {
|
|
|
9
9
|
*/
|
|
10
10
|
headers?: {
|
|
11
11
|
[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
|
|
12
|
+
[HeaderTypes.Link]?: string | string[];
|
|
12
13
|
};
|
|
13
14
|
/**
|
|
14
15
|
* The list of entries from the query.
|
|
@@ -3,13 +3,29 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const BlobStorageContexts: {
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
6
|
+
* The canonical RDF namespace URI for Blob Storage.
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly Namespace: "https://schema.twindev.org/blob-storage/";
|
|
9
9
|
/**
|
|
10
|
-
* The context
|
|
10
|
+
* The value to use in JSON-LD context for Blob Storage.
|
|
11
11
|
*/
|
|
12
|
-
readonly
|
|
12
|
+
readonly Context: "https://schema.twindev.org/blob-storage/";
|
|
13
|
+
/**
|
|
14
|
+
* The JSON-LD Context URL.
|
|
15
|
+
*/
|
|
16
|
+
readonly JsonLdContext: "https://schema.twindev.org/blob-storage/types.jsonld";
|
|
17
|
+
/**
|
|
18
|
+
* The canonical RDF namespace URI for TWIN Common.
|
|
19
|
+
*/
|
|
20
|
+
readonly NamespaceCommon: "https://schema.twindev.org/common/";
|
|
21
|
+
/**
|
|
22
|
+
* The value to use in JSON-LD context for TWIN Common.
|
|
23
|
+
*/
|
|
24
|
+
readonly ContextCommon: "https://schema.twindev.org/common/";
|
|
25
|
+
/**
|
|
26
|
+
* The JSON-LD Context URL for TWIN Common.
|
|
27
|
+
*/
|
|
28
|
+
readonly JsonLdContextCommon: "https://schema.twindev.org/common/types.jsonld";
|
|
13
29
|
};
|
|
14
30
|
/**
|
|
15
31
|
* The contexts of blob storage data.
|
package/docs/changelog.md
CHANGED
|
@@ -1,122 +1,236 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0.
|
|
3
|
+
## [0.0.3-next.10](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.3-next.9...blob-storage-models-v0.0.3-next.10) (2026-05-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **blob-storage-models:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
## [0.0.3-next.9](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.3-next.8...blob-storage-models-v0.0.3-next.9) (2026-05-07)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add compression support ([67d239b](https://github.com/iotaledger/twin-blob-storage/commit/67d239bca8321bd90bf4ff93167c564130309730))
|
|
16
|
+
* add context id features ([#30](https://github.com/iotaledger/twin-blob-storage/issues/30)) ([fbf1c92](https://github.com/iotaledger/twin-blob-storage/commit/fbf1c9276424c841ef5ef3f4de8469ab3fba7e9c))
|
|
17
|
+
* add missing namespace for JSON-LD context ([80b15cf](https://github.com/iotaledger/twin-blob-storage/commit/80b15cf34b580d9550affa66bcbc9b9ccb34ce21))
|
|
18
|
+
* add ts-to-jsonld-context tool ([2fd217f](https://github.com/iotaledger/twin-blob-storage/commit/2fd217f50dfaf6ac068091876237f5a101a7995e))
|
|
19
|
+
* add validate-locales ([f20fcec](https://github.com/iotaledger/twin-blob-storage/commit/f20fceced91e39a0c9edb770b2e43ce944c92f3c))
|
|
20
|
+
* additional encryption options on per item basis ([4b95a65](https://github.com/iotaledger/twin-blob-storage/commit/4b95a656d19e3b571cea905e36f29b679b13e1e8))
|
|
21
|
+
* blobHash changed to integrity ([#41](https://github.com/iotaledger/twin-blob-storage/issues/41)) ([c06a55f](https://github.com/iotaledger/twin-blob-storage/commit/c06a55f0eed3f7cad5d19c4084abd8ef0cdbfb60))
|
|
22
|
+
* eslint migration to flat config ([e4239dd](https://github.com/iotaledger/twin-blob-storage/commit/e4239dd1c721955cff7f0357255d2bba15319972))
|
|
23
|
+
* remove includeNodeIdentity flag ([13bc334](https://github.com/iotaledger/twin-blob-storage/commit/13bc33445b179879688af3c98e8be8a5609d3f46))
|
|
24
|
+
* replace nextItem property with Link header ([#37](https://github.com/iotaledger/twin-blob-storage/issues/37)) ([0b68da5](https://github.com/iotaledger/twin-blob-storage/commit/0b68da58549c9e52eb2313ea5a868573840d5ca6))
|
|
25
|
+
* update contexts ([#34](https://github.com/iotaledger/twin-blob-storage/issues/34)) ([b9e432c](https://github.com/iotaledger/twin-blob-storage/commit/b9e432c26025e4bfdf5ba837516dfdbf40f45a61))
|
|
26
|
+
* update contexts and namespaces ([#32](https://github.com/iotaledger/twin-blob-storage/issues/32)) ([187ed36](https://github.com/iotaledger/twin-blob-storage/commit/187ed36a7d83062665f70689ec5e2b2f553a592e))
|
|
27
|
+
* update dependencies ([56f0094](https://github.com/iotaledger/twin-blob-storage/commit/56f0094b68d8bd22864cd899ac1b61d95540f719))
|
|
28
|
+
* update framework core ([ff339fe](https://github.com/iotaledger/twin-blob-storage/commit/ff339fe7e3f09ddff429907834bdf43617e9c05e))
|
|
29
|
+
* update schemas ([6fe6571](https://github.com/iotaledger/twin-blob-storage/commit/6fe65714e23209cdd760ecd5aa8e18762044e4b3))
|
|
30
|
+
* update to support fully qualified data type names ([3297d69](https://github.com/iotaledger/twin-blob-storage/commit/3297d69d332058b0f0141002087f56ba230620e1))
|
|
31
|
+
* update ts-to-schema generation ([03439c7](https://github.com/iotaledger/twin-blob-storage/commit/03439c726108bf645941290e41824c57a6a23de3))
|
|
32
|
+
* use shared store mechanism ([#12](https://github.com/iotaledger/twin-blob-storage/issues/12)) ([cae8110](https://github.com/iotaledger/twin-blob-storage/commit/cae8110681847a1ac4fcac968b8196694e49c320))
|
|
33
|
+
* use standard list json ld types ([d6bdfd6](https://github.com/iotaledger/twin-blob-storage/commit/d6bdfd68af47f70f3cc53658b4a12543497e1f48))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* Adding the optional flag to the entity ([#10](https://github.com/iotaledger/twin-blob-storage/issues/10)) ([626677e](https://github.com/iotaledger/twin-blob-storage/commit/626677e5730d23535a0eb1f36f8394d941ff2447))
|
|
39
|
+
* data validation tests ([556979a](https://github.com/iotaledger/twin-blob-storage/commit/556979a0c36a942f691c971a9bce3a5d72093f52))
|
|
40
|
+
* query params force coercion ([a5e547a](https://github.com/iotaledger/twin-blob-storage/commit/a5e547a775f8997cb04780938c7a9561ddb048d1))
|
|
41
|
+
|
|
42
|
+
## [0.0.3-next.8](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.3-next.7...blob-storage-models-v0.0.3-next.8) (2026-05-07)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* data validation tests ([556979a](https://github.com/iotaledger/twin-blob-storage/commit/556979a0c36a942f691c971a9bce3a5d72093f52))
|
|
48
|
+
|
|
49
|
+
## [0.0.3-next.7](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.3-next.6...blob-storage-models-v0.0.3-next.7) (2026-02-25)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* update schemas ([6fe6571](https://github.com/iotaledger/twin-blob-storage/commit/6fe65714e23209cdd760ecd5aa8e18762044e4b3))
|
|
55
|
+
|
|
56
|
+
## [0.0.3-next.6](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.3-next.5...blob-storage-models-v0.0.3-next.6) (2026-02-09)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Features
|
|
60
|
+
|
|
61
|
+
* add missing namespace for JSON-LD context ([80b15cf](https://github.com/iotaledger/twin-blob-storage/commit/80b15cf34b580d9550affa66bcbc9b9ccb34ce21))
|
|
62
|
+
* add ts-to-jsonld-context tool ([2fd217f](https://github.com/iotaledger/twin-blob-storage/commit/2fd217f50dfaf6ac068091876237f5a101a7995e))
|
|
63
|
+
* blobHash changed to integrity ([#41](https://github.com/iotaledger/twin-blob-storage/issues/41)) ([c06a55f](https://github.com/iotaledger/twin-blob-storage/commit/c06a55f0eed3f7cad5d19c4084abd8ef0cdbfb60))
|
|
64
|
+
|
|
65
|
+
## [0.0.3-next.5](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.3-next.4...blob-storage-models-v0.0.3-next.5) (2026-01-26)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Miscellaneous Chores
|
|
69
|
+
|
|
70
|
+
* **blob-storage-models:** Synchronize repo versions
|
|
71
|
+
|
|
72
|
+
## [0.0.3-next.4](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.3-next.3...blob-storage-models-v0.0.3-next.4) (2026-01-23)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Features
|
|
76
|
+
|
|
77
|
+
* replace nextItem property with Link header ([#37](https://github.com/iotaledger/twin-blob-storage/issues/37)) ([0b68da5](https://github.com/iotaledger/twin-blob-storage/commit/0b68da58549c9e52eb2313ea5a868573840d5ca6))
|
|
78
|
+
|
|
79
|
+
## [0.0.3-next.3](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.3-next.2...blob-storage-models-v0.0.3-next.3) (2026-01-21)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Features
|
|
83
|
+
|
|
84
|
+
* update contexts ([#34](https://github.com/iotaledger/twin-blob-storage/issues/34)) ([b9e432c](https://github.com/iotaledger/twin-blob-storage/commit/b9e432c26025e4bfdf5ba837516dfdbf40f45a61))
|
|
85
|
+
|
|
86
|
+
## [0.0.3-next.2](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.3-next.1...blob-storage-models-v0.0.3-next.2) (2026-01-14)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Features
|
|
90
|
+
|
|
91
|
+
* update contexts and namespaces ([#32](https://github.com/iotaledger/twin-blob-storage/issues/32)) ([187ed36](https://github.com/iotaledger/twin-blob-storage/commit/187ed36a7d83062665f70689ec5e2b2f553a592e))
|
|
92
|
+
|
|
93
|
+
## [0.0.3-next.1](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.3-next.0...blob-storage-models-v0.0.3-next.1) (2025-11-11)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Features
|
|
97
|
+
|
|
98
|
+
* add compression support ([67d239b](https://github.com/iotaledger/twin-blob-storage/commit/67d239bca8321bd90bf4ff93167c564130309730))
|
|
99
|
+
* add context id features ([#30](https://github.com/iotaledger/twin-blob-storage/issues/30)) ([fbf1c92](https://github.com/iotaledger/twin-blob-storage/commit/fbf1c9276424c841ef5ef3f4de8469ab3fba7e9c))
|
|
100
|
+
* add validate-locales ([f20fcec](https://github.com/iotaledger/twin-blob-storage/commit/f20fceced91e39a0c9edb770b2e43ce944c92f3c))
|
|
101
|
+
* additional encryption options on per item basis ([4b95a65](https://github.com/iotaledger/twin-blob-storage/commit/4b95a656d19e3b571cea905e36f29b679b13e1e8))
|
|
102
|
+
* eslint migration to flat config ([e4239dd](https://github.com/iotaledger/twin-blob-storage/commit/e4239dd1c721955cff7f0357255d2bba15319972))
|
|
103
|
+
* remove includeNodeIdentity flag ([13bc334](https://github.com/iotaledger/twin-blob-storage/commit/13bc33445b179879688af3c98e8be8a5609d3f46))
|
|
104
|
+
* update dependencies ([56f0094](https://github.com/iotaledger/twin-blob-storage/commit/56f0094b68d8bd22864cd899ac1b61d95540f719))
|
|
105
|
+
* update framework core ([ff339fe](https://github.com/iotaledger/twin-blob-storage/commit/ff339fe7e3f09ddff429907834bdf43617e9c05e))
|
|
106
|
+
* update to support fully qualified data type names ([3297d69](https://github.com/iotaledger/twin-blob-storage/commit/3297d69d332058b0f0141002087f56ba230620e1))
|
|
107
|
+
* update ts-to-schema generation ([03439c7](https://github.com/iotaledger/twin-blob-storage/commit/03439c726108bf645941290e41824c57a6a23de3))
|
|
108
|
+
* use shared store mechanism ([#12](https://github.com/iotaledger/twin-blob-storage/issues/12)) ([cae8110](https://github.com/iotaledger/twin-blob-storage/commit/cae8110681847a1ac4fcac968b8196694e49c320))
|
|
109
|
+
* use standard list json ld types ([d6bdfd6](https://github.com/iotaledger/twin-blob-storage/commit/d6bdfd68af47f70f3cc53658b4a12543497e1f48))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Bug Fixes
|
|
113
|
+
|
|
114
|
+
* Adding the optional flag to the entity ([#10](https://github.com/iotaledger/twin-blob-storage/issues/10)) ([626677e](https://github.com/iotaledger/twin-blob-storage/commit/626677e5730d23535a0eb1f36f8394d941ff2447))
|
|
115
|
+
* query params force coercion ([a5e547a](https://github.com/iotaledger/twin-blob-storage/commit/a5e547a775f8997cb04780938c7a9561ddb048d1))
|
|
116
|
+
|
|
117
|
+
## [0.0.2-next.5](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.2-next.4...blob-storage-models-v0.0.2-next.5) (2025-10-09)
|
|
4
118
|
|
|
5
119
|
|
|
6
120
|
### Features
|
|
7
121
|
|
|
8
|
-
* add validate-locales ([f20fcec](https://github.com/
|
|
122
|
+
* add validate-locales ([f20fcec](https://github.com/iotaledger/twin-blob-storage/commit/f20fceced91e39a0c9edb770b2e43ce944c92f3c))
|
|
9
123
|
|
|
10
|
-
## [0.0.2-next.4](https://github.com/
|
|
124
|
+
## [0.0.2-next.4](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.2-next.3...blob-storage-models-v0.0.2-next.4) (2025-10-02)
|
|
11
125
|
|
|
12
126
|
|
|
13
127
|
### Miscellaneous Chores
|
|
14
128
|
|
|
15
129
|
* **blob-storage-models:** Synchronize repo versions
|
|
16
130
|
|
|
17
|
-
## [0.0.2-next.3](https://github.com/
|
|
131
|
+
## [0.0.2-next.3](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.2-next.2...blob-storage-models-v0.0.2-next.3) (2025-08-29)
|
|
18
132
|
|
|
19
133
|
|
|
20
134
|
### Features
|
|
21
135
|
|
|
22
|
-
* eslint migration to flat config ([e4239dd](https://github.com/
|
|
136
|
+
* eslint migration to flat config ([e4239dd](https://github.com/iotaledger/twin-blob-storage/commit/e4239dd1c721955cff7f0357255d2bba15319972))
|
|
23
137
|
|
|
24
|
-
## [0.0.2-next.2](https://github.com/
|
|
138
|
+
## [0.0.2-next.2](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.2-next.1...blob-storage-models-v0.0.2-next.2) (2025-08-20)
|
|
25
139
|
|
|
26
140
|
|
|
27
141
|
### Features
|
|
28
142
|
|
|
29
|
-
* update framework core ([ff339fe](https://github.com/
|
|
143
|
+
* update framework core ([ff339fe](https://github.com/iotaledger/twin-blob-storage/commit/ff339fe7e3f09ddff429907834bdf43617e9c05e))
|
|
30
144
|
|
|
31
|
-
## [0.0.2-next.1](https://github.com/
|
|
145
|
+
## [0.0.2-next.1](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.2-next.0...blob-storage-models-v0.0.2-next.1) (2025-07-24)
|
|
32
146
|
|
|
33
147
|
|
|
34
148
|
### Features
|
|
35
149
|
|
|
36
|
-
* add compression support ([67d239b](https://github.com/
|
|
37
|
-
* additional encryption options on per item basis ([4b95a65](https://github.com/
|
|
38
|
-
* remove includeNodeIdentity flag ([13bc334](https://github.com/
|
|
39
|
-
* update dependencies ([56f0094](https://github.com/
|
|
40
|
-
* update to support fully qualified data type names ([3297d69](https://github.com/
|
|
41
|
-
* update ts-to-schema generation ([03439c7](https://github.com/
|
|
42
|
-
* use shared store mechanism ([#12](https://github.com/
|
|
43
|
-
* use standard list json ld types ([d6bdfd6](https://github.com/
|
|
150
|
+
* add compression support ([67d239b](https://github.com/iotaledger/twin-blob-storage/commit/67d239bca8321bd90bf4ff93167c564130309730))
|
|
151
|
+
* additional encryption options on per item basis ([4b95a65](https://github.com/iotaledger/twin-blob-storage/commit/4b95a656d19e3b571cea905e36f29b679b13e1e8))
|
|
152
|
+
* remove includeNodeIdentity flag ([13bc334](https://github.com/iotaledger/twin-blob-storage/commit/13bc33445b179879688af3c98e8be8a5609d3f46))
|
|
153
|
+
* update dependencies ([56f0094](https://github.com/iotaledger/twin-blob-storage/commit/56f0094b68d8bd22864cd899ac1b61d95540f719))
|
|
154
|
+
* update to support fully qualified data type names ([3297d69](https://github.com/iotaledger/twin-blob-storage/commit/3297d69d332058b0f0141002087f56ba230620e1))
|
|
155
|
+
* update ts-to-schema generation ([03439c7](https://github.com/iotaledger/twin-blob-storage/commit/03439c726108bf645941290e41824c57a6a23de3))
|
|
156
|
+
* use shared store mechanism ([#12](https://github.com/iotaledger/twin-blob-storage/issues/12)) ([cae8110](https://github.com/iotaledger/twin-blob-storage/commit/cae8110681847a1ac4fcac968b8196694e49c320))
|
|
157
|
+
* use standard list json ld types ([d6bdfd6](https://github.com/iotaledger/twin-blob-storage/commit/d6bdfd68af47f70f3cc53658b4a12543497e1f48))
|
|
44
158
|
|
|
45
159
|
|
|
46
160
|
### Bug Fixes
|
|
47
161
|
|
|
48
|
-
* Adding the optional flag to the entity ([#10](https://github.com/
|
|
49
|
-
* query params force coercion ([a5e547a](https://github.com/
|
|
162
|
+
* Adding the optional flag to the entity ([#10](https://github.com/iotaledger/twin-blob-storage/issues/10)) ([626677e](https://github.com/iotaledger/twin-blob-storage/commit/626677e5730d23535a0eb1f36f8394d941ff2447))
|
|
163
|
+
* query params force coercion ([a5e547a](https://github.com/iotaledger/twin-blob-storage/commit/a5e547a775f8997cb04780938c7a9561ddb048d1))
|
|
50
164
|
|
|
51
165
|
## 0.0.1 (2025-07-04)
|
|
52
166
|
|
|
53
167
|
|
|
54
168
|
### Features
|
|
55
169
|
|
|
56
|
-
* release to production ([eacfe75](https://github.com/
|
|
170
|
+
* release to production ([eacfe75](https://github.com/iotaledger/twin-blob-storage/commit/eacfe754a0dcd9243d9e13d86422327d0a605164))
|
|
57
171
|
|
|
58
|
-
## [0.0.1-next.37](https://github.com/
|
|
172
|
+
## [0.0.1-next.37](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.1-next.36...blob-storage-models-v0.0.1-next.37) (2025-06-20)
|
|
59
173
|
|
|
60
174
|
|
|
61
175
|
### Bug Fixes
|
|
62
176
|
|
|
63
|
-
* query params force coercion ([a5e547a](https://github.com/
|
|
177
|
+
* query params force coercion ([a5e547a](https://github.com/iotaledger/twin-blob-storage/commit/a5e547a775f8997cb04780938c7a9561ddb048d1))
|
|
64
178
|
|
|
65
|
-
## [0.0.1-next.36](https://github.com/
|
|
179
|
+
## [0.0.1-next.36](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.1-next.35...blob-storage-models-v0.0.1-next.36) (2025-06-19)
|
|
66
180
|
|
|
67
181
|
|
|
68
182
|
### Features
|
|
69
183
|
|
|
70
|
-
* add compression support ([67d239b](https://github.com/
|
|
184
|
+
* add compression support ([67d239b](https://github.com/iotaledger/twin-blob-storage/commit/67d239bca8321bd90bf4ff93167c564130309730))
|
|
71
185
|
|
|
72
|
-
## [0.0.1-next.35](https://github.com/
|
|
186
|
+
## [0.0.1-next.35](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.1-next.34...blob-storage-models-v0.0.1-next.35) (2025-06-17)
|
|
73
187
|
|
|
74
188
|
|
|
75
189
|
### Features
|
|
76
190
|
|
|
77
|
-
* additional encryption options on per item basis ([4b95a65](https://github.com/
|
|
191
|
+
* additional encryption options on per item basis ([4b95a65](https://github.com/iotaledger/twin-blob-storage/commit/4b95a656d19e3b571cea905e36f29b679b13e1e8))
|
|
78
192
|
|
|
79
|
-
## [0.0.1-next.34](https://github.com/
|
|
193
|
+
## [0.0.1-next.34](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.1-next.33...blob-storage-models-v0.0.1-next.34) (2025-06-12)
|
|
80
194
|
|
|
81
195
|
|
|
82
196
|
### Features
|
|
83
197
|
|
|
84
|
-
* update dependencies ([56f0094](https://github.com/
|
|
198
|
+
* update dependencies ([56f0094](https://github.com/iotaledger/twin-blob-storage/commit/56f0094b68d8bd22864cd899ac1b61d95540f719))
|
|
85
199
|
|
|
86
|
-
## [0.0.1-next.33](https://github.com/
|
|
200
|
+
## [0.0.1-next.33](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.1-next.32...blob-storage-models-v0.0.1-next.33) (2025-06-03)
|
|
87
201
|
|
|
88
202
|
|
|
89
203
|
### Features
|
|
90
204
|
|
|
91
|
-
* update ts-to-schema generation ([03439c7](https://github.com/
|
|
205
|
+
* update ts-to-schema generation ([03439c7](https://github.com/iotaledger/twin-blob-storage/commit/03439c726108bf645941290e41824c57a6a23de3))
|
|
92
206
|
|
|
93
|
-
## [0.0.1-next.32](https://github.com/
|
|
207
|
+
## [0.0.1-next.32](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.1-next.31...blob-storage-models-v0.0.1-next.32) (2025-05-28)
|
|
94
208
|
|
|
95
209
|
|
|
96
210
|
### Features
|
|
97
211
|
|
|
98
|
-
* update to support fully qualified data type names ([3297d69](https://github.com/
|
|
212
|
+
* update to support fully qualified data type names ([3297d69](https://github.com/iotaledger/twin-blob-storage/commit/3297d69d332058b0f0141002087f56ba230620e1))
|
|
99
213
|
|
|
100
|
-
## [0.0.1-next.31](https://github.com/
|
|
214
|
+
## [0.0.1-next.31](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.1-next.30...blob-storage-models-v0.0.1-next.31) (2025-05-08)
|
|
101
215
|
|
|
102
216
|
|
|
103
217
|
### Features
|
|
104
218
|
|
|
105
|
-
* use standard list json ld types ([d6bdfd6](https://github.com/
|
|
219
|
+
* use standard list json ld types ([d6bdfd6](https://github.com/iotaledger/twin-blob-storage/commit/d6bdfd68af47f70f3cc53658b4a12543497e1f48))
|
|
106
220
|
|
|
107
|
-
## [0.0.1-next.30](https://github.com/
|
|
221
|
+
## [0.0.1-next.30](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.1-next.29...blob-storage-models-v0.0.1-next.30) (2025-04-17)
|
|
108
222
|
|
|
109
223
|
|
|
110
224
|
### Features
|
|
111
225
|
|
|
112
|
-
* use shared store mechanism ([#12](https://github.com/
|
|
226
|
+
* use shared store mechanism ([#12](https://github.com/iotaledger/twin-blob-storage/issues/12)) ([cae8110](https://github.com/iotaledger/twin-blob-storage/commit/cae8110681847a1ac4fcac968b8196694e49c320))
|
|
113
227
|
|
|
114
|
-
## [0.0.1-next.29](https://github.com/
|
|
228
|
+
## [0.0.1-next.29](https://github.com/iotaledger/twin-blob-storage/compare/blob-storage-models-v0.0.1-next.28...blob-storage-models-v0.0.1-next.29) (2025-03-28)
|
|
115
229
|
|
|
116
230
|
|
|
117
231
|
### Bug Fixes
|
|
118
232
|
|
|
119
|
-
* Adding the optional flag to the entity ([#10](https://github.com/
|
|
233
|
+
* Adding the optional flag to the entity ([#10](https://github.com/iotaledger/twin-blob-storage/issues/10)) ([626677e](https://github.com/iotaledger/twin-blob-storage/commit/626677e5730d23535a0eb1f36f8394d941ff2447))
|
|
120
234
|
|
|
121
235
|
## v0.0.1-next.28
|
|
122
236
|
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Models Examples
|
|
2
|
+
|
|
3
|
+
Use these snippets to register data types and resolve connector instances by namespace when composing storage workflows.
|
|
4
|
+
|
|
5
|
+
## BlobStorageDataTypes
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { BlobStorageDataTypes } from '@twin.org/blob-storage-models';
|
|
9
|
+
|
|
10
|
+
BlobStorageDataTypes.registerTypes();
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## BlobStorageConnectorFactory
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { BlobStorageConnectorFactory } from '@twin.org/blob-storage-models';
|
|
17
|
+
|
|
18
|
+
const connectorNamespaces = BlobStorageConnectorFactory.names();
|
|
19
|
+
console.log(connectorNamespaces.length); // 2
|
|
20
|
+
|
|
21
|
+
const defaultConnector = BlobStorageConnectorFactory.get(connectorNamespaces[0]);
|
|
22
|
+
console.log(defaultConnector.className()); // MemoryBlobStorageConnector
|
|
23
|
+
```
|