@lunora/studio 1.0.0-alpha.36 → 1.0.0-alpha.360
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.
- package/LICENSE.md +6 -0
- package/README.md +4 -4
- package/dist/index.d.mts +1621 -0
- package/dist/index.d.ts +1013 -809
- package/dist/index.mjs +1 -0
- package/dist/mount.d.mts +23 -0
- package/dist/mount.d.ts +13 -11
- package/dist/mount.mjs +1 -0
- package/dist/packem_chunks/AdvisorHealthPanel.mjs +1 -0
- package/dist/packem_chunks/ApiTab.mjs +1 -0
- package/dist/packem_chunks/AuditPanel.mjs +1 -0
- package/dist/packem_chunks/DeploymentHealthPanel.mjs +1 -0
- package/dist/packem_chunks/ExportImportPanel.mjs +8 -0
- package/dist/packem_chunks/FileBrowser.mjs +4 -0
- package/dist/packem_chunks/FunctionRunner.mjs +1 -0
- package/dist/packem_chunks/FunctionStatsPanel.mjs +1 -0
- package/dist/packem_chunks/HealthPanel.mjs +1 -0
- package/dist/packem_chunks/InsightsPanel.mjs +1 -0
- package/dist/packem_chunks/LogsPanel.mjs +1 -0
- package/dist/packem_chunks/MailPanel.mjs +2 -0
- package/dist/packem_chunks/MetricsPanel.mjs +1 -0
- package/dist/packem_chunks/NotificationsPanel.mjs +1 -0
- package/dist/packem_chunks/PitrPanel.mjs +1 -0
- package/dist/packem_chunks/SchemaViewer.mjs +1 -0
- package/dist/packem_chunks/SecurityAdvisorPanel.mjs +1 -0
- package/dist/packem_chunks/SettingsPanel.mjs +1 -0
- package/dist/packem_chunks/SqlEditorPanel.mjs +10 -0
- package/dist/packem_chunks/TableEditor.mjs +1 -0
- package/dist/packem_chunks/agents-panel.mjs +1 -0
- package/dist/packem_chunks/ai-usage-panel.mjs +1 -0
- package/dist/packem_chunks/analytics-panel.mjs +1 -0
- package/dist/packem_chunks/architecture-panel.mjs +1 -0
- package/dist/packem_chunks/auth-audit-panel.mjs +1 -0
- package/dist/packem_chunks/auth-config-panel.mjs +1 -0
- package/dist/packem_chunks/auth-sessions-panel.mjs +1 -0
- package/dist/packem_chunks/containers-panel.mjs +1 -0
- package/dist/packem_chunks/dashboards-panel.mjs +1 -0
- package/dist/packem_chunks/evals-panel.mjs +1 -0
- package/dist/packem_chunks/fanout-panel.mjs +1 -0
- package/dist/packem_chunks/flags-panel.mjs +1 -0
- package/dist/packem_chunks/issues-panel.mjs +1 -0
- package/dist/packem_chunks/kv-browser.mjs +1 -0
- package/dist/packem_chunks/log-drains-panel.mjs +4 -0
- package/dist/packem_chunks/migrations-route.mjs +1 -0
- package/dist/packem_chunks/organizations-panel.mjs +1 -0
- package/dist/packem_chunks/payments-panel.mjs +1 -0
- package/dist/packem_chunks/permissions-panel.mjs +1 -0
- package/dist/packem_chunks/privacy-requests-panel.mjs +1 -0
- package/dist/packem_chunks/queues-panel.mjs +1 -0
- package/dist/packem_chunks/reactors-panel.mjs +1 -0
- package/dist/packem_chunks/rls-panel.mjs +1 -0
- package/dist/packem_chunks/schedule-panel.mjs +1 -0
- package/dist/packem_chunks/storage-rules-panel.mjs +1 -0
- package/dist/packem_chunks/subscriptions-panel.mjs +1 -0
- package/dist/packem_chunks/sync-client-panel.mjs +1 -0
- package/dist/packem_chunks/theme-indicator.mjs +1 -0
- package/dist/packem_chunks/traces-panel.mjs +1 -0
- package/dist/packem_chunks/users-panel.mjs +1 -0
- package/dist/packem_chunks/vector-browser.mjs +1 -0
- package/dist/packem_chunks/workflows-panel.mjs +1 -0
- package/dist/packem_shared/ADMIN_FUNCTIONS-4aGsMs95.mjs +1 -0
- package/dist/packem_shared/ApiDocsPanel-DD2Uns6b.mjs +2 -0
- package/dist/packem_shared/ApiReferencePanel-CQxU1Ocx.mjs +1 -0
- package/dist/packem_shared/CommandPalette-BZCHLpst.mjs +1 -0
- package/dist/packem_shared/ConfirmButton-CIXYF6Mg.mjs +1 -0
- package/dist/packem_shared/ConnectionBadge-BfcoN-VE.mjs +1 -0
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Py5Yx7rP.mjs +1 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-D5YMT0gM.mjs +1 -0
- package/dist/packem_shared/DEFAULT_LOCALE-BQ3jRT74.mjs +1 -0
- package/dist/packem_shared/DataBrowser-CVRWnNWu.mjs +4 -0
- package/dist/packem_shared/DataFilters--ocFTVT2.mjs +1 -0
- package/dist/packem_shared/ErrorBoundary-BWNF98VF.mjs +1 -0
- package/dist/packem_shared/GlobalDataBrowser-DC47T6Zl.mjs +1 -0
- package/dist/packem_shared/HomePanel-D12HxHQo.mjs +1 -0
- package/dist/packem_shared/MigrationsPanel-DMkxSXNl.mjs +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-BFDG91tn.mjs +1 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.mjs +1 -0
- package/dist/packem_shared/ScheduledJobs-QCTRdugp.mjs +1 -0
- package/dist/packem_shared/ShardInput-CoySruKZ.mjs +1 -0
- package/dist/packem_shared/Studio-MA8kKZLu.mjs +1 -0
- package/dist/packem_shared/StudioApp-isdWpF9P.mjs +1 -0
- package/dist/packem_shared/StudioI18nProvider-CGXCPnQn.mjs +1 -0
- package/dist/packem_shared/advisor-view-tBumWci_.mjs +1 -0
- package/dist/packem_shared/aggregateMetrics-DKFJc-o5.mjs +1 -0
- package/dist/packem_shared/alert-PB5W11MM.mjs +1 -0
- package/dist/packem_shared/app.d-D425h1XO.d.mts +352 -0
- package/dist/packem_shared/app.d-D425h1XO.d.ts +352 -0
- package/dist/packem_shared/auth-pager-DW77WeZw.mjs +1 -0
- package/dist/packem_shared/badge-r_5B4LHP.mjs +1 -0
- package/dist/packem_shared/bar-chart-BCsEIQoQ.mjs +6 -0
- package/dist/packem_shared/browser-storage-BH1MxLZs.mjs +1 -0
- package/dist/packem_shared/button-q0UYSmrn.mjs +1 -0
- package/dist/packem_shared/card-By2O8ULa.mjs +1 -0
- package/dist/packem_shared/cf-links-CBJ5SywP.mjs +1 -0
- package/dist/packem_shared/checkbox-CnS9cyCz.mjs +1 -0
- package/dist/packem_shared/control-button-BOZ5K-FC.mjs +1 -0
- package/dist/packem_shared/data-grid-B5m1OosL.mjs +1 -0
- package/dist/packem_shared/data-view-params-C-_G-biH.mjs +1 -0
- package/dist/packem_shared/diagram-export-panel-Vdt-DZnO.mjs +2 -0
- package/dist/packem_shared/dropdown-menu-jLZenfWH.mjs +2 -0
- package/dist/packem_shared/empty-state-D7jEML_T.mjs +1 -0
- package/dist/packem_shared/error-alert-C0R39DO1.mjs +1 -0
- package/dist/packem_shared/grid-features-Drvfswwy.mjs +6 -0
- package/dist/packem_shared/grid-pagination-DY2erU65.mjs +1 -0
- package/dist/packem_shared/home-panel-CDVTuTF8.mjs +3 -0
- package/dist/packem_shared/input-CXhxesPC.mjs +1 -0
- package/dist/packem_shared/internal-hIuTpSbx.mjs +2 -0
- package/dist/packem_shared/label-DKFzyHq6.mjs +1 -0
- package/dist/packem_shared/live-status-D1GasNsH.mjs +1 -0
- package/dist/packem_shared/log-fields-BolUoZ9g.mjs +1 -0
- package/dist/packem_shared/log-line-BH0iWiBv.mjs +1 -0
- package/dist/packem_shared/metrics-format-1sNGG47R.mjs +1 -0
- package/dist/packem_shared/modal-shell-CDztwLnv.mjs +1 -0
- package/dist/packem_shared/operation-console-provider-DoloEvon.mjs +1 -0
- package/dist/packem_shared/recording-client-DAipTA_n.mjs +1 -0
- package/dist/packem_shared/reference-view-DENugPcj.mjs +13 -0
- package/dist/packem_shared/schema-diagram-CtVPhOGj.mjs +2 -0
- package/dist/packem_shared/scroll-area-CXCQH7VT.mjs +2 -0
- package/dist/packem_shared/select-DPyS18Vy.mjs +2 -0
- package/dist/packem_shared/shard-history-CaO3C4KQ.mjs +1 -0
- package/dist/packem_shared/shortcuts-B9gDaXmw.mjs +1 -0
- package/dist/packem_shared/skeleton-DX1gfixl.mjs +1 -0
- package/dist/packem_shared/sparkline-B_sPPO_8.mjs +1 -0
- package/dist/packem_shared/sql-result-table-DCwooMGW.mjs +1 -0
- package/dist/packem_shared/stat-card-BAv73QtB.mjs +1 -0
- package/dist/packem_shared/storage-tier-C2mKwYRj.mjs +1 -0
- package/dist/packem_shared/studio-UhUrPz5J.mjs +2 -0
- package/dist/packem_shared/table-D0SBiDu-.mjs +2 -0
- package/dist/packem_shared/table-list-sidebar-CNadcIgG.mjs +1 -0
- package/dist/packem_shared/textarea--40GKAyz.mjs +1 -0
- package/dist/packem_shared/trace-handoff-BV3EWqy_.mjs +1 -0
- package/dist/packem_shared/use-admin-query-CaOm4JS3.mjs +1 -0
- package/dist/packem_shared/use-admin-spec-CK7mk3Ui.mjs +1 -0
- package/dist/packem_shared/use-async-submit-D0r7-m2J.mjs +1 -0
- package/dist/packem_shared/use-auth-config-CG7VvAvQ.mjs +1 -0
- package/dist/packem_shared/use-mirrored-ref-CVDf2z1M.mjs +1 -0
- package/dist/packem_shared/use-open-trace-BJKMJjeS.mjs +1 -0
- package/dist/packem_shared/use-shard-key-BsP3o5wT.mjs +1 -0
- package/dist/packem_shared/use-sql-assistant-rZPs3LC3.mjs +1 -0
- package/dist/packem_shared/use-studio-client-DCA50tF2.mjs +1 -0
- package/dist/packem_shared/useDebounced-DVeQ5-oW.mjs +1 -0
- package/dist/packem_shared/utils-bhneXptQ.mjs +1 -0
- package/dist/packem_shared/virtual-rect-D_j7aLxX.mjs +1 -0
- package/dist/standalone/chunk-2AH4ABE5.js +1 -0
- package/dist/standalone/chunk-2G57ENH5.js +1 -0
- package/dist/standalone/chunk-3FS22LNI.js +4 -0
- package/dist/standalone/chunk-3GXPALXG.js +1 -0
- package/dist/standalone/chunk-3GYLOE4V.js +1 -0
- package/dist/standalone/chunk-3PAYDWHN.js +8 -0
- package/dist/standalone/chunk-473JK2PQ.js +1 -0
- package/dist/standalone/chunk-4C4THJUD.js +1 -0
- package/dist/standalone/chunk-4DAKKAK7.js +1 -0
- package/dist/standalone/chunk-4M57OYFX.js +1 -0
- package/dist/standalone/chunk-4SQBAPY6.js +1 -0
- package/dist/standalone/chunk-5DNGK3NT.js +1 -0
- package/dist/standalone/chunk-5GIQ6C5N.js +1 -0
- package/dist/standalone/chunk-5R2YO7HF.js +4 -0
- package/dist/standalone/chunk-5WJG7FMH.js +1 -0
- package/dist/standalone/chunk-63KDHS3H.js +1 -0
- package/dist/standalone/chunk-6B6ARRMI.js +1 -0
- package/dist/standalone/chunk-6LMO2D54.js +1 -0
- package/dist/standalone/chunk-6M7FLLMT.js +1 -0
- package/dist/standalone/chunk-6QEXGYWH.js +1 -0
- package/dist/standalone/chunk-6UTZXEW3.js +1 -0
- package/dist/standalone/chunk-6VAY6L4J.js +1 -0
- package/dist/standalone/chunk-7PADVGQX.js +1 -0
- package/dist/standalone/chunk-7RGYCU6F.js +1 -0
- package/dist/standalone/chunk-7UM5ROG6.js +1 -0
- package/dist/standalone/chunk-7ZIYHKLX.js +5 -0
- package/dist/standalone/chunk-A566HCBX.js +1 -0
- package/dist/standalone/chunk-A5JISKHE.js +1 -0
- package/dist/standalone/chunk-ADNRFCMZ.js +1 -0
- package/dist/standalone/chunk-AP4PC2M4.js +1 -0
- package/dist/standalone/chunk-BFE2DRP6.js +33 -0
- package/dist/standalone/chunk-BPEB4KFE.js +1 -0
- package/dist/standalone/chunk-BVX45MU5.js +7 -0
- package/dist/standalone/chunk-BYOGQ2IV.js +3 -0
- package/dist/standalone/chunk-C6GN7ZXJ.js +1 -0
- package/dist/standalone/chunk-CL2VZNDI.js +1 -0
- package/dist/standalone/chunk-CNA3TVUK.js +1 -0
- package/dist/standalone/chunk-CZ6HBDIL.js +1 -0
- package/dist/standalone/chunk-D6S7MXW4.js +1 -0
- package/dist/standalone/chunk-DBVJ5VLI.js +1 -0
- package/dist/standalone/chunk-DX55P3KZ.js +1 -0
- package/dist/standalone/chunk-E26OT26O.js +1 -0
- package/dist/standalone/chunk-FCAXVYAX.js +1 -0
- package/dist/standalone/chunk-FXPAJDES.js +1 -0
- package/dist/standalone/chunk-H7HZ42JY.js +1 -0
- package/dist/standalone/chunk-HHRYM6UW.js +1 -0
- package/dist/standalone/chunk-HPRF5LMA.js +1 -0
- package/dist/standalone/chunk-IB22LETR.js +1 -0
- package/dist/standalone/chunk-IBJVVHV5.js +1 -0
- package/dist/standalone/chunk-IENQRRQT.js +1 -0
- package/dist/standalone/chunk-IH2CJZF2.js +1 -0
- package/dist/standalone/chunk-IQ4TTHQT.js +1 -0
- package/dist/standalone/chunk-ITH5LRWM.js +1 -0
- package/dist/standalone/chunk-J6VFG6M5.js +1 -0
- package/dist/standalone/chunk-JSDKOE4U.js +1 -0
- package/dist/standalone/chunk-JTGGWF7R.js +1 -0
- package/dist/standalone/chunk-JZD7ZN3F.js +1 -0
- package/dist/standalone/chunk-K3CWB3AM.js +1 -0
- package/dist/standalone/chunk-KNFB3FGW.js +1 -0
- package/dist/standalone/chunk-KNXWDE4N.js +1 -0
- package/dist/standalone/chunk-KRPXOSBL.js +1 -0
- package/dist/standalone/chunk-KRY7BYHT.js +1 -0
- package/dist/standalone/chunk-KYAG2YMF.js +1 -0
- package/dist/standalone/chunk-KZCEJFZF.js +1 -0
- package/dist/standalone/chunk-KZILJQX3.js +8 -0
- package/dist/standalone/chunk-LEYUH5TS.js +1 -0
- package/dist/standalone/chunk-LFM672WN.js +1 -0
- package/dist/standalone/chunk-LIGOLZND.js +1 -0
- package/dist/standalone/chunk-LPU6YTSU.js +1 -0
- package/dist/standalone/chunk-LUHXNZI4.js +2 -0
- package/dist/standalone/chunk-MWJC3S62.js +1 -0
- package/dist/standalone/chunk-NGVP66OH.js +1 -0
- package/dist/standalone/chunk-NP2AQOLE.js +1 -0
- package/dist/standalone/chunk-NVKLYDOH.js +1 -0
- package/dist/standalone/chunk-O2NMPIV2.js +59 -0
- package/dist/standalone/chunk-O2X2XYCM.js +1 -0
- package/dist/standalone/chunk-O3MDWYXF.js +1 -0
- package/dist/standalone/chunk-ONG4JEZD.js +1 -0
- package/dist/standalone/chunk-ONWGX5Y4.js +6 -0
- package/dist/standalone/chunk-OS26JXYA.js +1 -0
- package/dist/standalone/chunk-OXFKZ4BM.js +1 -0
- package/dist/standalone/chunk-PGTEGUAB.js +1 -0
- package/dist/standalone/chunk-PQH2LSJX.js +1 -0
- package/dist/standalone/chunk-PTBUWRBY.js +1 -0
- package/dist/standalone/chunk-Q6HA3L2H.js +1 -0
- package/dist/standalone/chunk-QGV5ARD2.js +1 -0
- package/dist/standalone/chunk-QWRK4ESB.js +1 -0
- package/dist/standalone/chunk-R36QXQZX.js +1 -0
- package/dist/standalone/chunk-RL2ITK2N.js +1 -0
- package/dist/standalone/chunk-RTJO3AR4.js +1 -0
- package/dist/standalone/chunk-SFY646MC.js +1 -0
- package/dist/standalone/chunk-SLIDAWNX.js +1 -0
- package/dist/standalone/chunk-SU5DTRGK.js +3 -0
- package/dist/standalone/{chunk-BJGBHGK3.js → chunk-SYGCASPT.js} +1 -1
- package/dist/standalone/chunk-T5UMHPAB.js +1 -0
- package/dist/standalone/chunk-T6HV2FQP.js +2 -0
- package/dist/standalone/chunk-T7ZKNNGX.js +1 -0
- package/dist/standalone/chunk-TCYPNSTV.js +1 -0
- package/dist/standalone/chunk-TDVDZ7XQ.js +1 -0
- package/dist/standalone/chunk-TQM6XHBA.js +1 -0
- package/dist/standalone/chunk-TRMWBRRU.js +1 -0
- package/dist/standalone/chunk-TW7KJSMR.js +15 -0
- package/dist/standalone/chunk-TYD3V4NB.js +1 -0
- package/dist/standalone/chunk-TZKLK52W.js +1 -0
- package/dist/standalone/chunk-U4RXQSQ7.js +1 -0
- package/dist/standalone/chunk-UNZ2UBVL.js +1 -0
- package/dist/standalone/chunk-UYEZR3BI.js +1 -0
- package/dist/standalone/chunk-VEWQWS3J.js +1 -0
- package/dist/standalone/chunk-VJRNOSRY.js +1 -0
- package/dist/standalone/chunk-W2BCSK5S.js +1 -0
- package/dist/standalone/chunk-W7MRISE3.js +1 -0
- package/dist/standalone/chunk-WM72PRE3.js +1 -0
- package/dist/standalone/chunk-WS36BO4R.js +1 -0
- package/dist/standalone/chunk-X4WHMCOZ.js +1 -0
- package/dist/standalone/chunk-X74GEPSG.js +1 -0
- package/dist/standalone/chunk-XIRKBJPD.js +14 -0
- package/dist/standalone/chunk-XKPD4SFN.js +1 -0
- package/dist/standalone/chunk-XMSNLMWU.js +1 -0
- package/dist/standalone/chunk-XOPFDWXX.js +1 -0
- package/dist/standalone/chunk-XQLOVFPP.js +1 -0
- package/dist/standalone/chunk-XSHYZPGF.js +1 -0
- package/dist/standalone/chunk-XST3UEHU.js +1 -0
- package/dist/standalone/chunk-XYR5NST4.js +1 -0
- package/dist/standalone/chunk-Y74LIFSL.js +1 -0
- package/dist/standalone/chunk-YHTHRYP5.js +1 -0
- package/dist/standalone/chunk-YMEKCV27.js +1 -0
- package/dist/standalone/chunk-Z5EV64KS.js +1 -0
- package/dist/standalone/chunk-ZBON5T5A.js +1 -0
- package/dist/standalone/chunk-ZGSL4DPP.js +1 -0
- package/dist/standalone/chunk-ZOQTXWPK.js +1 -0
- package/dist/standalone/chunk-ZTOREMGH.js +1 -0
- package/dist/standalone/chunk-ZZ5GICTF.js +1 -0
- package/dist/standalone/studio.js +9 -214
- package/dist/styles.css +2 -2
- package/package.json +26 -22
- package/dist/index.js +0 -41
- package/dist/mount.js +0 -27
- package/dist/packem_chunks/ApiTab.js +0 -251
- package/dist/packem_chunks/AuditPanel.js +0 -200
- package/dist/packem_chunks/ExportImportPanel.js +0 -198
- package/dist/packem_chunks/FileBrowser.js +0 -2932
- package/dist/packem_chunks/FunctionRunner.js +0 -343
- package/dist/packem_chunks/FunctionStatsPanel.js +0 -377
- package/dist/packem_chunks/HealthPanel.js +0 -648
- package/dist/packem_chunks/InsightsPanel.js +0 -462
- package/dist/packem_chunks/LogsPanel.js +0 -827
- package/dist/packem_chunks/MailPanel.js +0 -353
- package/dist/packem_chunks/MetricsPanel.js +0 -1344
- package/dist/packem_chunks/MigrationsPanel.js +0 -239
- package/dist/packem_chunks/PitrPanel.js +0 -252
- package/dist/packem_chunks/SchemaViewer.js +0 -2513
- package/dist/packem_chunks/SecurityAdvisorPanel.js +0 -95
- package/dist/packem_chunks/SettingsPanel.js +0 -391
- package/dist/packem_chunks/SqlEditorPanel.js +0 -2323
- package/dist/packem_chunks/TableEditor.js +0 -313
- package/dist/packem_chunks/analytics-panel.js +0 -261
- package/dist/packem_chunks/auth-config-panel.js +0 -179
- package/dist/packem_chunks/auth-sessions-panel.js +0 -175
- package/dist/packem_chunks/containers-panel.js +0 -247
- package/dist/packem_chunks/dashboards-panel.js +0 -780
- package/dist/packem_chunks/fanout-panel.js +0 -482
- package/dist/packem_chunks/flags-panel.js +0 -176
- package/dist/packem_chunks/kv-browser.js +0 -1896
- package/dist/packem_chunks/log-drains-panel.js +0 -273
- package/dist/packem_chunks/organizations-panel.js +0 -670
- package/dist/packem_chunks/payments-panel.js +0 -186
- package/dist/packem_chunks/permissions-panel.js +0 -805
- package/dist/packem_chunks/queues-panel.js +0 -1052
- package/dist/packem_chunks/rls-panel.js +0 -315
- package/dist/packem_chunks/schedule-panel.js +0 -831
- package/dist/packem_chunks/sparkline.js +0 -79
- package/dist/packem_chunks/storage-rules-panel.js +0 -140
- package/dist/packem_chunks/subscriptions-panel.js +0 -238
- package/dist/packem_chunks/users-panel.js +0 -1265
- package/dist/packem_chunks/vector-browser.js +0 -281
- package/dist/packem_chunks/workflows-panel.js +0 -562
- package/dist/packem_shared/ADMIN_FUNCTIONS-BHHJi3Gb.js +0 -52
- package/dist/packem_shared/ApiDocsPanel-D4CJf2ad.js +0 -842
- package/dist/packem_shared/ApiReferencePanel-Co_wpRF2.js +0 -230
- package/dist/packem_shared/CommandPalette-BUPpbpMc.js +0 -373
- package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
- package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
- package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
- package/dist/packem_shared/DataBrowser-BeVNxSVm.js +0 -4493
- package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
- package/dist/packem_shared/GlobalDataBrowser-ErfvIs1S.js +0 -289
- package/dist/packem_shared/HomePanel-D9MQk8I7.js +0 -14
- package/dist/packem_shared/OpenRpcReferencePanel-DLWzrIx9.js +0 -192
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
- package/dist/packem_shared/ScheduledJobs-ClaNpZsg.js +0 -262
- package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
- package/dist/packem_shared/Studio-C48P1K5W.js +0 -16
- package/dist/packem_shared/StudioApp-Cqh-SYm2.js +0 -657
- package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
- package/dist/packem_shared/advisor-view-D3-U4kRR.js +0 -159
- package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
- package/dist/packem_shared/alert-CdAET2K_.js +0 -68
- package/dist/packem_shared/app.d-CNLRTrWw.d.ts +0 -300
- package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
- package/dist/packem_shared/bar-chart-DSwcWIRy.js +0 -3246
- package/dist/packem_shared/browser-storage-tLOxkIHd.js +0 -185
- package/dist/packem_shared/button-BhsN2uZH.js +0 -49
- package/dist/packem_shared/card-DURq3ElK.js +0 -175
- package/dist/packem_shared/cf-links-BZfRdxSE.js +0 -8
- package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
- package/dist/packem_shared/data-grid-Jz8FqQ2C.js +0 -183
- package/dist/packem_shared/data-view-params-Cd6yRVbv.js +0 -96
- package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
- package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
- package/dist/packem_shared/error-alert-BBT6D22d.js +0 -114
- package/dist/packem_shared/grid-features-CUr8Z1_O.js +0 -745
- package/dist/packem_shared/home-panel-CoGxi-oj.js +0 -1639
- package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
- package/dist/packem_shared/internal-DTsYVn-g.js +0 -97
- package/dist/packem_shared/label-D8ykjn5J.js +0 -46
- package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
- package/dist/packem_shared/modal-shell-hyaJvIJ6.js +0 -100
- package/dist/packem_shared/reference-view-CSKyUyPl.js +0 -2141
- package/dist/packem_shared/scroll-area-DLhcy-ml.js +0 -93
- package/dist/packem_shared/select-UkNYCT3s.js +0 -273
- package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
- package/dist/packem_shared/skeleton-CGhL0p20.js +0 -45
- package/dist/packem_shared/sparkline-BnA1kC9X.js +0 -93
- package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
- package/dist/packem_shared/studio-CPHA_-3I.js +0 -4015
- package/dist/packem_shared/table-DsCa9Qp9.js +0 -246
- package/dist/packem_shared/table-list-sidebar-B5psdSV1.js +0 -832
- package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
- package/dist/packem_shared/use-admin-query-BHPKmPuj.js +0 -106
- package/dist/packem_shared/use-auth-capabilities-C-VH0oJJ.js +0 -32
- package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
- package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
- package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
- package/dist/standalone/chunk-22W5VKZ6.js +0 -1
- package/dist/standalone/chunk-2GGMGPEP.js +0 -1
- package/dist/standalone/chunk-2K47A3P6.js +0 -1
- package/dist/standalone/chunk-2NGUNNGW.js +0 -1
- package/dist/standalone/chunk-2THHW7BC.js +0 -1
- package/dist/standalone/chunk-3CJW6NWG.js +0 -4
- package/dist/standalone/chunk-3OA7PECS.js +0 -6
- package/dist/standalone/chunk-46K3NKPA.js +0 -1
- package/dist/standalone/chunk-4QHKBC77.js +0 -1
- package/dist/standalone/chunk-5OH3VPZF.js +0 -1
- package/dist/standalone/chunk-5OIBXYZM.js +0 -1
- package/dist/standalone/chunk-6GFEVKJP.js +0 -1
- package/dist/standalone/chunk-6WRZP62V.js +0 -1
- package/dist/standalone/chunk-764T6X6X.js +0 -1
- package/dist/standalone/chunk-7SLSB2TS.js +0 -4
- package/dist/standalone/chunk-7TJJXVSE.js +0 -1
- package/dist/standalone/chunk-7VF3IAAW.js +0 -2
- package/dist/standalone/chunk-AHILM3ZP.js +0 -1
- package/dist/standalone/chunk-AJIUI7DD.js +0 -1
- package/dist/standalone/chunk-ATYUMPDM.js +0 -1
- package/dist/standalone/chunk-BACPICH6.js +0 -1
- package/dist/standalone/chunk-BI35RXKQ.js +0 -1
- package/dist/standalone/chunk-BOXSWNXZ.js +0 -1
- package/dist/standalone/chunk-BQUQS7QN.js +0 -1
- package/dist/standalone/chunk-CKSHCYGC.js +0 -2
- package/dist/standalone/chunk-DC72CQY4.js +0 -76
- package/dist/standalone/chunk-DORBUITF.js +0 -1
- package/dist/standalone/chunk-DVC6YWVP.js +0 -1
- package/dist/standalone/chunk-DVKPRFIJ.js +0 -1
- package/dist/standalone/chunk-DWDILV2E.js +0 -1
- package/dist/standalone/chunk-DWTBY343.js +0 -1
- package/dist/standalone/chunk-EUIHTPKI.js +0 -1
- package/dist/standalone/chunk-FCSPAJW4.js +0 -1
- package/dist/standalone/chunk-GMSGZDDH.js +0 -13
- package/dist/standalone/chunk-GTM65MVX.js +0 -1
- package/dist/standalone/chunk-HV7G6DFP.js +0 -5
- package/dist/standalone/chunk-ILCTSAOB.js +0 -1
- package/dist/standalone/chunk-IOFMK4D7.js +0 -1
- package/dist/standalone/chunk-J6J54MBP.js +0 -1
- package/dist/standalone/chunk-JE2YOAB7.js +0 -4
- package/dist/standalone/chunk-JSEXCW5Q.js +0 -1
- package/dist/standalone/chunk-K3GNLVYK.js +0 -1
- package/dist/standalone/chunk-KEGAWN6Y.js +0 -1
- package/dist/standalone/chunk-KJJ3WM6H.js +0 -4
- package/dist/standalone/chunk-KZ6INM5M.js +0 -1
- package/dist/standalone/chunk-LAK5VSPI.js +0 -1
- package/dist/standalone/chunk-LD2R263D.js +0 -1
- package/dist/standalone/chunk-LI43EKM6.js +0 -1
- package/dist/standalone/chunk-M55U7NHO.js +0 -1
- package/dist/standalone/chunk-MPTM7ZU3.js +0 -3
- package/dist/standalone/chunk-MPYFGAOW.js +0 -1
- package/dist/standalone/chunk-NKJDGOM3.js +0 -1
- package/dist/standalone/chunk-O3NAGRTR.js +0 -1
- package/dist/standalone/chunk-OCHNCAXJ.js +0 -1
- package/dist/standalone/chunk-OIZ4CHPN.js +0 -8
- package/dist/standalone/chunk-OY3GVYS7.js +0 -4
- package/dist/standalone/chunk-PACH5AHG.js +0 -1
- package/dist/standalone/chunk-PN5NCZDX.js +0 -1
- package/dist/standalone/chunk-PVZI3CXP.js +0 -19
- package/dist/standalone/chunk-PZ7HD5T2.js +0 -1
- package/dist/standalone/chunk-Q52CHOSY.js +0 -1
- package/dist/standalone/chunk-QAFAJBAW.js +0 -1
- package/dist/standalone/chunk-QBAT52GB.js +0 -1
- package/dist/standalone/chunk-QLM6FYZW.js +0 -2
- package/dist/standalone/chunk-RRAFQ5G2.js +0 -1
- package/dist/standalone/chunk-RRCPZMC2.js +0 -22
- package/dist/standalone/chunk-RSEEHNFI.js +0 -1
- package/dist/standalone/chunk-SEU5V7I6.js +0 -1
- package/dist/standalone/chunk-SG3ALJJU.js +0 -1
- package/dist/standalone/chunk-SLKF2L74.js +0 -1
- package/dist/standalone/chunk-TAD43CG5.js +0 -1
- package/dist/standalone/chunk-TBMYIZIO.js +0 -1
- package/dist/standalone/chunk-TDL7NEWA.js +0 -1
- package/dist/standalone/chunk-TO4JQX7W.js +0 -1
- package/dist/standalone/chunk-TOJ3TC35.js +0 -1
- package/dist/standalone/chunk-TQ36RWOP.js +0 -1
- package/dist/standalone/chunk-U4OAQPBT.js +0 -1
- package/dist/standalone/chunk-UK64ZSUW.js +0 -1
- package/dist/standalone/chunk-VLXV72QE.js +0 -1
- package/dist/standalone/chunk-VTGBPW24.js +0 -1
- package/dist/standalone/chunk-WI7GWFEG.js +0 -1
- package/dist/standalone/chunk-WXPWVBIY.js +0 -1
- package/dist/standalone/chunk-X5P2WRYI.js +0 -1
- package/dist/standalone/chunk-X7MMBSNW.js +0 -1
- package/dist/standalone/chunk-XLQ4BHBD.js +0 -1
- package/dist/standalone/chunk-XNJNSCLM.js +0 -1
- package/dist/standalone/chunk-XUGSA2NG.js +0 -1
- package/dist/standalone/chunk-Y2ZPNDL7.js +0 -4
- package/dist/standalone/chunk-YAECF5LW.js +0 -1
- package/dist/standalone/chunk-YEVCU7TB.js +0 -13
- package/dist/standalone/chunk-ZHVTQ37P.js +0 -1
- package/dist/standalone/chunk-ZIGWVHCS.js +0 -1
- package/dist/standalone/chunk-ZPP2KOR4.js +0 -1
- package/dist/standalone/chunk-ZPUO7FNI.js +0 -1
- package/dist/standalone/chunk-ZU4DZ6NK.js +0 -1
- package/dist/standalone/chunk-ZYRGPDZB.js +0 -1
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { LunoraAdminClient } from '@lunora/client/admin';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import { I18n } from '@lingui/core';
|
|
4
|
+
import { FunctionUsagePanel, AnalyticsSqlQueryResult } from '@lunora/bindings/analytics-sql';
|
|
5
|
+
import { CronJobInfo, ScheduleRecord } from '@lunora/client';
|
|
6
|
+
interface AnalyticsPanelProps {
|
|
7
|
+
/**
|
|
8
|
+
* Resolve one usage panel. The panel sends only its key; the host's runner
|
|
9
|
+
* calls an action that builds the statement server-side with
|
|
10
|
+
* `functionUsageQuery(panel)` from `@lunora/bindings/analytics-sql` and runs it
|
|
11
|
+
* through `ctx.analyticsSql`. That action reads account analytics, so it must
|
|
12
|
+
* be admin-gated, and it must take the panel key, never SQL: an action that
|
|
13
|
+
* ran caller-supplied SQL could read every dataset in the account. Studio passes
|
|
14
|
+
* its analyticsSqlQuery prop through here; with none, the panel renders an empty
|
|
15
|
+
* state and makes no network call.
|
|
16
|
+
*/
|
|
17
|
+
readonly runQuery?: (panel: FunctionUsagePanel) => Promise<AnalyticsSqlQueryResult>;
|
|
18
|
+
}
|
|
19
|
+
interface CronTriggersPanelProps {
|
|
20
|
+
/**
|
|
21
|
+
* Load the code-defined cron triggers. Defaults to `client.getCronJobs`,
|
|
22
|
+
* which hits the worker's admin-gated `/_lunora/admin/cron-jobs` endpoint —
|
|
23
|
+
* so the panel works out of the box under `<LunoraProvider>`, provided the
|
|
24
|
+
* worker is built with a `cronJobs` map and `adminToken`. Override it to
|
|
25
|
+
* source triggers from elsewhere (e.g. tests).
|
|
26
|
+
*/
|
|
27
|
+
readonly loadCronJobs?: () => Promise<CronJobInfo[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Manually fire one cron job by name. Defaults to `client.runCronJob`, which
|
|
30
|
+
* hits the admin-gated `POST /_lunora/admin/cron-jobs/run` endpoint (the same
|
|
31
|
+
* dispatch the scheduled trigger runs). When a custom {@link CronTriggersPanelProps.loadCronJobs}
|
|
32
|
+
* is supplied without a `runCronJob`, the "Run now" control is hidden — useful
|
|
33
|
+
* for a read-only view.
|
|
34
|
+
*/
|
|
35
|
+
readonly runCronJob?: (name: string) => Promise<{
|
|
36
|
+
name: string;
|
|
37
|
+
ran: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
interface ScheduledJobsProps {
|
|
41
|
+
/**
|
|
42
|
+
* Cancel a pending job by id. Defaults to `client.cancelScheduledJob` when
|
|
43
|
+
* {@link ScheduledJobsProps.loadJobs} is also left to the client. When a
|
|
44
|
+
* custom `loadJobs` is supplied without a `cancelJob`, the cancel control is
|
|
45
|
+
* hidden — useful for a read-only view.
|
|
46
|
+
*/
|
|
47
|
+
readonly cancelJob?: (id: string) => Promise<{
|
|
48
|
+
cancelled: boolean;
|
|
49
|
+
}>;
|
|
50
|
+
/**
|
|
51
|
+
* Load the pending scheduled jobs. Defaults to `client.listScheduledJobs`,
|
|
52
|
+
* which hits the worker's admin-gated `/_lunora/admin/scheduled` endpoint —
|
|
53
|
+
* so the panel works out of the box under `<LunoraProvider>`, provided the
|
|
54
|
+
* worker is built with a `schedulerDO` namespace and `adminToken`. Override
|
|
55
|
+
* it to source jobs from elsewhere.
|
|
56
|
+
*/
|
|
57
|
+
readonly loadJobs?: () => Promise<ScheduleRecord[]>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* View — and cancel — the functions queued via `runAfter` / `runAt` on the
|
|
61
|
+
* scheduler. Cron *triggers* are static wrangler config and don't appear here;
|
|
62
|
+
* this lists the dynamic, in-flight schedule only.
|
|
63
|
+
*
|
|
64
|
+
* Works out of the box under `<LunoraProvider>` via the client's scheduler
|
|
65
|
+
* admin methods; pass {@link ScheduledJobsProps.loadJobs} /
|
|
66
|
+
* {@link ScheduledJobsProps.cancelJob} to override the transport.
|
|
67
|
+
*/
|
|
68
|
+
declare const ScheduledJobs: ({ cancelJob, loadJobs }?: ScheduledJobsProps) => ReactElement;
|
|
69
|
+
interface SchedulePanelProps {
|
|
70
|
+
/** Override how the Cron triggers sub-view loads triggers; see {@link CronTriggersPanel}. */
|
|
71
|
+
readonly loadCronJobs?: CronTriggersPanelProps["loadCronJobs"];
|
|
72
|
+
/** Override how the Scheduled jobs sub-view cancels a job; see {@link ScheduledJobs}. */
|
|
73
|
+
readonly scheduledCancel?: ScheduledJobsProps["cancelJob"];
|
|
74
|
+
/** Override how the Scheduled jobs sub-view loads jobs; see {@link ScheduledJobs}. */
|
|
75
|
+
readonly scheduledLoad?: ScheduledJobsProps["loadJobs"];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The statuses a privacy request moves through, and which of them are terminal.
|
|
79
|
+
*
|
|
80
|
+
* `@lunora/privacy` stores them and the Studio's Privacy requests page renders them.
|
|
81
|
+
* The Studio must not depend on the runtime package, so both read the list from here
|
|
82
|
+
* and the bundler inlines it into each. A status added here reaches both, and the
|
|
83
|
+
* Studio's exhaustive badge map fails to compile until it has a variant.
|
|
84
|
+
*/
|
|
85
|
+
/** Every status, in lifecycle order. */
|
|
86
|
+
declare const REQUEST_STATUSES: readonly ["received", "grace", "processing", "ready", "completed", "failed", "cancelled", "expired"];
|
|
87
|
+
type RequestStatus = (typeof REQUEST_STATUSES)[number];
|
|
88
|
+
type RequestType = "erasure" | "export";
|
|
89
|
+
/**
|
|
90
|
+
* Timestamps are epoch milliseconds. `extendedDueAt` is set only when the deadline was extended, so
|
|
91
|
+
* the effective deadline is `extendedDueAt ?? dueAt`.
|
|
92
|
+
*/
|
|
93
|
+
interface PrivacyRequestRow {
|
|
94
|
+
readonly dueAt: number;
|
|
95
|
+
readonly extendedDueAt?: null | number;
|
|
96
|
+
readonly id: string;
|
|
97
|
+
readonly receivedAt: number;
|
|
98
|
+
readonly status: RequestStatus;
|
|
99
|
+
readonly subjectId: string;
|
|
100
|
+
readonly type: RequestType;
|
|
101
|
+
}
|
|
102
|
+
/** What the Studio's Privacy requests page reads and writes. */
|
|
103
|
+
interface PrivacyRequestsSource {
|
|
104
|
+
/** The open requests, in any order; the page sorts nothing. */
|
|
105
|
+
listOpenPrivacyRequests: () => Promise<ReadonlyArray<PrivacyRequestRow>>;
|
|
106
|
+
/** Re-run a failed request. Rejects with the server's message on failure. */
|
|
107
|
+
retryPrivacyRequest: (id: string) => Promise<unknown>;
|
|
108
|
+
}
|
|
109
|
+
/** Which client method a {@link FunctionDescriptor} is invoked through. */
|
|
110
|
+
type FunctionKind = "action" | "mutation" | "query";
|
|
111
|
+
/**
|
|
112
|
+
* One argument of a registered function, derived from its `v.*` validator by the
|
|
113
|
+
* worker's `/_lunora/admin/functions` endpoint. A compact signature shape.
|
|
114
|
+
*/
|
|
115
|
+
interface FunctionArgumentDescriptor {
|
|
116
|
+
/** Element validator kind for an `array` arg (one level), e.g. `string`. */
|
|
117
|
+
element?: string;
|
|
118
|
+
/** The (optional-unwrapped) validator kind, e.g. `string`, `id`, `object`. */
|
|
119
|
+
kind: string;
|
|
120
|
+
/** The argument name. */
|
|
121
|
+
name: string;
|
|
122
|
+
/** True when the arg is wrapped in `v.optional(...)`. */
|
|
123
|
+
optional: boolean;
|
|
124
|
+
/** True when the arg is marked `v.sensitive`: its value is never kept in run history. */
|
|
125
|
+
sensitive?: true;
|
|
126
|
+
/** Target table for an `id` arg (`v.id("table")`). */
|
|
127
|
+
table?: string;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Runtime descriptor for a registered Lunora function. The function's `kind` is
|
|
131
|
+
* a compile-time-only phantom on `FunctionReference`, so the runner needs it
|
|
132
|
+
* spelled out here to know which client method to call. `args` carries the
|
|
133
|
+
* function's argument signature (absent on responses from an older worker).
|
|
134
|
+
*/
|
|
135
|
+
interface FunctionDescriptor {
|
|
136
|
+
args?: FunctionArgumentDescriptor[];
|
|
137
|
+
kind: FunctionKind;
|
|
138
|
+
/** The `<file>:<function>` identifier, e.g. `messages:list`. */
|
|
139
|
+
path: string;
|
|
140
|
+
}
|
|
141
|
+
/** Outcome of a single `FunctionRunner` invocation. */
|
|
142
|
+
type RunStatus = "error" | "idle" | "running" | "success";
|
|
143
|
+
interface StudioProps {
|
|
144
|
+
/**
|
|
145
|
+
* Resolve one Analytics tab panel by its key (`"volume"`, `"latency"`,
|
|
146
|
+
* `"hotShards"`). Supply a runner that calls an action in your app which
|
|
147
|
+
* builds the statement server-side and runs it through `ctx.analyticsSql`:
|
|
148
|
+
*
|
|
149
|
+
* ```ts
|
|
150
|
+
* // lunora/studio-analytics.ts
|
|
151
|
+
* export const usagePanel = action.input({ panel: v.string() }).action(async ({ args, ctx }) => {
|
|
152
|
+
* assertAdmin(ctx); // your own admin check: this reads account analytics
|
|
153
|
+
* if (!isFunctionUsagePanel(args.panel)) throw new LunoraError("BAD_REQUEST", "unknown panel");
|
|
154
|
+
* const { params, query } = functionUsageQuery(args.panel);
|
|
155
|
+
* return ctx.analyticsSql.query(query, params);
|
|
156
|
+
* });
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* The action MUST be admin-gated and MUST take the panel key, never SQL: an
|
|
160
|
+
* action running caller-supplied SQL could read every dataset in the account.
|
|
161
|
+
* Without a runner the Analytics tab renders an empty state and issues no
|
|
162
|
+
* request.
|
|
163
|
+
*
|
|
164
|
+
* Pass a STABLE reference — a module-level function, or one held in a
|
|
165
|
+
* `useCallback`/ref. It is read while building the tab router, so a fresh
|
|
166
|
+
* inline arrow on every render rebuilds the router and remounts the panel
|
|
167
|
+
* tree, losing in-progress query state. The same holds for `scheduledLoad`,
|
|
168
|
+
* `scheduledCancel` and `scheduledCron`.
|
|
169
|
+
*/
|
|
170
|
+
readonly analyticsSqlQuery?: AnalyticsPanelProps["runQuery"];
|
|
171
|
+
/**
|
|
172
|
+
* URL path prefix the studio is mounted under, passed to the router as its
|
|
173
|
+
* `basepath`. Defaults to `/` (mounted at the origin root). The `@lunora/vite`
|
|
174
|
+
* dev route serves the studio under `/__lunora`, so it sets this — without
|
|
175
|
+
* it the router treats `/__lunora` as unknown and bounces to `/data`, escaping
|
|
176
|
+
* the mount.
|
|
177
|
+
*/
|
|
178
|
+
readonly basePath?: string;
|
|
179
|
+
/**
|
|
180
|
+
* App-owned top-bar + sidebar-footer chrome (theme toggle, admin-token
|
|
181
|
+
* popover, rules banner). The batteries-included `StudioApp` supplies
|
|
182
|
+
* this; composing `<Studio>` bare omits those affordances. See {@link StudioChrome}.
|
|
183
|
+
*/
|
|
184
|
+
readonly chrome?: StudioChrome;
|
|
185
|
+
/**
|
|
186
|
+
* Show the data tab's write controls (insert/edit/delete rows). Off by
|
|
187
|
+
* default; see {@link TableEditor}.
|
|
188
|
+
*
|
|
189
|
+
* **This HIDES THE CONTROLS. It does not make anything read-only.** The
|
|
190
|
+
* write RPCs are gated server-side by `LUNORA_ADMIN_TOKEN` alone — one
|
|
191
|
+
* all-or-nothing check in `handleAdminRpc`, with no read/write scoping — and
|
|
192
|
+
* `renderStudioHtml({ adminToken })` already ships that bearer to the
|
|
193
|
+
* browser. So a viewer handed a studio deployed with `dataEditable: false`
|
|
194
|
+
* still holds a credential that can write; the buttons are simply absent
|
|
195
|
+
* from the page. Treat it as an affordance switch for a trusted operator,
|
|
196
|
+
* never as an authorization boundary. The same holds for
|
|
197
|
+
* {@link StudioProps.schemaEditable} and {@link StudioProps.runAsIdentity}.
|
|
198
|
+
*/
|
|
199
|
+
readonly dataEditable?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Functions exposed in the runner tab. The runner tab only appears when at
|
|
202
|
+
* least one descriptor is supplied (a query/mutation/action's `kind` is
|
|
203
|
+
* compile-time-only, so it must be named here).
|
|
204
|
+
*/
|
|
205
|
+
readonly functions?: FunctionDescriptor[];
|
|
206
|
+
/** Reuse an existing Lingui instance (wins over `locale`). */
|
|
207
|
+
readonly i18n?: I18n;
|
|
208
|
+
/** Shard key every shard-scoped panel targets on first load. */
|
|
209
|
+
readonly initialShardKey?: string;
|
|
210
|
+
/** Active locale for the studio's own UI strings. Defaults to `en`. */
|
|
211
|
+
readonly locale?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Inline OpenAPI 3.1 document rendered by the API tab's reference sub-view.
|
|
214
|
+
* Thread the generated `_generated/openapi.json` here to render it
|
|
215
|
+
* without a round-trip. When omitted the reference fetches the worker's
|
|
216
|
+
* admin-gated `GET /_lunora/admin/openapi` endpoint via the client.
|
|
217
|
+
*/
|
|
218
|
+
readonly openApiSpec?: unknown;
|
|
219
|
+
/**
|
|
220
|
+
* Inline OpenRPC 1.x document rendered by the API tab's reference sub-view
|
|
221
|
+
* when the OpenRPC format is selected. Thread the generated
|
|
222
|
+
* `_generated/openrpc.json` here to render it without a round-trip. When
|
|
223
|
+
* omitted the OpenRPC view fetches the worker's admin-gated
|
|
224
|
+
* `GET /_lunora/admin/openrpc` endpoint via the client.
|
|
225
|
+
*/
|
|
226
|
+
readonly openRpcSpec?: unknown;
|
|
227
|
+
/**
|
|
228
|
+
* The app's data-subject request source for the Privacy requests page, built
|
|
229
|
+
* from the app's own admin functions (`listOpenPrivacyRequests`,
|
|
230
|
+
* `retryPrivacyRequest`). Without one the page renders a "not configured" state
|
|
231
|
+
* and issues no request. Pass a STABLE reference, as for `analyticsSqlQuery`.
|
|
232
|
+
*/
|
|
233
|
+
readonly privacyRequests?: PrivacyRequestsSource;
|
|
234
|
+
/**
|
|
235
|
+
* Allow the function runner to execute a function AS a chosen authenticated
|
|
236
|
+
* identity (the "Run as identity" tool), so an operator can test auth + RLS
|
|
237
|
+
* behavior. Security-sensitive: it forges identity on an admin-gated RPC, so
|
|
238
|
+
* the host MUST set this only on a trusted loopback-dev gate (the same gate
|
|
239
|
+
* as `dataEditable`) — never in a production/static deploy. Off by default;
|
|
240
|
+
* see {@link FunctionRunner}.
|
|
241
|
+
*
|
|
242
|
+
* Like {@link StudioProps.dataEditable}, leaving it off only hides the tool.
|
|
243
|
+
* The RPC behind it stays reachable to anyone holding the admin token the
|
|
244
|
+
* page already carries — the gate is the token, not this flag.
|
|
245
|
+
*/
|
|
246
|
+
readonly runAsIdentity?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Override how the schedule tab cancels a job. Defaults to the client's
|
|
249
|
+
* scheduler admin endpoint; see {@link SchedulePanel}.
|
|
250
|
+
*/
|
|
251
|
+
readonly scheduledCancel?: SchedulePanelProps["scheduledCancel"];
|
|
252
|
+
/**
|
|
253
|
+
* Override how the schedule tab's Cron triggers sub-view loads triggers.
|
|
254
|
+
* Defaults to the client's `/_lunora/admin/cron-jobs` endpoint; see
|
|
255
|
+
* {@link SchedulePanel}.
|
|
256
|
+
*/
|
|
257
|
+
readonly scheduledCron?: SchedulePanelProps["loadCronJobs"];
|
|
258
|
+
/**
|
|
259
|
+
* Override how the schedule tab loads jobs. Defaults to the client's
|
|
260
|
+
* scheduler admin endpoint, so the tab works without extra wiring.
|
|
261
|
+
*/
|
|
262
|
+
readonly scheduledLoad?: SchedulePanelProps["scheduledLoad"];
|
|
263
|
+
/**
|
|
264
|
+
* Show the visual schema editor overlay on the schema diagram (add table /
|
|
265
|
+
* column / index, written back to `lunora/schema.ts` + codegen). Off by
|
|
266
|
+
* default. Only the loopback-only dev hosts set this — the write path needs
|
|
267
|
+
* the project's filesystem + toolchain, so a static deploy leaves it off.
|
|
268
|
+
*
|
|
269
|
+
* Like {@link StudioProps.dataEditable}, it hides the overlay rather than
|
|
270
|
+
* making the diagram read-only: what actually stops a schema write in a
|
|
271
|
+
* static deploy is that the host has no filesystem to write to, not this
|
|
272
|
+
* flag.
|
|
273
|
+
*/
|
|
274
|
+
readonly schemaEditable?: boolean;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Top-bar + sidebar-footer chrome the `StudioApp` owns (theme + admin
|
|
278
|
+
* token state, the rules banner) but which renders *inside* the router-owned
|
|
279
|
+
* {@link StudioLayout} (the header and sidebar footer). The layout is a route
|
|
280
|
+
* component with no props, so it reads this from context rather than threading
|
|
281
|
+
* it through the router. Absent (composing `<Studio>` bare) the layout simply
|
|
282
|
+
* omits those affordances.
|
|
283
|
+
*/
|
|
284
|
+
interface StudioChrome {
|
|
285
|
+
readonly clearToken: () => void;
|
|
286
|
+
readonly onTokenChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
287
|
+
readonly rulesInstalled?: boolean;
|
|
288
|
+
readonly token: string;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* The composable studio. {@link StudioShell} reads its strings from `useT`,
|
|
292
|
+
* which needs a `StudioI18nProvider` above it.
|
|
293
|
+
*
|
|
294
|
+
* When an `i18n` instance or a `locale` is supplied, this owns a provider so the
|
|
295
|
+
* studio localises itself standalone. When neither is given it renders the
|
|
296
|
+
* shell bare and inherits whatever provider is already in scope — the host app's
|
|
297
|
+
* (`StudioApp` owns one for the top bar too) or the shared default — instead
|
|
298
|
+
* of nesting a second, redundant provider.
|
|
299
|
+
*/
|
|
300
|
+
declare const Studio: ({ i18n, locale, ...shellProps }: StudioProps) => ReactElement;
|
|
301
|
+
interface StudioAppProps {
|
|
302
|
+
/**
|
|
303
|
+
* Admin bearer token to send with every admin request. When omitted the app
|
|
304
|
+
* renders a small prompt so an operator can paste it at runtime — handy in
|
|
305
|
+
* dev where you don't want to bake the token into a bundle.
|
|
306
|
+
*/
|
|
307
|
+
readonly adminToken?: string;
|
|
308
|
+
/**
|
|
309
|
+
* URL path prefix the studio is mounted under (router `basepath`). Defaults
|
|
310
|
+
* to `/`. The `@lunora/vite` dev route sets `/__lunora`. Forwarded to the
|
|
311
|
+
* composed {@link Studio}.
|
|
312
|
+
*/
|
|
313
|
+
readonly basePath?: string;
|
|
314
|
+
/**
|
|
315
|
+
* Base URL of the Lunora worker the studio talks to. Defaults to the
|
|
316
|
+
* current origin, which is correct when the studio is served from the
|
|
317
|
+
* same worker (the `@lunora/vite` dev route) or proxied to it.
|
|
318
|
+
*/
|
|
319
|
+
readonly baseUrl?: string;
|
|
320
|
+
/**
|
|
321
|
+
* Inject a pre-built client instead of constructing one from `baseUrl` +
|
|
322
|
+
* the admin token. Used by the dev mock harness (and embeddings that own
|
|
323
|
+
* the client) so the chrome renders against a supplied client; when set,
|
|
324
|
+
* `baseUrl`/`adminToken` are ignored and this client is never closed here.
|
|
325
|
+
*/
|
|
326
|
+
readonly client?: LunoraAdminClient;
|
|
327
|
+
/** UI language for the studio's own strings. Defaults to `en`. */
|
|
328
|
+
readonly locale?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Whether the project's Lunora agent skills ("rules") are installed. When
|
|
331
|
+
* explicitly `false`, the studio shows a one-line banner pointing at
|
|
332
|
+
* `lunora rules install`. The loopback dev hosts inject this; a static deploy
|
|
333
|
+
* leaves it unset (no banner).
|
|
334
|
+
*/
|
|
335
|
+
readonly rulesInstalled?: boolean;
|
|
336
|
+
/** Forwarded to the composed {@link Studio} (functions, initialShardKey, scheduled overrides). */
|
|
337
|
+
readonly studio?: Omit<StudioProps, "children" | "chrome" | "i18n" | "locale">;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* A fully self-contained studio page: it constructs a {@link LunoraAdminClient}
|
|
341
|
+
* pointed at the worker, wires it through a `<LunoraProvider>`, manages the
|
|
342
|
+
* admin token + theme, and renders the composed {@link Studio} — handing it the
|
|
343
|
+
* top-bar/sidebar {@link StudioChrome} (theme toggle, admin-token popover, rules
|
|
344
|
+
* banner) so those affordances render inside the sidebar shell.
|
|
345
|
+
*
|
|
346
|
+
* Mount this directly (the standalone app and the `@lunora/vite` dev route both
|
|
347
|
+
* do) when you want the batteries-included page rather than composing panels
|
|
348
|
+
* yourself. For embedding into an existing admin UI, use the individual panels
|
|
349
|
+
* or `<Studio>` under your own provider instead.
|
|
350
|
+
*/
|
|
351
|
+
declare const StudioApp: ({ adminToken, basePath, baseUrl, client: injectedClient, rulesInstalled, studio, locale }?: StudioAppProps) => ReactElement;
|
|
352
|
+
export { FunctionDescriptor as F, PrivacyRequestRow as P, RunStatus as R, StudioAppProps as S, FunctionKind as a, PrivacyRequestsSource as b, ScheduledJobs as c, ScheduledJobsProps as d, Studio as e, StudioApp as f, StudioProps as g };
|