/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v3";
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,
  z.ZodTypeDef,
  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,
    ),
  );
}
