/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: b5c728d0a8ec */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type LibrariesUpdateV1Request = { libraryId: string; updateLibraryRequest: components.UpdateLibraryRequest; }; /** @internal */ export type LibrariesUpdateV1Request$Outbound = { library_id: string; UpdateLibraryRequest: components.UpdateLibraryRequest$Outbound; }; /** @internal */ export const LibrariesUpdateV1Request$outboundSchema: z.ZodType< LibrariesUpdateV1Request$Outbound, LibrariesUpdateV1Request > = z.object({ libraryId: z.string(), updateLibraryRequest: components.UpdateLibraryRequest$outboundSchema, }).transform((v) => { return remap$(v, { libraryId: "library_id", updateLibraryRequest: "UpdateLibraryRequest", }); }); export function librariesUpdateV1RequestToJSON( librariesUpdateV1Request: LibrariesUpdateV1Request, ): string { return JSON.stringify( LibrariesUpdateV1Request$outboundSchema.parse(librariesUpdateV1Request), ); }