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

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

export type GetWorkflowExecutionV1WorkflowsExecutionsExecutionIdGetRequest = {
  executionId: string;
};

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

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

export function getWorkflowExecutionV1WorkflowsExecutionsExecutionIdGetRequestToJSON(
  getWorkflowExecutionV1WorkflowsExecutionsExecutionIdGetRequest:
    GetWorkflowExecutionV1WorkflowsExecutionsExecutionIdGetRequest,
): string {
  return JSON.stringify(
    GetWorkflowExecutionV1WorkflowsExecutionsExecutionIdGetRequest$outboundSchema
      .parse(getWorkflowExecutionV1WorkflowsExecutionsExecutionIdGetRequest),
  );
}
