@twin.org/blob-storage-models 0.0.1-next.9 → 0.0.2-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.
Files changed (38) hide show
  1. package/dist/cjs/index.cjs +188 -0
  2. package/dist/esm/index.mjs +185 -1
  3. package/dist/types/dataTypes/blobStorageDataTypes.d.ts +9 -0
  4. package/dist/types/index.d.ts +8 -0
  5. package/dist/types/models/IBlobStorageComponent.d.ts +42 -17
  6. package/dist/types/models/IBlobStorageEntry.d.ts +65 -0
  7. package/dist/types/models/IBlobStorageEntryList.d.ts +30 -0
  8. package/dist/types/models/api/IBlobStorageCreateRequest.d.ts +17 -2
  9. package/dist/types/models/api/IBlobStorageGetContentRequest.d.ts +11 -1
  10. package/dist/types/models/api/IBlobStorageGetRequest.d.ts +18 -1
  11. package/dist/types/models/api/IBlobStorageGetResponse.d.ts +9 -19
  12. package/dist/types/models/api/IBlobStorageListRequest.d.ts +39 -0
  13. package/dist/types/models/api/IBlobStorageListResponse.d.ts +17 -0
  14. package/dist/types/models/api/IBlobStorageUpdateRequest.d.ts +2 -2
  15. package/dist/types/models/blobStorageCompressionType.d.ts +17 -0
  16. package/dist/types/models/blobStorageContexts.d.ts +17 -0
  17. package/dist/types/models/blobStorageTypes.d.ts +17 -0
  18. package/docs/changelog.md +91 -1
  19. package/docs/reference/classes/BlobStorageDataTypes.md +25 -0
  20. package/docs/reference/index.md +17 -0
  21. package/docs/reference/interfaces/IBlobStorageComponent.md +146 -43
  22. package/docs/reference/interfaces/IBlobStorageConnector.md +11 -5
  23. package/docs/reference/interfaces/IBlobStorageCreateRequest.md +34 -4
  24. package/docs/reference/interfaces/IBlobStorageEntry.md +107 -0
  25. package/docs/reference/interfaces/IBlobStorageEntryList.md +35 -0
  26. package/docs/reference/interfaces/IBlobStorageGetContentRequest.md +25 -1
  27. package/docs/reference/interfaces/IBlobStorageGetRequest.md +37 -1
  28. package/docs/reference/interfaces/IBlobStorageGetResponse.md +9 -21
  29. package/docs/reference/interfaces/IBlobStorageListRequest.md +53 -0
  30. package/docs/reference/interfaces/IBlobStorageListResponse.md +23 -0
  31. package/docs/reference/interfaces/IBlobStorageUpdateRequest.md +4 -4
  32. package/docs/reference/type-aliases/BlobStorageCompressionType.md +5 -0
  33. package/docs/reference/type-aliases/BlobStorageContexts.md +5 -0
  34. package/docs/reference/type-aliases/BlobStorageTypes.md +5 -0
  35. package/docs/reference/variables/BlobStorageCompressionType.md +19 -0
  36. package/docs/reference/variables/BlobStorageContexts.md +19 -0
  37. package/docs/reference/variables/BlobStorageTypes.md +19 -0
  38. package/package.json +9 -5
@@ -1,7 +1,14 @@
1
+ import type { HeaderTypes, MimeTypes } from "@twin.org/web";
1
2
  /**
2
3
  * Request to get an entry from blob storage.
3
4
  */
