/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ComputerStatusOutcome, ComputerStatusOutcome$inboundSchema, } from "./computerstatusoutcome.js"; /** * The a status check for a computer. Representation for screenlock, diskEncryption, passwordManager, and antivirusInstallation. */ export type ComputerStatus = { /** * The possible outcomes of a status check. The outcome can be one of the following: * * @remarks * FAIL: The check is failing. * IN_PROGRESS: The check needs further data from the given computer in order to evaluate. The field(s) needed from a computer to calculate the ComputerStatusOutcome were null. * NA: The check is not applicable for the given computer. * PASS: The check is passing. */ outcome: ComputerStatusOutcome; }; /** @internal */ export const ComputerStatus$inboundSchema: z.ZodType< ComputerStatus, z.ZodTypeDef, unknown > = z.object({ outcome: ComputerStatusOutcome$inboundSchema, }); export function computerStatusFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ComputerStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ComputerStatus' from JSON`, ); }