/** * Type definitions for telemetry events */ import { z } from 'zod'; export declare const BaseTelemetryEventSchema: z.ZodObject<{ name: z.ZodString; properties: z.ZodDefault>; timestamp: z.ZodOptional; sessionId: z.ZodOptional; userId: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; properties: Record; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }, { name: string; properties?: Record | undefined; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }>; export type BaseTelemetryEvent = z.infer; export declare const TelemetryConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; debug: z.ZodDefault; endpoint: z.ZodOptional; apiKey: z.ZodOptional; flushInterval: z.ZodDefault; maxBatchSize: z.ZodDefault; }, "strip", z.ZodTypeAny, { debug: boolean; enabled: boolean; flushInterval: number; maxBatchSize: number; endpoint?: string | undefined; apiKey?: string | undefined; }, { debug?: boolean | undefined; endpoint?: string | undefined; enabled?: boolean | undefined; apiKey?: string | undefined; flushInterval?: number | undefined; maxBatchSize?: number | undefined; }>; export type TelemetryConfig = z.infer; export declare const AgentStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; sessionId: z.ZodOptional; userId: z.ZodOptional; } & { name: z.ZodLiteral<"agent_start">; properties: z.ZodObject<{ model: z.ZodString; provider: z.ZodString; maxSteps: z.ZodOptional; useVision: z.ZodOptional; }, "strip", z.ZodTypeAny, { model: string; provider: string; useVision?: boolean | undefined; maxSteps?: number | undefined; }, { model: string; provider: string; useVision?: boolean | undefined; maxSteps?: number | undefined; }>; }, "strip", z.ZodTypeAny, { name: "agent_start"; properties: { model: string; provider: string; useVision?: boolean | undefined; maxSteps?: number | undefined; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }, { name: "agent_start"; properties: { model: string; provider: string; useVision?: boolean | undefined; maxSteps?: number | undefined; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }>; export type AgentStartEvent = z.infer; export declare const AgentStepEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; sessionId: z.ZodOptional; userId: z.ZodOptional; } & { name: z.ZodLiteral<"agent_step">; properties: z.ZodObject<{ stepNumber: z.ZodNumber; action: z.ZodString; success: z.ZodBoolean; duration: z.ZodNumber; }, "strip", z.ZodTypeAny, { success: boolean; action: string; duration: number; stepNumber: number; }, { success: boolean; action: string; duration: number; stepNumber: number; }>; }, "strip", z.ZodTypeAny, { name: "agent_step"; properties: { success: boolean; action: string; duration: number; stepNumber: number; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }, { name: "agent_step"; properties: { success: boolean; action: string; duration: number; stepNumber: number; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }>; export type AgentStepEvent = z.infer; export declare const AgentCompleteEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; sessionId: z.ZodOptional; userId: z.ZodOptional; } & { name: z.ZodLiteral<"agent_complete">; properties: z.ZodObject<{ totalSteps: z.ZodNumber; success: z.ZodBoolean; duration: z.ZodNumber; error: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; duration: number; totalSteps: number; error?: string | undefined; }, { success: boolean; duration: number; totalSteps: number; error?: string | undefined; }>; }, "strip", z.ZodTypeAny, { name: "agent_complete"; properties: { success: boolean; duration: number; totalSteps: number; error?: string | undefined; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }, { name: "agent_complete"; properties: { success: boolean; duration: number; totalSteps: number; error?: string | undefined; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }>; export type AgentCompleteEvent = z.infer; export declare const BrowserActionEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; sessionId: z.ZodOptional; userId: z.ZodOptional; } & { name: z.ZodLiteral<"browser_action">; properties: z.ZodObject<{ action: z.ZodString; url: z.ZodOptional; success: z.ZodBoolean; duration: z.ZodNumber; error: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; action: string; duration: number; url?: string | undefined; error?: string | undefined; }, { success: boolean; action: string; duration: number; url?: string | undefined; error?: string | undefined; }>; }, "strip", z.ZodTypeAny, { name: "browser_action"; properties: { success: boolean; action: string; duration: number; url?: string | undefined; error?: string | undefined; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }, { name: "browser_action"; properties: { success: boolean; action: string; duration: number; url?: string | undefined; error?: string | undefined; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }>; export type BrowserActionEvent = z.infer; export declare const LLMCallEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; sessionId: z.ZodOptional; userId: z.ZodOptional; } & { name: z.ZodLiteral<"llm_call">; properties: z.ZodObject<{ provider: z.ZodString; model: z.ZodString; inputTokens: z.ZodOptional; outputTokens: z.ZodOptional; duration: z.ZodNumber; success: z.ZodBoolean; error: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; model: string; duration: number; provider: string; error?: string | undefined; inputTokens?: number | undefined; outputTokens?: number | undefined; }, { success: boolean; model: string; duration: number; provider: string; error?: string | undefined; inputTokens?: number | undefined; outputTokens?: number | undefined; }>; }, "strip", z.ZodTypeAny, { name: "llm_call"; properties: { success: boolean; model: string; duration: number; provider: string; error?: string | undefined; inputTokens?: number | undefined; outputTokens?: number | undefined; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }, { name: "llm_call"; properties: { success: boolean; model: string; duration: number; provider: string; error?: string | undefined; inputTokens?: number | undefined; outputTokens?: number | undefined; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }>; export type LLMCallEvent = z.infer; export declare const MCPClientEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; sessionId: z.ZodOptional; userId: z.ZodOptional; } & { name: z.ZodLiteral<"mcp_client">; properties: z.ZodObject<{ serverName: z.ZodString; action: z.ZodString; toolName: z.ZodOptional; success: z.ZodBoolean; duration: z.ZodNumber; error: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; action: string; duration: number; serverName: string; error?: string | undefined; toolName?: string | undefined; }, { success: boolean; action: string; duration: number; serverName: string; error?: string | undefined; toolName?: string | undefined; }>; }, "strip", z.ZodTypeAny, { name: "mcp_client"; properties: { success: boolean; action: string; duration: number; serverName: string; error?: string | undefined; toolName?: string | undefined; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }, { name: "mcp_client"; properties: { success: boolean; action: string; duration: number; serverName: string; error?: string | undefined; toolName?: string | undefined; }; timestamp?: Date | undefined; sessionId?: string | undefined; userId?: string | undefined; }>; export type MCPClientEvent = z.infer; export type TelemetryEvent = AgentStartEvent | AgentStepEvent | AgentCompleteEvent | BrowserActionEvent | LLMCallEvent | MCPClientEvent; //# sourceMappingURL=types.d.ts.map