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

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

export type GetRunV1WorkflowsRunsRunIdGetRequest = {
  runId: string;
};

/** @internal */
export type GetRunV1WorkflowsRunsRunIdGetRequest$Outbound = {
  run_id: string;
};

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

export function getRunV1WorkflowsRunsRunIdGetRequestToJSON(
  getRunV1WorkflowsRunsRunIdGetRequest: GetRunV1WorkflowsRunsRunIdGetRequest,
): string {
  return JSON.stringify(
    GetRunV1WorkflowsRunsRunIdGetRequest$outboundSchema.parse(
      getRunV1WorkflowsRunsRunIdGetRequest,
    ),
  );
}
