@alepha/ui 0.13.5 → 0.13.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 (157) hide show
  1. package/dist/admin/AdminAudits-CwvH8e8c.js +215 -0
  2. package/dist/admin/AdminAudits-CwvH8e8c.js.map +1 -0
  3. package/dist/admin/AdminAudits-Dv8Vk_6r.js +3 -0
  4. package/dist/admin/AdminFiles-5CPA3lQk.js +3 -0
  5. package/dist/admin/{AdminFiles-B_jfB_Py.js → AdminFiles-C_w1tb_x.js} +4 -3
  6. package/dist/admin/AdminFiles-C_w1tb_x.js.map +1 -0
  7. package/dist/admin/AdminLayout-BnSmtA4x.js +3 -0
  8. package/dist/admin/AdminLayout-XiSivwWH.js +39 -0
  9. package/dist/admin/AdminLayout-XiSivwWH.js.map +1 -0
  10. package/dist/admin/AdminNotifications-DLjmZWtf.js +3 -0
  11. package/dist/admin/{AdminNotifications-BFEjqpqx.js → AdminNotifications-DuYy74AN.js} +3 -3
  12. package/dist/admin/AdminNotifications-DuYy74AN.js.map +1 -0
  13. package/dist/admin/AdminParameters-DYg48Jwe.js +3 -0
  14. package/dist/admin/AdminParameters-YagqWTG3.js +575 -0
  15. package/dist/admin/AdminParameters-YagqWTG3.js.map +1 -0
  16. package/dist/admin/{AdminSessions-D7DESfWK.js → AdminSessions-BCjgJ-93.js} +4 -4
  17. package/dist/admin/AdminSessions-BCjgJ-93.js.map +1 -0
  18. package/dist/admin/AdminSessions-DEh2uN-4.js +3 -0
  19. package/dist/admin/AdminUserAudits-B_PUXCKC.js +177 -0
  20. package/dist/admin/AdminUserAudits-B_PUXCKC.js.map +1 -0
  21. package/dist/admin/AdminUserAudits-D7cTcElL.js +3 -0
  22. package/dist/admin/{AdminUserCreate-Bhxsn92l.js → AdminUserCreate-DzfRbGZ4.js} +4 -4
  23. package/dist/admin/AdminUserCreate-DzfRbGZ4.js.map +1 -0
  24. package/dist/admin/{AdminUserCreate-CYI_xW5T.js → AdminUserCreate-oUA1KDIl.js} +1 -1
  25. package/dist/admin/{AdminUserDetails-C2y1Ig4n.js → AdminUserDetails-DeTrJm-t.js} +5 -5
  26. package/dist/admin/AdminUserDetails-DeTrJm-t.js.map +1 -0
  27. package/dist/admin/{AdminUserDetails-Cmzx9HxH.js → AdminUserDetails-y1H5DW8Y.js} +1 -1
  28. package/dist/admin/{AdminUserLayout-sW6cjZL0.js → AdminUserLayout-CsfrrZkD.js} +4 -7
  29. package/dist/admin/AdminUserLayout-CsfrrZkD.js.map +1 -0
  30. package/dist/admin/{AdminUserLayout-DGSf612u.js → AdminUserLayout-Dejnz13m.js} +1 -1
  31. package/dist/admin/AdminUserSessions-Bbhcpz4k.js +3 -0
  32. package/dist/admin/{AdminUserSessions-CvN15wPe.js → AdminUserSessions-DO9H85O-.js} +4 -4
  33. package/dist/admin/AdminUserSessions-DO9H85O-.js.map +1 -0
  34. package/dist/admin/{AdminUserSettings-DvaaxgcV.js → AdminUserSettings-B3jA8g3p.js} +4 -4
  35. package/dist/admin/AdminUserSettings-B3jA8g3p.js.map +1 -0
  36. package/dist/admin/AdminUserSettings-CE0xpbQc.js +3 -0
  37. package/dist/admin/AdminUsers-CegGZDhW.js +3 -0
  38. package/dist/admin/{AdminUsers-BR3C-jrg.js → AdminUsers-ebbrJBT0.js} +13 -17
  39. package/dist/admin/AdminUsers-ebbrJBT0.js.map +1 -0
  40. package/dist/admin/index.d.ts +2044 -1044
  41. package/dist/admin/index.js +65 -62
  42. package/dist/admin/index.js.map +1 -1
  43. package/dist/auth/AuthLayout-BAZJHzDG.js +23 -0
  44. package/dist/auth/AuthLayout-BAZJHzDG.js.map +1 -0
  45. package/dist/auth/{Login-7HlBjDeV.js → Login-CeNZZjrr.js} +80 -44
  46. package/dist/auth/Login-CeNZZjrr.js.map +1 -0
  47. package/dist/auth/Login-hQcu1nlu.js +4 -0
  48. package/dist/auth/Register-B6HBNVHS.js +4 -0
  49. package/dist/auth/{Register-CuQr3kgi.js → Register-s4ENeyiE.js} +131 -91
  50. package/dist/auth/Register-s4ENeyiE.js.map +1 -0
  51. package/dist/auth/ResetPassword-Cjd-W-Nu.js +3 -0
  52. package/dist/auth/ResetPassword-GLIFkJT7.js +278 -0
  53. package/dist/auth/ResetPassword-GLIFkJT7.js.map +1 -0
  54. package/dist/auth/index.d.ts +471 -426
  55. package/dist/auth/index.js +26 -18
  56. package/dist/auth/index.js.map +1 -1
  57. package/dist/core/index.d.ts +400 -130
  58. package/dist/core/index.js +1751 -1369
  59. package/dist/core/index.js.map +1 -1
  60. package/package.json +15 -11
  61. package/src/admin/AdminRouter.ts +70 -16
  62. package/src/admin/components/AdminLayout.tsx +41 -61
  63. package/src/admin/components/audits/AdminAudits.tsx +240 -0
  64. package/src/admin/components/{AdminFiles.tsx → files/AdminFiles.tsx} +1 -1
  65. package/src/admin/components/{AdminJobs.tsx → jobs/AdminJobs.tsx} +1 -1
  66. package/src/admin/components/parameters/AdminParameters.tsx +137 -0
  67. package/src/admin/components/parameters/ParameterDetails.tsx +228 -0
  68. package/src/admin/components/parameters/ParameterHistory.tsx +146 -0
  69. package/src/admin/components/parameters/ParameterTree.tsx +146 -0
  70. package/src/admin/components/parameters/types.ts +35 -0
  71. package/src/admin/components/{AdminSessions.tsx → sessions/AdminSessions.tsx} +1 -1
  72. package/src/admin/components/users/AdminUserAudits.tsx +183 -0
  73. package/src/admin/components/{AdminUserCreate.tsx → users/AdminUserCreate.tsx} +1 -1
  74. package/src/admin/components/{AdminUserLayout.tsx → users/AdminUserLayout.tsx} +1 -4
  75. package/src/admin/components/{AdminUserSettings.tsx → users/AdminUserSettings.tsx} +1 -1
  76. package/src/admin/components/{AdminUsers.tsx → users/AdminUsers.tsx} +10 -12
  77. package/src/admin/index.ts +24 -16
  78. package/src/auth/AuthRouter.ts +23 -17
  79. package/src/auth/components/AuthLayout.tsx +6 -3
  80. package/src/auth/components/Login.tsx +109 -47
  81. package/src/auth/components/Register.tsx +158 -94
  82. package/src/auth/components/ResetPassword.tsx +51 -5
  83. package/src/auth/components/buttons/UserButton.tsx +2 -0
  84. package/src/core/atoms/alephaThemeAtom.ts +13 -0
  85. package/src/core/atoms/alephaThemeListAtom.ts +10 -0
  86. package/src/core/atoms/themes/default.ts +6 -0
  87. package/src/core/{themes → atoms/themes}/midnight.ts +3 -5
  88. package/src/core/components/buttons/ActionButton.tsx +33 -26
  89. package/src/core/components/buttons/DarkModeButton.tsx +0 -1
  90. package/src/core/components/buttons/ThemeButton.tsx +10 -7
  91. package/src/core/components/buttons/ToggleSidebarButton.tsx +19 -16
  92. package/src/core/components/data/ErrorViewer.tsx +171 -0
  93. package/src/core/components/data/JsonViewer.tsx +147 -138
  94. package/src/core/components/form/Control.tsx +95 -18
  95. package/src/core/components/form/ControlArray.tsx +377 -0
  96. package/src/core/components/form/ControlObject.tsx +127 -0
  97. package/src/core/components/form/TypeForm.tsx +99 -37
  98. package/src/core/components/layout/AdminShell.tsx +14 -1
  99. package/src/core/components/layout/AlephaMantineProvider.tsx +7 -3
  100. package/src/core/components/layout/Omnibar.tsx +1 -1
  101. package/src/core/components/layout/Sidebar.tsx +47 -14
  102. package/src/core/components/table/ColumnPicker.tsx +126 -0
  103. package/src/core/components/table/DataTable.tsx +354 -181
  104. package/src/core/components/table/DataTableFilters.tsx +64 -0
  105. package/src/core/components/table/DataTablePagination.tsx +59 -0
  106. package/src/core/components/table/DataTableToolbar.tsx +126 -0
  107. package/src/core/components/table/FilterPicker.tsx +138 -0
  108. package/src/core/components/table/types.ts +199 -0
  109. package/src/core/helpers/isComponentType.ts +9 -0
  110. package/src/core/helpers/renderIcon.tsx +13 -0
  111. package/src/core/hooks/useTheme.ts +24 -18
  112. package/src/core/index.ts +24 -3
  113. package/src/core/interfaces/AlephaTheme.ts +8 -0
  114. package/src/core/providers/ThemeProvider.ts +44 -62
  115. package/src/core/services/DialogService.tsx +24 -0
  116. package/src/core/utils/parseInput.ts +2 -2
  117. package/styles.css +1 -1
  118. package/dist/admin/AdminFiles-B-0UcHVV.js +0 -3
  119. package/dist/admin/AdminFiles-B_jfB_Py.js.map +0 -1
  120. package/dist/admin/AdminLayout-BMtiXAzS.js +0 -396
  121. package/dist/admin/AdminLayout-BMtiXAzS.js.map +0 -1
  122. package/dist/admin/AdminLayout-BNo3GoHR.js +0 -3
  123. package/dist/admin/AdminNotifications-BFEjqpqx.js.map +0 -1
  124. package/dist/admin/AdminNotifications-DJs2ZjNj.js +0 -3
  125. package/dist/admin/AdminSessions-D7DESfWK.js.map +0 -1
  126. package/dist/admin/AdminSessions-PS2M8iXi.js +0 -3
  127. package/dist/admin/AdminUserCreate-Bhxsn92l.js.map +0 -1
  128. package/dist/admin/AdminUserDetails-C2y1Ig4n.js.map +0 -1
  129. package/dist/admin/AdminUserLayout-sW6cjZL0.js.map +0 -1
  130. package/dist/admin/AdminUserSessions-CvN15wPe.js.map +0 -1
  131. package/dist/admin/AdminUserSessions-D-aOcZgV.js +0 -3
  132. package/dist/admin/AdminUserSettings-CEMhIYrI.js +0 -3
  133. package/dist/admin/AdminUserSettings-DvaaxgcV.js.map +0 -1
  134. package/dist/admin/AdminUsers-BR3C-jrg.js.map +0 -1
  135. package/dist/admin/AdminUsers-CMW9vN09.js +0 -3
  136. package/dist/auth/AuthLayout-CzwUKD9y.js +0 -19
  137. package/dist/auth/AuthLayout-CzwUKD9y.js.map +0 -1
  138. package/dist/auth/Login-7HlBjDeV.js.map +0 -1
  139. package/dist/auth/Login-C-e27DGb.js +0 -4
  140. package/dist/auth/Register-CuQr3kgi.js.map +0 -1
  141. package/dist/auth/Register-DbvXwgbG.js +0 -4
  142. package/dist/auth/ResetPassword-BzU-cdd4.js +0 -243
  143. package/dist/auth/ResetPassword-BzU-cdd4.js.map +0 -1
  144. package/dist/auth/ResetPassword-DSvrdpaA.js +0 -3
  145. package/src/admin/AdminSidebar.ts +0 -31
  146. package/src/admin/components/AdminParameters.tsx +0 -24
  147. package/src/core/themes/aurora.ts +0 -107
  148. package/src/core/themes/crystal.ts +0 -107
  149. package/src/core/themes/default.ts +0 -7
  150. package/src/core/themes/ember.ts +0 -107
  151. package/src/core/themes/index.ts +0 -7
  152. package/src/core/themes/remoraid.ts +0 -278
  153. package/src/core/themes/slate.ts +0 -81
  154. /package/src/admin/components/{AdminNotifications.tsx → notifications/AdminNotifications.tsx} +0 -0
  155. /package/src/admin/components/{AdminUserDetails.tsx → users/AdminUserDetails.tsx} +0 -0
  156. /package/src/admin/components/{AdminUserSessions.tsx → users/AdminUserSessions.tsx} +0 -0
  157. /package/src/admin/components/{AdminVerifications.tsx → verifications/AdminVerifications.tsx} +0 -0
@@ -1,10 +1,10 @@
1
- import { SidebarNode } from "@alepha/ui";
1
+ import { AdminShellProps } from "@alepha/ui";
2
2
  import { AuthRouter } from "@alepha/ui/auth";
3
- import * as alepha1543 from "alepha";
3
+ import * as alepha1962 from "alepha";
4
4
  import { Alepha, AlephaError, Async, FileLike, InstantiableClass, LogLevel, LoggerInterface, Page, Page as Page$1, PageQuery, Primitive, Service, Static, StaticEncode, StreamLike, TArray, TFile, TNull, TObject, TOptional, TRecord, TSchema, TStream, TString, TUnion, TVoid } from "alepha";
5
- import * as react0 from "react";
6
- import { FC, ReactNode } from "react";
7
5
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import * as react1 from "react";
7
+ import { FC, ReactNode } from "react";
8
8
  import { IncomingMessage, Server, ServerResponse } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  import { ReadableStream } from "node:stream/web";
@@ -17,6 +17,7 @@ import "dayjs/locale/ar.js";
17
17
  import "dayjs/locale/fr.js";
18
18
  import DayjsApi, { Dayjs, ManipulateType, PluginFunc } from "dayjs";
19
19
  import { JSONWebKeySet } from "jose";
20
+ import { AuditController } from "alepha/api/audits";
20
21
  import * as drizzle_orm0 from "drizzle-orm";
21
22
  import { BuildExtraConfigColumns, SQL, SQLWrapper } from "drizzle-orm";
22
23
  import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
@@ -25,28 +26,28 @@ import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
25
26
  import * as DrizzleKit from "drizzle-kit/api";
26
27
 
27
28
  //#region ../../../alepha/src/security/schemas/userAccountInfoSchema.d.ts
