/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { TestResultClassification, TestResultClassification$inboundSchema, TestResultClassification$Outbound, TestResultClassification$outboundSchema, } from "./testresultclassification.js"; export type TestFailureDetails = { errorMessage: string; errorStack?: string | undefined; classification?: TestResultClassification | undefined; }; /** @internal */ export const TestFailureDetails$inboundSchema: z.ZodType< TestFailureDetails, z.ZodTypeDef, unknown > = z.object({ errorMessage: z.string(), errorStack: z.string().optional(), classification: TestResultClassification$inboundSchema.optional(), }); /** @internal */ export type TestFailureDetails$Outbound = { errorMessage: string; errorStack?: string | undefined; classification?: TestResultClassification$Outbound | undefined; }; /** @internal */ export const TestFailureDetails$outboundSchema: z.ZodType< TestFailureDetails$Outbound, z.ZodTypeDef, TestFailureDetails > = z.object({ errorMessage: z.string(), errorStack: z.string().optional(), classification: TestResultClassification$outboundSchema.optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace TestFailureDetails$ { /** @deprecated use `TestFailureDetails$inboundSchema` instead. */ export const inboundSchema = TestFailureDetails$inboundSchema; /** @deprecated use `TestFailureDetails$outboundSchema` instead. */ export const outboundSchema = TestFailureDetails$outboundSchema; /** @deprecated use `TestFailureDetails$Outbound` instead. */ export type Outbound = TestFailureDetails$Outbound; }