gemi 0.116.0 → 0.117.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 (331) hide show
  1. package/dist/ai/index.js +2 -2
  2. package/dist/ai/index.js.map +1 -1
  3. package/dist/app/index.js +2 -2
  4. package/dist/app/index.js.map +1 -1
  5. package/dist/auth/AuthServiceProvider.d.ts.map +1 -1
  6. package/dist/auth/config.d.ts +27 -0
  7. package/dist/auth/config.d.ts.map +1 -1
  8. package/dist/auth/connections/ConnectionManager.d.ts +133 -0
  9. package/dist/auth/connections/ConnectionManager.d.ts.map +1 -0
  10. package/dist/auth/connections/ConnectionStore.d.ts +146 -0
  11. package/dist/auth/connections/ConnectionStore.d.ts.map +1 -0
  12. package/dist/auth/connections/ConnectionsController.d.ts +23 -0
  13. package/dist/auth/connections/ConnectionsController.d.ts.map +1 -0
  14. package/dist/auth/connections/OAuthConnectionProvider.d.ts +105 -0
  15. package/dist/auth/connections/OAuthConnectionProvider.d.ts.map +1 -0
  16. package/dist/auth/connections/errors.d.ts +32 -0
  17. package/dist/auth/connections/errors.d.ts.map +1 -0
  18. package/dist/auth/oauth/oauthState.d.ts +15 -2
  19. package/dist/auth/oauth/oauthState.d.ts.map +1 -1
  20. package/dist/auth/routes.d.ts +13 -0
  21. package/dist/auth/routes.d.ts.map +1 -1
  22. package/dist/bin/orm/emit.d.ts.map +1 -1
  23. package/dist/bin/orm-generator.js +51 -4
  24. package/dist/bin/orm-generator.js.map +4 -4
  25. package/dist/bun/plugin.js +2 -2
  26. package/dist/bun/plugin.js.map +1 -1
  27. package/dist/bun/preload.js +2 -2
  28. package/dist/bun/preload.js.map +1 -1
  29. package/dist/chunk-00n3gwr8.js +71 -0
  30. package/dist/chunk-00n3gwr8.js.map +13 -0
  31. package/dist/{chunk-t4yh4nf9.js → chunk-076jezzg.js} +3 -3
  32. package/dist/{chunk-t4yh4nf9.js.map → chunk-076jezzg.js.map} +1 -1
  33. package/dist/{chunk-qjhw8nje.js → chunk-077rea02.js} +1 -1
  34. package/dist/{chunk-6cx8ncd4.js → chunk-1ckha5dt.js} +3 -3
  35. package/dist/{chunk-6cx8ncd4.js.map → chunk-1ckha5dt.js.map} +1 -1
  36. package/dist/{chunk-mschc94q.js → chunk-1zzd39qg.js} +2 -2
  37. package/dist/{chunk-mschc94q.js.map → chunk-1zzd39qg.js.map} +1 -1
  38. package/dist/{chunk-5stgtwqw.js → chunk-2bja99cq.js} +2 -2
  39. package/dist/{chunk-5stgtwqw.js.map → chunk-2bja99cq.js.map} +1 -1
  40. package/dist/chunk-2czfefn2.js +10 -0
  41. package/dist/{chunk-yf1njzd5.js.map → chunk-2czfefn2.js.map} +5 -4
  42. package/dist/{chunk-aazmrxj9.js → chunk-37pk2cjg.js} +2 -2
  43. package/dist/{chunk-aazmrxj9.js.map → chunk-37pk2cjg.js.map} +1 -1
  44. package/dist/{chunk-qsrcdzan.js → chunk-3w4hk6q2.js} +3 -3
  45. package/dist/{chunk-qsrcdzan.js.map → chunk-3w4hk6q2.js.map} +1 -1
  46. package/dist/chunk-51w202vr.js +5 -0
  47. package/dist/{chunk-whtzggn6.js.map → chunk-51w202vr.js.map} +3 -4
  48. package/dist/{chunk-4088szy9.js → chunk-5m8vvtvn.js} +3 -3
  49. package/dist/{chunk-4088szy9.js.map → chunk-5m8vvtvn.js.map} +1 -1
  50. package/dist/{chunk-6d8rvr1v.js → chunk-5p4z1fgc.js} +2 -2
  51. package/dist/{chunk-6d8rvr1v.js.map → chunk-5p4z1fgc.js.map} +1 -1
  52. package/dist/{chunk-kejwjerj.js → chunk-5w6kyxsj.js} +2 -2
  53. package/dist/{chunk-kejwjerj.js.map → chunk-5w6kyxsj.js.map} +1 -1
  54. package/dist/{chunk-pyk3gzvc.js → chunk-62jw0vsf.js} +2 -2
  55. package/dist/{chunk-pyk3gzvc.js.map → chunk-62jw0vsf.js.map} +1 -1
  56. package/dist/chunk-63ewmmhc.js +5 -0
  57. package/dist/{chunk-1q9kd20m.js.map → chunk-63ewmmhc.js.map} +1 -1
  58. package/dist/{chunk-p1aqq0ga.js → chunk-6ggmk2eg.js} +3 -3
  59. package/dist/{chunk-p1aqq0ga.js.map → chunk-6ggmk2eg.js.map} +1 -1
  60. package/dist/{chunk-2tzm58j3.js → chunk-6y4nk9f1.js} +2 -2
  61. package/dist/{chunk-2tzm58j3.js.map → chunk-6y4nk9f1.js.map} +1 -1
  62. package/dist/{chunk-1hr4xht1.js → chunk-8gtc3s1y.js} +2 -2
  63. package/dist/{chunk-1hr4xht1.js.map → chunk-8gtc3s1y.js.map} +1 -1
  64. package/dist/{chunk-frerzsxq.js → chunk-a22h5cby.js} +2 -2
  65. package/dist/{chunk-frerzsxq.js.map → chunk-a22h5cby.js.map} +1 -1
  66. package/dist/{chunk-zyt2w03d.js → chunk-a32wfzdq.js} +2 -2
  67. package/dist/{chunk-zyt2w03d.js.map → chunk-a32wfzdq.js.map} +1 -1
  68. package/dist/{chunk-t04f3akb.js → chunk-a77586gv.js} +2 -2
  69. package/dist/{chunk-t04f3akb.js.map → chunk-a77586gv.js.map} +1 -1
  70. package/dist/chunk-a7r39713.js +5 -0
  71. package/dist/chunk-a7r39713.js.map +10 -0
  72. package/dist/{chunk-vxm6yevm.js → chunk-arwmvgrz.js} +2 -2
  73. package/dist/{chunk-vxm6yevm.js.map → chunk-arwmvgrz.js.map} +1 -1
  74. package/dist/{chunk-41da9628.js → chunk-bvqae0px.js} +1 -1
  75. package/dist/{chunk-d9mar37g.js → chunk-c2n6zdyd.js} +2 -2
  76. package/dist/{chunk-d9mar37g.js.map → chunk-c2n6zdyd.js.map} +1 -1
  77. package/dist/{chunk-56jky6vf.js → chunk-cytss9mb.js} +2 -2
  78. package/dist/{chunk-56jky6vf.js.map → chunk-cytss9mb.js.map} +1 -1
  79. package/dist/{chunk-vw8849ys.js → chunk-dcgvq79a.js} +2 -2
  80. package/dist/{chunk-m54s6jpr.js.map → chunk-dcgvq79a.js.map} +1 -1
  81. package/dist/{chunk-6chz1ktz.js → chunk-de4t48j9.js} +3 -3
  82. package/dist/{chunk-6chz1ktz.js.map → chunk-de4t48j9.js.map} +1 -1
  83. package/dist/{chunk-cbqazg9k.js → chunk-dz99g58c.js} +2 -2
  84. package/dist/{chunk-cbqazg9k.js.map → chunk-dz99g58c.js.map} +1 -1
  85. package/dist/{chunk-e573yxpq.js → chunk-e7ezmag9.js} +3 -3
  86. package/dist/{chunk-e573yxpq.js.map → chunk-e7ezmag9.js.map} +1 -1
  87. package/dist/{chunk-yer1r3t3.js → chunk-epvpmakp.js} +2 -2
  88. package/dist/{chunk-yer1r3t3.js.map → chunk-epvpmakp.js.map} +1 -1
  89. package/dist/{chunk-yhrye9cm.js → chunk-f8vcwzgd.js} +2 -2
  90. package/dist/{chunk-yhrye9cm.js.map → chunk-f8vcwzgd.js.map} +1 -1
  91. package/dist/chunk-fa37qzm3.js +5 -0
  92. package/dist/chunk-fa37qzm3.js.map +12 -0
  93. package/dist/{chunk-fxgxf16k.js → chunk-ffgmqwzy.js} +2 -2
  94. package/dist/{chunk-fxgxf16k.js.map → chunk-ffgmqwzy.js.map} +1 -1
  95. package/dist/{chunk-er3wf6ng.js → chunk-fk6nxhxn.js} +2 -2
  96. package/dist/{chunk-er3wf6ng.js.map → chunk-fk6nxhxn.js.map} +1 -1
  97. package/dist/{chunk-3hrj5rwm.js → chunk-fnwbbmnk.js} +2 -2
  98. package/dist/{chunk-3hrj5rwm.js.map → chunk-fnwbbmnk.js.map} +1 -1
  99. package/dist/chunk-g2wncay4.js +9 -0
  100. package/dist/{chunk-hytt9qyj.js.map → chunk-g2wncay4.js.map} +3 -4
  101. package/dist/{chunk-gts5p6mw.js → chunk-ge9xjwgq.js} +4 -4
  102. package/dist/{chunk-gts5p6mw.js.map → chunk-ge9xjwgq.js.map} +1 -1
  103. package/dist/{chunk-tw5kwbx4.js → chunk-gjy2qjcr.js} +2 -2
  104. package/dist/{chunk-tw5kwbx4.js.map → chunk-gjy2qjcr.js.map} +1 -1
  105. package/dist/{chunk-15c2vgaf.js → chunk-gn7kne7r.js} +2 -2
  106. package/dist/{chunk-15c2vgaf.js.map → chunk-gn7kne7r.js.map} +1 -1
  107. package/dist/{chunk-9n1hx3mq.js → chunk-hr61ekcr.js} +3 -3
  108. package/dist/{chunk-9n1hx3mq.js.map → chunk-hr61ekcr.js.map} +1 -1
  109. package/dist/{chunk-m54s6jpr.js → chunk-hvgmqt6z.js} +2 -2
  110. package/dist/{chunk-vw8849ys.js.map → chunk-hvgmqt6z.js.map} +1 -1
  111. package/dist/{chunk-aeh67ynz.js → chunk-hvpn18bb.js} +3 -3
  112. package/dist/{chunk-aeh67ynz.js.map → chunk-hvpn18bb.js.map} +1 -1
  113. package/dist/{chunk-jdhdrr2k.js → chunk-j1453bn1.js} +2 -2
  114. package/dist/{chunk-jdhdrr2k.js.map → chunk-j1453bn1.js.map} +1 -1
  115. package/dist/{chunk-tn2bryy2.js → chunk-jpetnpzn.js} +2 -2
  116. package/dist/{chunk-tn2bryy2.js.map → chunk-jpetnpzn.js.map} +1 -1
  117. package/dist/{chunk-v1tfdgy1.js → chunk-jqrs16g2.js} +3 -3
  118. package/dist/{chunk-v1tfdgy1.js.map → chunk-jqrs16g2.js.map} +1 -1
  119. package/dist/{chunk-4mfrgd5m.js → chunk-kk77x2v4.js} +2 -2
  120. package/dist/{chunk-4mfrgd5m.js.map → chunk-kk77x2v4.js.map} +1 -1
  121. package/dist/chunk-kpn7f58a.js +14 -0
  122. package/dist/{chunk-pn8v6fj2.js.map → chunk-kpn7f58a.js.map} +11 -6
  123. package/dist/chunk-mhteg4yz.js +57 -0
  124. package/dist/{chunk-ms9k0rx6.js.map → chunk-mhteg4yz.js.map} +15 -11
  125. package/dist/{chunk-n672d4g8.js → chunk-n9jyjp4a.js} +2 -2
  126. package/dist/{chunk-n672d4g8.js.map → chunk-n9jyjp4a.js.map} +1 -1
  127. package/dist/{chunk-vbdty91k.js → chunk-nb2gggba.js} +3 -3
  128. package/dist/{chunk-vbdty91k.js.map → chunk-nb2gggba.js.map} +1 -1
  129. package/dist/chunk-ntxsdchf.js +50 -0
  130. package/dist/chunk-ntxsdchf.js.map +10 -0
  131. package/dist/{chunk-2z1981d0.js → chunk-pepzecrm.js} +2 -2
  132. package/dist/{chunk-2z1981d0.js.map → chunk-pepzecrm.js.map} +1 -1
  133. package/dist/{chunk-785b41h1.js → chunk-pgy3mfxw.js} +3 -3
  134. package/dist/{chunk-785b41h1.js.map → chunk-pgy3mfxw.js.map} +1 -1
  135. package/dist/{chunk-98m15b9x.js → chunk-qhw0hej0.js} +2 -2
  136. package/dist/{chunk-98m15b9x.js.map → chunk-qhw0hej0.js.map} +1 -1
  137. package/dist/{chunk-303mprnv.js → chunk-r3v2cnrj.js} +2 -2
  138. package/dist/{chunk-303mprnv.js.map → chunk-r3v2cnrj.js.map} +1 -1
  139. package/dist/{chunk-ktr3k768.js → chunk-rhmpphhc.js} +3 -3
  140. package/dist/{chunk-ktr3k768.js.map → chunk-rhmpphhc.js.map} +1 -1
  141. package/dist/{chunk-fre6f4nk.js → chunk-s4f56035.js} +2 -2
  142. package/dist/{chunk-fre6f4nk.js.map → chunk-s4f56035.js.map} +1 -1
  143. package/dist/{chunk-sr942vb1.js → chunk-sj4f7x4p.js} +2 -2
  144. package/dist/{chunk-sr942vb1.js.map → chunk-sj4f7x4p.js.map} +1 -1
  145. package/dist/{chunk-wyw6p3fg.js → chunk-sksmnjkn.js} +3 -3
  146. package/dist/{chunk-wyw6p3fg.js.map → chunk-sksmnjkn.js.map} +1 -1
  147. package/dist/{chunk-kqxdsv22.js → chunk-stnd9qht.js} +2 -2
  148. package/dist/{chunk-kqxdsv22.js.map → chunk-stnd9qht.js.map} +1 -1
  149. package/dist/{chunk-1myhm0g3.js → chunk-t65074mw.js} +3 -3
  150. package/dist/{chunk-1myhm0g3.js.map → chunk-t65074mw.js.map} +1 -1
  151. package/dist/chunk-t87w4h84.js +24 -0
  152. package/dist/{chunk-79xg42e7.js.map → chunk-t87w4h84.js.map} +2 -2
  153. package/dist/{chunk-z10cas5r.js → chunk-thz75w6e.js} +2 -2
  154. package/dist/{chunk-z10cas5r.js.map → chunk-thz75w6e.js.map} +1 -1
  155. package/dist/{chunk-xt9tv99x.js → chunk-v8vnxkvp.js} +2 -2
  156. package/dist/{chunk-xt9tv99x.js.map → chunk-v8vnxkvp.js.map} +1 -1
  157. package/dist/{chunk-x7cpth2f.js → chunk-veq07rp8.js} +1 -1
  158. package/dist/{chunk-agyfv3f8.js → chunk-vj5necm0.js} +1 -1
  159. package/dist/{chunk-p91b8zcn.js → chunk-vtc23xpk.js} +2 -2
  160. package/dist/{chunk-p91b8zcn.js.map → chunk-vtc23xpk.js.map} +1 -1
  161. package/dist/{chunk-jmpw6bqz.js → chunk-w4e480he.js} +2 -2
  162. package/dist/{chunk-jmpw6bqz.js.map → chunk-w4e480he.js.map} +1 -1
  163. package/dist/{chunk-8rv62v14.js → chunk-wgb79ysr.js} +2 -2
  164. package/dist/{chunk-8rv62v14.js.map → chunk-wgb79ysr.js.map} +1 -1
  165. package/dist/{chunk-1vzks22y.js → chunk-wk1tp1f1.js} +2 -2
  166. package/dist/{chunk-1vzks22y.js.map → chunk-wk1tp1f1.js.map} +1 -1
  167. package/dist/{chunk-bra1a1fq.js → chunk-wwdbgshx.js} +2 -2
  168. package/dist/{chunk-bra1a1fq.js.map → chunk-wwdbgshx.js.map} +1 -1
  169. package/dist/{chunk-eqse2m6n.js → chunk-wzzrz612.js} +2 -2
  170. package/dist/{chunk-eqse2m6n.js.map → chunk-wzzrz612.js.map} +1 -1
  171. package/dist/{chunk-hdps9n52.js → chunk-x7qwx07b.js} +3 -3
  172. package/dist/{chunk-hdps9n52.js.map → chunk-x7qwx07b.js.map} +1 -1
  173. package/dist/chunk-x84as3vy.js +5 -0
  174. package/dist/chunk-x84as3vy.js.map +12 -0
  175. package/dist/chunk-y0en07zh.js +302 -0
  176. package/dist/chunk-y0en07zh.js.map +17 -0
  177. package/dist/{chunk-d2gfcf85.js → chunk-yfwrbfnw.js} +2 -2
  178. package/dist/{chunk-d2gfcf85.js.map → chunk-yfwrbfnw.js.map} +1 -1
  179. package/dist/{chunk-mazznq15.js → chunk-yhp6bvhj.js} +3 -3
  180. package/dist/{chunk-mazznq15.js.map → chunk-yhp6bvhj.js.map} +1 -1
  181. package/dist/{chunk-tzm3c7n6.js → chunk-yvtmygrk.js} +4 -4
  182. package/dist/{chunk-tzm3c7n6.js.map → chunk-yvtmygrk.js.map} +1 -1
  183. package/dist/{chunk-mqfzdfnz.js → chunk-zkjs3m5m.js} +2 -2
  184. package/dist/{chunk-mqfzdfnz.js.map → chunk-zkjs3m5m.js.map} +1 -1
  185. package/dist/chunk-zw6843j3.js +5 -0
  186. package/dist/chunk-zw6843j3.js.map +12 -0
  187. package/dist/client/Head.d.ts.map +1 -1
  188. package/dist/client/fonts.d.ts +69 -0
  189. package/dist/client/fonts.d.ts.map +1 -0
  190. package/dist/client/index.d.ts +1 -0
  191. package/dist/client/index.d.ts.map +1 -1
  192. package/dist/client/index.js +75 -1
  193. package/dist/client/index.js.map +1 -1
  194. package/dist/config/index.js +1 -1
  195. package/dist/console/builtins.d.ts +13 -0
  196. package/dist/console/builtins.d.ts.map +1 -0
  197. package/dist/console/run.js +13 -11
  198. package/dist/console/run.js.map +6 -5
  199. package/dist/console/runner.d.ts.map +1 -1
  200. package/dist/console/usage.d.ts +2 -0
  201. package/dist/console/usage.d.ts.map +1 -1
  202. package/dist/container/index.js +2 -2
  203. package/dist/container/index.js.map +1 -1
  204. package/dist/database/index.js +2 -2
  205. package/dist/database/index.js.map +1 -1
  206. package/dist/email/index.js +2 -2
  207. package/dist/email/index.js.map +1 -1
  208. package/dist/facades/Connections.d.ts +36 -0
  209. package/dist/facades/Connections.d.ts.map +1 -0
  210. package/dist/facades/Crypt.d.ts +26 -0
  211. package/dist/facades/Crypt.d.ts.map +1 -0
  212. package/dist/facades/Meta.d.ts +7 -1
  213. package/dist/facades/Meta.d.ts.map +1 -1
  214. package/dist/facades/Storage.d.ts +29 -0
  215. package/dist/facades/Storage.d.ts.map +1 -1
  216. package/dist/facades/index.d.ts +2 -0
  217. package/dist/facades/index.d.ts.map +1 -1
  218. package/dist/facades/index.js +2 -2
  219. package/dist/facades/index.js.map +1 -1
  220. package/dist/foundation/index.js +2 -2
  221. package/dist/foundation/index.js.map +1 -1
  222. package/dist/http/HttpRequest.d.ts +1 -0
  223. package/dist/http/HttpRequest.d.ts.map +1 -1
  224. package/dist/http/Metadata.d.ts +5 -0
  225. package/dist/http/Metadata.d.ts.map +1 -1
  226. package/dist/http/index.d.ts +3 -1
  227. package/dist/http/index.d.ts.map +1 -1
  228. package/dist/http/index.js +2 -2
  229. package/dist/http/index.js.map +1 -1
  230. package/dist/http/requestContext.d.ts +1 -0
  231. package/dist/http/requestContext.d.ts.map +1 -1
  232. package/dist/http/safeFetch/errors.d.ts +10 -0
  233. package/dist/http/safeFetch/errors.d.ts.map +1 -1
  234. package/dist/http/safeFetch/index.d.ts +1 -1
  235. package/dist/http/safeFetch/index.d.ts.map +1 -1
  236. package/dist/http/sitemap/Robots.d.ts +95 -0
  237. package/dist/http/sitemap/Robots.d.ts.map +1 -0
  238. package/dist/http/sitemap/Sitemap.d.ts +145 -0
  239. package/dist/http/sitemap/Sitemap.d.ts.map +1 -0
  240. package/dist/http/sitemap/fetchText.d.ts +16 -0
  241. package/dist/http/sitemap/fetchText.d.ts.map +1 -0
  242. package/dist/http/sitemap/index.d.ts +3 -0
  243. package/dist/http/sitemap/index.d.ts.map +1 -0
  244. package/dist/http/sitemap/xml.d.ts +21 -0
  245. package/dist/http/sitemap/xml.d.ts.map +1 -0
  246. package/dist/i18n/Translator.d.ts.map +1 -1
  247. package/dist/i18n/dictionaryRuntime.js +2 -2
  248. package/dist/i18n/dictionaryRuntime.js.map +1 -1
  249. package/dist/i18n/index.d.ts +1 -1
  250. package/dist/i18n/index.d.ts.map +1 -1
  251. package/dist/i18n/index.js +2 -2
  252. package/dist/i18n/index.js.map +2 -2
  253. package/dist/i18n/resolveLocale.d.ts +18 -0
  254. package/dist/i18n/resolveLocale.d.ts.map +1 -1
  255. package/dist/kernel/index.js +3 -3
  256. package/dist/kernel/index.js.map +3 -3
  257. package/dist/kernel/providers.d.ts +2 -2
  258. package/dist/kernel/providers.d.ts.map +1 -1
  259. package/dist/orm/Model.d.ts.map +1 -1
  260. package/dist/orm/encryption-rotate.d.ts +44 -0
  261. package/dist/orm/encryption-rotate.d.ts.map +1 -0
  262. package/dist/orm/encryption.d.ts +54 -0
  263. package/dist/orm/encryption.d.ts.map +1 -0
  264. package/dist/orm/index.d.ts +2 -0
  265. package/dist/orm/index.d.ts.map +1 -1
  266. package/dist/orm/index.js +3 -3
  267. package/dist/orm/index.js.map +4 -4
  268. package/dist/orm/schema.d.ts +25 -1
  269. package/dist/orm/schema.d.ts.map +1 -1
  270. package/dist/server/index.js +2 -2
  271. package/dist/server/index.js.map +1 -1
  272. package/dist/services/encryption/Encrypter.d.ts +86 -0
  273. package/dist/services/encryption/Encrypter.d.ts.map +1 -0
  274. package/dist/services/encryption/EncryptionServiceProvider.d.ts +13 -0
  275. package/dist/services/encryption/EncryptionServiceProvider.d.ts.map +1 -0
  276. package/dist/services/encryption/config.d.ts +36 -0
  277. package/dist/services/encryption/config.d.ts.map +1 -0
  278. package/dist/services/file-storage/drivers/FileStorageDriver.d.ts +12 -1
  279. package/dist/services/file-storage/drivers/FileStorageDriver.d.ts.map +1 -1
  280. package/dist/services/file-storage/drivers/FileSystemDriver.d.ts +8 -1
  281. package/dist/services/file-storage/drivers/FileSystemDriver.d.ts.map +1 -1
  282. package/dist/services/file-storage/drivers/types.d.ts +17 -0
  283. package/dist/services/file-storage/drivers/types.d.ts.map +1 -1
  284. package/dist/services/file-storage/putFromUrl.d.ts +56 -0
  285. package/dist/services/file-storage/putFromUrl.d.ts.map +1 -0
  286. package/dist/services/file-storage/sniffContentType.d.ts +33 -0
  287. package/dist/services/file-storage/sniffContentType.d.ts.map +1 -0
  288. package/dist/services/index.d.ts +18 -4
  289. package/dist/services/index.d.ts.map +1 -1
  290. package/dist/services/index.js +10 -10
  291. package/dist/services/index.js.map +4 -3
  292. package/dist/services/queue/DatabaseQueueDriver.d.ts +96 -7
  293. package/dist/services/queue/DatabaseQueueDriver.d.ts.map +1 -1
  294. package/dist/services/queue/Job.d.ts +72 -0
  295. package/dist/services/queue/Job.d.ts.map +1 -1
  296. package/dist/services/queue/MemoryQueueDriver.d.ts +22 -2
  297. package/dist/services/queue/MemoryQueueDriver.d.ts.map +1 -1
  298. package/dist/services/queue/QueueDriver.d.ts +74 -1
  299. package/dist/services/queue/QueueDriver.d.ts.map +1 -1
  300. package/dist/services/queue/QueueManager.d.ts +47 -0
  301. package/dist/services/queue/QueueManager.d.ts.map +1 -1
  302. package/dist/services/queue/batch.d.ts +112 -0
  303. package/dist/services/queue/batch.d.ts.map +1 -0
  304. package/dist/services/queue/queueDriverContract.d.ts +5 -0
  305. package/dist/services/queue/queueDriverContract.d.ts.map +1 -1
  306. package/dist/services/queue/work.js +2 -2
  307. package/dist/services/queue/work.js.map +1 -1
  308. package/dist/services/router/ViewRouteDispatcher.d.ts.map +1 -1
  309. package/dist/stats/route-table.js +1 -1
  310. package/dist/support/index.js +2 -2
  311. package/dist/support/index.js.map +1 -1
  312. package/dist/vitest/index.js +2 -2
  313. package/dist/vitest/index.js.map +1 -1
  314. package/package.json +1 -1
  315. package/dist/chunk-1q9kd20m.js +0 -5
  316. package/dist/chunk-49nyyjfe.js +0 -5
  317. package/dist/chunk-49nyyjfe.js.map +0 -11
  318. package/dist/chunk-79xg42e7.js +0 -24
  319. package/dist/chunk-7vb4eey2.js +0 -217
  320. package/dist/chunk-7vb4eey2.js.map +0 -16
  321. package/dist/chunk-hytt9qyj.js +0 -54
  322. package/dist/chunk-jmg2zsaf.js +0 -5
  323. package/dist/chunk-jmg2zsaf.js.map +0 -12
  324. package/dist/chunk-ms9k0rx6.js +0 -46
  325. package/dist/chunk-pn8v6fj2.js +0 -14
  326. package/dist/chunk-whtzggn6.js +0 -5
  327. package/dist/chunk-yf1njzd5.js +0 -10
  328. /package/dist/{chunk-qjhw8nje.js.map → chunk-077rea02.js.map} +0 -0
  329. /package/dist/{chunk-41da9628.js.map → chunk-bvqae0px.js.map} +0 -0
  330. /package/dist/{chunk-x7cpth2f.js.map → chunk-veq07rp8.js.map} +0 -0
  331. /package/dist/{chunk-agyfv3f8.js.map → chunk-vj5necm0.js.map} +0 -0
