/*
 * 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 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,
  z.ZodTypeDef,
  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,
    ),
  );
}
