alepha 0.20.6 → 0.20.7

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 (243) hide show
  1. package/AGENTS.md +0 -1
  2. package/CLAUDE.md +0 -1
  3. package/assets/agents-template.md +0 -1
  4. package/dist/api/audits/index.browser.js +1 -0
  5. package/dist/api/audits/index.browser.js.map +1 -1
  6. package/dist/api/audits/index.d.ts +370 -355
  7. package/dist/api/audits/index.d.ts.map +1 -1
  8. package/dist/api/audits/index.js +1 -0
  9. package/dist/api/audits/index.js.map +1 -1
  10. package/dist/api/files/index.browser.js +1 -0
  11. package/dist/api/files/index.browser.js.map +1 -1
  12. package/dist/api/files/index.d.ts +179 -170
  13. package/dist/api/files/index.d.ts.map +1 -1
  14. package/dist/api/files/index.js +1 -0
  15. package/dist/api/files/index.js.map +1 -1
  16. package/dist/api/jobs/index.browser.js +7 -0
  17. package/dist/api/jobs/index.browser.js.map +1 -1
  18. package/dist/api/jobs/index.d.ts +271 -262
  19. package/dist/api/jobs/index.d.ts.map +1 -1
  20. package/dist/api/jobs/index.js +21 -3
  21. package/dist/api/jobs/index.js.map +1 -1
  22. package/dist/api/keys/index.d.ts +198 -192
  23. package/dist/api/keys/index.d.ts.map +1 -1
  24. package/dist/api/keys/index.js +1 -0
  25. package/dist/api/keys/index.js.map +1 -1
  26. package/dist/api/notifications/index.d.ts +246 -245
  27. package/dist/api/notifications/index.d.ts.map +1 -1
  28. package/dist/api/organizations/index.d.ts +100 -97
  29. package/dist/api/organizations/index.d.ts.map +1 -1
  30. package/dist/api/parameters/index.d.ts +323 -320
  31. package/dist/api/parameters/index.d.ts.map +1 -1
  32. package/dist/api/payments/index.d.ts +431 -376
  33. package/dist/api/payments/index.d.ts.map +1 -1
  34. package/dist/api/payments/index.js +202 -87
  35. package/dist/api/payments/index.js.map +1 -1
  36. package/dist/api/subscriptions/index.d.ts +1695 -0
  37. package/dist/api/subscriptions/index.d.ts.map +1 -0
  38. package/dist/api/subscriptions/index.js +1919 -0
  39. package/dist/api/subscriptions/index.js.map +1 -0
  40. package/dist/api/users/index.d.ts +863 -847
  41. package/dist/api/users/index.d.ts.map +1 -1
  42. package/dist/api/verifications/index.d.ts +126 -125
  43. package/dist/api/verifications/index.d.ts.map +1 -1
  44. package/dist/bucket/index.d.ts +3 -2
  45. package/dist/bucket/index.d.ts.map +1 -1
  46. package/dist/cache/core/index.d.ts +114 -4
  47. package/dist/cache/core/index.d.ts.map +1 -1
  48. package/dist/cache/core/index.js +181 -15
  49. package/dist/cache/core/index.js.map +1 -1
  50. package/dist/cache/core/index.workerd.js +181 -15
  51. package/dist/cache/core/index.workerd.js.map +1 -1
  52. package/dist/cache/database/index.d.ts +20 -19
  53. package/dist/cache/database/index.d.ts.map +1 -1
  54. package/dist/cache/redis/index.d.ts +3 -2
  55. package/dist/cache/redis/index.d.ts.map +1 -1
  56. package/dist/cli/core/index.d.ts +113 -129
  57. package/dist/cli/core/index.d.ts.map +1 -1
  58. package/dist/cli/core/index.js +75 -7
  59. package/dist/cli/core/index.js.map +1 -1
  60. package/dist/cli/devtools/index.d.ts +3 -2
  61. package/dist/cli/devtools/index.d.ts.map +1 -1
  62. package/dist/cli/platform/index.d.ts +346 -290
  63. package/dist/cli/platform/index.d.ts.map +1 -1
  64. package/dist/cli/platform/index.js +105 -6
  65. package/dist/cli/platform/index.js.map +1 -1
  66. package/dist/cli/vendor/index.d.ts +12 -11
  67. package/dist/cli/vendor/index.d.ts.map +1 -1
  68. package/dist/command/index.d.ts +5 -4
  69. package/dist/command/index.d.ts.map +1 -1
  70. package/dist/core/index.browser.js +1 -1
  71. package/dist/core/index.browser.js.map +1 -1
  72. package/dist/core/index.d.ts +119 -118
  73. package/dist/core/index.d.ts.map +1 -1
  74. package/dist/core/index.js +1 -1
  75. package/dist/core/index.js.map +1 -1
  76. package/dist/core/index.native.js +1 -1
  77. package/dist/core/index.native.js.map +1 -1
  78. package/dist/core/index.workerd.js +1 -1
  79. package/dist/core/index.workerd.js.map +1 -1
  80. package/dist/crypto/index.d.ts +3 -2
  81. package/dist/crypto/index.d.ts.map +1 -1
  82. package/dist/email/core/index.d.ts +3 -2
  83. package/dist/email/core/index.d.ts.map +1 -1
  84. package/dist/email/smtp/index.d.ts +7 -6
  85. package/dist/email/smtp/index.d.ts.map +1 -1
  86. package/dist/lock/core/index.d.ts +5 -4
  87. package/dist/lock/core/index.d.ts.map +1 -1
  88. package/dist/logger/index.d.ts +10 -9
  89. package/dist/logger/index.d.ts.map +1 -1
  90. package/dist/mcp/index.d.ts +9 -8
  91. package/dist/mcp/index.d.ts.map +1 -1
  92. package/dist/mcp/index.js +1 -1
  93. package/dist/mcp/index.js.map +1 -1
  94. package/dist/orm/core/index.browser.js +9 -3
  95. package/dist/orm/core/index.browser.js.map +1 -1
  96. package/dist/orm/core/index.bun.js +31 -10
  97. package/dist/orm/core/index.bun.js.map +1 -1
  98. package/dist/orm/core/index.d.ts +33 -14
  99. package/dist/orm/core/index.d.ts.map +1 -1
  100. package/dist/orm/core/index.js +31 -10
  101. package/dist/orm/core/index.js.map +1 -1
  102. package/dist/orm/postgres/index.d.ts +6 -5
  103. package/dist/orm/postgres/index.d.ts.map +1 -1
  104. package/dist/queue/core/index.d.ts +5 -4
  105. package/dist/queue/core/index.d.ts.map +1 -1
  106. package/dist/queue/redis/index.d.ts +3 -2
  107. package/dist/queue/redis/index.d.ts.map +1 -1
  108. package/dist/react/form/index.d.ts +5 -0
  109. package/dist/react/form/index.d.ts.map +1 -1
  110. package/dist/react/form/index.js +6 -4
  111. package/dist/react/form/index.js.map +1 -1
  112. package/dist/react/i18n/index.d.ts +2 -1
  113. package/dist/react/i18n/index.d.ts.map +1 -1
  114. package/dist/react/router/index.d.ts +206 -205
  115. package/dist/react/router/index.d.ts.map +1 -1
  116. package/dist/react/ui/index.d.ts +11 -11
  117. package/dist/react/ui/index.d.ts.map +1 -1
  118. package/dist/scheduler/index.d.ts +3 -2
  119. package/dist/scheduler/index.d.ts.map +1 -1
  120. package/dist/security/index.browser.js +29 -1
  121. package/dist/security/index.browser.js.map +1 -1
  122. package/dist/security/index.d.ts +82 -35
  123. package/dist/security/index.d.ts.map +1 -1
  124. package/dist/security/index.js +56 -3
  125. package/dist/security/index.js.map +1 -1
  126. package/dist/server/auth/index.d.ts +163 -158
  127. package/dist/server/auth/index.d.ts.map +1 -1
  128. package/dist/server/auth/index.js +16 -4
  129. package/dist/server/auth/index.js.map +1 -1
  130. package/dist/server/core/index.d.ts +35 -34
  131. package/dist/server/core/index.d.ts.map +1 -1
  132. package/dist/server/cors/index.d.ts +7 -6
  133. package/dist/server/cors/index.d.ts.map +1 -1
  134. package/dist/server/health/index.d.ts +16 -15
  135. package/dist/server/health/index.d.ts.map +1 -1
  136. package/dist/server/links/index.d.ts +51 -50
  137. package/dist/server/links/index.d.ts.map +1 -1
  138. package/dist/server/rate-limit/index.d.ts +6 -5
  139. package/dist/server/rate-limit/index.d.ts.map +1 -1
  140. package/dist/server/swagger/index.d.ts +2 -1
  141. package/dist/server/swagger/index.d.ts.map +1 -1
  142. package/dist/topic/redis/index.d.ts +3 -2
  143. package/dist/topic/redis/index.d.ts.map +1 -1
  144. package/package.json +16 -32
  145. package/src/api/audits/entities/audits.ts +1 -0
  146. package/src/api/files/entities/files.ts +1 -0
  147. package/src/api/jobs/__tests__/$job.spec.ts +92 -40
  148. package/src/api/jobs/entities/jobExecutionEntity.ts +1 -0
  149. package/src/api/jobs/providers/JobProvider.ts +20 -5
  150. package/src/api/jobs/schemas/jobConfigAtom.ts +5 -0
  151. package/src/api/keys/entities/apiKeyEntity.ts +1 -0
  152. package/src/api/payments/controllers/MockCheckoutController.ts +146 -0
  153. package/src/api/payments/index.ts +3 -0
  154. package/src/api/payments/providers/MemoryPaymentProvider.ts +9 -4
  155. package/src/api/payments/providers/PaymentProvider.ts +25 -9
  156. package/src/api/payments/services/PaymentService.ts +3 -0
  157. package/src/api/subscriptions/__tests__/BillingService.spec.ts +218 -0
  158. package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +278 -0
  159. package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +212 -0
  160. package/src/api/subscriptions/controllers/SubscriptionController.ts +189 -0
  161. package/src/api/subscriptions/entities/subscriptionEvents.ts +54 -0
  162. package/src/api/subscriptions/entities/subscriptions.ts +68 -0
  163. package/src/api/subscriptions/index.ts +133 -0
  164. package/src/api/subscriptions/jobs/SubscriptionJobs.ts +382 -0
  165. package/src/api/subscriptions/middleware/$requireLimit.ts +50 -0
  166. package/src/api/subscriptions/middleware/$requirePlan.ts +49 -0
  167. package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +110 -0
  168. package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +8 -0
  169. package/src/api/subscriptions/schemas/changePlanSchema.ts +9 -0
  170. package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +11 -0
  171. package/src/api/subscriptions/schemas/entitlementsSchema.ts +21 -0
  172. package/src/api/subscriptions/schemas/mrrSchema.ts +13 -0
  173. package/src/api/subscriptions/schemas/planDefinitionSchema.ts +71 -0
  174. package/src/api/subscriptions/schemas/planResourceSchema.ts +25 -0
  175. package/src/api/subscriptions/schemas/subscriptionEventResourceSchema.ts +8 -0
  176. package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +19 -0
  177. package/src/api/subscriptions/schemas/subscriptionResourceSchema.ts +6 -0
  178. package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +32 -0
  179. package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +23 -0
  180. package/src/api/subscriptions/services/BillingService.ts +437 -0
  181. package/src/api/subscriptions/services/SubscriptionConfig.ts +56 -0
  182. package/src/api/subscriptions/services/SubscriptionService.ts +867 -0
  183. package/src/api/subscriptions/services/UsageService.ts +118 -0
  184. package/src/cache/core/__tests__/$cache.memory.spec.ts +450 -0
  185. package/src/cache/core/__tests__/$cache.swr.spec.ts +394 -0
  186. package/src/cache/core/index.ts +16 -0
  187. package/src/cache/core/primitives/$cache.ts +347 -21
  188. package/src/cli/core/tasks/BuildCloudflareTask.ts +16 -0
  189. package/src/cli/core/templates/agentMd.ts +39 -4
  190. package/src/cli/core/templates/biomeJson.ts +25 -1
  191. package/src/cli/core/templates/saasAdminLayoutTsx.ts +2 -2
  192. package/src/cli/platform/__tests__/CloudflareAdapter.spec.ts +117 -0
  193. package/src/cli/platform/adapters/CloudflareAdapter.ts +104 -7
  194. package/src/cli/platform/atoms/platformOptions.ts +13 -0
  195. package/src/cli/platform/schemas/platform.ts +1 -0
  196. package/src/cli/platform/services/CloudflareApi.ts +61 -0
  197. package/src/cli/platform/services/PlatformOrchestrator.ts +9 -4
  198. package/src/core/__tests__/$module.spec.ts +2 -2
  199. package/src/core/primitives/$module.ts +4 -4
  200. package/src/mcp/providers/McpServerProvider.ts +1 -1
  201. package/src/orm/core/providers/DatabaseTypeProvider.ts +9 -3
  202. package/src/orm/core/providers/drivers/DatabaseProvider.ts +1 -1
  203. package/src/orm/core/schemas/insertSchema.ts +10 -2
  204. package/src/orm/core/services/Repository.ts +27 -7
  205. package/src/react/form/hooks/useFormState.ts +8 -1
  206. package/src/react/form/index.ts +10 -1
  207. package/src/react/form/services/FormModel.ts +9 -3
  208. package/src/security/atoms/currentTenantAtom.ts +34 -0
  209. package/src/security/index.browser.ts +1 -0
  210. package/src/security/index.ts +12 -1
  211. package/src/security/primitives/$issuer.ts +17 -1
  212. package/src/security/providers/SecurityProvider.ts +37 -0
  213. package/src/server/auth/__tests__/validateRedirectUri.spec.ts +78 -0
  214. package/src/server/auth/providers/ServerAuthProvider.ts +21 -5
  215. package/tsconfig.base.json +2 -1
  216. package/dist/react/websocket/index.d.ts +0 -117
  217. package/dist/react/websocket/index.d.ts.map +0 -1
  218. package/dist/react/websocket/index.js +0 -108
  219. package/dist/react/websocket/index.js.map +0 -1
  220. package/dist/websocket/index.browser.js +0 -848
  221. package/dist/websocket/index.browser.js.map +0 -1
  222. package/dist/websocket/index.d.ts +0 -876
  223. package/dist/websocket/index.d.ts.map +0 -1
  224. package/dist/websocket/index.js +0 -1185
  225. package/dist/websocket/index.js.map +0 -1
  226. package/src/react/websocket/hooks/useRoom.tsx +0 -251
  227. package/src/react/websocket/index.ts +0 -7
  228. package/src/websocket/__tests__/$channel.spec.ts +0 -30
  229. package/src/websocket/__tests__/$websocket-new.spec.ts +0 -195
  230. package/src/websocket/__tests__/RoomManager.spec.ts +0 -146
  231. package/src/websocket/__tests__/websocket-integration.spec.ts +0 -951
  232. package/src/websocket/errors/WebSocketError.ts +0 -34
  233. package/src/websocket/index.browser.ts +0 -25
  234. package/src/websocket/index.shared.ts +0 -8
  235. package/src/websocket/index.ts +0 -85
  236. package/src/websocket/interfaces/WebSocketInterfaces.ts +0 -252
  237. package/src/websocket/primitives/$channel.ts +0 -131
  238. package/src/websocket/primitives/$websocket.ts +0 -107
  239. package/src/websocket/providers/NodeWebSocketServerProvider.ts +0 -617
  240. package/src/websocket/providers/WebSocketServerProvider.ts +0 -56
  241. package/src/websocket/services/RoomManager.ts +0 -160
  242. package/src/websocket/services/WebSocketClient.ts +0 -642
  243. package/src/websocket/services/WebSocketTopicService.ts +0 -108
