alepha 0.11.0 → 0.11.2
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/api/files.d.ts +166 -166
- package/api/notifications.d.ts +94 -94
- package/api/users.d.ts +27 -27
- package/core.d.ts +2 -2
- package/devtools.d.ts +247 -247
- package/package.json +50 -50
- package/postgres.d.ts +4 -0
- package/scheduler.d.ts +6 -6
- package/security.d.ts +6 -5
- package/server/cookies.d.ts +3 -2
- package/server.d.ts +21 -20
- package/ui.d.ts +16 -16
package/api/files.d.ts
CHANGED
|
@@ -2,92 +2,92 @@ import { BucketDescriptor } from "alepha/bucket";
|
|
|
2
2
|
import * as _alepha_core1 from "alepha";
|
|
3
3
|
import { Alepha, FileLike, Static } from "alepha";
|
|
4
4
|
import "alepha/server/security";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _alepha_postgres16 from "alepha/postgres";
|
|
6
6
|
import { Page } from "alepha/postgres";
|
|
7
7
|
import * as _alepha_server0 from "alepha/server";
|
|
8
8
|
import { Ok } from "alepha/server";
|
|
9
9
|
import { DateTime, DateTimeProvider, DurationLike } from "alepha/datetime";
|
|
10
10
|
import * as _alepha_logger0 from "alepha/logger";
|
|
11
11
|
import { UserAccountToken } from "alepha/security";
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
12
|
+
import * as typebox25 from "typebox";
|
|
13
|
+
import * as dayjs2 from "dayjs";
|
|
14
14
|
|
|
15
15
|
//#region src/entities/files.d.ts
|
|
16
|
-
declare const files:
|
|
17
|
-
id:
|
|
18
|
-
version:
|
|
19
|
-
createdAt:
|
|
20
|
-
updatedAt:
|
|
21
|
-
blobId:
|
|
22
|
-
creator:
|
|
23
|
-
creatorRealm:
|
|
24
|
-
creatorName:
|
|
25
|
-
bucket:
|
|
26
|
-
expirationDate:
|
|
27
|
-
name:
|
|
28
|
-
size:
|
|
29
|
-
mimeType:
|
|
30
|
-
tags:
|
|
31
|
-
checksum:
|
|
16
|
+
declare const files: _alepha_postgres16.EntityDescriptor<typebox25.TObject<{
|
|
17
|
+
id: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TString, typeof _alepha_postgres16.PG_PRIMARY_KEY>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
18
|
+
version: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TInteger, typeof _alepha_postgres16.PG_VERSION>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
19
|
+
createdAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_CREATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
20
|
+
updatedAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_UPDATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
21
|
+
blobId: typebox25.TString;
|
|
22
|
+
creator: typebox25.TOptional<typebox25.TString>;
|
|
23
|
+
creatorRealm: typebox25.TOptional<typebox25.TString>;
|
|
24
|
+
creatorName: typebox25.TOptional<typebox25.TString>;
|
|
25
|
+
bucket: typebox25.TString;
|
|
26
|
+
expirationDate: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
27
|
+
name: typebox25.TString;
|
|
28
|
+
size: typebox25.TNumber;
|
|
29
|
+
mimeType: typebox25.TString;
|
|
30
|
+
tags: typebox25.TOptional<typebox25.TArray<typebox25.TString>>;
|
|
31
|
+
checksum: typebox25.TOptional<typebox25.TString>;
|
|
32
32
|
}>>;
|
|
33
33
|
type FileEntity = Static<typeof files.schema>;
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/schemas/fileQuerySchema.d.ts
|
|
36
|
-
declare const fileQuerySchema:
|
|
37
|
-
page:
|
|
38
|
-
size:
|
|
39
|
-
sort:
|
|
40
|
-
bucket:
|
|
41
|
-
tags:
|
|
42
|
-
name:
|
|
43
|
-
mimeType:
|
|
44
|
-
creator:
|
|
45
|
-
createdAfter:
|
|
46
|
-
createdBefore:
|
|
36
|
+
declare const fileQuerySchema: typebox25.TObject<{
|
|
37
|
+
page: typebox25.TOptional<typebox25.TInteger>;
|
|
38
|
+
size: typebox25.TOptional<typebox25.TInteger>;
|
|
39
|
+
sort: typebox25.TOptional<typebox25.TString>;
|
|
40
|
+
bucket: typebox25.TOptional<typebox25.TString>;
|
|
41
|
+
tags: typebox25.TOptional<typebox25.TArray<typebox25.TString>>;
|
|
42
|
+
name: typebox25.TOptional<typebox25.TString>;
|
|
43
|
+
mimeType: typebox25.TOptional<typebox25.TString>;
|
|
44
|
+
creator: typebox25.TOptional<typebox25.TString>;
|
|
45
|
+
createdAfter: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
46
|
+
createdBefore: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
47
47
|
}>;
|
|
48
48
|
type FileQuery = Static<typeof fileQuerySchema>;
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/schemas/fileResourceSchema.d.ts
|
|
51
|
-
declare const fileResourceSchema:
|
|
52
|
-
id:
|
|
53
|
-
version:
|
|
54
|
-
createdAt:
|
|
55
|
-
updatedAt:
|
|
56
|
-
blobId:
|
|
57
|
-
creator:
|
|
58
|
-
creatorRealm:
|
|
59
|
-
creatorName:
|
|
60
|
-
bucket:
|
|
61
|
-
expirationDate:
|
|
62
|
-
name:
|
|
63
|
-
size:
|
|
64
|
-
mimeType:
|
|
65
|
-
tags:
|
|
66
|
-
checksum:
|
|
51
|
+
declare const fileResourceSchema: typebox25.TObject<{
|
|
52
|
+
id: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TString, typeof _alepha_postgres16.PG_PRIMARY_KEY>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
53
|
+
version: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TInteger, typeof _alepha_postgres16.PG_VERSION>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
54
|
+
createdAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_CREATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
55
|
+
updatedAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_UPDATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
56
|
+
blobId: typebox25.TString;
|
|
57
|
+
creator: typebox25.TOptional<typebox25.TString>;
|
|
58
|
+
creatorRealm: typebox25.TOptional<typebox25.TString>;
|
|
59
|
+
creatorName: typebox25.TOptional<typebox25.TString>;
|
|
60
|
+
bucket: typebox25.TString;
|
|
61
|
+
expirationDate: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
62
|
+
name: typebox25.TString;
|
|
63
|
+
size: typebox25.TNumber;
|
|
64
|
+
mimeType: typebox25.TString;
|
|
65
|
+
tags: typebox25.TOptional<typebox25.TArray<typebox25.TString>>;
|
|
66
|
+
checksum: typebox25.TOptional<typebox25.TString>;
|
|
67
67
|
}>;
|
|
68
68
|
type FileResource = Static<typeof fileResourceSchema>;
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/schemas/storageStatsSchema.d.ts
|
|
71
|
-
declare const bucketStatsSchema:
|
|
72
|
-
bucket:
|
|
73
|
-
totalSize:
|
|
74
|
-
fileCount:
|
|
71
|
+
declare const bucketStatsSchema: typebox25.TObject<{
|
|
72
|
+
bucket: typebox25.TString;
|
|
73
|
+
totalSize: typebox25.TNumber;
|
|
74
|
+
fileCount: typebox25.TNumber;
|
|
75
75
|
}>;
|
|
76
|
-
declare const mimeTypeStatsSchema:
|
|
77
|
-
mimeType:
|
|
78
|
-
fileCount:
|
|
76
|
+
declare const mimeTypeStatsSchema: typebox25.TObject<{
|
|
77
|
+
mimeType: typebox25.TString;
|
|
78
|
+
fileCount: typebox25.TNumber;
|
|
79
79
|
}>;
|
|
80
|
-
declare const storageStatsSchema:
|
|
81
|
-
totalSize:
|
|
82
|
-
totalFiles:
|
|
83
|
-
byBucket:
|
|
84
|
-
bucket:
|
|
85
|
-
totalSize:
|
|
86
|
-
fileCount:
|
|
80
|
+
declare const storageStatsSchema: typebox25.TObject<{
|
|
81
|
+
totalSize: typebox25.TNumber;
|
|
82
|
+
totalFiles: typebox25.TNumber;
|
|
83
|
+
byBucket: typebox25.TArray<typebox25.TObject<{
|
|
84
|
+
bucket: typebox25.TString;
|
|
85
|
+
totalSize: typebox25.TNumber;
|
|
86
|
+
fileCount: typebox25.TNumber;
|
|
87
87
|
}>>;
|
|
88
|
-
byMimeType:
|
|
89
|
-
mimeType:
|
|
90
|
-
fileCount:
|
|
88
|
+
byMimeType: typebox25.TArray<typebox25.TObject<{
|
|
89
|
+
mimeType: typebox25.TString;
|
|
90
|
+
fileCount: typebox25.TNumber;
|
|
91
91
|
}>>;
|
|
92
92
|
}>;
|
|
93
93
|
type BucketStats = Static<typeof bucketStatsSchema>;
|
|
@@ -98,22 +98,22 @@ type StorageStats = Static<typeof storageStatsSchema>;
|
|
|
98
98
|
declare class FileService {
|
|
99
99
|
protected readonly alepha: Alepha;
|
|
100
100
|
protected readonly log: _alepha_logger0.Logger;
|
|
101
|
-
protected readonly fileRepository:
|
|
102
|
-
id:
|
|
103
|
-
version:
|
|
104
|
-
createdAt:
|
|
105
|
-
updatedAt:
|
|
106
|
-
blobId:
|
|
107
|
-
creator:
|
|
108
|
-
creatorRealm:
|
|
109
|
-
creatorName:
|
|
110
|
-
bucket:
|
|
111
|
-
expirationDate:
|
|
112
|
-
name:
|
|
113
|
-
size:
|
|
114
|
-
mimeType:
|
|
115
|
-
tags:
|
|
116
|
-
checksum:
|
|
101
|
+
protected readonly fileRepository: _alepha_postgres16.RepositoryDescriptor<typebox25.TObject<{
|
|
102
|
+
id: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TString, typeof _alepha_postgres16.PG_PRIMARY_KEY>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
103
|
+
version: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TInteger, typeof _alepha_postgres16.PG_VERSION>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
104
|
+
createdAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_CREATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
105
|
+
updatedAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_UPDATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
106
|
+
blobId: typebox25.TString;
|
|
107
|
+
creator: typebox25.TOptional<typebox25.TString>;
|
|
108
|
+
creatorRealm: typebox25.TOptional<typebox25.TString>;
|
|
109
|
+
creatorName: typebox25.TOptional<typebox25.TString>;
|
|
110
|
+
bucket: typebox25.TString;
|
|
111
|
+
expirationDate: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
112
|
+
name: typebox25.TString;
|
|
113
|
+
size: typebox25.TNumber;
|
|
114
|
+
mimeType: typebox25.TString;
|
|
115
|
+
tags: typebox25.TOptional<typebox25.TArray<typebox25.TString>>;
|
|
116
|
+
checksum: typebox25.TOptional<typebox25.TString>;
|
|
117
117
|
}>>;
|
|
118
118
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
119
119
|
protected readonly defaultBucket: BucketDescriptor;
|
|
@@ -252,34 +252,34 @@ declare class FileController {
|
|
|
252
252
|
* Supports filtering by bucket and tags.
|
|
253
253
|
*/
|
|
254
254
|
readonly findFiles: _alepha_server0.ActionDescriptorFn<{
|
|
255
|
-
query:
|
|
256
|
-
page:
|
|
257
|
-
size:
|
|
258
|
-
sort:
|
|
259
|
-
bucket:
|
|
260
|
-
tags:
|
|
261
|
-
name:
|
|
262
|
-
mimeType:
|
|
263
|
-
creator:
|
|
264
|
-
createdAfter:
|
|
265
|
-
createdBefore:
|
|
255
|
+
query: typebox25.TObject<{
|
|
256
|
+
page: typebox25.TOptional<typebox25.TInteger>;
|
|
257
|
+
size: typebox25.TOptional<typebox25.TInteger>;
|
|
258
|
+
sort: typebox25.TOptional<typebox25.TString>;
|
|
259
|
+
bucket: typebox25.TOptional<typebox25.TString>;
|
|
260
|
+
tags: typebox25.TOptional<typebox25.TArray<typebox25.TString>>;
|
|
261
|
+
name: typebox25.TOptional<typebox25.TString>;
|
|
262
|
+
mimeType: typebox25.TOptional<typebox25.TString>;
|
|
263
|
+
creator: typebox25.TOptional<typebox25.TString>;
|
|
264
|
+
createdAfter: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
265
|
+
createdBefore: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
266
266
|
}>;
|
|
267
|
-
response:
|
|
268
|
-
id:
|
|
269
|
-
version:
|
|
270
|
-
createdAt:
|
|
271
|
-
updatedAt:
|
|
272
|
-
blobId:
|
|
273
|
-
creator:
|
|
274
|
-
creatorRealm:
|
|
275
|
-
creatorName:
|
|
276
|
-
bucket:
|
|
277
|
-
expirationDate:
|
|
278
|
-
name:
|
|
279
|
-
size:
|
|
280
|
-
mimeType:
|
|
281
|
-
tags:
|
|
282
|
-
checksum:
|
|
267
|
+
response: _alepha_postgres16.TPage<typebox25.TObject<{
|
|
268
|
+
id: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TString, typeof _alepha_postgres16.PG_PRIMARY_KEY>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
269
|
+
version: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TInteger, typeof _alepha_postgres16.PG_VERSION>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
270
|
+
createdAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_CREATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
271
|
+
updatedAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_UPDATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
272
|
+
blobId: typebox25.TString;
|
|
273
|
+
creator: typebox25.TOptional<typebox25.TString>;
|
|
274
|
+
creatorRealm: typebox25.TOptional<typebox25.TString>;
|
|
275
|
+
creatorName: typebox25.TOptional<typebox25.TString>;
|
|
276
|
+
bucket: typebox25.TString;
|
|
277
|
+
expirationDate: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
278
|
+
name: typebox25.TString;
|
|
279
|
+
size: typebox25.TNumber;
|
|
280
|
+
mimeType: typebox25.TString;
|
|
281
|
+
tags: typebox25.TOptional<typebox25.TArray<typebox25.TString>>;
|
|
282
|
+
checksum: typebox25.TOptional<typebox25.TString>;
|
|
283
283
|
}>>;
|
|
284
284
|
}>;
|
|
285
285
|
/**
|
|
@@ -287,13 +287,13 @@ declare class FileController {
|
|
|
287
287
|
* Removes the file from the bucket and cleans up the database record.
|
|
288
288
|
*/
|
|
289
289
|
readonly deleteFile: _alepha_server0.ActionDescriptorFn<{
|
|
290
|
-
params:
|
|
291
|
-
id:
|
|
290
|
+
params: typebox25.TObject<{
|
|
291
|
+
id: typebox25.TString;
|
|
292
292
|
}>;
|
|
293
|
-
response:
|
|
294
|
-
ok:
|
|
295
|
-
id:
|
|
296
|
-
count:
|
|
293
|
+
response: typebox25.TObject<{
|
|
294
|
+
ok: typebox25.TBoolean;
|
|
295
|
+
id: typebox25.TOptional<typebox25.TUnion<[typebox25.TString, typebox25.TInteger]>>;
|
|
296
|
+
count: typebox25.TOptional<typebox25.TNumber>;
|
|
297
297
|
}>;
|
|
298
298
|
}>;
|
|
299
299
|
/**
|
|
@@ -302,29 +302,29 @@ declare class FileController {
|
|
|
302
302
|
* Optionally specify bucket and expiration date.
|
|
303
303
|
*/
|
|
304
304
|
readonly uploadFile: _alepha_server0.ActionDescriptorFn<{
|
|
305
|
-
body:
|
|
305
|
+
body: typebox25.TObject<{
|
|
306
306
|
file: _alepha_core1.TFile;
|
|
307
307
|
}>;
|
|
308
|
-
query:
|
|
309
|
-
expirationDate:
|
|
310
|
-
bucket:
|
|
308
|
+
query: typebox25.TObject<{
|
|
309
|
+
expirationDate: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
310
|
+
bucket: typebox25.TOptional<typebox25.TString>;
|
|
311
311
|
}>;
|
|
312
|
-
response:
|
|
313
|
-
id:
|
|
314
|
-
version:
|
|
315
|
-
createdAt:
|
|
316
|
-
updatedAt:
|
|
317
|
-
blobId:
|
|
318
|
-
creator:
|
|
319
|
-
creatorRealm:
|
|
320
|
-
creatorName:
|
|
321
|
-
bucket:
|
|
322
|
-
expirationDate:
|
|
323
|
-
name:
|
|
324
|
-
size:
|
|
325
|
-
mimeType:
|
|
326
|
-
tags:
|
|
327
|
-
checksum:
|
|
312
|
+
response: typebox25.TObject<{
|
|
313
|
+
id: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TString, typeof _alepha_postgres16.PG_PRIMARY_KEY>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
314
|
+
version: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TInteger, typeof _alepha_postgres16.PG_VERSION>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
315
|
+
createdAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_CREATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
316
|
+
updatedAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_UPDATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
317
|
+
blobId: typebox25.TString;
|
|
318
|
+
creator: typebox25.TOptional<typebox25.TString>;
|
|
319
|
+
creatorRealm: typebox25.TOptional<typebox25.TString>;
|
|
320
|
+
creatorName: typebox25.TOptional<typebox25.TString>;
|
|
321
|
+
bucket: typebox25.TString;
|
|
322
|
+
expirationDate: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
323
|
+
name: typebox25.TString;
|
|
324
|
+
size: typebox25.TNumber;
|
|
325
|
+
mimeType: typebox25.TString;
|
|
326
|
+
tags: typebox25.TOptional<typebox25.TArray<typebox25.TString>>;
|
|
327
|
+
checksum: typebox25.TOptional<typebox25.TString>;
|
|
328
328
|
}>;
|
|
329
329
|
}>;
|
|
330
330
|
/**
|
|
@@ -332,30 +332,30 @@ declare class FileController {
|
|
|
332
332
|
* Allows updating name, tags, and expiration date without modifying file content.
|
|
333
333
|
*/
|
|
334
334
|
readonly updateFile: _alepha_server0.ActionDescriptorFn<{
|
|
335
|
-
params:
|
|
336
|
-
id:
|
|
335
|
+
params: typebox25.TObject<{
|
|
336
|
+
id: typebox25.TString;
|
|
337
337
|
}>;
|
|
338
|
-
body:
|
|
339
|
-
name:
|
|
340
|
-
tags:
|
|
341
|
-
expirationDate:
|
|
338
|
+
body: typebox25.TObject<{
|
|
339
|
+
name: typebox25.TOptional<typebox25.TString>;
|
|
340
|
+
tags: typebox25.TOptional<typebox25.TArray<typebox25.TString>>;
|
|
341
|
+
expirationDate: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
342
342
|
}>;
|
|
343
|
-
response:
|
|
344
|
-
id:
|
|
345
|
-
version:
|
|
346
|
-
createdAt:
|
|
347
|
-
updatedAt:
|
|
348
|
-
blobId:
|
|
349
|
-
creator:
|
|
350
|
-
creatorRealm:
|
|
351
|
-
creatorName:
|
|
352
|
-
bucket:
|
|
353
|
-
expirationDate:
|
|
354
|
-
name:
|
|
355
|
-
size:
|
|
356
|
-
mimeType:
|
|
357
|
-
tags:
|
|
358
|
-
checksum:
|
|
343
|
+
response: typebox25.TObject<{
|
|
344
|
+
id: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TString, typeof _alepha_postgres16.PG_PRIMARY_KEY>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
345
|
+
version: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TInteger, typeof _alepha_postgres16.PG_VERSION>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
346
|
+
createdAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_CREATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
347
|
+
updatedAt: _alepha_postgres16.PgAttr<_alepha_postgres16.PgAttr<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>, typeof _alepha_postgres16.PG_UPDATED_AT>, typeof _alepha_postgres16.PG_DEFAULT>;
|
|
348
|
+
blobId: typebox25.TString;
|
|
349
|
+
creator: typebox25.TOptional<typebox25.TString>;
|
|
350
|
+
creatorRealm: typebox25.TOptional<typebox25.TString>;
|
|
351
|
+
creatorName: typebox25.TOptional<typebox25.TString>;
|
|
352
|
+
bucket: typebox25.TString;
|
|
353
|
+
expirationDate: typebox25.TOptional<typebox25.TCodec<typebox25.TString, dayjs2.Dayjs>>;
|
|
354
|
+
name: typebox25.TString;
|
|
355
|
+
size: typebox25.TNumber;
|
|
356
|
+
mimeType: typebox25.TString;
|
|
357
|
+
tags: typebox25.TOptional<typebox25.TArray<typebox25.TString>>;
|
|
358
|
+
checksum: typebox25.TOptional<typebox25.TString>;
|
|
359
359
|
}>;
|
|
360
360
|
}>;
|
|
361
361
|
/**
|
|
@@ -364,8 +364,8 @@ declare class FileController {
|
|
|
364
364
|
* Cached with ETag support for 1 year (immutable).
|
|
365
365
|
*/
|
|
366
366
|
readonly streamFile: _alepha_server0.ActionDescriptorFn<{
|
|
367
|
-
params:
|
|
368
|
-
id:
|
|
367
|
+
params: typebox25.TObject<{
|
|
368
|
+
id: typebox25.TString;
|
|
369
369
|
}>;
|
|
370
370
|
response: _alepha_core1.TFile;
|
|
371
371
|
}>;
|
|
@@ -386,17 +386,17 @@ declare class StorageStatsController {
|
|
|
386
386
|
* and breakdowns by bucket and MIME type.
|
|
387
387
|
*/
|
|
388
388
|
readonly getStats: _alepha_server0.ActionDescriptorFn<{
|
|
389
|
-
response:
|
|
390
|
-
totalSize:
|
|
391
|
-
totalFiles:
|
|
392
|
-
byBucket:
|
|
393
|
-
bucket:
|
|
394
|
-
totalSize:
|
|
395
|
-
fileCount:
|
|
389
|
+
response: typebox25.TObject<{
|
|
390
|
+
totalSize: typebox25.TNumber;
|
|
391
|
+
totalFiles: typebox25.TNumber;
|
|
392
|
+
byBucket: typebox25.TArray<typebox25.TObject<{
|
|
393
|
+
bucket: typebox25.TString;
|
|
394
|
+
totalSize: typebox25.TNumber;
|
|
395
|
+
fileCount: typebox25.TNumber;
|
|
396
396
|
}>>;
|
|
397
|
-
byMimeType:
|
|
398
|
-
mimeType:
|
|
399
|
-
fileCount:
|
|
397
|
+
byMimeType: typebox25.TArray<typebox25.TObject<{
|
|
398
|
+
mimeType: typebox25.TString;
|
|
399
|
+
fileCount: typebox25.TNumber;
|
|
400
400
|
}>>;
|
|
401
401
|
}>;
|
|
402
402
|
}>;
|