@lunora/studio 1.0.0-alpha.8 → 1.0.0-alpha.80

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 (305) hide show
  1. package/LICENSE.md +6 -0
  2. package/dist/index.d.ts +777 -780
  3. package/dist/index.js +1 -41
  4. package/dist/mount.d.ts +10 -10
  5. package/dist/mount.js +1 -26
  6. package/dist/packem_chunks/ApiTab.js +1 -0
  7. package/dist/packem_chunks/AuditPanel.js +1 -0
  8. package/dist/packem_chunks/DeploymentHealthPanel.js +1 -0
  9. package/dist/packem_chunks/ExportImportPanel.js +3 -0
  10. package/dist/packem_chunks/FileBrowser.js +4 -0
  11. package/dist/packem_chunks/FunctionRunner.js +1 -0
  12. package/dist/packem_chunks/FunctionStatsPanel.js +1 -0
  13. package/dist/packem_chunks/HealthPanel.js +1 -0
  14. package/dist/packem_chunks/InsightsPanel.js +1 -0
  15. package/dist/packem_chunks/LogsPanel.js +1 -0
  16. package/dist/packem_chunks/MailPanel.js +2 -0
  17. package/dist/packem_chunks/MetricsPanel.js +1 -0
  18. package/dist/packem_chunks/NotificationsPanel.js +1 -0
  19. package/dist/packem_chunks/PitrPanel.js +1 -0
  20. package/dist/packem_chunks/SchemaViewer.js +1 -0
  21. package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -0
  22. package/dist/packem_chunks/SettingsPanel.js +1 -0
  23. package/dist/packem_chunks/SqlEditorPanel.js +6 -0
  24. package/dist/packem_chunks/TableEditor.js +1 -0
  25. package/dist/packem_chunks/agents-panel.js +1 -0
  26. package/dist/packem_chunks/analytics-panel.js +1 -0
  27. package/dist/packem_chunks/auth-audit-panel.js +1 -0
  28. package/dist/packem_chunks/auth-config-panel.js +1 -0
  29. package/dist/packem_chunks/auth-sessions-panel.js +1 -0
  30. package/dist/packem_chunks/containers-panel.js +1 -0
  31. package/dist/packem_chunks/dashboards-panel.js +1 -0
  32. package/dist/packem_chunks/fanout-panel.js +1 -0
  33. package/dist/packem_chunks/flags-panel.js +1 -0
  34. package/dist/packem_chunks/issues-panel.js +1 -0
  35. package/dist/packem_chunks/kv-browser.js +1 -0
  36. package/dist/packem_chunks/log-drains-panel.js +4 -0
  37. package/dist/packem_chunks/migrations-route.js +1 -0
  38. package/dist/packem_chunks/organizations-panel.js +1 -0
  39. package/dist/packem_chunks/payments-panel.js +1 -0
  40. package/dist/packem_chunks/permissions-panel.js +1 -0
  41. package/dist/packem_chunks/queues-panel.js +1 -0
  42. package/dist/packem_chunks/rls-panel.js +1 -0
  43. package/dist/packem_chunks/schedule-panel.js +1 -0
  44. package/dist/packem_chunks/sparkline.js +1 -0
  45. package/dist/packem_chunks/storage-rules-panel.js +1 -0
  46. package/dist/packem_chunks/subscriptions-panel.js +1 -0
  47. package/dist/packem_chunks/sync-client-panel.js +1 -0
  48. package/dist/packem_chunks/traces-panel.js +1 -0
  49. package/dist/packem_chunks/users-panel.js +1 -0
  50. package/dist/packem_chunks/vector-browser.js +1 -0
  51. package/dist/packem_chunks/workflows-panel.js +1 -0
  52. package/dist/packem_shared/ADMIN_FUNCTIONS-BnD4aovm.js +1 -0
  53. package/dist/packem_shared/ApiDocsPanel-DfUQ1ZAF.js +2 -0
  54. package/dist/packem_shared/ApiReferencePanel-9q8BbJl-.js +1 -0
  55. package/dist/packem_shared/CommandPalette--SQwfTW1.js +1 -0
  56. package/dist/packem_shared/ConfirmButton-CTL3f3kr.js +1 -0
  57. package/dist/packem_shared/ConnectionBadge-DOk0CQWo.js +1 -0
  58. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-BCC8_4BQ.js +1 -0
  59. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-B-hcFVoi.js +1 -0
  60. package/dist/packem_shared/DEFAULT_LOCALE-BZ4NojpD.js +1 -0
  61. package/dist/packem_shared/DataBrowser-CuRlztBz.js +1 -0
  62. package/dist/packem_shared/DataFilters-B26ZeqBZ.js +1 -0
  63. package/dist/packem_shared/ErrorBoundary-DvzYskH7.js +1 -0
  64. package/dist/packem_shared/GlobalDataBrowser-DB-vQ2_H.js +1 -0
  65. package/dist/packem_shared/HomePanel-Dcs4a3Ax.js +1 -0
  66. package/dist/packem_shared/MigrationsPanel-C2OnsqRb.js +1 -0
  67. package/dist/packem_shared/OpenRpcReferencePanel-qOZcWXMs.js +1 -0
  68. package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.js +1 -0
  69. package/dist/packem_shared/ScheduledJobs-D8kBZWBu.js +1 -0
  70. package/dist/packem_shared/ShardInput-BVn2iCU0.js +1 -0
  71. package/dist/packem_shared/Studio-B26_pT8J.js +1 -0
  72. package/dist/packem_shared/StudioApp-bXhJeLlZ.js +1 -0
  73. package/dist/packem_shared/StudioI18nProvider-CZ5h4nrV.js +1 -0
  74. package/dist/packem_shared/advisor-view-Pa8HLtBv.js +1 -0
  75. package/dist/packem_shared/aggregateMetrics-BNfajLa2.js +1 -0
  76. package/dist/packem_shared/alert-CVcOFuDR.js +1 -0
  77. package/dist/packem_shared/app.d-DW7yZsfu.d.ts +252 -0
  78. package/dist/packem_shared/badge-BbuuAio7.js +1 -0
  79. package/dist/packem_shared/bar-chart-DraN_srt.js +9 -0
  80. package/dist/packem_shared/browser-storage-xjTyMKY0.js +1 -0
  81. package/dist/packem_shared/button-BkCrNcAs.js +1 -0
  82. package/dist/packem_shared/card-CIDGUN6K.js +1 -0
  83. package/dist/packem_shared/cf-links-gbDy51nR.js +1 -0
  84. package/dist/packem_shared/checkbox-StT4Gob6.js +1 -0
  85. package/dist/packem_shared/data-grid-DcxyIXwG.js +1 -0
  86. package/dist/packem_shared/data-view-params-ClrV7XgF.js +1 -0
  87. package/dist/packem_shared/dropdown-menu-C3RQ_HlW.js +2 -0
  88. package/dist/packem_shared/empty-state-Cg7t_8qu.js +1 -0
  89. package/dist/packem_shared/error-alert-t6cpEi0z.js +1 -0
  90. package/dist/packem_shared/grid-features-jnrD0SpX.js +6 -0
  91. package/dist/packem_shared/home-panel-CU6MWLHG.js +3 -0
  92. package/dist/packem_shared/input-JHu63lTv.js +1 -0
  93. package/dist/packem_shared/internal-BSIsQVC6.js +2 -0
  94. package/dist/packem_shared/label-6uP1obNF.js +1 -0
  95. package/dist/packem_shared/live-status-CmuRLFKf.js +1 -0
  96. package/dist/packem_shared/log-fields-CoL3hsIQ.js +1 -0
  97. package/dist/packem_shared/modal-shell-CUwwWC2o.js +1 -0
  98. package/dist/packem_shared/operation-console-provider-BMJNtiyB.js +1 -0
  99. package/dist/packem_shared/recording-client-DRAZEmzE.js +1 -0
  100. package/dist/packem_shared/reference-view-DnYYWr7I.js +12 -0
  101. package/dist/packem_shared/result-chart-DzJOVsaw.js +1 -0
  102. package/dist/packem_shared/schema-diagram-cg-bz_VL.js +2 -0
  103. package/dist/packem_shared/scroll-area-DTEq6Jec.js +2 -0
  104. package/dist/packem_shared/select-Bul-DeII.js +2 -0
  105. package/dist/packem_shared/shard-history-DMEW5VBE.js +1 -0
  106. package/dist/packem_shared/skeleton-C1wQ9M5t.js +1 -0
  107. package/dist/packem_shared/sparkline-CgjeUU2I.js +1 -0
  108. package/dist/packem_shared/storage-tier-DznqOf-q.js +1 -0
  109. package/dist/packem_shared/studio-q-C-acL7.js +2 -0
  110. package/dist/packem_shared/table-DdJBrClo.js +2 -0
  111. package/dist/packem_shared/table-list-sidebar-BFkSQwlB.js +1 -0
  112. package/dist/packem_shared/textarea-Bu2-jKAs.js +1 -0
  113. package/dist/packem_shared/trace-handoff-Dw7mwjxu.js +1 -0
  114. package/dist/packem_shared/use-admin-query-QJ-ibl5u.js +1 -0
  115. package/dist/packem_shared/use-async-submit-q3ymBJkD.js +1 -0
  116. package/dist/packem_shared/use-auth-config-BObBpdsi.js +1 -0
  117. package/dist/packem_shared/use-sql-assistant-CHEu2-Rk.js +1 -0
  118. package/dist/packem_shared/useDebounced-Ihdiid_k.js +1 -0
  119. package/dist/packem_shared/utils-bhneXptQ.js +1 -0
  120. package/dist/packem_shared/virtual-rect-1o1veP7R.js +1 -0
  121. package/dist/standalone/chunk-2GA4SHO7.js +1 -0
  122. package/dist/standalone/chunk-2OUPA2WJ.js +1 -0
  123. package/dist/standalone/chunk-2PJNAWB3.js +1 -0
  124. package/dist/standalone/chunk-2VDFV5TD.js +1 -0
  125. package/dist/standalone/chunk-2WOIRKEI.js +1 -0
  126. package/dist/standalone/chunk-33CL6OHR.js +1 -0
  127. package/dist/standalone/chunk-34D36UCW.js +1 -0
  128. package/dist/standalone/chunk-3C3CG7ZK.js +1 -0
  129. package/dist/standalone/chunk-3O3HAXW7.js +1 -0
  130. package/dist/standalone/chunk-3STOIE7Q.js +1 -0
  131. package/dist/standalone/chunk-3XIESWL4.js +1 -0
  132. package/dist/standalone/chunk-4UOFSGUS.js +1 -0
  133. package/dist/standalone/chunk-53WEPGUD.js +1 -0
  134. package/dist/standalone/chunk-54MMVNPT.js +1 -0
  135. package/dist/standalone/chunk-5CVJS7ON.js +1 -0
  136. package/dist/standalone/chunk-5Y3QLNWX.js +1 -0
  137. package/dist/standalone/chunk-6IKEW5LG.js +1 -0
  138. package/dist/standalone/chunk-6LNCYDZO.js +1 -0
  139. package/dist/standalone/chunk-6NY7SPDL.js +1 -0
  140. package/dist/standalone/chunk-6PNPIW6I.js +2 -0
  141. package/dist/standalone/chunk-6ST5ECQA.js +1 -0
  142. package/dist/standalone/chunk-6VAKZALJ.js +1 -0
  143. package/dist/standalone/chunk-6YI4WJO4.js +1 -0
  144. package/dist/standalone/chunk-6YTSSIEJ.js +3 -0
  145. package/dist/standalone/chunk-7LWMHTJ3.js +1 -0
  146. package/dist/standalone/chunk-7QIFDWQV.js +1 -0
  147. package/dist/standalone/chunk-7T7UOTYK.js +1 -0
  148. package/dist/standalone/chunk-A74VSSA2.js +4 -0
  149. package/dist/standalone/chunk-AADILRJW.js +14 -0
  150. package/dist/standalone/chunk-AVAC26HJ.js +1 -0
  151. package/dist/standalone/chunk-BGBLQ563.js +1 -0
  152. package/dist/standalone/chunk-CCVXYYPJ.js +1 -0
  153. package/dist/standalone/chunk-CFPZYHPY.js +2 -0
  154. package/dist/standalone/chunk-CT5MMH4O.js +1 -0
  155. package/dist/standalone/chunk-CTNB2KIA.js +1 -0
  156. package/dist/standalone/chunk-CU55Y5TV.js +62 -0
  157. package/dist/standalone/chunk-D2RKH6JK.js +1 -0
  158. package/dist/standalone/chunk-E3NMX2VU.js +4 -0
  159. package/dist/standalone/chunk-EN2QAEO4.js +11 -0
  160. package/dist/standalone/chunk-ESVP44Y3.js +1 -0
  161. package/dist/standalone/chunk-FNPJ7GJZ.js +1 -0
  162. package/dist/standalone/chunk-FOBRNWBG.js +3 -0
  163. package/dist/standalone/chunk-FXCBF4XT.js +1 -0
  164. package/dist/standalone/chunk-G6PSMGLD.js +1 -0
  165. package/dist/standalone/chunk-GAX5IZYG.js +8 -0
  166. package/dist/standalone/chunk-GB6U2BPU.js +1 -0
  167. package/dist/standalone/chunk-GEDMLM4A.js +6 -0
  168. package/dist/standalone/chunk-GMR677FL.js +1 -0
  169. package/dist/standalone/chunk-GRL5MG3Z.js +1 -0
  170. package/dist/standalone/chunk-GXSZH7VJ.js +13 -0
  171. package/dist/standalone/chunk-GYKVBKT5.js +1 -0
  172. package/dist/standalone/chunk-H6YOWRFB.js +1 -0
  173. package/dist/standalone/chunk-HJ3E4YF5.js +1 -0
  174. package/dist/standalone/chunk-HJD2YUQS.js +1 -0
  175. package/dist/standalone/chunk-HPFLBYRI.js +1 -0
  176. package/dist/standalone/chunk-IC4L6G56.js +1 -0
  177. package/dist/standalone/chunk-IHQC7J35.js +1 -0
  178. package/dist/standalone/chunk-ILNELDFC.js +1 -0
  179. package/dist/standalone/chunk-IVFHIQOT.js +1 -0
  180. package/dist/standalone/chunk-JLOWAJRR.js +1 -0
  181. package/dist/standalone/chunk-JN2Y24PY.js +1 -0
  182. package/dist/standalone/chunk-JRMMYIAF.js +1 -0
  183. package/dist/standalone/chunk-KC44QCN6.js +1 -0
  184. package/dist/standalone/chunk-KJB7YAKB.js +1 -0
  185. package/dist/standalone/chunk-KLQYC6CC.js +1 -0
  186. package/dist/standalone/chunk-KUVMORDQ.js +1 -0
  187. package/dist/standalone/chunk-KZ3ALMMP.js +1 -0
  188. package/dist/standalone/chunk-L7R74G63.js +1 -0
  189. package/dist/standalone/chunk-LEDWUPXM.js +1 -0
  190. package/dist/standalone/chunk-LFKCLLPT.js +1 -0
  191. package/dist/standalone/chunk-MIQTKZAR.js +1 -0
  192. package/dist/standalone/chunk-OG4N2XHD.js +19 -0
  193. package/dist/standalone/chunk-OY2RVUZL.js +1 -0
  194. package/dist/standalone/chunk-P4YLIBCN.js +1 -0
  195. package/dist/standalone/chunk-PZVU2QMX.js +1 -0
  196. package/dist/standalone/chunk-Q7O6B7WC.js +1 -0
  197. package/dist/standalone/chunk-QBWRC5YX.js +1 -0
  198. package/dist/standalone/chunk-QLQADHFE.js +1 -0
  199. package/dist/standalone/chunk-QWGT25SE.js +1 -0
  200. package/dist/standalone/chunk-QXXIJAD5.js +1 -0
  201. package/dist/standalone/chunk-QZGTH6WH.js +1 -0
  202. package/dist/standalone/chunk-RJP3WBZ4.js +1 -0
  203. package/dist/standalone/chunk-RNL6BSFM.js +1 -0
  204. package/dist/standalone/chunk-RNRJKBY3.js +4 -0
  205. package/dist/standalone/chunk-RQ7AFLIV.js +1 -0
  206. package/dist/standalone/chunk-S252DAFP.js +1 -0
  207. package/dist/standalone/chunk-S2VVR7HI.js +1 -0
  208. package/dist/standalone/chunk-SD4BERSA.js +1 -0
  209. package/dist/standalone/chunk-SFDOII3B.js +1 -0
  210. package/dist/standalone/chunk-SKHEGARW.js +1 -0
  211. package/dist/standalone/chunk-SKW6J4VW.js +1 -0
  212. package/dist/standalone/chunk-SMIESS7P.js +1 -0
  213. package/dist/standalone/chunk-T6VMSOBB.js +1 -0
  214. package/dist/standalone/chunk-T7IUZIF4.js +1 -0
  215. package/dist/standalone/chunk-THIXMMZD.js +1 -0
  216. package/dist/standalone/chunk-TTGOOYLF.js +1 -0
  217. package/dist/standalone/chunk-U6TNNM5U.js +1 -0
  218. package/dist/standalone/chunk-UZERI5YC.js +1 -0
  219. package/dist/standalone/chunk-V53KNYRN.js +1 -0
  220. package/dist/standalone/chunk-VHWOCPRK.js +1 -0
  221. package/dist/standalone/chunk-W6SAOXGH.js +6 -0
  222. package/dist/standalone/chunk-WBYSSCV2.js +1 -0
  223. package/dist/standalone/chunk-X665E2HU.js +1 -0
  224. package/dist/standalone/chunk-XBDKZZ67.js +1 -0
  225. package/dist/standalone/chunk-XDAT7LHC.js +1 -0
  226. package/dist/standalone/chunk-XQCVZAGU.js +1 -0
  227. package/dist/standalone/chunk-XS5LDR52.js +1 -0
  228. package/dist/standalone/chunk-XXQUMVWH.js +1 -0
  229. package/dist/standalone/chunk-Y5Y7DHFW.js +1 -0
  230. package/dist/standalone/chunk-YJYTMQJI.js +1 -0
  231. package/dist/standalone/chunk-Z2V42P7J.js +1 -0
  232. package/dist/standalone/chunk-ZJGP6EKR.js +1 -0
  233. package/dist/standalone/studio.js +9 -356
  234. package/dist/styles.css +2 -2
  235. package/package.json +16 -14
  236. package/dist/packem_shared/ADMIN_FUNCTIONS-DjXgvJb6.js +0 -46
  237. package/dist/packem_shared/ApiDocsPanel-yVSGHK3H.js +0 -842
  238. package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
  239. package/dist/packem_shared/ApiTab-rwttyQ1-.js +0 -251
  240. package/dist/packem_shared/AuditPanel-BqXZAsu_.js +0 -212
  241. package/dist/packem_shared/CommandPalette-BtgkBzZI.js +0 -373
  242. package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
  243. package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
  244. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
  245. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
  246. package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
  247. package/dist/packem_shared/DataBrowser-Ck_7QwNK.js +0 -4542
  248. package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
  249. package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
  250. package/dist/packem_shared/ExportImportPanel-Dq6rj0tI.js +0 -193
  251. package/dist/packem_shared/FileBrowser-0pCpdKPE.js +0 -2932
  252. package/dist/packem_shared/FunctionRunner-7NH3KcTg.js +0 -343
  253. package/dist/packem_shared/FunctionStatsPanel-Cn_EBpDy.js +0 -432
  254. package/dist/packem_shared/GlobalDataBrowser-BTEmGrph.js +0 -318
  255. package/dist/packem_shared/HealthPanel-CQ4LzVET.js +0 -640
  256. package/dist/packem_shared/HomePanel-CP0lN1eF.js +0 -1273
  257. package/dist/packem_shared/InsightsPanel-DzNtoz7k.js +0 -423
  258. package/dist/packem_shared/LogsPanel-C3W0mabf.js +0 -839
  259. package/dist/packem_shared/MailPanel-CoEfWkCh.js +0 -447
  260. package/dist/packem_shared/MetricsPanel-CujtUfpl.js +0 -1625
  261. package/dist/packem_shared/MigrationsPanel-RX5qIFSr.js +0 -246
  262. package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
  263. package/dist/packem_shared/PitrPanel-LJGNP_IX.js +0 -252
  264. package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
  265. package/dist/packem_shared/ScheduledJobs-CabfKbyM.js +0 -159
  266. package/dist/packem_shared/SchemaViewer-Bam6ylvw.js +0 -2512
  267. package/dist/packem_shared/SecurityAdvisorPanel-DHr_bI38.js +0 -79
  268. package/dist/packem_shared/SettingsPanel-CBXQpYQA.js +0 -176
  269. package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
  270. package/dist/packem_shared/SqlEditorPanel-D5wMIxcg.js +0 -13
  271. package/dist/packem_shared/Studio-DkgODWD3.js +0 -33
  272. package/dist/packem_shared/StudioApp-ColQCvC_.js +0 -657
  273. package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
  274. package/dist/packem_shared/TableEditor-B8K5nUna.js +0 -371
  275. package/dist/packem_shared/advisor-view-CGcfMiPq.js +0 -159
  276. package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
  277. package/dist/packem_shared/app.d-Nbhpihxv.d.ts +0 -300
  278. package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
  279. package/dist/packem_shared/bar-chart-CzJAgqkp.js +0 -3245
  280. package/dist/packem_shared/button-BhsN2uZH.js +0 -49
  281. package/dist/packem_shared/card-DURq3ElK.js +0 -175
  282. package/dist/packem_shared/cf-links-2cktDedA.js +0 -8
  283. package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
  284. package/dist/packem_shared/data-grid-B5CaV3wS.js +0 -183
  285. package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
  286. package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
  287. package/dist/packem_shared/grid-features-CzUfqgsM.js +0 -840
  288. package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
  289. package/dist/packem_shared/internal-rXJEAhXS.js +0 -68
  290. package/dist/packem_shared/label-D8ykjn5J.js +0 -46
  291. package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
  292. package/dist/packem_shared/reference-view-B4E49Lip.js +0 -2180
  293. package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
  294. package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
  295. package/dist/packem_shared/sql-editor-panel-Smfl_FDF.js +0 -2562
  296. package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
  297. package/dist/packem_shared/studio-Be28OqIx.js +0 -10413
  298. package/dist/packem_shared/table-_RzNvy3R.js +0 -246
  299. package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +0 -832
  300. package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
  301. package/dist/packem_shared/use-live-admin-Dq6g3daN.js +0 -73
  302. package/dist/packem_shared/use-live-shard-seed-Cuk3dnH0.js +0 -76
  303. package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
  304. package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
  305. package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
package/dist/index.d.ts CHANGED
@@ -1,10 +1,20 @@
1
- import { F as FunctionDescriptor } from "./packem_shared/app.d-Nbhpihxv.js";
2
- export { type a as FunctionKind, type R as RunStatus, b as ScheduledJobs, type c as ScheduledJobsProps, d as Studio, e as StudioApp, type S as StudioAppProps, type f as StudioProps, type g as StudioTab } from "./packem_shared/app.d-Nbhpihxv.js";
1
+ import { F as FunctionDescriptor } from "./packem_shared/app.d-DW7yZsfu.js";
2
+ export { type a as FunctionKind, type R as RunStatus, b as ScheduledJobs, type c as ScheduledJobsProps, d as Studio, e as StudioApp, type S as StudioAppProps, type f as StudioProps } from "./packem_shared/app.d-DW7yZsfu.js";
3
3
  import { ReactElement, ReactNode, ErrorInfo, Component, ChangeEvent } from 'react';
4
4
  import { CapturedMail } from '@lunora/mail';
5
5
  export type { CapturedMail } from '@lunora/mail';
6
+ import { HealthBody } from '@lunora/runtime';
6
7
  import { Messages, I18n } from '@lingui/core';
7
8
  export type { LunoraClient, ScheduleRecord, StorageObject } from '@lunora/client';
9
+ /**
10
+ * The studio's navigation taxonomy: which pages exist and which domain each one
11
+ * belongs to.
12
+ *
13
+ * Its own module so the label maps (`nav-labels.ts`) can name these types without
14
+ * importing `studio.tsx`, which pulls in every lazy panel behind it.
15
+ */
16
+ /** Identifier for each built-in studio tab. */
17
+ type StudioTab = "agents" | "analytics" | "api" | "audit" | "authAudit" | "authConfig" | "authSessions" | "containers" | "dashboards" | "data" | "deploymentHealth" | "drains" | "export" | "fanout" | "files" | "flags" | "functions" | "health" | "home" | "insights" | "issues" | "kv" | "logs" | "mail" | "metrics" | "migrations" | "notifications" | "organizations" | "payments" | "permissions" | "pitr" | "queues" | "realtime" | "rls" | "schedule" | "schema" | "security" | "settings" | "sql" | "storageRules" | "traces" | "users" | "vectors" | "workflows";
8
18
  /** A navigable destination shown in the palette. */