@@ -31,7 +31,19 @@
31
31
  * `prisma generate`" — and the allowlist is what makes the failure loud rather
32
32
  * than silent if one ever slips past it.
33
33
  */
34
- export declare const SCHEMA_ARTIFACT_VERSION = 2;
34
+ export declare const SCHEMA_ARTIFACT_VERSION = 3;
35
+ /**
36
+ * Every artifact version this runtime reads. **3** added
37
+ * `FieldSchema.encrypted`, and is the version emitted only for a schema that
38
+ * uses it: a runtime that predates encrypted columns would ignore the flag and
39
+ * write those columns in plaintext, which is exactly the silent skew this
40
+ * version check exists to make loud. A schema without encrypted columns is
41
+ * still emitted as **2** — it is the same artifact — so regenerating does not
42
+ * force every teammate and deploy onto the new runtime for nothing.
43
+ */
44
+ export declare const READABLE_ARTIFACT_VERSIONS: readonly number[];
45
+ /** The version a generated artifact for these schemas is stamped with. */
46
+ export declare function artifactVersionFor(schemas: readonly ModelSchema[]): number;
35
47
  /**
36
48
  * Prisma's scalar types, verbatim. Not SQL types — the mapping from these to a
37
49
  * column type is the dialect's business, and it differs (SQLite has no
@@ -121,6 +133,18 @@ export interface FieldSchema {
121
133
  */
