/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 7fbfc49f5a30 */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; export type ResetInvocationBody = { /** * The event ID to reset the workflow execution to */ eventId: number; /** * Reason for resetting the workflow execution */ reason?: string | null | undefined; /** * Whether to exclude signals that happened after the reset point */ excludeSignals?: boolean | undefined; /** * Whether to exclude updates that happened after the reset point */ excludeUpdates?: boolean | undefined; }; /** @internal */ export type ResetInvocationBody$Outbound = { event_id: number; reason?: string | null | undefined; exclude_signals: boolean; exclude_updates: boolean; }; /** @internal */ export const ResetInvocationBody$outboundSchema: z.ZodType< ResetInvocationBody$Outbound, ResetInvocationBody > = z.object({ eventId: z.int(), reason: z.nullable(z.string()).optional(), excludeSignals: z.boolean().default(false), excludeUpdates: z.boolean().default(false), }).transform((v) => { return remap$(v, { eventId: "event_id", excludeSignals: "exclude_signals", excludeUpdates: "exclude_updates", }); }); export function resetInvocationBodyToJSON( resetInvocationBody: ResetInvocationBody, ): string { return JSON.stringify( ResetInvocationBody$outboundSchema.parse(resetInvocationBody), ); }