28
- declare const userAccountInfoSchema: alepha1543.TObject<{
29
- id: alepha1543.TString;
30
- name: alepha1543.TOptional<alepha1543.TString>;
31
- email: alepha1543.TOptional<alepha1543.TString>;
32
- username: alepha1543.TOptional<alepha1543.TString>;
33
- picture: alepha1543.TOptional<alepha1543.TString>;
34
- sessionId: alepha1543.TOptional<alepha1543.TString>;
35
- organizations: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
36
- roles: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
29
+ declare const userAccountInfoSchema: alepha1962.TObject<{
30
+ id: alepha1962.TString;
31
+ name: alepha1962.TOptional<alepha1962.TString>;
32
+ email: alepha1962.TOptional<alepha1962.TString>;
33
+ username: alepha1962.TOptional<alepha1962.TString>;
34
+ picture: alepha1962.TOptional<alepha1962.TString>;
35
+ sessionId: alepha1962.TOptional<alepha1962.TString>;
36
+ organizations: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
37
+ roles: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
37
38
  }>;
38
39
  type UserAccount = Static<typeof userAccountInfoSchema>;
39
40
  //#endregion
40
41
  //#region ../../../alepha/src/server/schemas/errorSchema.d.ts
41
- declare const errorSchema: alepha1543.TObject<{
42
- error: alepha1543.TString;
43
- status: alepha1543.TInteger;
44
- message: alepha1543.TString;
45
- details: alepha1543.TOptional<alepha1543.TString>;
46
- requestId: alepha1543.TOptional<alepha1543.TString>;
47
- cause: alepha1543.TOptional<alepha1543.TObject<{
48
- name: alepha1543.TString;
49
- message: alepha1543.TString;
42
+ declare const errorSchema: alepha1962.TObject<{
43
+ error: alepha1962.TString;
44
+ status: alepha1962.TInteger;
45
+ message: alepha1962.TString;
46
+ details: alepha1962.TOptional<alepha1962.TString>;
47
+ requestId: alepha1962.TOptional<alepha1962.TString>;
48
+ cause: alepha1962.TOptional<alepha1962.TObject<{
49
+ name: alepha1962.TString;
50
+ message: alepha1962.TString;
50
51
  }>>;
51
52
  }>;
52
53
  type ErrorSchema = Static<typeof errorSchema>;
@@ -285,15 +286,15 @@ interface WebRequestEvent {
285
286
  }
286
287
  //#endregion
287
288
  //#region ../../../alepha/src/logger/schemas/logEntrySchema.d.ts
288
- declare const logEntrySchema: alepha1543.TObject<{
289
- level: alepha1543.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
290
- message: alepha1543.TString;
291
- service: alepha1543.TString;
292
- module: alepha1543.TString;
293
- context: alepha1543.TOptional<alepha1543.TString>;
294
- app: alepha1543.TOptional<alepha1543.TString>;
295
- data: alepha1543.TOptional<alepha1543.TAny>;
296
- timestamp: alepha1543.TNumber;
289
+ declare const logEntrySchema: alepha1962.TObject<{
290
+ level: alepha1962.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
291
+ message: alepha1962.TString;
292
+ service: alepha1962.TString;
293
+ module: alepha1962.TString;
294
+ context: alepha1962.TOptional<alepha1962.TString>;
295
+ app: alepha1962.TOptional<alepha1962.TString>;
296
+ data: alepha1962.TOptional<alepha1962.TAny>;
297
+ timestamp: alepha1962.TNumber;
297
298
  }>;
298
299
  type LogEntry = Static<typeof logEntrySchema>;
299
300
  //#endregion
@@ -308,8 +309,8 @@ declare class DateTimeProvider {
308
309
  protected readonly timeouts: Timeout[];
309
310
  protected readonly intervals: Interval[];
310
311
  constructor();
311
- protected readonly onStart: alepha1543.HookPrimitive<"start">;
312
- protected readonly onStop: alepha1543.HookPrimitive<"stop">;
312
+ protected readonly onStart: alepha1962.HookPrimitive<"start">;
313
+ protected readonly onStop: alepha1962.HookPrimitive<"stop">;
313
314
  setLocale(locale: string): void;
314
315
  isDateTime(value: unknown): value is DateTime;
315
316
  /**
@@ -441,7 +442,7 @@ declare class Logger implements LoggerInterface {
441
442
  }
442
443
  //#endregion
443
444
  //#region ../../../alepha/src/logger/index.d.ts
444
- declare const envSchema$9: alepha1543.TObject<{
445
+ declare const envSchema$10: alepha1962.TObject<{
445
446
  /**
446
447
  * Default log level for the application.
447
448
  *
@@ -458,17 +459,17 @@ declare const envSchema$9: alepha1543.TObject<{
458
459
  * LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
459
460
  * LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
460
461
  */
461
- LOG_LEVEL: alepha1543.TOptional<alepha1543.TString>;
462
+ LOG_LEVEL: alepha1962.TOptional<alepha1962.TString>;
462
463
  /**
463
464
  * Built-in log formats.
464
465
  * - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
465
- * - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
466
+ * - "pretty" - Simple text format, human-readable, with colors. {@link PrettyFormatterProvider}
466
467
  * - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
467
468
  */
468
- LOG_FORMAT: alepha1543.TOptional<alepha1543.TUnsafe<"json" | "pretty" | "raw">>;
469
+ LOG_FORMAT: alepha1962.TOptional<alepha1962.TUnsafe<"json" | "pretty" | "raw">>;
469
470
  }>;
470
471
  declare module "alepha" {
471
- interface Env extends Partial<Static<typeof envSchema$9>> {}
472
+ interface Env extends Partial<Static<typeof envSchema$10>> {}
472
473
  interface State {
473
474
  /**
474
475
  * Current log level for the application or specific modules.
@@ -502,8 +503,8 @@ declare class ServerTimingProvider {
502
503
  prefix: string;
503
504
  disabled: boolean;
504
505
  };
505
- readonly onRequest: alepha1543.HookPrimitive<"server:onRequest">;
506
- readonly onResponse: alepha1543.HookPrimitive<"server:onResponse">;
506
+ readonly onRequest: alepha1962.HookPrimitive<"server:onRequest">;
507
+ readonly onResponse: alepha1962.HookPrimitive<"server:onResponse">;
507
508
  protected get handlerName(): string;
508
509
  beginTiming(name: string): void;
509
510
  endTiming(name: string): void;
@@ -567,11 +568,11 @@ declare class ServerProvider {
567
568
  /**
568
569
  * When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
569
570
  */
570
- protected readonly onNodeRequest: alepha1543.HookPrimitive<"node:request">;
571
+ protected readonly onNodeRequest: alepha1962.HookPrimitive<"node:request">;
571
572
  /**
572
573
  * When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
573
574
  */
574
- protected readonly onWebRequest: alepha1543.HookPrimitive<"web:request">;
575
+ protected readonly onWebRequest: alepha1962.HookPrimitive<"web:request">;
575
576
  /**
576
577
  * Handle Node.js HTTP request event.
577
578
  *
@@ -909,29 +910,29 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
909
910
  interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
910
911
  //#endregion
911
912
  //#region ../../../alepha/src/server/schemas/okSchema.d.ts
912
- declare const okSchema: alepha1543.TObject<{
913
- ok: alepha1543.TBoolean;
914
- id: alepha1543.TOptional<alepha1543.TUnion<[alepha1543.TString, alepha1543.TInteger]>>;
915
- count: alepha1543.TOptional<alepha1543.TNumber>;
913
+ declare const okSchema: alepha1962.TObject<{
914
+ ok: alepha1962.TBoolean;
915
+ id: alepha1962.TOptional<alepha1962.TUnion<[alepha1962.TString, alepha1962.TInteger]>>;
916
+ count: alepha1962.TOptional<alepha1962.TNumber>;
916
917
  }>;
917
918
  type Ok = Static<typeof okSchema>;
918
919
  //#endregion
919
920
  //#region ../../../alepha/src/server/providers/BunHttpServerProvider.d.ts
920
- declare const envSchema$8: alepha1543.TObject<{
921
- SERVER_PORT: alepha1543.TInteger;
922
- SERVER_HOST: alepha1543.TString;
921
+ declare const envSchema$9: alepha1962.TObject<{
922
+ SERVER_PORT: alepha1962.TInteger;
923
+ SERVER_HOST: alepha1962.TString;
923
924
  }>;
924
925
  declare module "alepha" {
925
- interface Env extends Partial<Static<typeof envSchema$8>> {}
926
+ interface Env extends Partial<Static<typeof envSchema$9>> {}
926
927
  }
927
928
  //#endregion
928
929
  //#region ../../../alepha/src/server/providers/NodeHttpServerProvider.d.ts
929
- declare const envSchema$7: alepha1543.TObject<{
930
- SERVER_PORT: alepha1543.TInteger;
931
- SERVER_HOST: alepha1543.TString;
930
+ declare const envSchema$8: alepha1962.TObject<{
931
+ SERVER_PORT: alepha1962.TInteger;
932
+ SERVER_HOST: alepha1962.TString;
932
933
  }>;
933
934
  declare module "alepha" {
934
- interface Env extends Partial<Static<typeof envSchema$7>> {}
935
+ interface Env extends Partial<Static<typeof envSchema$8>> {}
935
936
  }
936
937
  //#endregion
937
938
  //#region ../../../alepha/src/server/index.d.ts
@@ -1012,24 +1013,24 @@ interface UserAccountToken extends UserAccount {
1012
1013
  }
1013
1014
  //#endregion
1014
1015
  //#region ../../../alepha/src/security/schemas/roleSchema.d.ts
1015
- declare const roleSchema: alepha1543.TObject<{
1016
- name: alepha1543.TString;
1017
- description: alepha1543.TOptional<alepha1543.TString>;
1018
- default: alepha1543.TOptional<alepha1543.TBoolean>;
1019
- permissions: alepha1543.TArray<alepha1543.TObject<{
1020
- name: alepha1543.TString;
1021
- ownership: alepha1543.TOptional<alepha1543.TBoolean>;
1022
- exclude: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
1016
+ declare const roleSchema: alepha1962.TObject<{
1017
+ name: alepha1962.TString;
1018
+ description: alepha1962.TOptional<alepha1962.TString>;
1019
+ default: alepha1962.TOptional<alepha1962.TBoolean>;
1020
+ permissions: alepha1962.TArray<alepha1962.TObject<{
1021
+ name: alepha1962.TString;
1022
+ ownership: alepha1962.TOptional<alepha1962.TBoolean>;
1023
+ exclude: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
1023
1024
  }>>;
1024
1025
  }>;
1025
1026
  type Role = Static<typeof roleSchema>;
1026
1027
  //#endregion
1027
1028
  //#region ../../../alepha/src/security/providers/SecurityProvider.d.ts
1028
- declare const envSchema$6: alepha1543.TObject<{
1029
- APP_SECRET: alepha1543.TString;
1029
+ declare const envSchema$7: alepha1962.TObject<{
1030
+ APP_SECRET: alepha1962.TString;
1030
1031
  }>;
1031
1032
  declare module "alepha" {
1032
- interface Env extends Partial<Static<typeof envSchema$6>> {}
1033
+ interface Env extends Partial<Static<typeof envSchema$7>> {}
1033
1034
  }
1034
1035
  //#endregion
1035
1036
  //#region ../../../alepha/src/security/primitives/$realm.d.ts
@@ -1191,23 +1192,23 @@ declare module "alepha/server" {
1191
1192
  */
1192
1193
  //#endregion
1193
1194
  //#region ../../../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
1194
- declare const apiLinkSchema: alepha1543.TObject<{
1195
- name: alepha1543.TString;
1196
- group: alepha1543.TOptional<alepha1543.TString>;
1197
- path: alepha1543.TString;
1198
- method: alepha1543.TOptional<alepha1543.TString>;
1199
- requestBodyType: alepha1543.TOptional<alepha1543.TString>;
1200
- service: alepha1543.TOptional<alepha1543.TString>;
1195
+ declare const apiLinkSchema: alepha1962.TObject<{
1196
+ name: alepha1962.TString;
1197
+ group: alepha1962.TOptional<alepha1962.TString>;
1198
+ path: alepha1962.TString;
1199
+ method: alepha1962.TOptional<alepha1962.TString>;
1200
+ requestBodyType: alepha1962.TOptional<alepha1962.TString>;
1201
+ service: alepha1962.TOptional<alepha1962.TString>;
1201
1202
  }>;
1202
- declare const apiLinksResponseSchema: alepha1543.TObject<{
1203
- prefix: alepha1543.TOptional<alepha1543.TString>;
1204
- links: alepha1543.TArray<alepha1543.TObject<{
1205
- name: alepha1543.TString;
1206
- group: alepha1543.TOptional<alepha1543.TString>;
1207
- path: alepha1543.TString;
1208
- method: alepha1543.TOptional<alepha1543.TString>;
1209
- requestBodyType: alepha1543.TOptional<alepha1543.TString>;
1210
- service: alepha1543.TOptional<alepha1543.TString>;
1203
+ declare const apiLinksResponseSchema: alepha1962.TObject<{
1204
+ prefix: alepha1962.TOptional<alepha1962.TString>;
1205
+ links: alepha1962.TArray<alepha1962.TObject<{
1206
+ name: alepha1962.TString;
1207
+ group: alepha1962.TOptional<alepha1962.TString>;
1208
+ path: alepha1962.TString;
1209
+ method: alepha1962.TOptional<alepha1962.TString>;
1210
+ requestBodyType: alepha1962.TOptional<alepha1962.TString>;
1211
+ service: alepha1962.TOptional<alepha1962.TString>;
1211
1212
  }>>;
1212
1213
  }>;
1213
1214
  type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
@@ -1548,11 +1549,11 @@ declare class Redirection extends Error {
1548
1549
  }
1549
1550
  //#endregion
1550
1551
  //#region ../../../react/src/core/providers/ReactPageProvider.d.ts
1551
- declare const envSchema$5: alepha1543.TObject<{
1552
- REACT_STRICT_MODE: alepha1543.TBoolean;
1552
+ declare const envSchema$6: alepha1962.TObject<{
1553
+ REACT_STRICT_MODE: alepha1962.TBoolean;
1553
1554
  }>;
1554
1555
  declare module "alepha" {
1555
- interface Env extends Partial<Static<typeof envSchema$5>> {}
1556
+ interface Env extends Partial<Static<typeof envSchema$6>> {}
1556
1557
  }
1557
1558
  declare class ReactPageProvider {
1558
1559
  protected readonly log: Logger;
@@ -1580,7 +1581,6 @@ declare class ReactPageProvider {
1580
1581
  * It also handles errors and redirects.
1581
1582
  */
1582
1583
  createLayers(route: PageRoute, state: ReactRouterState, previous?: PreviousLayerData[]): Promise<CreateLayersResult>;
1583
- protected createRedirectionLayer(redirect: string): CreateLayersResult;
1584
1584
  protected getErrorHandler(route: PageRoute): ErrorHandler | undefined;
1585
1585
  protected createElement(page: PageRoute, props: Record<string, any>): Promise<ReactNode>;
1586
1586
  renderError(error: Error): ReactNode;
@@ -1592,7 +1592,7 @@ declare class ReactPageProvider {
1592
1592
  }, params?: Record<string, any>): string;
1593
1593
  compile(path: string, params?: Record<string, string>): string;
1594
1594
  protected renderView(index: number, path: string, view: ReactNode | undefined, page: PageRoute): ReactNode;
1595
- protected readonly configure: alepha1543.HookPrimitive<"configure">;
1595
+ protected readonly configure: alepha1962.HookPrimitive<"configure">;
1596
1596
  protected map(pages: Array<PagePrimitive>, target: PagePrimitive): PageRouteEntry;
1597
1597
  add(entry: PageRouteEntry): void;
1598
1598
  protected createMatch(page: PageRoute): string;
@@ -1707,10 +1707,10 @@ interface PagePrimitiveOptions<TConfig extends PageConfigSchema = PageConfigSche
1707
1707
  * Load data before rendering the page.
1708
1708
  *
1709
1709
  * This function receives
1710
- * - the request context and
1710
+ * - the request context (params, query, etc.)
1711
1711
  * - the parent props (if page has a parent)
1712
1712
  *
1713
- * In SSR, the returned data will be serialized and sent to the client, then reused during the client-side hydration.
1713
+ * > In SSR, the returned data will be serialized and sent to the client, then reused during the client-side hydration.
1714
1714
  *
1715
1715
  * Resolve can be stopped by throwing an error, which will be handled by the `errorHandler` function.
1716
1716
  * It's common to throw a `NotFoundError` to display a 404 page.
@@ -1718,6 +1718,12 @@ interface PagePrimitiveOptions<TConfig extends PageConfigSchema = PageConfigSche
1718
1718
  * RedirectError can be thrown to redirect the user to another page.
1719
1719
  */
1720
1720
  resolve?: (context: PageResolve<TConfig, TPropsParent>) => Async<TProps>;
1721
+ /**
1722
+ * Default props to pass to the component when rendering the page.
1723
+ *
1724
+ * Resolved props from the `resolve` function will override these default props.
1725
+ */
1726
+ props?: () => Partial<TProps>;
1721
1727
  /**
1722
1728
  * The component to render when the page is loaded.
1723
1729
  *
@@ -1743,6 +1749,12 @@ interface PagePrimitiveOptions<TConfig extends PageConfigSchema = PageConfigSche
1743
1749
  * Define a parent page for nested routing.
1744
1750
  */
1745
1751
  parent?: PagePrimitive<PageConfigSchema, TPropsParent, any>;
1752
+ /**
1753
+ * Function to determine if the page can be accessed.
1754
+ *
1755
+ * If it returns false, the page will not be accessible and a 403 Forbidden error will be returned.
1756
+ * This function can be used to implement permission-based access control.
1757
+ */
1746
1758
  can?: () => boolean;
1747
1759
  /**
1748
1760
  * Catch any error from the `resolve` function or during `rendering`.
@@ -1919,23 +1931,23 @@ declare class ReactBrowserRouterProvider extends RouterProvider<BrowserRoute> {
1919
1931
  protected readonly alepha: Alepha;
1920
1932
  protected readonly pageApi: ReactPageProvider;
1921
1933
  add(entry: PageRouteEntry): void;
1922
- protected readonly configure: alepha1543.HookPrimitive<"configure">;
1934
+ protected readonly configure: alepha1962.HookPrimitive<"configure">;
1923
1935
  transition(url: URL, previous?: PreviousLayerData[], meta?: {}): Promise<string | void>;
1924
1936
  root(state: ReactRouterState): ReactNode;
1925
1937
  }
1926
1938
  //#endregion
1927
1939
  //#region ../../../react/src/core/providers/ReactBrowserProvider.d.ts
1928
- declare const envSchema$4: alepha1543.TObject<{
1929
- REACT_ROOT_ID: alepha1543.TString;
1940
+ declare const envSchema$5: alepha1962.TObject<{
1941
+ REACT_ROOT_ID: alepha1962.TString;
1930
1942
  }>;
1931
1943
  declare module "alepha" {
1932
- interface Env extends Partial<Static<typeof envSchema$4>> {}
1944
+ interface Env extends Partial<Static<typeof envSchema$5>> {}
1933
1945
  }
1934
1946
  /**
1935
1947
  * React browser renderer configuration atom
1936
1948
  */
1937
- declare const reactBrowserOptions: alepha1543.Atom<alepha1543.TObject<{
1938
- scrollRestoration: alepha1543.TUnsafe<"top" | "manual">;
1949
+ declare const reactBrowserOptions: alepha1962.Atom<alepha1962.TObject<{
1950
+ scrollRestoration: alepha1962.TUnsafe<"top" | "manual">;
1939
1951
  }>, "alepha.react.browser.options">;
1940
1952
  type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
1941
1953
  declare module "alepha" {
@@ -1983,8 +1995,8 @@ declare class ReactBrowserProvider {
1983
1995
  * Get embedded layers from the server.
1984
1996
  */
1985
1997
  protected getHydrationState(): ReactHydrationState | undefined;
1986
- protected readonly onTransitionEnd: alepha1543.HookPrimitive<"react:transition:end">;
1987
- readonly ready: alepha1543.HookPrimitive<"ready">;
1998
+ protected readonly onTransitionEnd: alepha1962.HookPrimitive<"react:transition:end">;
1999
+ readonly ready: alepha1962.HookPrimitive<"ready">;
1988
2000
  }
1989
2001
  interface RouterGoOptions {
1990
2002
  replace?: boolean;
@@ -2095,9 +2107,10 @@ declare class ReactRouter<T$1 extends object> {
2095
2107
  path?: string | undefined;
2096
2108
  schema?: PageConfigSchema | undefined;
2097
2109
  resolve?: ((context: PageResolve<PageConfigSchema, TPropsParentDefault>) => any) | undefined;
2098
- component?: react0.FC<any> | undefined;
2110
+ props?: (() => Partial<any>) | undefined;
2111
+ component?: react1.FC<any> | undefined;
2099
2112
  lazy?: (() => Promise<{
2100
- default: react0.FC<any>;
2113
+ default: react1.FC<any>;
2101
2114
  }>) | undefined;
2102
2115
  can?: (() => boolean) | undefined;
2103
2116
  errorHandler?: ErrorHandler | undefined;
@@ -2110,7 +2123,7 @@ declare class ReactRouter<T$1 extends object> {
2110
2123
  onLeave?: (() => void) | undefined;
2111
2124
  animation?: PageAnimation | undefined;
2112
2125
  head?: Head | ((props: any, previous?: Head) => Head) | undefined;
2113
- icon?: react0.ReactNode | react0.ComponentType;
2126
+ icon?: react1.ReactNode | react1.ComponentType;
2114
2127
  };
2115
2128
  path(name: keyof VirtualRouter<T$1> | string, config?: {
2116
2129
  params?: Record<string, any>;
@@ -2546,25 +2559,25 @@ declare class FileDetector {
2546
2559
  }
2547
2560
  //#endregion
2548
2561
  //#region ../../../react/src/core/providers/ReactServerProvider.d.ts
2549
- declare const envSchema$3: alepha1543.TObject<{
2550
- REACT_SSR_ENABLED: alepha1543.TOptional<alepha1543.TBoolean>;
2551
- REACT_ROOT_ID: alepha1543.TString;
2552
- REACT_SERVER_TEMPLATE: alepha1543.TOptional<alepha1543.TString>;
2562
+ declare const envSchema$4: alepha1962.TObject<{
2563
+ REACT_SSR_ENABLED: alepha1962.TOptional<alepha1962.TBoolean>;
2564
+ REACT_ROOT_ID: alepha1962.TString;
2553
2565
  }>;
2554
2566
  declare module "alepha" {
2555
- interface Env extends Partial<Static<typeof envSchema$3>> {}
2567
+ interface Env extends Partial<Static<typeof envSchema$4>> {}
2556
2568
  interface State {
2557
2569
  "alepha.react.server.ssr"?: boolean;
2570
+ "alepha.react.server.template"?: string;
2558
2571
  }
2559
2572
  }
2560
2573
  /**
2561
2574
  * React server provider configuration atom
2562
2575
  */
2563
- declare const reactServerOptions: alepha1543.Atom<alepha1543.TObject<{
2564
- publicDir: alepha1543.TString;
2565
- staticServer: alepha1543.TObject<{
2566
- disabled: alepha1543.TBoolean;
2567
- path: alepha1543.TString;
2576
+ declare const reactServerOptions: alepha1962.Atom<alepha1962.TObject<{
2577
+ publicDir: alepha1962.TString;
2578
+ staticServer: alepha1962.TObject<{
2579
+ disabled: alepha1962.TBoolean;
2580
+ path: alepha1962.TString;
2568
2581
  }>;
2569
2582
  }>, "alepha.react.server.options">;
2570
2583
  type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
@@ -2678,16 +2691,16 @@ declare module "alepha" {
2678
2691
  */
2679
2692
  //#endregion
2680
2693
  //#region ../../../alepha/src/server-auth/schemas/tokensSchema.d.ts
2681
- declare const tokensSchema: alepha1543.TObject<{
2682
- provider: alepha1543.TString;
2683
- access_token: alepha1543.TString;
2684
- issued_at: alepha1543.TNumber;
2685
- expires_in: alepha1543.TOptional<alepha1543.TNumber>;
2686
- refresh_token: alepha1543.TOptional<alepha1543.TString>;
2687
- refresh_token_expires_in: alepha1543.TOptional<alepha1543.TNumber>;
2688
- refresh_expires_in: alepha1543.TOptional<alepha1543.TNumber>;
2689
- id_token: alepha1543.TOptional<alepha1543.TString>;
2690
- scope: alepha1543.TOptional<alepha1543.TString>;
2694
+ declare const tokensSchema: alepha1962.TObject<{
2695
+ provider: alepha1962.TString;
2696
+ access_token: alepha1962.TString;
2697
+ issued_at: alepha1962.TNumber;
2698
+ expires_in: alepha1962.TOptional<alepha1962.TNumber>;
2699
+ refresh_token: alepha1962.TOptional<alepha1962.TString>;
2700
+ refresh_token_expires_in: alepha1962.TOptional<alepha1962.TNumber>;
2701
+ refresh_expires_in: alepha1962.TOptional<alepha1962.TNumber>;
2702
+ id_token: alepha1962.TOptional<alepha1962.TString>;
2703
+ scope: alepha1962.TOptional<alepha1962.TString>;
2691
2704
  }>;
2692
2705
  type Tokens = Static<typeof tokensSchema>;
2693
2706
  //#endregion
@@ -2757,8 +2770,8 @@ declare class ReactAuth {
2757
2770
  protected readonly alepha: Alepha;
2758
2771
  protected readonly httpClient: HttpClient;
2759
2772
  protected readonly linkProvider: LinkProvider;
2760
- protected readonly onBeginTransition: alepha1543.HookPrimitive<"react:transition:begin">;
2761
- protected readonly onFetchRequest: alepha1543.HookPrimitive<"client:onRequest">;
2773
+ protected readonly onBeginTransition: alepha1962.HookPrimitive<"react:transition:begin">;
2774
+ protected readonly onFetchRequest: alepha1962.HookPrimitive<"client:onRequest">;
2762
2775
  /**
2763
2776
  * Get the current authenticated user.
2764
2777
  *
@@ -2781,6 +2794,7 @@ declare class ReactAuth {
2781
2794
  username?: string;
2782
2795
  password?: string;
2783
2796
  redirect?: string;
2797
+ realm?: string;
2784
2798
  [extra: string]: any;
2785
2799
  }): Promise<Tokens>;
2786
2800
  logout(): void;
@@ -3690,11 +3704,11 @@ declare class DrizzleKitProvider {
3690
3704
  */
3691
3705
  importDrizzleKit(): typeof DrizzleKit;
3692
3706
  }
3693
- declare const devMigrationsSchema: alepha1543.TObject<{
3694
- id: alepha1543.TNumber;
3695
- name: alepha1543.TString;
3696
- snapshot: alepha1543.TString;
3697
- created_at: alepha1543.TString;
3707
+ declare const devMigrationsSchema: alepha1962.TObject<{
3708
+ id: alepha1962.TNumber;
3709
+ name: alepha1962.TString;
3710
+ snapshot: alepha1962.TString;
3711
+ created_at: alepha1962.TString;
3698
3712
  }>;
3699
3713
  type DevMigrations = Static<typeof devMigrationsSchema>;
3700
3714
  //#endregion
@@ -3891,7 +3905,7 @@ declare class QueryManager {
3891
3905
  createPagination<T$1>(entities: T$1[], limit?: number, offset?: number, sort?: Array<{
3892
3906
  column: string;
3893
3907
  direction: "asc" | "desc";
3894
- }>): alepha1543.Page<T$1>;
3908
+ }>): alepha1962.Page<T$1>;
3895
3909
  }
3896
3910
  interface PgJoin {
3897
3911
  table: string;
@@ -4062,11 +4076,15 @@ declare abstract class Repository<T$1 extends TObject> {
4062
4076
  /**
4063
4077
  * Create many entities.
4064
4078
  *
4079
+ * Inserts are batched in chunks of 1000 to avoid hitting database limits.
4080
+ *
4065
4081
  * @param values The entities to create.
4066
4082
  * @param opts The statement options.
4067
4083
  * @returns The created entities.
4068
4084
  */
4069
- createMany(values: Array<Static<TObjectInsert<T$1>>>, opts?: StatementOptions): Promise<Static<T$1>[]>;
4085
+ createMany(values: Array<Static<TObjectInsert<T$1>>>, opts?: StatementOptions & {
4086
+ batchSize?: number;
4087
+ }): Promise<Static<T$1>[]>;
4070
4088
  /**
4071
4089
  * Find an entity and update it.
4072
4090
  */
@@ -4195,19 +4213,254 @@ interface StatementOptions {
4195
4213
  now?: DateTime | string;
4196
4214
  }
4197
4215
  //#endregion
4216
+ //#region ../../../alepha/src/topic/providers/TopicProvider.d.ts
4217
+ /**
4218
+ * Base class for topic providers.
4219
+ */
4220
+ declare abstract class TopicProvider {
4221
+ protected readonly alepha: Alepha;
4222
+ /**
4223
+ * Publish a message to a topic.
4224
+ *
4225
+ * @param topic - The topic to publish to.
4226
+ * @param message - The message to publish.
4227
+ */
4228
+ abstract publish(topic: string, message: string): Promise<void>;
4229
+ /**
4230
+ * Subscribe to a topic.
4231
+ *
4232
+ * @param topic - The topic to subscribe to.
4233
+ * @param callback - The callback to call when a message is received.
4234
+ */
4235
+ abstract subscribe(topic: string, callback: SubscribeCallback): Promise<UnSubscribeFn>;
4236
+ /**
4237
+ * Unsubscribe from a topic.
4238
+ *
4239
+ * @param topic - The topic to unsubscribe from.
4240
+ */
4241
+ abstract unsubscribe(topic: string): Promise<void>;
4242
+ /**
4243
+ * Returns the list of $subscribers for this provider.
4244
+ */
4245
+ protected subscribers(): Array<() => Promise<unknown>>;
4246
+ }
4247
+ type SubscribeCallback = (message: string) => Promise<void> | void;
4248
+ type UnSubscribeFn = () => Promise<void>;
4249
+ //#endregion
4250
+ //#region ../../../alepha/src/topic/primitives/$topic.d.ts
4251
+ interface TopicPrimitiveOptions<T$1 extends TopicMessageSchema> {
4252
+ /**
4253
+ * Unique name identifier for the topic.
4254
+ *
4255
+ * This name is used for:
4256
+ * - Topic identification across the pub/sub system
4257
+ * - Message routing between publishers and subscribers
4258
+ * - Logging and debugging topic-related operations
4259
+ * - Provider-specific topic management (channels, keys, etc.)
4260
+ *
4261
+ * If not provided, defaults to the property key where the topic is declared.
4262
+ *
4263
+ * **Naming Conventions**:
4264
+ * - Use descriptive, hierarchical names: "user.activity", "order.events"
4265
+ * - Avoid spaces and special characters
4266
+ * - Consider using dot notation for categorization
4267
+ * - Keep names concise but meaningful
4268
+ *
4269
+ * @example "user-activity"
4270
+ * @example "chat.messages"
4271
+ * @example "system.health.checks"
4272
+ * @example "payment.webhooks"
4273
+ */
4274
+ name?: string;
4275
+ /**
4276
+ * Human-readable description of the topic's purpose and usage.
4277
+ *
4278
+ * Used for:
4279
+ * - Documentation generation and API references
4280
+ * - Developer onboarding and understanding
4281
+ * - Monitoring dashboards and admin interfaces
4282
+ * - Team communication about system architecture
4283
+ *
4284
+ * **Description Best Practices**:
4285
+ * - Explain what events/messages this topic handles
4286
+ * - Mention key use cases and subscribers
4287
+ * - Include any important timing or ordering guarantees
4288
+ * - Note any special processing requirements
4289
+ *
4290
+ * @example "Real-time user activity events for analytics and notifications"
4291
+ * @example "Order lifecycle events from creation to delivery"
4292
+ * @example "Chat messages broadcast to all room participants"
4293
+ * @example "System health checks and service status updates"
4294
+ */
4295
+ description?: string;
4296
+ /**
4297
+ * Topic provider configuration for message storage and delivery.
4298
+ *
4299
+ * Options:
4300
+ * - **"memory"**: In-memory provider (default for development, lost on restart)
4301
+ * - **Service<TopicProvider>**: Custom provider class (e.g., RedisTopicProvider)
4302
+ * - **undefined**: Uses the default topic provider from dependency injection
4303
+ *
4304
+ * **Provider Selection Guidelines**:
4305
+ * - **Development**: Use "memory" for fast, simple testing without external dependencies
4306
+ * - **Production**: Use Redis or message brokers for persistence and scalability
4307
+ * - **Distributed systems**: Use Redis/RabbitMQ for cross-service communication
4308
+ * - **High-throughput**: Use specialized providers with connection pooling
4309
+ * - **Real-time**: Ensure provider supports low-latency message delivery
4310
+ *
4311
+ * **Provider Capabilities**:
4312
+ * - Message persistence and durability
4313
+ * - Subscriber management and connection handling
4314
+ * - Message ordering and delivery guarantees
4315
+ * - Horizontal scaling and load distribution
4316
+ *
4317
+ * @default Uses injected TopicProvider
4318
+ * @example "memory"
4319
+ * @example RedisTopicProvider
4320
+ * @example RabbitMQTopicProvider
4321
+ */
4322
+ provider?: "memory" | Service<TopicProvider>;
4323
+ /**
4324
+ * TypeBox schema defining the structure of messages published to this topic.
4325
+ *
4326
+ * The schema must include:
4327
+ * - **payload**: Required schema for the main message data
4328
+ * - **headers**: Optional schema for message metadata
4329
+ *
4330
+ * This schema:
4331
+ * - Validates all messages published to the topic
4332
+ * - Provides full TypeScript type inference for subscribers
4333
+ * - Ensures type safety between publishers and subscribers
4334
+ * - Enables automatic serialization/deserialization
4335
+ *
4336
+ * **Schema Design Best Practices**:
4337
+ * - Keep payload schemas focused and cohesive
4338
+ * - Use optional fields for data that might not always be present
4339
+ * - Include timestamp fields for event ordering
4340
+ * - Consider versioning for schema evolution
4341
+ * - Use union types for different event types in the same topic
4342
+ *
4343
+ * @example
4344
+ * ```ts
4345
+ * {
4346
+ * payload: t.object({
4347
+ * eventId: t.text(),
4348
+ * eventType: t.enum(["created", "updated"]),
4349
+ * data: t.record(t.text(), t.any()),
4350
+ * timestamp: t.number(),
4351
+ * userId: t.optional(t.text())
4352
+ * }),
4353
+ * headers: t.optional(t.object({
4354
+ * source: t.text(),
4355
+ * correlationId: t.text()
4356
+ * }))
4357
+ * }
4358
+ * ```
4359
+ */
4360
+ schema: T$1;
4361
+ /**
4362
+ * Default subscriber handler function that processes messages published to this topic.
4363
+ *
4364
+ * This handler:
4365
+ * - Automatically subscribes when the topic is initialized
4366
+ * - Receives all messages published to the topic
4367
+ * - Runs for every message without additional subscription setup
4368
+ * - Can be supplemented with additional subscribers via `subscribe()` method
4369
+ * - Should handle errors gracefully to avoid breaking other subscribers
4370
+ *
4371
+ * **Handler Design Guidelines**:
4372
+ * - Keep handlers focused on a single responsibility
4373
+ * - Use proper error handling and logging
4374
+ * - Consider performance impact for high-frequency topics
4375
+ * - Make handlers idempotent when possible
4376
+ * - Validate business rules within the handler logic
4377
+ * - Log important processing steps for debugging
4378
+ *
4379
+ * **Error Handling Strategy**:
4380
+ * - Log errors but don't re-throw to avoid affecting other subscribers
4381
+ * - Use try-catch blocks for external service calls
4382
+ * - Consider implementing circuit breakers for resilience
4383
+ * - Monitor error rates and patterns for system health
4384
+ *
4385
+ * @param message - The topic message with validated payload and headers
4386
+ * @param message.payload - The typed message data based on the schema
4387
+ * @returns Promise that resolves when processing is complete
4388
+ *
4389
+ * @example
4390
+ * ```ts
4391
+ * handler: async (message) => {
4392
+ * const { eventType, data, timestamp } = message.payload;
4393
+ *
4394
+ * try {
4395
+ * // Log message receipt
4396
+ * this.logger.info(`Processing ${eventType} event`, { timestamp, data });
4397
+ *
4398
+ * // Process based on event type
4399
+ * switch (eventType) {
4400
+ * case "created":
4401
+ * await this.handleCreation(data);
4402
+ * break;
4403
+ * case "updated":
4404
+ * await this.handleUpdate(data);
4405
+ * break;
4406
+ * default:
4407
+ * this.logger.warn(`Unknown event type: ${eventType}`);
4408
+ * }
4409
+ *
4410
+ * this.logger.info(`Successfully processed ${eventType} event`);
4411
+ *
4412
+ * } catch (error) {
4413
+ * // Log error but don't re-throw to avoid affecting other subscribers
4414
+ * this.logger.error(`Failed to process ${eventType} event`, {
4415
+ * error: error.message,
4416
+ * eventType,
4417
+ * timestamp,
4418
+ * data
4419
+ * });
4420
+ * }
4421
+ * }
4422
+ * ```
4423
+ */
4424
+ handler?: TopicHandler<T$1>;
4425
+ }
4426
+ declare class TopicPrimitive<T$1 extends TopicMessageSchema> extends Primitive<TopicPrimitiveOptions<T$1>> {
4427
+ protected readonly log: Logger;
4428
+ protected readonly dateTimeProvider: DateTimeProvider;
4429
+ readonly provider: TopicProvider;
4430
+ get name(): string;
4431
+ publish(payload: TopicMessage<T$1>["payload"]): Promise<void>;
4432
+ subscribe(handler: TopicHandler<T$1>): Promise<UnSubscribeFn>;
4433
+ wait(options?: TopicWaitOptions<T$1>): Promise<TopicMessage<T$1>>;
4434
+ protected $provider(): TopicProvider;
4435
+ protected parseMessage(message: string): TopicMessage<T$1>;
4436
+ }
4437
+ interface TopicMessage<T$1 extends TopicMessageSchema> {
4438
+ payload: Static<T$1["payload"]>;
4439
+ }
4440
+ interface TopicWaitOptions<T$1 extends TopicMessageSchema> {
4441
+ timeout?: DurationLike;
4442
+ filter?: (message: {
4443
+ payload: Static<T$1["payload"]>;
4444
+ }) => boolean;
4445
+ }
4446
+ interface TopicMessageSchema {
4447
+ payload: TSchema;
4448
+ }
4449
+ type TopicHandler<T$1 extends TopicMessageSchema = TopicMessageSchema> = (message: TopicMessage<T$1>) => unknown;
4450
+ //#endregion
4198
4451
  //#region ../../../alepha/src/lock/primitives/$lock.d.ts
4199
- declare const envSchema$2: alepha1543.TObject<{
4200
- LOCK_PREFIX_KEY: alepha1543.TString;
4452
+ declare const envSchema$3: alepha1962.TObject<{
4453
+ LOCK_PREFIX_KEY: alepha1962.TString;
4201
4454
  }>;
4202
4455
  declare module "alepha" {
4203
- interface Env extends Partial<Static<typeof envSchema$2>> {}
4456
+ interface Env extends Partial<Static<typeof envSchema$3>> {}
4204
4457
  }
4205
4458
  //#endregion
4206
4459
  //#region ../../../alepha/src/orm/providers/drivers/NodePostgresProvider.d.ts
4207
4460
  declare module "alepha" {
4208
- interface Env extends Partial<Static<typeof envSchema$1>> {}
4461
+ interface Env extends Partial<Static<typeof envSchema$2>> {}
4209
4462
  }
4210
- declare const envSchema$1: alepha1543.TObject<{
4463
+ declare const envSchema$2: alepha1962.TObject<{
4211
4464
  /**
4212
4465
  * Main configuration for database connection.
4213
4466
  * Accept a string in the format of a Postgres connection URL.
@@ -4215,21 +4468,21 @@ declare const envSchema$1: alepha1543.TObject<{
4215
4468
  * or
4216
4469
  * Example: postgres://user:password@localhost:5432/database?sslmode=require
4217
4470
  */
4218
- DATABASE_URL: alepha1543.TOptional<alepha1543.TString>;
4471
+ DATABASE_URL: alepha1962.TOptional<alepha1962.TString>;
4219
4472
  /**
4220
4473
  * In addition to the DATABASE_URL, you can specify the postgres schema name.
4221
4474
  *
4222
4475
  * It will monkey patch drizzle tables.
4223
4476
  */
4224
- POSTGRES_SCHEMA: alepha1543.TOptional<alepha1543.TString>;
4477
+ POSTGRES_SCHEMA: alepha1962.TOptional<alepha1962.TString>;
4225
4478
  }>;
4226
4479
  //#endregion
4227
4480
  //#region ../../../alepha/src/orm/providers/drivers/NodeSqliteProvider.d.ts
4228
4481
  /**
4229
4482
  * Configuration options for the Node.js SQLite database provider.
4230
4483
  */
4231
- declare const nodeSqliteOptions: alepha1543.Atom<alepha1543.TObject<{
4232
- path: alepha1543.TOptional<alepha1543.TString>;
4484
+ declare const nodeSqliteOptions: alepha1962.Atom<alepha1962.TObject<{
4485
+ path: alepha1962.TOptional<alepha1962.TString>;
4233
4486
  }>, "alepha.postgres.node-sqlite.options">;
4234
4487
  type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
4235
4488
  declare module "alepha" {
@@ -4536,8 +4789,8 @@ interface BucketFileOptions {
4536
4789
  /**
4537
4790
  * Local file storage configuration atom
4538
4791
  */
4539
- declare const localFileStorageOptions: alepha1543.Atom<alepha1543.TObject<{
4540
- storagePath: alepha1543.TString;
4792
+ declare const localFileStorageOptions: alepha1962.Atom<alepha1962.TObject<{
4793
+ storagePath: alepha1962.TString;
4541
4794
  }>, "alepha.bucket.local.options">;
4542
4795
  type LocalFileStorageProviderOptions = Static<typeof localFileStorageOptions.schema>;
4543
4796
  declare module "alepha" {
@@ -4581,72 +4834,72 @@ declare module "alepha" {
4581
4834
  */
4582
4835
  //#endregion
4583
4836
  //#region ../../../alepha/src/api-files/entities/files.d.ts
4584
- declare const files: EntityPrimitive<alepha1543.TObject<{
4585
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
4586
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
4587
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
4588
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
4589
- blobId: alepha1543.TString;
4590
- creator: alepha1543.TOptional<alepha1543.TString>;
4591
- creatorRealm: alepha1543.TOptional<alepha1543.TString>;
4592
- creatorName: alepha1543.TOptional<alepha1543.TString>;
4593
- bucket: alepha1543.TString;
4594
- expirationDate: alepha1543.TOptional<alepha1543.TString>;
4595
- name: alepha1543.TString;
4596
- size: alepha1543.TNumber;
4597
- mimeType: alepha1543.TString;
4598
- tags: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
4599
- checksum: alepha1543.TOptional<alepha1543.TString>;
4837
+ declare const files: EntityPrimitive<alepha1962.TObject<{
4838
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
4839
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
4840
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
4841
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
4842
+ blobId: alepha1962.TString;
4843
+ creator: alepha1962.TOptional<alepha1962.TString>;
4844
+ creatorRealm: alepha1962.TOptional<alepha1962.TString>;
4845
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
4846
+ bucket: alepha1962.TString;
4847
+ expirationDate: alepha1962.TOptional<alepha1962.TString>;
4848
+ name: alepha1962.TString;
4849
+ size: alepha1962.TNumber;
4850
+ mimeType: alepha1962.TString;
4851
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
4852
+ checksum: alepha1962.TOptional<alepha1962.TString>;
4600
4853
  }>>;
4601
4854
  type FileEntity = Static<typeof files.schema>;
4602
4855
  //#endregion
4603
4856
  //#region ../../../alepha/src/api-files/schemas/fileQuerySchema.d.ts
4604
- declare const fileQuerySchema: alepha1543.TObject<{
4605
- page: alepha1543.TOptional<alepha1543.TInteger>;
4606
- size: alepha1543.TOptional<alepha1543.TInteger>;
4607
- sort: alepha1543.TOptional<alepha1543.TString>;
4608
- bucket: alepha1543.TOptional<alepha1543.TString>;
4609
- tags: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
4610
- name: alepha1543.TOptional<alepha1543.TString>;
4611
- mimeType: alepha1543.TOptional<alepha1543.TString>;
4612
- creator: alepha1543.TOptional<alepha1543.TString>;
4613
- createdAfter: alepha1543.TOptional<alepha1543.TString>;
4614
- createdBefore: alepha1543.TOptional<alepha1543.TString>;
4857
+ declare const fileQuerySchema: alepha1962.TObject<{
4858
+ page: alepha1962.TOptional<alepha1962.TInteger>;
4859
+ size: alepha1962.TOptional<alepha1962.TInteger>;
4860
+ sort: alepha1962.TOptional<alepha1962.TString>;
4861
+ bucket: alepha1962.TOptional<alepha1962.TString>;
4862
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
4863
+ name: alepha1962.TOptional<alepha1962.TString>;
4864
+ mimeType: alepha1962.TOptional<alepha1962.TString>;
4865
+ creator: alepha1962.TOptional<alepha1962.TString>;
4866
+ createdAfter: alepha1962.TOptional<alepha1962.TString>;
4867
+ createdBefore: alepha1962.TOptional<alepha1962.TString>;
4615
4868
  }>;
4616
4869
  type FileQuery = Static<typeof fileQuerySchema>;
4617
4870
  //#endregion
4618
4871
  //#region ../../../alepha/src/api-files/schemas/fileResourceSchema.d.ts
4619
- declare const fileResourceSchema: alepha1543.TObject<{
4620
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
4621
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
4622
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
4623
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
4624
- blobId: alepha1543.TString;
4625
- creator: alepha1543.TOptional<alepha1543.TString>;
4626
- creatorRealm: alepha1543.TOptional<alepha1543.TString>;
4627
- creatorName: alepha1543.TOptional<alepha1543.TString>;
4628
- bucket: alepha1543.TString;
4629
- expirationDate: alepha1543.TOptional<alepha1543.TString>;
4630
- name: alepha1543.TString;
4631
- size: alepha1543.TNumber;
4632
- mimeType: alepha1543.TString;
4633
- tags: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
4634
- checksum: alepha1543.TOptional<alepha1543.TString>;
4872
+ declare const fileResourceSchema: alepha1962.TObject<{
4873
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
4874
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
4875
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
4876
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
4877
+ blobId: alepha1962.TString;
4878
+ creator: alepha1962.TOptional<alepha1962.TString>;
4879
+ creatorRealm: alepha1962.TOptional<alepha1962.TString>;
4880
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
4881
+ bucket: alepha1962.TString;
4882
+ expirationDate: alepha1962.TOptional<alepha1962.TString>;
4883
+ name: alepha1962.TString;
4884
+ size: alepha1962.TNumber;
4885
+ mimeType: alepha1962.TString;
4886
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
4887
+ checksum: alepha1962.TOptional<alepha1962.TString>;
4635
4888
  }>;
4636
4889
  type FileResource = Static<typeof fileResourceSchema>;
4637
4890
  //#endregion
4638
4891
  //#region ../../../alepha/src/api-files/schemas/storageStatsSchema.d.ts
4639
- declare const storageStatsSchema: alepha1543.TObject<{
4640
- totalSize: alepha1543.TNumber;
4641
- totalFiles: alepha1543.TNumber;
4642
- byBucket: alepha1543.TArray<alepha1543.TObject<{
4643
- bucket: alepha1543.TString;
4644
- totalSize: alepha1543.TNumber;
4645
- fileCount: alepha1543.TNumber;
4892
+ declare const storageStatsSchema: alepha1962.TObject<{
4893
+ totalSize: alepha1962.TNumber;
4894
+ totalFiles: alepha1962.TNumber;
4895
+ byBucket: alepha1962.TArray<alepha1962.TObject<{
4896
+ bucket: alepha1962.TString;
4897
+ totalSize: alepha1962.TNumber;
4898
+ fileCount: alepha1962.TNumber;
4646
4899
  }>>;
4647
- byMimeType: alepha1543.TArray<alepha1543.TObject<{
4648
- mimeType: alepha1543.TString;
4649
- fileCount: alepha1543.TNumber;
4900
+ byMimeType: alepha1962.TArray<alepha1962.TObject<{
4901
+ mimeType: alepha1962.TString;
4902
+ fileCount: alepha1962.TNumber;
4650
4903
  }>>;
4651
4904
  }>;
4652
4905
  type StorageStats = Static<typeof storageStatsSchema>;
@@ -4655,27 +4908,27 @@ type StorageStats = Static<typeof storageStatsSchema>;
4655
4908
  declare class FileService {
4656
4909
  protected readonly alepha: Alepha;
4657
4910
  protected readonly log: Logger;
4658
- protected readonly fileRepository: Repository<alepha1543.TObject<{
4659
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
4660
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
4661
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
4662
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
4663
- blobId: alepha1543.TString;
4664
- creator: alepha1543.TOptional<alepha1543.TString>;
4665
- creatorRealm: alepha1543.TOptional<alepha1543.TString>;
4666
- creatorName: alepha1543.TOptional<alepha1543.TString>;
4667
- bucket: alepha1543.TString;
4668
- expirationDate: alepha1543.TOptional<alepha1543.TString>;
4669
- name: alepha1543.TString;
4670
- size: alepha1543.TNumber;
4671
- mimeType: alepha1543.TString;
4672
- tags: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
4673
- checksum: alepha1543.TOptional<alepha1543.TString>;
4911
+ protected readonly fileRepository: Repository<alepha1962.TObject<{
4912
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
4913
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
4914
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
4915
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
4916
+ blobId: alepha1962.TString;
4917
+ creator: alepha1962.TOptional<alepha1962.TString>;
4918
+ creatorRealm: alepha1962.TOptional<alepha1962.TString>;
4919
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
4920
+ bucket: alepha1962.TString;
4921
+ expirationDate: alepha1962.TOptional<alepha1962.TString>;
4922
+ name: alepha1962.TString;
4923
+ size: alepha1962.TNumber;
4924
+ mimeType: alepha1962.TString;
4925
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
4926
+ checksum: alepha1962.TOptional<alepha1962.TString>;
4674
4927
  }>>;
4675
4928
  protected readonly dateTimeProvider: DateTimeProvider;
4676
4929
  protected readonly defaultBucket: BucketPrimitive;
4677
- protected onUploadFile: alepha1543.HookPrimitive<"bucket:file:uploaded">;
4678
- protected onDeleteBucketFile: alepha1543.HookPrimitive<"bucket:file:deleted">;
4930
+ protected onUploadFile: alepha1962.HookPrimitive<"bucket:file:uploaded">;
4931
+ protected onDeleteBucketFile: alepha1962.HookPrimitive<"bucket:file:deleted">;
4679
4932
  /**
4680
4933
  * Calculates SHA-256 checksum of a file.
4681
4934
  *
@@ -4809,34 +5062,34 @@ declare class FileController {
4809
5062
  * Supports filtering by bucket and tags.
4810
5063
  */
4811
5064
  readonly findFiles: ActionPrimitiveFn<{
4812
- query: alepha1543.TObject<{
4813
- page: alepha1543.TOptional<alepha1543.TInteger>;
4814
- size: alepha1543.TOptional<alepha1543.TInteger>;
4815
- sort: alepha1543.TOptional<alepha1543.TString>;
4816
- bucket: alepha1543.TOptional<alepha1543.TString>;
4817
- tags: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
4818
- name: alepha1543.TOptional<alepha1543.TString>;
4819
- mimeType: alepha1543.TOptional<alepha1543.TString>;
4820
- creator: alepha1543.TOptional<alepha1543.TString>;
4821
- createdAfter: alepha1543.TOptional<alepha1543.TString>;
4822
- createdBefore: alepha1543.TOptional<alepha1543.TString>;
5065
+ query: alepha1962.TObject<{
5066
+ page: alepha1962.TOptional<alepha1962.TInteger>;
5067
+ size: alepha1962.TOptional<alepha1962.TInteger>;
5068
+ sort: alepha1962.TOptional<alepha1962.TString>;
5069
+ bucket: alepha1962.TOptional<alepha1962.TString>;
5070
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
5071
+ name: alepha1962.TOptional<alepha1962.TString>;
5072
+ mimeType: alepha1962.TOptional<alepha1962.TString>;
5073
+ creator: alepha1962.TOptional<alepha1962.TString>;
5074
+ createdAfter: alepha1962.TOptional<alepha1962.TString>;
5075
+ createdBefore: alepha1962.TOptional<alepha1962.TString>;
4823
5076
  }>;
4824
- response: alepha1543.TPage<alepha1543.TObject<{
4825
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
4826
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
4827
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
4828
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
4829
- blobId: alepha1543.TString;
4830
- creator: alepha1543.TOptional<alepha1543.TString>;
4831
- creatorRealm: alepha1543.TOptional<alepha1543.TString>;
4832
- creatorName: alepha1543.TOptional<alepha1543.TString>;
4833
- bucket: alepha1543.TString;
4834
- expirationDate: alepha1543.TOptional<alepha1543.TString>;
4835
- name: alepha1543.TString;
4836
- size: alepha1543.TNumber;
4837
- mimeType: alepha1543.TString;
4838
- tags: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
4839
- checksum: alepha1543.TOptional<alepha1543.TString>;
5077
+ response: alepha1962.TPage<alepha1962.TObject<{
5078
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5079
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5080
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5081
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5082
+ blobId: alepha1962.TString;
5083
+ creator: alepha1962.TOptional<alepha1962.TString>;
5084
+ creatorRealm: alepha1962.TOptional<alepha1962.TString>;
5085
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
5086
+ bucket: alepha1962.TString;
5087
+ expirationDate: alepha1962.TOptional<alepha1962.TString>;
5088
+ name: alepha1962.TString;
5089
+ size: alepha1962.TNumber;
5090
+ mimeType: alepha1962.TString;
5091
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
5092
+ checksum: alepha1962.TOptional<alepha1962.TString>;
4840
5093
  }>>;
4841
5094
  }>;
4842
5095
  /**
@@ -4844,13 +5097,13 @@ declare class FileController {
4844
5097
  * Removes the file from the bucket and cleans up the database record.
4845
5098
  */
4846
5099
  readonly deleteFile: ActionPrimitiveFn<{
4847
- params: alepha1543.TObject<{
4848
- id: alepha1543.TString;
5100
+ params: alepha1962.TObject<{
5101
+ id: alepha1962.TString;
4849
5102
  }>;
4850
- response: alepha1543.TObject<{
4851
- ok: alepha1543.TBoolean;
4852
- id: alepha1543.TOptional<alepha1543.TUnion<[alepha1543.TString, alepha1543.TInteger]>>;
4853
- count: alepha1543.TOptional<alepha1543.TNumber>;
5103
+ response: alepha1962.TObject<{
5104
+ ok: alepha1962.TBoolean;
5105
+ id: alepha1962.TOptional<alepha1962.TUnion<[alepha1962.TString, alepha1962.TInteger]>>;
5106
+ count: alepha1962.TOptional<alepha1962.TNumber>;
4854
5107
  }>;
4855
5108
  }>;
4856
5109
  /**
@@ -4859,29 +5112,29 @@ declare class FileController {
4859
5112
  * Optionally specify bucket and expiration date.
4860
5113
  */
4861
5114
  readonly uploadFile: ActionPrimitiveFn<{
4862
- body: alepha1543.TObject<{
4863
- file: alepha1543.TFile;
5115
+ body: alepha1962.TObject<{
5116
+ file: alepha1962.TFile;
4864
5117
  }>;
4865
- query: alepha1543.TObject<{
4866
- expirationDate: alepha1543.TOptional<alepha1543.TString>;
4867
- bucket: alepha1543.TOptional<alepha1543.TString>;
5118
+ query: alepha1962.TObject<{
5119
+ expirationDate: alepha1962.TOptional<alepha1962.TString>;
5120
+ bucket: alepha1962.TOptional<alepha1962.TString>;
4868
5121
  }>;
4869
- response: alepha1543.TObject<{
4870
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
4871
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
4872
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
4873
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
4874
- blobId: alepha1543.TString;
4875
- creator: alepha1543.TOptional<alepha1543.TString>;
4876
- creatorRealm: alepha1543.TOptional<alepha1543.TString>;
4877
- creatorName: alepha1543.TOptional<alepha1543.TString>;
4878
- bucket: alepha1543.TString;
4879
- expirationDate: alepha1543.TOptional<alepha1543.TString>;
4880
- name: alepha1543.TString;
4881
- size: alepha1543.TNumber;
4882
- mimeType: alepha1543.TString;
4883
- tags: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
4884
- checksum: alepha1543.TOptional<alepha1543.TString>;
5122
+ response: alepha1962.TObject<{
5123
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5124
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5125
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5126
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5127
+ blobId: alepha1962.TString;
5128
+ creator: alepha1962.TOptional<alepha1962.TString>;
5129
+ creatorRealm: alepha1962.TOptional<alepha1962.TString>;
5130
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
5131
+ bucket: alepha1962.TString;
5132
+ expirationDate: alepha1962.TOptional<alepha1962.TString>;
5133
+ name: alepha1962.TString;
5134
+ size: alepha1962.TNumber;
5135
+ mimeType: alepha1962.TString;
5136
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
5137
+ checksum: alepha1962.TOptional<alepha1962.TString>;
4885
5138
  }>;
4886
5139
  }>;
4887
5140
  /**
@@ -4889,30 +5142,30 @@ declare class FileController {
4889
5142
  * Allows updating name, tags, and expiration date without modifying file content.
4890
5143
  */
4891
5144
  readonly updateFile: ActionPrimitiveFn<{
4892
- params: alepha1543.TObject<{
4893
- id: alepha1543.TString;
5145
+ params: alepha1962.TObject<{
5146
+ id: alepha1962.TString;
4894
5147
  }>;
4895
- body: alepha1543.TObject<{
4896
- name: alepha1543.TOptional<alepha1543.TString>;
4897
- tags: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
4898
- expirationDate: alepha1543.TOptional<alepha1543.TString>;
5148
+ body: alepha1962.TObject<{
5149
+ name: alepha1962.TOptional<alepha1962.TString>;
5150
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
5151
+ expirationDate: alepha1962.TOptional<alepha1962.TString>;
4899
5152
  }>;
4900
- response: alepha1543.TObject<{
4901
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
4902
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
4903
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
4904
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
4905
- blobId: alepha1543.TString;
4906
- creator: alepha1543.TOptional<alepha1543.TString>;
4907
- creatorRealm: alepha1543.TOptional<alepha1543.TString>;
4908
- creatorName: alepha1543.TOptional<alepha1543.TString>;
4909
- bucket: alepha1543.TString;
4910
- expirationDate: alepha1543.TOptional<alepha1543.TString>;
4911
- name: alepha1543.TString;
4912
- size: alepha1543.TNumber;
4913
- mimeType: alepha1543.TString;
4914
- tags: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
4915
- checksum: alepha1543.TOptional<alepha1543.TString>;
5153
+ response: alepha1962.TObject<{
5154
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5155
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5156
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5157
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5158
+ blobId: alepha1962.TString;
5159
+ creator: alepha1962.TOptional<alepha1962.TString>;
5160
+ creatorRealm: alepha1962.TOptional<alepha1962.TString>;
5161
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
5162
+ bucket: alepha1962.TString;
5163
+ expirationDate: alepha1962.TOptional<alepha1962.TString>;
5164
+ name: alepha1962.TString;
5165
+ size: alepha1962.TNumber;
5166
+ mimeType: alepha1962.TString;
5167
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
5168
+ checksum: alepha1962.TOptional<alepha1962.TString>;
4916
5169
  }>;
4917
5170
  }>;
4918
5171
  /**
@@ -4921,10 +5174,10 @@ declare class FileController {
4921
5174
  * Cached with ETag support for 1 year (immutable).
4922
5175
  */
4923
5176
  readonly streamFile: ActionPrimitiveFn<{
4924
- params: alepha1543.TObject<{
4925
- id: alepha1543.TString;
5177
+ params: alepha1962.TObject<{
5178
+ id: alepha1962.TString;
4926
5179
  }>;
4927
- response: alepha1543.TFile;
5180
+ response: alepha1962.TFile;
4928
5181
  }>;
4929
5182
  }
4930
5183
  //#endregion
@@ -5226,52 +5479,52 @@ declare class BatchPrimitive<TItem extends TSchema, TResponse = any> extends Pri
5226
5479
  * @returns The number of items cleared
5227
5480
  */
5228
5481
  clearCompleted(status?: "completed" | "failed"): number;
5229
- protected readonly onReady: alepha1543.HookPrimitive<"ready">;
5230
- protected readonly dispose: alepha1543.HookPrimitive<"stop">;
5482
+ protected readonly onReady: alepha1962.HookPrimitive<"ready">;
5483
+ protected readonly dispose: alepha1962.HookPrimitive<"stop">;
5231
5484
  }
5232
5485
  //#endregion
5233
5486
  //#region ../../../alepha/src/api-notifications/entities/notifications.d.ts
5234
- declare const notifications: EntityPrimitive<alepha1543.TObject<{
5235
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5236
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5237
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5238
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5239
- type: alepha1543.TUnsafe<"email" | "sms">;
5240
- template: alepha1543.TString;
5241
- category: alepha1543.TOptional<alepha1543.TString>;
5242
- critical: alepha1543.TOptional<alepha1543.TBoolean>;
5243
- sensitive: alepha1543.TOptional<alepha1543.TBoolean>;
5244
- contact: alepha1543.TString;
5245
- variables: alepha1543.TOptional<alepha1543.TRecord<"^.*$", alepha1543.TAny>>;
5246
- scheduledAt: alepha1543.TOptional<alepha1543.TString>;
5247
- sentAt: alepha1543.TOptional<alepha1543.TString>;
5248
- error: alepha1543.TOptional<alepha1543.TObject<{
5249
- at: alepha1543.TString;
5250
- name: alepha1543.TString;
5251
- message: alepha1543.TString;
5487
+ declare const notifications: EntityPrimitive<alepha1962.TObject<{
5488
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5489
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5490
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5491
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5492
+ type: alepha1962.TUnsafe<"email" | "sms">;
5493
+ template: alepha1962.TString;
5494
+ category: alepha1962.TOptional<alepha1962.TString>;
5495
+ critical: alepha1962.TOptional<alepha1962.TBoolean>;
5496
+ sensitive: alepha1962.TOptional<alepha1962.TBoolean>;
5497
+ contact: alepha1962.TString;
5498
+ variables: alepha1962.TOptional<alepha1962.TRecord<"^.*$", alepha1962.TAny>>;
5499
+ scheduledAt: alepha1962.TOptional<alepha1962.TString>;
5500
+ sentAt: alepha1962.TOptional<alepha1962.TString>;
5501
+ error: alepha1962.TOptional<alepha1962.TObject<{
5502
+ at: alepha1962.TString;
5503
+ name: alepha1962.TString;
5504
+ message: alepha1962.TString;
5252
5505
  }>>;
5253
5506
  }>>;
5254
5507
  type NotificationEntity = Static<typeof notifications.schema>;
5255
5508
  //#endregion
5256
5509
  //#region ../../../alepha/src/api-notifications/schemas/notificationCreateSchema.d.ts
5257
- declare const notificationCreateSchema: alepha1543.TObject<{
5258
- type: alepha1543.TUnsafe<"email" | "sms">;
5259
- template: alepha1543.TString;
5260
- contact: alepha1543.TString;
5261
- variables: alepha1543.TOptional<alepha1543.TRecord<"^.*$", alepha1543.TAny>>;
5510
+ declare const notificationCreateSchema: alepha1962.TObject<{
5511
+ type: alepha1962.TUnsafe<"email" | "sms">;
5512
+ template: alepha1962.TString;
5513
+ contact: alepha1962.TString;
5514
+ variables: alepha1962.TOptional<alepha1962.TRecord<"^.*$", alepha1962.TAny>>;
5262
5515
  }>;
5263
5516
  type NotificationCreate = Static<typeof notificationCreateSchema>;
5264
5517
  //#endregion
5265
5518
  //#region ../../../alepha/src/api-notifications/schemas/notificationQuerySchema.d.ts
5266
- declare const notificationQuerySchema: alepha1543.TObject<{
5267
- page: alepha1543.TOptional<alepha1543.TInteger>;
5268
- size: alepha1543.TOptional<alepha1543.TInteger>;
5269
- sort: alepha1543.TOptional<alepha1543.TString>;
5270
- type: alepha1543.TOptional<alepha1543.TUnsafe<"email" | "sms">>;
5271
- template: alepha1543.TOptional<alepha1543.TString>;
5272
- contact: alepha1543.TOptional<alepha1543.TString>;
5273
- category: alepha1543.TOptional<alepha1543.TString>;
5274
- status: alepha1543.TOptional<alepha1543.TUnsafe<"pending" | "sent" | "failed">>;
5519
+ declare const notificationQuerySchema: alepha1962.TObject<{
5520
+ page: alepha1962.TOptional<alepha1962.TInteger>;
5521
+ size: alepha1962.TOptional<alepha1962.TInteger>;
5522
+ sort: alepha1962.TOptional<alepha1962.TString>;
5523
+ type: alepha1962.TOptional<alepha1962.TUnsafe<"email" | "sms">>;
5524
+ template: alepha1962.TOptional<alepha1962.TString>;
5525
+ contact: alepha1962.TOptional<alepha1962.TString>;
5526
+ category: alepha1962.TOptional<alepha1962.TString>;
5527
+ status: alepha1962.TOptional<alepha1962.TUnsafe<"pending" | "sent" | "failed">>;
5275
5528
  }>;
5276
5529
  type NotificationQuery = Static<typeof notificationQuerySchema>;
5277
5530
  //#endregion
@@ -5406,24 +5659,24 @@ declare module "alepha" {
5406
5659
  declare class NotificationSenderService {
5407
5660
  protected readonly alepha: Alepha;
5408
5661
  protected readonly log: Logger;
5409
- protected readonly notificationRepository: Repository<alepha1543.TObject<{
5410
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5411
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5412
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5413
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5414
- type: alepha1543.TUnsafe<"email" | "sms">;
5415
- template: alepha1543.TString;
5416
- category: alepha1543.TOptional<alepha1543.TString>;
5417
- critical: alepha1543.TOptional<alepha1543.TBoolean>;
5418
- sensitive: alepha1543.TOptional<alepha1543.TBoolean>;
5419
- contact: alepha1543.TString;
5420
- variables: alepha1543.TOptional<alepha1543.TRecord<"^.*$", alepha1543.TAny>>;
5421
- scheduledAt: alepha1543.TOptional<alepha1543.TString>;
5422
- sentAt: alepha1543.TOptional<alepha1543.TString>;
5423
- error: alepha1543.TOptional<alepha1543.TObject<{
5424
- at: alepha1543.TString;
5425
- name: alepha1543.TString;
5426
- message: alepha1543.TString;
5662
+ protected readonly notificationRepository: Repository<alepha1962.TObject<{
5663
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5664
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5665
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5666
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5667
+ type: alepha1962.TUnsafe<"email" | "sms">;
5668
+ template: alepha1962.TString;
5669
+ category: alepha1962.TOptional<alepha1962.TString>;
5670
+ critical: alepha1962.TOptional<alepha1962.TBoolean>;
5671
+ sensitive: alepha1962.TOptional<alepha1962.TBoolean>;
5672
+ contact: alepha1962.TString;
5673
+ variables: alepha1962.TOptional<alepha1962.TRecord<"^.*$", alepha1962.TAny>>;
5674
+ scheduledAt: alepha1962.TOptional<alepha1962.TString>;
5675
+ sentAt: alepha1962.TOptional<alepha1962.TString>;
5676
+ error: alepha1962.TOptional<alepha1962.TObject<{
5677
+ at: alepha1962.TString;
5678
+ name: alepha1962.TString;
5679
+ message: alepha1962.TString;
5427
5680
  }>>;
5428
5681
  }>>;
5429
5682
  protected readonly dateTimeProvider: DateTimeProvider;
@@ -5440,15 +5693,15 @@ declare class NotificationSenderService {
5440
5693
  body: string;
5441
5694
  };
5442
5695
  protected load(notification: NotificationEntity): {
5443
- template: NotificationPrimitive<alepha1543.TObject<alepha1543.TProperties>>;
5696
+ template: NotificationPrimitive<alepha1962.TObject<alepha1962.TProperties>>;
5444
5697
  variables: Record<string, any>;
5445
5698
  contact: string;
5446
5699
  };
5447
5700
  }
5448
5701
  //#endregion
5449
5702
  //#region ../../../alepha/src/api-notifications/services/NotificationService.d.ts
5450
- declare const notificationServiceEnvSchema: alepha1543.TObject<{
5451
- NOTIFICATION_QUEUE: alepha1543.TOptional<alepha1543.TBoolean>;
5703
+ declare const notificationServiceEnvSchema: alepha1962.TObject<{
5704
+ NOTIFICATION_QUEUE: alepha1962.TOptional<alepha1962.TBoolean>;
5452
5705
  }>;
5453
5706
  declare module "alepha" {
5454
5707
  interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
@@ -5459,71 +5712,71 @@ declare class NotificationService {
5459
5712
  protected readonly env: {
5460
5713
  NOTIFICATION_QUEUE?: boolean | undefined;
5461
5714
  };
5462
- protected readonly notificationRepository: Repository<alepha1543.TObject<{
5463
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5464
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5465
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5466
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5467
- type: alepha1543.TUnsafe<"email" | "sms">;
5468
- template: alepha1543.TString;
5469
- category: alepha1543.TOptional<alepha1543.TString>;
5470
- critical: alepha1543.TOptional<alepha1543.TBoolean>;
5471
- sensitive: alepha1543.TOptional<alepha1543.TBoolean>;
5472
- contact: alepha1543.TString;
5473
- variables: alepha1543.TOptional<alepha1543.TRecord<"^.*$", alepha1543.TAny>>;
5474
- scheduledAt: alepha1543.TOptional<alepha1543.TString>;
5475
- sentAt: alepha1543.TOptional<alepha1543.TString>;
5476
- error: alepha1543.TOptional<alepha1543.TObject<{
5477
- at: alepha1543.TString;
5478
- name: alepha1543.TString;
5479
- message: alepha1543.TString;
5715
+ protected readonly notificationRepository: Repository<alepha1962.TObject<{
5716
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5717
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5718
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5719
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5720
+ type: alepha1962.TUnsafe<"email" | "sms">;
5721
+ template: alepha1962.TString;
5722
+ category: alepha1962.TOptional<alepha1962.TString>;
5723
+ critical: alepha1962.TOptional<alepha1962.TBoolean>;
5724
+ sensitive: alepha1962.TOptional<alepha1962.TBoolean>;
5725
+ contact: alepha1962.TString;
5726
+ variables: alepha1962.TOptional<alepha1962.TRecord<"^.*$", alepha1962.TAny>>;
5727
+ scheduledAt: alepha1962.TOptional<alepha1962.TString>;
5728
+ sentAt: alepha1962.TOptional<alepha1962.TString>;
5729
+ error: alepha1962.TOptional<alepha1962.TObject<{
5730
+ at: alepha1962.TString;
5731
+ name: alepha1962.TString;
5732
+ message: alepha1962.TString;
5480
5733
  }>>;
5481
5734
  }>>;
5482
5735
  protected readonly dateTimeProvider: DateTimeProvider;
5483
5736
  protected readonly notificationSenderService: NotificationSenderService;
5484
- readonly notificationBatch: BatchPrimitive<alepha1543.TObject<{
5485
- type: alepha1543.TUnsafe<"email" | "sms">;
5486
- template: alepha1543.TString;
5487
- contact: alepha1543.TString;
5488
- variables: alepha1543.TOptional<alepha1543.TRecord<"^.*$", alepha1543.TAny>>;
5737
+ readonly notificationBatch: BatchPrimitive<alepha1962.TObject<{
5738
+ type: alepha1962.TUnsafe<"email" | "sms">;
5739
+ template: alepha1962.TString;
5740
+ contact: alepha1962.TString;
5741
+ variables: alepha1962.TOptional<alepha1962.TRecord<"^.*$", alepha1962.TAny>>;
5489
5742
  }>, Promise<void>>;
5490
- findNotificationById(id: string): Promise<PgStatic<alepha1543.TObject<{
5491
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5492
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5493
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5494
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5495
- type: alepha1543.TUnsafe<"email" | "sms">;
5496
- template: alepha1543.TString;
5497
- category: alepha1543.TOptional<alepha1543.TString>;
5498
- critical: alepha1543.TOptional<alepha1543.TBoolean>;
5499
- sensitive: alepha1543.TOptional<alepha1543.TBoolean>;
5500
- contact: alepha1543.TString;
5501
- variables: alepha1543.TOptional<alepha1543.TRecord<"^.*$", alepha1543.TAny>>;
5502
- scheduledAt: alepha1543.TOptional<alepha1543.TString>;
5503
- sentAt: alepha1543.TOptional<alepha1543.TString>;
5504
- error: alepha1543.TOptional<alepha1543.TObject<{
5505
- at: alepha1543.TString;
5506
- name: alepha1543.TString;
5507
- message: alepha1543.TString;
5743
+ findNotificationById(id: string): Promise<PgStatic<alepha1962.TObject<{
5744
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5745
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5746
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5747
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5748
+ type: alepha1962.TUnsafe<"email" | "sms">;
5749
+ template: alepha1962.TString;
5750
+ category: alepha1962.TOptional<alepha1962.TString>;
5751
+ critical: alepha1962.TOptional<alepha1962.TBoolean>;
5752
+ sensitive: alepha1962.TOptional<alepha1962.TBoolean>;
5753
+ contact: alepha1962.TString;
5754
+ variables: alepha1962.TOptional<alepha1962.TRecord<"^.*$", alepha1962.TAny>>;
5755
+ scheduledAt: alepha1962.TOptional<alepha1962.TString>;
5756
+ sentAt: alepha1962.TOptional<alepha1962.TString>;
5757
+ error: alepha1962.TOptional<alepha1962.TObject<{
5758
+ at: alepha1962.TString;
5759
+ name: alepha1962.TString;
5760
+ message: alepha1962.TString;
5508
5761
  }>>;
5509
- }>, PgRelationMap<alepha1543.TObject<{
5510
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5511
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5512
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5513
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5514
- type: alepha1543.TUnsafe<"email" | "sms">;
5515
- template: alepha1543.TString;
5516
- category: alepha1543.TOptional<alepha1543.TString>;
5517
- critical: alepha1543.TOptional<alepha1543.TBoolean>;
5518
- sensitive: alepha1543.TOptional<alepha1543.TBoolean>;
5519
- contact: alepha1543.TString;
5520
- variables: alepha1543.TOptional<alepha1543.TRecord<"^.*$", alepha1543.TAny>>;
5521
- scheduledAt: alepha1543.TOptional<alepha1543.TString>;
5522
- sentAt: alepha1543.TOptional<alepha1543.TString>;
5523
- error: alepha1543.TOptional<alepha1543.TObject<{
5524
- at: alepha1543.TString;
5525
- name: alepha1543.TString;
5526
- message: alepha1543.TString;
5762
+ }>, PgRelationMap<alepha1962.TObject<{
5763
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5764
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5765
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5766
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5767
+ type: alepha1962.TUnsafe<"email" | "sms">;
5768
+ template: alepha1962.TString;
5769
+ category: alepha1962.TOptional<alepha1962.TString>;
5770
+ critical: alepha1962.TOptional<alepha1962.TBoolean>;
5771
+ sensitive: alepha1962.TOptional<alepha1962.TBoolean>;
5772
+ contact: alepha1962.TString;
5773
+ variables: alepha1962.TOptional<alepha1962.TRecord<"^.*$", alepha1962.TAny>>;
5774
+ scheduledAt: alepha1962.TOptional<alepha1962.TString>;
5775
+ sentAt: alepha1962.TOptional<alepha1962.TString>;
5776
+ error: alepha1962.TOptional<alepha1962.TObject<{
5777
+ at: alepha1962.TString;
5778
+ name: alepha1962.TString;
5779
+ message: alepha1962.TString;
5527
5780
  }>>;
5528
5781
  }>>>>;
5529
5782
  findNotifications(q?: NotificationQuery): Promise<Page$1<NotificationEntity>>;
@@ -5542,140 +5795,869 @@ declare class NotificationController {
5542
5795
  * Find notifications with pagination and filtering.
5543
5796
  */
5544
5797
  readonly findNotifications: ActionPrimitiveFn<{
5545
- query: alepha1543.TObject<{
5546
- page: alepha1543.TOptional<alepha1543.TInteger>;
5547
- size: alepha1543.TOptional<alepha1543.TInteger>;
5548
- sort: alepha1543.TOptional<alepha1543.TString>;
5549
- type: alepha1543.TOptional<alepha1543.TUnsafe<"email" | "sms">>;
5550
- template: alepha1543.TOptional<alepha1543.TString>;
5551
- contact: alepha1543.TOptional<alepha1543.TString>;
5552
- category: alepha1543.TOptional<alepha1543.TString>;
5553
- status: alepha1543.TOptional<alepha1543.TUnsafe<"pending" | "sent" | "failed">>;
5798
+ query: alepha1962.TObject<{
5799
+ page: alepha1962.TOptional<alepha1962.TInteger>;
5800
+ size: alepha1962.TOptional<alepha1962.TInteger>;
5801
+ sort: alepha1962.TOptional<alepha1962.TString>;
5802
+ type: alepha1962.TOptional<alepha1962.TUnsafe<"email" | "sms">>;
5803
+ template: alepha1962.TOptional<alepha1962.TString>;
5804
+ contact: alepha1962.TOptional<alepha1962.TString>;
5805
+ category: alepha1962.TOptional<alepha1962.TString>;
5806
+ status: alepha1962.TOptional<alepha1962.TUnsafe<"pending" | "sent" | "failed">>;
5554
5807
  }>;
5555
- response: alepha1543.TPage<alepha1543.TObject<{
5556
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5557
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5558
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5559
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5560
- type: alepha1543.TUnsafe<"email" | "sms">;
5561
- template: alepha1543.TString;
5562
- category: alepha1543.TOptional<alepha1543.TString>;
5563
- critical: alepha1543.TOptional<alepha1543.TBoolean>;
5564
- sensitive: alepha1543.TOptional<alepha1543.TBoolean>;
5565
- contact: alepha1543.TString;
5566
- variables: alepha1543.TOptional<alepha1543.TRecord<"^.*$", alepha1543.TAny>>;
5567
- scheduledAt: alepha1543.TOptional<alepha1543.TString>;
5568
- sentAt: alepha1543.TOptional<alepha1543.TString>;
5569
- error: alepha1543.TOptional<alepha1543.TObject<{
5570
- at: alepha1543.TString;
5571
- name: alepha1543.TString;
5572
- message: alepha1543.TString;
5808
+ response: alepha1962.TPage<alepha1962.TObject<{
5809
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5810
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5811
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5812
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5813
+ type: alepha1962.TUnsafe<"email" | "sms">;
5814
+ template: alepha1962.TString;
5815
+ category: alepha1962.TOptional<alepha1962.TString>;
5816
+ critical: alepha1962.TOptional<alepha1962.TBoolean>;
5817
+ sensitive: alepha1962.TOptional<alepha1962.TBoolean>;
5818
+ contact: alepha1962.TString;
5819
+ variables: alepha1962.TOptional<alepha1962.TRecord<"^.*$", alepha1962.TAny>>;
5820
+ scheduledAt: alepha1962.TOptional<alepha1962.TString>;
5821
+ sentAt: alepha1962.TOptional<alepha1962.TString>;
5822
+ error: alepha1962.TOptional<alepha1962.TObject<{
5823
+ at: alepha1962.TString;
5824
+ name: alepha1962.TString;
5825
+ message: alepha1962.TString;
5573
5826
  }>>;
5574
5827
  }>>;
5575
5828
  }>;
5576
5829
  }
5577
5830
  //#endregion
5578
5831
  //#region ../../../alepha/src/queue/providers/WorkerProvider.d.ts
5579
- declare const envSchema: alepha1543.TObject<{
5832
+ declare const envSchema$1: alepha1962.TObject<{
5580
5833
  /**
5581
5834
  * The timeout in seconds for blocking job acquisition.
5582
5835
  * Workers will check for shutdown after each timeout period.
5583
5836
  */
5584
- QUEUE_WORKER_BLOCKING_TIMEOUT: alepha1543.TInteger;
5837
+ QUEUE_WORKER_BLOCKING_TIMEOUT: alepha1962.TInteger;
5585
5838
  /**
5586
5839
  * The number of workers to run concurrently. Defaults to 1.
5587
5840
  * Useful only if you are doing a lot of I/O.
5588
5841
  */
5589
- QUEUE_WORKER_CONCURRENCY: alepha1543.TInteger;
5842
+ QUEUE_WORKER_CONCURRENCY: alepha1962.TInteger;
5590
5843
  /**
5591
5844
  * Interval in milliseconds for renewing job locks during processing.
5592
5845
  * Should be less than the job's lock duration.
5593
5846
  */
5594
- QUEUE_WORKER_LOCK_RENEWAL_INTERVAL: alepha1543.TInteger;
5847
+ QUEUE_WORKER_LOCK_RENEWAL_INTERVAL: alepha1962.TInteger;
5595
5848
  /**
5596
5849
  * Interval in milliseconds for the scheduler to check delayed jobs and stalled jobs.
5597
5850
  */
5598
- QUEUE_SCHEDULER_INTERVAL: alepha1543.TInteger;
5851
+ QUEUE_SCHEDULER_INTERVAL: alepha1962.TInteger;
5599
5852
  /**
5600
5853
  * Threshold in milliseconds after lock expiration to consider a job stalled.
5601
5854
  */
5602
- QUEUE_STALLED_THRESHOLD: alepha1543.TInteger;
5855
+ QUEUE_STALLED_THRESHOLD: alepha1962.TInteger;
5856
+ }>;
5857
+ declare module "alepha" {
5858
+ interface Env extends Partial<Static<typeof envSchema$1>> {}
5859
+ }
5860
+ //#endregion
5861
+ //#region ../../../alepha/src/api-parameters/entities/parameters.d.ts
5862
+ /**
5863
+ * Parameter status values.
5864
+ *
5865
+ * - EXPIRED: Past version, no longer active
5866
+ * - CURRENT: Currently active version
5867
+ * - NEXT: Scheduled to become active (closest future date)
5868
+ * - FUTURE: Scheduled for activation after NEXT
5869
+ */
5870
+ type ParameterStatus = "expired" | "current" | "next" | "future";
5871
+ /**
5872
+ * Configuration parameter entity for versioned configuration management.
5873
+ *
5874
+ * Stores all versions of configuration parameters with:
5875
+ * - Automatic status management (expired, current, next, future)
5876
+ * - Schema versioning for migrations
5877
+ * - Activation scheduling
5878
+ * - Audit trail (creator info)
5879
+ */
5880
+ declare const parameters: EntityPrimitive<alepha1962.TObject<{
5881
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5882
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5883
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5884
+ /**
5885
+ * Configuration name using dot notation for tree hierarchy.
5886
+ * Examples: "app.features", "app.pricing.tiers", "system.limits"
5887
+ */
5888
+ name: alepha1962.TString;
5889
+ /**
5890
+ * The configuration content as JSON.
5891
+ */
5892
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
5893
+ /**
5894
+ * Schema version hash for detecting schema changes.
5895
+ * Used for auto-migration when schema evolves.
5896
+ */
5897
+ schemaHash: alepha1962.TString;
5898
+ /**
5899
+ * Current status of this parameter version.
5900
+ */
5901
+ status: PgAttr<alepha1962.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
5902
+ /**
5903
+ * When this version should become active.
5904
+ * Default is immediate (now).
5905
+ */
5906
+ activationDate: alepha1962.TString;
5907
+ /**
5908
+ * When this version was deactivated (became expired).
5909
+ * Null if still active or scheduled.
5910
+ */
5911
+ expiredAt: alepha1962.TOptional<alepha1962.TString>;
5912
+ /**
5913
+ * Version number for this configuration.
5914
+ * Auto-incremented per config name.
5915
+ */
5916
+ version: alepha1962.TInteger;
5917
+ /**
5918
+ * Optional description of changes in this version.
5919
+ */
5920
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
5921
+ /**
5922
+ * Optional tags for filtering/categorization.
5923
+ */
5924
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
5925
+ /**
5926
+ * Creator user ID (if available).
5927
+ */
5928
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
5929
+ /**
5930
+ * Creator display name for audit trail.
5931
+ */
5932
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
5933
+ /**
5934
+ * Previous content before this change (for rollback reference).
5935
+ */
5936
+ previousContent: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
5937
+ /**
5938
+ * Migration log if schema changed.
5939
+ */
5940
+ migrationLog: alepha1962.TOptional<alepha1962.TString>;
5941
+ }>>;
5942
+ type Parameter = Static<typeof parameters.schema>;
5943
+ //#endregion
5944
+ //#region ../../../alepha/src/api-parameters/primitives/$config.d.ts
5945
+ /**
5946
+ * Creates a versioned configuration primitive for managing application settings.
5947
+ *
5948
+ * Provides type-safe, versioned configuration with:
5949
+ * - Schema validation with auto-migration detection
5950
+ * - Default values for initial state
5951
+ * - Scheduled activation (FUTURE, NEXT, CURRENT, EXPIRED statuses)
5952
+ * - PostgreSQL persistence with full version history
5953
+ * - Cross-instance synchronization via topic
5954
+ * - Tree view support via dot-notation naming (e.g., "app.features.flags")
5955
+ *
5956
+ * Integrates with Alepha's atom system for state management:
5957
+ * - Uses `alepha.set(atom, value)` for mutations
5958
+ * - Listens to `state:mutate` events to detect changes
5959
+ * - Auto-persists changes to database
5960
+ * - Syncs across instances via topic
5961
+ *
5962
+ * @example
5963
+ * ```ts
5964
+ * class AppConfig {
5965
+ * features = $config({
5966
+ * name: "app.features.flags",
5967
+ * schema: t.object({
5968
+ * enableBeta: t.boolean(),
5969
+ * maxUploadSize: t.number()
5970
+ * }),
5971
+ * default: { enableBeta: false, maxUploadSize: 10485760 }
5972
+ * });
5973
+ *
5974
+ * async enableBeta() {
5975
+ * // Immediate activation
5976
+ * await this.features.set({ enableBeta: true, maxUploadSize: 20971520 });
5977
+ * }
5978
+ *
5979
+ * async scheduleBetaRelease() {
5980
+ * // Schedule for future activation
5981
+ * await this.features.set(
5982
+ * { enableBeta: true, maxUploadSize: 20971520 },
5983
+ * { activationDate: new Date('2024-03-01') }
5984
+ * );
5985
+ * }
5986
+ * }
5987
+ * ```
5988
+ */
5989
+ interface ConfigPrimitiveOptions<T$1 extends TObject> {
5990
+ /**
5991
+ * Configuration name using dot notation for tree hierarchy.
5992
+ * Examples: "app.features", "app.pricing.tiers", "system.limits"
5993
+ */
5994
+ name?: string;
5995
+ /**
5996
+ * Human-readable description of the configuration.
5997
+ */
5998
+ description?: string;
5999
+ /**
6000
+ * TypeBox schema defining the configuration structure.
6001
+ */
6002
+ schema: T$1;
6003
+ /**
6004
+ * Default value used when no configuration exists in database.
6005
+ */
6006
+ default: Static<T$1>;
6007
+ }
6008
+ declare class ConfigPrimitive<T$1 extends TObject> extends Primitive<ConfigPrimitiveOptions<T$1>> {
6009
+ protected readonly log: Logger;
6010
+ protected readonly store: ConfigStore;
6011
+ /** Internal atom key for state management */
6012
+ protected atomKey: string;
6013
+ /** Schema hash for migration detection */
6014
+ protected schemaHash: string;
6015
+ /** Whether we're currently syncing (to avoid loops) */
6016
+ protected syncing: boolean;
6017
+ /** Whether initial load has completed */
6018
+ protected loaded: boolean;
6019
+ /**
6020
+ * Configuration name (uses property key if not specified).
6021
+ */
6022
+ get name(): string;
6023
+ /**
6024
+ * The TypeBox schema for this configuration.
6025
+ */
6026
+ get schema(): T$1;
6027
+ /**
6028
+ * Get the current configuration value.
6029
+ */
6030
+ get current(): Static<T$1>;
6031
+ /**
6032
+ * Get a specific field from the current configuration.
6033
+ */
6034
+ get<Key$1 extends keyof Static<T$1>>(key: Key$1): Static<T$1>[Key$1];
6035
+ /**
6036
+ * Set a new configuration value.
6037
+ *
6038
+ * @param value - The new configuration value
6039
+ * @param options - Optional settings (activation date, creator info, etc.)
6040
+ */
6041
+ set(value: Static<T$1>, options?: SetConfigOptions): Promise<void>;
6042
+ /**
6043
+ * Subscribe to configuration changes.
6044
+ */
6045
+ sub(fn: (curr: Static<T$1>) => void): () => void;
6046
+ /**
6047
+ * Reload configuration from database.
6048
+ * Called when scheduled config activates or sync message received.
6049
+ */
6050
+ reload(): Promise<void>;
6051
+ /**
6052
+ * Update from sync message (called by ConfigStore).
6053
+ * Uses skipEvents to avoid infinite loops.
6054
+ */
6055
+ updateFromSync(content: unknown): Promise<void>;
6056
+ /**
6057
+ * Get version history for this configuration.
6058
+ */
6059
+ getHistory(): Promise<{
6060
+ tags?: string[] | undefined;
6061
+ creatorName?: string | undefined;
6062
+ expiredAt?: string | undefined;
6063
+ changeDescription?: string | undefined;
6064
+ creatorId?: string | undefined;
6065
+ previousContent?: Record<string, any> | undefined;
6066
+ migrationLog?: string | undefined;
6067
+ name: string;
6068
+ id: string;
6069
+ version: number;
6070
+ createdAt: string;
6071
+ updatedAt: string;
6072
+ content: Record<string, any>;
6073
+ status: "expired" | "current" | "next" | "future";
6074
+ schemaHash: string;
6075
+ activationDate: string;
6076
+ }[]>;
6077
+ /**
6078
+ * Rollback to a specific version.
6079
+ */
6080
+ rollback(version: number, options?: SetConfigOptions): Promise<void>;
6081
+ /**
6082
+ * Hook to load initial value from database on start.
6083
+ */
6084
+ protected readonly onStart: alepha1962.HookPrimitive<"start">;
6085
+ /**
6086
+ * Called after primitive creation to initialize.
6087
+ */
6088
+ protected onInit(): void;
6089
+ /**
6090
+ * Load initial value from database.
6091
+ */
6092
+ protected loadInitial(): Promise<void>;
6093
+ /**
6094
+ * Calculate a hash of the schema for migration detection.
6095
+ */
6096
+ protected calculateSchemaHash(): string;
6097
+ }
6098
+ interface SetConfigOptions {
6099
+ /**
6100
+ * User making the change (for audit trail).
6101
+ */
6102
+ user?: Pick<UserAccount, "id" | "email" | "name">;
6103
+ /**
6104
+ * When this configuration should become active.
6105
+ * Default is immediate (now).
6106
+ */
6107
+ activationDate?: Date;
6108
+ /**
6109
+ * Description of the change.
6110
+ */
6111
+ changeDescription?: string;
6112
+ /**
6113
+ * Tags for filtering/categorization.
6114
+ */
6115
+ tags?: string[];
6116
+ }
6117
+ //#endregion
6118
+ //#region ../../../alepha/src/api-parameters/services/ConfigStore.d.ts
6119
+ /**
6120
+ * Payload for config sync events across instances.
6121
+ */
6122
+ interface ConfigSyncPayload {
6123
+ name: string;
6124
+ version: number;
6125
+ content: unknown;
6126
+ status: ParameterStatus;
6127
+ instanceId: string;
6128
+ }
6129
+ /**
6130
+ * ConfigStore manages versioned configuration persistence and synchronization.
6131
+ *
6132
+ * Features:
6133
+ * - Stores all config versions in PostgreSQL
6134
+ * - Manages status transitions (future → next → current → expired)
6135
+ * - Provides cross-instance sync via topic
6136
+ * - Supports schema migrations via hash comparison
6137
+ * - Auto-activates scheduled configs
6138
+ */
6139
+ declare class ConfigStore {
6140
+ protected readonly log: Logger;
6141
+ protected readonly dateTimeProvider: DateTimeProvider;
6142
+ protected readonly repo: Repository<TObject<{
6143
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6144
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6145
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6146
+ name: alepha1962.TString;
6147
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6148
+ schemaHash: alepha1962.TString;
6149
+ status: PgAttr<alepha1962.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
6150
+ activationDate: alepha1962.TString;
6151
+ expiredAt: alepha1962.TOptional<alepha1962.TString>;
6152
+ version: alepha1962.TInteger;
6153
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6154
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
6155
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6156
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6157
+ previousContent: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6158
+ migrationLog: alepha1962.TOptional<alepha1962.TString>;
6159
+ }>>;
6160
+ /** Unique identifier for this instance (to avoid self-updates) */
6161
+ protected readonly instanceId: `${string}-${string}-${string}-${string}-${string}`;
6162
+ /** In-memory cache of registered configs */
6163
+ protected readonly configs: Map<string, ConfigPrimitive<any>>;
6164
+ /** Topic for cross-instance synchronization */
6165
+ readonly syncTopic: TopicPrimitive<{
6166
+ payload: TObject<{
6167
+ name: alepha1962.TString;
6168
+ version: alepha1962.TInteger;
6169
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6170
+ status: alepha1962.TUnsafe<"expired" | "current" | "next" | "future">;
6171
+ instanceId: alepha1962.TString;
6172
+ }>;
6173
+ }>;
6174
+ /**
6175
+ * Register a config primitive with the store.
6176
+ */
6177
+ register(config: ConfigPrimitive<any>): void;
6178
+ /**
6179
+ * Load the current config value from database.
6180
+ * Returns the current or next version if no current exists.
6181
+ */
6182
+ load<T$1 extends TObject>(name: string): Promise<Static<T$1> | null>;
6183
+ /**
6184
+ * Save a new config version.
6185
+ *
6186
+ * @param name - Config name (e.g., "app.features.flags")
6187
+ * @param content - New config content
6188
+ * @param schemaHash - Hash of the schema for migration detection
6189
+ * @param options - Additional options (activation date, creator info, etc.)
6190
+ */
6191
+ save<T$1 extends TObject>(name: string, content: Static<T$1>, schemaHash: string, options?: SaveConfigOptions): Promise<Parameter>;
6192
+ /**
6193
+ * Get all versions of a config.
6194
+ */
6195
+ getHistory(name: string): Promise<Parameter[]>;
6196
+ /**
6197
+ * Get a specific version of a config.
6198
+ */
6199
+ getVersion(name: string, version: number): Promise<Parameter | null>;
6200
+ /**
6201
+ * Rollback to a previous version by creating a new version with old content.
6202
+ */
6203
+ rollback(name: string, targetVersion: number, options?: SaveConfigOptions): Promise<Parameter>;
6204
+ /**
6205
+ * Get all configs by status.
6206
+ */
6207
+ getByStatus(status: ParameterStatus): Promise<Parameter[]>;
6208
+ /**
6209
+ * Get current config value with fallback to default from registered primitive.
6210
+ * Returns the in-memory current value which may be the default if never saved.
6211
+ */
6212
+ getCurrentValue(name: string): {
6213
+ content: unknown;
6214
+ isDefault: boolean;
6215
+ } | null;
6216
+ /**
6217
+ * Get config info including current value with default fallback.
6218
+ */
6219
+ getCurrentWithDefault(name: string): Promise<{
6220
+ current: Parameter | null;
6221
+ next: Parameter | null;
6222
+ defaultValue: unknown | null;
6223
+ currentValue: unknown | null;
6224
+ schema: TObject | null;
6225
+ }>;
6226
+ /**
6227
+ * Get all unique config names (for tree view).
6228
+ */
6229
+ getConfigNames(): Promise<string[]>;
6230
+ /**
6231
+ * Build a tree structure from config names for UI.
6232
+ * Includes both database configs and registered (but not yet saved) configs.
6233
+ */
6234
+ getConfigTree(): Promise<ConfigTreeNode[]>;
6235
+ /**
6236
+ * Check and activate scheduled configs that are due.
6237
+ * Should be called periodically (e.g., via scheduler).
6238
+ */
6239
+ activateScheduledConfigs(): Promise<void>;
6240
+ /**
6241
+ * Transition config statuses when a new current is activated.
6242
+ */
6243
+ protected transitionStatuses(name: string, now: Date): Promise<void>;
6244
+ /**
6245
+ * Recalculate statuses based on activation dates.
6246
+ */
6247
+ protected recalculateStatuses(name: string): Promise<void>;
6248
+ /**
6249
+ * Publish sync event to other instances.
6250
+ */
6251
+ protected publishSync(name: string, version: number, content: unknown, status: ParameterStatus): Promise<void>;
6252
+ /**
6253
+ * Handle incoming sync message from other instances.
6254
+ */
6255
+ protected handleSyncMessage(payload: ConfigSyncPayload): Promise<void>;
6256
+ /**
6257
+ * Build tree structure from dot-notation names.
6258
+ */
6259
+ protected buildTree(names: string[]): ConfigTreeNode[];
6260
+ }
6261
+ interface SaveConfigOptions {
6262
+ activationDate?: Date;
6263
+ changeDescription?: string;
6264
+ tags?: string[];
6265
+ creatorId?: string;
6266
+ creatorName?: string;
6267
+ }
6268
+ interface ConfigTreeNode {
6269
+ name: string;
6270
+ path: string;
6271
+ isLeaf: boolean;
6272
+ children: ConfigTreeNode[];
6273
+ }
6274
+ //#endregion
6275
+ //#region ../../../alepha/src/api-parameters/controllers/ConfigController.d.ts
6276
+ /**
6277
+ * REST API controller for versioned configuration management.
6278
+ *
6279
+ * Provides endpoints for:
6280
+ * - Listing all configurations (tree view support)
6281
+ * - Getting configuration history (all versions)
6282
+ * - Getting current/next configuration values
6283
+ * - Creating new configuration versions (immediate or scheduled)
6284
+ * - Rolling back to previous versions
6285
+ * - Activating scheduled versions immediately
6286
+ */
6287
+ declare class ConfigController {
6288
+ protected readonly store: ConfigStore;
6289
+ /**
6290
+ * Get tree structure of all configuration names.
6291
+ * Useful for admin UI navigation.
6292
+ */
6293
+ getConfigTree: ActionPrimitiveFn<{
6294
+ response: alepha1962.TArray<any>;
6295
+ }>;
6296
+ /**
6297
+ * List all unique configuration names.
6298
+ */
6299
+ listConfigNames: ActionPrimitiveFn<{
6300
+ response: alepha1962.TObject<{
6301
+ names: alepha1962.TArray<alepha1962.TString>;
6302
+ }>;
6303
+ }>;
6304
+ /**
6305
+ * Get configurations by status.
6306
+ */
6307
+ getByStatus: ActionPrimitiveFn<{
6308
+ params: alepha1962.TObject<{
6309
+ status: alepha1962.TUnsafe<"expired" | "current" | "next" | "future">;
6310
+ }>;
6311
+ response: alepha1962.TObject<{
6312
+ configs: alepha1962.TArray<alepha1962.TObject<{
6313
+ id: alepha1962.TString;
6314
+ createdAt: alepha1962.TString;
6315
+ updatedAt: alepha1962.TString;
6316
+ name: alepha1962.TString;
6317
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6318
+ schemaHash: alepha1962.TString;
6319
+ status: alepha1962.TUnsafe<"expired" | "current" | "next" | "future">;
6320
+ activationDate: alepha1962.TString;
6321
+ expiredAt: alepha1962.TOptional<alepha1962.TString>;
6322
+ version: alepha1962.TInteger;
6323
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6324
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
6325
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6326
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6327
+ previousContent: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6328
+ migrationLog: alepha1962.TOptional<alepha1962.TString>;
6329
+ }>>;
6330
+ }>;
6331
+ }>;
6332
+ /**
6333
+ * Get version history for a specific configuration.
6334
+ */
6335
+ getHistory: ActionPrimitiveFn<{
6336
+ params: alepha1962.TObject<{
6337
+ name: alepha1962.TString;
6338
+ }>;
6339
+ response: alepha1962.TObject<{
6340
+ versions: alepha1962.TArray<alepha1962.TObject<{
6341
+ id: alepha1962.TString;
6342
+ createdAt: alepha1962.TString;
6343
+ updatedAt: alepha1962.TString;
6344
+ name: alepha1962.TString;
6345
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6346
+ schemaHash: alepha1962.TString;
6347
+ status: alepha1962.TUnsafe<"expired" | "current" | "next" | "future">;
6348
+ activationDate: alepha1962.TString;
6349
+ expiredAt: alepha1962.TOptional<alepha1962.TString>;
6350
+ version: alepha1962.TInteger;
6351
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6352
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
6353
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6354
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6355
+ previousContent: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6356
+ migrationLog: alepha1962.TOptional<alepha1962.TString>;
6357
+ }>>;
6358
+ }>;
6359
+ }>;
6360
+ /**
6361
+ * Get current and next values for a configuration.
6362
+ * Includes defaultValue and currentValue from the registered primitive
6363
+ * even if no versions exist in the database yet.
6364
+ */
6365
+ getCurrent: ActionPrimitiveFn<{
6366
+ params: alepha1962.TObject<{
6367
+ name: alepha1962.TString;
6368
+ }>;
6369
+ response: alepha1962.TObject<{
6370
+ current: alepha1962.TOptional<alepha1962.TObject<{
6371
+ id: alepha1962.TString;
6372
+ createdAt: alepha1962.TString;
6373
+ updatedAt: alepha1962.TString;
6374
+ name: alepha1962.TString;
6375
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6376
+ schemaHash: alepha1962.TString;
6377
+ status: alepha1962.TUnsafe<"expired" | "current" | "next" | "future">;
6378
+ activationDate: alepha1962.TString;
6379
+ expiredAt: alepha1962.TOptional<alepha1962.TString>;
6380
+ version: alepha1962.TInteger;
6381
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6382
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
6383
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6384
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6385
+ previousContent: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6386
+ migrationLog: alepha1962.TOptional<alepha1962.TString>;
6387
+ }>>;
6388
+ next: alepha1962.TOptional<alepha1962.TObject<{
6389
+ id: alepha1962.TString;
6390
+ createdAt: alepha1962.TString;
6391
+ updatedAt: alepha1962.TString;
6392
+ name: alepha1962.TString;
6393
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6394
+ schemaHash: alepha1962.TString;
6395
+ status: alepha1962.TUnsafe<"expired" | "current" | "next" | "future">;
6396
+ activationDate: alepha1962.TString;
6397
+ expiredAt: alepha1962.TOptional<alepha1962.TString>;
6398
+ version: alepha1962.TInteger;
6399
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6400
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
6401
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6402
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6403
+ previousContent: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6404
+ migrationLog: alepha1962.TOptional<alepha1962.TString>;
6405
+ }>>;
6406
+ defaultValue: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6407
+ currentValue: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6408
+ schema: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6409
+ }>;
6410
+ }>;
6411
+ /**
6412
+ * Get a specific version of a configuration.
6413
+ */
6414
+ getVersion: ActionPrimitiveFn<{
6415
+ params: alepha1962.TObject<{
6416
+ name: alepha1962.TString;
6417
+ version: alepha1962.TInteger;
6418
+ }>;
6419
+ response: alepha1962.TObject<{
6420
+ config: alepha1962.TOptional<alepha1962.TObject<{
6421
+ id: alepha1962.TString;
6422
+ createdAt: alepha1962.TString;
6423
+ updatedAt: alepha1962.TString;
6424
+ name: alepha1962.TString;
6425
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6426
+ schemaHash: alepha1962.TString;
6427
+ status: alepha1962.TUnsafe<"expired" | "current" | "next" | "future">;
6428
+ activationDate: alepha1962.TString;
6429
+ expiredAt: alepha1962.TOptional<alepha1962.TString>;
6430
+ version: alepha1962.TInteger;
6431
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6432
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
6433
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6434
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6435
+ previousContent: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6436
+ migrationLog: alepha1962.TOptional<alepha1962.TString>;
6437
+ }>>;
6438
+ }>;
6439
+ }>;
6440
+ /**
6441
+ * Create a new configuration version.
6442
+ */
6443
+ createVersion: ActionPrimitiveFn<{
6444
+ params: alepha1962.TObject<{
6445
+ name: alepha1962.TString;
6446
+ }>;
6447
+ body: alepha1962.TObject<{
6448
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6449
+ schemaHash: alepha1962.TString;
6450
+ activationDate: alepha1962.TOptional<alepha1962.TString>;
6451
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6452
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
6453
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6454
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6455
+ }>;
6456
+ response: alepha1962.TObject<{
6457
+ id: alepha1962.TString;
6458
+ createdAt: alepha1962.TString;
6459
+ updatedAt: alepha1962.TString;
6460
+ name: alepha1962.TString;
6461
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6462
+ schemaHash: alepha1962.TString;
6463
+ status: alepha1962.TUnsafe<"expired" | "current" | "next" | "future">;
6464
+ activationDate: alepha1962.TString;
6465
+ expiredAt: alepha1962.TOptional<alepha1962.TString>;
6466
+ version: alepha1962.TInteger;
6467
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6468
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
6469
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6470
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6471
+ previousContent: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6472
+ migrationLog: alepha1962.TOptional<alepha1962.TString>;
6473
+ }>;
6474
+ }>;
6475
+ /**
6476
+ * Rollback to a previous version.
6477
+ */
6478
+ rollback: ActionPrimitiveFn<{
6479
+ params: alepha1962.TObject<{
6480
+ name: alepha1962.TString;
6481
+ }>;
6482
+ body: alepha1962.TObject<{
6483
+ targetVersion: alepha1962.TInteger;
6484
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6485
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6486
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6487
+ }>;
6488
+ response: alepha1962.TObject<{
6489
+ id: alepha1962.TString;
6490
+ createdAt: alepha1962.TString;
6491
+ updatedAt: alepha1962.TString;
6492
+ name: alepha1962.TString;
6493
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6494
+ schemaHash: alepha1962.TString;
6495
+ status: alepha1962.TUnsafe<"expired" | "current" | "next" | "future">;
6496
+ activationDate: alepha1962.TString;
6497
+ expiredAt: alepha1962.TOptional<alepha1962.TString>;
6498
+ version: alepha1962.TInteger;
6499
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6500
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
6501
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6502
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6503
+ previousContent: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6504
+ migrationLog: alepha1962.TOptional<alepha1962.TString>;
6505
+ }>;
6506
+ }>;
6507
+ /**
6508
+ * Activate a scheduled version immediately.
6509
+ */
6510
+ activateNow: ActionPrimitiveFn<{
6511
+ params: alepha1962.TObject<{
6512
+ name: alepha1962.TString;
6513
+ }>;
6514
+ body: alepha1962.TObject<{
6515
+ version: alepha1962.TInteger;
6516
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6517
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6518
+ }>;
6519
+ response: alepha1962.TObject<{
6520
+ id: alepha1962.TString;
6521
+ createdAt: alepha1962.TString;
6522
+ updatedAt: alepha1962.TString;
6523
+ name: alepha1962.TString;
6524
+ content: alepha1962.TRecord<string, alepha1962.TAny>;
6525
+ schemaHash: alepha1962.TString;
6526
+ status: alepha1962.TUnsafe<"expired" | "current" | "next" | "future">;
6527
+ activationDate: alepha1962.TString;
6528
+ expiredAt: alepha1962.TOptional<alepha1962.TString>;
6529
+ version: alepha1962.TInteger;
6530
+ changeDescription: alepha1962.TOptional<alepha1962.TString>;
6531
+ tags: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
6532
+ creatorId: alepha1962.TOptional<alepha1962.TString>;
6533
+ creatorName: alepha1962.TOptional<alepha1962.TString>;
6534
+ previousContent: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6535
+ migrationLog: alepha1962.TOptional<alepha1962.TString>;
6536
+ }>;
6537
+ }>;
6538
+ /**
6539
+ * Trigger activation check for all scheduled configs.
6540
+ * Normally called by a scheduler, but exposed for manual triggering.
6541
+ */
6542
+ checkScheduled: ActionPrimitiveFn<{
6543
+ response: alepha1962.TObject<{
6544
+ message: alepha1962.TString;
6545
+ }>;
6546
+ }>;
6547
+ }
6548
+ //#endregion
6549
+ //#region ../../../alepha/src/scheduler/primitives/$scheduler.d.ts
6550
+ declare const envSchema: alepha1962.TObject<{
6551
+ SCHEDULER_PREFIX: alepha1962.TOptional<alepha1962.TString>;
5603
6552
  }>;
5604
6553
  declare module "alepha" {
5605
6554
  interface Env extends Partial<Static<typeof envSchema>> {}
5606
6555
  }
5607
6556
  //#endregion
6557
+ //#region ../../../alepha/src/scheduler/index.d.ts
6558
+ declare module "alepha" {
6559
+ interface Hooks {
6560
+ "scheduler:begin": {
6561
+ name: string;
6562
+ now: DateTime;
6563
+ context: string;
6564
+ };
6565
+ "scheduler:success": {
6566
+ name: string;
6567
+ context: string;
6568
+ };
6569
+ "scheduler:error": {
6570
+ name: string;
6571
+ error: Error;
6572
+ context: string;
6573
+ };
6574
+ "scheduler:end": {
6575
+ name: string;
6576
+ context: string;
6577
+ };
6578
+ }
6579
+ }
6580
+ /**
6581
+ * Generic interface for scheduling tasks.
6582
+ *
6583
+ * @see {@link $scheduler}
6584
+ * @module alepha.scheduler
6585
+ */
6586
+ //#endregion
5608
6587
  //#region ../../../alepha/src/api-users/atoms/realmAuthSettingsAtom.d.ts
5609
- declare const realmAuthSettingsAtom: alepha1543.Atom<alepha1543.TObject<{
5610
- registrationAllowed: alepha1543.TBoolean;
5611
- emailEnabled: alepha1543.TBoolean;
5612
- emailRequired: alepha1543.TBoolean;
5613
- usernameEnabled: alepha1543.TBoolean;
5614
- usernameRequired: alepha1543.TBoolean;
5615
- phoneEnabled: alepha1543.TBoolean;
5616
- phoneRequired: alepha1543.TBoolean;
5617
- verifyEmailRequired: alepha1543.TBoolean;
5618
- verifyPhoneRequired: alepha1543.TBoolean;
5619
- firstNameLastNameEnabled: alepha1543.TBoolean;
5620
- firstNameLastNameRequired: alepha1543.TBoolean;
5621
- resetPasswordAllowed: alepha1543.TBoolean;
5622
- passwordPolicy: alepha1543.TObject<{
5623
- minLength: alepha1543.TInteger;
5624
- requireUppercase: alepha1543.TBoolean;
5625
- requireLowercase: alepha1543.TBoolean;
5626
- requireNumbers: alepha1543.TBoolean;
5627
- requireSpecialCharacters: alepha1543.TBoolean;
6588
+ declare const realmAuthSettingsAtom: alepha1962.Atom<alepha1962.TObject<{
6589
+ displayName: alepha1962.TOptional<alepha1962.TString>;
6590
+ description: alepha1962.TOptional<alepha1962.TString>;
6591
+ logoUrl: alepha1962.TOptional<alepha1962.TString>;
6592
+ registrationAllowed: alepha1962.TBoolean;
6593
+ emailEnabled: alepha1962.TBoolean;
6594
+ emailRequired: alepha1962.TBoolean;
6595
+ usernameEnabled: alepha1962.TBoolean;
6596
+ usernameRequired: alepha1962.TBoolean;
6597
+ phoneEnabled: alepha1962.TBoolean;
6598
+ phoneRequired: alepha1962.TBoolean;
6599
+ verifyEmailRequired: alepha1962.TBoolean;
6600
+ verifyPhoneRequired: alepha1962.TBoolean;
6601
+ firstNameLastNameEnabled: alepha1962.TBoolean;
6602
+ firstNameLastNameRequired: alepha1962.TBoolean;
6603
+ resetPasswordAllowed: alepha1962.TBoolean;
6604
+ passwordPolicy: alepha1962.TObject<{
6605
+ minLength: alepha1962.TInteger;
6606
+ requireUppercase: alepha1962.TBoolean;
6607
+ requireLowercase: alepha1962.TBoolean;
6608
+ requireNumbers: alepha1962.TBoolean;
6609
+ requireSpecialCharacters: alepha1962.TBoolean;
5628
6610
  }>;
5629
6611
  }>, "alepha.api.users.realmAuthSettings">;
5630
6612
  type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
5631
6613
  //#endregion
5632
6614
  //#region ../../../alepha/src/api-users/entities/identities.d.ts
5633
- declare const identities: EntityPrimitive<alepha1543.TObject<{
5634
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5635
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5636
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5637
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5638
- userId: PgAttr<alepha1543.TString, typeof PG_REF>;
5639
- password: alepha1543.TOptional<alepha1543.TString>;
5640
- provider: alepha1543.TString;
5641
- providerUserId: alepha1543.TOptional<alepha1543.TString>;
5642
- providerData: alepha1543.TOptional<alepha1543.TRecord<string, alepha1543.TAny>>;
6615
+ declare const identities: EntityPrimitive<alepha1962.TObject<{
6616
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6617
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6618
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6619
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6620
+ userId: PgAttr<alepha1962.TString, typeof PG_REF>;
6621
+ password: alepha1962.TOptional<alepha1962.TString>;
6622
+ provider: alepha1962.TString;
6623
+ providerUserId: alepha1962.TOptional<alepha1962.TString>;
6624
+ providerData: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
5643
6625
  }>>;
5644
6626
  //#endregion
5645
6627
  //#region ../../../alepha/src/api-users/entities/sessions.d.ts
5646
- declare const sessions: EntityPrimitive<alepha1543.TObject<{
5647
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5648
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5649
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5650
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5651
- refreshToken: alepha1543.TString;
5652
- userId: PgAttr<alepha1543.TString, typeof PG_REF>;
5653
- expiresAt: alepha1543.TString;
5654
- ip: alepha1543.TOptional<alepha1543.TString>;
5655
- userAgent: alepha1543.TOptional<alepha1543.TObject<{
5656
- os: alepha1543.TString;
5657
- browser: alepha1543.TString;
5658
- device: alepha1543.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6628
+ declare const sessions: EntityPrimitive<alepha1962.TObject<{
6629
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6630
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6631
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6632
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6633
+ refreshToken: alepha1962.TString;
6634
+ userId: PgAttr<alepha1962.TString, typeof PG_REF>;
6635
+ expiresAt: alepha1962.TString;
6636
+ ip: alepha1962.TOptional<alepha1962.TString>;
6637
+ userAgent: alepha1962.TOptional<alepha1962.TObject<{
6638
+ os: alepha1962.TString;
6639
+ browser: alepha1962.TString;
6640
+ device: alepha1962.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
5659
6641
  }>>;
5660
6642
  }>>;
5661
6643
  type SessionEntity = Static<typeof sessions.schema>;
5662
6644
  //#endregion
5663
6645
  //#region ../../../alepha/src/api-users/entities/users.d.ts
5664
- declare const users: EntityPrimitive<alepha1543.TObject<{
5665
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5666
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5667
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5668
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5669
- realm: PgAttr<alepha1543.TString, typeof PG_DEFAULT>;
5670
- username: alepha1543.TOptional<alepha1543.TString>;
5671
- email: alepha1543.TOptional<alepha1543.TString>;
5672
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
5673
- roles: PgAttr<alepha1543.TArray<alepha1543.TString>, typeof PG_DEFAULT>;
5674
- firstName: alepha1543.TOptional<alepha1543.TString>;
5675
- lastName: alepha1543.TOptional<alepha1543.TString>;
5676
- picture: alepha1543.TOptional<alepha1543.TString>;
5677
- enabled: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
5678
- emailVerified: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
6646
+ declare const users: EntityPrimitive<alepha1962.TObject<{
6647
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6648
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6649
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6650
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6651
+ realm: PgAttr<alepha1962.TString, typeof PG_DEFAULT>;
6652
+ username: alepha1962.TOptional<alepha1962.TString>;
6653
+ email: alepha1962.TOptional<alepha1962.TString>;
6654
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
6655
+ roles: PgAttr<alepha1962.TArray<alepha1962.TString>, typeof PG_DEFAULT>;
6656
+ firstName: alepha1962.TOptional<alepha1962.TString>;
6657
+ lastName: alepha1962.TOptional<alepha1962.TString>;
6658
+ picture: alepha1962.TOptional<alepha1962.TString>;
6659
+ enabled: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
6660
+ emailVerified: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
5679
6661
  }>>;
5680
6662
  type UserEntity = Static<typeof users.schema>;
5681
6663
  //#endregion
@@ -5692,51 +6674,51 @@ interface UserRealm {
5692
6674
  }
5693
6675
  declare class UserRealmProvider {
5694
6676
  protected readonly alepha: Alepha;
5695
- protected readonly defaultIdentities: Repository<alepha1543.TObject<{
5696
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5697
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5698
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5699
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5700
- userId: PgAttr<alepha1543.TString, typeof PG_REF>;
5701
- password: alepha1543.TOptional<alepha1543.TString>;
5702
- provider: alepha1543.TString;
5703
- providerUserId: alepha1543.TOptional<alepha1543.TString>;
5704
- providerData: alepha1543.TOptional<alepha1543.TRecord<string, alepha1543.TAny>>;
6677
+ protected readonly defaultIdentities: Repository<alepha1962.TObject<{
6678
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6679
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6680
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6681
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6682
+ userId: PgAttr<alepha1962.TString, typeof PG_REF>;
6683
+ password: alepha1962.TOptional<alepha1962.TString>;
6684
+ provider: alepha1962.TString;
6685
+ providerUserId: alepha1962.TOptional<alepha1962.TString>;
6686
+ providerData: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
5705
6687
  }>>;
5706
- protected readonly defaultSessions: Repository<alepha1543.TObject<{
5707
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5708
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5709
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5710
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5711
- refreshToken: alepha1543.TString;
5712
- userId: PgAttr<alepha1543.TString, typeof PG_REF>;
5713
- expiresAt: alepha1543.TString;
5714
- ip: alepha1543.TOptional<alepha1543.TString>;
5715
- userAgent: alepha1543.TOptional<alepha1543.TObject<{
5716
- os: alepha1543.TString;
5717
- browser: alepha1543.TString;
5718
- device: alepha1543.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6688
+ protected readonly defaultSessions: Repository<alepha1962.TObject<{
6689
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6690
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6691
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6692
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6693
+ refreshToken: alepha1962.TString;
6694
+ userId: PgAttr<alepha1962.TString, typeof PG_REF>;
6695
+ expiresAt: alepha1962.TString;
6696
+ ip: alepha1962.TOptional<alepha1962.TString>;
6697
+ userAgent: alepha1962.TOptional<alepha1962.TObject<{
6698
+ os: alepha1962.TString;
6699
+ browser: alepha1962.TString;
6700
+ device: alepha1962.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
5719
6701
  }>>;
5720
6702
  }>>;
5721
- protected readonly defaultUsers: Repository<alepha1543.TObject<{
5722
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5723
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5724
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5725
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5726
- realm: PgAttr<alepha1543.TString, typeof PG_DEFAULT>;
5727
- username: alepha1543.TOptional<alepha1543.TString>;
5728
- email: alepha1543.TOptional<alepha1543.TString>;
5729
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
5730
- roles: PgAttr<alepha1543.TArray<alepha1543.TString>, typeof PG_DEFAULT>;
5731
- firstName: alepha1543.TOptional<alepha1543.TString>;
5732
- lastName: alepha1543.TOptional<alepha1543.TString>;
5733
- picture: alepha1543.TOptional<alepha1543.TString>;
5734
- enabled: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
5735
- emailVerified: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
6703
+ protected readonly defaultUsers: Repository<alepha1962.TObject<{
6704
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6705
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6706
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6707
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6708
+ realm: PgAttr<alepha1962.TString, typeof PG_DEFAULT>;
6709
+ username: alepha1962.TOptional<alepha1962.TString>;
6710
+ email: alepha1962.TOptional<alepha1962.TString>;
6711
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
6712
+ roles: PgAttr<alepha1962.TArray<alepha1962.TString>, typeof PG_DEFAULT>;
6713
+ firstName: alepha1962.TOptional<alepha1962.TString>;
6714
+ lastName: alepha1962.TOptional<alepha1962.TString>;
6715
+ picture: alepha1962.TOptional<alepha1962.TString>;
6716
+ enabled: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
6717
+ emailVerified: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
5736
6718
  }>>;
5737
6719
  protected realms: Map<string, UserRealm>;
5738
6720
  avatars: BucketPrimitive;
5739
- protected readonly onConfigure: alepha1543.HookPrimitive<"configure">;
6721
+ protected readonly onConfigure: alepha1962.HookPrimitive<"configure">;
5740
6722
  register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
5741
6723
  /**
5742
6724
  * Gets a registered realm by name, auto-creating default if needed.
@@ -5748,11 +6730,11 @@ declare class UserRealmProvider {
5748
6730
  }
5749
6731
  //#endregion
5750
6732
  //#region ../../../alepha/src/api-users/schemas/sessionQuerySchema.d.ts
5751
- declare const sessionQuerySchema: alepha1543.TObject<{
5752
- page: alepha1543.TOptional<alepha1543.TInteger>;
5753
- size: alepha1543.TOptional<alepha1543.TInteger>;
5754
- sort: alepha1543.TOptional<alepha1543.TString>;
5755
- userId: alepha1543.TOptional<alepha1543.TString>;
6733
+ declare const sessionQuerySchema: alepha1962.TObject<{
6734
+ page: alepha1962.TOptional<alepha1962.TInteger>;
6735
+ size: alepha1962.TOptional<alepha1962.TInteger>;
6736
+ sort: alepha1962.TOptional<alepha1962.TString>;
6737
+ userId: alepha1962.TOptional<alepha1962.TString>;
5756
6738
  }>;
5757
6739
  type SessionQuery = Static<typeof sessionQuerySchema>;
5758
6740
  //#endregion
@@ -5760,19 +6742,19 @@ type SessionQuery = Static<typeof sessionQuerySchema>;
5760
6742
  declare class SessionCrudService {
5761
6743
  protected readonly log: Logger;
5762
6744
  protected readonly userRealmProvider: UserRealmProvider;
5763
- sessions(userRealmName?: string): Repository<alepha1543.TObject<{
5764
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5765
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5766
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5767
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5768
- refreshToken: alepha1543.TString;
5769
- userId: PgAttr<alepha1543.TString, typeof PG_REF>;
5770
- expiresAt: alepha1543.TString;
5771
- ip: alepha1543.TOptional<alepha1543.TString>;
5772
- userAgent: alepha1543.TOptional<alepha1543.TObject<{
5773
- os: alepha1543.TString;
5774
- browser: alepha1543.TString;
5775
- device: alepha1543.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6745
+ sessions(userRealmName?: string): Repository<alepha1962.TObject<{
6746
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6747
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6748
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6749
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6750
+ refreshToken: alepha1962.TString;
6751
+ userId: PgAttr<alepha1962.TString, typeof PG_REF>;
6752
+ expiresAt: alepha1962.TString;
6753
+ ip: alepha1962.TOptional<alepha1962.TString>;
6754
+ userAgent: alepha1962.TOptional<alepha1962.TObject<{
6755
+ os: alepha1962.TString;
6756
+ browser: alepha1962.TString;
6757
+ device: alepha1962.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
5776
6758
  }>>;
5777
6759
  }>>;
5778
6760
  /**
@@ -5798,26 +6780,26 @@ declare class SessionController {
5798
6780
  * Find sessions with pagination and filtering.
5799
6781
  */
5800
6782
  readonly findSessions: ActionPrimitiveFn<{
5801
- query: alepha1543.TObject<{
5802
- page: alepha1543.TOptional<alepha1543.TInteger>;
5803
- size: alepha1543.TOptional<alepha1543.TInteger>;
5804
- sort: alepha1543.TOptional<alepha1543.TString>;
5805
- userId: alepha1543.TOptional<alepha1543.TString>;
5806
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
6783
+ query: alepha1962.TObject<{
6784
+ page: alepha1962.TOptional<alepha1962.TInteger>;
6785
+ size: alepha1962.TOptional<alepha1962.TInteger>;
6786
+ sort: alepha1962.TOptional<alepha1962.TString>;
6787
+ userId: alepha1962.TOptional<alepha1962.TString>;
6788
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
5807
6789
  }>;
5808
- response: alepha1543.TPage<alepha1543.TObject<{
5809
- id: alepha1543.TString;
5810
- version: alepha1543.TNumber;
5811
- createdAt: alepha1543.TString;
5812
- updatedAt: alepha1543.TString;
5813
- refreshToken: alepha1543.TString;
5814
- userId: alepha1543.TString;
5815
- expiresAt: alepha1543.TString;
5816
- ip: alepha1543.TOptional<alepha1543.TString>;
5817
- userAgent: alepha1543.TOptional<alepha1543.TObject<{
5818
- os: alepha1543.TString;
5819
- browser: alepha1543.TString;
5820
- device: alepha1543.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6790
+ response: alepha1962.TPage<alepha1962.TObject<{
6791
+ id: alepha1962.TString;
6792
+ version: alepha1962.TNumber;
6793
+ createdAt: alepha1962.TString;
6794
+ updatedAt: alepha1962.TString;
6795
+ refreshToken: alepha1962.TString;
6796
+ userId: alepha1962.TString;
6797
+ expiresAt: alepha1962.TString;
6798
+ ip: alepha1962.TOptional<alepha1962.TString>;
6799
+ userAgent: alepha1962.TOptional<alepha1962.TObject<{
6800
+ os: alepha1962.TString;
6801
+ browser: alepha1962.TString;
6802
+ device: alepha1962.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
5821
6803
  }>>;
5822
6804
  }>>;
5823
6805
  }>;
@@ -5825,25 +6807,25 @@ declare class SessionController {
5825
6807
  * Get a session by ID.
5826
6808
  */
5827
6809
  readonly getSession: ActionPrimitiveFn<{
5828
- params: alepha1543.TObject<{
5829
- id: alepha1543.TString;
6810
+ params: alepha1962.TObject<{
6811
+ id: alepha1962.TString;
5830
6812
  }>;
5831
- query: alepha1543.TObject<{
5832
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
6813
+ query: alepha1962.TObject<{
6814
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
5833
6815
  }>;
5834
- response: alepha1543.TObject<{
5835
- id: alepha1543.TString;
5836
- version: alepha1543.TNumber;
5837
- createdAt: alepha1543.TString;
5838
- updatedAt: alepha1543.TString;
5839
- refreshToken: alepha1543.TString;
5840
- userId: alepha1543.TString;
5841
- expiresAt: alepha1543.TString;
5842
- ip: alepha1543.TOptional<alepha1543.TString>;
5843
- userAgent: alepha1543.TOptional<alepha1543.TObject<{
5844
- os: alepha1543.TString;
5845
- browser: alepha1543.TString;
5846
- device: alepha1543.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6816
+ response: alepha1962.TObject<{
6817
+ id: alepha1962.TString;
6818
+ version: alepha1962.TNumber;
6819
+ createdAt: alepha1962.TString;
6820
+ updatedAt: alepha1962.TString;
6821
+ refreshToken: alepha1962.TString;
6822
+ userId: alepha1962.TString;
6823
+ expiresAt: alepha1962.TString;
6824
+ ip: alepha1962.TOptional<alepha1962.TString>;
6825
+ userAgent: alepha1962.TOptional<alepha1962.TObject<{
6826
+ os: alepha1962.TString;
6827
+ browser: alepha1962.TString;
6828
+ device: alepha1962.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
5847
6829
  }>>;
5848
6830
  }>;
5849
6831
  }>;
@@ -5851,50 +6833,50 @@ declare class SessionController {
5851
6833
  * Delete a session.
5852
6834
  */
5853
6835
  readonly deleteSession: ActionPrimitiveFn<{
5854
- params: alepha1543.TObject<{
5855
- id: alepha1543.TString;
6836
+ params: alepha1962.TObject<{
6837
+ id: alepha1962.TString;
5856
6838
  }>;
5857
- query: alepha1543.TObject<{
5858
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
6839
+ query: alepha1962.TObject<{
6840
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
5859
6841
  }>;
5860
- response: alepha1543.TObject<{
5861
- ok: alepha1543.TBoolean;
5862
- id: alepha1543.TOptional<alepha1543.TUnion<[alepha1543.TString, alepha1543.TInteger]>>;
5863
- count: alepha1543.TOptional<alepha1543.TNumber>;
6842
+ response: alepha1962.TObject<{
6843
+ ok: alepha1962.TBoolean;
6844
+ id: alepha1962.TOptional<alepha1962.TUnion<[alepha1962.TString, alepha1962.TInteger]>>;
6845
+ count: alepha1962.TOptional<alepha1962.TNumber>;
5864
6846
  }>;
5865
6847
  }>;
5866
6848
  }
5867
6849
  //#endregion
5868
6850
  //#region ../../../alepha/src/api-verifications/entities/verifications.d.ts
5869
- declare const verifications: EntityPrimitive<alepha1543.TObject<{
5870
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5871
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5872
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5873
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5874
- type: alepha1543.TUnsafe<"link" | "code">;
5875
- target: alepha1543.TString;
5876
- code: alepha1543.TString;
5877
- verifiedAt: alepha1543.TOptional<alepha1543.TString>;
5878
- attempts: PgAttr<alepha1543.TInteger, typeof PG_DEFAULT>;
6851
+ declare const verifications: EntityPrimitive<alepha1962.TObject<{
6852
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6853
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6854
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6855
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6856
+ type: alepha1962.TUnsafe<"link" | "code">;
6857
+ target: alepha1962.TString;
6858
+ code: alepha1962.TString;
6859
+ verifiedAt: alepha1962.TOptional<alepha1962.TString>;
6860
+ attempts: PgAttr<alepha1962.TInteger, typeof PG_DEFAULT>;
5879
6861
  }>>;
5880
6862
  type VerificationEntity = Static<typeof verifications.schema>;
5881
6863
  //#endregion
5882
6864
  //#region ../../../alepha/src/api-verifications/schemas/verificationSettingsSchema.d.ts
5883
- declare const verificationSettingsSchema: alepha1543.TObject<{
5884
- code: alepha1543.TObject<{
5885
- maxAttempts: alepha1543.TInteger;
5886
- codeLength: alepha1543.TInteger;
5887
- codeExpiration: alepha1543.TInteger;
5888
- verificationCooldown: alepha1543.TInteger;
5889
- limitPerDay: alepha1543.TInteger;
6865
+ declare const verificationSettingsSchema: alepha1962.TObject<{
6866
+ code: alepha1962.TObject<{
6867
+ maxAttempts: alepha1962.TInteger;
6868
+ codeLength: alepha1962.TInteger;
6869
+ codeExpiration: alepha1962.TInteger;
6870
+ verificationCooldown: alepha1962.TInteger;
6871
+ limitPerDay: alepha1962.TInteger;
5890
6872
  }>;
5891
- link: alepha1543.TObject<{
5892
- maxAttempts: alepha1543.TInteger;
5893
- codeExpiration: alepha1543.TInteger;
5894
- verificationCooldown: alepha1543.TInteger;
5895
- limitPerDay: alepha1543.TInteger;
6873
+ link: alepha1962.TObject<{
6874
+ maxAttempts: alepha1962.TInteger;
6875
+ codeExpiration: alepha1962.TInteger;
6876
+ verificationCooldown: alepha1962.TInteger;
6877
+ limitPerDay: alepha1962.TInteger;
5896
6878
  }>;
5897
- purgeDays: alepha1543.TInteger;
6879
+ purgeDays: alepha1962.TInteger;
5898
6880
  }>;
5899
6881
  type VerificationSettings = Static<typeof verificationSettingsSchema>;
5900
6882
  //#endregion
@@ -5902,21 +6884,21 @@ type VerificationSettings = Static<typeof verificationSettingsSchema>;
5902
6884
  /**
5903
6885
  * Verification settings configuration atom
5904
6886
  */
5905
- declare const verificationOptions: alepha1543.Atom<alepha1543.TObject<{
5906
- code: alepha1543.TObject<{
5907
- maxAttempts: alepha1543.TInteger;
5908
- codeLength: alepha1543.TInteger;
5909
- codeExpiration: alepha1543.TInteger;
5910
- verificationCooldown: alepha1543.TInteger;
5911
- limitPerDay: alepha1543.TInteger;
6887
+ declare const verificationOptions: alepha1962.Atom<alepha1962.TObject<{
6888
+ code: alepha1962.TObject<{
6889
+ maxAttempts: alepha1962.TInteger;
6890
+ codeLength: alepha1962.TInteger;
6891
+ codeExpiration: alepha1962.TInteger;
6892
+ verificationCooldown: alepha1962.TInteger;
6893
+ limitPerDay: alepha1962.TInteger;
5912
6894
  }>;
5913
- link: alepha1543.TObject<{
5914
- maxAttempts: alepha1543.TInteger;
5915
- codeExpiration: alepha1543.TInteger;
5916
- verificationCooldown: alepha1543.TInteger;
5917
- limitPerDay: alepha1543.TInteger;
6895
+ link: alepha1962.TObject<{
6896
+ maxAttempts: alepha1962.TInteger;
6897
+ codeExpiration: alepha1962.TInteger;
6898
+ verificationCooldown: alepha1962.TInteger;
6899
+ limitPerDay: alepha1962.TInteger;
5918
6900
  }>;
5919
- purgeDays: alepha1543.TInteger;
6901
+ purgeDays: alepha1962.TInteger;
5920
6902
  }>, "alepha.api.verifications.options">;
5921
6903
  type VerificationOptions = Static<typeof verificationOptions.schema>;
5922
6904
  declare module "alepha" {
@@ -5945,23 +6927,23 @@ declare class VerificationParameters {
5945
6927
  }
5946
6928
  //#endregion
5947
6929
  //#region ../../../alepha/src/api-verifications/schemas/requestVerificationCodeResponseSchema.d.ts
5948
- declare const requestVerificationCodeResponseSchema: alepha1543.TObject<{
5949
- token: alepha1543.TString;
5950
- codeExpiration: alepha1543.TInteger;
5951
- verificationCooldown: alepha1543.TInteger;
5952
- maxVerificationAttempts: alepha1543.TInteger;
6930
+ declare const requestVerificationCodeResponseSchema: alepha1962.TObject<{
6931
+ token: alepha1962.TString;
6932
+ codeExpiration: alepha1962.TInteger;
6933
+ verificationCooldown: alepha1962.TInteger;
6934
+ maxVerificationAttempts: alepha1962.TInteger;
5953
6935
  }>;
5954
6936
  type RequestVerificationResponse = Static<typeof requestVerificationCodeResponseSchema>;
5955
6937
  //#endregion
5956
6938
  //#region ../../../alepha/src/api-verifications/schemas/validateVerificationCodeResponseSchema.d.ts
5957
- declare const validateVerificationCodeResponseSchema: alepha1543.TObject<{
5958
- ok: alepha1543.TBoolean;
5959
- alreadyVerified: alepha1543.TOptional<alepha1543.TBoolean>;
6939
+ declare const validateVerificationCodeResponseSchema: alepha1962.TObject<{
6940
+ ok: alepha1962.TBoolean;
6941
+ alreadyVerified: alepha1962.TOptional<alepha1962.TBoolean>;
5960
6942
  }>;
5961
6943
  type ValidateVerificationCodeResponse = Static<typeof validateVerificationCodeResponseSchema>;
5962
6944
  //#endregion
5963
6945
  //#region ../../../alepha/src/api-verifications/schemas/verificationTypeEnumSchema.d.ts
5964
- declare const verificationTypeEnumSchema: alepha1543.TUnsafe<"link" | "code">;
6946
+ declare const verificationTypeEnumSchema: alepha1962.TUnsafe<"link" | "code">;
5965
6947
  type VerificationTypeEnum = Static<typeof verificationTypeEnumSchema>;
5966
6948
  //#endregion
5967
6949
  //#region ../../../alepha/src/api-verifications/services/VerificationService.d.ts
@@ -5969,38 +6951,38 @@ declare class VerificationService {
5969
6951
  protected readonly log: Logger;
5970
6952
  protected readonly dateTimeProvider: DateTimeProvider;
5971
6953
  protected readonly verificationParameters: VerificationParameters;
5972
- protected readonly verificationRepository: Repository<alepha1543.TObject<{
5973
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5974
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5975
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5976
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5977
- type: alepha1543.TUnsafe<"link" | "code">;
5978
- target: alepha1543.TString;
5979
- code: alepha1543.TString;
5980
- verifiedAt: alepha1543.TOptional<alepha1543.TString>;
5981
- attempts: PgAttr<alepha1543.TInteger, typeof PG_DEFAULT>;
6954
+ protected readonly verificationRepository: Repository<alepha1962.TObject<{
6955
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6956
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6957
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6958
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6959
+ type: alepha1962.TUnsafe<"link" | "code">;
6960
+ target: alepha1962.TString;
6961
+ code: alepha1962.TString;
6962
+ verifiedAt: alepha1962.TOptional<alepha1962.TString>;
6963
+ attempts: PgAttr<alepha1962.TInteger, typeof PG_DEFAULT>;
5982
6964
  }>>;
5983
6965
  findByEntry(entry: VerificationEntry): Promise<VerificationEntity>;
5984
- findRecentsByEntry(entry: VerificationEntry): Promise<PgStatic<alepha1543.TObject<{
5985
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5986
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5987
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5988
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5989
- type: alepha1543.TUnsafe<"link" | "code">;
5990
- target: alepha1543.TString;
5991
- code: alepha1543.TString;
5992
- verifiedAt: alepha1543.TOptional<alepha1543.TString>;
5993
- attempts: PgAttr<alepha1543.TInteger, typeof PG_DEFAULT>;
5994
- }>, PgRelationMap<alepha1543.TObject<{
5995
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
5996
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
5997
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
5998
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
5999
- type: alepha1543.TUnsafe<"link" | "code">;
6000
- target: alepha1543.TString;
6001
- code: alepha1543.TString;
6002
- verifiedAt: alepha1543.TOptional<alepha1543.TString>;
6003
- attempts: PgAttr<alepha1543.TInteger, typeof PG_DEFAULT>;
6966
+ findRecentsByEntry(entry: VerificationEntry): Promise<PgStatic<alepha1962.TObject<{
6967
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6968
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6969
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6970
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6971
+ type: alepha1962.TUnsafe<"link" | "code">;
6972
+ target: alepha1962.TString;
6973
+ code: alepha1962.TString;
6974
+ verifiedAt: alepha1962.TOptional<alepha1962.TString>;
6975
+ attempts: PgAttr<alepha1962.TInteger, typeof PG_DEFAULT>;
6976
+ }>, PgRelationMap<alepha1962.TObject<{
6977
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6978
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6979
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6980
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6981
+ type: alepha1962.TUnsafe<"link" | "code">;
6982
+ target: alepha1962.TString;
6983
+ code: alepha1962.TString;
6984
+ verifiedAt: alepha1962.TOptional<alepha1962.TString>;
6985
+ attempts: PgAttr<alepha1962.TInteger, typeof PG_DEFAULT>;
6004
6986
  }>>>[]>;
6005
6987
  /**
6006
6988
  * Creates a verification entry and returns the token.
@@ -6023,60 +7005,60 @@ declare class VerificationController {
6023
7005
  readonly url = "/verifications";
6024
7006
  readonly group = "verifications";
6025
7007
  readonly requestVerificationCode: ActionPrimitiveFn<{
6026
- params: alepha1543.TObject<{
6027
- type: alepha1543.TUnsafe<"link" | "code">;
7008
+ params: alepha1962.TObject<{
7009
+ type: alepha1962.TUnsafe<"link" | "code">;
6028
7010
  }>;
6029
- body: alepha1543.TObject<{
6030
- target: alepha1543.TString;
7011
+ body: alepha1962.TObject<{
7012
+ target: alepha1962.TString;
6031
7013
  }>;
6032
- response: alepha1543.TObject<{
6033
- token: alepha1543.TString;
6034
- codeExpiration: alepha1543.TInteger;
6035
- verificationCooldown: alepha1543.TInteger;
6036
- maxVerificationAttempts: alepha1543.TInteger;
7014
+ response: alepha1962.TObject<{
7015
+ token: alepha1962.TString;
7016
+ codeExpiration: alepha1962.TInteger;
7017
+ verificationCooldown: alepha1962.TInteger;
7018
+ maxVerificationAttempts: alepha1962.TInteger;
6037
7019
  }>;
6038
7020
  }>;
6039
7021
  readonly validateVerificationCode: ActionPrimitiveFn<{
6040
- params: alepha1543.TObject<{
6041
- type: alepha1543.TUnsafe<"link" | "code">;
7022
+ params: alepha1962.TObject<{
7023
+ type: alepha1962.TUnsafe<"link" | "code">;
6042
7024
  }>;
6043
- body: alepha1543.TObject<{
6044
- target: alepha1543.TString;
6045
- token: alepha1543.TString;
7025
+ body: alepha1962.TObject<{
7026
+ target: alepha1962.TString;
7027
+ token: alepha1962.TString;
6046
7028
  }>;
6047
- response: alepha1543.TObject<{
6048
- ok: alepha1543.TBoolean;
6049
- alreadyVerified: alepha1543.TOptional<alepha1543.TBoolean>;
7029
+ response: alepha1962.TObject<{
7030
+ ok: alepha1962.TBoolean;
7031
+ alreadyVerified: alepha1962.TOptional<alepha1962.TBoolean>;
6050
7032
  }>;
6051
7033
  }>;
6052
7034
  }
6053
7035
  //#endregion
6054
7036
  //#region ../../../alepha/src/api-users/notifications/UserNotifications.d.ts
6055
7037
  declare class UserNotifications {
6056
- readonly passwordReset: NotificationPrimitive<alepha1543.TObject<{
6057
- email: alepha1543.TString;
6058
- code: alepha1543.TString;
6059
- expiresInMinutes: alepha1543.TNumber;
7038
+ readonly passwordReset: NotificationPrimitive<alepha1962.TObject<{
7039
+ email: alepha1962.TString;
7040
+ code: alepha1962.TString;
7041
+ expiresInMinutes: alepha1962.TNumber;
6060
7042
  }>>;
6061
- readonly emailVerification: NotificationPrimitive<alepha1543.TObject<{
6062
- email: alepha1543.TString;
6063
- code: alepha1543.TString;
6064
- expiresInMinutes: alepha1543.TNumber;
7043
+ readonly emailVerification: NotificationPrimitive<alepha1962.TObject<{
7044
+ email: alepha1962.TString;
7045
+ code: alepha1962.TString;
7046
+ expiresInMinutes: alepha1962.TNumber;
6065
7047
  }>>;
6066
- readonly phoneVerification: NotificationPrimitive<alepha1543.TObject<{
6067
- phoneNumber: alepha1543.TString;
6068
- code: alepha1543.TString;
6069
- expiresInMinutes: alepha1543.TNumber;
7048
+ readonly phoneVerification: NotificationPrimitive<alepha1962.TObject<{
7049
+ phoneNumber: alepha1962.TString;
7050
+ code: alepha1962.TString;
7051
+ expiresInMinutes: alepha1962.TNumber;
6070
7052
  }>>;
6071
- readonly passwordResetLink: NotificationPrimitive<alepha1543.TObject<{
6072
- email: alepha1543.TString;
6073
- resetUrl: alepha1543.TString;
6074
- expiresInMinutes: alepha1543.TNumber;
7053
+ readonly passwordResetLink: NotificationPrimitive<alepha1962.TObject<{
7054
+ email: alepha1962.TString;
7055
+ resetUrl: alepha1962.TString;
7056
+ expiresInMinutes: alepha1962.TNumber;
6075
7057
  }>>;
6076
- readonly emailVerificationLink: NotificationPrimitive<alepha1543.TObject<{
6077
- email: alepha1543.TString;
6078
- verifyUrl: alepha1543.TString;
6079
- expiresInMinutes: alepha1543.TNumber;
7058
+ readonly emailVerificationLink: NotificationPrimitive<alepha1962.TObject<{
7059
+ email: alepha1962.TString;
7060
+ verifyUrl: alepha1962.TString;
7061
+ expiresInMinutes: alepha1962.TNumber;
6080
7062
  }>>;
6081
7063
  }
6082
7064
  //#endregion
@@ -6087,10 +7069,10 @@ declare class UserNotifications {
6087
7069
  * Requires the intent ID from Phase 1, the verification code,
6088
7070
  * and the new password.
6089
7071
  */
6090
- declare const completePasswordResetRequestSchema: alepha1543.TObject<{
6091
- intentId: alepha1543.TString;
6092
- code: alepha1543.TString;
6093
- newPassword: alepha1543.TString;
7072
+ declare const completePasswordResetRequestSchema: alepha1962.TObject<{
7073
+ intentId: alepha1962.TString;
7074
+ code: alepha1962.TString;
7075
+ newPassword: alepha1962.TString;
6094
7076
  }>;
6095
7077
  type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
6096
7078
  //#endregion
@@ -6101,9 +7083,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
6101
7083
  * Contains the intent ID needed for Phase 2 completion,
6102
7084
  * along with expiration time.
6103
7085
  */
6104
- declare const passwordResetIntentResponseSchema: alepha1543.TObject<{
6105
- intentId: alepha1543.TString;
6106
- expiresAt: alepha1543.TString;
7086
+ declare const passwordResetIntentResponseSchema: alepha1962.TObject<{
7087
+ intentId: alepha1962.TString;
7088
+ expiresAt: alepha1962.TString;
6107
7089
  }>;
6108
7090
  type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
6109
7091
  //#endregion
@@ -6126,47 +7108,47 @@ declare class CredentialService {
6126
7108
  protected readonly userNotifications: UserNotifications;
6127
7109
  protected readonly userRealmProvider: UserRealmProvider;
6128
7110
  protected readonly intentCache: CachePrimitiveFn<PasswordResetIntent, any[]>;
6129
- users(userRealmName?: string): Repository<alepha1543.TObject<{
6130
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6131
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6132
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6133
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6134
- realm: PgAttr<alepha1543.TString, typeof PG_DEFAULT>;
6135
- username: alepha1543.TOptional<alepha1543.TString>;
6136
- email: alepha1543.TOptional<alepha1543.TString>;
6137
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
6138
- roles: PgAttr<alepha1543.TArray<alepha1543.TString>, typeof PG_DEFAULT>;
6139
- firstName: alepha1543.TOptional<alepha1543.TString>;
6140
- lastName: alepha1543.TOptional<alepha1543.TString>;
6141
- picture: alepha1543.TOptional<alepha1543.TString>;
6142
- enabled: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
6143
- emailVerified: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
7111
+ users(userRealmName?: string): Repository<alepha1962.TObject<{
7112
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7113
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7114
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7115
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7116
+ realm: PgAttr<alepha1962.TString, typeof PG_DEFAULT>;
7117
+ username: alepha1962.TOptional<alepha1962.TString>;
7118
+ email: alepha1962.TOptional<alepha1962.TString>;
7119
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
7120
+ roles: PgAttr<alepha1962.TArray<alepha1962.TString>, typeof PG_DEFAULT>;
7121
+ firstName: alepha1962.TOptional<alepha1962.TString>;
7122
+ lastName: alepha1962.TOptional<alepha1962.TString>;
7123
+ picture: alepha1962.TOptional<alepha1962.TString>;
7124
+ enabled: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
7125
+ emailVerified: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
6144
7126
  }>>;
6145
- sessions(userRealmName?: string): Repository<alepha1543.TObject<{
6146
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6147
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6148
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6149
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6150
- refreshToken: alepha1543.TString;
6151
- userId: PgAttr<alepha1543.TString, typeof PG_REF>;
6152
- expiresAt: alepha1543.TString;
6153
- ip: alepha1543.TOptional<alepha1543.TString>;
6154
- userAgent: alepha1543.TOptional<alepha1543.TObject<{
6155
- os: alepha1543.TString;
6156
- browser: alepha1543.TString;
6157
- device: alepha1543.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7127
+ sessions(userRealmName?: string): Repository<alepha1962.TObject<{
7128
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7129
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7130
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7131
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7132
+ refreshToken: alepha1962.TString;
7133
+ userId: PgAttr<alepha1962.TString, typeof PG_REF>;
7134
+ expiresAt: alepha1962.TString;
7135
+ ip: alepha1962.TOptional<alepha1962.TString>;
7136
+ userAgent: alepha1962.TOptional<alepha1962.TObject<{
7137
+ os: alepha1962.TString;
7138
+ browser: alepha1962.TString;
7139
+ device: alepha1962.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6158
7140
  }>>;
6159
7141
  }>>;
6160
- identities(userRealmName?: string): Repository<alepha1543.TObject<{
6161
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6162
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6163
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6164
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6165
- userId: PgAttr<alepha1543.TString, typeof PG_REF>;
6166
- password: alepha1543.TOptional<alepha1543.TString>;
6167
- provider: alepha1543.TString;
6168
- providerUserId: alepha1543.TOptional<alepha1543.TString>;
6169
- providerData: alepha1543.TOptional<alepha1543.TRecord<string, alepha1543.TAny>>;
7142
+ identities(userRealmName?: string): Repository<alepha1962.TObject<{
7143
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7144
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7145
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7146
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7147
+ userId: PgAttr<alepha1962.TString, typeof PG_REF>;
7148
+ password: alepha1962.TOptional<alepha1962.TString>;
7149
+ provider: alepha1962.TString;
7150
+ providerUserId: alepha1962.TOptional<alepha1962.TString>;
7151
+ providerData: alepha1962.TOptional<alepha1962.TRecord<string, alepha1962.TAny>>;
6170
7152
  }>>;
6171
7153
  /**
6172
7154
  * Phase 1: Create a password reset intent.
@@ -6203,11 +7185,11 @@ declare class CredentialService {
6203
7185
  }
6204
7186
  //#endregion
6205
7187
  //#region ../../../alepha/src/api-users/schemas/completeRegistrationRequestSchema.d.ts
6206
- declare const completeRegistrationRequestSchema: alepha1543.TObject<{
6207
- intentId: alepha1543.TString;
6208
- emailCode: alepha1543.TOptional<alepha1543.TString>;
6209
- phoneCode: alepha1543.TOptional<alepha1543.TString>;
6210
- captchaToken: alepha1543.TOptional<alepha1543.TString>;
7188
+ declare const completeRegistrationRequestSchema: alepha1962.TObject<{
7189
+ intentId: alepha1962.TString;
7190
+ emailCode: alepha1962.TOptional<alepha1962.TString>;
7191
+ phoneCode: alepha1962.TOptional<alepha1962.TString>;
7192
+ captchaToken: alepha1962.TOptional<alepha1962.TString>;
6211
7193
  }>;
6212
7194
  type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
6213
7195
  //#endregion
@@ -6216,24 +7198,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
6216
7198
  * Schema for user registration request body.
6217
7199
  * Password is always required, other fields depend on realm settings.
6218
7200
  */
6219
- declare const registerRequestSchema: alepha1543.TObject<{
6220
- password: alepha1543.TString;
6221
- username: alepha1543.TOptional<alepha1543.TString>;
6222
- email: alepha1543.TOptional<alepha1543.TString>;
6223
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
6224
- firstName: alepha1543.TOptional<alepha1543.TString>;
6225
- lastName: alepha1543.TOptional<alepha1543.TString>;
6226
- picture: alepha1543.TOptional<alepha1543.TString>;
7201
+ declare const registerRequestSchema: alepha1962.TObject<{
7202
+ password: alepha1962.TString;
7203
+ username: alepha1962.TOptional<alepha1962.TString>;
7204
+ email: alepha1962.TOptional<alepha1962.TString>;
7205
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
7206
+ firstName: alepha1962.TOptional<alepha1962.TString>;
7207
+ lastName: alepha1962.TOptional<alepha1962.TString>;
7208
+ picture: alepha1962.TOptional<alepha1962.TString>;
6227
7209
  }>;
6228
7210
  type RegisterRequest = Static<typeof registerRequestSchema>;
6229
7211
  //#endregion
6230
7212
  //#region ../../../alepha/src/api-users/schemas/registrationIntentResponseSchema.d.ts
6231
- declare const registrationIntentResponseSchema: alepha1543.TObject<{
6232
- intentId: alepha1543.TString;
6233
- expectCaptcha: alepha1543.TBoolean;
6234
- expectEmailVerification: alepha1543.TBoolean;
6235
- expectPhoneVerification: alepha1543.TBoolean;
6236
- expiresAt: alepha1543.TString;
7213
+ declare const registrationIntentResponseSchema: alepha1962.TObject<{
7214
+ intentId: alepha1962.TString;
7215
+ expectCaptcha: alepha1962.TBoolean;
7216
+ expectEmailVerification: alepha1962.TBoolean;
7217
+ expectPhoneVerification: alepha1962.TBoolean;
7218
+ expiresAt: alepha1962.TString;
6237
7219
  }>;
6238
7220
  type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
6239
7221
  //#endregion
@@ -6304,46 +7286,46 @@ declare class RegistrationService {
6304
7286
  }
6305
7287
  //#endregion
6306
7288
  //#region ../../../alepha/src/api-users/schemas/createUserSchema.d.ts
6307
- declare const createUserSchema: alepha1543.TObject<{
6308
- id: alepha1543.TOptional<PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
6309
- email: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6310
- username: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6311
- picture: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6312
- roles: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
6313
- phoneNumber: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6314
- firstName: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6315
- lastName: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6316
- enabled: alepha1543.TOptional<PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>>;
6317
- emailVerified: alepha1543.TOptional<PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>>;
6318
- version: alepha1543.TOptional<PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
6319
- createdAt: alepha1543.TOptional<PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
6320
- updatedAt: alepha1543.TOptional<PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7289
+ declare const createUserSchema: alepha1962.TObject<{
7290
+ id: alepha1962.TOptional<PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7291
+ email: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7292
+ username: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7293
+ picture: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7294
+ roles: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
7295
+ version: alepha1962.TOptional<PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7296
+ createdAt: alepha1962.TOptional<PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7297
+ updatedAt: alepha1962.TOptional<PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7298
+ phoneNumber: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7299
+ firstName: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7300
+ lastName: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7301
+ enabled: alepha1962.TOptional<PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>>;
7302
+ emailVerified: alepha1962.TOptional<PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>>;
6321
7303
  }>;
6322
7304
  type CreateUser = Static<typeof createUserSchema>;
6323
7305
  //#endregion
6324
7306
  //#region ../../../alepha/src/api-users/schemas/updateUserSchema.d.ts
6325
- declare const updateUserSchema: alepha1543.TObject<{
6326
- email: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6327
- picture: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6328
- roles: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
6329
- phoneNumber: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6330
- firstName: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6331
- lastName: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6332
- enabled: alepha1543.TOptional<PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>>;
6333
- realm: alepha1543.TOptional<PgAttr<alepha1543.TString, typeof PG_DEFAULT>>;
7307
+ declare const updateUserSchema: alepha1962.TObject<{
7308
+ realm: alepha1962.TOptional<PgAttr<alepha1962.TString, typeof PG_DEFAULT>>;
7309
+ email: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7310
+ picture: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7311
+ roles: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
7312
+ phoneNumber: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7313
+ firstName: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7314
+ lastName: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7315
+ enabled: alepha1962.TOptional<PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>>;
6334
7316
  }>;
6335
7317
  type UpdateUser = Static<typeof updateUserSchema>;
6336
7318
  //#endregion
6337
7319
  //#region ../../../alepha/src/api-users/schemas/userQuerySchema.d.ts
6338
- declare const userQuerySchema: alepha1543.TObject<{
6339
- page: alepha1543.TOptional<alepha1543.TInteger>;
6340
- size: alepha1543.TOptional<alepha1543.TInteger>;
6341
- sort: alepha1543.TOptional<alepha1543.TString>;
6342
- email: alepha1543.TOptional<alepha1543.TString>;
6343
- enabled: alepha1543.TOptional<alepha1543.TBoolean>;
6344
- emailVerified: alepha1543.TOptional<alepha1543.TBoolean>;
6345
- roles: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
6346
- query: alepha1543.TOptional<alepha1543.TString>;
7320
+ declare const userQuerySchema: alepha1962.TObject<{
7321
+ page: alepha1962.TOptional<alepha1962.TInteger>;
7322
+ size: alepha1962.TOptional<alepha1962.TInteger>;
7323
+ sort: alepha1962.TOptional<alepha1962.TString>;
7324
+ email: alepha1962.TOptional<alepha1962.TString>;
7325
+ enabled: alepha1962.TOptional<alepha1962.TBoolean>;
7326
+ emailVerified: alepha1962.TOptional<alepha1962.TBoolean>;
7327
+ roles: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
7328
+ query: alepha1962.TOptional<alepha1962.TString>;
6347
7329
  }>;
6348
7330
  type UserQuery = Static<typeof userQuerySchema>;
6349
7331
  //#endregion
@@ -6353,21 +7335,21 @@ declare class UserService {
6353
7335
  protected readonly verificationController: HttpVirtualClient<VerificationController>;
6354
7336
  protected readonly userNotifications: UserNotifications;
6355
7337
  protected readonly userRealmProvider: UserRealmProvider;
6356
- users(userRealmName?: string): Repository<alepha1543.TObject<{
6357
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6358
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6359
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6360
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6361
- realm: PgAttr<alepha1543.TString, typeof PG_DEFAULT>;
6362
- username: alepha1543.TOptional<alepha1543.TString>;
6363
- email: alepha1543.TOptional<alepha1543.TString>;
6364
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
6365
- roles: PgAttr<alepha1543.TArray<alepha1543.TString>, typeof PG_DEFAULT>;
6366
- firstName: alepha1543.TOptional<alepha1543.TString>;
6367
- lastName: alepha1543.TOptional<alepha1543.TString>;
6368
- picture: alepha1543.TOptional<alepha1543.TString>;
6369
- enabled: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
6370
- emailVerified: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
7338
+ users(userRealmName?: string): Repository<alepha1962.TObject<{
7339
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7340
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7341
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7342
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7343
+ realm: PgAttr<alepha1962.TString, typeof PG_DEFAULT>;
7344
+ username: alepha1962.TOptional<alepha1962.TString>;
7345
+ email: alepha1962.TOptional<alepha1962.TString>;
7346
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
7347
+ roles: PgAttr<alepha1962.TArray<alepha1962.TString>, typeof PG_DEFAULT>;
7348
+ firstName: alepha1962.TOptional<alepha1962.TString>;
7349
+ lastName: alepha1962.TOptional<alepha1962.TString>;
7350
+ picture: alepha1962.TOptional<alepha1962.TString>;
7351
+ enabled: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
7352
+ emailVerified: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
6371
7353
  }>>;
6372
7354
  /**
6373
7355
  * Request email verification for a user.
@@ -6420,122 +7402,122 @@ declare class UserController {
6420
7402
  * Validates data, creates verification sessions, and stores intent in cache.
6421
7403
  */
6422
7404
  readonly createRegistrationIntent: ActionPrimitiveFn<{
6423
- body: alepha1543.TObject<{
6424
- password: alepha1543.TString;
6425
- username: alepha1543.TOptional<alepha1543.TString>;
6426
- email: alepha1543.TOptional<alepha1543.TString>;
6427
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
6428
- firstName: alepha1543.TOptional<alepha1543.TString>;
6429
- lastName: alepha1543.TOptional<alepha1543.TString>;
6430
- picture: alepha1543.TOptional<alepha1543.TString>;
7405
+ body: alepha1962.TObject<{
7406
+ password: alepha1962.TString;
7407
+ username: alepha1962.TOptional<alepha1962.TString>;
7408
+ email: alepha1962.TOptional<alepha1962.TString>;
7409
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
7410
+ firstName: alepha1962.TOptional<alepha1962.TString>;
7411
+ lastName: alepha1962.TOptional<alepha1962.TString>;
7412
+ picture: alepha1962.TOptional<alepha1962.TString>;
6431
7413
  }>;
6432
- query: alepha1543.TObject<{
6433
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7414
+ query: alepha1962.TObject<{
7415
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6434
7416
  }>;
6435
- response: alepha1543.TObject<{
6436
- intentId: alepha1543.TString;
6437
- expectCaptcha: alepha1543.TBoolean;
6438
- expectEmailVerification: alepha1543.TBoolean;
6439
- expectPhoneVerification: alepha1543.TBoolean;
6440
- expiresAt: alepha1543.TString;
7417
+ response: alepha1962.TObject<{
7418
+ intentId: alepha1962.TString;
7419
+ expectCaptcha: alepha1962.TBoolean;
7420
+ expectEmailVerification: alepha1962.TBoolean;
7421
+ expectPhoneVerification: alepha1962.TBoolean;
7422
+ expiresAt: alepha1962.TString;
6441
7423
  }>;
6442
7424
  }>;
6443
7425
  /**
6444
7426
  * Find users with pagination and filtering.
6445
7427
  */
6446
7428
  readonly findUsers: ActionPrimitiveFn<{
6447
- query: alepha1543.TObject<{
6448
- page: alepha1543.TOptional<alepha1543.TInteger>;
6449
- size: alepha1543.TOptional<alepha1543.TInteger>;
6450
- sort: alepha1543.TOptional<alepha1543.TString>;
6451
- email: alepha1543.TOptional<alepha1543.TString>;
6452
- enabled: alepha1543.TOptional<alepha1543.TBoolean>;
6453
- emailVerified: alepha1543.TOptional<alepha1543.TBoolean>;
6454
- roles: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
6455
- query: alepha1543.TOptional<alepha1543.TString>;
6456
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7429
+ query: alepha1962.TObject<{
7430
+ page: alepha1962.TOptional<alepha1962.TInteger>;
7431
+ size: alepha1962.TOptional<alepha1962.TInteger>;
7432
+ sort: alepha1962.TOptional<alepha1962.TString>;
7433
+ email: alepha1962.TOptional<alepha1962.TString>;
7434
+ enabled: alepha1962.TOptional<alepha1962.TBoolean>;
7435
+ emailVerified: alepha1962.TOptional<alepha1962.TBoolean>;
7436
+ roles: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
7437
+ query: alepha1962.TOptional<alepha1962.TString>;
7438
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6457
7439
  }>;
6458
- response: alepha1543.TPage<alepha1543.TObject<{
6459
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6460
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6461
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6462
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6463
- realm: PgAttr<alepha1543.TString, typeof PG_DEFAULT>;
6464
- username: alepha1543.TOptional<alepha1543.TString>;
6465
- email: alepha1543.TOptional<alepha1543.TString>;
6466
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
6467
- roles: PgAttr<alepha1543.TArray<alepha1543.TString>, typeof PG_DEFAULT>;
6468
- firstName: alepha1543.TOptional<alepha1543.TString>;
6469
- lastName: alepha1543.TOptional<alepha1543.TString>;
6470
- picture: alepha1543.TOptional<alepha1543.TString>;
6471
- enabled: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
6472
- emailVerified: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
7440
+ response: alepha1962.TPage<alepha1962.TObject<{
7441
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7442
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7443
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7444
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7445
+ realm: PgAttr<alepha1962.TString, typeof PG_DEFAULT>;
7446
+ username: alepha1962.TOptional<alepha1962.TString>;
7447
+ email: alepha1962.TOptional<alepha1962.TString>;
7448
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
7449
+ roles: PgAttr<alepha1962.TArray<alepha1962.TString>, typeof PG_DEFAULT>;
7450
+ firstName: alepha1962.TOptional<alepha1962.TString>;
7451
+ lastName: alepha1962.TOptional<alepha1962.TString>;
7452
+ picture: alepha1962.TOptional<alepha1962.TString>;
7453
+ enabled: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
7454
+ emailVerified: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
6473
7455
  }>>;
6474
7456
  }>;
6475
7457
  /**
6476
7458
  * Get a user by ID.
6477
7459
  */
6478
7460
  readonly getUser: ActionPrimitiveFn<{
6479
- params: alepha1543.TObject<{
6480
- id: alepha1543.TString;
7461
+ params: alepha1962.TObject<{
7462
+ id: alepha1962.TString;
6481
7463
  }>;
6482
- query: alepha1543.TObject<{
6483
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7464
+ query: alepha1962.TObject<{
7465
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6484
7466
  }>;
6485
- response: alepha1543.TObject<{
6486
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6487
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6488
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6489
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6490
- realm: PgAttr<alepha1543.TString, typeof PG_DEFAULT>;
6491
- username: alepha1543.TOptional<alepha1543.TString>;
6492
- email: alepha1543.TOptional<alepha1543.TString>;
6493
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
6494
- roles: PgAttr<alepha1543.TArray<alepha1543.TString>, typeof PG_DEFAULT>;
6495
- firstName: alepha1543.TOptional<alepha1543.TString>;
6496
- lastName: alepha1543.TOptional<alepha1543.TString>;
6497
- picture: alepha1543.TOptional<alepha1543.TString>;
6498
- enabled: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
6499
- emailVerified: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
7467
+ response: alepha1962.TObject<{
7468
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7469
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7470
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7471
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7472
+ realm: PgAttr<alepha1962.TString, typeof PG_DEFAULT>;
7473
+ username: alepha1962.TOptional<alepha1962.TString>;
7474
+ email: alepha1962.TOptional<alepha1962.TString>;
7475
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
7476
+ roles: PgAttr<alepha1962.TArray<alepha1962.TString>, typeof PG_DEFAULT>;
7477
+ firstName: alepha1962.TOptional<alepha1962.TString>;
7478
+ lastName: alepha1962.TOptional<alepha1962.TString>;
7479
+ picture: alepha1962.TOptional<alepha1962.TString>;
7480
+ enabled: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
7481
+ emailVerified: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
6500
7482
  }>;
6501
7483
  }>;
6502
7484
  /**
6503
7485
  * Create a new user.
6504
7486
  */
6505
7487
  readonly createUser: ActionPrimitiveFn<{
6506
- query: alepha1543.TObject<{
6507
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7488
+ query: alepha1962.TObject<{
7489
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6508
7490
  }>;
6509
- body: alepha1543.TObject<{
6510
- id: alepha1543.TOptional<PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
6511
- email: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6512
- username: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6513
- picture: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6514
- roles: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
6515
- phoneNumber: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6516
- firstName: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6517
- lastName: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6518
- enabled: alepha1543.TOptional<PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>>;
6519
- emailVerified: alepha1543.TOptional<PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>>;
6520
- version: alepha1543.TOptional<PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
6521
- createdAt: alepha1543.TOptional<PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
6522
- updatedAt: alepha1543.TOptional<PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7491
+ body: alepha1962.TObject<{
7492
+ id: alepha1962.TOptional<PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7493
+ email: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7494
+ username: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7495
+ picture: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7496
+ roles: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
7497
+ version: alepha1962.TOptional<PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7498
+ createdAt: alepha1962.TOptional<PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7499
+ updatedAt: alepha1962.TOptional<PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7500
+ phoneNumber: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7501
+ firstName: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7502
+ lastName: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7503
+ enabled: alepha1962.TOptional<PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>>;
7504
+ emailVerified: alepha1962.TOptional<PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>>;
6523
7505
  }>;
6524
- response: alepha1543.TObject<{
6525
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6526
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6527
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6528
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6529
- realm: PgAttr<alepha1543.TString, typeof PG_DEFAULT>;
6530
- username: alepha1543.TOptional<alepha1543.TString>;
6531
- email: alepha1543.TOptional<alepha1543.TString>;
6532
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
6533
- roles: PgAttr<alepha1543.TArray<alepha1543.TString>, typeof PG_DEFAULT>;
6534
- firstName: alepha1543.TOptional<alepha1543.TString>;
6535
- lastName: alepha1543.TOptional<alepha1543.TString>;
6536
- picture: alepha1543.TOptional<alepha1543.TString>;
6537
- enabled: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
6538
- emailVerified: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
7506
+ response: alepha1962.TObject<{
7507
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7508
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7509
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7510
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7511
+ realm: PgAttr<alepha1962.TString, typeof PG_DEFAULT>;
7512
+ username: alepha1962.TOptional<alepha1962.TString>;
7513
+ email: alepha1962.TOptional<alepha1962.TString>;
7514
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
7515
+ roles: PgAttr<alepha1962.TArray<alepha1962.TString>, typeof PG_DEFAULT>;
7516
+ firstName: alepha1962.TOptional<alepha1962.TString>;
7517
+ lastName: alepha1962.TOptional<alepha1962.TString>;
7518
+ picture: alepha1962.TOptional<alepha1962.TString>;
7519
+ enabled: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
7520
+ emailVerified: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
6539
7521
  }>;
6540
7522
  }>;
6541
7523
  /**
@@ -6543,80 +7525,80 @@ declare class UserController {
6543
7525
  * Validates verification codes and creates the user.
6544
7526
  */
6545
7527
  readonly createUserFromIntent: ActionPrimitiveFn<{
6546
- body: alepha1543.TObject<{
6547
- intentId: alepha1543.TString;
6548
- emailCode: alepha1543.TOptional<alepha1543.TString>;
6549
- phoneCode: alepha1543.TOptional<alepha1543.TString>;
6550
- captchaToken: alepha1543.TOptional<alepha1543.TString>;
7528
+ body: alepha1962.TObject<{
7529
+ intentId: alepha1962.TString;
7530
+ emailCode: alepha1962.TOptional<alepha1962.TString>;
7531
+ phoneCode: alepha1962.TOptional<alepha1962.TString>;
7532
+ captchaToken: alepha1962.TOptional<alepha1962.TString>;
6551
7533
  }>;
6552
- response: alepha1543.TObject<{
6553
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6554
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6555
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6556
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6557
- realm: PgAttr<alepha1543.TString, typeof PG_DEFAULT>;
6558
- username: alepha1543.TOptional<alepha1543.TString>;
6559
- email: alepha1543.TOptional<alepha1543.TString>;
6560
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
6561
- roles: PgAttr<alepha1543.TArray<alepha1543.TString>, typeof PG_DEFAULT>;
6562
- firstName: alepha1543.TOptional<alepha1543.TString>;
6563
- lastName: alepha1543.TOptional<alepha1543.TString>;
6564
- picture: alepha1543.TOptional<alepha1543.TString>;
6565
- enabled: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
6566
- emailVerified: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
7534
+ response: alepha1962.TObject<{
7535
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7536
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7537
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7538
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7539
+ realm: PgAttr<alepha1962.TString, typeof PG_DEFAULT>;
7540
+ username: alepha1962.TOptional<alepha1962.TString>;
7541
+ email: alepha1962.TOptional<alepha1962.TString>;
7542
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
7543
+ roles: PgAttr<alepha1962.TArray<alepha1962.TString>, typeof PG_DEFAULT>;
7544
+ firstName: alepha1962.TOptional<alepha1962.TString>;
7545
+ lastName: alepha1962.TOptional<alepha1962.TString>;
7546
+ picture: alepha1962.TOptional<alepha1962.TString>;
7547
+ enabled: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
7548
+ emailVerified: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
6567
7549
  }>;
6568
7550
  }>;
6569
7551
  /**
6570
7552
  * Update a user.
6571
7553
  */
6572
7554
  readonly updateUser: ActionPrimitiveFn<{
6573
- params: alepha1543.TObject<{
6574
- id: alepha1543.TString;
7555
+ params: alepha1962.TObject<{
7556
+ id: alepha1962.TString;
6575
7557
  }>;
6576
- query: alepha1543.TObject<{
6577
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7558
+ query: alepha1962.TObject<{
7559
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6578
7560
  }>;
6579
- body: alepha1543.TObject<{
6580
- email: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6581
- picture: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6582
- roles: alepha1543.TOptional<alepha1543.TArray<alepha1543.TString>>;
6583
- phoneNumber: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6584
- firstName: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6585
- lastName: alepha1543.TOptional<alepha1543.TOptional<alepha1543.TString>>;
6586
- enabled: alepha1543.TOptional<PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>>;
6587
- realm: alepha1543.TOptional<PgAttr<alepha1543.TString, typeof PG_DEFAULT>>;
7561
+ body: alepha1962.TObject<{
7562
+ realm: alepha1962.TOptional<PgAttr<alepha1962.TString, typeof PG_DEFAULT>>;
7563
+ email: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7564
+ picture: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7565
+ roles: alepha1962.TOptional<alepha1962.TArray<alepha1962.TString>>;
7566
+ phoneNumber: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7567
+ firstName: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7568
+ lastName: alepha1962.TOptional<alepha1962.TOptional<alepha1962.TString>>;
7569
+ enabled: alepha1962.TOptional<PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>>;
6588
7570
  }>;
6589
- response: alepha1543.TObject<{
6590
- id: PgAttr<PgAttr<alepha1543.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6591
- version: PgAttr<PgAttr<alepha1543.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
6592
- createdAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6593
- updatedAt: PgAttr<PgAttr<alepha1543.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
6594
- realm: PgAttr<alepha1543.TString, typeof PG_DEFAULT>;
6595
- username: alepha1543.TOptional<alepha1543.TString>;
6596
- email: alepha1543.TOptional<alepha1543.TString>;
6597
- phoneNumber: alepha1543.TOptional<alepha1543.TString>;
6598
- roles: PgAttr<alepha1543.TArray<alepha1543.TString>, typeof PG_DEFAULT>;
6599
- firstName: alepha1543.TOptional<alepha1543.TString>;
6600
- lastName: alepha1543.TOptional<alepha1543.TString>;
6601
- picture: alepha1543.TOptional<alepha1543.TString>;
6602
- enabled: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
6603
- emailVerified: PgAttr<alepha1543.TBoolean, typeof PG_DEFAULT>;
7571
+ response: alepha1962.TObject<{
7572
+ id: PgAttr<PgAttr<alepha1962.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7573
+ version: PgAttr<PgAttr<alepha1962.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7574
+ createdAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7575
+ updatedAt: PgAttr<PgAttr<alepha1962.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7576
+ realm: PgAttr<alepha1962.TString, typeof PG_DEFAULT>;
7577
+ username: alepha1962.TOptional<alepha1962.TString>;
7578
+ email: alepha1962.TOptional<alepha1962.TString>;
7579
+ phoneNumber: alepha1962.TOptional<alepha1962.TString>;
7580
+ roles: PgAttr<alepha1962.TArray<alepha1962.TString>, typeof PG_DEFAULT>;
7581
+ firstName: alepha1962.TOptional<alepha1962.TString>;
7582
+ lastName: alepha1962.TOptional<alepha1962.TString>;
7583
+ picture: alepha1962.TOptional<alepha1962.TString>;
7584
+ enabled: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
7585
+ emailVerified: PgAttr<alepha1962.TBoolean, typeof PG_DEFAULT>;
6604
7586
  }>;
6605
7587
  }>;
6606
7588
  /**
6607
7589
  * Delete a user.
6608
7590
  */
6609
7591
  readonly deleteUser: ActionPrimitiveFn<{
6610
- params: alepha1543.TObject<{
6611
- id: alepha1543.TString;
7592
+ params: alepha1962.TObject<{
7593
+ id: alepha1962.TString;
6612
7594
  }>;
6613
- query: alepha1543.TObject<{
6614
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7595
+ query: alepha1962.TObject<{
7596
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6615
7597
  }>;
6616
- response: alepha1543.TObject<{
6617
- ok: alepha1543.TBoolean;
6618
- id: alepha1543.TOptional<alepha1543.TUnion<[alepha1543.TString, alepha1543.TInteger]>>;
6619
- count: alepha1543.TOptional<alepha1543.TNumber>;
7598
+ response: alepha1962.TObject<{
7599
+ ok: alepha1962.TBoolean;
7600
+ id: alepha1962.TOptional<alepha1962.TUnion<[alepha1962.TString, alepha1962.TInteger]>>;
7601
+ count: alepha1962.TOptional<alepha1962.TNumber>;
6620
7602
  }>;
6621
7603
  }>;
6622
7604
  /**
@@ -6624,15 +7606,15 @@ declare class UserController {
6624
7606
  * Validates email, sends verification code, and stores intent in cache.
6625
7607
  */
6626
7608
  readonly createPasswordResetIntent: ActionPrimitiveFn<{
6627
- query: alepha1543.TObject<{
6628
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7609
+ query: alepha1962.TObject<{
7610
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6629
7611
  }>;
6630
- body: alepha1543.TObject<{
6631
- email: alepha1543.TString;
7612
+ body: alepha1962.TObject<{
7613
+ email: alepha1962.TString;
6632
7614
  }>;
6633
- response: alepha1543.TObject<{
6634
- intentId: alepha1543.TString;
6635
- expiresAt: alepha1543.TString;
7615
+ response: alepha1962.TObject<{
7616
+ intentId: alepha1962.TString;
7617
+ expiresAt: alepha1962.TString;
6636
7618
  }>;
6637
7619
  }>;
6638
7620
  /**
@@ -6640,61 +7622,61 @@ declare class UserController {
6640
7622
  * Validates verification code, updates password, and invalidates sessions.
6641
7623
  */
6642
7624
  readonly completePasswordReset: ActionPrimitiveFn<{
6643
- body: alepha1543.TObject<{
6644
- intentId: alepha1543.TString;
6645
- code: alepha1543.TString;
6646
- newPassword: alepha1543.TString;
7625
+ body: alepha1962.TObject<{
7626
+ intentId: alepha1962.TString;
7627
+ code: alepha1962.TString;
7628
+ newPassword: alepha1962.TString;
6647
7629
  }>;
6648
- response: alepha1543.TObject<{
6649
- ok: alepha1543.TBoolean;
6650
- id: alepha1543.TOptional<alepha1543.TUnion<[alepha1543.TString, alepha1543.TInteger]>>;
6651
- count: alepha1543.TOptional<alepha1543.TNumber>;
7630
+ response: alepha1962.TObject<{
7631
+ ok: alepha1962.TBoolean;
7632
+ id: alepha1962.TOptional<alepha1962.TUnion<[alepha1962.TString, alepha1962.TInteger]>>;
7633
+ count: alepha1962.TOptional<alepha1962.TNumber>;
6652
7634
  }>;
6653
7635
  }>;
6654
7636
  /**
6655
7637
  * @deprecated Use createPasswordResetIntent instead
6656
7638
  */
6657
7639
  requestPasswordReset: ActionPrimitiveFn<{
6658
- query: alepha1543.TObject<{
6659
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7640
+ query: alepha1962.TObject<{
7641
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6660
7642
  }>;
6661
- body: alepha1543.TObject<{
6662
- email: alepha1543.TString;
7643
+ body: alepha1962.TObject<{
7644
+ email: alepha1962.TString;
6663
7645
  }>;
6664
- response: alepha1543.TObject<{
6665
- success: alepha1543.TBoolean;
6666
- message: alepha1543.TString;
7646
+ response: alepha1962.TObject<{
7647
+ success: alepha1962.TBoolean;
7648
+ message: alepha1962.TString;
6667
7649
  }>;
6668
7650
  }>;
6669
7651
  /**
6670
7652
  * @deprecated Use completePasswordReset instead
6671
7653
  */
6672
7654
  validateResetToken: ActionPrimitiveFn<{
6673
- query: alepha1543.TObject<{
6674
- email: alepha1543.TString;
6675
- token: alepha1543.TString;
6676
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7655
+ query: alepha1962.TObject<{
7656
+ email: alepha1962.TString;
7657
+ token: alepha1962.TString;
7658
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6677
7659
  }>;
6678
- response: alepha1543.TObject<{
6679
- valid: alepha1543.TBoolean;
6680
- email: alepha1543.TOptional<alepha1543.TString>;
7660
+ response: alepha1962.TObject<{
7661
+ valid: alepha1962.TBoolean;
7662
+ email: alepha1962.TOptional<alepha1962.TString>;
6681
7663
  }>;
6682
7664
  }>;
6683
7665
  /**
6684
7666
  * @deprecated Use completePasswordReset instead
6685
7667
  */
6686
7668
  resetPassword: ActionPrimitiveFn<{
6687
- query: alepha1543.TObject<{
6688
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7669
+ query: alepha1962.TObject<{
7670
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6689
7671
  }>;
6690
- body: alepha1543.TObject<{
6691
- email: alepha1543.TString;
6692
- token: alepha1543.TString;
6693
- newPassword: alepha1543.TString;
7672
+ body: alepha1962.TObject<{
7673
+ email: alepha1962.TString;
7674
+ token: alepha1962.TString;
7675
+ newPassword: alepha1962.TString;
6694
7676
  }>;
6695
- response: alepha1543.TObject<{
6696
- success: alepha1543.TBoolean;
6697
- message: alepha1543.TString;
7677
+ response: alepha1962.TObject<{
7678
+ success: alepha1962.TBoolean;
7679
+ message: alepha1962.TString;
6698
7680
  }>;
6699
7681
  }>;
6700
7682
  /**
@@ -6704,17 +7686,17 @@ declare class UserController {
6704
7686
  * @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
6705
7687
  */
6706
7688
  requestEmailVerification: ActionPrimitiveFn<{
6707
- query: alepha1543.TObject<{
6708
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
6709
- method: alepha1543.TOptional<alepha1543.TUnsafe<"link" | "code">>;
6710
- verifyUrl: alepha1543.TOptional<alepha1543.TString>;
7689
+ query: alepha1962.TObject<{
7690
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
7691
+ method: alepha1962.TOptional<alepha1962.TUnsafe<"link" | "code">>;
7692
+ verifyUrl: alepha1962.TOptional<alepha1962.TString>;
6711
7693
  }>;
6712
- body: alepha1543.TObject<{
6713
- email: alepha1543.TString;
7694
+ body: alepha1962.TObject<{
7695
+ email: alepha1962.TString;
6714
7696
  }>;
6715
- response: alepha1543.TObject<{
6716
- success: alepha1543.TBoolean;
6717
- message: alepha1543.TString;
7697
+ response: alepha1962.TObject<{
7698
+ success: alepha1962.TBoolean;
7699
+ message: alepha1962.TString;
6718
7700
  }>;
6719
7701
  }>;
6720
7702
  /**
@@ -6722,28 +7704,28 @@ declare class UserController {
6722
7704
  * Updates the user's emailVerified status.
6723
7705
  */
6724
7706
  verifyEmail: ActionPrimitiveFn<{
6725
- query: alepha1543.TObject<{
6726
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7707
+ query: alepha1962.TObject<{
7708
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6727
7709
  }>;
6728
- body: alepha1543.TObject<{
6729
- email: alepha1543.TString;
6730
- token: alepha1543.TString;
7710
+ body: alepha1962.TObject<{
7711
+ email: alepha1962.TString;
7712
+ token: alepha1962.TString;
6731
7713
  }>;
6732
- response: alepha1543.TObject<{
6733
- success: alepha1543.TBoolean;
6734
- message: alepha1543.TString;
7714
+ response: alepha1962.TObject<{
7715
+ success: alepha1962.TBoolean;
7716
+ message: alepha1962.TString;
6735
7717
  }>;
6736
7718
  }>;
6737
7719
  /**
6738
7720
  * Check if an email is verified.
6739
7721
  */
6740
7722
  checkEmailVerification: ActionPrimitiveFn<{
6741
- query: alepha1543.TObject<{
6742
- email: alepha1543.TString;
6743
- userRealmName: alepha1543.TOptional<alepha1543.TString>;
7723
+ query: alepha1962.TObject<{
7724
+ email: alepha1962.TString;
7725
+ userRealmName: alepha1962.TOptional<alepha1962.TString>;
6744
7726
  }>;
6745
- response: alepha1543.TObject<{
6746
- verified: alepha1543.TBoolean;
7727
+ response: alepha1962.TObject<{
7728
+ verified: alepha1962.TBoolean;
6747
7729
  }>;
6748
7730
  }>;
6749
7731
  }
@@ -6779,6 +7761,7 @@ interface UserRealmOptions {
6779
7761
  modules?: {
6780
7762
  files?: boolean;
6781
7763
  audits?: boolean;
7764
+ jobs?: boolean;
6782
7765
  };
6783
7766
  }
6784
7767
  //#endregion
@@ -6791,6 +7774,10 @@ declare class AdminRouter {
6791
7774
  protected readonly sessionCtrl: HttpVirtualClient<SessionController>;
6792
7775
  protected readonly notificationCtrl: HttpVirtualClient<NotificationController>;
6793
7776
  protected readonly fileCtrl: HttpVirtualClient<FileController>;
7777
+ protected readonly configCtrl: HttpVirtualClient<ConfigController>;
7778
+ protected readonly auditCtrl: HttpVirtualClient<AuditController>;
7779
+ protected adminShellProps(): AdminShellProps;
7780
+ protected onNotAuthorized(url: URL): Redirection;
6794
7781
  readonly layout: PagePrimitive<PageConfigSchema, {}, TPropsParentDefault>;
6795
7782
  readonly adminUsers: PagePrimitive<PageConfigSchema, any, {}>;
6796
7783
  readonly adminUserCreate: PagePrimitive<PageConfigSchema, any, {}>;
@@ -6798,74 +7785,87 @@ declare class AdminRouter {
6798
7785
  readonly adminUserDetails: PagePrimitive<PageConfigSchema, any, any>;
6799
7786
  readonly adminUserSessions: PagePrimitive<PageConfigSchema, any, any>;
6800
7787
  readonly adminUserSettings: PagePrimitive<PageConfigSchema, any, any>;
7788
+ readonly adminUserAudits: PagePrimitive<PageConfigSchema, any, any>;
7789
+ readonly adminAudits: PagePrimitive<PageConfigSchema, any, {}>;
6801
7790
  readonly adminSessions: PagePrimitive<PageConfigSchema, any, {}>;
6802
7791
  readonly adminNotifications: PagePrimitive<PageConfigSchema, any, {}>;
6803
7792
  readonly adminFiles: PagePrimitive<PageConfigSchema, any, {}>;
7793
+ readonly adminParameters: PagePrimitive<PageConfigSchema, any, {}>;
6804
7794
  }
6805
7795
  //#endregion
6806
- //#region ../../src/admin/AdminSidebar.d.ts
6807
- declare class AdminSidebar {
6808
- menu: (router: ReactRouter<any>) => SidebarNode[];
7796
+ //#region ../../src/admin/components/AdminLayout.d.ts
7797
+ interface AdminLayoutProps {
7798
+ adminShellProps?: AdminShellProps;
7799
+ }
7800
+ declare const AdminLayout: (props: AdminLayoutProps) => react_jsx_runtime0.JSX.Element;
7801
+ //#endregion
7802
+ //#region ../../src/admin/components/audits/AdminAudits.d.ts
7803
+ interface AdminAuditsProps {
7804
+ userRealmName?: string;
6809
7805
  }
7806
+ declare const AdminAudits: (props: AdminAuditsProps) => react_jsx_runtime0.JSX.Element;
6810
7807
  //#endregion
6811
- //#region ../../src/admin/components/AdminFiles.d.ts
7808
+ //#region ../../src/admin/components/files/AdminFiles.d.ts
6812
7809
  declare const AdminFiles: () => react_jsx_runtime0.JSX.Element;
6813
7810
  //#endregion
6814
- //#region ../../src/admin/components/AdminJobs.d.ts
7811
+ //#region ../../src/admin/components/jobs/AdminJobs.d.ts
6815
7812
  declare const AdminJobs: () => react_jsx_runtime0.JSX.Element;
6816
7813
  //#endregion
6817
- //#region ../../src/admin/components/AdminLayout.d.ts
6818
- declare const AdminLayout: () => react_jsx_runtime0.JSX.Element;
6819
- //#endregion
6820
- //#region ../../src/admin/components/AdminNotifications.d.ts
7814
+ //#region ../../src/admin/components/notifications/AdminNotifications.d.ts
6821
7815
  declare const AdminNotifications: () => react_jsx_runtime0.JSX.Element;
6822
7816
  //#endregion
6823
- //#region ../../src/admin/components/AdminParameters.d.ts
7817
+ //#region ../../src/admin/components/parameters/AdminParameters.d.ts
6824
7818
  declare const AdminParameters: () => react_jsx_runtime0.JSX.Element;
6825
7819
  //#endregion
6826
- //#region ../../src/admin/components/AdminSessions.d.ts
7820
+ //#region ../../src/admin/components/sessions/AdminSessions.d.ts
6827
7821
  interface AdminSessionsProps {
6828
7822
  userRealmName?: string;
6829
7823
  }
6830
7824
  declare const AdminSessions: (props: AdminSessionsProps) => react_jsx_runtime0.JSX.Element;
6831
7825
  //#endregion
6832
- //#region ../../src/admin/components/AdminUserCreate.d.ts
7826
+ //#region ../../src/admin/components/users/AdminUserAudits.d.ts
7827
+ interface AdminUserAuditsProps {
7828
+ userRealmName?: string;
7829
+ }
7830
+ declare const AdminUserAudits: (_props: AdminUserAuditsProps) => react_jsx_runtime0.JSX.Element;
7831
+ //#endregion
7832
+ //#region ../../src/admin/components/users/AdminUserCreate.d.ts
6833
7833
  interface AdminUserCreateProps {
6834
7834
  userRealmName?: string;
6835
7835
  }
6836
7836
  declare const AdminUserCreate: (props: AdminUserCreateProps) => react_jsx_runtime0.JSX.Element;
6837
7837
  //#endregion
6838
- //#region ../../src/admin/components/AdminUserDetails.d.ts
7838
+ //#region ../../src/admin/components/users/AdminUserDetails.d.ts
6839
7839
  interface AdminUserDetailsProps {
6840
7840
  userRealmName?: string;
6841
7841
  }
6842
7842
  declare const AdminUserDetails: (props: AdminUserDetailsProps) => react_jsx_runtime0.JSX.Element;
6843
7843
  //#endregion
6844
- //#region ../../src/admin/components/AdminUserLayout.d.ts
7844
+ //#region ../../src/admin/components/users/AdminUserLayout.d.ts
6845
7845
  interface AdminUserLayoutProps {
6846
7846
  userRealmName?: string;
6847
7847
  }
6848
7848
  declare const AdminUserLayout: (props: AdminUserLayoutProps) => react_jsx_runtime0.JSX.Element;
6849
7849
  //#endregion
6850
- //#region ../../src/admin/components/AdminUserSessions.d.ts
7850
+ //#region ../../src/admin/components/users/AdminUserSessions.d.ts
6851
7851
  interface AdminUserSessionsProps {
6852
7852
  userRealmName?: string;
6853
7853
  }
6854
7854
  declare const AdminUserSessions: (props: AdminUserSessionsProps) => react_jsx_runtime0.JSX.Element;
6855
7855
  //#endregion
6856
- //#region ../../src/admin/components/AdminUserSettings.d.ts
7856
+ //#region ../../src/admin/components/users/AdminUserSettings.d.ts
6857
7857
  interface AdminUserSettingsProps {
6858
7858
  userRealmName?: string;
6859
7859
  }
6860
7860
  declare const AdminUserSettings: (props: AdminUserSettingsProps) => react_jsx_runtime0.JSX.Element;
6861
7861
  //#endregion
6862
- //#region ../../src/admin/components/AdminUsers.d.ts
7862
+ //#region ../../src/admin/components/users/AdminUsers.d.ts
6863
7863
  interface AdminUsersProps {
6864
7864
  userRealmName?: string;
6865
7865
  }
6866
7866
  declare const AdminUsers: (props: AdminUsersProps) => react_jsx_runtime0.JSX.Element;
6867
7867
  //#endregion
6868
- //#region ../../src/admin/components/AdminVerifications.d.ts
7868
+ //#region ../../src/admin/components/verifications/AdminVerifications.d.ts
6869
7869
  declare const AdminVerifications: () => react_jsx_runtime0.JSX.Element;
6870
7870
  //#endregion
6871
7871
  //#region ../../src/admin/MainRouter.d.ts
@@ -6889,7 +7889,7 @@ declare class MainRouter {
6889
7889
  *
6890
7890
  * @module alepha.ui.admin
6891
7891
  */
6892
- declare const AlephaUIAdmin: alepha1543.Service<alepha1543.Module>;
7892
+ declare const AlephaUIAdmin: alepha1962.Service<alepha1962.Module>;
6893
7893
  //#endregion
6894
- export { AdminFiles, AdminJobs, AdminLayout, AdminNotifications, AdminParameters, AdminRouter, AdminSessions, AdminSidebar, AdminUserCreate, AdminUserDetails, AdminUserLayout, AdminUserSessions, AdminUserSettings, AdminUsers, AdminVerifications, AlephaUIAdmin, MainRouter };
7894
+ export { AdminAudits, AdminFiles, AdminJobs, AdminLayout, AdminNotifications, AdminParameters, AdminRouter, AdminSessions, AdminUserAudits, AdminUserCreate, AdminUserDetails, AdminUserLayout, AdminUserSessions, AdminUserSettings, AdminUsers, AdminVerifications, AlephaUIAdmin, MainRouter };
6895
7895
  //# sourceMappingURL=index.d.ts.map