122
134
  enum?: string;
123
135
  default?: DefaultSpec;
136
+ /**
137
+ * `/// @gemi.encrypted` on the field: stored as an encrypted envelope and
138
+ * decrypted on every read (`orm/encryption.ts`). Only on a non-list `String`
139
+ * that is not a key, has no default and is not a relation's foreign key —
140
+ * the generator refuses the rest.
141
+ *
142
+ * Absent rather than `false`, so an artifact without encrypted columns is
143
+ * byte-identical to one generated before this existed. An artifact *with*
144
+ * one is emitted as version 3, which a runtime that predates this refuses —
145
+ * see `SCHEMA_ARTIFACT_VERSION`.
146
+ */
147
+ encrypted?: true;
124
148
  }
125
149
  export interface RelationSchema {
126
150
  /** The field name on the owning model: `accounts`. */
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../orm/schema.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAClB,KAAK,GACL,QAAQ,GACR,UAAU,GACV,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,CAAC;AAEZ;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,WAAW,GACnB,eAAe,GACf,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,KAAK,GACL,aAAa,GACb,OAAO,CAAC;AAEZ,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;I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;IAC7B,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,2EAA2E;IAC3E,EAAE,EAAE,MAAM,EAAE,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,+EAA+E;IAC/E,SAAS,CAAC,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV;;;;;;;;;;;;;;;;;WAiBG;QACH,WAAW,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;KACzB,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC1B,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACpC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC3C;AAED,qBAAa,wBAAyB,SAAQ,KAAK;gBACrC,KAAK,EAAE,MAAM;CAS1B;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIjE"}
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Ga as I}from"../chunk-5stgtwqw.js";import{Ha as W}from"../chunk-tw5kwbx4.js";import{ei as b,gi as V,hi as A,ii as H,ji as O}from"../chunk-zyt2w03d.js";import{ni as k}from"../chunk-1hr4xht1.js";import"../chunk-d9mar37g.js";import{ui as $}from"../chunk-vw8849ys.js";var X=Symbol.for("gemi.server.devGeneration"),L={graceMs:1e4,providerTimeoutMs:5000};class Q{app;inFlight=0;waiters=new Set;constructor(z){this.app=z}track(z){return async(B,J)=>{this.inFlight++;try{return await z(B,J)}finally{if(this.inFlight--,this.inFlight===0)this.wake()}}}get pending(){return this.inFlight}async retire({graceMs:z,providerTimeoutMs:B}){try{await this.idle(z),await Promise.resolve().then(()=>this.app.shutdown({timeoutMs:B}))}catch(J){Z(J)}}idle(z){if(this.inFlight===0)return Promise.resolve();return new Promise((B)=>{let J=()=>{clearTimeout(K),this.waiters.delete(J),B()},K=setTimeout(J,z);this.waiters.add(J)})}wake(){for(let z of this.waiters)z()}}function Y(z,B=L){let J=globalThis,K=J[X];if(J[X]=z,!K||K===z||typeof K.retire!=="function")return Promise.resolve();let _=K.retire.bind(K);return Promise.resolve().then(()=>_(B)).catch(Z)}function Z(z){console.error("[gemi] Shutting down the application a reload replaced failed:",z)}class P{app;instrumentation;handleSignals;server;stopping;settings;constructor(z){this.app=new W({kernel:z.kernel}),this.handleSignals=z.handleSignals??!0,this.instrumentation=H(z.instrumentation??((B,J)=>J(B)))}async start(){process.env.ROOT_DIR=k();let z=Bun.env.NODE_ENV==="production";if(z){if(this.handleSignals)O(()=>this.stop());this.settings=V()}try{await this.app.waitForBoot()}catch(B){if(!z)this.app.shutdown({timeoutMs:L.providerTimeoutMs});throw B}if(z){let{httpProd:B}=await import("../chunk-79xg42e7.js");this.server=await B(this.app,this.instrumentation.bind(this))}else{I();let{httpDev:B}=await import("../chunk-p91b8zcn.js"),J=new Q(this.app);this.server=await B(this.app,J.track(this.instrumentation.bind(this))),Y(J)}return this.server}stop(z={}){return this.stopping??=A({server:this.server,shutdownProviders:(B)=>this.app.shutdown(B),settings:{...this.settings??V(),...z}}),this.stopping}}export{b as isShuttingDown,P as Server};
2
+ import{Ha as I}from"../chunk-2bja99cq.js";import{Ia as W}from"../chunk-gjy2qjcr.js";import{Ji as b,Li as V,Mi as A,Ni as H,Oi as O}from"../chunk-a32wfzdq.js";import{Si as k}from"../chunk-8gtc3s1y.js";import"../chunk-c2n6zdyd.js";import{Zi as $}from"../chunk-dcgvq79a.js";var X=Symbol.for("gemi.server.devGeneration"),L={graceMs:1e4,providerTimeoutMs:5000};class Q{app;inFlight=0;waiters=new Set;constructor(z){this.app=z}track(z){return async(B,J)=>{this.inFlight++;try{return await z(B,J)}finally{if(this.inFlight--,this.inFlight===0)this.wake()}}}get pending(){return this.inFlight}async retire({graceMs:z,providerTimeoutMs:B}){try{await this.idle(z),await Promise.resolve().then(()=>this.app.shutdown({timeoutMs:B}))}catch(J){Z(J)}}idle(z){if(this.inFlight===0)return Promise.resolve();return new Promise((B)=>{let J=()=>{clearTimeout(K),this.waiters.delete(J),B()},K=setTimeout(J,z);this.waiters.add(J)})}wake(){for(let z of this.waiters)z()}}function Y(z,B=L){let J=globalThis,K=J[X];if(J[X]=z,!K||K===z||typeof K.retire!=="function")return Promise.resolve();let _=K.retire.bind(K);return Promise.resolve().then(()=>_(B)).catch(Z)}function Z(z){console.error("[gemi] Shutting down the application a reload replaced failed:",z)}class P{app;instrumentation;handleSignals;server;stopping;settings;constructor(z){this.app=new W({kernel:z.kernel}),this.handleSignals=z.handleSignals??!0,this.instrumentation=H(z.instrumentation??((B,J)=>J(B)))}async start(){process.env.ROOT_DIR=k();let z=Bun.env.NODE_ENV==="production";if(z){if(this.handleSignals)O(()=>this.stop());this.settings=V()}try{await this.app.waitForBoot()}catch(B){if(!z)this.app.shutdown({timeoutMs:L.providerTimeoutMs});throw B}if(z){let{httpProd:B}=await import("../chunk-t87w4h84.js");this.server=await B(this.app,this.instrumentation.bind(this))}else{I();let{httpDev:B}=await import("../chunk-vtc23xpk.js"),J=new Q(this.app);this.server=await B(this.app,J.track(this.instrumentation.bind(this))),Y(J)}return this.server}stop(z={}){return this.stopping??=A({server:this.server,shutdownProviders:(B)=>this.app.shutdown(B),settings:{...this.settings??V(),...z}}),this.stopping}}export{b as isShuttingDown,P as Server};
3
3
 
