import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListDocumentsRequest = { /** * An opaque cursor for pagination */ cursor?: string | null | undefined; /** * The number of items per page (must be greater than 0 and less than or equal to 100) */ pageSize?: number | undefined; /** * The metadata search filter. Returns only items which match the filter. The following filter operators are supported: $eq - Equal to (number, string, boolean), $ne - Not equal to (number, string, boolean), $gt - Greater than (number), $gte - Greater than or equal to (number), $lt - Less than (number), $lte - Less than or equal to (number), $in - In array (string or number), $nin - Not in array (string or number). The operators can be combined with AND and OR. Read [Metadata & Filters guide](https://docs.ragie.ai/docs/metadata-filters) for more details and examples. */ filter?: string | null | undefined; /** * An optional partition to scope the request to. If omitted, accounts created after 1/9/2025 will have the request scoped to the default partition, while older accounts will have the request scoped to all partitions. Older accounts may opt in to strict partition scoping by contacting support@ragie.ai. Older accounts using the partitions feature are strongly recommended to scope the request to a partition. */ partition?: string | null | undefined; }; export type ListDocumentsResponse = { result: components.DocumentList; }; /** @internal */ export declare const ListDocumentsRequest$inboundSchema: z.ZodType; /** @internal */ export type ListDocumentsRequest$Outbound = { cursor?: string | null | undefined; page_size: number; filter?: string | null | undefined; partition?: string | null | undefined; }; /** @internal */ export declare const ListDocumentsRequest$outboundSchema: z.ZodType; export declare function listDocumentsRequestToJSON(listDocumentsRequest: ListDocumentsRequest): string; export declare function listDocumentsRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListDocumentsResponse$inboundSchema: z.ZodType; /** @internal */ export type ListDocumentsResponse$Outbound = { Result: components.DocumentList$Outbound; }; /** @internal */ export declare const ListDocumentsResponse$outboundSchema: z.ZodType; export declare function listDocumentsResponseToJSON(listDocumentsResponse: ListDocumentsResponse): string; export declare function listDocumentsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=listdocuments.d.ts.map