/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type WorkflowPreferenceRequestDto = { /** * Whether the preference is enabled. Used when condition is not provided. */ enabled?: boolean | undefined; /** * Optional condition using JSON Logic rules */ condition?: { [k: string]: any } | undefined; /** * The workflow identifier */ workflowId: string; }; /** @internal */ export type WorkflowPreferenceRequestDto$Outbound = { enabled?: boolean | undefined; condition?: { [k: string]: any } | undefined; workflowId: string; }; /** @internal */ export const WorkflowPreferenceRequestDto$outboundSchema: z.ZodType< WorkflowPreferenceRequestDto$Outbound, z.ZodTypeDef, WorkflowPreferenceRequestDto > = z.object({ enabled: z.boolean().optional(), condition: z.record(z.any()).optional(), workflowId: z.string(), }); export function workflowPreferenceRequestDtoToJSON( workflowPreferenceRequestDto: WorkflowPreferenceRequestDto, ): string { return JSON.stringify( WorkflowPreferenceRequestDto$outboundSchema.parse( workflowPreferenceRequestDto, ), ); }