alepha 0.15.2 → 0.15.4

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.
Files changed (180) hide show
  1. package/README.md +68 -80
  2. package/dist/api/audits/index.d.ts.map +1 -1
  3. package/dist/api/audits/index.js +8 -0
  4. package/dist/api/audits/index.js.map +1 -1
  5. package/dist/api/files/index.d.ts +170 -170
  6. package/dist/api/files/index.d.ts.map +1 -1
  7. package/dist/api/files/index.js +1 -0
  8. package/dist/api/files/index.js.map +1 -1
  9. package/dist/api/jobs/index.d.ts.map +1 -1
  10. package/dist/api/jobs/index.js +3 -0
  11. package/dist/api/jobs/index.js.map +1 -1
  12. package/dist/api/notifications/index.browser.js +1 -0
  13. package/dist/api/notifications/index.browser.js.map +1 -1
  14. package/dist/api/notifications/index.js +1 -0
  15. package/dist/api/notifications/index.js.map +1 -1
  16. package/dist/api/parameters/index.d.ts +260 -260
  17. package/dist/api/parameters/index.d.ts.map +1 -1
  18. package/dist/api/parameters/index.js +10 -0
  19. package/dist/api/parameters/index.js.map +1 -1
  20. package/dist/api/users/index.d.ts +12 -1
  21. package/dist/api/users/index.d.ts.map +1 -1
  22. package/dist/api/users/index.js +18 -2
  23. package/dist/api/users/index.js.map +1 -1
  24. package/dist/batch/index.d.ts +4 -4
  25. package/dist/bucket/index.d.ts +8 -0
  26. package/dist/bucket/index.d.ts.map +1 -1
  27. package/dist/bucket/index.js +7 -2
  28. package/dist/bucket/index.js.map +1 -1
  29. package/dist/cli/index.d.ts +196 -74
  30. package/dist/cli/index.d.ts.map +1 -1
  31. package/dist/cli/index.js +234 -50
  32. package/dist/cli/index.js.map +1 -1
  33. package/dist/command/index.d.ts +10 -0
  34. package/dist/command/index.d.ts.map +1 -1
  35. package/dist/command/index.js +67 -13
  36. package/dist/command/index.js.map +1 -1
  37. package/dist/core/index.browser.js +28 -21
  38. package/dist/core/index.browser.js.map +1 -1
  39. package/dist/core/index.d.ts.map +1 -1
  40. package/dist/core/index.js +28 -21
  41. package/dist/core/index.js.map +1 -1
  42. package/dist/core/index.native.js +28 -21
  43. package/dist/core/index.native.js.map +1 -1
  44. package/dist/email/index.d.ts +21 -13
  45. package/dist/email/index.d.ts.map +1 -1
  46. package/dist/email/index.js +10561 -4
  47. package/dist/email/index.js.map +1 -1
  48. package/dist/lock/core/index.d.ts +6 -1
  49. package/dist/lock/core/index.d.ts.map +1 -1
  50. package/dist/lock/core/index.js +9 -1
  51. package/dist/lock/core/index.js.map +1 -1
  52. package/dist/mcp/index.d.ts +5 -5
  53. package/dist/orm/index.bun.js +32 -16
  54. package/dist/orm/index.bun.js.map +1 -1
  55. package/dist/orm/index.d.ts +4 -1
  56. package/dist/orm/index.d.ts.map +1 -1
  57. package/dist/orm/index.js +34 -22
  58. package/dist/orm/index.js.map +1 -1
  59. package/dist/react/auth/index.browser.js +2 -1
  60. package/dist/react/auth/index.browser.js.map +1 -1
  61. package/dist/react/auth/index.js +2 -1
  62. package/dist/react/auth/index.js.map +1 -1
  63. package/dist/react/core/index.d.ts +3 -3
  64. package/dist/react/router/index.browser.js +9 -15
  65. package/dist/react/router/index.browser.js.map +1 -1
  66. package/dist/react/router/index.d.ts +305 -407
  67. package/dist/react/router/index.d.ts.map +1 -1
  68. package/dist/react/router/index.js +581 -781
  69. package/dist/react/router/index.js.map +1 -1
  70. package/dist/scheduler/index.d.ts +13 -1
  71. package/dist/scheduler/index.d.ts.map +1 -1
  72. package/dist/scheduler/index.js +42 -4
  73. package/dist/scheduler/index.js.map +1 -1
  74. package/dist/security/index.d.ts +42 -42
  75. package/dist/security/index.d.ts.map +1 -1
  76. package/dist/security/index.js +8 -7
  77. package/dist/security/index.js.map +1 -1
  78. package/dist/server/auth/index.d.ts +167 -167
  79. package/dist/server/compress/index.d.ts.map +1 -1
  80. package/dist/server/compress/index.js +1 -0
  81. package/dist/server/compress/index.js.map +1 -1
  82. package/dist/server/health/index.d.ts +17 -17
  83. package/dist/server/links/index.d.ts +39 -39
  84. package/dist/server/links/index.js +1 -1
  85. package/dist/server/links/index.js.map +1 -1
  86. package/dist/server/static/index.js +7 -2
  87. package/dist/server/static/index.js.map +1 -1
  88. package/dist/server/swagger/index.d.ts +8 -0
  89. package/dist/server/swagger/index.d.ts.map +1 -1
  90. package/dist/server/swagger/index.js +7 -2
  91. package/dist/server/swagger/index.js.map +1 -1
  92. package/dist/sms/index.d.ts +8 -0
  93. package/dist/sms/index.d.ts.map +1 -1
  94. package/dist/sms/index.js +7 -2
  95. package/dist/sms/index.js.map +1 -1
  96. package/dist/system/index.browser.js +734 -12
  97. package/dist/system/index.browser.js.map +1 -1
  98. package/dist/system/index.d.ts +8 -0
  99. package/dist/system/index.d.ts.map +1 -1
  100. package/dist/system/index.js +7 -2
  101. package/dist/system/index.js.map +1 -1
  102. package/dist/vite/index.d.ts +3 -2
  103. package/dist/vite/index.d.ts.map +1 -1
  104. package/dist/vite/index.js +42 -8
  105. package/dist/vite/index.js.map +1 -1
  106. package/dist/websocket/index.d.ts +34 -34
  107. package/dist/websocket/index.d.ts.map +1 -1
  108. package/package.json +9 -4
  109. package/src/api/audits/controllers/AdminAuditController.ts +8 -0
  110. package/src/api/files/controllers/AdminFileStatsController.ts +1 -0
  111. package/src/api/jobs/controllers/AdminJobController.ts +3 -0
  112. package/src/api/logs/TODO.md +13 -10
  113. package/src/api/notifications/controllers/AdminNotificationController.ts +1 -0
  114. package/src/api/parameters/controllers/AdminConfigController.ts +10 -0
  115. package/src/api/users/controllers/AdminIdentityController.ts +3 -0
  116. package/src/api/users/controllers/AdminSessionController.ts +3 -0
  117. package/src/api/users/controllers/AdminUserController.ts +5 -0
  118. package/src/cli/apps/AlephaPackageBuilderCli.ts +9 -0
  119. package/src/cli/atoms/buildOptions.ts +99 -9
  120. package/src/cli/commands/build.ts +150 -32
  121. package/src/cli/commands/db.ts +5 -7
  122. package/src/cli/commands/init.spec.ts +50 -6
  123. package/src/cli/commands/init.ts +28 -5
  124. package/src/cli/providers/ViteDevServerProvider.ts +31 -9
  125. package/src/cli/services/AlephaCliUtils.ts +16 -0
  126. package/src/cli/services/PackageManagerUtils.ts +2 -0
  127. package/src/cli/services/ProjectScaffolder.spec.ts +97 -0
  128. package/src/cli/services/ProjectScaffolder.ts +28 -6
  129. package/src/cli/templates/agentMd.ts +6 -1
  130. package/src/cli/templates/apiAppSecurityTs.ts +11 -0
  131. package/src/cli/templates/apiIndexTs.ts +18 -4
  132. package/src/cli/templates/webAppRouterTs.ts +25 -1
  133. package/src/cli/templates/webHelloComponentTsx.ts +15 -5
  134. package/src/command/helpers/Runner.spec.ts +135 -0
  135. package/src/command/helpers/Runner.ts +4 -1
  136. package/src/command/providers/CliProvider.spec.ts +325 -0
  137. package/src/command/providers/CliProvider.ts +117 -7
  138. package/src/core/Alepha.ts +32 -25
  139. package/src/email/index.workerd.ts +36 -0
  140. package/src/email/providers/WorkermailerEmailProvider.ts +221 -0
  141. package/src/lock/core/primitives/$lock.ts +13 -1
  142. package/src/orm/index.bun.ts +1 -1
  143. package/src/orm/index.ts +2 -6
  144. package/src/orm/providers/drivers/BunSqliteProvider.ts +4 -1
  145. package/src/orm/providers/drivers/CloudflareD1Provider.ts +57 -30
  146. package/src/orm/providers/drivers/DatabaseProvider.ts +9 -1
  147. package/src/orm/providers/drivers/NodeSqliteProvider.ts +4 -1
  148. package/src/react/auth/services/ReactAuth.ts +3 -1
  149. package/src/react/router/atoms/ssrManifestAtom.ts +7 -0
  150. package/src/react/router/hooks/useActive.ts +1 -1
  151. package/src/react/router/hooks/useRouter.ts +1 -1
  152. package/src/react/router/index.ts +4 -0
  153. package/src/react/router/primitives/$page.browser.spec.tsx +24 -24
  154. package/src/react/router/primitives/$page.spec.tsx +0 -32
  155. package/src/react/router/primitives/$page.ts +6 -14
  156. package/src/react/router/providers/ReactBrowserProvider.ts +6 -3
  157. package/src/react/router/providers/ReactPageProvider.ts +1 -1
  158. package/src/react/router/providers/ReactPreloadProvider.spec.ts +142 -0
  159. package/src/react/router/providers/ReactPreloadProvider.ts +85 -0
  160. package/src/react/router/providers/ReactServerProvider.ts +21 -82
  161. package/src/react/router/providers/ReactServerTemplateProvider.spec.ts +210 -0
  162. package/src/react/router/providers/ReactServerTemplateProvider.ts +228 -665
  163. package/src/react/router/providers/SSRManifestProvider.ts +7 -0
  164. package/src/react/router/services/ReactRouter.ts +13 -13
  165. package/src/scheduler/index.workerd.ts +43 -0
  166. package/src/scheduler/providers/CronProvider.ts +53 -6
  167. package/src/scheduler/providers/WorkerdCronProvider.ts +102 -0
  168. package/src/security/__tests__/ServerSecurityProvider.spec.ts +77 -0
  169. package/src/security/providers/ServerSecurityProvider.ts +30 -22
  170. package/src/server/compress/providers/ServerCompressProvider.ts +6 -0
  171. package/src/server/core/providers/NodeHttpServerProvider.spec.ts +9 -3
  172. package/src/server/links/providers/ServerLinksProvider.spec.ts +332 -0
  173. package/src/server/links/providers/ServerLinksProvider.ts +1 -1
  174. package/src/system/index.browser.ts +25 -0
  175. package/src/system/index.workerd.ts +1 -0
  176. package/src/system/providers/FileSystemProvider.ts +8 -0
  177. package/src/system/providers/NodeFileSystemProvider.ts +11 -2
  178. package/src/vite/tasks/buildServer.ts +2 -12
  179. package/src/vite/tasks/generateCloudflare.ts +47 -8
  180. package/src/vite/tasks/generateDocker.ts +4 -0
