alepha 0.14.2 → 0.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/README.md +1 -1
  2. package/dist/api/audits/index.browser.js +5 -5
  3. package/dist/api/audits/index.browser.js.map +1 -1
  4. package/dist/api/audits/index.d.ts +706 -785
  5. package/dist/api/audits/index.d.ts.map +1 -1
  6. package/dist/api/audits/index.js +13 -13
  7. package/dist/api/audits/index.js.map +1 -1
  8. package/dist/api/files/index.browser.js +5 -5
  9. package/dist/api/files/index.browser.js.map +1 -1
  10. package/dist/api/files/index.d.ts +58 -137
  11. package/dist/api/files/index.d.ts.map +1 -1
  12. package/dist/api/files/index.js +71 -71
  13. package/dist/api/files/index.js.map +1 -1
  14. package/dist/api/jobs/index.browser.js +5 -5
  15. package/dist/api/jobs/index.browser.js.map +1 -1
  16. package/dist/api/jobs/index.d.ts +29 -108
  17. package/dist/api/jobs/index.d.ts.map +1 -1
  18. package/dist/api/jobs/index.js +10 -10
  19. package/dist/api/jobs/index.js.map +1 -1
  20. package/dist/api/notifications/index.browser.js +10 -10
  21. package/dist/api/notifications/index.browser.js.map +1 -1
  22. package/dist/api/notifications/index.d.ts +504 -171
  23. package/dist/api/notifications/index.d.ts.map +1 -1
  24. package/dist/api/notifications/index.js +12 -12
  25. package/dist/api/notifications/index.js.map +1 -1
  26. package/dist/api/parameters/index.browser.js +163 -10
  27. package/dist/api/parameters/index.browser.js.map +1 -1
  28. package/dist/api/parameters/index.d.ts +277 -351
  29. package/dist/api/parameters/index.d.ts.map +1 -1
  30. package/dist/api/parameters/index.js +196 -91
  31. package/dist/api/parameters/index.js.map +1 -1
  32. package/dist/api/users/index.browser.js +19 -19
  33. package/dist/api/users/index.browser.js.map +1 -1
  34. package/dist/api/users/index.d.ts +787 -852
  35. package/dist/api/users/index.d.ts.map +1 -1
  36. package/dist/api/users/index.js +827 -596
  37. package/dist/api/users/index.js.map +1 -1
  38. package/dist/api/verifications/index.browser.js +6 -6
  39. package/dist/api/verifications/index.browser.js.map +1 -1
  40. package/dist/api/verifications/index.d.ts +128 -128
  41. package/dist/api/verifications/index.d.ts.map +1 -1
  42. package/dist/api/verifications/index.js +6 -6
  43. package/dist/api/verifications/index.js.map +1 -1
  44. package/dist/bin/index.d.ts +1 -2
  45. package/dist/bin/index.js +0 -1
  46. package/dist/bin/index.js.map +1 -1
  47. package/dist/cli/index.d.ts +252 -131
  48. package/dist/cli/index.d.ts.map +1 -1
  49. package/dist/cli/index.js +595 -395
  50. package/dist/cli/index.js.map +1 -1
  51. package/dist/command/index.d.ts +46 -11
  52. package/dist/command/index.d.ts.map +1 -1
  53. package/dist/command/index.js +99 -19
  54. package/dist/command/index.js.map +1 -1
  55. package/dist/core/index.browser.js +40 -22
  56. package/dist/core/index.browser.js.map +1 -1
  57. package/dist/core/index.d.ts +45 -1
  58. package/dist/core/index.d.ts.map +1 -1
  59. package/dist/core/index.js +40 -22
  60. package/dist/core/index.js.map +1 -1
  61. package/dist/core/index.native.js +40 -22
  62. package/dist/core/index.native.js.map +1 -1
  63. package/dist/fake/index.js +195 -168
  64. package/dist/fake/index.js.map +1 -1
  65. package/dist/file/index.d.ts +8 -0
  66. package/dist/file/index.d.ts.map +1 -1
  67. package/dist/file/index.js +3 -0
  68. package/dist/file/index.js.map +1 -1
  69. package/dist/logger/index.d.ts +1 -1
  70. package/dist/logger/index.d.ts.map +1 -1
  71. package/dist/logger/index.js +12 -2
  72. package/dist/logger/index.js.map +1 -1
  73. package/dist/mcp/index.js +1 -1
  74. package/dist/mcp/index.js.map +1 -1
  75. package/dist/orm/index.d.ts +59 -195
  76. package/dist/orm/index.d.ts.map +1 -1
  77. package/dist/orm/index.js +201 -430
  78. package/dist/orm/index.js.map +1 -1
  79. package/dist/security/index.d.ts +1 -1
  80. package/dist/security/index.d.ts.map +1 -1
  81. package/dist/security/index.js +1 -1
  82. package/dist/security/index.js.map +1 -1
  83. package/dist/server/auth/index.d.ts +171 -155
  84. package/dist/server/auth/index.d.ts.map +1 -1
  85. package/dist/server/auth/index.js +0 -1
  86. package/dist/server/auth/index.js.map +1 -1
  87. package/dist/server/cache/index.d.ts +12 -0
  88. package/dist/server/cache/index.d.ts.map +1 -1
  89. package/dist/server/cache/index.js +55 -2
  90. package/dist/server/cache/index.js.map +1 -1
  91. package/dist/server/compress/index.d.ts +6 -0
  92. package/dist/server/compress/index.d.ts.map +1 -1
  93. package/dist/server/compress/index.js +38 -1
  94. package/dist/server/compress/index.js.map +1 -1
  95. package/dist/server/core/index.browser.js +2 -2
  96. package/dist/server/core/index.browser.js.map +1 -1
  97. package/dist/server/core/index.d.ts +10 -10
  98. package/dist/server/core/index.d.ts.map +1 -1
  99. package/dist/server/core/index.js +7 -4
  100. package/dist/server/core/index.js.map +1 -1
  101. package/dist/server/links/index.browser.js +22 -6
  102. package/dist/server/links/index.browser.js.map +1 -1
  103. package/dist/server/links/index.d.ts +46 -44
  104. package/dist/server/links/index.d.ts.map +1 -1
  105. package/dist/server/links/index.js +24 -41
  106. package/dist/server/links/index.js.map +1 -1
  107. package/dist/server/static/index.d.ts.map +1 -1
  108. package/dist/server/static/index.js +4 -0
  109. package/dist/server/static/index.js.map +1 -1
  110. package/dist/server/swagger/index.d.ts +2 -1
  111. package/dist/server/swagger/index.d.ts.map +1 -1
  112. package/dist/server/swagger/index.js +9 -5
  113. package/dist/server/swagger/index.js.map +1 -1
  114. package/dist/vite/index.d.ts +101 -106
  115. package/dist/vite/index.d.ts.map +1 -1
  116. package/dist/vite/index.js +574 -503
  117. package/dist/vite/index.js.map +1 -1
  118. package/dist/websocket/index.d.ts +7 -7
  119. package/package.json +7 -7
  120. package/src/api/audits/controllers/{AuditController.ts → AdminAuditController.ts} +5 -6
  121. package/src/api/audits/entities/audits.ts +5 -5
  122. package/src/api/audits/index.browser.ts +1 -1
  123. package/src/api/audits/index.ts +3 -3
  124. package/src/api/audits/primitives/$audit.spec.ts +276 -0
  125. package/src/api/audits/services/AuditService.spec.ts +495 -0
  126. package/src/api/files/__tests__/$bucket.spec.ts +91 -0
  127. package/src/api/files/controllers/AdminFileStatsController.spec.ts +166 -0
  128. package/src/api/files/controllers/{StorageStatsController.ts → AdminFileStatsController.ts} +2 -2
  129. package/src/api/files/controllers/FileController.spec.ts +558 -0
  130. package/src/api/files/controllers/FileController.ts +4 -5
  131. package/src/api/files/entities/files.ts +5 -5
  132. package/src/api/files/index.browser.ts +1 -1
  133. package/src/api/files/index.ts +4 -4
  134. package/src/api/files/jobs/FileJobs.spec.ts +52 -0
  135. package/src/api/files/services/FileService.spec.ts +109 -0
  136. package/src/api/jobs/__tests__/JobController.spec.ts +343 -0
  137. package/src/api/jobs/controllers/{JobController.ts → AdminJobController.ts} +2 -2
  138. package/src/api/jobs/entities/jobExecutions.ts +5 -5
  139. package/src/api/jobs/index.ts +3 -3
  140. package/src/api/jobs/primitives/$job.spec.ts +476 -0
  141. package/src/api/notifications/controllers/{NotificationController.ts → AdminNotificationController.ts} +4 -5
  142. package/src/api/notifications/entities/notifications.ts +5 -5
  143. package/src/api/notifications/index.browser.ts +1 -1
  144. package/src/api/notifications/index.ts +4 -4
  145. package/src/api/parameters/controllers/{ConfigController.ts → AdminConfigController.ts} +46 -107
  146. package/src/api/parameters/entities/parameters.ts +7 -17
  147. package/src/api/parameters/index.ts +3 -3
  148. package/src/api/parameters/primitives/$config.spec.ts +356 -0
  149. package/src/api/parameters/schemas/activateConfigBodySchema.ts +12 -0
  150. package/src/api/parameters/schemas/checkScheduledResponseSchema.ts +8 -0
  151. package/src/api/parameters/schemas/configCurrentResponseSchema.ts +13 -0
  152. package/src/api/parameters/schemas/configHistoryResponseSchema.ts +9 -0
  153. package/src/api/parameters/schemas/configNameParamSchema.ts +10 -0
  154. package/src/api/parameters/schemas/configNamesResponseSchema.ts +8 -0
  155. package/src/api/parameters/schemas/configTreeNodeSchema.ts +13 -0
  156. package/src/api/parameters/schemas/configVersionParamSchema.ts +9 -0
  157. package/src/api/parameters/schemas/configVersionResponseSchema.ts +9 -0
  158. package/src/api/parameters/schemas/configsByStatusResponseSchema.ts +9 -0
  159. package/src/api/parameters/schemas/createConfigVersionBodySchema.ts +24 -0
  160. package/src/api/parameters/schemas/index.ts +15 -0
  161. package/src/api/parameters/schemas/parameterResponseSchema.ts +26 -0
  162. package/src/api/parameters/schemas/parameterStatusSchema.ts +13 -0
  163. package/src/api/parameters/schemas/rollbackConfigBodySchema.ts +15 -0
  164. package/src/api/parameters/schemas/statusParamSchema.ts +9 -0
  165. package/src/api/users/__tests__/EmailVerification.spec.ts +369 -0
  166. package/src/api/users/__tests__/PasswordReset.spec.ts +550 -0
  167. package/src/api/users/controllers/AdminIdentityController.spec.ts +365 -0
  168. package/src/api/users/controllers/{IdentityController.ts → AdminIdentityController.ts} +3 -4
  169. package/src/api/users/controllers/AdminSessionController.spec.ts +274 -0
  170. package/src/api/users/controllers/{SessionController.ts → AdminSessionController.ts} +3 -4
  171. package/src/api/users/controllers/AdminUserController.spec.ts +372 -0
  172. package/src/api/users/controllers/AdminUserController.ts +116 -0
  173. package/src/api/users/controllers/UserController.ts +4 -107
  174. package/src/api/users/controllers/UserRealmController.ts +3 -0
  175. package/src/api/users/entities/identities.ts +6 -6
  176. package/src/api/users/entities/sessions.ts +6 -6
  177. package/src/api/users/entities/users.ts +9 -9
  178. package/src/api/users/index.ts +9 -6
  179. package/src/api/users/primitives/$userRealm.ts +13 -8
  180. package/src/api/users/services/CredentialService.spec.ts +509 -0
  181. package/src/api/users/services/CredentialService.ts +46 -0
  182. package/src/api/users/services/IdentityService.ts +15 -0
  183. package/src/api/users/services/RegistrationService.spec.ts +630 -0
  184. package/src/api/users/services/RegistrationService.ts +18 -0
  185. package/src/api/users/services/SessionService.spec.ts +301 -0
  186. package/src/api/users/services/SessionService.ts +110 -1
  187. package/src/api/users/services/UserService.ts +67 -2
  188. package/src/api/verifications/__tests__/CodeVerification.spec.ts +318 -0
  189. package/src/api/verifications/__tests__/LinkVerification.spec.ts +279 -0
  190. package/src/api/verifications/entities/verifications.ts +6 -6
  191. package/src/api/verifications/jobs/VerificationJobs.spec.ts +50 -0
  192. package/src/batch/__tests__/startup-buffering.spec.ts +458 -0
  193. package/src/batch/primitives/$batch.spec.ts +766 -0
  194. package/src/batch/providers/BatchProvider.spec.ts +786 -0
  195. package/src/bin/index.ts +0 -1
  196. package/src/bucket/__tests__/shared.ts +194 -0
  197. package/src/bucket/primitives/$bucket.spec.ts +104 -0
  198. package/src/bucket/providers/FileStorageProvider.spec.ts +13 -0
  199. package/src/bucket/providers/LocalFileStorageProvider.spec.ts +77 -0
  200. package/src/bucket/providers/MemoryFileStorageProvider.spec.ts +82 -0
  201. package/src/cache/core/__tests__/shared.ts +377 -0
  202. package/src/cache/core/primitives/$cache.spec.ts +111 -0
  203. package/src/cache/redis/__tests__/cache-redis.spec.ts +70 -0
  204. package/src/cli/apps/AlephaCli.ts +25 -6
  205. package/src/cli/atoms/buildOptions.ts +88 -0
  206. package/src/cli/commands/build.ts +32 -69
  207. package/src/cli/commands/db.ts +0 -4
  208. package/src/cli/commands/dev.ts +34 -10
  209. package/src/cli/commands/gen/changelog.spec.ts +315 -0
  210. package/src/cli/commands/{changelog.ts → gen/changelog.ts} +9 -9
  211. package/src/cli/commands/gen/env.ts +53 -0
  212. package/src/cli/commands/gen/openapi.ts +71 -0
  213. package/src/cli/commands/gen/resource.ts +15 -0
  214. package/src/cli/commands/gen.ts +24 -0
  215. package/src/cli/commands/init.ts +2 -1
  216. package/src/cli/commands/root.ts +12 -3
  217. package/src/cli/commands/test.ts +0 -1
  218. package/src/cli/commands/typecheck.ts +5 -0
  219. package/src/cli/commands/verify.ts +1 -1
  220. package/src/cli/defineConfig.ts +49 -7
  221. package/src/cli/index.ts +2 -2
  222. package/src/cli/services/AlephaCliUtils.ts +105 -55
  223. package/src/cli/services/GitMessageParser.ts +1 -1
  224. package/src/command/helpers/Asker.spec.ts +127 -0
  225. package/src/command/helpers/Runner.spec.ts +126 -0
  226. package/src/command/helpers/Runner.ts +1 -1
  227. package/src/command/primitives/$command.spec.ts +1588 -0
  228. package/src/command/primitives/$command.ts +0 -6
  229. package/src/command/providers/CliProvider.ts +75 -27
  230. package/src/core/Alepha.ts +87 -0
  231. package/src/core/__tests__/Alepha-emit.spec.ts +22 -0
  232. package/src/core/__tests__/Alepha-graph.spec.ts +93 -0
  233. package/src/core/__tests__/Alepha-has.spec.ts +41 -0
  234. package/src/core/__tests__/Alepha-inject.spec.ts +93 -0
  235. package/src/core/__tests__/Alepha-register.spec.ts +81 -0
  236. package/src/core/__tests__/Alepha-start.spec.ts +176 -0
  237. package/src/core/__tests__/Alepha-with.spec.ts +14 -0
  238. package/src/core/__tests__/TypeBox-usecases.spec.ts +35 -0
  239. package/src/core/__tests__/TypeBoxLocale.spec.ts +15 -0
  240. package/src/core/__tests__/descriptor.spec.ts +34 -0
  241. package/src/core/__tests__/fixtures/A.ts +5 -0
  242. package/src/core/__tests__/pagination.spec.ts +77 -0
  243. package/src/core/helpers/jsonSchemaToTypeBox.ts +2 -2
  244. package/src/core/primitives/$atom.spec.ts +43 -0
  245. package/src/core/primitives/$hook.spec.ts +130 -0
  246. package/src/core/primitives/$inject.spec.ts +175 -0
  247. package/src/core/primitives/$module.spec.ts +115 -0
  248. package/src/core/providers/CodecManager.spec.ts +740 -0
  249. package/src/core/providers/EventManager.spec.ts +762 -0
  250. package/src/core/providers/EventManager.ts +4 -0
  251. package/src/core/providers/StateManager.spec.ts +365 -0
  252. package/src/core/providers/TypeProvider.spec.ts +1607 -0
  253. package/src/core/providers/TypeProvider.ts +20 -26
  254. package/src/datetime/primitives/$interval.spec.ts +103 -0
  255. package/src/datetime/providers/DateTimeProvider.spec.ts +86 -0
  256. package/src/email/primitives/$email.spec.ts +175 -0
  257. package/src/email/providers/LocalEmailProvider.spec.ts +341 -0
  258. package/src/fake/__tests__/keyName.example.ts +40 -0
  259. package/src/fake/__tests__/keyName.spec.ts +152 -0
  260. package/src/fake/__tests__/module.example.ts +32 -0
  261. package/src/fake/providers/FakeProvider.spec.ts +438 -0
  262. package/src/file/providers/FileSystemProvider.ts +8 -0
  263. package/src/file/providers/NodeFileSystemProvider.spec.ts +418 -0
  264. package/src/file/providers/NodeFileSystemProvider.ts +5 -0
  265. package/src/file/services/FileDetector.spec.ts +591 -0
  266. package/src/lock/core/__tests__/shared.ts +190 -0
  267. package/src/lock/core/providers/MemoryLockProvider.spec.ts +25 -0
  268. package/src/lock/redis/providers/RedisLockProvider.spec.ts +25 -0
  269. package/src/logger/__tests__/SimpleFormatterProvider.spec.ts +109 -0
  270. package/src/logger/index.ts +15 -3
  271. package/src/logger/primitives/$logger.spec.ts +108 -0
  272. package/src/logger/services/Logger.spec.ts +295 -0
  273. package/src/mcp/__tests__/errors.spec.ts +175 -0
  274. package/src/mcp/__tests__/integration.spec.ts +450 -0
  275. package/src/mcp/helpers/jsonrpc.spec.ts +380 -0
  276. package/src/mcp/primitives/$prompt.spec.ts +468 -0
  277. package/src/mcp/primitives/$resource.spec.ts +390 -0
  278. package/src/mcp/primitives/$tool.spec.ts +406 -0
  279. package/src/mcp/providers/McpServerProvider.spec.ts +797 -0
  280. package/src/mcp/transports/StdioMcpTransport.ts +1 -1
  281. package/src/orm/__tests__/$repository-crud.spec.ts +276 -0
  282. package/src/orm/__tests__/$repository-hooks.spec.ts +325 -0
  283. package/src/orm/__tests__/$repository-orderBy.spec.ts +128 -0
  284. package/src/orm/__tests__/$repository-pagination-sort.spec.ts +149 -0
  285. package/src/orm/__tests__/$repository-save.spec.ts +37 -0
  286. package/src/orm/__tests__/ModelBuilder-integration.spec.ts +490 -0
  287. package/src/orm/__tests__/ModelBuilder-types.spec.ts +186 -0
  288. package/src/orm/__tests__/PostgresProvider.spec.ts +46 -0
  289. package/src/orm/__tests__/delete-returning.spec.ts +256 -0
  290. package/src/orm/__tests__/deletedAt.spec.ts +80 -0
  291. package/src/orm/__tests__/enums.spec.ts +315 -0
  292. package/src/orm/__tests__/execute.spec.ts +72 -0
  293. package/src/orm/__tests__/fixtures/bigEntitySchema.ts +65 -0
  294. package/src/orm/__tests__/fixtures/userEntitySchema.ts +27 -0
  295. package/src/orm/__tests__/joins.spec.ts +1114 -0
  296. package/src/orm/__tests__/page.spec.ts +287 -0
  297. package/src/orm/__tests__/primaryKey.spec.ts +87 -0
  298. package/src/orm/__tests__/query-date-encoding.spec.ts +402 -0
  299. package/src/orm/__tests__/ref-auto-onDelete.spec.ts +156 -0
  300. package/src/orm/__tests__/references.spec.ts +102 -0
  301. package/src/orm/__tests__/security.spec.ts +710 -0
  302. package/src/orm/__tests__/sqlite.spec.ts +111 -0
  303. package/src/orm/__tests__/string-operators.spec.ts +429 -0
  304. package/src/orm/__tests__/timestamps.spec.ts +388 -0
  305. package/src/orm/__tests__/validation.spec.ts +183 -0
  306. package/src/orm/__tests__/version.spec.ts +64 -0
  307. package/src/orm/helpers/parseQueryString.spec.ts +196 -0
  308. package/src/orm/index.ts +2 -8
  309. package/src/orm/primitives/$repository.spec.ts +137 -0
  310. package/src/orm/primitives/$sequence.spec.ts +29 -0
  311. package/src/orm/primitives/$transaction.spec.ts +82 -0
  312. package/src/orm/providers/drivers/BunPostgresProvider.ts +3 -3
  313. package/src/orm/providers/drivers/BunSqliteProvider.ts +1 -1
  314. package/src/orm/providers/drivers/CloudflareD1Provider.ts +1 -1
  315. package/src/orm/providers/drivers/DatabaseProvider.ts +1 -1
  316. package/src/orm/providers/drivers/NodePostgresProvider.ts +3 -3
  317. package/src/orm/providers/drivers/NodeSqliteProvider.ts +1 -1
  318. package/src/orm/providers/drivers/PglitePostgresProvider.ts +2 -2
  319. package/src/orm/services/ModelBuilder.spec.ts +575 -0
  320. package/src/orm/services/Repository.spec.ts +137 -0
  321. package/src/queue/core/__tests__/shared.ts +143 -0
  322. package/src/queue/core/providers/MemoryQueueProvider.spec.ts +23 -0
  323. package/src/queue/core/providers/WorkerProvider.spec.ts +394 -0
  324. package/src/queue/redis/providers/RedisQueueProvider.spec.ts +23 -0
  325. package/src/redis/__tests__/redis.spec.ts +58 -0
  326. package/src/retry/primitives/$retry.spec.ts +234 -0
  327. package/src/retry/providers/RetryProvider.spec.ts +438 -0
  328. package/src/router/__tests__/match.spec.ts +252 -0
  329. package/src/router/providers/RouterProvider.spec.ts +197 -0
  330. package/src/scheduler/__tests__/$scheduler-cron.spec.ts +25 -0
  331. package/src/scheduler/__tests__/$scheduler-interval.spec.ts +25 -0
  332. package/src/scheduler/__tests__/shared.ts +77 -0
  333. package/src/security/__tests__/bug-1-wildcard-after-start.spec.ts +229 -0
  334. package/src/security/__tests__/bug-2-password-validation.spec.ts +245 -0
  335. package/src/security/__tests__/bug-3-regex-vulnerability.spec.ts +407 -0
  336. package/src/security/__tests__/bug-4-oauth2-validation.spec.ts +439 -0
  337. package/src/security/__tests__/multi-layer-permissions.spec.ts +522 -0
  338. package/src/security/primitives/$permission.spec.ts +30 -0
  339. package/src/security/primitives/$permission.ts +2 -2
  340. package/src/security/primitives/$realm.spec.ts +101 -0
  341. package/src/security/primitives/$role.spec.ts +52 -0
  342. package/src/security/primitives/$serviceAccount.spec.ts +61 -0
  343. package/src/security/providers/SecurityProvider.spec.ts +350 -0
  344. package/src/server/auth/providers/ServerAuthProvider.ts +0 -2
  345. package/src/server/cache/providers/ServerCacheProvider.spec.ts +1125 -0
  346. package/src/server/cache/providers/ServerCacheProvider.ts +94 -9
  347. package/src/server/compress/providers/ServerCompressProvider.spec.ts +31 -0
  348. package/src/server/compress/providers/ServerCompressProvider.ts +63 -2
  349. package/src/server/cookies/providers/ServerCookiesProvider.spec.ts +253 -0
  350. package/src/server/core/__tests__/ServerRouterProvider-getRoutes.spec.ts +334 -0
  351. package/src/server/core/__tests__/ServerRouterProvider-requestId.spec.ts +129 -0
  352. package/src/server/core/helpers/ServerReply.ts +2 -2
  353. package/src/server/core/primitives/$action.spec.ts +191 -0
  354. package/src/server/core/primitives/$route.spec.ts +65 -0
  355. package/src/server/core/providers/ServerBodyParserProvider.spec.ts +93 -0
  356. package/src/server/core/providers/ServerLoggerProvider.spec.ts +100 -0
  357. package/src/server/core/providers/ServerProvider.ts +14 -2
  358. package/src/server/core/services/HttpClient.spec.ts +123 -0
  359. package/src/server/core/services/UserAgentParser.spec.ts +111 -0
  360. package/src/server/cors/providers/ServerCorsProvider.spec.ts +481 -0
  361. package/src/server/health/providers/ServerHealthProvider.spec.ts +22 -0
  362. package/src/server/helmet/providers/ServerHelmetProvider.spec.ts +105 -0
  363. package/src/server/links/__tests__/$action.spec.ts +238 -0
  364. package/src/server/links/__tests__/fixtures/CrudApp.ts +122 -0
  365. package/src/server/links/__tests__/requestId.spec.ts +120 -0
  366. package/src/server/links/primitives/$remote.spec.ts +228 -0
  367. package/src/server/links/providers/LinkProvider.spec.ts +54 -0
  368. package/src/server/links/providers/LinkProvider.ts +49 -3
  369. package/src/server/links/providers/ServerLinksProvider.ts +1 -53
  370. package/src/server/links/schemas/apiLinksResponseSchema.ts +7 -0
  371. package/src/server/metrics/providers/ServerMetricsProvider.spec.ts +25 -0
  372. package/src/server/multipart/providers/ServerMultipartProvider.spec.ts +528 -0
  373. package/src/server/proxy/primitives/$proxy.spec.ts +87 -0
  374. package/src/server/rate-limit/__tests__/ActionRateLimit.spec.ts +211 -0
  375. package/src/server/rate-limit/providers/ServerRateLimitProvider.spec.ts +344 -0
  376. package/src/server/security/__tests__/BasicAuth.spec.ts +684 -0
  377. package/src/server/security/__tests__/ServerSecurityProvider-realm.spec.ts +388 -0
  378. package/src/server/security/providers/ServerSecurityProvider.spec.ts +123 -0
  379. package/src/server/static/primitives/$serve.spec.ts +193 -0
  380. package/src/server/static/providers/ServerStaticProvider.ts +10 -0
  381. package/src/server/swagger/__tests__/ui.spec.ts +52 -0
  382. package/src/server/swagger/primitives/$swagger.spec.ts +193 -0
  383. package/src/server/swagger/providers/ServerSwaggerProvider.ts +19 -12
  384. package/src/sms/primitives/$sms.spec.ts +165 -0
  385. package/src/sms/providers/LocalSmsProvider.spec.ts +224 -0
  386. package/src/sms/providers/MemorySmsProvider.spec.ts +193 -0
  387. package/src/thread/primitives/$thread.spec.ts +186 -0
  388. package/src/topic/core/__tests__/shared.ts +144 -0
  389. package/src/topic/core/providers/MemoryTopicProvider.spec.ts +23 -0
  390. package/src/topic/redis/providers/RedisTopicProvider.spec.ts +23 -0
  391. package/src/vite/helpers/importViteReact.ts +13 -0
  392. package/src/vite/index.ts +1 -21
  393. package/src/vite/plugins/viteAlephaDev.ts +32 -5
  394. package/src/vite/plugins/viteAlephaSsrPreload.ts +222 -0
  395. package/src/vite/tasks/buildClient.ts +11 -0
  396. package/src/vite/tasks/buildServer.ts +47 -3
  397. package/src/vite/tasks/devServer.ts +69 -0
  398. package/src/vite/tasks/index.ts +2 -1
  399. package/src/vite/tasks/runAlepha.ts +7 -1
  400. package/src/websocket/__tests__/$websocket-new.spec.ts +195 -0
  401. package/src/websocket/primitives/$channel.spec.ts +30 -0
  402. package/src/cli/assets/viteConfigTs.ts +0 -14
  403. package/src/cli/commands/run.ts +0 -24
  404. package/src/vite/plugins/viteAlepha.ts +0 -37
  405. package/src/vite/plugins/viteAlephaBuild.ts +0 -281
