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

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

export type BatchExecutionBody = {
  /**
   * List of execution IDs to process
   */
  executionIds: Array<string>;
};

/** @internal */
export type BatchExecutionBody$Outbound = {
  execution_ids: Array<string>;
};

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

export function batchExecutionBodyToJSON(
  batchExecutionBody: BatchExecutionBody,
): string {
  return JSON.stringify(
    BatchExecutionBody$outboundSchema.parse(batchExecutionBody),
  );
}
