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

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

export type LibrariesDocumentsReprocessV1Request = {
  libraryId: string;
  documentId: string;
};

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

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

export function librariesDocumentsReprocessV1RequestToJSON(
  librariesDocumentsReprocessV1Request: LibrariesDocumentsReprocessV1Request,
): string {
  return JSON.stringify(
    LibrariesDocumentsReprocessV1Request$outboundSchema.parse(
      librariesDocumentsReprocessV1Request,
    ),
  );
}
