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

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