alepha 0.10.5 → 0.10.6

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 CHANGED
@@ -1,93 +1,95 @@
1
1
  import { BucketDescriptor } from "alepha/bucket";
2
2
  import * as _alepha_core1 from "alepha";
3
3
  import { Alepha, FileLike, Static } from "alepha";
4
- import * as _alepha_postgres50 from "alepha/postgres";
4
+ import "alepha/server/security";
5
+ import * as _alepha_postgres83 from "alepha/postgres";
5
6
  import { Page } from "alepha/postgres";
7
+ import * as _alepha_server0 from "alepha/server";
6
8
  import { Ok } from "alepha/server";
7
9
  import { DateTimeProvider, DurationLike } from "alepha/datetime";
8
10
  import * as _alepha_logger0 from "alepha/logger";
9
11
  import { UserAccountToken } from "alepha/security";
10
- import * as typebox68 from "typebox";
12
+ import * as typebox144 from "typebox";
11
13
 
12
14
  //#region src/entities/files.d.ts
13
- declare const files: _alepha_postgres50.PgTableWithColumnsAndSchema<_alepha_postgres50.PgTableConfig<"files", typebox68.TObject<{
14
- id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
15
- version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
16
- createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
17
- updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
18
- blobId: typebox68.TString;
19
- creator: typebox68.TOptional<typebox68.TString>;
20
- creatorRealm: typebox68.TOptional<typebox68.TString>;
21
- creatorName: typebox68.TOptional<typebox68.TString>;
22
- bucket: typebox68.TString;
23
- expirationDate: typebox68.TOptional<typebox68.TString>;
24
- name: typebox68.TString;
25
- size: typebox68.TNumber;
26
- mimeType: typebox68.TString;
27
- tags: typebox68.TOptional<typebox68.TArray<typebox68.TString>>;
28
- checksum: typebox68.TOptional<typebox68.TString>;
29
- }>, _alepha_postgres50.FromSchema<typebox68.TObject<{
30
- id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
31
- version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
32
- createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
33
- updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
34
- blobId: typebox68.TString;
35
- creator: typebox68.TOptional<typebox68.TString>;
36
- creatorRealm: typebox68.TOptional<typebox68.TString>;
37
- creatorName: typebox68.TOptional<typebox68.TString>;
38
- bucket: typebox68.TString;
39
- expirationDate: typebox68.TOptional<typebox68.TString>;
40
- name: typebox68.TString;
41
- size: typebox68.TNumber;
42
- mimeType: typebox68.TString;
43
- tags: typebox68.TOptional<typebox68.TArray<typebox68.TString>>;
44
- checksum: typebox68.TOptional<typebox68.TString>;
45
- }>>>, typebox68.TObject<{
46
- id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
47
- version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
48
- createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
49
- updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
50
- blobId: typebox68.TString;
51
- creator: typebox68.TOptional<typebox68.TString>;
52
- creatorRealm: typebox68.TOptional<typebox68.TString>;
53
- creatorName: typebox68.TOptional<typebox68.TString>;
54
- bucket: typebox68.TString;
55
- expirationDate: typebox68.TOptional<typebox68.TString>;
56
- name: typebox68.TString;
57
- size: typebox68.TNumber;
58
- mimeType: typebox68.TString;
59
- tags: typebox68.TOptional<typebox68.TArray<typebox68.TString>>;
60
- checksum: typebox68.TOptional<typebox68.TString>;
15
+ declare const files: _alepha_postgres83.PgTableWithColumnsAndSchema<_alepha_postgres83.PgTableConfig<"files", typebox144.TObject<{
16
+ id: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_PRIMARY_KEY>, typeof _alepha_postgres83.PG_DEFAULT>;
17
+ version: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TInteger, typeof _alepha_postgres83.PG_VERSION>, typeof _alepha_postgres83.PG_DEFAULT>;
18
+ createdAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_CREATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
19
+ updatedAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_UPDATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
20
+ blobId: typebox144.TString;
21
+ creator: typebox144.TOptional<typebox144.TString>;
22
+ creatorRealm: typebox144.TOptional<typebox144.TString>;
23
+ creatorName: typebox144.TOptional<typebox144.TString>;
24
+ bucket: typebox144.TString;
25
+ expirationDate: typebox144.TOptional<typebox144.TString>;
26
+ name: typebox144.TString;
27
+ size: typebox144.TNumber;
28
+ mimeType: typebox144.TString;
29
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
30
+ checksum: typebox144.TOptional<typebox144.TString>;
31
+ }>, _alepha_postgres83.FromSchema<typebox144.TObject<{
32
+ id: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_PRIMARY_KEY>, typeof _alepha_postgres83.PG_DEFAULT>;
33
+ version: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TInteger, typeof _alepha_postgres83.PG_VERSION>, typeof _alepha_postgres83.PG_DEFAULT>;
34
+ createdAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_CREATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
35
+ updatedAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_UPDATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
36
+ blobId: typebox144.TString;
37
+ creator: typebox144.TOptional<typebox144.TString>;
38
+ creatorRealm: typebox144.TOptional<typebox144.TString>;
39
+ creatorName: typebox144.TOptional<typebox144.TString>;
40
+ bucket: typebox144.TString;
41
+ expirationDate: typebox144.TOptional<typebox144.TString>;
42
+ name: typebox144.TString;
43
+ size: typebox144.TNumber;
44
+ mimeType: typebox144.TString;
45
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
46
+ checksum: typebox144.TOptional<typebox144.TString>;
47
+ }>>>, typebox144.TObject<{
48
+ id: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_PRIMARY_KEY>, typeof _alepha_postgres83.PG_DEFAULT>;
49
+ version: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TInteger, typeof _alepha_postgres83.PG_VERSION>, typeof _alepha_postgres83.PG_DEFAULT>;
50
+ createdAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_CREATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
51
+ updatedAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_UPDATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
52
+ blobId: typebox144.TString;
53
+ creator: typebox144.TOptional<typebox144.TString>;
54
+ creatorRealm: typebox144.TOptional<typebox144.TString>;
55
+ creatorName: typebox144.TOptional<typebox144.TString>;
56
+ bucket: typebox144.TString;
57
+ expirationDate: typebox144.TOptional<typebox144.TString>;
58
+ name: typebox144.TString;
59
+ size: typebox144.TNumber;
60
+ mimeType: typebox144.TString;
61
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
62
+ checksum: typebox144.TOptional<typebox144.TString>;
61
63
  }>>;
62
64
  type FileEntity = Static<typeof files.$schema>;
63
65
  //#endregion
64
66
  //#region src/schemas/fileQuerySchema.d.ts
65
- declare const fileQuerySchema: typebox68.TObject<{
66
- page: typebox68.TOptional<typebox68.TInteger>;
67
- size: typebox68.TOptional<typebox68.TInteger>;
68
- sort: typebox68.TOptional<typebox68.TString>;
69
- bucket: typebox68.TOptional<typebox68.TString>;
70
- tags: typebox68.TOptional<typebox68.TArray<typebox68.TString>>;
67
+ declare const fileQuerySchema: typebox144.TObject<{
68
+ page: typebox144.TOptional<typebox144.TInteger>;
69
+ size: typebox144.TOptional<typebox144.TInteger>;
70
+ sort: typebox144.TOptional<typebox144.TString>;
71
+ bucket: typebox144.TOptional<typebox144.TString>;
72
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
71
73
  }>;
72
74
  type FileQuery = Static<typeof fileQuerySchema>;
73
75
  //#endregion
74
76
  //#region src/schemas/fileResourceSchema.d.ts
75
- declare const fileResourceSchema: typebox68.TObject<{
76
- id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
77
- version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
78
- createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
79
- updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
80
- blobId: typebox68.TString;
81
- creator: typebox68.TOptional<typebox68.TString>;
82
- creatorRealm: typebox68.TOptional<typebox68.TString>;
83
- creatorName: typebox68.TOptional<typebox68.TString>;
84
- bucket: typebox68.TString;
85
- expirationDate: typebox68.TOptional<typebox68.TString>;
86
- name: typebox68.TString;
87
- size: typebox68.TNumber;
88
- mimeType: typebox68.TString;
89
- tags: typebox68.TOptional<typebox68.TArray<typebox68.TString>>;
90
- checksum: typebox68.TOptional<typebox68.TString>;
77
+ declare const fileResourceSchema: typebox144.TObject<{
78
+ id: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_PRIMARY_KEY>, typeof _alepha_postgres83.PG_DEFAULT>;
79
+ version: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TInteger, typeof _alepha_postgres83.PG_VERSION>, typeof _alepha_postgres83.PG_DEFAULT>;
80
+ createdAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_CREATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
81
+ updatedAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_UPDATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
82
+ blobId: typebox144.TString;
83
+ creator: typebox144.TOptional<typebox144.TString>;
84
+ creatorRealm: typebox144.TOptional<typebox144.TString>;
85
+ creatorName: typebox144.TOptional<typebox144.TString>;
86
+ bucket: typebox144.TString;
87
+ expirationDate: typebox144.TOptional<typebox144.TString>;
88
+ name: typebox144.TString;
89
+ size: typebox144.TNumber;
90
+ mimeType: typebox144.TString;
91
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
92
+ checksum: typebox144.TOptional<typebox144.TString>;
91
93
  }>;
92
94
  type FileResource = Static<typeof fileResourceSchema>;
93
95
  //#endregion
@@ -95,54 +97,54 @@ type FileResource = Static<typeof fileResourceSchema>;
95
97
  declare class FileService {
96
98
  protected readonly alepha: Alepha;
97
99
  protected readonly log: _alepha_logger0.Logger;
98
- protected readonly fileRepository: _alepha_postgres50.RepositoryDescriptor<_alepha_postgres50.PgTableConfig<"files", typebox68.TObject<{
99
- id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
100
- version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
101
- createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
102
- updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
103
- blobId: typebox68.TString;
104
- creator: typebox68.TOptional<typebox68.TString>;
105
- creatorRealm: typebox68.TOptional<typebox68.TString>;
106
- creatorName: typebox68.TOptional<typebox68.TString>;
107
- bucket: typebox68.TString;
108
- expirationDate: typebox68.TOptional<typebox68.TString>;
109
- name: typebox68.TString;
110
- size: typebox68.TNumber;
111
- mimeType: typebox68.TString;
112
- tags: typebox68.TOptional<typebox68.TArray<typebox68.TString>>;
113
- checksum: typebox68.TOptional<typebox68.TString>;
114
- }>, _alepha_postgres50.FromSchema<typebox68.TObject<{
115
- id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
116
- version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
117
- createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
118
- updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
119
- blobId: typebox68.TString;
120
- creator: typebox68.TOptional<typebox68.TString>;
121
- creatorRealm: typebox68.TOptional<typebox68.TString>;
122
- creatorName: typebox68.TOptional<typebox68.TString>;
123
- bucket: typebox68.TString;
124
- expirationDate: typebox68.TOptional<typebox68.TString>;
125
- name: typebox68.TString;
126
- size: typebox68.TNumber;
127
- mimeType: typebox68.TString;
128
- tags: typebox68.TOptional<typebox68.TArray<typebox68.TString>>;
129
- checksum: typebox68.TOptional<typebox68.TString>;
130
- }>>>, typebox68.TObject<{
131
- id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
132
- version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
133
- createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
134
- updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox68.TString, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
135
- blobId: typebox68.TString;
136
- creator: typebox68.TOptional<typebox68.TString>;
137
- creatorRealm: typebox68.TOptional<typebox68.TString>;
138
- creatorName: typebox68.TOptional<typebox68.TString>;
139
- bucket: typebox68.TString;
140
- expirationDate: typebox68.TOptional<typebox68.TString>;
141
- name: typebox68.TString;
142
- size: typebox68.TNumber;
143
- mimeType: typebox68.TString;
144
- tags: typebox68.TOptional<typebox68.TArray<typebox68.TString>>;
145
- checksum: typebox68.TOptional<typebox68.TString>;
100
+ protected readonly fileRepository: _alepha_postgres83.RepositoryDescriptor<_alepha_postgres83.PgTableConfig<"files", typebox144.TObject<{
101
+ id: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_PRIMARY_KEY>, typeof _alepha_postgres83.PG_DEFAULT>;
102
+ version: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TInteger, typeof _alepha_postgres83.PG_VERSION>, typeof _alepha_postgres83.PG_DEFAULT>;
103
+ createdAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_CREATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
104
+ updatedAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_UPDATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
105
+ blobId: typebox144.TString;
106
+ creator: typebox144.TOptional<typebox144.TString>;
107
+ creatorRealm: typebox144.TOptional<typebox144.TString>;
108
+ creatorName: typebox144.TOptional<typebox144.TString>;
109
+ bucket: typebox144.TString;
110
+ expirationDate: typebox144.TOptional<typebox144.TString>;
111
+ name: typebox144.TString;
112
+ size: typebox144.TNumber;
113
+ mimeType: typebox144.TString;
114
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
115
+ checksum: typebox144.TOptional<typebox144.TString>;
116
+ }>, _alepha_postgres83.FromSchema<typebox144.TObject<{
117
+ id: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_PRIMARY_KEY>, typeof _alepha_postgres83.PG_DEFAULT>;
118
+ version: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TInteger, typeof _alepha_postgres83.PG_VERSION>, typeof _alepha_postgres83.PG_DEFAULT>;
119
+ createdAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_CREATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
120
+ updatedAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_UPDATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
121
+ blobId: typebox144.TString;
122
+ creator: typebox144.TOptional<typebox144.TString>;
123
+ creatorRealm: typebox144.TOptional<typebox144.TString>;
124
+ creatorName: typebox144.TOptional<typebox144.TString>;
125
+ bucket: typebox144.TString;
126
+ expirationDate: typebox144.TOptional<typebox144.TString>;
127
+ name: typebox144.TString;
128
+ size: typebox144.TNumber;
129
+ mimeType: typebox144.TString;
130
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
131
+ checksum: typebox144.TOptional<typebox144.TString>;
132
+ }>>>, typebox144.TObject<{
133
+ id: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_PRIMARY_KEY>, typeof _alepha_postgres83.PG_DEFAULT>;
134
+ version: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TInteger, typeof _alepha_postgres83.PG_VERSION>, typeof _alepha_postgres83.PG_DEFAULT>;
135
+ createdAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_CREATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
136
+ updatedAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_UPDATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
137
+ blobId: typebox144.TString;
138
+ creator: typebox144.TOptional<typebox144.TString>;
139
+ creatorRealm: typebox144.TOptional<typebox144.TString>;
140
+ creatorName: typebox144.TOptional<typebox144.TString>;
141
+ bucket: typebox144.TString;
142
+ expirationDate: typebox144.TOptional<typebox144.TString>;
143
+ name: typebox144.TString;
144
+ size: typebox144.TNumber;
145
+ mimeType: typebox144.TString;
146
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
147
+ checksum: typebox144.TOptional<typebox144.TString>;
146
148
  }>>;
147
149
  protected readonly dateTimeProvider: DateTimeProvider;
148
150
  protected readonly defaultBucket: BucketDescriptor;
@@ -164,6 +166,81 @@ declare class FileService {
164
166
  entityToResource(entity: FileEntity): FileResource;
165
167
  }
166
168
  //#endregion
169
+ //#region src/controllers/FileController.d.ts
170
+ declare class FileController {
171
+ protected readonly url = "/files";
172
+ protected readonly group = "files";
173
+ protected readonly fileService: FileService;
174
+ readonly findFiles: _alepha_server0.ActionDescriptorFn<{
175
+ query: typebox144.TObject<{
176
+ page: typebox144.TOptional<typebox144.TInteger>;
177
+ size: typebox144.TOptional<typebox144.TInteger>;
178
+ sort: typebox144.TOptional<typebox144.TString>;
179
+ bucket: typebox144.TOptional<typebox144.TString>;
180
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
181
+ }>;
182
+ response: _alepha_postgres83.TPage<typebox144.TObject<{
183
+ id: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_PRIMARY_KEY>, typeof _alepha_postgres83.PG_DEFAULT>;
184
+ version: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TInteger, typeof _alepha_postgres83.PG_VERSION>, typeof _alepha_postgres83.PG_DEFAULT>;
185
+ createdAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_CREATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
186
+ updatedAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_UPDATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
187
+ blobId: typebox144.TString;
188
+ creator: typebox144.TOptional<typebox144.TString>;
189
+ creatorRealm: typebox144.TOptional<typebox144.TString>;
190
+ creatorName: typebox144.TOptional<typebox144.TString>;
191
+ bucket: typebox144.TString;
192
+ expirationDate: typebox144.TOptional<typebox144.TString>;
193
+ name: typebox144.TString;
194
+ size: typebox144.TNumber;
195
+ mimeType: typebox144.TString;
196
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
197
+ checksum: typebox144.TOptional<typebox144.TString>;
198
+ }>>;
199
+ }>;
200
+ readonly deleteFile: _alepha_server0.ActionDescriptorFn<{
201
+ params: typebox144.TObject<{
202
+ id: typebox144.TString;
203
+ }>;
204
+ response: typebox144.TObject<{
205
+ ok: typebox144.TBoolean;
206
+ id: typebox144.TOptional<typebox144.TUnion<[typebox144.TString, typebox144.TInteger]>>;
207
+ count: typebox144.TOptional<typebox144.TNumber>;
208
+ }>;
209
+ }>;
210
+ readonly uploadFile: _alepha_server0.ActionDescriptorFn<{
211
+ body: typebox144.TObject<{
212
+ file: _alepha_core1.TFile;
213
+ }>;
214
+ query: typebox144.TObject<{
215
+ expirationDate: typebox144.TOptional<typebox144.TString>;
216
+ bucket: typebox144.TOptional<typebox144.TString>;
217
+ }>;
218
+ response: typebox144.TObject<{
219
+ id: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_PRIMARY_KEY>, typeof _alepha_postgres83.PG_DEFAULT>;
220
+ version: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TInteger, typeof _alepha_postgres83.PG_VERSION>, typeof _alepha_postgres83.PG_DEFAULT>;
221
+ createdAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_CREATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
222
+ updatedAt: _alepha_postgres83.PgAttr<_alepha_postgres83.PgAttr<typebox144.TString, typeof _alepha_postgres83.PG_UPDATED_AT>, typeof _alepha_postgres83.PG_DEFAULT>;
223
+ blobId: typebox144.TString;
224
+ creator: typebox144.TOptional<typebox144.TString>;
225
+ creatorRealm: typebox144.TOptional<typebox144.TString>;
226
+ creatorName: typebox144.TOptional<typebox144.TString>;
227
+ bucket: typebox144.TString;
228
+ expirationDate: typebox144.TOptional<typebox144.TString>;
229
+ name: typebox144.TString;
230
+ size: typebox144.TNumber;
231
+ mimeType: typebox144.TString;
232
+ tags: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
233
+ checksum: typebox144.TOptional<typebox144.TString>;
234
+ }>;
235
+ }>;
236
+ readonly streamFile: _alepha_server0.ActionDescriptorFn<{
237
+ params: typebox144.TObject<{
238
+ id: typebox144.TString;
239
+ }>;
240
+ response: _alepha_core1.TFile;
241
+ }>;
242
+ }
243
+ //#endregion
167
244
  //#region src/index.d.ts
168
245
  declare module "alepha/bucket" {
169
246
  interface BucketFileOptions {
@@ -197,5 +274,5 @@ declare module "alepha/bucket" {
197
274
  */
198
275
  declare const AlephaApiFiles: _alepha_core1.Service<_alepha_core1.Module<{}>>;
199
276
  //#endregion
200
- export { AlephaApiFiles, FileEntity, FileService, files };
277
+ export { AlephaApiFiles, FileController, FileEntity, FileService, files };
201
278
  //# sourceMappingURL=index.d.ts.map