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

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

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

export function librariesGetV1RequestToJSON(
  librariesGetV1Request: LibrariesGetV1Request,
): string {
  return JSON.stringify(
    LibrariesGetV1Request$outboundSchema.parse(librariesGetV1Request),
  );
}
