/*
 * 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 JobsApiRoutesFineTuningArchiveFineTunedModelRequest = {
  /**
   * The ID of the model to archive.
   */
  modelId: string;
};

/** @internal */
export type JobsApiRoutesFineTuningArchiveFineTunedModelRequest$Outbound = {
  model_id: string;
};

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

export function jobsApiRoutesFineTuningArchiveFineTunedModelRequestToJSON(
  jobsApiRoutesFineTuningArchiveFineTunedModelRequest:
    JobsApiRoutesFineTuningArchiveFineTunedModelRequest,
): string {
  return JSON.stringify(
    JobsApiRoutesFineTuningArchiveFineTunedModelRequest$outboundSchema.parse(
      jobsApiRoutesFineTuningArchiveFineTunedModelRequest,
    ),
  );
}
