/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; export const Reason = { AIProviderError: "AIProviderError", ActionFailureError: "ActionFailureError", AssertionFailureError: "AssertionFailureError", UserConfigurationError: "UserConfigurationError", JobTimeoutError: "JobTimeoutError", InternalWebAgentError: "InternalWebAgentError", InternalPlatformError: "InternalPlatformError", UnknownError: "UnknownError", } as const; export type Reason = ClosedEnum; export type TestResultClassification = { reason: Reason; summary: string; }; /** @internal */ export const Reason$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Reason); /** @internal */ export const Reason$outboundSchema: z.ZodNativeEnum = Reason$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace Reason$ { /** @deprecated use `Reason$inboundSchema` instead. */ export const inboundSchema = Reason$inboundSchema; /** @deprecated use `Reason$outboundSchema` instead. */ export const outboundSchema = Reason$outboundSchema; } /** @internal */ export const TestResultClassification$inboundSchema: z.ZodType< TestResultClassification, z.ZodTypeDef, unknown > = z.object({ reason: Reason$inboundSchema, summary: z.string(), }); /** @internal */ export type TestResultClassification$Outbound = { reason: string; summary: string; }; /** @internal */ export const TestResultClassification$outboundSchema: z.ZodType< TestResultClassification$Outbound, z.ZodTypeDef, TestResultClassification > = z.object({ reason: Reason$outboundSchema, summary: z.string(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace TestResultClassification$ { /** @deprecated use `TestResultClassification$inboundSchema` instead. */ export const inboundSchema = TestResultClassification$inboundSchema; /** @deprecated use `TestResultClassification$outboundSchema` instead. */ export const outboundSchema = TestResultClassification$outboundSchema; /** @deprecated use `TestResultClassification$Outbound` instead. */ export type Outbound = TestResultClassification$Outbound; }