@@ -1,4 +1,4 @@
1
- import * as alepha317 from "alepha";
1
+ import * as alepha588 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";
@@ -6,31 +6,25 @@ import * as alepha_logger0 from "alepha/logger";
6
6
  import * as alepha_orm14 from "alepha/orm";
7
7
  import * as alepha_topic0 from "alepha/topic";
8
8
  import * as alepha_scheduler0 from "alepha/scheduler";
9
- import "bun";
10
- import "bun:sqlite";
11
- import "drizzle-orm/bun-sql";
12
- import "drizzle-orm/bun-sqlite";
13
9
  import "drizzle-orm/d1";
14
10
  import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
15
11
  import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
16
12
  import "alepha/retry";
17
- import "alepha/lock";
18
13
  import * as typebox0 from "typebox";
19
14
  import "drizzle-orm/sqlite-core";
15
+ import "alepha/lock";
20
16
  import "drizzle-orm/postgres-js";
21
17
  import "postgres";
22
18
  import { UserAccount } from "alepha/security";
23
19
 
24
- //#region ../../src/api/parameters/entities/parameters.d.ts
20
+ //#region ../../src/api/parameters/schemas/parameterStatusSchema.d.ts
25
21
  /**
26
- * Parameter status values.
27
- *
28
- * - EXPIRED: Past version, no longer active
29
- * - CURRENT: Currently active version
30
- * - NEXT: Scheduled to become active (closest future date)
31
- * - FUTURE: Scheduled for activation after NEXT
22
+ * Parameter status enum schema.
32
23
  */
