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

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

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

export function librariesDocumentsGetExtractedTextSignedUrlV1RequestToJSON(
  librariesDocumentsGetExtractedTextSignedUrlV1Request:
    LibrariesDocumentsGetExtractedTextSignedUrlV1Request,
): string {
  return JSON.stringify(
    LibrariesDocumentsGetExtractedTextSignedUrlV1Request$outboundSchema.parse(
      librariesDocumentsGetExtractedTextSignedUrlV1Request,
    ),
  );
}