4
- //# debugId=893DC0539C493A4C64756E2164756E21
4
+ //# debugId=C9EA4C97C0BEFAC764756E2164756E21
@@ -6,6 +6,6 @@
6
6
  "import { App } from \"../app\";\nimport { Kernel } from \"../kernel\";\nimport { projectRoot } from \"../support/discover\";\nimport { DevGeneration, devRetireDefaults, replaceDevGeneration } from \"./devReload\";\nimport {\n drain,\n installShutdownSignals,\n serveForShutdown,\n shutdownSettings,\n type ShutdownSettings,\n} from \"./shutdown\";\nimport { Instrumentation } from \"./types\";\nimport { watchEnv } from \"./watchEnv\";\n\nexport class Server {\n private app: App;\n private instrumentation: Instrumentation;\n private handleSignals: boolean;\n private server: Bun.Server<unknown> | undefined;\n private stopping: Promise<number> | undefined;\n private settings: ShutdownSettings | undefined;\n\n constructor(params: {\n kernel: new () => Kernel;\n instrumentation?: Instrumentation;\n /**\n * Drain on `SIGTERM`/`SIGINT` and exit — production only. `false` leaves\n * the signals to the app, which can call `stop()` itself.\n */\n handleSignals?: boolean;\n }) {\n this.app = new App({ kernel: params.kernel });\n this.handleSignals = params.handleSignals ?? true;\n this.instrumentation = serveForShutdown(\n params.instrumentation ??\n ((req: Request, next: (req: Request) => Promise<Response>) => next(req)),\n );\n }\n\n /**\n * Boots the application and starts listening. Resolves with the `Bun.Server`\n * once it is accepting requests.\n */\n async start(): Promise<Bun.Server<unknown>> {\n // Before the boot, not after: `httpDev`/`httpProd` set this too, but they\n // are imported below — after every provider's `boot()` has run — so a\n // service that resolves a path during boot used to read `undefined`\n // (`services/logging`, #423). Same rule `httpProd` computes it with, so\n // the assignment it makes a moment later is the same value.\n //\n // It doubles as the marker for \"this process is serving\": nothing else\n // sets `ROOT_DIR`, so a console command or a migration — which boot the\n // same providers through `runConsole` — can tell that it is not one, and\n // skip work that only a server should do at boot.\n process.env.ROOT_DIR = projectRoot();\n\n // Read once, ahead of the boot, so the signal handling below and the mode\n // that starts after the boot cannot disagree: whatever a provider's\n // `boot()` does to the environment, this process is the server it was\n // started as.\n const production = process.env.NODE_ENV === \"production\";\n\n if (production) {\n // Before the boot, not just before listening: the whole start-up is a\n // window in which a signal can arrive, and the slow part of it is the\n // boot — a connection pool, the config, the dictionaries. A rolling\n // update that `SIGTERM`s a pod two seconds in finds no listener\n // installed, and the default action for both signals is to kill the\n // process on the spot: no provider's `shutdown()`, no pool closed,\n // nothing flushed. Installing here makes that a drain like any other.\n // `stop()` handles a server that does not exist yet (nothing to close,\n // requests cannot be in flight) and `Application.shutdown` calls the\n // hooks of providers that registered but never booted, swallowing\n // whatever they throw — half a boot is exactly when a hook is most\n // likely to trip over something it expected `boot()` to have made.\n if (this.handleSignals) installShutdownSignals(() => this.stop());\n // Read now, so a bad value is warned about while the operator is\n // watching the deploy, not first at the shutdown it spoils — and so a\n // signal during the boot drains on the configured budget rather than on\n // whatever `stop()` reads at the time.\n this.settings = shutdownSettings();\n }\n\n // Phase two of the boot. `new App({ kernel })` already ran every provider's\n // synchronous `register()`; this awaits their `boot()` before the first\n // request is served.\n try {\n await this.app.waitForBoot();\n } catch (error) {\n // A `bun --hot` reload whose boot threw: the previous application keeps\n // serving, and this one never will, so whatever its providers opened\n // before the throw (the feature flags' warm-up, when they are on, has\n // opened the database pool by then) is closed now rather than left open\n // for good (#652). Production exits on a failed boot, which closes\n // everything anyway.\n if (!production) void this.app.shutdown({ timeoutMs: devRetireDefaults.providerTimeoutMs });\n throw error;\n }\n\n // Dynamic import so each mode only pulls in its own code: `httpDev` drags in\n // Vite (dev-only) and `httpProd` reads the built `dist/` manifests — neither\n // should load in the other environment.\n if (production) {\n const { httpProd } = await import(\"./httpProd.js\");\n this.server = await httpProd(this.app, this.instrumentation.bind(this));\n } else {\n // Dev only: reload `.env` into process.env on change so config edits take\n // effect without restarting the dev server (Bun reads `.env` only at\n // startup, even under `--hot`). No signal handling here: `bun --hot`\n // re-runs this on every reload, and a Ctrl+C in development should stop\n // the server now, not after a drain.\n watchEnv();\n const { httpDev } = await import(\"./httpDev.js\");\n const generation = new DevGeneration(this.app);\n this.server = await httpDev(this.app, generation.track(this.instrumentation.bind(this)));\n // Only now, with the new fetch handler live, has the application this\n // reload replaced stopped receiving requests; it is shut down once the\n // ones it is serving finish (#652). Not awaited, so the reload is not\n // held up by it.\n void replaceDevGeneration(generation);\n }\n return this.server;\n }\n\n /**\n * Stops the server gracefully and resolves with the exit code it earned: 0\n * when the in-flight requests drained and every provider shut down in time,\n * 1 otherwise. Does not exit the process — the signal handler does that.\n *\n * The order is `drain` in `./shutdown`: `isShuttingDown()` turns true, the\n * listener closes, in-flight requests finish under the grace period, then\n * every provider's `shutdown()` runs in reverse registration order.\n * Idempotent: a second call returns the first call's promise. Settings\n * default to the `GEMI_SHUTDOWN_*` environment variables.\n */\n stop(settings: Partial<ShutdownSettings> = {}): Promise<number> {\n this.stopping ??= drain({\n server: this.server,\n shutdownProviders: (options) => this.app.shutdown(options),\n settings: { ...(this.settings ?? shutdownSettings()), ...settings },\n });\n return this.stopping;\n }\n}\n"
