alepha 0.14.4 → 0.15.1

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 (322) hide show
  1. package/README.md +44 -102
  2. package/dist/api/audits/index.d.ts +331 -443
  3. package/dist/api/audits/index.d.ts.map +1 -1
  4. package/dist/api/audits/index.js +2 -2
  5. package/dist/api/audits/index.js.map +1 -1
  6. package/dist/api/files/index.d.ts +0 -113
  7. package/dist/api/files/index.d.ts.map +1 -1
  8. package/dist/api/files/index.js +2 -3
  9. package/dist/api/files/index.js.map +1 -1
  10. package/dist/api/jobs/index.d.ts +151 -262
  11. package/dist/api/jobs/index.d.ts.map +1 -1
  12. package/dist/api/notifications/index.browser.js +4 -4
  13. package/dist/api/notifications/index.browser.js.map +1 -1
  14. package/dist/api/notifications/index.d.ts +164 -276
  15. package/dist/api/notifications/index.d.ts.map +1 -1
  16. package/dist/api/notifications/index.js +4 -4
  17. package/dist/api/notifications/index.js.map +1 -1
  18. package/dist/api/parameters/index.d.ts +265 -377
  19. package/dist/api/parameters/index.d.ts.map +1 -1
  20. package/dist/api/users/index.browser.js +1 -2
  21. package/dist/api/users/index.browser.js.map +1 -1
  22. package/dist/api/users/index.d.ts +195 -301
  23. package/dist/api/users/index.d.ts.map +1 -1
  24. package/dist/api/users/index.js +203 -184
  25. package/dist/api/users/index.js.map +1 -1
  26. package/dist/api/verifications/index.d.ts.map +1 -1
  27. package/dist/batch/index.d.ts.map +1 -1
  28. package/dist/batch/index.js +1 -2
  29. package/dist/batch/index.js.map +1 -1
  30. package/dist/bucket/index.d.ts.map +1 -1
  31. package/dist/cache/core/index.d.ts.map +1 -1
  32. package/dist/cache/redis/index.d.ts.map +1 -1
  33. package/dist/cache/redis/index.js +2 -2
  34. package/dist/cache/redis/index.js.map +1 -1
  35. package/dist/cli/index.d.ts +5900 -165
  36. package/dist/cli/index.d.ts.map +1 -1
  37. package/dist/cli/index.js +1481 -639
  38. package/dist/cli/index.js.map +1 -1
  39. package/dist/command/index.d.ts +8 -4
  40. package/dist/command/index.d.ts.map +1 -1
  41. package/dist/command/index.js +29 -25
  42. package/dist/command/index.js.map +1 -1
  43. package/dist/core/index.browser.js +563 -54
  44. package/dist/core/index.browser.js.map +1 -1
  45. package/dist/core/index.d.ts +175 -8
  46. package/dist/core/index.d.ts.map +1 -1
  47. package/dist/core/index.js +564 -54
  48. package/dist/core/index.js.map +1 -1
  49. package/dist/core/index.native.js +563 -54
  50. package/dist/core/index.native.js.map +1 -1
  51. package/dist/datetime/index.d.ts.map +1 -1
  52. package/dist/datetime/index.js +4 -4
  53. package/dist/datetime/index.js.map +1 -1
  54. package/dist/email/index.d.ts +89 -42
  55. package/dist/email/index.d.ts.map +1 -1
  56. package/dist/email/index.js +129 -33
  57. package/dist/email/index.js.map +1 -1
  58. package/dist/fake/index.d.ts +7969 -2
  59. package/dist/fake/index.d.ts.map +1 -1
  60. package/dist/fake/index.js +22 -22
  61. package/dist/fake/index.js.map +1 -1
  62. package/dist/file/index.d.ts +134 -1
  63. package/dist/file/index.d.ts.map +1 -1
  64. package/dist/file/index.js +253 -1
  65. package/dist/file/index.js.map +1 -1
  66. package/dist/lock/core/index.d.ts.map +1 -1
  67. package/dist/lock/redis/index.d.ts.map +1 -1
  68. package/dist/logger/index.d.ts +1 -2
  69. package/dist/logger/index.d.ts.map +1 -1
  70. package/dist/logger/index.js +1 -5
  71. package/dist/logger/index.js.map +1 -1
  72. package/dist/mcp/index.d.ts +19 -1
  73. package/dist/mcp/index.d.ts.map +1 -1
  74. package/dist/mcp/index.js +28 -4
  75. package/dist/mcp/index.js.map +1 -1
  76. package/dist/orm/chunk-DH6iiROE.js +38 -0
  77. package/dist/orm/index.browser.js +9 -9
  78. package/dist/orm/index.browser.js.map +1 -1
  79. package/dist/orm/index.bun.js +2821 -0
  80. package/dist/orm/index.bun.js.map +1 -0
  81. package/dist/orm/index.d.ts +318 -169
  82. package/dist/orm/index.d.ts.map +1 -1
  83. package/dist/orm/index.js +2086 -1776
  84. package/dist/orm/index.js.map +1 -1
  85. package/dist/queue/core/index.d.ts +4 -4
  86. package/dist/queue/core/index.d.ts.map +1 -1
  87. package/dist/queue/redis/index.d.ts.map +1 -1
  88. package/dist/redis/index.bun.js +285 -0
  89. package/dist/redis/index.bun.js.map +1 -0
  90. package/dist/redis/index.d.ts +13 -31
  91. package/dist/redis/index.d.ts.map +1 -1
  92. package/dist/redis/index.js +18 -38
  93. package/dist/redis/index.js.map +1 -1
  94. package/dist/retry/index.d.ts.map +1 -1
  95. package/dist/router/index.d.ts.map +1 -1
  96. package/dist/scheduler/index.d.ts +83 -1
  97. package/dist/scheduler/index.d.ts.map +1 -1
  98. package/dist/scheduler/index.js +393 -1
  99. package/dist/scheduler/index.js.map +1 -1
  100. package/dist/security/index.browser.js +5 -1
  101. package/dist/security/index.browser.js.map +1 -1
  102. package/dist/security/index.d.ts +598 -112
  103. package/dist/security/index.d.ts.map +1 -1
  104. package/dist/security/index.js +1808 -97
  105. package/dist/security/index.js.map +1 -1
  106. package/dist/server/auth/index.d.ts +1200 -175
  107. package/dist/server/auth/index.d.ts.map +1 -1
  108. package/dist/server/auth/index.js +1268 -37
  109. package/dist/server/auth/index.js.map +1 -1
  110. package/dist/server/cache/index.d.ts +6 -3
  111. package/dist/server/cache/index.d.ts.map +1 -1
  112. package/dist/server/cache/index.js +1 -1
  113. package/dist/server/cache/index.js.map +1 -1
  114. package/dist/server/compress/index.d.ts.map +1 -1
  115. package/dist/server/cookies/index.d.ts.map +1 -1
  116. package/dist/server/cookies/index.js +3 -3
  117. package/dist/server/cookies/index.js.map +1 -1
  118. package/dist/server/core/index.d.ts +115 -13
  119. package/dist/server/core/index.d.ts.map +1 -1
  120. package/dist/server/core/index.js +321 -139
  121. package/dist/server/core/index.js.map +1 -1
  122. package/dist/server/cors/index.d.ts +0 -1
  123. package/dist/server/cors/index.d.ts.map +1 -1
  124. package/dist/server/health/index.d.ts +0 -1
  125. package/dist/server/health/index.d.ts.map +1 -1
  126. package/dist/server/helmet/index.d.ts.map +1 -1
  127. package/dist/server/links/index.browser.js +9 -1
  128. package/dist/server/links/index.browser.js.map +1 -1
  129. package/dist/server/links/index.d.ts +1 -2
  130. package/dist/server/links/index.d.ts.map +1 -1
  131. package/dist/server/links/index.js +14 -7
  132. package/dist/server/links/index.js.map +1 -1
  133. package/dist/server/metrics/index.d.ts +514 -1
  134. package/dist/server/metrics/index.d.ts.map +1 -1
  135. package/dist/server/metrics/index.js +4462 -4
  136. package/dist/server/metrics/index.js.map +1 -1
  137. package/dist/server/multipart/index.d.ts.map +1 -1
  138. package/dist/server/proxy/index.d.ts +0 -1
  139. package/dist/server/proxy/index.d.ts.map +1 -1
  140. package/dist/server/rate-limit/index.d.ts.map +1 -1
  141. package/dist/server/static/index.d.ts.map +1 -1
  142. package/dist/server/swagger/index.d.ts +1 -2
  143. package/dist/server/swagger/index.d.ts.map +1 -1
  144. package/dist/server/swagger/index.js +1 -2
  145. package/dist/server/swagger/index.js.map +1 -1
  146. package/dist/sms/index.d.ts +3 -1
  147. package/dist/sms/index.d.ts.map +1 -1
  148. package/dist/sms/index.js +10 -10
  149. package/dist/sms/index.js.map +1 -1
  150. package/dist/thread/index.d.ts +0 -1
  151. package/dist/thread/index.d.ts.map +1 -1
  152. package/dist/thread/index.js +2 -2
  153. package/dist/thread/index.js.map +1 -1
  154. package/dist/topic/core/index.d.ts.map +1 -1
  155. package/dist/topic/redis/index.d.ts.map +1 -1
  156. package/dist/vite/index.d.ts +6315 -149
  157. package/dist/vite/index.d.ts.map +1 -1
  158. package/dist/vite/index.js +140 -469
  159. package/dist/vite/index.js.map +1 -1
  160. package/dist/websocket/index.browser.js +9 -9
  161. package/dist/websocket/index.browser.js.map +1 -1
  162. package/dist/websocket/index.d.ts +28 -28
  163. package/dist/websocket/index.d.ts.map +1 -1
  164. package/dist/websocket/index.js +9 -9
  165. package/dist/websocket/index.js.map +1 -1
  166. package/package.json +13 -18
  167. package/src/api/files/controllers/AdminFileStatsController.ts +0 -1
  168. package/src/api/users/atoms/realmAuthSettingsAtom.ts +5 -0
  169. package/src/api/users/controllers/{UserRealmController.ts → RealmController.ts} +11 -11
  170. package/src/api/users/entities/users.ts +1 -1
  171. package/src/api/users/index.ts +8 -8
  172. package/src/api/users/primitives/{$userRealm.ts → $realm.ts} +17 -19
  173. package/src/api/users/providers/{UserRealmProvider.ts → RealmProvider.ts} +26 -30
  174. package/src/api/users/schemas/{userRealmConfigSchema.ts → realmConfigSchema.ts} +2 -2
  175. package/src/api/users/services/CredentialService.ts +7 -7
  176. package/src/api/users/services/IdentityService.ts +4 -4
  177. package/src/api/users/services/RegistrationService.spec.ts +25 -27
  178. package/src/api/users/services/RegistrationService.ts +38 -27
  179. package/src/api/users/services/SessionCrudService.ts +3 -3
  180. package/src/api/users/services/SessionService.spec.ts +3 -3
  181. package/src/api/users/services/SessionService.ts +27 -18
  182. package/src/api/users/services/UserService.ts +7 -7
  183. package/src/batch/providers/BatchProvider.ts +1 -2
  184. package/src/cli/apps/AlephaCli.ts +2 -2
  185. package/src/cli/apps/AlephaPackageBuilderCli.ts +47 -20
  186. package/src/cli/assets/apiHelloControllerTs.ts +19 -0
  187. package/src/cli/assets/apiIndexTs.ts +16 -0
  188. package/src/cli/assets/biomeJson.ts +2 -1
  189. package/src/cli/assets/claudeMd.ts +308 -0
  190. package/src/cli/assets/dummySpecTs.ts +2 -1
  191. package/src/cli/assets/editorconfig.ts +2 -1
  192. package/src/cli/assets/mainBrowserTs.ts +4 -3
  193. package/src/cli/assets/mainCss.ts +24 -0
  194. package/src/cli/assets/mainServerTs.ts +24 -0
  195. package/src/cli/assets/tsconfigJson.ts +2 -1
  196. package/src/cli/assets/webAppRouterTs.ts +16 -0
  197. package/src/cli/assets/webHelloComponentTsx.ts +20 -0
  198. package/src/cli/assets/webIndexTs.ts +16 -0
  199. package/src/cli/atoms/appEntryOptions.ts +13 -0
  200. package/src/cli/atoms/buildOptions.ts +1 -1
  201. package/src/cli/atoms/changelogOptions.ts +1 -1
  202. package/src/cli/commands/build.ts +97 -61
  203. package/src/cli/commands/db.ts +21 -18
  204. package/src/cli/commands/deploy.ts +17 -5
  205. package/src/cli/commands/dev.ts +26 -47
  206. package/src/cli/commands/gen/env.ts +1 -1
  207. package/src/cli/commands/init.ts +79 -25
  208. package/src/cli/commands/lint.ts +9 -3
  209. package/src/cli/commands/test.ts +8 -2
  210. package/src/cli/commands/typecheck.ts +5 -1
  211. package/src/cli/commands/verify.ts +4 -2
  212. package/src/cli/defineConfig.ts +9 -0
  213. package/src/cli/index.ts +2 -1
  214. package/src/cli/providers/AppEntryProvider.ts +131 -0
  215. package/src/cli/providers/ViteBuildProvider.ts +82 -0
  216. package/src/cli/providers/ViteDevServerProvider.ts +350 -0
  217. package/src/cli/providers/ViteTemplateProvider.ts +27 -0
  218. package/src/cli/services/AlephaCliUtils.ts +72 -602
  219. package/src/cli/services/PackageManagerUtils.ts +308 -0
  220. package/src/cli/services/ProjectScaffolder.ts +329 -0
  221. package/src/command/helpers/Runner.ts +15 -3
  222. package/src/core/Alepha.ts +2 -8
  223. package/src/core/__tests__/Alepha-graph.spec.ts +4 -0
  224. package/src/core/index.shared.ts +1 -0
  225. package/src/core/index.ts +2 -0
  226. package/src/core/primitives/$hook.ts +6 -2
  227. package/src/core/primitives/$module.spec.ts +4 -0
  228. package/src/core/primitives/$module.ts +12 -0
  229. package/src/core/providers/AlsProvider.ts +1 -1
  230. package/src/core/providers/CodecManager.spec.ts +12 -6
  231. package/src/core/providers/CodecManager.ts +26 -6
  232. package/src/core/providers/EventManager.ts +169 -13
  233. package/src/core/providers/KeylessJsonSchemaCodec.spec.ts +878 -0
  234. package/src/core/providers/KeylessJsonSchemaCodec.ts +789 -0
  235. package/src/core/providers/SchemaValidator.spec.ts +236 -0
  236. package/src/core/providers/StateManager.spec.ts +27 -16
  237. package/src/email/providers/LocalEmailProvider.spec.ts +111 -87
  238. package/src/email/providers/LocalEmailProvider.ts +52 -15
  239. package/src/email/providers/NodemailerEmailProvider.ts +167 -56
  240. package/src/file/errors/FileError.ts +7 -0
  241. package/src/file/index.ts +9 -1
  242. package/src/file/providers/MemoryFileSystemProvider.ts +393 -0
  243. package/src/logger/providers/PrettyFormatterProvider.ts +0 -9
  244. package/src/mcp/errors/McpError.ts +30 -0
  245. package/src/mcp/index.ts +3 -0
  246. package/src/mcp/transports/SseMcpTransport.ts +16 -6
  247. package/src/orm/index.browser.ts +1 -19
  248. package/src/orm/index.bun.ts +77 -0
  249. package/src/orm/index.shared-server.ts +22 -0
  250. package/src/orm/index.shared.ts +15 -0
  251. package/src/orm/index.ts +19 -39
  252. package/src/orm/providers/DrizzleKitProvider.ts +3 -5
  253. package/src/orm/providers/drivers/BunPostgresProvider.ts +3 -5
  254. package/src/orm/providers/drivers/BunSqliteProvider.ts +1 -1
  255. package/src/orm/providers/drivers/CloudflareD1Provider.ts +4 -0
  256. package/src/orm/providers/drivers/DatabaseProvider.ts +4 -0
  257. package/src/orm/providers/drivers/PglitePostgresProvider.ts +4 -0
  258. package/src/orm/services/Repository.ts +19 -0
  259. package/src/redis/index.bun.ts +35 -0
  260. package/src/redis/providers/BunRedisProvider.ts +12 -43
  261. package/src/redis/providers/BunRedisSubscriberProvider.ts +2 -3
  262. package/src/redis/providers/NodeRedisProvider.ts +16 -34
  263. package/src/{server/security → security}/__tests__/BasicAuth.spec.ts +11 -11
  264. package/src/{server/security → security}/__tests__/ServerSecurityProvider-realm.spec.ts +21 -16
  265. package/src/{server/security/providers → security/__tests__}/ServerSecurityProvider.spec.ts +5 -5
  266. package/src/security/index.browser.ts +5 -0
  267. package/src/security/index.ts +90 -7
  268. package/src/security/primitives/{$realm.spec.ts → $issuer.spec.ts} +11 -11
  269. package/src/security/primitives/{$realm.ts → $issuer.ts} +20 -17
  270. package/src/security/primitives/$role.ts +5 -5
  271. package/src/security/primitives/$serviceAccount.spec.ts +5 -5
  272. package/src/security/primitives/$serviceAccount.ts +3 -3
  273. package/src/{server/security → security}/providers/ServerSecurityProvider.ts +5 -7
  274. package/src/server/auth/primitives/$auth.ts +10 -10
  275. package/src/server/auth/primitives/$authCredentials.ts +3 -3
  276. package/src/server/auth/primitives/$authGithub.ts +3 -3
  277. package/src/server/auth/primitives/$authGoogle.ts +3 -3
  278. package/src/server/auth/providers/ServerAuthProvider.ts +13 -13
  279. package/src/server/cache/providers/ServerCacheProvider.ts +1 -1
  280. package/src/server/cookies/providers/ServerCookiesProvider.ts +3 -3
  281. package/src/server/core/index.ts +1 -1
  282. package/src/server/core/providers/BunHttpServerProvider.ts +1 -1
  283. package/src/server/core/providers/NodeHttpServerProvider.spec.ts +125 -0
  284. package/src/server/core/providers/NodeHttpServerProvider.ts +92 -24
  285. package/src/server/core/providers/ServerBodyParserProvider.ts +19 -23
  286. package/src/server/core/providers/ServerLoggerProvider.ts +23 -19
  287. package/src/server/core/providers/ServerProvider.ts +144 -24
  288. package/src/server/core/providers/ServerRouterProvider.ts +259 -115
  289. package/src/server/core/providers/ServerTimingProvider.ts +2 -2
  290. package/src/server/links/atoms/apiLinksAtom.ts +7 -0
  291. package/src/server/links/index.browser.ts +2 -0
  292. package/src/server/links/index.ts +3 -1
  293. package/src/server/links/providers/LinkProvider.ts +1 -1
  294. package/src/server/swagger/index.ts +1 -1
  295. package/src/sms/providers/LocalSmsProvider.spec.ts +153 -111
  296. package/src/sms/providers/LocalSmsProvider.ts +8 -7
  297. package/src/vite/index.ts +3 -2
  298. package/src/vite/tasks/buildClient.ts +0 -1
  299. package/src/vite/tasks/buildServer.ts +80 -22
  300. package/src/vite/tasks/copyAssets.ts +5 -4
  301. package/src/vite/tasks/generateCloudflare.ts +7 -0
  302. package/src/vite/tasks/generateSitemap.ts +64 -23
  303. package/src/vite/tasks/index.ts +0 -2
  304. package/src/vite/tasks/prerenderPages.ts +49 -24
  305. package/dist/server/security/index.browser.js +0 -13
  306. package/dist/server/security/index.browser.js.map +0 -1
  307. package/dist/server/security/index.d.ts +0 -173
  308. package/dist/server/security/index.d.ts.map +0 -1
  309. package/dist/server/security/index.js +0 -311
  310. package/dist/server/security/index.js.map +0 -1
  311. package/src/cli/assets/appRouterTs.ts +0 -9
  312. package/src/cli/assets/indexHtml.ts +0 -15
  313. package/src/cli/assets/mainTs.ts +0 -13
  314. package/src/cli/commands/format.ts +0 -17
  315. package/src/server/security/index.browser.ts +0 -10
  316. package/src/server/security/index.ts +0 -94
  317. package/src/vite/helpers/boot.ts +0 -106
  318. package/src/vite/plugins/viteAlephaDev.ts +0 -177
  319. package/src/vite/tasks/devServer.ts +0 -69
  320. package/src/vite/tasks/runAlepha.ts +0 -270
  321. /package/src/{server/security → security}/primitives/$basicAuth.ts +0 -0
  322. /package/src/{server/security → security}/providers/ServerBasicAuthProvider.ts +0 -0
