alepha 0.21.2 → 0.22.0

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 (463) hide show
  1. package/README.md +0 -1
  2. package/dist/api/audits/index.browser.js.map +1 -1
  3. package/dist/api/audits/index.d.ts +393 -403
  4. package/dist/api/audits/index.d.ts.map +1 -1
  5. package/dist/api/audits/index.js +25 -56
  6. package/dist/api/audits/index.js.map +1 -1
  7. package/dist/api/files/index.browser.js +31 -1
  8. package/dist/api/files/index.browser.js.map +1 -1
  9. package/dist/api/files/index.d.ts +313 -208
  10. package/dist/api/files/index.d.ts.map +1 -1
  11. package/dist/api/files/index.js +152 -42
  12. package/dist/api/files/index.js.map +1 -1
  13. package/dist/api/jobs/index.browser.js +2 -2
  14. package/dist/api/jobs/index.browser.js.map +1 -1
  15. package/dist/api/jobs/index.d.ts +289 -292
  16. package/dist/api/jobs/index.d.ts.map +1 -1
  17. package/dist/api/jobs/index.js +39 -33
  18. package/dist/api/jobs/index.js.map +1 -1
  19. package/dist/api/keys/index.d.ts +211 -216
  20. package/dist/api/keys/index.d.ts.map +1 -1
  21. package/dist/api/keys/index.js.map +1 -1
  22. package/dist/api/notifications/index.browser.js.map +1 -1
  23. package/dist/api/notifications/index.d.ts +188 -195
  24. package/dist/api/notifications/index.d.ts.map +1 -1
  25. package/dist/api/notifications/index.js.map +1 -1
  26. package/dist/api/oauth/index.d.ts +71 -76
  27. package/dist/api/oauth/index.d.ts.map +1 -1
  28. package/dist/api/oauth/index.js.map +1 -1
  29. package/dist/api/organizations/index.browser.js.map +1 -1
  30. package/dist/api/organizations/index.d.ts +104 -109
  31. package/dist/api/organizations/index.d.ts.map +1 -1
  32. package/dist/api/organizations/index.js.map +1 -1
  33. package/dist/api/parameters/index.browser.js +43 -16
  34. package/dist/api/parameters/index.browser.js.map +1 -1
  35. package/dist/api/parameters/index.d.ts +488 -344
  36. package/dist/api/parameters/index.d.ts.map +1 -1
  37. package/dist/api/parameters/index.js +175 -35
  38. package/dist/api/parameters/index.js.map +1 -1
  39. package/dist/api/payments/index.d.ts +396 -402
  40. package/dist/api/payments/index.d.ts.map +1 -1
  41. package/dist/api/payments/index.js.map +1 -1
  42. package/dist/api/subscriptions/index.d.ts +644 -652
  43. package/dist/api/subscriptions/index.d.ts.map +1 -1
  44. package/dist/api/subscriptions/index.js +1 -1
  45. package/dist/api/subscriptions/index.js.map +1 -1
  46. package/dist/api/users/index.browser.js +7 -0
  47. package/dist/api/users/index.browser.js.map +1 -1
  48. package/dist/api/users/index.d.ts +1073 -1006
  49. package/dist/api/users/index.d.ts.map +1 -1
  50. package/dist/api/users/index.js +283 -61
  51. package/dist/api/users/index.js.map +1 -1
  52. package/dist/api/verifications/index.browser.js.map +1 -1
  53. package/dist/api/verifications/index.d.ts +134 -140
  54. package/dist/api/verifications/index.d.ts.map +1 -1
  55. package/dist/api/verifications/index.js.map +1 -1
  56. package/dist/background/index.d.ts +95 -0
  57. package/dist/background/index.d.ts.map +1 -0
  58. package/dist/background/index.js +121 -0
  59. package/dist/background/index.js.map +1 -0
  60. package/dist/background/index.workerd.js +110 -0
  61. package/dist/background/index.workerd.js.map +1 -0
  62. package/dist/batch/index.d.ts +5 -7
  63. package/dist/batch/index.d.ts.map +1 -1
  64. package/dist/batch/index.js.map +1 -1
  65. package/dist/bin/index.js.map +1 -1
  66. package/dist/bucket/index.d.ts +76 -54
  67. package/dist/bucket/index.d.ts.map +1 -1
  68. package/dist/bucket/index.js +58 -11
  69. package/dist/bucket/index.js.map +1 -1
  70. package/dist/bucket/index.workerd.js +200 -5
  71. package/dist/bucket/index.workerd.js.map +1 -1
  72. package/dist/cache/core/index.d.ts +7 -10
  73. package/dist/cache/core/index.d.ts.map +1 -1
  74. package/dist/cache/core/index.js.map +1 -1
  75. package/dist/cache/core/index.workerd.js.map +1 -1
  76. package/dist/cache/database/index.d.ts +22 -26
  77. package/dist/cache/database/index.d.ts.map +1 -1
  78. package/dist/cache/database/index.js.map +1 -1
  79. package/dist/cache/redis/index.d.ts +4 -7
  80. package/dist/cache/redis/index.d.ts.map +1 -1
  81. package/dist/cache/redis/index.js.map +1 -1
  82. package/dist/captcha/index.d.ts +3 -6
  83. package/dist/captcha/index.d.ts.map +1 -1
  84. package/dist/captcha/index.js.map +1 -1
  85. package/dist/cli/config/index.d.ts.map +1 -1
  86. package/dist/cli/config/index.js.map +1 -1
  87. package/dist/cli/core/index.d.ts +417 -214
  88. package/dist/cli/core/index.d.ts.map +1 -1
  89. package/dist/cli/core/index.js +325 -563
  90. package/dist/cli/core/index.js.map +1 -1
  91. package/dist/cli/devtools/index.d.ts +3 -5
  92. package/dist/cli/devtools/index.d.ts.map +1 -1
  93. package/dist/cli/devtools/index.js.map +1 -1
  94. package/dist/cli/i18n/index.d.ts +8 -12
  95. package/dist/cli/i18n/index.d.ts.map +1 -1
  96. package/dist/cli/i18n/index.js.map +1 -1
  97. package/dist/cli/platform/index.d.ts +126 -1342
  98. package/dist/cli/platform/index.d.ts.map +1 -1
  99. package/dist/cli/platform/index.js +136 -2374
  100. package/dist/cli/platform/index.js.map +1 -1
  101. package/dist/cli/platform-lib/index.d.ts +1446 -0
  102. package/dist/cli/platform-lib/index.d.ts.map +1 -0
  103. package/dist/cli/platform-lib/index.js +2597 -0
  104. package/dist/cli/platform-lib/index.js.map +1 -0
  105. package/dist/cli/vendor/index.d.ts +17 -21
  106. package/dist/cli/vendor/index.d.ts.map +1 -1
  107. package/dist/cli/vendor/index.js.map +1 -1
  108. package/dist/command/index.d.ts +21 -20
  109. package/dist/command/index.d.ts.map +1 -1
  110. package/dist/command/index.js +39 -10
  111. package/dist/command/index.js.map +1 -1
  112. package/dist/{containers → container}/core/index.d.ts +13 -15
  113. package/dist/container/core/index.d.ts.map +1 -0
  114. package/dist/{containers → container}/core/index.js +23 -14
  115. package/dist/container/core/index.js.map +1 -0
  116. package/dist/{containers → container}/core/index.workerd.js +37 -22
  117. package/dist/container/core/index.workerd.js.map +1 -0
  118. package/dist/core/index.browser.js +27 -1
  119. package/dist/core/index.browser.js.map +1 -1
  120. package/dist/core/index.d.ts +48 -24
  121. package/dist/core/index.d.ts.map +1 -1
  122. package/dist/core/index.js +27 -1
  123. package/dist/core/index.js.map +1 -1
  124. package/dist/core/index.native.js +27 -1
  125. package/dist/core/index.native.js.map +1 -1
  126. package/dist/core/index.workerd.js +27 -1
  127. package/dist/core/index.workerd.js.map +1 -1
  128. package/dist/crypto/index.browser.js.map +1 -1
  129. package/dist/crypto/index.d.ts +5 -8
  130. package/dist/crypto/index.d.ts.map +1 -1
  131. package/dist/crypto/index.js.map +1 -1
  132. package/dist/datetime/index.d.ts +3 -4
  133. package/dist/datetime/index.d.ts.map +1 -1
  134. package/dist/datetime/index.js.map +1 -1
  135. package/dist/email/brevo/index.d.ts +2 -4
  136. package/dist/email/brevo/index.d.ts.map +1 -1
  137. package/dist/email/brevo/index.js.map +1 -1
  138. package/dist/email/cloudflare/index.d.ts +20 -7
  139. package/dist/email/cloudflare/index.d.ts.map +1 -1
  140. package/dist/email/cloudflare/index.js +46 -9
  141. package/dist/email/cloudflare/index.js.map +1 -1
  142. package/dist/email/core/index.d.ts +6 -9
  143. package/dist/email/core/index.d.ts.map +1 -1
  144. package/dist/email/core/index.js.map +1 -1
  145. package/dist/email/core/index.workerd.js.map +1 -1
  146. package/dist/email/smtp/index.d.ts +10 -13
  147. package/dist/email/smtp/index.d.ts.map +1 -1
  148. package/dist/email/smtp/index.js +107 -32
  149. package/dist/email/smtp/index.js.map +1 -1
  150. package/dist/fake/index.d.ts +1 -2
  151. package/dist/fake/index.d.ts.map +1 -1
  152. package/dist/fake/index.js.map +1 -1
  153. package/dist/lock/core/index.d.ts +9 -14
  154. package/dist/lock/core/index.d.ts.map +1 -1
  155. package/dist/lock/core/index.js.map +1 -1
  156. package/dist/lock/redis/index.d.ts +2 -4
  157. package/dist/lock/redis/index.d.ts.map +1 -1
  158. package/dist/lock/redis/index.js.map +1 -1
  159. package/dist/logger/index.d.ts +105 -76
  160. package/dist/logger/index.d.ts.map +1 -1
  161. package/dist/logger/index.js +196 -174
  162. package/dist/logger/index.js.map +1 -1
  163. package/dist/mcp/index.d.ts +16 -20
  164. package/dist/mcp/index.d.ts.map +1 -1
  165. package/dist/mcp/index.js.map +1 -1
  166. package/dist/orm/core/index.browser.js.map +1 -1
  167. package/dist/orm/core/index.bun.js +19 -1
  168. package/dist/orm/core/index.bun.js.map +1 -1
  169. package/dist/orm/core/index.d.ts +76 -62
  170. package/dist/orm/core/index.d.ts.map +1 -1
  171. package/dist/orm/core/index.js +20 -2
  172. package/dist/orm/core/index.js.map +1 -1
  173. package/dist/orm/postgres/index.bun.js.map +1 -1
  174. package/dist/orm/postgres/index.d.ts +28 -20
  175. package/dist/orm/postgres/index.d.ts.map +1 -1
  176. package/dist/orm/postgres/index.js.map +1 -1
  177. package/dist/queue/core/index.d.ts +12 -15
  178. package/dist/queue/core/index.d.ts.map +1 -1
  179. package/dist/queue/core/index.js.map +1 -1
  180. package/dist/queue/core/index.workerd.js.map +1 -1
  181. package/dist/queue/redis/index.d.ts +3 -5
  182. package/dist/queue/redis/index.d.ts.map +1 -1
  183. package/dist/queue/redis/index.js.map +1 -1
  184. package/dist/react/auth/index.browser.js +9 -2
  185. package/dist/react/auth/index.browser.js.map +1 -1
  186. package/dist/react/auth/index.d.ts +14 -9
  187. package/dist/react/auth/index.d.ts.map +1 -1
  188. package/dist/react/auth/index.js +9 -2
  189. package/dist/react/auth/index.js.map +1 -1
  190. package/dist/react/core/index.d.ts +7 -8
  191. package/dist/react/core/index.d.ts.map +1 -1
  192. package/dist/react/core/index.js +6 -3
  193. package/dist/react/core/index.js.map +1 -1
  194. package/dist/react/form/index.d.ts +2 -4
  195. package/dist/react/form/index.d.ts.map +1 -1
  196. package/dist/react/form/index.js.map +1 -1
  197. package/dist/react/head/index.browser.js.map +1 -1
  198. package/dist/react/head/index.d.ts +2 -4
  199. package/dist/react/head/index.d.ts.map +1 -1
  200. package/dist/react/head/index.js.map +1 -1
  201. package/dist/react/i18n/index.d.ts +47 -11
  202. package/dist/react/i18n/index.d.ts.map +1 -1
  203. package/dist/react/i18n/index.js +33 -1
  204. package/dist/react/i18n/index.js.map +1 -1
  205. package/dist/react/intro/index.d.ts +1 -2
  206. package/dist/react/intro/index.d.ts.map +1 -1
  207. package/dist/react/intro/index.js +2 -2
  208. package/dist/react/intro/index.js.map +1 -1
  209. package/dist/react/router/index.browser.js +65 -19
  210. package/dist/react/router/index.browser.js.map +1 -1
  211. package/dist/react/router/index.d.ts +327 -222
  212. package/dist/react/router/index.d.ts.map +1 -1
  213. package/dist/react/router/index.js +65 -29
  214. package/dist/react/router/index.js.map +1 -1
  215. package/dist/react/testing/index.d.ts +1 -2
  216. package/dist/react/testing/index.d.ts.map +1 -1
  217. package/dist/react/testing/index.js +16 -17
  218. package/dist/react/testing/index.js.map +1 -1
  219. package/dist/react/ui/index.d.ts +20 -25
  220. package/dist/react/ui/index.d.ts.map +1 -1
  221. package/dist/react/ui/index.js.map +1 -1
  222. package/dist/redis/index.bun.js.map +1 -1
  223. package/dist/redis/index.d.ts +17 -19
  224. package/dist/redis/index.d.ts.map +1 -1
  225. package/dist/redis/index.js.map +1 -1
  226. package/dist/retry/index.d.ts +2 -4
  227. package/dist/retry/index.d.ts.map +1 -1
  228. package/dist/retry/index.js.map +1 -1
  229. package/dist/router/index.d.ts.map +1 -1
  230. package/dist/router/index.js.map +1 -1
  231. package/dist/scheduler/index.d.ts +10 -13
  232. package/dist/scheduler/index.d.ts.map +1 -1
  233. package/dist/scheduler/index.js.map +1 -1
  234. package/dist/scheduler/index.workerd.js.map +1 -1
  235. package/dist/security/index.browser.js.map +1 -1
  236. package/dist/security/index.d.ts +45 -48
  237. package/dist/security/index.d.ts.map +1 -1
  238. package/dist/security/index.js.map +1 -1
  239. package/dist/server/auth/index.browser.js.map +1 -1
  240. package/dist/server/auth/index.d.ts +167 -172
  241. package/dist/server/auth/index.d.ts.map +1 -1
  242. package/dist/server/auth/index.js +4 -8
  243. package/dist/server/auth/index.js.map +1 -1
  244. package/dist/server/cookies/index.browser.js.map +1 -1
  245. package/dist/server/cookies/index.d.ts +5 -7
  246. package/dist/server/cookies/index.d.ts.map +1 -1
  247. package/dist/server/cookies/index.js.map +1 -1
  248. package/dist/server/core/index.browser.js.map +1 -1
  249. package/dist/server/core/index.d.ts +88 -73
  250. package/dist/server/core/index.d.ts.map +1 -1
  251. package/dist/server/core/index.js +19 -0
  252. package/dist/server/core/index.js.map +1 -1
  253. package/dist/server/cors/index.d.ts +11 -14
  254. package/dist/server/cors/index.d.ts.map +1 -1
  255. package/dist/server/cors/index.js.map +1 -1
  256. package/dist/server/etag/index.d.ts +6 -9
  257. package/dist/server/etag/index.d.ts.map +1 -1
  258. package/dist/server/etag/index.js.map +1 -1
  259. package/dist/server/health/index.d.ts +18 -21
  260. package/dist/server/health/index.d.ts.map +1 -1
  261. package/dist/server/health/index.js.map +1 -1
  262. package/dist/server/links/index.browser.js +2 -0
  263. package/dist/server/links/index.browser.js.map +1 -1
  264. package/dist/server/links/index.d.ts +63 -67
  265. package/dist/server/links/index.d.ts.map +1 -1
  266. package/dist/server/links/index.js +2 -0
  267. package/dist/server/links/index.js.map +1 -1
  268. package/dist/server/metrics/index.d.ts +5 -7
  269. package/dist/server/metrics/index.d.ts.map +1 -1
  270. package/dist/server/metrics/index.js.map +1 -1
  271. package/dist/server/proxy/index.d.ts +3 -5
  272. package/dist/server/proxy/index.d.ts.map +1 -1
  273. package/dist/server/proxy/index.js.map +1 -1
  274. package/dist/server/rate-limit/index.d.ts +10 -13
  275. package/dist/server/rate-limit/index.d.ts.map +1 -1
  276. package/dist/server/rate-limit/index.js.map +1 -1
  277. package/dist/server/static/index.d.ts +3 -5
  278. package/dist/server/static/index.d.ts.map +1 -1
  279. package/dist/server/static/index.js.map +1 -1
  280. package/dist/server/swagger/index.d.ts +5 -8
  281. package/dist/server/swagger/index.d.ts.map +1 -1
  282. package/dist/server/swagger/index.js.map +1 -1
  283. package/dist/sms/index.d.ts +3 -5
  284. package/dist/sms/index.d.ts.map +1 -1
  285. package/dist/sms/index.js.map +1 -1
  286. package/dist/system/index.browser.js.map +1 -1
  287. package/dist/system/index.d.ts +2 -4
  288. package/dist/system/index.d.ts.map +1 -1
  289. package/dist/system/index.js.map +1 -1
  290. package/dist/system/index.workerd.js.map +1 -1
  291. package/dist/topic/core/index.d.ts +4 -6
  292. package/dist/topic/core/index.d.ts.map +1 -1
  293. package/dist/topic/core/index.js.map +1 -1
  294. package/dist/topic/redis/index.d.ts +5 -8
  295. package/dist/topic/redis/index.d.ts.map +1 -1
  296. package/dist/topic/redis/index.js.map +1 -1
  297. package/package.json +45 -22
  298. package/src/api/audits/__tests__/AuditService.spec.ts +18 -110
  299. package/src/api/audits/controllers/AdminAuditController.ts +14 -0
  300. package/src/api/audits/services/AuditService.ts +21 -88
  301. package/src/api/files/__tests__/FileService.spec.ts +207 -2
  302. package/src/api/files/index.ts +3 -0
  303. package/src/api/files/schemas/fileCreatorSummarySchema.ts +22 -0
  304. package/src/api/files/schemas/fileResourceSchema.ts +10 -1
  305. package/src/api/files/services/FileService.ts +170 -72
  306. package/src/api/jobs/__tests__/$job.spec.ts +24 -1
  307. package/src/api/jobs/index.ts +4 -3
  308. package/src/api/jobs/primitives/$job.ts +7 -3
  309. package/src/api/jobs/providers/DirectJobDispatcher.ts +17 -36
  310. package/src/api/jobs/providers/JobProvider.ts +53 -24
  311. package/src/api/jobs/schemas/jobConfigAtom.ts +1 -1
  312. package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +4 -1
  313. package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +3 -1
  314. package/src/api/parameters/__tests__/$parameter.spec.ts +19 -2
  315. package/src/api/parameters/audits/ParameterAudits.ts +17 -0
  316. package/src/api/parameters/controllers/AdminParameterController.ts +95 -19
  317. package/src/api/parameters/index.ts +3 -0
  318. package/src/api/parameters/schemas/activateParameterBodySchema.ts +3 -3
  319. package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +3 -2
  320. package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +25 -0
  321. package/src/api/parameters/schemas/parameterResponseSchema.ts +5 -0
  322. package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +4 -2
  323. package/src/api/parameters/services/ParameterProvider.ts +69 -6
  324. package/src/api/subscriptions/jobs/SubscriptionJobs.ts +1 -1
  325. package/src/api/users/__tests__/AdminSessionController.spec.ts +37 -0
  326. package/src/api/users/audits/SessionAudits.ts +33 -0
  327. package/src/api/users/audits/UserAudits.ts +19 -43
  328. package/src/api/users/controllers/AdminUserController.ts +66 -1
  329. package/src/api/users/entities/sessions.ts +6 -0
  330. package/src/api/users/entities/users.ts +2 -0
  331. package/src/api/users/index.ts +9 -1
  332. package/src/api/users/primitives/$realm.ts +3 -0
  333. package/src/api/users/schemas/sessionResourceSchema.ts +16 -0
  334. package/src/api/users/schemas/updateUserSchema.ts +1 -8
  335. package/src/api/users/schemas/userQuerySchema.ts +7 -0
  336. package/src/api/users/services/CredentialService.ts +15 -6
  337. package/src/api/users/services/IdentityService.ts +2 -1
  338. package/src/api/users/services/RegistrationService.ts +2 -1
  339. package/src/api/users/services/SessionCrudService.ts +19 -2
  340. package/src/api/users/services/SessionService.ts +39 -19
  341. package/src/api/users/services/UserService.ts +106 -8
  342. package/src/background/__tests__/BackgroundTaskProvider.spec.ts +96 -0
  343. package/src/background/index.ts +37 -0
  344. package/src/background/index.workerd.ts +28 -0
  345. package/src/background/providers/BackgroundTaskProvider.ts +70 -0
  346. package/src/background/providers/WorkerdBackgroundTaskProvider.ts +43 -0
  347. package/src/bucket/__tests__/$bucket.spec.ts +18 -0
  348. package/src/bucket/__tests__/LocalFileStorageProvider.spec.ts +5 -0
  349. package/src/bucket/__tests__/MemoryFileStorageProvider.spec.ts +5 -0
  350. package/src/bucket/__tests__/NodeS3BucketProvider.spec.ts +23 -4
  351. package/src/bucket/__tests__/shared.ts +30 -0
  352. package/src/bucket/index.ts +5 -5
  353. package/src/bucket/index.workerd.ts +11 -4
  354. package/src/bucket/primitives/$bucket.ts +27 -0
  355. package/src/bucket/providers/FileStorageProvider.ts +13 -0
  356. package/src/bucket/providers/LocalFileStorageProvider.ts +17 -1
  357. package/src/bucket/providers/MemoryFileStorageProvider.ts +7 -0
  358. package/src/bucket/providers/{CloudflareR2Provider.ts → R2FileStorageProvider.ts} +10 -1
  359. package/src/bucket/providers/{NodeS3BucketProvider.ts → S3FileStorageProvider.ts} +27 -5
  360. package/src/cli/core/__tests__/BuildDockerTask.spec.ts +25 -1
  361. package/src/cli/core/__tests__/init.spec.ts +0 -219
  362. package/src/cli/core/commands/__tests__/BuildCommand.spec.ts +43 -0
  363. package/src/cli/core/commands/build.ts +108 -30
  364. package/src/cli/core/commands/init.ts +0 -12
  365. package/src/cli/core/commands/pack.ts +133 -0
  366. package/src/cli/core/index.ts +3 -0
  367. package/src/cli/core/providers/ViteDevServerProvider.ts +40 -16
  368. package/src/cli/core/services/PackageManagerUtils.ts +0 -16
  369. package/src/cli/core/services/ProjectScaffolder.ts +29 -291
  370. package/src/cli/core/tasks/BuildCloudflareTask.ts +353 -47
  371. package/src/cli/core/tasks/BuildDockerTask.ts +33 -3
  372. package/src/cli/core/tasks/BuildTask.ts +34 -0
  373. package/src/cli/core/templates/apiIndexTs.ts +1 -22
  374. package/src/cli/core/templates/mainCss.ts +0 -1
  375. package/src/cli/core/templates/webAppRouterTs.ts +0 -99
  376. package/src/cli/core/templates/webIndexTs.ts +1 -22
  377. package/src/cli/platform/__tests__/SecretsCommand.spec.ts +5 -3
  378. package/src/cli/platform/commands/SecretsCommand.ts +8 -6
  379. package/src/cli/platform/commands/platform.ts +192 -46
  380. package/src/cli/platform/index.ts +12 -52
  381. package/src/cli/{platform → platform-lib}/__tests__/CloudflareAdapter.spec.ts +426 -169
  382. package/src/cli/{platform → platform-lib}/__tests__/NamingService.spec.ts +91 -4
  383. package/src/cli/{platform → platform-lib}/__tests__/VercelAdapter.spec.ts +56 -85
  384. package/src/cli/{platform → platform-lib}/adapters/CloudflareAdapter.ts +402 -165
  385. package/src/cli/{platform → platform-lib}/adapters/PlatformAdapter.ts +62 -35
  386. package/src/cli/{platform → platform-lib}/adapters/VercelAdapter.ts +6 -10
  387. package/src/cli/{platform → platform-lib}/atoms/platformOptions.ts +34 -1
  388. package/src/cli/platform-lib/index.ts +67 -0
  389. package/src/cli/platform-lib/services/NamingService.ts +136 -0
  390. package/src/cli/{platform → platform-lib}/services/PlatformInspector.ts +60 -13
  391. package/src/cli/{platform → platform-lib}/services/PlatformOrchestrator.ts +54 -43
  392. package/src/cli/{platform → platform-lib}/services/WranglerApi.ts +4 -2
  393. package/src/command/__tests__/Runner.spec.ts +20 -0
  394. package/src/command/helpers/EnvUtils.ts +19 -3
  395. package/src/command/helpers/Runner.ts +12 -2
  396. package/src/command/providers/CliProvider.ts +34 -1
  397. package/src/{containers → container}/core/__tests__/$container.spec.ts +5 -5
  398. package/src/{containers → container}/core/index.ts +4 -4
  399. package/src/{containers → container}/core/index.workerd.ts +19 -3
  400. package/src/{containers → container}/core/primitives/$container.ts +1 -1
  401. package/src/{containers → container}/core/providers/CloudflareContainerProvider.ts +17 -19
  402. package/src/{containers → container}/core/providers/ContainerProvider.ts +16 -2
  403. package/src/{containers → container}/core/providers/MockContainerProvider.ts +1 -1
  404. package/src/core/Alepha.ts +49 -1
  405. package/src/core/__tests__/$env.spec.ts +42 -0
  406. package/src/core/__tests__/dump.spec.ts +47 -0
  407. package/src/email/cloudflare/__tests__/CloudflareEmailProvider.spec.ts +42 -10
  408. package/src/email/cloudflare/index.ts +14 -5
  409. package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +54 -9
  410. package/src/logger/__tests__/Logger.spec.ts +55 -0
  411. package/src/logger/index.ts +13 -0
  412. package/src/logger/services/Logger.ts +31 -1
  413. package/src/orm/__tests__/orm-showcase-tests.ts +27 -0
  414. package/src/orm/__tests__/orm-showcase.spec.ts +12 -0
  415. package/src/orm/core/interfaces/PgQuery.ts +4 -1
  416. package/src/orm/core/services/Repository.ts +27 -11
  417. package/src/react/auth/hooks/useAuth.ts +10 -5
  418. package/src/react/core/__tests__/useQuery.browser.spec.tsx +25 -0
  419. package/src/react/core/hooks/useAction.ts +14 -3
  420. package/src/react/core/hooks/useQuery.ts +24 -4
  421. package/src/react/i18n/components/Translate.tsx +47 -0
  422. package/src/react/i18n/index.ts +2 -0
  423. package/src/react/intro/components/GettingStartedAdminSlide.tsx +2 -2
  424. package/src/react/router/__tests__/$page.spec.tsx +3 -2
  425. package/src/react/router/__tests__/page-can.spec.ts +18 -13
  426. package/src/react/router/hooks/useQueryParams.ts +114 -14
  427. package/src/react/router/primitives/$page.ts +85 -4
  428. package/src/react/router/providers/ReactBrowserRouterProvider.ts +3 -7
  429. package/src/react/router/providers/ReactServerProvider.ts +4 -13
  430. package/src/react/ui/services/SchemaControl.ts +3 -4
  431. package/src/server/core/providers/ServerMultipartProvider.ts +19 -0
  432. package/src/server/links/providers/LinkProvider.ts +10 -0
  433. package/dist/containers/core/index.d.ts.map +0 -1
  434. package/dist/containers/core/index.js.map +0 -1
  435. package/dist/containers/core/index.workerd.js.map +0 -1
  436. package/src/cli/core/templates/componentsJsonTs.ts +0 -39
  437. package/src/cli/core/templates/saasAdminLayoutTsx.ts +0 -77
  438. package/src/cli/core/templates/saasAdminPagesTsx.ts +0 -26
  439. package/src/cli/core/templates/saasAuthLayoutTsx.ts +0 -22
  440. package/src/cli/core/templates/saasAuthPagesTsx.ts +0 -62
  441. package/src/cli/core/templates/saasRealmProviderTs.ts +0 -52
  442. package/src/cli/platform/services/NamingService.ts +0 -54
  443. /package/dist/orm/core/{chunk-o8xxKEmq.js → chunk-B4FMCO8f.js} +0 -0
  444. /package/dist/react/testing/{chunk-6Ep1yQYe.js → chunk-BpyX8vjI.js} +0 -0
  445. /package/src/cli/{platform → platform-lib}/__tests__/GitHubSecretStore.spec.ts +0 -0
  446. /package/src/cli/{platform → platform-lib}/__tests__/PlatformCacheProvider.spec.ts +0 -0
  447. /package/src/cli/{platform → platform-lib}/__tests__/PlatformInspector.spec.ts +0 -0
  448. /package/src/cli/{platform → platform-lib}/__tests__/PlatformOrchestrator.spec.ts +0 -0
  449. /package/src/cli/{platform → platform-lib}/__tests__/SecretFilterService.spec.ts +0 -0
  450. /package/src/cli/{platform → platform-lib}/__tests__/detectResources.spec.ts +0 -0
  451. /package/src/cli/{platform → platform-lib}/providers/GitHubSecretStore.ts +0 -0
  452. /package/src/cli/{platform → platform-lib}/providers/MemorySecretStore.ts +0 -0
  453. /package/src/cli/{platform → platform-lib}/providers/PlatformCacheProvider.ts +0 -0
  454. /package/src/cli/{platform → platform-lib}/providers/SecretStoreProvider.ts +0 -0
  455. /package/src/cli/{platform → platform-lib}/schemas/cloudflare.ts +0 -0
  456. /package/src/cli/{platform → platform-lib}/schemas/platform.ts +0 -0
  457. /package/src/cli/{platform → platform-lib}/schemas/vercel.ts +0 -0
  458. /package/src/cli/{platform → platform-lib}/services/CloudflareApi.ts +0 -0
  459. /package/src/cli/{platform → platform-lib}/services/SecretFilterService.ts +0 -0
  460. /package/src/cli/{platform → platform-lib}/services/VercelApi.ts +0 -0
  461. /package/src/cli/{platform → platform-lib}/services/VercelCli.ts +0 -0
  462. /package/src/{containers → container}/core/interfaces/ContainerOptions.ts +0 -0
  463. /package/src/{containers → container}/core/providers/NodeContainerProvider.ts +0 -0