7
7
  ],
8
8
  "mappings": ";wSAkBA,DAAM,HAAU,EAAO,DAAI,sBAA2B,EAmBzC,EAAmC,CAAE,QAAS,IAAQ,kBAAmB,IAAM,EAiBrF,MAAM,CAAc,CAII,IAHrB,SAAW,EACX,QAAU,IAAI,IAEtB,WAAW,CAAkB,EAAgB,CAAhB,WAG7B,KAAK,CAAC,EAAmD,CACvD,MAAO,OAAO,EAAK,IAAS,CAC1B,KAAK,WACL,GAAI,CACF,OAAO,MAAM,EAAgB,EAAK,CAAI,SACtC,CAEA,GADA,KAAK,WACD,KAAK,WAAa,EAAG,KAAK,KAAK,OAMrC,QAAO,EAAW,CACpB,OAAO,KAAK,cASR,OAAM,EAAG,UAAS,qBAAmD,CACzE,GAAI,CACF,MAAM,KAAK,KAAK,CAAO,EAEvB,MAAM,QAAQ,QAAQ,EAAE,KAAK,IAAM,KAAK,IAAI,SAAS,CAAE,UAAW,CAAkB,CAAC,CAAC,EACtF,MAAO,EAAO,CACd,EAAc,CAAK,GAIf,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,UAAW,EAAkB,iBAAkB,CAAC,EAC1F,MAAM,EAMR,GAAI,EAAY,CACd,IAAQ,YAAa,KAAa,gCAClC,KAAK,OAAS,MAAM,EAAS,KAAK,IAAK,KAAK,gBAAgB,KAAK,IAAI,CAAC,EACjE,KAML,EAAS,EACT,IAAQ,WAAY,KAAa,gCAC3B,EAAa,IAAI,EAAc,KAAK,GAAG,EAC7C,KAAK,OAAS,MAAM,EAAQ,KAAK,IAAK,EAAW,MAAM,KAAK,gBAAgB,KAAK,IAAI,CAAC,CAAC,EAKlF,EAAqB,CAAU,EAEtC,OAAO,KAAK,OAcd,IAAI,CAAC,EAAsC,CAAC,EAAoB,CAM9D,OALA,KAAK,WAAa,EAAM,CACtB,OAAQ,KAAK,OACb,kBAAmB,CAAC,IAAY,KAAK,IAAI,SAAS,CAAO,EACzD,SAAU,IAAM,KAAK,UAAY,EAAiB,KAAO,CAAS,CACpE,CAAC,EACM,KAAK,SAEhB",
9
- "debugId": "893DC0539C493A4C64756E2164756E21",
9
+ "debugId": "C9EA4C97C0BEFAC764756E2164756E21",
10
10
  "names": []
11
11
  }
