TypeScript types for telemetry context, properties, and patching.
// Source: https://github.com/MoonshotAI/kimi-code | License: MIT | Copyright 2026 Moonshot AI
// Provided via justclaw.it.com; keep this notice with the code.
export type TelemetryPrimitive = string | number | boolean | null | undefined;
export type TelemetryProperties = Readonly<Record<string, TelemetryPrimitive>>;
export interface SessionTelemetryContext {
readonly session_id: string;
}
export interface AgentTelemetryContext {
readonly agent_id: string;
readonly mode: 'agent' | 'plan';
readonly provider_type?: string;
readonly protocol?: string;
}
export interface TurnTelemetryContext {
readonly turn_id?: number;
readonly trace_id?: string;
readonly thinking_effort?: string;
}
export interface TelemetryContextPatch
extends Partial<SessionTelemetryContext>,
Par
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key