@@ -9,40 +9,42 @@ import * as _$alepha_logger0 from "alepha/logger";
9
9
  import * as _$alepha_orm0 from "alepha/orm";
10
10
  import { Page } from "alepha/orm";
11
11
  import * as _$alepha_scheduler0 from "alepha/scheduler";
12
+ import * as _$typebox from "typebox";
12
13
  import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
13
14
  import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
14
15
  //#region ../../src/api/files/entities/files.d.ts
15
- declare const files: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
16
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
17
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
18
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
19
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
20
- blobId: _$alepha.TString;
21
- creator: _$alepha.TOptional<_$alepha.TString>;
22
- creatorRealm: _$alepha.TOptional<_$alepha.TString>;
23
- creatorName: _$alepha.TOptional<_$alepha.TString>;
24
- bucket: _$alepha.TString;
25
- expirationDate: _$alepha.TOptional<_$alepha.TString>;
26
- name: _$alepha.TString;
27
- size: _$alepha.TNumber;
28
- mimeType: _$alepha.TString;
29
- tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
30
- checksum: _$alepha.TOptional<_$alepha.TString>;
16
+ declare const files: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
17
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
18
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
19
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
20
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
21
+ organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
22
+ blobId: _$typebox.TString;
23
+ creator: _$typebox.TOptional<_$typebox.TString>;
24
+ creatorRealm: _$typebox.TOptional<_$typebox.TString>;
25
+ creatorName: _$typebox.TOptional<_$typebox.TString>;
26
+ bucket: _$typebox.TString;
27
+ expirationDate: _$typebox.TOptional<_$typebox.TString>;
28
+ name: _$typebox.TString;
29
+ size: _$typebox.TNumber;
30
+ mimeType: _$typebox.TString;
31
+ tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
32
+ checksum: _$typebox.TOptional<_$typebox.TString>;
31
33
  }>>;