@@ -0,0 +1,86 @@
1
+ import type { EncryptionConfig } from "./config";
2
+ /**
3
+ * Authenticated encryption for values at rest: encrypted columns
4
+ * (`/// @gemi.encrypted` in the Prisma schema) and the `Crypt` facade.
5
+ *
6
+ * AES-256-GCM with a random 96-bit IV per value, so encrypting the same
7
+ * plaintext twice gives two different ciphertexts, and a value that was
8
+ * altered, truncated or encrypted under another key fails to decrypt rather
9
+ * than decrypting to something else.
10
+ *
11
+ * Every value is a self-describing envelope:
12
+ *
13
+ * v1:<keyId>:<iv>:<ciphertext+tag> (iv and ciphertext base64url)
14
+ *
15
+ * The key id is what makes rotation work: a value names the key it was
16
+ * written with, so after `current` moves to a new key the old values still
17
+ * decrypt as long as their key stays in `keys`, and `encryption:rotate` can
18
+ * tell which values still need re-encrypting without decrypting them. The
19
+ * `v1:<keyId>` prefix is authenticated as associated data, so it cannot be
20
+ * edited to point a value at a different key.
21
+ *
22
+ * The envelope is plain ASCII, so it fits any text column. It is longer than
23
+ * the plaintext: 4/3 of it plus about 50 characters.
24
+ */
25
+ export declare class Encrypter {
26
+ static token: string;
27
+ private readonly keys;
28
+ private readonly currentId;
29
+ /**
30
+ * @throws EncryptionKeyError when a key is empty or not 32 bytes, an id is
31
+ * not a valid name, or `current` names no key. Construction is where a bad
32
+ * configuration is reported, which is why the provider builds this at boot.
33
+ */
34
+ constructor(config?: EncryptionConfig);
35
+ /** Whether a key is configured at all. */
36
+ get configured(): boolean;
37
+ /** The id of the key new values are encrypted with. */
38
+ get currentKeyId(): string;
39
+ /** Encrypts `plaintext` under the current key. */
40
+ encrypt(plaintext: string): string;
41
+ /**
42
+ * The plaintext of an envelope `encrypt` produced, under whichever
43
+ * configured key it names.
44
+ *
45
+ * @throws DecryptionError when the value is not an envelope, names a key
46
+ * that is not configured, or fails authentication (tampered, truncated, or
47
+ * encrypted under a different key with the same id). Never returns the input.
48
+ */
49
+ decrypt(envelope: string): string;
50
+ /** Whether `value` has the shape of an envelope. Says nothing about its key. */
51
+ isEncrypted(value: unknown): value is string;
52
+ /** The key id an envelope names, or `null` when `value` is not one. */
53
+ keyIdOf(value: unknown): string | null;
54
+ /**
55
+ * Whether `value` should be re-encrypted to be under the current key: true
56
+ * for an envelope under an older key and for anything that is not an
57
+ * envelope at all (a plaintext value written before the column was
58
+ * encrypted).
59
+ */
60
+ needsReencryption(value: string): boolean;
61
+ private requireCurrent;
62
+ }
63
+ /**
64
+ * The encryption configuration is unusable: no key, a key that is not 32
65
+ * bytes, or a `current` naming no key. Raised at boot when the app has
66
+ * encrypted columns, and by the first encrypt or decrypt otherwise.
67
+ */
68
+ export declare class EncryptionKeyError extends Error {
69
+ constructor(message: string);
70
+ }
71
+ /**
72
+ * A value could not be decrypted. `reason` says why: `malformed` (not an
73
+ * envelope, such as a plaintext value written before the column was
74
+ * encrypted), `unknown_key` (its key is no longer configured) or `invalid`
75
+ * (it failed authentication). The value itself is never in the message.
76
+ */
77
+ export declare class DecryptionError extends Error {
78
+ readonly reason: "malformed" | "unknown_key" | "invalid";
79
+ /** The model and field, when the value came from an encrypted column. */
80
+ column?: {
81
+ model: string;
82
+ field: string;
83
+ };
84
+ constructor(reason: "malformed" | "unknown_key" | "invalid", message: string);
85
+ }
86
+ //# sourceMappingURL=Encrypter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Encrypter.d.ts","sourceRoot":"","sources":["../../../services/encryption/Encrypter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,SAAS;IACpB,MAAM,CAAC,KAAK,SAAe;IAE3B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA6B;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;IAE/C;;;;OAIG;gBACS,MAAM,GAAE,gBAAqB;IA6BzC,0CAA0C;IAC1C,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,uDAAuD;IACvD,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED,kDAAkD;IAClD,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAiBlC;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IA6BjC,gFAAgF;IAChF,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM;IAI5C,uEAAuE;IACvE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI;IAItC;;;;;OAKG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIzC,OAAO,CAAC,cAAc;CAWvB;AAED;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,EAAE,MAAM;CAI5B;AAED;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,KAAK;aAKtB,MAAM,EAAE,WAAW,GAAG,aAAa,GAAG,SAAS;IAJjE,yEAAyE;IACzE,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;gBAGxB,MAAM,EAAE,WAAW,GAAG,aAAa,GAAG,SAAS,EAC/D,OAAO,EAAE,MAAM;CAKlB"}
@@ -0,0 +1,13 @@
1
+ import { ServiceProvider } from "../../support/ServiceProvider";
2
+ export declare class EncryptionServiceProvider extends ServiceProvider {
3
+ register(): void;
4
+ /**
5
+ * A bad key fails the boot, not the first request that reads an encrypted
6
+ * column: constructing the `Encrypter` validates every key, and an app whose
7
+ * models have encrypted columns, or that configures OAuth connections,
8
+ * must have one configured. An app with
9
+ * neither pays for nothing but this check.
10
+ */
11
+ boot(): void;
12
+ }
13
+ //# sourceMappingURL=EncryptionServiceProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EncryptionServiceProvider.d.ts","sourceRoot":"","sources":["../../../services/encryption/EncryptionServiceProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,qBAAa,yBAA0B,SAAQ,eAAe;IAC5D,QAAQ;IAOR;;;;;;OAMG;IACH,IAAI;CA4BL"}
@@ -0,0 +1,36 @@
1
+ export interface EncryptionConfig {
2
+ /**
3
+ * Every key that may have encrypted a value, by id. A key is 32 random
4
+ * bytes, base64 encoded (`openssl rand -base64 32`); a `base64:` prefix is
5
+ * accepted and ignored.
6
+ *
7
+ * The id is written into every value encrypted with the key, so it is how a
8
+ * value finds its key again after a rotation. Ids are short names you choose
9
+ * (`k1`, `2026-10`), made of letters, digits, `_` and `-`. Never reuse an id
10
+ * for a different key: values written under the old one would stop
11
+ * decrypting.
12
+ *
13
+ * Keep an old key here until `gemi run encryption:rotate` has re-encrypted
14
+ * everything it wrote. A key removed early makes those values unreadable.
15
+ */
16
+ keys?: Record<string, string | undefined>;
17
+ /**
18
+ * The id of the key new values are encrypted with. Must name an entry in
19
+ * `keys`. May be omitted when there is exactly one key.
20
+ */
21
+ current?: string;
22
+ }
23
+ /**
24
+ * Identity helper for `app/config/encryption.ts`:
25
+ *
26
+ * ```ts
27
+ * import { defineEncryptionConfig } from "gemi/services";
28
+ *
29
+ * export default defineEncryptionConfig({
30
+ * keys: { k1: process.env.APP_ENCRYPTION_KEY },
31
+ * current: "k1",
32
+ * });
33
+ * ```
34
+ */
35
+ export declare function defineEncryptionConfig(config: EncryptionConfig): EncryptionConfig;
36
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../services/encryption/config.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAE1C;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CAEjF"}
@@ -1,4 +1,4 @@
1
- import type { DeleteFileParams, DeletePrefixOptions, FetchFileOptions, IFileStorageDriver, PutFileOptions, PutFileParams, ReadFileParams, ReadResult, ListObjectsOptions, StoredObject } from "./types";
1
+ import type { DeleteFileParams, DeletePrefixOptions, FetchFileOptions, IFileStorageDriver, PutFileOptions, PutFileParams, PutStreamParams, ReadFileParams, ReadResult, ListObjectsOptions, StoredObject } from "./types";
2
2
  /**
3
3
  * Throws unless `prefix` names something narrower than the whole store.
4
4
  *
@@ -12,6 +12,17 @@ export declare function assertDeletablePrefix(prefix: string): void;
12
12
  export declare abstract class FileStorageDriver implements IFileStorageDriver {
13
13
  abstract fetch(params: ReadFileParams | string, options?: FetchFileOptions): Promise<Response>;
14
14
  abstract put(params: PutFileParams | Blob, options?: PutFileOptions): Promise<string>;
15
+ /**
16
+ * Stores a stream and returns the object name.
17
+ *
18
+ * The default reads the whole stream into memory, then hands it to `put()`,
19
+ * so it works on every driver and an error from the stream (a size limit,
20
+ * a dropped connection) rejects before anything is written. Bound the
21
+ * stream's size before calling it. A driver whose backend can take a stream
22
+ * without leaving a partial object behind overrides it, as
23
+ * `FileSystemDriver` does.
24
+ */
25
+ putStream({ body, ...params }: PutStreamParams, options?: PutFileOptions): Promise<string>;
15
26
  /**
16
27
  * @deprecated The result's shape differs per driver (the S3 driver returns
17
28
  * the raw, unpaginated `ListObjectsV2` output). Use `objects(prefix)`.
@@ -1 +1 @@
1
- {"version":3,"file":"FileStorageDriver.d.ts","sourceRoot":"","sources":["../../../../services/file-storage/drivers/FileStorageDriver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,cAAc,EACd,UAAU,EACV,kBAAkB,EAClB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAM1D;AAED,8BAAsB,iBAAkB,YAAW,kBAAkB;IACnE,QAAQ,CAAC,KAAK,CACZ,MAAM,EAAE,cAAc,GAAG,MAAM,EAC/B,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,QAAQ,CAAC;IACpB,QAAQ,CAAC,GAAG,CACV,MAAM,EAAE,aAAa,GAAG,IAAI,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAE3C;;;;;;OAMG;IAEI,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,kBAAuB,GAChC,aAAa,CAAC,YAAY,CAAC;IAM9B;;;;;;;OAOG;IACG,YAAY,CAChB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,MAAM,CAAC;IAclB;;;;;;;;OAQG;IACG,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM/D;;;;;;;;OAQG;IACG,IAAI,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAoD/D;;;;OAIG;IACG,IAAI,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAc7D"}
1
+ {"version":3,"file":"FileStorageDriver.d.ts","sourceRoot":"","sources":["../../../../services/file-storage/drivers/FileStorageDriver.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,eAAe,EACf,cAAc,EACd,UAAU,EACV,kBAAkB,EAClB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAM1D;AAED,8BAAsB,iBAAkB,YAAW,kBAAkB;IACnE,QAAQ,CAAC,KAAK,CACZ,MAAM,EAAE,cAAc,GAAG,MAAM,EAC/B,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,QAAQ,CAAC;IACpB,QAAQ,CAAC,GAAG,CACV,MAAM,EAAE,aAAa,GAAG,IAAI,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC;IAClB;;;;;;;;;OASG;IACG,SAAS,CACb,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,EAAE,eAAe,EACpC,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,MAAM,CAAC;IAkBlB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAE3C;;;;;;OAMG;IAEI,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,kBAAuB,GAChC,aAAa,CAAC,YAAY,CAAC;IAM9B;;;;;;;OAOG;IACG,YAAY,CAChB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,MAAM,CAAC;IAclB;;;;;;;;OAQG;IACG,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM/D;;;;;;;;OAQG;IACG,IAAI,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAoD/D;;;;OAIG;IACG,IAAI,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAc7D"}
@@ -1,4 +1,4 @@
1
- import type { DeleteFileParams, DeletePrefixOptions, FetchFileOptions, ListObjectsOptions, StoredObject, PutFileOptions, PutFileParams, ReadFileParams, ReadResult } from "./types";
1
+ import type { DeleteFileParams, DeletePrefixOptions, FetchFileOptions, ListObjectsOptions, StoredObject, PutFileOptions, PutFileParams, PutStreamParams, ReadFileParams, ReadResult } from "./types";
2
2
  import { FileStorageDriver } from "./FileStorageDriver";
3
3
  export declare class FileSystemDriver extends FileStorageDriver {
4
4
  private readonly configured?;
@@ -26,6 +26,13 @@ export declare class FileSystemDriver extends FileStorageDriver {
26
26
  */
