/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 07f16fafde0a */ import * as z from "zod/v3"; /** * Describes the request body of the /processalldocuments API call */ export type ProcessAllDocumentsRequest = { /** * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are processed. */ datasource?: string | undefined; }; /** @internal */ export type ProcessAllDocumentsRequest$Outbound = { datasource?: string | undefined; }; /** @internal */ export const ProcessAllDocumentsRequest$outboundSchema: z.ZodType< ProcessAllDocumentsRequest$Outbound, z.ZodTypeDef, ProcessAllDocumentsRequest > = z.object({ datasource: z.string().optional(), }); export function processAllDocumentsRequestToJSON( processAllDocumentsRequest: ProcessAllDocumentsRequest, ): string { return JSON.stringify( ProcessAllDocumentsRequest$outboundSchema.parse(processAllDocumentsRequest), ); }