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

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

export type JobsApiRoutesBatchCancelBatchJobRequest = {
  jobId: string;
};

/** @internal */
export type JobsApiRoutesBatchCancelBatchJobRequest$Outbound = {
  job_id: string;
};

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

export function jobsApiRoutesBatchCancelBatchJobRequestToJSON(
  jobsApiRoutesBatchCancelBatchJobRequest:
    JobsApiRoutesBatchCancelBatchJobRequest,
): string {
  return JSON.stringify(
    JobsApiRoutesBatchCancelBatchJobRequest$outboundSchema.parse(
      jobsApiRoutesBatchCancelBatchJobRequest,
    ),
  );
}