@@ -1,16 +1,23 @@
1
- import * as _$alepha from "alepha";
2
1
  import { Alepha, AlephaError, KIND, Primitive, SchemaValidator, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
2
  import { UserAccount } from "alepha/security";
4
- import * as _$alepha_server0 from "alepha/server";
5
- import * as _$alepha_orm0 from "alepha/orm";
3
+ import { RepositoryProvider } from "alepha/orm";
6
4
  import { CryptoProvider } from "alepha/crypto";
7
5
  import { DateTimeProvider } from "alepha/datetime";
8
6
  import { LockProvider } from "alepha/lock";
9
- import * as _$alepha_logger0 from "alepha/logger";
10
- import * as _$alepha_topic0 from "alepha/topic";
11
- import * as _$typebox from "typebox";
12
7
  import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
13
8
  import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
9
+ //#region ../../src/api/parameters/audits/ParameterAudits.d.ts
10
+ /**
11
+ * Runtime parameter (config) audit events.
12
+ *
13
+ * Holds the `parameter` audit type. Using `$audit` pulls in the audits module
14
+ * automatically — the parameters module does not need to import it. Register
15
+ * as a variant and log via `parameterAudits.parameter.log("rollback", …)`.
16
+ */
17
+ declare class ParameterAudits {
18
+ readonly parameter: import("alepha/api/audits").AuditPrimitive;
19
+ }
20
+ //#endregion
14
21
  //#region ../../src/orm/core/schemas/insertSchema.d.ts
15
22
  /**
16
23
  * Transforms a TObject schema for insert operations.
@@ -302,8 +309,8 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
302
309
  * - `d1://BINDING_NAME` — Cloudflare D1
303
310
  * - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
304
311
  */
305
- declare const databaseEnvSchema: _$typebox.TObject<{
306
- DATABASE_URL: _$typebox.TOptional<_$typebox.TString>;
312
+ declare const databaseEnvSchema: import("typebox").TObject<{
313
+ DATABASE_URL: import("typebox").TOptional<import("typebox").TString>;
307
314
  /**
308
315
  * Enable or disable push-based schema synchronization (drizzle-kit push).
309
316
  *
@@ -311,7 +318,7 @@ declare const databaseEnvSchema: _$typebox.TObject<{
311
318
  * Set to `false` in development to skip automatic schema sync
312
319
  * (e.g. when managing migrations manually).
313
320
  */
314
- DATABASE_SYNC: _$typebox.TOptional<_$typebox.TBoolean>;
321
+ DATABASE_SYNC: import("typebox").TOptional<import("typebox").TBoolean>;
315
322
  }>;
316
323
  declare module "alepha" {
317
324
  interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
@@ -327,58 +334,58 @@ declare module "alepha" {
327
334
  * - Activation scheduling
328
335
  * - Audit trail (creator info)
329
336
  */
330
- declare const parameters: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
331
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
332
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
333
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
337
+ declare const parameters: import("alepha/orm").EntityPrimitive<import("typebox").TObject<{
338
+ id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
339
+ createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
340
+ updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
334
341
  /**
335
342
  * Configuration name using dot notation for tree hierarchy.
336
343
  * Examples: "app.features", "app.pricing.tiers", "system.limits"
337
344
  */
338
- name: _$typebox.TString;
345
+ name: import("typebox").TString;
339
346
  /**
340
347
  * The configuration content as JSON.
341
348
  */
342
- content: _$typebox.TRecord<string, _$typebox.TAny>;
349
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
343
350
  /**
344
351
  * Schema version hash for detecting schema changes.
345
352
  * Used for auto-migration when schema evolves.
346
353
  */
347
- schemaHash: _$typebox.TString;
354
+ schemaHash: import("typebox").TString;
348
355
  /**
349
356
  * When this version should become active.
350
357
  * Default is immediate (now).
351
358
  */
352
- activationDate: _$typebox.TString;
359
+ activationDate: import("typebox").TString;
353
360
  /**
354
361
  * Version number for this configuration.
355
362
  * Auto-incremented per config name.
356
363
  */
357
- version: _$typebox.TInteger;
364
+ version: import("typebox").TInteger;
358
365
  /**
359
366
  * Optional description of changes in this version.
360
367
  */
361
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
368
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
362
369
  /**
363
370
  * Optional tags for filtering/categorization.
364
371
  */
365
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
372
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
366
373
  /**
367
374
  * Creator user ID (if available).
368
375
  */
369
- creatorId: _$typebox.TOptional<_$typebox.TString>;
376
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
370
377
  /**
371
378
  * Creator display name for audit trail.
372
379
  */
373
- creatorName: _$typebox.TOptional<_$typebox.TString>;
380
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
374
381
  /**
375
382
  * Previous content before this change (for rollback reference).
376
383
  */
377
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
384
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
378
385
  /**
379
386
  * Migration log if schema changed.
380
387
  */
381
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
388
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
382
389
  }>>;
383
390
  type Parameter = Static<typeof parameters.schema>;
384
391
  //#endregion
@@ -572,18 +579,18 @@ interface SetParameterOptions {
572
579
  /**
573
580
  * Parameter status enum schema.
574
581
  */
575
- declare const parameterStatusSchema: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
582
+ declare const parameterStatusSchema: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
576
583
  type ParameterStatus = Static<typeof parameterStatusSchema>;
577
584
  //#endregion
578
585
  //#region ../../src/api/parameters/schemas/parameterTreeNodeSchema.d.ts
579
586
  /**
580
587
  * Tree node schema for parameter tree navigation.
581
588
  */
582
- declare const parameterTreeNodeSchema: _$typebox.TObject<{
583
- name: _$typebox.TString;
584
- path: _$typebox.TString;
585
- isLeaf: _$typebox.TBoolean;
586
- children: _$typebox.TArray<_$typebox.TAny>;
589
+ declare const parameterTreeNodeSchema: import("typebox").TObject<{
590
+ name: import("typebox").TString;
591
+ path: import("typebox").TString;
592
+ isLeaf: import("typebox").TBoolean;
593
+ children: import("typebox").TArray<import("typebox").TAny>;
587
594
  }>;
588
595
  type ParameterTreeNode = Static<typeof parameterTreeNodeSchema>;
589
596
  //#endregion
@@ -613,27 +620,28 @@ type ParameterWithStatus = Parameter & {
613
620
  * - Manages per-parameter caching, loading, and subscriber notification
614
621
  */
615
622
  declare class ParameterProvider {
616
- protected readonly log: _$alepha_logger0.Logger;
623
+ protected readonly log: import("alepha/logger").Logger;
617
624
  protected readonly alepha: Alepha;
618
625
  protected readonly dateTimeProvider: DateTimeProvider;
619
626
  protected readonly crypto: CryptoProvider;
620
627
  protected readonly lockProvider: LockProvider;
621
628
  protected readonly schemaValidator: SchemaValidator;
622
- protected readonly repo: _$alepha_orm0.Repository<TObject<{
623
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
624
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
625
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
626
- name: _$typebox.TString;
627
- content: _$typebox.TRecord<string, _$typebox.TAny>;
628
- schemaHash: _$typebox.TString;
629
- activationDate: _$typebox.TString;
630
- version: _$typebox.TInteger;
631
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
632
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
633
- creatorId: _$typebox.TOptional<_$typebox.TString>;
634
- creatorName: _$typebox.TOptional<_$typebox.TString>;
635
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
636
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
629
+ protected readonly repositoryProvider: RepositoryProvider;
630
+ protected readonly repo: import("alepha/orm").Repository<TObject<{
631
+ id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
632
+ createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
633
+ updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
634
+ name: import("typebox").TString;
635
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
636
+ schemaHash: import("typebox").TString;
637
+ activationDate: import("typebox").TString;
638
+ version: import("typebox").TInteger;
639
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
640
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
641
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
642
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
643
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
644
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
637
645
  }>>;
638
646
  /**
639
647
  * Unique identifier for this instance (to avoid self-updates).
@@ -683,15 +691,15 @@ declare class ParameterProvider {
683
691
  /**
684
692
  * Pre-load all registered parameters on ready (non-serverless only).
685
693
  */
686
- protected readonly onReady: _$alepha.HookPrimitive<"ready">;
694
+ protected readonly onReady: import("alepha").HookPrimitive<"ready">;
687
695
  /**
688
696
  * Topic for cross-instance change notification.
689
697
  * Payload is minimal — receivers call load() to fetch fresh data.
690
698
  */
691
- readonly syncTopic: _$alepha_topic0.TopicPrimitive<{
699
+ readonly syncTopic: import("alepha/topic").TopicPrimitive<{
692
700
  payload: TObject<{
693
- name: _$typebox.TString;
694
- instanceId: _$typebox.TString;
701
+ name: import("typebox").TString;
702
+ instanceId: import("typebox").TString;
695
703
  }>;
696
704
  }>;
697
705
  /**
@@ -746,7 +754,9 @@ declare class ParameterProvider {
746
754
  * - Other future versions are "future"
747
755
  * - Other past versions are "expired"
748
756
  */
749
- calculateStatuses(versions: Parameter[], now?: Date): ParameterWithStatus[];
757
+ calculateStatuses<T extends Parameter>(versions: T[], now?: Date): Array<T & {
758
+ status: ParameterStatus;
759
+ }>;
750
760
  /**
751
761
  * Save a new parameter version.
752
762
  *
@@ -757,7 +767,27 @@ declare class ParameterProvider {
757
767
  */
758
768
  save<T extends TObject>(name: string, content: Static<T>, schemaHash: string, options?: SaveParameterOptions): Promise<ParameterWithStatus>;
759
769
  /**
760
- * Get all versions of a parameter.
770
+ * Best-effort left join embedding the creating user on each version, so the
771
+ * admin UI can render a human-readable identifier (live, not snapshotted)
772
+ * instead of the bare `creatorId`. Joins `parameters.creatorId` → `users.id`.
773
+ *
774
+ * The `users` entity is resolved from the repository registry at runtime
775
+ * rather than imported: that keeps the parameters module free of any
776
+ * dependency on the users module (no import, no circular-import risk). When
777
+ * the users module is not registered the join is skipped and `creator` comes
778
+ * back undefined.
779
+ */
780
+ protected resolveCreatorJoin(): {
781
+ creator: {
782
+ join: import("alepha/orm").EntityPrimitive<TObject<import("typebox").TProperties>>;
783
+ on: ["creatorId", {
784
+ name: string;
785
+ }];
786
+ };
787
+ } | undefined;
788
+ /**
789
+ * Get all versions of a parameter, each with the creating user embedded
790
+ * (best-effort, see {@link resolveCreatorJoin}).
761
791
  */
762
792
  getHistory(name: string, options?: {
763
793
  limit?: number;
@@ -789,6 +819,12 @@ declare class ParameterProvider {
789
819
  } | null;
790
820
  /**
791
821
  * Get parameter info including current value with default fallback.
822
+ *
823
+ * When no version exists in the DB yet but a primitive is registered, this
824
+ * lazily materializes v1 from the primitive's `default`. After this call,
825
+ * the parameter has a concrete current row admins can edit / roll back /
826
+ * compare against, instead of running on phantom defaults-from-code state.
827
+ * Idempotent: subsequent calls return the same row without re-creating.
792
828
  */
793
829
  getCurrentWithDefault(name: string): Promise<{
794
830
  current: ParameterWithStatus | null;
@@ -896,55 +932,63 @@ declare class AdminParameterController {
896
932
  protected readonly url = "/parameters";
897
933
  protected readonly group = "admin:parameters";
898
934
  protected readonly provider: ParameterProvider;
935
+ protected readonly alepha: Alepha;
899
936
  /**
900
937
  * Get tree structure of all parameter names.
901
938
  * Useful for admin UI navigation.
902
939
  */
903
- getParameterTree: _$alepha_server0.ActionPrimitiveFn<{
904
- response: _$typebox.TArray<_$typebox.TObject<{
905
- name: _$typebox.TString;
906
- path: _$typebox.TString;
907
- isLeaf: _$typebox.TBoolean;
908
- children: _$typebox.TArray<_$typebox.TAny>;
940
+ getParameterTree: import("alepha/server").ActionPrimitiveFn<{
941
+ response: import("typebox").TArray<import("typebox").TObject<{
942
+ name: import("typebox").TString;
943
+ path: import("typebox").TString;
944
+ isLeaf: import("typebox").TBoolean;
945
+ children: import("typebox").TArray<import("typebox").TAny>;
909
946
  }>>;
910
947
  }>;
911
948
  /**
912
949
  * List all unique parameter names.
913
950
  */
914
- listParameterNames: _$alepha_server0.ActionPrimitiveFn<{
915
- response: _$typebox.TObject<{
916
- names: _$typebox.TArray<_$typebox.TString>;
951
+ listParameterNames: import("alepha/server").ActionPrimitiveFn<{
952
+ response: import("typebox").TObject<{
953
+ names: import("typebox").TArray<import("typebox").TString>;
917
954
  }>;
918
955
  }>;
919
956
  /**
920
957
  * Get version history for a specific parameter.
921
958
  * Returns all versions with calculated status.
922
959
  */
923
- getHistory: _$alepha_server0.ActionPrimitiveFn<{
924
- params: _$typebox.TObject<{
925
- name: _$typebox.TString;
960
+ getHistory: import("alepha/server").ActionPrimitiveFn<{
961
+ params: import("typebox").TObject<{
962
+ name: import("typebox").TString;
926
963
  }>;
927
- query: _$typebox.TObject<{
928
- limit: _$typebox.TOptional<_$typebox.TInteger>;
929
- offset: _$typebox.TOptional<_$typebox.TInteger>;
964
+ query: import("typebox").TObject<{
965
+ limit: import("typebox").TOptional<import("typebox").TInteger>;
966
+ offset: import("typebox").TOptional<import("typebox").TInteger>;
930
967
  }>;
931
- response: _$typebox.TObject<{
932
- versions: _$typebox.TArray<_$typebox.TObject<{
933
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
934
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
935
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
936
- name: _$typebox.TString;
937
- content: _$typebox.TRecord<string, _$typebox.TAny>;
938
- schemaHash: _$typebox.TString;
939
- activationDate: _$typebox.TString;
940
- version: _$typebox.TInteger;
941
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
942
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
943
- creatorId: _$typebox.TOptional<_$typebox.TString>;
944
- creatorName: _$typebox.TOptional<_$typebox.TString>;
945
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
946
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
947
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
968
+ response: import("typebox").TObject<{
969
+ versions: import("typebox").TArray<import("typebox").TObject<{
970
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
971
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
972
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
973
+ name: import("typebox").TString;
974
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
975
+ schemaHash: import("typebox").TString;
976
+ activationDate: import("typebox").TString;
977
+ version: import("typebox").TInteger;
978
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
979
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
980
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
981
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
982
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
983
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
984
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
985
+ creator: import("typebox").TOptional<import("typebox").TObject<{
986
+ id: import("typebox").TString;
987
+ email: import("typebox").TOptional<import("typebox").TString>;
988
+ username: import("typebox").TOptional<import("typebox").TString>;
989
+ firstName: import("typebox").TOptional<import("typebox").TString>;
990
+ lastName: import("typebox").TOptional<import("typebox").TString>;
991
+ }>>;
948
992
  }>>;
949
993
  }>;
950
994
  }>;
@@ -953,209 +997,270 @@ declare class AdminParameterController {
953
997
  * Includes defaultValue and currentValue from the registered primitive
954
998
  * even if no versions exist in the database yet.
955
999
  */
956
- getCurrent: _$alepha_server0.ActionPrimitiveFn<{
957
- params: _$typebox.TObject<{
958
- name: _$typebox.TString;
1000
+ getCurrent: import("alepha/server").ActionPrimitiveFn<{
1001
+ params: import("typebox").TObject<{
1002
+ name: import("typebox").TString;
959
1003
  }>;
960
- response: _$typebox.TObject<{
961
- current: _$typebox.TOptional<_$typebox.TObject<{
962
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
963
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
964
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
965
- name: _$typebox.TString;
966
- content: _$typebox.TRecord<string, _$typebox.TAny>;
967
- schemaHash: _$typebox.TString;
968
- activationDate: _$typebox.TString;
969
- version: _$typebox.TInteger;
970
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
971
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
972
- creatorId: _$typebox.TOptional<_$typebox.TString>;
973
- creatorName: _$typebox.TOptional<_$typebox.TString>;
974
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
975
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
976
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1004
+ response: import("typebox").TObject<{
1005
+ current: import("typebox").TOptional<import("typebox").TObject<{
1006
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1007
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1008
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1009
+ name: import("typebox").TString;
1010
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1011
+ schemaHash: import("typebox").TString;
1012
+ activationDate: import("typebox").TString;
1013
+ version: import("typebox").TInteger;
1014
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1015
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1016
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1017
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1018
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1019
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1020
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1021
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1022
+ id: import("typebox").TString;
1023
+ email: import("typebox").TOptional<import("typebox").TString>;
1024
+ username: import("typebox").TOptional<import("typebox").TString>;
1025
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1026
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1027
+ }>>;
977
1028
  }>>;
978
- next: _$typebox.TOptional<_$typebox.TObject<{
979
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
980
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
981
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
982
- name: _$typebox.TString;
983
- content: _$typebox.TRecord<string, _$typebox.TAny>;
984
- schemaHash: _$typebox.TString;
985
- activationDate: _$typebox.TString;
986
- version: _$typebox.TInteger;
987
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
988
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
989
- creatorId: _$typebox.TOptional<_$typebox.TString>;
990
- creatorName: _$typebox.TOptional<_$typebox.TString>;
991
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
992
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
993
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1029
+ next: import("typebox").TOptional<import("typebox").TObject<{
1030
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1031
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1032
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1033
+ name: import("typebox").TString;
1034
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1035
+ schemaHash: import("typebox").TString;
1036
+ activationDate: import("typebox").TString;
1037
+ version: import("typebox").TInteger;
1038
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1039
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1040
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1041
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1042
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1043
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1044
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1045
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1046
+ id: import("typebox").TString;
1047
+ email: import("typebox").TOptional<import("typebox").TString>;
1048
+ username: import("typebox").TOptional<import("typebox").TString>;
1049
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1050
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1051
+ }>>;
994
1052
  }>>;
995
- defaultValue: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
996
- currentValue: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
997
- schema: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1053
+ defaultValue: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1054
+ currentValue: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1055
+ schema: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
998
1056
  }>;
999
1057
  }>;
1000
1058
  /**
1001
1059
  * Get a specific version of a parameter.
1002
1060
  */
1003
- getVersion: _$alepha_server0.ActionPrimitiveFn<{
1004
- params: _$typebox.TObject<{
1005
- name: _$typebox.TString;
1006
- version: _$typebox.TInteger;
1061
+ getVersion: import("alepha/server").ActionPrimitiveFn<{
1062
+ params: import("typebox").TObject<{
1063
+ name: import("typebox").TString;
1064
+ version: import("typebox").TInteger;
1007
1065
  }>;
1008
- response: _$typebox.TObject<{
1009
- parameter: _$typebox.TOptional<_$typebox.TObject<{
1010
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1011
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1012
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1013
- name: _$typebox.TString;
1014
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1015
- schemaHash: _$typebox.TString;
1016
- activationDate: _$typebox.TString;
1017
- version: _$typebox.TInteger;
1018
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1019
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1020
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1021
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1022
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1023
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
1024
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1066
+ response: import("typebox").TObject<{
1067
+ parameter: import("typebox").TOptional<import("typebox").TObject<{
1068
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1069
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1070
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1071
+ name: import("typebox").TString;
1072
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1073
+ schemaHash: import("typebox").TString;
1074
+ activationDate: import("typebox").TString;
1075
+ version: import("typebox").TInteger;
1076
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1077
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1078
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1079
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1080
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1081
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1082
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1083
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1084
+ id: import("typebox").TString;
1085
+ email: import("typebox").TOptional<import("typebox").TString>;
1086
+ username: import("typebox").TOptional<import("typebox").TString>;
1087
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1088
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1089
+ }>>;
1025
1090
  }>>;
1026
1091
  }>;
1027
1092
  }>;
1028
1093
  /**
1029
1094
  * Create a new parameter version.
1030
1095
  */
1031
- createVersion: _$alepha_server0.ActionPrimitiveFn<{
1032
- params: _$typebox.TObject<{
1033
- name: _$typebox.TString;
1096
+ createVersion: import("alepha/server").ActionPrimitiveFn<{
1097
+ params: import("typebox").TObject<{
1098
+ name: import("typebox").TString;
1034
1099
  }>;
1035
- body: _$typebox.TObject<{
1036
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1037
- schemaHash: _$typebox.TString;
1038
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1039
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1040
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1041
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1042
- activationDate: _$typebox.TOptional<_$typebox.TString>;
1100
+ body: import("typebox").TObject<{
1101
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1102
+ schemaHash: import("typebox").TString;
1103
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1104
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1105
+ activationDate: import("typebox").TOptional<import("typebox").TString>;
1043
1106
  }>;
1044
- response: _$typebox.TObject<{
1045
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1046
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1047
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1048
- name: _$typebox.TString;
1049
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1050
- schemaHash: _$typebox.TString;
1051
- activationDate: _$typebox.TString;
1052
- version: _$typebox.TInteger;
1053
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1054
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1055
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1056
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1057
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1058
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
1059
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1107
+ response: import("typebox").TObject<{
1108
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1109
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1110
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1111
+ name: import("typebox").TString;
1112
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1113
+ schemaHash: import("typebox").TString;
1114
+ activationDate: import("typebox").TString;
1115
+ version: import("typebox").TInteger;
1116
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1117
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1118
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1119
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1120
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1121
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1122
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1123
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1124
+ id: import("typebox").TString;
1125
+ email: import("typebox").TOptional<import("typebox").TString>;
1126
+ username: import("typebox").TOptional<import("typebox").TString>;
1127
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1128
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1129
+ }>>;
1060
1130
  }>;
1061
1131
  }>;
1062
1132
  /**
1063
1133
  * Rollback to a previous version.
1064
1134
  */
1065
- rollback: _$alepha_server0.ActionPrimitiveFn<{
1066
- params: _$typebox.TObject<{
1067
- name: _$typebox.TString;
1135
+ rollback: import("alepha/server").ActionPrimitiveFn<{
1136
+ params: import("typebox").TObject<{
1137
+ name: import("typebox").TString;
1068
1138
  }>;
1069
- body: _$typebox.TObject<{
1070
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1071
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1072
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1073
- targetVersion: _$typebox.TInteger;
1139
+ body: import("typebox").TObject<{
1140
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1141
+ targetVersion: import("typebox").TInteger;
1074
1142
  }>;
1075
- response: _$typebox.TObject<{
1076
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1077
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1078
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1079
- name: _$typebox.TString;
1080
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1081
- schemaHash: _$typebox.TString;
1082
- activationDate: _$typebox.TString;
1083
- version: _$typebox.TInteger;
1084
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1085
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1086
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1087
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1088
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1089
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
1090
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1143
+ response: import("typebox").TObject<{
1144
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1145
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1146
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1147
+ name: import("typebox").TString;
1148
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1149
+ schemaHash: import("typebox").TString;
1150
+ activationDate: import("typebox").TString;
1151
+ version: import("typebox").TInteger;
1152
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1153
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1154
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1155
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1156
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1157
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1158
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1159
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1160
+ id: import("typebox").TString;
1161
+ email: import("typebox").TOptional<import("typebox").TString>;
1162
+ username: import("typebox").TOptional<import("typebox").TString>;
1163
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1164
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1165
+ }>>;
1091
1166
  }>;
1092
1167
  }>;
1093
1168
  /**
1094
1169
  * Activate a scheduled version immediately.
1095
1170
  * Creates a new version with the same content but immediate activation.
1096
1171
  */
1097
- activateNow: _$alepha_server0.ActionPrimitiveFn<{
1098
- params: _$typebox.TObject<{
1099
- name: _$typebox.TString;
1172
+ activateNow: import("alepha/server").ActionPrimitiveFn<{
1173
+ params: import("typebox").TObject<{
1174
+ name: import("typebox").TString;
1100
1175
  }>;
1101
- body: _$typebox.TObject<{
1102
- version: _$typebox.TInteger;
1103
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1104
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1176
+ body: import("typebox").TObject<{
1177
+ version: import("typebox").TInteger;
1105
1178
  }>;
1106
- response: _$typebox.TObject<{
1107
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1108
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1109
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1110
- name: _$typebox.TString;
1111
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1112
- schemaHash: _$typebox.TString;
1113
- activationDate: _$typebox.TString;
1114
- version: _$typebox.TInteger;
1115
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1116
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1117
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1118
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1119
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1120
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
1121
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1179
+ response: import("typebox").TObject<{
1180
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1181
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1182
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1183
+ name: import("typebox").TString;
1184
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1185
+ schemaHash: import("typebox").TString;
1186
+ activationDate: import("typebox").TString;
1187
+ version: import("typebox").TInteger;
1188
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1189
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1190
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1191
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1192
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1193
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1194
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1195
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1196
+ id: import("typebox").TString;
1197
+ email: import("typebox").TOptional<import("typebox").TString>;
1198
+ username: import("typebox").TOptional<import("typebox").TString>;
1199
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1200
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1201
+ }>>;
1122
1202
  }>;
1123
1203
  }>;
1124
1204
  /**
1125
1205
  * Delete all versions of a parameter.
1126
1206
  */
1127
- deleteParameter: _$alepha_server0.ActionPrimitiveFn<{
1128
- params: _$typebox.TObject<{
1129
- name: _$typebox.TString;
1207
+ deleteParameter: import("alepha/server").ActionPrimitiveFn<{
1208
+ params: import("typebox").TObject<{
1209
+ name: import("typebox").TString;
1130
1210
  }>;
1131
- response: _$typebox.TObject<{
1132
- ok: _$typebox.TBoolean;
1133
- id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
1134
- count: _$typebox.TOptional<_$typebox.TNumber>;
1211
+ response: import("typebox").TObject<{
1212
+ ok: import("typebox").TBoolean;
1213
+ id: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TString, import("typebox").TInteger]>>;
1214
+ count: import("typebox").TOptional<import("typebox").TNumber>;
1135
1215
  }>;
1136
1216
  }>;
1137
1217
  /**
1138
1218
  * Delete many parameters (all versions of each) in one request.
1139
1219
  */
1140
- deleteParameters: _$alepha_server0.ActionPrimitiveFn<{
1141
- body: _$typebox.TObject<{
1142
- names: _$typebox.TArray<_$typebox.TString>;
1220
+ deleteParameters: import("alepha/server").ActionPrimitiveFn<{
1221
+ body: import("typebox").TObject<{
1222
+ names: import("typebox").TArray<import("typebox").TString>;
1143
1223
  }>;
1144
- response: _$typebox.TObject<{
1145
- deleted: _$typebox.TArray<_$typebox.TString>;
1224
+ response: import("typebox").TObject<{
1225
+ deleted: import("typebox").TArray<import("typebox").TString>;
1146
1226
  }>;
1147
1227
  }>;
1228
+ /**
1229
+ * Derive a human-readable creator name from the authenticated session token.
1230
+ *
1231
+ * The name is snapshotted onto the version at write time rather than joined
1232
+ * from the users table on read: this keeps the parameters module free of any
1233
+ * dependency on the users module (no import, no circular-import risk). The
1234
+ * trade-off is that the stored name does not follow later user renames.
1235
+ *
1236
+ * Precedence: `username` → `email`. The token's `name` is intentionally
1237
+ * skipped: the security layer fills it with a placeholder ("Anonymous User")
1238
+ * when the issuer supplies no name, which would otherwise be snapshotted.
1239
+ */
1240
+ protected creatorNameOf(user?: {
1241
+ username?: string;
1242
+ email?: string;
1243
+ }): string | undefined;
1244
+ /**
1245
+ * Record a parameter mutation via the `ParameterAudits` holder — best-effort.
1246
+ *
1247
+ * `ParameterAudits` is resolved lazily from the container; when it is not
1248
+ * registered, auditing is silently skipped. Actor (userId / email / realm),
1249
+ * IP, and request id are auto-filled by `AuditService` from the request
1250
+ * context. Failures never break the underlying operation.
1251
+ */
1252
+ protected audit(action: "create" | "rollback" | "activate" | "delete", name: string, metadata?: Record<string, unknown>): Promise<void>;
1148
1253
  }
1149
1254
  //#endregion
1150
1255
  //#region ../../src/api/parameters/schemas/activateParameterBodySchema.d.ts
1151
1256
  /**
1152
1257
  * Activate parameter body schema.
1153
- * Uses t.pick for version and creator fields.
1258
+ *
1259
+ * Creator fields are omitted; the controller captures the authenticated user
1260
+ * server-side.
1154
1261
  */
1155
- declare const activateParameterBodySchema: _$typebox.TObject<{
1156
- version: _$typebox.TInteger;
1157
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1158
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1262
+ declare const activateParameterBodySchema: import("typebox").TObject<{
1263
+ version: import("typebox").TInteger;
1159
1264
  }>;
1160
1265
  type ActivateParameterBody = Static<typeof activateParameterBodySchema>;
1161
1266
  //#endregion
@@ -1163,15 +1268,16 @@ type ActivateParameterBody = Static<typeof activateParameterBodySchema>;
1163
1268
  /**
1164
1269
  * Create parameter version body schema.
1165
1270
  * Uses t.pick to derive from entity, with required fields made non-optional.
1271
+ *
1272
+ * Creator fields are intentionally omitted: the controller captures the
1273
+ * authenticated user server-side, so they cannot be spoofed by the client.
1166
1274
  */
1167
- declare const createParameterVersionBodySchema: _$typebox.TObject<{
1168
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1169
- schemaHash: _$typebox.TString;
1170
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1171
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1172
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1173
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1174
- activationDate: _$typebox.TOptional<_$typebox.TString>;
1275
+ declare const createParameterVersionBodySchema: import("typebox").TObject<{
1276
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1277
+ schemaHash: import("typebox").TString;
1278
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1279
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1280
+ activationDate: import("typebox").TOptional<import("typebox").TString>;
1175
1281
  }>;
1176
1282
  type CreateParameterVersionBody = Static<typeof createParameterVersionBodySchema>;
1177
1283
  //#endregion
@@ -1180,44 +1286,58 @@ type CreateParameterVersionBody = Static<typeof createParameterVersionBodySchema
1180
1286
  * Current parameter response schema.
1181
1287
  * Includes current version, next scheduled version, and defaults.
1182
1288
  */
1183
- declare const parameterCurrentResponseSchema: _$typebox.TObject<{
1184
- current: _$typebox.TOptional<_$typebox.TObject<{
1185
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1186
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1187
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1188
- name: _$typebox.TString;
1189
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1190
- schemaHash: _$typebox.TString;
1191
- activationDate: _$typebox.TString;
1192
- version: _$typebox.TInteger;
1193
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1194
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1195
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1196
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1197
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1198
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
1199
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1289
+ declare const parameterCurrentResponseSchema: import("typebox").TObject<{
1290
+ current: import("typebox").TOptional<import("typebox").TObject<{
1291
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1292
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1293
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1294
+ name: import("typebox").TString;
1295
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1296
+ schemaHash: import("typebox").TString;
1297
+ activationDate: import("typebox").TString;
1298
+ version: import("typebox").TInteger;
1299
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1300
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1301
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1302
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1303
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1304
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1305
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1306
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1307
+ id: import("typebox").TString;
1308
+ email: import("typebox").TOptional<import("typebox").TString>;
1309
+ username: import("typebox").TOptional<import("typebox").TString>;
1310
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1311
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1312
+ }>>;
1200
1313
  }>>;
1201
- next: _$typebox.TOptional<_$typebox.TObject<{
1202
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1203
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1204
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1205
- name: _$typebox.TString;
1206
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1207
- schemaHash: _$typebox.TString;
1208
- activationDate: _$typebox.TString;
1209
- version: _$typebox.TInteger;
1210
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1211
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1212
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1213
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1214
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1215
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
1216
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1314
+ next: import("typebox").TOptional<import("typebox").TObject<{
1315
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1316
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1317
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1318
+ name: import("typebox").TString;
1319
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1320
+ schemaHash: import("typebox").TString;
1321
+ activationDate: import("typebox").TString;
1322
+ version: import("typebox").TInteger;
1323
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1324
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1325
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1326
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1327
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1328
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1329
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1330
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1331
+ id: import("typebox").TString;
1332
+ email: import("typebox").TOptional<import("typebox").TString>;
1333
+ username: import("typebox").TOptional<import("typebox").TString>;
1334
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1335
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1336
+ }>>;
1217
1337
  }>>;
1218
- defaultValue: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1219
- currentValue: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1220
- schema: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1338
+ defaultValue: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1339
+ currentValue: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1340
+ schema: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1221
1341
  }>;
1222
1342
  type ParameterCurrentResponse = Static<typeof parameterCurrentResponseSchema>;
1223
1343
  //#endregion
@@ -1225,23 +1345,30 @@ type ParameterCurrentResponse = Static<typeof parameterCurrentResponseSchema>;
1225
1345
  /**
1226
1346
  * Parameter history response schema.
1227
1347
  */
1228
- declare const parameterHistoryResponseSchema: _$typebox.TObject<{
1229
- versions: _$typebox.TArray<_$typebox.TObject<{
1230
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1231
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1232
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1233
- name: _$typebox.TString;
1234
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1235
- schemaHash: _$typebox.TString;
1236
- activationDate: _$typebox.TString;
1237
- version: _$typebox.TInteger;
1238
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1239
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1240
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1241
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1242
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1243
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
1244
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1348
+ declare const parameterHistoryResponseSchema: import("typebox").TObject<{
1349
+ versions: import("typebox").TArray<import("typebox").TObject<{
1350
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1351
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1352
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1353
+ name: import("typebox").TString;
1354
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1355
+ schemaHash: import("typebox").TString;
1356
+ activationDate: import("typebox").TString;
1357
+ version: import("typebox").TInteger;
1358
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1359
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1360
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1361
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1362
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1363
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1364
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1365
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1366
+ id: import("typebox").TString;
1367
+ email: import("typebox").TOptional<import("typebox").TString>;
1368
+ username: import("typebox").TOptional<import("typebox").TString>;
1369
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1370
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1371
+ }>>;
1245
1372
  }>>;
1246
1373
  }>;
1247
1374
  type ParameterHistoryResponse = Static<typeof parameterHistoryResponseSchema>;
@@ -1251,16 +1378,16 @@ type ParameterHistoryResponse = Static<typeof parameterHistoryResponseSchema>;
1251
1378
  * Parameter name param schema.
1252
1379
  * Uses t.pick from entity for consistency.
1253
1380
  */
1254
- declare const parameterNameParamSchema: _$typebox.TObject<{
1255
- name: _$typebox.TString;
1381
+ declare const parameterNameParamSchema: import("typebox").TObject<{
1382
+ name: import("typebox").TString;
1256
1383
  }>;
1257
1384
  //#endregion
1258
1385
  //#region ../../src/api/parameters/schemas/parameterNamesResponseSchema.d.ts
1259
1386
  /**
1260
1387
  * Parameter names list response schema.
1261
1388
  */
1262
- declare const parameterNamesResponseSchema: _$typebox.TObject<{
1263
- names: _$typebox.TArray<_$typebox.TString>;
1389
+ declare const parameterNamesResponseSchema: import("typebox").TObject<{
1390
+ names: import("typebox").TArray<import("typebox").TString>;
1264
1391
  }>;
1265
1392
  type ParameterNamesResponse = Static<typeof parameterNamesResponseSchema>;
1266
1393
  //#endregion
@@ -1269,23 +1396,33 @@ type ParameterNamesResponse = Static<typeof parameterNamesResponseSchema>;
1269
1396
  * Parameter response schema for API responses.
1270
1397
  * Extends the entity schema with a calculated status field.
1271
1398
  * Status is derived from activationDate at query time, not stored.
1399
+ *
1400
+ * `creator` is embedded on read via a best-effort left join on `creatorId`
1401
+ * (see `parameterCreatorSummarySchema`); it is not a stored column.
1272
1402
  */
1273
- declare const parameterResponseSchema: _$typebox.TObject<{
1274
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1275
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1276
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1277
- name: _$typebox.TString;
1278
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1279
- schemaHash: _$typebox.TString;
1280
- activationDate: _$typebox.TString;
1281
- version: _$typebox.TInteger;
1282
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1283
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1284
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1285
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1286
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1287
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
1288
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1403
+ declare const parameterResponseSchema: import("typebox").TObject<{
1404
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1405
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1406
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1407
+ name: import("typebox").TString;
1408
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1409
+ schemaHash: import("typebox").TString;
1410
+ activationDate: import("typebox").TString;
1411
+ version: import("typebox").TInteger;
1412
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1413
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1414
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1415
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1416
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1417
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1418
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1419
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1420
+ id: import("typebox").TString;
1421
+ email: import("typebox").TOptional<import("typebox").TString>;
1422
+ username: import("typebox").TOptional<import("typebox").TString>;
1423
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1424
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1425
+ }>>;
1289
1426
  }>;
1290
1427
  type ParameterResponse = Static<typeof parameterResponseSchema>;
1291
1428
  //#endregion
@@ -1294,32 +1431,39 @@ type ParameterResponse = Static<typeof parameterResponseSchema>;
1294
1431
  * Parameter name and version param schema.
1295
1432
  * Uses t.pick from entity for consistency.
1296
1433
  */
1297
- declare const parameterVersionParamSchema: _$typebox.TObject<{
1298
- name: _$typebox.TString;
1299
- version: _$typebox.TInteger;
1434
+ declare const parameterVersionParamSchema: import("typebox").TObject<{
1435
+ name: import("typebox").TString;
1436
+ version: import("typebox").TInteger;
1300
1437
  }>;
1301
1438
  //#endregion
1302
1439
  //#region ../../src/api/parameters/schemas/parameterVersionResponseSchema.d.ts
1303
1440
  /**
1304
1441
  * Parameter version response schema.
1305
1442
  */
1306
- declare const parameterVersionResponseSchema: _$typebox.TObject<{
1307
- parameter: _$typebox.TOptional<_$typebox.TObject<{
1308
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1309
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1310
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1311
- name: _$typebox.TString;
1312
- content: _$typebox.TRecord<string, _$typebox.TAny>;
1313
- schemaHash: _$typebox.TString;
1314
- activationDate: _$typebox.TString;
1315
- version: _$typebox.TInteger;
1316
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1317
- tags: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
1318
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1319
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1320
- previousContent: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1321
- migrationLog: _$typebox.TOptional<_$typebox.TString>;
1322
- status: _$typebox.TUnsafe<"expired" | "current" | "next" | "future">;
1443
+ declare const parameterVersionResponseSchema: import("typebox").TObject<{
1444
+ parameter: import("typebox").TOptional<import("typebox").TObject<{
1445
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1446
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1447
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1448
+ name: import("typebox").TString;
1449
+ content: import("typebox").TRecord<string, import("typebox").TAny>;
1450
+ schemaHash: import("typebox").TString;
1451
+ activationDate: import("typebox").TString;
1452
+ version: import("typebox").TInteger;
1453
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1454
+ tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1455
+ creatorId: import("typebox").TOptional<import("typebox").TString>;
1456
+ creatorName: import("typebox").TOptional<import("typebox").TString>;
1457
+ previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1458
+ migrationLog: import("typebox").TOptional<import("typebox").TString>;
1459
+ status: import("typebox").TUnsafe<"expired" | "current" | "next" | "future">;
1460
+ creator: import("typebox").TOptional<import("typebox").TObject<{
1461
+ id: import("typebox").TString;
1462
+ email: import("typebox").TOptional<import("typebox").TString>;
1463
+ username: import("typebox").TOptional<import("typebox").TString>;
1464
+ firstName: import("typebox").TOptional<import("typebox").TString>;
1465
+ lastName: import("typebox").TOptional<import("typebox").TString>;
1466
+ }>>;
1323
1467
  }>>;
1324
1468
  }>;
1325
1469
  type ParameterVersionResponse = Static<typeof parameterVersionResponseSchema>;
@@ -1327,13 +1471,13 @@ type ParameterVersionResponse = Static<typeof parameterVersionResponseSchema>;
1327
1471
  //#region ../../src/api/parameters/schemas/rollbackParameterBodySchema.d.ts
1328
1472
  /**
1329
1473
  * Rollback parameter body schema.
1330
- * Uses t.pick for creator fields, adds targetVersion.
1474
+ *
1475
+ * Creator fields are omitted; the controller captures the authenticated user
1476
+ * server-side.
1331
1477
  */
1332
- declare const rollbackParameterBodySchema: _$typebox.TObject<{
1333
- changeDescription: _$typebox.TOptional<_$typebox.TString>;
1334
- creatorId: _$typebox.TOptional<_$typebox.TString>;
1335
- creatorName: _$typebox.TOptional<_$typebox.TString>;
1336
- targetVersion: _$typebox.TInteger;
1478
+ declare const rollbackParameterBodySchema: import("typebox").TObject<{
1479
+ changeDescription: import("typebox").TOptional<import("typebox").TString>;
1480
+ targetVersion: import("typebox").TInteger;
1337
1481
  }>;
1338
1482
  type RollbackParameterBody = Static<typeof rollbackParameterBodySchema>;
1339
1483
  //#endregion
@@ -1350,7 +1494,7 @@ type RollbackParameterBody = Static<typeof rollbackParameterBodySchema>;
1350
1494
  *
1351
1495
  * @module alepha.api.parameters
1352
1496
  */
1353
- declare const AlephaApiParameters: _$alepha.Service<_$alepha.Module>;
1497
+ declare const AlephaApiParameters: import("alepha").Service<import("alepha").Module>;
1354
1498
  //#endregion
1355
- export { $parameter, ActivateParameterBody, AdminParameterController, AlephaApiParameters, CreateParameterVersionBody, Parameter, ParameterChangePayload, ParameterCurrentResponse, ParameterHistoryResponse, ParameterNamesResponse, ParameterPrimitive, ParameterPrimitiveOptions, ParameterProvider, ParameterResponse, ParameterStatus, ParameterTreeNode, ParameterVersionResponse, ParameterWithStatus, RollbackParameterBody, SaveParameterOptions, SetParameterOptions, activateParameterBodySchema, createParameterVersionBodySchema, parameterCurrentResponseSchema, parameterHistoryResponseSchema, parameterNameParamSchema, parameterNamesResponseSchema, parameterResponseSchema, parameterStatusSchema, parameterTreeNodeSchema, parameterVersionParamSchema, parameterVersionResponseSchema, parameters, rollbackParameterBodySchema };
1499
+ export { $parameter, ActivateParameterBody, AdminParameterController, AlephaApiParameters, CreateParameterVersionBody, Parameter, ParameterAudits, ParameterChangePayload, ParameterCurrentResponse, ParameterHistoryResponse, ParameterNamesResponse, ParameterPrimitive, ParameterPrimitiveOptions, ParameterProvider, ParameterResponse, ParameterStatus, ParameterTreeNode, ParameterVersionResponse, ParameterWithStatus, RollbackParameterBody, SaveParameterOptions, SetParameterOptions, activateParameterBodySchema, createParameterVersionBodySchema, parameterCurrentResponseSchema, parameterHistoryResponseSchema, parameterNameParamSchema, parameterNamesResponseSchema, parameterResponseSchema, parameterStatusSchema, parameterTreeNodeSchema, parameterVersionParamSchema, parameterVersionResponseSchema, parameters, rollbackParameterBodySchema };
1356
1500
  //# sourceMappingURL=index.d.ts.map