/* * 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 SubscriberPreferencesWorkflowInfoDto = { /** * Workflow slug */ slug: string; /** * Unique identifier of the workflow */ identifier: string; /** * Display name of the workflow */ name: string; /** * last updated date */ updatedAt?: string | undefined; }; /** @internal */ export const SubscriberPreferencesWorkflowInfoDto$inboundSchema: z.ZodType< SubscriberPreferencesWorkflowInfoDto, z.ZodTypeDef, unknown > = z.object({ slug: z.string(), identifier: z.string(), name: z.string(), updatedAt: z.string().optional(), }); export function subscriberPreferencesWorkflowInfoDtoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => SubscriberPreferencesWorkflowInfoDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SubscriberPreferencesWorkflowInfoDto' from JSON`, ); }