32
34
  type FileEntity = Static<typeof files.schema>;
33
35
  //#endregion
34
36
  //#region ../../src/api/files/schemas/fileQuerySchema.d.ts
35
- declare const fileQuerySchema: _$alepha.TObject<{
36
- page: _$alepha.TOptional<_$alepha.TInteger>;
37
- size: _$alepha.TOptional<_$alepha.TInteger>;
38
- sort: _$alepha.TOptional<_$alepha.TString>;
39
- bucket: _$alepha.TOptional<_$alepha.TString>;
40
- tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
41
- name: _$alepha.TOptional<_$alepha.TString>;
42
- mimeType: _$alepha.TOptional<_$alepha.TString>;
43
- creator: _$alepha.TOptional<_$alepha.TString>;
44
- createdAfter: _$alepha.TOptional<_$alepha.TString>;
45
- createdBefore: _$alepha.TOptional<_$alepha.TString>;
37
+ declare const fileQuerySchema: _$typebox.TObject<{
38
+ page: _$typebox.TOptional<_$typebox.TInteger>;
39
+ size: _$typebox.TOptional<_$typebox.TInteger>;
40
+ sort: _$typebox.TOptional<_$typebox.TString>;
41
+ bucket: _$typebox.TOptional<_$typebox.TString>;
42
+ tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
43
+ name: _$typebox.TOptional<_$typebox.TString>;
44
+ mimeType: _$typebox.TOptional<_$typebox.TString>;
45
+ creator: _$typebox.TOptional<_$typebox.TString>;
46
+ createdAfter: _$typebox.TOptional<_$typebox.TString>;
47
+ createdBefore: _$typebox.TOptional<_$typebox.TString>;
46
48
  }>;
47
49
  type FileQuery = Static<typeof fileQuerySchema>;
48
50
  //#endregion
@@ -60,6 +62,8 @@ type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["properties"] as
60
62
  [PG_GENERATED]: any;
61
63
  } ? never : K]: T["properties"][K] extends {
62
64
  [PG_DEFAULT]: any;
65
+ } | {
66
+ [PG_ORGANIZATION]: any;
63
67
  } | {
64
68
  "~optional": true;
65
69
  } ? TOptional<T["properties"][K]> : T["properties"][K] }>;
