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

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

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

export function librariesShareListV1RequestToJSON(
  librariesShareListV1Request: LibrariesShareListV1Request,
): string {
  return JSON.stringify(
    LibrariesShareListV1Request$outboundSchema.parse(
      librariesShareListV1Request,
    ),
  );
}