33
- type ParameterStatus = "expired" | "current" | "next" | "future";
24
+ declare const parameterStatusSchema: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
25
+ type ParameterStatus = Static<typeof parameterStatusSchema>;
26
+ //#endregion
27
+ //#region ../../src/api/parameters/entities/parameters.d.ts
34
28
  /**
35
29
  * Configuration parameter entity for versioned configuration management.
36
30
  *
@@ -40,67 +34,67 @@ type ParameterStatus = "expired" | "current" | "next" | "future";
40
34
  * - Activation scheduling
41
35
  * - Audit trail (creator info)
42
36
  */
43
- declare const parameters: alepha_orm14.EntityPrimitive<alepha317.TObject<{
44
- id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha317.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
45
- createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha317.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
46
- updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha317.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
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>;
47
41
  /**
48
42
  * Configuration name using dot notation for tree hierarchy.
49
43
  * Examples: "app.features", "app.pricing.tiers", "system.limits"
50
44
  */
51
- name: alepha317.TString;
45
+ name: alepha588.TString;
52
46
  /**
53
47
  * The configuration content as JSON.
54
48
  */
55
- content: alepha317.TRecord<string, alepha317.TAny>;
49
+ content: alepha588.TRecord<string, alepha588.TAny>;
56
50
  /**
57
51
  * Schema version hash for detecting schema changes.
58
52
  * Used for auto-migration when schema evolves.
59
53
  */
60
- schemaHash: alepha317.TString;
54
+ schemaHash: alepha588.TString;
61
55
  /**
62
56
  * Current status of this parameter version.
63
57
  */
64
- status: alepha_orm14.PgAttr<alepha317.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
58
+ status: alepha_orm14.PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
65
59
  /**
66
60
  * When this version should become active.
67
61
  * Default is immediate (now).
68
62
  */
69
- activationDate: alepha317.TString;
63
+ activationDate: alepha588.TString;
70
64
  /**
71
65
  * When this version was deactivated (became expired).
72
66
  * Null if still active or scheduled.
73
67
  */
74
- expiredAt: alepha317.TOptional<alepha317.TString>;
68
+ expiredAt: alepha588.TOptional<alepha588.TString>;
75
69
  /**
76
70
  * Version number for this configuration.
77
71
  * Auto-incremented per config name.
78
72
  */
79
- version: alepha317.TInteger;
73
+ version: alepha588.TInteger;
80
74
  /**
81
75
  * Optional description of changes in this version.
82
76
  */
83
- changeDescription: alepha317.TOptional<alepha317.TString>;
77
+ changeDescription: alepha588.TOptional<alepha588.TString>;
84
78
  /**
85
79
  * Optional tags for filtering/categorization.
86
80
  */
87
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
81
+ tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
88
82
  /**
89
83
  * Creator user ID (if available).
90
84
  */
91
- creatorId: alepha317.TOptional<alepha317.TString>;
85
+ creatorId: alepha588.TOptional<alepha588.TString>;
92
86
  /**
93
87
  * Creator display name for audit trail.
94
88
  */
95
- creatorName: alepha317.TOptional<alepha317.TString>;
89
+ creatorName: alepha588.TOptional<alepha588.TString>;
96
90
  /**
97
91
  * Previous content before this change (for rollback reference).
98
92
  */
99
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
93
+ previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
100
94
  /**
101
95
  * Migration log if schema changed.
102
96
  */
103
- migrationLog: alepha317.TOptional<alepha317.TString>;
97
+ migrationLog: alepha588.TOptional<alepha588.TString>;
104
98
  }>>;
