alepha 0.15.1 → 0.15.2

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 (507) hide show
  1. package/dist/api/audits/index.d.ts +342 -365
  2. package/dist/api/audits/index.d.ts.map +1 -1
  3. package/dist/api/audits/index.js +10 -33
  4. package/dist/api/audits/index.js.map +1 -1
  5. package/dist/api/files/index.d.ts +180 -173
  6. package/dist/api/files/index.d.ts.map +1 -1
  7. package/dist/api/files/index.js +10 -3
  8. package/dist/api/files/index.js.map +1 -1
  9. package/dist/api/jobs/index.d.ts +162 -155
  10. package/dist/api/jobs/index.d.ts.map +1 -1
  11. package/dist/api/jobs/index.js +10 -3
  12. package/dist/api/jobs/index.js.map +1 -1
  13. package/dist/api/keys/index.d.ts +413 -0
  14. package/dist/api/keys/index.d.ts.map +1 -0
  15. package/dist/api/keys/index.js +476 -0
  16. package/dist/api/keys/index.js.map +1 -0
  17. package/dist/api/notifications/index.d.ts +10 -4
  18. package/dist/api/notifications/index.d.ts.map +1 -1
  19. package/dist/api/notifications/index.js +10 -4
  20. package/dist/api/notifications/index.js.map +1 -1
  21. package/dist/api/parameters/index.d.ts +294 -301
  22. package/dist/api/parameters/index.d.ts.map +1 -1
  23. package/dist/api/parameters/index.js +30 -37
  24. package/dist/api/parameters/index.js.map +1 -1
  25. package/dist/api/users/index.d.ts +1079 -769
  26. package/dist/api/users/index.d.ts.map +1 -1
  27. package/dist/api/users/index.js +2534 -218
  28. package/dist/api/users/index.js.map +1 -1
  29. package/dist/api/verifications/index.d.ts +10 -4
  30. package/dist/api/verifications/index.d.ts.map +1 -1
  31. package/dist/api/verifications/index.js +12 -4
  32. package/dist/api/verifications/index.js.map +1 -1
  33. package/dist/batch/index.d.ts +20 -40
  34. package/dist/batch/index.d.ts.map +1 -1
  35. package/dist/batch/index.js +31 -44
  36. package/dist/batch/index.js.map +1 -1
  37. package/dist/bucket/index.d.ts +432 -8
  38. package/dist/bucket/index.d.ts.map +1 -1
  39. package/dist/bucket/index.js +1856 -12
  40. package/dist/bucket/index.js.map +1 -1
  41. package/dist/cache/core/index.d.ts +179 -7
  42. package/dist/cache/core/index.d.ts.map +1 -1
  43. package/dist/cache/core/index.js +213 -7
  44. package/dist/cache/core/index.js.map +1 -1
  45. package/dist/cache/redis/index.d.ts +1 -0
  46. package/dist/cache/redis/index.d.ts.map +1 -1
  47. package/dist/cache/redis/index.js +4 -0
  48. package/dist/cache/redis/index.js.map +1 -1
  49. package/dist/cli/index.d.ts +488 -5612
  50. package/dist/cli/index.d.ts.map +1 -1
  51. package/dist/cli/index.js +2326 -311
  52. package/dist/cli/index.js.map +1 -1
  53. package/dist/command/index.d.ts +194 -46
  54. package/dist/command/index.d.ts.map +1 -1
  55. package/dist/command/index.js +1995 -60
  56. package/dist/command/index.js.map +1 -1
  57. package/dist/core/index.browser.js +42 -19
  58. package/dist/core/index.browser.js.map +1 -1
  59. package/dist/core/index.d.ts +34 -13
  60. package/dist/core/index.d.ts.map +1 -1
  61. package/dist/core/index.js +62 -19
  62. package/dist/core/index.js.map +1 -1
  63. package/dist/core/index.native.js +42 -19
  64. package/dist/core/index.native.js.map +1 -1
  65. package/dist/datetime/index.d.ts +15 -0
  66. package/dist/datetime/index.d.ts.map +1 -1
  67. package/dist/datetime/index.js +15 -0
  68. package/dist/datetime/index.js.map +1 -1
  69. package/dist/email/index.d.ts +315 -20
  70. package/dist/email/index.d.ts.map +1 -1
  71. package/dist/email/index.js +1852 -7
  72. package/dist/email/index.js.map +1 -1
  73. package/dist/fake/index.d.ts +90 -8
  74. package/dist/fake/index.d.ts.map +1 -1
  75. package/dist/fake/index.js +91 -20
  76. package/dist/fake/index.js.map +1 -1
  77. package/dist/lock/core/index.d.ts +11 -4
  78. package/dist/lock/core/index.d.ts.map +1 -1
  79. package/dist/lock/core/index.js +11 -4
  80. package/dist/lock/core/index.js.map +1 -1
  81. package/dist/logger/index.d.ts +17 -66
  82. package/dist/logger/index.d.ts.map +1 -1
  83. package/dist/logger/index.js +14 -63
  84. package/dist/logger/index.js.map +1 -1
  85. package/dist/mcp/index.d.ts +15 -35
  86. package/dist/mcp/index.d.ts.map +1 -1
  87. package/dist/mcp/index.js +12 -35
  88. package/dist/mcp/index.js.map +1 -1
  89. package/dist/orm/index.browser.js +3 -3
  90. package/dist/orm/index.browser.js.map +1 -1
  91. package/dist/orm/index.bun.js +7 -4
  92. package/dist/orm/index.bun.js.map +1 -1
  93. package/dist/orm/index.d.ts +514 -540
  94. package/dist/orm/index.d.ts.map +1 -1
  95. package/dist/orm/index.js +24 -49
  96. package/dist/orm/index.js.map +1 -1
  97. package/dist/queue/core/index.d.ts +18 -10
  98. package/dist/queue/core/index.d.ts.map +1 -1
  99. package/dist/queue/core/index.js +14 -6
  100. package/dist/queue/core/index.js.map +1 -1
  101. package/dist/react/auth/index.browser.js +108 -0
  102. package/dist/react/auth/index.browser.js.map +1 -0
  103. package/dist/react/auth/index.d.ts +100 -0
  104. package/dist/react/auth/index.d.ts.map +1 -0
  105. package/dist/react/auth/index.js +145 -0
  106. package/dist/react/auth/index.js.map +1 -0
  107. package/dist/react/core/index.d.ts +469 -0
  108. package/dist/react/core/index.d.ts.map +1 -0
  109. package/dist/react/core/index.js +464 -0
  110. package/dist/react/core/index.js.map +1 -0
  111. package/dist/react/form/index.d.ts +232 -0
  112. package/dist/react/form/index.d.ts.map +1 -0
  113. package/dist/react/form/index.js +432 -0
  114. package/dist/react/form/index.js.map +1 -0
  115. package/dist/react/head/index.browser.js +423 -0
  116. package/dist/react/head/index.browser.js.map +1 -0
  117. package/dist/react/head/index.d.ts +288 -0
  118. package/dist/react/head/index.d.ts.map +1 -0
  119. package/dist/react/head/index.js +465 -0
  120. package/dist/react/head/index.js.map +1 -0
  121. package/dist/react/i18n/index.d.ts +175 -0
  122. package/dist/react/i18n/index.d.ts.map +1 -0
  123. package/dist/react/i18n/index.js +224 -0
  124. package/dist/react/i18n/index.js.map +1 -0
  125. package/dist/react/router/index.browser.js +1980 -0
  126. package/dist/react/router/index.browser.js.map +1 -0
  127. package/dist/react/router/index.d.ts +2068 -0
  128. package/dist/react/router/index.d.ts.map +1 -0
  129. package/dist/react/router/index.js +4932 -0
  130. package/dist/react/router/index.js.map +1 -0
  131. package/dist/react/websocket/index.d.ts +117 -0
  132. package/dist/react/websocket/index.d.ts.map +1 -0
  133. package/dist/react/websocket/index.js +107 -0
  134. package/dist/react/websocket/index.js.map +1 -0
  135. package/dist/redis/index.bun.js +4 -0
  136. package/dist/redis/index.bun.js.map +1 -1
  137. package/dist/redis/index.d.ts +22 -25
  138. package/dist/redis/index.d.ts.map +1 -1
  139. package/dist/redis/index.js +16 -25
  140. package/dist/redis/index.js.map +1 -1
  141. package/dist/retry/index.d.ts +11 -2
  142. package/dist/retry/index.d.ts.map +1 -1
  143. package/dist/retry/index.js +11 -2
  144. package/dist/retry/index.js.map +1 -1
  145. package/dist/scheduler/index.d.ts +11 -2
  146. package/dist/scheduler/index.d.ts.map +1 -1
  147. package/dist/scheduler/index.js +11 -2
  148. package/dist/scheduler/index.js.map +1 -1
  149. package/dist/security/index.d.ts +110 -19
  150. package/dist/security/index.d.ts.map +1 -1
  151. package/dist/security/index.js +157 -26
  152. package/dist/security/index.js.map +1 -1
  153. package/dist/server/auth/index.d.ts +179 -174
  154. package/dist/server/auth/index.d.ts.map +1 -1
  155. package/dist/server/auth/index.js +12 -7
  156. package/dist/server/auth/index.js.map +1 -1
  157. package/dist/server/cache/index.d.ts +7 -22
  158. package/dist/server/cache/index.d.ts.map +1 -1
  159. package/dist/server/cache/index.js +7 -22
  160. package/dist/server/cache/index.js.map +1 -1
  161. package/dist/server/compress/index.d.ts +10 -2
  162. package/dist/server/compress/index.d.ts.map +1 -1
  163. package/dist/server/compress/index.js +10 -2
  164. package/dist/server/compress/index.js.map +1 -1
  165. package/dist/server/cookies/index.d.ts +40 -16
  166. package/dist/server/cookies/index.d.ts.map +1 -1
  167. package/dist/server/cookies/index.js +7 -5
  168. package/dist/server/cookies/index.js.map +1 -1
  169. package/dist/server/core/index.d.ts +115 -14
  170. package/dist/server/core/index.d.ts.map +1 -1
  171. package/dist/server/core/index.js +231 -14
  172. package/dist/server/core/index.js.map +1 -1
  173. package/dist/server/cors/index.d.ts +13 -23
  174. package/dist/server/cors/index.d.ts.map +1 -1
  175. package/dist/server/cors/index.js +7 -21
  176. package/dist/server/cors/index.js.map +1 -1
  177. package/dist/server/health/index.d.ts +25 -19
  178. package/dist/server/health/index.d.ts.map +1 -1
  179. package/dist/server/health/index.js +8 -2
  180. package/dist/server/health/index.js.map +1 -1
  181. package/dist/server/helmet/index.d.ts +11 -3
  182. package/dist/server/helmet/index.d.ts.map +1 -1
  183. package/dist/server/helmet/index.js +11 -3
  184. package/dist/server/helmet/index.js.map +1 -1
  185. package/dist/server/links/index.d.ts +50 -45
  186. package/dist/server/links/index.d.ts.map +1 -1
  187. package/dist/server/links/index.js +11 -6
  188. package/dist/server/links/index.js.map +1 -1
  189. package/dist/server/metrics/index.d.ts +10 -3
  190. package/dist/server/metrics/index.d.ts.map +1 -1
  191. package/dist/server/metrics/index.js +10 -3
  192. package/dist/server/metrics/index.js.map +1 -1
  193. package/dist/server/multipart/index.d.ts +9 -3
  194. package/dist/server/multipart/index.d.ts.map +1 -1
  195. package/dist/server/multipart/index.js +9 -3
  196. package/dist/server/multipart/index.js.map +1 -1
  197. package/dist/server/proxy/index.d.ts +8 -2
  198. package/dist/server/proxy/index.d.ts.map +1 -1
  199. package/dist/server/proxy/index.js +8 -2
  200. package/dist/server/proxy/index.js.map +1 -1
  201. package/dist/server/rate-limit/index.d.ts +30 -35
  202. package/dist/server/rate-limit/index.d.ts.map +1 -1
  203. package/dist/server/rate-limit/index.js +18 -55
  204. package/dist/server/rate-limit/index.js.map +1 -1
  205. package/dist/server/static/index.d.ts +137 -4
  206. package/dist/server/static/index.d.ts.map +1 -1
  207. package/dist/server/static/index.js +1848 -5
  208. package/dist/server/static/index.js.map +1 -1
  209. package/dist/server/swagger/index.d.ts +301 -6
  210. package/dist/server/swagger/index.d.ts.map +1 -1
  211. package/dist/server/swagger/index.js +1849 -6
  212. package/dist/server/swagger/index.js.map +1 -1
  213. package/dist/sms/index.d.ts +301 -7
  214. package/dist/sms/index.d.ts.map +1 -1
  215. package/dist/sms/index.js +1851 -7
  216. package/dist/sms/index.js.map +1 -1
  217. package/dist/system/index.browser.js +496 -0
  218. package/dist/system/index.browser.js.map +1 -0
  219. package/dist/{file → system}/index.d.ts +335 -16
  220. package/dist/system/index.d.ts.map +1 -0
  221. package/dist/{file → system}/index.js +412 -20
  222. package/dist/system/index.js.map +1 -0
  223. package/dist/thread/index.d.ts +11 -2
  224. package/dist/thread/index.d.ts.map +1 -1
  225. package/dist/thread/index.js +11 -2
  226. package/dist/thread/index.js.map +1 -1
  227. package/dist/topic/core/index.d.ts +12 -5
  228. package/dist/topic/core/index.d.ts.map +1 -1
  229. package/dist/topic/core/index.js +12 -5
  230. package/dist/topic/core/index.js.map +1 -1
  231. package/dist/vite/index.d.ts +4 -6271
  232. package/dist/vite/index.d.ts.map +1 -1
  233. package/dist/vite/index.js +8 -3
  234. package/dist/vite/index.js.map +1 -1
  235. package/dist/websocket/index.d.ts +12 -8
  236. package/dist/websocket/index.d.ts.map +1 -1
  237. package/dist/websocket/index.js +12 -8
  238. package/dist/websocket/index.js.map +1 -1
  239. package/package.json +80 -11
  240. package/src/api/audits/index.ts +10 -33
  241. package/src/api/files/__tests__/$bucket.spec.ts +1 -1
  242. package/src/api/files/controllers/AdminFileStatsController.spec.ts +1 -1
  243. package/src/api/files/controllers/FileController.spec.ts +1 -1
  244. package/src/api/files/index.ts +10 -3
  245. package/src/api/files/jobs/FileJobs.spec.ts +1 -1
  246. package/src/api/files/services/FileService.spec.ts +1 -1
  247. package/src/api/jobs/index.ts +10 -3
  248. package/src/api/keys/controllers/AdminApiKeyController.ts +75 -0
  249. package/src/api/keys/controllers/ApiKeyController.ts +103 -0
  250. package/src/api/keys/entities/apiKeyEntity.ts +41 -0
  251. package/src/api/keys/index.ts +49 -0
  252. package/src/api/keys/schemas/adminApiKeyQuerySchema.ts +7 -0
  253. package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +17 -0
  254. package/src/api/keys/schemas/createApiKeyBodySchema.ts +7 -0
  255. package/src/api/keys/schemas/createApiKeyResponseSchema.ts +11 -0
  256. package/src/api/keys/schemas/listApiKeyResponseSchema.ts +15 -0
  257. package/src/api/keys/schemas/revokeApiKeyParamsSchema.ts +5 -0
  258. package/src/api/keys/schemas/revokeApiKeyResponseSchema.ts +5 -0
  259. package/src/api/keys/services/ApiKeyService.spec.ts +553 -0
  260. package/src/api/keys/services/ApiKeyService.ts +306 -0
  261. package/src/api/logs/TODO.md +52 -0
  262. package/src/api/notifications/index.ts +10 -4
  263. package/src/api/parameters/index.ts +9 -30
  264. package/src/api/parameters/primitives/$config.ts +12 -4
  265. package/src/api/parameters/services/ConfigStore.ts +9 -3
  266. package/src/api/users/__tests__/ApiKeys-integration.spec.ts +1035 -0
  267. package/src/api/users/__tests__/ApiKeys.spec.ts +401 -0
  268. package/src/api/users/index.ts +14 -3
  269. package/src/api/users/primitives/$realm.ts +33 -5
  270. package/src/api/users/providers/RealmProvider.ts +1 -12
  271. package/src/api/users/services/SessionService.ts +1 -1
  272. package/src/api/verifications/controllers/VerificationController.ts +2 -0
  273. package/src/api/verifications/index.ts +10 -4
  274. package/src/batch/index.ts +9 -36
  275. package/src/batch/primitives/$batch.ts +0 -8
  276. package/src/batch/providers/BatchProvider.ts +29 -2
  277. package/src/bucket/__tests__/shared.ts +1 -1
  278. package/src/bucket/index.ts +13 -6
  279. package/src/bucket/primitives/$bucket.ts +1 -1
  280. package/src/bucket/providers/LocalFileStorageProvider.ts +1 -1
  281. package/src/bucket/providers/MemoryFileStorageProvider.ts +1 -1
  282. package/src/cache/core/__tests__/shared.ts +30 -0
  283. package/src/cache/core/index.ts +11 -6
  284. package/src/cache/core/primitives/$cache.spec.ts +5 -0
  285. package/src/cache/core/providers/CacheProvider.ts +17 -0
  286. package/src/cache/core/providers/MemoryCacheProvider.ts +300 -1
  287. package/src/cache/redis/__tests__/cache-redis.spec.ts +5 -0
  288. package/src/cache/redis/providers/RedisCacheProvider.ts +9 -0
  289. package/src/cli/apps/AlephaCli.ts +1 -14
  290. package/src/cli/apps/AlephaPackageBuilderCli.ts +1 -1
  291. package/src/cli/commands/build.ts +1 -5
  292. package/src/cli/commands/db.ts +17 -11
  293. package/src/cli/commands/deploy.ts +1 -1
  294. package/src/cli/commands/dev.ts +1 -20
  295. package/src/cli/commands/gen/env.ts +5 -2
  296. package/src/cli/commands/gen/openapi.ts +5 -2
  297. package/src/cli/commands/init.spec.ts +544 -0
  298. package/src/cli/commands/init.ts +89 -55
  299. package/src/cli/commands/lint.ts +7 -1
  300. package/src/cli/commands/typecheck.ts +11 -0
  301. package/src/cli/providers/AppEntryProvider.ts +1 -1
  302. package/src/cli/providers/ViteBuildProvider.ts +8 -50
  303. package/src/cli/providers/ViteDevServerProvider.ts +36 -8
  304. package/src/cli/services/AlephaCliUtils.ts +37 -122
  305. package/src/cli/services/PackageManagerUtils.ts +127 -11
  306. package/src/cli/services/ProjectScaffolder.ts +122 -77
  307. package/src/cli/services/ViteUtils.ts +82 -0
  308. package/src/cli/{assets/claudeMd.ts → templates/agentMd.ts} +32 -24
  309. package/src/cli/templates/gitignore.ts +39 -0
  310. package/src/cli/{assets → templates}/mainCss.ts +11 -2
  311. package/src/cli/templates/mainServerTs.ts +33 -0
  312. package/src/cli/templates/webAppRouterTs.ts +50 -0
  313. package/src/cli/{assets → templates}/webHelloComponentTsx.ts +2 -2
  314. package/src/command/helpers/Runner.spec.ts +4 -0
  315. package/src/command/helpers/Runner.ts +3 -21
  316. package/src/command/index.ts +12 -4
  317. package/src/command/providers/CliProvider.spec.ts +1067 -0
  318. package/src/command/providers/CliProvider.ts +203 -40
  319. package/src/core/Alepha.ts +2 -2
  320. package/src/core/__tests__/Alepha-start.spec.ts +4 -4
  321. package/src/core/helpers/jsonSchemaToTypeBox.spec.ts +771 -0
  322. package/src/core/helpers/jsonSchemaToTypeBox.ts +62 -10
  323. package/src/core/index.shared.ts +1 -0
  324. package/src/core/index.ts +20 -0
  325. package/src/core/providers/EventManager.spec.ts +0 -71
  326. package/src/core/providers/EventManager.ts +3 -15
  327. package/src/core/providers/Json.ts +2 -14
  328. package/src/datetime/index.ts +15 -0
  329. package/src/email/index.ts +10 -5
  330. package/src/email/providers/LocalEmailProvider.spec.ts +1 -1
  331. package/src/email/providers/LocalEmailProvider.ts +1 -1
  332. package/src/fake/__tests__/keyName.example.ts +1 -1
  333. package/src/fake/__tests__/keyName.spec.ts +5 -5
  334. package/src/fake/index.ts +9 -6
  335. package/src/fake/providers/FakeProvider.spec.ts +258 -40
  336. package/src/fake/providers/FakeProvider.ts +133 -19
  337. package/src/lock/core/index.ts +11 -4
  338. package/src/logger/index.ts +17 -66
  339. package/src/mcp/index.ts +10 -27
  340. package/src/mcp/transports/SseMcpTransport.ts +0 -11
  341. package/src/orm/__tests__/PostgresProvider.spec.ts +2 -2
  342. package/src/orm/index.browser.ts +2 -2
  343. package/src/orm/index.bun.ts +4 -2
  344. package/src/orm/index.ts +21 -47
  345. package/src/orm/providers/drivers/BunSqliteProvider.ts +1 -0
  346. package/src/orm/services/Repository.ts +7 -3
  347. package/src/queue/core/index.ts +14 -6
  348. package/src/react/auth/__tests__/$auth.spec.ts +202 -0
  349. package/src/react/auth/hooks/useAuth.ts +32 -0
  350. package/src/react/auth/index.browser.ts +13 -0
  351. package/src/react/auth/index.shared.ts +2 -0
  352. package/src/react/auth/index.ts +48 -0
  353. package/src/react/auth/providers/ReactAuthProvider.ts +16 -0
  354. package/src/react/auth/services/ReactAuth.ts +135 -0
  355. package/src/react/core/__tests__/Router.spec.tsx +169 -0
  356. package/src/react/core/components/ClientOnly.tsx +49 -0
  357. package/src/react/core/components/ErrorBoundary.tsx +73 -0
  358. package/src/react/core/contexts/AlephaContext.ts +7 -0
  359. package/src/react/core/contexts/AlephaProvider.tsx +42 -0
  360. package/src/react/core/hooks/useAction.browser.spec.tsx +569 -0
  361. package/src/react/core/hooks/useAction.ts +480 -0
  362. package/src/react/core/hooks/useAlepha.ts +26 -0
  363. package/src/react/core/hooks/useClient.ts +17 -0
  364. package/src/react/core/hooks/useEvents.ts +51 -0
  365. package/src/react/core/hooks/useInject.ts +12 -0
  366. package/src/react/core/hooks/useStore.ts +52 -0
  367. package/src/react/core/index.ts +90 -0
  368. package/src/react/form/components/FormState.tsx +17 -0
  369. package/src/react/form/errors/FormValidationError.ts +18 -0
  370. package/src/react/form/hooks/useForm.browser.spec.tsx +366 -0
  371. package/src/react/form/hooks/useForm.ts +47 -0
  372. package/src/react/form/hooks/useFormState.ts +130 -0
  373. package/src/react/form/index.ts +44 -0
  374. package/src/react/form/services/FormModel.ts +614 -0
  375. package/src/react/head/helpers/SeoExpander.spec.ts +203 -0
  376. package/src/react/head/helpers/SeoExpander.ts +142 -0
  377. package/src/react/head/hooks/useHead.spec.tsx +288 -0
  378. package/src/react/head/hooks/useHead.ts +62 -0
  379. package/src/react/head/index.browser.ts +26 -0
  380. package/src/react/head/index.ts +44 -0
  381. package/src/react/head/interfaces/Head.ts +105 -0
  382. package/src/react/head/primitives/$head.ts +25 -0
  383. package/src/react/head/providers/BrowserHeadProvider.browser.spec.ts +196 -0
  384. package/src/react/head/providers/BrowserHeadProvider.ts +212 -0
  385. package/src/react/head/providers/HeadProvider.ts +168 -0
  386. package/src/react/head/providers/ServerHeadProvider.ts +31 -0
  387. package/src/react/i18n/__tests__/integration.spec.tsx +239 -0
  388. package/src/react/i18n/components/Localize.spec.tsx +357 -0
  389. package/src/react/i18n/components/Localize.tsx +35 -0
  390. package/src/react/i18n/hooks/useI18n.browser.spec.tsx +438 -0
  391. package/src/react/i18n/hooks/useI18n.ts +18 -0
  392. package/src/react/i18n/index.ts +41 -0
  393. package/src/react/i18n/primitives/$dictionary.ts +69 -0
  394. package/src/react/i18n/providers/I18nProvider.spec.ts +389 -0
  395. package/src/react/i18n/providers/I18nProvider.ts +278 -0
  396. package/src/react/router/__tests__/page-head-browser.browser.spec.ts +95 -0
  397. package/src/react/router/__tests__/page-head.spec.ts +48 -0
  398. package/src/react/router/__tests__/seo-head.spec.ts +125 -0
  399. package/src/react/router/atoms/ssrManifestAtom.ts +58 -0
  400. package/src/react/router/components/ErrorViewer.tsx +872 -0
  401. package/src/react/router/components/Link.tsx +23 -0
  402. package/src/react/router/components/NestedView.tsx +223 -0
  403. package/src/react/router/components/NotFound.tsx +30 -0
  404. package/src/react/router/constants/PAGE_PRELOAD_KEY.ts +6 -0
  405. package/src/react/router/contexts/RouterLayerContext.ts +12 -0
  406. package/src/react/router/errors/Redirection.ts +28 -0
  407. package/src/react/router/hooks/useActive.ts +52 -0
  408. package/src/react/router/hooks/useQueryParams.ts +63 -0
  409. package/src/react/router/hooks/useRouter.ts +20 -0
  410. package/src/react/router/hooks/useRouterState.ts +11 -0
  411. package/src/react/router/index.browser.ts +45 -0
  412. package/src/react/router/index.shared.ts +19 -0
  413. package/src/react/router/index.ts +142 -0
  414. package/src/react/router/primitives/$page.browser.spec.tsx +851 -0
  415. package/src/react/router/primitives/$page.spec.tsx +708 -0
  416. package/src/react/router/primitives/$page.ts +497 -0
  417. package/src/react/router/providers/ReactBrowserProvider.ts +309 -0
  418. package/src/react/router/providers/ReactBrowserRendererProvider.ts +25 -0
  419. package/src/react/router/providers/ReactBrowserRouterProvider.ts +168 -0
  420. package/src/react/router/providers/ReactPageProvider.ts +726 -0
  421. package/src/react/router/providers/ReactServerProvider.spec.tsx +316 -0
  422. package/src/react/router/providers/ReactServerProvider.ts +558 -0
  423. package/src/react/router/providers/ReactServerTemplateProvider.ts +979 -0
  424. package/src/react/router/providers/SSRManifestProvider.ts +334 -0
  425. package/src/react/router/services/ReactPageServerService.ts +48 -0
  426. package/src/react/router/services/ReactPageService.ts +27 -0
  427. package/src/react/router/services/ReactRouter.ts +262 -0
  428. package/src/react/websocket/hooks/useRoom.tsx +242 -0
  429. package/src/react/websocket/index.ts +7 -0
  430. package/src/redis/__tests__/redis.spec.ts +13 -0
  431. package/src/redis/index.ts +9 -25
  432. package/src/redis/providers/BunRedisProvider.ts +9 -0
  433. package/src/redis/providers/NodeRedisProvider.ts +8 -0
  434. package/src/redis/providers/RedisProvider.ts +16 -0
  435. package/src/retry/index.ts +11 -2
  436. package/src/router/index.ts +15 -0
  437. package/src/scheduler/index.ts +11 -2
  438. package/src/security/__tests__/BasicAuth.spec.ts +2 -0
  439. package/src/security/__tests__/ServerSecurityProvider.spec.ts +13 -5
  440. package/src/security/index.ts +15 -10
  441. package/src/security/interfaces/IssuerResolver.ts +27 -0
  442. package/src/security/primitives/$issuer.ts +55 -0
  443. package/src/security/providers/SecurityProvider.ts +179 -0
  444. package/src/security/providers/ServerBasicAuthProvider.ts +6 -2
  445. package/src/security/providers/ServerSecurityProvider.ts +36 -22
  446. package/src/server/auth/index.ts +12 -7
  447. package/src/server/cache/index.ts +7 -22
  448. package/src/server/compress/index.ts +10 -2
  449. package/src/server/cookies/index.ts +7 -5
  450. package/src/server/cookies/primitives/$cookie.ts +33 -11
  451. package/src/server/core/index.ts +16 -6
  452. package/src/server/core/interfaces/ServerRequest.ts +83 -1
  453. package/src/server/core/primitives/$action.spec.ts +1 -1
  454. package/src/server/core/primitives/$action.ts +8 -3
  455. package/src/server/core/providers/NodeHttpServerProvider.ts +9 -3
  456. package/src/server/core/services/ServerRequestParser.spec.ts +520 -0
  457. package/src/server/core/services/ServerRequestParser.ts +306 -13
  458. package/src/server/cors/index.ts +7 -21
  459. package/src/server/cors/primitives/$cors.ts +6 -2
  460. package/src/server/health/index.ts +8 -2
  461. package/src/server/helmet/index.ts +11 -3
  462. package/src/server/links/index.ts +11 -6
  463. package/src/server/metrics/index.ts +10 -3
  464. package/src/server/multipart/index.ts +9 -3
  465. package/src/server/proxy/index.ts +8 -2
  466. package/src/server/rate-limit/index.ts +21 -25
  467. package/src/server/rate-limit/primitives/$rateLimit.ts +6 -2
  468. package/src/server/rate-limit/providers/ServerRateLimitProvider.spec.ts +38 -14
  469. package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +22 -56
  470. package/src/server/static/index.ts +8 -2
  471. package/src/server/static/providers/ServerStaticProvider.ts +1 -1
  472. package/src/server/swagger/index.ts +9 -4
  473. package/src/server/swagger/providers/ServerSwaggerProvider.ts +1 -1
  474. package/src/sms/index.ts +9 -5
  475. package/src/sms/providers/LocalSmsProvider.spec.ts +1 -1
  476. package/src/sms/providers/LocalSmsProvider.ts +1 -1
  477. package/src/system/index.browser.ts +11 -0
  478. package/src/system/index.ts +62 -0
  479. package/src/{file → system}/providers/FileSystemProvider.ts +16 -0
  480. package/src/{file → system}/providers/MemoryFileSystemProvider.ts +116 -3
  481. package/src/system/providers/MemoryShellProvider.ts +164 -0
  482. package/src/{file → system}/providers/NodeFileSystemProvider.spec.ts +2 -2
  483. package/src/{file → system}/providers/NodeFileSystemProvider.ts +36 -0
  484. package/src/system/providers/NodeShellProvider.ts +184 -0
  485. package/src/system/providers/ShellProvider.ts +74 -0
  486. package/src/{file → system}/services/FileDetector.spec.ts +2 -2
  487. package/src/thread/index.ts +11 -2
  488. package/src/topic/core/index.ts +12 -5
  489. package/src/vite/tasks/buildClient.ts +2 -7
  490. package/src/vite/tasks/buildServer.ts +17 -1
  491. package/src/websocket/index.ts +12 -8
  492. package/dist/file/index.d.ts.map +0 -1
  493. package/dist/file/index.js.map +0 -1
  494. package/src/cli/assets/mainServerTs.ts +0 -24
  495. package/src/cli/assets/webAppRouterTs.ts +0 -16
  496. package/src/cli/providers/ViteTemplateProvider.ts +0 -27
  497. package/src/file/index.ts +0 -43
  498. /package/src/cli/{assets → templates}/apiHelloControllerTs.ts +0 -0
  499. /package/src/cli/{assets → templates}/apiIndexTs.ts +0 -0
  500. /package/src/cli/{assets → templates}/biomeJson.ts +0 -0
  501. /package/src/cli/{assets → templates}/dummySpecTs.ts +0 -0
  502. /package/src/cli/{assets → templates}/editorconfig.ts +0 -0
  503. /package/src/cli/{assets → templates}/mainBrowserTs.ts +0 -0
  504. /package/src/cli/{assets → templates}/tsconfigJson.ts +0 -0
  505. /package/src/cli/{assets → templates}/webIndexTs.ts +0 -0
  506. /package/src/{file → system}/errors/FileError.ts +0 -0
  507. /package/src/{file → system}/services/FileDetector.ts +0 -0
