export const TAILSCALE_SECURE_ACCESS_SYSTEM_TASK_KIND = 'secureAccess.tailscale.v1';
export const TAILSCALE_SECURE_ACCESS_SYSTEM_TASK_STEP_IDS = [
    'detect',
    'install',
    'login',
    'serve enable',
    'verify url',
];
export function createTailscaleSecureAccessTaskSpec(params) {
    return {
        kind: TAILSCALE_SECURE_ACCESS_SYSTEM_TASK_KIND,
        params: {
            upstreamUrl: String(params.upstreamUrl ?? '').trim(),
            servePath: String(params.servePath ?? '/').trim() || '/',
            installPolicy: params.installPolicy ?? 'skip',
            loginPolicy: params.loginPolicy ?? 'interactive',
            mode: params.mode ?? 'normalUser',
        },
    };
}
//# sourceMappingURL=tailscaleSecureAccessTaskContract.js.map