9
19
  interface CommandItem {
10
20
  /** Localised domain label, shown as a muted suffix to disambiguate. */
@@ -21,17 +31,15 @@ interface CommandPaletteProps {
21
31
  /** Open the command palette from anywhere (e.g. the top-bar Search button). */
22
32
  declare const openCommandPalette: () => void;
23
33
  /**
24
- * Command palette (⌘K / Ctrl-K) — Supabase-style global search. Rendered inside
25
- * the studio shell so its selection can drive the router's `useNavigate`. Opens
26
- * on the keyboard shortcut or the {@link OPEN_EVENT} the top-bar Search button
27
- * dispatches, filters the navigable destinations by a case-insensitive substring
28
- * over their label and domain, and navigates to the chosen one. Built on the
29
- * studio's Base UI dialog primitive — no `cmdk`/extra dependency — with a small
30
- * arrow-key + Enter affordance over the filtered list.
31
- */
32
- declare const CommandPalette: ({
33
- items
34
- }: CommandPaletteProps) => ReactElement;
34
+ * Command palette (⌘K / Ctrl-K) — Supabase-style global search. Rendered inside
35
+ * the studio shell so its selection can drive the router's `useNavigate`. Opens
36
+ * on the keyboard shortcut or the {@link OPEN_EVENT} the top-bar Search button
37
+ * dispatches, filters the navigable destinations by a case-insensitive substring
38
+ * over their label and domain, and navigates to the chosen one. Built on the
39
+ * studio's Base UI dialog primitive — no `cmdk`/extra dependency — with a small
40
+ * arrow-key + Enter affordance over the filtered list.
41
+ */
42
+ declare const CommandPalette: ({ items }: CommandPaletteProps) => ReactElement;
35
43
  interface ConfirmButtonProps {
36
44
  /** Label for the initial trigger (e.g. `Delete`). */
37
45
  readonly children: string;
@@ -45,33 +53,27 @@ interface ConfirmButtonProps {
45
53
  readonly testId: string;
46
54
  }
47
55
  /**
48
- * A destructive-action button that requires a second click to fire. The first
49
- * click swaps the trigger for an inline `Confirm` / `Cancel` pair rather than a
50
- * blocking `window.confirm`, so the guard is testable and non-modal. The
51
- * trigger keeps its `testId` (so existing tests that click it still reach the
52
- * first step); the actual action only runs on the `${testId}-confirm` click.
53
- */
54
- declare const ConfirmButton: ({
55
- children,
56
- confirmLabel,
57
- disabled,
58
- onConfirm,
59
- testId
60
- }: ConfirmButtonProps) => ReactElement;
61
- /**
62
- * Live-socket status indicator. Reflects the client's aggregate WebSocket health
63
- * so an operator can tell a healthy live channel from a silently-dropped socket
64
- * (a panel showing "Live: on" while the socket is down would otherwise look
65
- * identical to one that's simply idle).
66
- */
56
+ * A destructive-action button that requires a second click to fire. The first
57
+ * click swaps the trigger for an inline `Confirm` / `Cancel` pair rather than a
58
+ * blocking `window.confirm`, so the guard is testable and non-modal. The
59
+ * trigger keeps its `testId` (so existing tests that click it still reach the
60
+ * first step); the actual action only runs on the `${testId}-confirm` click.
61
+ */
62
+ declare const ConfirmButton: ({ children, confirmLabel, disabled, onConfirm, testId }: ConfirmButtonProps) => ReactElement;
63
+ /**
64
+ * Live-socket status indicator. Reflects the client's aggregate WebSocket health
65
+ * so an operator can tell a healthy live channel from a silently-dropped socket
66
+ * (a panel showing "Live: on" while the socket is down would otherwise look
67
+ * identical to one that's simply idle).
68
+ */
67
69
  declare const ConnectionBadge: () => ReactElement;
68
70
  interface ErrorBoundaryProps {
69
71
  readonly children: ReactNode;
70
72
  /**
71
- * Localised fallback heading. When omitted, falls back to `${label} failed`
72
- * (or `Something went wrong` with no label). A class component can't use the
73
- * `useT` hook, so localised text is passed in by its parents.
74
- */
73
+ * Localised fallback heading. When omitted, falls back to `${label} failed`
74
+ * (or `Something went wrong` with no label). A class component can't use the
75
+ * `useT` hook, so localised text is passed in by its parents.
76
+ */
75
77
  readonly fallbackTitle?: string;
76
78
  /** Optional label naming the boundary's region, shown in the fallback. */
77
79
  readonly label?: string;
@@ -82,10 +84,10 @@ interface ErrorBoundaryState {
82
84
  readonly error: Error | null;
83
85
  }
84
86
  /**
85
- * Catches render/lifecycle errors in a panel so one throwing component doesn't
86
- * blank the whole studio shell. Shows the error message with a "Try again"
87
- * button that clears the boundary and re-renders its children.
88
- */
87
+ * Catches render/lifecycle errors in a panel so one throwing component doesn't
88
+ * blank the whole studio shell. Shows the error message with a "Try again"
89
+ * button that clears the boundary and re-renders its children.
90
+ */
89
91
  declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
90
92
  static getDerivedStateFromError(error: Error): ErrorBoundaryState;
91
93
  override state: ErrorBoundaryState;
@@ -102,63 +104,84 @@ interface ShardInputProps {
102
104
  readonly value: string;
103
105
  }
104
106
  /**
105
- * Shard-key text field shared by every shard-scoped panel. Backed by a
106
- * `&lt;datalist>` of recently-used shard keys (see {@link loadRecentShards}) so an
107
- * operator can pick a shard they've visited instead of retyping it — the closest
108
- * to a shard picker possible without server-side shard enumeration, which
109
- * Durable Objects don't support. Panels remain responsible for recording a shard
110
- * as used (via `recordShard`) when they actually query it.
111
- */
112
- declare const ShardInput: ({
113
- id,
114
- onChange,
115
- testId,
116
- value
117
- }: ShardInputProps) => ReactElement;
107
+ * Shard-key text field shared by every shard-scoped panel. Backed by a
108
+ * `&lt;datalist>` of recently-used shard keys (see {@link loadRecentShards}) so an
109
+ * operator can pick a shard they've visited instead of retyping it — the closest
110
+ * to a shard picker possible without server-side shard enumeration, which
111
+ * Durable Objects don't support. Panels remain responsible for recording a shard
112
+ * as used (via `recordShard`) when they actually query it.
113
+ */
114
+ declare const ShardInput: ({ id, onChange, testId, value }: ShardInputProps) => ReactElement;
118
115
  declare const ADMIN_FUNCTION_PREFIX = "__lunora_admin__:";
119
116
  /**
120
- * Fully-qualified reserved paths the studio invokes via the client. The
121
- * `__lunora_admin__:` prefix is spelled out inline rather than interpolated so
122
- * the values stay emittable under `--isolatedDeclarations`. Every path is
123
- * intercepted by `ShardDO` before user dispatch and gated by the server's
124
- * `LUNORA_ADMIN_TOKEN`.
125
- */
117
+ * Fully-qualified reserved paths the studio invokes via the client. The
118
+ * `__lunora_admin__:` prefix is spelled out inline rather than interpolated so
119
+ * the values stay emittable under `--isolatedDeclarations`. Every path is
120
+ * intercepted by `ShardDO` before user dispatch and gated by the server's
121
+ * `LUNORA_ADMIN_TOKEN`.
122
+ */
126
123
  declare const ADMIN_FUNCTIONS: {
124
+ readonly aiAvailable: "__lunora_admin__:aiAvailable";
125
+ readonly aiChartConfig: "__lunora_admin__:aiChartConfig";
126
+ readonly aiGenerateSql: "__lunora_admin__:aiGenerateSql";
127
+ readonly aiTableFilter: "__lunora_admin__:aiTableFilter";
128
+ readonly assignIssue: "__lunora_admin__:assignIssue";
129
+ readonly backRelationCounts: "__lunora_admin__:backRelationCounts";
127
130
  readonly clearCapturedMail: "__lunora_admin__:clearCapturedMail";
131
+ readonly clearQueueMessages: "__lunora_admin__:clearQueueMessages";
128
132
  readonly clearTable: "__lunora_admin__:clearTable";
129
133
  readonly createWorkflowInstance: "__lunora_admin__:createWorkflowInstance";
130
134
  readonly deleteRows: "__lunora_admin__:deleteRows";
131
135
  readonly describeTable: "__lunora_admin__:describeTable";
132
136
  readonly describeTables: "__lunora_admin__:describeTables";
137
+ readonly explainIssue: "__lunora_admin__:explainIssue";
133
138
  readonly exportShard: "__lunora_admin__:exportShard";
134
139
  readonly facetColumn: "__lunora_admin__:facetColumn";
135
140
  readonly getAdvisories: "__lunora_admin__:getAdvisories";
136
141
  readonly getAuditLog: "__lunora_admin__:getAuditLog";
142
+ readonly getAuthAuditLog: "__lunora_admin__:getAuthAuditLog";
137
143
  readonly getAuthMetrics: "__lunora_admin__:getAuthMetrics";
138
144
  readonly getCapturedMail: "__lunora_admin__:getCapturedMail";
145
+ readonly getFanoutMetrics: "__lunora_admin__:getFanoutMetrics";
139
146
  readonly getFunctionStats: "__lunora_admin__:getFunctionStats";
147
+ readonly getIssues: "__lunora_admin__:getIssues";
148
+ readonly lintSql: "__lunora_admin__:lintSql";
149
+ readonly listFlags: "__lunora_admin__:listFlags";
150
+ readonly listPushSubscriptions: "__lunora_admin__:listPushSubscriptions";
140
151
  readonly listQueues: "__lunora_admin__:listQueues";
141
152
  readonly listSubscriptions: "__lunora_admin__:listSubscriptions";
142
153
  readonly listTableIndexes: "__lunora_admin__:listTableIndexes";
143
154
  readonly listWorkflows: "__lunora_admin__:listWorkflows";
144
155
  readonly getLogs: "__lunora_admin__:getLogs";
156
+ readonly getMetricHistory: "__lunora_admin__:getMetricHistory";
157
+ readonly getMetricSeries: "__lunora_admin__:getMetricSeries";
145
158
  readonly getMetrics: "__lunora_admin__:getMetrics";
146
159
  readonly getPitrBookmark: "__lunora_admin__:getPitrBookmark";
160
+ readonly getQueryInsights: "__lunora_admin__:getQueryInsights";
161
+ readonly getQueueMessages: "__lunora_admin__:getQueueMessages";
147
162
  readonly getRequestLog: "__lunora_admin__:getRequestLog";
148
163
  readonly getSecurityAudit: "__lunora_admin__:getSecurityAudit";
149
164
  readonly getSettings: "__lunora_admin__:getSettings";
165
+ readonly getTraces: "__lunora_admin__:getTraces";
150
166
  readonly getWorkflowInstanceStatus: "__lunora_admin__:getWorkflowInstanceStatus";
167
+ readonly ignoreIssue: "__lunora_admin__:ignoreIssue";
151
168
  readonly importShard: "__lunora_admin__:importShard";
152
169
  readonly listTables: "__lunora_admin__:listTables";
153
170
  readonly maskPolicies: "__lunora_admin__:maskPolicies";
154
171
  readonly migrationStatus: "__lunora_admin__:migrationStatus";
155
172
  readonly pitrRestore: "__lunora_admin__:pitrRestore";
156
173
  readonly readTablePage: "__lunora_admin__:readTablePage";
174
+ readonly replayQueueMessage: "__lunora_admin__:replayQueueMessage";
175
+ readonly resolveIssue: "__lunora_admin__:resolveIssue";
157
176
  readonly rlsPolicies: "__lunora_admin__:rlsPolicies";
177
+ readonly schemaHistory: "__lunora_admin__:schemaHistory";
178
+ readonly schemaVersion: "__lunora_admin__:schemaVersion";
158
179
  readonly runAs: "__lunora_admin__:runAs";
159
180
  readonly runMigration: "__lunora_admin__:runMigration";
160
181
  readonly runSql: "__lunora_admin__:runSql";
182
+ readonly sendQueueMessage: "__lunora_admin__:sendQueueMessage";
161
183
  readonly sendTestMail: "__lunora_admin__:sendTestMail";
184
+ readonly setIssueSeverity: "__lunora_admin__:setIssueSeverity";
162
185
  readonly storageOrphans: "__lunora_admin__:storageOrphans";
163
186
  readonly storageReferences: "__lunora_admin__:storageReferences";
164
187
  readonly storageRules: "__lunora_admin__:storageRules";
@@ -168,10 +191,10 @@ declare const ADMIN_FUNCTIONS: {
168
191
  /** Comparison a {@link FilterClause} applies, mirroring `@lunora/do`'s `FilterOperator`. `contains` is a substring (LIKE). */
169
192
  type FilterOperator = "contains" | "eq" | "gt" | "gte" | "lt" | "lte" | "ne";
170
193
  /**
171
- * One structured column filter passed to `readTablePage`, mirroring `@lunora/do`'s
172
- * `FilterClause`. AND-combined with the substring search and the other clauses.
173
- * `value` is sent as-is and bound server-side, so it never injects SQL.
174
- */
194
+ * One structured column filter passed to `readTablePage`, mirroring `@lunora/do`'s
195
+ * `FilterClause`. AND-combined with the substring search and the other clauses.
196
+ * `value` is sent as-is and bound server-side, so it never injects SQL.
197
+ */
175
198
  interface FilterClause {
176
199
  column: string;
177
200
  operator: FilterOperator;
@@ -216,26 +239,26 @@ interface ShardMetrics {
216
239
  uptimeMs: number;
217
240
  }
218
241
  /**
219
- * One full-scan attribution entry on a {@link FunctionCallStat}, mirroring
220
- * `@lunora/do`'s `FunctionScanAttribution`: how many times the function
221
- * full-scanned `table`. The causal evidence behind the "missing index" insight.
222
- */
242
+ * One full-scan attribution entry on a {@link FunctionCallStat}, mirroring
243
+ * `@lunora/do`'s `FunctionScanAttribution`: how many times the function
244
+ * full-scanned `table`. The causal evidence behind the "missing index" insight.
245
+ */
223
246
  interface FunctionScanAttribution {
224
247
  scans: number;
225
248
  table: string;
226
249
  }
227
250
  /**
228
- * Per-function execution counters returned by `__lunora_admin__:getFunctionStats`
229
- * for one shard. Mirrors `@lunora/do`'s `FunctionCallStat`. Counters are
230
- * per-DO-instance and reset on hibernation/restart — a "since this instance
231
- * woke" readout. Durations are handler wall-clock milliseconds.
232
- *
233
- * `scans` / `scannedTables` carry the causal full-scan attribution (PLAN3 1.2).
234
- * They're additive — a worker predating the feature reports `scans: 0` and
235
- * `scannedTables: []`, so the fields are optional on the wire and the consumer
236
- * defaults them. `conflicts` (OCC write-contention count, a subset of `errors`)
237
- * is likewise additive and optional for the same back-compat reason.
238
- */
251
+ * Per-function execution counters returned by `__lunora_admin__:getFunctionStats`
252
+ * for one shard. Mirrors `@lunora/do`'s `FunctionCallStat`. Counters are
253
+ * per-DO-instance and reset on hibernation/restart — a "since this instance
254
+ * woke" readout. Durations are handler wall-clock milliseconds.
255
+ *
256
+ * `scans` / `scannedTables` carry the causal full-scan attribution (PLAN3 1.2).
257
+ * They're additive — a worker predating the feature reports `scans: 0` and
258
+ * `scannedTables: []`, so the fields are optional on the wire and the consumer
259
+ * defaults them. `conflicts` (OCC write-contention count, a subset of `errors`)
260
+ * is likewise additive and optional for the same back-compat reason.
261
+ */
239
262
  interface FunctionCallStat {
240
263
  calls: number;
241
264
  /** OCC write-conflict count — a subset of `errors`; absent on a pre-conflict-tracking worker. */
@@ -258,11 +281,11 @@ interface FunctionStatsResult {
258
281
  sinceMs: number;
259
282
  }
260
283
  /**
261
- * One declared index on a table, mirroring `@lunora/do`'s `TableIndexInfo`.
262
- * `type` is the index kind; `fields` the indexed columns (sort fields for rank,
263
- * text + filter fields for search, source field for vector); `unique` is set
264
- * only for unique secondary indexes.
265
- */
284
+ * One declared index on a table, mirroring `@lunora/do`'s `TableIndexInfo`.
285
+ * `type` is the index kind; `fields` the indexed columns (sort fields for rank,
286
+ * text + filter fields for search, source field for vector); `unique` is set
287
+ * only for unique secondary indexes.
288
+ */
266
289
  interface TableIndexInfo {
267
290
  fields: string[];
268
291
  name: string;
@@ -273,15 +296,25 @@ interface TableIndexInfo {
273
296
  interface TableIndexesResult {
274
297
  indexes: TableIndexInfo[];
275
298
  }
276
- /** Severity of a buffered log entry, mirroring `@lunora/do`'s `LogLevel`. */
277
- type LogLevel = "debug" | "error" | "info" | "warn";
278
299
  /**
279
- * One buffered log line returned by `__lunora_admin__:getLogs`. `functionPath`
280
- * is the RPC that produced it (when known); `timestamp` is epoch-ms. Mirrors
281
- * `@lunora/do`'s `LogEntry`.
282
- */
300
+ * Severity of a buffered log entry, mirroring `@lunora/do`'s `LogLevel` — the
301
+ * full seven-tier `ctx.log` ramp (`trace`→`fatal`). A worker predating the
302
+ * un-folded buffer only ever sends the four console tiers, which are a subset.
303
+ */
304
+ type LogLevel = "debug" | "error" | "fatal" | "info" | "log" | "trace" | "warn";
305
+ /**
306
+ * One buffered log line returned by `__lunora_admin__:getLogs`. `functionPath`
307
+ * is the RPC that produced it (when known); `timestamp` is epoch-ms.
308
+ * `instance`/`exitCode` are populated for container lifecycle entries
309
+ * (`instance` = the per-instance Durable Object id, `exitCode` = the process
310
+ * exit code parsed out of a `stop` event). Mirrors `@lunora/do`'s `LogEntry`.
311
+ */
283
312
  interface LogEntry {
313
+ exitCode?: number;
314
+ /** Structured fields from a `ctx.log.&lt;level>(message, fields)` / `ctx.log.with(fields)` call, when present. */
315
+ fields?: Record<string, unknown>;
284
316
  functionPath?: string;
317
+ instance?: string;
285
318
  level: LogLevel;
286
319
  message: string;
287
320
  timestamp: number;
@@ -291,13 +324,13 @@ interface LogsResult {
291
324
  entries: LogEntry[];
292
325
  }
293
326
  /**
294
- * One recorded admin operation returned by `__lunora_admin__:getAuditLog`,
295
- * mirroring `@lunora/do`'s `AuditEntry`. Unlike the in-memory logs, the audit
296
- * log is durable and survives hibernation/restart. `seq` is a monotonic
297
- * per-shard cursor; `op` the short op name (`writeRow`, `runMigration`,
298
- * `importShard`, `applyCdc`); `table`/`id` are present when the op targets one;
299
- * `detail` carries op-specific context (notably the acting `userId`).
300
- */
327
+ * One recorded admin operation returned by `__lunora_admin__:getAuditLog`,
328
+ * mirroring `@lunora/do`'s `AuditEntry`. Unlike the in-memory logs, the audit
329
+ * log is durable and survives hibernation/restart. `seq` is a monotonic
330
+ * per-shard cursor; `op` the short op name (`writeRow`, `runMigration`,
331
+ * `importShard`, `applyCdc`); `table`/`id` are present when the op targets one;
332
+ * `detail` carries op-specific context (notably the acting `userId`).
333
+ */
301
334
  interface AuditEntry {
302
335
  detail?: Record<string, unknown>;
303
336
  id?: string;
@@ -311,17 +344,17 @@ interface AuditLogResult {
311
344
  entries: AuditEntry[];
312
345
  }
313
346
  /**
314
- * How a deployment binding/var classifies, mirroring `@lunora/do`'s `SettingKind`.
315
- * `var` is a plain Worker var, `secret` a sensitive string (always masked), and
316
- * `binding` a non-string binding object (R2/KV/DO/D1/queue/service).
317
- */
347
+ * How a deployment binding/var classifies, mirroring `@lunora/do`'s `SettingKind`.
348
+ * `var` is a plain Worker var, `secret` a sensitive string (always masked), and
349
+ * `binding` a non-string binding object (R2/KV/DO/D1/queue/service).
350
+ */
318
351
  type SettingKind = "binding" | "secret" | "var";
319
352
  /**
320
- * One row of the read-only deployment-settings view, mirroring `@lunora/do`'s
321
- * `SettingEntry`. `value` is a masked preview for `var`/`secret` strings (never
322
- * the raw secret) and `null` for `binding` entries. The server masks every
323
- * string value, so the studio only ever renders the masked text.
324
- */
353
+ * One row of the read-only deployment-settings view, mirroring `@lunora/do`'s
354
+ * `SettingEntry`. `value` is a masked preview for `var`/`secret` strings (never
355
+ * the raw secret) and `null` for `binding` entries. The server masks every
356
+ * string value, so the studio only ever renders the masked text.
357
+ */
325
358
  interface SettingEntry {
326
359
  /** Coarse runtime class for `binding` entries (`r2`, `kv`, `durable-object`, …). */
327
360
  bindingType?: string;
@@ -330,10 +363,10 @@ interface SettingEntry {
330
363
  value: null | string;
331
364
  }
332
365
  /**
333
- * Best-effort deploy metadata, mirroring `@lunora/do`'s `DeployInfo`. Every
334
- * field is optional: the server reads only what the Worker `env` exposes and
335
- * omits the rest.
336
- */
366
+ * Best-effort deploy metadata, mirroring `@lunora/do`'s `DeployInfo`. Every
367
+ * field is optional: the server reads only what the Worker `env` exposes and
368
+ * omits the rest.
369
+ */
337
370
  interface DeployInfo {
338
371
  deploymentId?: string;
339
372
  environment?: string;
@@ -346,24 +379,24 @@ interface SettingsResult {
346
379
  settings: SettingEntry[];
347
380
  }
348
381
  /**
349
- * Ordering/visual weight of a {@link SecurityFinding}, mirroring `@lunora/do`'s
350
- * `SecurityFindingLevel`. Shares the studio's insight-severity vocabulary so the
351
- * Security and Performance advisors render with one badge palette.
352
- */
382
+ * Ordering/visual weight of a {@link SecurityFinding}, mirroring `@lunora/do`'s
383
+ * `SecurityFindingLevel`. Shares the studio's insight-severity vocabulary so the
384
+ * Security and Performance advisors render with one badge palette.
385
+ */
353
386
  type SecurityFindingLevel = "error" | "info" | "warning";
354
387
  /**
355
- * Which deployment-level security heuristic fired, mirroring `@lunora/do`'s
356
- * `SecurityFindingKind`. The studio maps each kind to a localized title,
357
- * explanation, and remediation hint; the wire payload carries only the kind,
358
- * level, and optional `detail`.
359
- */
388
+ * Which deployment-level security heuristic fired, mirroring `@lunora/do`'s
389
+ * `SecurityFindingKind`. The studio maps each kind to a localized title,
390
+ * explanation, and remediation hint; the wire payload carries only the kind,
391
+ * level, and optional `detail`.
392
+ */
360
393
  type SecurityFindingKind = "admin-token-weak" | "auth-secret-weak" | "cookies-insecure" | "cors-wildcard-credentials" | "csrf-disabled" | "dev-args-unredacted" | "security-headers-disabled" | "ws-gate-open";
361
394
  /**
362
- * One detected security issue from `__lunora_admin__:getSecurityAudit`, mirroring
363
- * `@lunora/do`'s `SecurityFinding`. `detail` carries kind-specific context the
364
- * studio interpolates into the localized copy (e.g. `{ length, min }` for a weak
365
- * admin token); absent when the kind needs none.
366
- */
395
+ * One detected security issue from `__lunora_admin__:getSecurityAudit`, mirroring
396
+ * `@lunora/do`'s `SecurityFinding`. `detail` carries kind-specific context the
397
+ * studio interpolates into the localized copy (e.g. `{ length, min }` for a weak
398
+ * admin token); absent when the kind needs none.
399
+ */
367
400
  interface SecurityFinding {
368
401
  detail?: Record<string, unknown>;
369
402
  kind: SecurityFindingKind;
@@ -384,16 +417,21 @@ interface TablePage {
384
417
  /** Foreign-key columns (column → target table) for `v.id("target")` fields, so the UI can link those cells. */
385
418
  refs?: Record<string, string>;
386
419
  rows: Record<string, unknown>[];
387
- total: number;
420
+ /**
421
+ * Total rows matching the predicate. Absent when the read passed
422
+ * `skipCount: true` — the data browser sources the count from a separate,
423
+ * predicate-keyed read so paging never re-runs the COUNT.
424
+ */
425
+ total?: number;
388
426
  }
389
427
  /** Direction a data migration is run in. Mirrors `@lunora/do`. */
390
428
  type MigrationDirection = "down" | "up";
391
429
  /** Lifecycle of a data-migration run. Mirrors `@lunora/do`. */
392
430
  type MigrationStatus = "completed" | "failed" | "in_progress";
393
431
  /**
394
- * One persisted migration run-state row, as returned by the
395
- * `__lunora_admin__:migrationStatus` RPC (`{ migrations: MigrationStatusRow[] }`).
396
- */
432
+ * One persisted migration run-state row, as returned by the
433
+ * `__lunora_admin__:migrationStatus` RPC (`{ migrations: MigrationStatusRow[] }`).
434
+ */
397
435
  interface MigrationStatusRow {
398
436
  changed: number;
399
437
  cursor: null | string;
@@ -442,23 +480,23 @@ interface ImportShardResult {
442
480
  inserted: Record<string, number>;
443
481
  }
444
482
  /**
445
- * One shard's request total from the worker's `POST /_lunora/admin/shard-traffic`
446
- * endpoint, mirroring `@lunora/runtime`'s `ShardTrafficEntry`. `requests` is the
447
- * shard's lifetime dispatch count (`0` for a shard that failed/timed out);
448
- * `shardKey` is the DO id name (`""` for the root shard). The cross-shard feed
449
- * the `hot_shard` runtime advisor consumes to compute skew.
450
- */
483
+ * One shard's request total from the worker's `POST /_lunora/admin/shard-traffic`
484
+ * endpoint, mirroring `@lunora/runtime`'s `ShardTrafficEntry`. `requests` is the
485
+ * shard's lifetime dispatch count (`0` for a shard that failed/timed out);
486
+ * `shardKey` is the DO id name (`""` for the root shard). The cross-shard feed
487
+ * the `hot_shard` runtime advisor consumes to compute skew.
488
+ */
451
489
  interface ShardTrafficEntry {
452
490
  requests: number;
453
491
  shardKey: string;
454
492
  }
455
493
  /**
456
- * Payload of a `POST /_lunora/admin/shard-traffic` call, mirroring the runtime
457
- * coordinator's shard-traffic fan-out result: one `{ shardKey, requests }` entry
458
- * per live shard plus the ok / failed counts. Fanned out on demand (not on the
459
- * metrics hot path) so the panel can feed `hot_shard` the whole shard set's
460
- * request volumes.
461
- */
494
+ * Payload of a `POST /_lunora/admin/shard-traffic` call, mirroring the runtime
495
+ * coordinator's shard-traffic fan-out result: one `{ shardKey, requests }` entry
496
+ * per live shard plus the ok / failed counts. Fanned out on demand (not on the
497
+ * metrics hot path) so the panel can feed `hot_shard` the whole shard set's
498
+ * request volumes.
499
+ */
462
500
  interface ShardTrafficResult {
463
501
  failed: number;
464
502
  ok: number;
@@ -467,25 +505,25 @@ interface ShardTrafficResult {
467
505
  /** Visual + ordering weight of a detected issue. */
468
506
  type InsightSeverity = "error" | "info" | "warning";
469
507
  /**
470
- * Which heuristic fired. The panel maps each kind to a localized title/detail,
471
- * so the detection stays free of presentation strings (and trivially testable).
472
- *
473
- * `missing-index` is the causal upgrade of `slow-function`: a slow function
474
- * whose latency is explained by a full-table scan. When the scan attribution
475
- * pins the cause, the insight names the scanned table(s) (`tables`) and deep-
476
- * links to the Schema/Indexes tab to add the index, rather than leaving the
477
- * slowness an unattributed symptom.
478
- */
508
+ * Which heuristic fired. The panel maps each kind to a localized title/detail,
509
+ * so the detection stays free of presentation strings (and trivially testable).
510
+ *
511
+ * `missing-index` is the causal upgrade of `slow-function`: a slow function
512
+ * whose latency is explained by a full-table scan. When the scan attribution
513
+ * pins the cause, the insight names the scanned table(s) (`tables`) and deep-
514
+ * links to the Schema/Indexes tab to add the index, rather than leaving the
515
+ * slowness an unattributed symptom.
516
+ */
479
517
  type InsightKind = "high-error-rate" | "high-evictions" | "high-write-contention" | "low-cache-hit-rate" | "missing-index" | "slow-function";
480
518
  /**
481
- * One detected issue. `value` is the headline number whose meaning depends on
482
- * `kind`: a 0–1 rate for cache-hit / error-rate, a millisecond figure for
483
- * slow-function / missing-index, an entry count for evictions. `fn` is set only
484
- * for per-function insights; `message` carries the last error for
485
- * high-error-rate; `tables` carries the full-scanned tables (busiest first) for
486
- * the causal `missing-index` kind. For `high-write-contention` it is the OCC
487
- * conflict ratio (conflicts / calls).
488
- */
519
+ * One detected issue. `value` is the headline number whose meaning depends on
520
+ * `kind`: a 0–1 rate for cache-hit / error-rate, a millisecond figure for
521
+ * slow-function / missing-index, an entry count for evictions. `fn` is set only
522
+ * for per-function insights; `message` carries the last error for
523
+ * high-error-rate; `tables` carries the full-scanned tables (busiest first) for
524
+ * the causal `missing-index` kind. For `high-write-contention` it is the OCC
525
+ * conflict ratio (conflicts / calls).
526
+ */
489
527
  interface Insight {
490
528
  fn?: string;
491
529
  kind: InsightKind;
@@ -513,181 +551,165 @@ interface InsightThresholds {
513
551
  }
514
552
  declare const DEFAULT_INSIGHT_THRESHOLDS: InsightThresholds;
515
553
  /**
516
- * Derive a prioritised list of issues from the two snapshots the studio
517
- * already pulls — the `getMetrics` health snapshot and the `getFunctionStats`
518
- * per-function table. Pure and side-effect-free: same inputs, same output, so
519
- * the heuristics can be unit-tested without rendering.
520
- *
521
- * Heuristics: low-cache-hit-rate (cache below the threshold once enough samples
522
- * exist — a cold cache isn't a problem); high-evictions (more evictions than
523
- * hits, so the cache is too small or churning on invalidation); missing-index (a
524
- * slow function whose latency is *explained* by a full-table scan — the causal
525
- * upgrade of slow-function, naming the scanned table(s)); slow-function (a
526
- * function whose slowest call crosses the threshold with no scan attribution to
527
- * blame); high-error-rate (a function failing over a meaningful count);
528
- * high-write-contention (a function whose OCC write conflicts make up a
529
- * meaningful share of calls — a sharding candidate).
530
- *
531
- * A slow function with full-scan attribution emits `missing-index` (causal, with
532
- * `tables`) instead of the bare `slow-function`, so the panel can link straight
533
- * to the fix rather than restating the symptom.
534
- */
554
+ * Derive a prioritised list of issues from the two snapshots the studio
555
+ * already pulls — the `getMetrics` health snapshot and the `getFunctionStats`
556
+ * per-function table. Pure and side-effect-free: same inputs, same output, so
557
+ * the heuristics can be unit-tested without rendering.
558
+ *
559
+ * Heuristics: low-cache-hit-rate (cache below the threshold once enough samples
560
+ * exist — a cold cache isn't a problem); high-evictions (more evictions than
561
+ * hits, so the cache is too small or churning on invalidation); missing-index (a
562
+ * slow function whose latency is *explained* by a full-table scan — the causal
563
+ * upgrade of slow-function, naming the scanned table(s)); slow-function (a
564
+ * function whose slowest call crosses the threshold with no scan attribution to
565
+ * blame); high-error-rate (a function failing over a meaningful count);
566
+ * high-write-contention (a function whose OCC write conflicts make up a
567
+ * meaningful share of calls — a sharding candidate).
568
+ *
569
+ * A slow function with full-scan attribution emits `missing-index` (causal, with
570
+ * `tables`) instead of the bare `slow-function`, so the panel can link straight
571
+ * to the fix rather than restating the symptom.
572
+ */
535
573
  declare const deriveInsights: (metrics: ShardMetrics | null, functions: FunctionCallStat[] | null, thresholds?: InsightThresholds) => Insight[];
536
574
  interface InsightsPanelProps {
537
575
  /** Shard key the snapshots target on first load. Defaults to the root shard. */
538
576
  readonly initialShardKey?: string;
539
577
  /**
540
- * Fan the cross-shard traffic feed out for `table`, returning each shard's
541
- * `{ shardKey, requests }` total — the input the `hot_shard` advisor lint
542
- * needs. Defaults to `client.shardTraffic(table)` (the admin-gated
543
- * `POST /_lunora/admin/shard-traffic` fan-out). Best-effort: a rejection
544
- * leaves `hot_shard` dormant rather than blanking the panel. Injectable so
545
- * tests can drive the skew without a worker.
546
- */
578
+ * Fan the cross-shard traffic feed out for `table`, returning each shard's
579
+ * `{ shardKey, requests }` total — the input the `hot_shard` advisor lint
580
+ * needs. Defaults to `client.shardTraffic(table)` (the admin-gated
581
+ * `POST /_lunora/admin/shard-traffic` fan-out). Best-effort: a rejection
582
+ * leaves `hot_shard` dormant rather than blanking the panel. Injectable so
583
+ * tests can drive the skew without a worker.
584
+ */
547
585
  readonly loadShardTraffic?: (table: string) => Promise<ShardTrafficResult>;
548
586
  }
549
587
  /**
550
- * The Performance Advisor — a 1-to-1 of Supabase's Performance Advisor: severity
551
- * tabs over a findings table (via {@link AdvisorView}). It pulls the `getMetrics`
552
- * health snapshot and `getFunctionStats` per-function table for one shard, then
553
- * maps the issues {@link deriveInsights} detects (low cache hit rate, high
554
- * eviction, slow functions, missing indexes, error spikes) into rows. A
555
- * `missing-index` row carries an inline "add the index" jump to the Schema tab.
556
- * Both reads are best-effort — one failing still yields the other's insights.
557
- */
558
- declare const InsightsPanel: ({
559
- initialShardKey,
560
- loadShardTraffic
561
- }: InsightsPanelProps) => ReactElement;
562
- /**
563
- * The Security Advisor a 1-to-1 of Supabase's Security Advisor: severity tabs
564
- * (Errors / Warnings / Info) over a findings table. It pulls `getSecurityAudit`
565
- * (deployment-wide, so it targets the root shard and needs no shard selector) and
566
- * maps each finding the server derived from the Worker `env` — weak admin token,
567
- * an open WebSocket gate, a dev-mode request log keeping un-redacted args — into a
568
- * row. These are signals only lunora can surface: Cloudflare's dashboard can't
569
- * reason about lunora's admin/WS gates or its log-redaction policy.
570
- */
588
+ * The Performance Advisor — a 1-to-1 of Supabase's Performance Advisor: severity
589
+ * tabs over a findings table (via {@link AdvisorView}). It pulls the `getMetrics`
590
+ * health snapshot and `getFunctionStats` per-function table for one shard, then
591
+ * maps the issues {@link deriveInsights} detects (low cache hit rate, high
592
+ * eviction, slow functions, missing indexes, error spikes) into rows. A
593
+ * `missing-index` row carries an inline "add the index" jump to the Schema tab.
594
+ * Both reads are best-effort — one failing still yields the other's insights.
595
+ */
596
+ declare const InsightsPanel: ({ initialShardKey, loadShardTraffic }: InsightsPanelProps) => ReactElement;
597
+ /**
598
+ * The Security Advisor — a 1-to-1 of Supabase's Security Advisor: severity tabs
599
+ * (Errors / Warnings / Info) over a findings table. It pulls `getSecurityAudit`
600
+ * (deployment-wide, so it targets the root shard and needs no shard selector) and
601
+ * maps each finding the server derived from the Worker `env` weak admin token,
602
+ * an open WebSocket gate, a dev-mode request log keeping un-redacted args — into a
603
+ * row. These are signals only lunora can surface: Cloudflare's dashboard can't
604
+ * reason about lunora's admin/WS gates or its log-redaction policy.
605
+ */
571
606
  declare const SecurityAdvisorPanel: () => ReactElement;
572
607
  interface ApiDocsPanelProps {
573
608
  /**
574
- * Registered functions to document. Mirrors the list the Functions tab's
575
- * runner and stats panels receive — a query/mutation/action's `kind` is
576
- * compile-time-only, so it must be named here. When omitted the panel still
577
- * renders (tables come from the admin RPC) and shows an empty functions list.
578
- */
609
+ * Registered functions to document. Mirrors the list the Functions tab's
610
+ * runner and stats panels receive — a query/mutation/action's `kind` is
611
+ * compile-time-only, so it must be named here. When omitted the panel still
612
+ * renders (tables come from the admin RPC) and shows an empty functions list.
613
+ */
579
614
  readonly functions?: FunctionDescriptor[];
580
615
  /** Shard key the table list is read from. Defaults to the root shard. */
581
616
  readonly initialShardKey?: string;
582
617
  }
583
- /** Inputs every function snippet builder closes over — the split path plus its `kind`. */
584
- /**
585
- * Per-resource "how to call this from your app" browser, generated from the
586
- * registered functions and tables the studio already has no new endpoints.
587
- * The left rail lists functions grouped by file plus a Tables section; the right
588
- * pane shows copy-paste snippets (React / Client / CLI for functions; the typed
589
- * data-model usage for tables).
590
- *
591
- * Args are a placeholder: the real argument shape lives in the codegen'd `api`
592
- * types this browser never loads, the same way Supabase's usage snippets show
593
- * placeholders.
594
- */
595
- declare const ApiDocsPanel: ({
596
- functions,
597
- initialShardKey
598
- }: ApiDocsPanelProps) => ReactElement;
618
+ /**
619
+ * Per-resource "how to call this from your app" browser, generated from the
620
+ * registered functions and tables the studio already has no new endpoints.
621
+ * The left rail lists functions grouped by file plus a Tables section; the right
622
+ * pane shows copy-paste snippets (React / Client / CLI for functions; the typed
623
+ * data-model usage for tables).
624
+ *
625
+ * Args are a placeholder: the real argument shape lives in the codegen'd `api`
626
+ * types this browser never loads, the same way Supabase's usage snippets show
627
+ * placeholders.
628
+ */
629
+ declare const ApiDocsPanel: ({ functions, initialShardKey }: ApiDocsPanelProps) => ReactElement;
599
630
  interface ApiReferencePanelProps {
600
631
  /**
601
- * Inline OpenAPI document. When supplied the panel renders it directly and
602
- * skips the fetch — used by the mock harness and by hosts that already hold
603
- * the generated spec. When omitted the panel fetches the worker's
604
- * admin-gated `GET /_lunora/admin/openapi` endpoint via the client.
605
- */
632
+ * Inline OpenAPI document. When supplied the panel renders it directly and
633
+ * skips the fetch — used by the mock harness and by hosts that already hold
634
+ * the generated spec. When omitted the panel fetches the worker's
635
+ * admin-gated `GET /_lunora/admin/openapi` endpoint via the client.
636
+ */
606
637
  readonly spec?: unknown;
607
638
  }
608
639
  /**
609
- * In-studio OpenAPI reference: renders the generated OpenAPI 3.1 document with
610
- * the studio-native {@link ReferenceView} — a tag-grouped operation browser,
611
- * schema tables, a live "try it" console, and copy-paste request samples, all
612
- * themed to the studio. The spec comes from an inline
613
- * {@link ApiReferencePanelProps.spec} prop, or — by default — the worker's
614
- * admin-gated `GET /_lunora/admin/openapi` endpoint fetched through the client.
615
- *
616
- * This replaced the embedded Scalar reference (a Vue app in React): Scalar's
617
- * portal/overlay layers repeatedly intercepted clicks and froze the tab, and it
618
- * shipped a multi-megabyte bundle. The native view is overlay-free and reuses
619
- * the studio's own primitives.
620
- */
621
- declare const ApiReferencePanel: ({
622
- spec: inlineSpec
623
- }: ApiReferencePanelProps) => ReactElement;
640
+ * In-studio OpenAPI reference: renders the generated OpenAPI 3.1 document with
641
+ * the studio-native {@link ReferenceView} — a tag-grouped operation browser,
642
+ * schema tables, a live "try it" console, and copy-paste request samples, all
643
+ * themed to the studio. The spec comes from an inline
644
+ * {@link ApiReferencePanelProps.spec} prop, or — by default — the worker's
645
+ * admin-gated `GET /_lunora/admin/openapi` endpoint fetched through the client.
646
+ *
647
+ * This replaced the embedded Scalar reference (a Vue app in React): Scalar's
648
+ * portal/overlay layers repeatedly intercepted clicks and froze the tab, and it
649
+ * shipped a multi-megabyte bundle. The native view is overlay-free and reuses
650
+ * the studio's own primitives.
651
+ */
652
+ declare const ApiReferencePanel: ({ spec: inlineSpec }: ApiReferencePanelProps) => ReactElement;
624
653
  interface ApiTabProps {
625
654
  /** Registered functions documented by the snippets sub-view. Threaded host → studio. */
626
655
  readonly functions?: FunctionDescriptor[];
627
656
  /** Shard key the snippets view reads its table list from. */
628
657
  readonly initialShardKey?: string;
629
658
  /**
630
- * Inline OpenAPI document for the reference sub-view. When omitted the
631
- * reference fetches the worker's `GET /_lunora/admin/openapi` endpoint.
632
- */
659
+ * Inline OpenAPI document for the reference sub-view. When omitted the
660
+ * reference fetches the worker's `GET /_lunora/admin/openapi` endpoint.
661
+ */
633
662
  readonly openApiSpec?: unknown;
634
663
  /**
635
- * Inline OpenRPC document for the reference sub-view's OpenRPC format. When
636
- * omitted the OpenRPC view fetches the worker's `GET /_lunora/admin/openrpc`
637
- * endpoint. OpenRPC is the RPC-native spec (RPC functions only); OpenAPI
638
- * additionally covers `httpRouter()` REST routes.
639
- */
664
+ * Inline OpenRPC document for the reference sub-view's OpenRPC format. When
665
+ * omitted the OpenRPC view fetches the worker's `GET /_lunora/admin/openrpc`
666
+ * endpoint. OpenRPC is the RPC-native spec (RPC functions only); OpenAPI
667
+ * additionally covers `httpRouter()` REST routes.
668
+ */
640
669
  readonly openRpcSpec?: unknown;
641
670
  }
642
671
  /**
643
- * The studio's API tab. Hosts two complementary surfaces behind a segmented
644
- * toggle. The Reference view renders a machine-readable spec — the OpenAPI 3.1
645
- * document or the RPC-native OpenRPC document — through the studio-native
646
- * reference UI (operation browser, schema tables, a live "try it" console, and a
647
- * request-sample rail), with a small format switch between them. The Snippets
648
- * view is the per-function React / Client / CLI copy-paste browser
649
- * (`api-docs-panel`), the lightweight "how do I call this" DX.
650
- *
651
- * Reference is the default; OpenAPI is the default format (the richer,
652
- * spec-driven view that also covers REST). Each format degrades to a clear
653
- * empty state when its spec isn't wired.
654
- */
655
- declare const ApiTab: ({
656
- functions,
657
- initialShardKey,
658
- openApiSpec,
659
- openRpcSpec
660
- }: ApiTabProps) => ReactElement;
672
+ * The studio's API tab. Hosts two complementary surfaces behind a segmented
673
+ * toggle. The Reference view renders a machine-readable spec — the OpenAPI 3.1
674
+ * document or the RPC-native OpenRPC document — through the studio-native
675
+ * reference UI (operation browser, schema tables, a live "try it" console, and a
676
+ * request-sample rail), with a small format switch between them. The Snippets
677
+ * view is the per-function React / Client / CLI copy-paste browser
678
+ * (`api-docs-panel`), the lightweight "how do I call this" DX.
679
+ *
680
+ * Reference is the default; OpenAPI is the default format (the richer,
681
+ * spec-driven view that also covers REST). Each format degrades to a clear
682
+ * empty state when its spec isn't wired.
683
+ */
684
+ declare const ApiTab: ({ functions, initialShardKey, openApiSpec, openRpcSpec }: ApiTabProps) => ReactElement;
661
685
  interface OpenRpcReferencePanelProps {
662
686
  /**
663
- * Inline OpenRPC document. When supplied the panel renders it directly and
664
- * skips the fetch — used by the mock harness and by hosts that already hold
665
- * the generated spec. When omitted the panel fetches the worker's
666
- * admin-gated `GET /_lunora/admin/openrpc` endpoint via the client.
667
- */
687
+ * Inline OpenRPC document. When supplied the panel renders it directly and
688
+ * skips the fetch — used by the mock harness and by hosts that already hold
689
+ * the generated spec. When omitted the panel fetches the worker's
690
+ * admin-gated `GET /_lunora/admin/openrpc` endpoint via the client.
691
+ */
668
692
  readonly spec?: unknown;
669
693
  }
670
694
  /**
671
- * In-studio OpenRPC reference. OpenRPC is the RPC-native spec (a `methods` array
672
- * over the JSON-RPC-shaped `POST /_lunora/rpc` transport), documenting the RPC
673
- * functions only. It is parsed into the shared `ApiModel` and rendered by the
674
- * same studio-native {@link ReferenceView} the OpenAPI panel uses, so both
675
- * formats share one operation browser, schema view, try-it console, and sample
676
- * rail.
677
- *
678
- * The spec comes from an inline {@link OpenRpcReferencePanelProps.spec} prop, or
679
- * — by default — the worker's admin-gated `GET /_lunora/admin/openrpc` endpoint.
680
- */
681
- declare const OpenRpcReferencePanel: ({
682
- spec: inlineSpec
683
- }: OpenRpcReferencePanelProps) => ReactElement;
684
- /**
685
- * A shareable data-browser view: the table, storage tier, shard, structured
686
- * filters, substring search, and sort that together reproduce exactly what the
687
- * grid is showing. This is the unit that is serialized into the URL (so the link
688
- * IS the query) and persisted by name in {@link loadSavedQueries}. Every field is
689
- * optional so a partial/legacy URL still hydrates into a sensible default view.
690
- */
695
+ * In-studio OpenRPC reference. OpenRPC is the RPC-native spec (a `methods` array
696
+ * over the JSON-RPC-shaped `POST /_lunora/rpc` transport), documenting the RPC
697
+ * functions only. It is parsed into the shared `ApiModel` and rendered by the
698
+ * same studio-native {@link ReferenceView} the OpenAPI panel uses, so both
699
+ * formats share one operation browser, schema view, try-it console, and sample
700
+ * rail.
701
+ *
702
+ * The spec comes from an inline {@link OpenRpcReferencePanelProps.spec} prop, or
703
+ * — by default — the worker's admin-gated `GET /_lunora/admin/openrpc` endpoint.
704
+ */
705
+ declare const OpenRpcReferencePanel: ({ spec: inlineSpec }: OpenRpcReferencePanelProps) => ReactElement;
706
+ /**
707
+ * A shareable data-browser view: the table, storage tier, shard, structured
708
+ * filters, substring search, and sort that together reproduce exactly what the
709
+ * grid is showing. This is the unit that is serialized into the URL (so the link
710
+ * IS the query) and persisted by name in {@link loadSavedQueries}. Every field is
711
+ * optional so a partial/legacy URL still hydrates into a sensible default view.
712
+ */
691
713
  interface DataView {
692
714
  /** Structured `column operator value` clauses, AND-combined with the search. */
693
715
  filters?: FilterClause[];
@@ -710,54 +732,58 @@ interface SavedQuery {
710
732
  name: string;
711
733
  view: DataView;
712
734
  }
713
- /** Saved queries, most-recently-saved first. Empty when storage is unavailable or empty. */
714
735
  interface DataBrowserProps {
715
736
  /**
716
- * Allow editing: surfaces insert/edit/delete actions that issue
717
- * `__lunora_admin__:writeRow` ops through the schema-aware writer. Off by
718
- * default — the browser is read-only unless the host opts in.
719
- */
737
+ * Allow editing: surfaces insert/edit/delete actions that issue
738
+ * `__lunora_admin__:writeRow` ops through the schema-aware writer. Off by
739
+ * default — the browser is read-only unless the host opts in.
740
+ */
720
741
  readonly editable?: boolean;
721
742
  /**
722
- * Names of the `.global()` (D1-backed) tables. A `v.id` ref cell whose target
723
- * is one of these is followed cross-tier via `onNavigateToGlobal` instead of
724
- * being read from this shard (where it doesn't exist). Supplied by the Table
725
- * editor; defaults to none when the browser is used standalone.
726
- */
743
+ * Names of the `.global()` (D1-backed) tables. A `v.id` ref cell whose target
744
+ * is one of these is followed cross-tier via `onNavigateToGlobal` instead of
745
+ * being read from this shard (where it doesn't exist). Supplied by the Table
746
+ * editor; defaults to none when the browser is used standalone.
747
+ */
727
748
  readonly globalTableNames?: ReadonlySet<string>;
728
749
  /** Structured filters to hydrate from a shared link / saved query. */
729
750
  readonly initialFilters?: FilterClause[];
730
751
  /** Sort to hydrate from a shared link / saved query. */
731
752
  readonly initialOrderBy?: DataView["orderBy"];
753
+ /** Comma-separated pinned columns from the URL; wins over the per-browser default. */
754
+ readonly initialPins?: string;
732
755
  /** Substring search to hydrate from a shared link / saved query. */
733
756
  readonly initialSearch?: string;
734
757
  /** Shard key the browser targets on first load. Defaults to the root shard. */
735
758
  readonly initialShardKey?: string;
736
759
  /**
737
- * Follow a `v.id` ref whose target is a global table — the Table editor switches
738
- * to the global tier and opens that table. When omitted (standalone use), a ref
739
- * to a global table falls through to the in-shard read (and surfaces its error).
740
- */
760
+ * Follow a `v.id` ref whose target is a global table — the Table editor switches
761
+ * to the global tier and opens that table. When omitted (standalone use), a ref
762
+ * to a global table falls through to the in-shard read (and surfaces its error).
763
+ */
741
764
  readonly onNavigateToGlobal?: (table: string, id: string) => void;
742
765
  /**
743
- * Called whenever the open table changes, so the host can mirror it to the URL
744
- * (the Table editor pushes `?table=…`). Omitted in standalone use.
745
- */
746
- readonly onSelectTable?: (table: string) => void;
766
+ * Navigate the URL to a table (the Table editor pushes `?table=…`), opening it
767
+ * clean; `options.search` pre-fills the search for an FK-cell traversal.
768
+ * Omitted in standalone use.
769
+ */
770
+ readonly onSelectTable?: (table: string, options?: {
771
+ search?: string;
772
+ }) => void;
747
773
  /**
748
- * Called whenever the loaded view (shard / search / filters / sort) changes, so
749
- * the host can mirror it to the URL — making every view a shareable link.
750
- * Omitted in standalone use (view state stays in-component).
751
- */
774
+ * Called whenever the loaded view (shard / search / filters / sort) changes, so
775
+ * the host can mirror it to the URL — making every view a shareable link.
776
+ * Omitted in standalone use (view state stays in-component).
777
+ */
752
778
  readonly onViewChange?: (view: Pick<DataView, "filters" | "orderBy" | "search" | "shard">) => void;
753
779
  /** Rows requested per page. Clamped server-side to `[1, 500]`. */
754
780
  readonly pageSize?: number;
755
781
  /**
756
- * The canned-query toolbar's handlers + saved list. Supplied by the Table editor
757
- * (it owns the router and the `saved-queries` localStorage helper); omitted in
758
- * standalone use, which hides the toolbar entirely. `onSaveQuery` receives the
759
- * name plus the current view to persist.
760
- */
782
+ * The canned-query toolbar's handlers + saved list. Supplied by the Table editor
783
+ * (it owns the router and the `saved-queries` localStorage helper); omitted in
784
+ * standalone use, which hides the toolbar entirely. `onSaveQuery` receives the
785
+ * name plus the current view to persist.
786
+ */
761
787
  readonly queryBar?: {
762
788
  readonly onApplyQuery: (query: SavedQuery) => void;
763
789
  readonly onCopyLink: () => void;
@@ -766,50 +792,36 @@ interface DataBrowserProps {
766
792
  readonly saved: ReadonlyArray<SavedQuery>;
767
793
  };
768
794
  /**
769
- * The schema/source selector rendered at the top of the table-list sidebar —
770
- * the Table editor's `schema public ▾` switch. Supplied when this browser is
771
- * composed into the Table editor; omitted when it's used alone.
772
- */
795
+ * The schema/source selector rendered at the top of the table-list sidebar —
796
+ * the Table editor's `schema public ▾` switch. Supplied when this browser is
797
+ * composed into the Table editor; omitted when it's used alone.
798
+ */
773
799
  readonly schemaSwitch?: ReactNode;
774
800
  /**
775
- * The table named in the URL. Drives the selection — a deep link or browser
776
- * back/forward to a different `?table=…` re-opens that table. Supplied by the
777
- * Table editor; omitted in standalone use (selection stays purely in-component).
778
- */
801
+ * The table named in the URL. Drives the selection — a deep link or browser
802
+ * back/forward to a different `?table=…` re-opens that table. Supplied by the
803
+ * Table editor; omitted in standalone use (selection stays purely in-component).
804
+ */
779
805
  readonly tableParam?: string;
780
806
  }
781
807
  /**
782
- * Read-only data browser for a single shard's SQLite database. Lists the user
783
- * tables (via the `__lunora_admin__:listTables` RPC), then pages through the
784
- * rows of whichever table is selected (`__lunora_admin__:readTablePage`).
785
- *
786
- * Both calls travel over the ordinary `useLunora` client transport; the
787
- * admin RPCs are intercepted inside the Durable Object and are gated by the
788
- * server's `LUNORA_ADMIN_TOKEN`. The host is responsible for configuring the
789
- * client's auth token — this component issues no credentials of its own.
790
- *
791
- * The table view is built on a headless `@tanstack/react-table` model: column
792
- * defs derive from `page.columns`, sorting and (global) filtering run
793
- * page-locally over the loaded rows, and the rendered rows are virtualized with
794
- * `@tanstack/react-virtual` so a large page never inflates the DOM. None of this
795
- * touches the server — pagination still flows through `readTablePage`. All of
796
- * that state lives in {@link useDataBrowser}; this component is just the markup.
797
- */
798
- declare const DataBrowser: ({
799
- editable,
800
- globalTableNames,
801
- initialFilters,
802
- initialOrderBy,
803
- initialSearch,
804
- initialShardKey,
805
- onNavigateToGlobal,
806
- onSelectTable,
807
- onViewChange,
808
- pageSize: initialPageSize,
809
- queryBar,
810
- schemaSwitch,
811
- tableParam
812
- }: DataBrowserProps) => ReactElement;
808
+ * Read-only data browser for a single shard's SQLite database. Lists the user
809
+ * tables (via the `__lunora_admin__:listTables` RPC), then pages through the
810
+ * rows of whichever table is selected (`__lunora_admin__:readTablePage`).
811
+ *
812
+ * Both calls travel over the ordinary `useLunora` client transport; the
813
+ * admin RPCs are intercepted inside the Durable Object and are gated by the
814
+ * server's `LUNORA_ADMIN_TOKEN`. The host is responsible for configuring the
815
+ * client's auth token — this component issues no credentials of its own.
816
+ *
817
+ * The table view is built on a headless `@tanstack/react-table` model: column
818
+ * defs derive from `page.columns`, sorting and (global) filtering run
819
+ * page-locally over the loaded rows, and the rendered rows are virtualized with
820
+ * `@tanstack/react-virtual` so a large page never inflates the DOM. None of this
821
+ * touches the server — pagination still flows through `readTablePage`. All of
822
+ * that state lives in {@link useDataBrowser}; this component is just the markup.
823
+ */
824
+ declare const DataBrowser: ({ editable, globalTableNames, initialFilters, initialOrderBy, initialPins, initialSearch, initialShardKey, onNavigateToGlobal, onSelectTable, onViewChange, pageSize: initialPageSize, queryBar, schemaSwitch, tableParam }: DataBrowserProps) => ReactElement;
813
825
  /** A filter row as edited in the UI — the value is always a string until coerced for the wire. */
814
826
  interface EditableFilter {
815
827
  column: string;
@@ -817,184 +829,165 @@ interface EditableFilter {
817
829
  value: string;
818
830
  }
819
831
  /**
820
- * Convert the UI's string-valued filter rows into wire {@link FilterClause}s:
821
- * drops rows with no column, and coerces a numeric string to a number for the
822
- * comparison operators (so `age > 18` compares numerically, not lexically).
823
- * `contains` always stays a string.
824
- */
832
+ * Convert the UI's string-valued filter rows into wire {@link FilterClause}s:
833
+ * drops rows with no column, and coerces a canonical numeric string to a number for
834
+ * every comparison operator (so `age > 18` compares numerically, not lexically, and
835
+ * an `eq` on a numeric column still matches — see {@link coerceFilterValue} for why a
836
+ * numeric-looking but non-canonical string like a zip code stays text). `contains`
837
+ * always stays a string.
838
+ */
825
839
  declare const toFilterClauses: (filters: ReadonlyArray<EditableFilter>) => FilterClause[];
826
840
  /**
827
- * The data browser's filtering controls: the substring search box plus a stack
828
- * of structured `column operator value` rows. All state is owned by the parent
829
- * (the data-browser model); this is the control markup, emitting the full
830
- * filter array up on every edit. Raw strings (no i18n) to match the surrounding
831
- * data-browser controls.
832
- */
833
- declare const DataFilters: ({
834
- columns,
835
- filters,
836
- onFiltersChange,
837
- onSearchChange,
838
- search
839
- }: {
841
+ * The data browser's filtering controls: the substring search box plus a stack
842
+ * of structured `column operator value` rows. All state is owned by the parent
843
+ * (the data-browser model); this is the control markup, emitting the full
844
+ * filter array up on every edit. Raw strings (no i18n) to match the surrounding
845
+ * data-browser controls.
846
+ */
847
+ declare const DataFilters: ({ columns, filters, onAskAi, onFiltersChange, onSearchChange, search }: {
840
848
  columns: ReadonlyArray<string>;
841
849
  filters: ReadonlyArray<EditableFilter>;
850
+ /** Ask the model for structured clauses. Omitted when no AI binding is available. */
851
+ onAskAi?: (prompt: string) => void;
842
852
  onFiltersChange: (filters: EditableFilter[]) => void;
843
853
  onSearchChange: (event: ChangeEvent<HTMLInputElement>) => void;
844
854
  search: string;
845
855
  }) => ReactElement;
846
856
  interface GlobalDataBrowserProps {
847
857
  /**
848
- * Table to open automatically on mount (and whenever it changes). Used by the
849
- * Table editor when a `v.id` reference in a shard row points at a `.global()`
850
- * table: clicking it switches to the global tier and lands here with that table
851
- * pre-selected. Each distinct value is applied once, so the operator can still
852
- * navigate away afterwards.
853
- */
858
+ * Table to open automatically on mount (and whenever it changes). Used by the
859
+ * Table editor when a `v.id` reference in a shard row points at a `.global()`
860
+ * table: clicking it switches to the global tier and lands here with that table
861
+ * pre-selected. Each distinct value is applied once, so the operator can still
862
+ * navigate away afterwards.
863
+ */
854
864
  readonly initialTable?: string;
855
865
  /**
856
- * Called whenever the open table changes, so the host can mirror it to the URL
857
- * (the Table editor pushes `?table=…`). Omitted in standalone use.
858
- */
866
+ * Called whenever the open table changes, so the host can mirror it to the URL
867
+ * (the Table editor pushes `?table=…`). Omitted in standalone use.
868
+ */
859
869
  readonly onSelectTable?: (table: string) => void;
860
870
  /** Rows requested per page. Clamped server-side to `[1, 500]`. */
861
871
  readonly pageSize?: number;
862
872
  /**
863
- * The schema/source selector rendered at the top of the table-list sidebar —
864
- * the Table editor's `schema public ▾` switch. Supplied when this browser is
865
- * composed into the Table editor; omitted when it's used alone.
866
- */
873
+ * The schema/source selector rendered at the top of the table-list sidebar —
874
+ * the Table editor's `schema public ▾` switch. Supplied when this browser is
875
+ * composed into the Table editor; omitted when it's used alone.
876
+ */
867
877
  readonly schemaSwitch?: ReactNode;
868
878
  }
869
879
  /**
870
- * Read-only browser for `.global()` (D1-backed) tables. Twin of `DataBrowser`,
871
- * but not shard-scoped: it lists tables via `listGlobalTables()` and pages rows
872
- * via `readGlobalTablePage()`. Laid out like Supabase's Table Editor — a left
873
- * table sidebar + a bordered grid with a paginated footer — and gated by the
874
- * server's `LUNORA_ADMIN_TOKEN`.
875
- */
876
- declare const GlobalDataBrowser: ({
877
- initialTable,
878
- onSelectTable,
879
- pageSize: initialPageSize,
880
- schemaSwitch
881
- }?: GlobalDataBrowserProps) => ReactElement;
880
+ * Read-only browser for `.global()` (D1-backed) tables. Twin of `DataBrowser`,
881
+ * but not shard-scoped: it lists tables via `listGlobalTables()` and pages rows
882
+ * via `readGlobalTablePage()`. Laid out like Supabase's Table Editor — a left
883
+ * table sidebar + a bordered grid with a paginated footer — and gated by the
884
+ * server's `LUNORA_ADMIN_TOKEN`.
885
+ */
886
+ declare const GlobalDataBrowser: ({ initialTable, onSelectTable, pageSize: initialPageSize, schemaSwitch }?: GlobalDataBrowserProps) => ReactElement;
882
887
  interface TableEditorProps {
883
888
  /**
884
- * Allow editing the shard-local tables (insert/edit/delete). Forwarded to the
885
- * shard {@link DataBrowser}; the global D1 browser is always read-only. Off by
886
- * default — see {@link DataBrowser}.
887
- */
889
+ * Allow editing the shard-local tables (insert/edit/delete). Forwarded to the
890
+ * shard {@link DataBrowser}; the global D1 browser is always read-only. Off by
891
+ * default — see {@link DataBrowser}.
892
+ */
888
893
  readonly editable?: boolean;
889
894
  /** Shard key the shard browser targets on first load. Defaults to the root shard. */
890
895
  readonly initialShardKey?: string;
891
896
  }
892
897
  /**
893
- * The Table editor: browses your application's tables across both storage tiers
894
- * from one section. A schema switch in the sidebar header (Supabase's
895
- * `schema public ▾`) toggles between the per-shard SQLite browser
896
- * (`.shardBy(...)`, editable when the host opts in) and the read-only global D1
897
- * browser (`.global()`) — folding what used to be a separate "Global Tables" tab
898
- * into a single editor (`STUDIO-REDESIGN-PLAN.md` §2).
899
- *
900
- * The active tier and open table live in the URL search params (`?schema=global`,
901
- * `?table=…`) rather than component state, so every selection is a real, shareable
902
- * URL and browser back/forward moves between tables and tiers. The browsers push on
903
- * selection and re-open whatever the URL names.
904
- */
905
- declare const TableEditor: ({
906
- editable,
907
- initialShardKey
908
- }: TableEditorProps) => ReactElement;
898
+ * The Table editor: browses your application's tables across both storage tiers
899
+ * from one section. A schema switch in the sidebar header (Supabase's
900
+ * `schema public ▾`) toggles between the per-shard SQLite browser
901
+ * (`.shardBy(...)`, editable when the host opts in) and the read-only global D1
902
+ * browser (`.global()`) — folding what used to be a separate "Global Tables" tab
903
+ * into a single editor (`STUDIO-REDESIGN-PLAN.md` §2).
904
+ *
905
+ * The active tier and open table live in the URL search params (`?schema=global`,
906
+ * `?table=…`) rather than component state, so every selection is a real, shareable
907
+ * URL and browser back/forward moves between tables and tiers. The browsers push on
908
+ * selection and re-open whatever the URL names.
909
+ */
910
+ declare const TableEditor: ({ editable, initialShardKey }: TableEditorProps) => ReactElement;
909
911
  interface ExportImportPanelProps {
910
912
  /** Shard key the panel targets. Defaults to the root shard. */
911
913
  readonly initialShardKey?: string;
912
914
  }
913
915
  /**
914
- * Snapshot and restore a single shard's data as NDJSON.
915
- *
916
- * "Export" reads every shard-local row via `__lunora_admin__:exportShard` and
917
- * renders it as NDJSON for download/copy. "Import" parses NDJSON the operator
918
- * pastes in and replays it through `__lunora_admin__:importShard`, reporting
919
- * inserted counts, id conflicts and per-row errors. Globally-scoped (`.global()`)
920
- * tables live in D1 and are intentionally out of scope here.
921
- *
922
- * Both calls travel over the {@link useLunora} client transport and are gated by
923
- * the server's `LUNORA_ADMIN_TOKEN`.
924
- */
925
- declare const ExportImportPanel: ({
926
- initialShardKey
927
- }: ExportImportPanelProps) => ReactElement;
916
+ * Snapshot and restore a single shard's data as NDJSON.
917
+ *
918
+ * "Export" reads every shard-local row via `__lunora_admin__:exportShard` and
919
+ * renders it as NDJSON for download/copy. "Import" parses NDJSON the operator
920
+ * pastes in and replays it through `__lunora_admin__:importShard`, reporting
921
+ * inserted counts, id conflicts and per-row errors. Globally-scoped (`.global()`)
922
+ * tables live in D1 and are intentionally out of scope here.
923
+ *
924
+ * Both calls travel over the {@link useLunora} client transport and are gated by
925
+ * the server's `LUNORA_ADMIN_TOKEN`.
926
+ */
927
+ declare const ExportImportPanel: ({ initialShardKey }: ExportImportPanelProps) => ReactElement;
928
928
  interface MigrationsPanelProps {
929
929
  /** Shard key the panel targets. Defaults to the root shard. */
930
930
  readonly initialShardKey?: string;
931
931
  }
932
932
  /**
933
- * Inspect and drive data migrations on a single shard.
934
- *
935
- * Reads the persisted run-state via the `__lunora_admin__:migrationStatus` RPC
936
- * and lets an operator kick off a migration by id (`__lunora_admin__:runMigration`)
937
- * with a direction, an optional batch cap and a dry-run toggle. Both calls
938
- * travel over the ordinary {@link useLunora} client transport and are gated by
939
- * the server's `LUNORA_ADMIN_TOKEN` — this component issues no credentials of
940
- * its own.
941
- */
942
- declare const MigrationsPanel: ({
943
- initialShardKey
944
- }: MigrationsPanelProps) => ReactElement;
933
+ * Inspect and drive data migrations on a single shard.
934
+ *
935
+ * Reads the persisted run-state via the `__lunora_admin__:migrationStatus` RPC
936
+ * and lets an operator kick off a migration by id (`__lunora_admin__:runMigration`)
937
+ * with a direction, an optional batch cap and a dry-run toggle. Both calls
938
+ * travel over the ordinary {@link useLunora} client transport and are gated by
939
+ * the server's `LUNORA_ADMIN_TOKEN` — this component issues no credentials of
940
+ * its own.
941
+ */
942
+ declare const MigrationsPanel: ({ initialShardKey }: MigrationsPanelProps) => ReactElement;
945
943
  interface PitrPanelProps {
946
944
  /** Shard key the PITR ops target. Defaults to the root shard. */
947
945
  readonly initialShardKey?: string;
948
946
  }
949
947
  /**
950
- * Native Durable-Object point-in-time recovery for one shard — the **Time
951
- * Travel** view.
952
- *
953
- * Reads the shard's current bookmark, previews the bookmark nearest a chosen
954
- * time, and (behind a confirm step) restores the shard to a time or an explicit
955
- * bookmark via the `__lunora_admin__:pitrRestore` RPC, surfacing the returned
956
- * undo bookmark so the restore can be reversed. All ops run over the
957
- * {@link useLunora} client and are gated by the server's `LUNORA_ADMIN_TOKEN`.
958
- *
959
- * In-place recovery covers the last 30 days; for older or off-platform recovery
960
- * use the snapshot tier (`lunora backup` / the backup registry item).
961
- */
962
- declare const PitrPanel: ({
963
- initialShardKey
964
- }: PitrPanelProps) => ReactElement;
948
+ * Native Durable-Object point-in-time recovery for one shard — the **Time
949
+ * Travel** view.
950
+ *
951
+ * Reads the shard's current bookmark, previews the bookmark nearest a chosen
952
+ * time, and (behind a confirm step) restores the shard to a time or an explicit
953
+ * bookmark via the `__lunora_admin__:pitrRestore` RPC, surfacing the returned
954
+ * undo bookmark so the restore can be reversed. All ops run over the
955
+ * {@link useLunora} client and are gated by the server's `LUNORA_ADMIN_TOKEN`.
956
+ *
957
+ * In-place recovery covers the last 30 days; for older or off-platform recovery
958
+ * use the snapshot tier (`lunora backup` / the backup registry item).
959
+ */
960
+ declare const PitrPanel: ({ initialShardKey }: PitrPanelProps) => ReactElement;
965
961
  interface FunctionRunnerProps {
966
962
  /**
967
- * Functions to expose. When omitted, the runner auto-discovers them via the
968
- * client's `listFunctions()` (the admin-gated `/_lunora/admin/functions`
969
- * endpoint), so it works with no wiring when the worker is built with a
970
- * `functions` registry. Supply the list to override discovery.
971
- */
963
+ * Functions to expose. When omitted, the runner auto-discovers them via the
964
+ * client's `listFunctions()` (the admin-gated `/_lunora/admin/functions`
965
+ * endpoint), so it works with no wiring when the worker is built with a
966
+ * `functions` registry. Supply the list to override discovery.
967
+ */
972
968
  readonly functions?: FunctionDescriptor[];
973
969
  /**
974
- * Expose the "Run as identity" control — execute the selected function AS a
975
- * chosen authenticated user so an operator can test auth + RLS behavior.
976
- * Security-sensitive: the run is forwarded over the admin-gated
977
- * `__lunora_admin__:runAs` RPC, which forges the per-request identity. The
978
- * host sets this only on a trusted loopback-dev gate (the `Studio` component's
979
- * `runAsIdentity` prop); off by default, the runner always runs with the
980
- * caller's own (admin) identity.
981
- */
970
+ * Expose the "Run as identity" control — execute the selected function AS a
971
+ * chosen authenticated user so an operator can test auth + RLS behavior.
972
+ * Security-sensitive: the run is forwarded over the admin-gated
973
+ * `__lunora_admin__:runAs` RPC, which forges the per-request identity. The
974
+ * host sets this only on a trusted loopback-dev gate (the `Studio` component's
975
+ * `runAsIdentity` prop); off by default, the runner always runs with the
976
+ * caller's own (admin) identity.
977
+ */
982
978
  readonly runAsIdentity?: boolean;
983
979
  }
984
980
  /**
985
- * Interactive runner for the registered functions: pick one, edit its JSON
986
- * arguments, optionally target a shard, then invoke it against the live
987
- * {@link useLunora} client and inspect the result or error.
988
- *
989
- * By default the function list is auto-discovered from the worker's
990
- * `/_lunora/admin/functions` endpoint; pass an explicit `functions` array to
991
- * skip discovery (a query/mutation/action's `kind` is compile-time-only, so it
992
- * must be named).
993
- */
994
- declare const FunctionRunner: ({
995
- functions: functionsProp,
996
- runAsIdentity
997
- }?: FunctionRunnerProps) => ReactElement;
981
+ * Interactive runner for the registered functions: pick one, edit its JSON
982
+ * arguments, optionally target a shard, then invoke it against the live
983
+ * {@link useLunora} client and inspect the result or error.
984
+ *
985
+ * By default the function list is auto-discovered from the worker's
986
+ * `/_lunora/admin/functions` endpoint; pass an explicit `functions` array to
987
+ * skip discovery (a query/mutation/action's `kind` is compile-time-only, so it
988
+ * must be named).
989
+ */
990
+ declare const FunctionRunner: ({ functions: functionsProp, runAsIdentity }?: FunctionRunnerProps) => ReactElement;
998
991
  interface FunctionStatsPanelProps {
999
992
  /** Descriptors from codegen, used to annotate each row with the function's `kind`. */
1000
993
  readonly functions?: FunctionDescriptor[];
@@ -1002,127 +995,166 @@ interface FunctionStatsPanelProps {
1002
995
  readonly initialShardKey?: string;
1003
996
  }
1004
997
  /**
1005
- * Per-function execution metrics for one shard: call count, error count/rate,
1006
- * mean and slowest handler latency, last-run time, and the most recent error
1007
- * message. Reads via the `__lunora_admin__:getFunctionStats` RPC over the
1008
- * {@link useLunora} client; gated by the server's `LUNORA_ADMIN_TOKEN`.
1009
- *
1010
- * Counters are per-DO-instance and reset on hibernation/restart — this is a
1011
- * "since this instance woke" readout, mirroring the metrics panel. The panel is
1012
- * always live: a subscription opens once the first seed commits a shard and
1013
- * re-pushes on every server write-flush so the table updates as mutations land.
1014
- */
1015
- declare const FunctionStatsPanel: ({
1016
- functions,
1017
- initialShardKey
1018
- }: FunctionStatsPanelProps) => ReactElement;
998
+ * Per-function execution metrics for one shard: call count, error count/rate,
999
+ * mean and slowest handler latency, last-run time, and the most recent error
1000
+ * message. Reads via the `__lunora_admin__:getFunctionStats` RPC through
1001
+ * `useAdminQuery`; gated by the server's `LUNORA_ADMIN_TOKEN`.
1002
+ *
1003
+ * Counters are per-DO-instance and reset on hibernation/restart — this is a
1004
+ * "since this instance woke" readout, mirroring the metrics panel. The panel is
1005
+ * always live: `useAdminQuery`'s `live` subscription re-pushes on every server
1006
+ * write-flush so the table updates as mutations land.
1007
+ */
1008
+ declare const FunctionStatsPanel: ({ functions, initialShardKey }: FunctionStatsPanelProps) => ReactElement;
1009
+ /** Which of the two endpoints a probe targets. */
1010
+ type ProbeKind = "live" | "ready";
1011
+ /** The result of one probe fetch — the HTTP status, the parsed body (or `null`), and any transport error. */
1012
+ interface ProbeSnapshot {
1013
+ /** The parsed health body, or `null` when the response wasn't JSON (e.g. an auth-gate rejection). */
1014
+ body: HealthBody | null;
1015
+ /** A transport/gate error message (network failure, or a non-JSON body), else `undefined`. */
1016
+ error?: string;
1017
+ /** Whether the HTTP status was 2xx. */
1018
+ ok: boolean;
1019
+ /** The HTTP status code (`0` when the request never completed). */
1020
+ status: number;
1021
+ }
1022
+ /** Fetch one probe. Injected in tests; the default (see {@link useDefaultProbe}) hits the live deployment. */
1023
+ type DeploymentHealthProbe = (kind: ProbeKind) => Promise<ProbeSnapshot>;
1024
+ interface DeploymentHealthPanelProps {
1025
+ /**
1026
+ * Injectable probe, used by tests to feed a canned response. When omitted the
1027
+ * panel fetches the connected deployment's `/_lunora/health` (and
1028
+ * `/health/ready`) directly — this is a plain HTTP route, not an admin RPC, so
1029
+ * it doesn't ride the `useAdminQuery` machinery. The admin bearer (when the
1030
+ * studio holds one) is attached so an `"admin"`-posture endpoint still answers.
1031
+ */
1032
+ readonly probe?: DeploymentHealthProbe;
1033
+ }
1034
+ /**
1035
+ * Deployment-health panel: renders the live liveness/readiness verdict and the
1036
+ * per-binding/subsystem checks from the deployment's `/_lunora/health` and
1037
+ * `/_lunora/health/ready` endpoints (plan 177). This is the operator's at-a-glance
1038
+ * "are the bindings up?" view — distinct from the app-level SLO panel (error
1039
+ * rate, auth failures, scheduler backlog) that shares the "Health" name.
1040
+ *
1041
+ * The endpoints are plain HTTP routes (not admin RPCs), so the panel fetches them
1042
+ * directly rather than through `useAdminQuery`. The body is deliberately
1043
+ * secret-free — only a check name, an up/down status, whether it's critical, and
1044
+ * a runtime-authored message (present only in the `"admin"` posture) — so nothing
1045
+ * rendered here can leak an env value, connection string, or binding secret.
1046
+ */
1047
+ declare const DeploymentHealthPanel: ({ probe }: DeploymentHealthPanelProps) => ReactElement;
1019
1048
  interface HomePanelProps {
1020
1049
  /** Shard key the health digest targets on first load. Defaults to the root shard. */
1021
1050
  readonly initialShardKey?: string;
1022
1051
  }
1023
1052
  /**
1024
- * The Home overview — the studio's landing page. It pulls the root shard's
1025
- * health snapshot, the function stats, the two advisor signals, the live
1026
- * subscription pulse, and the recent admin audit log, then presents an
1027
- * at-a-glance digest: a KPI row (requests, errors, latency, database size), a
1028
- * busiest-functions leaderboard, live connections, recent activity, the advisor
1029
- * summary, and connect/quick-link shortcuts. Every read is best-effort — a
1030
- * missing admin token or a cold instance leaves a card showing a muted
1031
- * placeholder rather than blanking the page.
1032
- */
1033
- declare const HomePanel: ({
1034
- initialShardKey
1035
- }: HomePanelProps) => ReactElement;
1053
+ * The Home overview — the studio's landing page. It pulls the root shard's
1054
+ * health snapshot, the function stats, the two advisor signals, the live
1055
+ * subscription pulse, and the recent admin audit log, then presents an
1056
+ * at-a-glance digest: a KPI row (requests, errors, latency, database size), a
1057
+ * busiest-functions leaderboard, live connections, recent activity, the advisor
1058
+ * summary, and connect/quick-link shortcuts. Every read is best-effort — a
1059
+ * missing admin token or a cold instance leaves a card showing a muted
1060
+ * placeholder rather than blanking the page.
1061
+ */
1062
+ declare const HomePanel: ({ initialShardKey }: HomePanelProps) => ReactElement;
1036
1063
  interface AuditPanelProps {
1037
1064
  /** Shard key the panel reports on. Defaults to the root shard. */
1038
1065
  readonly initialShardKey?: string;
1039
1066
  }
1040
1067
  /**
1041
- * Durable audit log for one shard: the admin state-changing operations
1042
- * (`writeRow`, `runMigration`, `importShard`, `applyCdc`) recorded to the
1043
- * reserved `__lunora_audit__` table, newest first. Reads via the
1044
- * `__lunora_admin__:getAuditLog` RPC over the {@link useLunora} client; gated by
1045
- * the server's `LUNORA_ADMIN_TOKEN`.
1046
- *
1047
- * Unlike the logs panel (an in-memory ring that resets on hibernation), the
1048
- * audit log is durable and bounded only by a retention cap. The panel is always
1049
- * live: a subscription opens once the first seed commits a shard and re-pushes on
1050
- * every server write-flush so new entries appear without a manual refresh. The op
1051
- * filter is client-side over the already-fetched buffer — it never triggers a refetch.
1052
- */
1053
- declare const AuditPanel: ({
1054
- initialShardKey
1055
- }: AuditPanelProps) => ReactElement;
1068
+ * Durable audit log for one shard: the admin state-changing operations
1069
+ * (`writeRow`, `runMigration`, `importShard`, `applyCdc`) recorded to the
1070
+ * reserved `__lunora_audit__` table, newest first. Reads via the
1071
+ * `__lunora_admin__:getAuditLog` RPC through `useAdminQuery`; gated by the
1072
+ * server's `LUNORA_ADMIN_TOKEN`.
1073
+ *
1074
+ * Unlike the logs panel (an in-memory ring that resets on hibernation), the
1075
+ * audit log is durable and bounded only by a retention cap. The panel is always
1076
+ * live: `useAdminQuery`'s `live` subscription re-pushes on every server
1077
+ * write-flush so new entries appear without a manual refresh. The op filter is
1078
+ * client-side over the already-fetched buffer — it never triggers a refetch.
1079
+ */
1080
+ declare const AuditPanel: ({ initialShardKey }: AuditPanelProps) => ReactElement;
1056
1081
  interface LogsPanelProps {
1057
1082
  /** Shard key the panel reports on. Defaults to the root shard. */
1058
1083
  readonly initialShardKey?: string;
1059
1084
  }
1060
- /** A relative time-range window over the Errors buffer, or `all` (no bound). */
1061
- /**
1062
- * The shard's log feed, newest first, over the gated `__lunora_admin__:*` RPC
1063
- * layer (gated by the server's `LUNORA_ADMIN_TOKEN`). Two views.
1064
- *
1065
- * The Requests view (`getRequestLog`) is the durable, structured per-request log
1066
- * `@lunora/do` writes once per `/rpc` dispatch (PLAN3 §1.1): function path,
1067
- * shard, acting user/identity, redacted args, outcome, duration, and tables
1068
- * read/written. It survives hibernation/restart (bounded retention) and is
1069
- * filtered/correlated SERVER-side on function-path prefix, userId, shard,
1070
- * outcome, and a touched table.
1071
- *
1072
- * The Errors view (`getLogs`) is the legacy in-memory RPC-error buffer, which
1073
- * only captures dispatch failures (path + message) and resets on hibernation
1074
- * kept for the "what's failing on this instance right now" view, filtered
1075
- * client-side.
1076
- *
1077
- * For the raw, un-attributed request firehose (which Lunora deliberately does
1078
- * NOT re-stream), a deep-link to Cloudflare Workers Observability is provided.
1079
- */
1080
- declare const LogsPanel: ({
1081
- initialShardKey
1082
- }: LogsPanelProps) => ReactElement;
1085
+ /**
1086
+ * The shard's log feed, newest first, over the gated `__lunora_admin__:*` RPC
1087
+ * layer (gated by the server's `LUNORA_ADMIN_TOKEN`). Two views.
1088
+ *
1089
+ * The Requests view (`getRequestLog`) is the durable, structured per-request log
1090
+ * `@lunora/do` writes once per `/rpc` dispatch (PLAN3 §1.1): function path,
1091
+ * shard, acting user/identity, redacted args, outcome, duration, and tables
1092
+ * read/written. It survives hibernation/restart (bounded retention) and is
1093
+ * filtered/correlated SERVER-side on function-path prefix, userId, shard,
1094
+ * outcome, and a touched table.
1095
+ *
1096
+ * The Errors view (`getLogs`) is the legacy in-memory RPC-error buffer, which
1097
+ * only captures dispatch failures (path + message) and resets on hibernation
1098
+ * kept for the "what's failing on this instance right now" view, filtered
1099
+ * client-side.
1100
+ *
1101
+ * For the raw, un-attributed request firehose (which Lunora deliberately does
1102
+ * NOT re-stream), a deep-link to Cloudflare Workers Observability is provided.
1103
+ */
1104
+ declare const LogsPanel: ({ initialShardKey }: LogsPanelProps) => ReactElement;
1083
1105
  interface MailPanelProps {
1084
1106
  /** Newest-N to load (default 100). */
1085
1107
  readonly limit?: number;
1086
1108
  }
1087
1109
  /**
1088
- * Dev mail catcher — a unified inbox of every email the app sent. `@lunora/mail`'s
1089
- * capture transport (wired in dev) intercepts each send and persists it to the
1090
- * root-shard mailbox instead of delivering, so verification / forgot-password and
1091
- * any app mail show up here with nothing leaving the machine. Reads the
1092
- * `__lunora_admin__:getCapturedMail` RPC over the {@link useLunora} client;
1093
- * gated by the server's `LUNORA_ADMIN_TOKEN`.
1094
- *
1095
- * The inbox is a single root-shard table with no write-flush to subscribe to, so
1096
- * it polls on a fixed interval (paused while the tab is hidden) — new captured
1097
- * mail appears without a manual refresh. The HTML body is rendered in a fully
1098
- * sandboxed iframe (no script execution) so captured markup can't run in the studio.
1099
- */
1100
- declare const MailPanel: ({
1101
- limit
1102
- }: MailPanelProps) => ReactElement;
1110
+ * Dev mail catcher — a unified inbox of every email the app sent. `@lunora/mail`'s
1111
+ * capture transport (wired in dev) intercepts each send and persists it to the
1112
+ * root-shard mailbox instead of delivering, so verification / forgot-password and
1113
+ * any app mail show up here with nothing leaving the machine. Reads the
1114
+ * `__lunora_admin__:getCapturedMail` RPC over the {@link useLunora} client;
1115
+ * gated by the server's `LUNORA_ADMIN_TOKEN`.
1116
+ *
1117
+ * The inbox is a single root-shard table with no write-flush to subscribe to, so
1118
+ * it polls on a fixed interval (paused while the tab is hidden) — new captured
1119
+ * mail appears without a manual refresh. The HTML body is rendered in a fully
1120
+ * sandboxed iframe (no script execution) so captured markup can't run in the studio.
1121
+ */
1122
+ declare const MailPanel: ({ limit }: MailPanelProps) => ReactElement;
1123
+ /**
1124
+ * The Notifications inspector — the app's registered `@lunora/notify` push
1125
+ * devices, read through the gated `__lunora_admin__:listPushSubscriptions` admin
1126
+ * RPC (`useAdminQuery`; gated by the server's `LUNORA_ADMIN_TOKEN`). Each row is
1127
+ * one registered device: its delivery kind, target endpoint, owning user, last
1128
+ * register/send touch, and the last-send status + any delivery error.
1129
+ *
1130
+ * The subscription store is a WORKER option (built from `env` via
1131
+ * `defineNotify({ store })`), not shard state, so this is a one-shot read with a
1132
+ * manual Refresh — there is no DO write-flush to subscribe to. When the app wires
1133
+ * no `@lunora/notify` store (or none yet registered), the RPC returns an empty
1134
+ * device list and the panel shows an empty state rather than erroring.
1135
+ */
1136
+ declare const NotificationsPanel: () => ReactElement;
1103
1137
  interface HealthPanelProps {
1104
1138
  /** Shard key the metric/log reads target on first load. Defaults to the root shard. */
1105
1139
  readonly initialShardKey?: string;
1106
1140
  }
1107
1141
  /**
1108
- * App-level health & SLO overview. On top of the original single-shard snapshot
1109
- * (recent errors, request/error counts, shards seen) it composes the
1110
- * lunora-attributed SLO signals the studio can already reach — app error
1111
- * rate, auth-failure rate, scheduler backlog, and migration status — each with a
1112
- * status badge, plus durable request/error and auth sparklines, and a
1113
- * worst-first per-function error-rate list. None of this is CF's per-Worker
1114
- * charting: it is attributed to lunora functions, the auth flow, and the
1115
- * scheduler/migration subsystems.
1116
- *
1117
- * Every read is independent and best-effort (via `Promise.allSettled`): a
1118
- * missing `LUNORA_ADMIN_TOKEN`, an unconfigured scheduler, or a cold instance
1119
- * degrades that one tile to `—` without blanking the rest. The overview is always
1120
- * live: a root-shard `getMetrics` subscription drives a full cross-shard re-pull
1121
- * on every write-flush (coalesced so a burst yields at most one in-flight pull).
1122
- */
1123
- declare const HealthPanel: ({
1124
- initialShardKey
1125
- }: HealthPanelProps) => ReactElement;
1142
+ * App-level health & SLO overview. On top of the original single-shard snapshot
1143
+ * (recent errors, request/error counts, shards seen) it composes the
1144
+ * lunora-attributed SLO signals the studio can already reach — app error
1145
+ * rate, auth-failure rate, scheduler backlog, and migration status — each with a
1146
+ * status badge, plus durable request/error and auth sparklines, and a
1147
+ * worst-first per-function error-rate list. None of this is CF's per-Worker
1148
+ * charting: it is attributed to lunora functions, the auth flow, and the
1149
+ * scheduler/migration subsystems.
1150
+ *
1151
+ * Every read is independent and best-effort (via `Promise.allSettled`): a
1152
+ * missing `LUNORA_ADMIN_TOKEN`, an unconfigured scheduler, or a cold instance
1153
+ * degrades that one tile to `—` without blanking the rest. The overview is always
1154
+ * live: a root-shard `getMetrics` subscription drives a full cross-shard re-pull
1155
+ * on every write-flush (coalesced so a burst yields at most one in-flight pull).
1156
+ */
1157
+ declare const HealthPanel: ({ initialShardKey }: HealthPanelProps) => ReactElement;
1126
1158
  /** One shard's metrics fetch outcome: the snapshot, or the error that shard returned. */
1127
1159
  interface ShardMetricsResult {
1128
1160
  error: null | string;
@@ -1143,120 +1175,102 @@ interface AggregateMetrics {
1143
1175
  totalRequests: number;
1144
1176
  }
1145
1177
  /**
1146
- * Roll up per-shard metrics into repo-wide totals. Errors-per-shard are kept as
1147
- * `failed` (a shard that's down is data, not a hard failure), and counters are
1148
- * summed only over reachable shards. The combined cache hit-rate weights by each
1149
- * shard's hits+misses so a busy shard dominates a quiet one.
1150
- */
1178
+ * Roll up per-shard metrics into repo-wide totals. Errors-per-shard are kept as
1179
+ * `failed` (a shard that's down is data, not a hard failure), and counters are
1180
+ * summed only over reachable shards. The combined cache hit-rate weights by each
1181
+ * shard's hits+misses so a busy shard dominates a quiet one.
1182
+ */
1151
1183
  declare const aggregateMetrics: (results: ReadonlyArray<ShardMetricsResult>) => AggregateMetrics;
1152
1184
  /**
1153
- * The shard keys to aggregate over. Durable Objects aren't enumerable, so this
1154
- * is the union of the root shard (`""`), an explicit current shard, and the
1155
- * recently-visited shards — de-duplicated, order-stable (root first). It's a
1156
- * best-effort "shards we know about", not every shard that exists.
1157
- */
1185
+ * The shard keys to aggregate over. Durable Objects aren't enumerable, so this
1186
+ * is the union of the root shard (`""`), an explicit current shard, and the
1187
+ * recently-visited shards — de-duplicated, order-stable (root first). It's a
1188
+ * best-effort "shards we know about", not every shard that exists.
1189
+ */
1158
1190
  declare const shardsToAggregate: (current: string, recents: ReadonlyArray<string>) => string[];
1159
1191
  interface MetricsPanelProps {
1160
1192
  /** Shard key the panel reports on. Defaults to the root shard. */
1161
1193
  readonly initialShardKey?: string;
1162
1194
  }
1163
1195
  /**
1164
- * Health snapshot for a single shard: request / error counts (since the DO last
1165
- * woke), its live SQLite size, and reactive-cache hit/miss stats when a cache is
1166
- * configured. Reads via the `__lunora_admin__:getMetrics` RPC over the
1167
- * {@link useLunora} client; gated by the server's `LUNORA_ADMIN_TOKEN`.
1168
- *
1169
- * Counters are per-DO-instance and reset on hibernation/restart — this is a
1170
- * "since this instance woke" readout, not a durable time series.
1171
- *
1172
- * The panel is always live: a `getMetrics` WebSocket subscription opens once the
1173
- * first one-shot seed commits a shard and re-pushes on every server write-flush,
1174
- * accumulating a client-side, in-memory series of requests-per-sample (the delta
1175
- * of `requests` between consecutive samples), rendered as an inline-SVG
1176
- * sparkline. The series is capped at {@link MAX_HISTORY} points and is lost on
1177
- * remount.
1178
- */
1179
- declare const MetricsPanel: ({
1180
- initialShardKey
1181
- }: MetricsPanelProps) => ReactElement;
1196
+ * Health snapshot for a single shard: request / error counts (since the DO last
1197
+ * woke), its live SQLite size, and reactive-cache hit/miss stats when a cache is
1198
+ * configured. Reads via the `__lunora_admin__:getMetrics` RPC over the
1199
+ * {@link useLunora} client; gated by the server's `LUNORA_ADMIN_TOKEN`.
1200
+ *
1201
+ * Counters are per-DO-instance and reset on hibernation/restart — this is a
1202
+ * "since this instance woke" readout, not a durable time series.
1203
+ *
1204
+ * The panel is always live: a `getMetrics` WebSocket subscription opens once the
1205
+ * first one-shot seed commits a shard and re-pushes on every server write-flush,
1206
+ * accumulating a client-side, in-memory series of requests-per-sample (the delta
1207
+ * of `requests` between consecutive samples), rendered as an inline-SVG
1208
+ * sparkline. The series is capped at {@link MAX_HISTORY} points and is lost on
1209
+ * remount.
1210
+ */
1211
+ declare const MetricsPanel: ({ initialShardKey }: MetricsPanelProps) => ReactElement;
1182
1212
  interface SchemaViewerProps {
1183
1213
  /** Shard key the viewer targets. Defaults to the root shard. */
1184
1214
  readonly initialShardKey?: string;
1185
1215
  /**
1186
- * Table to auto-expand once the shard's tables load. Set by the Insights
1187
- * "add the index" deep-link (`/schema?table=&lt;name>`) so the operator lands
1188
- * directly on the scanned table's index list instead of hunting for it.
1189
- * Re-applied whenever the value changes, so following the link a second time
1190
- * (same tab already open) re-expands the target.
1191
- */
1216
+ * Table to auto-expand once the shard's tables load. Set by the Insights
1217
+ * "add the index" deep-link (`/schema?table=&lt;name>`) so the operator lands
1218
+ * directly on the scanned table's index list instead of hunting for it.
1219
+ * Re-applied whenever the value changes, so following the link a second time
1220
+ * (same tab already open) re-expands the target.
1221
+ */
1192
1222
  readonly initialTable?: string;
1193
1223
  /**
1194
- * Enable the visual schema-editor overlay (add table / column / index). Off by
1195
- * default so the diagram stays read-only. Set only by the loopback dev hosts
1196
- * (see `StudioProps.schemaEditable`); when true, the authoring overlay
1197
- * (plan 024 Item 4) renders above the table lists and applies additive edits
1198
- * through the dev host's local schema-edit endpoint.
1199
- */
1224
+ * Enable the visual schema-editor overlay (add table / column / index). Off by
1225
+ * default so the diagram stays read-only. Set only by the loopback dev hosts
1226
+ * (see `StudioProps.schemaEditable`); when true, the authoring overlay
1227
+ * (plan 024 Item 4) renders above the table lists and applies additive edits
1228
+ * through the dev host's local schema-edit endpoint.
1229
+ */
1200
1230
  readonly schemaEditable?: boolean;
1201
1231
  }
1202
1232
  /**
1203
- * Schema overview that shows both storage tiers so the distinction is never a
1204
- * mystery. The shard section lists every user table in the selected Durable
1205
- * Object with row counts, and probes a table's columns on expand via a one-row
1206
- * `__lunora_admin__:readTablePage` (`PRAGMA table_info`). The global section
1207
- * lists every `.global()` table — including the auth tables (`user`, `session`,
1208
- * …) — via the client's `listGlobalTables()`, reading columns from a one-row
1209
- * `readGlobalTablePage` on expand.
1210
- *
1211
- * Two presentations: a **Table list** (searchable, expandable cards per tier)
1212
- * and a **Graph** — a single React Flow relationship diagram showing both tiers
1213
- * on one canvas, with cross-tier FK edges and its own in-canvas find-table box,
1214
- * tier filter, and legend.
1215
- *
1216
- * Read-only and gated by the server's `LUNORA_ADMIN_TOKEN`, like the rest of the
1217
- * studio's admin surface. Global discovery is best-effort: if D1 isn't
1218
- * configured the global section simply reports it, and the shard section still
1219
- * works.
1220
- */
1221
- declare const SchemaViewer: ({
1222
- initialShardKey,
1223
- initialTable,
1224
- schemaEditable
1225
- }: SchemaViewerProps) => ReactElement;
1233
+ * Schema overview that shows both storage tiers so the distinction is never a
1234
+ * mystery. The shard section lists every user table in the selected Durable
1235
+ * Object with row counts, and probes a table's columns on expand via a one-row
1236
+ * `__lunora_admin__:readTablePage` (`PRAGMA table_info`). The global section
1237
+ * lists every `.global()` table — including the auth tables (`user`, `session`,
1238
+ * …) — via the client's `listGlobalTables()`, reading columns from a one-row
1239
+ * `readGlobalTablePage` on expand.
1240
+ *
1241
+ * Two presentations: a **Table list** (searchable, expandable cards per tier)
1242
+ * and a **Graph** — a single React Flow relationship diagram showing both tiers
1243
+ * on one canvas, with cross-tier FK edges and its own in-canvas find-table box,
1244
+ * tier filter, and legend.
1245
+ *
1246
+ * Read-only and gated by the server's `LUNORA_ADMIN_TOKEN`, like the rest of the
1247
+ * studio's admin surface. Global discovery is best-effort: if D1 isn't
1248
+ * configured the global section simply reports it, and the shard section still
1249
+ * works.
1250
+ */
1251
+ declare const SchemaViewer: ({ initialShardKey, initialTable, schemaEditable }: SchemaViewerProps) => ReactElement;
1226
1252
  interface SettingsPanelProps {
1227
1253
  /** Shard key the settings read targets on first load. Defaults to the root shard. */
1228
1254
  readonly initialShardKey?: string;
1229
1255
  }
1230
1256
  /**
1231
- * Read-only **Settings** view of the deployment's config: the Worker vars,
1232
- * secrets, and bindings exposed via `env`, plus best-effort deploy metadata.
1233
- * Reads the `__lunora_admin__:getSettings` RPC over the {@link useLunora} client
1234
- * (gated by the server's `LUNORA_ADMIN_TOKEN`).
1235
- *
1236
- * Strictly view-only: secret values are masked server-side and never returned
1237
- * raw, and there is no editing here. The infrastructure plane lives in
1238
- * Cloudflare/wrangler — a deep-link to the Cloudflare dashboard is provided so
1239
- * you can edit there. Deployment config is static at runtime (it only changes on
1240
- * redeploy), so this loads once on mount — there is no live channel or poll.
1241
- */
1242
- declare const SettingsPanel: ({
1243
- initialShardKey
1244
- }: SettingsPanelProps) => ReactElement;
1257
+ * Read-only **Settings** view of the deployment's config: the Worker vars,
1258
+ * secrets, and bindings exposed via `env`, plus best-effort deploy metadata.
1259
+ * Reads the `__lunora_admin__:getSettings` RPC via {@link useAdminQuery} (gated
1260
+ * by the server's `LUNORA_ADMIN_TOKEN`).
1261
+ *
1262
+ * Strictly view-only: secret values are masked server-side and never returned
1263
+ * raw, and there is no editing here. The infrastructure plane lives in
1264
+ * Cloudflare/wrangler — a deep-link to the Cloudflare dashboard is provided so
1265
+ * you can edit there. Deployment config is static at runtime (it only changes on
1266
+ * redeploy), so this loads once on mount — there is no live channel or poll.
1267
+ */
1268
+ declare const SettingsPanel: ({ initialShardKey }: SettingsPanelProps) => ReactElement;
1245
1269
  interface SqlEditorPanelProps {
1246
1270
  /** Shard key the query runs against on first load. Defaults to the root shard. */
1247
1271
  readonly initialShardKey?: string;
1248
1272
  }
1249
- /**
1250
- * A full-height, Supabase-style SQL editor: a left query sidebar (search + new,
1251
- * a browser-persisted PRIVATE list, and REFERENCE templates), a line-numbered
1252
- * editor pane, and a Results / Explain pane with a Run control + shard selector.
1253
- * Read-only — the `__lunora_admin__:runSql` RPC rejects everything but
1254
- * SELECT / WITH / EXPLAIN, so raw writes can't desync the doc-store's shadow
1255
- * tables (use the Data grid's inline edit for mutations).
1256
- */
1257
- declare const SqlEditorPanel: ({
1258
- initialShardKey
1259
- }: SqlEditorPanelProps) => ReactElement;
1273
+ declare const SqlEditorPanel: ({ initialShardKey }: SqlEditorPanelProps) => ReactElement;
1260
1274
  interface FileBrowserProps {
1261
1275
  /** Object-key prefix the browser filters by on first load. */
1262
1276
  readonly initialPrefix?: string;
@@ -1264,120 +1278,108 @@ interface FileBrowserProps {
1264
1278
  readonly pageSize?: number;
1265
1279
  }
1266
1280
  /**
1267
- * Browse — and mutate — objects in the storage (R2) bucket. Lists keys under an
1268
- * optional prefix via the client's `listStorageObjects`, which hits the worker's
1269
- * admin-gated `GET /_lunora/admin/storage` endpoint — so the worker must be built
1270
- * with a `storageList` function and `adminToken`. Paginates forward by cursor.
1271
- *
1272
- * Each row offers a "Copy URL" (signed/public URL via `signedStorageUrl`) and a
1273
- * confirm-gated "Delete" (`deleteStorageObject`); the toolbar offers an upload
1274
- * (`uploadStorageObject`) into the current prefix. Those write paths require the
1275
- * worker to be built with `storageSignedUrl` / `storageDelete` / `storageUpload`
1276
- * respectively — when absent, the worker responds with a clear `*_NOT_CONFIGURED`
1277
- * error that surfaces inline rather than crashing the panel.
1278
- *
1279
- * All state + behavior lives in {@link useFileBrowser}; this shell only wires the
1280
- * view-model into the toolbar, breadcrumbs, selection bar, list/gallery and the
1281
- * load-more / error / empty affordances.
1282
- */
1283
- declare const FileBrowser: ({
1284
- initialPrefix,
1285
- pageSize
1286
- }: FileBrowserProps) => ReactElement;
1281
+ * Browse — and mutate — objects in the storage (R2) bucket. Lists keys under an
1282
+ * optional prefix via the client's `listStorageObjects`, which hits the worker's
1283
+ * admin-gated `GET /_lunora/admin/storage` endpoint — so the worker must be built
1284
+ * with a `storageList` function and `adminToken`. Paginates forward by cursor.
1285
+ *
1286
+ * Each row offers a "Copy URL" (signed/public URL via `signedStorageUrl`) and a
1287
+ * confirm-gated "Delete" (`deleteStorageObject`); the toolbar offers an upload
1288
+ * (`uploadStorageObject`) into the current prefix. Those write paths require the
1289
+ * worker to be built with `storageSignedUrl` / `storageDelete` / `storageUpload`
1290
+ * respectively — when absent, the worker responds with a clear `*_NOT_CONFIGURED`
1291
+ * error that surfaces inline rather than crashing the panel.
1292
+ *
1293
+ * All state + behavior lives in {@link useFileBrowser}; this shell only wires the
1294
+ * view-model into the toolbar, breadcrumbs, selection bar, list/gallery and the
1295
+ * load-more / error / empty affordances.
1296
+ */
1297
+ declare const FileBrowser: ({ initialPrefix, pageSize }: FileBrowserProps) => ReactElement;
1287
1298
  /** Default polling cadence for auto-refresh, in milliseconds. */
1288
1299
  declare const DEFAULT_AUTO_REFRESH_MS = 5e3;
1289
1300
  /**
1290
- * Call `onTick` on a fixed interval while `enabled`, for panels whose backend
1291
- * has no live subscription channel (the scheduler, R2, D1, the SessionDO — all
1292
- * HTTP-only). Polling is the honest "live" here: a timer-driven scheduler has no
1293
- * client-observable write event to push on, so the UI watches jobs count down
1294
- * and disappear by re-asking.
1295
- *
1296
- * Ticks are skipped while the tab is hidden (`document.hidden`) so a backgrounded
1297
- * studio doesn't keep hammering the worker. `onTick` is held in a ref so a
1298
- * fresh closure each render doesn't reset the interval; only `enabled`/`intervalMs`
1299
- * do. The interval is cleared on disable and unmount.
1300
- */
1301
+ * Call `onTick` on a fixed interval while `enabled`, for panels whose backend
1302
+ * has no live subscription channel (the scheduler, R2, D1, the SessionDO — all
1303
+ * HTTP-only). Polling is the honest "live" here: a timer-driven scheduler has no
1304
+ * client-observable write event to push on, so the UI watches jobs count down
1305
+ * and disappear by re-asking.
1306
+ *
1307
+ * Ticks are skipped while the tab is hidden (`document.hidden`) so a backgrounded
1308
+ * studio doesn't keep hammering the worker. `onTick` is held in a ref so a
1309
+ * fresh closure each render doesn't reset the interval; only `enabled`/`intervalMs`
1310
+ * do. The interval is cleared on disable and unmount.
1311
+ */
1301
1312
  declare const useAutoRefresh: (onTick: () => void, enabled: boolean, intervalMs?: number) => void;
1302
1313
  /**
1303
- * Debounced mirror of `value`: returns the latest value only after it has been
1304
- * stable for `delayMs`. Used so a per-keystroke search box drives at most one
1305
- * server round-trip per pause, instead of one request per character.
1306
- */
1314
+ * Debounced mirror of `value`: returns the latest value only after it has been
1315
+ * stable for `delayMs`. Used so a per-keystroke search box drives at most one
1316
+ * server round-trip per pause, instead of one request per character.
1317
+ */
1307
1318
  declare const useDebounced: <T>(value: T, delayMs?: number) => T;
1308
1319
  /**
1309
- * The registry of every English source string a call site may pass to `t(...)`.
1310
- *
1311
- * English is the source locale, so each id doubles as the rendered text: Lingui
1312
- * compiles an id verbatim when a catalog has no entry for it. This list is the
1313
- * single source of known strings — {@link MessageId} is derived from it and
1314
- * `TFunction` is typed against that union, so `t("Dat")` (or any string absent
1315
- * here) is a compile error rather than a silently-rendered typo.
1316
- *
1317
- * Add a string here the moment a new call site needs it. To translate, create a
1318
- * sibling catalog (for example `de.ts`) mapping each id to its translation and
1319
- * register it via `createStudioI18n(locale, { en: enMessages, de: deMessages })`.
1320
- */
1321
- declare const MESSAGE_IDS: readonly ["Lunora AI rules aren't installed.", "lets your coding agent use Lunora correctly.", "Dismiss", ", changed", "(no subject)", "(root)", "{count} active", "{count} calls", "{count} failed", "{total} total", "No subscriptions yet", "Payments", "Plan", "Provider", "Recent webhook events", "Renews", "State", "Subscriptions", "Synced customers, subscriptions, and webhook events.", "{count} messages", "{count} pending changes", "{count} running", "{name} ({rowCount})", "{rangeStart}-{rangeEnd} of {total}", "{rate} ({count} entries)", "{reachable} reachable", "{reachable} reachable, {failed} unreachable", "{status} — processed", "{title} failed", "Actions", "Actions have no React hook — call them through the client.", "Add a widget to chart a saved SQL query on this browser.", "Add index on {table}", "Add row", "Add widget", "admin token", "Aggregating…", "all", "All shards", "API", "API reference unavailable", "API resources", "API usage snippets", "API view", "Arguments", "Auth", "Auth failures", "Auth failures over time", "Cache hit rate", "Call this {kind} from your app.", "Cancel", "Cancel job?", "Cc", "changed", "Chart widgets backed by saved read-only SQL queries.", "Lunora surfaces slow functions, error spikes, and cache problems here.", "Clear", "Clear inbox", "Columns unavailable", "CLI", "Client", "collecting samples…", "Combined cache hit rate", "Commit", "Committing…", "Breadcrumb", "Confirm", "Connect", "Connect to Lunora Studio", "Connected", "Connecting…", "Enter your admin token to access the studio.", "From your worker's LUNORA_ADMIN_TOKEN — your project's .dev.vars in dev, or a deployment secret in production.", "Local", "Not connected", "content-type", "Copy", "Copy link", "Copy-paste snippets for calling your functions and tables.", "created", "Cron triggers", "Dashboards", "Data", "Data migrations you run against this shard will be tracked here.", "Data model", "Database", "Database size", "db size", "Delete", "Delete saved query {name}", "Delete?", "direction", "Direction", "Discard", "down", "Dry run", "Dry run: ", "Edit", "Edit widget", "email", "Email preview", "Email your app sends in dev is captured here — nothing is delivered.", "Email your app sent, captured in dev.", "Enter a migration id", "error", "Error rate", "errors", "Errors", "Errors over time", "expires", "Export", "PNG", "SVG", "Export / Import", "Exported {count} rows.", "Facets", "file:function", "Files", "Filter messages", "Filter tables", "Find table…", "Foreign key", "From", "function", "Function", "Function path", "Functions", "Functions by error rate", "Graph", "Headers", "Health", "Indexes", "Hide", "HTML", "id", "Idle", "Import", "Import (writes rows)?", "Inserted {inserted}, {conflicts} conflicts, {errors} errors.", "Interactive OpenAPI reference and copy-paste snippets for your functions.", "Invalid JSON args: {message}", "Invalid JSON: {message}", "Invalid NDJSON: {message}", "ip", "Jobs queued with runAfter / runAt will appear here.", "JSON", "key", "Key prefix", "key prefix (optional)", "Level filter", "line {line} ({table}): {message}", "List", "Live", "Live — changes stream in automatically", "Live unavailable", "Live unavailable: {liveError}", "Live: on", "Load", "Load more", "Load tables", "Logic", "Logs", "Mail", "Mask sensitive columns", "Metrics", "migration id", "Migration id", "Migrations", "Missing index", "name", "Next", "no", "No active sessions.", "no cache configured", "No captured email.", "No cron triggers.", "No function activity yet.", "No functions or tables to document yet.", "No global tables.", "No headers.", "No HTML body.", "No logs.", "No migrations have run on this shard.", "No objects.", "No recent errors.", "No scheduled jobs.", "No tables to graph.", "No tables match your filter.", "No text body.", "No users.", "No widgets yet", "Objects you upload to your R2 buckets will appear here.", "Observability", "of {pages}", "off", "Offline", "ok", "OK", "on", "Open {target} {id}", "Open in new tab", "Outcome filter", "Page", "Plain text", "Prefill", "Previous", "Primary key", "processed", "React", "Read and write this table through the typed data model.", "Recent errors", "Recent logs", "Recently visited shards — click to switch", "Refresh", "Reload tables", "Remove widget", "RLS Policies", "Policies", "No policies defined", "No `definePolicy` is wired through `.use(rls(...))` in this deployment. Add one to guard a table's rows.", "Read", "Insert", "Update", "Guarded by", "Guarded", "Roles", "No roles defined", "No `defineRole` is registered via `rls(policies, { roles })`. Roles back `ctx.auth.can(...)` permission checks.", "Permissions", "Run as identity (userId)", "Leave empty to run as admin", "Dev only: runs the function as this user so you can test auth and RLS. Forged over the admin gate.", "as {userId}", "No policy", "Covered by {procedure}", "Uncovered — reachable without a policy", "Masked columns", "No tables in this deployment's schema.", "Add a `definePolicy` and wire it through `.use(rls(...))` to populate this matrix.", "Pick a function and an identity, then run it to see the access outcome.", "Probe", "Probe this", "Run as (userId)", "Identity (userId) to run as", "Run probe", "Allowed", "Denied", "Probing…", "Set `runAsIdentity` to forge an identity and probe access.", "Dev only: runs the selected function as this user over the admin gate so you can test auth and RLS.", "Inspect access policies per table, and probe a function as any identity.", "Scaffold access rules", "Writes a new deny-by-default policy file under lunora/, or wires one into a procedure, then reruns codegen. Local dev only.", "New policy file", "Wire into a procedure", "Policy name", "Create policy file", "Procedure file path", "Exported procedure", "Policy set identifier", "Wire RLS", "Creating…", "Wiring…", "Scaffolded {label} and reran codegen. Fill in the `when` predicates before relying on it.", "This change must be made by hand — the scaffolder only adds new, deny-by-default rules.", "requests", "Requests", "Requests / interval", "Requests over time", "Requests per interval over time", "Row actions", "Row document JSON", "Rows per page", "Run", "Run migration", "Run migration?", "Running…", "Query name", "Save", "Save query", "Save widget", "Saved", "schedule", "target", "workflow", "Run now", "Run now?", "Running…", "ran", "attempts", "backlog", "Dead letter", "Drop", "Drop job?", "in flight", "Jobs that exhaust their retry budget are parked here instead of being dropped.", "last tried", "max concurrency", "No dead-letter jobs.", "No workpools.", "pool", "Pools", "pools", "Pools created with createWorkpool appear here once they have activity.", "queued", "Retry", "Schedule view", "Scheduled", "scheduled for", "Scheduled jobs", "Scheduler backlog", "Schema", "Schema graph", "Schema view", "search message", "Search messages", "Search rows", "search table…", "Search…", "Select a function or table to see how to call it from your app.", "Select all rows", "Select row", "Send test", "Sent", "Service level", "Sessions", "Sessions for {userId}", "shard", "Shard", "Shard key", "shard key (optional)", "Shard key (optional)", "Shards", "Shards seen", "Signature", "size", "Snippet flavour", "State-changing admin operations are recorded here.", "status", "Storage", "Storage tier", "Storage tiers", "Studio", "Studio areas", "Studio failed", "Switch to dark theme", "Switch to light theme", "Table", "Table list", "Table touched", "Tables", "To", "Token rides the WebSocket URL — it can surface in browser DevTools and server logs. Use a dev-only token.", "Total database size", "Total errors", "Total requests", "Triggers declared with the cronJobs() builder appear here.", "Try again", "unreachable", "up", "updated", "Uptime", "user agent", "User id", "userId", "Users", "Users who sign up to your app will appear here.", "verified", "Widget title", "yes", "A live stream of recent function logs.", "Browse and edit rows across your shard and global tables.", "Browse auth users and their active sessions.", "Browse objects in your R2 storage buckets.", "Export a shard to NDJSON, or import rows from it.", "At-a-glance connection, error, and shard signals.", "Inspect and cancel scheduled jobs.", "Inspect each table and its columns.", "Inspect row-level-security policies and roles, per table.", "Per-shard health and aggregate metrics.", "Review migration status and run them.", "Run registered queries, mutations, and actions.", "Global tables (D1)", "Shard tables", "{shard} tables", "Tables marked .global() (D1-backed, region-replicated) will appear here.", "Select a table to browse its rows.", "Shared across every tenant, stored once in D1. Includes auth tables.", "Partitioned per shard key into separate Durable Objects — scoped to the shard above.", "avg", "calls", "conflicts", "kind", "last error", "last run", "max", "Most called", "No functions have run on this shard yet.", "Recent", "Slowest", "Insights", "Surface slow functions, error spikes, and cache problems.", "No issues detected.", "Low cache hit rate", "High cache eviction rate", "Slow function", "High error rate", "High write contention", "{rate} hit rate over recent traffic.", "{count} entries evicted recently.", "Slowest call took {duration}.", "Slowest call took {duration} — it full-scanned {tables} with no index.", "{rate} of calls failed.", "{rate} of calls hit a write conflict — consider sharding to cut contention.", "Home", "Reports", "SQL / Functions", "Table editor", "Connection, health, and advisor summary for your deployment.", "Collapse sidebar", "Expand sidebar", "SQL editor", "Run read-only SQL against a shard.", "Run", "SQL query", "{count} rows", "Showing the first {max} of {count} rows.", "Showing the {n} most common values.", "No rows returned.", "Private", "Reference", "Search queries…", "New query", "Untitled query", "Delete query", "No saved queries yet — they save to this browser as you type.", "Results", "Explain", "Chart", "History", "Format", "Clear history", "No numeric column to chart.", "Click Run to execute your query.", "Untitled", "New tab", "Close tab", "Tab title", "Double-click to rename", "Discard?", "Discard changes", "Keep editing", "Close other tabs", "Close tabs to the right", "Close all tabs", "Discard unsaved tabs?", "column", "keyword", "Columns", "Show all", "Hide all", "Transpose", "Swap rows and columns", "Field", "Row {n}", "Loading…", "No matching row.", "CSV", "{count} selected", "Delete {count}", "Delete {count} rows?", "Copy", "Copied", "Cell value", "Close", "Form", "Invalid JSON", "Command palette", "No results.", "Quick links", "Security findings", "Performance issues", "View", "All clear", "No data yet", "Get connected", "No issues found", "No security or performance issues detected.", "Client SDK", "React", "CLI", "Advisors", "Security", "Performance", "Warnings", "Info", "Issue type", "Entity/item", "Description", "{count} errors", "{count} warnings", "{count} suggestions", "No errors detected", "No warnings detected", "No suggestions", "Nothing to report for this deployment.", "Security and performance findings for your deployment.", "Review admin gates, credentials, and log redaction.", "Lunora checks admin-token strength, the live-subscription gate, and request-log redaction here.", "No security issues detected.", "Weak admin token", "Weak auth secret", "Session cookies are not Secure", "Wildcard CORS with credentials", "CSRF/origin guard is off", "Security headers are off", "Live admin subscriptions are ungated", "Request log keeps un-redacted args", "Unknown security finding", "Update your worker to a version of Lunora that describes this finding.", "Your admin token is {length} characters — use at least {min} for a brute-force-resistant secret.", "Your auth secret is {length} characters — use at least {min} (e.g. `openssl rand -hex 32`) to sign sessions safely.", "BETTER_AUTH_URL is a plaintext http:// origin, so session cookies cannot be Secure and ride in cleartext. Serve auth over https:// in production.", "LUNORA_ALLOWED_ORIGINS includes a wildcard while credentials are allowed — browsers reject this and it defeats the allowlist. Name explicit origins instead of *.", "LUNORA_SECURITY_CSRF is off, so cross-origin state-changing cookie requests are not blocked. Re-enable it in production to keep mutations un-forgeable.", "LUNORA_SECURITY_HEADERS is off, so HSTS, CSP, nosniff, and frame-options are not applied. Re-enable the baseline headers in production.", "Apply index", "Apply index on {table}", "Apply?", "CREATE INDEX SQL copied to clipboard.", "LUNORA_WS_BEARER is unset, so the WebSocket upgrade gate is open: live admin subscriptions need no credential. Set it to gate them like the HTTP admin RPCs.", "This worker reports a development environment, so the request log stores raw args and identity. Confirm it isn't a mislabeled production deploy.", "Audit", "A durable log of admin state-changing operations.", "Filter audit log", "filter op, table, id", "No audit entries.", "time", "op", "table", "detail", "Settings", "Deployment", "Read-only deployment config — vars, secrets, and bindings.", "Environment & bindings", "No environment variables or bindings.", "Open in Cloudflare", "Remove filter", "View-only — values are masked. Edit vars, secrets, and bindings in wrangler or the Cloudflare dashboard.", "URL", "Environment", "Version", "value", "Cascade impact", "Delete preview — rows that would cascade or be blocked", "No related rows found.", "Restrict relations will block this delete.", "Generate rows", "Generate dummy rows", "Seed {table} with Faker-generated rows. Existing rows are not affected.", "Row count", "(max {max})", "Columns to seed", "FK: no rows in {ref} — will skip", "→ {ref}", "No rows generated — all columns were skipped.", "Inserted {count} rows. Skipped FK columns: {cols}", "Inserted {count} rows successfully.", "Generate & insert", "Inserting…", "Time Travel", "Restore a shard to a point in the last 30 days.", "root", "In-place recovery to any moment in the last 30 days. For older or portable recovery, use the snapshot backup tier.", "Current bookmark", "Restore", "Time (ISO or epoch-ms, last 30 days)", "Preview", "Bookmark for that time", "Or an explicit bookmark (wins over time)", "bookmark string", "Restart the shard now so recovery applies immediately", "Confirm restore", "restarted now", "on next restart", "Restore armed", "Restored to", "Undo bookmark", "Confirm undo", "Undo restore", "role", "Role", "Role (optional)", "Active", "Banned", "unverified", "Manage", "New user", "Create", "Create user", "Creating…", "Password (optional)", "Search users", "Search by email or name…", "Filter by role", "Set role", "Ban user", "Ban reason (optional)", "Days", "Unban", "New password", "Set password", "Impersonate", "Impersonation token", "Revoke", "Revoke all sessions", "Delete user", "Confirm delete", "User details", "Fields", "Linked accounts", "No linked accounts.", "provider", "Unlink", "Security", "Disable two-factor", "No passkeys.", "Operations", "Organizations", "slug", "Members", "Invitations", "Remove", "No organizations.", "Select an organization to view its members and invitations.", "Organizations are not enabled.", "Enable the organization() plugin in your auth config to manage organizations here.", "Browse and manage organizations, members, and invitations.", "Reload", "Manage auth users — roles, bans, sessions, and identity.", "Auth config", "Configuration", "Enabled plugins and session config (read-only).", "Enabled capabilities", "Loading auth configuration…", "Accounts", "Admin", "Passkeys", "Two-factor", "Enabled", "Disabled", "OAuth providers, email templates, and rate limits are configured at deploy time in the better-auth setup and aren't editable here. See the Mail tab for email output.", "Sessions", "Browse and revoke active sessions across all users.", "user", "impersonated by", "Log drains", "Forward logs to Logpush, Tail Workers, or a webhook collector.", "Cloudflare destinations", "Lunora does not ship logs itself — forwarding is handled by Cloudflare. Configure a destination below, then test your collector.", "Logpush", "Stream every request log to R2, a SIEM, or a third-party log service.", "Tail Workers", "Send logs programmatically to a Worker for custom capture and forwarding.", "Workers Logs", "Retain and query recent request logs directly in Cloudflare's dashboard.", "Webhook test", "POST a sample Lunora request-log envelope to your collector to confirm it is reachable.", "https://example.com/logs", "Send test event", "Delivered — status {status} in {latency}ms", "Failed: {message}", "fetch is unavailable in this environment.", "Realtime", "Active WebSocket subscriptions on this shard.", "{count} connections", "{count} subscriptions", "No active subscriptions.", "Connection", "admin", "Folder path", "Grid", "Sort", "Name", "Type", "Modified", "Toggle sort direction", "Thumbnail size", "Link expiry", "15m", "1h", "24h", "7d", "Upload", "Uploading…", "Copy URL", "Download", "Delete object?", "Uploaded {key}", "Deleted {key}", "Summary", "Time range", "All time", "Last 5m", "Last 15m", "Last hour", "filter path", "By level", "By function", "Count", "{count} entries", "Snippets", "Couldn't load the OpenAPI spec: {message}", "No OpenAPI spec configured", "Run `lunora codegen` and wire `_generated/openapi.json` to the worker to render the API reference here.", "API operations", "Filter operations", "No operations match your filter.", "Try it", "Request arguments", "Response body", "Response", "application/json", "Arguments (JSON)", "Send", "Sending…", "Send a request to see the response.", "No example for this response.", "Error", "{ms} ms", "Range", "Value in", "relation", "API spec format", "OpenAPI", "OpenRPC", "Params", "Result", "Field", "Required", "JSON-RPC request", "Couldn't load the OpenRPC spec: {message}", "No OpenRPC spec configured", "Run `lunora codegen --api-spec openrpc` and wire `_generated/openrpc.json` to the worker to render the OpenRPC reference here.", "used by", "Orphan", "1 record", "{count} records", "References shard", "Which shard's records are checked for references to these files. Empty = root shard.", "Orphaned objects", "Find records whose file reference points at an object the bucket no longer has.", "Check for orphans", "Checking…", "No dangling references.", "Every record's file reference points at an object that exists in the bucket.", "Missing object", "→", "Showing the first {count} dangling references — the scan was truncated.", "Per-function call counts, error rates, and latency land here after your first request.", "Function and request logs for this shard show up here as your app handles traffic.", "No tables in this shard.", "Browse Vectorize indexes and run similarity searches.", "dimensions", "field", "Indexes declared with .vectorize() or defineVectorIndex() appear here.", "metadata", "metric", "No matches.", "No vector indexes.", "score", "Search", "Search by similarity…", "Searching…", "vectors", "Vectors", "vs. prev.", "Top functions", "No functions called yet.", "Calls", "Avg", "Err", "Avg latency", "cache hit", "Live connections", "sockets", "active subscriptions", "Recent activity", "No recent activity.", "last interval", "{rate} error rate", "cache entries", "Critical", "Degraded", "All systems healthy", "One or more service levels are breached.", "Some service levels need attention.", "All service levels are within target.", "Analytics", "Analytics is not configured.", "Hot shards", "Latency p50 / p95 per function", "No data points yet.", "Request volume per function", "Set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN (Analytics Read) in your .dev.vars to enable usage panels.", "Usage and latency from Analytics Engine — request volume, p50/p95, and hot shards.", "(whole bucket)", "Access Rules", "Bucket", "Inspect storage access rules — per bucket, operation, and key prefix.", "No defineStorageRule is wired through .use(storageRules(...)) in this deployment. Add one to gate object access by key prefix.", "No storage rules defined", "Operation", "Storage rules are declared in code with defineStorageRule and gate ctx.storage access per bucket. This view is read-only.", "Write", "Queues", "Queue", "Mode", "Dead-letter", "No queues defined", "Inspect declared Cloudflare Queues — their producer bindings, consumer mode, and dead-letter queue.", "No defineQueue is declared in lunora/queues.ts in this deployment. Add one to offload async work to a Cloudflare Queue.", "Queues are declared in code with defineQueue. Enqueue from a mutation or action with ctx.queues.<name>.send(...); push consumers process batches in the worker.", "Workflows", "Inspect declared Cloudflare Workflows and their bindings.", "Binding", "Class", "No workflows defined", "No defineWorkflow is declared in lunora/workflows.ts in this deployment. Add one to run a durable, multi-step workflow.", "Workflows are declared in code with defineWorkflow and run as durable Cloudflare Workflows. This view is read-only.", "Workflows are declared in code with defineWorkflow and run as durable Cloudflare Workflows. Start an instance and observe its status below.", "Start instance", "Starting…", "Workflow", "Instance id", "Instance id (optional)", "Params (JSON)", "Params (JSON, optional)", "Params must be valid JSON", "Instances", "Status", "Output", "Refresh", "Refreshing…", "Instance history", "Filter by status", "All statuses", "Workflow inspection not configured", "Set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN in your .dev.vars to enable workflow instance history.", "No instances", "No instances match this filter for the selected workflow.", "Created", "Ended", "Steps", "Step", "Attempts", "Started", "This instance has no recorded steps yet.", "pause", "resume", "terminate", ">100ms avg execution", "50–100ms avg execution", "<50ms avg execution", "{count} tracked statements", "Avg time", "avg", "avg time", "avgTime", "Critical queries", "Exec count", "exec count", "execCount", "Execution count", "Fast queries", "Full statement", "Moderate queries", "No query insights yet", "Overview", "P90 latency", "P95 latency", "Query insights", "Query insights appear once statements are executed against this shard.", "Query leaderboard", "Rows read", "Rows written", "rowsRead", "Slow queries sorted by {sortField}", "Sort by", "Sort queries by", "Statements", "total", "Total time", "total time", "totalTime", "Edit schema", "Add table", "Add column", "Add index", "Rename / drop / change type…", "Table name", "Column name", "Column type", "Index name", "Index fields (comma-separated)", "Optional", "Unique", "Cancel", "Apply", "Applying…", "This edit changes stored data and must go through a migration. Review the migration before applying.", "Open Migrations", "Schema updated.", "Codegen reported diagnostics:", "Editing the schema is only available in local dev.", "Adds a table, column, or index to lunora/schema.ts and reruns codegen.", "Theme", "Dark theme", "Light theme", "System theme", "Integrity"];
1320
+ * The registry of every English source string a call site may pass to `t(...)`.
1321
+ *
1322
+ * English is the source locale, so each id doubles as the rendered text: Lingui
1323
+ * compiles an id verbatim when a catalog has no entry for it. This list is the
1324
+ * single source of known strings — {@link MessageId} is derived from it and
1325
+ * `TFunction` is typed against that union, so `t("Dat")` (or any string absent
1326
+ * here) is a compile error rather than a silently-rendered typo.
1327
+ *
1328
+ * Add a string here the moment a new call site needs it. To translate, create a
1329
+ * sibling catalog (for example `de.ts`) mapping each id to its translation and
1330
+ * register it via `createStudioI18n(locale, { en: enMessages, de: deMessages })`.
1331
+ */
1332
+ declare const MESSAGE_IDS: readonly ["Agents", "Agent", "Threads", "Timeline", "Messages", "Tokens", "Updated", "Content", "Tool", "Usage", "Approval", "Inspect agent threads, message timelines, tool calls, and token usage.", "Agents run as durable workflows. Each run persists a thread of assistant and tool messages; select a thread to inspect its timeline, tool calls, approvals, and token usage.", "No @lunora/agent tables found in this deployment. Add lunora/agents.ts with defineAgent(...) and merge the agent schema extension to run durable AI agents.", "No agents configured", "No agent has run yet. Start a run with ctx.agents.<name>.run(...) and its thread appears here.", "No agent threads yet", "This thread has no messages yet.", "Bindings", "KV Namespaces", "R2 Buckets", "Vectorize Indexes", "{count} bindings", "1 binding", "Lunora AI rules aren't installed.", "lets your coding agent use Lunora correctly.", "Dismiss", ", changed", "(no subject)", "(root)", "{count} active", "{count} calls", "{count} failed", "{total} total", "No subscriptions yet", "No payments configured", "No @lunora/payment tables found in this deployment. Declare the store tables (subscriptions, events, …) in lunora/schema.ts and wire `payment` on createShardDO() to sync customers and subscriptions.", "Payments", "Plan", "Provider", "Recent webhook events", "Renews", "State", "Subscriptions", "Synced customers, subscriptions, and webhook events.", "{count} messages", "{count} pending changes", "{count} running", "{name} ({rowCount})", "{rangeStart}-{rangeEnd} of {total}", "{rate} ({count} entries)", "{reachable} reachable", "{reachable} reachable, {failed} unreachable", "{status} — processed", "{title} failed", "Actions", "Actions have no React hook — call them through the client.", "Add a widget to chart a saved SQL query on this browser.", "Add index on {table}", "Add row", "Add widget", "admin token", "Aggregating…", "all", "All shards", "API", "API reference unavailable", "API resources", "API usage snippets", "API view", "Arguments", "Auth", "Auth failures", "Auth failures over time", "Cache hit rate", "Call this {kind} from your app.", "Cancel", "Cancel job?", "Cc", "changed", "Chart widgets backed by saved read-only SQL queries.", "Lunora surfaces slow functions, error spikes, and cache problems here.", "Clear", "Clear inbox", "Columns unavailable", "CLI", "Client", "collecting samples…", "Combined cache hit rate", "Commit", "Committing…", "Breadcrumb", "Confirm", "Connect", "Connect to Lunora Studio", "Connected", "Connecting…", "Enter your admin token to access the studio.", "From your worker's LUNORA_ADMIN_TOKEN — your project's .dev.vars in dev, or a deployment secret in production.", "Local", "Not connected", "content-type", "Copy", "Copy link", "Copy-paste snippets for calling your functions and tables.", "created", "Cron triggers", "Dashboards", "Data", "Data migrations you run against this shard will be tracked here.", "Data model", "Database", "Database size", "db size", "Instruments", "Instruments unavailable: {error}", "Counter", "Gauge", "Histogram", "count", "range", "trend", "trace", "{name} trend", "Open the exemplar trace {trace}", "Delete", "Delete saved query {name}", "Delete?", "direction", "Direction", "Discard", "down", "Dry run", "Dry run: ", "Edit", "Edit widget", "email", "Email preview", "Email your app sends in dev is captured here — nothing is delivered.", "Email your app sent, captured in dev.", "Enter a migration id", "error", "Error rate", "errors", "Errors", "Errors over time", "expires", "Export", "PNG", "SVG", "Export / Import", "Exported {count} rows.", "Facets", "file:function", "Files", "Filter messages", "Filter tables", "Find table…", "Foreign key", "From", "function", "Function", "Function path", "Functions", "Functions by error rate", "Graph", "Headers", "Health", "Indexes", "Hide", "HTML", "id", "Idle", "Import", "Import (writes rows)?", "Inserted {inserted}, {conflicts} conflicts, {errors} errors.", "Interactive OpenAPI reference and copy-paste snippets for your functions.", "Invalid JSON args: {message}", "Invalid JSON: {message}", "Invalid NDJSON: {message}", "ip", "Jobs queued with runAfter / runAt will appear here.", "JSON", "key", "Key prefix", "key prefix (optional)", "Level filter", "line {line} ({table}): {message}", "List", "Live", "Live — changes stream in automatically", "Live unavailable", "Live unavailable: {liveError}", "Live: on", "Load", "Load more", "Load tables", "Logic", "Logs", "Mail", "Mask sensitive columns", "Metrics", "migration id", "Migration id", "Migrations", "Missing index", "name", "Next", "no", "No active sessions.", "no cache configured", "No captured email.", "No cron triggers.", "No function activity yet.", "No functions or tables to document yet.", "No global tables.", "No headers.", "No HTML body.", "No logs.", "Archive", "Log archive not configured", "Wire pipelineLogSink to a Cloudflare Pipeline → R2 Data Catalog table and set R2_SQL_ACCOUNT_ID, R2_SQL_TOKEN, R2_SQL_BUCKET to browse the durable log archive here.", "No archived logs.", "No archived logs match these filters. The durable archive fills as pipelineLogSink flushes records to R2.", "Function path prefix", "function path…", "user id…", "Minimum level", "min level", "Time", "Level", "Trace", "User", "No migrations have run on this shard.", "No objects.", "No recent errors.", "No scheduled jobs.", "No tables to graph.", "No tables match your filter.", "No text body.", "No users.", "No widgets yet", "Objects you upload to your R2 buckets will appear here.", "Observability", "of {pages}", "off", "Offline", "ok", "OK", "on", "Open {target} {id}", "Open in new tab", "Outcome filter", "Page", "Plain text", "Prefill", "Previous", "Primary key", "processed", "React", "Read and write this table through the typed data model.", "Recent errors", "Recent logs", "Recently visited shards — click to switch", "Refresh", "Reload tables", "Remove widget", "RLS Policies", "Policies", "No policies defined", "No `definePolicy` is wired through `.use(rls(...))` in this deployment. Add one to guard a table's rows.", "Read", "Insert", "Update", "Guarded by", "Guarded", "Roles", "No roles defined", "No `defineRole` is registered via `rls(policies, { roles })`. Roles back `ctx.auth.can(...)` permission checks.", "Permissions", "Run as identity (userId)", "Leave empty to run as admin", "Dev only: runs the function as this user so you can test auth and RLS. Forged over the admin gate.", "as {userId}", "No policy", "Covered by {procedure}", "Uncovered — reachable without a policy", "Masked columns", "No tables in this deployment's schema.", "Add a `definePolicy` and wire it through `.use(rls(...))` to populate this matrix.", "Pick a function and an identity, then run it to see the access outcome.", "Probe", "Probe this", "Run as (userId)", "Identity (userId) to run as", "Run probe", "Allowed", "Denied", "Probing…", "Set `runAsIdentity` to forge an identity and probe access.", "Dev only: runs the selected function as this user over the admin gate so you can test auth and RLS.", "Inspect access policies per table, and probe a function as any identity.", "Scaffold access rules", "Writes a new deny-by-default policy file under lunora/, or wires one into a procedure, then reruns codegen. Local dev only.", "New policy file", "Wire into a procedure", "Policy name", "Create policy file", "Procedure file path", "Exported procedure", "Policy set identifier", "Wire RLS", "Creating…", "Wiring…", "Scaffolded {label} and reran codegen. Fill in the `when` predicates before relying on it.", "This change must be made by hand — the scaffolder only adds new, deny-by-default rules.", "requests", "Requests", "Requests / interval", "Requests over time", "Requests per interval over time", "Row actions", "Row document JSON", "Rows per page", "Run", "Run migration", "Run migration?", "Running…", "Query name", "Save", "Save query", "Save widget", "Saved", "schedule", "target", "workflow", "Run now", "Run now?", "Running…", "ran", "attempts", "backlog", "Dead letter", "Drop", "Drop job?", "in flight", "Jobs that exhaust their retry budget are parked here instead of being dropped.", "last tried", "max concurrency", "No dead-letter jobs.", "No workpools.", "pool", "Pools", "pools", "Pools created with createWorkpool appear here once they have activity.", "queued", "Retry", "Schedule view", "Scheduled", "scheduled for", "Scheduled jobs", "Scheduler backlog", "Schema", "Schema graph", "Schema view", "search message", "Search messages", "Search rows", "search table…", "Search…", "Select a function or table to see how to call it from your app.", "Select all rows", "Select row", "Send test", "Sent", "Service level", "Sessions", "Sessions for {userId}", "shard", "Shard", "Shard key", "shard key (optional)", "Shard key (optional)", "Shards", "Shards seen", "Signature", "size", "Snippet flavour", "State-changing admin operations are recorded here.", "status", "Storage", "Storage tier", "Storage tiers", "Studio", "Studio areas", "Studio failed", "Switch to dark theme", "Switch to light theme", "Table", "Table list", "Table touched", "Tables", "To", "Token rides the WebSocket URL — it can surface in browser DevTools and server logs. Use a dev-only token.", "Total database size", "Total errors", "Total requests", "Triggers declared with the cronJobs() builder appear here.", "Try again", "unreachable", "up", "updated", "Uptime", "user agent", "User id", "userId", "Users", "Users who sign up to your app will appear here.", "verified", "Widget title", "yes", "A live stream of recent function logs.", "Browse and edit rows across your shard and global tables.", "Browse auth users and their active sessions.", "Browse objects in your R2 storage buckets.", "Export a shard to NDJSON, or import rows from it.", "At-a-glance connection, error, and shard signals.", "Inspect and cancel scheduled jobs.", "Inspect each table and its columns.", "Inspect row-level-security policies and roles, per table.", "Per-shard health and aggregate metrics.", "Review migration status and run them.", "Run registered queries, mutations, and actions.", "Global tables (D1)", "Shard tables", "{shard} tables", "Tables marked .global() (D1-backed, region-replicated) will appear here.", "Select a table to browse its rows.", "Shared across every tenant, stored once in D1. Includes auth tables.", "Partitioned per shard key into separate Durable Objects — scoped to the shard above.", "avg", "calls", "conflicts", "kind", "last error", "last run", "max", "Most called", "No functions have run on this shard yet.", "Recent", "Slowest", "Insights", "Surface slow functions, error spikes, and cache problems.", "No issues detected.", "Low cache hit rate", "High cache eviction rate", "Slow function", "High error rate", "High write contention", "{rate} hit rate over recent traffic.", "{count} entries evicted recently.", "Slowest call took {duration}.", "Slowest call took {duration} — it full-scanned {tables} with no index.", "{rate} of calls failed.", "{rate} of calls hit a write conflict — consider sharding to cut contention.", "Home", "Reports", "SQL / Functions", "Table editor", "Connection, health, and advisor summary for your deployment.", "Collapse sidebar", "Expand sidebar", "SQL editor", "Run read-only SQL against a shard.", "Run", "SQL query", "SQL problems", "Operation console", "Suggest chart", "Describe the query you want", "Draft SQL", "Thinking…", "Fix this", "Related", "p50", "p95", "showing a capped set", "Statements executed in the selected window appear here, with throughput and latency over time.", "No queries in this window.", "Throughput", "Mean latency (ms)", "Schema versions", "Data migrations", "{count} pushes", "live", "Show in console", "Every admin call this studio makes is recorded here.", "{count} rows", "Filter", "Each distinct schema shape this shard runs is recorded here, so you can see what changed and when.", "No schema versions recorded yet.", "First recorded version — every table is new.", "{count} change(s)", "change", "Diagram", "Changes", "added", "changed", "removed", "schema", "{count} columns", "changes", "tables", "{count} breaking", "breaking", "safe", "{count} rows", "Showing the first {max} of {count} rows.", "Showing the {n} most common values.", "No rows returned.", "Private", "Reference", "Search queries…", "New query", "Untitled query", "Delete query", "No saved queries yet — they save to this browser as you type.", "Results", "Explain", "Chart", "Split editor and results", "History", "Format", "Clear history", "No numeric column to chart.", "Click Run to execute your query.", "Untitled", "New tab", "Close tab", "Tab title", "Double-click to rename", "Discard?", "Discard changes", "Keep editing", "Close other tabs", "Close tabs to the right", "Close all tabs", "Discard unsaved tabs?", "column", "keyword", "Columns", "Show all", "Hide all", "Transpose", "Swap rows and columns", "Field", "Row {n}", "Loading…", "No matching row.", "CSV", "SQL", "{count} selected", "Delete {count}", "Delete {count} rows?", "Copy", "Copied", "Cell value", "Close", "Form", "Invalid JSON", "Command palette", "No results.", "Quick links", "Security findings", "Performance issues", "View", "All clear", "No data yet", "Get connected", "No issues found", "No security or performance issues detected.", "Client SDK", "React", "CLI", "Connect an AI agent", "Drive this deployment from an AI agent over the Model Context Protocol — it can list functions and tables, read schemas, and run read-only queries. Writes stay off unless you opt in.", "Copy MCP config", "Copy agent prompt", "Advisors", "Security", "Performance", "Warnings", "Info", "Issue type", "Entity/item", "Description", "{count} errors", "{count} warnings", "{count} suggestions", "No errors detected", "No warnings detected", "No suggestions", "Nothing to report for this deployment.", "Security and performance findings for your deployment.", "Review admin gates, credentials, and log redaction.", "Lunora checks admin-token strength, the live-subscription gate, and request-log redaction here.", "No security issues detected.", "Weak admin token", "Weak auth secret", "Session cookies are not Secure", "Wildcard CORS with credentials", "CSRF/origin guard is off", "Security headers are off", "Live admin subscriptions are ungated", "Request log keeps un-redacted args", "Unknown security finding", "Update your worker to a version of Lunora that describes this finding.", "Your admin token is {length} characters — use at least {min} for a brute-force-resistant secret.", "Your auth secret is {length} characters — use at least {min} (e.g. `openssl rand -hex 32`) to sign sessions safely.", "BETTER_AUTH_URL is a plaintext http:// origin, so session cookies cannot be Secure and ride in cleartext. Serve auth over https:// in production.", "LUNORA_ALLOWED_ORIGINS includes a wildcard while credentials are allowed — browsers reject this and it defeats the allowlist. Name explicit origins instead of *.", "LUNORA_SECURITY_CSRF is off, so cross-origin state-changing cookie requests are not blocked. Re-enable it in production to keep mutations un-forgeable.", "LUNORA_SECURITY_HEADERS is off, so HSTS, CSP, nosniff, and frame-options are not applied. Re-enable the baseline headers in production.", "Apply index", "Apply index on {table}", "Apply?", "CREATE INDEX SQL copied to clipboard.", "LUNORA_WS_BEARER is unset, so the WebSocket upgrade gate is open: live admin subscriptions need no credential. Set it to gate them like the HTTP admin RPCs.", "This worker reports a development environment, so the request log stores raw args and identity. Confirm it isn't a mislabeled production deploy.", "Audit", "A durable log of admin state-changing operations.", "Filter audit log", "filter op, table, id", "No audit entries.", "Notifications", "Registered push devices — endpoint, kind, last-send status, and delivery errors.", "Registered Web Push / FCM devices appear here. Configure lunora/notify.ts with defineNotify({ store }) and register a device with ctx.push.register(...).", "No registered devices.", "Filter devices", "filter endpoint, user", "{count} devices", "endpoint", "last seen", "n/a", "time", "op", "table", "detail", "Auth audit", "Authentication and security events — sign-ins, MFA, and session changes.", "Filter security events", "filter event, actor, IP", "Authentication and security events are recorded here.", "No security events.", "event", "actor", "ip / user agent", "outcome", "success", "failure", "Settings", "Deployment", "Read-only deployment config — vars, secrets, and bindings.", "Environment & bindings", "No environment variables or bindings.", "Open in Cloudflare", "Remove filter", "View-only — values are masked. Edit vars, secrets, and bindings in wrangler or the Cloudflare dashboard.", "URL", "Environment", "Version", "value", "Cascade impact", "Delete preview — rows that would cascade or be blocked", "No related rows found.", "Restrict relations will block this delete.", "Generate rows", "Generate dummy rows", "Seed {table} with Faker-generated rows. Existing rows are not affected.", "Row count", "(max {max})", "Columns to seed", "FK: no rows in {ref} — will skip", "→ {ref}", "No rows generated — all columns were skipped.", "Inserted {count} rows. Skipped FK columns: {cols}", "Inserted {count} rows successfully.", "Generate & insert", "Inserting…", "Time Travel", "Restore a shard to a point in the last 30 days.", "root", "In-place recovery to any moment in the last 30 days. For older or portable recovery, use the snapshot backup tier.", "Current bookmark", "Restore", "Time (ISO or epoch-ms, last 30 days)", "Preview", "Bookmark for that time", "Or an explicit bookmark (wins over time)", "bookmark string", "Restart the shard now so recovery applies immediately", "Confirm restore", "restarted now", "on next restart", "Restore armed", "Restored to", "Undo bookmark", "Confirm undo", "Undo restore", "role", "Role", "Role (optional)", "Active", "Banned", "unverified", "Manage", "New user", "Create", "Create user", "Creating…", "Password (optional)", "Search users", "Search by email or name…", "Filter by role", "Set role", "Ban user", "Ban reason (optional)", "Days", "Unban", "New password", "Set password", "Impersonate", "Impersonation token", "Revoke", "Revoke all sessions", "Delete user", "Confirm delete", "User details", "Fields", "Linked accounts", "No linked accounts.", "provider", "Unlink", "Security", "Disable two-factor", "No passkeys.", "Operations", "Organizations", "slug", "Members", "Invitations", "Remove", "No organizations.", "Select an organization to view its members and invitations.", "Organizations are not enabled.", "Enable the organization() plugin in your auth config to manage organizations here.", "Browse and manage organizations, members, and invitations.", "Reload", "Manage auth users — roles, bans, sessions, and identity.", "Auth config", "Configuration", "Enabled plugins and session config (read-only).", "Enabled capabilities", "Loading auth configuration…", "Accounts", "Admin", "Passkeys", "Two-factor", "Enabled", "Disabled", "OAuth providers, email templates, and rate limits are configured at deploy time in the better-auth setup and aren't editable here. See the Mail tab for email output.", "Sessions", "Browse and revoke active sessions across all users.", "user", "impersonated by", "Log drains", "Forward logs to Logpush, Tail Workers, or a webhook collector.", "Cloudflare destinations", "Lunora does not ship logs itself — forwarding is handled by Cloudflare. Configure a destination below, then test your collector.", "Logpush", "Stream every request log to R2, a SIEM, or a third-party log service.", "Tail Workers", "Send logs programmatically to a Worker for custom capture and forwarding.", "Workers Logs", "Retain and query recent request logs directly in Cloudflare's dashboard.", "Webhook test", "POST a sample Lunora request-log envelope to your collector to confirm it is reachable.", "https://example.com/logs", "Send test event", "Delivered — status {status} in {latency}ms", "Failed: {message}", "fetch is unavailable in this environment.", "Realtime", "Active WebSocket subscriptions on this shard.", "{count} connections", "{count} subscriptions", "This Studio session's sync client", "Reading the sync client's state…", "Sync client", "{count} pending writes", "Reads client.debug() for the client running in this page — not your application's client. Call client.debug() in your app to diagnose a specific stuck overlay there.", "No shard connection has been opened yet.", "No shards", "Shard", "Socket", "Confirmed watermark", "(default)", "This client holds no live queries or shapes.", "No subscriptions", "Subscription", "Kind", "Acked", "Cursor", "Pending overlays", "No active subscriptions.", "Connection", "admin", "Folder path", "Grid", "Sort", "Name", "Type", "Modified", "Toggle sort direction", "Thumbnail size", "Link expiry", "15m", "1h", "24h", "7d", "Upload", "Uploading…", "Copy URL", "Download", "Delete object?", "Uploaded {key}", "Deleted {key}", "Summary", "Time range", "All time", "Last 5m", "Last 15m", "Last hour", "filter path", "By level", "By function", "Count", "{count} entries", "Snippets", "Couldn't load the OpenAPI spec: {message}", "No OpenAPI spec configured", "Run `lunora codegen` and wire `_generated/openapi.json` to the worker to render the API reference here.", "API operations", "Filter operations", "No operations match your filter.", "Try it", "Request arguments", "Response body", "Response", "application/json", "Arguments (JSON)", "Send", "Sending…", "Send a request to see the response.", "No example for this response.", "Error", "{ms} ms", "Range", "Value in", "relation", "API spec format", "OpenAPI", "OpenRPC", "Params", "Result", "Field", "Required", "JSON-RPC request", "Couldn't load the OpenRPC spec: {message}", "No OpenRPC spec configured", "Run `lunora codegen --api-spec openrpc` and wire `_generated/openrpc.json` to the worker to render the OpenRPC reference here.", "used by", "Orphan", "1 record", "{count} records", "References shard", "Which shard's records are checked for references to these files. Empty = root shard.", "Orphaned objects", "Find records whose file reference points at an object the bucket no longer has.", "Check for orphans", "Checking…", "No dangling references.", "Every record's file reference points at an object that exists in the bucket.", "Missing object", "→", "Showing the first {count} dangling references — the scan was truncated.", "Per-function call counts, error rates, and latency land here after your first request.", "Function and request logs for this shard show up here as your app handles traffic.", "No tables in this shard.", "Browse Vectorize indexes and run similarity searches.", "dimensions", "field", "Indexes declared with .vectorize() or defineVectorIndex() appear here.", "metadata", "metric", "No matches.", "No vector indexes.", "score", "Search", "Search by similarity…", "Searching…", "vectors", "Vectors", "Add a kv_namespaces binding to wrangler.jsonc — it appears here automatically, no wiring needed.", "Browse and edit key-value pairs in your Workers KV namespaces.", "Deleting…", "Expiration", "Filter", "Filter by prefix…", "Filter keys by prefix", "Key is absent or has no value.", "KV", "KV value", "Copy key", "Copy value", "Create key", "Failed to delete {count} keys.", "Format JSON", "Key name", "Expires after", "TTL unit", "TTL must be at least 60 seconds.", "seconds", "minutes", "hours", "days", "Leave blank to keep the current expiration.", "Metadata (JSON)", "Metadata must be valid JSON.", "New key", "No expiration", "Select all", "Select {name}", "Metadata", "Namespace", "No keys.", "No KV namespaces.", "Saving…", "vs. prev.", "Top functions", "No functions called yet.", "Calls", "Avg", "Err", "Avg latency", "cache hit", "Live connections", "sockets", "active subscriptions", "Recent activity", "No recent activity.", "last interval", "{rate} error rate", "cache entries", "Critical", "Degraded", "All systems healthy", "One or more service levels are breached.", "Some service levels need attention.", "All service levels are within target.", "Analytics", "Analytics is not configured.", "Hot shards", "Latency p50 / p95 per function", "No data points yet.", "Request volume per function", "Set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN (Analytics Read) in your .dev.vars to enable usage panels.", "Usage and latency from Analytics Engine — request volume, p50/p95, and hot shards.", "(whole bucket)", "Access Rules", "Bucket", "Inspect storage access rules — per bucket, operation, and key prefix.", "No defineStorageRule is wired through .use(storageRules(...)) in this deployment. Add one to gate object access by key prefix.", "No storage rules defined", "Operation", "Storage rules are declared in code with defineStorageRule and gate ctx.storage access per bucket. This view is read-only.", "Write", "Queues", "Queue", "Mode", "Dead-letter", "No queues defined", "Inspect declared Cloudflare Queues — their producer bindings, consumer mode, and dead-letter queue.", "No defineQueue is declared in lunora/queues.ts in this deployment. Add one to offload async work to a Cloudflare Queue.", "Queues are declared in code with defineQueue. Enqueue from a mutation or action with ctx.queues.<name>.send(...); push consumers process batches in the worker.", "No dead-letter queue on {queues}.", "Exhausted messages are dropped after retries. Add a deadLetterQueue to capture them.", "1 message was recently dead-lettered.", "{count} messages were recently dead-lettered.", "Batch mode needs a JSON array body — each element is enqueued as one message.", "Body", "Body must be valid JSON.", "Captured", "Clear log", "Cloudflare Queues have no peek API, so this is what push consumers actually processed — not pending depth.", "Consumed messages appear here once a push consumer processes a batch in dev. Send one from the Send tab to see it captured.", "Declare a queue with defineQueue in lunora/queues.ts to enqueue a test message.", "Declared", "Delay must be a non-negative number of seconds.", "Delay (s)", "Delay (seconds)", "DLQ", "Enqueue a JSON message to a declared producer to exercise its consumer. Nothing is captured until the consumer processes it.", "Message", "Message body (JSON)", "Messages", "No consumed messages yet.", "No queues to send to", "Outcome", "Replay", "Replaying…", "Send as batch (JSON array)", "Send message", "Flags", "Inspect feature flags and their live evaluation under a targeting context.", "Feature flags are read in code with ctx.flags.<type>(\"key\", default). They evaluate through the OpenFeature provider configured in lunora/flags.ts; edit the targeting context below to see how each flag resolves for a given audience.", "Targeting context (JSON)", "Targeting context must be a JSON object.", "Targeting context is not valid JSON.", "Live updates unavailable; showing the last evaluation.", "No @lunora/flags provider is wired in this deployment. Add lunora/flags.ts with defineFlags({ provider }) to gate code paths on feature flags.", "No flags provider configured", "A flags provider is configured, but no handler reads a flag yet. Call ctx.flags.boolean(\"key\", false) in a query, mutation, or action.", "No flags read", "Key", "Value", "Reason", "Variant", "Workflows", "Inspect declared Cloudflare Workflows and their bindings.", "Binding", "Class", "No workflows defined", "No defineWorkflow is declared in lunora/workflows.ts in this deployment. Add one to run a durable, multi-step workflow.", "Workflows are declared in code with defineWorkflow and run as durable Cloudflare Workflows. This view is read-only.", "Workflows are declared in code with defineWorkflow and run as durable Cloudflare Workflows. Start an instance and observe its status below.", "Start instance", "Starting…", "Workflow", "Instance id", "Instance id (optional)", "Params (JSON)", "Params (JSON, optional)", "Params must be valid JSON", "Instances", "Status", "Output", "Refresh", "Refreshing…", "Instance history", "Filter by status", "All statuses", "Workflow inspection not configured", "Set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN in your .dev.vars to enable workflow instance history.", "No instances", "No instances match this filter for the selected workflow.", "Created", "Ended", "Steps", "Step", "Attempts", "Started", "This instance has no recorded steps yet.", "pause", "resume", "terminate", ">100ms avg execution", "50–100ms avg execution", "<50ms avg execution", "{count} tracked statements", "Avg time", "avg", "avg time", "avgTime", "Critical queries", "Exec count", "exec count", "execCount", "Execution count", "Fast queries", "Full statement", "Moderate queries", "No query insights yet", "Overview", "P90 latency", "P95 latency", "Query insights", "Query insights appear once statements are executed against this shard.", "Query leaderboard", "Rows read", "Rows written", "rowsRead", "Slow queries sorted by {sortField}", "Sort by", "Sort queries by", "Statements", "total", "Total time", "total time", "totalTime", "Edit schema", "Add table", "Add column", "Add index", "Rename / drop / change type…", "Table name", "Column name", "Column type", "Index name", "Index fields (comma-separated)", "Optional", "Unique", "Cancel", "Apply", "Applying…", "This edit changes stored data and must go through a migration. Review the migration before applying.", "Open Migrations", "Schema updated.", "Codegen reported diagnostics:", "Editing the schema is only available in local dev.", "Adds a table, column, or index to lunora/schema.ts and reruns codegen.", "Theme", "Dark theme", "Light theme", "System theme", "Integrity", "Fan-out", "auto-scaled: {relayCount}/{maxRelays} relays", "auto-scaled: {relayCount}/{maxRelays} relays (at ceiling)", "Realtime fan-out cost and per-topic subscriber counts for this shard.", "No fan-out activity yet.", "peak {count} subscribers", "Hot topics", "Topic", "Kind", "Subscribers", "Fan-out cost since this instance woke", "Shape pokes", "Whisper broadcasts", "Passes", "Sockets iterated", "Delivered", "Peak width", "Max time", "Containers", "Container", "Instance", "Last event", "Detail", "Exit", "When", "No container activity", "Live Cloudflare Containers — current lifecycle state per instance from the log stream.", "Cloudflare Containers are observed from their lifecycle log stream. This shows the current state per instance — ports and health checks aren't carried in that stream.", "No container lifecycle activity yet. Instances declared with defineContainer show up here once they start, sleep, stop, or error.", "Traces", "Recent ctx.trace waterfalls for this shard — the drill-down from a log line.", "Search traces", "search trace or function", "Recent traces", "Trace waterfall", "Errored span", "{count} spans", "starts {offset} in, runs {duration}", "Showing the {shown} most recent of {total} traces in the buffer.", "No traces", "Traces recorded with ctx.trace show up here as your app handles traffic. The span buffer resets when the shard hibernates.", "Issues", "Issue", "Source", "Events", "First seen", "Last seen", "No issues", "Grouped error triage — Worker throws and container crashes folded by fingerprint.", "No grouped errors yet. When a function throws or a container crashes, matching errors fold into a single issue here.", "Severity", "Assignee", "Set severity", "Unassigned", "Resolve", "Ignore", "Reopen", "All", "Open", "Resolved", "Ignored", "—", "Toggle issue details", "Suggested fix", "No known fix for this error yet.", "Explain in plain language", "Explaining…", "AI explanation", "Generated by {model}", "No AI binding is configured. Wire an AI binding to enable plain-language explanations — the suggested fix above is always available.", "The AI model could not explain this error right now. The suggested fix above still applies.", "No catalog fix matched this error, so this explanation is the model's own reading of the message. Verify before acting on it.", "optional", "required", "unique", "Plugin fields", "New organization", "Edit organization", "Delete organization", "Delete this organization? Its members, invitations, teams, and custom roles are removed. This cannot be undone.", "Slug (optional — derived from name)", "Logo URL (optional)", "Owner user id (optional)", "Metadata (JSON, optional)", "Add member", "Invite member", "Send invitation", "Change member role", "Change role", "New team", "Rename team", "Rename", "Delete team", "Delete this team and its memberships? This cannot be undone.", "Add team member", "Team members", "No members.", "No teams.", "No team members.", "Teams", "New role", "Edit role", "Delete role", "Delete this custom role? Members keeping it will lose its grants.", "No custom roles.", "Role name", "Permission", "Permission (JSON, e.g. {\"project\":[\"create\",\"update\"]})", "Plugins", "No plugins enabled.", "Sign-in methods", "Email & password", "Social providers", "None", "Custom roles", "Session policy", "Expires in", "Refresh after", "Fresh window", "Cookie cache", "Rate limit", "Max requests", "Window", "Plugin user fields", "Deployment health", "Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint.", "Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint — wire an uptime monitor or a Cloudflare Health Check at it.", "Liveness", "Readiness", "Ready", "Not ready", "Healthy", "Unhealthy", "Checked", "Subsystem checks", "No checks reported.", "Up", "Down", "Health endpoint unavailable", "The health endpoint is in the admin posture. Paste a valid admin token in the connect popover, or set its auth to public.", "Couldn't reach the health endpoint: {message}", "no response"];
1322
1333
  /** A known studio message id — one of the entries in {@link MESSAGE_IDS}. */
1323
1334
  type MessageId = (typeof MESSAGE_IDS)[number];
1324
- /**
1325
- * English message catalog.
1326
- *
1327
- * English is the source locale: every call site passes its English string as the
1328
- * message id (e.g. `t("Save")`), and Lingui compiles the id verbatim when a
1329
- * catalog has no entry for it. So English needs no translations — this stays
1330
- * empty and the source strings render as-is. The known ids live in
1331
- * {@link MESSAGE_IDS}, which types the `t` function.
1332
- */
1333
1335
  /** The locale the studio ships with and falls back to. */
1334
1336
  declare const DEFAULT_LOCALE = "en";
1335
1337
  /**
1336
- * Locale code to catalog. Each catalog maps an English source string (which
1337
- * doubles as the message id) to its translation. English ships empty: Lingui
1338
- * compiles the id verbatim when a translation is missing, so the source strings
1339
- * render as-is. To add a language, register `{ "Some English text": "…" }`.
1340
- */
1338
+ * Locale code to catalog. Each catalog maps an English source string (which
1339
+ * doubles as the message id) to its translation. English ships empty: Lingui
1340
+ * compiles the id verbatim when a translation is missing, so the source strings
1341
+ * render as-is. To add a language, register `{ "Some English text": "…" }`.
1342
+ */
1341
1343
  type StudioCatalogs = Readonly<Record<string, Messages>>;
1342
1344
  /**
1343
- * Translate function: `t("Clear")` or `t("{title} failed", { title })`.
1344
- *
1345
- * `id` is constrained to a known {@link MessageId}, so a typo is a compile error.
1346
- * The interpolation `values` stay loosely typed: mapping each id to its exact
1347
- * placeholder set isn't worth the machinery for the handful of interpolated
1348
- * strings, so a wrong or missing value key isn't caught at this boundary.
1349
- */
1345
+ * Translate function: `t("Clear")` or `t("{title} failed", { title })`.
1346
+ *
1347
+ * `id` is constrained to a known {@link MessageId}, so a typo is a compile error.
1348
+ * The interpolation `values` stay loosely typed: mapping each id to its exact
1349
+ * placeholder set isn't worth the machinery for the handful of interpolated
1350
+ * strings, so a wrong or missing value key isn't caught at this boundary.
1351
+ */
1350
1352
  type TFunction = (id: MessageId, values?: Record<string, unknown>) => string;
1351
1353
  /**
1352
- * Build a studio-scoped Lingui instance. We deliberately use `@lingui/core`'s
1353
- * `setupI18n` (a fresh instance) rather than the global singleton so the
1354
- * studio can never clobber — or be clobbered by — a host app that also uses
1355
- * Lingui.
1356
- *
1357
- * The message compiler is installed explicitly. `@lingui/core` only auto-installs
1358
- * it when `NODE_ENV !== "production"`, but the studio ships as a library and
1359
- * relies on the compiler at runtime to interpolate uncompiled source strings
1360
- * (e.g. `t("{title} failed", { title })`). Without this, a consumer's production
1361
- * build would render `{title}` literally and `console.warn` on every `t(...)`.
1362
- *
1363
- * Pass extra `catalogs` to ship more locales; unknown `locale` codes fall back
1364
- * to `DEFAULT_LOCALE`.
1365
- */
1354
+ * Build a studio-scoped Lingui instance. We deliberately use `@lingui/core`'s
1355
+ * `setupI18n` (a fresh instance) rather than the global singleton so the
1356
+ * studio can never clobber — or be clobbered by — a host app that also uses
1357
+ * Lingui.
1358
+ *
1359
+ * The message compiler is installed explicitly. `@lingui/core` only auto-installs
1360
+ * it when `NODE_ENV !== "production"`, but the studio ships as a library and
1361
+ * relies on the compiler at runtime to interpolate uncompiled source strings
1362
+ * (e.g. `t("{title} failed", { title })`). Without this, a consumer's production
1363
+ * build would render `{title}` literally and `console.warn` on every `t(...)`.
1364
+ *
1365
+ * Pass extra `catalogs` to ship more locales; unknown `locale` codes fall back
1366
+ * to `DEFAULT_LOCALE`.
1367
+ */
1366
1368
  declare const createStudioI18n: (locale?: string, catalogs?: StudioCatalogs) => I18n;
1367
1369
  /**
1368
- * Shared default instance. Backs the i18n context's default value so the
1369
- * composable studio and individual exported panels resolve their strings even
1370
- * when rendered without `StudioI18nProvider` (e.g. in tests, or a host's own
1371
- * admin UI). English-only, so it renders source strings as-is.
1372
- */
1370
+ * Shared default instance. Backs the i18n context's default value so the
1371
+ * composable studio and individual exported panels resolve their strings even
1372
+ * when rendered without `StudioI18nProvider` (e.g. in tests, or a host's own
1373
+ * admin UI). English-only, so it renders source strings as-is.
1374
+ */
1373
1375
  declare const studioI18n: I18n;
1374
1376
  /**
1375
- * Hook returning a `t` bound to the nearest `StudioI18nProvider` (or the
1376
- * shared instance when there's none). This is the runtime stand-in for Lingui's
1377
- * `t` macro — the studio builds with esbuild and tests under Vite 8/Rolldown,
1378
- * neither of which runs Lingui's Babel macro transform, so call sites pass the
1379
- * English string as the id directly.
1380
- */
1377
+ * Hook returning a `t` bound to the nearest `StudioI18nProvider` (or the
1378
+ * shared instance when there's none). This is the runtime stand-in for Lingui's
1379
+ * `t` macro — the studio builds with esbuild and tests under Vite 8/Rolldown,
1380
+ * neither of which runs Lingui's Babel macro transform, so call sites pass the
1381
+ * English string as the id directly.
1382
+ */
1381
1383
  declare const useT: () => TFunction;
1382
1384
  interface StudioI18nProviderProps {
1383
1385
  /** Catalogs to register in addition to the built-in English one. */
@@ -1389,15 +1391,10 @@ interface StudioI18nProviderProps {
1389
1391
  readonly locale?: string;
1390
1392
  }
1391
1393
  /**
1392
- * Provides a studio-scoped Lingui instance to `useT`. Nesting is safe:
1393
- * providers sharing the same instance resolve to the same context value.
1394
- */
1395
- declare const StudioI18nProvider: ({
1396
- catalogs,
1397
- children,
1398
- i18n,
1399
- locale
1400
- }: StudioI18nProviderProps) => ReactElement;
1394
+ * Provides a studio-scoped Lingui instance to `useT`. Nesting is safe:
1395
+ * providers sharing the same instance resolve to the same context value.
1396
+ */
1397
+ declare const StudioI18nProvider: ({ catalogs, children, i18n, locale }: StudioI18nProviderProps) => ReactElement;
1401
1398
  /** Root class the batteries-included app sets so the studio styles stay scoped. */
1402
1399
  declare const STUDIO_ROOT_CLASS = "lunora-studio-root";
1403
- export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX, type AggregateMetrics, ApiDocsPanel, type ApiDocsPanelProps, ApiReferencePanel, type ApiReferencePanelProps, ApiTab, type ApiTabProps, type AuditEntry, type AuditLogResult, AuditPanel, type AuditPanelProps, type CacheStats, type CapturedMailResult, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmButton, type ConfirmButtonProps, ConnectionBadge, DEFAULT_AUTO_REFRESH_MS, DEFAULT_INSIGHT_THRESHOLDS, DEFAULT_LOCALE, DataBrowser, type DataBrowserProps, DataFilters, type DeployInfo, type EditableFilter, ErrorBoundary, type ErrorBoundaryProps, ExportImportPanel, type ExportImportPanelProps, type ExportRow, FileBrowser, type FileBrowserProps, type FilterClause, type FilterOperator, type FunctionCallStat, type FunctionDescriptor, FunctionRunner, type FunctionRunnerProps, FunctionStatsPanel, type FunctionStatsPanelProps, type FunctionStatsResult, GlobalDataBrowser, type GlobalDataBrowserProps, HealthPanel, type HealthPanelProps, HomePanel, type HomePanelProps, type ImportError, type ImportShardResult, type Insight, type InsightKind, type InsightSeverity, type InsightThresholds, InsightsPanel, type InsightsPanelProps, type LogEntry, type LogLevel, LogsPanel, type LogsPanelProps, type LogsResult, MailPanel, type MailPanelProps, type MessageId, MetricsPanel, type MetricsPanelProps, type MigrationDirection, type MigrationRunResult, type MigrationStatus, type MigrationStatusRow, MigrationsPanel, type MigrationsPanelProps, OpenRpcReferencePanel, type OpenRpcReferencePanelProps, PitrPanel, type PitrPanelProps, type RunMigrationArgs, STUDIO_ROOT_CLASS, SchemaViewer, type SchemaViewerProps, SecurityAdvisorPanel, type SecurityAuditResult, type SecurityFinding, type SecurityFindingKind, type SecurityFindingLevel, type SettingEntry, type SettingKind, SettingsPanel, type SettingsPanelProps, type SettingsResult, ShardInput, type ShardInputProps, type ShardMetrics, type ShardMetricsResult, SqlEditorPanel, type SqlEditorPanelProps, type StudioCatalogs, StudioI18nProvider, type StudioI18nProviderProps, type TFunction, TableEditor, type TableEditorProps, type TableIndexInfo, type TableIndexesResult, type TableInfo, type TablePage, type WriteRowArgs, type WriteRowOp, type WriteRowResult, aggregateMetrics, createStudioI18n, deriveInsights, openCommandPalette, shardsToAggregate, studioI18n, toFilterClauses, useAutoRefresh, useDebounced, useT };
1400
+ export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX, type AggregateMetrics, ApiDocsPanel, type ApiDocsPanelProps, ApiReferencePanel, type ApiReferencePanelProps, ApiTab, type ApiTabProps, type AuditEntry, type AuditLogResult, AuditPanel, type AuditPanelProps, type CacheStats, type CapturedMailResult, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmButton, type ConfirmButtonProps, ConnectionBadge, DEFAULT_AUTO_REFRESH_MS, DEFAULT_INSIGHT_THRESHOLDS, DEFAULT_LOCALE, DataBrowser, type DataBrowserProps, DataFilters, type DeployInfo, DeploymentHealthPanel, type DeploymentHealthPanelProps, type DeploymentHealthProbe, type EditableFilter, ErrorBoundary, type ErrorBoundaryProps, ExportImportPanel, type ExportImportPanelProps, type ExportRow, FileBrowser, type FileBrowserProps, type FilterClause, type FilterOperator, type FunctionCallStat, type FunctionDescriptor, FunctionRunner, type FunctionRunnerProps, FunctionStatsPanel, type FunctionStatsPanelProps, type FunctionStatsResult, GlobalDataBrowser, type GlobalDataBrowserProps, HealthPanel, type HealthPanelProps, HomePanel, type HomePanelProps, type ImportError, type ImportShardResult, type Insight, type InsightKind, type InsightSeverity, type InsightThresholds, InsightsPanel, type InsightsPanelProps, type LogEntry, type LogLevel, LogsPanel, type LogsPanelProps, type LogsResult, MailPanel, type MailPanelProps, type MessageId, MetricsPanel, type MetricsPanelProps, type MigrationDirection, type MigrationRunResult, type MigrationStatus, type MigrationStatusRow, MigrationsPanel, type MigrationsPanelProps, NotificationsPanel, OpenRpcReferencePanel, type OpenRpcReferencePanelProps, PitrPanel, type PitrPanelProps, type ProbeSnapshot, type RunMigrationArgs, STUDIO_ROOT_CLASS, SchemaViewer, type SchemaViewerProps, SecurityAdvisorPanel, type SecurityAuditResult, type SecurityFinding, type SecurityFindingKind, type SecurityFindingLevel, type SettingEntry, type SettingKind, SettingsPanel, type SettingsPanelProps, type SettingsResult, ShardInput, type ShardInputProps, type ShardMetrics, type ShardMetricsResult, SqlEditorPanel, type SqlEditorPanelProps, type StudioCatalogs, StudioI18nProvider, type StudioI18nProviderProps, type StudioTab, type TFunction, TableEditor, type TableEditorProps, type TableIndexInfo, type TableIndexesResult, type TableInfo, type TablePage, type WriteRowArgs, type WriteRowOp, type WriteRowResult, aggregateMetrics, createStudioI18n, deriveInsights, openCommandPalette, shardsToAggregate, studioI18n, toFilterClauses, useAutoRefresh, useDebounced, useT };