27
27
  private get folderPath();
28
28
  put(params: PutFileParams | Blob, { signal }?: PutFileOptions): Promise<string>;
29
+ /**
30
+ * Writes the stream to a temporary file next to the target and renames it
31
+ * into place once the stream has ended, so an error or an abort halfway
32
+ * leaves no file, and a reader never sees a half-written one. Memory stays
33
+ * at one chunk however large the file.
34
+ */
35
+ putStream({ name, body }: PutStreamParams, { signal }?: PutFileOptions): Promise<string>;
29
36
  fetch(params: ReadFileParams | string, { signal }?: FetchFileOptions): Promise<Response>;
30
37
  read(input: ReadFileParams | string): Promise<ReadResult>;
31
38
  size(params: ReadFileParams | string): Promise<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"FileSystemDriver.d.ts","sourceRoot":"","sources":["../../../../services/file-storage/drivers/FileSystemDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,cAAc,EACd,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAyB,MAAM,qBAAqB,CAAC;AAQ/E,qBAAa,gBAAiB,SAAQ,iBAAiB;IACrD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAS;gBAEzB,UAAU,CAAC,EAAE,MAAM;IAK/B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,KAAK,UAAU,GAErB;IAEK,GAAG,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,EAAE,EAAE,MAAM,EAAE,GAAE,cAAmB;IA+BjE,KAAK,CACT,MAAM,EAAE,cAAc,GAAG,MAAM,EAC/B,EAAE,MAAM,EAAE,GAAE,gBAAqB;IAoC7B,IAAI,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAyCzD,IAAI,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;IASpC,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM;IA2B9C;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAcrB;;;;;OAKG;IACI,OAAO,CACZ,MAAM,EAAE,MAAM,EACd,EAAE,MAAM,EAAE,GAAE,kBAAuB,GAClC,aAAa,CAAC,YAAY,CAAC;IA4C9B;;;OAGG;IACG,YAAY,CAChB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,mBAAwB,GAChC,OA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Y,CAAC;IA4C9B;;;OAGG;IACG,YAAY,CAChB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,MAAM,CAAC;YAcJ,cAAc;IAgC5B,yFAAyF;IACnF,IAAI;CAKX"}
@@ -14,6 +14,17 @@ export interface PutFileOptions {
14
14
  */
15
15
  signal?: AbortSignal;
16
16
  }
17
+ /** What `putStream()` takes: `PutFileParams` with a stream for a body. */
18
+ export interface PutStreamParams {
19
+ name: string;
20
+ bucket?: string;
21
+ /**
22
+ * The bytes to store. An error from the stream (a size limit, a broken
23
+ * connection) rejects `putStream()`, and no object is left behind.
24
+ */
25
+ body: ReadableStream<Uint8Array>;
26
+ contentType?: string;
27
+ }
17
28
  export interface FetchFileOptions {
18
29
  /**
19
30
  * Cancels the read. An abort before the object is found rejects `fetch()`
@@ -91,6 +102,12 @@ export interface FileMetadata {
91
102
  export interface IFileStorageDriver {
92
103
  fetch(input: ReadFileParams | string, options?: FetchFileOptions): Promise<Response>;
93
104
  put(params: PutFileParams | Blob, options?: PutFileOptions): Promise<string>;
105
+ /**
106
+ * Optional: stores a stream. `FileStorageDriver`'s default reads the stream
107
+ * into memory and calls `put()`; a driver whose backend can take a stream
108
+ * overrides it. Either way, a stream that errors leaves no object behind.
109
+ */
110
+ putStream?(params: PutStreamParams, options?: PutFileOptions): Promise<string>;
94
111
  /**
95
112
  * Optional: `FileStorageDriver` supplies a `fetch()`-backed default, so
96
113
  * drivers written before this existed keep working.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../services/file-storage/drivers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,IAAI,GAAG,IA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AM,WAAW,kBAAkB;IACjC,qFAAqF;IACrF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qFAAqF;IACrF,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAErD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrF,GAAG,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7E;;;;OAIG;IACH,SAAS,CAAC,CAAC,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/E;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3D;;;OAGG;IACH,MAAM,CAAC,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D;;;;OAIG;IACH,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;IACpF;;;OAGG;IACH,YAAY,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC/E"}
@@ -0,0 +1,56 @@
1
+ import { type SafeFetchOptions } from "../../http/safeFetch/safeFetch";
2
+ import type { IFileStorageDriver } from "./drivers/types";
3
+ export interface PutFromUrlOptions {
4
+ /**
5
+ * The object name to store under, e.g. `"sites/42/logo.png"`. Without it
6
+ * the name is generated: `<directory>/<uuid v7>.<extension of the sniffed
7
+ * type>`. Pass `name` or `directory`, not both.
8
+ */
9
+ name?: string;
10
+ /** The folder a generated name goes in, e.g. `"sites/42"`. */
11
+ directory?: string;
12
+ /** Bucket or container. Defaults as in `put()`. */
13
+ bucket?: string;
14
+ /**
15
+ * Largest file accepted, in bytes (after decompression). Checked against
16
+ * `Content-Length` up front and again while the body streams in. Default
17
+ * 10 MiB, as in `safeFetch`.
18
+ */
19
+ maxSize?: number;
20
+ /** The whole download in ms, redirects and body included. Default 30 000. */
21
+ timeout?: number;
22
+ /**
23
+ * Media types the file may be, e.g. `["image/*", "application/pdf"]`,
24
+ * checked against the type sniffed from the file's first bytes, not the
25
+ * `Content-Type` header. A wildcard never covers `image/svg+xml`,
26
+ * `text/html` or XML, which can carry script: list them by name to accept
27
+ * them. Anything else rejects with `ContentTypeError` before anything is
28
+ * stored. Default: any type except active content (HTML, XHTML, SVG and
29
+ * XML), which is refused unless listed here by name.
30
+ */
31
+ contentTypes?: readonly string[];
32
+ /** Cancels the download and the upload. */
33
+ signal?: AbortSignal;
34
+ /**
35
+ * Other `safeFetch` options: `headers`, `allow`, `deny`, `ports`,
36
+ * `allowPrivate`, `maxRedirects`, `connectTimeout`, `resolve`. Never build
37
+ * `allowPrivate` from user input.
38
+ */
39
+ fetch?: Omit<SafeFetchOptions, "method" | "body" | "signal" | "timeout" | "maxSize" | "contentTypes" | "redirect">;
40
+ }
41
+ export interface PutFromUrlResult {
42
+ /** The stored object's name, to persist and later pass to `fetch()`/`read()`. */
43
+ name: string;
44
+ /** Sniffed from the file's bytes; the type the object is stored with. */
45
+ contentType: string;
46
+ /** Bytes stored. */
47
+ size: number;
48
+ /** The URL the file was finally downloaded from, after redirects. */
49
+ url: string;
50
+ }
51
+ /**
52
+ * Downloads `url` through `safeFetch` and stores it with `driver`. The
53
+ * implementation behind `Storage.putFromUrl()`.
54
+ */
55
+ export declare function putFromUrl(driver: IFileStorageDriver, url: string | URL, options?: PutFromUrlOptions): Promise<PutFromUrlResult>;
56
+ //# sourceMappingURL=putFromUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putFromUrl.d.ts","sourceRoot":"","sources":["../../../services/file-storage/putFromUrl.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,kBAAkB,EAAmB,MAAM,iBAAiB,CAAC;AAS3E,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,2CAA2C;IAC3C,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;OAIG;IACH,KAAK,CAAC,EAAE,IAAI,CACV,gBAAgB,EACd,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,SAAS,GACT,SAAS,GACT,cAAc,GACd,UAAU,CACb,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,kBAAkB,EAC1B,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,gBAAgB,CAAC,CAgH3B"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The media type of a file, read from its first bytes rather than from a name
3
+ * or a `Content-Type` header someone else chose.
4
+ *
5
+ * Recognizes the common image, audio, video, font, document and archive
6
+ * formats by their signatures, SVG, HTML and XML by their markup, and
7
+ * otherwise answers `text/plain` for bytes that decode as UTF-8 text with no
8
+ * control characters, and `application/octet-stream` for anything else.
9
+ * Formats that are text underneath (JSON, CSV, JavaScript, CSS) can't be told
10
+ * apart from their bytes and come out as `text/plain`.
11
+ *
12
+ * A few kilobytes are enough: `SNIFF_BYTES` is what `Storage.putFromUrl()`
13
+ * reads before deciding.
14
+ */
15
+ export declare function sniffContentType(bytes: Uint8Array): string;
16
+ /** How many leading bytes `sniffContentType` looks at, at most. */
17
+ export declare const SNIFF_BYTES = 4096;
18
+ /** The file extension `putFromUrl` names an object of this type with. */
19
+ export declare function extensionFor(contentType: string): string;
20
+ /**
21
+ * Whether a media type is active content a browser may run script from:
22
+ * HTML, XHTML, SVG and XML, including any `+xml` type (`image/svg+xml`,
23
+ * `application/atom+xml`, ...).
24
+ */
25
+ export declare function isActiveContentType(type: string): boolean;
26
+ /**
27
+ * Whether a sniffed type is in an allow-list of media types such as
28
+ * `["image/*", "application/pdf"]`. A wildcard never covers HTML, SVG or XML
29
+ * (see `isActiveContentType`), which can carry script; name them explicitly
30
+ * to accept them.
31
+ */
32
+ export declare function isAllowedContentType(type: string, allowed: readonly string[]): boolean;
33
+ //# sourceMappingURL=sniffContentType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sniffContentType.d.ts","sourceRoot":"","sources":["../../../services/file-storage/sniffContentType.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAE1D;AAED,mEAAmE;AACnE,eAAO,MAAM,WAAW,OAAO,CAAC;AAsChC,yEAAyE;AACzE,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAExD;AAiKD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGzD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAUtF"}
@@ -3,10 +3,15 @@ export { FilesystemManager } from "./file-storage/FilesystemManager";
3
3
  export { FileSystemDriver } from "./file-storage/drivers/FileSystemDriver";
