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

import * as z from "zod/v3";

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

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

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

export function libraryInUpdateToJSON(
  libraryInUpdate: LibraryInUpdate,
): string {
  return JSON.stringify(LibraryInUpdate$outboundSchema.parse(libraryInUpdate));
}
