/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; export type WorkflowDelay = { /** * If this workflow is delayed, whether the conditions should be rechecked between trigger firing and execution */ conditionsApplyOverDelay: boolean; /** * Delay in seconds between trigger firing and running the workflow */ forSeconds: number; }; /** @internal */ export const WorkflowDelay$inboundSchema: z.ZodType< WorkflowDelay, z.ZodTypeDef, unknown > = z.object({ conditions_apply_over_delay: z.boolean(), for_seconds: z.number().int(), }).transform((v) => { return remap$(v, { "conditions_apply_over_delay": "conditionsApplyOverDelay", "for_seconds": "forSeconds", }); }); /** @internal */ export type WorkflowDelay$Outbound = { conditions_apply_over_delay: boolean; for_seconds: number; }; /** @internal */ export const WorkflowDelay$outboundSchema: z.ZodType< WorkflowDelay$Outbound, z.ZodTypeDef, WorkflowDelay > = z.object({ conditionsApplyOverDelay: z.boolean(), forSeconds: z.number().int(), }).transform((v) => { return remap$(v, { conditionsApplyOverDelay: "conditions_apply_over_delay", forSeconds: "for_seconds", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace WorkflowDelay$ { /** @deprecated use `WorkflowDelay$inboundSchema` instead. */ export const inboundSchema = WorkflowDelay$inboundSchema; /** @deprecated use `WorkflowDelay$outboundSchema` instead. */ export const outboundSchema = WorkflowDelay$outboundSchema; /** @deprecated use `WorkflowDelay$Outbound` instead. */ export type Outbound = WorkflowDelay$Outbound; }