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

import * as z from "zod/v4";
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,
  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),
  );
}
