alepha 0.21.2 → 0.23.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 (519) 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 +282 -285
  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 +217 -222
  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 +1106 -1005
  49. package/dist/api/users/index.d.ts.map +1 -1
  50. package/dist/api/users/index.js +307 -64
  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 +137 -143
  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 +458 -249
  88. package/dist/cli/core/index.d.ts.map +1 -1
  89. package/dist/cli/core/index.js +372 -660
  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 +20 -17
  95. package/dist/cli/i18n/index.d.ts.map +1 -1
  96. package/dist/cli/i18n/index.js +45 -11
  97. package/dist/cli/i18n/index.js.map +1 -1
  98. package/dist/cli/platform/index.d.ts +126 -1342
  99. package/dist/cli/platform/index.d.ts.map +1 -1
  100. package/dist/cli/platform/index.js +136 -2374
  101. package/dist/cli/platform/index.js.map +1 -1
  102. package/dist/cli/platform-lib/index.d.ts +1472 -0
  103. package/dist/cli/platform-lib/index.d.ts.map +1 -0
  104. package/dist/cli/platform-lib/index.js +2660 -0
  105. package/dist/cli/platform-lib/index.js.map +1 -0
  106. package/dist/cli/vendor/index.d.ts +17 -21
  107. package/dist/cli/vendor/index.d.ts.map +1 -1
  108. package/dist/cli/vendor/index.js.map +1 -1
  109. package/dist/command/index.d.ts +20 -19
  110. package/dist/command/index.d.ts.map +1 -1
  111. package/dist/command/index.js +39 -10
  112. package/dist/command/index.js.map +1 -1
  113. package/dist/{containers → container}/core/index.d.ts +13 -15
  114. package/dist/container/core/index.d.ts.map +1 -0
  115. package/dist/{containers → container}/core/index.js +23 -14
  116. package/dist/container/core/index.js.map +1 -0
  117. package/dist/{containers → container}/core/index.workerd.js +37 -22
  118. package/dist/container/core/index.workerd.js.map +1 -0
  119. package/dist/core/index.browser.js +27 -1
  120. package/dist/core/index.browser.js.map +1 -1
  121. package/dist/core/index.d.ts +48 -24
  122. package/dist/core/index.d.ts.map +1 -1
  123. package/dist/core/index.js +27 -1
  124. package/dist/core/index.js.map +1 -1
  125. package/dist/core/index.native.js +27 -1
  126. package/dist/core/index.native.js.map +1 -1
  127. package/dist/core/index.workerd.js +27 -1
  128. package/dist/core/index.workerd.js.map +1 -1
  129. package/dist/crypto/index.browser.js.map +1 -1
  130. package/dist/crypto/index.d.ts +5 -8
  131. package/dist/crypto/index.d.ts.map +1 -1
  132. package/dist/crypto/index.js.map +1 -1
  133. package/dist/datetime/index.d.ts +3 -4
  134. package/dist/datetime/index.d.ts.map +1 -1
  135. package/dist/datetime/index.js.map +1 -1
  136. package/dist/email/brevo/index.d.ts +2 -4
  137. package/dist/email/brevo/index.d.ts.map +1 -1
  138. package/dist/email/brevo/index.js.map +1 -1
  139. package/dist/email/cloudflare/index.d.ts +20 -7
  140. package/dist/email/cloudflare/index.d.ts.map +1 -1
  141. package/dist/email/cloudflare/index.js +46 -9
  142. package/dist/email/cloudflare/index.js.map +1 -1
  143. package/dist/email/core/index.d.ts +6 -9
  144. package/dist/email/core/index.d.ts.map +1 -1
  145. package/dist/email/core/index.js.map +1 -1
  146. package/dist/email/core/index.workerd.js.map +1 -1
  147. package/dist/email/smtp/index.d.ts +10 -13
  148. package/dist/email/smtp/index.d.ts.map +1 -1
  149. package/dist/email/smtp/index.js +107 -32
  150. package/dist/email/smtp/index.js.map +1 -1
  151. package/dist/fake/index.d.ts +1 -2
  152. package/dist/fake/index.d.ts.map +1 -1
  153. package/dist/fake/index.js.map +1 -1
  154. package/dist/lock/core/index.d.ts +9 -14
  155. package/dist/lock/core/index.d.ts.map +1 -1
  156. package/dist/lock/core/index.js.map +1 -1
  157. package/dist/lock/redis/index.d.ts +2 -4
  158. package/dist/lock/redis/index.d.ts.map +1 -1
  159. package/dist/lock/redis/index.js.map +1 -1
  160. package/dist/logger/index.d.ts +105 -76
  161. package/dist/logger/index.d.ts.map +1 -1
  162. package/dist/logger/index.js +196 -174
  163. package/dist/logger/index.js.map +1 -1
  164. package/dist/mcp/index.d.ts +25 -20
  165. package/dist/mcp/index.d.ts.map +1 -1
  166. package/dist/mcp/index.js +23 -0
  167. package/dist/mcp/index.js.map +1 -1
  168. package/dist/orm/core/index.browser.js.map +1 -1
  169. package/dist/orm/core/index.bun.js +19 -1
  170. package/dist/orm/core/index.bun.js.map +1 -1
  171. package/dist/orm/core/index.d.ts +76 -62
  172. package/dist/orm/core/index.d.ts.map +1 -1
  173. package/dist/orm/core/index.js +20 -2
  174. package/dist/orm/core/index.js.map +1 -1
  175. package/dist/orm/postgres/index.bun.js.map +1 -1
  176. package/dist/orm/postgres/index.d.ts +28 -20
  177. package/dist/orm/postgres/index.d.ts.map +1 -1
  178. package/dist/orm/postgres/index.js.map +1 -1
  179. package/dist/queue/core/index.d.ts +12 -15
  180. package/dist/queue/core/index.d.ts.map +1 -1
  181. package/dist/queue/core/index.js.map +1 -1
  182. package/dist/queue/core/index.workerd.js.map +1 -1
  183. package/dist/queue/redis/index.d.ts +3 -5
  184. package/dist/queue/redis/index.d.ts.map +1 -1
  185. package/dist/queue/redis/index.js.map +1 -1
  186. package/dist/react/auth/index.browser.js +9 -2
  187. package/dist/react/auth/index.browser.js.map +1 -1
  188. package/dist/react/auth/index.d.ts +14 -9
  189. package/dist/react/auth/index.d.ts.map +1 -1
  190. package/dist/react/auth/index.js +9 -2
  191. package/dist/react/auth/index.js.map +1 -1
  192. package/dist/react/core/index.d.ts +7 -8
  193. package/dist/react/core/index.d.ts.map +1 -1
  194. package/dist/react/core/index.js +6 -3
  195. package/dist/react/core/index.js.map +1 -1
  196. package/dist/react/form/index.d.ts +2 -5
  197. package/dist/react/form/index.d.ts.map +1 -1
  198. package/dist/react/form/index.js +16 -15
  199. package/dist/react/form/index.js.map +1 -1
  200. package/dist/react/head/index.browser.js.map +1 -1
  201. package/dist/react/head/index.d.ts +2 -4
  202. package/dist/react/head/index.d.ts.map +1 -1
  203. package/dist/react/head/index.js.map +1 -1
  204. package/dist/react/i18n/index.d.ts +90 -11
  205. package/dist/react/i18n/index.d.ts.map +1 -1
  206. package/dist/react/i18n/index.js +147 -11
  207. package/dist/react/i18n/index.js.map +1 -1
  208. package/dist/react/intro/index.d.ts +1 -2
  209. package/dist/react/intro/index.d.ts.map +1 -1
  210. package/dist/react/intro/index.js +2 -2
  211. package/dist/react/intro/index.js.map +1 -1
  212. package/dist/react/router/index.browser.js +193 -24
  213. package/dist/react/router/index.browser.js.map +1 -1
  214. package/dist/react/router/index.d.ts +434 -222
  215. package/dist/react/router/index.d.ts.map +1 -1
  216. package/dist/react/router/index.js +249 -35
  217. package/dist/react/router/index.js.map +1 -1
  218. package/dist/react/sitemap/index.browser.js +35 -0
  219. package/dist/react/sitemap/index.browser.js.map +1 -0
  220. package/dist/react/sitemap/index.d.ts +92 -0
  221. package/dist/react/sitemap/index.d.ts.map +1 -0
  222. package/dist/react/sitemap/index.js +131 -0
  223. package/dist/react/sitemap/index.js.map +1 -0
  224. package/dist/react/testing/index.d.ts +1 -2
  225. package/dist/react/testing/index.d.ts.map +1 -1
  226. package/dist/react/testing/index.js +16 -17
  227. package/dist/react/testing/index.js.map +1 -1
  228. package/dist/react/ui/index.d.ts +20 -25
  229. package/dist/react/ui/index.d.ts.map +1 -1
  230. package/dist/react/ui/index.js.map +1 -1
  231. package/dist/redis/index.bun.js.map +1 -1
  232. package/dist/redis/index.d.ts +17 -19
  233. package/dist/redis/index.d.ts.map +1 -1
  234. package/dist/redis/index.js.map +1 -1
  235. package/dist/retry/index.d.ts +2 -4
  236. package/dist/retry/index.d.ts.map +1 -1
  237. package/dist/retry/index.js.map +1 -1
  238. package/dist/router/index.d.ts.map +1 -1
  239. package/dist/router/index.js.map +1 -1
  240. package/dist/scheduler/index.d.ts +10 -13
  241. package/dist/scheduler/index.d.ts.map +1 -1
  242. package/dist/scheduler/index.js.map +1 -1
  243. package/dist/scheduler/index.workerd.js.map +1 -1
  244. package/dist/security/index.browser.js.map +1 -1
  245. package/dist/security/index.d.ts +45 -48
  246. package/dist/security/index.d.ts.map +1 -1
  247. package/dist/security/index.js.map +1 -1
  248. package/dist/server/auth/index.browser.js.map +1 -1
  249. package/dist/server/auth/index.d.ts +272 -173
  250. package/dist/server/auth/index.d.ts.map +1 -1
  251. package/dist/server/auth/index.js +1608 -15
  252. package/dist/server/auth/index.js.map +1 -1
  253. package/dist/server/cookies/index.browser.js.map +1 -1
  254. package/dist/server/cookies/index.d.ts +20 -7
  255. package/dist/server/cookies/index.d.ts.map +1 -1
  256. package/dist/server/cookies/index.js +22 -3
  257. package/dist/server/cookies/index.js.map +1 -1
  258. package/dist/server/core/index.browser.js.map +1 -1
  259. package/dist/server/core/index.d.ts +106 -73
  260. package/dist/server/core/index.d.ts.map +1 -1
  261. package/dist/server/core/index.js +44 -0
  262. package/dist/server/core/index.js.map +1 -1
  263. package/dist/server/cors/index.d.ts +11 -14
  264. package/dist/server/cors/index.d.ts.map +1 -1
  265. package/dist/server/cors/index.js.map +1 -1
  266. package/dist/server/etag/index.d.ts +6 -9
  267. package/dist/server/etag/index.d.ts.map +1 -1
  268. package/dist/server/etag/index.js.map +1 -1
  269. package/dist/server/health/index.d.ts +18 -21
  270. package/dist/server/health/index.d.ts.map +1 -1
  271. package/dist/server/health/index.js.map +1 -1
  272. package/dist/server/links/index.browser.js +2 -0
  273. package/dist/server/links/index.browser.js.map +1 -1
  274. package/dist/server/links/index.d.ts +63 -67
  275. package/dist/server/links/index.d.ts.map +1 -1
  276. package/dist/server/links/index.js +2 -0
  277. package/dist/server/links/index.js.map +1 -1
  278. package/dist/server/metrics/index.d.ts +5 -7
  279. package/dist/server/metrics/index.d.ts.map +1 -1
  280. package/dist/server/metrics/index.js.map +1 -1
  281. package/dist/server/proxy/index.d.ts +3 -5
  282. package/dist/server/proxy/index.d.ts.map +1 -1
  283. package/dist/server/proxy/index.js.map +1 -1
  284. package/dist/server/rate-limit/index.d.ts +10 -13
  285. package/dist/server/rate-limit/index.d.ts.map +1 -1
  286. package/dist/server/rate-limit/index.js.map +1 -1
  287. package/dist/server/static/index.d.ts +3 -5
  288. package/dist/server/static/index.d.ts.map +1 -1
  289. package/dist/server/static/index.js.map +1 -1
  290. package/dist/server/swagger/index.d.ts +5 -8
  291. package/dist/server/swagger/index.d.ts.map +1 -1
  292. package/dist/server/swagger/index.js.map +1 -1
  293. package/dist/sms/index.d.ts +3 -5
  294. package/dist/sms/index.d.ts.map +1 -1
  295. package/dist/sms/index.js.map +1 -1
  296. package/dist/system/index.browser.js.map +1 -1
  297. package/dist/system/index.d.ts +2 -4
  298. package/dist/system/index.d.ts.map +1 -1
  299. package/dist/system/index.js.map +1 -1
  300. package/dist/system/index.workerd.js.map +1 -1
  301. package/dist/topic/core/index.d.ts +4 -6
  302. package/dist/topic/core/index.d.ts.map +1 -1
  303. package/dist/topic/core/index.js.map +1 -1
  304. package/dist/topic/redis/index.d.ts +5 -8
  305. package/dist/topic/redis/index.d.ts.map +1 -1
  306. package/dist/topic/redis/index.js.map +1 -1
  307. package/package.json +59 -23
  308. package/src/api/audits/__tests__/AuditService.spec.ts +18 -110
  309. package/src/api/audits/controllers/AdminAuditController.ts +14 -0
  310. package/src/api/audits/services/AuditService.ts +21 -88
  311. package/src/api/files/__tests__/FileService.spec.ts +207 -2
  312. package/src/api/files/index.ts +3 -0
  313. package/src/api/files/schemas/fileCreatorSummarySchema.ts +22 -0
  314. package/src/api/files/schemas/fileResourceSchema.ts +10 -1
  315. package/src/api/files/services/FileService.ts +170 -72
  316. package/src/api/jobs/__tests__/$job.spec.ts +24 -1
  317. package/src/api/jobs/index.ts +4 -3
  318. package/src/api/jobs/primitives/$job.ts +7 -3
  319. package/src/api/jobs/providers/DirectJobDispatcher.ts +17 -36
  320. package/src/api/jobs/providers/JobProvider.ts +53 -24
  321. package/src/api/jobs/schemas/jobConfigAtom.ts +1 -1
  322. package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +4 -1
  323. package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +3 -1
  324. package/src/api/parameters/__tests__/$parameter.spec.ts +19 -2
  325. package/src/api/parameters/audits/ParameterAudits.ts +17 -0
  326. package/src/api/parameters/controllers/AdminParameterController.ts +95 -19
  327. package/src/api/parameters/index.ts +3 -0
  328. package/src/api/parameters/schemas/activateParameterBodySchema.ts +3 -3
  329. package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +3 -2
  330. package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +25 -0
  331. package/src/api/parameters/schemas/parameterResponseSchema.ts +5 -0
  332. package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +4 -2
  333. package/src/api/parameters/services/ParameterProvider.ts +69 -6
  334. package/src/api/subscriptions/jobs/SubscriptionJobs.ts +1 -1
  335. package/src/api/users/__tests__/AdminSessionController.spec.ts +37 -0
  336. package/src/api/users/audits/SessionAudits.ts +33 -0
  337. package/src/api/users/audits/UserAudits.ts +19 -43
  338. package/src/api/users/controllers/AdminUserController.ts +66 -1
  339. package/src/api/users/controllers/RealmController.ts +1 -0
  340. package/src/api/users/entities/sessions.ts +6 -0
  341. package/src/api/users/entities/users.ts +2 -0
  342. package/src/api/users/index.ts +9 -1
  343. package/src/api/users/primitives/$realm.ts +29 -0
  344. package/src/api/users/providers/RealmProvider.ts +15 -0
  345. package/src/api/users/schemas/realmConfigSchema.ts +14 -0
  346. package/src/api/users/schemas/sessionResourceSchema.ts +16 -0
  347. package/src/api/users/schemas/updateUserSchema.ts +1 -8
  348. package/src/api/users/schemas/userQuerySchema.ts +7 -0
  349. package/src/api/users/services/CredentialService.ts +15 -6
  350. package/src/api/users/services/IdentityService.ts +2 -1
  351. package/src/api/users/services/RegistrationService.ts +2 -1
  352. package/src/api/users/services/SessionCrudService.ts +19 -2
  353. package/src/api/users/services/SessionService.ts +39 -19
  354. package/src/api/users/services/UserService.ts +106 -8
  355. package/src/background/__tests__/BackgroundTaskProvider.spec.ts +96 -0
  356. package/src/background/index.ts +37 -0
  357. package/src/background/index.workerd.ts +28 -0
  358. package/src/background/providers/BackgroundTaskProvider.ts +70 -0
  359. package/src/background/providers/WorkerdBackgroundTaskProvider.ts +43 -0
  360. package/src/bucket/__tests__/$bucket.spec.ts +18 -0
  361. package/src/bucket/__tests__/LocalFileStorageProvider.spec.ts +5 -0
  362. package/src/bucket/__tests__/MemoryFileStorageProvider.spec.ts +5 -0
  363. package/src/bucket/__tests__/NodeS3BucketProvider.spec.ts +23 -4
  364. package/src/bucket/__tests__/shared.ts +30 -0
  365. package/src/bucket/index.ts +5 -5
  366. package/src/bucket/index.workerd.ts +11 -4
  367. package/src/bucket/primitives/$bucket.ts +27 -0
  368. package/src/bucket/providers/FileStorageProvider.ts +13 -0
  369. package/src/bucket/providers/LocalFileStorageProvider.ts +17 -1
  370. package/src/bucket/providers/MemoryFileStorageProvider.ts +7 -0
  371. package/src/bucket/providers/{CloudflareR2Provider.ts → R2FileStorageProvider.ts} +10 -1
  372. package/src/bucket/providers/{NodeS3BucketProvider.ts → S3FileStorageProvider.ts} +27 -5
  373. package/src/cli/core/__tests__/BuildDockerTask.spec.ts +25 -1
  374. package/src/cli/core/__tests__/init.spec.ts +0 -219
  375. package/src/cli/core/atoms/buildOptions.ts +0 -12
  376. package/src/cli/core/commands/__tests__/BuildCommand.spec.ts +43 -0
  377. package/src/cli/core/commands/build.ts +105 -37
  378. package/src/cli/core/commands/init.ts +0 -12
  379. package/src/cli/core/commands/pack.ts +133 -0
  380. package/src/cli/core/index.ts +3 -3
  381. package/src/cli/core/providers/ViteDevServerProvider.ts +40 -16
  382. package/src/cli/core/services/PackageManagerUtils.ts +0 -16
  383. package/src/cli/core/services/ProjectScaffolder.ts +29 -291
  384. package/src/cli/core/tasks/BuildCloudflareTask.ts +382 -56
  385. package/src/cli/core/tasks/BuildDockerTask.ts +33 -3
  386. package/src/cli/core/tasks/BuildPrerenderTask.ts +44 -7
  387. package/src/cli/core/tasks/BuildTask.ts +34 -0
  388. package/src/cli/core/templates/apiIndexTs.ts +1 -22
  389. package/src/cli/core/templates/mainCss.ts +0 -1
  390. package/src/cli/core/templates/webAppRouterTs.ts +0 -99
  391. package/src/cli/core/templates/webIndexTs.ts +1 -22
  392. package/src/cli/i18n/__tests__/I18nCheckService.spec.ts +48 -0
  393. package/src/cli/i18n/services/I18nCheckService.ts +65 -11
  394. package/src/cli/platform/__tests__/SecretsCommand.spec.ts +5 -3
  395. package/src/cli/platform/commands/SecretsCommand.ts +8 -6
  396. package/src/cli/platform/commands/platform.ts +192 -46
  397. package/src/cli/platform/index.ts +12 -52
  398. package/src/cli/{platform → platform-lib}/__tests__/CloudflareAdapter.spec.ts +426 -169
  399. package/src/cli/{platform → platform-lib}/__tests__/NamingService.spec.ts +91 -4
  400. package/src/cli/{platform → platform-lib}/__tests__/VercelAdapter.spec.ts +56 -85
  401. package/src/cli/{platform → platform-lib}/adapters/CloudflareAdapter.ts +519 -190
  402. package/src/cli/{platform → platform-lib}/adapters/PlatformAdapter.ts +62 -35
  403. package/src/cli/{platform → platform-lib}/adapters/VercelAdapter.ts +6 -10
  404. package/src/cli/{platform → platform-lib}/atoms/platformOptions.ts +34 -1
  405. package/src/cli/platform-lib/index.ts +67 -0
  406. package/src/cli/platform-lib/services/NamingService.ts +136 -0
  407. package/src/cli/{platform → platform-lib}/services/PlatformInspector.ts +60 -13
  408. package/src/cli/{platform → platform-lib}/services/PlatformOrchestrator.ts +54 -43
  409. package/src/cli/{platform → platform-lib}/services/WranglerApi.ts +4 -2
  410. package/src/command/__tests__/Runner.spec.ts +20 -0
  411. package/src/command/helpers/EnvUtils.ts +19 -3
  412. package/src/command/helpers/Runner.ts +12 -2
  413. package/src/command/providers/CliProvider.ts +34 -1
  414. package/src/{containers → container}/core/__tests__/$container.spec.ts +5 -5
  415. package/src/{containers → container}/core/index.ts +4 -4
  416. package/src/{containers → container}/core/index.workerd.ts +19 -3
  417. package/src/{containers → container}/core/primitives/$container.ts +1 -1
  418. package/src/{containers → container}/core/providers/CloudflareContainerProvider.ts +17 -19
  419. package/src/{containers → container}/core/providers/ContainerProvider.ts +16 -2
  420. package/src/{containers → container}/core/providers/MockContainerProvider.ts +1 -1
  421. package/src/core/Alepha.ts +49 -1
  422. package/src/core/__tests__/$env.spec.ts +42 -0
  423. package/src/core/__tests__/dump.spec.ts +47 -0
  424. package/src/email/cloudflare/__tests__/CloudflareEmailProvider.spec.ts +42 -10
  425. package/src/email/cloudflare/index.ts +14 -5
  426. package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +54 -9
  427. package/src/logger/__tests__/Logger.spec.ts +55 -0
  428. package/src/logger/index.ts +13 -0
  429. package/src/logger/services/Logger.ts +31 -1
  430. package/src/mcp/__tests__/McpServerProvider.spec.ts +71 -0
  431. package/src/mcp/providers/McpServerProvider.ts +55 -0
  432. package/src/orm/__tests__/orm-showcase-tests.ts +27 -0
  433. package/src/orm/__tests__/orm-showcase.spec.ts +12 -0
  434. package/src/orm/core/interfaces/PgQuery.ts +4 -1
  435. package/src/orm/core/services/Repository.ts +27 -11
  436. package/src/react/auth/hooks/useAuth.ts +10 -5
  437. package/src/react/core/__tests__/useQuery.browser.spec.tsx +25 -0
  438. package/src/react/core/hooks/useAction.ts +14 -3
  439. package/src/react/core/hooks/useQuery.ts +24 -4
  440. package/src/react/form/__tests__/FormModel-submit-loading.spec.ts +71 -0
  441. package/src/react/form/__tests__/form-submitting-reactive.browser.spec.tsx +96 -0
  442. package/src/react/form/services/FormModel.ts +57 -39
  443. package/src/react/i18n/__tests__/I18nProvider.spec.ts +89 -0
  444. package/src/react/i18n/__tests__/locale-routing.spec.ts +107 -0
  445. package/src/react/i18n/components/Translate.tsx +47 -0
  446. package/src/react/i18n/index.ts +2 -0
  447. package/src/react/i18n/providers/I18nProvider.ts +171 -12
  448. package/src/react/intro/components/GettingStartedAdminSlide.tsx +2 -2
  449. package/src/react/router/__tests__/$page.spec.tsx +3 -2
  450. package/src/react/router/__tests__/RouterLocaleProvider.spec.ts +127 -0
  451. package/src/react/router/__tests__/page-can.spec.ts +18 -13
  452. package/src/react/router/hooks/useQueryParams.ts +114 -14
  453. package/src/react/router/index.browser.ts +4 -0
  454. package/src/react/router/index.shared.ts +1 -0
  455. package/src/react/router/index.ts +9 -0
  456. package/src/react/router/primitives/$page.ts +85 -4
  457. package/src/react/router/providers/ReactBrowserRouterProvider.ts +18 -8
  458. package/src/react/router/providers/ReactPageProvider.ts +12 -1
  459. package/src/react/router/providers/ReactServerProvider.ts +96 -14
  460. package/src/react/router/providers/RootComponentsProvider.ts +13 -0
  461. package/src/react/router/providers/RouterLocaleProvider.ts +125 -0
  462. package/src/react/router/providers/__tests__/RootComponentsProvider.spec.ts +15 -0
  463. package/src/react/router/providers/__tests__/rootComponents.ssr.browser.spec.tsx +67 -0
  464. package/src/react/sitemap/__tests__/$sitemap.spec.ts +131 -0
  465. package/src/react/sitemap/index.browser.ts +21 -0
  466. package/src/react/sitemap/index.ts +25 -0
  467. package/src/react/sitemap/primitives/$sitemap.browser.ts +26 -0
  468. package/src/react/sitemap/primitives/$sitemap.ts +196 -0
  469. package/src/react/ui/services/SchemaControl.ts +3 -4
  470. package/src/server/auth/__tests__/appleClientSecret.spec.ts +34 -0
  471. package/src/server/auth/__tests__/authFederationClient.spec.ts +40 -0
  472. package/src/server/auth/__tests__/federationAssertion.spec.ts +146 -0
  473. package/src/server/auth/__tests__/federationRedirectReplay.spec.ts +44 -0
  474. package/src/server/auth/helpers/appleClientSecret.ts +24 -0
  475. package/src/server/auth/helpers/federationAssertion.ts +74 -0
  476. package/src/server/auth/helpers/jtiReplayGuard.ts +41 -0
  477. package/src/server/auth/helpers/safeRedirectPath.ts +19 -0
  478. package/src/server/auth/index.ts +4 -0
  479. package/src/server/auth/primitives/$authFederationBroker.ts +273 -0
  480. package/src/server/auth/primitives/$authFederationClient.ts +89 -0
  481. package/src/server/auth/providers/ServerAuthProvider.ts +18 -4
  482. package/src/server/cookies/__tests__/ServerCookiesProvider.spec.ts +70 -0
  483. package/src/server/cookies/providers/ServerCookiesProvider.ts +23 -3
  484. package/src/server/core/interfaces/ServerRequest.ts +8 -0
  485. package/src/server/core/primitives/$route.ts +27 -0
  486. package/src/server/core/providers/ServerMultipartProvider.ts +19 -0
  487. package/src/server/links/providers/LinkProvider.ts +10 -0
  488. package/dist/containers/core/index.d.ts.map +0 -1
  489. package/dist/containers/core/index.js.map +0 -1
  490. package/dist/containers/core/index.workerd.js.map +0 -1
  491. package/src/cli/core/tasks/BuildSitemapTask.ts +0 -130
  492. package/src/cli/core/templates/componentsJsonTs.ts +0 -39
  493. package/src/cli/core/templates/saasAdminLayoutTsx.ts +0 -77
  494. package/src/cli/core/templates/saasAdminPagesTsx.ts +0 -26
  495. package/src/cli/core/templates/saasAuthLayoutTsx.ts +0 -22
  496. package/src/cli/core/templates/saasAuthPagesTsx.ts +0 -62
  497. package/src/cli/core/templates/saasRealmProviderTs.ts +0 -52
  498. package/src/cli/platform/services/NamingService.ts +0 -54
  499. /package/dist/orm/core/{chunk-o8xxKEmq.js → chunk-B4FMCO8f.js} +0 -0
  500. /package/dist/react/testing/{chunk-6Ep1yQYe.js → chunk-BpyX8vjI.js} +0 -0
  501. /package/src/cli/{platform → platform-lib}/__tests__/GitHubSecretStore.spec.ts +0 -0
  502. /package/src/cli/{platform → platform-lib}/__tests__/PlatformCacheProvider.spec.ts +0 -0
  503. /package/src/cli/{platform → platform-lib}/__tests__/PlatformInspector.spec.ts +0 -0
  504. /package/src/cli/{platform → platform-lib}/__tests__/PlatformOrchestrator.spec.ts +0 -0
  505. /package/src/cli/{platform → platform-lib}/__tests__/SecretFilterService.spec.ts +0 -0
  506. /package/src/cli/{platform → platform-lib}/__tests__/detectResources.spec.ts +0 -0
  507. /package/src/cli/{platform → platform-lib}/providers/GitHubSecretStore.ts +0 -0
  508. /package/src/cli/{platform → platform-lib}/providers/MemorySecretStore.ts +0 -0
  509. /package/src/cli/{platform → platform-lib}/providers/PlatformCacheProvider.ts +0 -0
  510. /package/src/cli/{platform → platform-lib}/providers/SecretStoreProvider.ts +0 -0
  511. /package/src/cli/{platform → platform-lib}/schemas/cloudflare.ts +0 -0
  512. /package/src/cli/{platform → platform-lib}/schemas/platform.ts +0 -0
  513. /package/src/cli/{platform → platform-lib}/schemas/vercel.ts +0 -0
  514. /package/src/cli/{platform → platform-lib}/services/CloudflareApi.ts +0 -0
  515. /package/src/cli/{platform → platform-lib}/services/SecretFilterService.ts +0 -0
  516. /package/src/cli/{platform → platform-lib}/services/VercelApi.ts +0 -0
  517. /package/src/cli/{platform → platform-lib}/services/VercelCli.ts +0 -0
  518. /package/src/{containers → container}/core/interfaces/ContainerOptions.ts +0 -0
  519. /package/src/{containers → container}/core/providers/NodeContainerProvider.ts +0 -0
