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

import * as z from "zod/v4";

export type UpdateModelRequest = {
  name?: string | null | undefined;
  description?: string | null | undefined;
};

/** @internal */
export type UpdateModelRequest$Outbound = {
  name?: string | null | undefined;
  description?: string | null | undefined;
};

/** @internal */
export const UpdateModelRequest$outboundSchema: z.ZodType<
  UpdateModelRequest$Outbound,
  UpdateModelRequest
> = z.object({
  name: z.nullable(z.string()).optional(),
  description: z.nullable(z.string()).optional(),
});

export function updateModelRequestToJSON(
  updateModelRequest: UpdateModelRequest,
): string {
  return JSON.stringify(
    UpdateModelRequest$outboundSchema.parse(updateModelRequest),
  );
}
