UNPKG

@vfarcic/dot-ai

Version:

AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance

127 lines 4.31 kB
/** * Events Endpoint Schemas * * Schemas for the /api/v1/events endpoint. * PRD #354: REST API Route Registry with Auto-Generated OpenAPI and Test Fixtures * PRD #328: Events endpoint for UI */ import { z } from 'zod'; /** * Kubernetes event involved object reference */ export declare const EventInvolvedObjectSchema: z.ZodObject<{ kind: z.ZodString; name: z.ZodString; namespace: z.ZodOptional<z.ZodString>; uid: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type EventInvolvedObject = z.infer<typeof EventInvolvedObjectSchema>; /** * Kubernetes event schema */ export declare const KubernetesEventSchema: z.ZodObject<{ lastTimestamp: z.ZodOptional<z.ZodString>; type: z.ZodString; reason: z.ZodString; message: z.ZodString; involvedObject: z.ZodObject<{ kind: z.ZodString; name: z.ZodString; namespace: z.ZodOptional<z.ZodString>; uid: z.ZodOptional<z.ZodString>; }, z.core.$strip>; count: z.ZodOptional<z.ZodNumber>; firstTimestamp: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type KubernetesEvent = z.infer<typeof KubernetesEventSchema>; /** * Events response data * GET /api/v1/events */ export declare const EventsDataSchema: z.ZodObject<{ events: z.ZodArray<z.ZodObject<{ lastTimestamp: z.ZodOptional<z.ZodString>; type: z.ZodString; reason: z.ZodString; message: z.ZodString; involvedObject: z.ZodObject<{ kind: z.ZodString; name: z.ZodString; namespace: z.ZodOptional<z.ZodString>; uid: z.ZodOptional<z.ZodString>; }, z.core.$strip>; count: z.ZodOptional<z.ZodNumber>; firstTimestamp: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; count: z.ZodNumber; }, z.core.$strip>; export type EventsData = z.infer<typeof EventsDataSchema>; export declare const EventsResponseSchema: z.ZodObject<{ success: z.ZodLiteral<true>; data: z.ZodObject<{ events: z.ZodArray<z.ZodObject<{ lastTimestamp: z.ZodOptional<z.ZodString>; type: z.ZodString; reason: z.ZodString; message: z.ZodString; involvedObject: z.ZodObject<{ kind: z.ZodString; name: z.ZodString; namespace: z.ZodOptional<z.ZodString>; uid: z.ZodOptional<z.ZodString>; }, z.core.$strip>; count: z.ZodOptional<z.ZodNumber>; firstTimestamp: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; count: z.ZodNumber; }, z.core.$strip>; meta: z.ZodOptional<z.ZodObject<{ timestamp: z.ZodString; requestId: z.ZodOptional<z.ZodString>; version: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; export type EventsResponse = z.infer<typeof EventsResponseSchema>; /** * Events endpoint error schemas */ export declare const EventsBadRequestErrorSchema: z.ZodObject<{ success: z.ZodLiteral<false>; meta: z.ZodOptional<z.ZodObject<{ timestamp: z.ZodString; requestId: z.ZodOptional<z.ZodString>; version: z.ZodString; }, z.core.$strip>>; error: z.ZodObject<{ code: z.ZodLiteral<"BAD_REQUEST">; message: z.ZodString; details: z.ZodOptional<z.ZodAny>; }, z.core.$strip>; }, z.core.$strip>; export declare const EventsPluginUnavailableErrorSchema: z.ZodObject<{ success: z.ZodLiteral<false>; meta: z.ZodOptional<z.ZodObject<{ timestamp: z.ZodString; requestId: z.ZodOptional<z.ZodString>; version: z.ZodString; }, z.core.$strip>>; error: z.ZodObject<{ code: z.ZodLiteral<"PLUGIN_UNAVAILABLE">; message: z.ZodString; details: z.ZodOptional<z.ZodAny>; }, z.core.$strip>; }, z.core.$strip>; export declare const EventsErrorSchema: z.ZodObject<{ success: z.ZodLiteral<false>; meta: z.ZodOptional<z.ZodObject<{ timestamp: z.ZodString; requestId: z.ZodOptional<z.ZodString>; version: z.ZodString; }, z.core.$strip>>; error: z.ZodObject<{ code: z.ZodLiteral<"EVENTS_ERROR">; message: z.ZodString; details: z.ZodOptional<z.ZodAny>; }, z.core.$strip>; }, z.core.$strip>; //# sourceMappingURL=events.d.ts.map