/** * Copyright 2025 The Artinet Project * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Type definitions for the Search module. * * Defines schemas and types for entity search operations: * - Pagination cursor structure * - Search request/response schemas * - Pipeline context and interceptor types * * @module search/types/definitions */ import { z } from "zod/v4"; /** * Schema for pagination cursor. * Enables efficient pagination through large result sets. */ export declare const CursorSchema: z.ZodObject<{ startIndex: z.ZodDefault; batchSize: z.ZodDefault; }, z.core.$strip>; /** Type alias for pagination cursor */ export type SearchCursor = z.output; /** * Schema for search request validation. */ export declare const SearchRequestSchema: z.ZodObject<{ id: z.ZodOptional>; requestId: z.ZodOptional; timestamp: z.ZodOptional; queries: z.ZodArray; size: z.ZodDefault; cursor: z.ZodOptional; batchSize: z.ZodDefault; }, z.core.$strip>>; options: z.ZodOptional>; }, z.core.$strip>; /** Type alias for validated SearchRequest */ export type SearchRequest = z.output; /** * Schema for search response validation. */ export declare const SearchResponseSchema: z.ZodObject<{ id: z.ZodOptional>; requestId: z.ZodOptional; timestamp: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; results: z.ZodRecord; size: z.ZodNumber; cursor: z.ZodObject<{ startIndex: z.ZodDefault; batchSize: z.ZodDefault; }, z.core.$strip>; options: z.ZodOptional>; }, z.core.$strip>; /** Type alias for validated SearchResponse */ export type SearchResponse = z.output; //# sourceMappingURL=search.d.ts.map