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

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

export type GetWorkflowExecutionTraceOtelRequest = {
  executionId: string;
};

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

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

export function getWorkflowExecutionTraceOtelRequestToJSON(
  getWorkflowExecutionTraceOtelRequest: GetWorkflowExecutionTraceOtelRequest,
): string {
  return JSON.stringify(
    GetWorkflowExecutionTraceOtelRequest$outboundSchema.parse(
      getWorkflowExecutionTraceOtelRequest,
    ),
  );
}
