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

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

export type JobsApiRoutesFineTuningUnarchiveFineTunedModelRequest = {
  /**
   * The ID of the model to unarchive.
   */
  modelId: string;
};

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

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

export function jobsApiRoutesFineTuningUnarchiveFineTunedModelRequestToJSON(
  jobsApiRoutesFineTuningUnarchiveFineTunedModelRequest:
    JobsApiRoutesFineTuningUnarchiveFineTunedModelRequest,
): string {
  return JSON.stringify(
    JobsApiRoutesFineTuningUnarchiveFineTunedModelRequest$outboundSchema.parse(
      jobsApiRoutesFineTuningUnarchiveFineTunedModelRequest,
    ),
  );
}