@@ -1,9 +1,9 @@
1
- import * as alepha624 from "alepha";
1
+ import * as alepha622 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_orm0 from "alepha/orm";
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
9
  import "drizzle-orm/d1";
@@ -18,7 +18,7 @@ import { UserAccount } from "alepha/security";
18
18
  /**
19
19
  * Parameter status enum schema.
20
20
  */
21
- declare const parameterStatusSchema: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
21
+ declare const parameterStatusSchema: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
22
22
  type ParameterStatus = Static<typeof parameterStatusSchema>;
23
23
  //#endregion
24
24
  //#region ../../src/api/parameters/entities/parameters.d.ts
@@ -31,67 +31,67 @@ type ParameterStatus = Static<typeof parameterStatusSchema>;
31
31
  * - Activation scheduling
32
32
  * - Audit trail (creator info)
33
33
  */
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>;
34
+ declare const parameters: alepha_orm14.EntityPrimitive<alepha622.TObject<{
35
+ id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha622.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
36
+ createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha622.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
37
+ updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha622.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
38
38
  /**
39
39
  * Configuration name using dot notation for tree hierarchy.
40
40
  * Examples: "app.features", "app.pricing.tiers", "system.limits"
41
41
  */
42
- name: alepha624.TString;
42
+ name: alepha622.TString;
43
43
  /**
44
44
  * The configuration content as JSON.
45
45
  */
46
- content: alepha624.TRecord<string, alepha624.TAny>;
46
+ content: alepha622.TRecord<string, alepha622.TAny>;
47
47
  /**
48
48
  * Schema version hash for detecting schema changes.
49
49
  * Used for auto-migration when schema evolves.
50
50
  */
51
- schemaHash: alepha624.TString;
51
+ schemaHash: alepha622.TString;
52
52
  /**
53
53
  * Current status of this parameter version.
54
54
  */
55
- status: alepha_orm0.PgAttr<alepha624.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm0.PG_DEFAULT>;
55
+ status: alepha_orm14.PgAttr<alepha622.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
56
56
  /**
57
57
  * When this version should become active.
58
58
  * Default is immediate (now).
59
59
  */
60
- activationDate: alepha624.TString;
60
+ activationDate: alepha622.TString;
61
61
  /**
62
62
  * When this version was deactivated (became expired).
63
63
  * Null if still active or scheduled.
64
64
  */
65
- expiredAt: alepha624.TOptional<alepha624.TString>;
65
+ expiredAt: alepha622.TOptional<alepha622.TString>;
66
66
  /**
67
67
  * Version number for this configuration.
68
68
  * Auto-incremented per config name.
69
69
  */
70
- version: alepha624.TInteger;
70
+ version: alepha622.TInteger;
71
71
  /**
72
72
  * Optional description of changes in this version.
73
73
  */
74
- changeDescription: alepha624.TOptional<alepha624.TString>;
74
+ changeDescription: alepha622.TOptional<alepha622.TString>;
75
75
  /**
76
76
  * Optional tags for filtering/categorization.
77
77
  */
78
- tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
78
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
79
79
  /**
80
80
  * Creator user ID (if available).
81
81
  */
82
- creatorId: alepha624.TOptional<alepha624.TString>;
82
+ creatorId: alepha622.TOptional<alepha622.TString>;
83
83
  /**
84
84
  * Creator display name for audit trail.
85
85
  */
86
- creatorName: alepha624.TOptional<alepha624.TString>;
86
+ creatorName: alepha622.TOptional<alepha622.TString>;
87
87
  /**
88
88
  * Previous content before this change (for rollback reference).
89
89
  */
90
- previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
90
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
91
91
  /**
92
92
  * Migration log if schema changed.
93
93
  */
94
- migrationLog: alepha624.TOptional<alepha624.TString>;
94
+ migrationLog: alepha622.TOptional<alepha622.TString>;
95
95
  }>>;