105
99
  type Parameter = Static<typeof parameters.schema>;
106
100
  type ParameterInsert = Omit<Parameter, "id" | "createdAt" | "updatedAt">;
@@ -321,86 +315,11 @@ interface PgRefOptions {
321
315
  */
322
316
  type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
323
317
  //#endregion
324
- //#region ../../src/orm/providers/drivers/BunPostgresProvider.d.ts
325
- declare module "alepha" {
326
- interface Env extends Partial<Static<typeof envSchema$1>> {}
327
- }
328
- declare const envSchema$1: alepha317.TObject<{
329
- /**
330
- * Main configuration for database connection.
331
- * Accept a string in the format of a Postgres connection URL.
332
- * Example: postgres://user:password@localhost:5432/database
333
- * or
334
- * Example: postgres://user:password@localhost:5432/database?sslmode=require
335
- */
336
- DATABASE_URL: alepha317.TOptional<alepha317.TString>;
337
- /**
338
- * In addition to the DATABASE_URL, you can specify the postgres schema name.
339
- */
340
- POSTGRES_SCHEMA: alepha317.TOptional<alepha317.TString>;
341
- }>;
342
- /**
343
- * Bun PostgreSQL provider using Drizzle ORM with Bun's native SQL client.
344
- *
345
- * This provider uses Bun's built-in SQL class for PostgreSQL connections,
346
- * which provides excellent performance on the Bun runtime.
347
- *
348
- * @example
349
- * ```ts
350
- * // Set DATABASE_URL environment variable
351
- * // DATABASE_URL=postgres://user:password@localhost:5432/database
352
- *
353
- * // Or configure programmatically
354
- * alepha.with({
355
- * provide: DatabaseProvider,
356
- * use: BunPostgresProvider,
357
- * });
358
- * ```
359
- */
360
- //#endregion
361
- //#region ../../src/orm/providers/drivers/BunSqliteProvider.d.ts
362
- /**
363
- * Configuration options for the Bun SQLite database provider.
364
- */
365
- declare const bunSqliteOptions: alepha317.Atom<alepha317.TObject<{
366
- path: alepha317.TOptional<alepha317.TString>;
367
- }>, "alepha.postgres.bun-sqlite.options">;
368
- type BunSqliteProviderOptions = Static<typeof bunSqliteOptions.schema>;
369
- declare module "alepha" {
370
- interface State {
371
- [bunSqliteOptions.key]: BunSqliteProviderOptions;
372
- }
373
- }
374
- /**
375
- * Bun SQLite provider using Drizzle ORM with Bun's native SQLite client.
376
- *
377
- * This provider uses Bun's built-in `bun:sqlite` for SQLite connections,
378
- * which provides excellent performance on the Bun runtime.
379
- *
380
- * @example
381
- * ```ts
382
- * // Set DATABASE_URL environment variable
383
- * // DATABASE_URL=sqlite://./my-database.db
384
- *
385
- * // Or configure programmatically
386
- * alepha.with({
387
- * provide: DatabaseProvider,
388
- * use: BunSqliteProvider,
389
- * });
390
- *
391
- * // Or use options atom
392
- * alepha.store.mut(bunSqliteOptions, (old) => ({
393
- * ...old,
394
- * path: ":memory:",
395
- * }));
396
- * ```
397
- */
398
- //#endregion
399
318
  //#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
400
319
  declare module "alepha" {
401
320
  interface Env extends Partial<Static<typeof envSchema>> {}
402
321
  }
403
- declare const envSchema: alepha317.TObject<{
322
+ declare const envSchema: alepha588.TObject<{
404
323
  /**
405
324
  * Main configuration for database connection.
406
325
  * Accept a string in the format of a Postgres connection URL.
@@ -408,21 +327,21 @@ declare const envSchema: alepha317.TObject<{
408
327
  * or
409
328
  * Example: postgres://user:password@localhost:5432/database?sslmode=require
410
329
  */
411
- DATABASE_URL: alepha317.TOptional<alepha317.TString>;
330
+ DATABASE_URL: alepha588.TOptional<alepha588.TString>;
412
331
  /**
413
332
  * In addition to the DATABASE_URL, you can specify the postgres schema name.
414
333
  *
415
334
  * It will monkey patch drizzle tables.
416
335
  */
417
- POSTGRES_SCHEMA: alepha317.TOptional<alepha317.TString>;
336
+ POSTGRES_SCHEMA: alepha588.TOptional<alepha588.TString>;
418
337
  }>;
419
338
  //#endregion
420
339
  //#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
421
340
  /**
422
341
  * Configuration options for the Node.js SQLite database provider.
423
342
  */
424
- declare const nodeSqliteOptions: alepha317.Atom<alepha317.TObject<{
425
- path: alepha317.TOptional<alepha317.TString>;
343
+ declare const nodeSqliteOptions: alepha588.Atom<alepha588.TObject<{
344
+ path: alepha588.TOptional<alepha588.TString>;
426
345
  }>, "alepha.postgres.node-sqlite.options">;
427
346
  type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
428
347
  declare module "alepha" {
@@ -627,46 +546,46 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
627
546
  creatorId?: string | undefined;
628
547
  creatorName?: string | undefined;
629
548
  previousContent?: typebox0.StaticRecord<[], "Decode", {}, {
630
- id: PgAttr<PgAttr<alepha317.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
631
- createdAt: PgAttr<PgAttr<alepha317.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
632
- updatedAt: PgAttr<PgAttr<alepha317.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
633
- name: alepha317.TString;
634
- content: alepha317.TRecord<string, alepha317.TAny>;
635
- schemaHash: alepha317.TString;
636
- status: PgAttr<alepha317.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
637
- activationDate: alepha317.TString;
638
- expiredAt: alepha317.TOptional<alepha317.TString>;
639
- version: alepha317.TInteger;
640
- changeDescription: alepha317.TOptional<alepha317.TString>;
641
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
642
- creatorId: alepha317.TOptional<alepha317.TString>;
643
- creatorName: alepha317.TOptional<alepha317.TString>;
644
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
645
- migrationLog: alepha317.TOptional<alepha317.TString>;
646
- }, string, alepha317.TAny> | undefined;
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;
647
566
  migrationLog?: string | undefined;
648
567
  id: string;
649
568
  createdAt: string;
650
569
  updatedAt: string;
651
570
  name: string;
652
571
  content: typebox0.StaticRecord<[], "Decode", {}, {
653
- id: PgAttr<PgAttr<alepha317.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
654
- createdAt: PgAttr<PgAttr<alepha317.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
655
- updatedAt: PgAttr<PgAttr<alepha317.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
656
- name: alepha317.TString;
657
- content: alepha317.TRecord<string, alepha317.TAny>;
658
- schemaHash: alepha317.TString;
659
- status: PgAttr<alepha317.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
660
- activationDate: alepha317.TString;
661
- expiredAt: alepha317.TOptional<alepha317.TString>;
662
- version: alepha317.TInteger;
663
- changeDescription: alepha317.TOptional<alepha317.TString>;
664
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
665
- creatorId: alepha317.TOptional<alepha317.TString>;
666
- creatorName: alepha317.TOptional<alepha317.TString>;
667
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
668
- migrationLog: alepha317.TOptional<alepha317.TString>;
669
- }, string, alepha317.TAny>;
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>;
670
589
  schemaHash: string;
671
590
  status: "expired" | "current" | "next" | "future";
672
591
  activationDate: string;
@@ -679,7 +598,7 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
679
598
  /**
680
599
  * Hook to load initial value from database on start.
681
600
  */
682
- protected readonly onStart: alepha317.HookPrimitive<"start">;
601
+ protected readonly onStart: alepha588.HookPrimitive<"start">;
683
602
  /**
684
603
  * Called after primitive creation to initialize.
685
604
  */
@@ -742,22 +661,22 @@ declare class ConfigStore {
742
661
  protected readonly log: alepha_logger0.Logger;
743
662
  protected readonly dateTimeProvider: DateTimeProvider;
744
663
  protected readonly repo: alepha_orm14.Repository<TObject<{
745
- id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha317.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
746
- createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha317.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
747
- updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha317.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
748
- name: alepha317.TString;
749
- content: alepha317.TRecord<string, alepha317.TAny>;
750
- schemaHash: alepha317.TString;
751
- status: alepha_orm14.PgAttr<alepha317.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
752
- activationDate: alepha317.TString;
753
- expiredAt: alepha317.TOptional<alepha317.TString>;
754
- version: alepha317.TInteger;
755
- changeDescription: alepha317.TOptional<alepha317.TString>;
756
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
757
- creatorId: alepha317.TOptional<alepha317.TString>;
758
- creatorName: alepha317.TOptional<alepha317.TString>;
759
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
760
- migrationLog: alepha317.TOptional<alepha317.TString>;
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>;
761
680
  }>>;
762
681
  /** Unique identifier for this instance (to avoid self-updates) */
763
682
  protected readonly instanceId: `${string}-${string}-${string}-${string}-${string}`;
@@ -766,11 +685,11 @@ declare class ConfigStore {
766
685
  /** Topic for cross-instance synchronization */
767
686
  readonly syncTopic: alepha_topic0.TopicPrimitive<{
768
687
  payload: TObject<{
769
- name: alepha317.TString;
770
- version: alepha317.TInteger;
771
- content: alepha317.TRecord<string, alepha317.TAny>;
772
- status: alepha317.TUnsafe<"expired" | "current" | "next" | "future">;
773
- instanceId: alepha317.TString;
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;
774
693
  }>;
775
694
  }>;
776
695
  /**
@@ -874,7 +793,7 @@ interface ConfigTreeNode {
874
793
  children: ConfigTreeNode[];
875
794
  }
876
795
  //#endregion
877
- //#region ../../src/api/parameters/controllers/ConfigController.d.ts
796
+ //#region ../../src/api/parameters/controllers/AdminConfigController.d.ts
878
797
  /**
879
798
  * REST API controller for versioned configuration management.
880
799
  *
@@ -886,48 +805,55 @@ interface ConfigTreeNode {
886
805
  * - Rolling back to previous versions
887
806
  * - Activating scheduled versions immediately
888
807
  */
889
- declare class ConfigController {
808
+ declare class AdminConfigController {
809
+ protected readonly url = "/configs";
810
+ protected readonly group = "admin:configs";
890
811
  protected readonly store: ConfigStore;
891
812
  /**
892
813
  * Get tree structure of all configuration names.
893
814
  * Useful for admin UI navigation.
894
815
  */
895
816
  getConfigTree: alepha_server0.ActionPrimitiveFn<{
896
- response: alepha317.TArray<any>;
817
+ response: alepha588.TArray<alepha588.TObject<{
818
+ name: alepha588.TString;
819
+ path: alepha588.TString;
820
+ isLeaf: alepha588.TBoolean;
821
+ children: alepha588.TArray<alepha588.TAny>;
822
+ }>>;
897
823
  }>;
898
824
  /**
899
825
  * List all unique configuration names.
900
826
  */
901
827
  listConfigNames: alepha_server0.ActionPrimitiveFn<{
902
- response: alepha317.TObject<{
903
- names: alepha317.TArray<alepha317.TString>;
828
+ response: alepha588.TObject<{
829
+ names: alepha588.TArray<alepha588.TString>;
904
830
  }>;
905
831
  }>;
906
832
  /**
907
833
  * Get configurations by status.
908
834
  */
909
835
  getByStatus: alepha_server0.ActionPrimitiveFn<{
910
- params: alepha317.TObject<{
911
- status: alepha317.TUnsafe<"expired" | "current" | "next" | "future">;
836
+ params: alepha588.TObject<{
837
+ status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
912
838
  }>;
913
- response: alepha317.TObject<{
914
- configs: alepha317.TArray<alepha317.TObject<{
915
- id: alepha317.TString;
916
- createdAt: alepha317.TString;
917
- updatedAt: alepha317.TString;
918
- name: alepha317.TString;
919
- content: alepha317.TRecord<string, alepha317.TAny>;
920
- schemaHash: alepha317.TString;
921
- status: alepha317.TUnsafe<"expired" | "current" | "next" | "future">;
922
- activationDate: alepha317.TString;
923
- expiredAt: alepha317.TOptional<alepha317.TString>;
924
- version: alepha317.TInteger;
925
- changeDescription: alepha317.TOptional<alepha317.TString>;
926
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
927
- creatorId: alepha317.TOptional<alepha317.TString>;
928
- creatorName: alepha317.TOptional<alepha317.TString>;
929
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
930
- migrationLog: alepha317.TOptional<alepha317.TString>;
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>;
931
857
  }>>;
932
858
  }>;
933
859
  }>;
@@ -935,27 +861,27 @@ declare class ConfigController {
935
861
  * Get version history for a specific configuration.
936
862
  */
937
863
  getHistory: alepha_server0.ActionPrimitiveFn<{
938
- params: alepha317.TObject<{
939
- name: alepha317.TString;
864
+ params: alepha588.TObject<{
865
+ name: alepha588.TString;
940
866
  }>;
941
- response: alepha317.TObject<{
942
- versions: alepha317.TArray<alepha317.TObject<{
943
- id: alepha317.TString;
944
- createdAt: alepha317.TString;
945
- updatedAt: alepha317.TString;
946
- name: alepha317.TString;
947
- content: alepha317.TRecord<string, alepha317.TAny>;
948
- schemaHash: alepha317.TString;
949
- status: alepha317.TUnsafe<"expired" | "current" | "next" | "future">;
950
- activationDate: alepha317.TString;
951
- expiredAt: alepha317.TOptional<alepha317.TString>;
952
- version: alepha317.TInteger;
953
- changeDescription: alepha317.TOptional<alepha317.TString>;
954
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
955
- creatorId: alepha317.TOptional<alepha317.TString>;
956
- creatorName: alepha317.TOptional<alepha317.TString>;
957
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
958
- migrationLog: alepha317.TOptional<alepha317.TString>;
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>;
959
885
  }>>;
960
886
  }>;
961
887
  }>;
@@ -965,77 +891,77 @@ declare class ConfigController {
965
891
  * even if no versions exist in the database yet.
966
892
  */
967
893
  getCurrent: alepha_server0.ActionPrimitiveFn<{
968
- params: alepha317.TObject<{
969
- name: alepha317.TString;
894
+ params: alepha588.TObject<{
895
+ name: alepha588.TString;
970
896
  }>;
971
- response: alepha317.TObject<{
972
- current: alepha317.TOptional<alepha317.TObject<{
973
- id: alepha317.TString;
974
- createdAt: alepha317.TString;
975
- updatedAt: alepha317.TString;
976
- name: alepha317.TString;
977
- content: alepha317.TRecord<string, alepha317.TAny>;
978
- schemaHash: alepha317.TString;
979
- status: alepha317.TUnsafe<"expired" | "current" | "next" | "future">;
980
- activationDate: alepha317.TString;
981
- expiredAt: alepha317.TOptional<alepha317.TString>;
982
- version: alepha317.TInteger;
983
- changeDescription: alepha317.TOptional<alepha317.TString>;
984
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
985
- creatorId: alepha317.TOptional<alepha317.TString>;
986
- creatorName: alepha317.TOptional<alepha317.TString>;
987
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
988
- migrationLog: alepha317.TOptional<alepha317.TString>;
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>;
989
915
  }>>;
990
- next: alepha317.TOptional<alepha317.TObject<{
991
- id: alepha317.TString;
992
- createdAt: alepha317.TString;
993
- updatedAt: alepha317.TString;
994
- name: alepha317.TString;
995
- content: alepha317.TRecord<string, alepha317.TAny>;
996
- schemaHash: alepha317.TString;
997
- status: alepha317.TUnsafe<"expired" | "current" | "next" | "future">;
998
- activationDate: alepha317.TString;
999
- expiredAt: alepha317.TOptional<alepha317.TString>;
1000
- version: alepha317.TInteger;
1001
- changeDescription: alepha317.TOptional<alepha317.TString>;
1002
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
1003
- creatorId: alepha317.TOptional<alepha317.TString>;
1004
- creatorName: alepha317.TOptional<alepha317.TString>;
1005
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
1006
- migrationLog: alepha317.TOptional<alepha317.TString>;
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>;
1007
933
  }>>;
1008
- defaultValue: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
1009
- currentValue: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
1010
- schema: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
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>>;
1011
937
  }>;
1012
938
  }>;
1013
939
  /**
1014
940
  * Get a specific version of a configuration.
1015
941
  */
1016
942
  getVersion: alepha_server0.ActionPrimitiveFn<{
1017
- params: alepha317.TObject<{
1018
- name: alepha317.TString;
1019
- version: alepha317.TInteger;
943
+ params: alepha588.TObject<{
944
+ name: alepha588.TString;
945
+ version: alepha588.TInteger;
1020
946
  }>;
1021
- response: alepha317.TObject<{
1022
- config: alepha317.TOptional<alepha317.TObject<{
1023
- id: alepha317.TString;
1024
- createdAt: alepha317.TString;
1025
- updatedAt: alepha317.TString;
1026
- name: alepha317.TString;
1027
- content: alepha317.TRecord<string, alepha317.TAny>;
1028
- schemaHash: alepha317.TString;
1029
- status: alepha317.TUnsafe<"expired" | "current" | "next" | "future">;
1030
- activationDate: alepha317.TString;
1031
- expiredAt: alepha317.TOptional<alepha317.TString>;
1032
- version: alepha317.TInteger;
1033
- changeDescription: alepha317.TOptional<alepha317.TString>;
1034
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
1035
- creatorId: alepha317.TOptional<alepha317.TString>;
1036
- creatorName: alepha317.TOptional<alepha317.TString>;
1037
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
1038
- migrationLog: alepha317.TOptional<alepha317.TString>;
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>;
1039
965
  }>>;
1040
966
  }>;
1041
967
  }>;
@@ -1043,98 +969,98 @@ declare class ConfigController {
1043
969
  * Create a new configuration version.
1044
970
  */
1045
971
  createVersion: alepha_server0.ActionPrimitiveFn<{
1046
- params: alepha317.TObject<{
1047
- name: alepha317.TString;
972
+ params: alepha588.TObject<{
973
+ name: alepha588.TString;
1048
974
  }>;
1049
- body: alepha317.TObject<{
1050
- content: alepha317.TRecord<string, alepha317.TAny>;
1051
- schemaHash: alepha317.TString;
1052
- activationDate: alepha317.TOptional<alepha317.TString>;
1053
- changeDescription: alepha317.TOptional<alepha317.TString>;
1054
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
1055
- creatorId: alepha317.TOptional<alepha317.TString>;
1056
- creatorName: alepha317.TOptional<alepha317.TString>;
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>;
1057
983
  }>;
1058
- response: alepha317.TObject<{
1059
- id: alepha317.TString;
1060
- createdAt: alepha317.TString;
1061
- updatedAt: alepha317.TString;
1062
- name: alepha317.TString;
1063
- content: alepha317.TRecord<string, alepha317.TAny>;
1064
- schemaHash: alepha317.TString;
1065
- status: alepha317.TUnsafe<"expired" | "current" | "next" | "future">;
1066
- activationDate: alepha317.TString;
1067
- expiredAt: alepha317.TOptional<alepha317.TString>;
1068
- version: alepha317.TInteger;
1069
- changeDescription: alepha317.TOptional<alepha317.TString>;
1070
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
1071
- creatorId: alepha317.TOptional<alepha317.TString>;
1072
- creatorName: alepha317.TOptional<alepha317.TString>;
1073
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
1074
- migrationLog: alepha317.TOptional<alepha317.TString>;
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>;
1075
1001
  }>;
1076
1002
  }>;
1077
1003
  /**
1078
1004
  * Rollback to a previous version.
1079
1005
  */
1080
1006
  rollback: alepha_server0.ActionPrimitiveFn<{
1081
- params: alepha317.TObject<{
1082
- name: alepha317.TString;
1007
+ params: alepha588.TObject<{
1008
+ name: alepha588.TString;
1083
1009
  }>;
1084
- body: alepha317.TObject<{
1085
- targetVersion: alepha317.TInteger;
1086
- changeDescription: alepha317.TOptional<alepha317.TString>;
1087
- creatorId: alepha317.TOptional<alepha317.TString>;
1088
- creatorName: alepha317.TOptional<alepha317.TString>;
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>;
1089
1015
  }>;
1090
- response: alepha317.TObject<{
1091
- id: alepha317.TString;
1092
- createdAt: alepha317.TString;
1093
- updatedAt: alepha317.TString;
1094
- name: alepha317.TString;
1095
- content: alepha317.TRecord<string, alepha317.TAny>;
1096
- schemaHash: alepha317.TString;
1097
- status: alepha317.TUnsafe<"expired" | "current" | "next" | "future">;
1098
- activationDate: alepha317.TString;
1099
- expiredAt: alepha317.TOptional<alepha317.TString>;
1100
- version: alepha317.TInteger;
1101
- changeDescription: alepha317.TOptional<alepha317.TString>;
1102
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
1103
- creatorId: alepha317.TOptional<alepha317.TString>;
1104
- creatorName: alepha317.TOptional<alepha317.TString>;
1105
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
1106
- migrationLog: alepha317.TOptional<alepha317.TString>;
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>;
1107
1033
  }>;
1108
1034
  }>;
1109
1035
  /**
1110
1036
  * Activate a scheduled version immediately.
1111
1037
  */
1112
1038
  activateNow: alepha_server0.ActionPrimitiveFn<{
1113
- params: alepha317.TObject<{
1114
- name: alepha317.TString;
1039
+ params: alepha588.TObject<{
1040
+ name: alepha588.TString;
1115
1041
  }>;
1116
- body: alepha317.TObject<{
1117
- version: alepha317.TInteger;
1118
- creatorId: alepha317.TOptional<alepha317.TString>;
1119
- creatorName: alepha317.TOptional<alepha317.TString>;
1042
+ body: alepha588.TObject<{
1043
+ version: alepha588.TInteger;
1044
+ creatorId: alepha588.TOptional<alepha588.TString>;
1045
+ creatorName: alepha588.TOptional<alepha588.TString>;
1120
1046
  }>;
1121
- response: alepha317.TObject<{
1122
- id: alepha317.TString;
1123
- createdAt: alepha317.TString;
1124
- updatedAt: alepha317.TString;
1125
- name: alepha317.TString;
1126
- content: alepha317.TRecord<string, alepha317.TAny>;
1127
- schemaHash: alepha317.TString;
1128
- status: alepha317.TUnsafe<"expired" | "current" | "next" | "future">;
1129
- activationDate: alepha317.TString;
1130
- expiredAt: alepha317.TOptional<alepha317.TString>;
1131
- version: alepha317.TInteger;
1132
- changeDescription: alepha317.TOptional<alepha317.TString>;
1133
- tags: alepha317.TOptional<alepha317.TArray<alepha317.TString>>;
1134
- creatorId: alepha317.TOptional<alepha317.TString>;
1135
- creatorName: alepha317.TOptional<alepha317.TString>;
1136
- previousContent: alepha317.TOptional<alepha317.TRecord<string, alepha317.TAny>>;
1137
- migrationLog: alepha317.TOptional<alepha317.TString>;
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>;
1138
1064
  }>;
1139
1065
  }>;
1140
1066
  /**
@@ -1142,8 +1068,8 @@ declare class ConfigController {
1142
1068
  * Normally called by a scheduler, but exposed for manual triggering.
1143
1069
  */
1144
1070
  checkScheduled: alepha_server0.ActionPrimitiveFn<{
1145
- response: alepha317.TObject<{
1146
- message: alepha317.TString;
1071
+ response: alepha588.TObject<{
1072
+ message: alepha588.TString;
1147
1073
  }>;
1148
1074
  }>;
1149
1075
  }
@@ -1202,7 +1128,7 @@ declare class ConfigActivationScheduler {
1202
1128
  *
1203
1129
  * @module alepha.api.parameters
1204
1130
  */
1205
- declare const AlephaApiParameters: alepha317.Service<alepha317.Module>;
1131
+ declare const AlephaApiParameters: alepha588.Service<alepha588.Module>;
1206
1132
  //#endregion
1207
- export { $config, AlephaApiParameters, ConfigActivationScheduler, ConfigController, ConfigPrimitive, ConfigPrimitiveOptions, ConfigStore, ConfigSyncPayload, ConfigTreeNode, Parameter, ParameterInsert, ParameterStatus, SaveConfigOptions, SetConfigOptions, parameters };
1133
+ export { $config, AdminConfigController, AlephaApiParameters, ConfigActivationScheduler, ConfigPrimitive, ConfigPrimitiveOptions, ConfigStore, ConfigSyncPayload, ConfigTreeNode, Parameter, ParameterInsert, type ParameterStatus, SaveConfigOptions, SetConfigOptions, parameters };
1208
1134
  //# sourceMappingURL=index.d.ts.map