/** * Zod schemas for the session-tracker, session-hierarchy, and session-context tools. * * Defines input contracts for agent-initiated session knowledge queries. * All operations are read-only (CQRS read-side). Every sessionId field is * validated with a Zod `.refine()` that rejects path separators and * traversal sequences before the handler ever sees the value (GAP-05). * * @module schema-kernel/session-tracker-schema */ import { z } from "zod"; /** * Reusable session ID refinement that rejects path separators and traversal * sequences at the Zod boundary. This is the first line of defense before * `safeSessionPath()` applies a second guard in each handler (defense in depth). */ export declare const safeSessionId: z.ZodString; /** * Input schema for the session-tracker tool. * * Six actions: export-session, get-status, get-summary, list-sessions, search-sessions, * filter-sessions. * Backward-compatible with existing action names. */ export declare const SessionTrackerInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ action: z.ZodLiteral<"export-session">; sessionId: z.ZodString; format: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"get-status">; sessionId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"get-summary">; sessionId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"list-sessions">; limit: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"search-sessions">; query: z.ZodString; limit: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"filter-sessions">; status: z.ZodOptional; agentType: z.ZodOptional; minDepth: z.ZodOptional; maxDepth: z.ZodOptional; timeRange: z.ZodOptional; before: z.ZodOptional; }, z.core.$strip>>; limit: z.ZodDefault>; }, z.core.$strip>], "action">; /** Inferred type for session-tracker tool input. */ export type SessionTrackerInput = z.infer; /** * Input schema for the session-hierarchy tool. * * Four actions: get-children, get-parent-chain, get-delegation-depth, get-manifest. */ export declare const SessionHierarchyInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ action: z.ZodLiteral<"get-children">; sessionId: z.ZodString; includeStatus: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"get-parent-chain">; sessionId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"get-delegation-depth">; sessionId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"get-manifest">; sessionId: z.ZodString; }, z.core.$strip>], "action">; /** Inferred type for session-hierarchy tool input. */ export type SessionHierarchyInput = z.infer; /** * Input schema for the session-context tool. * * Four actions: find-related, cross-reference, synthesize-context, aggregate. */ export declare const SessionContextInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ action: z.ZodLiteral<"find-related">; sessionId: z.ZodString; maxRelated: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"cross-reference">; sessionId: z.ZodString; query: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"synthesize-context">; sessionId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"aggregate">; groupBy: z.ZodEnum<{ status: "status"; subagentType: "subagentType"; }>; }, z.core.$strip>], "action">; /** Inferred type for session-context tool input. */ export type SessionContextInput = z.infer; //# sourceMappingURL=session-tracker.schema.d.ts.map