96
96
  type Parameter = Static<typeof parameters.schema>;
97
97
  type ParameterInsert = Omit<Parameter, "id" | "createdAt" | "updatedAt">;
@@ -379,13 +379,21 @@ interface ConfigPrimitiveOptions<T extends TObject> {
379
379
  declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimitiveOptions<T>> {
380
380
  protected readonly log: alepha_logger0.Logger;
381
381
  protected readonly store: ConfigStore;
382
- /** Internal atom key for state management */
382
+ /**
383
+ * Internal atom key for state management.
384
+ */
383
385
  protected atomKey: string;
384
- /** Schema hash for migration detection */
386
+ /**
387
+ * Schema hash for migration detection.
388
+ */
385
389
  protected schemaHash: string;
386
- /** Whether we're currently syncing (to avoid loops) */
390
+ /**
391
+ * Whether we're currently syncing (to avoid loops).
392
+ */
387
393
  protected syncing: boolean;
388
- /** Whether initial load has completed */
394
+ /**
395
+ * Whether initial load has completed.
396
+ */
389
397
  protected loaded: boolean;
390
398
  /**
391
399
  * Configuration name (uses property key if not specified).
@@ -434,48 +442,48 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
434
442
  creatorId?: string | undefined;
435
443
  creatorName?: string | undefined;
436
444
  previousContent?: typebox0.StaticRecord<[], "Decode", {}, {
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;
445
+ id: PgAttr<PgAttr<alepha622.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
446
+ createdAt: PgAttr<PgAttr<alepha622.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
447
+ updatedAt: PgAttr<PgAttr<alepha622.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
448
+ name: alepha622.TString;
449
+ content: alepha622.TRecord<string, alepha622.TAny>;
450
+ schemaHash: alepha622.TString;
451
+ status: PgAttr<alepha622.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
452
+ activationDate: alepha622.TString;
453
+ expiredAt: alepha622.TOptional<alepha622.TString>;
454
+ version: alepha622.TInteger;
455
+ changeDescription: alepha622.TOptional<alepha622.TString>;
456
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
457
+ creatorId: alepha622.TOptional<alepha622.TString>;
458
+ creatorName: alepha622.TOptional<alepha622.TString>;
459
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
460
+ migrationLog: alepha622.TOptional<alepha622.TString>;
461
+ }, string, alepha622.TAny> | undefined;
454
462
  migrationLog?: string | undefined;
455
- name: string;
456
- status: "expired" | "current" | "next" | "future";
457
463
  id: string;
458
464
  createdAt: string;
459
465
  updatedAt: string;
466
+ name: string;
460
467
  content: typebox0.StaticRecord<[], "Decode", {}, {
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>;
468
+ id: PgAttr<PgAttr<alepha622.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
469
+ createdAt: PgAttr<PgAttr<alepha622.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
470
+ updatedAt: PgAttr<PgAttr<alepha622.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
471
+ name: alepha622.TString;
472
+ content: alepha622.TRecord<string, alepha622.TAny>;
473
+ schemaHash: alepha622.TString;
474
+ status: PgAttr<alepha622.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
475
+ activationDate: alepha622.TString;
476
+ expiredAt: alepha622.TOptional<alepha622.TString>;
477
+ version: alepha622.TInteger;
478
+ changeDescription: alepha622.TOptional<alepha622.TString>;
479
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
480
+ creatorId: alepha622.TOptional<alepha622.TString>;
481
+ creatorName: alepha622.TOptional<alepha622.TString>;
482
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
483
+ migrationLog: alepha622.TOptional<alepha622.TString>;
484
+ }, string, alepha622.TAny>;
478
485
  schemaHash: string;
486
+ status: "expired" | "current" | "next" | "future";
479
487
  activationDate: string;
480
488
  version: number;
481
489
  }[]>;
@@ -486,7 +494,7 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
486
494
  /**
487
495
  * Hook to load initial value from database on start.
488
496
  */
489
- protected readonly onStart: alepha624.HookPrimitive<"start">;
497
+ protected readonly onStart: alepha622.HookPrimitive<"start">;
490
498
  /**
491
499
  * Called after primitive creation to initialize.
492
500
  */
@@ -548,36 +556,42 @@ interface ConfigSyncPayload {
548
556
  declare class ConfigStore {
549
557
  protected readonly log: alepha_logger0.Logger;
550
558
  protected readonly dateTimeProvider: DateTimeProvider;
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>;
559
+ protected readonly repo: alepha_orm14.Repository<TObject<{
560
+ id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha622.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
561
+ createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha622.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
562
+ updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha622.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
563
+ name: alepha622.TString;
564
+ content: alepha622.TRecord<string, alepha622.TAny>;
565
+ schemaHash: alepha622.TString;
566
+ status: alepha_orm14.PgAttr<alepha622.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
567
+ activationDate: alepha622.TString;
568
+ expiredAt: alepha622.TOptional<alepha622.TString>;
569
+ version: alepha622.TInteger;
570
+ changeDescription: alepha622.TOptional<alepha622.TString>;
571
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
572
+ creatorId: alepha622.TOptional<alepha622.TString>;
573
+ creatorName: alepha622.TOptional<alepha622.TString>;
574
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
575
+ migrationLog: alepha622.TOptional<alepha622.TString>;
568
576
  }>>;
569
- /** Unique identifier for this instance (to avoid self-updates) */
577
+ /**
578
+ * Unique identifier for this instance (to avoid self-updates).
579
+ */
570
580
  protected readonly instanceId: `${string}-${string}-${string}-${string}-${string}`;
571
- /** In-memory cache of registered configs */
581
+ /**
582
+ * In-memory cache of registered configs.
583
+ */
572
584
  protected readonly configs: Map<string, ConfigPrimitive<any>>;
573
- /** Topic for cross-instance synchronization */
585
+ /**
586
+ * Topic for cross-instance synchronization.
587
+ */
574
588
  readonly syncTopic: alepha_topic0.TopicPrimitive<{
575
589
  payload: TObject<{
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;
590
+ name: alepha622.TString;
591
+ version: alepha622.TInteger;
592
+ content: alepha622.TRecord<string, alepha622.TAny>;
593
+ status: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
594
+ instanceId: alepha622.TString;
581
595
  }>;
582
596
  }>;
583
597
  /**
@@ -702,46 +716,46 @@ declare class AdminConfigController {
702
716
  * Useful for admin UI navigation.
703
717
  */
704
718
  getConfigTree: alepha_server0.ActionPrimitiveFn<{
705
- response: alepha624.TArray<alepha624.TObject<{
706
- name: alepha624.TString;
707
- path: alepha624.TString;
708
- isLeaf: alepha624.TBoolean;
709
- children: alepha624.TArray<alepha624.TAny>;
719
+ response: alepha622.TArray<alepha622.TObject<{
720
+ name: alepha622.TString;
721
+ path: alepha622.TString;
722
+ isLeaf: alepha622.TBoolean;
723
+ children: alepha622.TArray<alepha622.TAny>;
710
724
  }>>;
711
725
  }>;
712
726
  /**
713
727
  * List all unique configuration names.
714
728
  */
715
729
  listConfigNames: alepha_server0.ActionPrimitiveFn<{
716
- response: alepha624.TObject<{
717
- names: alepha624.TArray<alepha624.TString>;
730
+ response: alepha622.TObject<{
731
+ names: alepha622.TArray<alepha622.TString>;
718
732
  }>;
719
733
  }>;
720
734
  /**
721
735
  * Get configurations by status.
722
736
  */
723
737
  getByStatus: alepha_server0.ActionPrimitiveFn<{
724
- params: alepha624.TObject<{
725
- status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
738
+ params: alepha622.TObject<{
739
+ status: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
726
740
  }>;
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>;
741
+ response: alepha622.TObject<{
742
+ configs: alepha622.TArray<alepha622.TObject<{
743
+ id: alepha622.TString;
744
+ createdAt: alepha622.TString;
745
+ updatedAt: alepha622.TString;
746
+ name: alepha622.TString;
747
+ content: alepha622.TRecord<string, alepha622.TAny>;
748
+ schemaHash: alepha622.TString;
749
+ status: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
750
+ activationDate: alepha622.TString;
751
+ expiredAt: alepha622.TOptional<alepha622.TString>;
752
+ version: alepha622.TInteger;
753
+ changeDescription: alepha622.TOptional<alepha622.TString>;
754
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
755
+ creatorId: alepha622.TOptional<alepha622.TString>;
756
+ creatorName: alepha622.TOptional<alepha622.TString>;
757
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
758
+ migrationLog: alepha622.TOptional<alepha622.TString>;
745
759
  }>>;
746
760
  }>;
747
761
  }>;
@@ -749,27 +763,27 @@ declare class AdminConfigController {
749
763
  * Get version history for a specific configuration.
750
764
  */
751
765
  getHistory: alepha_server0.ActionPrimitiveFn<{
752
- params: alepha624.TObject<{
753
- name: alepha624.TString;
766
+ params: alepha622.TObject<{
767
+ name: alepha622.TString;
754
768
  }>;
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>;
769
+ response: alepha622.TObject<{
770
+ versions: alepha622.TArray<alepha622.TObject<{
771
+ id: alepha622.TString;
772
+ createdAt: alepha622.TString;
773
+ updatedAt: alepha622.TString;
774
+ name: alepha622.TString;
775
+ content: alepha622.TRecord<string, alepha622.TAny>;
776
+ schemaHash: alepha622.TString;
777
+ status: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
778
+ activationDate: alepha622.TString;
779
+ expiredAt: alepha622.TOptional<alepha622.TString>;
780
+ version: alepha622.TInteger;
781
+ changeDescription: alepha622.TOptional<alepha622.TString>;
782
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
783
+ creatorId: alepha622.TOptional<alepha622.TString>;
784
+ creatorName: alepha622.TOptional<alepha622.TString>;
785
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
786
+ migrationLog: alepha622.TOptional<alepha622.TString>;
773
787
  }>>;
774
788
  }>;
775
789
  }>;
@@ -779,77 +793,77 @@ declare class AdminConfigController {
779
793
  * even if no versions exist in the database yet.
780
794
  */
781
795
  getCurrent: alepha_server0.ActionPrimitiveFn<{
782
- params: alepha624.TObject<{
783
- name: alepha624.TString;
796
+ params: alepha622.TObject<{
797
+ name: alepha622.TString;
784
798
  }>;
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>;
799
+ response: alepha622.TObject<{
800
+ current: alepha622.TOptional<alepha622.TObject<{
801
+ id: alepha622.TString;
802
+ createdAt: alepha622.TString;
803
+ updatedAt: alepha622.TString;
804
+ name: alepha622.TString;
805
+ content: alepha622.TRecord<string, alepha622.TAny>;
806
+ schemaHash: alepha622.TString;
807
+ status: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
808
+ activationDate: alepha622.TString;
809
+ expiredAt: alepha622.TOptional<alepha622.TString>;
810
+ version: alepha622.TInteger;
811
+ changeDescription: alepha622.TOptional<alepha622.TString>;
812
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
813
+ creatorId: alepha622.TOptional<alepha622.TString>;
814
+ creatorName: alepha622.TOptional<alepha622.TString>;
815
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
816
+ migrationLog: alepha622.TOptional<alepha622.TString>;
803
817
  }>>;
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>;
818
+ next: alepha622.TOptional<alepha622.TObject<{
819
+ id: alepha622.TString;
820
+ createdAt: alepha622.TString;
821
+ updatedAt: alepha622.TString;
822
+ name: alepha622.TString;
823
+ content: alepha622.TRecord<string, alepha622.TAny>;
824
+ schemaHash: alepha622.TString;
825
+ status: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
826
+ activationDate: alepha622.TString;
827
+ expiredAt: alepha622.TOptional<alepha622.TString>;
828
+ version: alepha622.TInteger;
829
+ changeDescription: alepha622.TOptional<alepha622.TString>;
830
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
831
+ creatorId: alepha622.TOptional<alepha622.TString>;
832
+ creatorName: alepha622.TOptional<alepha622.TString>;
833
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
834
+ migrationLog: alepha622.TOptional<alepha622.TString>;
821
835
  }>>;
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>>;
836
+ defaultValue: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
837
+ currentValue: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
838
+ schema: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
825
839
  }>;
826
840
  }>;
827
841
  /**
828
842
  * Get a specific version of a configuration.
829
843
  */
830
844
  getVersion: alepha_server0.ActionPrimitiveFn<{
831
- params: alepha624.TObject<{
832
- name: alepha624.TString;
833
- version: alepha624.TInteger;
845
+ params: alepha622.TObject<{
846
+ name: alepha622.TString;
847
+ version: alepha622.TInteger;
834
848
  }>;
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>;
849
+ response: alepha622.TObject<{
850
+ config: alepha622.TOptional<alepha622.TObject<{
851
+ id: alepha622.TString;
852
+ createdAt: alepha622.TString;
853
+ updatedAt: alepha622.TString;
854
+ name: alepha622.TString;
855
+ content: alepha622.TRecord<string, alepha622.TAny>;
856
+ schemaHash: alepha622.TString;
857
+ status: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
858
+ activationDate: alepha622.TString;
859
+ expiredAt: alepha622.TOptional<alepha622.TString>;
860
+ version: alepha622.TInteger;
861
+ changeDescription: alepha622.TOptional<alepha622.TString>;
862
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
863
+ creatorId: alepha622.TOptional<alepha622.TString>;
864
+ creatorName: alepha622.TOptional<alepha622.TString>;
865
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
866
+ migrationLog: alepha622.TOptional<alepha622.TString>;
853
867
  }>>;
854
868
  }>;
855
869
  }>;
@@ -857,98 +871,98 @@ declare class AdminConfigController {
857
871
  * Create a new configuration version.
858
872
  */
859
873
  createVersion: alepha_server0.ActionPrimitiveFn<{
860
- params: alepha624.TObject<{
861
- name: alepha624.TString;
874
+ params: alepha622.TObject<{
875
+ name: alepha622.TString;
862
876
  }>;
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>;
877
+ body: alepha622.TObject<{
878
+ content: alepha622.TRecord<string, alepha622.TAny>;
879
+ schemaHash: alepha622.TString;
880
+ activationDate: alepha622.TOptional<alepha622.TString>;
881
+ changeDescription: alepha622.TOptional<alepha622.TString>;
882
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
883
+ creatorId: alepha622.TOptional<alepha622.TString>;
884
+ creatorName: alepha622.TOptional<alepha622.TString>;
871
885
  }>;
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>;
886
+ response: alepha622.TObject<{
887
+ id: alepha622.TString;
888
+ createdAt: alepha622.TString;
889
+ updatedAt: alepha622.TString;
890
+ name: alepha622.TString;
891
+ content: alepha622.TRecord<string, alepha622.TAny>;
892
+ schemaHash: alepha622.TString;
893
+ status: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
894
+ activationDate: alepha622.TString;
895
+ expiredAt: alepha622.TOptional<alepha622.TString>;
896
+ version: alepha622.TInteger;
897
+ changeDescription: alepha622.TOptional<alepha622.TString>;
898
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
899
+ creatorId: alepha622.TOptional<alepha622.TString>;
900
+ creatorName: alepha622.TOptional<alepha622.TString>;
901
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
902
+ migrationLog: alepha622.TOptional<alepha622.TString>;
889
903
  }>;
890
904
  }>;
891
905
  /**
892
906
  * Rollback to a previous version.
893
907
  */
894
908
  rollback: alepha_server0.ActionPrimitiveFn<{
895
- params: alepha624.TObject<{
896
- name: alepha624.TString;
909
+ params: alepha622.TObject<{
910
+ name: alepha622.TString;
897
911
  }>;
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>;
912
+ body: alepha622.TObject<{
913
+ targetVersion: alepha622.TInteger;
914
+ changeDescription: alepha622.TOptional<alepha622.TString>;
915
+ creatorId: alepha622.TOptional<alepha622.TString>;
916
+ creatorName: alepha622.TOptional<alepha622.TString>;
903
917
  }>;
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>;
918
+ response: alepha622.TObject<{
919
+ id: alepha622.TString;
920
+ createdAt: alepha622.TString;
921
+ updatedAt: alepha622.TString;
922
+ name: alepha622.TString;
923
+ content: alepha622.TRecord<string, alepha622.TAny>;
924
+ schemaHash: alepha622.TString;
925
+ status: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
926
+ activationDate: alepha622.TString;
927
+ expiredAt: alepha622.TOptional<alepha622.TString>;
928
+ version: alepha622.TInteger;
929
+ changeDescription: alepha622.TOptional<alepha622.TString>;
930
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
931
+ creatorId: alepha622.TOptional<alepha622.TString>;
932
+ creatorName: alepha622.TOptional<alepha622.TString>;
933
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
934
+ migrationLog: alepha622.TOptional<alepha622.TString>;
921
935
  }>;
922
936
  }>;
923
937
  /**
924
938
  * Activate a scheduled version immediately.
925
939
  */
926
940
  activateNow: alepha_server0.ActionPrimitiveFn<{
927
- params: alepha624.TObject<{
928
- name: alepha624.TString;
941
+ params: alepha622.TObject<{
942
+ name: alepha622.TString;
929
943
  }>;
930
- body: alepha624.TObject<{
931
- version: alepha624.TInteger;
932
- creatorId: alepha624.TOptional<alepha624.TString>;
933
- creatorName: alepha624.TOptional<alepha624.TString>;
944
+ body: alepha622.TObject<{
945
+ version: alepha622.TInteger;
946
+ creatorId: alepha622.TOptional<alepha622.TString>;
947
+ creatorName: alepha622.TOptional<alepha622.TString>;
934
948
  }>;
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>;
949
+ response: alepha622.TObject<{
950
+ id: alepha622.TString;
951
+ createdAt: alepha622.TString;
952
+ updatedAt: alepha622.TString;
953
+ name: alepha622.TString;
954
+ content: alepha622.TRecord<string, alepha622.TAny>;
955
+ schemaHash: alepha622.TString;
956
+ status: alepha622.TUnsafe<"expired" | "current" | "next" | "future">;
957
+ activationDate: alepha622.TString;
958
+ expiredAt: alepha622.TOptional<alepha622.TString>;
959
+ version: alepha622.TInteger;
960
+ changeDescription: alepha622.TOptional<alepha622.TString>;
961
+ tags: alepha622.TOptional<alepha622.TArray<alepha622.TString>>;
962
+ creatorId: alepha622.TOptional<alepha622.TString>;
963
+ creatorName: alepha622.TOptional<alepha622.TString>;
964
+ previousContent: alepha622.TOptional<alepha622.TRecord<string, alepha622.TAny>>;
965
+ migrationLog: alepha622.TOptional<alepha622.TString>;
952
966
  }>;
953
967
  }>;
954
968
  /**
@@ -956,8 +970,8 @@ declare class AdminConfigController {
956
970
  * Normally called by a scheduler, but exposed for manual triggering.
957
971
  */
958
972
  checkScheduled: alepha_server0.ActionPrimitiveFn<{
959
- response: alepha624.TObject<{
960
- message: alepha624.TString;
973
+ response: alepha622.TObject<{
974
+ message: alepha622.TString;
961
975
  }>;
962
976
  }>;
963
977
  }
@@ -981,42 +995,21 @@ declare class ConfigActivationScheduler {
981
995
  //#endregion
982
996
  //#region ../../src/api/parameters/index.d.ts
983
997
  /**
984
- * Provides versioned configuration management for Alepha applications.
985
- *
986
- * Features:
987
- * - Type-safe, versioned configuration with `$config` primitive
988
- * - Schema validation with auto-migration detection
989
- * - Scheduled activation (FUTURE, NEXT, CURRENT, EXPIRED statuses)
990
- * - PostgreSQL persistence with full version history
991
- * - Cross-instance synchronization via topic
992
- * - Tree view support via dot-notation naming
993
- * - REST API for configuration management
994
- * - Automatic activation scheduler
998
+ * | type | quality | stability |
999
+ * |------|---------|-----------|
1000
+ * | backend | standard | stable |
995
1001
  *
996
- * @example
997
- * ```ts
998
- * import { Alepha } from "alepha";
999
- * import { AlephaApiParameters } from "alepha/api/parameters";
1000
- *
1001
- * const alepha = Alepha.create();
1002
- * alepha.with(AlephaApiParameters);
1002
+ * Application configuration management.
1003
1003
  *
1004
- * // Then use $config in your services:
1005
- * class AppConfig {
1006
- * features = $config({
1007
- * name: "app.features.flags",
1008
- * schema: t.object({
1009
- * enableBeta: t.boolean(),
1010
- * maxUploadSize: t.number()
1011
- * }),
1012
- * default: { enableBeta: false, maxUploadSize: 10485760 }
1013
- * });
1014
- * }
1015
- * ```
1004
+ * **Features:**
1005
+ * - Versioned configuration definitions
1006
+ * - Scheduled activation (FUTURE, NEXT, CURRENT, EXPIRED)
1007
+ * - Schema validation with migration detection
1008
+ * - Cross-instance sync via pub/sub
1016
1009
  *
1017
1010
  * @module alepha.api.parameters
1018
1011
  */
1019
- declare const AlephaApiParameters: alepha624.Service<alepha624.Module>;
1012
+ declare const AlephaApiParameters: alepha622.Service<alepha622.Module>;
1020
1013
  //#endregion
1021
1014
  export { $config, AdminConfigController, AlephaApiParameters, ConfigActivationScheduler, ConfigPrimitive, ConfigPrimitiveOptions, ConfigStore, ConfigSyncPayload, ConfigTreeNode, Parameter, ParameterInsert, type ParameterStatus, SaveConfigOptions, SetConfigOptions, parameters };
1022
1015
  //# sourceMappingURL=index.d.ts.map