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

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

export type LibrariesDeleteV1Request = {
  libraryId: string;
};

/** @internal */
export type LibrariesDeleteV1Request$Outbound = {
  library_id: string;
};

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

export function librariesDeleteV1RequestToJSON(
  librariesDeleteV1Request: LibrariesDeleteV1Request,
): string {
  return JSON.stringify(
    LibrariesDeleteV1Request$outboundSchema.parse(librariesDeleteV1Request),
  );
}
