UNPKG

@posthog/wizard

Version:

The PostHog wizard helps you to configure your project

106 lines (105 loc) 3.97 kB
import z from 'zod'; import type { CloudRegion } from '../../utils/types'; export declare const DefaultMCPClientConfig: z.ZodObject<{ mcpServers: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{ command: z.ZodOptional<z.ZodString>; args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }>, z.ZodObject<{ url: z.ZodString; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; headers?: Record<string, string> | undefined; }, { url: string; headers?: Record<string, string> | undefined; }>]>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ mcpServers: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{ command: z.ZodOptional<z.ZodString>; args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }>, z.ZodObject<{ url: z.ZodString; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; headers?: Record<string, string> | undefined; }, { url: string; headers?: Record<string, string> | undefined; }>]>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ mcpServers: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{ command: z.ZodOptional<z.ZodString>; args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }>, z.ZodObject<{ url: z.ZodString; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; headers?: Record<string, string> | undefined; }, { url: string; headers?: Record<string, string> | undefined; }>]>>; }, z.ZodTypeAny, "passthrough">>; export declare const AVAILABLE_FEATURES: { 'Data & Analytics': { value: string; label: string; hint: string; }[]; 'Development Tools': { value: string; label: string; hint: string; }[]; 'Platform & Management': { value: string; label: string; hint: string; }[]; }; export declare const ALL_FEATURE_VALUES: string[]; type MCPServerType = 'sse' | 'streamable-http'; export declare const buildMCPUrl: (type: MCPServerType, selectedFeatures?: string[], local?: boolean, region?: CloudRegion) => string; export declare const getNativeHTTPServerConfig: (apiKey: string | undefined, type: MCPServerType, selectedFeatures?: string[], local?: boolean, region?: CloudRegion) => Record<string, unknown>; export declare const getDefaultServerConfig: (apiKey: string | undefined, type: MCPServerType, selectedFeatures?: string[], local?: boolean, region?: CloudRegion) => { command: string; args: string[]; env?: undefined; } | { command: string; args: string[]; env: { POSTHOG_AUTH_HEADER: string; }; }; export {};