4
5
  export interface IBlobStorageGetRequest {
6
+ /**
7
+ * The headers which can be used to determine the response data type.
8
+ */
9
+ headers?: {
10
+ [HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
11
+ };
5
12
  /**
6
13
  * The path parameters.
7
14
  */
@@ -19,6 +26,16 @@ export interface IBlobStorageGetRequest {
19
26
  * Include the content in the response, otherwise only metadata is returned.
20
27
  * @default false
21
28
  */
22
- includeContent?: boolean;
29
+ includeContent?: boolean | string;
30
+ /**
31
+ * If the content should be decompressed, if it was compressed when stored, defaults to true.
32
+ * @default true
33
+ */
34
+ decompress?: boolean | string;
35
+ /**
36
+ * Use a different vault key id for decryption, if not provided the default vault key id will be used.
37
+ * @default undefined
38
+ */
39
+ overrideVaultKeyId?: string;
23
40
  };
24
41
  }
@@ -1,27 +1,17 @@
1
- import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
1
+ import type { HeaderTypes, MimeTypes } from "@twin.org/web";
2
+ import type { IBlobStorageEntry } from "../IBlobStorageEntry";
2
3
  /**
3
4
  * Response to get an entry from blob storage.
4
5
  */
5
6
  export interface IBlobStorageGetResponse {
6
7
  /**
7
- * The body parameters.
8
+ * The headers which can be used to determine the response data type.
8
9
  */
9
- body: {
10
- /**
11
- * The mime type of the blob.
12
- */
13
- mimeType?: string;
14
- /**
15
- * The extension of the blob.
16
- */
17
- extension?: string;
18
- /**
19
- * Custom metadata to associate with the blob as JSON-LD.
20
- */
21
- metadata?: IJsonLdNodeObject;
22
- /**
23
- * The blob in base64 format, if the includeContent flag was set in the request.
24
- */
25
- blob?: string;
10
+ headers?: {
11
+ [HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
26
12
  };
13
+ /**
14
+ * The body parameters.
15
+ */
16
+ body: IBlobStorageEntry;
27
17
  }
@@ -0,0 +1,39 @@
1
+ import type { SortDirection } from "@twin.org/entity";
2
+ import type { HeaderTypes, MimeTypes } from "@twin.org/web";
3
+ import type { IBlobStorageEntry } from "../IBlobStorageEntry";
4
+ /**
5
+ * Query the entries from blob storage.
6
+ */
7
+ export interface IBlobStorageListRequest {
8
+ /**
9
+ * The headers which can be used to determine the response data type.
10
+ */
11
+ headers?: {
12
+ [HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
13
+ };
14
+ /**
15
+ * The parameters from the query.
16
+ */
17
+ query?: {
18
+ /**
19
+ * The condition for the query as JSON version of EntityCondition type.
20
+ */
21
+ conditions?: string;
22
+ /**
23
+ * The order for the results, default to created.
24
+ */
25
+ orderBy?: keyof Pick<IBlobStorageEntry, "dateCreated" | "dateModified">;
26
+ /**
27
+ * The direction for the order, defaults to desc.
28
+ */
29
+ orderByDirection?: SortDirection;
30
+ /**
31
+ * The number of entries to return per page.
32
+ */
33
+ pageSize?: number | string;
34
+ /**
35
+ * The cursor to get next chunk of data, returned in previous response.
36
+ */
37
+ cursor?: string;
38
+ };
39
+ }
@@ -0,0 +1,17 @@
1
+ import type { HeaderTypes, MimeTypes } from "@twin.org/web";
2
+ import type { IBlobStorageEntryList } from "../IBlobStorageEntryList";
3
+ /**
4
+ * Response to getting the list of entries from a query.
5
+ */
6
+ export interface IBlobStorageListResponse {
7
+ /**
8
+ * The headers which can be used to determine the response data type.
9
+ */
10
+ headers?: {
11
+ [HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
12
+ };
13
+ /**
14
+ * The list of entries from the query.
15
+ */
16
+ body: IBlobStorageEntryList;
17
+ }
@@ -19,11 +19,11 @@ export interface IBlobStorageUpdateRequest {
19
19
  /**
20
20
  * The mime type of the blob, will be detected if left undefined.
21
21
  */
22
- mimeType?: string;
22
+ encodingFormat?: string;
23
23
  /**
24
24
  * The extension of the blob, will be detected if left undefined.
25
25
  */
26
- extension?: string;
26
+ fileExtension?: string;
27
27
  /**
28
28
  * Custom metadata to associate with the blob as JSON-LD.
29
29
  */
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The types of compression for blob storage data.
3
+ */
4
+ export declare const BlobStorageCompressionType: {
5
+ /**
6
+ * Gzip.
7
+ */
8
+ readonly Gzip: "gzip";
9
+ /**
10
+ * Deflate.
11
+ */
12
+ readonly Deflate: "deflate";
13
+ };
14
+ /**
15
+ * The types of compression for blob storage data.
16
+ */
17
+ export type BlobStorageCompressionType = (typeof BlobStorageCompressionType)[keyof typeof BlobStorageCompressionType];
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The contexts of blob storage data.
3
+ */
4
+ export declare const BlobStorageContexts: {
5
+ /**
6
+ * The context root for the blob storage types.
7
+ */
8
+ readonly ContextRoot: "https://schema.twindev.org/blob-storage/";
9
+ /**
10
+ * The context root for the common types.
11
+ */
12
+ readonly ContextRootCommon: "https://schema.twindev.org/common/";
13
+ };
14
+ /**
15
+ * The contexts of blob storage data.
16
+ */
17
+ export type BlobStorageContexts = (typeof BlobStorageContexts)[keyof typeof BlobStorageContexts];
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The types of blob storage data.
3
+ */
4
+ export declare const BlobStorageTypes: {
5
+ /**
6
+ * Represents blob storage entry.
7
+ */
8
+ readonly Entry: "BlobStorageEntry";
9
+ /**
10
+ * Represents blob storage entry compression.
11
+ */
12
+ readonly CompressionType: "BlobStorageCompressionType";
13
+ };
14
+ /**
15
+ * The types of blob storage data.
16
+ */
17
+ export type BlobStorageTypes = (typeof BlobStorageTypes)[keyof typeof BlobStorageTypes];
package/docs/changelog.md CHANGED
@@ -1,5 +1,95 @@
1
1
  # @twin.org/blob-storage-models - Changelog
2
2
 
3
- ## v0.0.1-next.9
3
+ ## [0.0.2-next.1](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.2-next.0...blob-storage-models-v0.0.2-next.1) (2025-07-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * add compression support ([67d239b](https://github.com/twinfoundation/blob-storage/commit/67d239bca8321bd90bf4ff93167c564130309730))
9
+ * additional encryption options on per item basis ([4b95a65](https://github.com/twinfoundation/blob-storage/commit/4b95a656d19e3b571cea905e36f29b679b13e1e8))
10
+ * remove includeNodeIdentity flag ([13bc334](https://github.com/twinfoundation/blob-storage/commit/13bc33445b179879688af3c98e8be8a5609d3f46))
11
+ * update dependencies ([56f0094](https://github.com/twinfoundation/blob-storage/commit/56f0094b68d8bd22864cd899ac1b61d95540f719))
12
+ * update to support fully qualified data type names ([3297d69](https://github.com/twinfoundation/blob-storage/commit/3297d69d332058b0f0141002087f56ba230620e1))
13
+ * update ts-to-schema generation ([03439c7](https://github.com/twinfoundation/blob-storage/commit/03439c726108bf645941290e41824c57a6a23de3))
14
+ * use shared store mechanism ([#12](https://github.com/twinfoundation/blob-storage/issues/12)) ([cae8110](https://github.com/twinfoundation/blob-storage/commit/cae8110681847a1ac4fcac968b8196694e49c320))
15
+ * use standard list json ld types ([d6bdfd6](https://github.com/twinfoundation/blob-storage/commit/d6bdfd68af47f70f3cc53658b4a12543497e1f48))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * Adding the optional flag to the entity ([#10](https://github.com/twinfoundation/blob-storage/issues/10)) ([626677e](https://github.com/twinfoundation/blob-storage/commit/626677e5730d23535a0eb1f36f8394d941ff2447))
21
+ * query params force coercion ([a5e547a](https://github.com/twinfoundation/blob-storage/commit/a5e547a775f8997cb04780938c7a9561ddb048d1))
22
+
23
+ ## 0.0.1 (2025-07-04)
24
+
25
+
26
+ ### Features
27
+
28
+ * release to production ([eacfe75](https://github.com/twinfoundation/blob-storage/commit/eacfe754a0dcd9243d9e13d86422327d0a605164))
29
+
30
+ ## [0.0.1-next.37](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.1-next.36...blob-storage-models-v0.0.1-next.37) (2025-06-20)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * query params force coercion ([a5e547a](https://github.com/twinfoundation/blob-storage/commit/a5e547a775f8997cb04780938c7a9561ddb048d1))
36
+
37
+ ## [0.0.1-next.36](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.1-next.35...blob-storage-models-v0.0.1-next.36) (2025-06-19)
38
+
39
+
40
+ ### Features
41
+
42
+ * add compression support ([67d239b](https://github.com/twinfoundation/blob-storage/commit/67d239bca8321bd90bf4ff93167c564130309730))
43
+
44
+ ## [0.0.1-next.35](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.1-next.34...blob-storage-models-v0.0.1-next.35) (2025-06-17)
45
+
46
+
47
+ ### Features
48
+
49
+ * additional encryption options on per item basis ([4b95a65](https://github.com/twinfoundation/blob-storage/commit/4b95a656d19e3b571cea905e36f29b679b13e1e8))
50
+
51
+ ## [0.0.1-next.34](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.1-next.33...blob-storage-models-v0.0.1-next.34) (2025-06-12)
52
+
53
+
54
+ ### Features
55
+
56
+ * update dependencies ([56f0094](https://github.com/twinfoundation/blob-storage/commit/56f0094b68d8bd22864cd899ac1b61d95540f719))
57
+
58
+ ## [0.0.1-next.33](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.1-next.32...blob-storage-models-v0.0.1-next.33) (2025-06-03)
59
+
60
+
61
+ ### Features
62
+
63
+ * update ts-to-schema generation ([03439c7](https://github.com/twinfoundation/blob-storage/commit/03439c726108bf645941290e41824c57a6a23de3))
64
+
65
+ ## [0.0.1-next.32](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.1-next.31...blob-storage-models-v0.0.1-next.32) (2025-05-28)
66
+
67
+
68
+ ### Features
69
+
70
+ * update to support fully qualified data type names ([3297d69](https://github.com/twinfoundation/blob-storage/commit/3297d69d332058b0f0141002087f56ba230620e1))
71
+
72
+ ## [0.0.1-next.31](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.1-next.30...blob-storage-models-v0.0.1-next.31) (2025-05-08)
73
+
74
+
75
+ ### Features
76
+
77
+ * use standard list json ld types ([d6bdfd6](https://github.com/twinfoundation/blob-storage/commit/d6bdfd68af47f70f3cc53658b4a12543497e1f48))
78
+
79
+ ## [0.0.1-next.30](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.1-next.29...blob-storage-models-v0.0.1-next.30) (2025-04-17)
80
+
81
+
82
+ ### Features
83
+
84
+ * use shared store mechanism ([#12](https://github.com/twinfoundation/blob-storage/issues/12)) ([cae8110](https://github.com/twinfoundation/blob-storage/commit/cae8110681847a1ac4fcac968b8196694e49c320))
85
+
86
+ ## [0.0.1-next.29](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.1-next.28...blob-storage-models-v0.0.1-next.29) (2025-03-28)
87
+
88
+
89
+ ### Bug Fixes
90
+
91
+ * Adding the optional flag to the entity ([#10](https://github.com/twinfoundation/blob-storage/issues/10)) ([626677e](https://github.com/twinfoundation/blob-storage/commit/626677e5730d23535a0eb1f36f8394d941ff2447))
92
+
93
+ ## v0.0.1-next.28
4
94
 
5
95
  - Initial Release
@@ -0,0 +1,25 @@
1
+ # Class: BlobStorageDataTypes
2
+
3
+ Handle all the data types for blob storage.
4
+
5
+ ## Constructors
6
+
7
+ ### Constructor
8
+
9
+ > **new BlobStorageDataTypes**(): `BlobStorageDataTypes`
10
+
11
+ #### Returns
12
+
13
+ `BlobStorageDataTypes`
14
+
15
+ ## Methods
16
+
17
+ ### registerTypes()
18
+
19
+ > `static` **registerTypes**(): `void`
20
+
21
+ Register all the data types.
22
+
23
+ #### Returns
24
+
25
+ `void`
@@ -1,17 +1,34 @@
1
1
  # @twin.org/blob-storage-models
2
2
 
3
+ ## Classes
4
+
5
+ - [BlobStorageDataTypes](classes/BlobStorageDataTypes.md)
6
+
3
7
  ## Interfaces
4
8
 
5
9
  - [IBlobStorageComponent](interfaces/IBlobStorageComponent.md)
6
10
  - [IBlobStorageConnector](interfaces/IBlobStorageConnector.md)
11
+ - [IBlobStorageEntry](interfaces/IBlobStorageEntry.md)
12
+ - [IBlobStorageEntryList](interfaces/IBlobStorageEntryList.md)
7
13
  - [IBlobStorageCreateRequest](interfaces/IBlobStorageCreateRequest.md)
8
14
  - [IBlobStorageGetContentRequest](interfaces/IBlobStorageGetContentRequest.md)
9
15
  - [IBlobStorageGetContentResponse](interfaces/IBlobStorageGetContentResponse.md)
10
16
  - [IBlobStorageGetRequest](interfaces/IBlobStorageGetRequest.md)
11
17
  - [IBlobStorageGetResponse](interfaces/IBlobStorageGetResponse.md)
18
+ - [IBlobStorageListRequest](interfaces/IBlobStorageListRequest.md)
19
+ - [IBlobStorageListResponse](interfaces/IBlobStorageListResponse.md)
12
20
  - [IBlobStorageRemoveRequest](interfaces/IBlobStorageRemoveRequest.md)
13
21
  - [IBlobStorageUpdateRequest](interfaces/IBlobStorageUpdateRequest.md)
14
22
 
23
+ ## Type Aliases
24
+
25
+ - [BlobStorageCompressionType](type-aliases/BlobStorageCompressionType.md)
26
+ - [BlobStorageContexts](type-aliases/BlobStorageContexts.md)
27
+ - [BlobStorageTypes](type-aliases/BlobStorageTypes.md)
28
+
15
29
  ## Variables
16
30
 
17
31
  - [BlobStorageConnectorFactory](variables/BlobStorageConnectorFactory.md)
32
+ - [BlobStorageCompressionType](variables/BlobStorageCompressionType.md)
33
+ - [BlobStorageContexts](variables/BlobStorageContexts.md)
34
+ - [BlobStorageTypes](variables/BlobStorageTypes.md)
@@ -10,37 +10,73 @@ Interface describing an blob storage component.
10
10
 
11
11
  ### create()
12
12
 
13
- > **create**(`blob`, `mimeType`?, `extension`?, `metadata`?, `namespace`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`string`\>
13
+ > **create**(`blob`, `encodingFormat?`, `fileExtension?`, `metadata?`, `options?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`string`\>
14
14
 
15
15
  Create the blob with some metadata.
16
16
 
17
17
  #### Parameters
18
18
 
19
- **blob**: `string`
19
+ ##### blob
20
+
21
+ `string`
20
22
 
21
23
  The data for the blob in base64 format.
22
24
 
23
- **mimeType?**: `string`
25
+ ##### encodingFormat?
26
+
27
+ `string`
24
28
 
25
29
  Mime type for the blob, will be detected if left undefined.
26
30
 
27
- **extension?**: `string`
31
+ ##### fileExtension?
32
+
33
+ `string`
28
34
 
29
35
  Extension for the blob, will be detected if left undefined.
30
36
 
31
- **metadata?**: `IJsonLdNodeObject`
37
+ ##### metadata?
38
+
39
+ `IJsonLdNodeObject`
32
40
 
33
41
  Data for the custom metadata as JSON-LD.
34
42
 
35
- **namespace?**: `string`
43
+ ##### options?
44
+
45
+ Optional options for the creation of the blob.
46
+
47
+ ###### disableEncryption?
48
+
49
+ `boolean`
50
+
51
+ Disables encryption if enabled by default.
52
+
53
+ ###### overrideVaultKeyId?
54
+
55
+ `string`
56
+
57
+ Use a different vault key id for encryption, if not provided the default vault key id will be used.
58
+
59
+ ###### compress?
60
+
61
+ [`BlobStorageCompressionType`](../type-aliases/BlobStorageCompressionType.md)
62
+
63
+ Optional compression type to use for the blob, defaults to no compression.
64
+
65
+ ###### namespace?
66
+
67
+ `string`
36
68
 
37
69
  The namespace to use for storing, defaults to component configured namespace.
38
70
 
39
- **userIdentity?**: `string`
71
+ ##### userIdentity?
72
+
73
+ `string`
40
74
 
41
75
  The user identity to use with storage operations.
42
76
 
43
- **nodeIdentity?**: `string`
77
+ ##### nodeIdentity?
78
+
79
+ `string`
44
80
 
45
81
  The node identity to use with storage operations.
46
82
 
@@ -54,49 +90,57 @@ The id of the stored blob in urn format.
54
90
 
55
91
  ### get()
56
92
 
57
- > **get**(`id`, `includeContent`, `userIdentity`?, `nodeIdentity`?): `Promise`\<`object`\>
93
+ > **get**(`id`, `options?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<[`IBlobStorageEntry`](IBlobStorageEntry.md)\>
58
94
 
59
95
  Get the blob and metadata.
60
96
 
61
97
  #### Parameters
62
98
 
63
- **id**: `string`
99
+ ##### id
100
+
101
+ `string`
64
102
 
65
103
  The id of the blob to get in urn format.
66
104
 
67
- **includeContent**: `boolean`
105
+ ##### options?
106
+
107
+ Optional options for the retrieval of the blob.
108
+
109
+ ###### includeContent?
110
+
111
+ `boolean`
68
112
 
69
113
  Include the content, or just get the metadata.
70
114
 
71
- **userIdentity?**: `string`
115
+ ###### decompress?
72
116
 
73
- The user identity to use with storage operations.
117
+ `boolean`
74
118
 
75
- **nodeIdentity?**: `string`
119
+ If the content should be decompressed, if it was compressed when stored, defaults to true.
76
120
 
77
- The node identity to use with storage operations.
121
+ ###### overrideVaultKeyId?
78
122
 
79
- #### Returns
123
+ `string`
80
124
 
81
- `Promise`\<`object`\>
125
+ Use a different vault key id for decryption, if not provided the default vault key id will be used.
82
126
 
83
- The data and metadata for the blob if it can be found.
127
+ ##### userIdentity?
84
128
 
85
- ##### blob?
129
+ `string`
86
130
 
87
- > `optional` **blob**: `string`
131
+ The user identity to use with storage operations.
88
132
 
89
- ##### mimeType?
133
+ ##### nodeIdentity?
90
134
 
91
- > `optional` **mimeType**: `string`
135
+ `string`
92
136
 
93
- ##### extension?
137
+ The node identity to use with storage operations.
94
138
 
95
- > `optional` **extension**: `string`
139
+ #### Returns
96
140
 
97
- ##### metadata?
141
+ `Promise`\<[`IBlobStorageEntry`](IBlobStorageEntry.md)\>
98
142
 
99
- > `optional` **metadata**: `IJsonLdNodeObject`
143
+ The data and metadata for the blob if it can be found.
100
144
 
101
145
  #### Throws
102
146
 
@@ -106,35 +150,41 @@ Not found error if the blob cannot be found.
106
150
 
107
151
  ### update()
108
152
 
109
- > **update**(`id`, `mimeType`?, `extension`?, `metadata`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`void`\>
153
+ > **update**(`id`, `encodingFormat?`, `fileExtension?`, `metadata?`, `userIdentity?`): `Promise`\<`void`\>
110
154
 
111
155
  Update the blob with metadata.
112
156
 
113
157
  #### Parameters
114
158
 
115
- **id**: `string`
159
+ ##### id
160
+
161
+ `string`
116
162
 
117
163
  The id of the blob metadata to update.
118
164
 
119
- **mimeType?**: `string`
165
+ ##### encodingFormat?
166
+
167
+ `string`
120
168
 
121
169
  Mime type for the blob, will be detected if left undefined.
122
170
 
123
- **extension?**: `string`
171
+ ##### fileExtension?
172
+
173
+ `string`
124
174
 
125
175
  Extension for the blob, will be detected if left undefined.
126
176
 
127
- **metadata?**: `IJsonLdNodeObject`
177
+ ##### metadata?
178
+
179
+ `IJsonLdNodeObject`
128
180
 
129
181
  Data for the custom metadata as JSON-LD.
130
182
 
131
- **userIdentity?**: `string`
132
-
133
- The user identity to use with storage operations.
183
+ ##### userIdentity?
134
184
 
135
- • **nodeIdentity?**: `string`
185
+ `string`
136
186
 
137
- The node identity to use with storage operations.
187
+ The user identity to use with storage operations.
138
188
 
139
189
  #### Returns
140
190
 
@@ -150,23 +200,23 @@ Not found error if the blob cannot be found.
150
200
 
151
201
  ### remove()
152
202
 
153
- > **remove**(`id`, `userIdentity`?, `nodeIdentity`?): `Promise`\<`void`\>
203
+ > **remove**(`id`, `userIdentity?`): `Promise`\<`void`\>
154
204
 
155
205
  Remove the blob.
156
206
 
157
207
  #### Parameters
158
208
 
159
- **id**: `string`
209
+ ##### id
160
210
 
161
- The id of the blob to remove in urn format.
211
+ `string`
162
212
 
163
- **userIdentity?**: `string`
213
+ The id of the blob to remove in urn format.
164
214
 
165
- The user identity to use with storage operations.
215
+ ##### userIdentity?
166
216
 
167
- • **nodeIdentity?**: `string`
217
+ `string`
168
218
 
169
- The node identity to use with storage operations.
219
+ The user identity to use with storage operations.
170
220
 
171
221
  #### Returns
172
222
 
@@ -177,3 +227,56 @@ Nothing.
177
227
  #### Throws
178
228
 
179
229
  Not found error if the blob cannot be found.
230
+
231
+ ***
232
+
233
+ ### query()
234
+
235
+ > **query**(`conditions?`, `orderBy?`, `orderByDirection?`, `cursor?`, `pageSize?`, `userIdentity?`): `Promise`\<[`IBlobStorageEntryList`](IBlobStorageEntryList.md)\>
236
+
237
+ Query all the blob storage entries which match the conditions.
238
+
239
+ #### Parameters
240
+
241
+ ##### conditions?
242
+
243
+ `EntityCondition`\<[`IBlobStorageEntry`](IBlobStorageEntry.md)\>
244
+
245
+ The conditions to match for the entries.
246
+
247
+ ##### orderBy?
248
+
249
+ The order for the results, defaults to created.
250
+
251
+ `"dateCreated"` | `"dateModified"`
252
+
253
+ ##### orderByDirection?
254
+
255
+ `SortDirection`
256
+
257
+ The direction for the order, defaults to descending.
258
+
259
+ ##### cursor?
260
+
261
+ `string`
262
+
263
+ The cursor to request the next page of entries.
264
+
265
+ ##### pageSize?
266
+
267
+ `number`
268
+
269
+ The suggested number of entries to return in each chunk, in some scenarios can return a different amount.
270
+
271
+ ##### userIdentity?
272
+
273
+ `string`
274
+
275
+ The user identity to use with storage operations.
276
+
277
+ #### Returns
278
+
279
+ `Promise`\<[`IBlobStorageEntryList`](IBlobStorageEntryList.md)\>
280
+
281
+ All the entries for the storage matching the conditions,
282
+ and a cursor which can be used to request more entities.