alepha 0.11.12 → 0.12.0
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 +2 -3
- package/dist/api-files/index.d.cts +166 -166
- package/dist/api-jobs/index.d.cts +137 -137
- package/dist/api-jobs/index.d.ts +26 -26
- package/dist/api-jobs/index.d.ts.map +1 -1
- package/dist/api-notifications/index.d.cts +98 -98
- package/dist/api-notifications/index.d.cts.map +1 -1
- package/dist/api-notifications/index.d.ts +98 -98
- package/dist/api-notifications/index.d.ts.map +1 -1
- package/dist/api-users/index.d.cts +661 -661
- package/dist/api-users/index.d.cts.map +1 -1
- package/dist/api-users/index.d.ts +658 -658
- package/dist/cli/index.cjs +2 -2
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/logger/index.d.cts.map +1 -1
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/orm/index.d.cts +15 -15
- package/dist/redis/index.d.ts +10 -10
- package/dist/security/index.d.cts +24 -24
- package/dist/security/index.d.cts.map +1 -1
- package/dist/server/index.d.ts +20 -20
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server-health/index.d.ts +16 -16
- package/dist/server-links/index.d.cts +29 -29
- package/dist/server-links/index.d.cts.map +1 -1
- package/dist/server-links/index.d.ts +29 -29
- package/dist/server-links/index.d.ts.map +1 -1
- package/dist/vite/index.d.cts.map +1 -1
- package/dist/websocket/index.d.cts +7 -7
- package/dist/websocket/index.d.ts +7 -7
- package/package.json +3 -2
- package/src/cli/assets/indexHtml.ts +2 -2
- package/tsconfig.base.json +16 -0
package/README.md
CHANGED
|
@@ -126,8 +126,7 @@ $ npx alepha init --react
|
|
|
126
126
|
Create a file `src/main.tsx`:
|
|
127
127
|
|
|
128
128
|
```tsx
|
|
129
|
-
|
|
130
|
-
import { run, t } from "alepha";
|
|
129
|
+
import { Alepha, run, t } from "alepha";
|
|
131
130
|
import { $page } from "@alepha/react";
|
|
132
131
|
import { useState } from "react";
|
|
133
132
|
|
|
@@ -163,7 +162,7 @@ Run the development server:
|
|
|
163
162
|
$ npx alepha dev
|
|
164
163
|
```
|
|
165
164
|
|
|
166
|
-
Open your browser at `http://localhost:
|
|
165
|
+
Open your browser at `http://localhost:5173/` and see your React application in action.
|
|
167
166
|
|
|
168
167
|
## What's next?
|
|
169
168
|
|
|
@@ -2,7 +2,7 @@ import * as alepha14 from "alepha";
|
|
|
2
2
|
import { Alepha, FileLike, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
3
|
import { DateTime, DateTimeProvider, DurationLike } from "alepha/datetime";
|
|
4
4
|
import { UserAccount, UserAccountToken } from "alepha/security";
|
|
5
|
-
import * as
|
|
5
|
+
import * as typebox53 from "typebox";
|
|
6
6
|
import * as alepha_orm16 from "alepha/orm";
|
|
7
7
|
import { Page } from "alepha/orm";
|
|
8
8
|
import * as alepha_server0 from "alepha/server";
|
|
@@ -15,37 +15,37 @@ import "alepha/retry";
|
|
|
15
15
|
import "alepha/lock";
|
|
16
16
|
|
|
17
17
|
//#region src/api-files/entities/files.d.ts
|
|
18
|
-
declare const files: alepha_orm16.EntityDescriptor<
|
|
19
|
-
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
20
|
-
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
21
|
-
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
22
|
-
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
23
|
-
blobId:
|
|
24
|
-
creator:
|
|
25
|
-
creatorRealm:
|
|
26
|
-
creatorName:
|
|
27
|
-
bucket:
|
|
28
|
-
expirationDate:
|
|
29
|
-
name:
|
|
30
|
-
size:
|
|
31
|
-
mimeType:
|
|
32
|
-
tags:
|
|
33
|
-
checksum:
|
|
18
|
+
declare const files: alepha_orm16.EntityDescriptor<typebox53.TObject<{
|
|
19
|
+
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
|
|
20
|
+
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
|
|
21
|
+
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
22
|
+
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
23
|
+
blobId: typebox53.TString;
|
|
24
|
+
creator: typebox53.TOptional<typebox53.TString>;
|
|
25
|
+
creatorRealm: typebox53.TOptional<typebox53.TString>;
|
|
26
|
+
creatorName: typebox53.TOptional<typebox53.TString>;
|
|
27
|
+
bucket: typebox53.TString;
|
|
28
|
+
expirationDate: typebox53.TOptional<typebox53.TString>;
|
|
29
|
+
name: typebox53.TString;
|
|
30
|
+
size: typebox53.TNumber;
|
|
31
|
+
mimeType: typebox53.TString;
|
|
32
|
+
tags: typebox53.TOptional<typebox53.TArray<typebox53.TString>>;
|
|
33
|
+
checksum: typebox53.TOptional<typebox53.TString>;
|
|
34
34
|
}>>;
|
|
35
35
|
type FileEntity = Static<typeof files.schema>;
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/api-files/schemas/fileQuerySchema.d.ts
|
|
38
|
-
declare const fileQuerySchema:
|
|
39
|
-
page:
|
|
40
|
-
size:
|
|
41
|
-
sort:
|
|
42
|
-
bucket:
|
|
43
|
-
tags:
|
|
44
|
-
name:
|
|
45
|
-
mimeType:
|
|
46
|
-
creator:
|
|
47
|
-
createdAfter:
|
|
48
|
-
createdBefore:
|
|
38
|
+
declare const fileQuerySchema: typebox53.TObject<{
|
|
39
|
+
page: typebox53.TOptional<typebox53.TInteger>;
|
|
40
|
+
size: typebox53.TOptional<typebox53.TInteger>;
|
|
41
|
+
sort: typebox53.TOptional<typebox53.TString>;
|
|
42
|
+
bucket: typebox53.TOptional<typebox53.TString>;
|
|
43
|
+
tags: typebox53.TOptional<typebox53.TArray<typebox53.TString>>;
|
|
44
|
+
name: typebox53.TOptional<typebox53.TString>;
|
|
45
|
+
mimeType: typebox53.TOptional<typebox53.TString>;
|
|
46
|
+
creator: typebox53.TOptional<typebox53.TString>;
|
|
47
|
+
createdAfter: typebox53.TOptional<typebox53.TString>;
|
|
48
|
+
createdBefore: typebox53.TOptional<typebox53.TString>;
|
|
49
49
|
}>;
|
|
50
50
|
type FileQuery = Static<typeof fileQuerySchema>;
|
|
51
51
|
//#endregion
|
|
@@ -289,8 +289,8 @@ declare const envSchema: alepha14.TObject<{
|
|
|
289
289
|
/**
|
|
290
290
|
* Configuration options for the Node.js SQLite database provider.
|
|
291
291
|
*/
|
|
292
|
-
declare const nodeSqliteOptions: alepha14.Atom<
|
|
293
|
-
path:
|
|
292
|
+
declare const nodeSqliteOptions: alepha14.Atom<typebox53.TObject<{
|
|
293
|
+
path: typebox53.TOptional<typebox53.TString>;
|
|
294
294
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
295
295
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
296
296
|
declare module "alepha" {
|
|
@@ -374,46 +374,46 @@ declare module "alepha" {
|
|
|
374
374
|
}
|
|
375
375
|
//#endregion
|
|
376
376
|
//#region src/api-files/schemas/fileResourceSchema.d.ts
|
|
377
|
-
declare const fileResourceSchema:
|
|
378
|
-
id: PgAttr<PgAttr<
|
|
379
|
-
version: PgAttr<PgAttr<
|
|
380
|
-
createdAt: PgAttr<PgAttr<
|
|
381
|
-
updatedAt: PgAttr<PgAttr<
|
|
382
|
-
blobId:
|
|
383
|
-
creator:
|
|
384
|
-
creatorRealm:
|
|
385
|
-
creatorName:
|
|
386
|
-
bucket:
|
|
387
|
-
expirationDate:
|
|
388
|
-
name:
|
|
389
|
-
size:
|
|
390
|
-
mimeType:
|
|
391
|
-
tags:
|
|
392
|
-
checksum:
|
|
377
|
+
declare const fileResourceSchema: typebox53.TObject<{
|
|
378
|
+
id: PgAttr<PgAttr<typebox53.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
379
|
+
version: PgAttr<PgAttr<typebox53.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
380
|
+
createdAt: PgAttr<PgAttr<typebox53.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
381
|
+
updatedAt: PgAttr<PgAttr<typebox53.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
382
|
+
blobId: typebox53.TString;
|
|
383
|
+
creator: typebox53.TOptional<typebox53.TString>;
|
|
384
|
+
creatorRealm: typebox53.TOptional<typebox53.TString>;
|
|
385
|
+
creatorName: typebox53.TOptional<typebox53.TString>;
|
|
386
|
+
bucket: typebox53.TString;
|
|
387
|
+
expirationDate: typebox53.TOptional<typebox53.TString>;
|
|
388
|
+
name: typebox53.TString;
|
|
389
|
+
size: typebox53.TNumber;
|
|
390
|
+
mimeType: typebox53.TString;
|
|
391
|
+
tags: typebox53.TOptional<typebox53.TArray<typebox53.TString>>;
|
|
392
|
+
checksum: typebox53.TOptional<typebox53.TString>;
|
|
393
393
|
}>;
|
|
394
394
|
type FileResource = Static<typeof fileResourceSchema>;
|
|
395
395
|
//#endregion
|
|
396
396
|
//#region src/api-files/schemas/storageStatsSchema.d.ts
|
|
397
|
-
declare const bucketStatsSchema:
|
|
398
|
-
bucket:
|
|
399
|
-
totalSize:
|
|
400
|
-
fileCount:
|
|
397
|
+
declare const bucketStatsSchema: typebox53.TObject<{
|
|
398
|
+
bucket: typebox53.TString;
|
|
399
|
+
totalSize: typebox53.TNumber;
|
|
400
|
+
fileCount: typebox53.TNumber;
|
|
401
401
|
}>;
|
|
402
|
-
declare const mimeTypeStatsSchema:
|
|
403
|
-
mimeType:
|
|
404
|
-
fileCount:
|
|
402
|
+
declare const mimeTypeStatsSchema: typebox53.TObject<{
|
|
403
|
+
mimeType: typebox53.TString;
|
|
404
|
+
fileCount: typebox53.TNumber;
|
|
405
405
|
}>;
|
|
406
|
-
declare const storageStatsSchema:
|
|
407
|
-
totalSize:
|
|
408
|
-
totalFiles:
|
|
409
|
-
byBucket:
|
|
410
|
-
bucket:
|
|
411
|
-
totalSize:
|
|
412
|
-
fileCount:
|
|
406
|
+
declare const storageStatsSchema: typebox53.TObject<{
|
|
407
|
+
totalSize: typebox53.TNumber;
|
|
408
|
+
totalFiles: typebox53.TNumber;
|
|
409
|
+
byBucket: typebox53.TArray<typebox53.TObject<{
|
|
410
|
+
bucket: typebox53.TString;
|
|
411
|
+
totalSize: typebox53.TNumber;
|
|
412
|
+
fileCount: typebox53.TNumber;
|
|
413
413
|
}>>;
|
|
414
|
-
byMimeType:
|
|
415
|
-
mimeType:
|
|
416
|
-
fileCount:
|
|
414
|
+
byMimeType: typebox53.TArray<typebox53.TObject<{
|
|
415
|
+
mimeType: typebox53.TString;
|
|
416
|
+
fileCount: typebox53.TNumber;
|
|
417
417
|
}>>;
|
|
418
418
|
}>;
|
|
419
419
|
type BucketStats = Static<typeof bucketStatsSchema>;
|
|
@@ -424,22 +424,22 @@ type StorageStats = Static<typeof storageStatsSchema>;
|
|
|
424
424
|
declare class FileService {
|
|
425
425
|
protected readonly alepha: Alepha;
|
|
426
426
|
protected readonly log: alepha_logger0.Logger;
|
|
427
|
-
protected readonly fileRepository: alepha_orm16.Repository<
|
|
428
|
-
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
429
|
-
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
430
|
-
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
431
|
-
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
432
|
-
blobId:
|
|
433
|
-
creator:
|
|
434
|
-
creatorRealm:
|
|
435
|
-
creatorName:
|
|
436
|
-
bucket:
|
|
437
|
-
expirationDate:
|
|
438
|
-
name:
|
|
439
|
-
size:
|
|
440
|
-
mimeType:
|
|
441
|
-
tags:
|
|
442
|
-
checksum:
|
|
427
|
+
protected readonly fileRepository: alepha_orm16.Repository<typebox53.TObject<{
|
|
428
|
+
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
|
|
429
|
+
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
|
|
430
|
+
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
431
|
+
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
432
|
+
blobId: typebox53.TString;
|
|
433
|
+
creator: typebox53.TOptional<typebox53.TString>;
|
|
434
|
+
creatorRealm: typebox53.TOptional<typebox53.TString>;
|
|
435
|
+
creatorName: typebox53.TOptional<typebox53.TString>;
|
|
436
|
+
bucket: typebox53.TString;
|
|
437
|
+
expirationDate: typebox53.TOptional<typebox53.TString>;
|
|
438
|
+
name: typebox53.TString;
|
|
439
|
+
size: typebox53.TNumber;
|
|
440
|
+
mimeType: typebox53.TString;
|
|
441
|
+
tags: typebox53.TOptional<typebox53.TArray<typebox53.TString>>;
|
|
442
|
+
checksum: typebox53.TOptional<typebox53.TString>;
|
|
443
443
|
}>>;
|
|
444
444
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
445
445
|
protected readonly defaultBucket: BucketDescriptor;
|
|
@@ -578,34 +578,34 @@ declare class FileController {
|
|
|
578
578
|
* Supports filtering by bucket and tags.
|
|
579
579
|
*/
|
|
580
580
|
readonly findFiles: alepha_server0.ActionDescriptorFn<{
|
|
581
|
-
query:
|
|
582
|
-
page:
|
|
583
|
-
size:
|
|
584
|
-
sort:
|
|
585
|
-
bucket:
|
|
586
|
-
tags:
|
|
587
|
-
name:
|
|
588
|
-
mimeType:
|
|
589
|
-
creator:
|
|
590
|
-
createdAfter:
|
|
591
|
-
createdBefore:
|
|
581
|
+
query: typebox53.TObject<{
|
|
582
|
+
page: typebox53.TOptional<typebox53.TInteger>;
|
|
583
|
+
size: typebox53.TOptional<typebox53.TInteger>;
|
|
584
|
+
sort: typebox53.TOptional<typebox53.TString>;
|
|
585
|
+
bucket: typebox53.TOptional<typebox53.TString>;
|
|
586
|
+
tags: typebox53.TOptional<typebox53.TArray<typebox53.TString>>;
|
|
587
|
+
name: typebox53.TOptional<typebox53.TString>;
|
|
588
|
+
mimeType: typebox53.TOptional<typebox53.TString>;
|
|
589
|
+
creator: typebox53.TOptional<typebox53.TString>;
|
|
590
|
+
createdAfter: typebox53.TOptional<typebox53.TString>;
|
|
591
|
+
createdBefore: typebox53.TOptional<typebox53.TString>;
|
|
592
592
|
}>;
|
|
593
|
-
response: alepha14.TPage<
|
|
594
|
-
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
595
|
-
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
596
|
-
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
597
|
-
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
598
|
-
blobId:
|
|
599
|
-
creator:
|
|
600
|
-
creatorRealm:
|
|
601
|
-
creatorName:
|
|
602
|
-
bucket:
|
|
603
|
-
expirationDate:
|
|
604
|
-
name:
|
|
605
|
-
size:
|
|
606
|
-
mimeType:
|
|
607
|
-
tags:
|
|
608
|
-
checksum:
|
|
593
|
+
response: alepha14.TPage<typebox53.TObject<{
|
|
594
|
+
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
|
|
595
|
+
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
|
|
596
|
+
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
597
|
+
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
598
|
+
blobId: typebox53.TString;
|
|
599
|
+
creator: typebox53.TOptional<typebox53.TString>;
|
|
600
|
+
creatorRealm: typebox53.TOptional<typebox53.TString>;
|
|
601
|
+
creatorName: typebox53.TOptional<typebox53.TString>;
|
|
602
|
+
bucket: typebox53.TString;
|
|
603
|
+
expirationDate: typebox53.TOptional<typebox53.TString>;
|
|
604
|
+
name: typebox53.TString;
|
|
605
|
+
size: typebox53.TNumber;
|
|
606
|
+
mimeType: typebox53.TString;
|
|
607
|
+
tags: typebox53.TOptional<typebox53.TArray<typebox53.TString>>;
|
|
608
|
+
checksum: typebox53.TOptional<typebox53.TString>;
|
|
609
609
|
}>>;
|
|
610
610
|
}>;
|
|
611
611
|
/**
|
|
@@ -613,13 +613,13 @@ declare class FileController {
|
|
|
613
613
|
* Removes the file from the bucket and cleans up the database record.
|
|
614
614
|
*/
|
|
615
615
|
readonly deleteFile: alepha_server0.ActionDescriptorFn<{
|
|
616
|
-
params:
|
|
617
|
-
id:
|
|
616
|
+
params: typebox53.TObject<{
|
|
617
|
+
id: typebox53.TString;
|
|
618
618
|
}>;
|
|
619
|
-
response:
|
|
620
|
-
ok:
|
|
621
|
-
id:
|
|
622
|
-
count:
|
|
619
|
+
response: typebox53.TObject<{
|
|
620
|
+
ok: typebox53.TBoolean;
|
|
621
|
+
id: typebox53.TOptional<typebox53.TUnion<[typebox53.TString, typebox53.TInteger]>>;
|
|
622
|
+
count: typebox53.TOptional<typebox53.TNumber>;
|
|
623
623
|
}>;
|
|
624
624
|
}>;
|
|
625
625
|
/**
|
|
@@ -628,29 +628,29 @@ declare class FileController {
|
|
|
628
628
|
* Optionally specify bucket and expiration date.
|
|
629
629
|
*/
|
|
630
630
|
readonly uploadFile: alepha_server0.ActionDescriptorFn<{
|
|
631
|
-
body:
|
|
631
|
+
body: typebox53.TObject<{
|
|
632
632
|
file: alepha14.TFile;
|
|
633
633
|
}>;
|
|
634
|
-
query:
|
|
635
|
-
expirationDate:
|
|
636
|
-
bucket:
|
|
634
|
+
query: typebox53.TObject<{
|
|
635
|
+
expirationDate: typebox53.TOptional<typebox53.TString>;
|
|
636
|
+
bucket: typebox53.TOptional<typebox53.TString>;
|
|
637
637
|
}>;
|
|
638
|
-
response:
|
|
639
|
-
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
640
|
-
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
641
|
-
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
642
|
-
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
643
|
-
blobId:
|
|
644
|
-
creator:
|
|
645
|
-
creatorRealm:
|
|
646
|
-
creatorName:
|
|
647
|
-
bucket:
|
|
648
|
-
expirationDate:
|
|
649
|
-
name:
|
|
650
|
-
size:
|
|
651
|
-
mimeType:
|
|
652
|
-
tags:
|
|
653
|
-
checksum:
|
|
638
|
+
response: typebox53.TObject<{
|
|
639
|
+
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
|
|
640
|
+
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
|
|
641
|
+
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
642
|
+
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
643
|
+
blobId: typebox53.TString;
|
|
644
|
+
creator: typebox53.TOptional<typebox53.TString>;
|
|
645
|
+
creatorRealm: typebox53.TOptional<typebox53.TString>;
|
|
646
|
+
creatorName: typebox53.TOptional<typebox53.TString>;
|
|
647
|
+
bucket: typebox53.TString;
|
|
648
|
+
expirationDate: typebox53.TOptional<typebox53.TString>;
|
|
649
|
+
name: typebox53.TString;
|
|
650
|
+
size: typebox53.TNumber;
|
|
651
|
+
mimeType: typebox53.TString;
|
|
652
|
+
tags: typebox53.TOptional<typebox53.TArray<typebox53.TString>>;
|
|
653
|
+
checksum: typebox53.TOptional<typebox53.TString>;
|
|
654
654
|
}>;
|
|
655
655
|
}>;
|
|
656
656
|
/**
|
|
@@ -658,30 +658,30 @@ declare class FileController {
|
|
|
658
658
|
* Allows updating name, tags, and expiration date without modifying file content.
|
|
659
659
|
*/
|
|
660
660
|
readonly updateFile: alepha_server0.ActionDescriptorFn<{
|
|
661
|
-
params:
|
|
662
|
-
id:
|
|
661
|
+
params: typebox53.TObject<{
|
|
662
|
+
id: typebox53.TString;
|
|
663
663
|
}>;
|
|
664
|
-
body:
|
|
665
|
-
name:
|
|
666
|
-
tags:
|
|
667
|
-
expirationDate:
|
|
664
|
+
body: typebox53.TObject<{
|
|
665
|
+
name: typebox53.TOptional<typebox53.TString>;
|
|
666
|
+
tags: typebox53.TOptional<typebox53.TArray<typebox53.TString>>;
|
|
667
|
+
expirationDate: typebox53.TOptional<typebox53.TString>;
|
|
668
668
|
}>;
|
|
669
|
-
response:
|
|
670
|
-
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
671
|
-
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
672
|
-
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
673
|
-
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<
|
|
674
|
-
blobId:
|
|
675
|
-
creator:
|
|
676
|
-
creatorRealm:
|
|
677
|
-
creatorName:
|
|
678
|
-
bucket:
|
|
679
|
-
expirationDate:
|
|
680
|
-
name:
|
|
681
|
-
size:
|
|
682
|
-
mimeType:
|
|
683
|
-
tags:
|
|
684
|
-
checksum:
|
|
669
|
+
response: typebox53.TObject<{
|
|
670
|
+
id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
|
|
671
|
+
version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
|
|
672
|
+
createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
673
|
+
updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<typebox53.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
|
|
674
|
+
blobId: typebox53.TString;
|
|
675
|
+
creator: typebox53.TOptional<typebox53.TString>;
|
|
676
|
+
creatorRealm: typebox53.TOptional<typebox53.TString>;
|
|
677
|
+
creatorName: typebox53.TOptional<typebox53.TString>;
|
|
678
|
+
bucket: typebox53.TString;
|
|
679
|
+
expirationDate: typebox53.TOptional<typebox53.TString>;
|
|
680
|
+
name: typebox53.TString;
|
|
681
|
+
size: typebox53.TNumber;
|
|
682
|
+
mimeType: typebox53.TString;
|
|
683
|
+
tags: typebox53.TOptional<typebox53.TArray<typebox53.TString>>;
|
|
684
|
+
checksum: typebox53.TOptional<typebox53.TString>;
|
|
685
685
|
}>;
|
|
686
686
|
}>;
|
|
687
687
|
/**
|
|
@@ -690,8 +690,8 @@ declare class FileController {
|
|
|
690
690
|
* Cached with ETag support for 1 year (immutable).
|
|
691
691
|
*/
|
|
692
692
|
readonly streamFile: alepha_server0.ActionDescriptorFn<{
|
|
693
|
-
params:
|
|
694
|
-
id:
|
|
693
|
+
params: typebox53.TObject<{
|
|
694
|
+
id: typebox53.TString;
|
|
695
695
|
}>;
|
|
696
696
|
response: alepha14.TFile;
|
|
697
697
|
}>;
|
|
@@ -769,17 +769,17 @@ declare class StorageStatsController {
|
|
|
769
769
|
* and breakdowns by bucket and MIME type.
|
|
770
770
|
*/
|
|
771
771
|
readonly getStats: alepha_server0.ActionDescriptorFn<{
|
|
772
|
-
response:
|
|
773
|
-
totalSize:
|
|
774
|
-
totalFiles:
|
|
775
|
-
byBucket:
|
|
776
|
-
bucket:
|
|
777
|
-
totalSize:
|
|
778
|
-
fileCount:
|
|
772
|
+
response: typebox53.TObject<{
|
|
773
|
+
totalSize: typebox53.TNumber;
|
|
774
|
+
totalFiles: typebox53.TNumber;
|
|
775
|
+
byBucket: typebox53.TArray<typebox53.TObject<{
|
|
776
|
+
bucket: typebox53.TString;
|
|
777
|
+
totalSize: typebox53.TNumber;
|
|
778
|
+
fileCount: typebox53.TNumber;
|
|
779
779
|
}>>;
|
|
780
|
-
byMimeType:
|
|
781
|
-
mimeType:
|
|
782
|
-
fileCount:
|
|
780
|
+
byMimeType: typebox53.TArray<typebox53.TObject<{
|
|
781
|
+
mimeType: typebox53.TString;
|
|
782
|
+
fileCount: typebox53.TNumber;
|
|
783
783
|
}>>;
|
|
784
784
|
}>;
|
|
785
785
|
}>;
|