home-hosted 0.13.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -322
- package/bin/home-hosted.mjs +41 -0
- package/dist/chunks/account-DiLrSyww.js +359 -0
- package/dist/chunks/account-DiLrSyww.js.map +1 -0
- package/dist/chunks/add-DEIYVkNK.js +183 -0
- package/dist/chunks/add-DEIYVkNK.js.map +1 -0
- package/dist/chunks/{archive-DP-XQR8X.js → archive-DFi3qK1c.js} +25 -73
- package/dist/chunks/archive-DFi3qK1c.js.map +1 -0
- package/dist/chunks/{atomic-C1PfJpE7.js → atomic-SZUwDtGD.js} +3 -6
- package/dist/chunks/atomic-SZUwDtGD.js.map +1 -0
- package/dist/chunks/{backup-CZcVca2a.js → backup-DnyxIzw0.js} +110 -190
- package/dist/chunks/backup-DnyxIzw0.js.map +1 -0
- package/dist/chunks/backups-BrrN6cwW.js +2203 -0
- package/dist/chunks/backups-BrrN6cwW.js.map +1 -0
- package/dist/chunks/bind-DIxrnUst.js +43 -0
- package/dist/chunks/bind-DIxrnUst.js.map +1 -0
- package/dist/chunks/config-text-DxMOQQnk.js +34 -0
- package/dist/chunks/config-text-DxMOQQnk.js.map +1 -0
- package/dist/chunks/{contracts-CMBD1TF9.js → contracts-CxZ7u1L3.js} +1239 -1454
- package/dist/chunks/contracts-CxZ7u1L3.js.map +1 -0
- package/dist/chunks/daemon-BAAYUYQC.js +211 -0
- package/dist/chunks/daemon-BAAYUYQC.js.map +1 -0
- package/dist/chunks/daemon-log-Ccu-69vB.js +179 -0
- package/dist/chunks/daemon-log-Ccu-69vB.js.map +1 -0
- package/dist/chunks/deploy-CggSOEkq.js +144 -0
- package/dist/chunks/deploy-CggSOEkq.js.map +1 -0
- package/dist/chunks/{docker-Cy9Lyvda.js → docker--Un0uLfF.js} +32 -68
- package/dist/chunks/docker--Un0uLfF.js.map +1 -0
- package/dist/chunks/{down-pKbGCW9d.js → down-CpIN7LEQ.js} +34 -94
- package/dist/chunks/down-CpIN7LEQ.js.map +1 -0
- package/dist/chunks/exposure-CDJNvOCK.js +229 -0
- package/dist/chunks/exposure-CDJNvOCK.js.map +1 -0
- package/dist/chunks/import-Bd4VZH0f.js +205 -0
- package/dist/chunks/import-Bd4VZH0f.js.map +1 -0
- package/dist/chunks/import-plan--fDS_l5r.js +147 -0
- package/dist/chunks/import-plan--fDS_l5r.js.map +1 -0
- package/dist/chunks/import-write-BTfbeV26.js +42 -0
- package/dist/chunks/import-write-BTfbeV26.js.map +1 -0
- package/dist/chunks/{init-BZ7hK9Vf.js → init-Bv3oH65x.js} +14 -50
- package/dist/chunks/init-Bv3oH65x.js.map +1 -0
- package/dist/chunks/job-CYOdN6Ub.js +341 -0
- package/dist/chunks/job-CYOdN6Ub.js.map +1 -0
- package/dist/chunks/jobs-BX4ahcfh.js +489 -0
- package/dist/chunks/jobs-BX4ahcfh.js.map +1 -0
- package/dist/chunks/last-stop-DD3lHwo_.js +42 -0
- package/dist/chunks/last-stop-DD3lHwo_.js.map +1 -0
- package/dist/chunks/layout-D0ysDNav.js +18 -0
- package/dist/chunks/layout-D0ysDNav.js.map +1 -0
- package/dist/chunks/lazy-kfcBNeqj.js +48 -0
- package/dist/chunks/lazy-kfcBNeqj.js.map +1 -0
- package/dist/chunks/log-buffer-B7jmn7ts.js +110 -0
- package/dist/chunks/log-buffer-B7jmn7ts.js.map +1 -0
- package/dist/chunks/log-files-CZL2UhuE.js +488 -0
- package/dist/chunks/log-files-CZL2UhuE.js.map +1 -0
- package/dist/chunks/{logger-B5U4GD3j.js → logger-BnrKTBHQ.js} +2 -6
- package/dist/chunks/logger-BnrKTBHQ.js.map +1 -0
- package/dist/chunks/{logs---TI_bxM.js → logs-DxKI6OW2.js} +23 -73
- package/dist/chunks/logs-DxKI6OW2.js.map +1 -0
- package/dist/chunks/ls-BseUHy_m.js +128 -0
- package/dist/chunks/ls-BseUHy_m.js.map +1 -0
- package/dist/chunks/migrate-D4w_dXDm.js +268 -0
- package/dist/chunks/migrate-D4w_dXDm.js.map +1 -0
- package/dist/chunks/{nanny-B-Eu0sFW.js → nanny-BWh7nuvv.js} +21 -14
- package/dist/chunks/nanny-BWh7nuvv.js.map +1 -0
- package/dist/chunks/{nanny-ChMtq1Zl.js → nanny-BjF2-1pv.js} +3 -3
- package/dist/chunks/{nanny-ChMtq1Zl.js.map → nanny-BjF2-1pv.js.map} +1 -1
- package/dist/chunks/nanny-DGTXVq5d.js +806 -0
- package/dist/chunks/nanny-DGTXVq5d.js.map +1 -0
- package/dist/chunks/{nanny-sweep-DErnlPY1.js → nanny-sweep-hjmZ_p7S.js} +14 -24
- package/dist/chunks/nanny-sweep-hjmZ_p7S.js.map +1 -0
- package/dist/chunks/{nearest-6KgQEDUe.js → nearest-DOx4jySJ.js} +2 -10
- package/dist/chunks/nearest-DOx4jySJ.js.map +1 -0
- package/dist/chunks/{parse-DhmG26fI.js → parse-DVMPLUDe.js} +47 -72
- package/dist/chunks/parse-DVMPLUDe.js.map +1 -0
- package/dist/chunks/password-policy-Clq6PGE-.js +9 -0
- package/dist/chunks/password-policy-Clq6PGE-.js.map +1 -0
- package/dist/chunks/{paths-CGlGDrOU.js → paths-C34-TJLh.js} +32 -56
- package/dist/chunks/paths-C34-TJLh.js.map +1 -0
- package/dist/chunks/{port-B8WBTRMk.js → port-CnsrxKNR.js} +27 -71
- package/dist/chunks/port-CnsrxKNR.js.map +1 -0
- package/dist/chunks/process-CboOFPU_.js +192 -0
- package/dist/chunks/process-CboOFPU_.js.map +1 -0
- package/dist/chunks/{restart-Des4DrAN.js → restart-C0J8dZ2L.js} +11 -29
- package/dist/chunks/restart-C0J8dZ2L.js.map +1 -0
- package/dist/chunks/run-deploy-DoNDvwT4.js +91 -0
- package/dist/chunks/run-deploy-DoNDvwT4.js.map +1 -0
- package/dist/chunks/{schema-B240VXcV.js → schema-CZ6f-PHD.js} +7 -20
- package/dist/chunks/schema-CZ6f-PHD.js.map +1 -0
- package/dist/chunks/secret-MY397r90.js +219 -0
- package/dist/chunks/secret-MY397r90.js.map +1 -0
- package/dist/chunks/secrets-CG5N4lwY.js +1061 -0
- package/dist/chunks/secrets-CG5N4lwY.js.map +1 -0
- package/dist/chunks/server-Dm_dXfTW.js +255 -0
- package/dist/chunks/server-Dm_dXfTW.js.map +1 -0
- package/dist/chunks/server-attention-UQwYXqKe.js +10 -0
- package/dist/chunks/server-attention-UQwYXqKe.js.map +1 -0
- package/dist/chunks/server-create-D7nvhgBd.js +96 -0
- package/dist/chunks/server-create-D7nvhgBd.js.map +1 -0
- package/dist/chunks/server-ids-BEQD2rFz.js +23 -0
- package/dist/chunks/server-ids-BEQD2rFz.js.map +1 -0
- package/dist/chunks/server-vars-DMYmHutL.js +27 -0
- package/dist/chunks/server-vars-DMYmHutL.js.map +1 -0
- package/dist/chunks/service-C8l-ewNA.js +585 -0
- package/dist/chunks/service-C8l-ewNA.js.map +1 -0
- package/dist/chunks/{settings-xu-XTfWg.js → settings-CtYDs5PX.js} +62 -78
- package/dist/chunks/settings-CtYDs5PX.js.map +1 -0
- package/dist/chunks/{setup-temp-CAN4_bA-.js → setup-temp-TAtDmMMU.js} +43 -37
- package/dist/chunks/setup-temp-TAtDmMMU.js.map +1 -0
- package/dist/chunks/shape-CDGeYl_J.js +9 -0
- package/dist/chunks/shape-CDGeYl_J.js.map +1 -0
- package/dist/chunks/{src-BtWMFmzZ.js → src-BnzkVy_M.js} +12548 -10576
- package/dist/chunks/src-BnzkVy_M.js.map +1 -0
- package/dist/chunks/{status-DT1EsA-B.js → status-efbbfYZQ.js} +53 -26
- package/dist/chunks/status-efbbfYZQ.js.map +1 -0
- package/dist/chunks/store-Bs_Lljjm.js +2082 -0
- package/dist/chunks/store-Bs_Lljjm.js.map +1 -0
- package/dist/chunks/template-xan58bJh.js +28 -0
- package/dist/chunks/template-xan58bJh.js.map +1 -0
- package/dist/chunks/token-DDeWfZA4.js +142 -0
- package/dist/chunks/token-DDeWfZA4.js.map +1 -0
- package/dist/chunks/{ui-D562aqw5.js → ui-BcIAtyxE.js} +68 -79
- package/dist/chunks/ui-BcIAtyxE.js.map +1 -0
- package/dist/chunks/{ui-dir-CsU3uLNV.js → ui-dir-ClCzVRc3.js} +3 -7
- package/dist/chunks/ui-dir-ClCzVRc3.js.map +1 -0
- package/dist/chunks/ui-format-CDvvqOoi.js +53 -0
- package/dist/chunks/ui-format-CDvvqOoi.js.map +1 -0
- package/dist/chunks/{ui-release-DKzVvlLd.js → ui-release-XbJ85pYI.js} +36 -38
- package/dist/chunks/ui-release-XbJ85pYI.js.map +1 -0
- package/dist/chunks/{ui-revert-EkBBwRTt.js → ui-revert-Dgawq7ze.js} +4 -4
- package/dist/chunks/ui-revert-Dgawq7ze.js.map +1 -0
- package/dist/chunks/{ui-switch-BnZTdMDd.js → ui-switch-CfQMbZ0g.js} +31 -38
- package/dist/chunks/ui-switch-CfQMbZ0g.js.map +1 -0
- package/dist/chunks/{ui-update-_xryLYxw.js → ui-update-B3PPivUm.js} +30 -48
- package/dist/chunks/ui-update-B3PPivUm.js.map +1 -0
- package/dist/chunks/ui-update-CAiH2tFb.js +109 -0
- package/dist/chunks/ui-update-CAiH2tFb.js.map +1 -0
- package/dist/chunks/{up-Pdz-l6IH.js → up-BQSnYxYd.js} +47 -53
- package/dist/chunks/up-BQSnYxYd.js.map +1 -0
- package/dist/chunks/{usage-DFrCVXpT.js → usage-KG8TeOio.js} +7 -20
- package/dist/chunks/usage-KG8TeOio.js.map +1 -0
- package/dist/chunks/{workspaces-DYcfvKV_.js → workspaces-D9akpzU8.js} +80 -68
- package/dist/chunks/workspaces-D9akpzU8.js.map +1 -0
- package/dist/chunks/{wsl-temperature-BiCI4iK6.js → wsl-temperature-D-_d4Yk1.js} +47 -42
- package/dist/chunks/wsl-temperature-D-_d4Yk1.js.map +1 -0
- package/dist/cli.js +306 -238
- package/dist/cli.js.map +1 -1
- package/dist/client.js +76 -29
- package/dist/client.js.map +1 -1
- package/dist/types/api/acme.d.ts +3 -7
- package/dist/types/api/auth/$.routes.d.ts +107 -16
- package/dist/types/api/backups.d.ts +5 -5
- package/dist/types/api/control.d.ts +747 -38
- package/dist/types/api/ddns.d.ts +13 -18
- package/dist/types/api/events.d.ts +9 -3
- package/dist/types/api/health.d.ts +2 -4
- package/dist/types/api/jobs.d.ts +438 -0
- package/dist/types/api/logs.d.ts +20 -0
- package/dist/types/api/metrics.d.ts +2 -5
- package/dist/types/api/notifications.d.ts +3 -6
- package/dist/types/api/proxy.d.ts +63 -23
- package/dist/types/api/server-ops.d.ts +17 -0
- package/dist/types/api/servers/$.routes.d.ts +418 -186
- package/dist/types/api/session-required.d.ts +16 -0
- package/dist/types/api/settings.d.ts +7 -7
- package/dist/types/api/state.d.ts +100 -10
- package/dist/types/api/static.d.ts +2 -2
- package/dist/types/api/tls.d.ts +2 -5
- package/dist/types/api/workspaces/$.routes.d.ts +186 -12
- package/dist/types/api/wsl-temperature.d.ts +4 -10
- package/dist/types/app.d.ts +4511 -2778
- package/dist/types/cli/account.d.ts +23 -0
- package/dist/types/cli/add.d.ts +96 -0
- package/dist/types/cli/args.d.ts +24 -35
- package/dist/types/cli/backup-offline.d.ts +2 -8
- package/dist/types/cli/backup.d.ts +12 -21
- package/dist/types/cli/down.d.ts +15 -41
- package/dist/types/cli/import-plan.d.ts +55 -0
- package/dist/types/cli/import-write.d.ts +5 -0
- package/dist/types/cli/import.d.ts +86 -0
- package/dist/types/cli/io.d.ts +26 -35
- package/dist/types/cli/job.d.ts +99 -0
- package/dist/types/cli/logs.d.ts +1 -10
- package/dist/types/cli/ls.d.ts +57 -0
- package/dist/types/cli/migrate.d.ts +31 -8
- package/dist/types/cli/nearest.d.ts +1 -9
- package/dist/types/cli/run-deploy.d.ts +36 -0
- package/dist/types/cli/secret.d.ts +90 -0
- package/dist/types/cli/server.d.ts +6 -15
- package/dist/types/cli/service.d.ts +135 -0
- package/dist/types/cli/setup-temp.d.ts +17 -13
- package/dist/types/cli/status.d.ts +7 -1
- package/dist/types/cli/token.d.ts +6 -0
- package/dist/types/cli/ui-switch.d.ts +3 -14
- package/dist/types/cli/ui-update.d.ts +3 -16
- package/dist/types/cli/up.d.ts +9 -22
- package/dist/types/cli/usage.d.ts +2 -6
- package/dist/types/cli.d.ts +1 -10
- package/dist/types/client.d.ts +4099 -1142
- package/dist/types/config/accounts.d.ts +16 -0
- package/dist/types/config/jobs.d.ts +68 -0
- package/dist/types/config/layout.d.ts +2 -8
- package/dist/types/config/migrations.d.ts +9 -41
- package/dist/types/config/parse.d.ts +8 -13
- package/dist/types/config/patch.d.ts +1 -6
- package/dist/types/config/schema.d.ts +16 -18
- package/dist/types/config/secret-parts.d.ts +6 -27
- package/dist/types/config/secrets.d.ts +167 -88
- package/dist/types/config/seed.d.ts +1 -6
- package/dist/types/config/server-ids.d.ts +2 -11
- package/dist/types/config/settings.d.ts +13 -49
- package/dist/types/config/store.d.ts +17 -54
- package/dist/types/config/workspaces.d.ts +24 -56
- package/dist/types/helpers/action-result.d.ts +18 -32
- package/dist/types/helpers/atomic.d.ts +1 -4
- package/dist/types/helpers/backoff.d.ts +0 -1
- package/dist/types/helpers/bind.d.ts +3 -11
- package/dist/types/helpers/config-text.d.ts +4 -19
- package/dist/types/helpers/cookies.d.ts +2 -7
- package/dist/types/helpers/copy-tree.d.ts +4 -12
- package/dist/types/helpers/daemon-log.d.ts +8 -33
- package/dist/types/helpers/daemon.d.ts +20 -70
- package/dist/types/helpers/deferred.d.ts +2 -4
- package/dist/types/helpers/env-file.d.ts +2 -7
- package/dist/types/helpers/error.d.ts +3 -14
- package/dist/types/helpers/event-stream.d.ts +18 -10
- package/dist/types/helpers/factory.d.ts +2 -3
- package/dist/types/helpers/last-stop.d.ts +5 -12
- package/dist/types/helpers/logger.d.ts +1 -5
- package/dist/types/helpers/open.d.ts +0 -1
- package/dist/types/helpers/openapi.d.ts +19 -5
- package/dist/types/helpers/paths.d.ts +18 -53
- package/dist/types/helpers/restore-lock.d.ts +2 -17
- package/dist/types/helpers/runtime.d.ts +3 -13
- package/dist/types/helpers/secret-compare.d.ts +2 -10
- package/dist/types/helpers/server-create.d.ts +15 -0
- package/dist/types/helpers/shell.d.ts +2 -16
- package/dist/types/helpers/sse.d.ts +8 -6
- package/dist/types/helpers/ui-dir.d.ts +1 -5
- package/dist/types/helpers/utf8-chunks.d.ts +2 -8
- package/dist/types/helpers/validate.d.ts +2 -4
- package/dist/types/helpers/validator.d.ts +8 -4
- package/dist/types/helpers/version.d.ts +1 -6
- package/dist/types/helpers/workspace.d.ts +24 -16
- package/dist/types/index.d.ts +2 -3
- package/dist/types/middleware/auth.d.ts +8 -27
- package/dist/types/middleware/body-limit.d.ts +10 -0
- package/dist/types/middleware/host.d.ts +4 -23
- package/dist/types/middleware/loopback.d.ts +1 -8
- package/dist/types/middleware/token-scope.d.ts +34 -0
- package/dist/types/node-compat.d.ts +43 -0
- package/dist/types/openapi-reference.d.ts +4 -19
- package/dist/types/openapi.d.ts +5 -8
- package/dist/types/providers/archive.d.ts +8 -25
- package/dist/types/providers/backup-hook.d.ts +4 -19
- package/dist/types/providers/ddns/dyndns2.d.ts +0 -3
- package/dist/types/providers/ddns/index.d.ts +2 -3
- package/dist/types/providers/ddns/ip.d.ts +2 -12
- package/dist/types/providers/ddns/namecheap-api.d.ts +3 -2
- package/dist/types/providers/ddns/types.d.ts +6 -32
- package/dist/types/providers/ddns/zone.d.ts +1 -4
- package/dist/types/providers/docker.d.ts +18 -45
- package/dist/types/providers/entry-state.d.ts +4 -9
- package/dist/types/providers/health-check.d.ts +1 -5
- package/dist/types/providers/host.d.ts +33 -108
- package/dist/types/providers/identity.d.ts +9 -34
- package/dist/types/providers/log-tail.d.ts +14 -24
- package/dist/types/providers/nanny-sweep.d.ts +8 -25
- package/dist/types/providers/nanny.d.ts +16 -58
- package/dist/types/providers/port.d.ts +28 -83
- package/dist/types/providers/proc.d.ts +22 -80
- package/dist/types/providers/process.d.ts +12 -36
- package/dist/types/providers/proxy/admin.d.ts +11 -0
- package/dist/types/providers/proxy/types.d.ts +4 -16
- package/dist/types/providers/telegram.d.ts +1 -17
- package/dist/types/providers/ui-release.d.ts +15 -25
- package/dist/types/providers/webhook.d.ts +8 -29
- package/dist/types/providers/wsl-temperature.d.ts +13 -22
- package/dist/types/services/acme-challenge.d.ts +2 -16
- package/dist/types/services/auth.d.ts +65 -80
- package/dist/types/services/backups/archive-safety.d.ts +30 -0
- package/dist/types/services/backups/paths.d.ts +31 -0
- package/dist/types/services/backups.d.ts +61 -271
- package/dist/types/services/config-watch.d.ts +3 -15
- package/dist/types/services/control-server.d.ts +6 -10
- package/dist/types/services/ddns.d.ts +12 -13
- package/dist/types/services/dependencies.d.ts +3 -14
- package/dist/types/services/deploy.d.ts +34 -0
- package/dist/types/services/events.d.ts +15 -9
- package/dist/types/services/exposure.d.ts +13 -63
- package/dist/types/services/history.d.ts +5 -14
- package/dist/types/services/host-monitor.d.ts +6 -11
- package/dist/types/services/init.d.ts +5 -35
- package/dist/types/services/job-ledger.d.ts +27 -0
- package/dist/types/services/jobs.d.ts +113 -0
- package/dist/types/services/log-buffer.d.ts +7 -8
- package/dist/types/services/log-files.d.ts +12 -42
- package/dist/types/services/log-relay.d.ts +3 -13
- package/dist/types/services/nanny.d.ts +3 -10
- package/dist/types/services/notifications.d.ts +31 -61
- package/dist/types/services/panel.d.ts +32 -78
- package/dist/types/services/proxy-certificates/certificates.d.ts +31 -69
- package/dist/types/services/proxy-config.d.ts +15 -36
- package/dist/types/services/proxy-dns01.d.ts +14 -0
- package/dist/types/services/proxy.d.ts +73 -254
- package/dist/types/services/scheduler.d.ts +46 -0
- package/dist/types/services/state.d.ts +17 -8
- package/dist/types/services/supervisor/compose.d.ts +2 -6
- package/dist/types/services/supervisor/entry.d.ts +29 -32
- package/dist/types/services/supervisor/health.d.ts +8 -31
- package/dist/types/services/supervisor/job-run.d.ts +36 -0
- package/dist/types/services/supervisor/output.d.ts +13 -77
- package/dist/types/services/supervisor/persistent.d.ts +5 -11
- package/dist/types/services/supervisor/port-preflight.d.ts +4 -10
- package/dist/types/services/supervisor/records.d.ts +27 -60
- package/dist/types/services/supervisor/restart-required.d.ts +13 -0
- package/dist/types/services/supervisor/spawn.d.ts +3 -5
- package/dist/types/services/supervisor/view.d.ts +3 -1
- package/dist/types/services/supervisor.d.ts +31 -43
- package/dist/types/services/tls.d.ts +6 -17
- package/dist/types/services/ui-update.d.ts +19 -17
- package/dist/types/services/ui.d.ts +10 -19
- package/dist/types/shared/action-outcome.d.ts +2 -7
- package/dist/types/shared/api-client.d.ts +133 -177
- package/dist/types/shared/api-scopes.d.ts +17 -0
- package/dist/types/shared/backup-scope.d.ts +16 -90
- package/dist/types/shared/clone.d.ts +2 -11
- package/dist/types/shared/contracts/accounts.d.ts +99 -0
- package/dist/types/shared/contracts/backups.d.ts +219 -0
- package/dist/types/shared/contracts/ddns.d.ts +208 -0
- package/dist/types/shared/contracts/frames.d.ts +1395 -0
- package/dist/types/shared/contracts/index.d.ts +3 -0
- package/dist/types/shared/contracts/logs.d.ts +107 -0
- package/dist/types/shared/contracts/proxy.d.ts +303 -0
- package/dist/types/shared/contracts.d.ts +852 -1982
- package/dist/types/shared/cpu-scale.d.ts +3 -19
- package/dist/types/shared/crash-cause.d.ts +8 -0
- package/dist/types/shared/cron.d.ts +70 -0
- package/dist/types/shared/ddns-form.d.ts +9 -43
- package/dist/types/shared/endpoint.d.ts +1 -7
- package/dist/types/shared/error-codes.d.ts +438 -0
- package/dist/types/shared/error-message.d.ts +1 -7
- package/dist/types/shared/fields.d.ts +7 -17
- package/dist/types/shared/form-repair.d.ts +1 -5
- package/dist/types/shared/generated.d.ts +3 -19
- package/dist/types/shared/host-readings.d.ts +25 -128
- package/dist/types/shared/lazy.d.ts +1 -1
- package/dist/types/shared/live-frames.d.ts +2 -8
- package/dist/types/shared/live-series.d.ts +2 -8
- package/dist/types/shared/live-store.d.ts +4 -8
- package/dist/types/shared/log-download.d.ts +6 -0
- package/dist/types/shared/meta.d.ts +6 -0
- package/dist/types/shared/password-policy.d.ts +10 -0
- package/dist/types/shared/patch-diff.d.ts +13 -72
- package/dist/types/shared/port-reading.d.ts +18 -0
- package/dist/types/shared/probe-latency.d.ts +3 -21
- package/dist/types/shared/proxy-form.d.ts +33 -74
- package/dist/types/shared/proxy-validate.d.ts +11 -0
- package/dist/types/shared/query-params.d.ts +8 -0
- package/dist/types/shared/server-attention.d.ts +2 -27
- package/dist/types/shared/server-form.d.ts +15 -54
- package/dist/types/shared/server-key.d.ts +1 -12
- package/dist/types/shared/server-readings.d.ts +7 -32
- package/dist/types/shared/server-url.d.ts +9 -31
- package/dist/types/shared/shape.d.ts +1 -16
- package/dist/types/shared/stream-access.d.ts +2 -8
- package/dist/types/shared/ui-format.d.ts +25 -65
- package/docs/API.md +315 -107
- package/docs/BACKUPS.md +61 -56
- package/docs/CLI.md +255 -49
- package/docs/DDNS.md +35 -49
- package/docs/JOBS.md +129 -0
- package/docs/NOTIFICATIONS.md +58 -90
- package/docs/REVERSE_PROXY.md +116 -188
- package/docs/SECURITY.md +126 -44
- package/docs/SERVERS.md +282 -409
- package/docs/UI_CREATION.md +90 -47
- package/docs/demo/blank-host-restore.sh +31 -7
- package/package.json +15 -6
- package/scripts/prepare.mjs +47 -0
- package/uis/stock/dist/assets/CopyButton-8mliL0xi.js +1 -0
- package/uis/stock/dist/assets/GlobalSettingsView-BINXY77E.js +1 -0
- package/uis/stock/dist/assets/LogViewer-kiSnTwdY.js +1 -0
- package/uis/stock/dist/assets/LogsView-DDXf_ONs.js +1 -0
- package/uis/stock/dist/assets/Modal-lrUuViF2.js +39 -0
- package/uis/stock/dist/assets/ProxyView-uXMaJdSQ.js +1 -0
- package/uis/stock/dist/assets/ServerDetailView-CW0Vb_c0.js +4 -0
- package/uis/stock/dist/assets/SettingsShell-B135xWjJ.js +1 -0
- package/uis/stock/dist/assets/SettingsView-BLtWxVkl.js +2 -0
- package/uis/stock/dist/assets/de-BIoTrHBQ.js +1 -0
- package/uis/stock/dist/assets/es-x4-ih8lH.js +1 -0
- package/uis/stock/dist/assets/fr-DatqBBkO.js +1 -0
- package/uis/stock/dist/assets/index-CnojaKcA.css +2 -0
- package/uis/stock/dist/assets/index-D-CiZReu.js +16 -0
- package/uis/stock/dist/assets/ja-CW1703Gw.js +1 -0
- package/uis/stock/dist/assets/ko-wFbT4XtK.js +1 -0
- package/uis/stock/dist/assets/ru-C1p5C4VN.js +1 -0
- package/uis/stock/dist/assets/useUnsavedGuard-BcsXsfCC.js +9 -0
- package/uis/stock/dist/assets/vi-CDqr0uie.js +1 -0
- package/uis/stock/dist/assets/zh-CN-BJ7iit-X.js +1 -0
- package/uis/stock/dist/index.html +4 -3
- package/uis/stock/dist/ui.json +3 -3
- package/dist/chunks/archive-DP-XQR8X.js.map +0 -1
- package/dist/chunks/atomic-C1PfJpE7.js.map +0 -1
- package/dist/chunks/backup-CZcVca2a.js.map +0 -1
- package/dist/chunks/backups-CFRaWe_m.js +0 -4691
- package/dist/chunks/backups-CFRaWe_m.js.map +0 -1
- package/dist/chunks/config-text-DifCHhnz.js +0 -50
- package/dist/chunks/config-text-DifCHhnz.js.map +0 -1
- package/dist/chunks/contracts-CMBD1TF9.js.map +0 -1
- package/dist/chunks/daemon-log-BVj8cDEo.js +0 -241
- package/dist/chunks/daemon-log-BVj8cDEo.js.map +0 -1
- package/dist/chunks/daemon-qKVECISl.js +0 -247
- package/dist/chunks/daemon-qKVECISl.js.map +0 -1
- package/dist/chunks/docker-Cy9Lyvda.js.map +0 -1
- package/dist/chunks/down-pKbGCW9d.js.map +0 -1
- package/dist/chunks/init-BZ7hK9Vf.js.map +0 -1
- package/dist/chunks/last-stop-C-BXz_XI.js +0 -53
- package/dist/chunks/last-stop-C-BXz_XI.js.map +0 -1
- package/dist/chunks/layout-DwTtmund.js +0 -24
- package/dist/chunks/layout-DwTtmund.js.map +0 -1
- package/dist/chunks/lazy-Ce5zEAq1.js +0 -66
- package/dist/chunks/lazy-Ce5zEAq1.js.map +0 -1
- package/dist/chunks/log-buffer-Dy9HHDMD.js +0 -414
- package/dist/chunks/log-buffer-Dy9HHDMD.js.map +0 -1
- package/dist/chunks/logger-B5U4GD3j.js.map +0 -1
- package/dist/chunks/logs---TI_bxM.js.map +0 -1
- package/dist/chunks/migrate-Cfoq-Vgh.js +0 -155
- package/dist/chunks/migrate-Cfoq-Vgh.js.map +0 -1
- package/dist/chunks/nanny-B-Eu0sFW.js.map +0 -1
- package/dist/chunks/nanny-BtWfy0QH.js +0 -1167
- package/dist/chunks/nanny-BtWfy0QH.js.map +0 -1
- package/dist/chunks/nanny-sweep-DErnlPY1.js.map +0 -1
- package/dist/chunks/nearest-6KgQEDUe.js.map +0 -1
- package/dist/chunks/parse-DhmG26fI.js.map +0 -1
- package/dist/chunks/paths-CGlGDrOU.js.map +0 -1
- package/dist/chunks/port-B8WBTRMk.js.map +0 -1
- package/dist/chunks/restart-Des4DrAN.js.map +0 -1
- package/dist/chunks/schema-B240VXcV.js.map +0 -1
- package/dist/chunks/secrets-BieELnZh.js +0 -562
- package/dist/chunks/secrets-BieELnZh.js.map +0 -1
- package/dist/chunks/server-Bge2r2qQ.js +0 -169
- package/dist/chunks/server-Bge2r2qQ.js.map +0 -1
- package/dist/chunks/server-ids-DRuNLVCV.js +0 -32
- package/dist/chunks/server-ids-DRuNLVCV.js.map +0 -1
- package/dist/chunks/set-password-D5vZqqSX.js +0 -43
- package/dist/chunks/set-password-D5vZqqSX.js.map +0 -1
- package/dist/chunks/set-token-obPiEJYk.js +0 -78
- package/dist/chunks/set-token-obPiEJYk.js.map +0 -1
- package/dist/chunks/settings-xu-XTfWg.js.map +0 -1
- package/dist/chunks/setup-temp-CAN4_bA-.js.map +0 -1
- package/dist/chunks/shape-DnTKzjQ2.js +0 -24
- package/dist/chunks/shape-DnTKzjQ2.js.map +0 -1
- package/dist/chunks/src-BtWMFmzZ.js.map +0 -1
- package/dist/chunks/status-DT1EsA-B.js.map +0 -1
- package/dist/chunks/ui-D562aqw5.js.map +0 -1
- package/dist/chunks/ui-dir-CsU3uLNV.js.map +0 -1
- package/dist/chunks/ui-release-DKzVvlLd.js.map +0 -1
- package/dist/chunks/ui-revert-EkBBwRTt.js.map +0 -1
- package/dist/chunks/ui-switch-BnZTdMDd.js.map +0 -1
- package/dist/chunks/ui-update-_xryLYxw.js.map +0 -1
- package/dist/chunks/up-Pdz-l6IH.js.map +0 -1
- package/dist/chunks/usage-DFrCVXpT.js.map +0 -1
- package/dist/chunks/workspaces-DYcfvKV_.js.map +0 -1
- package/dist/chunks/wsl-temperature-BiCI4iK6.js.map +0 -1
- package/dist/types/cli/set-password.d.ts +0 -14
- package/dist/types/cli/set-token.d.ts +0 -21
- package/uis/stock/dist/assets/CopyButton-BUBKRJyY.js +0 -1
- package/uis/stock/dist/assets/GlobalSettingsView-yYMcRWvt.js +0 -1
- package/uis/stock/dist/assets/LogViewer-DIliXy62.js +0 -1
- package/uis/stock/dist/assets/LogsView-B7Z-7RNg.js +0 -1
- package/uis/stock/dist/assets/Modal-DmKa5Qpp.js +0 -39
- package/uis/stock/dist/assets/ProxyView-DvZiNkwb.js +0 -1
- package/uis/stock/dist/assets/ServerDetailView-6idGT_EX.js +0 -2
- package/uis/stock/dist/assets/SettingsShell-CeGtleYI.js +0 -1
- package/uis/stock/dist/assets/SettingsView-BrhJIrmk.js +0 -2
- package/uis/stock/dist/assets/de-BRITeb0H.js +0 -1
- package/uis/stock/dist/assets/es-B2zIEssV.js +0 -1
- package/uis/stock/dist/assets/fr-s0ZOBEqh.js +0 -1
- package/uis/stock/dist/assets/index-C1MehbKy.css +0 -2
- package/uis/stock/dist/assets/index-CnBN54wF.js +0 -15
- package/uis/stock/dist/assets/ja-CU7MR85V.js +0 -1
- package/uis/stock/dist/assets/ko-tL5Me6d-.js +0 -1
- package/uis/stock/dist/assets/ru-92yrvkNJ.js +0 -1
- package/uis/stock/dist/assets/vi-CzvY16k2.js +0 -1
- package/uis/stock/dist/assets/zh-CN-DDwFW_uW.js +0 -1
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schemas shared by the control plane and the SPA: the server entry shape, the
|
|
3
|
-
* control panel's own settings, API DTOs and SSE frames. Nothing here knows
|
|
4
|
-
* about a particular server — an entry carries its own command, args, env and
|
|
5
|
-
* bootstrap.
|
|
6
|
-
*/
|
|
1
|
+
/** Schemas shared by the control plane and the UIs: server entries, panel settings, API DTOs, SSE frames. */
|
|
7
2
|
/** `local` -> 127.0.0.1, `lan` -> 0.0.0.0, or an explicit IPv4 to bind. */
|
|
8
3
|
declare const bindSchema: import("arktype/internal/variants/string.ts").StringType<"local" | "lan" | `${number}.${number}.${number}.${number}`, {}>;
|
|
9
4
|
export type Bind = typeof bindSchema.infer;
|
|
10
|
-
/**
|
|
11
|
-
* A top-level unit: its own settings, servers, secrets, logs and nanny state
|
|
12
|
-
* under `$HHOSTED_HOME/.hh/<id>/`. The id is the directory name and never
|
|
13
|
-
* changes; the label is what a person reads and may rename at will.
|
|
14
|
-
*/
|
|
5
|
+
/** A workspace id is its directory under `.hh/` and never changes; the label may be renamed. */
|
|
15
6
|
export declare const workspaceIdSchema: import("arktype/internal/variants/string.ts").StringType<string, {}>;
|
|
7
|
+
/** A new workspace id: at most 40 chars, never a Windows device name. Separate so older, longer ids still load. */
|
|
8
|
+
export declare const newWorkspaceIdSchema: import("arktype/internal/variants/string.ts").StringType<string, {}>;
|
|
16
9
|
export declare const workspaceSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
17
10
|
id: string;
|
|
18
11
|
label: string;
|
|
@@ -27,16 +20,10 @@ export type WorkspaceCreate = typeof workspaceCreateSchema.infer;
|
|
|
27
20
|
export declare const workspaceRenameSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
28
21
|
label: string;
|
|
29
22
|
}, {}>;
|
|
30
|
-
/** Parses a bind value (`local` | `lan` | ipv4); null when it is not one. */
|
|
31
23
|
export declare function parseBind(value: string): Bind | null;
|
|
32
24
|
/** `null` means "no port": no readiness probe, no health supervision, no preflight. */
|
|
33
25
|
export declare const portSchema: import("arktype").BaseType<number | null, {}>;
|
|
34
|
-
/**
|
|
35
|
-
* What to do when something already listens on the entry's port. `follow` and
|
|
36
|
-
* `reclaim` only ever act on a holder proven to be this entry's own detached
|
|
37
|
-
* successor (the `HHOSTED_SERVER_ID` marker, POSIX only); `kill` is the blunt one:
|
|
38
|
-
* it stops any holder except the panel's own process tree.
|
|
39
|
-
*/
|
|
26
|
+
/** `follow`/`reclaim` act only on this entry's own detached successor (POSIX); `kill` stops any holder outside the panel's tree. */
|
|
40
27
|
export declare const onPortConflictSchema: import("arktype/internal/variants/string.ts").StringType<"warn" | "block" | "follow" | "reclaim" | "kill", {}>;
|
|
41
28
|
export type OnPortConflict = typeof onPortConflictSchema.infer;
|
|
42
29
|
export declare const restartSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -60,7 +47,7 @@ declare const httpCheckSchema: import("arktype/internal/variants/object.ts").Obj
|
|
|
60
47
|
export type HttpCheckConfig = typeof httpCheckSchema.infer;
|
|
61
48
|
export declare const healthSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
62
49
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
63
|
-
mode: import("arktype/internal/attributes.ts").Default<"
|
|
50
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
64
51
|
http: import("arktype/internal/attributes.ts").Default<{
|
|
65
52
|
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
66
53
|
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -92,15 +79,8 @@ export declare const bootstrapOrNullSchema: import("arktype").BaseType<{
|
|
|
92
79
|
runOnce: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
93
80
|
} | null, {}>;
|
|
94
81
|
/**
|
|
95
|
-
* A command run around a backup, for engines that need
|
|
96
|
-
*
|
|
97
|
-
* `mongodump` is the reason this exists: copying `dbPath` while the server writes gives a torn copy,
|
|
98
|
-
* and a dump taken by the engine is the only supported way. Same shape as `bootstrap` — one program
|
|
99
|
-
* and its args, never a command line — and the same rule that the panel never guesses what an engine
|
|
100
|
-
* needs.
|
|
101
|
-
*
|
|
102
|
-
* `{dumpDir}` is created before `dump` runs and captured by the archive; on restore the same
|
|
103
|
-
* directory is filled again before `load` runs, so the two hooks see the same path.
|
|
82
|
+
* A command run around a backup, for engines that need it for a consistent copy (e.g. `mongodump`).
|
|
83
|
+
* `{dumpDir}` is created before `dump` and refilled before `load`, so both hooks see one path.
|
|
104
84
|
*/
|
|
105
85
|
declare const backupHookSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
106
86
|
command: string;
|
|
@@ -111,6 +91,213 @@ declare const backupHookSchema: import("arktype/internal/variants/object.ts").Ob
|
|
|
111
91
|
}, {}>;
|
|
112
92
|
export type BackupHookConfig = typeof backupHookSchema.infer;
|
|
113
93
|
export declare const logBufferLinesSchema: import("arktype/internal/variants/number.ts").NumberType<number, {}>;
|
|
94
|
+
/** An environment-variable name every shell and OS accepts. */
|
|
95
|
+
export declare const secretEnvNameSchema: import("arktype/internal/variants/string.ts").StringType<string, {}>;
|
|
96
|
+
/** Secret env var names, unique; the values live in the workspace's `.secrets.json`, never in a config. */
|
|
97
|
+
export declare const secretEnvNamesSchema: import("arktype/internal/variants/array.ts").ArrayType<string[], {}>;
|
|
98
|
+
/** Uniqueness is checked here, not by a schema narrow, so the schema still renders to JSON Schema. */
|
|
99
|
+
export declare function duplicateSecretEnvNames(names: readonly string[]): string[];
|
|
100
|
+
/** Only the shape (exactly five fields); `cronProblem()` checks the contents at every write. */
|
|
101
|
+
export declare const cronExpressionSchema: import("arktype/internal/variants/string.ts").StringType<string, {}>;
|
|
102
|
+
/** The refusal for a servers entry that still carries a job field (`kind`/`schedule`); `null` when it carries neither. */
|
|
103
|
+
export declare function entryHasJobFields(entry: Record<string, unknown>, command?: string): string | null;
|
|
104
|
+
/** The longest one run may take: a day. Bounds a hung script, not a slow backup. */
|
|
105
|
+
export declare const JOB_TIMEOUT_MAX_SECONDS = 86400;
|
|
106
|
+
/** A short-lived command on a cron schedule; it has no `port`, `health`, `restart` or `persistent`. */
|
|
107
|
+
export declare const jobSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
108
|
+
id: string;
|
|
109
|
+
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
110
|
+
command: string;
|
|
111
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
112
|
+
cwd: import("arktype/internal/attributes.ts").Default<string, ".">;
|
|
113
|
+
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
114
|
+
secretEnv: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
115
|
+
schedule: string;
|
|
116
|
+
timeoutSeconds: import("arktype/internal/attributes.ts").Default<number, 3600>;
|
|
117
|
+
catchUp: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
118
|
+
label?: string | null | undefined;
|
|
119
|
+
description?: string | undefined;
|
|
120
|
+
}, {}>;
|
|
121
|
+
export type JobConfig = typeof jobSchema.infer;
|
|
122
|
+
/** A workspace's jobs file; `jobs: []` is the normal state of a workspace with no jobs. */
|
|
123
|
+
export declare const jobsFileSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
124
|
+
jobs: {
|
|
125
|
+
id: string;
|
|
126
|
+
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
127
|
+
command: string;
|
|
128
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
129
|
+
cwd: import("arktype/internal/attributes.ts").Default<string, ".">;
|
|
130
|
+
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
131
|
+
secretEnv: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
132
|
+
schedule: string;
|
|
133
|
+
timeoutSeconds: import("arktype/internal/attributes.ts").Default<number, 3600>;
|
|
134
|
+
catchUp: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
135
|
+
label?: string | null | undefined;
|
|
136
|
+
description?: string | undefined;
|
|
137
|
+
}[];
|
|
138
|
+
meta?: {
|
|
139
|
+
writtenBy?: string | undefined;
|
|
140
|
+
schema?: number | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
}, {}>;
|
|
143
|
+
/** What started a run: its schedule, a person or client, or the boot catch-up of a missed occurrence. */
|
|
144
|
+
export declare const jobTriggerSchema: import("arktype/internal/variants/string.ts").StringType<"schedule" | "manual" | "catch-up", {}>;
|
|
145
|
+
export type JobTrigger = typeof jobTriggerSchema.infer;
|
|
146
|
+
/**
|
|
147
|
+
* How a run ended. `timeout` is the panel ending it at `timeoutSeconds`, `cancelled` a stop,
|
|
148
|
+
* `spawn-error` a command that never started, `interrupted` a run the panel stopped watching because
|
|
149
|
+
* it exited mid-run. `running` only on the run in flight.
|
|
150
|
+
*/
|
|
151
|
+
export declare const jobOutcomeSchema: import("arktype/internal/variants/string.ts").StringType<"ok" | "running" | "failed" | "timeout" | "cancelled" | "spawn-error" | "interrupted", {}>;
|
|
152
|
+
export type JobOutcome = typeof jobOutcomeSchema.infer;
|
|
153
|
+
/** One run, as the job's durable run ledger keeps it. */
|
|
154
|
+
export declare const jobRunSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
155
|
+
runId: string;
|
|
156
|
+
trigger: "schedule" | "manual" | "catch-up";
|
|
157
|
+
startedAt: number;
|
|
158
|
+
endedAt: number | null;
|
|
159
|
+
outcome: "ok" | "running" | "failed" | "timeout" | "cancelled" | "spawn-error" | "interrupted";
|
|
160
|
+
exitCode: number | null;
|
|
161
|
+
signal: string | null;
|
|
162
|
+
scheduledFor?: number | undefined;
|
|
163
|
+
error?: string | undefined;
|
|
164
|
+
}, {}>;
|
|
165
|
+
export type JobRun = typeof jobRunSchema.infer;
|
|
166
|
+
export declare const jobEntryViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
167
|
+
id: string;
|
|
168
|
+
enabled: boolean;
|
|
169
|
+
command: string;
|
|
170
|
+
args: string[];
|
|
171
|
+
schedule: string;
|
|
172
|
+
running: boolean;
|
|
173
|
+
label?: string | undefined;
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
nextRunAt?: number | null | undefined;
|
|
176
|
+
current?: {
|
|
177
|
+
runId: string;
|
|
178
|
+
startedAt: number;
|
|
179
|
+
trigger: "schedule" | "manual" | "catch-up";
|
|
180
|
+
} | undefined;
|
|
181
|
+
last?: {
|
|
182
|
+
runId: string;
|
|
183
|
+
outcome: "ok" | "running" | "failed" | "timeout" | "cancelled" | "spawn-error" | "interrupted";
|
|
184
|
+
exitCode: number | null;
|
|
185
|
+
signal: string | null;
|
|
186
|
+
startedAt: number;
|
|
187
|
+
endedAt: number;
|
|
188
|
+
durationMs: number;
|
|
189
|
+
} | undefined;
|
|
190
|
+
problem?: string | undefined;
|
|
191
|
+
lastRunAt?: number | undefined;
|
|
192
|
+
lastExitCode?: number | null | undefined;
|
|
193
|
+
logPath?: string | undefined;
|
|
194
|
+
secretEnv?: string[] | undefined;
|
|
195
|
+
secretEnvSet?: string[] | undefined;
|
|
196
|
+
timeoutSeconds?: number | undefined;
|
|
197
|
+
catchUp?: boolean | undefined;
|
|
198
|
+
cwd?: string | undefined;
|
|
199
|
+
env?: Record<string, string> | undefined;
|
|
200
|
+
}, {}>;
|
|
201
|
+
export type JobEntryView = typeof jobEntryViewSchema.infer;
|
|
202
|
+
export declare const jobsListSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
203
|
+
jobs: {
|
|
204
|
+
id: string;
|
|
205
|
+
enabled: boolean;
|
|
206
|
+
command: string;
|
|
207
|
+
args: string[];
|
|
208
|
+
schedule: string;
|
|
209
|
+
running: boolean;
|
|
210
|
+
label?: string | undefined;
|
|
211
|
+
description?: string | undefined;
|
|
212
|
+
nextRunAt?: number | null | undefined;
|
|
213
|
+
current?: {
|
|
214
|
+
runId: string;
|
|
215
|
+
startedAt: number;
|
|
216
|
+
trigger: "schedule" | "manual" | "catch-up";
|
|
217
|
+
} | undefined;
|
|
218
|
+
last?: {
|
|
219
|
+
runId: string;
|
|
220
|
+
outcome: "ok" | "running" | "failed" | "timeout" | "cancelled" | "spawn-error" | "interrupted";
|
|
221
|
+
exitCode: number | null;
|
|
222
|
+
signal: string | null;
|
|
223
|
+
startedAt: number;
|
|
224
|
+
endedAt: number;
|
|
225
|
+
durationMs: number;
|
|
226
|
+
} | undefined;
|
|
227
|
+
problem?: string | undefined;
|
|
228
|
+
lastRunAt?: number | undefined;
|
|
229
|
+
lastExitCode?: number | null | undefined;
|
|
230
|
+
logPath?: string | undefined;
|
|
231
|
+
secretEnv?: string[] | undefined;
|
|
232
|
+
secretEnvSet?: string[] | undefined;
|
|
233
|
+
timeoutSeconds?: number | undefined;
|
|
234
|
+
catchUp?: boolean | undefined;
|
|
235
|
+
cwd?: string | undefined;
|
|
236
|
+
env?: Record<string, string> | undefined;
|
|
237
|
+
}[];
|
|
238
|
+
fileError?: string | undefined;
|
|
239
|
+
}, {}>;
|
|
240
|
+
export type JobsList = typeof jobsListSchema.infer;
|
|
241
|
+
/** Creating a job. Everything the schema defaults is omittable; the schedule is not. */
|
|
242
|
+
export declare const jobCreateSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
243
|
+
id: string;
|
|
244
|
+
command: string;
|
|
245
|
+
schedule: string;
|
|
246
|
+
label?: string | null | undefined;
|
|
247
|
+
description?: string | undefined;
|
|
248
|
+
enabled?: boolean | undefined;
|
|
249
|
+
args?: string[] | undefined;
|
|
250
|
+
cwd?: string | undefined;
|
|
251
|
+
env?: Record<string, string> | undefined;
|
|
252
|
+
secretEnv?: string[] | undefined;
|
|
253
|
+
timeoutSeconds?: number | undefined;
|
|
254
|
+
catchUp?: boolean | undefined;
|
|
255
|
+
}, {}>;
|
|
256
|
+
export type JobCreate = typeof jobCreateSchema.infer;
|
|
257
|
+
/** Hand-written, never `.partial()`: a derived patch would carry the defaults. `null` clears a label or description. */
|
|
258
|
+
export declare const jobPatchSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
259
|
+
label?: string | null | undefined;
|
|
260
|
+
description?: string | null | undefined;
|
|
261
|
+
enabled?: boolean | undefined;
|
|
262
|
+
command?: string | undefined;
|
|
263
|
+
args?: string[] | undefined;
|
|
264
|
+
cwd?: string | undefined;
|
|
265
|
+
env?: Record<string, string> | undefined;
|
|
266
|
+
secretEnv?: string[] | undefined;
|
|
267
|
+
schedule?: string | undefined;
|
|
268
|
+
timeoutSeconds?: number | undefined;
|
|
269
|
+
catchUp?: boolean | undefined;
|
|
270
|
+
}, {}>;
|
|
271
|
+
export type JobPatch = typeof jobPatchSchema.infer;
|
|
272
|
+
/** `POST /api/jobs/:id/run`: the run started (`202`), or, waited for, how it ended (`200`). */
|
|
273
|
+
export declare const jobRunStartedSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
274
|
+
runId: string;
|
|
275
|
+
run?: {
|
|
276
|
+
runId: string;
|
|
277
|
+
trigger: "schedule" | "manual" | "catch-up";
|
|
278
|
+
startedAt: number;
|
|
279
|
+
endedAt: number | null;
|
|
280
|
+
outcome: "ok" | "running" | "failed" | "timeout" | "cancelled" | "spawn-error" | "interrupted";
|
|
281
|
+
exitCode: number | null;
|
|
282
|
+
signal: string | null;
|
|
283
|
+
scheduledFor?: number | undefined;
|
|
284
|
+
error?: string | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
}, {}>;
|
|
287
|
+
export type JobRunStarted = typeof jobRunStartedSchema.infer;
|
|
288
|
+
export declare const jobRunsListSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
289
|
+
runs: {
|
|
290
|
+
runId: string;
|
|
291
|
+
trigger: "schedule" | "manual" | "catch-up";
|
|
292
|
+
startedAt: number;
|
|
293
|
+
endedAt: number | null;
|
|
294
|
+
outcome: "ok" | "running" | "failed" | "timeout" | "cancelled" | "spawn-error" | "interrupted";
|
|
295
|
+
exitCode: number | null;
|
|
296
|
+
signal: string | null;
|
|
297
|
+
scheduledFor?: number | undefined;
|
|
298
|
+
error?: string | undefined;
|
|
299
|
+
}[];
|
|
300
|
+
}, {}>;
|
|
114
301
|
export declare const serverSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
115
302
|
id: string;
|
|
116
303
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
@@ -133,7 +320,7 @@ export declare const serverSchema: import("arktype/internal/variants/object.ts")
|
|
|
133
320
|
}, {}>;
|
|
134
321
|
health: import("arktype/internal/attributes.ts").Default<{
|
|
135
322
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
136
|
-
mode: import("arktype/internal/attributes.ts").Default<"
|
|
323
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
137
324
|
http: import("arktype/internal/attributes.ts").Default<{
|
|
138
325
|
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
139
326
|
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -163,6 +350,7 @@ export declare const serverSchema: import("arktype/internal/variants/object.ts")
|
|
|
163
350
|
}, {}>;
|
|
164
351
|
backupPaths: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
165
352
|
backupIgnoreGenerated: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
353
|
+
secretEnv: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
166
354
|
label?: string | null | undefined;
|
|
167
355
|
bootstrap?: {
|
|
168
356
|
command: string;
|
|
@@ -171,6 +359,15 @@ export declare const serverSchema: import("arktype/internal/variants/object.ts")
|
|
|
171
359
|
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
172
360
|
runOnce: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
173
361
|
} | null | undefined;
|
|
362
|
+
deploy?: {
|
|
363
|
+
steps: {
|
|
364
|
+
command: string;
|
|
365
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
366
|
+
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 300000>;
|
|
367
|
+
cwd?: string | undefined;
|
|
368
|
+
}[];
|
|
369
|
+
restart: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
370
|
+
} | null | undefined;
|
|
174
371
|
dump?: {
|
|
175
372
|
command: string;
|
|
176
373
|
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
@@ -190,10 +387,7 @@ export declare const serverSchema: import("arktype/internal/variants/object.ts")
|
|
|
190
387
|
export type ServerConfig = Omit<typeof serverSchema.infer, 'port'> & {
|
|
191
388
|
port: number | null;
|
|
192
389
|
};
|
|
193
|
-
/**
|
|
194
|
-
* Authentication for the control panel itself. The password never lives here —
|
|
195
|
-
* only the policy does; its scrypt hash sits in a git-ignored secrets file.
|
|
196
|
-
*/
|
|
390
|
+
/** Panel authentication policy; the password's scrypt hash lives in the secrets file, never here. */
|
|
197
391
|
export declare const authSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
198
392
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
199
393
|
sessionTtlMs: import("arktype/internal/attributes.ts").Default<number, 604800000>;
|
|
@@ -203,13 +397,6 @@ export declare const authSchema: import("arktype/internal/variants/object.ts").O
|
|
|
203
397
|
lockoutMs: import("arktype/internal/attributes.ts").Default<number, 60000>;
|
|
204
398
|
}, {}>;
|
|
205
399
|
export type AuthConfig = typeof authSchema.infer;
|
|
206
|
-
/**
|
|
207
|
-
* The general settings: what applies to every target that does not override it.
|
|
208
|
-
*
|
|
209
|
-
* The point of the block is that the common case — "tell me about crashes and host thresholds,
|
|
210
|
-
* throttled every two minutes" — is set **once**, instead of once per transport and again per
|
|
211
|
-
* destination.
|
|
212
|
-
*/
|
|
213
400
|
export declare const notificationDefaultsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
214
401
|
onCrash: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
215
402
|
onUnhealthy: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
@@ -220,16 +407,7 @@ export declare const notificationDefaultsSchema: import("arktype/internal/varian
|
|
|
220
407
|
cooldownMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
221
408
|
}, {}>;
|
|
222
409
|
export type NotificationDefaults = typeof notificationDefaultsSchema.infer;
|
|
223
|
-
/**
|
|
224
|
-
* One webhook target: a URL, a method, and the headers to send with it.
|
|
225
|
-
*
|
|
226
|
-
* This is the general transport, and it is a *list* because a home panel alerts more than one
|
|
227
|
-
* place — a phone, a chat channel, a dashboard. The headers are what make it general rather
|
|
228
|
-
* than JSON-only: ntfy wants `Title`/`Priority` headers with a plain-text body, a bearer-token
|
|
229
|
-
* receiver wants `Authorization`, and a JSON receiver wants `content-type`. One shape covers
|
|
230
|
-
* all three; a per-service adapter would be a code change per service.
|
|
231
|
-
*/
|
|
232
|
-
/** One webhook destination. */
|
|
410
|
+
/** One webhook destination; `headers` lets it serve ntfy, bearer-token or JSON receivers alike. */
|
|
233
411
|
declare const webhookTargetSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
234
412
|
onCrash: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
235
413
|
onUnhealthy: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
@@ -248,7 +426,6 @@ declare const webhookTargetSchema: import("arktype/internal/variants/object.ts")
|
|
|
248
426
|
useOwnSettings: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
249
427
|
}, {}>;
|
|
250
428
|
export type WebhookTarget = typeof webhookTargetSchema.infer;
|
|
251
|
-
/** A destination is one of the kinds this build can deliver to. */
|
|
252
429
|
declare const notificationTargetSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
253
430
|
onCrash: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
254
431
|
onUnhealthy: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
@@ -321,17 +498,11 @@ export declare const notificationsSchema: import("arktype/internal/variants/obje
|
|
|
321
498
|
useOwnSettings: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
322
499
|
})[], never[]>;
|
|
323
500
|
}, {}>;
|
|
324
|
-
/**
|
|
325
|
-
* The ids that appear more than once, so a write can refuse them.
|
|
326
|
-
*
|
|
327
|
-
* A schema-level check is not available here (see above), and this is the one shape that has to
|
|
328
|
-
* be told apart from a plain validation error: the list is valid, but its identity is not.
|
|
329
|
-
*/
|
|
501
|
+
/** Ids that appear more than once, so a write can refuse them (a schema narrow would break JSON Schema). */
|
|
330
502
|
export declare function duplicateWebhookIds(targets: ReadonlyArray<{
|
|
331
503
|
id: string;
|
|
332
504
|
}>): string[];
|
|
333
505
|
export type NotificationsConfig = typeof notificationsSchema.infer;
|
|
334
|
-
/** On-disk log retention for the Logs page. */
|
|
335
506
|
export declare const logsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
336
507
|
persist: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
337
508
|
maxBytes: import("arktype/internal/attributes.ts").Default<number, 2000000>;
|
|
@@ -341,7 +512,6 @@ export type LogsConfig = typeof logsSchema.infer;
|
|
|
341
512
|
export declare const tlsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
342
513
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
343
514
|
}, {}>;
|
|
344
|
-
/** Host-level vitals and their alert thresholds. */
|
|
345
515
|
export declare const hostSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
346
516
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
347
517
|
intervalMs: import("arktype/internal/attributes.ts").Default<number, 15000>;
|
|
@@ -355,254 +525,15 @@ export declare const hostSchema: import("arktype/internal/variants/object.ts").O
|
|
|
355
525
|
tempCommandTimeoutMs: import("arktype/internal/attributes.ts").Default<number, 5000>;
|
|
356
526
|
}, {}>;
|
|
357
527
|
export type HostConfig = typeof hostSchema.infer;
|
|
358
|
-
/** A record family the DDNS engine can point at this host. */
|
|
359
|
-
declare const ddnsRecordTypeSchema: import("arktype/internal/variants/string.ts").StringType<"A" | "AAAA", {}>;
|
|
360
|
-
export type DdnsRecordType = typeof ddnsRecordTypeSchema.infer;
|
|
361
|
-
/**
|
|
362
|
-
* One DNS provider account. Its credentials are secrets and live in the secrets
|
|
363
|
-
* file keyed by this `id`, never in the config.
|
|
364
|
-
*/
|
|
365
|
-
declare const ddnsAccountSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
366
|
-
id: string;
|
|
367
|
-
provider: string;
|
|
368
|
-
label: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
369
|
-
}, {}>;
|
|
370
|
-
export type DdnsAccount = typeof ddnsAccountSchema.infer;
|
|
371
|
-
/**
|
|
372
|
-
* A hostname to keep pointed at this machine. That list is the whole user-facing
|
|
373
|
-
* setup: the provider account it belongs to, and (optionally) which families.
|
|
374
|
-
*/
|
|
375
|
-
export declare const ddnsDomainSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
376
|
-
host: `${string}${string}.${string}${string}${string}`;
|
|
377
|
-
account: string;
|
|
378
|
-
types: import("arktype/internal/attributes.ts").Default<("A" | "AAAA")[], "A"[]>;
|
|
379
|
-
proxied: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
380
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
381
|
-
zone?: string | undefined;
|
|
382
|
-
ttl?: number | undefined;
|
|
383
|
-
}, {}>;
|
|
384
|
-
export type DdnsDomain = typeof ddnsDomainSchema.infer;
|
|
385
|
-
/**
|
|
386
|
-
* Dynamic DNS: keep a list of hostnames pointed at this machine's public IP.
|
|
387
|
-
* Probing is cheap and constant; a provider is only called when the address it
|
|
388
|
-
* last confirmed differs, which is what keeps simple endpoints (FreeDNS, No-IP)
|
|
389
|
-
* inside their rate limits.
|
|
390
|
-
*/
|
|
391
|
-
export declare const ddnsConfigSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
392
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
393
|
-
intervalMs: import("arktype/internal/attributes.ts").Default<number, 300000>;
|
|
394
|
-
ipv4: import("arktype/internal/attributes.ts").Default<{
|
|
395
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
396
|
-
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
397
|
-
}, {}>;
|
|
398
|
-
ipv6: import("arktype/internal/attributes.ts").Default<{
|
|
399
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
400
|
-
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
401
|
-
}, {}>;
|
|
402
|
-
ttl: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
403
|
-
accounts: import("arktype/internal/attributes.ts").Default<{
|
|
404
|
-
id: string;
|
|
405
|
-
provider: string;
|
|
406
|
-
label: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
407
|
-
}[], never[]>;
|
|
408
|
-
domains: import("arktype/internal/attributes.ts").Default<{
|
|
409
|
-
host: `${string}${string}.${string}${string}${string}`;
|
|
410
|
-
account: string;
|
|
411
|
-
types: import("arktype/internal/attributes.ts").Default<("A" | "AAAA")[], "A"[]>;
|
|
412
|
-
proxied: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
413
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
414
|
-
zone?: string | undefined;
|
|
415
|
-
ttl?: number | undefined;
|
|
416
|
-
}[], never[]>;
|
|
417
|
-
}, {}>;
|
|
418
|
-
export type DdnsConfig = typeof ddnsConfigSchema.infer;
|
|
419
|
-
declare const ddnsRecordStateSchema: import("arktype/internal/variants/string.ts").StringType<"error" | "ok" | "pending" | "unchanged" | "skipped", {}>;
|
|
420
|
-
export type DdnsRecordState = typeof ddnsRecordStateSchema.infer;
|
|
421
|
-
/** What happened to one hostname on the last pass. */
|
|
422
|
-
declare const ddnsRecordViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
423
|
-
host: string;
|
|
424
|
-
account: string;
|
|
425
|
-
provider: string;
|
|
426
|
-
type: "A" | "AAAA";
|
|
427
|
-
ip: string | null;
|
|
428
|
-
state: "error" | "ok" | "pending" | "unchanged" | "skipped";
|
|
429
|
-
message: string | null;
|
|
430
|
-
updatedAt: number | null;
|
|
431
|
-
stopped?: boolean | undefined;
|
|
432
|
-
}, {}>;
|
|
433
|
-
export type DdnsRecordView = typeof ddnsRecordViewSchema.infer;
|
|
434
|
-
/** Live DDNS state, as the state frame and the settings page read it. */
|
|
435
|
-
export declare const ddnsStatusSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
436
|
-
enabled: boolean;
|
|
437
|
-
running: boolean;
|
|
438
|
-
lastRunAt: number | null;
|
|
439
|
-
lastResult: string | null;
|
|
440
|
-
ipv4: string | null;
|
|
441
|
-
ipv6: string | null;
|
|
442
|
-
records: {
|
|
443
|
-
host: string;
|
|
444
|
-
account: string;
|
|
445
|
-
provider: string;
|
|
446
|
-
type: "A" | "AAAA";
|
|
447
|
-
ip: string | null;
|
|
448
|
-
state: "error" | "ok" | "pending" | "unchanged" | "skipped";
|
|
449
|
-
message: string | null;
|
|
450
|
-
updatedAt: number | null;
|
|
451
|
-
stopped?: boolean | undefined;
|
|
452
|
-
}[];
|
|
453
|
-
}, {}>;
|
|
454
|
-
export type DdnsStatus = typeof ddnsStatusSchema.infer;
|
|
455
|
-
/** What a provider needs from the person configuring it. */
|
|
456
|
-
declare const ddnsProviderFieldSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
457
|
-
key: string;
|
|
458
|
-
label: string;
|
|
459
|
-
hint: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
460
|
-
optional: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
461
|
-
}, {}>;
|
|
462
|
-
export type DdnsProviderField = typeof ddnsProviderFieldSchema.infer;
|
|
463
|
-
/** Provider capabilities, so the UI knows which options to show. */
|
|
464
|
-
declare const ddnsProviderInfoSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
465
|
-
id: string;
|
|
466
|
-
label: string;
|
|
467
|
-
docsUrl: string;
|
|
468
|
-
families: ("A" | "AAAA")[];
|
|
469
|
-
fields: {
|
|
470
|
-
key: string;
|
|
471
|
-
label: string;
|
|
472
|
-
hint: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
473
|
-
optional: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
474
|
-
}[];
|
|
475
|
-
ttl: boolean;
|
|
476
|
-
proxied: boolean;
|
|
477
|
-
txt: boolean;
|
|
478
|
-
}, {}>;
|
|
479
|
-
export type DdnsProviderInfo = typeof ddnsProviderInfoSchema.infer;
|
|
480
|
-
/** `GET /api/ddns`: the policy, the live state, and the providers this build knows. */
|
|
481
|
-
export declare const ddnsViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
482
|
-
config: {
|
|
483
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
484
|
-
intervalMs: import("arktype/internal/attributes.ts").Default<number, 300000>;
|
|
485
|
-
ipv4: import("arktype/internal/attributes.ts").Default<{
|
|
486
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
487
|
-
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
488
|
-
}, {}>;
|
|
489
|
-
ipv6: import("arktype/internal/attributes.ts").Default<{
|
|
490
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
491
|
-
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
492
|
-
}, {}>;
|
|
493
|
-
ttl: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
494
|
-
accounts: import("arktype/internal/attributes.ts").Default<{
|
|
495
|
-
id: string;
|
|
496
|
-
provider: string;
|
|
497
|
-
label: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
498
|
-
}[], never[]>;
|
|
499
|
-
domains: import("arktype/internal/attributes.ts").Default<{
|
|
500
|
-
host: `${string}${string}.${string}${string}${string}`;
|
|
501
|
-
account: string;
|
|
502
|
-
types: import("arktype/internal/attributes.ts").Default<("A" | "AAAA")[], "A"[]>;
|
|
503
|
-
proxied: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
504
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
505
|
-
zone?: string | undefined;
|
|
506
|
-
ttl?: number | undefined;
|
|
507
|
-
}[], never[]>;
|
|
508
|
-
};
|
|
509
|
-
status: {
|
|
510
|
-
enabled: boolean;
|
|
511
|
-
running: boolean;
|
|
512
|
-
lastRunAt: number | null;
|
|
513
|
-
lastResult: string | null;
|
|
514
|
-
ipv4: string | null;
|
|
515
|
-
ipv6: string | null;
|
|
516
|
-
records: {
|
|
517
|
-
host: string;
|
|
518
|
-
account: string;
|
|
519
|
-
provider: string;
|
|
520
|
-
type: "A" | "AAAA";
|
|
521
|
-
ip: string | null;
|
|
522
|
-
state: "error" | "ok" | "pending" | "unchanged" | "skipped";
|
|
523
|
-
message: string | null;
|
|
524
|
-
updatedAt: number | null;
|
|
525
|
-
stopped?: boolean | undefined;
|
|
526
|
-
}[];
|
|
527
|
-
};
|
|
528
|
-
providers: {
|
|
529
|
-
id: string;
|
|
530
|
-
label: string;
|
|
531
|
-
docsUrl: string;
|
|
532
|
-
families: ("A" | "AAAA")[];
|
|
533
|
-
fields: {
|
|
534
|
-
key: string;
|
|
535
|
-
label: string;
|
|
536
|
-
hint: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
537
|
-
optional: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
538
|
-
}[];
|
|
539
|
-
ttl: boolean;
|
|
540
|
-
proxied: boolean;
|
|
541
|
-
txt: boolean;
|
|
542
|
-
}[];
|
|
543
|
-
credentials: string[];
|
|
544
|
-
}, {}>;
|
|
545
|
-
export type DdnsView = typeof ddnsViewSchema.infer;
|
|
546
|
-
/**
|
|
547
|
-
* `PUT /api/ddns/credentials/:id`: the secret fields that provider declares.
|
|
548
|
-
*
|
|
549
|
-
* The provider travels with the request because the account may still be an
|
|
550
|
-
* unsaved draft — the server needs its field list, not a config entry.
|
|
551
|
-
*/
|
|
552
|
-
export declare const ddnsCredentialsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
553
|
-
provider: string;
|
|
554
|
-
credentials: Record<string, string>;
|
|
555
|
-
}, {}>;
|
|
556
|
-
/**
|
|
557
|
-
* The DDNS block as a patch: no defaults, and `accounts`/`domains` are lists a
|
|
558
|
-
* patch **replaces** — a key-by-key merge cannot express removing a hostname.
|
|
559
|
-
* `ipv4`/`ipv6` still merge, so a patch may decide just one of their members.
|
|
560
|
-
*/
|
|
561
|
-
declare const _ddnsPatchSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
562
|
-
enabled?: boolean | undefined;
|
|
563
|
-
intervalMs?: number | undefined;
|
|
564
|
-
ipv4?: {
|
|
565
|
-
enabled?: boolean | undefined;
|
|
566
|
-
url?: string | undefined;
|
|
567
|
-
} | undefined;
|
|
568
|
-
ipv6?: {
|
|
569
|
-
enabled?: boolean | undefined;
|
|
570
|
-
url?: string | undefined;
|
|
571
|
-
} | undefined;
|
|
572
|
-
ttl?: number | undefined;
|
|
573
|
-
accounts?: {
|
|
574
|
-
id: string;
|
|
575
|
-
provider: string;
|
|
576
|
-
label: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
577
|
-
}[] | undefined;
|
|
578
|
-
domains?: {
|
|
579
|
-
host: `${string}${string}.${string}${string}${string}`;
|
|
580
|
-
account: string;
|
|
581
|
-
types: import("arktype/internal/attributes.ts").Default<("A" | "AAAA")[], "A"[]>;
|
|
582
|
-
proxied: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
583
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
584
|
-
zone?: string | undefined;
|
|
585
|
-
ttl?: number | undefined;
|
|
586
|
-
}[] | undefined;
|
|
587
|
-
}, {}>;
|
|
588
|
-
export type DdnsPatch = typeof _ddnsPatchSchema.infer;
|
|
589
|
-
/** Tar archives of config, secrets, TLS and declared data paths. */
|
|
590
528
|
/**
|
|
591
|
-
* What an automatic backup captures
|
|
592
|
-
*
|
|
593
|
-
* `only` is `--include`, `except` is `--all --exclude`, and both name the same ids: a coarse id
|
|
594
|
-
* (`workspace:default`) covers every leaf under it. Omitted means the full default scope, which is
|
|
595
|
-
* what a schedule written before this field existed must keep meaning.
|
|
596
|
-
*
|
|
597
|
-
* An empty `ids` is refused rather than read as either "nothing" or "everything": those are the two
|
|
598
|
-
* readings a person cannot tell apart from the file, and one of them captures nothing at all.
|
|
529
|
+
* What an automatic backup captures: `only` is `--include`, `except` is `--all --exclude`, and a
|
|
530
|
+
* coarse id covers every leaf under it. An empty `ids` is refused as ambiguous.
|
|
599
531
|
*/
|
|
600
532
|
declare const backupScopeSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
601
533
|
mode: "only" | "except";
|
|
602
534
|
ids: string[];
|
|
603
535
|
}, {}>;
|
|
604
536
|
export type BackupScope = typeof backupScopeSchema.infer;
|
|
605
|
-
/** The scheduled half: an interval, a retention of its own, and what it captures. */
|
|
606
537
|
export declare const backupScheduleSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
607
538
|
intervalMs: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
608
539
|
keep: import("arktype/internal/attributes.ts").Default<number, 7>;
|
|
@@ -662,7 +593,7 @@ export declare const defaultsSchema: import("arktype/internal/variants/object.ts
|
|
|
662
593
|
}, {}>;
|
|
663
594
|
health: import("arktype/internal/attributes.ts").Default<{
|
|
664
595
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
665
|
-
mode: import("arktype/internal/attributes.ts").Default<"
|
|
596
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
666
597
|
http: import("arktype/internal/attributes.ts").Default<{
|
|
667
598
|
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
668
599
|
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -704,6 +635,15 @@ export declare const serverPatchSchema: import("arktype/internal/variants/object
|
|
|
704
635
|
timeoutMs?: number | undefined;
|
|
705
636
|
runOnce?: boolean | undefined;
|
|
706
637
|
} | null | undefined;
|
|
638
|
+
deploy?: {
|
|
639
|
+
steps?: {
|
|
640
|
+
command?: string | undefined;
|
|
641
|
+
args?: string[] | undefined;
|
|
642
|
+
cwd?: string | undefined;
|
|
643
|
+
timeoutMs?: number | undefined;
|
|
644
|
+
}[] | undefined;
|
|
645
|
+
restart?: boolean | undefined;
|
|
646
|
+
} | null | undefined;
|
|
707
647
|
dump?: {
|
|
708
648
|
command?: string | undefined;
|
|
709
649
|
args?: string[] | undefined;
|
|
@@ -731,7 +671,7 @@ export declare const serverPatchSchema: import("arktype/internal/variants/object
|
|
|
731
671
|
} | undefined;
|
|
732
672
|
health?: {
|
|
733
673
|
enabled?: boolean | undefined;
|
|
734
|
-
mode?: "
|
|
674
|
+
mode?: "port" | "http" | undefined;
|
|
735
675
|
http?: {
|
|
736
676
|
scheme?: "http" | "https" | undefined;
|
|
737
677
|
allowInvalidCert?: boolean | undefined;
|
|
@@ -761,6 +701,7 @@ export declare const serverPatchSchema: import("arktype/internal/variants/object
|
|
|
761
701
|
} | undefined;
|
|
762
702
|
backupPaths?: string[] | undefined;
|
|
763
703
|
backupIgnoreGenerated?: boolean | undefined;
|
|
704
|
+
secretEnv?: string[] | undefined;
|
|
764
705
|
}, {}>;
|
|
765
706
|
export type ServerPatch = typeof serverPatchSchema.infer;
|
|
766
707
|
export declare const serverCreateSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -781,6 +722,15 @@ export declare const serverCreateSchema: import("arktype/internal/variants/objec
|
|
|
781
722
|
timeoutMs?: number | undefined;
|
|
782
723
|
runOnce?: boolean | undefined;
|
|
783
724
|
} | null | undefined;
|
|
725
|
+
deploy?: {
|
|
726
|
+
steps?: {
|
|
727
|
+
command?: string | undefined;
|
|
728
|
+
args?: string[] | undefined;
|
|
729
|
+
cwd?: string | undefined;
|
|
730
|
+
timeoutMs?: number | undefined;
|
|
731
|
+
}[] | undefined;
|
|
732
|
+
restart?: boolean | undefined;
|
|
733
|
+
} | null | undefined;
|
|
784
734
|
dump?: {
|
|
785
735
|
command?: string | undefined;
|
|
786
736
|
args?: string[] | undefined;
|
|
@@ -808,7 +758,7 @@ export declare const serverCreateSchema: import("arktype/internal/variants/objec
|
|
|
808
758
|
} | undefined;
|
|
809
759
|
health?: {
|
|
810
760
|
enabled?: boolean | undefined;
|
|
811
|
-
mode?: "
|
|
761
|
+
mode?: "port" | "http" | undefined;
|
|
812
762
|
http?: {
|
|
813
763
|
scheme?: "http" | "https" | undefined;
|
|
814
764
|
allowInvalidCert?: boolean | undefined;
|
|
@@ -838,98 +788,173 @@ export declare const serverCreateSchema: import("arktype/internal/variants/objec
|
|
|
838
788
|
} | undefined;
|
|
839
789
|
backupPaths?: string[] | undefined;
|
|
840
790
|
backupIgnoreGenerated?: boolean | undefined;
|
|
791
|
+
secretEnv?: string[] | undefined;
|
|
841
792
|
}, {}>;
|
|
842
793
|
export type ServerCreate = typeof serverCreateSchema.infer;
|
|
843
|
-
/**
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
}, {}>;
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
} | undefined;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
794
|
+
/** The stored entry plus run-time problems; `warnings` is absent when there is nothing to say, and is not a refusal. */
|
|
795
|
+
export declare const serverWriteResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
796
|
+
server: {
|
|
797
|
+
id: string;
|
|
798
|
+
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
799
|
+
autostart: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
800
|
+
persistent: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
801
|
+
command: string;
|
|
802
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
803
|
+
cwd: import("arktype/internal/attributes.ts").Default<string, ".">;
|
|
804
|
+
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
805
|
+
dataEnvs: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
806
|
+
bind: import("arktype/internal/attributes.ts").Default<"local" | "lan" | `${number}.${number}.${number}.${number}`, "local">;
|
|
807
|
+
onPortConflict: import("arktype/internal/attributes.ts").Default<"warn" | "block" | "follow" | "reclaim" | "kill", "block">;
|
|
808
|
+
restart: import("arktype/internal/attributes.ts").Default<{
|
|
809
|
+
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
810
|
+
maxRetries: import("arktype/internal/attributes.ts").Default<number, 3>;
|
|
811
|
+
baseDelayMs: import("arktype/internal/attributes.ts").Default<number, 1000>;
|
|
812
|
+
factor: import("arktype/internal/attributes.ts").Default<number, 2>;
|
|
813
|
+
maxDelayMs: import("arktype/internal/attributes.ts").Default<number, 30000>;
|
|
814
|
+
resetAfterMs: import("arktype/internal/attributes.ts").Default<number, 60000>;
|
|
815
|
+
}, {}>;
|
|
816
|
+
health: import("arktype/internal/attributes.ts").Default<{
|
|
817
|
+
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
818
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
819
|
+
http: import("arktype/internal/attributes.ts").Default<{
|
|
820
|
+
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
821
|
+
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
822
|
+
path: import("arktype/internal/attributes.ts").Default<string, "/">;
|
|
823
|
+
method: import("arktype/internal/attributes.ts").Default<"GET" | "HEAD", "GET">;
|
|
824
|
+
expectStatusBelow: import("arktype/internal/attributes.ts").Default<number, 400>;
|
|
825
|
+
expectBody: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
826
|
+
expectStatus?: number | null | undefined;
|
|
827
|
+
}, {}>;
|
|
828
|
+
intervalMs: import("arktype/internal/attributes.ts").Default<number, 5000>;
|
|
829
|
+
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 1500>;
|
|
830
|
+
unhealthyThreshold: import("arktype/internal/attributes.ts").Default<number, 3>;
|
|
831
|
+
forceRestartAfterMs: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
832
|
+
startTimeoutMs: import("arktype/internal/attributes.ts").Default<number, 20000>;
|
|
833
|
+
}, {}>;
|
|
834
|
+
stop: import("arktype/internal/attributes.ts").Default<{
|
|
835
|
+
signal: import("arktype/internal/attributes.ts").Default<"SIGTERM" | "SIGINT" | "SIGKILL", "SIGTERM">;
|
|
836
|
+
killGroup: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
837
|
+
graceMs: import("arktype/internal/attributes.ts").Default<number, 5000>;
|
|
838
|
+
killPortHolders: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
839
|
+
}, {}>;
|
|
840
|
+
logBufferLines: import("arktype/internal/attributes.ts").Default<number, number>;
|
|
841
|
+
dependsOn: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
842
|
+
envFile: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
843
|
+
resources: import("arktype/internal/attributes.ts").Default<{
|
|
844
|
+
maxRssBytes: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
845
|
+
}, {}>;
|
|
846
|
+
backupPaths: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
847
|
+
backupIgnoreGenerated: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
848
|
+
secretEnv: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
849
|
+
label?: string | null | undefined;
|
|
850
|
+
bootstrap?: {
|
|
851
|
+
command: string;
|
|
852
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
853
|
+
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
854
|
+
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
855
|
+
runOnce: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
856
|
+
} | null | undefined;
|
|
857
|
+
deploy?: {
|
|
858
|
+
steps: {
|
|
859
|
+
command: string;
|
|
860
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
861
|
+
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 300000>;
|
|
862
|
+
cwd?: string | undefined;
|
|
863
|
+
}[];
|
|
864
|
+
restart: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
865
|
+
} | null | undefined;
|
|
866
|
+
dump?: {
|
|
867
|
+
command: string;
|
|
868
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
869
|
+
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
870
|
+
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 600000>;
|
|
871
|
+
waitMs: import("arktype/internal/attributes.ts").Default<number, 2000>;
|
|
872
|
+
} | null | undefined;
|
|
873
|
+
load?: {
|
|
874
|
+
command: string;
|
|
875
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
876
|
+
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
877
|
+
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 600000>;
|
|
878
|
+
waitMs: import("arktype/internal/attributes.ts").Default<number, 2000>;
|
|
879
|
+
} | null | undefined;
|
|
880
|
+
port?: number | null | undefined;
|
|
881
|
+
};
|
|
882
|
+
warnings?: string[] | undefined;
|
|
883
|
+
}, {}>;
|
|
884
|
+
export type ServerWriteResponse = typeof serverWriteResponseSchema.infer;
|
|
885
|
+
/** What the panel hands a persistent entry's nanny, written 0600 and unlinked on read; everything is pre-resolved. */
|
|
886
|
+
export declare const nannySpecSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
887
|
+
serverId: string;
|
|
888
|
+
command: string;
|
|
889
|
+
args: string[];
|
|
890
|
+
cwd: string;
|
|
891
|
+
env: Record<string, string>;
|
|
892
|
+
logDir: string;
|
|
893
|
+
logs: {
|
|
894
|
+
persist: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
895
|
+
maxBytes: import("arktype/internal/attributes.ts").Default<number, 2000000>;
|
|
896
|
+
keep: import("arktype/internal/attributes.ts").Default<number, 3>;
|
|
897
|
+
};
|
|
898
|
+
stop: {
|
|
899
|
+
signal: import("arktype/internal/attributes.ts").Default<"SIGTERM" | "SIGINT" | "SIGKILL", "SIGTERM">;
|
|
900
|
+
killGroup: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
901
|
+
graceMs: import("arktype/internal/attributes.ts").Default<number, 5000>;
|
|
902
|
+
killPortHolders: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
903
|
+
};
|
|
904
|
+
}, {}>;
|
|
905
|
+
export type NannySpec = typeof nannySpecSchema.infer;
|
|
906
|
+
declare const nannyExitSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
907
|
+
code: number | null;
|
|
908
|
+
signal: string | null;
|
|
909
|
+
at: number;
|
|
910
|
+
runtimeMs: number;
|
|
911
|
+
}, {}>;
|
|
912
|
+
export type NannyExit = typeof nannyExitSchema.infer;
|
|
913
|
+
/** A persistent entry's process state, written by its nanny (with a heartbeat) and read by the panel to re-adopt it. */
|
|
914
|
+
export declare const nannyStateSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
915
|
+
serverId: string;
|
|
916
|
+
nannyPid: number;
|
|
917
|
+
childPid: number | null;
|
|
918
|
+
startedAt: number;
|
|
919
|
+
logFile: string;
|
|
920
|
+
heartbeatAt: number;
|
|
921
|
+
lastExit?: {
|
|
922
|
+
code: number | null;
|
|
923
|
+
signal: string | null;
|
|
924
|
+
at: number;
|
|
925
|
+
runtimeMs: number;
|
|
926
|
+
} | undefined;
|
|
927
|
+
}, {}>;
|
|
928
|
+
export type NannyState = typeof nannyStateSchema.infer;
|
|
929
|
+
/** Supervision state that must outlast a panel restart (retry budgets, `runOnce`). */
|
|
930
|
+
export declare const entryStateSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
931
|
+
restarts: number;
|
|
932
|
+
bootstrapDone: boolean;
|
|
933
|
+
healthRestarts?: number | undefined;
|
|
934
|
+
pendingLoad?: string | null | undefined;
|
|
935
|
+
lastPid?: number | null | undefined;
|
|
936
|
+
lastStartedAt?: number | null | undefined;
|
|
937
|
+
}, {}>;
|
|
938
|
+
export type EntryState = typeof entryStateSchema.infer;
|
|
939
|
+
export declare const settingsPatchSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
940
|
+
control?: {
|
|
941
|
+
label?: string | null | undefined;
|
|
942
|
+
port?: number | undefined;
|
|
943
|
+
host?: "local" | "lan" | `${number}.${number}.${number}.${number}` | undefined;
|
|
944
|
+
openBrowser?: boolean | undefined;
|
|
945
|
+
allowedHosts?: string[] | undefined;
|
|
946
|
+
auth?: {
|
|
947
|
+
enabled?: boolean | undefined;
|
|
948
|
+
sessionTtlMs?: number | undefined;
|
|
949
|
+
cookieSecure?: "never" | "auto" | "always" | undefined;
|
|
950
|
+
trustProxy?: boolean | "loopback" | undefined;
|
|
951
|
+
maxLoginAttempts?: number | undefined;
|
|
952
|
+
lockoutMs?: number | undefined;
|
|
953
|
+
} | undefined;
|
|
954
|
+
tls?: {
|
|
955
|
+
enabled?: boolean | undefined;
|
|
956
|
+
} | undefined;
|
|
957
|
+
} | undefined;
|
|
933
958
|
host?: {
|
|
934
959
|
enabled?: boolean | undefined;
|
|
935
960
|
intervalMs?: number | undefined;
|
|
@@ -958,7 +983,6 @@ export declare const settingsPatchSchema: import("arktype/internal/variants/obje
|
|
|
958
983
|
} | undefined;
|
|
959
984
|
}, {}>;
|
|
960
985
|
export type SettingsPatch = typeof settingsPatchSchema.infer;
|
|
961
|
-
/** Edits to one workspace's settings: server defaults, log retention, notifications. */
|
|
962
986
|
export declare const workspaceSettingsPatchSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
963
987
|
defaults?: {
|
|
964
988
|
enabled?: boolean | undefined;
|
|
@@ -975,7 +999,7 @@ export declare const workspaceSettingsPatchSchema: import("arktype/internal/vari
|
|
|
975
999
|
} | undefined;
|
|
976
1000
|
health?: {
|
|
977
1001
|
enabled?: boolean | undefined;
|
|
978
|
-
mode?: "
|
|
1002
|
+
mode?: "port" | "http" | undefined;
|
|
979
1003
|
http?: {
|
|
980
1004
|
scheme?: "http" | "https" | undefined;
|
|
981
1005
|
allowInvalidCert?: boolean | undefined;
|
|
@@ -1063,429 +1087,112 @@ declare const tlsStatusSchema: import("arktype/internal/variants/object.ts").Obj
|
|
|
1063
1087
|
error: string | null;
|
|
1064
1088
|
}, {}>;
|
|
1065
1089
|
export type TlsStatus = typeof tlsStatusSchema.infer;
|
|
1066
|
-
/**
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
* point is one domain per service across every workspace — so a target that
|
|
1081
|
-
* names an entry names its workspace too.
|
|
1082
|
-
*/
|
|
1083
|
-
export declare const proxyRouteSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1090
|
+
/** One destination with its effective policy (inherited when `useOwnSettings` is false) and last send outcome. */
|
|
1091
|
+
declare const destinationStatusSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1092
|
+
chatId: string | null;
|
|
1093
|
+
tokenSet: boolean;
|
|
1094
|
+
url: string | null;
|
|
1095
|
+
method: "POST" | "PUT" | null;
|
|
1096
|
+
format: "json" | "text" | null;
|
|
1097
|
+
headers: string | null;
|
|
1098
|
+
onCrash: boolean;
|
|
1099
|
+
onUnhealthy: boolean;
|
|
1100
|
+
onForcedRestart: boolean;
|
|
1101
|
+
onRecovered: boolean;
|
|
1102
|
+
onHost: boolean;
|
|
1103
|
+
cooldownMs: number;
|
|
1084
1104
|
id: string;
|
|
1085
|
-
|
|
1086
|
-
enabled:
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
path: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1092
|
-
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
1093
|
-
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1105
|
+
kind: "telegram" | "webhook";
|
|
1106
|
+
enabled: boolean;
|
|
1107
|
+
useOwnSettings: boolean;
|
|
1108
|
+
lastResult?: string | null | undefined;
|
|
1109
|
+
lastResultAt?: number | null | undefined;
|
|
1110
|
+
onDdns?: boolean | undefined;
|
|
1094
1111
|
}, {}>;
|
|
1095
|
-
export type
|
|
1096
|
-
/**
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
label: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1112
|
+
export type DestinationStatusView = typeof destinationStatusSchema.infer;
|
|
1113
|
+
/** The chats a bot can see, as `POST /notifications/destinations/:id/detect-chats` answers them. */
|
|
1114
|
+
export declare const telegramChatsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1115
|
+
chats: {
|
|
1116
|
+
id: string | number;
|
|
1117
|
+
title: string;
|
|
1118
|
+
}[];
|
|
1103
1119
|
}, {}>;
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1120
|
+
declare const notificationViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1121
|
+
defaults?: {
|
|
1122
|
+
onCrash: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1123
|
+
onUnhealthy: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1124
|
+
onForcedRestart: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1125
|
+
onRecovered: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
1126
|
+
onHost: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1127
|
+
onDdns: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1128
|
+
cooldownMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
1129
|
+
} | undefined;
|
|
1130
|
+
destinations?: {
|
|
1131
|
+
chatId: string | null;
|
|
1132
|
+
tokenSet: boolean;
|
|
1133
|
+
url: string | null;
|
|
1134
|
+
method: "POST" | "PUT" | null;
|
|
1135
|
+
format: "json" | "text" | null;
|
|
1136
|
+
headers: string | null;
|
|
1137
|
+
onCrash: boolean;
|
|
1138
|
+
onUnhealthy: boolean;
|
|
1139
|
+
onForcedRestart: boolean;
|
|
1140
|
+
onRecovered: boolean;
|
|
1141
|
+
onHost: boolean;
|
|
1142
|
+
cooldownMs: number;
|
|
1127
1143
|
id: string;
|
|
1128
|
-
|
|
1129
|
-
enabled:
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
1136
|
-
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1137
|
-
}[], never[]>;
|
|
1138
|
-
}, {}>;
|
|
1139
|
-
export type ProxyConfig = typeof proxyConfigSchema.infer;
|
|
1140
|
-
/** What the panel knows about the installed engine. */
|
|
1141
|
-
export declare const proxyEngineStatusSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1142
|
-
id: "caddy";
|
|
1143
|
-
installed: boolean;
|
|
1144
|
-
version: string | null;
|
|
1145
|
-
source: "downloaded" | "custom" | null;
|
|
1146
|
-
path: string | null;
|
|
1147
|
-
bytes: number | null;
|
|
1148
|
-
error: string | null;
|
|
1144
|
+
kind: "telegram" | "webhook";
|
|
1145
|
+
enabled: boolean;
|
|
1146
|
+
useOwnSettings: boolean;
|
|
1147
|
+
lastResult?: string | null | undefined;
|
|
1148
|
+
lastResultAt?: number | null | undefined;
|
|
1149
|
+
onDdns?: boolean | undefined;
|
|
1150
|
+
}[] | undefined;
|
|
1149
1151
|
}, {}>;
|
|
1150
|
-
export type
|
|
1151
|
-
/**
|
|
1152
|
-
declare const
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
internalCa: boolean;
|
|
1159
|
-
dns01: boolean;
|
|
1160
|
-
tcp: boolean;
|
|
1152
|
+
export type NotificationView = typeof notificationViewSchema.infer;
|
|
1153
|
+
/** What answered a request: the browser's session cookie, an API token, or this machine with auth unarmed. */
|
|
1154
|
+
export declare const credentialKindSchema: import("arktype/internal/variants/string.ts").StringType<"local" | "session" | "token", {}>;
|
|
1155
|
+
export type CredentialKind = typeof credentialKindSchema.infer;
|
|
1156
|
+
/** Which credential answered; `name` is an API token's readable head, absent otherwise. */
|
|
1157
|
+
export declare const credentialViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1158
|
+
kind: "local" | "session" | "token";
|
|
1159
|
+
name?: string | undefined;
|
|
1161
1160
|
}, {}>;
|
|
1162
|
-
export type
|
|
1163
|
-
declare const
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
path: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1176
|
-
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
1177
|
-
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1178
|
-
};
|
|
1179
|
-
status: "error" | "ok" | "disabled" | "no-upstream";
|
|
1180
|
-
upstream: string | null;
|
|
1181
|
-
message: string | null;
|
|
1182
|
-
certificate?: {
|
|
1183
|
-
state: "local" | "pending" | "off" | "uploaded" | "issued" | "failed" | "fallback";
|
|
1184
|
-
message: string | null;
|
|
1185
|
-
retryInMinutes?: number | undefined;
|
|
1161
|
+
export type CredentialView = typeof credentialViewSchema.infer;
|
|
1162
|
+
export declare const sessionViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1163
|
+
authenticated: boolean;
|
|
1164
|
+
authRequired: boolean;
|
|
1165
|
+
passwordSet: boolean;
|
|
1166
|
+
usingDefaultPassword: boolean;
|
|
1167
|
+
sessionTtlMs: number;
|
|
1168
|
+
apiTokenSet?: boolean | undefined;
|
|
1169
|
+
accountId?: string | undefined;
|
|
1170
|
+
defaultPassword?: string | undefined;
|
|
1171
|
+
credential?: {
|
|
1172
|
+
kind: "local" | "session" | "token";
|
|
1173
|
+
name?: string | undefined;
|
|
1186
1174
|
} | undefined;
|
|
1187
1175
|
}, {}>;
|
|
1188
|
-
export type
|
|
1189
|
-
|
|
1190
|
-
export
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1176
|
+
export type SessionView = typeof sessionViewSchema.infer;
|
|
1177
|
+
/** `GET /api/meta`: release, API version, the caller's credential and refusals, live features, error codes and event names. */
|
|
1178
|
+
export declare const metaViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1179
|
+
version: string;
|
|
1180
|
+
apiVersion: number;
|
|
1181
|
+
credential: {
|
|
1182
|
+
kind: "local" | "session" | "token";
|
|
1183
|
+
name?: string | undefined;
|
|
1184
|
+
};
|
|
1185
|
+
actor: string;
|
|
1186
|
+
refused: string[];
|
|
1187
|
+
features: {
|
|
1188
|
+
proxy: boolean;
|
|
1189
|
+
ddns: boolean;
|
|
1190
|
+
temperature: boolean;
|
|
1191
|
+
};
|
|
1192
|
+
errorCodes: string[];
|
|
1193
|
+
events: string[];
|
|
1199
1194
|
}, {}>;
|
|
1200
|
-
export type
|
|
1201
|
-
/** One uploaded pair, described: what it is for, and whether it is usable. */
|
|
1202
|
-
declare const proxyCertificateViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1203
|
-
id: string;
|
|
1204
|
-
label: string;
|
|
1205
|
-
present: boolean;
|
|
1206
|
-
used: boolean;
|
|
1207
|
-
subject: string | null;
|
|
1208
|
-
issuer: string | null;
|
|
1209
|
-
validTo: string | null;
|
|
1210
|
-
daysRemaining: number | null;
|
|
1211
|
-
hosts: string[];
|
|
1212
|
-
error: string | null;
|
|
1213
|
-
}, {}>;
|
|
1214
|
-
export type ProxyCertificateView = typeof proxyCertificateViewSchema.infer;
|
|
1215
|
-
/**
|
|
1216
|
-
* A DNS account the route table may name, flattened across workspaces so the proxy
|
|
1217
|
-
* page can offer one list. The account itself stays in its workspace.
|
|
1218
|
-
*/
|
|
1219
|
-
declare const proxyDnsAccountViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1220
|
-
workspace: string;
|
|
1221
|
-
account: string;
|
|
1222
|
-
provider: string;
|
|
1223
|
-
label: string;
|
|
1224
|
-
writesTxt: boolean;
|
|
1225
|
-
hasCredentials: boolean;
|
|
1226
|
-
}, {}>;
|
|
1227
|
-
export type ProxyDnsAccountView = typeof proxyDnsAccountViewSchema.infer;
|
|
1228
|
-
/** `GET /api/proxy`: the policy, the engine, the live state and the resolved routes. */
|
|
1229
|
-
export declare const proxyViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1230
|
-
config: {
|
|
1231
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
1232
|
-
engine: import("arktype/internal/attributes.ts").Default<"caddy", "caddy">;
|
|
1233
|
-
httpPort: import("arktype/internal/attributes.ts").Default<number, 80>;
|
|
1234
|
-
httpsPort: import("arktype/internal/attributes.ts").Default<number, 443>;
|
|
1235
|
-
email: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1236
|
-
staging: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
1237
|
-
dns01: import("arktype/internal/attributes.ts").Default<{
|
|
1238
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
1239
|
-
resolvers: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
1240
|
-
}, {}>;
|
|
1241
|
-
certificates: import("arktype/internal/attributes.ts").Default<{
|
|
1242
|
-
id: string;
|
|
1243
|
-
label: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1244
|
-
}[], never[]>;
|
|
1245
|
-
routes: import("arktype/internal/attributes.ts").Default<{
|
|
1246
|
-
id: string;
|
|
1247
|
-
host: string;
|
|
1248
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1249
|
-
target: import("arktype/internal/attributes.ts").Default<"server" | "panel" | "external", "server">;
|
|
1250
|
-
workspace: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1251
|
-
server: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1252
|
-
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1253
|
-
path: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1254
|
-
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
1255
|
-
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1256
|
-
}[], never[]>;
|
|
1257
|
-
};
|
|
1258
|
-
engine: {
|
|
1259
|
-
id: "caddy";
|
|
1260
|
-
installed: boolean;
|
|
1261
|
-
version: string | null;
|
|
1262
|
-
source: "downloaded" | "custom" | null;
|
|
1263
|
-
path: string | null;
|
|
1264
|
-
bytes: number | null;
|
|
1265
|
-
error: string | null;
|
|
1266
|
-
};
|
|
1267
|
-
engines: {
|
|
1268
|
-
id: "caddy";
|
|
1269
|
-
label: string;
|
|
1270
|
-
docsUrl: string;
|
|
1271
|
-
releaseUrl: string;
|
|
1272
|
-
acme: boolean;
|
|
1273
|
-
internalCa: boolean;
|
|
1274
|
-
dns01: boolean;
|
|
1275
|
-
tcp: boolean;
|
|
1276
|
-
}[];
|
|
1277
|
-
status: {
|
|
1278
|
-
state: "error" | "stopped" | "running" | "off" | "starting" | "unsupported";
|
|
1279
|
-
pid: number | null;
|
|
1280
|
-
urls: string[];
|
|
1281
|
-
certExpiryDays: number | null;
|
|
1282
|
-
since: number | null;
|
|
1283
|
-
lastError: string | null;
|
|
1284
|
-
};
|
|
1285
|
-
routes: {
|
|
1286
|
-
route: {
|
|
1287
|
-
id: string;
|
|
1288
|
-
host: string;
|
|
1289
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1290
|
-
target: import("arktype/internal/attributes.ts").Default<"server" | "panel" | "external", "server">;
|
|
1291
|
-
workspace: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1292
|
-
server: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1293
|
-
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1294
|
-
path: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1295
|
-
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
1296
|
-
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1297
|
-
};
|
|
1298
|
-
status: "error" | "ok" | "disabled" | "no-upstream";
|
|
1299
|
-
upstream: string | null;
|
|
1300
|
-
message: string | null;
|
|
1301
|
-
certificate?: {
|
|
1302
|
-
state: "local" | "pending" | "off" | "uploaded" | "issued" | "failed" | "fallback";
|
|
1303
|
-
message: string | null;
|
|
1304
|
-
retryInMinutes?: number | undefined;
|
|
1305
|
-
} | undefined;
|
|
1306
|
-
}[];
|
|
1307
|
-
certificates: {
|
|
1308
|
-
id: string;
|
|
1309
|
-
label: string;
|
|
1310
|
-
present: boolean;
|
|
1311
|
-
used: boolean;
|
|
1312
|
-
subject: string | null;
|
|
1313
|
-
issuer: string | null;
|
|
1314
|
-
validTo: string | null;
|
|
1315
|
-
daysRemaining: number | null;
|
|
1316
|
-
hosts: string[];
|
|
1317
|
-
error: string | null;
|
|
1318
|
-
}[];
|
|
1319
|
-
dnsAccounts?: {
|
|
1320
|
-
workspace: string;
|
|
1321
|
-
account: string;
|
|
1322
|
-
provider: string;
|
|
1323
|
-
label: string;
|
|
1324
|
-
writesTxt: boolean;
|
|
1325
|
-
hasCredentials: boolean;
|
|
1326
|
-
}[] | undefined;
|
|
1327
|
-
}, {}>;
|
|
1328
|
-
export type ProxyView = typeof proxyViewSchema.infer;
|
|
1329
|
-
/**
|
|
1330
|
-
* A route as a patch sends it: every field optional, so a client may change one
|
|
1331
|
-
* member of a route — or add a route with only the two fields that matter.
|
|
1332
|
-
*/
|
|
1333
|
-
declare const proxyRoutePatchSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1334
|
-
id: string;
|
|
1335
|
-
host: string;
|
|
1336
|
-
enabled?: boolean | undefined;
|
|
1337
|
-
target?: "server" | "panel" | "external" | undefined;
|
|
1338
|
-
workspace?: string | undefined;
|
|
1339
|
-
server?: string | undefined;
|
|
1340
|
-
url?: string | undefined;
|
|
1341
|
-
path?: string | undefined;
|
|
1342
|
-
tls?: "auto" | "off" | "manual" | undefined;
|
|
1343
|
-
dnsAccount?: string | undefined;
|
|
1344
|
-
}, {}>;
|
|
1345
|
-
export type ProxyRoutePatch = typeof proxyRoutePatchSchema.infer;
|
|
1346
|
-
/**
|
|
1347
|
-
* The proxy block as a patch: no defaults, and `routes` is a list a patch
|
|
1348
|
-
* **replaces** — a key-by-key merge cannot express removing a route.
|
|
1349
|
-
*/
|
|
1350
|
-
export declare const proxyPatchSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1351
|
-
enabled?: boolean | undefined;
|
|
1352
|
-
engine?: "caddy" | undefined;
|
|
1353
|
-
httpPort?: number | undefined;
|
|
1354
|
-
httpsPort?: number | undefined;
|
|
1355
|
-
email?: string | undefined;
|
|
1356
|
-
staging?: boolean | undefined;
|
|
1357
|
-
dns01?: {
|
|
1358
|
-
enabled?: boolean | null | undefined;
|
|
1359
|
-
resolvers?: string[] | null | undefined;
|
|
1360
|
-
} | undefined;
|
|
1361
|
-
certificates?: {
|
|
1362
|
-
id: string;
|
|
1363
|
-
label: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1364
|
-
}[] | undefined;
|
|
1365
|
-
routes?: {
|
|
1366
|
-
id: string;
|
|
1367
|
-
host: string;
|
|
1368
|
-
enabled?: boolean | undefined;
|
|
1369
|
-
target?: "server" | "panel" | "external" | undefined;
|
|
1370
|
-
workspace?: string | undefined;
|
|
1371
|
-
server?: string | undefined;
|
|
1372
|
-
url?: string | undefined;
|
|
1373
|
-
path?: string | undefined;
|
|
1374
|
-
tls?: "auto" | "off" | "manual" | undefined;
|
|
1375
|
-
dnsAccount?: string | undefined;
|
|
1376
|
-
}[] | undefined;
|
|
1377
|
-
}, {}>;
|
|
1378
|
-
export type ProxyPatch = typeof proxyPatchSchema.infer;
|
|
1379
|
-
/** `PUT /api/proxy/certificates/:id`: the pair itself, plus what to call it. */
|
|
1380
|
-
export declare const proxyCertificateUploadSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1381
|
-
label: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1382
|
-
certificate: string;
|
|
1383
|
-
privateKey: string;
|
|
1384
|
-
}, {}>;
|
|
1385
|
-
/** `POST /api/proxy/engine`: which release to install; empty means the current one. */
|
|
1386
|
-
export declare const proxyEngineInstallSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1387
|
-
version: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
1388
|
-
}, {}>;
|
|
1389
|
-
/**
|
|
1390
|
-
* One destination as the page reads it: the fields it owns, the policy it will use, and the outcome
|
|
1391
|
-
* of the last send to it.
|
|
1392
|
-
*
|
|
1393
|
-
* The policy here is the **effective** one — inherited from the general block when
|
|
1394
|
-
* `useOwnSettings` is false — so the page shows what will happen, not what is stored.
|
|
1395
|
-
*/
|
|
1396
|
-
declare const destinationStatusSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1397
|
-
chatId: string | null;
|
|
1398
|
-
tokenSet: boolean;
|
|
1399
|
-
url: string | null;
|
|
1400
|
-
method: "POST" | "PUT" | null;
|
|
1401
|
-
format: "json" | "text" | null;
|
|
1402
|
-
headers: string | null;
|
|
1403
|
-
onCrash: boolean;
|
|
1404
|
-
onUnhealthy: boolean;
|
|
1405
|
-
onForcedRestart: boolean;
|
|
1406
|
-
onRecovered: boolean;
|
|
1407
|
-
onHost: boolean;
|
|
1408
|
-
cooldownMs: number;
|
|
1409
|
-
id: string;
|
|
1410
|
-
kind: "telegram" | "webhook";
|
|
1411
|
-
enabled: boolean;
|
|
1412
|
-
useOwnSettings: boolean;
|
|
1413
|
-
lastResult?: string | null | undefined;
|
|
1414
|
-
lastResultAt?: number | null | undefined;
|
|
1415
|
-
onDdns?: boolean | undefined;
|
|
1416
|
-
}, {}>;
|
|
1417
|
-
export type DestinationStatusView = typeof destinationStatusSchema.infer;
|
|
1418
|
-
/**
|
|
1419
|
-
* The chats a bot can see, as `POST /notifications/destinations/:id/detect-chats` answers them.
|
|
1420
|
-
*
|
|
1421
|
-
* This was declared inline in the route while `TelegramChat` in `providers/telegram.ts` described the
|
|
1422
|
-
* same two fields — one shape written twice, which is the drift this file exists to prevent.
|
|
1423
|
-
*/
|
|
1424
|
-
export declare const telegramChatsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1425
|
-
chats: {
|
|
1426
|
-
id: string | number;
|
|
1427
|
-
title: string;
|
|
1428
|
-
}[];
|
|
1429
|
-
}, {}>;
|
|
1430
|
-
declare const notificationViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1431
|
-
defaults?: {
|
|
1432
|
-
onCrash: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1433
|
-
onUnhealthy: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1434
|
-
onForcedRestart: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1435
|
-
onRecovered: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
1436
|
-
onHost: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1437
|
-
onDdns: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1438
|
-
cooldownMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
1439
|
-
} | undefined;
|
|
1440
|
-
destinations?: {
|
|
1441
|
-
chatId: string | null;
|
|
1442
|
-
tokenSet: boolean;
|
|
1443
|
-
url: string | null;
|
|
1444
|
-
method: "POST" | "PUT" | null;
|
|
1445
|
-
format: "json" | "text" | null;
|
|
1446
|
-
headers: string | null;
|
|
1447
|
-
onCrash: boolean;
|
|
1448
|
-
onUnhealthy: boolean;
|
|
1449
|
-
onForcedRestart: boolean;
|
|
1450
|
-
onRecovered: boolean;
|
|
1451
|
-
onHost: boolean;
|
|
1452
|
-
cooldownMs: number;
|
|
1453
|
-
id: string;
|
|
1454
|
-
kind: "telegram" | "webhook";
|
|
1455
|
-
enabled: boolean;
|
|
1456
|
-
useOwnSettings: boolean;
|
|
1457
|
-
lastResult?: string | null | undefined;
|
|
1458
|
-
lastResultAt?: number | null | undefined;
|
|
1459
|
-
onDdns?: boolean | undefined;
|
|
1460
|
-
}[] | undefined;
|
|
1461
|
-
}, {}>;
|
|
1462
|
-
export type NotificationView = typeof notificationViewSchema.infer;
|
|
1463
|
-
export declare const sessionViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1464
|
-
authenticated: boolean;
|
|
1465
|
-
authRequired: boolean;
|
|
1466
|
-
passwordSet: boolean;
|
|
1467
|
-
usingDefaultPassword: boolean;
|
|
1468
|
-
defaultPassword: string | null;
|
|
1469
|
-
sessionTtlMs: number;
|
|
1470
|
-
apiTokenSet?: boolean | undefined;
|
|
1471
|
-
}, {}>;
|
|
1472
|
-
export type SessionView = typeof sessionViewSchema.infer;
|
|
1473
|
-
/** `POST /api/auth/token`: the new token, returned once, and the readable head the panel keeps. */
|
|
1474
|
-
export declare const apiTokenCreatedSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1475
|
-
token: string;
|
|
1476
|
-
hint: string;
|
|
1477
|
-
}, {}>;
|
|
1478
|
-
export declare const loginSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1479
|
-
password: string;
|
|
1480
|
-
}, {}>;
|
|
1481
|
-
export type LoginRequest = typeof loginSchema.infer;
|
|
1482
|
-
/** Any non-empty password is allowed; only a sanity cap on the length. */
|
|
1483
|
-
export declare const passwordValueSchema: import("arktype/internal/variants/string.ts").StringType<string, {}>;
|
|
1484
|
-
export declare const passwordSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1485
|
-
newPassword: string;
|
|
1486
|
-
currentPassword?: string | undefined;
|
|
1487
|
-
}, {}>;
|
|
1488
|
-
export type PasswordRequest = typeof passwordSchema.infer;
|
|
1195
|
+
export type MetaView = typeof metaViewSchema.infer;
|
|
1489
1196
|
export declare const serverStatusSchema: import("arktype/internal/variants/string.ts").StringType<"stopped" | "running" | "starting" | "stopping" | "backoff" | "crashed" | "conflict", {}>;
|
|
1490
1197
|
export type ServerStatus = typeof serverStatusSchema.infer;
|
|
1491
1198
|
declare const healthStateSchema: import("arktype/internal/variants/string.ts").StringType<"unknown" | "disabled" | "healthy" | "unhealthy", {}>;
|
|
@@ -1494,31 +1201,48 @@ declare const portStateSchema: import("arktype/internal/variants/string.ts").Str
|
|
|
1494
1201
|
export type PortState = typeof portStateSchema.infer;
|
|
1495
1202
|
export declare const logStreamSchema: import("arktype/internal/variants/string.ts").StringType<"stdout" | "stderr" | "system", {}>;
|
|
1496
1203
|
export type LogStream = typeof logStreamSchema.infer;
|
|
1497
|
-
declare const logLineSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1204
|
+
export declare const logLineSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1498
1205
|
ts: number;
|
|
1499
1206
|
stream: "stdout" | "stderr" | "system";
|
|
1500
1207
|
text: string;
|
|
1208
|
+
cursor?: string | undefined;
|
|
1501
1209
|
}, {}>;
|
|
1502
1210
|
export type LogLine = typeof logLineSchema.infer;
|
|
1503
|
-
/**
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1211
|
+
/** One run and the lines it wrote; `truncated` when only the newest of them are here. */
|
|
1212
|
+
export declare const jobRunDetailSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1213
|
+
run: {
|
|
1214
|
+
runId: string;
|
|
1215
|
+
trigger: "schedule" | "manual" | "catch-up";
|
|
1216
|
+
startedAt: number;
|
|
1217
|
+
endedAt: number | null;
|
|
1218
|
+
outcome: "ok" | "running" | "failed" | "timeout" | "cancelled" | "spawn-error" | "interrupted";
|
|
1219
|
+
exitCode: number | null;
|
|
1220
|
+
signal: string | null;
|
|
1221
|
+
scheduledFor?: number | undefined;
|
|
1222
|
+
error?: string | undefined;
|
|
1223
|
+
};
|
|
1224
|
+
lines: {
|
|
1225
|
+
ts: number;
|
|
1226
|
+
stream: "stdout" | "stderr" | "system";
|
|
1227
|
+
text: string;
|
|
1228
|
+
cursor?: string | undefined;
|
|
1229
|
+
}[];
|
|
1230
|
+
truncated?: boolean | undefined;
|
|
1231
|
+
}, {}>;
|
|
1232
|
+
export type JobRunDetail = typeof jobRunDetailSchema.infer;
|
|
1233
|
+
/** Who caused an event: `policy` is the panel itself, `user` a session, `agent` an API token, `boot` autostart. */
|
|
1510
1234
|
declare const historyActorSchema: import("arktype/internal/variants/string.ts").StringType<"policy" | "user" | "agent" | "boot", {}>;
|
|
1511
1235
|
export type HistoryActor = typeof historyActorSchema.infer;
|
|
1512
1236
|
declare const historyEventSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1513
1237
|
serverId: string;
|
|
1514
1238
|
ts: number;
|
|
1515
|
-
type: "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
1239
|
+
type: "deploy" | "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
1516
1240
|
detail: string;
|
|
1517
1241
|
runtimeMs?: number | undefined;
|
|
1242
|
+
outcome?: "ok" | "failed" | undefined;
|
|
1518
1243
|
actor?: "policy" | "user" | "agent" | "boot" | undefined;
|
|
1519
1244
|
}, {}>;
|
|
1520
1245
|
export type HistoryEvent = typeof historyEventSchema.infer;
|
|
1521
|
-
/** Rolling window stats derived from the persisted event log. */
|
|
1522
1246
|
declare const serverHistorySchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1523
1247
|
windowMs: number;
|
|
1524
1248
|
uptimeRatio: number | null;
|
|
@@ -1531,9 +1255,10 @@ declare const serverHistorySchema: import("arktype/internal/variants/object.ts")
|
|
|
1531
1255
|
events: {
|
|
1532
1256
|
serverId: string;
|
|
1533
1257
|
ts: number;
|
|
1534
|
-
type: "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
1258
|
+
type: "deploy" | "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
1535
1259
|
detail: string;
|
|
1536
1260
|
runtimeMs?: number | undefined;
|
|
1261
|
+
outcome?: "ok" | "failed" | undefined;
|
|
1537
1262
|
actor?: "policy" | "user" | "agent" | "boot" | undefined;
|
|
1538
1263
|
}[];
|
|
1539
1264
|
}, {}>;
|
|
@@ -1567,15 +1292,10 @@ declare const hostViewSchema: import("arktype/internal/variants/object.ts").Obje
|
|
|
1567
1292
|
swapUsedPercentAlert?: number | undefined;
|
|
1568
1293
|
tempCelsiusAlert?: number | undefined;
|
|
1569
1294
|
diskUsedPercentAlert?: number | undefined;
|
|
1295
|
+
unmeasured?: string[] | undefined;
|
|
1570
1296
|
}, {}>;
|
|
1571
1297
|
export type HostView = typeof hostViewSchema.infer;
|
|
1572
|
-
/**
|
|
1573
|
-
* The WSL2 temperature bridge, as the settings page reports it.
|
|
1574
|
-
*
|
|
1575
|
-
* A WSL2 guest cannot read a CPU temperature at all, so the panel offers to install a Windows-side
|
|
1576
|
-
* helper and point `host.tempCommand` at it. `supported` is false on any other platform, which is
|
|
1577
|
-
* how the UI hides the whole block rather than offering a button that cannot work.
|
|
1578
|
-
*/
|
|
1298
|
+
/** The WSL2 temperature bridge; `supported` is false off WSL, so the UI hides the block. */
|
|
1579
1299
|
export declare const wslTemperatureSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1580
1300
|
wsl: boolean;
|
|
1581
1301
|
supported: boolean;
|
|
@@ -1589,251 +1309,9 @@ export declare const wslTemperatureSchema: import("arktype/internal/variants/obj
|
|
|
1589
1309
|
needsDownload?: boolean | undefined;
|
|
1590
1310
|
}, {}>;
|
|
1591
1311
|
export type WslTemperatureStatus = typeof wslTemperatureSchema.infer;
|
|
1592
|
-
declare const
|
|
1593
|
-
name: string;
|
|
1594
|
-
sizeBytes: number;
|
|
1595
|
-
createdAt: number;
|
|
1596
|
-
encrypted: boolean;
|
|
1597
|
-
}, {}>;
|
|
1598
|
-
export type BackupFile = typeof backupFileSchema.infer;
|
|
1599
|
-
/**
|
|
1600
|
-
* One selectable entry in a backup: a global item (`global:settings`,
|
|
1601
|
-
* `global:secrets`, `global:tls`) or a workspace, whose `items` are the
|
|
1602
|
-
* sub-choices a per-workspace dialog offers.
|
|
1603
|
-
*/
|
|
1604
|
-
export declare const backupEntrySchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1312
|
+
export declare const serverViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1605
1313
|
id: string;
|
|
1606
|
-
|
|
1607
|
-
kind: "tls" | "workspace" | "settings" | "secrets";
|
|
1608
|
-
note: string | null;
|
|
1609
|
-
items: {
|
|
1610
|
-
id: string;
|
|
1611
|
-
label: string;
|
|
1612
|
-
kind: "data" | "settings" | "servers" | "secrets";
|
|
1613
|
-
included: boolean;
|
|
1614
|
-
note: string | null;
|
|
1615
|
-
labelKey?: string | undefined;
|
|
1616
|
-
labelParams?: Record<string, string> | undefined;
|
|
1617
|
-
secret?: string | undefined;
|
|
1618
|
-
path?: string | undefined;
|
|
1619
|
-
origin?: string | undefined;
|
|
1620
|
-
noteKey?: string | undefined;
|
|
1621
|
-
noteParams?: Record<string, string> | undefined;
|
|
1622
|
-
ignoreGenerated?: boolean | undefined;
|
|
1623
|
-
}[];
|
|
1624
|
-
labelKey?: string | undefined;
|
|
1625
|
-
labelParams?: Record<string, string> | undefined;
|
|
1626
|
-
workspaceId?: string | undefined;
|
|
1627
|
-
noteKey?: string | undefined;
|
|
1628
|
-
noteParams?: Record<string, string> | undefined;
|
|
1629
|
-
}, {}>;
|
|
1630
|
-
export type BackupEntry = typeof backupEntrySchema.infer;
|
|
1631
|
-
/**
|
|
1632
|
-
* The schedule as a *response* carries it: undeclared keys are accepted, at both levels.
|
|
1633
|
-
*
|
|
1634
|
-
* A response schema may not reject (a newer panel may add a field an older client still reads), and
|
|
1635
|
-
* `scope` is one level deep — so the outer `.onUndeclaredKey` on the config schema is not enough:
|
|
1636
|
-
* a frame carrying `schedule.scope` rejected outright while this was the config shape.
|
|
1637
|
-
*/
|
|
1638
|
-
export declare const backupScheduleViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1639
|
-
intervalMs: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
1640
|
-
keep: import("arktype/internal/attributes.ts").Default<number, 7>;
|
|
1641
|
-
scope?: {
|
|
1642
|
-
mode: "only" | "except";
|
|
1643
|
-
ids: string[];
|
|
1644
|
-
} | undefined;
|
|
1645
|
-
}, {}>;
|
|
1646
|
-
export declare const backupsViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1647
|
-
enabled: boolean;
|
|
1648
|
-
dir: string;
|
|
1649
|
-
keep: number;
|
|
1650
|
-
includePaths: string[];
|
|
1651
|
-
schedule?: {
|
|
1652
|
-
intervalMs: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
1653
|
-
keep: import("arktype/internal/attributes.ts").Default<number, 7>;
|
|
1654
|
-
scope?: {
|
|
1655
|
-
mode: "only" | "except";
|
|
1656
|
-
ids: string[];
|
|
1657
|
-
} | undefined;
|
|
1658
|
-
} | undefined;
|
|
1659
|
-
lastAutomaticAt?: number | null | undefined;
|
|
1660
|
-
scheduleError?: {
|
|
1661
|
-
message: string;
|
|
1662
|
-
at: number;
|
|
1663
|
-
} | undefined;
|
|
1664
|
-
entries?: {
|
|
1665
|
-
id: string;
|
|
1666
|
-
label: string;
|
|
1667
|
-
kind: "tls" | "workspace" | "settings" | "secrets";
|
|
1668
|
-
note: string | null;
|
|
1669
|
-
items: {
|
|
1670
|
-
id: string;
|
|
1671
|
-
label: string;
|
|
1672
|
-
kind: "data" | "settings" | "servers" | "secrets";
|
|
1673
|
-
included: boolean;
|
|
1674
|
-
note: string | null;
|
|
1675
|
-
labelKey?: string | undefined;
|
|
1676
|
-
labelParams?: Record<string, string> | undefined;
|
|
1677
|
-
secret?: string | undefined;
|
|
1678
|
-
path?: string | undefined;
|
|
1679
|
-
origin?: string | undefined;
|
|
1680
|
-
noteKey?: string | undefined;
|
|
1681
|
-
noteParams?: Record<string, string> | undefined;
|
|
1682
|
-
ignoreGenerated?: boolean | undefined;
|
|
1683
|
-
}[];
|
|
1684
|
-
labelKey?: string | undefined;
|
|
1685
|
-
labelParams?: Record<string, string> | undefined;
|
|
1686
|
-
workspaceId?: string | undefined;
|
|
1687
|
-
noteKey?: string | undefined;
|
|
1688
|
-
noteParams?: Record<string, string> | undefined;
|
|
1689
|
-
}[] | undefined;
|
|
1690
|
-
files?: {
|
|
1691
|
-
name: string;
|
|
1692
|
-
sizeBytes: number;
|
|
1693
|
-
createdAt: number;
|
|
1694
|
-
encrypted: boolean;
|
|
1695
|
-
}[] | undefined;
|
|
1696
|
-
}, {}>;
|
|
1697
|
-
export type BackupsView = typeof backupsViewSchema.infer;
|
|
1698
|
-
/**
|
|
1699
|
-
* The backup *selection model*: what a capture could include, and what is already on disk.
|
|
1700
|
-
*
|
|
1701
|
-
* Its own route rather than a field of the state frame, because building it reads every workspace's
|
|
1702
|
-
* secrets file and stats every archive — work proportional to workspaces × archives, on a path that
|
|
1703
|
-
* runs per frame. A dialog needs it when it opens and not otherwise.
|
|
1704
|
-
*/
|
|
1705
|
-
export declare const backupSelectionSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1706
|
-
dir: string;
|
|
1707
|
-
entries: {
|
|
1708
|
-
id: string;
|
|
1709
|
-
label: string;
|
|
1710
|
-
kind: "tls" | "workspace" | "settings" | "secrets";
|
|
1711
|
-
note: string | null;
|
|
1712
|
-
items: {
|
|
1713
|
-
id: string;
|
|
1714
|
-
label: string;
|
|
1715
|
-
kind: "data" | "settings" | "servers" | "secrets";
|
|
1716
|
-
included: boolean;
|
|
1717
|
-
note: string | null;
|
|
1718
|
-
labelKey?: string | undefined;
|
|
1719
|
-
labelParams?: Record<string, string> | undefined;
|
|
1720
|
-
secret?: string | undefined;
|
|
1721
|
-
path?: string | undefined;
|
|
1722
|
-
origin?: string | undefined;
|
|
1723
|
-
noteKey?: string | undefined;
|
|
1724
|
-
noteParams?: Record<string, string> | undefined;
|
|
1725
|
-
ignoreGenerated?: boolean | undefined;
|
|
1726
|
-
}[];
|
|
1727
|
-
labelKey?: string | undefined;
|
|
1728
|
-
labelParams?: Record<string, string> | undefined;
|
|
1729
|
-
workspaceId?: string | undefined;
|
|
1730
|
-
noteKey?: string | undefined;
|
|
1731
|
-
noteParams?: Record<string, string> | undefined;
|
|
1732
|
-
}[];
|
|
1733
|
-
files: {
|
|
1734
|
-
name: string;
|
|
1735
|
-
sizeBytes: number;
|
|
1736
|
-
createdAt: number;
|
|
1737
|
-
encrypted: boolean;
|
|
1738
|
-
}[];
|
|
1739
|
-
}, {}>;
|
|
1740
|
-
export type BackupSelection = typeof backupSelectionSchema.infer;
|
|
1741
|
-
/** One restorable slice of an archive: a global item, a workspace item, or a data path. */
|
|
1742
|
-
export declare const restoreItemSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1743
|
-
id: string;
|
|
1744
|
-
label: string;
|
|
1745
|
-
kind: "tls" | "data" | "settings" | "servers" | "secrets";
|
|
1746
|
-
restorable: boolean;
|
|
1747
|
-
selected: boolean;
|
|
1748
|
-
note: string | null;
|
|
1749
|
-
labelKey?: string | undefined;
|
|
1750
|
-
labelParams?: Record<string, string> | undefined;
|
|
1751
|
-
workspaceId?: string | undefined;
|
|
1752
|
-
noteKey?: string | undefined;
|
|
1753
|
-
noteParams?: Record<string, string> | undefined;
|
|
1754
|
-
}, {}>;
|
|
1755
|
-
export type RestoreItem = typeof restoreItemSchema.infer;
|
|
1756
|
-
/**
|
|
1757
|
-
* Why one thing was skipped, as a reason the UI can word itself.
|
|
1758
|
-
*
|
|
1759
|
-
* `skipped` stays a list of ready-made English sentences for an older UI and for
|
|
1760
|
-
* `noc-console`; this is the same list in parts, so a translated UI says it in the
|
|
1761
|
-
* reader's language instead of showing the panel's English inside its own sentence.
|
|
1762
|
-
*/
|
|
1763
|
-
export declare const restoreSkipSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1764
|
-
label: string;
|
|
1765
|
-
labelKey?: string | undefined;
|
|
1766
|
-
labelParams?: Record<string, string> | undefined;
|
|
1767
|
-
reasonKey?: string | undefined;
|
|
1768
|
-
reasonParams?: Record<string, string> | undefined;
|
|
1769
|
-
}, {}>;
|
|
1770
|
-
export type RestoreSkip = typeof restoreSkipSchema.infer;
|
|
1771
|
-
export declare const restorePlanSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1772
|
-
dryRun: boolean;
|
|
1773
|
-
encrypted: boolean;
|
|
1774
|
-
needsPassword: boolean;
|
|
1775
|
-
items: {
|
|
1776
|
-
id: string;
|
|
1777
|
-
label: string;
|
|
1778
|
-
kind: "tls" | "data" | "settings" | "servers" | "secrets";
|
|
1779
|
-
restorable: boolean;
|
|
1780
|
-
selected: boolean;
|
|
1781
|
-
note: string | null;
|
|
1782
|
-
labelKey?: string | undefined;
|
|
1783
|
-
labelParams?: Record<string, string> | undefined;
|
|
1784
|
-
workspaceId?: string | undefined;
|
|
1785
|
-
noteKey?: string | undefined;
|
|
1786
|
-
noteParams?: Record<string, string> | undefined;
|
|
1787
|
-
}[];
|
|
1788
|
-
applied: string[];
|
|
1789
|
-
skipped: string[];
|
|
1790
|
-
restartRequired: boolean;
|
|
1791
|
-
reloaded: boolean;
|
|
1792
|
-
archive?: {
|
|
1793
|
-
writtenBy?: string | undefined;
|
|
1794
|
-
schema?: number | undefined;
|
|
1795
|
-
} | undefined;
|
|
1796
|
-
hooks?: {
|
|
1797
|
-
serverId: string;
|
|
1798
|
-
workspaceId: string;
|
|
1799
|
-
action: "dump" | "load";
|
|
1800
|
-
ok: boolean;
|
|
1801
|
-
output?: string | undefined;
|
|
1802
|
-
}[] | undefined;
|
|
1803
|
-
appliedIds?: string[] | undefined;
|
|
1804
|
-
skippedItems?: {
|
|
1805
|
-
label: string;
|
|
1806
|
-
labelKey?: string | undefined;
|
|
1807
|
-
labelParams?: Record<string, string> | undefined;
|
|
1808
|
-
reasonKey?: string | undefined;
|
|
1809
|
-
reasonParams?: Record<string, string> | undefined;
|
|
1810
|
-
}[] | undefined;
|
|
1811
|
-
replacedUnderRunning?: {
|
|
1812
|
-
workspaceId: string;
|
|
1813
|
-
serverId: string;
|
|
1814
|
-
path: string;
|
|
1815
|
-
}[] | undefined;
|
|
1816
|
-
createdWorkspaces?: string[] | undefined;
|
|
1817
|
-
error?: string | undefined;
|
|
1818
|
-
}, {}>;
|
|
1819
|
-
export type RestorePlan = typeof restorePlanSchema.infer;
|
|
1820
|
-
export declare const backupCreateSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1821
|
-
password?: string | undefined;
|
|
1822
|
-
include?: string[] | undefined;
|
|
1823
|
-
exclude?: string[] | undefined;
|
|
1824
|
-
}, {}>;
|
|
1825
|
-
export type BackupCreate = typeof backupCreateSchema.infer;
|
|
1826
|
-
export declare const restoreRequestSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1827
|
-
name?: string | undefined;
|
|
1828
|
-
password?: string | undefined;
|
|
1829
|
-
include?: string[] | undefined;
|
|
1830
|
-
exclude?: string[] | undefined;
|
|
1831
|
-
}, {}>;
|
|
1832
|
-
export type RestoreRequest = typeof restoreRequestSchema.infer;
|
|
1833
|
-
/** Runtime view of a server: its effective config plus everything observed. */
|
|
1834
|
-
export declare const serverViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1835
|
-
id: string;
|
|
1836
|
-
config: {
|
|
1314
|
+
config: {
|
|
1837
1315
|
id: string;
|
|
1838
1316
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1839
1317
|
autostart: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -1855,7 +1333,7 @@ export declare const serverViewSchema: import("arktype/internal/variants/object.
|
|
|
1855
1333
|
}, {}>;
|
|
1856
1334
|
health: import("arktype/internal/attributes.ts").Default<{
|
|
1857
1335
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1858
|
-
mode: import("arktype/internal/attributes.ts").Default<"
|
|
1336
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
1859
1337
|
http: import("arktype/internal/attributes.ts").Default<{
|
|
1860
1338
|
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
1861
1339
|
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -1885,6 +1363,7 @@ export declare const serverViewSchema: import("arktype/internal/variants/object.
|
|
|
1885
1363
|
}, {}>;
|
|
1886
1364
|
backupPaths: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
1887
1365
|
backupIgnoreGenerated: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1366
|
+
secretEnv: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
1888
1367
|
label?: string | null | undefined;
|
|
1889
1368
|
bootstrap?: {
|
|
1890
1369
|
command: string;
|
|
@@ -1893,6 +1372,15 @@ export declare const serverViewSchema: import("arktype/internal/variants/object.
|
|
|
1893
1372
|
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
1894
1373
|
runOnce: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1895
1374
|
} | null | undefined;
|
|
1375
|
+
deploy?: {
|
|
1376
|
+
steps: {
|
|
1377
|
+
command: string;
|
|
1378
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
1379
|
+
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 300000>;
|
|
1380
|
+
cwd?: string | undefined;
|
|
1381
|
+
}[];
|
|
1382
|
+
restart: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1383
|
+
} | null | undefined;
|
|
1896
1384
|
dump?: {
|
|
1897
1385
|
command: string;
|
|
1898
1386
|
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
@@ -1936,9 +1424,10 @@ export declare const serverViewSchema: import("arktype/internal/variants/object.
|
|
|
1936
1424
|
events: {
|
|
1937
1425
|
serverId: string;
|
|
1938
1426
|
ts: number;
|
|
1939
|
-
type: "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
1427
|
+
type: "deploy" | "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
1940
1428
|
detail: string;
|
|
1941
1429
|
runtimeMs?: number | undefined;
|
|
1430
|
+
outcome?: "ok" | "failed" | undefined;
|
|
1942
1431
|
actor?: "policy" | "user" | "agent" | "boot" | undefined;
|
|
1943
1432
|
}[];
|
|
1944
1433
|
};
|
|
@@ -1952,15 +1441,20 @@ export declare const serverViewSchema: import("arktype/internal/variants/object.
|
|
|
1952
1441
|
workspaceId?: string | undefined;
|
|
1953
1442
|
adopted?: boolean | undefined;
|
|
1954
1443
|
stoppedByPanel?: boolean | undefined;
|
|
1444
|
+
lastStderr?: string[] | undefined;
|
|
1445
|
+
secretEnvSet?: string[] | undefined;
|
|
1446
|
+
deploy?: {
|
|
1447
|
+
running: boolean;
|
|
1448
|
+
lastAt?: number | undefined;
|
|
1449
|
+
lastOutcome?: "ok" | "failed" | undefined;
|
|
1450
|
+
lastError?: string | undefined;
|
|
1451
|
+
} | undefined;
|
|
1452
|
+
restartRequired?: boolean | undefined;
|
|
1955
1453
|
}, {}>;
|
|
1956
1454
|
export type ServerView = Omit<typeof serverViewSchema.infer, 'config'> & {
|
|
1957
1455
|
config: ServerConfig;
|
|
1958
1456
|
};
|
|
1959
|
-
/**
|
|
1960
|
-
* What `/healthz` answers, on both statuses — 200 when serving, 503 when a server has crashed,
|
|
1961
|
-
* which shares this response's `content` in the spec. The detail fields are optional because they are
|
|
1962
|
-
* only included for an authenticated caller.
|
|
1963
|
-
*/
|
|
1457
|
+
/** What `/healthz` answers on 200 and 503; the detail fields are only for an authenticated caller. */
|
|
1964
1458
|
export declare const healthResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1965
1459
|
status: "ok" | "degraded";
|
|
1966
1460
|
uptimeMs: number;
|
|
@@ -2011,16 +1505,7 @@ declare const controlViewSchema: import("arktype/internal/variants/object.ts").O
|
|
|
2011
1505
|
allowedHosts?: string[] | undefined;
|
|
2012
1506
|
}, {}>;
|
|
2013
1507
|
export type ControlView = typeof controlViewSchema.infer;
|
|
2014
|
-
/**
|
|
2015
|
-
/**
|
|
2016
|
-
* A user-supplied UI, as the settings page shows it.
|
|
2017
|
-
*
|
|
2018
|
-
* Every field is optional, and none of them is a fallback: a `ui.json` may be written by
|
|
2019
|
-
* the panel (which adds `uploadedAt`/`files`) **or dropped in by hand** following
|
|
2020
|
-
* `docs/UI_CREATION.md`, which documents only the author-facing fields. Requiring ours
|
|
2021
|
-
* meant a hand-written file parsed to nothing at all, taking `repo`/`tag` with it and
|
|
2022
|
-
* silently disabling `ui-update` for exactly the UI that declared itself.
|
|
2023
|
-
*/
|
|
1508
|
+
/** A user-supplied UI's `ui.json`; every field optional because a hand-written one carries only the author fields. */
|
|
2024
1509
|
export declare const uiMetaSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2025
1510
|
name?: string | undefined;
|
|
2026
1511
|
version?: string | null | undefined;
|
|
@@ -2076,7 +1561,7 @@ export declare const workspaceViewSchema: import("arktype/internal/variants/obje
|
|
|
2076
1561
|
}, {}>;
|
|
2077
1562
|
health: import("arktype/internal/attributes.ts").Default<{
|
|
2078
1563
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2079
|
-
mode: import("arktype/internal/attributes.ts").Default<"
|
|
1564
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
2080
1565
|
http: import("arktype/internal/attributes.ts").Default<{
|
|
2081
1566
|
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
2082
1567
|
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -2164,7 +1649,7 @@ export declare const workspaceViewSchema: import("arktype/internal/variants/obje
|
|
|
2164
1649
|
}, {}>;
|
|
2165
1650
|
health: import("arktype/internal/attributes.ts").Default<{
|
|
2166
1651
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2167
|
-
mode: import("arktype/internal/attributes.ts").Default<"
|
|
1652
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
2168
1653
|
http: import("arktype/internal/attributes.ts").Default<{
|
|
2169
1654
|
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
2170
1655
|
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -2194,6 +1679,7 @@ export declare const workspaceViewSchema: import("arktype/internal/variants/obje
|
|
|
2194
1679
|
}, {}>;
|
|
2195
1680
|
backupPaths: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
2196
1681
|
backupIgnoreGenerated: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1682
|
+
secretEnv: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
2197
1683
|
label?: string | null | undefined;
|
|
2198
1684
|
bootstrap?: {
|
|
2199
1685
|
command: string;
|
|
@@ -2202,6 +1688,15 @@ export declare const workspaceViewSchema: import("arktype/internal/variants/obje
|
|
|
2202
1688
|
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
2203
1689
|
runOnce: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2204
1690
|
} | null | undefined;
|
|
1691
|
+
deploy?: {
|
|
1692
|
+
steps: {
|
|
1693
|
+
command: string;
|
|
1694
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
1695
|
+
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 300000>;
|
|
1696
|
+
cwd?: string | undefined;
|
|
1697
|
+
}[];
|
|
1698
|
+
restart: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
1699
|
+
} | null | undefined;
|
|
2205
1700
|
dump?: {
|
|
2206
1701
|
command: string;
|
|
2207
1702
|
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
@@ -2245,9 +1740,10 @@ export declare const workspaceViewSchema: import("arktype/internal/variants/obje
|
|
|
2245
1740
|
events: {
|
|
2246
1741
|
serverId: string;
|
|
2247
1742
|
ts: number;
|
|
2248
|
-
type: "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
1743
|
+
type: "deploy" | "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
2249
1744
|
detail: string;
|
|
2250
1745
|
runtimeMs?: number | undefined;
|
|
1746
|
+
outcome?: "ok" | "failed" | undefined;
|
|
2251
1747
|
actor?: "policy" | "user" | "agent" | "boot" | undefined;
|
|
2252
1748
|
}[];
|
|
2253
1749
|
};
|
|
@@ -2261,6 +1757,15 @@ export declare const workspaceViewSchema: import("arktype/internal/variants/obje
|
|
|
2261
1757
|
workspaceId?: string | undefined;
|
|
2262
1758
|
adopted?: boolean | undefined;
|
|
2263
1759
|
stoppedByPanel?: boolean | undefined;
|
|
1760
|
+
lastStderr?: string[] | undefined;
|
|
1761
|
+
secretEnvSet?: string[] | undefined;
|
|
1762
|
+
deploy?: {
|
|
1763
|
+
running: boolean;
|
|
1764
|
+
lastAt?: number | undefined;
|
|
1765
|
+
lastOutcome?: "ok" | "failed" | undefined;
|
|
1766
|
+
lastError?: string | undefined;
|
|
1767
|
+
} | undefined;
|
|
1768
|
+
restartRequired?: boolean | undefined;
|
|
2264
1769
|
}[];
|
|
2265
1770
|
configWarnings?: string[] | undefined;
|
|
2266
1771
|
ddns?: {
|
|
@@ -2276,7 +1781,7 @@ export declare const workspaceViewSchema: import("arktype/internal/variants/obje
|
|
|
2276
1781
|
provider: string;
|
|
2277
1782
|
type: "A" | "AAAA";
|
|
2278
1783
|
ip: string | null;
|
|
2279
|
-
state: "
|
|
1784
|
+
state: "ok" | "skipped" | "error" | "pending" | "unchanged";
|
|
2280
1785
|
message: string | null;
|
|
2281
1786
|
updatedAt: number | null;
|
|
2282
1787
|
stopped?: boolean | undefined;
|
|
@@ -2287,12 +1792,45 @@ export declare const workspaceViewSchema: import("arktype/internal/variants/obje
|
|
|
2287
1792
|
pid: number;
|
|
2288
1793
|
startedAt: number | null;
|
|
2289
1794
|
}[] | undefined;
|
|
1795
|
+
jobs?: {
|
|
1796
|
+
id: string;
|
|
1797
|
+
enabled: boolean;
|
|
1798
|
+
command: string;
|
|
1799
|
+
args: string[];
|
|
1800
|
+
schedule: string;
|
|
1801
|
+
running: boolean;
|
|
1802
|
+
label?: string | undefined;
|
|
1803
|
+
description?: string | undefined;
|
|
1804
|
+
nextRunAt?: number | null | undefined;
|
|
1805
|
+
current?: {
|
|
1806
|
+
runId: string;
|
|
1807
|
+
startedAt: number;
|
|
1808
|
+
trigger: "schedule" | "manual" | "catch-up";
|
|
1809
|
+
} | undefined;
|
|
1810
|
+
last?: {
|
|
1811
|
+
runId: string;
|
|
1812
|
+
outcome: "ok" | "running" | "failed" | "timeout" | "cancelled" | "spawn-error" | "interrupted";
|
|
1813
|
+
exitCode: number | null;
|
|
1814
|
+
signal: string | null;
|
|
1815
|
+
startedAt: number;
|
|
1816
|
+
endedAt: number;
|
|
1817
|
+
durationMs: number;
|
|
1818
|
+
} | undefined;
|
|
1819
|
+
problem?: string | undefined;
|
|
1820
|
+
lastRunAt?: number | undefined;
|
|
1821
|
+
lastExitCode?: number | null | undefined;
|
|
1822
|
+
logPath?: string | undefined;
|
|
1823
|
+
secretEnv?: string[] | undefined;
|
|
1824
|
+
secretEnvSet?: string[] | undefined;
|
|
1825
|
+
timeoutSeconds?: number | undefined;
|
|
1826
|
+
catchUp?: boolean | undefined;
|
|
1827
|
+
cwd?: string | undefined;
|
|
1828
|
+
env?: Record<string, string> | undefined;
|
|
1829
|
+
}[] | undefined;
|
|
1830
|
+
jobsError?: string | undefined;
|
|
2290
1831
|
}, {}>;
|
|
2291
1832
|
export type WorkspaceView = typeof workspaceViewSchema.infer;
|
|
2292
|
-
/**
|
|
2293
|
-
* The whole panel in one frame: global state plus every workspace. Workspace
|
|
2294
|
-
* pages read their own subtree; the global pages read across all of them.
|
|
2295
|
-
*/
|
|
1833
|
+
/** The whole panel in one frame: global state plus every workspace. */
|
|
2296
1834
|
export declare const appStateSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2297
1835
|
control: {
|
|
2298
1836
|
label: string;
|
|
@@ -2353,6 +1891,7 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2353
1891
|
swapUsedPercentAlert?: number | undefined;
|
|
2354
1892
|
tempCelsiusAlert?: number | undefined;
|
|
2355
1893
|
diskUsedPercentAlert?: number | undefined;
|
|
1894
|
+
unmeasured?: string[] | undefined;
|
|
2356
1895
|
};
|
|
2357
1896
|
backups: {
|
|
2358
1897
|
enabled: boolean;
|
|
@@ -2375,12 +1914,12 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2375
1914
|
entries?: {
|
|
2376
1915
|
id: string;
|
|
2377
1916
|
label: string;
|
|
2378
|
-
kind: "
|
|
1917
|
+
kind: "settings" | "secrets" | "tls" | "workspace";
|
|
2379
1918
|
note: string | null;
|
|
2380
1919
|
items: {
|
|
2381
1920
|
id: string;
|
|
2382
1921
|
label: string;
|
|
2383
|
-
kind: "
|
|
1922
|
+
kind: "settings" | "servers" | "secrets" | "jobs" | "data";
|
|
2384
1923
|
included: boolean;
|
|
2385
1924
|
note: string | null;
|
|
2386
1925
|
labelKey?: string | undefined;
|
|
@@ -2441,7 +1980,7 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2441
1980
|
}, {}>;
|
|
2442
1981
|
health: import("arktype/internal/attributes.ts").Default<{
|
|
2443
1982
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2444
|
-
mode: import("arktype/internal/attributes.ts").Default<"
|
|
1983
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
2445
1984
|
http: import("arktype/internal/attributes.ts").Default<{
|
|
2446
1985
|
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
2447
1986
|
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -2529,7 +2068,7 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2529
2068
|
}, {}>;
|
|
2530
2069
|
health: import("arktype/internal/attributes.ts").Default<{
|
|
2531
2070
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2532
|
-
mode: import("arktype/internal/attributes.ts").Default<"
|
|
2071
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
2533
2072
|
http: import("arktype/internal/attributes.ts").Default<{
|
|
2534
2073
|
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
2535
2074
|
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -2559,6 +2098,7 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2559
2098
|
}, {}>;
|
|
2560
2099
|
backupPaths: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
2561
2100
|
backupIgnoreGenerated: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2101
|
+
secretEnv: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
2562
2102
|
label?: string | null | undefined;
|
|
2563
2103
|
bootstrap?: {
|
|
2564
2104
|
command: string;
|
|
@@ -2567,6 +2107,15 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2567
2107
|
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
2568
2108
|
runOnce: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2569
2109
|
} | null | undefined;
|
|
2110
|
+
deploy?: {
|
|
2111
|
+
steps: {
|
|
2112
|
+
command: string;
|
|
2113
|
+
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
2114
|
+
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 300000>;
|
|
2115
|
+
cwd?: string | undefined;
|
|
2116
|
+
}[];
|
|
2117
|
+
restart: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2118
|
+
} | null | undefined;
|
|
2570
2119
|
dump?: {
|
|
2571
2120
|
command: string;
|
|
2572
2121
|
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
@@ -2610,9 +2159,10 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2610
2159
|
events: {
|
|
2611
2160
|
serverId: string;
|
|
2612
2161
|
ts: number;
|
|
2613
|
-
type: "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
2162
|
+
type: "deploy" | "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
2614
2163
|
detail: string;
|
|
2615
2164
|
runtimeMs?: number | undefined;
|
|
2165
|
+
outcome?: "ok" | "failed" | undefined;
|
|
2616
2166
|
actor?: "policy" | "user" | "agent" | "boot" | undefined;
|
|
2617
2167
|
}[];
|
|
2618
2168
|
};
|
|
@@ -2626,6 +2176,15 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2626
2176
|
workspaceId?: string | undefined;
|
|
2627
2177
|
adopted?: boolean | undefined;
|
|
2628
2178
|
stoppedByPanel?: boolean | undefined;
|
|
2179
|
+
lastStderr?: string[] | undefined;
|
|
2180
|
+
secretEnvSet?: string[] | undefined;
|
|
2181
|
+
deploy?: {
|
|
2182
|
+
running: boolean;
|
|
2183
|
+
lastAt?: number | undefined;
|
|
2184
|
+
lastOutcome?: "ok" | "failed" | undefined;
|
|
2185
|
+
lastError?: string | undefined;
|
|
2186
|
+
} | undefined;
|
|
2187
|
+
restartRequired?: boolean | undefined;
|
|
2629
2188
|
}[];
|
|
2630
2189
|
configWarnings?: string[] | undefined;
|
|
2631
2190
|
ddns?: {
|
|
@@ -2641,7 +2200,7 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2641
2200
|
provider: string;
|
|
2642
2201
|
type: "A" | "AAAA";
|
|
2643
2202
|
ip: string | null;
|
|
2644
|
-
state: "
|
|
2203
|
+
state: "ok" | "skipped" | "error" | "pending" | "unchanged";
|
|
2645
2204
|
message: string | null;
|
|
2646
2205
|
updatedAt: number | null;
|
|
2647
2206
|
stopped?: boolean | undefined;
|
|
@@ -2652,6 +2211,42 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2652
2211
|
pid: number;
|
|
2653
2212
|
startedAt: number | null;
|
|
2654
2213
|
}[] | undefined;
|
|
2214
|
+
jobs?: {
|
|
2215
|
+
id: string;
|
|
2216
|
+
enabled: boolean;
|
|
2217
|
+
command: string;
|
|
2218
|
+
args: string[];
|
|
2219
|
+
schedule: string;
|
|
2220
|
+
running: boolean;
|
|
2221
|
+
label?: string | undefined;
|
|
2222
|
+
description?: string | undefined;
|
|
2223
|
+
nextRunAt?: number | null | undefined;
|
|
2224
|
+
current?: {
|
|
2225
|
+
runId: string;
|
|
2226
|
+
startedAt: number;
|
|
2227
|
+
trigger: "schedule" | "manual" | "catch-up";
|
|
2228
|
+
} | undefined;
|
|
2229
|
+
last?: {
|
|
2230
|
+
runId: string;
|
|
2231
|
+
outcome: "ok" | "running" | "failed" | "timeout" | "cancelled" | "spawn-error" | "interrupted";
|
|
2232
|
+
exitCode: number | null;
|
|
2233
|
+
signal: string | null;
|
|
2234
|
+
startedAt: number;
|
|
2235
|
+
endedAt: number;
|
|
2236
|
+
durationMs: number;
|
|
2237
|
+
} | undefined;
|
|
2238
|
+
problem?: string | undefined;
|
|
2239
|
+
lastRunAt?: number | undefined;
|
|
2240
|
+
lastExitCode?: number | null | undefined;
|
|
2241
|
+
logPath?: string | undefined;
|
|
2242
|
+
secretEnv?: string[] | undefined;
|
|
2243
|
+
secretEnvSet?: string[] | undefined;
|
|
2244
|
+
timeoutSeconds?: number | undefined;
|
|
2245
|
+
catchUp?: boolean | undefined;
|
|
2246
|
+
cwd?: string | undefined;
|
|
2247
|
+
env?: Record<string, string> | undefined;
|
|
2248
|
+
}[] | undefined;
|
|
2249
|
+
jobsError?: string | undefined;
|
|
2655
2250
|
}[];
|
|
2656
2251
|
projectDir: string;
|
|
2657
2252
|
dataRoot: string;
|
|
@@ -2674,736 +2269,116 @@ export declare const appStateSchema: import("arktype/internal/variants/object.ts
|
|
|
2674
2269
|
routes: import("arktype/internal/attributes.ts").Default<{
|
|
2675
2270
|
id: string;
|
|
2676
2271
|
host: string;
|
|
2677
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2678
|
-
target: import("arktype/internal/attributes.ts").Default<"server" | "panel" | "external", "server">;
|
|
2679
|
-
workspace: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2680
|
-
server: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2681
|
-
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2682
|
-
path: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2683
|
-
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
2684
|
-
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
engine: {
|
|
2688
|
-
id: "caddy";
|
|
2689
|
-
installed: boolean;
|
|
2690
|
-
version: string | null;
|
|
2691
|
-
source: "downloaded" | "custom" | null;
|
|
2692
|
-
path: string | null;
|
|
2693
|
-
bytes: number | null;
|
|
2694
|
-
error: string | null;
|
|
2695
|
-
};
|
|
2696
|
-
engines: {
|
|
2697
|
-
id: "caddy";
|
|
2698
|
-
label: string;
|
|
2699
|
-
docsUrl: string;
|
|
2700
|
-
releaseUrl: string;
|
|
2701
|
-
acme: boolean;
|
|
2702
|
-
internalCa: boolean;
|
|
2703
|
-
dns01: boolean;
|
|
2704
|
-
tcp: boolean;
|
|
2705
|
-
}[];
|
|
2706
|
-
status: {
|
|
2707
|
-
state: "error" | "stopped" | "running" | "off" | "starting" | "unsupported";
|
|
2708
|
-
pid: number | null;
|
|
2709
|
-
urls: string[];
|
|
2710
|
-
certExpiryDays: number | null;
|
|
2711
|
-
since: number | null;
|
|
2712
|
-
lastError: string | null;
|
|
2713
|
-
};
|
|
2714
|
-
routes: {
|
|
2715
|
-
route: {
|
|
2716
|
-
id: string;
|
|
2717
|
-
host: string;
|
|
2718
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2719
|
-
target: import("arktype/internal/attributes.ts").Default<"server" | "panel" | "external", "server">;
|
|
2720
|
-
workspace: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2721
|
-
server: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2722
|
-
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2723
|
-
path: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2724
|
-
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
2725
|
-
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2726
|
-
};
|
|
2727
|
-
status: "error" | "ok" | "disabled" | "no-upstream";
|
|
2728
|
-
upstream: string | null;
|
|
2729
|
-
message: string | null;
|
|
2730
|
-
certificate?: {
|
|
2731
|
-
state: "local" | "pending" | "off" | "uploaded" | "issued" | "failed" | "fallback";
|
|
2732
|
-
message: string | null;
|
|
2733
|
-
retryInMinutes?: number | undefined;
|
|
2734
|
-
} | undefined;
|
|
2735
|
-
}[];
|
|
2736
|
-
certificates: {
|
|
2737
|
-
id: string;
|
|
2738
|
-
label: string;
|
|
2739
|
-
present: boolean;
|
|
2740
|
-
used: boolean;
|
|
2741
|
-
subject: string | null;
|
|
2742
|
-
issuer: string | null;
|
|
2743
|
-
validTo: string | null;
|
|
2744
|
-
daysRemaining: number | null;
|
|
2745
|
-
hosts: string[];
|
|
2746
|
-
error: string | null;
|
|
2747
|
-
}[];
|
|
2748
|
-
dnsAccounts?: {
|
|
2749
|
-
workspace: string;
|
|
2750
|
-
account: string;
|
|
2751
|
-
provider: string;
|
|
2752
|
-
label: string;
|
|
2753
|
-
writesTxt: boolean;
|
|
2754
|
-
hasCredentials: boolean;
|
|
2755
|
-
}[] | undefined;
|
|
2756
|
-
} | undefined;
|
|
2757
|
-
version?: string | undefined;
|
|
2758
|
-
settingsError?: {
|
|
2759
|
-
message: string;
|
|
2760
|
-
path: string;
|
|
2761
|
-
} | null | undefined;
|
|
2762
|
-
}, {}>;
|
|
2763
|
-
export type AppState = typeof appStateSchema.infer;
|
|
2764
|
-
export declare const sseMessageSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2765
|
-
type: "state" | "hello";
|
|
2766
|
-
ts: number;
|
|
2767
|
-
state: {
|
|
2768
|
-
control: {
|
|
2769
|
-
label: string;
|
|
2770
|
-
port: number;
|
|
2771
|
-
host: string;
|
|
2772
|
-
bindHost: string;
|
|
2773
|
-
url: string;
|
|
2774
|
-
openBrowser: boolean;
|
|
2775
|
-
restartRequired: boolean;
|
|
2776
|
-
protocol: string;
|
|
2777
|
-
auth: {
|
|
2778
|
-
enabled: boolean;
|
|
2779
|
-
passwordSet: boolean;
|
|
2780
|
-
passwordUpdatedAt: number | null;
|
|
2781
|
-
usingDefaultPassword: boolean;
|
|
2782
|
-
exposed: boolean;
|
|
2783
|
-
blockedReason: string | null;
|
|
2784
|
-
sessionTtlMs: number;
|
|
2785
|
-
cookieSecure: string;
|
|
2786
|
-
trustProxy: boolean | "loopback";
|
|
2787
|
-
maxLoginAttempts: number;
|
|
2788
|
-
lockoutMs: number;
|
|
2789
|
-
apiTokenSet?: boolean | undefined;
|
|
2790
|
-
};
|
|
2791
|
-
tls: {
|
|
2792
|
-
enabled: boolean;
|
|
2793
|
-
certPresent: boolean;
|
|
2794
|
-
subject: string | null;
|
|
2795
|
-
issuer: string | null;
|
|
2796
|
-
validFrom: string | null;
|
|
2797
|
-
validTo: string | null;
|
|
2798
|
-
daysRemaining: number | null;
|
|
2799
|
-
fingerprint: string | null;
|
|
2800
|
-
keyMatches: boolean | null;
|
|
2801
|
-
error: string | null;
|
|
2802
|
-
};
|
|
2803
|
-
allowedHosts?: string[] | undefined;
|
|
2804
|
-
};
|
|
2805
|
-
host: {
|
|
2806
|
-
enabled: boolean;
|
|
2807
|
-
cpus: number;
|
|
2808
|
-
loadAvg: number[];
|
|
2809
|
-
uptimeMs: number;
|
|
2810
|
-
memoryUsedPercent: number;
|
|
2811
|
-
swapUsedPercent: number;
|
|
2812
|
-
tempCelsius: number | null;
|
|
2813
|
-
disks: {
|
|
2814
|
-
path: string;
|
|
2815
|
-
totalBytes: number;
|
|
2816
|
-
freeBytes: number;
|
|
2817
|
-
usedPercent: number;
|
|
2818
|
-
}[];
|
|
2819
|
-
alerts: string[];
|
|
2820
|
-
sampledAt: number | null;
|
|
2821
|
-
cpuUsedPercent?: number | null | undefined;
|
|
2822
|
-
loadAlertPerCpu?: number | undefined;
|
|
2823
|
-
memoryUsedPercentAlert?: number | undefined;
|
|
2824
|
-
swapUsedPercentAlert?: number | undefined;
|
|
2825
|
-
tempCelsiusAlert?: number | undefined;
|
|
2826
|
-
diskUsedPercentAlert?: number | undefined;
|
|
2827
|
-
};
|
|
2828
|
-
backups: {
|
|
2829
|
-
enabled: boolean;
|
|
2830
|
-
dir: string;
|
|
2831
|
-
keep: number;
|
|
2832
|
-
includePaths: string[];
|
|
2833
|
-
schedule?: {
|
|
2834
|
-
intervalMs: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
2835
|
-
keep: import("arktype/internal/attributes.ts").Default<number, 7>;
|
|
2836
|
-
scope?: {
|
|
2837
|
-
mode: "only" | "except";
|
|
2838
|
-
ids: string[];
|
|
2839
|
-
} | undefined;
|
|
2840
|
-
} | undefined;
|
|
2841
|
-
lastAutomaticAt?: number | null | undefined;
|
|
2842
|
-
scheduleError?: {
|
|
2843
|
-
message: string;
|
|
2844
|
-
at: number;
|
|
2845
|
-
} | undefined;
|
|
2846
|
-
entries?: {
|
|
2847
|
-
id: string;
|
|
2848
|
-
label: string;
|
|
2849
|
-
kind: "tls" | "workspace" | "settings" | "secrets";
|
|
2850
|
-
note: string | null;
|
|
2851
|
-
items: {
|
|
2852
|
-
id: string;
|
|
2853
|
-
label: string;
|
|
2854
|
-
kind: "data" | "settings" | "servers" | "secrets";
|
|
2855
|
-
included: boolean;
|
|
2856
|
-
note: string | null;
|
|
2857
|
-
labelKey?: string | undefined;
|
|
2858
|
-
labelParams?: Record<string, string> | undefined;
|
|
2859
|
-
secret?: string | undefined;
|
|
2860
|
-
path?: string | undefined;
|
|
2861
|
-
origin?: string | undefined;
|
|
2862
|
-
noteKey?: string | undefined;
|
|
2863
|
-
noteParams?: Record<string, string> | undefined;
|
|
2864
|
-
ignoreGenerated?: boolean | undefined;
|
|
2865
|
-
}[];
|
|
2866
|
-
labelKey?: string | undefined;
|
|
2867
|
-
labelParams?: Record<string, string> | undefined;
|
|
2868
|
-
workspaceId?: string | undefined;
|
|
2869
|
-
noteKey?: string | undefined;
|
|
2870
|
-
noteParams?: Record<string, string> | undefined;
|
|
2871
|
-
}[] | undefined;
|
|
2872
|
-
files?: {
|
|
2873
|
-
name: string;
|
|
2874
|
-
sizeBytes: number;
|
|
2875
|
-
createdAt: number;
|
|
2876
|
-
encrypted: boolean;
|
|
2877
|
-
}[] | undefined;
|
|
2878
|
-
};
|
|
2879
|
-
ui: {
|
|
2880
|
-
custom: boolean;
|
|
2881
|
-
dir: string;
|
|
2882
|
-
meta: {
|
|
2883
|
-
name?: string | undefined;
|
|
2884
|
-
version?: string | null | undefined;
|
|
2885
|
-
uploadedAt?: number | undefined;
|
|
2886
|
-
files?: number | undefined;
|
|
2887
|
-
repo?: string | undefined;
|
|
2888
|
-
tag?: string | undefined;
|
|
2889
|
-
asset?: string | undefined;
|
|
2890
|
-
unix?: number | undefined;
|
|
2891
|
-
} | null;
|
|
2892
|
-
};
|
|
2893
|
-
workspaces: {
|
|
2894
|
-
id: string;
|
|
2895
|
-
label: string;
|
|
2896
|
-
configPath: string;
|
|
2897
|
-
settingsPath: string;
|
|
2898
|
-
configError: string | null;
|
|
2899
|
-
logsDir: string;
|
|
2900
|
-
defaults: {
|
|
2901
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2902
|
-
autostart: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
2903
|
-
bind: import("arktype/internal/attributes.ts").Default<"local" | "lan" | `${number}.${number}.${number}.${number}`, "local">;
|
|
2904
|
-
onPortConflict: import("arktype/internal/attributes.ts").Default<"warn" | "block" | "follow" | "reclaim" | "kill", "block">;
|
|
2905
|
-
restart: import("arktype/internal/attributes.ts").Default<{
|
|
2906
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2907
|
-
maxRetries: import("arktype/internal/attributes.ts").Default<number, 3>;
|
|
2908
|
-
baseDelayMs: import("arktype/internal/attributes.ts").Default<number, 1000>;
|
|
2909
|
-
factor: import("arktype/internal/attributes.ts").Default<number, 2>;
|
|
2910
|
-
maxDelayMs: import("arktype/internal/attributes.ts").Default<number, 30000>;
|
|
2911
|
-
resetAfterMs: import("arktype/internal/attributes.ts").Default<number, 60000>;
|
|
2912
|
-
}, {}>;
|
|
2913
|
-
health: import("arktype/internal/attributes.ts").Default<{
|
|
2914
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2915
|
-
mode: import("arktype/internal/attributes.ts").Default<"http" | "port", "port">;
|
|
2916
|
-
http: import("arktype/internal/attributes.ts").Default<{
|
|
2917
|
-
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
2918
|
-
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
2919
|
-
path: import("arktype/internal/attributes.ts").Default<string, "/">;
|
|
2920
|
-
method: import("arktype/internal/attributes.ts").Default<"GET" | "HEAD", "GET">;
|
|
2921
|
-
expectStatusBelow: import("arktype/internal/attributes.ts").Default<number, 400>;
|
|
2922
|
-
expectBody: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2923
|
-
expectStatus?: number | null | undefined;
|
|
2924
|
-
}, {}>;
|
|
2925
|
-
intervalMs: import("arktype/internal/attributes.ts").Default<number, 5000>;
|
|
2926
|
-
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 1500>;
|
|
2927
|
-
unhealthyThreshold: import("arktype/internal/attributes.ts").Default<number, 3>;
|
|
2928
|
-
forceRestartAfterMs: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
2929
|
-
startTimeoutMs: import("arktype/internal/attributes.ts").Default<number, 20000>;
|
|
2930
|
-
}, {}>;
|
|
2931
|
-
stop: import("arktype/internal/attributes.ts").Default<{
|
|
2932
|
-
signal: import("arktype/internal/attributes.ts").Default<"SIGTERM" | "SIGINT" | "SIGKILL", "SIGTERM">;
|
|
2933
|
-
killGroup: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2934
|
-
graceMs: import("arktype/internal/attributes.ts").Default<number, 5000>;
|
|
2935
|
-
killPortHolders: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
2936
|
-
}, {}>;
|
|
2937
|
-
logBufferLines: import("arktype/internal/attributes.ts").Default<number, number>;
|
|
2938
|
-
};
|
|
2939
|
-
logs: {
|
|
2940
|
-
persist: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2941
|
-
maxBytes: import("arktype/internal/attributes.ts").Default<number, 2000000>;
|
|
2942
|
-
keep: import("arktype/internal/attributes.ts").Default<number, 3>;
|
|
2943
|
-
};
|
|
2944
|
-
notifications: {
|
|
2945
|
-
defaults?: {
|
|
2946
|
-
onCrash: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2947
|
-
onUnhealthy: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2948
|
-
onForcedRestart: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2949
|
-
onRecovered: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
2950
|
-
onHost: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2951
|
-
onDdns: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2952
|
-
cooldownMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
2953
|
-
} | undefined;
|
|
2954
|
-
destinations?: {
|
|
2955
|
-
chatId: string | null;
|
|
2956
|
-
tokenSet: boolean;
|
|
2957
|
-
url: string | null;
|
|
2958
|
-
method: "POST" | "PUT" | null;
|
|
2959
|
-
format: "json" | "text" | null;
|
|
2960
|
-
headers: string | null;
|
|
2961
|
-
onCrash: boolean;
|
|
2962
|
-
onUnhealthy: boolean;
|
|
2963
|
-
onForcedRestart: boolean;
|
|
2964
|
-
onRecovered: boolean;
|
|
2965
|
-
onHost: boolean;
|
|
2966
|
-
cooldownMs: number;
|
|
2967
|
-
id: string;
|
|
2968
|
-
kind: "telegram" | "webhook";
|
|
2969
|
-
enabled: boolean;
|
|
2970
|
-
useOwnSettings: boolean;
|
|
2971
|
-
lastResult?: string | null | undefined;
|
|
2972
|
-
lastResultAt?: number | null | undefined;
|
|
2973
|
-
onDdns?: boolean | undefined;
|
|
2974
|
-
}[] | undefined;
|
|
2975
|
-
};
|
|
2976
|
-
serverCount: number;
|
|
2977
|
-
runningCount: number;
|
|
2978
|
-
crashedCount: number;
|
|
2979
|
-
servers: {
|
|
2980
|
-
id: string;
|
|
2981
|
-
config: {
|
|
2982
|
-
id: string;
|
|
2983
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2984
|
-
autostart: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
2985
|
-
persistent: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
2986
|
-
command: string;
|
|
2987
|
-
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
2988
|
-
cwd: import("arktype/internal/attributes.ts").Default<string, ".">;
|
|
2989
|
-
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
2990
|
-
dataEnvs: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
2991
|
-
bind: import("arktype/internal/attributes.ts").Default<"local" | "lan" | `${number}.${number}.${number}.${number}`, "local">;
|
|
2992
|
-
onPortConflict: import("arktype/internal/attributes.ts").Default<"warn" | "block" | "follow" | "reclaim" | "kill", "block">;
|
|
2993
|
-
restart: import("arktype/internal/attributes.ts").Default<{
|
|
2994
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2995
|
-
maxRetries: import("arktype/internal/attributes.ts").Default<number, 3>;
|
|
2996
|
-
baseDelayMs: import("arktype/internal/attributes.ts").Default<number, 1000>;
|
|
2997
|
-
factor: import("arktype/internal/attributes.ts").Default<number, 2>;
|
|
2998
|
-
maxDelayMs: import("arktype/internal/attributes.ts").Default<number, 30000>;
|
|
2999
|
-
resetAfterMs: import("arktype/internal/attributes.ts").Default<number, 60000>;
|
|
3000
|
-
}, {}>;
|
|
3001
|
-
health: import("arktype/internal/attributes.ts").Default<{
|
|
3002
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3003
|
-
mode: import("arktype/internal/attributes.ts").Default<"http" | "port", "port">;
|
|
3004
|
-
http: import("arktype/internal/attributes.ts").Default<{
|
|
3005
|
-
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
3006
|
-
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
3007
|
-
path: import("arktype/internal/attributes.ts").Default<string, "/">;
|
|
3008
|
-
method: import("arktype/internal/attributes.ts").Default<"GET" | "HEAD", "GET">;
|
|
3009
|
-
expectStatusBelow: import("arktype/internal/attributes.ts").Default<number, 400>;
|
|
3010
|
-
expectBody: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3011
|
-
expectStatus?: number | null | undefined;
|
|
3012
|
-
}, {}>;
|
|
3013
|
-
intervalMs: import("arktype/internal/attributes.ts").Default<number, 5000>;
|
|
3014
|
-
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 1500>;
|
|
3015
|
-
unhealthyThreshold: import("arktype/internal/attributes.ts").Default<number, 3>;
|
|
3016
|
-
forceRestartAfterMs: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
3017
|
-
startTimeoutMs: import("arktype/internal/attributes.ts").Default<number, 20000>;
|
|
3018
|
-
}, {}>;
|
|
3019
|
-
stop: import("arktype/internal/attributes.ts").Default<{
|
|
3020
|
-
signal: import("arktype/internal/attributes.ts").Default<"SIGTERM" | "SIGINT" | "SIGKILL", "SIGTERM">;
|
|
3021
|
-
killGroup: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3022
|
-
graceMs: import("arktype/internal/attributes.ts").Default<number, 5000>;
|
|
3023
|
-
killPortHolders: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
3024
|
-
}, {}>;
|
|
3025
|
-
logBufferLines: import("arktype/internal/attributes.ts").Default<number, number>;
|
|
3026
|
-
dependsOn: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3027
|
-
envFile: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3028
|
-
resources: import("arktype/internal/attributes.ts").Default<{
|
|
3029
|
-
maxRssBytes: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
3030
|
-
}, {}>;
|
|
3031
|
-
backupPaths: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3032
|
-
backupIgnoreGenerated: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3033
|
-
label?: string | null | undefined;
|
|
3034
|
-
bootstrap?: {
|
|
3035
|
-
command: string;
|
|
3036
|
-
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3037
|
-
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
3038
|
-
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
3039
|
-
runOnce: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3040
|
-
} | null | undefined;
|
|
3041
|
-
dump?: {
|
|
3042
|
-
command: string;
|
|
3043
|
-
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3044
|
-
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
3045
|
-
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 600000>;
|
|
3046
|
-
waitMs: import("arktype/internal/attributes.ts").Default<number, 2000>;
|
|
3047
|
-
} | null | undefined;
|
|
3048
|
-
load?: {
|
|
3049
|
-
command: string;
|
|
3050
|
-
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3051
|
-
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
3052
|
-
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 600000>;
|
|
3053
|
-
waitMs: import("arktype/internal/attributes.ts").Default<number, 2000>;
|
|
3054
|
-
} | null | undefined;
|
|
3055
|
-
port?: number | null | undefined;
|
|
3056
|
-
};
|
|
3057
|
-
bindHost: string;
|
|
3058
|
-
url: string | null;
|
|
3059
|
-
status: "stopped" | "running" | "starting" | "stopping" | "backoff" | "crashed" | "conflict";
|
|
3060
|
-
health: "unknown" | "disabled" | "healthy" | "unhealthy";
|
|
3061
|
-
portState: "unknown" | "free" | "in-use";
|
|
3062
|
-
pid: number | null;
|
|
3063
|
-
startedAt: number | null;
|
|
3064
|
-
exitCode: number | null;
|
|
3065
|
-
exitSignal: string | null;
|
|
3066
|
-
restarts: number;
|
|
3067
|
-
maxRetries: number;
|
|
3068
|
-
lastError: string | null;
|
|
3069
|
-
nextRetryAt: number | null;
|
|
3070
|
-
unhealthySince: number | null;
|
|
3071
|
-
bufferedLines: number;
|
|
3072
|
-
history: {
|
|
3073
|
-
windowMs: number;
|
|
3074
|
-
uptimeRatio: number | null;
|
|
3075
|
-
restarts: number;
|
|
3076
|
-
crashes: number;
|
|
3077
|
-
forcedRestarts: number;
|
|
3078
|
-
lastCrashAt: number | null;
|
|
3079
|
-
lastExitAt: number | null;
|
|
3080
|
-
lastRuntimeMs: number | null;
|
|
3081
|
-
events: {
|
|
3082
|
-
serverId: string;
|
|
3083
|
-
ts: number;
|
|
3084
|
-
type: "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
3085
|
-
detail: string;
|
|
3086
|
-
runtimeMs?: number | undefined;
|
|
3087
|
-
actor?: "policy" | "user" | "agent" | "boot" | undefined;
|
|
3088
|
-
}[];
|
|
3089
|
-
};
|
|
3090
|
-
responseMs: number | null;
|
|
3091
|
-
resources: {
|
|
3092
|
-
cpuPercent: number | null;
|
|
3093
|
-
rssBytes: number | null;
|
|
3094
|
-
processes: number;
|
|
3095
|
-
sampledAt: number;
|
|
3096
|
-
} | null;
|
|
3097
|
-
workspaceId?: string | undefined;
|
|
3098
|
-
adopted?: boolean | undefined;
|
|
3099
|
-
stoppedByPanel?: boolean | undefined;
|
|
3100
|
-
}[];
|
|
3101
|
-
configWarnings?: string[] | undefined;
|
|
3102
|
-
ddns?: {
|
|
3103
|
-
enabled: boolean;
|
|
3104
|
-
running: boolean;
|
|
3105
|
-
lastRunAt: number | null;
|
|
3106
|
-
lastResult: string | null;
|
|
3107
|
-
ipv4: string | null;
|
|
3108
|
-
ipv6: string | null;
|
|
3109
|
-
records: {
|
|
3110
|
-
host: string;
|
|
3111
|
-
account: string;
|
|
3112
|
-
provider: string;
|
|
3113
|
-
type: "A" | "AAAA";
|
|
3114
|
-
ip: string | null;
|
|
3115
|
-
state: "error" | "ok" | "pending" | "unchanged" | "skipped";
|
|
3116
|
-
message: string | null;
|
|
3117
|
-
updatedAt: number | null;
|
|
3118
|
-
stopped?: boolean | undefined;
|
|
3119
|
-
}[];
|
|
3120
|
-
} | undefined;
|
|
3121
|
-
orphans?: {
|
|
3122
|
-
serverId: string;
|
|
3123
|
-
pid: number;
|
|
3124
|
-
startedAt: number | null;
|
|
3125
|
-
}[] | undefined;
|
|
3126
|
-
}[];
|
|
3127
|
-
projectDir: string;
|
|
3128
|
-
dataRoot: string;
|
|
3129
|
-
proxy?: {
|
|
3130
|
-
config: {
|
|
3131
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
3132
|
-
engine: import("arktype/internal/attributes.ts").Default<"caddy", "caddy">;
|
|
3133
|
-
httpPort: import("arktype/internal/attributes.ts").Default<number, 80>;
|
|
3134
|
-
httpsPort: import("arktype/internal/attributes.ts").Default<number, 443>;
|
|
3135
|
-
email: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3136
|
-
staging: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
3137
|
-
dns01: import("arktype/internal/attributes.ts").Default<{
|
|
3138
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
3139
|
-
resolvers: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3140
|
-
}, {}>;
|
|
3141
|
-
certificates: import("arktype/internal/attributes.ts").Default<{
|
|
3142
|
-
id: string;
|
|
3143
|
-
label: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3144
|
-
}[], never[]>;
|
|
3145
|
-
routes: import("arktype/internal/attributes.ts").Default<{
|
|
3146
|
-
id: string;
|
|
3147
|
-
host: string;
|
|
3148
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3149
|
-
target: import("arktype/internal/attributes.ts").Default<"server" | "panel" | "external", "server">;
|
|
3150
|
-
workspace: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3151
|
-
server: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3152
|
-
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3153
|
-
path: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3154
|
-
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
3155
|
-
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3156
|
-
}[], never[]>;
|
|
3157
|
-
};
|
|
3158
|
-
engine: {
|
|
3159
|
-
id: "caddy";
|
|
3160
|
-
installed: boolean;
|
|
3161
|
-
version: string | null;
|
|
3162
|
-
source: "downloaded" | "custom" | null;
|
|
3163
|
-
path: string | null;
|
|
3164
|
-
bytes: number | null;
|
|
3165
|
-
error: string | null;
|
|
3166
|
-
};
|
|
3167
|
-
engines: {
|
|
3168
|
-
id: "caddy";
|
|
3169
|
-
label: string;
|
|
3170
|
-
docsUrl: string;
|
|
3171
|
-
releaseUrl: string;
|
|
3172
|
-
acme: boolean;
|
|
3173
|
-
internalCa: boolean;
|
|
3174
|
-
dns01: boolean;
|
|
3175
|
-
tcp: boolean;
|
|
3176
|
-
}[];
|
|
3177
|
-
status: {
|
|
3178
|
-
state: "error" | "stopped" | "running" | "off" | "starting" | "unsupported";
|
|
3179
|
-
pid: number | null;
|
|
3180
|
-
urls: string[];
|
|
3181
|
-
certExpiryDays: number | null;
|
|
3182
|
-
since: number | null;
|
|
3183
|
-
lastError: string | null;
|
|
3184
|
-
};
|
|
3185
|
-
routes: {
|
|
3186
|
-
route: {
|
|
3187
|
-
id: string;
|
|
3188
|
-
host: string;
|
|
3189
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3190
|
-
target: import("arktype/internal/attributes.ts").Default<"server" | "panel" | "external", "server">;
|
|
3191
|
-
workspace: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3192
|
-
server: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3193
|
-
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3194
|
-
path: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3195
|
-
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
3196
|
-
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3197
|
-
};
|
|
3198
|
-
status: "error" | "ok" | "disabled" | "no-upstream";
|
|
3199
|
-
upstream: string | null;
|
|
3200
|
-
message: string | null;
|
|
3201
|
-
certificate?: {
|
|
3202
|
-
state: "local" | "pending" | "off" | "uploaded" | "issued" | "failed" | "fallback";
|
|
3203
|
-
message: string | null;
|
|
3204
|
-
retryInMinutes?: number | undefined;
|
|
3205
|
-
} | undefined;
|
|
3206
|
-
}[];
|
|
3207
|
-
certificates: {
|
|
3208
|
-
id: string;
|
|
3209
|
-
label: string;
|
|
3210
|
-
present: boolean;
|
|
3211
|
-
used: boolean;
|
|
3212
|
-
subject: string | null;
|
|
3213
|
-
issuer: string | null;
|
|
3214
|
-
validTo: string | null;
|
|
3215
|
-
daysRemaining: number | null;
|
|
3216
|
-
hosts: string[];
|
|
3217
|
-
error: string | null;
|
|
3218
|
-
}[];
|
|
3219
|
-
dnsAccounts?: {
|
|
3220
|
-
workspace: string;
|
|
3221
|
-
account: string;
|
|
3222
|
-
provider: string;
|
|
3223
|
-
label: string;
|
|
3224
|
-
writesTxt: boolean;
|
|
3225
|
-
hasCredentials: boolean;
|
|
3226
|
-
}[] | undefined;
|
|
3227
|
-
} | undefined;
|
|
3228
|
-
version?: string | undefined;
|
|
3229
|
-
settingsError?: {
|
|
3230
|
-
message: string;
|
|
3231
|
-
path: string;
|
|
3232
|
-
} | null | undefined;
|
|
3233
|
-
};
|
|
3234
|
-
} | {
|
|
3235
|
-
type: "server";
|
|
3236
|
-
ts: number;
|
|
3237
|
-
serverId: string;
|
|
3238
|
-
server: {
|
|
3239
|
-
id: string;
|
|
3240
|
-
config: {
|
|
3241
|
-
id: string;
|
|
3242
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3243
|
-
autostart: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
3244
|
-
persistent: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
3245
|
-
command: string;
|
|
3246
|
-
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3247
|
-
cwd: import("arktype/internal/attributes.ts").Default<string, ".">;
|
|
3248
|
-
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
3249
|
-
dataEnvs: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
3250
|
-
bind: import("arktype/internal/attributes.ts").Default<"local" | "lan" | `${number}.${number}.${number}.${number}`, "local">;
|
|
3251
|
-
onPortConflict: import("arktype/internal/attributes.ts").Default<"warn" | "block" | "follow" | "reclaim" | "kill", "block">;
|
|
3252
|
-
restart: import("arktype/internal/attributes.ts").Default<{
|
|
3253
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3254
|
-
maxRetries: import("arktype/internal/attributes.ts").Default<number, 3>;
|
|
3255
|
-
baseDelayMs: import("arktype/internal/attributes.ts").Default<number, 1000>;
|
|
3256
|
-
factor: import("arktype/internal/attributes.ts").Default<number, 2>;
|
|
3257
|
-
maxDelayMs: import("arktype/internal/attributes.ts").Default<number, 30000>;
|
|
3258
|
-
resetAfterMs: import("arktype/internal/attributes.ts").Default<number, 60000>;
|
|
3259
|
-
}, {}>;
|
|
3260
|
-
health: import("arktype/internal/attributes.ts").Default<{
|
|
3261
|
-
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3262
|
-
mode: import("arktype/internal/attributes.ts").Default<"http" | "port", "port">;
|
|
3263
|
-
http: import("arktype/internal/attributes.ts").Default<{
|
|
3264
|
-
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
3265
|
-
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
3266
|
-
path: import("arktype/internal/attributes.ts").Default<string, "/">;
|
|
3267
|
-
method: import("arktype/internal/attributes.ts").Default<"GET" | "HEAD", "GET">;
|
|
3268
|
-
expectStatusBelow: import("arktype/internal/attributes.ts").Default<number, 400>;
|
|
3269
|
-
expectBody: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3270
|
-
expectStatus?: number | null | undefined;
|
|
3271
|
-
}, {}>;
|
|
3272
|
-
intervalMs: import("arktype/internal/attributes.ts").Default<number, 5000>;
|
|
3273
|
-
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 1500>;
|
|
3274
|
-
unhealthyThreshold: import("arktype/internal/attributes.ts").Default<number, 3>;
|
|
3275
|
-
forceRestartAfterMs: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
3276
|
-
startTimeoutMs: import("arktype/internal/attributes.ts").Default<number, 20000>;
|
|
3277
|
-
}, {}>;
|
|
3278
|
-
stop: import("arktype/internal/attributes.ts").Default<{
|
|
3279
|
-
signal: import("arktype/internal/attributes.ts").Default<"SIGTERM" | "SIGINT" | "SIGKILL", "SIGTERM">;
|
|
3280
|
-
killGroup: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3281
|
-
graceMs: import("arktype/internal/attributes.ts").Default<number, 5000>;
|
|
3282
|
-
killPortHolders: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
3283
|
-
}, {}>;
|
|
3284
|
-
logBufferLines: import("arktype/internal/attributes.ts").Default<number, number>;
|
|
3285
|
-
dependsOn: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3286
|
-
envFile: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
3287
|
-
resources: import("arktype/internal/attributes.ts").Default<{
|
|
3288
|
-
maxRssBytes: import("arktype/internal/attributes.ts").Default<number, 0>;
|
|
3289
|
-
}, {}>;
|
|
3290
|
-
backupPaths: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3291
|
-
backupIgnoreGenerated: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3292
|
-
label?: string | null | undefined;
|
|
3293
|
-
bootstrap?: {
|
|
3294
|
-
command: string;
|
|
3295
|
-
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3296
|
-
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
3297
|
-
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 120000>;
|
|
3298
|
-
runOnce: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
3299
|
-
} | null | undefined;
|
|
3300
|
-
dump?: {
|
|
3301
|
-
command: string;
|
|
3302
|
-
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3303
|
-
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
3304
|
-
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 600000>;
|
|
3305
|
-
waitMs: import("arktype/internal/attributes.ts").Default<number, 2000>;
|
|
3306
|
-
} | null | undefined;
|
|
3307
|
-
load?: {
|
|
3308
|
-
command: string;
|
|
3309
|
-
args: import("arktype/internal/attributes.ts").Default<string[], never[]>;
|
|
3310
|
-
env: import("arktype/internal/attributes.ts").Default<Record<string, string>, {}>;
|
|
3311
|
-
timeoutMs: import("arktype/internal/attributes.ts").Default<number, 600000>;
|
|
3312
|
-
waitMs: import("arktype/internal/attributes.ts").Default<number, 2000>;
|
|
3313
|
-
} | null | undefined;
|
|
3314
|
-
port?: number | null | undefined;
|
|
2272
|
+
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2273
|
+
target: import("arktype/internal/attributes.ts").Default<"server" | "panel" | "external", "server">;
|
|
2274
|
+
workspace: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2275
|
+
server: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2276
|
+
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2277
|
+
path: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2278
|
+
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
2279
|
+
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2280
|
+
upstreamSkipVerify?: boolean | undefined;
|
|
2281
|
+
}[], never[]>;
|
|
3315
2282
|
};
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
exitSignal: string | null;
|
|
3325
|
-
restarts: number;
|
|
3326
|
-
maxRetries: number;
|
|
3327
|
-
lastError: string | null;
|
|
3328
|
-
nextRetryAt: number | null;
|
|
3329
|
-
unhealthySince: number | null;
|
|
3330
|
-
bufferedLines: number;
|
|
3331
|
-
history: {
|
|
3332
|
-
windowMs: number;
|
|
3333
|
-
uptimeRatio: number | null;
|
|
3334
|
-
restarts: number;
|
|
3335
|
-
crashes: number;
|
|
3336
|
-
forcedRestarts: number;
|
|
3337
|
-
lastCrashAt: number | null;
|
|
3338
|
-
lastExitAt: number | null;
|
|
3339
|
-
lastRuntimeMs: number | null;
|
|
3340
|
-
events: {
|
|
3341
|
-
serverId: string;
|
|
3342
|
-
ts: number;
|
|
3343
|
-
type: "start" | "crash" | "unhealthy" | "exit" | "forced-restart" | "recovered";
|
|
3344
|
-
detail: string;
|
|
3345
|
-
runtimeMs?: number | undefined;
|
|
3346
|
-
actor?: "policy" | "user" | "agent" | "boot" | undefined;
|
|
3347
|
-
}[];
|
|
2283
|
+
engine: {
|
|
2284
|
+
id: "caddy";
|
|
2285
|
+
installed: boolean;
|
|
2286
|
+
version: string | null;
|
|
2287
|
+
source: "downloaded" | "custom" | null;
|
|
2288
|
+
path: string | null;
|
|
2289
|
+
bytes: number | null;
|
|
2290
|
+
error: string | null;
|
|
3348
2291
|
};
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
2292
|
+
engines: {
|
|
2293
|
+
id: "caddy";
|
|
2294
|
+
label: string;
|
|
2295
|
+
docsUrl: string;
|
|
2296
|
+
releaseUrl: string;
|
|
2297
|
+
acme: boolean;
|
|
2298
|
+
internalCa: boolean;
|
|
2299
|
+
dns01: boolean;
|
|
2300
|
+
tcp: boolean;
|
|
2301
|
+
}[];
|
|
2302
|
+
status: {
|
|
2303
|
+
state: "error" | "stopped" | "running" | "off" | "starting" | "unsupported";
|
|
2304
|
+
pid: number | null;
|
|
2305
|
+
urls: string[];
|
|
2306
|
+
certExpiryDays: number | null;
|
|
2307
|
+
since: number | null;
|
|
2308
|
+
lastError: string | null;
|
|
2309
|
+
};
|
|
2310
|
+
routes: {
|
|
2311
|
+
route: {
|
|
2312
|
+
id: string;
|
|
2313
|
+
host: string;
|
|
2314
|
+
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
2315
|
+
target: import("arktype/internal/attributes.ts").Default<"server" | "panel" | "external", "server">;
|
|
2316
|
+
workspace: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2317
|
+
server: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2318
|
+
url: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2319
|
+
path: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2320
|
+
tls: import("arktype/internal/attributes.ts").Default<"auto" | "off" | "manual", "auto">;
|
|
2321
|
+
dnsAccount: import("arktype/internal/attributes.ts").Default<string, "">;
|
|
2322
|
+
upstreamSkipVerify?: boolean | undefined;
|
|
2323
|
+
};
|
|
2324
|
+
status: "ok" | "error" | "disabled" | "no-upstream";
|
|
2325
|
+
upstream: string | null;
|
|
2326
|
+
message: string | null;
|
|
2327
|
+
certificate?: {
|
|
2328
|
+
state: "pending" | "off" | "local" | "uploaded" | "issued" | "failed" | "fallback";
|
|
2329
|
+
message: string | null;
|
|
2330
|
+
retryInMinutes?: number | undefined;
|
|
2331
|
+
} | undefined;
|
|
2332
|
+
}[];
|
|
2333
|
+
certificates: {
|
|
2334
|
+
id: string;
|
|
2335
|
+
label: string;
|
|
2336
|
+
present: boolean;
|
|
2337
|
+
used: boolean;
|
|
2338
|
+
subject: string | null;
|
|
2339
|
+
issuer: string | null;
|
|
2340
|
+
validTo: string | null;
|
|
2341
|
+
daysRemaining: number | null;
|
|
2342
|
+
hosts: string[];
|
|
2343
|
+
error: string | null;
|
|
2344
|
+
}[];
|
|
2345
|
+
dnsAccounts?: {
|
|
2346
|
+
workspace: string;
|
|
2347
|
+
account: string;
|
|
2348
|
+
provider: string;
|
|
2349
|
+
label: string;
|
|
2350
|
+
writesTxt: boolean;
|
|
2351
|
+
hasCredentials: boolean;
|
|
2352
|
+
zones?: string[] | undefined;
|
|
2353
|
+
}[] | undefined;
|
|
2354
|
+
applyError?: string | undefined;
|
|
2355
|
+
} | undefined;
|
|
2356
|
+
settingsPath?: string | undefined;
|
|
2357
|
+
version?: string | undefined;
|
|
2358
|
+
settingsError?: {
|
|
2359
|
+
message: string;
|
|
2360
|
+
path: string;
|
|
2361
|
+
} | null | undefined;
|
|
3371
2362
|
}, {}>;
|
|
3372
|
-
export type
|
|
2363
|
+
export type AppState = typeof appStateSchema.infer;
|
|
2364
|
+
/** `?limit=` on the buffered log route: a whole number of lines, 1–100000. */
|
|
3373
2365
|
export declare const logQuerySchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3374
|
-
limit?: string | undefined;
|
|
2366
|
+
limit?: ((In: string) => import("arktype/internal/attributes.ts").To<number>) | undefined;
|
|
3375
2367
|
}, {}>;
|
|
3376
|
-
/**
|
|
3377
|
-
* What a per-server lifecycle action answers with.
|
|
3378
|
-
*
|
|
3379
|
-
* `ok`/`error` are what the panel returns and every UI already reads; `code` was added so a
|
|
3380
|
-
* script can branch without matching English, and it is **absent on success** — a code names a
|
|
3381
|
-
* failure.
|
|
3382
|
-
*/
|
|
2368
|
+
/** A per-server lifecycle action's answer; `code` is absent on success. */
|
|
3383
2369
|
export declare const actionResultSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3384
2370
|
ok: boolean;
|
|
3385
2371
|
error?: string | undefined;
|
|
3386
2372
|
message?: string | undefined;
|
|
3387
2373
|
code?: string | undefined;
|
|
2374
|
+
dependents?: string[] | undefined;
|
|
3388
2375
|
}, {}>;
|
|
3389
2376
|
export type ActionResultBody = typeof actionResultSchema.infer;
|
|
3390
|
-
/** Whether a probe (a test send, a token check) worked, and why not when it did not. */
|
|
3391
2377
|
export declare const deliveryResultSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3392
2378
|
ok: boolean;
|
|
3393
2379
|
error?: string | undefined;
|
|
3394
2380
|
}, {}>;
|
|
3395
|
-
/**
|
|
3396
|
-
export declare const passwordSetResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3397
|
-
ok: boolean;
|
|
3398
|
-
enabled: boolean;
|
|
3399
|
-
sessionsInvalidated: boolean;
|
|
3400
|
-
}, {}>;
|
|
3401
|
-
/**
|
|
3402
|
-
* What both TLS mutation routes answer: the panel's listener and the move that is in flight.
|
|
3403
|
-
*
|
|
3404
|
-
* Declared once because the two routes return the same `review()` body — the DELETE declared
|
|
3405
|
-
* `okResponseSchema` while returning this, so a generated client read `undefined` for every field.
|
|
3406
|
-
*/
|
|
2381
|
+
/** What both TLS mutation routes answer: the listener and the move in flight. */
|
|
3407
2382
|
export declare const tlsReviewResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3408
2383
|
control: {
|
|
3409
2384
|
label: string;
|
|
@@ -3445,16 +2420,10 @@ export declare const tlsReviewResponseSchema: import("arktype/internal/variants/
|
|
|
3445
2420
|
rebinding: boolean;
|
|
3446
2421
|
targetUrl: string;
|
|
3447
2422
|
}, {}>;
|
|
3448
|
-
/**
|
|
3449
|
-
* The plain acknowledgement most mutations answer with.
|
|
3450
|
-
*
|
|
3451
|
-
* Defined once because a dozen routes return it, and each was declaring its own or none at all —
|
|
3452
|
-
* which is why the spec had untyped `200`s where a generated client needs a shape.
|
|
3453
|
-
*/
|
|
2423
|
+
/** The plain acknowledgement most mutations answer with. */
|
|
3454
2424
|
export declare const okResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3455
2425
|
ok: boolean;
|
|
3456
2426
|
}, {}>;
|
|
3457
|
-
/** A backup was removed: the archive list it leaves behind. */
|
|
3458
2427
|
export declare const backupFilesResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3459
2428
|
ok: boolean;
|
|
3460
2429
|
files: {
|
|
@@ -3464,7 +2433,6 @@ export declare const backupFilesResponseSchema: import("arktype/internal/variant
|
|
|
3464
2433
|
encrypted: boolean;
|
|
3465
2434
|
}[];
|
|
3466
2435
|
}, {}>;
|
|
3467
|
-
/** A UI build was installed (it also reports the build), or reverted. */
|
|
3468
2436
|
export declare const uiInstallResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3469
2437
|
ok: boolean;
|
|
3470
2438
|
ui: {
|
|
@@ -3493,7 +2461,6 @@ export declare const uiInstallResponseSchema: import("arktype/internal/variants/
|
|
|
3493
2461
|
} | null | undefined;
|
|
3494
2462
|
removed?: boolean | undefined;
|
|
3495
2463
|
}, {}>;
|
|
3496
|
-
/** A backup was created: the new archive and the list it belongs to. */
|
|
3497
2464
|
export declare const backupCreatedResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3498
2465
|
file: {
|
|
3499
2466
|
name: string;
|
|
@@ -3509,21 +2476,18 @@ export declare const backupCreatedResponseSchema: import("arktype/internal/varia
|
|
|
3509
2476
|
}[];
|
|
3510
2477
|
warnings?: string[] | undefined;
|
|
3511
2478
|
}, {}>;
|
|
3512
|
-
/**
|
|
3513
|
-
* `POST /_hh/backups` without `confirm=true`: what a backup would capture, and nothing written.
|
|
3514
|
-
* The local channel plans by default; `POST /api/backups` creates at once.
|
|
3515
|
-
*/
|
|
2479
|
+
/** `POST /_hh/backups` without `confirm=true`: what a backup would capture, with nothing written. */
|
|
3516
2480
|
declare const backupPlanResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3517
2481
|
apply: false;
|
|
3518
2482
|
entries: {
|
|
3519
2483
|
id: string;
|
|
3520
2484
|
label: string;
|
|
3521
|
-
kind: "
|
|
2485
|
+
kind: "settings" | "secrets" | "tls" | "workspace";
|
|
3522
2486
|
note: string | null;
|
|
3523
2487
|
items: {
|
|
3524
2488
|
id: string;
|
|
3525
2489
|
label: string;
|
|
3526
|
-
kind: "
|
|
2490
|
+
kind: "settings" | "servers" | "secrets" | "jobs" | "data";
|
|
3527
2491
|
included: boolean;
|
|
3528
2492
|
note: string | null;
|
|
3529
2493
|
labelKey?: string | undefined;
|
|
@@ -3544,7 +2508,6 @@ declare const backupPlanResponseSchema: import("arktype/internal/variants/object
|
|
|
3544
2508
|
includePaths: string[];
|
|
3545
2509
|
}, {}>;
|
|
3546
2510
|
export type BackupPlanResponse = typeof backupPlanResponseSchema.infer;
|
|
3547
|
-
/** The local channel's answer: a plan, or the archive it wrote once confirmed. */
|
|
3548
2511
|
export declare const backupLocalResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3549
2512
|
file: {
|
|
3550
2513
|
name: string;
|
|
@@ -3564,12 +2527,12 @@ export declare const backupLocalResponseSchema: import("arktype/internal/variant
|
|
|
3564
2527
|
entries: {
|
|
3565
2528
|
id: string;
|
|
3566
2529
|
label: string;
|
|
3567
|
-
kind: "
|
|
2530
|
+
kind: "settings" | "secrets" | "tls" | "workspace";
|
|
3568
2531
|
note: string | null;
|
|
3569
2532
|
items: {
|
|
3570
2533
|
id: string;
|
|
3571
2534
|
label: string;
|
|
3572
|
-
kind: "
|
|
2535
|
+
kind: "settings" | "servers" | "secrets" | "jobs" | "data";
|
|
3573
2536
|
included: boolean;
|
|
3574
2537
|
note: string | null;
|
|
3575
2538
|
labelKey?: string | undefined;
|
|
@@ -3589,138 +2552,15 @@ export declare const backupLocalResponseSchema: import("arktype/internal/variant
|
|
|
3589
2552
|
}[];
|
|
3590
2553
|
includePaths: string[];
|
|
3591
2554
|
}, {}>;
|
|
3592
|
-
/** Buffered or persisted log lines, the shape every log-reading route returns. */
|
|
3593
|
-
/**
|
|
3594
|
-
* `GET /api/servers/:id/logs` — the **buffered** lines, straight from memory.
|
|
3595
|
-
*
|
|
3596
|
-
* It is not the disk history below: this route has no window, no rotation and no search, so it
|
|
3597
|
-
* answers `{ lines }` and nothing else. The schema used to be a copy of the disk shape
|
|
3598
|
-
* (`serverId`/`enabled`/`sizeBytes`/`files`/`searched`), so the documented response named five
|
|
3599
|
-
* fields the handler never sent — and `searched` was declared as an array here while the disk route
|
|
3600
|
-
* sends a number. `test/api/panel.test.ts` only walks routes it can reach with a live fixture and
|
|
3601
|
-
* skipped this one, so nothing caught it.
|
|
3602
|
-
*/
|
|
3603
|
-
export declare const bufferedLogsResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3604
|
-
lines: {
|
|
3605
|
-
ts: number;
|
|
3606
|
-
stream: "stdout" | "stderr" | "system";
|
|
3607
|
-
text: string;
|
|
3608
|
-
}[];
|
|
3609
|
-
}, {}>;
|
|
3610
|
-
/**
|
|
3611
|
-
* `GET /api/logs/:id` — one entry's log **from disk**, with its rotation and its search window.
|
|
3612
|
-
*
|
|
3613
|
-
* This is the shape the UIs parse (`logHistoryViewSchema` below is the same thing with its own
|
|
3614
|
-
* name for the client side), and it is what `logLinesResponseSchema` should always have been.
|
|
3615
|
-
*/
|
|
3616
|
-
export declare const logLinesResponseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3617
|
-
serverId: string;
|
|
3618
|
-
enabled: boolean;
|
|
3619
|
-
sizeBytes: number;
|
|
3620
|
-
files: string[];
|
|
3621
|
-
searched: number | null;
|
|
3622
|
-
lines: {
|
|
3623
|
-
ts: number;
|
|
3624
|
-
stream: "stdout" | "stderr" | "system";
|
|
3625
|
-
text: string;
|
|
3626
|
-
}[];
|
|
3627
|
-
}, {}>;
|
|
3628
|
-
export declare const usageViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3629
|
-
servers: {
|
|
3630
|
-
id: string;
|
|
3631
|
-
workspaceId: string;
|
|
3632
|
-
label: string;
|
|
3633
|
-
status: "stopped" | "running" | "starting" | "stopping" | "backoff" | "crashed" | "conflict";
|
|
3634
|
-
cpuPercent?: number | undefined;
|
|
3635
|
-
rssBytes?: number | undefined;
|
|
3636
|
-
processes?: number | undefined;
|
|
3637
|
-
sampledAt?: number | undefined;
|
|
3638
|
-
restarts?: number | undefined;
|
|
3639
|
-
crashes?: number | undefined;
|
|
3640
|
-
uptimeRatio?: number | undefined;
|
|
3641
|
-
lastExitAt?: number | undefined;
|
|
3642
|
-
}[];
|
|
3643
|
-
sampledAt?: number | undefined;
|
|
3644
|
-
}, {}>;
|
|
3645
|
-
/**
|
|
3646
|
-
* What a `free-port` attempt did. The pids are reported so the UI can say which
|
|
3647
|
-
* process left, and which listeners were deliberately left alone because this
|
|
3648
|
-
* panel supervises them.
|
|
3649
|
-
*/
|
|
3650
|
-
export declare const freePortResultSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3651
|
-
ok: boolean;
|
|
3652
|
-
port: number | null;
|
|
3653
|
-
terminated: number[];
|
|
3654
|
-
forced: number[];
|
|
3655
|
-
skipped: number[];
|
|
3656
|
-
free: boolean;
|
|
3657
|
-
}, {}>;
|
|
3658
|
-
export type FreePortResult = typeof freePortResultSchema.infer;
|
|
3659
|
-
export declare const logHistoryQuerySchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3660
|
-
tail?: string | undefined;
|
|
3661
|
-
search?: string | undefined;
|
|
3662
|
-
stream?: "stdout" | "stderr" | "system" | undefined;
|
|
3663
|
-
}, {}>;
|
|
3664
|
-
declare const logServerViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3665
|
-
serverId: string;
|
|
3666
|
-
label: string;
|
|
3667
|
-
status: "stopped" | "running" | "starting" | "stopping" | "backoff" | "crashed" | "conflict";
|
|
3668
|
-
enabled: boolean;
|
|
3669
|
-
sizeBytes: number;
|
|
3670
|
-
files: {
|
|
3671
|
-
name: string;
|
|
3672
|
-
sizeBytes: number;
|
|
3673
|
-
}[];
|
|
3674
|
-
}, {}>;
|
|
3675
|
-
export type LogServerView = typeof logServerViewSchema.infer;
|
|
3676
|
-
export declare const logServersViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3677
|
-
servers: {
|
|
3678
|
-
serverId: string;
|
|
3679
|
-
label: string;
|
|
3680
|
-
status: "stopped" | "running" | "starting" | "stopping" | "backoff" | "crashed" | "conflict";
|
|
3681
|
-
enabled: boolean;
|
|
3682
|
-
sizeBytes: number;
|
|
3683
|
-
files: {
|
|
3684
|
-
name: string;
|
|
3685
|
-
sizeBytes: number;
|
|
3686
|
-
}[];
|
|
3687
|
-
}[];
|
|
3688
|
-
}, {}>;
|
|
3689
|
-
export declare const logHistoryViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3690
|
-
serverId: string;
|
|
3691
|
-
enabled: boolean;
|
|
3692
|
-
sizeBytes: number;
|
|
3693
|
-
files: string[];
|
|
3694
|
-
searched: number | null;
|
|
3695
|
-
lines: {
|
|
3696
|
-
ts: number;
|
|
3697
|
-
stream: "stdout" | "stderr" | "system";
|
|
3698
|
-
text: string;
|
|
3699
|
-
}[];
|
|
3700
|
-
}, {}>;
|
|
3701
|
-
export type LogHistoryView = typeof logHistoryViewSchema.infer;
|
|
3702
2555
|
export declare const notificationActionSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3703
2556
|
botToken?: string | undefined;
|
|
3704
2557
|
chatId?: string | undefined;
|
|
3705
2558
|
}, {}>;
|
|
3706
|
-
/**
|
|
3707
|
-
* The `:id` path parameter of a destination route.
|
|
3708
|
-
*
|
|
3709
|
-
* Validated, because the id is not only a lookup key: it also keys a bot token in the secrets file.
|
|
3710
|
-
* Unvalidated, `DELETE /destinations/ghost/token` answered `200`, and an id of `botToken` wrote the
|
|
3711
|
-
* literal secrets key `telegram.botToken`, which the reader then took for the **legacy singleton** —
|
|
3712
|
-
* every real destination's token became unreachable.
|
|
3713
|
-
*/
|
|
2559
|
+
/** A destination id; validated because it also keys a bot token in the secrets file. */
|
|
3714
2560
|
export declare const destinationIdParamSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3715
2561
|
id: string;
|
|
3716
2562
|
}, {}>;
|
|
3717
|
-
/**
|
|
3718
|
-
* `POST /api/notifications/test-webhook`: the webhook to try, as a draft or by id.
|
|
3719
|
-
*
|
|
3720
|
-
* The target travels whole because the page tests what is in its form, which may not be saved yet —
|
|
3721
|
-
* and the request schema rejects undeclared keys, so the webhook shape is reused rather than a
|
|
3722
|
-
* second DTO that could drift from it.
|
|
3723
|
-
*/
|
|
2563
|
+
/** `POST /api/notifications/test-webhook`: the webhook to try, as an unsaved draft or by id. */
|
|
3724
2564
|
export declare const destinationTestSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3725
2565
|
target: {
|
|
3726
2566
|
onCrash: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
@@ -3744,25 +2584,23 @@ export declare const destinationTestSchema: import("arktype/internal/variants/ob
|
|
|
3744
2584
|
export declare const telegramTokenSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3745
2585
|
botToken: string;
|
|
3746
2586
|
}, {}>;
|
|
3747
|
-
/**
|
|
3748
|
-
* The single error envelope every route answers failures with.
|
|
3749
|
-
*
|
|
3750
|
-
* `detail` is **optional**: `toErrorBody()` omits the key when the error carries none, which is the
|
|
3751
|
-
* common case — measured, `/api/logs/ghost`, `/api/servers/ghost` and `/api/settings/ui` all answer
|
|
3752
|
-
* `{ message, code }` and nothing else. Requiring it here told every OpenAPI client to expect a field
|
|
3753
|
-
* that is usually absent, and disagreed with `ApiErrorBody` in `helpers/error.ts`, which has it
|
|
3754
|
-
* optional because that is what it actually serialises.
|
|
3755
|
-
*/
|
|
2587
|
+
/** The error envelope every route answers failures with; `detail` is usually absent. */
|
|
3756
2588
|
export declare const apiErrorSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3757
2589
|
message: string;
|
|
3758
2590
|
code: string;
|
|
3759
2591
|
detail?: unknown;
|
|
3760
2592
|
}, {}>;
|
|
2593
|
+
/** `PUT /api/servers/:id/secrets`: values to set and names to remove; undeclared names are refused by the route. */
|
|
2594
|
+
export declare const serverSecretsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2595
|
+
set?: {
|
|
2596
|
+
[x: string]: string;
|
|
2597
|
+
} | undefined;
|
|
2598
|
+
unset?: string[] | undefined;
|
|
2599
|
+
}, {}>;
|
|
3761
2600
|
export declare const tlsUploadSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3762
2601
|
certificate: string;
|
|
3763
2602
|
privateKey: string;
|
|
3764
2603
|
}, {}>;
|
|
3765
|
-
/** `GET /api/settings`: the panel-wide configuration, as Global Settings reads it. */
|
|
3766
2604
|
export declare const settingsViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3767
2605
|
control: {
|
|
3768
2606
|
label: string;
|
|
@@ -3834,12 +2672,12 @@ export declare const settingsViewSchema: import("arktype/internal/variants/objec
|
|
|
3834
2672
|
entries?: {
|
|
3835
2673
|
id: string;
|
|
3836
2674
|
label: string;
|
|
3837
|
-
kind: "
|
|
2675
|
+
kind: "settings" | "secrets" | "tls" | "workspace";
|
|
3838
2676
|
note: string | null;
|
|
3839
2677
|
items: {
|
|
3840
2678
|
id: string;
|
|
3841
2679
|
label: string;
|
|
3842
|
-
kind: "
|
|
2680
|
+
kind: "settings" | "servers" | "secrets" | "jobs" | "data";
|
|
3843
2681
|
included: boolean;
|
|
3844
2682
|
note: string | null;
|
|
3845
2683
|
labelKey?: string | undefined;
|
|
@@ -3880,7 +2718,6 @@ export declare const settingsViewSchema: import("arktype/internal/variants/objec
|
|
|
3880
2718
|
};
|
|
3881
2719
|
}, {}>;
|
|
3882
2720
|
export type SettingsView = typeof settingsViewSchema.infer;
|
|
3883
|
-
/** `PATCH /api/settings` answers with the saved view, plus where the listener lands. */
|
|
3884
2721
|
export declare const settingsSavedSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3885
2722
|
control: {
|
|
3886
2723
|
label: string;
|
|
@@ -3952,12 +2789,12 @@ export declare const settingsSavedSchema: import("arktype/internal/variants/obje
|
|
|
3952
2789
|
entries?: {
|
|
3953
2790
|
id: string;
|
|
3954
2791
|
label: string;
|
|
3955
|
-
kind: "
|
|
2792
|
+
kind: "settings" | "secrets" | "tls" | "workspace";
|
|
3956
2793
|
note: string | null;
|
|
3957
2794
|
items: {
|
|
3958
2795
|
id: string;
|
|
3959
2796
|
label: string;
|
|
3960
|
-
kind: "
|
|
2797
|
+
kind: "settings" | "servers" | "secrets" | "jobs" | "data";
|
|
3961
2798
|
included: boolean;
|
|
3962
2799
|
note: string | null;
|
|
3963
2800
|
labelKey?: string | undefined;
|
|
@@ -4000,11 +2837,7 @@ export declare const settingsSavedSchema: import("arktype/internal/variants/obje
|
|
|
4000
2837
|
targetUrl: string | null;
|
|
4001
2838
|
}, {}>;
|
|
4002
2839
|
export type SettingsSaved = typeof settingsSavedSchema.infer;
|
|
4003
|
-
/**
|
|
4004
|
-
* `GET /api/settings/workspace?workspace=<id>`: what a workspace owns and can
|
|
4005
|
-
* change on its own. Global things (listener, auth, host, backups, TLS) are not
|
|
4006
|
-
* here — they belong to the panel, not to any workspace.
|
|
4007
|
-
*/
|
|
2840
|
+
/** `GET /api/settings/workspace?workspace=<id>`: what a workspace owns; panel-wide settings are not here. */
|
|
4008
2841
|
export declare const workspaceSettingsViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4009
2842
|
id: string;
|
|
4010
2843
|
label: string;
|
|
@@ -4026,7 +2859,7 @@ export declare const workspaceSettingsViewSchema: import("arktype/internal/varia
|
|
|
4026
2859
|
}, {}>;
|
|
4027
2860
|
health: import("arktype/internal/attributes.ts").Default<{
|
|
4028
2861
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
4029
|
-
mode: import("arktype/internal/attributes.ts").Default<"
|
|
2862
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
4030
2863
|
http: import("arktype/internal/attributes.ts").Default<{
|
|
4031
2864
|
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
4032
2865
|
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -4110,7 +2943,7 @@ export declare const workspaceSettingsSavedSchema: import("arktype/internal/vari
|
|
|
4110
2943
|
}, {}>;
|
|
4111
2944
|
health: import("arktype/internal/attributes.ts").Default<{
|
|
4112
2945
|
enabled: import("arktype/internal/attributes.ts").Default<boolean, true>;
|
|
4113
|
-
mode: import("arktype/internal/attributes.ts").Default<"
|
|
2946
|
+
mode: import("arktype/internal/attributes.ts").Default<"port" | "http", "port">;
|
|
4114
2947
|
http: import("arktype/internal/attributes.ts").Default<{
|
|
4115
2948
|
scheme: import("arktype/internal/attributes.ts").Default<"http" | "https", "http">;
|
|
4116
2949
|
allowInvalidCert: import("arktype/internal/attributes.ts").Default<boolean, false>;
|
|
@@ -4172,4 +3005,41 @@ export declare const workspaceSettingsSavedSchema: import("arktype/internal/vari
|
|
|
4172
3005
|
}[] | undefined;
|
|
4173
3006
|
};
|
|
4174
3007
|
}, {}>;
|
|
4175
|
-
export {};
|
|
3008
|
+
export { accountCreatedBodySchema, accountCreateSchema, accountIdBodySchema, accountListSchema, accountPatchSchema, accountSecretSchema, accountViewSchema, apiTokenScopeSchema, loginSchema, passwordValueSchema, scopeInfoSchema, } from './contracts/accounts.js';
|
|
3009
|
+
export type { AccountCreateRequest, AccountPatchRequest, AccountSecretRequest, AccountView, LoginRequest, } from './contracts/accounts.js';
|
|
3010
|
+
export { backupCreateSchema, backupEntrySchema, backupFileSchema, backupScheduleViewSchema, backupSelectionSchema, backupsViewSchema, restoreItemSchema, restorePlanSchema, restoreRequestSchema, restoreSkipSchema, } from './contracts/backups.js';
|
|
3011
|
+
export type { BackupCreate, BackupEntry, BackupFile, BackupSelection, BackupsView, RestoreItem, RestorePlan, RestoreRequest, RestoreSkip, } from './contracts/backups.js';
|
|
3012
|
+
export declare const usageViewSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3013
|
+
servers: {
|
|
3014
|
+
id: string;
|
|
3015
|
+
workspaceId: string;
|
|
3016
|
+
label: string;
|
|
3017
|
+
status: "stopped" | "running" | "starting" | "stopping" | "backoff" | "crashed" | "conflict";
|
|
3018
|
+
cpuPercent?: number | undefined;
|
|
3019
|
+
rssBytes?: number | undefined;
|
|
3020
|
+
processes?: number | undefined;
|
|
3021
|
+
sampledAt?: number | undefined;
|
|
3022
|
+
restarts?: number | undefined;
|
|
3023
|
+
crashes?: number | undefined;
|
|
3024
|
+
uptimeRatio?: number | undefined;
|
|
3025
|
+
lastExitAt?: number | undefined;
|
|
3026
|
+
}[];
|
|
3027
|
+
sampledAt?: number | undefined;
|
|
3028
|
+
}, {}>;
|
|
3029
|
+
export declare const freePortResultSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3030
|
+
ok: boolean;
|
|
3031
|
+
port: number | null;
|
|
3032
|
+
terminated: number[];
|
|
3033
|
+
forced: number[];
|
|
3034
|
+
skipped: number[];
|
|
3035
|
+
free: boolean;
|
|
3036
|
+
}, {}>;
|
|
3037
|
+
export type FreePortResult = typeof freePortResultSchema.infer;
|
|
3038
|
+
export { ddnsConfigSchema, ddnsCredentialsSchema, ddnsDomainSchema, ddnsPatchSchema, ddnsProviderFieldSchema, ddnsProviderInfoSchema, ddnsStatusSchema, ddnsViewSchema, } from './contracts/ddns.js';
|
|
3039
|
+
export type { DdnsAccount, DdnsConfig, DdnsDomain, DdnsPatch, DdnsProviderField, DdnsProviderInfo, DdnsRecordState, DdnsRecordType, DdnsRecordView, DdnsStatus, DdnsView, } from './contracts/ddns.js';
|
|
3040
|
+
export { sseEventNames, sseLogFrameSchema, sseMessageSchema, ssePingFrameSchema, sseServerFrameSchema, sseStateFrameSchema } from './contracts/frames.js';
|
|
3041
|
+
export type { SseMessage } from './contracts/frames.js';
|
|
3042
|
+
export { bufferedLogsResponseSchema, jobLogViewSchema, logHistoryQuerySchema, logHistoryViewSchema, logLinesResponseSchema, logPageQuerySchema, logServersViewSchema, } from './contracts/logs.js';
|
|
3043
|
+
export type { JobLogView, LogCursor, LogHistoryView, LogServerView } from './contracts/logs.js';
|
|
3044
|
+
export { proxyCertificateSchema, proxyCertificateUploadSchema, proxyConfigSchema, proxyEngineInstallSchema, proxyEngineStatusSchema, proxyPatchSchema, proxyRouteSchema, proxyRouteViewSchema, proxyStatusSchema, proxyViewSchema, } from './contracts/proxy.js';
|
|
3045
|
+
export type { ProxyCertificateState, ProxyCertificateView, ProxyConfig, ProxyDnsAccountView, ProxyEngineInfo, ProxyEngineStatus, ProxyPatch, ProxyRoute, ProxyRoutePatch, ProxyRouteStatus, ProxyRouteView, ProxyRunState, ProxyStatus, ProxyTarget, ProxyTlsMode, ProxyView, } from './contracts/proxy.js';
|