/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: c3f3da4da07d */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type ResetWorkflowV1WorkflowsExecutionsExecutionIdResetPostRequest = { executionId: string; resetInvocationBody: components.ResetInvocationBody; }; /** @internal */ export type ResetWorkflowV1WorkflowsExecutionsExecutionIdResetPostRequest$Outbound = { execution_id: string; ResetInvocationBody: components.ResetInvocationBody$Outbound; }; /** @internal */ export const ResetWorkflowV1WorkflowsExecutionsExecutionIdResetPostRequest$outboundSchema: z.ZodType< ResetWorkflowV1WorkflowsExecutionsExecutionIdResetPostRequest$Outbound, ResetWorkflowV1WorkflowsExecutionsExecutionIdResetPostRequest > = z.object({ executionId: z.string(), resetInvocationBody: components.ResetInvocationBody$outboundSchema, }).transform((v) => { return remap$(v, { executionId: "execution_id", resetInvocationBody: "ResetInvocationBody", }); }); export function resetWorkflowV1WorkflowsExecutionsExecutionIdResetPostRequestToJSON( resetWorkflowV1WorkflowsExecutionsExecutionIdResetPostRequest: ResetWorkflowV1WorkflowsExecutionsExecutionIdResetPostRequest, ): string { return JSON.stringify( ResetWorkflowV1WorkflowsExecutionsExecutionIdResetPostRequest$outboundSchema .parse(resetWorkflowV1WorkflowsExecutionsExecutionIdResetPostRequest), ); }