refactor(wizard): split onboarding
This commit is contained in:
25
src/wizard/onboarding.types.ts
Normal file
25
src/wizard/onboarding.types.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import type { GatewayAuthChoice } from "../commands/onboard-types.js";
|
||||
|
||||
export type WizardFlow = "quickstart" | "advanced";
|
||||
|
||||
export type QuickstartGatewayDefaults = {
|
||||
hasExisting: boolean;
|
||||
port: number;
|
||||
bind: "loopback" | "lan" | "auto" | "custom";
|
||||
authMode: GatewayAuthChoice;
|
||||
tailscaleMode: "off" | "serve" | "funnel";
|
||||
token?: string;
|
||||
password?: string;
|
||||
customBindHost?: string;
|
||||
tailscaleResetOnExit: boolean;
|
||||
};
|
||||
|
||||
export type GatewayWizardSettings = {
|
||||
port: number;
|
||||
bind: "loopback" | "lan" | "auto" | "custom";
|
||||
customBindHost?: string;
|
||||
authMode: GatewayAuthChoice;
|
||||
gatewayToken?: string;
|
||||
tailscaleMode: "off" | "serve" | "funnel";
|
||||
tailscaleResetOnExit: boolean;
|
||||
};
|
||||
Reference in New Issue
Block a user