@@ -1,13 +1,7 @@
1
- import * as _$alepha from "alepha";
2
1
  import { Alepha, AlephaError, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
- import * as _$alepha_server0 from "alepha/server";
4
2
  import { ServerReply } from "alepha/server";
5
- import * as _$alepha_orm0 from "alepha/orm";
6
- import * as _$alepha_api_jobs0 from "alepha/api/jobs";
7
3
  import { DateTimeProvider } from "alepha/datetime";
8
- import * as _$alepha_logger0 from "alepha/logger";
9
4
  import { CryptoProvider } from "alepha/crypto";
10
- import * as _$typebox from "typebox";
11
5
  import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
12
6
  import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
13
7
  //#region ../../src/orm/core/schemas/insertSchema.d.ts
@@ -301,8 +295,8 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
301
295
  * - `d1://BINDING_NAME` — Cloudflare D1
302
296
  * - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
303
297
  */
304
- declare const databaseEnvSchema: _$typebox.TObject<{
305
- DATABASE_URL: _$typebox.TOptional<_$typebox.TString>;
298
+ declare const databaseEnvSchema: import("typebox").TObject<{
299
+ DATABASE_URL: import("typebox").TOptional<import("typebox").TString>;
306
300
  /**
307
301
  * Enable or disable push-based schema synchronization (drizzle-kit push).
308
302
  *
@@ -310,43 +304,43 @@ declare const databaseEnvSchema: _$typebox.TObject<{
310
304
  * Set to `false` in development to skip automatic schema sync
311
305
  * (e.g. when managing migrations manually).
312
306
  */
313
- DATABASE_SYNC: _$typebox.TOptional<_$typebox.TBoolean>;
307
+ DATABASE_SYNC: import("typebox").TOptional<import("typebox").TBoolean>;
314
308
  }>;
315
309
  declare module "alepha" {
316
310
  interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
317
311
  } //# sourceMappingURL=databaseEnvSchema.d.ts.map
318
312
  //#endregion
319
313
  //#region ../../src/api/payments/entities/paymentIntents.d.ts
320
- declare const paymentIntents: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
321
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
322
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
323
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
324
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
325
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
326
- amount: _$typebox.TInteger;
327
- currency: _$typebox.TString;
328
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
329
- providerRef: _$typebox.TOptional<_$typebox.TString>;
330
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
331
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
332
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
333
- userId: _$typebox.TOptional<_$typebox.TString>;
314
+ declare const paymentIntents: import("alepha/orm").EntityPrimitive<import("typebox").TObject<{
315
+ 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>;
316
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
317
+ 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>;
318
+ 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>;
319
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
320
+ amount: import("typebox").TInteger;
321
+ currency: import("typebox").TString;
322
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
323
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
324
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
325
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
326
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
327
+ userId: import("typebox").TOptional<import("typebox").TString>;
334
328
  }>>;
335
329
  type PaymentIntentEntity = Static<typeof paymentIntents.schema>;
336
330
  //#endregion
337
331
  //#region ../../src/api/payments/entities/refunds.d.ts
338
- declare const refunds: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
339
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
340
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
341
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
342
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
343
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
344
- intentId: _$typebox.TString;
345
- amount: _$typebox.TInteger;
346
- currency: _$typebox.TString;
347
- status: _$typebox.TUnsafe<"processing" | "failed" | "pending" | "completed">;
348
- reason: _$typebox.TOptional<_$typebox.TString>;
349
- providerRef: _$typebox.TOptional<_$typebox.TString>;
332
+ declare const refunds: import("alepha/orm").EntityPrimitive<import("typebox").TObject<{
333
+ 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>;
334
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
335
+ 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>;
336
+ 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>;
337
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
338
+ intentId: import("typebox").TString;
339
+ amount: import("typebox").TInteger;
340
+ currency: import("typebox").TString;
341
+ status: import("typebox").TUnsafe<"processing" | "failed" | "pending" | "completed">;
342
+ reason: import("typebox").TOptional<import("typebox").TString>;
343
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
350
344
  }>>;
351
345
  type RefundEntity = Static<typeof refunds.schema>;
352
346
  //#endregion
@@ -435,43 +429,43 @@ declare abstract class PaymentProvider {
435
429
  //#region ../../src/api/payments/services/PaymentService.d.ts
436
430
  declare class PaymentService {
437
431
  protected readonly alepha: Alepha;
438
- protected readonly log: _$alepha_logger0.Logger;
432
+ protected readonly log: import("alepha/logger").Logger;
439
433
  protected readonly dateTime: DateTimeProvider;
440
434
  protected readonly provider: PaymentProvider;
441
- protected readonly intentRepo: _$alepha_orm0.Repository<_$typebox.TObject<{
442
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
443
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
444
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
445
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
446
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
447
- amount: _$typebox.TInteger;
448
- currency: _$typebox.TString;
449
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
450
- providerRef: _$typebox.TOptional<_$typebox.TString>;
451
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
452
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
453
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
454
- userId: _$typebox.TOptional<_$typebox.TString>;
435
+ protected readonly intentRepo: import("alepha/orm").Repository<import("typebox").TObject<{
436
+ 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>;
437
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
438
+ 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>;
439
+ 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>;
440
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
441
+ amount: import("typebox").TInteger;
442
+ currency: import("typebox").TString;
443
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
444
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
445
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
446
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
447
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
448
+ userId: import("typebox").TOptional<import("typebox").TString>;
455
449
  }>>;
456
- protected readonly refundRepo: _$alepha_orm0.Repository<_$typebox.TObject<{
457
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
458
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
459
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
460
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
461
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
462
- intentId: _$typebox.TString;
463
- amount: _$typebox.TInteger;
464
- currency: _$typebox.TString;
465
- status: _$typebox.TUnsafe<"processing" | "failed" | "pending" | "completed">;
466
- reason: _$typebox.TOptional<_$typebox.TString>;
467
- providerRef: _$typebox.TOptional<_$typebox.TString>;
450
+ protected readonly refundRepo: import("alepha/orm").Repository<import("typebox").TObject<{
451
+ 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>;
452
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
453
+ 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>;
454
+ 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>;
455
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
456
+ intentId: import("typebox").TString;
457
+ amount: import("typebox").TInteger;
458
+ currency: import("typebox").TString;
459
+ status: import("typebox").TUnsafe<"processing" | "failed" | "pending" | "completed">;
460
+ reason: import("typebox").TOptional<import("typebox").TString>;
461
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
468
462
  }>>;
469
463
  /**
470
464
  * Expires stale payment intents that have been in "processing" status
471
465
  * for more than 30 minutes. Runs every 5 minutes — shares the CF wrangler
472
466
  * trigger with the jobs sweep so no extra binding is consumed.
473
467
  */
474
- protected readonly expireStaleIntents: _$alepha_api_jobs0.JobPrimitive<_$typebox.TSchema>;
468
+ protected readonly expireStaleIntents: import("alepha/api/jobs").JobPrimitive<import("typebox").TSchema>;
475
469
  /**
476
470
  * Create a new payment intent in "created" status.
477
471
  */
@@ -539,34 +533,34 @@ declare class PaymentService {
539
533
  sort?: string;
540
534
  size?: number;
541
535
  page?: number;
542
- }): Promise<_$alepha.Page<_$alepha_orm0.PgStatic<_$typebox.TObject<{
543
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
544
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
545
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
546
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
547
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
548
- amount: _$typebox.TInteger;
549
- currency: _$typebox.TString;
550
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
551
- providerRef: _$typebox.TOptional<_$typebox.TString>;
552
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
553
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
554
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
555
- userId: _$typebox.TOptional<_$typebox.TString>;
556
- }>, _$alepha_orm0.PgRelationMap<_$typebox.TObject<{
557
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
558
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
559
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
560
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
561
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
562
- amount: _$typebox.TInteger;
563
- currency: _$typebox.TString;
564
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
565
- providerRef: _$typebox.TOptional<_$typebox.TString>;
566
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
567
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
568
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
569
- userId: _$typebox.TOptional<_$typebox.TString>;
536
+ }): Promise<import("alepha").Page<import("alepha/orm").PgStatic<import("typebox").TObject<{
537
+ 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>;
538
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
539
+ 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>;
540
+ 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>;
541
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
542
+ amount: import("typebox").TInteger;
543
+ currency: import("typebox").TString;
544
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
545
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
546
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
547
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
548
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
549
+ userId: import("typebox").TOptional<import("typebox").TString>;
550
+ }>, import("alepha/orm").PgRelationMap<import("typebox").TObject<{
551
+ 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>;
552
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
553
+ 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>;
554
+ 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>;
555
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
556
+ amount: import("typebox").TInteger;
557
+ currency: import("typebox").TString;
558
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
559
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
560
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
561
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
562
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
563
+ userId: import("typebox").TOptional<import("typebox").TString>;
570
564
  }>>>>>;
571
565
  protected assertStatus(intent: PaymentIntentEntity, expected: PaymentIntentEntity["status"], operation: string): void;
572
566
  }
@@ -579,183 +573,183 @@ declare class AdminPaymentController {
579
573
  /**
580
574
  * List payment intents with pagination and filtering.
581
575
  */
582
- readonly listIntents: _$alepha_server0.ActionPrimitiveFn<{
583
- query: _$typebox.TObject<{
584
- page: _$typebox.TOptional<_$typebox.TInteger>;
585
- size: _$typebox.TOptional<_$typebox.TInteger>;
586
- sort: _$typebox.TOptional<_$typebox.TString>;
587
- status: _$typebox.TOptional<_$typebox.TString>;
588
- userId: _$typebox.TOptional<_$typebox.TString>;
576
+ readonly listIntents: import("alepha/server").ActionPrimitiveFn<{
577
+ query: import("typebox").TObject<{
578
+ page: import("typebox").TOptional<import("typebox").TInteger>;
579
+ size: import("typebox").TOptional<import("typebox").TInteger>;
580
+ sort: import("typebox").TOptional<import("typebox").TString>;
581
+ status: import("typebox").TOptional<import("typebox").TString>;
582
+ userId: import("typebox").TOptional<import("typebox").TString>;
589
583
  }>;
590
- response: _$alepha.TPage<_$typebox.TObject<{
591
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
592
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
593
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
594
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
595
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
596
- amount: _$typebox.TInteger;
597
- currency: _$typebox.TString;
598
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
599
- providerRef: _$typebox.TOptional<_$typebox.TString>;
600
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
601
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
602
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
603
- userId: _$typebox.TOptional<_$typebox.TString>;
584
+ response: import("alepha").TPage<import("typebox").TObject<{
585
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
586
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
587
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
588
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
589
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
590
+ amount: import("typebox").TInteger;
591
+ currency: import("typebox").TString;
592
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
593
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
594
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
595
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
596
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
597
+ userId: import("typebox").TOptional<import("typebox").TString>;
604
598
  }>>;
605
599
  }>;
606
600
  /**
607
601
  * Get a payment intent by ID.
608
602
  */
609
- readonly getIntent: _$alepha_server0.ActionPrimitiveFn<{
610
- params: _$typebox.TObject<{
611
- id: _$typebox.TString;
603
+ readonly getIntent: import("alepha/server").ActionPrimitiveFn<{
604
+ params: import("typebox").TObject<{
605
+ id: import("typebox").TString;
612
606
  }>;
613
- response: _$typebox.TObject<{
614
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
615
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
616
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
617
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
618
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
619
- amount: _$typebox.TInteger;
620
- currency: _$typebox.TString;
621
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
622
- providerRef: _$typebox.TOptional<_$typebox.TString>;
623
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
624
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
625
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
626
- userId: _$typebox.TOptional<_$typebox.TString>;
607
+ response: import("typebox").TObject<{
608
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
609
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
610
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
611
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
612
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
613
+ amount: import("typebox").TInteger;
614
+ currency: import("typebox").TString;
615
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
616
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
617
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
618
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
619
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
620
+ userId: import("typebox").TOptional<import("typebox").TString>;
627
621
  }>;
628
622
  }>;
629
623
  /**
630
624
  * Capture an authorized intent.
631
625
  */
632
- readonly captureIntent: _$alepha_server0.ActionPrimitiveFn<{
633
- params: _$typebox.TObject<{
634
- id: _$typebox.TString;
626
+ readonly captureIntent: import("alepha/server").ActionPrimitiveFn<{
627
+ params: import("typebox").TObject<{
628
+ id: import("typebox").TString;
635
629
  }>;
636
- body: _$typebox.TObject<{
637
- amount: _$typebox.TOptional<_$typebox.TInteger>;
630
+ body: import("typebox").TObject<{
631
+ amount: import("typebox").TOptional<import("typebox").TInteger>;
638
632
  }>;
639
- response: _$typebox.TObject<{
640
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
641
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
642
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
643
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
644
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
645
- amount: _$typebox.TInteger;
646
- currency: _$typebox.TString;
647
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
648
- providerRef: _$typebox.TOptional<_$typebox.TString>;
649
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
650
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
651
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
652
- userId: _$typebox.TOptional<_$typebox.TString>;
633
+ response: import("typebox").TObject<{
634
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
635
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
636
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
637
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
638
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
639
+ amount: import("typebox").TInteger;
640
+ currency: import("typebox").TString;
641
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
642
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
643
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
644
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
645
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
646
+ userId: import("typebox").TOptional<import("typebox").TString>;
653
647
  }>;
654
648
  }>;
655
649
  /**
656
650
  * Void an authorized intent.
657
651
  */
658
- readonly voidIntent: _$alepha_server0.ActionPrimitiveFn<{
659
- params: _$typebox.TObject<{
660
- id: _$typebox.TString;
652
+ readonly voidIntent: import("alepha/server").ActionPrimitiveFn<{
653
+ params: import("typebox").TObject<{
654
+ id: import("typebox").TString;
661
655
  }>;
662
- response: _$typebox.TObject<{
663
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
664
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
665
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
666
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
667
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
668
- amount: _$typebox.TInteger;
669
- currency: _$typebox.TString;
670
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
671
- providerRef: _$typebox.TOptional<_$typebox.TString>;
672
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
673
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
674
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
675
- userId: _$typebox.TOptional<_$typebox.TString>;
656
+ response: import("typebox").TObject<{
657
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
658
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
659
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
660
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
661
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
662
+ amount: import("typebox").TInteger;
663
+ currency: import("typebox").TString;
664
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
665
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
666
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
667
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
668
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
669
+ userId: import("typebox").TOptional<import("typebox").TString>;
676
670
  }>;
677
671
  }>;
678
672
  /**
679
673
  * Refund a captured intent.
680
674
  */
681
- readonly refundIntent: _$alepha_server0.ActionPrimitiveFn<{
682
- params: _$typebox.TObject<{
683
- id: _$typebox.TString;
675
+ readonly refundIntent: import("alepha/server").ActionPrimitiveFn<{
676
+ params: import("typebox").TObject<{
677
+ id: import("typebox").TString;
684
678
  }>;
685
- body: _$typebox.TObject<{
686
- amount: _$typebox.TInteger;
687
- reason: _$typebox.TOptional<_$typebox.TString>;
679
+ body: import("typebox").TObject<{
680
+ amount: import("typebox").TInteger;
681
+ reason: import("typebox").TOptional<import("typebox").TString>;
688
682
  }>;
689
- response: _$typebox.TObject<{
690
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
691
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
692
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
693
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
694
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
695
- intentId: _$typebox.TString;
696
- amount: _$typebox.TInteger;
697
- currency: _$typebox.TString;
698
- status: _$typebox.TUnsafe<"processing" | "failed" | "pending" | "completed">;
699
- reason: _$typebox.TOptional<_$typebox.TString>;
700
- providerRef: _$typebox.TOptional<_$typebox.TString>;
683
+ response: import("typebox").TObject<{
684
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
685
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
686
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
687
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
688
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
689
+ intentId: import("typebox").TString;
690
+ amount: import("typebox").TInteger;
691
+ currency: import("typebox").TString;
692
+ status: import("typebox").TUnsafe<"processing" | "failed" | "pending" | "completed">;
693
+ reason: import("typebox").TOptional<import("typebox").TString>;
694
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
701
695
  }>;
702
696
  }>;
703
697
  /**
704
698
  * Cancel a created intent.
705
699
  */
706
- readonly cancelIntent: _$alepha_server0.ActionPrimitiveFn<{
707
- params: _$typebox.TObject<{
708
- id: _$typebox.TString;
700
+ readonly cancelIntent: import("alepha/server").ActionPrimitiveFn<{
701
+ params: import("typebox").TObject<{
702
+ id: import("typebox").TString;
709
703
  }>;
710
- response: _$typebox.TObject<{
711
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
712
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
713
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
714
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
715
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
716
- amount: _$typebox.TInteger;
717
- currency: _$typebox.TString;
718
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
719
- providerRef: _$typebox.TOptional<_$typebox.TString>;
720
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
721
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
722
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
723
- userId: _$typebox.TOptional<_$typebox.TString>;
704
+ response: import("typebox").TObject<{
705
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
706
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
707
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
708
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
709
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
710
+ amount: import("typebox").TInteger;
711
+ currency: import("typebox").TString;
712
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
713
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
714
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
715
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
716
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
717
+ userId: import("typebox").TOptional<import("typebox").TString>;
724
718
  }>;
725
719
  }>;
726
720
  /**
727
721
  * Record a cash payment.
728
722
  */
729
- readonly recordCash: _$alepha_server0.ActionPrimitiveFn<{
730
- body: _$typebox.TObject<{
731
- amount: _$typebox.TInteger;
732
- currency: _$typebox.TString;
733
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
723
+ readonly recordCash: import("alepha/server").ActionPrimitiveFn<{
724
+ body: import("typebox").TObject<{
725
+ amount: import("typebox").TInteger;
726
+ currency: import("typebox").TString;
727
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
734
728
  }>;
735
- response: _$typebox.TObject<{
736
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
737
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
738
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
739
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
740
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
741
- amount: _$typebox.TInteger;
742
- currency: _$typebox.TString;
743
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
744
- providerRef: _$typebox.TOptional<_$typebox.TString>;
745
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
746
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
747
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
748
- userId: _$typebox.TOptional<_$typebox.TString>;
729
+ response: import("typebox").TObject<{
730
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
731
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
732
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
733
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
734
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
735
+ amount: import("typebox").TInteger;
736
+ currency: import("typebox").TString;
737
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
738
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
739
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
740
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
741
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
742
+ userId: import("typebox").TOptional<import("typebox").TString>;
749
743
  }>;
750
744
  }>;
751
745
  /**
752
746
  * PSP webhook endpoint (not under /admin, no auth — verified by provider).
753
747
  */
754
- readonly webhook: _$alepha_server0.ActionPrimitiveFn<{
755
- response: _$typebox.TObject<{
756
- ok: _$typebox.TBoolean;
757
- id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
758
- count: _$typebox.TOptional<_$typebox.TNumber>;
748
+ readonly webhook: import("alepha/server").ActionPrimitiveFn<{
749
+ response: import("typebox").TObject<{
750
+ ok: import("typebox").TBoolean;
751
+ id: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TString, import("typebox").TInteger]>>;
752
+ count: import("typebox").TOptional<import("typebox").TNumber>;
759
753
  }>;
760
754
  }>;
761
755
  }
@@ -767,68 +761,68 @@ declare class MockCheckoutController {
767
761
  protected readonly provider: PaymentProvider;
768
762
  protected isMemoryProvider(): boolean;
769
763
  protected forbidden(reply: ServerReply): string;
770
- readonly mockCheckoutPage: _$alepha_server0.RoutePrimitive<{
771
- params: _$typebox.TObject<{
772
- id: _$typebox.TString;
764
+ readonly mockCheckoutPage: import("alepha/server").RoutePrimitive<{
765
+ params: import("typebox").TObject<{
766
+ id: import("typebox").TString;
773
767
  }>;
774
- query: _$typebox.TObject<{
775
- returnUrl: _$typebox.TOptional<_$typebox.TString>;
768
+ query: import("typebox").TObject<{
769
+ returnUrl: import("typebox").TOptional<import("typebox").TString>;
776
770
  }>;
777
771
  }>;
778
- readonly mockCheckoutConfirm: _$alepha_server0.RoutePrimitive<{
779
- params: _$typebox.TObject<{
780
- id: _$typebox.TString;
772
+ readonly mockCheckoutConfirm: import("alepha/server").RoutePrimitive<{
773
+ params: import("typebox").TObject<{
774
+ id: import("typebox").TString;
781
775
  }>;
782
- body: _$typebox.TObject<{
783
- returnUrl: _$typebox.TOptional<_$typebox.TString>;
776
+ body: import("typebox").TObject<{
777
+ returnUrl: import("typebox").TOptional<import("typebox").TString>;
784
778
  }>;
785
779
  }>;
786
- readonly mockCheckoutCancel: _$alepha_server0.RoutePrimitive<{
787
- params: _$typebox.TObject<{
788
- id: _$typebox.TString;
780
+ readonly mockCheckoutCancel: import("alepha/server").RoutePrimitive<{
781
+ params: import("typebox").TObject<{
782
+ id: import("typebox").TString;
789
783
  }>;
790
- body: _$typebox.TObject<{
791
- returnUrl: _$typebox.TOptional<_$typebox.TString>;
784
+ body: import("typebox").TObject<{
785
+ returnUrl: import("typebox").TOptional<import("typebox").TString>;
792
786
  }>;
793
787
  }>;
794
788
  }
795
789
  //#endregion
796
790
  //#region ../../src/api/payments/entities/paymentMethods.d.ts
797
- declare const paymentMethods: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
798
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
799
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
800
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
801
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
802
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
803
- userId: _$typebox.TString;
804
- type: _$typebox.TString;
805
- brand: _$typebox.TOptional<_$typebox.TString>;
806
- last4: _$typebox.TOptional<_$typebox.TString>;
807
- expMonth: _$typebox.TOptional<_$typebox.TInteger>;
808
- expYear: _$typebox.TOptional<_$typebox.TInteger>;
809
- isDefault: _$typebox.TBoolean;
810
- providerRef: _$typebox.TString;
791
+ declare const paymentMethods: import("alepha/orm").EntityPrimitive<import("typebox").TObject<{
792
+ 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>;
793
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
794
+ 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>;
795
+ 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>;
796
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
797
+ userId: import("typebox").TString;
798
+ type: import("typebox").TString;
799
+ brand: import("typebox").TOptional<import("typebox").TString>;
800
+ last4: import("typebox").TOptional<import("typebox").TString>;
801
+ expMonth: import("typebox").TOptional<import("typebox").TInteger>;
802
+ expYear: import("typebox").TOptional<import("typebox").TInteger>;
803
+ isDefault: import("typebox").TBoolean;
804
+ providerRef: import("typebox").TString;
811
805
  }>>;
812
806
  type PaymentMethodEntity = Static<typeof paymentMethods.schema>;
813
807
  //#endregion
814
808
  //#region ../../src/api/payments/services/PaymentMethodService.d.ts
815
809
  declare class PaymentMethodService {
816
- protected readonly log: _$alepha_logger0.Logger;
810
+ protected readonly log: import("alepha/logger").Logger;
817
811
  protected readonly provider: PaymentProvider;
818
- protected readonly methodRepo: _$alepha_orm0.Repository<_$typebox.TObject<{
819
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
820
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
821
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
822
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
823
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
824
- userId: _$typebox.TString;
825
- type: _$typebox.TString;
826
- brand: _$typebox.TOptional<_$typebox.TString>;
827
- last4: _$typebox.TOptional<_$typebox.TString>;
828
- expMonth: _$typebox.TOptional<_$typebox.TInteger>;
829
- expYear: _$typebox.TOptional<_$typebox.TInteger>;
830
- isDefault: _$typebox.TBoolean;
831
- providerRef: _$typebox.TString;
812
+ protected readonly methodRepo: import("alepha/orm").Repository<import("typebox").TObject<{
813
+ 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>;
814
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
815
+ 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>;
816
+ 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>;
817
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
818
+ userId: import("typebox").TString;
819
+ type: import("typebox").TString;
820
+ brand: import("typebox").TOptional<import("typebox").TString>;
821
+ last4: import("typebox").TOptional<import("typebox").TString>;
822
+ expMonth: import("typebox").TOptional<import("typebox").TInteger>;
823
+ expYear: import("typebox").TOptional<import("typebox").TInteger>;
824
+ isDefault: import("typebox").TBoolean;
825
+ providerRef: import("typebox").TString;
832
826
  }>>;
833
827
  addPaymentMethod(userId: string, organizationId: string, token: string): Promise<PaymentMethodEntity>;
834
828
  listPaymentMethods(userId: string): Promise<PaymentMethodEntity[]>;
@@ -845,94 +839,94 @@ declare class PaymentController {
845
839
  /**
846
840
  * List the current user's saved payment methods.
847
841
  */
848
- readonly listPaymentMethods: _$alepha_server0.ActionPrimitiveFn<{
849
- response: _$typebox.TArray<_$typebox.TObject<{
850
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
851
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
852
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
853
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
854
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
855
- userId: _$typebox.TString;
856
- type: _$typebox.TString;
857
- brand: _$typebox.TOptional<_$typebox.TString>;
858
- last4: _$typebox.TOptional<_$typebox.TString>;
859
- expMonth: _$typebox.TOptional<_$typebox.TInteger>;
860
- expYear: _$typebox.TOptional<_$typebox.TInteger>;
861
- isDefault: _$typebox.TBoolean;
862
- providerRef: _$typebox.TString;
842
+ readonly listPaymentMethods: import("alepha/server").ActionPrimitiveFn<{
843
+ response: import("typebox").TArray<import("typebox").TObject<{
844
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
845
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
846
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
847
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
848
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
849
+ userId: import("typebox").TString;
850
+ type: import("typebox").TString;
851
+ brand: import("typebox").TOptional<import("typebox").TString>;
852
+ last4: import("typebox").TOptional<import("typebox").TString>;
853
+ expMonth: import("typebox").TOptional<import("typebox").TInteger>;
854
+ expYear: import("typebox").TOptional<import("typebox").TInteger>;
855
+ isDefault: import("typebox").TBoolean;
856
+ providerRef: import("typebox").TString;
863
857
  }>>;
864
858
  }>;
865
859
  /**
866
860
  * Add a new payment method.
867
861
  */
868
- readonly addPaymentMethod: _$alepha_server0.ActionPrimitiveFn<{
869
- body: _$typebox.TObject<{
870
- token: _$typebox.TString;
862
+ readonly addPaymentMethod: import("alepha/server").ActionPrimitiveFn<{
863
+ body: import("typebox").TObject<{
864
+ token: import("typebox").TString;
871
865
  }>;
872
- response: _$typebox.TObject<{
873
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
874
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
875
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
876
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
877
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
878
- userId: _$typebox.TString;
879
- type: _$typebox.TString;
880
- brand: _$typebox.TOptional<_$typebox.TString>;
881
- last4: _$typebox.TOptional<_$typebox.TString>;
882
- expMonth: _$typebox.TOptional<_$typebox.TInteger>;
883
- expYear: _$typebox.TOptional<_$typebox.TInteger>;
884
- isDefault: _$typebox.TBoolean;
885
- providerRef: _$typebox.TString;
866
+ response: import("typebox").TObject<{
867
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
868
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
869
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
870
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
871
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
872
+ userId: import("typebox").TString;
873
+ type: import("typebox").TString;
874
+ brand: import("typebox").TOptional<import("typebox").TString>;
875
+ last4: import("typebox").TOptional<import("typebox").TString>;
876
+ expMonth: import("typebox").TOptional<import("typebox").TInteger>;
877
+ expYear: import("typebox").TOptional<import("typebox").TInteger>;
878
+ isDefault: import("typebox").TBoolean;
879
+ providerRef: import("typebox").TString;
886
880
  }>;
887
881
  }>;
888
882
  /**
889
883
  * Remove a payment method.
890
884
  */
891
- readonly removePaymentMethod: _$alepha_server0.ActionPrimitiveFn<{
892
- params: _$typebox.TObject<{
893
- id: _$typebox.TString;
885
+ readonly removePaymentMethod: import("alepha/server").ActionPrimitiveFn<{
886
+ params: import("typebox").TObject<{
887
+ id: import("typebox").TString;
894
888
  }>;
895
- response: _$typebox.TObject<{
896
- ok: _$typebox.TBoolean;
897
- id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
898
- count: _$typebox.TOptional<_$typebox.TNumber>;
889
+ response: import("typebox").TObject<{
890
+ ok: import("typebox").TBoolean;
891
+ id: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TString, import("typebox").TInteger]>>;
892
+ count: import("typebox").TOptional<import("typebox").TNumber>;
899
893
  }>;
900
894
  }>;
901
895
  /**
902
896
  * Set a payment method as default.
903
897
  */
904
- readonly setDefaultPaymentMethod: _$alepha_server0.ActionPrimitiveFn<{
905
- params: _$typebox.TObject<{
906
- id: _$typebox.TString;
898
+ readonly setDefaultPaymentMethod: import("alepha/server").ActionPrimitiveFn<{
899
+ params: import("typebox").TObject<{
900
+ id: import("typebox").TString;
907
901
  }>;
908
- response: _$typebox.TObject<{
909
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
910
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
911
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
912
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
913
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
914
- userId: _$typebox.TString;
915
- type: _$typebox.TString;
916
- brand: _$typebox.TOptional<_$typebox.TString>;
917
- last4: _$typebox.TOptional<_$typebox.TString>;
918
- expMonth: _$typebox.TOptional<_$typebox.TInteger>;
919
- expYear: _$typebox.TOptional<_$typebox.TInteger>;
920
- isDefault: _$typebox.TBoolean;
921
- providerRef: _$typebox.TString;
902
+ response: import("typebox").TObject<{
903
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
904
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
905
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
906
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
907
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
908
+ userId: import("typebox").TString;
909
+ type: import("typebox").TString;
910
+ brand: import("typebox").TOptional<import("typebox").TString>;
911
+ last4: import("typebox").TOptional<import("typebox").TString>;
912
+ expMonth: import("typebox").TOptional<import("typebox").TInteger>;
913
+ expYear: import("typebox").TOptional<import("typebox").TInteger>;
914
+ isDefault: import("typebox").TBoolean;
915
+ providerRef: import("typebox").TString;
922
916
  }>;
923
917
  }>;
924
918
  /**
925
919
  * Create a checkout session.
926
920
  */
927
- readonly createCheckout: _$alepha_server0.ActionPrimitiveFn<{
928
- body: _$typebox.TObject<{
929
- intentId: _$typebox.TString;
930
- returnUrl: _$typebox.TString;
931
- authorize: _$typebox.TOptional<_$typebox.TBoolean>;
921
+ readonly createCheckout: import("alepha/server").ActionPrimitiveFn<{
922
+ body: import("typebox").TObject<{
923
+ intentId: import("typebox").TString;
924
+ returnUrl: import("typebox").TString;
925
+ authorize: import("typebox").TOptional<import("typebox").TBoolean>;
932
926
  }>;
933
- response: _$typebox.TObject<{
934
- url: _$typebox.TString;
935
- intentId: _$typebox.TString;
927
+ response: import("typebox").TObject<{
928
+ url: import("typebox").TString;
929
+ intentId: import("typebox").TString;
936
930
  }>;
937
931
  }>;
938
932
  }
@@ -980,99 +974,99 @@ declare class MemoryPaymentProvider implements PaymentProvider {
980
974
  }
981
975
  //#endregion
982
976
  //#region ../../src/api/payments/schemas/intentSchemas.d.ts
983
- declare const createIntentSchema: _$typebox.TObject<{
984
- amount: _$typebox.TInteger;
985
- currency: _$typebox.TString;
986
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
987
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
977
+ declare const createIntentSchema: import("typebox").TObject<{
978
+ amount: import("typebox").TInteger;
979
+ currency: import("typebox").TString;
980
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
981
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
988
982
  }>;
989
983
  type CreateIntent = Static<typeof createIntentSchema>;
990
- declare const createCheckoutSchema: _$typebox.TObject<{
991
- intentId: _$typebox.TString;
992
- returnUrl: _$typebox.TString;
993
- authorize: _$typebox.TOptional<_$typebox.TBoolean>;
984
+ declare const createCheckoutSchema: import("typebox").TObject<{
985
+ intentId: import("typebox").TString;
986
+ returnUrl: import("typebox").TString;
987
+ authorize: import("typebox").TOptional<import("typebox").TBoolean>;
994
988
  }>;
995
989
  type CreateCheckout = Static<typeof createCheckoutSchema>;
996
- declare const checkoutResponseSchema: _$typebox.TObject<{
997
- url: _$typebox.TString;
998
- intentId: _$typebox.TString;
990
+ declare const checkoutResponseSchema: import("typebox").TObject<{
991
+ url: import("typebox").TString;
992
+ intentId: import("typebox").TString;
999
993
  }>;
1000
994
  type CheckoutResponse = Static<typeof checkoutResponseSchema>;
1001
- declare const captureIntentSchema: _$typebox.TObject<{
1002
- amount: _$typebox.TOptional<_$typebox.TInteger>;
995
+ declare const captureIntentSchema: import("typebox").TObject<{
996
+ amount: import("typebox").TOptional<import("typebox").TInteger>;
1003
997
  }>;
1004
998
  type CaptureIntent = Static<typeof captureIntentSchema>;
1005
- declare const refundIntentSchema: _$typebox.TObject<{
1006
- amount: _$typebox.TInteger;
1007
- reason: _$typebox.TOptional<_$typebox.TString>;
999
+ declare const refundIntentSchema: import("typebox").TObject<{
1000
+ amount: import("typebox").TInteger;
1001
+ reason: import("typebox").TOptional<import("typebox").TString>;
1008
1002
  }>;
1009
1003
  type RefundIntent = Static<typeof refundIntentSchema>;
1010
- declare const recordCashSchema: _$typebox.TObject<{
1011
- amount: _$typebox.TInteger;
1012
- currency: _$typebox.TString;
1013
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1004
+ declare const recordCashSchema: import("typebox").TObject<{
1005
+ amount: import("typebox").TInteger;
1006
+ currency: import("typebox").TString;
1007
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1014
1008
  }>;
1015
1009
  type RecordCash = Static<typeof recordCashSchema>;
1016
- declare const intentQuerySchema: _$typebox.TObject<{
1017
- page: _$typebox.TOptional<_$typebox.TInteger>;
1018
- size: _$typebox.TOptional<_$typebox.TInteger>;
1019
- sort: _$typebox.TOptional<_$typebox.TString>;
1020
- status: _$typebox.TOptional<_$typebox.TString>;
1021
- userId: _$typebox.TOptional<_$typebox.TString>;
1010
+ declare const intentQuerySchema: import("typebox").TObject<{
1011
+ page: import("typebox").TOptional<import("typebox").TInteger>;
1012
+ size: import("typebox").TOptional<import("typebox").TInteger>;
1013
+ sort: import("typebox").TOptional<import("typebox").TString>;
1014
+ status: import("typebox").TOptional<import("typebox").TString>;
1015
+ userId: import("typebox").TOptional<import("typebox").TString>;
1022
1016
  }>;
1023
1017
  type IntentQuery = Static<typeof intentQuerySchema>;
1024
- declare const intentResourceSchema: _$typebox.TObject<{
1025
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
1026
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
1027
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
1028
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
1029
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
1030
- amount: _$typebox.TInteger;
1031
- currency: _$typebox.TString;
1032
- status: _$typebox.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
1033
- providerRef: _$typebox.TOptional<_$typebox.TString>;
1034
- providerRaw: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1035
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1036
- paymentMethodId: _$typebox.TOptional<_$typebox.TString>;
1037
- userId: _$typebox.TOptional<_$typebox.TString>;
1018
+ declare const intentResourceSchema: import("typebox").TObject<{
1019
+ 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>;
1020
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
1021
+ 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>;
1022
+ 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>;
1023
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
1024
+ amount: import("typebox").TInteger;
1025
+ currency: import("typebox").TString;
1026
+ status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
1027
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
1028
+ providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1029
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1030
+ paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
1031
+ userId: import("typebox").TOptional<import("typebox").TString>;
1038
1032
  }>;
1039
1033
  type IntentResource = Static<typeof intentResourceSchema>;
1040
1034
  //#endregion
1041
1035
  //#region ../../src/api/payments/schemas/paymentMethodSchemas.d.ts
1042
- declare const addPaymentMethodSchema: _$typebox.TObject<{
1043
- token: _$typebox.TString;
1036
+ declare const addPaymentMethodSchema: import("typebox").TObject<{
1037
+ token: import("typebox").TString;
1044
1038
  }>;
1045
1039
  type AddPaymentMethod = Static<typeof addPaymentMethodSchema>;
1046
- declare const paymentMethodResourceSchema: _$typebox.TObject<{
1047
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1048
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1049
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1050
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1051
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
1052
- userId: _$typebox.TString;
1053
- type: _$typebox.TString;
1054
- brand: _$typebox.TOptional<_$typebox.TString>;
1055
- last4: _$typebox.TOptional<_$typebox.TString>;
1056
- expMonth: _$typebox.TOptional<_$typebox.TInteger>;
1057
- expYear: _$typebox.TOptional<_$typebox.TInteger>;
1058
- isDefault: _$typebox.TBoolean;
1059
- providerRef: _$typebox.TString;
1040
+ declare const paymentMethodResourceSchema: import("typebox").TObject<{
1041
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1042
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1043
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1044
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1045
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
1046
+ userId: import("typebox").TString;
1047
+ type: import("typebox").TString;
1048
+ brand: import("typebox").TOptional<import("typebox").TString>;
1049
+ last4: import("typebox").TOptional<import("typebox").TString>;
1050
+ expMonth: import("typebox").TOptional<import("typebox").TInteger>;
1051
+ expYear: import("typebox").TOptional<import("typebox").TInteger>;
1052
+ isDefault: import("typebox").TBoolean;
1053
+ providerRef: import("typebox").TString;
1060
1054
  }>;
1061
1055
  type PaymentMethodResource = Static<typeof paymentMethodResourceSchema>;
1062
1056
  //#endregion
1063
1057
  //#region ../../src/api/payments/schemas/refundSchemas.d.ts
1064
- declare const refundResourceSchema: _$typebox.TObject<{
1065
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1066
- version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1067
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1068
- updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1069
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
1070
- intentId: _$typebox.TString;
1071
- amount: _$typebox.TInteger;
1072
- currency: _$typebox.TString;
1073
- status: _$typebox.TUnsafe<"processing" | "failed" | "pending" | "completed">;
1074
- reason: _$typebox.TOptional<_$typebox.TString>;
1075
- providerRef: _$typebox.TOptional<_$typebox.TString>;
1058
+ declare const refundResourceSchema: import("typebox").TObject<{
1059
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1060
+ version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1061
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1062
+ updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1063
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
1064
+ intentId: import("typebox").TString;
1065
+ amount: import("typebox").TInteger;
1066
+ currency: import("typebox").TString;
1067
+ status: import("typebox").TUnsafe<"processing" | "failed" | "pending" | "completed">;
1068
+ reason: import("typebox").TOptional<import("typebox").TString>;
1069
+ providerRef: import("typebox").TOptional<import("typebox").TString>;
1076
1070
  }>;
1077
1071
  type RefundResource = Static<typeof refundResourceSchema>;
1078
1072
  //#endregion
@@ -1118,7 +1112,7 @@ declare module "alepha" {
1118
1112
  };
1119
1113
  }
1120
1114
  }
1121
- declare const AlephaApiPayments: _$alepha.Service<_$alepha.Module>;
1115
+ declare const AlephaApiPayments: import("alepha").Service<import("alepha").Module>;
1122
1116
  //#endregion
1123
1117
  export { AddPaymentMethod, AdminPaymentController, AlephaApiPayments, CaptureIntent, CheckoutResponse, CreateCheckout, CreateIntent, CreatePaymentMethodResult, CreateSessionResult, IntentQuery, IntentResource, MemoryPaymentProvider, MockCheckoutController, PaymentController, PaymentError, PaymentIntentEntity, PaymentMethodEntity, PaymentMethodResource, PaymentMethodService, PaymentProvider, PaymentService, RecordCash, RefundEntity, RefundIntent, RefundResource, RefundResult, WebhookEvent, addPaymentMethodSchema, captureIntentSchema, checkoutResponseSchema, createCheckoutSchema, createIntentSchema, intentQuerySchema, intentResourceSchema, paymentIntents, paymentMethodResourceSchema, paymentMethods, recordCashSchema, refundIntentSchema, refundResourceSchema, refunds };
1124
1118
  //# sourceMappingURL=index.d.ts.map