@twin.org/blob-storage-models 0.0.1-next.36 → 0.0.1-next.37

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.
@@ -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?: string;
22
+ decompress?: boolean | 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?: string;
33
+ download?: boolean | 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?: string;
29
+ includeContent?: boolean | 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?: string;
34
+ decompress?: boolean | 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
@@ -30,7 +30,7 @@ export interface IBlobStorageListRequest {
30
30
  /**
31
31
  * The number of entries to return per page.
32
32
  */
33
- pageSize?: number;
33
+ pageSize?: number | string;
34
34
  /**
35
35
  * The cursor to get next chunk of data, returned in previous response.
36
36
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @twin.org/blob-storage-models - Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * query params force coercion ([a5e547a](https://github.com/twinfoundation/blob-storage/commit/a5e547a775f8997cb04780938c7a9561ddb048d1))
9
+
3
10
  ## [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)
4
11
 
5
12
 
@@ -26,7 +26,7 @@ The query parameters.
26
26
 
27
27
  #### decompress?
28
28
 
29
- > `optional` **decompress**: `string`
29
+ > `optional` **decompress**: `string` \| `boolean`
30
30
 
31
31
  If the content should be decompressed, if it was compressed when stored, defaults to true.
32
32
 
@@ -50,7 +50,7 @@ undefined
50
50
 
51
51
  #### download?
52
52
 
53
- > `optional` **download**: `string`
53
+ > `optional` **download**: `string` \| `boolean`
54
54
 
55
55
  Set the download flag which should prompt the browser to save the file.
56
56
  Otherwise the browser should show the content inside the page.
@@ -38,7 +38,7 @@ The query parameters.
38
38
 
39
39
  #### includeContent?
40
40
 
41
- > `optional` **includeContent**: `string`
41
+ > `optional` **includeContent**: `string` \| `boolean`
42
42
 
43
43
  Include the content in the response, otherwise only metadata is returned.
44
44
 
@@ -50,7 +50,7 @@ false
50
50
 
51
51
  #### decompress?
52
52
 
53
- > `optional` **decompress**: `string`
53
+ > `optional` **decompress**: `string` \| `boolean`
54
54
 
55
55
  If the content should be decompressed, if it was compressed when stored, defaults to true.
56
56
 
@@ -42,7 +42,7 @@ The direction for the order, defaults to desc.
42
42
 
43
43
  #### pageSize?
44
44
 
45
- > `optional` **pageSize**: `number`
45
+ > `optional` **pageSize**: `string` \| `number`
46
46
 
47
47
  The number of entries to return per page.
48
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/blob-storage-models",
3
- "version": "0.0.1-next.36",
3
+ "version": "0.0.1-next.37",
4
4
  "description": "Models which define the structure of the blob storage contracts and connectors",
5
5
  "repository": {
6
6
  "type": "git",