@@ -1,11 +1,11 @@
1
- import * as alepha135 from "alepha";
1
+ import * as alepha160 from "alepha";
2
2
  import { Alepha, FileLike, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
3
  import { BucketPrimitive } from "alepha/bucket";
4
4
  import * as alepha_server0 from "alepha/server";
5
5
  import { Ok } from "alepha/server";
6
6
  import { DateTime, DateTimeProvider, DurationLike } from "alepha/datetime";
7
7
  import * as alepha_logger0 from "alepha/logger";
8
- import * as alepha_orm0 from "alepha/orm";
8
+ import * as alepha_orm16 from "alepha/orm";
9
9
  import { Page } from "alepha/orm";
10
10
  import * as alepha_scheduler0 from "alepha/scheduler";
11
11
  import "drizzle-orm/d1";
@@ -16,37 +16,37 @@ import "alepha/retry";
16
16
  import "drizzle-orm/sqlite-core";
17
17
 
18
18
  //#region ../../src/api/files/entities/files.d.ts
19
- declare const files: alepha_orm0.EntityPrimitive<alepha135.TObject<{
20
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha135.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
21
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha135.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
22
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha135.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
23
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha135.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
24
- blobId: alepha135.TString;
25
- creator: alepha135.TOptional<alepha135.TString>;
26
- creatorRealm: alepha135.TOptional<alepha135.TString>;
27
- creatorName: alepha135.TOptional<alepha135.TString>;
28
- bucket: alepha135.TString;
29
- expirationDate: alepha135.TOptional<alepha135.TString>;
30
- name: alepha135.TString;
31
- size: alepha135.TNumber;
32
- mimeType: alepha135.TString;
33
- tags: alepha135.TOptional<alepha135.TArray<alepha135.TString>>;
34
- checksum: alepha135.TOptional<alepha135.TString>;
19
+ declare const files: alepha_orm16.EntityPrimitive<alepha160.TObject<{
20
+ id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
21
+ version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
22
+ createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
23
+ updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
24
+ blobId: alepha160.TString;
25
+ creator: alepha160.TOptional<alepha160.TString>;
26
+ creatorRealm: alepha160.TOptional<alepha160.TString>;
27
+ creatorName: alepha160.TOptional<alepha160.TString>;
28
+ bucket: alepha160.TString;
29
+ expirationDate: alepha160.TOptional<alepha160.TString>;
30
+ name: alepha160.TString;
31
+ size: alepha160.TNumber;
32
+ mimeType: alepha160.TString;
33
+ tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
34
+ checksum: alepha160.TOptional<alepha160.TString>;
35
35
  }>>;
36
36
  type FileEntity = Static<typeof files.schema>;
37
37
  //#endregion
38
38
  //#region ../../src/api/files/schemas/fileQuerySchema.d.ts
39
- declare const fileQuerySchema: alepha135.TObject<{
40
- page: alepha135.TOptional<alepha135.TInteger>;
41
- size: alepha135.TOptional<alepha135.TInteger>;
42
- sort: alepha135.TOptional<alepha135.TString>;
43
- bucket: alepha135.TOptional<alepha135.TString>;
44
- tags: alepha135.TOptional<alepha135.TArray<alepha135.TString>>;
45
- name: alepha135.TOptional<alepha135.TString>;
46
- mimeType: alepha135.TOptional<alepha135.TString>;
47
- creator: alepha135.TOptional<alepha135.TString>;
48
- createdAfter: alepha135.TOptional<alepha135.TString>;
49
- createdBefore: alepha135.TOptional<alepha135.TString>;
39
+ declare const fileQuerySchema: alepha160.TObject<{
40
+ page: alepha160.TOptional<alepha160.TInteger>;
41
+ size: alepha160.TOptional<alepha160.TInteger>;
42
+ sort: alepha160.TOptional<alepha160.TString>;
43
+ bucket: alepha160.TOptional<alepha160.TString>;
44
+ tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
45
+ name: alepha160.TOptional<alepha160.TString>;
46
+ mimeType: alepha160.TOptional<alepha160.TString>;
47
+ creator: alepha160.TOptional<alepha160.TString>;
48
+ createdAfter: alepha160.TOptional<alepha160.TString>;
49
+ createdBefore: alepha160.TOptional<alepha160.TString>;
50
50
  }>;
51
51
  type FileQuery = Static<typeof fileQuerySchema>;
52
52
  //#endregion
@@ -267,46 +267,46 @@ interface PgRefOptions {
267
267
  type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
268
268
  //#endregion
269
269
  //#region ../../src/api/files/schemas/fileResourceSchema.d.ts
270
- declare const fileResourceSchema: alepha135.TObject<{
271
- id: PgAttr<PgAttr<alepha135.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
272
- version: PgAttr<PgAttr<alepha135.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
273
- createdAt: PgAttr<PgAttr<alepha135.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
274
- updatedAt: PgAttr<PgAttr<alepha135.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
275
- blobId: alepha135.TString;
276
- creator: alepha135.TOptional<alepha135.TString>;
277
- creatorRealm: alepha135.TOptional<alepha135.TString>;
278
- creatorName: alepha135.TOptional<alepha135.TString>;
279
- bucket: alepha135.TString;
280
- expirationDate: alepha135.TOptional<alepha135.TString>;
281
- name: alepha135.TString;
282
- size: alepha135.TNumber;
283
- mimeType: alepha135.TString;
284
- tags: alepha135.TOptional<alepha135.TArray<alepha135.TString>>;
285
- checksum: alepha135.TOptional<alepha135.TString>;
270
+ declare const fileResourceSchema: alepha160.TObject<{
271
+ id: PgAttr<PgAttr<alepha160.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
272
+ version: PgAttr<PgAttr<alepha160.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
273
+ createdAt: PgAttr<PgAttr<alepha160.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
274
+ updatedAt: PgAttr<PgAttr<alepha160.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
275
+ blobId: alepha160.TString;
276
+ creator: alepha160.TOptional<alepha160.TString>;
277
+ creatorRealm: alepha160.TOptional<alepha160.TString>;
278
+ creatorName: alepha160.TOptional<alepha160.TString>;
279
+ bucket: alepha160.TString;
280
+ expirationDate: alepha160.TOptional<alepha160.TString>;
281
+ name: alepha160.TString;
282
+ size: alepha160.TNumber;
283
+ mimeType: alepha160.TString;
284
+ tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
285
+ checksum: alepha160.TOptional<alepha160.TString>;
286
286
  }>;
287
287
  type FileResource = Static<typeof fileResourceSchema>;
288
288
  //#endregion
289
289
  //#region ../../src/api/files/schemas/storageStatsSchema.d.ts
290
- declare const bucketStatsSchema: alepha135.TObject<{
291
- bucket: alepha135.TString;
292
- totalSize: alepha135.TNumber;
293
- fileCount: alepha135.TNumber;
290
+ declare const bucketStatsSchema: alepha160.TObject<{
291
+ bucket: alepha160.TString;
292
+ totalSize: alepha160.TNumber;
293
+ fileCount: alepha160.TNumber;
294
294
  }>;
295
- declare const mimeTypeStatsSchema: alepha135.TObject<{
296
- mimeType: alepha135.TString;
297
- fileCount: alepha135.TNumber;
295
+ declare const mimeTypeStatsSchema: alepha160.TObject<{
296
+ mimeType: alepha160.TString;
297
+ fileCount: alepha160.TNumber;
298
298
  }>;
299
- declare const storageStatsSchema: alepha135.TObject<{
300
- totalSize: alepha135.TNumber;
301
- totalFiles: alepha135.TNumber;
302
- byBucket: alepha135.TArray<alepha135.TObject<{
303
- bucket: alepha135.TString;
304
- totalSize: alepha135.TNumber;
305
- fileCount: alepha135.TNumber;
299
+ declare const storageStatsSchema: alepha160.TObject<{
300
+ totalSize: alepha160.TNumber;
301
+ totalFiles: alepha160.TNumber;
302
+ byBucket: alepha160.TArray<alepha160.TObject<{
303
+ bucket: alepha160.TString;
304
+ totalSize: alepha160.TNumber;
305
+ fileCount: alepha160.TNumber;
306
306
  }>>;
307
- byMimeType: alepha135.TArray<alepha135.TObject<{
308
- mimeType: alepha135.TString;
309
- fileCount: alepha135.TNumber;
307
+ byMimeType: alepha160.TArray<alepha160.TObject<{
308
+ mimeType: alepha160.TString;
309
+ fileCount: alepha160.TNumber;
310
310
  }>>;
311
311
  }>;
312
312
  type BucketStats = Static<typeof bucketStatsSchema>;
@@ -317,27 +317,27 @@ type StorageStats = Static<typeof storageStatsSchema>;
317
317
  declare class FileService {
318
318
  protected readonly alepha: Alepha;
319
319
  protected readonly log: alepha_logger0.Logger;
320
- protected readonly fileRepository: alepha_orm0.Repository<alepha135.TObject<{
321
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha135.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
322
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha135.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
323
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha135.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
324
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha135.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
325
- blobId: alepha135.TString;
326
- creator: alepha135.TOptional<alepha135.TString>;
327
- creatorRealm: alepha135.TOptional<alepha135.TString>;
328
- creatorName: alepha135.TOptional<alepha135.TString>;
329
- bucket: alepha135.TString;
330
- expirationDate: alepha135.TOptional<alepha135.TString>;
331
- name: alepha135.TString;
332
- size: alepha135.TNumber;
333
- mimeType: alepha135.TString;
334
- tags: alepha135.TOptional<alepha135.TArray<alepha135.TString>>;
335
- checksum: alepha135.TOptional<alepha135.TString>;
320
+ protected readonly fileRepository: alepha_orm16.Repository<alepha160.TObject<{
321
+ id: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_PRIMARY_KEY>, typeof alepha_orm16.PG_DEFAULT>;
322
+ version: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TInteger, typeof alepha_orm16.PG_VERSION>, typeof alepha_orm16.PG_DEFAULT>;
323
+ createdAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_CREATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
324
+ updatedAt: alepha_orm16.PgAttr<alepha_orm16.PgAttr<alepha160.TString, typeof alepha_orm16.PG_UPDATED_AT>, typeof alepha_orm16.PG_DEFAULT>;
325
+ blobId: alepha160.TString;
326
+ creator: alepha160.TOptional<alepha160.TString>;
327
+ creatorRealm: alepha160.TOptional<alepha160.TString>;
328
+ creatorName: alepha160.TOptional<alepha160.TString>;
329
+ bucket: alepha160.TString;
330
+ expirationDate: alepha160.TOptional<alepha160.TString>;
331
+ name: alepha160.TString;
332
+ size: alepha160.TNumber;
333
+ mimeType: alepha160.TString;
334
+ tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
335
+ checksum: alepha160.TOptional<alepha160.TString>;
336
336
  }>>;
337
337
  protected readonly dateTimeProvider: DateTimeProvider;
338
338
  protected readonly defaultBucket: BucketPrimitive;
339
- protected onUploadFile: alepha135.HookPrimitive<"bucket:file:uploaded">;
340
- protected onDeleteBucketFile: alepha135.HookPrimitive<"bucket:file:deleted">;
339
+ protected onUploadFile: alepha160.HookPrimitive<"bucket:file:uploaded">;
340
+ protected onDeleteBucketFile: alepha160.HookPrimitive<"bucket:file:deleted">;
341
341
  /**
342
342
  * Calculates SHA-256 checksum of a file.
343
343
  *
@@ -472,17 +472,17 @@ declare class AdminFileStatsController {
472
472
  * and breakdowns by bucket and MIME type.
473
473
  */
474
474
  readonly getStats: alepha_server0.ActionPrimitiveFn<{
475
- response: alepha135.TObject<{
476
- totalSize: alepha135.TNumber;
477
- totalFiles: alepha135.TNumber;
478
- byBucket: alepha135.TArray<alepha135.TObject<{
479
- bucket: alepha135.TString;
480
- totalSize: alepha135.TNumber;
481
- fileCount: alepha135.TNumber;
475
+ response: alepha160.TObject<{
476
+ totalSize: alepha160.TNumber;
477
+ totalFiles: alepha160.TNumber;
478
+ byBucket: alepha160.TArray<alepha160.TObject<{
479
+ bucket: alepha160.TString;
480
+ totalSize: alepha160.TNumber;
481
+ fileCount: alepha160.TNumber;
482
482
  }>>;
483
- byMimeType: alepha135.TArray<alepha135.TObject<{
484
- mimeType: alepha135.TString;
485
- fileCount: alepha135.TNumber;
483
+ byMimeType: alepha160.TArray<alepha160.TObject<{
484
+ mimeType: alepha160.TString;
485
+ fileCount: alepha160.TNumber;
486
486
  }>>;
487
487
  }>;
488
488
  }>;
@@ -502,34 +502,34 @@ declare class FileController {
502
502
  * Supports filtering by bucket and tags.
503
503
  */
504
504
  readonly findFiles: alepha_server0.ActionPrimitiveFn<{
505
- query: alepha135.TObject<{
506
- page: alepha135.TOptional<alepha135.TInteger>;
507
- size: alepha135.TOptional<alepha135.TInteger>;
508
- sort: alepha135.TOptional<alepha135.TString>;
509
- bucket: alepha135.TOptional<alepha135.TString>;
510
- tags: alepha135.TOptional<alepha135.TArray<alepha135.TString>>;
511
- name: alepha135.TOptional<alepha135.TString>;
512
- mimeType: alepha135.TOptional<alepha135.TString>;
513
- creator: alepha135.TOptional<alepha135.TString>;
514
- createdAfter: alepha135.TOptional<alepha135.TString>;
515
- createdBefore: alepha135.TOptional<alepha135.TString>;
505
+ query: alepha160.TObject<{
506
+ page: alepha160.TOptional<alepha160.TInteger>;
507
+ size: alepha160.TOptional<alepha160.TInteger>;
508
+ sort: alepha160.TOptional<alepha160.TString>;
509
+ bucket: alepha160.TOptional<alepha160.TString>;
510
+ tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
511
+ name: alepha160.TOptional<alepha160.TString>;
512
+ mimeType: alepha160.TOptional<alepha160.TString>;
513
+ creator: alepha160.TOptional<alepha160.TString>;
514
+ createdAfter: alepha160.TOptional<alepha160.TString>;
515
+ createdBefore: alepha160.TOptional<alepha160.TString>;
516
516
  }>;
517
- response: alepha135.TPage<alepha135.TObject<{
518
- id: PgAttr<PgAttr<alepha135.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
519
- version: PgAttr<PgAttr<alepha135.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
520
- createdAt: PgAttr<PgAttr<alepha135.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
521
- updatedAt: PgAttr<PgAttr<alepha135.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
522
- blobId: alepha135.TString;
523
- creator: alepha135.TOptional<alepha135.TString>;
524
- creatorRealm: alepha135.TOptional<alepha135.TString>;
525
- creatorName: alepha135.TOptional<alepha135.TString>;
526
- bucket: alepha135.TString;
527
- expirationDate: alepha135.TOptional<alepha135.TString>;
528
- name: alepha135.TString;
529
- size: alepha135.TNumber;
530
- mimeType: alepha135.TString;
531
- tags: alepha135.TOptional<alepha135.TArray<alepha135.TString>>;
532
- checksum: alepha135.TOptional<alepha135.TString>;
517
+ response: alepha160.TPage<alepha160.TObject<{
518
+ id: PgAttr<PgAttr<alepha160.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
519
+ version: PgAttr<PgAttr<alepha160.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
520
+ createdAt: PgAttr<PgAttr<alepha160.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
521
+ updatedAt: PgAttr<PgAttr<alepha160.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
522
+ blobId: alepha160.TString;
523
+ creator: alepha160.TOptional<alepha160.TString>;
524
+ creatorRealm: alepha160.TOptional<alepha160.TString>;
525
+ creatorName: alepha160.TOptional<alepha160.TString>;
526
+ bucket: alepha160.TString;
527
+ expirationDate: alepha160.TOptional<alepha160.TString>;
528
+ name: alepha160.TString;
529
+ size: alepha160.TNumber;
530
+ mimeType: alepha160.TString;
531
+ tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
532
+ checksum: alepha160.TOptional<alepha160.TString>;
533
533
  }>>;
534
534
  }>;
535
535
  /**
@@ -537,13 +537,13 @@ declare class FileController {
537
537
  * Removes the file from the bucket and cleans up the database record.
538
538
  */
539
539
  readonly deleteFile: alepha_server0.ActionPrimitiveFn<{
540
- params: alepha135.TObject<{
541
- id: alepha135.TString;
540
+ params: alepha160.TObject<{
541
+ id: alepha160.TString;
542
542
  }>;
543
- response: alepha135.TObject<{
544
- ok: alepha135.TBoolean;
545
- id: alepha135.TOptional<alepha135.TUnion<[alepha135.TString, alepha135.TInteger]>>;
546
- count: alepha135.TOptional<alepha135.TNumber>;
543
+ response: alepha160.TObject<{
544
+ ok: alepha160.TBoolean;
545
+ id: alepha160.TOptional<alepha160.TUnion<[alepha160.TString, alepha160.TInteger]>>;
546
+ count: alepha160.TOptional<alepha160.TNumber>;
547
547
  }>;
548
548
  }>;
549
549
  /**
@@ -552,29 +552,29 @@ declare class FileController {
552
552
  * Optionally specify bucket and expiration date.
553
553
  */
554
554
  readonly uploadFile: alepha_server0.ActionPrimitiveFn<{
555
- body: alepha135.TObject<{
556
- file: alepha135.TFile;
555
+ body: alepha160.TObject<{
556
+ file: alepha160.TFile;
557
557
  }>;
558
- query: alepha135.TObject<{
559
- expirationDate: alepha135.TOptional<alepha135.TString>;
560
- bucket: alepha135.TOptional<alepha135.TString>;
558
+ query: alepha160.TObject<{
559
+ expirationDate: alepha160.TOptional<alepha160.TString>;
560
+ bucket: alepha160.TOptional<alepha160.TString>;
561
561
  }>;
562
- response: alepha135.TObject<{
563
- id: PgAttr<PgAttr<alepha135.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
564
- version: PgAttr<PgAttr<alepha135.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
565
- createdAt: PgAttr<PgAttr<alepha135.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
566
- updatedAt: PgAttr<PgAttr<alepha135.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
567
- blobId: alepha135.TString;
568
- creator: alepha135.TOptional<alepha135.TString>;
569
- creatorRealm: alepha135.TOptional<alepha135.TString>;
570
- creatorName: alepha135.TOptional<alepha135.TString>;
571
- bucket: alepha135.TString;
572
- expirationDate: alepha135.TOptional<alepha135.TString>;
573
- name: alepha135.TString;
574
- size: alepha135.TNumber;
575
- mimeType: alepha135.TString;
576
- tags: alepha135.TOptional<alepha135.TArray<alepha135.TString>>;
577
- checksum: alepha135.TOptional<alepha135.TString>;
562
+ response: alepha160.TObject<{
563
+ id: PgAttr<PgAttr<alepha160.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
564
+ version: PgAttr<PgAttr<alepha160.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
565
+ createdAt: PgAttr<PgAttr<alepha160.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
566
+ updatedAt: PgAttr<PgAttr<alepha160.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
567
+ blobId: alepha160.TString;
568
+ creator: alepha160.TOptional<alepha160.TString>;
569
+ creatorRealm: alepha160.TOptional<alepha160.TString>;
570
+ creatorName: alepha160.TOptional<alepha160.TString>;
571
+ bucket: alepha160.TString;
572
+ expirationDate: alepha160.TOptional<alepha160.TString>;
573
+ name: alepha160.TString;
574
+ size: alepha160.TNumber;
575
+ mimeType: alepha160.TString;
576
+ tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
577
+ checksum: alepha160.TOptional<alepha160.TString>;
578
578
  }>;
579
579
  }>;
580
580
  /**
@@ -582,30 +582,30 @@ declare class FileController {
582
582
  * Allows updating name, tags, and expiration date without modifying file content.
583
583
  */
584
584
  readonly updateFile: alepha_server0.ActionPrimitiveFn<{
585
- params: alepha135.TObject<{
586
- id: alepha135.TString;
585
+ params: alepha160.TObject<{
586
+ id: alepha160.TString;
587
587
  }>;
588
- body: alepha135.TObject<{
589
- name: alepha135.TOptional<alepha135.TString>;
590
- tags: alepha135.TOptional<alepha135.TArray<alepha135.TString>>;
591
- expirationDate: alepha135.TOptional<alepha135.TString>;
588
+ body: alepha160.TObject<{
589
+ name: alepha160.TOptional<alepha160.TString>;
590
+ tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
591
+ expirationDate: alepha160.TOptional<alepha160.TString>;
592
592
  }>;
593
- response: alepha135.TObject<{
594
- id: PgAttr<PgAttr<alepha135.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
595
- version: PgAttr<PgAttr<alepha135.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
596
- createdAt: PgAttr<PgAttr<alepha135.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
597
- updatedAt: PgAttr<PgAttr<alepha135.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
598
- blobId: alepha135.TString;
599
- creator: alepha135.TOptional<alepha135.TString>;
600
- creatorRealm: alepha135.TOptional<alepha135.TString>;
601
- creatorName: alepha135.TOptional<alepha135.TString>;
602
- bucket: alepha135.TString;
603
- expirationDate: alepha135.TOptional<alepha135.TString>;
604
- name: alepha135.TString;
605
- size: alepha135.TNumber;
606
- mimeType: alepha135.TString;
607
- tags: alepha135.TOptional<alepha135.TArray<alepha135.TString>>;
608
- checksum: alepha135.TOptional<alepha135.TString>;
593
+ response: alepha160.TObject<{
594
+ id: PgAttr<PgAttr<alepha160.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
595
+ version: PgAttr<PgAttr<alepha160.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
596
+ createdAt: PgAttr<PgAttr<alepha160.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
597
+ updatedAt: PgAttr<PgAttr<alepha160.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
598
+ blobId: alepha160.TString;
599
+ creator: alepha160.TOptional<alepha160.TString>;
600
+ creatorRealm: alepha160.TOptional<alepha160.TString>;
601
+ creatorName: alepha160.TOptional<alepha160.TString>;
602
+ bucket: alepha160.TString;
603
+ expirationDate: alepha160.TOptional<alepha160.TString>;
604
+ name: alepha160.TString;
605
+ size: alepha160.TNumber;
606
+ mimeType: alepha160.TString;
607
+ tags: alepha160.TOptional<alepha160.TArray<alepha160.TString>>;
608
+ checksum: alepha160.TOptional<alepha160.TString>;
609
609
  }>;
610
610
  }>;
611
611
  /**
@@ -614,10 +614,10 @@ declare class FileController {
614
614
  * Cached with ETag support for 1 year (immutable).
615
615
  */
616
616
  readonly streamFile: alepha_server0.ActionPrimitiveFn<{
617
- params: alepha135.TObject<{
618
- id: alepha135.TString;
617
+ params: alepha160.TObject<{
618
+ id: alepha160.TString;
619
619
  }>;
620
- response: alepha135.TFile;
620
+ response: alepha160.TFile;
621
621
  }>;
622
622
  }
623
623
  //#endregion
@@ -665,7 +665,7 @@ declare module "alepha/bucket" {
665
665
  *
666
666
  * @module alepha.api.files
667
667
  */
668
- declare const AlephaApiFiles: alepha135.Service<alepha135.Module>;
668
+ declare const AlephaApiFiles: alepha160.Service<alepha160.Module>;
669
669
  //#endregion
670
670
  export { AdminFileStatsController, AlephaApiFiles, BucketStats, FileController, FileEntity, FileJobs, FileService, MimeTypeStats, StorageStats, bucketStatsSchema, files, mimeTypeStatsSchema, storageStatsSchema };
671
671
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/files/entities/files.ts","../../../src/api/files/schemas/fileQuerySchema.ts","../../../src/orm/schemas/insertSchema.ts","../../../src/orm/schemas/updateSchema.ts","../../../src/orm/primitives/$entity.ts","../../../src/orm/constants/PG_SYMBOLS.ts","../../../src/orm/helpers/pgAttr.ts","../../../src/api/files/schemas/fileResourceSchema.ts","../../../src/api/files/schemas/storageStatsSchema.ts","../../../src/api/files/services/FileService.ts","../../../src/api/files/controllers/AdminFileStatsController.ts","../../../src/api/files/controllers/FileController.ts","../../../src/api/files/jobs/FileJobs.ts","../../../src/api/files/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;cAGa,KAAA,EAAK,WAAA,CAAA,eAAA,WAAA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;EAAA,SWoEM,UAAA,iBAAU,iBAAA;;UAxBA,SAAA,CAAA,OAAA;IAAA;;;;;;cC1Ef,QAAA;EAAA,mBACQ,WAAA,EAAW,WAAA;EAAA,SAEd,UAAA,EAFc,iBAAA,CAEJ,kBAAA;AAAA;;;;YCgBhB,iBAAA;;;;IAIR,GAAA,GAAM,YAAA;;;;IAKN,IAAA;Ib7BS;;;IakCT,IAAA,GAAO,gBAAA;;;;;;IAOP,OAAA;EAAA;AAAA;;;;;;;;;;;;;;;;cAqBS,cAAA,EAAc,SAAA,CAAA,OAAA,CAYzB,SAAA,CAZyB,MAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/files/entities/files.ts","../../../src/api/files/schemas/fileQuerySchema.ts","../../../src/orm/schemas/insertSchema.ts","../../../src/orm/schemas/updateSchema.ts","../../../src/orm/primitives/$entity.ts","../../../src/orm/constants/PG_SYMBOLS.ts","../../../src/orm/helpers/pgAttr.ts","../../../src/api/files/schemas/fileResourceSchema.ts","../../../src/api/files/schemas/storageStatsSchema.ts","../../../src/api/files/services/FileService.ts","../../../src/api/files/controllers/AdminFileStatsController.ts","../../../src/api/files/controllers/FileController.ts","../../../src/api/files/jobs/FileJobs.ts","../../../src/api/files/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;cAGa,KAAA,EAAK,YAAA,CAAA,eAAA,WAAA,OAAA;8CA6BhB,SAAA,CAAA,OAAA;;;;;;;;;;;;;;;;KAEU,UAAA,GAAa,MAAA,QAAc,KAAA,CAAM,MAAA;;;cC9BhC,eAAA,YAAe,OAAA;4BAQ1B,SAAA,CAAA,QAAA;;;;;;;;;;;KAEU,SAAA,GAAY,MAAA,QAAc,eAAA;;;;;;;;;;;KCD1B,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,iBAAkB,CAAA,eAAgB,CAAA;EAAA,CACvC,UAAA;AAAA;EACD,WAAA;AAAA,IACF,SAAA,CAAU,CAAA,eAAgB,CAAA,KAC1B,CA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
@@ -337,6 +337,7 @@ var AdminFileStatsController = class {
337
337
  getStats = $action({
338
338
  path: this.url,
339
339
  group: this.group,
340
+ secure: true,
340
341
  description: "Get storage statistics",
341
342
  schema: { response: storageStatsSchema },
342
343
  handler: () => this.fileService.getStorageStats()