@@ -1,9 +1,9 @@
1
- import * as alepha588 from "alepha";
1
+ import * as alepha624 from "alepha";
2
2
  import { KIND, Primitive, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
3
  import * as alepha_server0 from "alepha/server";
4
4
  import { DateTimeProvider } from "alepha/datetime";
5
5
  import * as alepha_logger0 from "alepha/logger";
6
- import * as alepha_orm14 from "alepha/orm";
6
+ import * as alepha_orm0 from "alepha/orm";
7
7
  import * as alepha_topic0 from "alepha/topic";
8
8
  import * as alepha_scheduler0 from "alepha/scheduler";
9
9
  import "drizzle-orm/d1";
@@ -12,16 +12,13 @@ import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, Update
12
12
  import "alepha/retry";
13
13
  import * as typebox0 from "typebox";
14
14
  import "drizzle-orm/sqlite-core";
15
- import "alepha/lock";
16
- import "drizzle-orm/postgres-js";
17
- import "postgres";
18
15
  import { UserAccount } from "alepha/security";
19
16
 
20
17
  //#region ../../src/api/parameters/schemas/parameterStatusSchema.d.ts
21
18
  /**
22
19
  * Parameter status enum schema.
23
20
  */
24
- declare const parameterStatusSchema: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
21
+ declare const parameterStatusSchema: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
25
22
  type ParameterStatus = Static<typeof parameterStatusSchema>;
26
23
  //#endregion
27
24
  //#region ../../src/api/parameters/entities/parameters.d.ts
@@ -34,67 +31,67 @@ type ParameterStatus = Static<typeof parameterStatusSchema>;
34
31
  * - Activation scheduling
35
32
  * - Audit trail (creator info)
36
33
  */
37
- declare const parameters: alepha_orm14.EntityPrimitive<alepha588.TObject<{
38
- id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
39
- createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
40
- updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
34
+ declare const parameters: alepha_orm0.EntityPrimitive<alepha624.TObject<{
35
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
36
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
37
+ updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
41
38
  /**
42
39
  * Configuration name using dot notation for tree hierarchy.
43
40
  * Examples: "app.features", "app.pricing.tiers", "system.limits"
44
41
  */
45
- name: alepha588.TString;
42
+ name: alepha624.TString;
46
43
  /**
47
44
  * The configuration content as JSON.
48
45
  */
49
- content: alepha588.TRecord<string, alepha588.TAny>;
46
+ content: alepha624.TRecord<string, alepha624.TAny>;
50
47
  /**
51
48
  * Schema version hash for detecting schema changes.
52
49
  * Used for auto-migration when schema evolves.
53
50
  */
54
- schemaHash: alepha588.TString;
51
+ schemaHash: alepha624.TString;
55
52
  /**
56
53
  * Current status of this parameter version.
57
54
  */
58
- status: alepha_orm14.PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
55
+ status: alepha_orm0.PgAttr<alepha624.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm0.PG_DEFAULT>;
59
56
  /**
60
57
  * When this version should become active.
61
58
  * Default is immediate (now).
62
59
  */
63
- activationDate: alepha588.TString;
60
+ activationDate: alepha624.TString;
64
61
  /**
65
62
  * When this version was deactivated (became expired).
66
63
  * Null if still active or scheduled.
67
64
  */
68
- expiredAt: alepha588.TOptional<alepha588.TString>;
65
+ expiredAt: alepha624.TOptional<alepha624.TString>;
69
66
  /**
70
67
  * Version number for this configuration.
71
68
  * Auto-incremented per config name.
72
69
  */
73
- version: alepha588.TInteger;
70
+ version: alepha624.TInteger;
74
71
  /**
75
72
  * Optional description of changes in this version.
76
73
  */
77
- changeDescription: alepha588.TOptional<alepha588.TString>;
74
+ changeDescription: alepha624.TOptional<alepha624.TString>;
78
75
  /**
79
76
  * Optional tags for filtering/categorization.
80
77
  */
81
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
78
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
82
79
  /**
83
80
  * Creator user ID (if available).
84
81
  */
85
- creatorId: alepha588.TOptional<alepha588.TString>;
82
+ creatorId: alepha624.TOptional<alepha624.TString>;
86
83
  /**
87
84
  * Creator display name for audit trail.
88
85
  */
89
- creatorName: alepha588.TOptional<alepha588.TString>;
86
+ creatorName: alepha624.TOptional<alepha624.TString>;
90
87
  /**
91
88
  * Previous content before this change (for rollback reference).
92
89
  */
93
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
90
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
94
91
  /**
95
92
  * Migration log if schema changed.
96
93
  */
97
- migrationLog: alepha588.TOptional<alepha588.TString>;
94
+ migrationLog: alepha624.TOptional<alepha624.TString>;
98
95
  }>>;
99
96
  type Parameter = Static<typeof parameters.schema>;
100
97
  type ParameterInsert = Omit<Parameter, "id" | "createdAt" | "updatedAt">;
@@ -315,115 +312,6 @@ interface PgRefOptions {
315
312
  */
316
313
  type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
317
314
  //#endregion
318
- //#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
319
- declare module "alepha" {
320
- interface Env extends Partial<Static<typeof envSchema>> {}
321
- }
322
- declare const envSchema: alepha588.TObject<{
323
- /**
324
- * Main configuration for database connection.
325
- * Accept a string in the format of a Postgres connection URL.
326
- * Example: postgres://user:password@localhost:5432/database
327
- * or
328
- * Example: postgres://user:password@localhost:5432/database?sslmode=require
329
- */
330
- DATABASE_URL: alepha588.TOptional<alepha588.TString>;
331
- /**
332
- * In addition to the DATABASE_URL, you can specify the postgres schema name.
333
- *
334
- * It will monkey patch drizzle tables.
335
- */
336
- POSTGRES_SCHEMA: alepha588.TOptional<alepha588.TString>;
337
- }>;
338
- //#endregion
339
- //#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
340
- /**
341
- * Configuration options for the Node.js SQLite database provider.
342
- */
343
- declare const nodeSqliteOptions: alepha588.Atom<alepha588.TObject<{
344
- path: alepha588.TOptional<alepha588.TString>;
345
- }>, "alepha.postgres.node-sqlite.options">;
346
- type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
347
- declare module "alepha" {
348
- interface State {
349
- [nodeSqliteOptions.key]: NodeSqliteProviderOptions;
350
- }
351
- }
352
- /**
353
- * Add a fake support for SQLite in Node.js based on Postgres interfaces.
354
- *
355
- * This is NOT a real SQLite provider, it's a workaround to use SQLite with Drizzle ORM.
356
- * This is NOT recommended for production use.
357
- */
358
- //#endregion
359
- //#region ../../src/orm/index.d.ts
360
- declare module "alepha" {
361
- interface Hooks {
362
- /**
363
- * Fires before creating an entity in the repository.
364
- */
365
- "repository:create:before": {
366
- tableName: string;
367
- data: any;
368
- };
369
- /**
370
- * Fires after creating an entity in the repository.
371
- */
372
- "repository:create:after": {
373
- tableName: string;
374
- data: any;
375
- entity: any;
376
- };
377
- /**
378
- * Fires before updating entities in the repository.
379
- */
380
- "repository:update:before": {
381
- tableName: string;
382
- where: any;
383
- data: any;
384
- };
385
- /**
386
- * Fires after updating entities in the repository.
387
- */
388
- "repository:update:after": {
389
- tableName: string;
390
- where: any;
391
- data: any;
392
- entities: any[];
393
- };
394
- /**
395
- * Fires before deleting entities from the repository.
396
- */
397
- "repository:delete:before": {
398
- tableName: string;
399
- where: any;
400
- };
401
- /**
402
- * Fires after deleting entities from the repository.
403
- */
404
- "repository:delete:after": {
405
- tableName: string;
406
- where: any;
407
- ids: Array<string | number>;
408
- };
409
- /**
410
- * Fires before reading entities from the repository.
411
- */
412
- "repository:read:before": {
413
- tableName: string;
414
- query: any;
415
- };
416
- /**
417
- * Fires after reading entities from the repository.
418
- */
419
- "repository:read:after": {
420
- tableName: string;
421
- query: any;
422
- entities: any[];
423
- };
424
- }
425
- }
426
- //#endregion
427
315
  //#region ../../src/api/parameters/primitives/$config.d.ts
428
316
  /**
429
317
  * Creates a versioned configuration primitive for managing application settings.
@@ -514,7 +402,7 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
514
402
  /**
515
403
  * Get a specific field from the current configuration.
516
404
  */
517
- get<Key$1 extends keyof Static<T>>(key: Key$1): Static<T>[Key$1];
405
+ get<Key extends keyof Static<T>>(key: Key): Static<T>[Key];
518
406
  /**
519
407
  * Set a new configuration value.
520
408
  *
@@ -546,48 +434,48 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
546
434
  creatorId?: string | undefined;
547
435
  creatorName?: string | undefined;
548
436
  previousContent?: typebox0.StaticRecord<[], "Decode", {}, {
549
- id: PgAttr<PgAttr<alepha588.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
550
- createdAt: PgAttr<PgAttr<alepha588.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
551
- updatedAt: PgAttr<PgAttr<alepha588.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
552
- name: alepha588.TString;
553
- content: alepha588.TRecord<string, alepha588.TAny>;
554
- schemaHash: alepha588.TString;
555
- status: PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
556
- activationDate: alepha588.TString;
557
- expiredAt: alepha588.TOptional<alepha588.TString>;
558
- version: alepha588.TInteger;
559
- changeDescription: alepha588.TOptional<alepha588.TString>;
560
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
561
- creatorId: alepha588.TOptional<alepha588.TString>;
562
- creatorName: alepha588.TOptional<alepha588.TString>;
563
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
564
- migrationLog: alepha588.TOptional<alepha588.TString>;
565
- }, string, alepha588.TAny> | undefined;
437
+ id: PgAttr<PgAttr<alepha624.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
438
+ createdAt: PgAttr<PgAttr<alepha624.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
439
+ updatedAt: PgAttr<PgAttr<alepha624.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
440
+ name: alepha624.TString;
441
+ content: alepha624.TRecord<string, alepha624.TAny>;
442
+ schemaHash: alepha624.TString;
443
+ status: PgAttr<alepha624.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
444
+ activationDate: alepha624.TString;
445
+ expiredAt: alepha624.TOptional<alepha624.TString>;
446
+ version: alepha624.TInteger;
447
+ changeDescription: alepha624.TOptional<alepha624.TString>;
448
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
449
+ creatorId: alepha624.TOptional<alepha624.TString>;
450
+ creatorName: alepha624.TOptional<alepha624.TString>;
451
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
452
+ migrationLog: alepha624.TOptional<alepha624.TString>;
453
+ }, string, alepha624.TAny> | undefined;
566
454
  migrationLog?: string | undefined;
455
+ name: string;
456
+ status: "expired" | "current" | "next" | "future";
567
457
  id: string;
568
458
  createdAt: string;
569
459
  updatedAt: string;
570
- name: string;
571
460
  content: typebox0.StaticRecord<[], "Decode", {}, {
572
- id: PgAttr<PgAttr<alepha588.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
573
- createdAt: PgAttr<PgAttr<alepha588.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
574
- updatedAt: PgAttr<PgAttr<alepha588.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
575
- name: alepha588.TString;
576
- content: alepha588.TRecord<string, alepha588.TAny>;
577
- schemaHash: alepha588.TString;
578
- status: PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
579
- activationDate: alepha588.TString;
580
- expiredAt: alepha588.TOptional<alepha588.TString>;
581
- version: alepha588.TInteger;
582
- changeDescription: alepha588.TOptional<alepha588.TString>;
583
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
584
- creatorId: alepha588.TOptional<alepha588.TString>;
585
- creatorName: alepha588.TOptional<alepha588.TString>;
586
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
587
- migrationLog: alepha588.TOptional<alepha588.TString>;
588
- }, string, alepha588.TAny>;
461
+ id: PgAttr<PgAttr<alepha624.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
462
+ createdAt: PgAttr<PgAttr<alepha624.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
463
+ updatedAt: PgAttr<PgAttr<alepha624.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
464
+ name: alepha624.TString;
465
+ content: alepha624.TRecord<string, alepha624.TAny>;
466
+ schemaHash: alepha624.TString;
467
+ status: PgAttr<alepha624.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
468
+ activationDate: alepha624.TString;
469
+ expiredAt: alepha624.TOptional<alepha624.TString>;
470
+ version: alepha624.TInteger;
471
+ changeDescription: alepha624.TOptional<alepha624.TString>;
472
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
473
+ creatorId: alepha624.TOptional<alepha624.TString>;
474
+ creatorName: alepha624.TOptional<alepha624.TString>;
475
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
476
+ migrationLog: alepha624.TOptional<alepha624.TString>;
477
+ }, string, alepha624.TAny>;
589
478
  schemaHash: string;
590
- status: "expired" | "current" | "next" | "future";
591
479
  activationDate: string;
592
480
  version: number;
593
481
  }[]>;
@@ -598,7 +486,7 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
598
486
  /**
599
487
  * Hook to load initial value from database on start.
600
488
  */
601
- protected readonly onStart: alepha588.HookPrimitive<"start">;
489
+ protected readonly onStart: alepha624.HookPrimitive<"start">;
602
490
  /**
603
491
  * Called after primitive creation to initialize.
604
492
  */
@@ -660,23 +548,23 @@ interface ConfigSyncPayload {
660
548
  declare class ConfigStore {
661
549
  protected readonly log: alepha_logger0.Logger;
662
550
  protected readonly dateTimeProvider: DateTimeProvider;
663
- protected readonly repo: alepha_orm14.Repository<TObject<{
664
- id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
665
- createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
666
- updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
667
- name: alepha588.TString;
668
- content: alepha588.TRecord<string, alepha588.TAny>;
669
- schemaHash: alepha588.TString;
670
- status: alepha_orm14.PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
671
- activationDate: alepha588.TString;
672
- expiredAt: alepha588.TOptional<alepha588.TString>;
673
- version: alepha588.TInteger;
674
- changeDescription: alepha588.TOptional<alepha588.TString>;
675
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
676
- creatorId: alepha588.TOptional<alepha588.TString>;
677
- creatorName: alepha588.TOptional<alepha588.TString>;
678
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
679
- migrationLog: alepha588.TOptional<alepha588.TString>;
551
+ protected readonly repo: alepha_orm0.Repository<TObject<{
552
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
553
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
554
+ updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
555
+ name: alepha624.TString;
556
+ content: alepha624.TRecord<string, alepha624.TAny>;
557
+ schemaHash: alepha624.TString;
558
+ status: alepha_orm0.PgAttr<alepha624.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm0.PG_DEFAULT>;
559
+ activationDate: alepha624.TString;
560
+ expiredAt: alepha624.TOptional<alepha624.TString>;
561
+ version: alepha624.TInteger;
562
+ changeDescription: alepha624.TOptional<alepha624.TString>;
563
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
564
+ creatorId: alepha624.TOptional<alepha624.TString>;
565
+ creatorName: alepha624.TOptional<alepha624.TString>;
566
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
567
+ migrationLog: alepha624.TOptional<alepha624.TString>;
680
568
  }>>;
681
569
  /** Unique identifier for this instance (to avoid self-updates) */
682
570
  protected readonly instanceId: `${string}-${string}-${string}-${string}-${string}`;
@@ -685,11 +573,11 @@ declare class ConfigStore {
685
573
  /** Topic for cross-instance synchronization */
686
574
  readonly syncTopic: alepha_topic0.TopicPrimitive<{
687
575
  payload: TObject<{
688
- name: alepha588.TString;
689
- version: alepha588.TInteger;
690
- content: alepha588.TRecord<string, alepha588.TAny>;
691
- status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
692
- instanceId: alepha588.TString;
576
+ name: alepha624.TString;
577
+ version: alepha624.TInteger;
578
+ content: alepha624.TRecord<string, alepha624.TAny>;
579
+ status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
580
+ instanceId: alepha624.TString;
693
581
  }>;
694
582
  }>;
695
583
  /**
@@ -814,46 +702,46 @@ declare class AdminConfigController {
814
702
  * Useful for admin UI navigation.
815
703
  */
816
704
  getConfigTree: alepha_server0.ActionPrimitiveFn<{
817
- response: alepha588.TArray<alepha588.TObject<{
818
- name: alepha588.TString;
819
- path: alepha588.TString;
820
- isLeaf: alepha588.TBoolean;
821
- children: alepha588.TArray<alepha588.TAny>;
705
+ response: alepha624.TArray<alepha624.TObject<{
706
+ name: alepha624.TString;
707
+ path: alepha624.TString;
708
+ isLeaf: alepha624.TBoolean;
709
+ children: alepha624.TArray<alepha624.TAny>;
822
710
  }>>;
823
711
  }>;
824
712
  /**
825
713
  * List all unique configuration names.
826
714
  */
827
715
  listConfigNames: alepha_server0.ActionPrimitiveFn<{
828
- response: alepha588.TObject<{
829
- names: alepha588.TArray<alepha588.TString>;
716
+ response: alepha624.TObject<{
717
+ names: alepha624.TArray<alepha624.TString>;
830
718
  }>;
831
719
  }>;
832
720
  /**
833
721
  * Get configurations by status.
834
722
  */
835
723
  getByStatus: alepha_server0.ActionPrimitiveFn<{
836
- params: alepha588.TObject<{
837
- status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
724
+ params: alepha624.TObject<{
725
+ status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
838
726
  }>;
839
- response: alepha588.TObject<{
840
- configs: alepha588.TArray<alepha588.TObject<{
841
- id: alepha588.TString;
842
- createdAt: alepha588.TString;
843
- updatedAt: alepha588.TString;
844
- name: alepha588.TString;
845
- content: alepha588.TRecord<string, alepha588.TAny>;
846
- schemaHash: alepha588.TString;
847
- status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
848
- activationDate: alepha588.TString;
849
- expiredAt: alepha588.TOptional<alepha588.TString>;
850
- version: alepha588.TInteger;
851
- changeDescription: alepha588.TOptional<alepha588.TString>;
852
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
853
- creatorId: alepha588.TOptional<alepha588.TString>;
854
- creatorName: alepha588.TOptional<alepha588.TString>;
855
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
856
- migrationLog: alepha588.TOptional<alepha588.TString>;
727
+ response: alepha624.TObject<{
728
+ configs: alepha624.TArray<alepha624.TObject<{
729
+ id: alepha624.TString;
730
+ createdAt: alepha624.TString;
731
+ updatedAt: alepha624.TString;
732
+ name: alepha624.TString;
733
+ content: alepha624.TRecord<string, alepha624.TAny>;
734
+ schemaHash: alepha624.TString;
735
+ status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
736
+ activationDate: alepha624.TString;
737
+ expiredAt: alepha624.TOptional<alepha624.TString>;
738
+ version: alepha624.TInteger;
739
+ changeDescription: alepha624.TOptional<alepha624.TString>;
740
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
741
+ creatorId: alepha624.TOptional<alepha624.TString>;
742
+ creatorName: alepha624.TOptional<alepha624.TString>;
743
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
744
+ migrationLog: alepha624.TOptional<alepha624.TString>;
857
745
  }>>;
858
746
  }>;
859
747
  }>;
@@ -861,27 +749,27 @@ declare class AdminConfigController {
861
749
  * Get version history for a specific configuration.
862
750
  */
863
751
  getHistory: alepha_server0.ActionPrimitiveFn<{
864
- params: alepha588.TObject<{
865
- name: alepha588.TString;
752
+ params: alepha624.TObject<{
753
+ name: alepha624.TString;
866
754
  }>;
867
- response: alepha588.TObject<{
868
- versions: alepha588.TArray<alepha588.TObject<{
869
- id: alepha588.TString;
870
- createdAt: alepha588.TString;
871
- updatedAt: alepha588.TString;
872
- name: alepha588.TString;
873
- content: alepha588.TRecord<string, alepha588.TAny>;
874
- schemaHash: alepha588.TString;
875
- status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
876
- activationDate: alepha588.TString;
877
- expiredAt: alepha588.TOptional<alepha588.TString>;
878
- version: alepha588.TInteger;
879
- changeDescription: alepha588.TOptional<alepha588.TString>;
880
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
881
- creatorId: alepha588.TOptional<alepha588.TString>;
882
- creatorName: alepha588.TOptional<alepha588.TString>;
883
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
884
- migrationLog: alepha588.TOptional<alepha588.TString>;
755
+ response: alepha624.TObject<{
756
+ versions: alepha624.TArray<alepha624.TObject<{
757
+ id: alepha624.TString;
758
+ createdAt: alepha624.TString;
759
+ updatedAt: alepha624.TString;
760
+ name: alepha624.TString;
761
+ content: alepha624.TRecord<string, alepha624.TAny>;
762
+ schemaHash: alepha624.TString;
763
+ status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
764
+ activationDate: alepha624.TString;
765
+ expiredAt: alepha624.TOptional<alepha624.TString>;
766
+ version: alepha624.TInteger;
767
+ changeDescription: alepha624.TOptional<alepha624.TString>;
768
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
769
+ creatorId: alepha624.TOptional<alepha624.TString>;
770
+ creatorName: alepha624.TOptional<alepha624.TString>;
771
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
772
+ migrationLog: alepha624.TOptional<alepha624.TString>;
885
773
  }>>;
886
774
  }>;
887
775
  }>;
@@ -891,77 +779,77 @@ declare class AdminConfigController {
891
779
  * even if no versions exist in the database yet.
892
780
  */
893
781
  getCurrent: alepha_server0.ActionPrimitiveFn<{
894
- params: alepha588.TObject<{
895
- name: alepha588.TString;
782
+ params: alepha624.TObject<{
783
+ name: alepha624.TString;
896
784
  }>;
897
- response: alepha588.TObject<{
898
- current: alepha588.TOptional<alepha588.TObject<{
899
- id: alepha588.TString;
900
- createdAt: alepha588.TString;
901
- updatedAt: alepha588.TString;
902
- name: alepha588.TString;
903
- content: alepha588.TRecord<string, alepha588.TAny>;
904
- schemaHash: alepha588.TString;
905
- status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
906
- activationDate: alepha588.TString;
907
- expiredAt: alepha588.TOptional<alepha588.TString>;
908
- version: alepha588.TInteger;
909
- changeDescription: alepha588.TOptional<alepha588.TString>;
910
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
911
- creatorId: alepha588.TOptional<alepha588.TString>;
912
- creatorName: alepha588.TOptional<alepha588.TString>;
913
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
914
- migrationLog: alepha588.TOptional<alepha588.TString>;
785
+ response: alepha624.TObject<{
786
+ current: alepha624.TOptional<alepha624.TObject<{
787
+ id: alepha624.TString;
788
+ createdAt: alepha624.TString;
789
+ updatedAt: alepha624.TString;
790
+ name: alepha624.TString;
791
+ content: alepha624.TRecord<string, alepha624.TAny>;
792
+ schemaHash: alepha624.TString;
793
+ status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
794
+ activationDate: alepha624.TString;
795
+ expiredAt: alepha624.TOptional<alepha624.TString>;
796
+ version: alepha624.TInteger;
797
+ changeDescription: alepha624.TOptional<alepha624.TString>;
798
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
799
+ creatorId: alepha624.TOptional<alepha624.TString>;
800
+ creatorName: alepha624.TOptional<alepha624.TString>;
801
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
802
+ migrationLog: alepha624.TOptional<alepha624.TString>;
915
803
  }>>;
916
- next: alepha588.TOptional<alepha588.TObject<{
917
- id: alepha588.TString;
918
- createdAt: alepha588.TString;
919
- updatedAt: alepha588.TString;
920
- name: alepha588.TString;
921
- content: alepha588.TRecord<string, alepha588.TAny>;
922
- schemaHash: alepha588.TString;
923
- status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
924
- activationDate: alepha588.TString;
925
- expiredAt: alepha588.TOptional<alepha588.TString>;
926
- version: alepha588.TInteger;
927
- changeDescription: alepha588.TOptional<alepha588.TString>;
928
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
929
- creatorId: alepha588.TOptional<alepha588.TString>;
930
- creatorName: alepha588.TOptional<alepha588.TString>;
931
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
932
- migrationLog: alepha588.TOptional<alepha588.TString>;
804
+ next: alepha624.TOptional<alepha624.TObject<{
805
+ id: alepha624.TString;
806
+ createdAt: alepha624.TString;
807
+ updatedAt: alepha624.TString;
808
+ name: alepha624.TString;
809
+ content: alepha624.TRecord<string, alepha624.TAny>;
810
+ schemaHash: alepha624.TString;
811
+ status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
812
+ activationDate: alepha624.TString;
813
+ expiredAt: alepha624.TOptional<alepha624.TString>;
814
+ version: alepha624.TInteger;
815
+ changeDescription: alepha624.TOptional<alepha624.TString>;
816
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
817
+ creatorId: alepha624.TOptional<alepha624.TString>;
818
+ creatorName: alepha624.TOptional<alepha624.TString>;
819
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
820
+ migrationLog: alepha624.TOptional<alepha624.TString>;
933
821
  }>>;
934
- defaultValue: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
935
- currentValue: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
936
- schema: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
822
+ defaultValue: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
823
+ currentValue: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
824
+ schema: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
937
825
  }>;
938
826
  }>;
939
827
  /**
940
828
  * Get a specific version of a configuration.
941
829
  */
942
830
  getVersion: alepha_server0.ActionPrimitiveFn<{
943
- params: alepha588.TObject<{
944
- name: alepha588.TString;
945
- version: alepha588.TInteger;
831
+ params: alepha624.TObject<{
832
+ name: alepha624.TString;
833
+ version: alepha624.TInteger;
946
834
  }>;
947
- response: alepha588.TObject<{
948
- config: alepha588.TOptional<alepha588.TObject<{
949
- id: alepha588.TString;
950
- createdAt: alepha588.TString;
951
- updatedAt: alepha588.TString;
952
- name: alepha588.TString;
953
- content: alepha588.TRecord<string, alepha588.TAny>;
954
- schemaHash: alepha588.TString;
955
- status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
956
- activationDate: alepha588.TString;
957
- expiredAt: alepha588.TOptional<alepha588.TString>;
958
- version: alepha588.TInteger;
959
- changeDescription: alepha588.TOptional<alepha588.TString>;
960
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
961
- creatorId: alepha588.TOptional<alepha588.TString>;
962
- creatorName: alepha588.TOptional<alepha588.TString>;
963
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
964
- migrationLog: alepha588.TOptional<alepha588.TString>;
835
+ response: alepha624.TObject<{
836
+ config: alepha624.TOptional<alepha624.TObject<{
837
+ id: alepha624.TString;
838
+ createdAt: alepha624.TString;
839
+ updatedAt: alepha624.TString;
840
+ name: alepha624.TString;
841
+ content: alepha624.TRecord<string, alepha624.TAny>;
842
+ schemaHash: alepha624.TString;
843
+ status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
844
+ activationDate: alepha624.TString;
845
+ expiredAt: alepha624.TOptional<alepha624.TString>;
846
+ version: alepha624.TInteger;
847
+ changeDescription: alepha624.TOptional<alepha624.TString>;
848
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
849
+ creatorId: alepha624.TOptional<alepha624.TString>;
850
+ creatorName: alepha624.TOptional<alepha624.TString>;
851
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
852
+ migrationLog: alepha624.TOptional<alepha624.TString>;
965
853
  }>>;
966
854
  }>;
967
855
  }>;
@@ -969,98 +857,98 @@ declare class AdminConfigController {
969
857
  * Create a new configuration version.
970
858
  */
971
859
  createVersion: alepha_server0.ActionPrimitiveFn<{
972
- params: alepha588.TObject<{
973
- name: alepha588.TString;
860
+ params: alepha624.TObject<{
861
+ name: alepha624.TString;
974
862
  }>;
975
- body: alepha588.TObject<{
976
- content: alepha588.TRecord<string, alepha588.TAny>;
977
- schemaHash: alepha588.TString;
978
- activationDate: alepha588.TOptional<alepha588.TString>;
979
- changeDescription: alepha588.TOptional<alepha588.TString>;
980
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
981
- creatorId: alepha588.TOptional<alepha588.TString>;
982
- creatorName: alepha588.TOptional<alepha588.TString>;
863
+ body: alepha624.TObject<{
864
+ content: alepha624.TRecord<string, alepha624.TAny>;
865
+ schemaHash: alepha624.TString;
866
+ activationDate: alepha624.TOptional<alepha624.TString>;
867
+ changeDescription: alepha624.TOptional<alepha624.TString>;
868
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
869
+ creatorId: alepha624.TOptional<alepha624.TString>;
870
+ creatorName: alepha624.TOptional<alepha624.TString>;
983
871
  }>;
984
- response: alepha588.TObject<{
985
- id: alepha588.TString;
986
- createdAt: alepha588.TString;
987
- updatedAt: alepha588.TString;
988
- name: alepha588.TString;
989
- content: alepha588.TRecord<string, alepha588.TAny>;
990
- schemaHash: alepha588.TString;
991
- status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
992
- activationDate: alepha588.TString;
993
- expiredAt: alepha588.TOptional<alepha588.TString>;
994
- version: alepha588.TInteger;
995
- changeDescription: alepha588.TOptional<alepha588.TString>;
996
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
997
- creatorId: alepha588.TOptional<alepha588.TString>;
998
- creatorName: alepha588.TOptional<alepha588.TString>;
999
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
1000
- migrationLog: alepha588.TOptional<alepha588.TString>;
872
+ response: alepha624.TObject<{
873
+ id: alepha624.TString;
874
+ createdAt: alepha624.TString;
875
+ updatedAt: alepha624.TString;
876
+ name: alepha624.TString;
877
+ content: alepha624.TRecord<string, alepha624.TAny>;
878
+ schemaHash: alepha624.TString;
879
+ status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
880
+ activationDate: alepha624.TString;
881
+ expiredAt: alepha624.TOptional<alepha624.TString>;
882
+ version: alepha624.TInteger;
883
+ changeDescription: alepha624.TOptional<alepha624.TString>;
884
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
885
+ creatorId: alepha624.TOptional<alepha624.TString>;
886
+ creatorName: alepha624.TOptional<alepha624.TString>;
887
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
888
+ migrationLog: alepha624.TOptional<alepha624.TString>;
1001
889
  }>;
1002
890
  }>;
1003
891
  /**
1004
892
  * Rollback to a previous version.
1005
893
  */
1006
894
  rollback: alepha_server0.ActionPrimitiveFn<{
1007
- params: alepha588.TObject<{
1008
- name: alepha588.TString;
895
+ params: alepha624.TObject<{
896
+ name: alepha624.TString;
1009
897
  }>;
1010
- body: alepha588.TObject<{
1011
- targetVersion: alepha588.TInteger;
1012
- changeDescription: alepha588.TOptional<alepha588.TString>;
1013
- creatorId: alepha588.TOptional<alepha588.TString>;
1014
- creatorName: alepha588.TOptional<alepha588.TString>;
898
+ body: alepha624.TObject<{
899
+ targetVersion: alepha624.TInteger;
900
+ changeDescription: alepha624.TOptional<alepha624.TString>;
901
+ creatorId: alepha624.TOptional<alepha624.TString>;
902
+ creatorName: alepha624.TOptional<alepha624.TString>;
1015
903
  }>;
1016
- response: alepha588.TObject<{
1017
- id: alepha588.TString;
1018
- createdAt: alepha588.TString;
1019
- updatedAt: alepha588.TString;
1020
- name: alepha588.TString;
1021
- content: alepha588.TRecord<string, alepha588.TAny>;
1022
- schemaHash: alepha588.TString;
1023
- status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
1024
- activationDate: alepha588.TString;
1025
- expiredAt: alepha588.TOptional<alepha588.TString>;
1026
- version: alepha588.TInteger;
1027
- changeDescription: alepha588.TOptional<alepha588.TString>;
1028
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
1029
- creatorId: alepha588.TOptional<alepha588.TString>;
1030
- creatorName: alepha588.TOptional<alepha588.TString>;
1031
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
1032
- migrationLog: alepha588.TOptional<alepha588.TString>;
904
+ response: alepha624.TObject<{
905
+ id: alepha624.TString;
906
+ createdAt: alepha624.TString;
907
+ updatedAt: alepha624.TString;
908
+ name: alepha624.TString;
909
+ content: alepha624.TRecord<string, alepha624.TAny>;
910
+ schemaHash: alepha624.TString;
911
+ status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
912
+ activationDate: alepha624.TString;
913
+ expiredAt: alepha624.TOptional<alepha624.TString>;
914
+ version: alepha624.TInteger;
915
+ changeDescription: alepha624.TOptional<alepha624.TString>;
916
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
917
+ creatorId: alepha624.TOptional<alepha624.TString>;
918
+ creatorName: alepha624.TOptional<alepha624.TString>;
919
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
920
+ migrationLog: alepha624.TOptional<alepha624.TString>;
1033
921
  }>;
1034
922
  }>;
1035
923
  /**
1036
924
  * Activate a scheduled version immediately.
1037
925
  */
1038
926
  activateNow: alepha_server0.ActionPrimitiveFn<{
1039
- params: alepha588.TObject<{
1040
- name: alepha588.TString;
927
+ params: alepha624.TObject<{
928
+ name: alepha624.TString;
1041
929
  }>;
1042
- body: alepha588.TObject<{
1043
- version: alepha588.TInteger;
1044
- creatorId: alepha588.TOptional<alepha588.TString>;
1045
- creatorName: alepha588.TOptional<alepha588.TString>;
930
+ body: alepha624.TObject<{
931
+ version: alepha624.TInteger;
932
+ creatorId: alepha624.TOptional<alepha624.TString>;
933
+ creatorName: alepha624.TOptional<alepha624.TString>;
1046
934
  }>;
1047
- response: alepha588.TObject<{
1048
- id: alepha588.TString;
1049
- createdAt: alepha588.TString;
1050
- updatedAt: alepha588.TString;
1051
- name: alepha588.TString;
1052
- content: alepha588.TRecord<string, alepha588.TAny>;
1053
- schemaHash: alepha588.TString;
1054
- status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
1055
- activationDate: alepha588.TString;
1056
- expiredAt: alepha588.TOptional<alepha588.TString>;
1057
- version: alepha588.TInteger;
1058
- changeDescription: alepha588.TOptional<alepha588.TString>;
1059
- tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
1060
- creatorId: alepha588.TOptional<alepha588.TString>;
1061
- creatorName: alepha588.TOptional<alepha588.TString>;
1062
- previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
1063
- migrationLog: alepha588.TOptional<alepha588.TString>;
935
+ response: alepha624.TObject<{
936
+ id: alepha624.TString;
937
+ createdAt: alepha624.TString;
938
+ updatedAt: alepha624.TString;
939
+ name: alepha624.TString;
940
+ content: alepha624.TRecord<string, alepha624.TAny>;
941
+ schemaHash: alepha624.TString;
942
+ status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
943
+ activationDate: alepha624.TString;
944
+ expiredAt: alepha624.TOptional<alepha624.TString>;
945
+ version: alepha624.TInteger;
946
+ changeDescription: alepha624.TOptional<alepha624.TString>;
947
+ tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
948
+ creatorId: alepha624.TOptional<alepha624.TString>;
949
+ creatorName: alepha624.TOptional<alepha624.TString>;
950
+ previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
951
+ migrationLog: alepha624.TOptional<alepha624.TString>;
1064
952
  }>;
1065
953
  }>;
1066
954
  /**
@@ -1068,8 +956,8 @@ declare class AdminConfigController {
1068
956
  * Normally called by a scheduler, but exposed for manual triggering.
1069
957
  */
1070
958
  checkScheduled: alepha_server0.ActionPrimitiveFn<{
1071
- response: alepha588.TObject<{
1072
- message: alepha588.TString;
959
+ response: alepha624.TObject<{
960
+ message: alepha624.TString;
1073
961
  }>;
1074
962
  }>;
1075
963
  }
@@ -1128,7 +1016,7 @@ declare class ConfigActivationScheduler {
1128
1016
  *
1129
1017
  * @module alepha.api.parameters
1130
1018
  */
1131
- declare const AlephaApiParameters: alepha588.Service<alepha588.Module>;
1019
+ declare const AlephaApiParameters: alepha624.Service<alepha624.Module>;
1132
1020
  //#endregion
1133
1021
  export { $config, AdminConfigController, AlephaApiParameters, ConfigActivationScheduler, ConfigPrimitive, ConfigPrimitiveOptions, ConfigStore, ConfigSyncPayload, ConfigTreeNode, Parameter, ParameterInsert, type ParameterStatus, SaveConfigOptions, SetConfigOptions, parameters };
1134
1022
  //# sourceMappingURL=index.d.ts.map