@axium/storage 0.18.3 → 0.18.5
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/db.json +7 -2
- package/dist/client/local.d.ts +1 -1
- package/dist/common.d.ts +14 -14
- package/dist/server/db.d.ts +1 -0
- package/lib/Preview.svelte +1 -1
- package/package.json +3 -3
package/db.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../server/schemas/db.json",
|
|
3
|
-
"format":
|
|
3
|
+
"format": 1,
|
|
4
4
|
"versions": [
|
|
5
5
|
{
|
|
6
6
|
"delta": false,
|
|
@@ -34,7 +34,12 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"indexes":
|
|
37
|
+
"indexes": {
|
|
38
|
+
"storage_userId": { "on": "storage", "columns": ["userId"] },
|
|
39
|
+
"storage_parentId": { "on": "storage", "columns": ["parentId"] },
|
|
40
|
+
"acl_storage_userId": { "on": "acl.storage", "columns": ["userId"] },
|
|
41
|
+
"acl_storage_itemId": { "on": "acl.storage", "columns": ["itemId"] }
|
|
42
|
+
}
|
|
38
43
|
},
|
|
39
44
|
{
|
|
40
45
|
"delta": true,
|
package/dist/client/local.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ declare const StorageCache: z.ZodObject<{
|
|
|
39
39
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
40
40
|
}, z.core.$strip>>>;
|
|
41
41
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
43
43
|
}, z.core.$strip>>;
|
|
44
44
|
users: z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
45
45
|
id: z.ZodUUID;
|
package/dist/common.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare const StorageItemMetadata: z.ZodObject<{
|
|
|
43
43
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
44
44
|
}, z.core.$strip>>>;
|
|
45
45
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
47
47
|
}, z.core.$strip>;
|
|
48
48
|
export interface StorageItemMetadata<T extends Record<string, unknown> = Record<string, unknown>> extends z.infer<typeof StorageItemMetadata> {
|
|
49
49
|
metadata: T;
|
|
@@ -113,7 +113,7 @@ export declare const UserStorage: z.ZodObject<{
|
|
|
113
113
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
114
114
|
}, z.core.$strip>>>;
|
|
115
115
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
116
|
-
}, z.core.$
|
|
116
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
117
117
|
}, z.core.$strip>>;
|
|
118
118
|
limits: z.ZodObject<{
|
|
119
119
|
item_size: z.ZodInt;
|
|
@@ -247,7 +247,7 @@ export declare const UploadInitResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
247
247
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
248
248
|
}, z.core.$strip>>>;
|
|
249
249
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
250
|
-
}, z.core.$
|
|
250
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
251
251
|
}, z.core.$strip>;
|
|
252
252
|
}, z.core.$strip>], "status">;
|
|
253
253
|
export type UploadInitResult = z.infer<typeof UploadInitResult>;
|
|
@@ -300,7 +300,7 @@ declare const StorageAPI: {
|
|
|
300
300
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
301
301
|
}, z.core.$strip>>>;
|
|
302
302
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
303
|
-
}, z.core.$
|
|
303
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
304
304
|
}, z.core.$strip>>;
|
|
305
305
|
limits: z.ZodObject<{
|
|
306
306
|
item_size: z.ZodInt;
|
|
@@ -349,7 +349,7 @@ declare const StorageAPI: {
|
|
|
349
349
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
350
350
|
}, z.core.$strip>>>;
|
|
351
351
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
352
|
-
}, z.core.$
|
|
352
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
353
353
|
}, z.core.$strip>>;
|
|
354
354
|
};
|
|
355
355
|
readonly 'users/:id/storage/trash': {
|
|
@@ -388,7 +388,7 @@ declare const StorageAPI: {
|
|
|
388
388
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
389
389
|
}, z.core.$strip>>>;
|
|
390
390
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
391
|
-
}, z.core.$
|
|
391
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
392
392
|
}, z.core.$strip>>;
|
|
393
393
|
};
|
|
394
394
|
readonly 'users/:id/storage/shared': {
|
|
@@ -427,7 +427,7 @@ declare const StorageAPI: {
|
|
|
427
427
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
428
428
|
}, z.core.$strip>>>;
|
|
429
429
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
430
|
-
}, z.core.$
|
|
430
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
431
431
|
}, z.core.$strip>>;
|
|
432
432
|
};
|
|
433
433
|
readonly storage: {
|
|
@@ -493,7 +493,7 @@ declare const StorageAPI: {
|
|
|
493
493
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
494
494
|
}, z.core.$strip>>>;
|
|
495
495
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
496
|
-
}, z.core.$
|
|
496
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
497
497
|
}, z.core.$strip>;
|
|
498
498
|
}, z.core.$strip>], "status">];
|
|
499
499
|
};
|
|
@@ -544,7 +544,7 @@ declare const StorageAPI: {
|
|
|
544
544
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
545
545
|
}, z.core.$strip>>>;
|
|
546
546
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
547
|
-
}, z.core.$
|
|
547
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
548
548
|
}, z.core.$strip>>];
|
|
549
549
|
};
|
|
550
550
|
readonly 'storage/item/:id': {
|
|
@@ -583,7 +583,7 @@ declare const StorageAPI: {
|
|
|
583
583
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
584
584
|
}, z.core.$strip>>>;
|
|
585
585
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
586
|
-
}, z.core.$
|
|
586
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
587
587
|
}, z.core.$strip>;
|
|
588
588
|
readonly DELETE: z.ZodObject<{
|
|
589
589
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
@@ -620,7 +620,7 @@ declare const StorageAPI: {
|
|
|
620
620
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
621
621
|
}, z.core.$strip>>>;
|
|
622
622
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
623
|
-
}, z.core.$
|
|
623
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
624
624
|
}, z.core.$strip>;
|
|
625
625
|
readonly PATCH: readonly [z.ZodObject<{
|
|
626
626
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -661,7 +661,7 @@ declare const StorageAPI: {
|
|
|
661
661
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
662
662
|
}, z.core.$strip>>>;
|
|
663
663
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
664
|
-
}, z.core.$
|
|
664
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
665
665
|
}, z.core.$strip>];
|
|
666
666
|
};
|
|
667
667
|
readonly 'storage/directory/:id': {
|
|
@@ -700,7 +700,7 @@ declare const StorageAPI: {
|
|
|
700
700
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
701
701
|
}, z.core.$strip>>>;
|
|
702
702
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
703
|
-
}, z.core.$
|
|
703
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
704
704
|
}, z.core.$strip>>;
|
|
705
705
|
};
|
|
706
706
|
readonly 'storage/directory/:id/recursive': {
|
|
@@ -739,7 +739,7 @@ declare const StorageAPI: {
|
|
|
739
739
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
740
740
|
}, z.core.$strip>>>;
|
|
741
741
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
742
|
-
}, z.core.$
|
|
742
|
+
}, z.core.$catchall<z.ZodBoolean>>>>;
|
|
743
743
|
path: z.ZodString;
|
|
744
744
|
}, z.core.$strip>>;
|
|
745
745
|
};
|
package/dist/server/db.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Schema } from '@axium/server/database';
|
|
2
|
+
import type { FromFile as FromSchemaFile } from '@axium/server/db/schema';
|
|
2
3
|
import type { Selectable } from 'kysely';
|
|
3
4
|
import type schema from '../../db.json';
|
|
4
5
|
import type { StorageItemMetadata, StorageStats } from '../common.js';
|
package/lib/Preview.svelte
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/storage",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.5",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"description": "User file storage for Axium",
|
|
6
6
|
"funding": {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"build": "tsc"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@axium/client": ">=0.
|
|
42
|
+
"@axium/client": ">=0.15.0",
|
|
43
43
|
"@axium/core": ">=0.19.0",
|
|
44
44
|
"@axium/server": ">=0.36.0",
|
|
45
45
|
"@sveltejs/kit": "^2.27.3",
|
|
46
|
-
"utilium": "^2.3
|
|
46
|
+
"utilium": "^2.6.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"blakejs": "^1.2.1",
|