/** * Event emission types matching Avro schemas for SDK telemetry * * These interfaces correspond to the Avro schemas: * - application_lifecycle_event.avsc * - error_occurred_event.avsc */ export interface BaseEvent { event_id: string; timestamp_ms: number; release_id: string; customuser_id?: number | null; account_id?: number | null; identity_id?: number | null; visitor_id?: string | null; correlation_id?: string | null; } export interface ErrorOccurredEvent extends BaseEvent { zap_id?: number | null; node_id?: number | null; selected_api?: string | null; app_id?: number | null; app_version_id?: number | null; error_message: string; error_type?: string | null; error_status_code?: number | null; error_stack_trace?: string | null; error_source_method?: string | null; error_source_file?: string | null; error_line_number?: number | null; operation_type?: string | null; operation_key?: string | null; error_severity?: string | null; is_user_facing: boolean; is_recoverable?: boolean | null; sdk_version?: string | null; error_metadata?: Record | null; parent_error_id?: string | null; error_occurred_timestamp_ms?: number | null; error_code?: string | null; recovery_attempted?: boolean | null; recovery_action?: string | null; recovery_successful?: boolean | null; environment?: string | null; execution_time_before_error_ms?: number | null; } export interface ApplicationLifecycleEvent extends BaseEvent { lifecycle_event_type: "startup" | "exit" | "signal_termination" | "login_success"; selected_api?: string | null; app_id?: number | null; app_version_id?: number | null; sdk_version?: string | null; cli_version?: string | null; exit_code?: number | null; signal_name?: string | null; uptime_ms?: number | null; memory_usage_bytes?: number | null; peak_memory_usage_bytes?: number | null; cpu_time_ms?: number | null; os_platform?: string | null; os_release?: string | null; os_architecture?: string | null; platform_versions?: Record | null; environment?: string | null; is_ci_environment?: boolean | null; ci_platform?: string | null; session_id?: string | null; metadata?: Record | null; process_argv?: (string | null)[] | null; is_graceful_shutdown?: boolean | null; shutdown_duration_ms?: number | null; active_requests_count?: number | null; } export interface MethodCalledEvent extends BaseEvent { method_name: string; method_module: string | null; execution_duration_ms: number; success_flag: boolean; error_message: string | null; error_type: string | null; argument_count: number; is_paginated: boolean; sdk_version: string; environment: string | null; selected_api: string | null; app_id: number | null; app_version_id: number | null; zap_id: number | null; node_id: number | null; operation_type: string | null; operation_key: string | null; call_context: string | null; is_retry: boolean; retry_attempt: number | null; argument_types: string[] | null; return_type: string | null; caller_method: string | null; call_stack_depth: number | null; is_synchronous: boolean | null; cpu_time_ms: number | null; memory_usage_bytes: number | null; } export type TelemetryEvent = ErrorOccurredEvent | ApplicationLifecycleEvent | MethodCalledEvent; export type TelemetryEventType = "error_occurred" | "application_lifecycle" | "method_called"; //# sourceMappingURL=telemetry-events.d.ts.map