UNPKG

querysharp-mcp

Version:

MCP server client for connecting to Querysharp database performance monitoring API

127 lines 3.83 kB
import { z } from 'zod'; export declare enum QueryFixType { QUERY_REWRITE = "query_rewrite", INDEX_MISSING = "index_missing" } export declare enum QueryFixSeverity { CRITICAL = "critical", IMPORTANT = "important", TO_CONSIDER = "to_consider" } export declare const getDatabaseFixesDtoOutSchema: z.ZodObject<{ fixes: z.ZodArray<z.ZodObject<{ uuid: z.ZodString; createdAt: z.ZodString; queryFixType: z.ZodNativeEnum<typeof QueryFixType>; fixDescription: z.ZodString; severity: z.ZodNativeEnum<typeof QueryFixSeverity>; guessMissingIndex: z.ZodNullable<z.ZodObject<{ indexName: z.ZodString; indexDefinition: z.ZodString; qsTableName: z.ZodString; }, "strip", z.ZodTypeAny, { indexName: string; indexDefinition: string; qsTableName: string; }, { indexName: string; indexDefinition: string; qsTableName: string; }>>; guessQueryRewrite: z.ZodNullable<z.ZodObject<{ originalQuery: z.ZodString; fixedQuery: z.ZodString; }, "strip", z.ZodTypeAny, { originalQuery: string; fixedQuery: string; }, { originalQuery: string; fixedQuery: string; }>>; }, "strip", z.ZodTypeAny, { uuid: string; createdAt: string; queryFixType: QueryFixType; fixDescription: string; severity: QueryFixSeverity; guessMissingIndex: { indexName: string; indexDefinition: string; qsTableName: string; } | null; guessQueryRewrite: { originalQuery: string; fixedQuery: string; } | null; }, { uuid: string; createdAt: string; queryFixType: QueryFixType; fixDescription: string; severity: QueryFixSeverity; guessMissingIndex: { indexName: string; indexDefinition: string; qsTableName: string; } | null; guessQueryRewrite: { originalQuery: string; fixedQuery: string; } | null; }>, "many">; }, "strip", z.ZodTypeAny, { fixes: { uuid: string; createdAt: string; queryFixType: QueryFixType; fixDescription: string; severity: QueryFixSeverity; guessMissingIndex: { indexName: string; indexDefinition: string; qsTableName: string; } | null; guessQueryRewrite: { originalQuery: string; fixedQuery: string; } | null; }[]; }, { fixes: { uuid: string; createdAt: string; queryFixType: QueryFixType; fixDescription: string; severity: QueryFixSeverity; guessMissingIndex: { indexName: string; indexDefinition: string; qsTableName: string; } | null; guessQueryRewrite: { originalQuery: string; fixedQuery: string; } | null; }[]; }>; export declare const getProjectsDtoOutSchema: z.ZodArray<z.ZodObject<{ uuid: z.ZodString; name: z.ZodString; tableNames: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { uuid: string; name: string; tableNames: string[]; }, { uuid: string; name: string; tableNames: string[]; }>, "many">; export type GetDatabaseFixesDtoOut = z.infer<typeof getDatabaseFixesDtoOutSchema>; export type GetProjectsDtoOut = z.infer<typeof getProjectsDtoOutSchema>; export type Project = GetProjectsDtoOut[0]; export type DatabaseFix = GetDatabaseFixesDtoOut['fixes'][0]; export interface QuerysharpConfig { apiKey: string; } //# sourceMappingURL=types.d.ts.map