/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 7d56f653754b
 */

import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";

export type TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIdTerminatePostRequest =
  {
    executionId: string;
  };

/** @internal */
export type TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIdTerminatePostRequest$Outbound =
  {
    execution_id: string;
  };

/** @internal */
export const TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIdTerminatePostRequest$outboundSchema:
  z.ZodType<
    TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIdTerminatePostRequest$Outbound,
    TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIdTerminatePostRequest
  > = z.object({
    executionId: z.string(),
  }).transform((v) => {
    return remap$(v, {
      executionId: "execution_id",
    });
  });

export function terminateWorkflowExecutionV1WorkflowsExecutionsExecutionIdTerminatePostRequestToJSON(
  terminateWorkflowExecutionV1WorkflowsExecutionsExecutionIdTerminatePostRequest:
    TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIdTerminatePostRequest,
): string {
  return JSON.stringify(
    TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIdTerminatePostRequest$outboundSchema
      .parse(
        terminateWorkflowExecutionV1WorkflowsExecutionsExecutionIdTerminatePostRequest,
      ),
  );
}
