/*
 * 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 LibrariesDeleteV1Request = {
  libraryId: string;
};

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

/** @internal */
export const LibrariesDeleteV1Request$outboundSchema: z.ZodType<
  LibrariesDeleteV1Request$Outbound,
  z.ZodTypeDef,
  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),
  );
}
