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

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

export type JobsApiRoutesBatchGetBatchJobRequest = {
  jobId: string;
  inline?: boolean | null | undefined;
};

/** @internal */
export type JobsApiRoutesBatchGetBatchJobRequest$Outbound = {
  job_id: string;
  inline?: boolean | null | undefined;
};

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

export function jobsApiRoutesBatchGetBatchJobRequestToJSON(
  jobsApiRoutesBatchGetBatchJobRequest: JobsApiRoutesBatchGetBatchJobRequest,
): string {
  return JSON.stringify(
    JobsApiRoutesBatchGetBatchJobRequest$outboundSchema.parse(
      jobsApiRoutesBatchGetBatchJobRequest,
    ),
  );
}
