@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
78 lines • 2.47 kB
TypeScript
/**
* Logs Endpoint Schemas
*
* Schemas for the /api/v1/logs endpoint.
* PRD #354: REST API Route Registry with Auto-Generated OpenAPI and Test Fixtures
* PRD #328: Logs endpoint for UI
*/
import { z } from 'zod';
/**
* Logs response data
* GET /api/v1/logs
*/
export declare const LogsDataSchema: z.ZodObject<{
logs: z.ZodString;
container: z.ZodString;
containerCount: z.ZodNumber;
}, z.core.$strip>;
export type LogsData = z.infer<typeof LogsDataSchema>;
export declare const LogsResponseSchema: z.ZodObject<{
success: z.ZodLiteral<true>;
data: z.ZodObject<{
logs: z.ZodString;
container: z.ZodString;
containerCount: 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 LogsResponse = z.infer<typeof LogsResponseSchema>;
/**
* Logs endpoint error schemas
*/
export declare const LogsBadRequestErrorSchema: 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.ZodEnum<{
BAD_REQUEST: "BAD_REQUEST";
INVALID_PARAMETER: "INVALID_PARAMETER";
}>;
message: z.ZodString;
details: z.ZodOptional<z.ZodAny>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const LogsPluginUnavailableErrorSchema: 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 LogsErrorSchema: 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<"LOGS_ERROR">;
message: z.ZodString;
details: z.ZodOptional<z.ZodAny>;
}, z.core.$strip>;
}, z.core.$strip>;
//# sourceMappingURL=logs.d.ts.map