/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as types from "../../types/primitives.js"; import { SDKValidationError } from "./sdk-validation-error.js"; export type EntitySyncConfig = { /** * Inbound from external provider to FlexPrice */ inbound?: boolean | undefined; /** * Outbound from FlexPrice to external provider */ outbound?: boolean | undefined; }; /** @internal */ export const EntitySyncConfig$inboundSchema: z.ZodMiniType< EntitySyncConfig, unknown > = z.object({ inbound: types.optional(types.boolean()), outbound: types.optional(types.boolean()), }); export function entitySyncConfigFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => EntitySyncConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntitySyncConfig' from JSON`, ); }