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