@@ -335,8 +339,8 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
335
339
  * - `d1://BINDING_NAME` — Cloudflare D1
336
340
  * - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
337
341
  */
338
- declare const databaseEnvSchema: _$alepha.TObject<{
339
- DATABASE_URL: _$alepha.TOptional<_$alepha.TString>;
342
+ declare const databaseEnvSchema: _$typebox.TObject<{
343
+ DATABASE_URL: _$typebox.TOptional<_$typebox.TString>;
340
344
  /**
341
345
  * Enable or disable push-based schema synchronization (drizzle-kit push).
342
346
  *
@@ -344,53 +348,54 @@ declare const databaseEnvSchema: _$alepha.TObject<{
344
348
  * Set to `false` in development to skip automatic schema sync
345
349
  * (e.g. when managing migrations manually).
346
350
  */
347
- DATABASE_SYNC: _$alepha.TOptional<_$alepha.TBoolean>;
351
+ DATABASE_SYNC: _$typebox.TOptional<_$typebox.TBoolean>;
348
352
  }>;
349
353
  declare module "alepha" {
350
354
  interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
351
355
  } //# sourceMappingURL=databaseEnvSchema.d.ts.map
352
356
  //#endregion
353
357
  //#region ../../src/api/files/schemas/fileResourceSchema.d.ts
354
- declare const fileResourceSchema: _$alepha.TObject<{
355
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
356
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
357
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
358
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
359
- blobId: _$alepha.TString;
360
- creator: _$alepha.TOptional<_$alepha.TString>;
361
- creatorRealm: _$alepha.TOptional<_$alepha.TString>;
362
- creatorName: _$alepha.TOptional<_$alepha.TString>;
363
- bucket: _$alepha.TString;
364
- expirationDate: _$alepha.TOptional<_$alepha.TString>;
365
- name: _$alepha.TString;
366
- size: _$alepha.TNumber;
367
- mimeType: _$alepha.TString;
368
- tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
369
- checksum: _$alepha.TOptional<_$alepha.TString>;
358
+ declare const fileResourceSchema: _$typebox.TObject<{
359
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
360
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
361
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
362
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
363
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
364
+ blobId: _$typebox.TString;
365
+ creator: _$typebox.TOptional<_$typebox.TString>;
366
+ creatorRealm: _$typebox.TOptional<_$typebox.TString>;
367
+ creatorName: _$typebox.TOptional<_$typebox.TString>;
368
+ bucket: _$typebox.TString;
369
+ expirationDate: _$typebox.TOptional<_$typebox.TString>;
370
+ name: _$typebox.TString;
371
+ size: _$typebox.TNumber;
372
+ mimeType: _$typebox.TString;
373
+ tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
374
+ checksum: _$typebox.TOptional<_$typebox.TString>;
370
375
  }>;
371
376
  type FileResource = Static<typeof fileResourceSchema>;
372
377
  //#endregion
373
378
  //#region ../../src/api/files/schemas/storageStatsSchema.d.ts
374
- declare const bucketStatsSchema: _$alepha.TObject<{
375
- bucket: _$alepha.TString;
376
- totalSize: _$alepha.TNumber;
377
- fileCount: _$alepha.TNumber;
379
+ declare const bucketStatsSchema: _$typebox.TObject<{
380
+ bucket: _$typebox.TString;
381
+ totalSize: _$typebox.TNumber;
382
+ fileCount: _$typebox.TNumber;
378
383
  }>;
379
- declare const mimeTypeStatsSchema: _$alepha.TObject<{
380
- mimeType: _$alepha.TString;
381
- fileCount: _$alepha.TNumber;
384
+ declare const mimeTypeStatsSchema: _$typebox.TObject<{
385
+ mimeType: _$typebox.TString;
386
+ fileCount: _$typebox.TNumber;
382
387
  }>;
383
- declare const storageStatsSchema: _$alepha.TObject<{
384
- totalSize: _$alepha.TNumber;
385
- totalFiles: _$alepha.TNumber;
386
- byBucket: _$alepha.TArray<_$alepha.TObject<{
387
- bucket: _$alepha.TString;
388
- totalSize: _$alepha.TNumber;
389
- fileCount: _$alepha.TNumber;
388
+ declare const storageStatsSchema: _$typebox.TObject<{
389
+ totalSize: _$typebox.TNumber;
390
+ totalFiles: _$typebox.TNumber;
391
+ byBucket: _$typebox.TArray<_$typebox.TObject<{
392
+ bucket: _$typebox.TString;
393
+ totalSize: _$typebox.TNumber;
394
+ fileCount: _$typebox.TNumber;
390
395
  }>>;
391
- byMimeType: _$alepha.TArray<_$alepha.TObject<{
392
- mimeType: _$alepha.TString;
393
- fileCount: _$alepha.TNumber;
396
+ byMimeType: _$typebox.TArray<_$typebox.TObject<{
397
+ mimeType: _$typebox.TString;
398
+ fileCount: _$typebox.TNumber;
394
399
  }>>;
395
400
  }>;
396
401
  type BucketStats = Static<typeof bucketStatsSchema>;
@@ -403,22 +408,23 @@ declare class FileService {
403
408
  protected readonly log: _$alepha_logger0.Logger;
404
409
  protected readonly dateTimeProvider: DateTimeProvider;
405
410
  protected readonly defaultBucket: BucketPrimitive;
406
- readonly fileRepository: _$alepha_orm0.Repository<_$alepha.TObject<{
407
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
408
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
409
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
410
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
411
- blobId: _$alepha.TString;
412
- creator: _$alepha.TOptional<_$alepha.TString>;
413
- creatorRealm: _$alepha.TOptional<_$alepha.TString>;
414
- creatorName: _$alepha.TOptional<_$alepha.TString>;
415
- bucket: _$alepha.TString;
416
- expirationDate: _$alepha.TOptional<_$alepha.TString>;
417
- name: _$alepha.TString;
418
- size: _$alepha.TNumber;
419
- mimeType: _$alepha.TString;
420
- tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
421
- checksum: _$alepha.TOptional<_$alepha.TString>;
411
+ readonly fileRepository: _$alepha_orm0.Repository<_$typebox.TObject<{
412
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
413
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
414
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
415
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
416
+ organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
417
+ blobId: _$typebox.TString;
418
+ creator: _$typebox.TOptional<_$typebox.TString>;
419
+ creatorRealm: _$typebox.TOptional<_$typebox.TString>;
420
+ creatorName: _$typebox.TOptional<_$typebox.TString>;
421
+ bucket: _$typebox.TString;
422
+ expirationDate: _$typebox.TOptional<_$typebox.TString>;
423
+ name: _$typebox.TString;
424
+ size: _$typebox.TNumber;
425
+ mimeType: _$typebox.TString;
426
+ tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
427
+ checksum: _$typebox.TOptional<_$typebox.TString>;
422
428
  }>>;
423
429
  protected onUploadFile: _$alepha.HookPrimitive<"bucket:file:uploaded">;
424
430
  protected onDeleteBucketFile: _$alepha.HookPrimitive<"bucket:file:deleted">;
@@ -562,17 +568,17 @@ declare class AdminFileStatsController {
562
568
  * and breakdowns by bucket and MIME type.
563
569
  */
564
570
  readonly getFileStats: _$alepha_server0.ActionPrimitiveFn<{
565
- response: _$alepha.TObject<{
566
- totalSize: _$alepha.TNumber;
567
- totalFiles: _$alepha.TNumber;
568
- byBucket: _$alepha.TArray<_$alepha.TObject<{
569
- bucket: _$alepha.TString;
570
- totalSize: _$alepha.TNumber;
571
- fileCount: _$alepha.TNumber;
571
+ response: _$typebox.TObject<{
572
+ totalSize: _$typebox.TNumber;
573
+ totalFiles: _$typebox.TNumber;
574
+ byBucket: _$typebox.TArray<_$typebox.TObject<{
575
+ bucket: _$typebox.TString;
576
+ totalSize: _$typebox.TNumber;
577
+ fileCount: _$typebox.TNumber;
572
578
  }>>;
573
- byMimeType: _$alepha.TArray<_$alepha.TObject<{
574
- mimeType: _$alepha.TString;
575
- fileCount: _$alepha.TNumber;
579
+ byMimeType: _$typebox.TArray<_$typebox.TObject<{
580
+ mimeType: _$typebox.TString;
581
+ fileCount: _$typebox.TNumber;
576
582
  }>>;
577
583
  }>;
578
584
  }>;
@@ -592,34 +598,35 @@ declare class FileController {
592
598
  * Supports filtering by bucket and tags.
593
599
  */
594
600
  readonly findFiles: _$alepha_server0.ActionPrimitiveFn<{
595
- query: _$alepha.TObject<{
596
- page: _$alepha.TOptional<_$alepha.TInteger>;
597
- size: _$alepha.TOptional<_$alepha.TInteger>;
598
- sort: _$alepha.TOptional<_$alepha.TString>;
599
- bucket: _$alepha.TOptional<_$alepha.TString>;
600
- tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
601
- name: _$alepha.TOptional<_$alepha.TString>;
602
- mimeType: _$alepha.TOptional<_$alepha.TString>;
603
- creator: _$alepha.TOptional<_$alepha.TString>;
604
- createdAfter: _$alepha.TOptional<_$alepha.TString>;
605
- createdBefore: _$alepha.TOptional<_$alepha.TString>;
601
+ query: _$typebox.TObject<{
602
+ page: _$typebox.TOptional<_$typebox.TInteger>;
603
+ size: _$typebox.TOptional<_$typebox.TInteger>;
604
+ sort: _$typebox.TOptional<_$typebox.TString>;
605
+ bucket: _$typebox.TOptional<_$typebox.TString>;
606
+ tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
607
+ name: _$typebox.TOptional<_$typebox.TString>;
608
+ mimeType: _$typebox.TOptional<_$typebox.TString>;
609
+ creator: _$typebox.TOptional<_$typebox.TString>;
610
+ createdAfter: _$typebox.TOptional<_$typebox.TString>;
611
+ createdBefore: _$typebox.TOptional<_$typebox.TString>;
606
612
  }>;
607
- response: _$alepha.TPage<_$alepha.TObject<{
608
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
609
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
610
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
611
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
612
- blobId: _$alepha.TString;
613
- creator: _$alepha.TOptional<_$alepha.TString>;
614
- creatorRealm: _$alepha.TOptional<_$alepha.TString>;
615
- creatorName: _$alepha.TOptional<_$alepha.TString>;
616
- bucket: _$alepha.TString;
617
- expirationDate: _$alepha.TOptional<_$alepha.TString>;
618
- name: _$alepha.TString;
619
- size: _$alepha.TNumber;
620
- mimeType: _$alepha.TString;
621
- tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
622
- checksum: _$alepha.TOptional<_$alepha.TString>;
613
+ response: _$alepha.TPage<_$typebox.TObject<{
614
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
615
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
616
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
617
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
618
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
619
+ blobId: _$typebox.TString;
620
+ creator: _$typebox.TOptional<_$typebox.TString>;
621
+ creatorRealm: _$typebox.TOptional<_$typebox.TString>;
622
+ creatorName: _$typebox.TOptional<_$typebox.TString>;
623
+ bucket: _$typebox.TString;
624
+ expirationDate: _$typebox.TOptional<_$typebox.TString>;
625
+ name: _$typebox.TString;
626
+ size: _$typebox.TNumber;
627
+ mimeType: _$typebox.TString;
628
+ tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
629
+ checksum: _$typebox.TOptional<_$typebox.TString>;
623
630
  }>>;
624
631
  }>;
625
632
  /**
@@ -627,13 +634,13 @@ declare class FileController {
627
634
  * Removes the file from the bucket and cleans up the database record.
628
635
  */
629
636
  readonly deleteFile: _$alepha_server0.ActionPrimitiveFn<{
630
- params: _$alepha.TObject<{
631
- id: _$alepha.TString;
637
+ params: _$typebox.TObject<{
638
+ id: _$typebox.TString;
632
639
  }>;
633
- response: _$alepha.TObject<{
634
- ok: _$alepha.TBoolean;
635
- id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
636
- count: _$alepha.TOptional<_$alepha.TNumber>;
640
+ response: _$typebox.TObject<{
641
+ ok: _$typebox.TBoolean;
642
+ id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
643
+ count: _$typebox.TOptional<_$typebox.TNumber>;
637
644
  }>;
638
645
  }>;
639
646
  /**
@@ -641,11 +648,11 @@ declare class FileController {
641
648
  * underlying bucket calls per bucket (R2/S3 batch where supported).
642
649
  */
643
650
  readonly deleteFiles: _$alepha_server0.ActionPrimitiveFn<{
644
- body: _$alepha.TObject<{
645
- ids: _$alepha.TArray<_$alepha.TString>;
651
+ body: _$typebox.TObject<{
652
+ ids: _$typebox.TArray<_$typebox.TString>;
646
653
  }>;
647
- response: _$alepha.TObject<{
648
- deleted: _$alepha.TArray<_$alepha.TString>;
654
+ response: _$typebox.TObject<{
655
+ deleted: _$typebox.TArray<_$typebox.TString>;
649
656
  }>;
650
657
  }>;
651
658
  /**
@@ -654,29 +661,30 @@ declare class FileController {
654
661
  * Optionally specify bucket and expiration date.
655
662
  */
656
663
  readonly uploadFile: _$alepha_server0.ActionPrimitiveFn<{
657
- body: _$alepha.TObject<{
664
+ body: _$typebox.TObject<{
658
665
  file: _$alepha.TFile;
659
666
  }>;
660
- query: _$alepha.TObject<{
661
- expirationDate: _$alepha.TOptional<_$alepha.TString>;
662
- bucket: _$alepha.TOptional<_$alepha.TString>;
667
+ query: _$typebox.TObject<{
668
+ expirationDate: _$typebox.TOptional<_$typebox.TString>;
669
+ bucket: _$typebox.TOptional<_$typebox.TString>;
663
670
  }>;
664
- response: _$alepha.TObject<{
665
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
666
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
667
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
668
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
669
- blobId: _$alepha.TString;
670
- creator: _$alepha.TOptional<_$alepha.TString>;
671
- creatorRealm: _$alepha.TOptional<_$alepha.TString>;
672
- creatorName: _$alepha.TOptional<_$alepha.TString>;
673
- bucket: _$alepha.TString;
674
- expirationDate: _$alepha.TOptional<_$alepha.TString>;
675
- name: _$alepha.TString;
676
- size: _$alepha.TNumber;
677
- mimeType: _$alepha.TString;
678
- tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
679
- checksum: _$alepha.TOptional<_$alepha.TString>;
671
+ response: _$typebox.TObject<{
672
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
673
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
674
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
675
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
676
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
677
+ blobId: _$typebox.TString;
678
+ creator: _$typebox.TOptional<_$typebox.TString>;
679
+ creatorRealm: _$typebox.TOptional<_$typebox.TString>;
680
+ creatorName: _$typebox.TOptional<_$typebox.TString>;
681
+ bucket: _$typebox.TString;
682
+ expirationDate: _$typebox.TOptional<_$typebox.TString>;
683
+ name: _$typebox.TString;
684
+ size: _$typebox.TNumber;
685
+ mimeType: _$typebox.TString;
686
+ tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
687
+ checksum: _$typebox.TOptional<_$typebox.TString>;
680
688
  }>;
681
689
  }>;
682
690
  /**
@@ -684,30 +692,31 @@ declare class FileController {
684
692
  * Allows updating name, tags, and expiration date without modifying file content.
685
693
  */
686
694
  readonly updateFile: _$alepha_server0.ActionPrimitiveFn<{
687
- params: _$alepha.TObject<{
688
- id: _$alepha.TString;
695
+ params: _$typebox.TObject<{
696
+ id: _$typebox.TString;
689
697
  }>;
690
- body: _$alepha.TObject<{
691
- name: _$alepha.TOptional<_$alepha.TString>;
692
- tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
693
- expirationDate: _$alepha.TOptional<_$alepha.TString>;
698
+ body: _$typebox.TObject<{
699
+ name: _$typebox.TOptional<_$typebox.TString>;
700
+ tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
701
+ expirationDate: _$typebox.TOptional<_$typebox.TString>;
694
702
  }>;
695
- response: _$alepha.TObject<{
696
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
697
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
698
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
699
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
700
- blobId: _$alepha.TString;
701
- creator: _$alepha.TOptional<_$alepha.TString>;
702
- creatorRealm: _$alepha.TOptional<_$alepha.TString>;
703
- creatorName: _$alepha.TOptional<_$alepha.TString>;
704
- bucket: _$alepha.TString;
705
- expirationDate: _$alepha.TOptional<_$alepha.TString>;
706
- name: _$alepha.TString;
707
- size: _$alepha.TNumber;
708
- mimeType: _$alepha.TString;
709
- tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
710
- checksum: _$alepha.TOptional<_$alepha.TString>;
703
+ response: _$typebox.TObject<{
704
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
705
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
706
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
707
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
708
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
709
+ blobId: _$typebox.TString;
710
+ creator: _$typebox.TOptional<_$typebox.TString>;
711
+ creatorRealm: _$typebox.TOptional<_$typebox.TString>;
712
+ creatorName: _$typebox.TOptional<_$typebox.TString>;
713
+ bucket: _$typebox.TString;
714
+ expirationDate: _$typebox.TOptional<_$typebox.TString>;
715
+ name: _$typebox.TString;
716
+ size: _$typebox.TNumber;
717
+ mimeType: _$typebox.TString;
718
+ tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
719
+ checksum: _$typebox.TOptional<_$typebox.TString>;
711
720
  }>;
712
721
  }>;
713
722
  /**
@@ -716,8 +725,8 @@ declare class FileController {
716
725
  * Cached with ETag support for 1 year (immutable).
717
726
  */
718
727
  readonly streamFile: _$alepha_server0.ActionPrimitiveFn<{
719
- params: _$alepha.TObject<{
720
- id: _$alepha.TString;
728
+ params: _$typebox.TObject<{
729
+ id: _$typebox.TString;
721
730
  }>;
722
731
  response: _$alepha.TFile;
723
732
  }>;
@@ -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/core/schemas/insertSchema.ts","../../../src/orm/core/schemas/updateSchema.ts","../../../src/orm/core/primitives/$entity.ts","../../../src/orm/core/constants/PG_SYMBOLS.ts","../../../src/orm/core/helpers/pgAttr.ts","../../../src/orm/core/schemas/databaseEnvSchema.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,aAAA,CAAA,eAAA,UAAA,OAAA;gDA6BhB,QAAA,CAAA,OAAA;;;;;;;;;;;;;;;;KAEU,UAAA,GAAa,MAAA,QAAc,KAAA,CAAM,MAAA;;;cC9BhC,eAAA,WAAe,OAAA;2BAQ1B,QAAA,CAAA,QAAA;;;;;;;;;;;KAEU,SAAA,GAAY,MAAA,QAAc,eAAA;;;;;;;;;;;;KCD1B,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,kBAAmB,CAAA,eAAgB,CAAA;EAAA,CAC5C,YAAA;AAAA,YAGC,CAAA,GAAI,CAAA,eAAgB,CAAA;EAAA,CACjB,UAAA;AAAA;EACD,WAAA;AAAA,IACF,SAAA,CAAU,CAAA,eAAgB,CAAA,KAC1B,CAAA,eAAgB,CAAA;;;;;;;;;;;;KCJV,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,kBAAmB,CAAA,eAAgB,CAAA;EAAA,CAC5C,YAAA;AAAA,YAGC,CAAA,GAAI,CAAA,eAAgB,CAAA,UAAW,SAAA,YAC/B,SAAA,CAAU,MAAA,EAAQ,CAAA,EAAG,KAAA,MACrB,CAAA,eAAgB,CAAA;;;UCWL,sBAAA,WACL,OAAA,eACG,MAAA,CAAO,CAAA;;;;;EAMpB,IAAA;;;;EAKA,MAAA,EAAQ,CAAA;;;;EAKR,OAAA,IACI,IAAA;;;;IAKE,MAAA,EAAQ,IAAA;;;;IAIR,MAAA;;;;IAIA,IAAA;;;;IAIA,KAAA,GAAQ,GAAA;EAAA;;;;IAMR,OAAA,EAAS,IAAA;;;;IAIT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;;IAIR,GAAA,GAAM,YAAA;;;;IAKN,IAAA;;;;IAKA,IAAA,GAAO,gBAAA;;AdjCX;;;;IcwCI,OAAA;EAAA;AAAA;;;;;;;;;;;;cAiBS,cAAA,EAAc,QAAA,CAAA,OAAA,CAIzB,QAAA,CAJyB,MAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/files/entities/files.ts","../../../src/api/files/schemas/fileQuerySchema.ts","../../../src/orm/core/schemas/insertSchema.ts","../../../src/orm/core/schemas/updateSchema.ts","../../../src/orm/core/primitives/$entity.ts","../../../src/orm/core/constants/PG_SYMBOLS.ts","../../../src/orm/core/helpers/pgAttr.ts","../../../src/orm/core/schemas/databaseEnvSchema.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,aAAA,CAAA,eAAA,WAAA,OAAA;gDA8BhB,SAAA,CAAA,OAAA;;;;;;;;;;;;;;;;;KAEU,UAAA,GAAa,MAAA,QAAc,KAAA,CAAM,MAAA;;;cC/BhC,eAAA,YAAe,OAAA;4BAQ1B,SAAA,CAAA,QAAA;;;;;;;;;;;KAEU,SAAA,GAAY,MAAA,QAAc,eAAA;;;;;;;;;;;;KCG1B,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,kBAAmB,CAAA,eAAgB,CAAA;EAAA,CAC5C,YAAA;AAAA,YAGC,CAAA,GAAI,CAAA,eAAgB,CAAA;EAAA,CACjB,UAAA;AAAA;EAAA,CACA,eAAA;AAAA;EACD,WAAA;AAAA,IACF,SAAA,CAAU,CAAA,eAAgB,CAAA,KAC1B,CAAA,eAAgB,CAAA;;;;;;;;;;;;KCTV,aAAA,WAAwB,OAAA,IAAW,OAAA,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A;;4BAnBD,SAAA,CAAA,OAAA;IAAA;;;;;EZlCV;;;;;EAAA,SY8EA,UAAA,mBAAU,iBAAA;;YAzBC,QAAA,CAAA,KAAA;IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAmDX,UAAA,mBAAU,iBAAA;;UA1BA,SAAA,CAAA,OAAA;IAAA;;;;;;;;;;;;;;;;;;;;;;;;;EZ9CG;;;;;EAAA,SYiGb,UAAA,mBAAU,iBAAA;;UAzBA,SAAA,CAAA,OAAA;IAAA;;;;;;cCvGf,QAAA;EAAA,mBACQ,WAAA,EAAW,WAAA;EAAA,SAEd,UAAA,EAFc,mBAAA,CAEJ,kBAAA;AAAA;;;;YCehB,iBAAA;;;;IAIR,GAAA,GAAM,YAAA;;;;IAKN,IAAA;;;;IAKA,IAAA,GAAO,gBAAA;;AdjCX;;;;IcwCI,OAAA;EAAA;AAAA;;;;;;;;;;;;cAiBS,cAAA,EAAc,QAAA,CAAA,OAAA,CAIzB,QAAA,CAJyB,MAAA"}
@@ -33,6 +33,7 @@ const files = $entity({
33
33
  version: db.version(),
34
34
  createdAt: db.createdAt(),
35
35
  updatedAt: db.updatedAt(),
36
+ organizationId: db.organization(),
36
37
  blobId: t.text(),
37
38
  creator: t.optional(t.uuid()),
38
39
  creatorRealm: t.optional(t.string()),