4
4
  export { S3Driver } from "./file-storage/drivers/S3Driver";
5
5
  export { AzureBlobDriver, type AzureBlobDriverConfig, } from "./file-storage/drivers/AzureBlobDriver";
6
- export type { ByteRange, DeleteFileParams, DeletePrefixOptions, FetchFileOptions, FileMetadata, ListObjectsOptions, PutFileOptions, PutFileParams, ReadFileParams, ReadResult, StoredObject, } from "./file-storage/drivers/types";
6
+ export type { ByteRange, DeleteFileParams, DeletePrefixOptions, FetchFileOptions, FileMetadata, ListObjectsOptions, PutFileOptions, PutFileParams, PutStreamParams, ReadFileParams, ReadResult, StoredObject, } from "./file-storage/drivers/types";
7
7
  export { FileStorageDriver, assertDeletablePrefix, } from "./file-storage/drivers/FileStorageDriver";
8
+ export { type PutFromUrlOptions, type PutFromUrlResult, } from "./file-storage/putFromUrl";
9
+ export { isActiveContentType, sniffContentType, } from "./file-storage/sniffContentType";
8
10
  export { resolveRange, toRangeHeaderValue, parseContentRange, } from "../http/range";
9
11
  export { FileNotFoundError, RangeNotSatisfiableError } from "../http/errors";
12
+ export { EncryptionServiceProvider } from "./encryption/EncryptionServiceProvider";
13
+ export { DecryptionError, Encrypter, EncryptionKeyError, } from "./encryption/Encrypter";
14
+ export { defineEncryptionConfig, type EncryptionConfig, } from "./encryption/config";
10
15
  export { RateLimiterServiceProvider } from "./rate-limiter/RateLimiterServiceProvider";
11
16
  export { RateLimiter } from "./rate-limiter/RateLimiter";
12
17
  export { InMemoryRateLimiter, type InMemoryRateLimiterOptions, } from "./rate-limiter/drivers/InMemoryRateLimiterDriver";
@@ -34,11 +39,12 @@ export { LogServiceProvider } from "./logging/LogServiceProvider";
34
39
  export { LogManager } from "./logging/LogManager";
35
40
  export type { LogEntry } from "./logging/types";
36
41
  export { QueueServiceProvider } from "./queue/QueueServiceProvider";
37
- export { QueueManager, type DrainResult } from "./queue/QueueManager";
42
+ export { QueueManager, type DrainResult, type DispatchedBatch, type JobBatchOptions, } from "./queue/QueueManager";
38
43
  export { MemoryQueueDriver } from "./queue/MemoryQueueDriver";
39
44
  export { DatabaseQueueDriver, type DatabaseQueueDriverOptions, type DatabaseJobStatus, } from "./queue/DatabaseQueueDriver";
40
- export type { QueueDriver, EnqueueJob, ClaimOptions, ClaimedJob, JobFailure, JobRelease, } from "./queue/QueueDriver";
41
- export { Job, type JobThrottle, type JobConcurrency } from "./queue/Job";
45
+ export type { QueueDriver, EnqueueJob, ClaimOptions, ClaimedJob, JobFailure, JobRelease, EnqueueBatch, } from "./queue/QueueDriver";
46
+ export type { BatchStatus, BatchCallbacks, JobCall } from "./queue/batch";
47
+ export { Job, type JobThrottle, type JobConcurrency, type JobBatch, type JobCallArgs, } from "./queue/Job";
42
48
  export { LockManager, HeldLock, type AcquireOptions, type LockRunResult, } from "./lock/LockManager";
43
49
  export { LockLostError, type LockStore } from "./lock/LockStore";
44
50
  export { ChangeFeedServiceProvider } from "./change-feed/ChangeFeedServiceProvider";
@@ -67,6 +73,14 @@ export { GoogleOAuthProvider } from "../auth/oauth/GoogleOAuthProvider";
67
73
  export { XOAuthProvider } from "../auth/oauth/XOAuthProvider";
68
74
  export { OAuthCallbackError, OAuthProvider } from "../auth/oauth/OAuthProvider";
69
75
  export type { OAuthAuthorizationContext, OAuthCallbackContext, OAuthProfile, } from "../auth/oauth/OAuthProvider";
76
+ export { OAuthConnectionProvider } from "../auth/connections/OAuthConnectionProvider";
77
+ export type { OAuthConnectionProviderConfig, OAuthTokenSet, } from "../auth/connections/OAuthConnectionProvider";
78
+ export { OAuthConnectionError, OAuthReconnectRequiredError } from "../auth/connections/errors";
79
+ export type { OAuthConnectionErrorCode } from "../auth/connections/errors";
80
+ export { ConnectionManager, ProviderConnection } from "../auth/connections/ConnectionManager";
81
+ export type { ConnectionOwner, FakeConnectionHandler } from "../auth/connections/ConnectionManager";
82
+ export { DatabaseConnectionStore, MemoryConnectionStore } from "../auth/connections/ConnectionStore";
83
+ export type { ConnectionRecord, ConnectionStore } from "../auth/connections/ConnectionStore";
70
84
  export { MiddlewareServiceProvider } from "./middleware/MiddlewareServiceProvider";
71
85
  export { MiddlewareRegistry } from "./middleware/MiddlewareRegistry";
72
86
  export { KernelIdServiceProvider } from "./kernel-id/KernelIdServiceProvider";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../services/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EACL,eAAe,EACf,KAAK,qBAAqB,GAC3B,MAAM,wCAAwC,CAAC;AAChD,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,cAAc,EACd,UAAU,EACV,YAAY,GACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAG7E,OAAO,EAAE,0BAA0B,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AC;AAC3B,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,iBAAiB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,gBAAgB,GACtB,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../services/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EACL,eAAe,EACf,KAAK,qBAAqB,GAC3B,MAAM,wCAAwC,CAAC;AAChD,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,eAAe,EACf,cAAc,EACd,UAAU,EACV,YAAY,GACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AA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