/* * 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"; export type GetMasterJsonResponseDto = { /** * All translations for given locale organized by workflow identifier */ workflows: { [k: string]: any }; /** * All translations for given locale organized by layout identifier */ layouts: { [k: string]: any }; }; /** @internal */ export const GetMasterJsonResponseDto$inboundSchema: z.ZodType< GetMasterJsonResponseDto, z.ZodTypeDef, unknown > = z.object({ workflows: z.record(z.any()), layouts: z.record(z.any()), }); export function getMasterJsonResponseDtoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => GetMasterJsonResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMasterJsonResponseDto' from JSON`, ); }