Fix types

This commit is contained in:
Owen
2026-07-31 16:50:35 -04:00
parent 7e05c16ccd
commit 104dcebda7
14 changed files with 44 additions and 35 deletions
+2 -2
View File
@@ -44,11 +44,11 @@ const createResourceParamsSchema = z.strictObject({
});
function resolveModeFromLegacyFields(data: {
mode?: "http" | "ssh" | "rdp" | "vnc" | "tcp" | "udp";
mode?: "http" | "ssh" | "rdp" | "vnc" | "tcp" | "udp" | "inference";
http?: boolean;
protocol?: "tcp" | "udp";
}): {
mode?: "http" | "ssh" | "rdp" | "vnc" | "tcp" | "udp";
mode?: "http" | "ssh" | "rdp" | "vnc" | "tcp" | "udp" | "inference";
error?: string;
} {
if (data.mode) {
+2 -1
View File
@@ -637,11 +637,12 @@ export async function listResources(
${resourcePassword.passwordId}
)
`;
const browserGatewayModes = ["http", "ssh", "rdp", "vnc"];
const browserGatewayModes = ["http", "ssh", "rdp", "vnc"] as const;
switch (authState) {
case "none":
conditions.push(
// TODO: Does inference belong here?
or(eq(resources.mode, "tcp"), eq(resources.mode, "udp"))
);
break;