/* * 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 { RootStore, RootStore$inboundSchema } from "./rootstore.js"; export type Validation = { apple?: RootStore | undefined; chrome?: RootStore | undefined; microsoft?: RootStore | undefined; nss?: RootStore | undefined; }; /** @internal */ export const Validation$inboundSchema: z.ZodType< Validation, z.ZodTypeDef, unknown > = z.object({ apple: RootStore$inboundSchema.optional(), chrome: RootStore$inboundSchema.optional(), microsoft: RootStore$inboundSchema.optional(), nss: RootStore$inboundSchema.optional(), }); export function validationFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Validation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Validation' from JSON`, ); }