home-hosted 0.12.0 → 0.13.1
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 +95 -49
- package/dist/chunks/{archive-DpCwA8Nf.js → archive-DP-XQR8X.js} +15 -2
- package/dist/chunks/archive-DP-XQR8X.js.map +1 -0
- package/dist/chunks/{atomic-CEfCUfkQ.js → atomic-C1PfJpE7.js} +3 -2
- package/dist/chunks/atomic-C1PfJpE7.js.map +1 -0
- package/dist/chunks/{backup-CPrJVPJI.js → backup-DeAJ3pbO.js} +101 -76
- package/dist/chunks/backup-DeAJ3pbO.js.map +1 -0
- package/dist/chunks/{backups-Bd2SF2qd.js → backups-twva7x2n.js} +882 -537
- package/dist/chunks/backups-twva7x2n.js.map +1 -0
- package/dist/chunks/{contracts-ku5ypHXJ.js → contracts-CMBD1TF9.js} +381 -407
- package/dist/chunks/contracts-CMBD1TF9.js.map +1 -0
- package/dist/chunks/{daemon-TwXk5vb8.js → daemon-CofN9k6Q.js} +54 -22
- package/dist/chunks/daemon-CofN9k6Q.js.map +1 -0
- package/dist/chunks/{docker-CGv4Uv7w.js → docker-Cy9Lyvda.js} +4 -3
- package/dist/chunks/docker-Cy9Lyvda.js.map +1 -0
- package/dist/chunks/{down-BlX5X3bm.js → down-C59ne5aM.js} +22 -17
- package/dist/chunks/down-C59ne5aM.js.map +1 -0
- package/dist/chunks/{init-DdmqHVra.js → init-BZ7hK9Vf.js} +19 -6
- package/dist/chunks/init-BZ7hK9Vf.js.map +1 -0
- package/dist/chunks/{last-stop-BZ08Z89-.js → last-stop-C-BXz_XI.js} +6 -5
- package/dist/chunks/last-stop-C-BXz_XI.js.map +1 -0
- package/dist/chunks/{layout-D74TGUnr.js → layout-DwTtmund.js} +2 -2
- package/dist/chunks/{layout-D74TGUnr.js.map → layout-DwTtmund.js.map} +1 -1
- package/dist/chunks/lazy-Ce5zEAq1.js +66 -0
- package/dist/chunks/lazy-Ce5zEAq1.js.map +1 -0
- package/dist/chunks/{log-buffer-HnP0jKhZ.js → log-buffer-Dy9HHDMD.js} +114 -50
- package/dist/chunks/log-buffer-Dy9HHDMD.js.map +1 -0
- package/dist/chunks/{logs-gI_69Q1P.js → logs---TI_bxM.js} +23 -21
- package/dist/chunks/logs---TI_bxM.js.map +1 -0
- package/dist/chunks/{migrate-BTlsibvF.js → migrate-Cfoq-Vgh.js} +5 -5
- package/dist/chunks/{migrate-BTlsibvF.js.map → migrate-Cfoq-Vgh.js.map} +1 -1
- package/dist/chunks/{nanny-20aBXL1o.js → nanny-COyCJXj9.js} +130 -27
- package/dist/chunks/nanny-COyCJXj9.js.map +1 -0
- package/dist/chunks/{nanny-DUaAfCV-.js → nanny-Dnun3hVB.js} +3 -3
- package/dist/chunks/{nanny-DUaAfCV-.js.map → nanny-Dnun3hVB.js.map} +1 -1
- package/dist/chunks/{nanny-CjnnrIpm.js → nanny-rewguyXg.js} +3 -3
- package/dist/chunks/{nanny-CjnnrIpm.js.map → nanny-rewguyXg.js.map} +1 -1
- package/dist/chunks/{nanny-sweep-Ca9kPAVi.js → nanny-sweep-ClVuNJRo.js} +6 -5
- package/dist/chunks/nanny-sweep-ClVuNJRo.js.map +1 -0
- package/dist/chunks/{parse-B9owE47G.js → parse-DhmG26fI.js} +4 -4
- package/dist/chunks/{parse-B9owE47G.js.map → parse-DhmG26fI.js.map} +1 -1
- package/dist/chunks/{paths-BT94q6-w.js → paths-CGlGDrOU.js} +36 -2
- package/dist/chunks/paths-CGlGDrOU.js.map +1 -0
- package/dist/chunks/{port-B8WBTRMk.js → port-k5VBw8t9.js} +5 -2
- package/dist/chunks/{port-B8WBTRMk.js.map → port-k5VBw8t9.js.map} +1 -1
- package/dist/chunks/{restart-UZgeDukG.js → restart-BYu_E7x5.js} +25 -59
- package/dist/chunks/restart-BYu_E7x5.js.map +1 -0
- package/dist/chunks/{schema-o7Lgk0V1.js → schema-B240VXcV.js} +11 -10
- package/dist/chunks/schema-B240VXcV.js.map +1 -0
- package/dist/chunks/{secrets-D7PdYh71.js → secrets-BieELnZh.js} +22 -4
- package/dist/chunks/secrets-BieELnZh.js.map +1 -0
- package/dist/chunks/{server-BuIeSsRu.js → server-By-zktjx.js} +3 -3
- package/dist/chunks/{server-BuIeSsRu.js.map → server-By-zktjx.js.map} +1 -1
- package/dist/chunks/{set-password-DegMumPh.js → set-password-D5vZqqSX.js} +7 -7
- package/dist/chunks/set-password-D5vZqqSX.js.map +1 -0
- package/dist/chunks/{set-token-21d1FTDC.js → set-token-xJkA1IZp.js} +7 -7
- package/dist/chunks/set-token-xJkA1IZp.js.map +1 -0
- package/dist/chunks/{settings-BVSBnIwJ.js → settings-xu-XTfWg.js} +126 -35
- package/dist/chunks/settings-xu-XTfWg.js.map +1 -0
- package/dist/chunks/{setup-temp-XiuAtiW2.js → setup-temp-CAN4_bA-.js} +6 -6
- package/dist/chunks/setup-temp-CAN4_bA-.js.map +1 -0
- package/dist/chunks/{src-BL97vLVb.js → src-BOBh9MBf.js} +2251 -1063
- package/dist/chunks/src-BOBh9MBf.js.map +1 -0
- package/dist/chunks/{status-EuWdRq8Q.js → status-B6f2-qhs.js} +12 -8
- package/dist/chunks/status-B6f2-qhs.js.map +1 -0
- package/dist/chunks/{ui-DbPuwddJ.js → ui-D562aqw5.js} +9 -7
- package/dist/chunks/ui-D562aqw5.js.map +1 -0
- package/dist/chunks/{ui-revert-BhqOAhmM.js → ui-revert-EkBBwRTt.js} +3 -3
- package/dist/chunks/{ui-revert-BhqOAhmM.js.map → ui-revert-EkBBwRTt.js.map} +1 -1
- package/dist/chunks/{ui-switch-CMoslPO2.js → ui-switch-BnZTdMDd.js} +3 -3
- package/dist/chunks/{ui-switch-CMoslPO2.js.map → ui-switch-BnZTdMDd.js.map} +1 -1
- package/dist/chunks/{ui-update-TTBBoDik.js → ui-update-_xryLYxw.js} +5 -5
- package/dist/chunks/{ui-update-TTBBoDik.js.map → ui-update-_xryLYxw.js.map} +1 -1
- package/dist/chunks/{up-C4H13hBw.js → up-DNZuTi2q.js} +25 -11
- package/dist/chunks/up-DNZuTi2q.js.map +1 -0
- package/dist/chunks/{usage-CSBgLRN5.js → usage-BrnDARNM.js} +29 -3
- package/dist/chunks/usage-BrnDARNM.js.map +1 -0
- package/dist/chunks/{workspaces-CAln2sQ7.js → workspaces-DYcfvKV_.js} +16 -8
- package/dist/chunks/workspaces-DYcfvKV_.js.map +1 -0
- package/dist/chunks/wsl-temperature-BiCI4iK6.js.map +1 -1
- package/dist/cli.js +80 -70
- package/dist/cli.js.map +1 -1
- package/dist/client.js +25 -1
- package/dist/client.js.map +1 -1
- package/dist/types/api/backups.d.ts +8 -3
- package/dist/types/api/control.d.ts +4 -3
- package/dist/types/api/events.d.ts +2 -1
- package/dist/types/api/health.d.ts +1 -0
- package/dist/types/api/metrics.d.ts +3 -1
- package/dist/types/api/settings.d.ts +2 -2
- package/dist/types/api/state.d.ts +8 -2
- package/dist/types/app.d.ts +26 -11
- package/dist/types/cli/backup.d.ts +7 -0
- package/dist/types/cli/down.d.ts +5 -0
- package/dist/types/cli/logs.d.ts +14 -2
- package/dist/types/cli/restart.d.ts +0 -1
- package/dist/types/cli/set-password.d.ts +2 -2
- package/dist/types/cli/up.d.ts +8 -2
- package/dist/types/client.d.ts +5618 -11
- package/dist/types/config/secrets.d.ts +2 -0
- package/dist/types/config/settings.d.ts +54 -8
- package/dist/types/config/store.d.ts +16 -3
- package/dist/types/config/workspaces.d.ts +4 -1
- package/dist/types/helpers/copy-tree.d.ts +5 -0
- package/dist/types/helpers/daemon.d.ts +20 -7
- package/dist/types/helpers/error.d.ts +8 -0
- package/dist/types/helpers/event-stream.d.ts +21 -0
- package/dist/types/helpers/openapi.d.ts +12 -24
- package/dist/types/helpers/paths.d.ts +18 -0
- package/dist/types/helpers/utf8-chunks.d.ts +15 -0
- package/dist/types/middleware/auth.d.ts +19 -3
- package/dist/types/providers/host.d.ts +1 -1
- package/dist/types/providers/log-tail.d.ts +27 -0
- package/dist/types/providers/nanny-sweep.d.ts +3 -0
- package/dist/types/providers/nanny.d.ts +10 -0
- package/dist/types/providers/proc.d.ts +9 -0
- package/dist/types/providers/process.d.ts +17 -0
- package/dist/types/providers/telegram.d.ts +45 -3
- package/dist/types/providers/wsl-temperature.d.ts +0 -4
- package/dist/types/services/auth.d.ts +36 -4
- package/dist/types/services/backups.d.ts +125 -1
- package/dist/types/services/ddns.d.ts +5 -0
- package/dist/types/services/exposure.d.ts +54 -1
- package/dist/types/services/history.d.ts +1 -0
- package/dist/types/services/host-monitor.d.ts +1 -0
- package/dist/types/services/log-buffer.d.ts +11 -0
- package/dist/types/services/log-files.d.ts +1 -11
- package/dist/types/services/log-relay.d.ts +0 -1
- package/dist/types/services/panel.d.ts +19 -0
- package/dist/types/services/proxy-certificates/certificates.d.ts +116 -0
- package/dist/types/services/proxy.d.ts +46 -69
- package/dist/types/services/state.d.ts +0 -3
- package/dist/types/services/supervisor/entry.d.ts +10 -0
- package/dist/types/services/supervisor/health.d.ts +3 -2
- package/dist/types/services/supervisor/output.d.ts +126 -0
- package/dist/types/services/supervisor/persistent.d.ts +4 -1
- package/dist/types/services/supervisor/records.d.ts +81 -1
- package/dist/types/services/supervisor.d.ts +32 -0
- package/dist/types/shared/action-outcome.d.ts +25 -0
- package/dist/types/shared/api-client.d.ts +218 -4
- package/dist/types/shared/backup-scope.d.ts +58 -0
- package/dist/types/shared/contracts.d.ts +142 -200
- package/dist/types/shared/ddns-form.d.ts +13 -0
- package/dist/types/shared/form-repair.d.ts +6 -0
- package/dist/types/shared/lazy.d.ts +4 -0
- package/dist/types/shared/live-frames.d.ts +22 -0
- package/dist/types/shared/live-series.d.ts +21 -0
- package/dist/types/shared/live-store.d.ts +72 -0
- package/dist/types/shared/patch-diff.d.ts +13 -2
- package/dist/types/shared/proxy-form.d.ts +2 -0
- package/dist/types/shared/server-form.d.ts +121 -0
- package/dist/types/shared/stream-access.d.ts +20 -0
- package/docs/API.md +45 -16
- package/docs/BACKUPS.md +31 -11
- package/docs/CLI.md +34 -61
- package/docs/DDNS.md +3 -1
- package/docs/NOTIFICATIONS.md +7 -1
- package/docs/REVERSE_PROXY.md +7 -1
- package/docs/SECURITY.md +21 -10
- package/docs/SERVERS.md +102 -23
- package/docs/UI_CREATION.md +10 -1
- package/docs/demo/blank-host-restore.sh +4 -3
- package/package.json +5 -7
- package/uis/stock/dist/assets/CopyButton-BUBKRJyY.js +1 -0
- package/uis/stock/dist/assets/GlobalSettingsView-yYMcRWvt.js +1 -0
- package/uis/stock/dist/assets/LogViewer-DIliXy62.js +1 -0
- package/uis/stock/dist/assets/LogsView-B7Z-7RNg.js +1 -0
- package/uis/stock/dist/assets/Modal-DmKa5Qpp.js +39 -0
- package/uis/stock/dist/assets/ProxyView-DvZiNkwb.js +1 -0
- package/uis/stock/dist/assets/ServerDetailView-6idGT_EX.js +2 -0
- package/uis/stock/dist/assets/SettingsShell-CeGtleYI.js +1 -0
- package/uis/stock/dist/assets/SettingsView-BrhJIrmk.js +2 -0
- package/uis/stock/dist/assets/de-BRITeb0H.js +1 -0
- package/uis/stock/dist/assets/es-B2zIEssV.js +1 -0
- package/uis/stock/dist/assets/fr-s0ZOBEqh.js +1 -0
- package/uis/stock/dist/assets/index-C1MehbKy.css +2 -0
- package/uis/stock/dist/assets/index-CnBN54wF.js +15 -0
- package/uis/stock/dist/assets/ja-CU7MR85V.js +1 -0
- package/uis/stock/dist/assets/ko-tL5Me6d-.js +1 -0
- package/uis/stock/dist/assets/ru-92yrvkNJ.js +1 -0
- package/uis/stock/dist/assets/vi-CzvY16k2.js +1 -0
- package/uis/stock/dist/assets/zh-CN-DDwFW_uW.js +1 -0
- package/uis/stock/dist/index.html +3 -2
- package/uis/stock/dist/ui.json +3 -3
- package/dist/chunks/archive-DpCwA8Nf.js.map +0 -1
- package/dist/chunks/atomic-CEfCUfkQ.js.map +0 -1
- package/dist/chunks/backup-CPrJVPJI.js.map +0 -1
- package/dist/chunks/backups-Bd2SF2qd.js.map +0 -1
- package/dist/chunks/contracts-ku5ypHXJ.js.map +0 -1
- package/dist/chunks/daemon-TwXk5vb8.js.map +0 -1
- package/dist/chunks/docker-CGv4Uv7w.js.map +0 -1
- package/dist/chunks/down-BlX5X3bm.js.map +0 -1
- package/dist/chunks/init-DdmqHVra.js.map +0 -1
- package/dist/chunks/last-stop-BZ08Z89-.js.map +0 -1
- package/dist/chunks/log-buffer-HnP0jKhZ.js.map +0 -1
- package/dist/chunks/logs-gI_69Q1P.js.map +0 -1
- package/dist/chunks/nanny-20aBXL1o.js.map +0 -1
- package/dist/chunks/nanny-sweep-Ca9kPAVi.js.map +0 -1
- package/dist/chunks/paths-BT94q6-w.js.map +0 -1
- package/dist/chunks/restart-UZgeDukG.js.map +0 -1
- package/dist/chunks/schema-o7Lgk0V1.js.map +0 -1
- package/dist/chunks/secrets-D7PdYh71.js.map +0 -1
- package/dist/chunks/set-password-DegMumPh.js.map +0 -1
- package/dist/chunks/set-token-21d1FTDC.js.map +0 -1
- package/dist/chunks/settings-BVSBnIwJ.js.map +0 -1
- package/dist/chunks/setup-temp-XiuAtiW2.js.map +0 -1
- package/dist/chunks/src-BL97vLVb.js.map +0 -1
- package/dist/chunks/status-EuWdRq8Q.js.map +0 -1
- package/dist/chunks/ui-DbPuwddJ.js.map +0 -1
- package/dist/chunks/up-C4H13hBw.js.map +0 -1
- package/dist/chunks/usage-CSBgLRN5.js.map +0 -1
- package/dist/chunks/workspaces-CAln2sQ7.js.map +0 -1
- package/docs/RESTORE_DEMO.md +0 -306
- package/uis/stock/dist/assets/de-DyGrM1KK.js +0 -1
- package/uis/stock/dist/assets/es-BebHdc0E.js +0 -1
- package/uis/stock/dist/assets/fr-DsDTrxhI.js +0 -1
- package/uis/stock/dist/assets/index-6LANO2Ua.css +0 -2
- package/uis/stock/dist/assets/index-D06cUZbM.js +0 -56
- package/uis/stock/dist/assets/ja-D3RARJjW.js +0 -1
- package/uis/stock/dist/assets/ko-CKI3dFoD.js +0 -1
- package/uis/stock/dist/assets/ru-DEU5ujXt.js +0 -1
- package/uis/stock/dist/assets/vi-ULKPnasj.js +0 -1
- package/uis/stock/dist/assets/zh-CN-tCvnOxWy.js +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { t as lazy } from "./lazy-Ce5zEAq1.js";
|
|
2
3
|
import { type } from "arktype";
|
|
3
4
|
/**
|
|
4
5
|
* The alert thresholds a percentage reading is banded against, when the frame carries none.
|
|
@@ -104,122 +105,70 @@ var contracts_exports = /* @__PURE__ */ __exportAll({
|
|
|
104
105
|
apiTokenCreatedSchema: () => apiTokenCreatedSchema,
|
|
105
106
|
appStateSchema: () => appStateSchema,
|
|
106
107
|
authSchema: () => authSchema,
|
|
107
|
-
authStatusSchema: () => authStatusSchema,
|
|
108
108
|
backupCreateSchema: () => backupCreateSchema,
|
|
109
109
|
backupCreatedResponseSchema: () => backupCreatedResponseSchema,
|
|
110
110
|
backupEntrySchema: () => backupEntrySchema,
|
|
111
|
-
backupFileSchema: () => backupFileSchema,
|
|
112
111
|
backupFilesResponseSchema: () => backupFilesResponseSchema,
|
|
113
|
-
|
|
114
|
-
backupHookPatchOrNullSchema: () => backupHookPatchOrNullSchema,
|
|
115
|
-
backupHookPatchSchema: () => backupHookPatchSchema,
|
|
116
|
-
backupHookSchema: () => backupHookSchema,
|
|
112
|
+
backupLocalResponseSchema: () => backupLocalResponseSchema,
|
|
117
113
|
backupScheduleSchema: () => backupScheduleSchema,
|
|
118
114
|
backupScheduleViewSchema: () => backupScheduleViewSchema,
|
|
119
|
-
backupScopeSchema: () => backupScopeSchema,
|
|
120
115
|
backupSelectionSchema: () => backupSelectionSchema,
|
|
121
116
|
backupsSchema: () => backupsSchema,
|
|
122
117
|
backupsViewSchema: () => backupsViewSchema,
|
|
123
|
-
bindSchema: () => bindSchema,
|
|
124
118
|
bootstrapOrNullSchema: () => bootstrapOrNullSchema,
|
|
125
|
-
bootstrapPatchOrNullSchema: () => bootstrapPatchOrNullSchema,
|
|
126
|
-
bootstrapPatchSchema: () => bootstrapPatchSchema,
|
|
127
|
-
bootstrapSchema: () => bootstrapSchema,
|
|
128
119
|
bufferedLogsResponseSchema: () => bufferedLogsResponseSchema,
|
|
129
120
|
controlSchema: () => controlSchema,
|
|
130
|
-
controlViewSchema: () => controlViewSchema,
|
|
131
|
-
ddnsAccountSchema: () => ddnsAccountSchema,
|
|
132
121
|
ddnsConfigSchema: () => ddnsConfigSchema,
|
|
133
122
|
ddnsCredentialsSchema: () => ddnsCredentialsSchema,
|
|
134
123
|
ddnsDomainSchema: () => ddnsDomainSchema,
|
|
135
|
-
ddnsIpv4Schema: () => ddnsIpv4Schema,
|
|
136
|
-
ddnsIpv6Schema: () => ddnsIpv6Schema,
|
|
137
|
-
ddnsProviderFieldSchema: () => ddnsProviderFieldSchema,
|
|
138
|
-
ddnsProviderInfoSchema: () => ddnsProviderInfoSchema,
|
|
139
|
-
ddnsRecordStateSchema: () => ddnsRecordStateSchema,
|
|
140
|
-
ddnsRecordTypeSchema: () => ddnsRecordTypeSchema,
|
|
141
|
-
ddnsRecordViewSchema: () => ddnsRecordViewSchema,
|
|
142
124
|
ddnsStatusSchema: () => ddnsStatusSchema,
|
|
143
125
|
ddnsViewSchema: () => ddnsViewSchema,
|
|
144
126
|
defaultsSchema: () => defaultsSchema,
|
|
145
127
|
deliveryResultSchema: () => deliveryResultSchema,
|
|
146
128
|
destinationIdParamSchema: () => destinationIdParamSchema,
|
|
147
|
-
destinationStatusSchema: () => destinationStatusSchema,
|
|
148
129
|
destinationTestSchema: () => destinationTestSchema,
|
|
149
130
|
duplicateWebhookIds: () => duplicateWebhookIds,
|
|
150
131
|
entryStateSchema: () => entryStateSchema,
|
|
151
132
|
freePortResultSchema: () => freePortResultSchema,
|
|
152
133
|
healthResponseSchema: () => healthResponseSchema,
|
|
153
134
|
healthSchema: () => healthSchema,
|
|
154
|
-
healthStateSchema: () => healthStateSchema,
|
|
155
|
-
historyActorSchema: () => historyActorSchema,
|
|
156
|
-
historyEventSchema: () => historyEventSchema,
|
|
157
|
-
hostDiskSchema: () => hostDiskSchema,
|
|
158
135
|
hostSchema: () => hostSchema,
|
|
159
|
-
hostViewSchema: () => hostViewSchema,
|
|
160
|
-
httpCheckSchema: () => httpCheckSchema,
|
|
161
|
-
labelOrNullSchema: () => labelOrNullSchema,
|
|
162
136
|
logBufferLinesSchema: () => logBufferLinesSchema,
|
|
163
|
-
logFileInfoSchema: () => logFileInfoSchema,
|
|
164
137
|
logHistoryQuerySchema: () => logHistoryQuerySchema,
|
|
165
|
-
logLineSchema: () => logLineSchema,
|
|
166
138
|
logLinesResponseSchema: () => logLinesResponseSchema,
|
|
167
139
|
logQuerySchema: () => logQuerySchema,
|
|
168
|
-
logServerViewSchema: () => logServerViewSchema,
|
|
169
140
|
logServersViewSchema: () => logServersViewSchema,
|
|
170
141
|
logStreamSchema: () => logStreamSchema,
|
|
171
142
|
loginSchema: () => loginSchema,
|
|
172
143
|
logsSchema: () => logsSchema,
|
|
173
|
-
nannyExitSchema: () => nannyExitSchema,
|
|
174
144
|
nannySpecSchema: () => nannySpecSchema,
|
|
175
145
|
nannyStateSchema: () => nannyStateSchema,
|
|
176
146
|
notificationActionSchema: () => notificationActionSchema,
|
|
177
147
|
notificationDefaultsSchema: () => notificationDefaultsSchema,
|
|
178
|
-
notificationDefaultsViewSchema: () => notificationDefaultsViewSchema,
|
|
179
|
-
notificationTargetSchema: () => notificationTargetSchema,
|
|
180
|
-
notificationViewSchema: () => notificationViewSchema,
|
|
181
148
|
notificationsSchema: () => notificationsSchema,
|
|
182
149
|
okResponseSchema: () => okResponseSchema,
|
|
183
|
-
onPortConflictDefaultSchema: () => onPortConflictDefaultSchema,
|
|
184
150
|
onPortConflictSchema: () => onPortConflictSchema,
|
|
185
151
|
parseBind: () => parseBind,
|
|
186
152
|
passwordSchema: () => passwordSchema,
|
|
187
153
|
passwordSetResponseSchema: () => passwordSetResponseSchema,
|
|
188
154
|
passwordValueSchema: () => passwordValueSchema,
|
|
189
155
|
portSchema: () => portSchema,
|
|
190
|
-
portStateSchema: () => portStateSchema,
|
|
191
|
-
processResourcesSchema: () => processResourcesSchema,
|
|
192
156
|
proxyCertificateSchema: () => proxyCertificateSchema,
|
|
193
|
-
proxyCertificateStateSchema: () => proxyCertificateStateSchema,
|
|
194
157
|
proxyCertificateUploadSchema: () => proxyCertificateUploadSchema,
|
|
195
|
-
proxyCertificateViewSchema: () => proxyCertificateViewSchema,
|
|
196
158
|
proxyConfigSchema: () => proxyConfigSchema,
|
|
197
|
-
proxyDns01Schema: () => proxyDns01Schema,
|
|
198
|
-
proxyDnsAccountViewSchema: () => proxyDnsAccountViewSchema,
|
|
199
|
-
proxyEngineInfoSchema: () => proxyEngineInfoSchema,
|
|
200
159
|
proxyEngineInstallSchema: () => proxyEngineInstallSchema,
|
|
201
|
-
proxyEngineSchema: () => proxyEngineSchema,
|
|
202
|
-
proxyEngineSourceSchema: () => proxyEngineSourceSchema,
|
|
203
160
|
proxyEngineStatusSchema: () => proxyEngineStatusSchema,
|
|
204
161
|
proxyPatchSchema: () => proxyPatchSchema,
|
|
205
|
-
proxyRoutePatchSchema: () => proxyRoutePatchSchema,
|
|
206
162
|
proxyRouteSchema: () => proxyRouteSchema,
|
|
207
|
-
proxyRouteStatusSchema: () => proxyRouteStatusSchema,
|
|
208
163
|
proxyRouteViewSchema: () => proxyRouteViewSchema,
|
|
209
|
-
proxyRunStateSchema: () => proxyRunStateSchema,
|
|
210
164
|
proxyStatusSchema: () => proxyStatusSchema,
|
|
211
|
-
proxyTargetSchema: () => proxyTargetSchema,
|
|
212
|
-
proxyTlsModeSchema: () => proxyTlsModeSchema,
|
|
213
165
|
proxyViewSchema: () => proxyViewSchema,
|
|
214
|
-
resourcesSchema: () => resourcesSchema,
|
|
215
166
|
restartSchema: () => restartSchema,
|
|
216
167
|
restoreItemSchema: () => restoreItemSchema,
|
|
217
168
|
restorePlanSchema: () => restorePlanSchema,
|
|
218
169
|
restoreRequestSchema: () => restoreRequestSchema,
|
|
219
170
|
restoreSkipSchema: () => restoreSkipSchema,
|
|
220
171
|
serverCreateSchema: () => serverCreateSchema,
|
|
221
|
-
serverHistorySchema: () => serverHistorySchema,
|
|
222
|
-
serverOrphanSchema: () => serverOrphanSchema,
|
|
223
172
|
serverPatchSchema: () => serverPatchSchema,
|
|
224
173
|
serverSchema: () => serverSchema,
|
|
225
174
|
serverStatusSchema: () => serverStatusSchema,
|
|
@@ -233,14 +182,10 @@ var contracts_exports = /* @__PURE__ */ __exportAll({
|
|
|
233
182
|
telegramTokenSchema: () => telegramTokenSchema,
|
|
234
183
|
tlsReviewResponseSchema: () => tlsReviewResponseSchema,
|
|
235
184
|
tlsSchema: () => tlsSchema,
|
|
236
|
-
tlsStatusSchema: () => tlsStatusSchema,
|
|
237
185
|
tlsUploadSchema: () => tlsUploadSchema,
|
|
238
186
|
uiInstallResponseSchema: () => uiInstallResponseSchema,
|
|
239
187
|
uiMetaSchema: () => uiMetaSchema,
|
|
240
|
-
uiStatusSchema: () => uiStatusSchema,
|
|
241
|
-
usageEntrySchema: () => usageEntrySchema,
|
|
242
188
|
usageViewSchema: () => usageViewSchema,
|
|
243
|
-
webhookTargetSchema: () => webhookTargetSchema,
|
|
244
189
|
workspaceCreateSchema: () => workspaceCreateSchema,
|
|
245
190
|
workspaceIdSchema: () => workspaceIdSchema,
|
|
246
191
|
workspaceRenameSchema: () => workspaceRenameSchema,
|
|
@@ -258,40 +203,38 @@ var contracts_exports = /* @__PURE__ */ __exportAll({
|
|
|
258
203
|
* bootstrap.
|
|
259
204
|
*/
|
|
260
205
|
/** `local` -> 127.0.0.1, `lan` -> 0.0.0.0, or an explicit IPv4 to bind. */
|
|
261
|
-
var bindSchema = type("\"local\" | \"lan\" | /^\\d{1,3}(?:\\.\\d{1,3}){3}$/");
|
|
206
|
+
var bindSchema = lazy(() => type("\"local\" | \"lan\" | /^\\d{1,3}(?:\\.\\d{1,3}){3}$/"));
|
|
262
207
|
/**
|
|
263
208
|
* A top-level unit: its own settings, servers, secrets, logs and nanny state
|
|
264
209
|
* under `$HHOSTED_HOME/.hh/<id>/`. The id is the directory name and never
|
|
265
210
|
* changes; the label is what a person reads and may rename at will.
|
|
266
211
|
*/
|
|
267
|
-
var workspaceIdSchema = type("/^[a-z0-9][a-z0-9_-]*$/");
|
|
268
|
-
var workspaceSchema = type({
|
|
212
|
+
var workspaceIdSchema = lazy(() => type("/^[a-z0-9][a-z0-9_-]*$/"));
|
|
213
|
+
var workspaceSchema = lazy(() => type({
|
|
269
214
|
id: workspaceIdSchema,
|
|
270
215
|
label: "1 <= string <= 60"
|
|
271
|
-
}).onUndeclaredKey("reject");
|
|
216
|
+
}).onUndeclaredKey("reject"));
|
|
272
217
|
/** `id` is optional; when omitted it is derived from the label. */
|
|
273
|
-
var workspaceCreateSchema = type({
|
|
218
|
+
var workspaceCreateSchema = lazy(() => type({
|
|
274
219
|
"id?": workspaceIdSchema,
|
|
275
220
|
"label?": "1 <= string <= 60"
|
|
276
|
-
}).onUndeclaredKey("reject");
|
|
277
|
-
var workspaceRenameSchema = type({ label: "1 <= string <= 60" }).onUndeclaredKey("reject");
|
|
221
|
+
}).onUndeclaredKey("reject"));
|
|
222
|
+
var workspaceRenameSchema = lazy(() => type({ label: "1 <= string <= 60" }).onUndeclaredKey("reject"));
|
|
278
223
|
/** Parses a bind value (`local` | `lan` | ipv4); null when it is not one. */
|
|
279
224
|
function parseBind(value) {
|
|
280
225
|
const parsed = bindSchema(value);
|
|
281
226
|
return parsed instanceof type.errors ? null : parsed;
|
|
282
227
|
}
|
|
283
228
|
/** `null` means "no port": no readiness probe, no health supervision, no preflight. */
|
|
284
|
-
var portSchema = type("1 <= number.integer <= 65535 | null");
|
|
229
|
+
var portSchema = lazy(() => type("1 <= number.integer <= 65535 | null"));
|
|
285
230
|
/**
|
|
286
231
|
* What to do when something already listens on the entry's port. `follow` and
|
|
287
232
|
* `reclaim` only ever act on a holder proven to be this entry's own detached
|
|
288
233
|
* successor (the `HHOSTED_SERVER_ID` marker, POSIX only); `kill` is the blunt one:
|
|
289
234
|
* it stops any holder except the panel's own process tree.
|
|
290
235
|
*/
|
|
291
|
-
var onPortConflictSchema = type.enumerated("block", "warn", "follow", "reclaim", "kill");
|
|
292
|
-
|
|
293
|
-
var onPortConflictDefaultSchema = onPortConflictSchema.default("block");
|
|
294
|
-
var restartSchema = type({
|
|
236
|
+
var onPortConflictSchema = lazy(() => type.enumerated("block", "warn", "follow", "reclaim", "kill"));
|
|
237
|
+
var restartSchema = lazy(() => type({
|
|
295
238
|
enabled: "boolean = true",
|
|
296
239
|
maxRetries: "number.integer >= 0 = 3",
|
|
297
240
|
baseDelayMs: "number >= 0 = 1000",
|
|
@@ -299,8 +242,8 @@ var restartSchema = type({
|
|
|
299
242
|
maxDelayMs: "number >= 0 = 30000",
|
|
300
243
|
/** A process alive this long is considered healthy again and the retry counter resets. */
|
|
301
244
|
resetAfterMs: "number >= 0 = 60000"
|
|
302
|
-
}).onUndeclaredKey("reject");
|
|
303
|
-
var httpCheckSchema = type({
|
|
245
|
+
}).onUndeclaredKey("reject"));
|
|
246
|
+
var httpCheckSchema = lazy(() => type({
|
|
304
247
|
/** `https` is for a backend that serves TLS itself; pair it with `allowInvalidCert` when it is self-signed. */
|
|
305
248
|
scheme: "\"http\" | \"https\" = \"http\"",
|
|
306
249
|
/** Accept any certificate. A self-signed pair is the normal case here, and the probe is local. */
|
|
@@ -313,12 +256,12 @@ var httpCheckSchema = type({
|
|
|
313
256
|
expectStatusBelow: "number.integer = 400",
|
|
314
257
|
/** Substring that must appear in the response body. */
|
|
315
258
|
expectBody: "string = \"\""
|
|
316
|
-
}).onUndeclaredKey("reject");
|
|
259
|
+
}).onUndeclaredKey("reject"));
|
|
317
260
|
/** Restart guards for the process tree. */
|
|
318
|
-
var resourcesSchema = type({
|
|
261
|
+
var resourcesSchema = lazy(() => type({
|
|
319
262
|
/** Restart when the tree's RSS exceeds this; 0 disables. */
|
|
320
|
-
maxRssBytes: "number.integer >= 0 = 0" }).onUndeclaredKey("reject");
|
|
321
|
-
var healthSchema = type({
|
|
263
|
+
maxRssBytes: "number.integer >= 0 = 0" }).onUndeclaredKey("reject"));
|
|
264
|
+
var healthSchema = lazy(() => type({
|
|
322
265
|
enabled: "boolean = true",
|
|
323
266
|
/** `port` = TCP connect only; `http` = fetch `http.path` and assert the response. */
|
|
324
267
|
mode: "\"port\" | \"http\" = \"port\"",
|
|
@@ -331,23 +274,23 @@ var healthSchema = type({
|
|
|
331
274
|
forceRestartAfterMs: "number >= 0 = 0",
|
|
332
275
|
/** How long to wait for the port to accept connections after spawn. */
|
|
333
276
|
startTimeoutMs: "number >= 0 = 20000"
|
|
334
|
-
}).onUndeclaredKey("reject");
|
|
335
|
-
var stopSchema = type({
|
|
277
|
+
}).onUndeclaredKey("reject"));
|
|
278
|
+
var stopSchema = lazy(() => type({
|
|
336
279
|
signal: "\"SIGTERM\" | \"SIGINT\" | \"SIGKILL\" = \"SIGTERM\"",
|
|
337
280
|
killGroup: "boolean = true",
|
|
338
281
|
graceMs: "number >= 0 = 5000",
|
|
339
282
|
/** Last resort for wrappers that detach their real server. */
|
|
340
283
|
killPortHolders: "boolean = false"
|
|
341
|
-
}).onUndeclaredKey("reject");
|
|
342
|
-
var bootstrapSchema = type({
|
|
284
|
+
}).onUndeclaredKey("reject"));
|
|
285
|
+
var bootstrapSchema = lazy(() => type({
|
|
343
286
|
command: "string",
|
|
344
287
|
args: type("string[]").default(() => []),
|
|
345
288
|
env: type("Record<string, string>").default(() => ({})),
|
|
346
289
|
timeoutMs: "number >= 1000 = 120000",
|
|
347
290
|
/** Run once per `up` session; whatever it installs persists on disk. */
|
|
348
291
|
runOnce: "boolean = true"
|
|
349
|
-
}).onUndeclaredKey("reject");
|
|
350
|
-
var bootstrapOrNullSchema = bootstrapSchema.or(type("null"));
|
|
292
|
+
}).onUndeclaredKey("reject"));
|
|
293
|
+
var bootstrapOrNullSchema = lazy(() => bootstrapSchema.or(type("null")));
|
|
351
294
|
/**
|
|
352
295
|
* The `bootstrap` group as a patch carries it: every field optional, and **no defaults**.
|
|
353
296
|
*
|
|
@@ -360,14 +303,14 @@ var bootstrapOrNullSchema = bootstrapSchema.or(type("null"));
|
|
|
360
303
|
* became `120000`. The group is still replaced, so a caller sends the fields it means to keep;
|
|
361
304
|
* what changes is that the panel no longer invents the ones it did not send.
|
|
362
305
|
*/
|
|
363
|
-
var bootstrapPatchSchema = type({
|
|
306
|
+
var bootstrapPatchSchema = lazy(() => type({
|
|
364
307
|
command: "string >= 1?",
|
|
365
308
|
args: "string[]?",
|
|
366
309
|
env: "Record<string, string>?",
|
|
367
310
|
timeoutMs: "number >= 1000?",
|
|
368
311
|
runOnce: "boolean?"
|
|
369
|
-
}).onUndeclaredKey("reject");
|
|
370
|
-
var bootstrapPatchOrNullSchema = bootstrapPatchSchema.or(type("null"));
|
|
312
|
+
}).onUndeclaredKey("reject"));
|
|
313
|
+
var bootstrapPatchOrNullSchema = lazy(() => bootstrapPatchSchema.or(type("null")));
|
|
371
314
|
/**
|
|
372
315
|
* A command run around a backup, for engines that need one to produce a consistent copy.
|
|
373
316
|
*
|
|
@@ -379,7 +322,7 @@ var bootstrapPatchOrNullSchema = bootstrapPatchSchema.or(type("null"));
|
|
|
379
322
|
* `{dumpDir}` is created before `dump` runs and captured by the archive; on restore the same
|
|
380
323
|
* directory is filled again before `load` runs, so the two hooks see the same path.
|
|
381
324
|
*/
|
|
382
|
-
var backupHookSchema = type({
|
|
325
|
+
var backupHookSchema = lazy(() => type({
|
|
383
326
|
command: "string >= 1",
|
|
384
327
|
args: type("string[]").default(() => []),
|
|
385
328
|
env: type("Record<string, string>").default(() => ({})),
|
|
@@ -393,8 +336,8 @@ var backupHookSchema = type({
|
|
|
393
336
|
* database reached over a socket should raise it.
|
|
394
337
|
*/
|
|
395
338
|
waitMs: "number >= 0 = 2000"
|
|
396
|
-
}).onUndeclaredKey("reject");
|
|
397
|
-
var backupHookOrNullSchema = backupHookSchema.or(type("null"));
|
|
339
|
+
}).onUndeclaredKey("reject"));
|
|
340
|
+
var backupHookOrNullSchema = lazy(() => backupHookSchema.or(type("null")));
|
|
398
341
|
/**
|
|
399
342
|
* The `dump`/`load` group as a patch carries it: every field optional, and **no defaults**.
|
|
400
343
|
*
|
|
@@ -403,14 +346,14 @@ var backupHookOrNullSchema = backupHookSchema.or(type("null"));
|
|
|
403
346
|
* reset `args`, `env`, `timeoutMs` and `waitMs` to values nobody sent. `waitMs` is the one that
|
|
404
347
|
* bites hardest — a `load` waiting on a slow database would silently drop back to 2 s.
|
|
405
348
|
*/
|
|
406
|
-
var backupHookPatchSchema = type({
|
|
349
|
+
var backupHookPatchSchema = lazy(() => type({
|
|
407
350
|
command: "string >= 1?",
|
|
408
351
|
args: "string[]?",
|
|
409
352
|
env: "Record<string, string>?",
|
|
410
353
|
timeoutMs: "number >= 1000?",
|
|
411
354
|
waitMs: "number >= 0?"
|
|
412
|
-
}).onUndeclaredKey("reject");
|
|
413
|
-
var backupHookPatchOrNullSchema = backupHookPatchSchema.or(type("null"));
|
|
355
|
+
}).onUndeclaredKey("reject"));
|
|
356
|
+
var backupHookPatchOrNullSchema = lazy(() => backupHookPatchSchema.or(type("null")));
|
|
414
357
|
/**
|
|
415
358
|
* A label that may be written as `null`, which means "no label" — the same spelling `port` and
|
|
416
359
|
* `bootstrap` already accept in a file.
|
|
@@ -419,9 +362,9 @@ var backupHookPatchOrNullSchema = backupHookPatchSchema.or(type("null"));
|
|
|
419
362
|
* `servers[0] ("web"): label must be a string (was null)`. The write side already tolerates `null`, and every
|
|
420
363
|
* display falls back with `label ?? id` — which `null` satisfies and `''` does not.
|
|
421
364
|
*/
|
|
422
|
-
var labelOrNullSchema = type("string | null");
|
|
423
|
-
var logBufferLinesSchema = type("50 <= number.integer <= 100000");
|
|
424
|
-
var serverSchema = type({
|
|
365
|
+
var labelOrNullSchema = lazy(() => type("string | null"));
|
|
366
|
+
var logBufferLinesSchema = lazy(() => type("50 <= number.integer <= 100000"));
|
|
367
|
+
var serverSchema = lazy(() => type({
|
|
425
368
|
id: "/^[a-z0-9][a-z0-9_-]*$/",
|
|
426
369
|
label: labelOrNullSchema.optional(),
|
|
427
370
|
enabled: "boolean = true",
|
|
@@ -454,7 +397,7 @@ var serverSchema = type({
|
|
|
454
397
|
load: backupHookOrNullSchema.optional(),
|
|
455
398
|
port: portSchema.optional(),
|
|
456
399
|
bind: bindSchema.default(() => "local"),
|
|
457
|
-
onPortConflict:
|
|
400
|
+
onPortConflict: onPortConflictSchema.default("block"),
|
|
458
401
|
restart: restartSchema.default(() => ({})),
|
|
459
402
|
health: healthSchema.default(() => ({})),
|
|
460
403
|
stop: stopSchema.default(() => ({})),
|
|
@@ -471,12 +414,12 @@ var serverSchema = type({
|
|
|
471
414
|
* `dist`, `.next`, caches, …) inside the paths this entry declares.
|
|
472
415
|
*/
|
|
473
416
|
backupIgnoreGenerated: "boolean = true"
|
|
474
|
-
}).onUndeclaredKey("reject");
|
|
417
|
+
}).onUndeclaredKey("reject"));
|
|
475
418
|
/**
|
|
476
419
|
* Authentication for the control panel itself. The password never lives here —
|
|
477
420
|
* only the policy does; its scrypt hash sits in a git-ignored secrets file.
|
|
478
421
|
*/
|
|
479
|
-
var authSchema = type({
|
|
422
|
+
var authSchema = lazy(() => type({
|
|
480
423
|
enabled: "boolean = true",
|
|
481
424
|
/** Idle timeout: a session dies this long after its **last** request, not after login. */
|
|
482
425
|
sessionTtlMs: "number >= 60000 = 604800000",
|
|
@@ -486,7 +429,7 @@ var authSchema = type({
|
|
|
486
429
|
trustProxy: "boolean | \"loopback\" = \"loopback\"",
|
|
487
430
|
maxLoginAttempts: "number.integer >= 1 = 5",
|
|
488
431
|
lockoutMs: "number >= 1000 = 60000"
|
|
489
|
-
}).onUndeclaredKey("reject");
|
|
432
|
+
}).onUndeclaredKey("reject"));
|
|
490
433
|
/**
|
|
491
434
|
* The event toggles and the throttle — the part a target may **inherit** instead of setting.
|
|
492
435
|
*
|
|
@@ -513,7 +456,7 @@ var notificationPolicyShape = {
|
|
|
513
456
|
* throttled every two minutes" — is set **once**, instead of once per transport and again per
|
|
514
457
|
* destination.
|
|
515
458
|
*/
|
|
516
|
-
var notificationDefaultsSchema = type({ ...notificationPolicyShape }).onUndeclaredKey("reject");
|
|
459
|
+
var notificationDefaultsSchema = lazy(() => type({ ...notificationPolicyShape }).onUndeclaredKey("reject"));
|
|
517
460
|
/**
|
|
518
461
|
* The same block **as a response**: tolerant of a key this release does not know.
|
|
519
462
|
*
|
|
@@ -522,7 +465,7 @@ var notificationDefaultsSchema = type({ ...notificationPolicyShape }).onUndeclar
|
|
|
522
465
|
* build's whole app. Reusing the strict schema in the view did exactly that: one additive key in
|
|
523
466
|
* `defaults` rejected the state frame and the page went blank.
|
|
524
467
|
*/
|
|
525
|
-
var notificationDefaultsViewSchema = type({ ...notificationPolicyShape });
|
|
468
|
+
var notificationDefaultsViewSchema = lazy(() => type({ ...notificationPolicyShape }));
|
|
526
469
|
/**
|
|
527
470
|
* Whether a target follows the general block or carries its own.
|
|
528
471
|
*
|
|
@@ -538,7 +481,7 @@ var useOwnSettingsSchema = "boolean = true";
|
|
|
538
481
|
* `chatId` is config; the bot token is a **secret**, keyed by this target's `id` in the workspace's
|
|
539
482
|
* `.secrets.json`. More than one is allowed, which is why the token cannot be a singleton any more.
|
|
540
483
|
*/
|
|
541
|
-
var telegramDestinationSchema = type({
|
|
484
|
+
var telegramDestinationSchema = lazy(() => type({
|
|
542
485
|
kind: "\"telegram\"",
|
|
543
486
|
id: "/^[a-z0-9][a-z0-9_-]*$/",
|
|
544
487
|
/** Off until configured: a bare `enabled: true` with no chat would fail every send. */
|
|
@@ -546,7 +489,7 @@ var telegramDestinationSchema = type({
|
|
|
546
489
|
chatId: "string = \"\"",
|
|
547
490
|
useOwnSettings: useOwnSettingsSchema,
|
|
548
491
|
...notificationPolicyShape
|
|
549
|
-
}).onUndeclaredKey("reject");
|
|
492
|
+
}).onUndeclaredKey("reject"));
|
|
550
493
|
/**
|
|
551
494
|
* One webhook target: a URL, a method, and the headers to send with it.
|
|
552
495
|
*
|
|
@@ -557,7 +500,7 @@ var telegramDestinationSchema = type({
|
|
|
557
500
|
* all three; a per-service adapter would be a code change per service.
|
|
558
501
|
*/
|
|
559
502
|
/** One webhook destination. */
|
|
560
|
-
var webhookTargetSchema = type({
|
|
503
|
+
var webhookTargetSchema = lazy(() => type({
|
|
561
504
|
kind: "\"webhook\"",
|
|
562
505
|
id: "/^[a-z0-9][a-z0-9_-]*$/",
|
|
563
506
|
/** Empty only while the target is a draft; the page will not save one without it. */
|
|
@@ -574,9 +517,9 @@ var webhookTargetSchema = type({
|
|
|
574
517
|
headers: "string = \"\"",
|
|
575
518
|
useOwnSettings: useOwnSettingsSchema,
|
|
576
519
|
...notificationPolicyShape
|
|
577
|
-
}).onUndeclaredKey("reject");
|
|
520
|
+
}).onUndeclaredKey("reject"));
|
|
578
521
|
/** A destination is one of the kinds this build can deliver to. */
|
|
579
|
-
var notificationTargetSchema = telegramDestinationSchema.or(webhookTargetSchema);
|
|
522
|
+
var notificationTargetSchema = lazy(() => telegramDestinationSchema.or(webhookTargetSchema));
|
|
580
523
|
/**
|
|
581
524
|
* The destination list.
|
|
582
525
|
*
|
|
@@ -585,13 +528,13 @@ var notificationTargetSchema = telegramDestinationSchema.or(webhookTargetSchema)
|
|
|
585
528
|
* `duplicateWebhookIds` at the write; a schema `narrow` cannot be rendered to JSON Schema and every
|
|
586
529
|
* route's `toJsonSchema()` would throw.
|
|
587
530
|
*/
|
|
588
|
-
var destinationListSchema = notificationTargetSchema.array();
|
|
589
|
-
var notificationsSchema = type({
|
|
531
|
+
var destinationListSchema = lazy(() => notificationTargetSchema.array());
|
|
532
|
+
var notificationsSchema = lazy(() => type({
|
|
590
533
|
/** What every destination inherits unless it carries its own settings. */
|
|
591
534
|
defaults: notificationDefaultsSchema.default(() => ({})),
|
|
592
535
|
/** Replaced by a patch, the same way `ddns.accounts` is: a merge cannot express removing one. */
|
|
593
536
|
destinations: destinationListSchema.default(() => [])
|
|
594
|
-
}).onUndeclaredKey("reject");
|
|
537
|
+
}).onUndeclaredKey("reject"));
|
|
595
538
|
/**
|
|
596
539
|
* The ids that appear more than once, so a write can refuse them.
|
|
597
540
|
*
|
|
@@ -608,15 +551,15 @@ function duplicateWebhookIds(targets) {
|
|
|
608
551
|
return [...duplicates];
|
|
609
552
|
}
|
|
610
553
|
/** On-disk log retention for the Logs page. */
|
|
611
|
-
var logsSchema = type({
|
|
554
|
+
var logsSchema = lazy(() => type({
|
|
612
555
|
persist: "boolean = true",
|
|
613
556
|
/** Per server, before rotating to `.1`, `.2`, ... */
|
|
614
557
|
maxBytes: "10000 <= number <= 100000000 = 2000000",
|
|
615
558
|
keep: "1 <= number.integer <= 10 = 3"
|
|
616
|
-
}).onUndeclaredKey("reject");
|
|
617
|
-
var tlsSchema = type({ enabled: "boolean = false" }).onUndeclaredKey("reject");
|
|
559
|
+
}).onUndeclaredKey("reject"));
|
|
560
|
+
var tlsSchema = lazy(() => type({ enabled: "boolean = false" }).onUndeclaredKey("reject"));
|
|
618
561
|
/** Host-level vitals and their alert thresholds. */
|
|
619
|
-
var hostSchema = type({
|
|
562
|
+
var hostSchema = lazy(() => type({
|
|
620
563
|
enabled: "boolean = true",
|
|
621
564
|
intervalMs: "number >= 5000 = 15000",
|
|
622
565
|
/** Filesystems reported and alerted on; templates and `~` are expanded. */
|
|
@@ -646,23 +589,23 @@ var hostSchema = type({
|
|
|
646
589
|
tempCommand: "string <= 512 = \"\"",
|
|
647
590
|
/** How long that command may run before it is killed, so a hung helper cannot stall a sample. */
|
|
648
591
|
tempCommandTimeoutMs: "100 <= number <= 30000 = 5000"
|
|
649
|
-
}).onUndeclaredKey("reject");
|
|
592
|
+
}).onUndeclaredKey("reject"));
|
|
650
593
|
/** A record family the DDNS engine can point at this host. */
|
|
651
|
-
var ddnsRecordTypeSchema = type.enumerated("A", "AAAA");
|
|
594
|
+
var ddnsRecordTypeSchema = lazy(() => type.enumerated("A", "AAAA"));
|
|
652
595
|
/**
|
|
653
596
|
* One DNS provider account. Its credentials are secrets and live in the secrets
|
|
654
597
|
* file keyed by this `id`, never in the config.
|
|
655
598
|
*/
|
|
656
|
-
var ddnsAccountSchema = type({
|
|
599
|
+
var ddnsAccountSchema = lazy(() => type({
|
|
657
600
|
id: "/^[a-z0-9][a-z0-9_-]*$/",
|
|
658
601
|
provider: "string >= 1",
|
|
659
602
|
label: "string = \"\""
|
|
660
|
-
}).onUndeclaredKey("reject");
|
|
603
|
+
}).onUndeclaredKey("reject"));
|
|
661
604
|
/**
|
|
662
605
|
* A hostname to keep pointed at this machine. That list is the whole user-facing
|
|
663
606
|
* setup: the provider account it belongs to, and (optionally) which families.
|
|
664
607
|
*/
|
|
665
|
-
var ddnsDomainSchema = type({
|
|
608
|
+
var ddnsDomainSchema = lazy(() => type({
|
|
666
609
|
host: "/^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/",
|
|
667
610
|
account: "string >= 1",
|
|
668
611
|
/** Records to keep current; `A` unless the host needs IPv6 too. */
|
|
@@ -677,24 +620,24 @@ var ddnsDomainSchema = type({
|
|
|
677
620
|
/** Proxying is a property of the record, not the panel: Cloudflare only. */
|
|
678
621
|
proxied: "boolean = false",
|
|
679
622
|
enabled: "boolean = true"
|
|
680
|
-
}).onUndeclaredKey("reject");
|
|
623
|
+
}).onUndeclaredKey("reject"));
|
|
681
624
|
/** Which public IP families to detect; a provider is only called for the ones declared. */
|
|
682
|
-
var ddnsIpv4Schema = type({
|
|
625
|
+
var ddnsIpv4Schema = lazy(() => type({
|
|
683
626
|
enabled: "boolean = true",
|
|
684
627
|
/** Override the public-IP endpoint; empty uses the built-in list. */
|
|
685
628
|
url: "string = \"\""
|
|
686
|
-
}).onUndeclaredKey("reject");
|
|
687
|
-
var ddnsIpv6Schema = type({
|
|
629
|
+
}).onUndeclaredKey("reject"));
|
|
630
|
+
var ddnsIpv6Schema = lazy(() => type({
|
|
688
631
|
enabled: "boolean = false",
|
|
689
632
|
url: "string = \"\""
|
|
690
|
-
}).onUndeclaredKey("reject");
|
|
633
|
+
}).onUndeclaredKey("reject"));
|
|
691
634
|
/**
|
|
692
635
|
* Dynamic DNS: keep a list of hostnames pointed at this machine's public IP.
|
|
693
636
|
* Probing is cheap and constant; a provider is only called when the address it
|
|
694
637
|
* last confirmed differs, which is what keeps simple endpoints (FreeDNS, No-IP)
|
|
695
638
|
* inside their rate limits.
|
|
696
639
|
*/
|
|
697
|
-
var ddnsConfigSchema = type({
|
|
640
|
+
var ddnsConfigSchema = lazy(() => type({
|
|
698
641
|
enabled: "boolean = false",
|
|
699
642
|
/** How often the public address is re-checked. */
|
|
700
643
|
intervalMs: "number >= 60000 = 300000",
|
|
@@ -704,10 +647,10 @@ var ddnsConfigSchema = type({
|
|
|
704
647
|
ttl: "number.integer >= 1 = 1",
|
|
705
648
|
accounts: ddnsAccountSchema.array().default(() => []),
|
|
706
649
|
domains: ddnsDomainSchema.array().default(() => [])
|
|
707
|
-
}).onUndeclaredKey("reject");
|
|
708
|
-
var ddnsRecordStateSchema = type("\"pending\" | \"ok\" | \"unchanged\" | \"error\" | \"skipped\"");
|
|
650
|
+
}).onUndeclaredKey("reject"));
|
|
651
|
+
var ddnsRecordStateSchema = lazy(() => type("\"pending\" | \"ok\" | \"unchanged\" | \"error\" | \"skipped\""));
|
|
709
652
|
/** What happened to one hostname on the last pass. */
|
|
710
|
-
var ddnsRecordViewSchema = type({
|
|
653
|
+
var ddnsRecordViewSchema = lazy(() => type({
|
|
711
654
|
"host": "string",
|
|
712
655
|
"account": "string",
|
|
713
656
|
"provider": "string",
|
|
@@ -718,9 +661,9 @@ var ddnsRecordViewSchema = type({
|
|
|
718
661
|
"updatedAt": "number | null",
|
|
719
662
|
/** The provider refused permanently; no retry until the hostname, account or credentials change, or a check. */
|
|
720
663
|
"stopped?": "boolean"
|
|
721
|
-
});
|
|
664
|
+
}));
|
|
722
665
|
/** Live DDNS state, as the state frame and the settings page read it. */
|
|
723
|
-
var ddnsStatusSchema = type({
|
|
666
|
+
var ddnsStatusSchema = lazy(() => type({
|
|
724
667
|
enabled: "boolean",
|
|
725
668
|
running: "boolean",
|
|
726
669
|
lastRunAt: "number | null",
|
|
@@ -728,16 +671,16 @@ var ddnsStatusSchema = type({
|
|
|
728
671
|
ipv4: "string | null",
|
|
729
672
|
ipv6: "string | null",
|
|
730
673
|
records: ddnsRecordViewSchema.array()
|
|
731
|
-
});
|
|
674
|
+
}));
|
|
732
675
|
/** What a provider needs from the person configuring it. */
|
|
733
|
-
var ddnsProviderFieldSchema = type({
|
|
676
|
+
var ddnsProviderFieldSchema = lazy(() => type({
|
|
734
677
|
key: "string",
|
|
735
678
|
label: "string",
|
|
736
679
|
hint: "string = \"\"",
|
|
737
680
|
optional: "boolean = false"
|
|
738
|
-
});
|
|
681
|
+
}));
|
|
739
682
|
/** Provider capabilities, so the UI knows which options to show. */
|
|
740
|
-
var ddnsProviderInfoSchema = type({
|
|
683
|
+
var ddnsProviderInfoSchema = lazy(() => type({
|
|
741
684
|
id: "string",
|
|
742
685
|
label: "string",
|
|
743
686
|
docsUrl: "string",
|
|
@@ -747,26 +690,26 @@ var ddnsProviderInfoSchema = type({
|
|
|
747
690
|
proxied: "boolean",
|
|
748
691
|
/** These credentials can also answer an ACME DNS-01 challenge (a TXT record). */
|
|
749
692
|
txt: "boolean"
|
|
750
|
-
});
|
|
693
|
+
}));
|
|
751
694
|
/** `GET /api/ddns`: the policy, the live state, and the providers this build knows. */
|
|
752
|
-
var ddnsViewSchema = type({
|
|
695
|
+
var ddnsViewSchema = lazy(() => type({
|
|
753
696
|
config: ddnsConfigSchema,
|
|
754
697
|
status: ddnsStatusSchema,
|
|
755
698
|
providers: ddnsProviderInfoSchema.array(),
|
|
756
699
|
/** Account ids whose credentials are stored. */
|
|
757
700
|
credentials: type("string[]")
|
|
758
|
-
}).onDeepUndeclaredKey("ignore");
|
|
701
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
759
702
|
/**
|
|
760
703
|
* `PUT /api/ddns/credentials/:id`: the secret fields that provider declares.
|
|
761
704
|
*
|
|
762
705
|
* The provider travels with the request because the account may still be an
|
|
763
706
|
* unsaved draft — the server needs its field list, not a config entry.
|
|
764
707
|
*/
|
|
765
|
-
var ddnsCredentialsSchema = type({
|
|
708
|
+
var ddnsCredentialsSchema = lazy(() => type({
|
|
766
709
|
provider: "string >= 1",
|
|
767
710
|
credentials: type("Record<string, string>")
|
|
768
|
-
}).onUndeclaredKey("reject");
|
|
769
|
-
type({
|
|
711
|
+
}).onUndeclaredKey("reject"));
|
|
712
|
+
lazy(() => type({
|
|
770
713
|
enabled: "boolean?",
|
|
771
714
|
intervalMs: "number >= 60000?",
|
|
772
715
|
ipv4: type({
|
|
@@ -780,7 +723,7 @@ type({
|
|
|
780
723
|
ttl: "number.integer >= 1?",
|
|
781
724
|
accounts: ddnsAccountSchema.array().optional(),
|
|
782
725
|
domains: ddnsDomainSchema.array().optional()
|
|
783
|
-
}).onUndeclaredKey("reject");
|
|
726
|
+
}).onUndeclaredKey("reject"));
|
|
784
727
|
/** Tar archives of config, secrets, TLS and declared data paths. */
|
|
785
728
|
/**
|
|
786
729
|
* What an automatic backup captures, in the vocabulary the manual dialog and the CLI already use.
|
|
@@ -792,12 +735,12 @@ type({
|
|
|
792
735
|
* An empty `ids` is refused rather than read as either "nothing" or "everything": those are the two
|
|
793
736
|
* readings a person cannot tell apart from the file, and one of them captures nothing at all.
|
|
794
737
|
*/
|
|
795
|
-
var backupScopeSchema = type({
|
|
738
|
+
var backupScopeSchema = lazy(() => type({
|
|
796
739
|
mode: "\"only\" | \"except\"",
|
|
797
740
|
ids: type("string >= 1").array().atLeastLength(1)
|
|
798
|
-
}).onUndeclaredKey("reject");
|
|
741
|
+
}).onUndeclaredKey("reject"));
|
|
799
742
|
/** The scheduled half: an interval, a retention of its own, and what it captures. */
|
|
800
|
-
var backupScheduleSchema = type({
|
|
743
|
+
var backupScheduleSchema = lazy(() => type({
|
|
801
744
|
/** 0 turns the schedule off; otherwise the gap between automatic archives. */
|
|
802
745
|
intervalMs: "number.integer >= 0 = 0",
|
|
803
746
|
/** How many automatic archives to keep. Manual ones are never pruned by it. */
|
|
@@ -808,8 +751,8 @@ var backupScheduleSchema = type({
|
|
|
808
751
|
* "everything", and a default here would rewrite every existing schedule on its first save.
|
|
809
752
|
*/
|
|
810
753
|
scope: backupScopeSchema.optional()
|
|
811
|
-
}).onUndeclaredKey("reject");
|
|
812
|
-
var backupsSchema = type({
|
|
754
|
+
}).onUndeclaredKey("reject"));
|
|
755
|
+
var backupsSchema = lazy(() => type({
|
|
813
756
|
enabled: "boolean = true",
|
|
814
757
|
dir: "string = \".backups\"",
|
|
815
758
|
/** How many archives to keep in total, newest first. */
|
|
@@ -817,9 +760,9 @@ var backupsSchema = type({
|
|
|
817
760
|
/** Extra paths in every backup, in addition to each server's `backupPaths`. */
|
|
818
761
|
includePaths: type("string[]").default(() => []),
|
|
819
762
|
schedule: backupScheduleSchema.default(() => ({}))
|
|
820
|
-
}).onUndeclaredKey("reject");
|
|
821
|
-
var allowedHostsSchema = type(/^(?:\*\.)?[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i).array().atMostLength(64);
|
|
822
|
-
var controlSchema = type({
|
|
763
|
+
}).onUndeclaredKey("reject"));
|
|
764
|
+
var allowedHostsSchema = lazy(() => type(/^(?:\*\.)?[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i).array().atMostLength(64));
|
|
765
|
+
var controlSchema = lazy(() => type({
|
|
823
766
|
/** What the panel calls itself; the stock UI shows it in the sidebar. */
|
|
824
767
|
label: "1 <= string <= 60 = \"home-hosted\"",
|
|
825
768
|
port: "1 <= number.integer <= 65535 = 3999",
|
|
@@ -833,27 +776,27 @@ var controlSchema = type({
|
|
|
833
776
|
allowedHosts: allowedHostsSchema.default(() => []),
|
|
834
777
|
auth: authSchema.default(() => ({})),
|
|
835
778
|
tls: tlsSchema.default(() => ({}))
|
|
836
|
-
}).onUndeclaredKey("reject");
|
|
779
|
+
}).onUndeclaredKey("reject"));
|
|
837
780
|
/** Applied to every server entry; whatever an entry sets wins. */
|
|
838
|
-
var defaultsSchema = type({
|
|
781
|
+
var defaultsSchema = lazy(() => type({
|
|
839
782
|
enabled: "boolean = true",
|
|
840
783
|
autostart: "boolean = false",
|
|
841
784
|
bind: bindSchema.default(() => "local"),
|
|
842
|
-
onPortConflict:
|
|
785
|
+
onPortConflict: onPortConflictSchema.default("block"),
|
|
843
786
|
restart: restartSchema.default(() => ({})),
|
|
844
787
|
health: healthSchema.default(() => ({})),
|
|
845
788
|
stop: stopSchema.default(() => ({})),
|
|
846
789
|
logBufferLines: logBufferLinesSchema.default(() => 500)
|
|
847
|
-
}).onUndeclaredKey("reject");
|
|
848
|
-
var restartPatchSchema = type({
|
|
790
|
+
}).onUndeclaredKey("reject"));
|
|
791
|
+
var restartPatchSchema = lazy(() => type({
|
|
849
792
|
enabled: "boolean?",
|
|
850
793
|
maxRetries: "number.integer >= 0?",
|
|
851
794
|
baseDelayMs: "number >= 0?",
|
|
852
795
|
factor: "number >= 1?",
|
|
853
796
|
maxDelayMs: "number >= 0?",
|
|
854
797
|
resetAfterMs: "number >= 0?"
|
|
855
|
-
}).onUndeclaredKey("reject");
|
|
856
|
-
var httpCheckPatchSchema = type({
|
|
798
|
+
}).onUndeclaredKey("reject"));
|
|
799
|
+
var httpCheckPatchSchema = lazy(() => type({
|
|
857
800
|
scheme: "\"http\" | \"https\"?",
|
|
858
801
|
allowInvalidCert: "boolean?",
|
|
859
802
|
path: "string?",
|
|
@@ -861,9 +804,9 @@ var httpCheckPatchSchema = type({
|
|
|
861
804
|
expectStatus: "number.integer | null?",
|
|
862
805
|
expectStatusBelow: "number.integer?",
|
|
863
806
|
expectBody: "string?"
|
|
864
|
-
}).onUndeclaredKey("reject");
|
|
865
|
-
var resourcesPatchSchema = type({ maxRssBytes: "number.integer >= 0?" }).onUndeclaredKey("reject");
|
|
866
|
-
var healthPatchSchema = type({
|
|
807
|
+
}).onUndeclaredKey("reject"));
|
|
808
|
+
var resourcesPatchSchema = lazy(() => type({ maxRssBytes: "number.integer >= 0?" }).onUndeclaredKey("reject"));
|
|
809
|
+
var healthPatchSchema = lazy(() => type({
|
|
867
810
|
enabled: "boolean?",
|
|
868
811
|
mode: "\"port\" | \"http\"?",
|
|
869
812
|
http: httpCheckPatchSchema.optional(),
|
|
@@ -872,21 +815,21 @@ var healthPatchSchema = type({
|
|
|
872
815
|
unhealthyThreshold: "number.integer >= 1?",
|
|
873
816
|
forceRestartAfterMs: "number >= 0?",
|
|
874
817
|
startTimeoutMs: "number >= 0?"
|
|
875
|
-
}).onUndeclaredKey("reject");
|
|
876
|
-
var stopPatchSchema = type({
|
|
818
|
+
}).onUndeclaredKey("reject"));
|
|
819
|
+
var stopPatchSchema = lazy(() => type({
|
|
877
820
|
signal: "\"SIGTERM\" | \"SIGINT\" | \"SIGKILL\"?",
|
|
878
821
|
killGroup: "boolean?",
|
|
879
822
|
graceMs: "number >= 0?",
|
|
880
823
|
killPortHolders: "boolean?"
|
|
881
|
-
}).onUndeclaredKey("reject");
|
|
882
|
-
var authPatchSchema = type({
|
|
824
|
+
}).onUndeclaredKey("reject"));
|
|
825
|
+
var authPatchSchema = lazy(() => type({
|
|
883
826
|
enabled: "boolean?",
|
|
884
827
|
sessionTtlMs: "number >= 60000?",
|
|
885
828
|
cookieSecure: "\"auto\" | \"always\" | \"never\"?",
|
|
886
829
|
trustProxy: "boolean | \"loopback\"?",
|
|
887
830
|
maxLoginAttempts: "number.integer >= 1?",
|
|
888
831
|
lockoutMs: "number >= 1000?"
|
|
889
|
-
}).onUndeclaredKey("reject");
|
|
832
|
+
}).onUndeclaredKey("reject"));
|
|
890
833
|
var notificationPolicyPatchShape = {
|
|
891
834
|
onCrash: "boolean?",
|
|
892
835
|
onUnhealthy: "boolean?",
|
|
@@ -903,7 +846,7 @@ var notificationPolicyPatchShape = {
|
|
|
903
846
|
* credential), so it names the kind it is addressing. The list is **replaced**, not merged — a merge
|
|
904
847
|
* cannot express removing a destination, the same reason `ddns.accounts` is replaced.
|
|
905
848
|
*/
|
|
906
|
-
var destinationPatchSchema = type({
|
|
849
|
+
var destinationPatchSchema = lazy(() => type({
|
|
907
850
|
kind: "\"telegram\" | \"webhook\"",
|
|
908
851
|
id: "/^[a-z0-9][a-z0-9_-]*$/",
|
|
909
852
|
enabled: "boolean?",
|
|
@@ -916,8 +859,8 @@ var destinationPatchSchema = type({
|
|
|
916
859
|
format: "\"json\" | \"text\"?",
|
|
917
860
|
headers: "string?",
|
|
918
861
|
...notificationPolicyPatchShape
|
|
919
|
-
}).onUndeclaredKey("reject");
|
|
920
|
-
var notificationsPatchSchema = type({
|
|
862
|
+
}).onUndeclaredKey("reject"));
|
|
863
|
+
var notificationsPatchSchema = lazy(() => type({
|
|
921
864
|
/** Merged key by key, like the other nested groups. */
|
|
922
865
|
/**
|
|
923
866
|
* A merge key-by-key, and **every field optional** — `notificationPolicyPatchShape`, not a
|
|
@@ -931,8 +874,8 @@ var notificationsPatchSchema = type({
|
|
|
931
874
|
defaults: type({ ...notificationPolicyPatchShape }).onUndeclaredKey("reject").optional(),
|
|
932
875
|
/** Replaced whole, so a removed destination stays removed. */
|
|
933
876
|
destinations: destinationPatchSchema.array().optional()
|
|
934
|
-
}).onUndeclaredKey("reject");
|
|
935
|
-
var hostPatchSchema = type({
|
|
877
|
+
}).onUndeclaredKey("reject"));
|
|
878
|
+
var hostPatchSchema = lazy(() => type({
|
|
936
879
|
enabled: "boolean?",
|
|
937
880
|
intervalMs: "number >= 5000?",
|
|
938
881
|
diskPaths: type("string[]").optional(),
|
|
@@ -943,8 +886,8 @@ var hostPatchSchema = type({
|
|
|
943
886
|
tempCelsius: "number >= 0?",
|
|
944
887
|
tempCommand: "string <= 512?",
|
|
945
888
|
tempCommandTimeoutMs: "100 <= number <= 30000?"
|
|
946
|
-
}).onUndeclaredKey("reject");
|
|
947
|
-
var backupSchedulePatchSchema = type({
|
|
889
|
+
}).onUndeclaredKey("reject"));
|
|
890
|
+
var backupSchedulePatchSchema = lazy(() => type({
|
|
948
891
|
intervalMs: "number.integer >= 0?",
|
|
949
892
|
keep: "number.integer >= 1?",
|
|
950
893
|
/**
|
|
@@ -952,21 +895,21 @@ var backupSchedulePatchSchema = type({
|
|
|
952
895
|
* only way to spell "forget the choice I made" — an omitted key means "leave it as it is".
|
|
953
896
|
*/
|
|
954
897
|
scope: backupScopeSchema.or(type("null")).optional()
|
|
955
|
-
}).onUndeclaredKey("reject");
|
|
956
|
-
var backupsPatchSchema = type({
|
|
898
|
+
}).onUndeclaredKey("reject"));
|
|
899
|
+
var backupsPatchSchema = lazy(() => type({
|
|
957
900
|
enabled: "boolean?",
|
|
958
901
|
dir: "string?",
|
|
959
902
|
keep: "number.integer >= 1?",
|
|
960
903
|
includePaths: type("string[]").optional(),
|
|
961
904
|
schedule: backupSchedulePatchSchema.optional()
|
|
962
|
-
}).onUndeclaredKey("reject");
|
|
963
|
-
var logsPatchSchema = type({
|
|
905
|
+
}).onUndeclaredKey("reject"));
|
|
906
|
+
var logsPatchSchema = lazy(() => type({
|
|
964
907
|
persist: "boolean?",
|
|
965
908
|
maxBytes: "10000 <= number <= 100000000?",
|
|
966
909
|
keep: "1 <= number.integer <= 10?"
|
|
967
|
-
}).onUndeclaredKey("reject");
|
|
968
|
-
var tlsPatchSchema = type({ enabled: "boolean?" }).onUndeclaredKey("reject");
|
|
969
|
-
var controlPatchSchema = type({
|
|
910
|
+
}).onUndeclaredKey("reject"));
|
|
911
|
+
var tlsPatchSchema = lazy(() => type({ enabled: "boolean?" }).onUndeclaredKey("reject"));
|
|
912
|
+
var controlPatchSchema = lazy(() => type({
|
|
970
913
|
label: "1 <= string <= 60 | null?",
|
|
971
914
|
port: "1 <= number.integer <= 65535?",
|
|
972
915
|
host: bindSchema.optional(),
|
|
@@ -974,8 +917,8 @@ var controlPatchSchema = type({
|
|
|
974
917
|
allowedHosts: allowedHostsSchema.optional(),
|
|
975
918
|
auth: authPatchSchema.optional(),
|
|
976
919
|
tls: tlsPatchSchema.optional()
|
|
977
|
-
}).onUndeclaredKey("reject");
|
|
978
|
-
var defaultsPatchSchema = type({
|
|
920
|
+
}).onUndeclaredKey("reject"));
|
|
921
|
+
var defaultsPatchSchema = lazy(() => type({
|
|
979
922
|
enabled: "boolean?",
|
|
980
923
|
autostart: "boolean?",
|
|
981
924
|
bind: bindSchema.optional(),
|
|
@@ -984,52 +927,55 @@ var defaultsPatchSchema = type({
|
|
|
984
927
|
health: healthPatchSchema.optional(),
|
|
985
928
|
stop: stopPatchSchema.optional(),
|
|
986
929
|
logBufferLines: logBufferLinesSchema.optional()
|
|
987
|
-
}).onUndeclaredKey("reject");
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
930
|
+
}).onUndeclaredKey("reject"));
|
|
931
|
+
/** A function, so the schemas it names are built only when a patch schema is. */
|
|
932
|
+
function editableFields() {
|
|
933
|
+
return {
|
|
934
|
+
/**
|
|
935
|
+
* `null` clears it, the same spelling `serverSchema` accepts and every display's `label ?? id`
|
|
936
|
+
* fallback needs — an empty string satisfies neither. `serverPatchSchema` is what the editor
|
|
937
|
+
* validates its payload against and what `PATCH /api/servers/:id` checks, so without this a
|
|
938
|
+
* cleared Label was refused with "label must be a string (was null)" and could not be saved at all
|
|
939
|
+
* (`1f58a5d` fixed `applyPatch` and the *control* patch schema, and cited that one in its message).
|
|
940
|
+
*/
|
|
941
|
+
label: labelOrNullSchema.optional(),
|
|
942
|
+
enabled: "boolean?",
|
|
943
|
+
autostart: "boolean?",
|
|
944
|
+
persistent: "boolean?",
|
|
945
|
+
command: "string?",
|
|
946
|
+
args: "string[]?",
|
|
947
|
+
cwd: "string?",
|
|
948
|
+
env: "Record<string, string>?",
|
|
949
|
+
dataEnvs: "Record<string, string>?",
|
|
950
|
+
bootstrap: bootstrapPatchOrNullSchema.optional(),
|
|
951
|
+
dump: backupHookPatchOrNullSchema.optional(),
|
|
952
|
+
load: backupHookPatchOrNullSchema.optional(),
|
|
953
|
+
port: portSchema.optional(),
|
|
954
|
+
bind: bindSchema.optional(),
|
|
955
|
+
onPortConflict: onPortConflictSchema.optional(),
|
|
956
|
+
restart: restartPatchSchema.optional(),
|
|
957
|
+
health: healthPatchSchema.optional(),
|
|
958
|
+
stop: stopPatchSchema.optional(),
|
|
959
|
+
logBufferLines: logBufferLinesSchema.optional(),
|
|
960
|
+
dependsOn: type("string[]").optional(),
|
|
961
|
+
envFile: "string?",
|
|
962
|
+
resources: resourcesPatchSchema.optional(),
|
|
963
|
+
backupPaths: type("string[]").optional(),
|
|
964
|
+
backupIgnoreGenerated: "boolean?"
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
var serverPatchSchema = lazy(() => type(editableFields()).onUndeclaredKey("reject"));
|
|
968
|
+
var serverCreateSchema = lazy(() => type({
|
|
1023
969
|
id: "/^[a-z0-9][a-z0-9_-]*$/",
|
|
1024
|
-
...editableFields,
|
|
970
|
+
...editableFields(),
|
|
1025
971
|
command: "string"
|
|
1026
|
-
}).onUndeclaredKey("reject");
|
|
972
|
+
}).onUndeclaredKey("reject"));
|
|
1027
973
|
/**
|
|
1028
974
|
* What the panel hands a persistent entry's nanny, written 0600 and unlinked by the
|
|
1029
975
|
* nanny as it reads it. Everything is already resolved and expanded, because
|
|
1030
976
|
* `Supervisor.resolveSpawn()` must stay the only resolver.
|
|
1031
977
|
*/
|
|
1032
|
-
var nannySpecSchema = type({
|
|
978
|
+
var nannySpecSchema = lazy(() => type({
|
|
1033
979
|
serverId: "string",
|
|
1034
980
|
command: "string",
|
|
1035
981
|
args: "string[]",
|
|
@@ -1041,20 +987,20 @@ var nannySpecSchema = type({
|
|
|
1041
987
|
logs: logsSchema,
|
|
1042
988
|
/** How the nanny stops the child it owns. */
|
|
1043
989
|
stop: stopSchema
|
|
1044
|
-
}).onUndeclaredKey("reject");
|
|
990
|
+
}).onUndeclaredKey("reject"));
|
|
1045
991
|
/** How the child of a nanny ended, recorded for a panel that may not have been there. */
|
|
1046
|
-
var nannyExitSchema = type({
|
|
992
|
+
var nannyExitSchema = lazy(() => type({
|
|
1047
993
|
code: "number | null",
|
|
1048
994
|
signal: "string | null",
|
|
1049
995
|
at: "number",
|
|
1050
996
|
runtimeMs: "number"
|
|
1051
|
-
}).onUndeclaredKey("reject");
|
|
997
|
+
}).onUndeclaredKey("reject"));
|
|
1052
998
|
/**
|
|
1053
999
|
* A persistent entry's process state, written by its nanny (heartbeat included) and
|
|
1054
1000
|
* read by the panel to re-adopt a survivor and to learn how a child it never saw
|
|
1055
1001
|
* exit actually ended.
|
|
1056
1002
|
*/
|
|
1057
|
-
var nannyStateSchema = type({
|
|
1003
|
+
var nannyStateSchema = lazy(() => type({
|
|
1058
1004
|
"serverId": "string",
|
|
1059
1005
|
"nannyPid": "number",
|
|
1060
1006
|
"childPid": "number | null",
|
|
@@ -1062,7 +1008,7 @@ var nannyStateSchema = type({
|
|
|
1062
1008
|
"logFile": "string",
|
|
1063
1009
|
"heartbeatAt": "number",
|
|
1064
1010
|
"lastExit?": nannyExitSchema
|
|
1065
|
-
}).onUndeclaredKey("reject");
|
|
1011
|
+
}).onUndeclaredKey("reject"));
|
|
1066
1012
|
/**
|
|
1067
1013
|
* The part of an entry's supervision the panel must remember across its own restarts.
|
|
1068
1014
|
*
|
|
@@ -1071,7 +1017,7 @@ var nannyStateSchema = type({
|
|
|
1071
1017
|
* re-ran for the same reason. Both are decisions whose whole point is to outlast the
|
|
1072
1018
|
* process that made them.
|
|
1073
1019
|
*/
|
|
1074
|
-
var entryStateSchema = type({
|
|
1020
|
+
var entryStateSchema = lazy(() => type({
|
|
1075
1021
|
/** Attempts spent on the current crash sequence; reset once the process stays up. */
|
|
1076
1022
|
"restarts": "number.integer >= 0",
|
|
1077
1023
|
/**
|
|
@@ -1101,20 +1047,20 @@ var entryStateSchema = type({
|
|
|
1101
1047
|
*/
|
|
1102
1048
|
"lastPid?": "number | null",
|
|
1103
1049
|
"lastStartedAt?": "number | null"
|
|
1104
|
-
});
|
|
1050
|
+
}));
|
|
1105
1051
|
/** Edits to the panel-wide settings: listener, auth, TLS policy, host vitals, backups. */
|
|
1106
|
-
var settingsPatchSchema = type({
|
|
1052
|
+
var settingsPatchSchema = lazy(() => type({
|
|
1107
1053
|
control: controlPatchSchema.optional(),
|
|
1108
1054
|
host: hostPatchSchema.optional(),
|
|
1109
1055
|
backups: backupsPatchSchema.optional()
|
|
1110
|
-
}).onUndeclaredKey("reject");
|
|
1056
|
+
}).onUndeclaredKey("reject"));
|
|
1111
1057
|
/** Edits to one workspace's settings: server defaults, log retention, notifications. */
|
|
1112
|
-
var workspaceSettingsPatchSchema = type({
|
|
1058
|
+
var workspaceSettingsPatchSchema = lazy(() => type({
|
|
1113
1059
|
defaults: defaultsPatchSchema.optional(),
|
|
1114
1060
|
logs: logsPatchSchema.optional(),
|
|
1115
1061
|
notifications: notificationsPatchSchema.optional()
|
|
1116
|
-
}).onUndeclaredKey("reject");
|
|
1117
|
-
var authStatusSchema = type({
|
|
1062
|
+
}).onUndeclaredKey("reject"));
|
|
1063
|
+
var authStatusSchema = lazy(() => type({
|
|
1118
1064
|
enabled: "boolean",
|
|
1119
1065
|
passwordSet: "boolean",
|
|
1120
1066
|
passwordUpdatedAt: "number | null",
|
|
@@ -1136,8 +1082,8 @@ var authStatusSchema = type({
|
|
|
1136
1082
|
trustProxy: "boolean | \"loopback\"",
|
|
1137
1083
|
maxLoginAttempts: "number",
|
|
1138
1084
|
lockoutMs: "number"
|
|
1139
|
-
});
|
|
1140
|
-
var tlsStatusSchema = type({
|
|
1085
|
+
}));
|
|
1086
|
+
var tlsStatusSchema = lazy(() => type({
|
|
1141
1087
|
enabled: "boolean",
|
|
1142
1088
|
certPresent: "boolean",
|
|
1143
1089
|
subject: "string | null",
|
|
@@ -1148,22 +1094,22 @@ var tlsStatusSchema = type({
|
|
|
1148
1094
|
fingerprint: "string | null",
|
|
1149
1095
|
keyMatches: "boolean | null",
|
|
1150
1096
|
error: "string | null"
|
|
1151
|
-
});
|
|
1097
|
+
}));
|
|
1152
1098
|
/**
|
|
1153
1099
|
* The reverse-proxy engine this panel can drive. One engine ships today; the
|
|
1154
1100
|
* field exists so a config written now keeps working if a second one lands.
|
|
1155
1101
|
*/
|
|
1156
|
-
var proxyEngineSchema = type.enumerated("caddy");
|
|
1102
|
+
var proxyEngineSchema = lazy(() => type.enumerated("caddy"));
|
|
1157
1103
|
/** What a route forwards to: a supervised entry, the panel itself, or a literal upstream. */
|
|
1158
|
-
var proxyTargetSchema = type.enumerated("server", "panel", "external");
|
|
1104
|
+
var proxyTargetSchema = lazy(() => type.enumerated("server", "panel", "external"));
|
|
1159
1105
|
/** `auto` lets the engine decide: a public name gets ACME, a local one its own CA. */
|
|
1160
|
-
var proxyTlsModeSchema = type.enumerated("auto", "off", "manual");
|
|
1106
|
+
var proxyTlsModeSchema = lazy(() => type.enumerated("auto", "off", "manual"));
|
|
1161
1107
|
/**
|
|
1162
1108
|
* One public hostname, and where it goes. A route is panel-wide on purpose — the
|
|
1163
1109
|
* point is one domain per service across every workspace — so a target that
|
|
1164
1110
|
* names an entry names its workspace too.
|
|
1165
1111
|
*/
|
|
1166
|
-
var proxyRouteSchema = type({
|
|
1112
|
+
var proxyRouteSchema = lazy(() => type({
|
|
1167
1113
|
id: "/^[a-z0-9][a-z0-9_-]*$/",
|
|
1168
1114
|
/** The public hostname this route answers for. */
|
|
1169
1115
|
host: "/^[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)*$/",
|
|
@@ -1184,20 +1130,20 @@ var proxyRouteSchema = type({
|
|
|
1184
1130
|
* account that can write TXT records.
|
|
1185
1131
|
*/
|
|
1186
1132
|
dnsAccount: "string = \"\""
|
|
1187
|
-
}).onUndeclaredKey("reject");
|
|
1133
|
+
}).onUndeclaredKey("reject"));
|
|
1188
1134
|
/**
|
|
1189
1135
|
* One uploaded PEM pair. The pair itself lives on disk (0600) beside the panel's
|
|
1190
1136
|
* own; this is the entry that names it, so a route can be checked against it.
|
|
1191
1137
|
*/
|
|
1192
|
-
var proxyCertificateSchema = type({
|
|
1138
|
+
var proxyCertificateSchema = lazy(() => type({
|
|
1193
1139
|
id: "/^[a-z0-9][a-z0-9_-]*$/",
|
|
1194
1140
|
label: "string = \"\""
|
|
1195
|
-
}).onUndeclaredKey("reject");
|
|
1141
|
+
}).onUndeclaredKey("reject"));
|
|
1196
1142
|
/**
|
|
1197
1143
|
* What a route's certificate situation is, for the page to show. `fallback` is a
|
|
1198
1144
|
* public name the CA would not issue for, so the engine is serving its own CA.
|
|
1199
1145
|
*/
|
|
1200
|
-
var proxyCertificateStateSchema = type.enumerated("off", "local", "uploaded", "issued", "pending", "failed", "fallback");
|
|
1146
|
+
var proxyCertificateStateSchema = lazy(() => type.enumerated("off", "local", "uploaded", "issued", "pending", "failed", "fallback"));
|
|
1201
1147
|
/**
|
|
1202
1148
|
* DNS-01, answered by the panel instead of the engine.
|
|
1203
1149
|
*
|
|
@@ -1206,14 +1152,14 @@ var proxyCertificateStateSchema = type.enumerated("off", "local", "uploaded", "i
|
|
|
1206
1152
|
* account a route names. `resolvers` overrides the nameservers Caddy uses to see
|
|
1207
1153
|
* the record, which is what split-horizon DNS needs.
|
|
1208
1154
|
*/
|
|
1209
|
-
var proxyDns01Schema = type({
|
|
1155
|
+
var proxyDns01Schema = lazy(() => type({
|
|
1210
1156
|
/** Off means the engine uses HTTP-01/TLS-ALPN-01, exactly as before. */
|
|
1211
1157
|
enabled: "boolean = false",
|
|
1212
1158
|
/** Nameservers Caddy checks the TXT record against; empty uses its own defaults. */
|
|
1213
1159
|
resolvers: type("string[]").default(() => [])
|
|
1214
|
-
}).onUndeclaredKey("reject");
|
|
1160
|
+
}).onUndeclaredKey("reject"));
|
|
1215
1161
|
/** Reverse proxy: expose the stack through one engine, with automatic HTTPS. */
|
|
1216
|
-
var proxyConfigSchema = type({
|
|
1162
|
+
var proxyConfigSchema = lazy(() => type({
|
|
1217
1163
|
enabled: "boolean = false",
|
|
1218
1164
|
engine: proxyEngineSchema.default(() => "caddy"),
|
|
1219
1165
|
/** Cleartext side: ACME HTTP-01 challenges and the redirect to HTTPS. */
|
|
@@ -1227,11 +1173,11 @@ var proxyConfigSchema = type({
|
|
|
1227
1173
|
/** PEM pairs a route with `tls: "manual"` may serve; the engine picks by SNI. */
|
|
1228
1174
|
certificates: proxyCertificateSchema.array().default(() => []),
|
|
1229
1175
|
routes: proxyRouteSchema.array().default(() => [])
|
|
1230
|
-
}).onUndeclaredKey("reject");
|
|
1176
|
+
}).onUndeclaredKey("reject"));
|
|
1231
1177
|
/** Where the binary came from: the release we downloaded, or a path a person set. */
|
|
1232
|
-
var proxyEngineSourceSchema = type.enumerated("downloaded", "custom");
|
|
1178
|
+
var proxyEngineSourceSchema = lazy(() => type.enumerated("downloaded", "custom"));
|
|
1233
1179
|
/** What the panel knows about the installed engine. */
|
|
1234
|
-
var proxyEngineStatusSchema = type({
|
|
1180
|
+
var proxyEngineStatusSchema = lazy(() => type({
|
|
1235
1181
|
id: proxyEngineSchema,
|
|
1236
1182
|
installed: "boolean",
|
|
1237
1183
|
/** The version the binary reports; `null` until it has been probed. */
|
|
@@ -1240,9 +1186,9 @@ var proxyEngineStatusSchema = type({
|
|
|
1240
1186
|
path: "string | null",
|
|
1241
1187
|
bytes: "number | null",
|
|
1242
1188
|
error: "string | null"
|
|
1243
|
-
});
|
|
1189
|
+
}));
|
|
1244
1190
|
/** Engine capabilities, so the page knows which options to offer. */
|
|
1245
|
-
var proxyEngineInfoSchema = type({
|
|
1191
|
+
var proxyEngineInfoSchema = lazy(() => type({
|
|
1246
1192
|
id: proxyEngineSchema,
|
|
1247
1193
|
label: "string",
|
|
1248
1194
|
docsUrl: "string",
|
|
@@ -1251,10 +1197,10 @@ var proxyEngineInfoSchema = type({
|
|
|
1251
1197
|
internalCa: "boolean",
|
|
1252
1198
|
dns01: "boolean",
|
|
1253
1199
|
tcp: "boolean"
|
|
1254
|
-
});
|
|
1255
|
-
var proxyRouteStatusSchema = type.enumerated("ok", "disabled", "no-upstream", "error");
|
|
1200
|
+
}));
|
|
1201
|
+
var proxyRouteStatusSchema = lazy(() => type.enumerated("ok", "disabled", "no-upstream", "error"));
|
|
1256
1202
|
/** A route as the page reads it: the config, plus the upstream resolved live. */
|
|
1257
|
-
var proxyRouteViewSchema = type({
|
|
1203
|
+
var proxyRouteViewSchema = lazy(() => type({
|
|
1258
1204
|
"route": proxyRouteSchema,
|
|
1259
1205
|
"status": proxyRouteStatusSchema,
|
|
1260
1206
|
"upstream": "string | null",
|
|
@@ -1269,10 +1215,10 @@ var proxyRouteViewSchema = type({
|
|
|
1269
1215
|
*/
|
|
1270
1216
|
"retryInMinutes?": "number"
|
|
1271
1217
|
})
|
|
1272
|
-
}).onDeepUndeclaredKey("ignore");
|
|
1273
|
-
var proxyRunStateSchema = type.enumerated("off", "stopped", "starting", "running", "error", "unsupported");
|
|
1218
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
1219
|
+
var proxyRunStateSchema = lazy(() => type.enumerated("off", "stopped", "starting", "running", "error", "unsupported"));
|
|
1274
1220
|
/** Live engine state. */
|
|
1275
|
-
var proxyStatusSchema = type({
|
|
1221
|
+
var proxyStatusSchema = lazy(() => type({
|
|
1276
1222
|
state: proxyRunStateSchema,
|
|
1277
1223
|
pid: "number | null",
|
|
1278
1224
|
/** The addresses the engine serves on, for the page to show. */
|
|
@@ -1281,9 +1227,9 @@ var proxyStatusSchema = type({
|
|
|
1281
1227
|
certExpiryDays: "number | null",
|
|
1282
1228
|
since: "number | null",
|
|
1283
1229
|
lastError: "string | null"
|
|
1284
|
-
});
|
|
1230
|
+
}));
|
|
1285
1231
|
/** One uploaded pair, described: what it is for, and whether it is usable. */
|
|
1286
|
-
var proxyCertificateViewSchema = type({
|
|
1232
|
+
var proxyCertificateViewSchema = lazy(() => type({
|
|
1287
1233
|
id: "string",
|
|
1288
1234
|
label: "string",
|
|
1289
1235
|
/** Both halves are on disk. */
|
|
@@ -1297,12 +1243,12 @@ var proxyCertificateViewSchema = type({
|
|
|
1297
1243
|
/** Hostnames the pair covers, read from its SANs. */
|
|
1298
1244
|
hosts: type("string[]"),
|
|
1299
1245
|
error: "string | null"
|
|
1300
|
-
});
|
|
1246
|
+
}));
|
|
1301
1247
|
/**
|
|
1302
1248
|
* A DNS account the route table may name, flattened across workspaces so the proxy
|
|
1303
1249
|
* page can offer one list. The account itself stays in its workspace.
|
|
1304
1250
|
*/
|
|
1305
|
-
var proxyDnsAccountViewSchema = type({
|
|
1251
|
+
var proxyDnsAccountViewSchema = lazy(() => type({
|
|
1306
1252
|
workspace: "string",
|
|
1307
1253
|
account: "string",
|
|
1308
1254
|
provider: "string",
|
|
@@ -1311,9 +1257,9 @@ var proxyDnsAccountViewSchema = type({
|
|
|
1311
1257
|
writesTxt: "boolean",
|
|
1312
1258
|
/** Credentials are stored; an account without them cannot answer yet. */
|
|
1313
1259
|
hasCredentials: "boolean"
|
|
1314
|
-
});
|
|
1260
|
+
}));
|
|
1315
1261
|
/** `GET /api/proxy`: the policy, the engine, the live state and the resolved routes. */
|
|
1316
|
-
var proxyViewSchema = type({
|
|
1262
|
+
var proxyViewSchema = lazy(() => type({
|
|
1317
1263
|
"config": proxyConfigSchema,
|
|
1318
1264
|
"engine": proxyEngineStatusSchema,
|
|
1319
1265
|
"engines": proxyEngineInfoSchema.array(),
|
|
@@ -1323,12 +1269,12 @@ var proxyViewSchema = type({
|
|
|
1323
1269
|
"certificates": proxyCertificateViewSchema.array(),
|
|
1324
1270
|
/** Every DNS account a route may name. Optional: an older panel omits it. */
|
|
1325
1271
|
"dnsAccounts?": proxyDnsAccountViewSchema.array()
|
|
1326
|
-
}).onDeepUndeclaredKey("ignore");
|
|
1272
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
1327
1273
|
/**
|
|
1328
1274
|
* A route as a patch sends it: every field optional, so a client may change one
|
|
1329
1275
|
* member of a route — or add a route with only the two fields that matter.
|
|
1330
1276
|
*/
|
|
1331
|
-
var proxyRoutePatchSchema = type({
|
|
1277
|
+
var proxyRoutePatchSchema = lazy(() => type({
|
|
1332
1278
|
id: "string",
|
|
1333
1279
|
host: "string",
|
|
1334
1280
|
enabled: "boolean?",
|
|
@@ -1339,12 +1285,12 @@ var proxyRoutePatchSchema = type({
|
|
|
1339
1285
|
path: "string?",
|
|
1340
1286
|
tls: proxyTlsModeSchema.optional(),
|
|
1341
1287
|
dnsAccount: "string?"
|
|
1342
|
-
}).onUndeclaredKey("reject");
|
|
1288
|
+
}).onUndeclaredKey("reject"));
|
|
1343
1289
|
/**
|
|
1344
1290
|
* The proxy block as a patch: no defaults, and `routes` is a list a patch
|
|
1345
1291
|
* **replaces** — a key-by-key merge cannot express removing a route.
|
|
1346
1292
|
*/
|
|
1347
|
-
var proxyPatchSchema = type({
|
|
1293
|
+
var proxyPatchSchema = lazy(() => type({
|
|
1348
1294
|
enabled: "boolean?",
|
|
1349
1295
|
engine: proxyEngineSchema.optional(),
|
|
1350
1296
|
httpPort: "1 <= number.integer <= 65535?",
|
|
@@ -1361,15 +1307,27 @@ var proxyPatchSchema = type({
|
|
|
1361
1307
|
}).onUndeclaredKey("reject").optional(),
|
|
1362
1308
|
certificates: proxyCertificateSchema.array().optional(),
|
|
1363
1309
|
routes: proxyRoutePatchSchema.array().optional()
|
|
1364
|
-
}).onUndeclaredKey("reject");
|
|
1310
|
+
}).onUndeclaredKey("reject"));
|
|
1365
1311
|
/** `PUT /api/proxy/certificates/:id`: the pair itself, plus what to call it. */
|
|
1366
|
-
var proxyCertificateUploadSchema = type({
|
|
1312
|
+
var proxyCertificateUploadSchema = lazy(() => type({
|
|
1367
1313
|
label: "string = \"\"",
|
|
1368
1314
|
certificate: "string >= 1",
|
|
1369
1315
|
privateKey: "string >= 1"
|
|
1370
|
-
}).onUndeclaredKey("reject");
|
|
1316
|
+
}).onUndeclaredKey("reject"));
|
|
1371
1317
|
/** `POST /api/proxy/engine`: which release to install; empty means the current one. */
|
|
1372
|
-
var proxyEngineInstallSchema = type({ version: "string = \"\"" }).onUndeclaredKey("reject");
|
|
1318
|
+
var proxyEngineInstallSchema = lazy(() => type({ version: "string = \"\"" }).onUndeclaredKey("reject"));
|
|
1319
|
+
/** The policy columns a destination row carries — the values a send will actually use. */
|
|
1320
|
+
var notificationPolicyStatusShape = {
|
|
1321
|
+
onCrash: "boolean",
|
|
1322
|
+
onUnhealthy: "boolean",
|
|
1323
|
+
onForcedRestart: "boolean",
|
|
1324
|
+
onRecovered: "boolean",
|
|
1325
|
+
/** Host vitals breaches (disk, memory, swap, load, temperature). */
|
|
1326
|
+
onHost: "boolean",
|
|
1327
|
+
/** Dynamic DNS, when this panel knows about it (optional for an older panel). */
|
|
1328
|
+
onDdns: "boolean?",
|
|
1329
|
+
cooldownMs: "number"
|
|
1330
|
+
};
|
|
1373
1331
|
/**
|
|
1374
1332
|
* One destination as the page reads it: the fields it owns, the policy it will use, and the outcome
|
|
1375
1333
|
* of the last send to it.
|
|
@@ -1377,20 +1335,12 @@ var proxyEngineInstallSchema = type({ version: "string = \"\"" }).onUndeclaredKe
|
|
|
1377
1335
|
* The policy here is the **effective** one — inherited from the general block when
|
|
1378
1336
|
* `useOwnSettings` is false — so the page shows what will happen, not what is stored.
|
|
1379
1337
|
*/
|
|
1380
|
-
var destinationStatusSchema = type({
|
|
1338
|
+
var destinationStatusSchema = lazy(() => type({
|
|
1381
1339
|
"id": "string",
|
|
1382
1340
|
"kind": "\"telegram\" | \"webhook\"",
|
|
1383
1341
|
"enabled": "boolean",
|
|
1384
1342
|
"useOwnSettings": "boolean",
|
|
1385
|
-
|
|
1386
|
-
onUnhealthy: "boolean",
|
|
1387
|
-
onForcedRestart: "boolean",
|
|
1388
|
-
onRecovered: "boolean",
|
|
1389
|
-
/** Host vitals breaches (disk, memory, swap, load, temperature). */
|
|
1390
|
-
onHost: "boolean",
|
|
1391
|
-
/** Dynamic DNS, when this panel knows about it (optional for an older panel). */
|
|
1392
|
-
onDdns: "boolean?",
|
|
1393
|
-
cooldownMs: "number",
|
|
1343
|
+
...notificationPolicyStatusShape,
|
|
1394
1344
|
/** Telegram only, null on a webhook. */
|
|
1395
1345
|
"chatId": "string | null",
|
|
1396
1346
|
/** Telegram only: whether a bot token is stored for this destination. */
|
|
@@ -1403,24 +1353,24 @@ var destinationStatusSchema = type({
|
|
|
1403
1353
|
/** Last delivery outcome, for the page. Optional: a newer panel may not have sent one yet. */
|
|
1404
1354
|
"lastResult?": "string | null",
|
|
1405
1355
|
"lastResultAt?": "number | null"
|
|
1406
|
-
});
|
|
1356
|
+
}));
|
|
1407
1357
|
/**
|
|
1408
1358
|
* The chats a bot can see, as `POST /notifications/destinations/:id/detect-chats` answers them.
|
|
1409
1359
|
*
|
|
1410
1360
|
* This was declared inline in the route while `TelegramChat` in `providers/telegram.ts` described the
|
|
1411
1361
|
* same two fields — one shape written twice, which is the drift this file exists to prevent.
|
|
1412
1362
|
*/
|
|
1413
|
-
var telegramChatsSchema = type({ chats: type({
|
|
1363
|
+
var telegramChatsSchema = lazy(() => type({ chats: type({
|
|
1414
1364
|
id: "string | number",
|
|
1415
1365
|
title: "string"
|
|
1416
|
-
}).array() });
|
|
1417
|
-
var notificationViewSchema = type({
|
|
1366
|
+
}).array() }));
|
|
1367
|
+
var notificationViewSchema = lazy(() => type({
|
|
1418
1368
|
/** The general block: what a destination inherits unless it overrides it. Optional for an older panel. */
|
|
1419
1369
|
"defaults?": notificationDefaultsViewSchema,
|
|
1420
1370
|
/** Every destination, in config order. Optional for an older panel. */
|
|
1421
1371
|
"destinations?": destinationStatusSchema.array()
|
|
1422
|
-
});
|
|
1423
|
-
var sessionViewSchema = type({
|
|
1372
|
+
}));
|
|
1373
|
+
var sessionViewSchema = lazy(() => type({
|
|
1424
1374
|
authenticated: "boolean",
|
|
1425
1375
|
authRequired: "boolean",
|
|
1426
1376
|
passwordSet: "boolean",
|
|
@@ -1430,28 +1380,28 @@ var sessionViewSchema = type({
|
|
|
1430
1380
|
/** The boot-time password, exposed only while it is still in use. */
|
|
1431
1381
|
defaultPassword: "string | null",
|
|
1432
1382
|
sessionTtlMs: "number"
|
|
1433
|
-
});
|
|
1383
|
+
}));
|
|
1434
1384
|
/** `POST /api/auth/token`: the new token, returned once, and the readable head the panel keeps. */
|
|
1435
|
-
var apiTokenCreatedSchema = type({
|
|
1385
|
+
var apiTokenCreatedSchema = lazy(() => type({
|
|
1436
1386
|
token: "string",
|
|
1437
1387
|
hint: "string"
|
|
1438
|
-
});
|
|
1439
|
-
var loginSchema = type({ password: "string <= 512" }).onUndeclaredKey("reject");
|
|
1388
|
+
}));
|
|
1389
|
+
var loginSchema = lazy(() => type({ password: "string <= 512" }).onUndeclaredKey("reject"));
|
|
1440
1390
|
/** Any non-empty password is allowed; only a sanity cap on the length. */
|
|
1441
|
-
var passwordValueSchema = type("1 <= string <= 512");
|
|
1442
|
-
var passwordSchema = type({
|
|
1391
|
+
var passwordValueSchema = lazy(() => type("1 <= string <= 512"));
|
|
1392
|
+
var passwordSchema = lazy(() => type({
|
|
1443
1393
|
currentPassword: "string?",
|
|
1444
1394
|
newPassword: passwordValueSchema
|
|
1445
|
-
}).onUndeclaredKey("reject");
|
|
1446
|
-
var serverStatusSchema = type("\"stopped\" | \"starting\" | \"running\" | \"stopping\" | \"backoff\" | \"crashed\" | \"conflict\"");
|
|
1447
|
-
var healthStateSchema = type("\"disabled\" | \"unknown\" | \"healthy\" | \"unhealthy\"");
|
|
1448
|
-
var portStateSchema = type("\"unknown\" | \"free\" | \"in-use\"");
|
|
1449
|
-
var logStreamSchema = type("\"stdout\" | \"stderr\" | \"system\"");
|
|
1450
|
-
var logLineSchema = type({
|
|
1395
|
+
}).onUndeclaredKey("reject"));
|
|
1396
|
+
var serverStatusSchema = lazy(() => type("\"stopped\" | \"starting\" | \"running\" | \"stopping\" | \"backoff\" | \"crashed\" | \"conflict\""));
|
|
1397
|
+
var healthStateSchema = lazy(() => type("\"disabled\" | \"unknown\" | \"healthy\" | \"unhealthy\""));
|
|
1398
|
+
var portStateSchema = lazy(() => type("\"unknown\" | \"free\" | \"in-use\""));
|
|
1399
|
+
var logStreamSchema = lazy(() => type("\"stdout\" | \"stderr\" | \"system\""));
|
|
1400
|
+
var logLineSchema = lazy(() => type({
|
|
1451
1401
|
ts: "number",
|
|
1452
1402
|
stream: logStreamSchema,
|
|
1453
1403
|
text: "string"
|
|
1454
|
-
});
|
|
1404
|
+
}));
|
|
1455
1405
|
/**
|
|
1456
1406
|
* Who asked for something, so a restart can be attributed.
|
|
1457
1407
|
*
|
|
@@ -1459,8 +1409,8 @@ var logLineSchema = type({
|
|
|
1459
1409
|
* `user` is a signed-in browser; `agent` is a request carrying an API token; `boot` is
|
|
1460
1410
|
* the autostart pass. Optional: events written before this field existed carry none.
|
|
1461
1411
|
*/
|
|
1462
|
-
var historyActorSchema = type.enumerated("policy", "user", "agent", "boot");
|
|
1463
|
-
var historyEventSchema = type({
|
|
1412
|
+
var historyActorSchema = lazy(() => type.enumerated("policy", "user", "agent", "boot"));
|
|
1413
|
+
var historyEventSchema = lazy(() => type({
|
|
1464
1414
|
"serverId": "string",
|
|
1465
1415
|
"ts": "number",
|
|
1466
1416
|
"type": "\"start\" | \"exit\" | \"crash\" | \"forced-restart\" | \"unhealthy\" | \"recovered\"",
|
|
@@ -1469,9 +1419,9 @@ var historyEventSchema = type({
|
|
|
1469
1419
|
"runtimeMs": "number?",
|
|
1470
1420
|
/** Who caused it; absent on events from before this field existed. */
|
|
1471
1421
|
"actor?": historyActorSchema
|
|
1472
|
-
});
|
|
1422
|
+
}));
|
|
1473
1423
|
/** Rolling window stats derived from the persisted event log. */
|
|
1474
|
-
var serverHistorySchema = type({
|
|
1424
|
+
var serverHistorySchema = lazy(() => type({
|
|
1475
1425
|
windowMs: "number",
|
|
1476
1426
|
/** Share of the window the process was up (null when nothing is known yet). */
|
|
1477
1427
|
uptimeRatio: "number | null",
|
|
@@ -1482,21 +1432,21 @@ var serverHistorySchema = type({
|
|
|
1482
1432
|
lastExitAt: "number | null",
|
|
1483
1433
|
lastRuntimeMs: "number | null",
|
|
1484
1434
|
events: historyEventSchema.array()
|
|
1485
|
-
});
|
|
1486
|
-
var processResourcesSchema = type({
|
|
1435
|
+
}));
|
|
1436
|
+
var processResourcesSchema = lazy(() => type({
|
|
1487
1437
|
cpuPercent: "number | null",
|
|
1488
1438
|
/** RSS of the process and its descendants. */
|
|
1489
1439
|
rssBytes: "number | null",
|
|
1490
1440
|
processes: "number",
|
|
1491
1441
|
sampledAt: "number"
|
|
1492
|
-
});
|
|
1493
|
-
var hostDiskSchema = type({
|
|
1442
|
+
}));
|
|
1443
|
+
var hostDiskSchema = lazy(() => type({
|
|
1494
1444
|
path: "string",
|
|
1495
1445
|
totalBytes: "number",
|
|
1496
1446
|
freeBytes: "number",
|
|
1497
1447
|
usedPercent: "number"
|
|
1498
|
-
});
|
|
1499
|
-
var hostViewSchema = type({
|
|
1448
|
+
}));
|
|
1449
|
+
var hostViewSchema = lazy(() => type({
|
|
1500
1450
|
"enabled": "boolean",
|
|
1501
1451
|
"cpus": "number",
|
|
1502
1452
|
"loadAvg": type("number[]"),
|
|
@@ -1547,7 +1497,7 @@ var hostViewSchema = type({
|
|
|
1547
1497
|
* applies to every configured path, which is why `hostReadings` copies it onto each disk's `band`.
|
|
1548
1498
|
*/
|
|
1549
1499
|
"diskUsedPercentAlert?": "number"
|
|
1550
|
-
});
|
|
1500
|
+
}));
|
|
1551
1501
|
/**
|
|
1552
1502
|
* The WSL2 temperature bridge, as the settings page reports it.
|
|
1553
1503
|
*
|
|
@@ -1555,7 +1505,7 @@ var hostViewSchema = type({
|
|
|
1555
1505
|
* helper and point `host.tempCommand` at it. `supported` is false on any other platform, which is
|
|
1556
1506
|
* how the UI hides the whole block rather than offering a button that cannot work.
|
|
1557
1507
|
*/
|
|
1558
|
-
var wslTemperatureSchema = type({
|
|
1508
|
+
var wslTemperatureSchema = lazy(() => type({
|
|
1559
1509
|
/** This process runs under WSL. */
|
|
1560
1510
|
"wsl": "boolean",
|
|
1561
1511
|
/** The setup can work here — the same as `wsl` today, separate so a future bridge can differ. */
|
|
@@ -1581,20 +1531,20 @@ var wslTemperatureSchema = type({
|
|
|
1581
1531
|
* first press answers `needsDownload` and the page asks. Absent on an older panel.
|
|
1582
1532
|
*/
|
|
1583
1533
|
"needsDownload?": "boolean"
|
|
1584
|
-
});
|
|
1585
|
-
var backupFileSchema = type({
|
|
1534
|
+
}));
|
|
1535
|
+
var backupFileSchema = lazy(() => type({
|
|
1586
1536
|
name: "string",
|
|
1587
1537
|
sizeBytes: "number",
|
|
1588
1538
|
createdAt: "number",
|
|
1589
1539
|
/** The archive carries a password-protected payload. */
|
|
1590
1540
|
encrypted: "boolean"
|
|
1591
|
-
});
|
|
1541
|
+
}));
|
|
1592
1542
|
/**
|
|
1593
1543
|
* One selectable entry in a backup: a global item (`global:settings`,
|
|
1594
1544
|
* `global:secrets`, `global:tls`) or a workspace, whose `items` are the
|
|
1595
1545
|
* sub-choices a per-workspace dialog offers.
|
|
1596
1546
|
*/
|
|
1597
|
-
var backupEntrySchema = type({
|
|
1547
|
+
var backupEntrySchema = lazy(() => type({
|
|
1598
1548
|
/** `global:settings` | `global:secrets` | `global:tls` | `workspace:<id>`. */
|
|
1599
1549
|
"id": "string",
|
|
1600
1550
|
/**
|
|
@@ -1630,7 +1580,7 @@ var backupEntrySchema = type({
|
|
|
1630
1580
|
"noteParams?": "Record<string, string>",
|
|
1631
1581
|
"ignoreGenerated?": "boolean"
|
|
1632
1582
|
}).array()
|
|
1633
|
-
});
|
|
1583
|
+
}));
|
|
1634
1584
|
/**
|
|
1635
1585
|
* The schedule as a *response* carries it: undeclared keys are accepted, at both levels.
|
|
1636
1586
|
*
|
|
@@ -1638,8 +1588,8 @@ var backupEntrySchema = type({
|
|
|
1638
1588
|
* `scope` is one level deep — so the outer `.onUndeclaredKey` on the config schema is not enough:
|
|
1639
1589
|
* a frame carrying `schedule.scope` rejected outright while this was the config shape.
|
|
1640
1590
|
*/
|
|
1641
|
-
var backupScheduleViewSchema = backupScheduleSchema.onDeepUndeclaredKey("ignore");
|
|
1642
|
-
var backupsViewSchema = type({
|
|
1591
|
+
var backupScheduleViewSchema = lazy(() => backupScheduleSchema.onDeepUndeclaredKey("ignore"));
|
|
1592
|
+
var backupsViewSchema = lazy(() => type({
|
|
1643
1593
|
"enabled": "boolean",
|
|
1644
1594
|
"dir": "string",
|
|
1645
1595
|
"keep": "number",
|
|
@@ -1677,7 +1627,7 @@ var backupsViewSchema = type({
|
|
|
1677
1627
|
*/
|
|
1678
1628
|
"entries?": backupEntrySchema.array(),
|
|
1679
1629
|
"files?": backupFileSchema.array()
|
|
1680
|
-
});
|
|
1630
|
+
}));
|
|
1681
1631
|
/**
|
|
1682
1632
|
* The backup *selection model*: what a capture could include, and what is already on disk.
|
|
1683
1633
|
*
|
|
@@ -1685,15 +1635,15 @@ var backupsViewSchema = type({
|
|
|
1685
1635
|
* secrets file and stats every archive — work proportional to workspaces × archives, on a path that
|
|
1686
1636
|
* runs per frame. A dialog needs it when it opens and not otherwise.
|
|
1687
1637
|
*/
|
|
1688
|
-
var backupSelectionSchema = type({
|
|
1638
|
+
var backupSelectionSchema = lazy(() => type({
|
|
1689
1639
|
/** The archive directory, so a dialog can print the path without a second read. */
|
|
1690
1640
|
dir: "string",
|
|
1691
1641
|
/** Every selectable entry, global first, then each workspace. */
|
|
1692
1642
|
entries: backupEntrySchema.array(),
|
|
1693
1643
|
files: backupFileSchema.array()
|
|
1694
|
-
});
|
|
1644
|
+
}));
|
|
1695
1645
|
/** One restorable slice of an archive: a global item, a workspace item, or a data path. */
|
|
1696
|
-
var restoreItemSchema = type({
|
|
1646
|
+
var restoreItemSchema = lazy(() => type({
|
|
1697
1647
|
/** A backup entry or leaf id (`workspace:<id>:servers`, `data:<path>`, ...). */
|
|
1698
1648
|
"id": "string",
|
|
1699
1649
|
"label": "string",
|
|
@@ -1708,7 +1658,7 @@ var restoreItemSchema = type({
|
|
|
1708
1658
|
"note": "string | null",
|
|
1709
1659
|
"noteKey?": "string",
|
|
1710
1660
|
"noteParams?": "Record<string, string>"
|
|
1711
|
-
});
|
|
1661
|
+
}));
|
|
1712
1662
|
/**
|
|
1713
1663
|
* Why one thing was skipped, as a reason the UI can word itself.
|
|
1714
1664
|
*
|
|
@@ -1716,15 +1666,15 @@ var restoreItemSchema = type({
|
|
|
1716
1666
|
* `noc-console`; this is the same list in parts, so a translated UI says it in the
|
|
1717
1667
|
* reader's language instead of showing the panel's English inside its own sentence.
|
|
1718
1668
|
*/
|
|
1719
|
-
var restoreSkipSchema = type({
|
|
1669
|
+
var restoreSkipSchema = lazy(() => type({
|
|
1720
1670
|
"label": "string",
|
|
1721
1671
|
"labelKey?": "string",
|
|
1722
1672
|
"labelParams?": "Record<string, string>",
|
|
1723
1673
|
/** A catalog key for the parenthesis, e.g. `not selected`; absent when there is none. */
|
|
1724
1674
|
"reasonKey?": "string",
|
|
1725
1675
|
"reasonParams?": "Record<string, string>"
|
|
1726
|
-
});
|
|
1727
|
-
var restorePlanSchema = type({
|
|
1676
|
+
}));
|
|
1677
|
+
var restorePlanSchema = lazy(() => type({
|
|
1728
1678
|
"dryRun": "boolean",
|
|
1729
1679
|
"encrypted": "boolean",
|
|
1730
1680
|
/** The archive needs a password (none or a wrong one was supplied). */
|
|
@@ -1785,8 +1735,8 @@ var restorePlanSchema = type({
|
|
|
1785
1735
|
*/
|
|
1786
1736
|
"createdWorkspaces?": type("string[]"),
|
|
1787
1737
|
"error": "string?"
|
|
1788
|
-
});
|
|
1789
|
-
var backupCreateSchema = type({
|
|
1738
|
+
}));
|
|
1739
|
+
var backupCreateSchema = lazy(() => type({
|
|
1790
1740
|
/** Optional: encrypts the archive. Never stored. */
|
|
1791
1741
|
password: passwordValueSchema.optional(),
|
|
1792
1742
|
/** Leaf ids to capture (`global:settings`, `workspace:<id>:servers`, `data:<path>`, ...); omitted means everything. */
|
|
@@ -1799,8 +1749,8 @@ var backupCreateSchema = type({
|
|
|
1799
1749
|
* a person and as "everything" to a reader, so it must not be sent at all.
|
|
1800
1750
|
*/
|
|
1801
1751
|
exclude: type("string[] >= 1").optional()
|
|
1802
|
-
}).onUndeclaredKey("reject");
|
|
1803
|
-
var restoreRequestSchema = type({
|
|
1752
|
+
}).onUndeclaredKey("reject"));
|
|
1753
|
+
var restoreRequestSchema = lazy(() => type({
|
|
1804
1754
|
name: "string?",
|
|
1805
1755
|
password: passwordValueSchema.optional(),
|
|
1806
1756
|
/** Item ids to restore; omitted means every restorable item. */
|
|
@@ -1817,9 +1767,9 @@ var restoreRequestSchema = type({
|
|
|
1817
1767
|
* as "everything" to the reader, so it must not be sent at all.
|
|
1818
1768
|
*/
|
|
1819
1769
|
exclude: type("string[] >= 1").optional()
|
|
1820
|
-
}).onUndeclaredKey("reject");
|
|
1770
|
+
}).onUndeclaredKey("reject"));
|
|
1821
1771
|
/** Runtime view of a server: its effective config plus everything observed. */
|
|
1822
|
-
var serverViewSchema = type({
|
|
1772
|
+
var serverViewSchema = lazy(() => type({
|
|
1823
1773
|
"id": "string",
|
|
1824
1774
|
/** The workspace that owns it; optional so an older panel's frame still parses. */
|
|
1825
1775
|
"workspaceId?": "string",
|
|
@@ -1853,13 +1803,13 @@ var serverViewSchema = type({
|
|
|
1853
1803
|
/** Last health probe latency (TCP connect or HTTP request). */
|
|
1854
1804
|
"responseMs": "number | null",
|
|
1855
1805
|
"resources": processResourcesSchema.or(type("null"))
|
|
1856
|
-
}).onDeepUndeclaredKey("ignore");
|
|
1806
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
1857
1807
|
/**
|
|
1858
1808
|
* What `/healthz` answers, on both statuses — 200 when serving, 503 when a server has crashed,
|
|
1859
1809
|
* which shares this response's `content` in the spec. The detail fields are optional because they are
|
|
1860
1810
|
* only included for an authenticated caller.
|
|
1861
1811
|
*/
|
|
1862
|
-
var healthResponseSchema = type({
|
|
1812
|
+
var healthResponseSchema = lazy(() => type({
|
|
1863
1813
|
"status": "\"ok\" | \"degraded\"",
|
|
1864
1814
|
"uptimeMs": "number",
|
|
1865
1815
|
"servers?": type({
|
|
@@ -1868,9 +1818,11 @@ var healthResponseSchema = type({
|
|
|
1868
1818
|
crashed: "number",
|
|
1869
1819
|
unhealthy: "number"
|
|
1870
1820
|
}),
|
|
1871
|
-
"hostAlerts?": "string[]"
|
|
1872
|
-
|
|
1873
|
-
|
|
1821
|
+
"hostAlerts?": "string[]",
|
|
1822
|
+
/** Which state root this panel serves, as a fingerprint — only to a loopback caller (the CLI). */
|
|
1823
|
+
"home?": "string"
|
|
1824
|
+
}));
|
|
1825
|
+
var controlViewSchema = lazy(() => type({
|
|
1874
1826
|
/** The configured panel name, for the shell to render. */
|
|
1875
1827
|
"label": "string",
|
|
1876
1828
|
"port": "number",
|
|
@@ -1886,7 +1838,7 @@ var controlViewSchema = type({
|
|
|
1886
1838
|
"protocol": "string",
|
|
1887
1839
|
"auth": authStatusSchema,
|
|
1888
1840
|
"tls": tlsStatusSchema
|
|
1889
|
-
});
|
|
1841
|
+
}));
|
|
1890
1842
|
/** Everything one workspace owns, plus the live state of its servers. */
|
|
1891
1843
|
/**
|
|
1892
1844
|
* A user-supplied UI, as the settings page shows it.
|
|
@@ -1897,7 +1849,7 @@ var controlViewSchema = type({
|
|
|
1897
1849
|
* meant a hand-written file parsed to nothing at all, taking `repo`/`tag` with it and
|
|
1898
1850
|
* silently disabling `ui-update` for exactly the UI that declared itself.
|
|
1899
1851
|
*/
|
|
1900
|
-
var uiMetaSchema = type({
|
|
1852
|
+
var uiMetaSchema = lazy(() => type({
|
|
1901
1853
|
"name?": "string",
|
|
1902
1854
|
"version?": "string | null",
|
|
1903
1855
|
/** Set by the panel, not by the author. */
|
|
@@ -1912,23 +1864,23 @@ var uiMetaSchema = type({
|
|
|
1912
1864
|
"asset?": "string",
|
|
1913
1865
|
/** When the UI was built, in unix epoch seconds. Stamped by the build, never committed. */
|
|
1914
1866
|
"unix?": "number.integer >= 0"
|
|
1915
|
-
});
|
|
1916
|
-
var uiStatusSchema = type({
|
|
1867
|
+
}));
|
|
1868
|
+
var uiStatusSchema = lazy(() => type({
|
|
1917
1869
|
/** A user-supplied UI is being served instead of the stock one. */
|
|
1918
1870
|
custom: "boolean",
|
|
1919
1871
|
/** Where that UI lives, whether or not it exists yet. */
|
|
1920
1872
|
dir: "string",
|
|
1921
1873
|
meta: uiMetaSchema.or(type("null"))
|
|
1922
|
-
});
|
|
1874
|
+
}));
|
|
1923
1875
|
/** One process a panel spawned that no configured entry claims any more. */
|
|
1924
|
-
var serverOrphanSchema = type({
|
|
1876
|
+
var serverOrphanSchema = lazy(() => type({
|
|
1925
1877
|
/** The id it was started as, which is also the key of the state file it was found in. */
|
|
1926
1878
|
serverId: "string",
|
|
1927
1879
|
pid: "number",
|
|
1928
1880
|
/** When the panel spawned it; null when the record predates the stamp. */
|
|
1929
1881
|
startedAt: "number | null"
|
|
1930
|
-
});
|
|
1931
|
-
var workspaceViewSchema = type({
|
|
1882
|
+
}));
|
|
1883
|
+
var workspaceViewSchema = lazy(() => type({
|
|
1932
1884
|
"id": "string",
|
|
1933
1885
|
"label": "string",
|
|
1934
1886
|
/** The workspace's servers config; the settings file sits beside it. */
|
|
@@ -1959,12 +1911,12 @@ var workspaceViewSchema = type({
|
|
|
1959
1911
|
*/
|
|
1960
1912
|
"orphans?": serverOrphanSchema.array(),
|
|
1961
1913
|
"servers": serverViewSchema.array()
|
|
1962
|
-
}).onDeepUndeclaredKey("ignore");
|
|
1914
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
1963
1915
|
/**
|
|
1964
1916
|
* The whole panel in one frame: global state plus every workspace. Workspace
|
|
1965
1917
|
* pages read their own subtree; the global pages read across all of them.
|
|
1966
1918
|
*/
|
|
1967
|
-
var appStateSchema = type({
|
|
1919
|
+
var appStateSchema = lazy(() => type({
|
|
1968
1920
|
"control": controlViewSchema,
|
|
1969
1921
|
"host": hostViewSchema,
|
|
1970
1922
|
"backups": backupsViewSchema,
|
|
@@ -1977,30 +1929,39 @@ var appStateSchema = type({
|
|
|
1977
1929
|
/** `HHOSTED_HOME`: every file home-hosted owns lives under here. */
|
|
1978
1930
|
"dataRoot": "string",
|
|
1979
1931
|
/** The release this panel is running. Optional: an older panel does not send one. */
|
|
1980
|
-
"version?": "string"
|
|
1981
|
-
|
|
1932
|
+
"version?": "string",
|
|
1933
|
+
/**
|
|
1934
|
+
* The panel-wide `settings.json` could not be applied (a parse or schema error, or an edit refused
|
|
1935
|
+
* for exposing the panel); the running settings are kept. `null` when it is fine; absent on an
|
|
1936
|
+
* older panel.
|
|
1937
|
+
*/
|
|
1938
|
+
"settingsError?": type({
|
|
1939
|
+
message: "string",
|
|
1940
|
+
path: "string"
|
|
1941
|
+
}).or("null")
|
|
1942
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
1982
1943
|
/** One SSE frame, discriminated by `type`: a client narrowing on it gets the payload that frame carries. */
|
|
1983
|
-
var stateFrameSchema = type({
|
|
1944
|
+
var stateFrameSchema = lazy(() => type({
|
|
1984
1945
|
type: "\"hello\" | \"state\"",
|
|
1985
1946
|
ts: "number",
|
|
1986
1947
|
state: appStateSchema
|
|
1987
|
-
}).onDeepUndeclaredKey("ignore");
|
|
1988
|
-
var serverFrameSchema = type({
|
|
1948
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
1949
|
+
var serverFrameSchema = lazy(() => type({
|
|
1989
1950
|
"type": "\"server\"",
|
|
1990
1951
|
"ts": "number",
|
|
1991
1952
|
"workspaceId?": "string",
|
|
1992
1953
|
"serverId": "string",
|
|
1993
1954
|
"server": serverViewSchema
|
|
1994
|
-
}).onDeepUndeclaredKey("ignore");
|
|
1995
|
-
var logFrameSchema = type({
|
|
1955
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
1956
|
+
var logFrameSchema = lazy(() => type({
|
|
1996
1957
|
"type": "\"log\"",
|
|
1997
1958
|
"ts": "number",
|
|
1998
1959
|
"workspaceId?": "string",
|
|
1999
1960
|
"serverId": "string",
|
|
2000
1961
|
"lines": logLineSchema.array()
|
|
2001
|
-
}).onDeepUndeclaredKey("ignore");
|
|
2002
|
-
stateFrameSchema.or(serverFrameSchema).or(logFrameSchema);
|
|
2003
|
-
var logQuerySchema = type({ limit: "string?" });
|
|
1962
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
1963
|
+
lazy(() => stateFrameSchema.or(serverFrameSchema).or(logFrameSchema));
|
|
1964
|
+
var logQuerySchema = lazy(() => type({ limit: "string?" }));
|
|
2004
1965
|
/**
|
|
2005
1966
|
* What a per-server lifecycle action answers with.
|
|
2006
1967
|
*
|
|
@@ -2008,59 +1969,72 @@ var logQuerySchema = type({ limit: "string?" });
|
|
|
2008
1969
|
* script can branch without matching English, and it is **absent on success** — a code names a
|
|
2009
1970
|
* failure.
|
|
2010
1971
|
*/
|
|
2011
|
-
var actionResultSchema = type({
|
|
1972
|
+
var actionResultSchema = lazy(() => type({
|
|
2012
1973
|
"ok": "boolean",
|
|
2013
1974
|
"error?": "string",
|
|
2014
1975
|
"message?": "string",
|
|
2015
1976
|
"code?": "string"
|
|
2016
|
-
});
|
|
1977
|
+
}));
|
|
2017
1978
|
/** Whether a probe (a test send, a token check) worked, and why not when it did not. */
|
|
2018
|
-
var deliveryResultSchema = type({
|
|
1979
|
+
var deliveryResultSchema = lazy(() => type({
|
|
2019
1980
|
"ok": "boolean",
|
|
2020
1981
|
"error?": "string"
|
|
2021
|
-
});
|
|
1982
|
+
}));
|
|
2022
1983
|
/** A password was set or changed, and what that means for the caller's session. */
|
|
2023
|
-
var passwordSetResponseSchema = type({
|
|
1984
|
+
var passwordSetResponseSchema = lazy(() => type({
|
|
2024
1985
|
ok: "boolean",
|
|
2025
1986
|
enabled: "boolean",
|
|
2026
1987
|
sessionsInvalidated: "boolean"
|
|
2027
|
-
});
|
|
1988
|
+
}));
|
|
2028
1989
|
/**
|
|
2029
1990
|
* What both TLS mutation routes answer: the panel's listener and the move that is in flight.
|
|
2030
1991
|
*
|
|
2031
1992
|
* Declared once because the two routes return the same `review()` body — the DELETE declared
|
|
2032
1993
|
* `okResponseSchema` while returning this, so a generated client read `undefined` for every field.
|
|
2033
1994
|
*/
|
|
2034
|
-
var tlsReviewResponseSchema = type({
|
|
1995
|
+
var tlsReviewResponseSchema = lazy(() => type({
|
|
2035
1996
|
control: controlViewSchema,
|
|
2036
1997
|
rebinding: "boolean",
|
|
2037
1998
|
targetUrl: "string"
|
|
2038
|
-
});
|
|
1999
|
+
}));
|
|
2039
2000
|
/**
|
|
2040
2001
|
* The plain acknowledgement most mutations answer with.
|
|
2041
2002
|
*
|
|
2042
2003
|
* Defined once because a dozen routes return it, and each was declaring its own or none at all —
|
|
2043
2004
|
* which is why the spec had untyped `200`s where a generated client needs a shape.
|
|
2044
2005
|
*/
|
|
2045
|
-
var okResponseSchema = type({ ok: "boolean" });
|
|
2006
|
+
var okResponseSchema = lazy(() => type({ ok: "boolean" }));
|
|
2046
2007
|
/** A backup was removed: the archive list it leaves behind. */
|
|
2047
|
-
var backupFilesResponseSchema = type({
|
|
2008
|
+
var backupFilesResponseSchema = lazy(() => type({
|
|
2048
2009
|
ok: "boolean",
|
|
2049
2010
|
files: backupFileSchema.array()
|
|
2050
|
-
});
|
|
2011
|
+
}));
|
|
2051
2012
|
/** A UI build was installed (it also reports the build), or reverted. */
|
|
2052
|
-
var uiInstallResponseSchema = type({
|
|
2013
|
+
var uiInstallResponseSchema = lazy(() => type({
|
|
2053
2014
|
"ok": "boolean",
|
|
2054
2015
|
"meta?": uiStatusSchema.get("meta"),
|
|
2055
2016
|
"ui": uiStatusSchema,
|
|
2056
2017
|
/** Revert only: whether there was a custom UI to remove. */
|
|
2057
2018
|
"removed?": "boolean"
|
|
2058
|
-
});
|
|
2019
|
+
}));
|
|
2059
2020
|
/** A backup was created: the new archive and the list it belongs to. */
|
|
2060
|
-
var backupCreatedResponseSchema = type({
|
|
2061
|
-
file: backupFileSchema,
|
|
2062
|
-
files: backupFileSchema.array()
|
|
2063
|
-
|
|
2021
|
+
var backupCreatedResponseSchema = lazy(() => type({
|
|
2022
|
+
"file": backupFileSchema,
|
|
2023
|
+
"files": backupFileSchema.array(),
|
|
2024
|
+
/** Captured but worth a look: a declared path that holds no files. Optional: older panels never send it. */
|
|
2025
|
+
"warnings?": "string[]"
|
|
2026
|
+
}));
|
|
2027
|
+
/**
|
|
2028
|
+
* `POST /_hh/backups` without `confirm=true`: what a backup would capture, and nothing written.
|
|
2029
|
+
* The local channel plans by default; `POST /api/backups` creates at once.
|
|
2030
|
+
*/
|
|
2031
|
+
var backupPlanResponseSchema = lazy(() => type({
|
|
2032
|
+
apply: "false",
|
|
2033
|
+
entries: backupEntrySchema.array(),
|
|
2034
|
+
includePaths: "string[]"
|
|
2035
|
+
}));
|
|
2036
|
+
/** The local channel's answer: a plan, or the archive it wrote once confirmed. */
|
|
2037
|
+
var backupLocalResponseSchema = lazy(() => backupPlanResponseSchema.or(backupCreatedResponseSchema));
|
|
2064
2038
|
/** Buffered or persisted log lines, the shape every log-reading route returns. */
|
|
2065
2039
|
/**
|
|
2066
2040
|
* `GET /api/servers/:id/logs` — the **buffered** lines, straight from memory.
|
|
@@ -2072,14 +2046,14 @@ var backupCreatedResponseSchema = type({
|
|
|
2072
2046
|
* sends a number. `test/api/panel.test.ts` only walks routes it can reach with a live fixture and
|
|
2073
2047
|
* skipped this one, so nothing caught it.
|
|
2074
2048
|
*/
|
|
2075
|
-
var bufferedLogsResponseSchema = type({ lines: logLineSchema.array() });
|
|
2049
|
+
var bufferedLogsResponseSchema = lazy(() => type({ lines: logLineSchema.array() }));
|
|
2076
2050
|
/**
|
|
2077
2051
|
* `GET /api/logs/:id` — one entry's log **from disk**, with its rotation and its search window.
|
|
2078
2052
|
*
|
|
2079
2053
|
* This is the shape the UIs parse (`logHistoryViewSchema` below is the same thing with its own
|
|
2080
2054
|
* name for the client side), and it is what `logLinesResponseSchema` should always have been.
|
|
2081
2055
|
*/
|
|
2082
|
-
var logLinesResponseSchema = type({
|
|
2056
|
+
var logLinesResponseSchema = lazy(() => type({
|
|
2083
2057
|
serverId: "string",
|
|
2084
2058
|
enabled: "boolean",
|
|
2085
2059
|
sizeBytes: "number",
|
|
@@ -2088,7 +2062,7 @@ var logLinesResponseSchema = type({
|
|
|
2088
2062
|
/** How many lines the search looked at, or null when the request carried no `search`. */
|
|
2089
2063
|
searched: "number | null",
|
|
2090
2064
|
lines: logLineSchema.array()
|
|
2091
|
-
});
|
|
2065
|
+
}));
|
|
2092
2066
|
/**
|
|
2093
2067
|
* One server's live resource reading, for `home-hosted usage`.
|
|
2094
2068
|
*
|
|
@@ -2096,7 +2070,7 @@ var logLinesResponseSchema = type({
|
|
|
2096
2070
|
* sampler has not seen yet, or one that just exited. Absent is **not** zero: a `0` here would read as
|
|
2097
2071
|
* "idle" and hide a server that is not being measured at all.
|
|
2098
2072
|
*/
|
|
2099
|
-
var usageEntrySchema = type({
|
|
2073
|
+
var usageEntrySchema = lazy(() => type({
|
|
2100
2074
|
"id": "string",
|
|
2101
2075
|
"workspaceId": "string",
|
|
2102
2076
|
"label": "string",
|
|
@@ -2116,18 +2090,18 @@ var usageEntrySchema = type({
|
|
|
2116
2090
|
"crashes?": "number",
|
|
2117
2091
|
"uptimeRatio?": "number",
|
|
2118
2092
|
"lastExitAt?": "number"
|
|
2119
|
-
});
|
|
2120
|
-
var usageViewSchema = type({
|
|
2093
|
+
}));
|
|
2094
|
+
var usageViewSchema = lazy(() => type({
|
|
2121
2095
|
"servers": usageEntrySchema.array(),
|
|
2122
2096
|
/** When the host-level sample was taken, so a caller can tell live numbers from a frozen frame. */
|
|
2123
2097
|
"sampledAt?": "number"
|
|
2124
|
-
});
|
|
2098
|
+
}));
|
|
2125
2099
|
/**
|
|
2126
2100
|
* What a `free-port` attempt did. The pids are reported so the UI can say which
|
|
2127
2101
|
* process left, and which listeners were deliberately left alone because this
|
|
2128
2102
|
* panel supervises them.
|
|
2129
2103
|
*/
|
|
2130
|
-
var freePortResultSchema = type({
|
|
2104
|
+
var freePortResultSchema = lazy(() => type({
|
|
2131
2105
|
ok: "boolean",
|
|
2132
2106
|
port: "number | null",
|
|
2133
2107
|
/** Asked to leave with SIGTERM, and the ones that ignored it. */
|
|
@@ -2137,8 +2111,8 @@ var freePortResultSchema = type({
|
|
|
2137
2111
|
skipped: "number[]",
|
|
2138
2112
|
/** The port answers no more after the attempt. */
|
|
2139
2113
|
free: "boolean"
|
|
2140
|
-
});
|
|
2141
|
-
var logHistoryQuerySchema = type({
|
|
2114
|
+
}));
|
|
2115
|
+
var logHistoryQuerySchema = lazy(() => type({
|
|
2142
2116
|
tail: "string?",
|
|
2143
2117
|
/**
|
|
2144
2118
|
* Case-insensitive substring filter. Both this and `stream` are filters, so the route reads a
|
|
@@ -2148,21 +2122,21 @@ var logHistoryQuerySchema = type({
|
|
|
2148
2122
|
*/
|
|
2149
2123
|
search: "string?",
|
|
2150
2124
|
stream: "\"stdout\" | \"stderr\" | \"system\"?"
|
|
2151
|
-
});
|
|
2152
|
-
var logFileInfoSchema = type({
|
|
2125
|
+
}));
|
|
2126
|
+
var logFileInfoSchema = lazy(() => type({
|
|
2153
2127
|
name: "string",
|
|
2154
2128
|
sizeBytes: "number"
|
|
2155
|
-
});
|
|
2156
|
-
var logServerViewSchema = type({
|
|
2129
|
+
}));
|
|
2130
|
+
var logServerViewSchema = lazy(() => type({
|
|
2157
2131
|
serverId: "string",
|
|
2158
2132
|
label: "string",
|
|
2159
2133
|
status: serverStatusSchema,
|
|
2160
2134
|
enabled: "boolean",
|
|
2161
2135
|
sizeBytes: "number",
|
|
2162
2136
|
files: logFileInfoSchema.array()
|
|
2163
|
-
});
|
|
2164
|
-
var logServersViewSchema = type({ servers: logServerViewSchema.array() });
|
|
2165
|
-
type({
|
|
2137
|
+
}));
|
|
2138
|
+
var logServersViewSchema = lazy(() => type({ servers: logServerViewSchema.array() }));
|
|
2139
|
+
lazy(() => type({
|
|
2166
2140
|
serverId: "string",
|
|
2167
2141
|
enabled: "boolean",
|
|
2168
2142
|
sizeBytes: "number",
|
|
@@ -2170,12 +2144,12 @@ type({
|
|
|
2170
2144
|
/** How many lines the search looked at, or null when not searching. */
|
|
2171
2145
|
searched: "number | null",
|
|
2172
2146
|
lines: logLineSchema.array()
|
|
2173
|
-
});
|
|
2174
|
-
var notificationActionSchema = type({
|
|
2147
|
+
}));
|
|
2148
|
+
var notificationActionSchema = lazy(() => type({
|
|
2175
2149
|
/** Optional override, so the token can be tried before it is saved. */
|
|
2176
2150
|
botToken: "string?",
|
|
2177
2151
|
chatId: "string?"
|
|
2178
|
-
}).onUndeclaredKey("reject");
|
|
2152
|
+
}).onUndeclaredKey("reject"));
|
|
2179
2153
|
/**
|
|
2180
2154
|
* The `:id` path parameter of a destination route.
|
|
2181
2155
|
*
|
|
@@ -2184,7 +2158,7 @@ var notificationActionSchema = type({
|
|
|
2184
2158
|
* literal secrets key `telegram.botToken`, which the reader then took for the **legacy singleton** —
|
|
2185
2159
|
* every real destination's token became unreachable.
|
|
2186
2160
|
*/
|
|
2187
|
-
var destinationIdParamSchema = type({ id: "/^[a-z0-9][a-z0-9_-]*$/" });
|
|
2161
|
+
var destinationIdParamSchema = lazy(() => type({ id: "/^[a-z0-9][a-z0-9_-]*$/" }));
|
|
2188
2162
|
/**
|
|
2189
2163
|
* `POST /api/notifications/test-webhook`: the webhook to try, as a draft or by id.
|
|
2190
2164
|
*
|
|
@@ -2192,15 +2166,15 @@ var destinationIdParamSchema = type({ id: "/^[a-z0-9][a-z0-9_-]*$/" });
|
|
|
2192
2166
|
* and the request schema rejects undeclared keys, so the webhook shape is reused rather than a
|
|
2193
2167
|
* second DTO that could drift from it.
|
|
2194
2168
|
*/
|
|
2195
|
-
var destinationTestSchema = type({
|
|
2169
|
+
var destinationTestSchema = lazy(() => type({
|
|
2196
2170
|
target: webhookTargetSchema.omit("kind", "id").and(type({
|
|
2197
2171
|
id: "string?",
|
|
2198
2172
|
kind: "\"webhook\"?"
|
|
2199
2173
|
})),
|
|
2200
2174
|
/** Echoed so the result is recorded against the right row; absent for a draft. */
|
|
2201
2175
|
id: "string?"
|
|
2202
|
-
}).onUndeclaredKey("reject");
|
|
2203
|
-
var telegramTokenSchema = type({ botToken: "string >= 1" }).onUndeclaredKey("reject");
|
|
2176
|
+
}).onUndeclaredKey("reject"));
|
|
2177
|
+
var telegramTokenSchema = lazy(() => type({ botToken: "string >= 1" }).onUndeclaredKey("reject"));
|
|
2204
2178
|
/**
|
|
2205
2179
|
* The single error envelope every route answers failures with.
|
|
2206
2180
|
*
|
|
@@ -2210,36 +2184,36 @@ var telegramTokenSchema = type({ botToken: "string >= 1" }).onUndeclaredKey("rej
|
|
|
2210
2184
|
* that is usually absent, and disagreed with `ApiErrorBody` in `helpers/error.ts`, which has it
|
|
2211
2185
|
* optional because that is what it actually serialises.
|
|
2212
2186
|
*/
|
|
2213
|
-
var apiErrorSchema = type({
|
|
2187
|
+
var apiErrorSchema = lazy(() => type({
|
|
2214
2188
|
"message": "string",
|
|
2215
2189
|
/** Stable, machine-readable; `AUTH_REQUIRED` also drives the login redirect. */
|
|
2216
2190
|
"code": "string",
|
|
2217
2191
|
/** Structured context when the failure has any — a field list, the routes holding a certificate. */
|
|
2218
2192
|
"detail?": "unknown"
|
|
2219
|
-
});
|
|
2220
|
-
var tlsUploadSchema = type({
|
|
2193
|
+
}));
|
|
2194
|
+
var tlsUploadSchema = lazy(() => type({
|
|
2221
2195
|
certificate: "string >= 1",
|
|
2222
2196
|
privateKey: "string >= 1"
|
|
2223
|
-
}).onUndeclaredKey("reject");
|
|
2197
|
+
}).onUndeclaredKey("reject"));
|
|
2224
2198
|
/** `GET /api/settings`: the panel-wide configuration, as Global Settings reads it. */
|
|
2225
|
-
var settingsViewSchema = type({
|
|
2199
|
+
var settingsViewSchema = lazy(() => type({
|
|
2226
2200
|
control: controlViewSchema,
|
|
2227
2201
|
host: hostSchema,
|
|
2228
2202
|
backups: backupsViewSchema,
|
|
2229
2203
|
ui: uiStatusSchema
|
|
2230
|
-
}).onDeepUndeclaredKey("ignore");
|
|
2204
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
2231
2205
|
/** `PATCH /api/settings` answers with the saved view, plus where the listener lands. */
|
|
2232
|
-
var settingsSavedSchema = settingsViewSchema.and(type({
|
|
2206
|
+
var settingsSavedSchema = lazy(() => settingsViewSchema.and(type({
|
|
2233
2207
|
/** The listener is moving; reconnect at `targetUrl` when it stops being null. */
|
|
2234
2208
|
rebinding: "boolean",
|
|
2235
2209
|
targetUrl: "string | null"
|
|
2236
|
-
}));
|
|
2210
|
+
})));
|
|
2237
2211
|
/**
|
|
2238
2212
|
* `GET /api/settings/workspace?workspace=<id>`: what a workspace owns and can
|
|
2239
2213
|
* change on its own. Global things (listener, auth, host, backups, TLS) are not
|
|
2240
2214
|
* here — they belong to the panel, not to any workspace.
|
|
2241
2215
|
*/
|
|
2242
|
-
var workspaceSettingsViewSchema = type({
|
|
2216
|
+
var workspaceSettingsViewSchema = lazy(() => type({
|
|
2243
2217
|
id: "string",
|
|
2244
2218
|
label: "string",
|
|
2245
2219
|
settingsPath: "string",
|
|
@@ -2248,9 +2222,9 @@ var workspaceSettingsViewSchema = type({
|
|
|
2248
2222
|
defaults: defaultsSchema,
|
|
2249
2223
|
logs: logsSchema,
|
|
2250
2224
|
notifications: notificationViewSchema
|
|
2251
|
-
}).onDeepUndeclaredKey("ignore");
|
|
2225
|
+
}).onDeepUndeclaredKey("ignore"));
|
|
2252
2226
|
var workspaceSettingsSavedSchema = workspaceSettingsViewSchema;
|
|
2253
2227
|
//#endregion
|
|
2254
|
-
export {
|
|
2228
|
+
export { settingsSavedSchema as $, loginSchema as A, proxyCertificateUploadSchema as B, freePortResultSchema as C, logLinesResponseSchema as D, logHistoryQuerySchema as E, notificationsSchema as F, restorePlanSchema as G, proxyEngineInstallSchema as H, okResponseSchema as I, serverPatchSchema as J, restoreRequestSchema as K, parseBind as L, nannySpecSchema as M, nannyStateSchema as N, logQuerySchema as O, notificationActionSchema as P, settingsPatchSchema as Q, passwordSchema as R, entryStateSchema as S, hostSchema as T, proxyPatchSchema as U, proxyConfigSchema as V, proxyViewSchema as W, serverViewSchema as X, serverSchema as Y, sessionViewSchema as Z, defaultsSchema as _, wslTemperatureSchema as _t, backupCreateSchema as a, tlsUploadSchema as at, destinationTestSchema as b, backupLocalResponseSchema as c, usageViewSchema as ct, bufferedLogsResponseSchema as d, workspaceRenameSchema as dt, settingsViewSchema as et, contracts_exports as f, workspaceSchema as ft, ddnsViewSchema as g, workspaceViewSchema as gt, ddnsCredentialsSchema as h, workspaceSettingsViewSchema as ht, appStateSchema as i, tlsReviewResponseSchema as it, logsSchema as j, logServersViewSchema as k, backupSelectionSchema as l, workspaceCreateSchema as lt, ddnsConfigSchema as m, workspaceSettingsSavedSchema as mt, apiErrorSchema as n, telegramChatsSchema as nt, backupCreatedResponseSchema as o, uiInstallResponseSchema as ot, controlSchema as p, workspaceSettingsPatchSchema as pt, serverCreateSchema as q, apiTokenCreatedSchema as r, telegramTokenSchema as rt, backupFilesResponseSchema as s, uiMetaSchema as st, actionResultSchema as t, stopSchema as tt, backupsSchema as u, workspaceIdSchema as ut, deliveryResultSchema as v, hostReadings as vt, healthResponseSchema as w, duplicateWebhookIds as x, destinationIdParamSchema as y, passwordSetResponseSchema as z };
|
|
2255
2229
|
|
|
2256
|
-
//# sourceMappingURL=contracts-
|
|
2230
|
+
//# sourceMappingURL=contracts-CMBD1TF9.js.map
|