//#region src/constants/otel-attributes.ts
const DELEGATION_FROM_SUB_AGENT_ID = "delegation.from_sub_agent_id";
const DELEGATION_TO_SUB_AGENT_ID = "delegation.to_sub_agent_id";
const DELEGATION_ID = "delegation.id";
const TRANSFER_FROM_SUB_AGENT_ID = "transfer.from_sub_agent_id";
const TRANSFER_TO_SUB_AGENT_ID = "transfer.to_sub_agent_id";
const SPAN_NAMES = {
	AI_TOOL_CALL: "ai.toolCall",
	CONTEXT_RESOLUTION: "context-resolver.resolve_single_fetch_definition",
	CONTEXT_HANDLE: "context.handle_context_resolution",
	AGENT_GENERATION: "agent.generate",
	CONTEXT_FETCHER: "context-fetcher.http-request",
	ARTIFACT_PROCESSING: "agent_session.process_artifact",
	TOOL_APPROVAL_REQUESTED: "tool.approval_requested",
	TOOL_APPROVAL_APPROVED: "tool.approval_approved",
	TOOL_APPROVAL_DENIED: "tool.approval_denied"
};
const AI_OPERATIONS = {
	GENERATE_TEXT: "ai.generateText.doGenerate",
	STREAM_TEXT: "ai.streamText.doStream",
	STREAM_OBJECT: "ai.streamObject.doStream"
};
/** OpenTelemetry span attribute keys used for tracing */
const SPAN_KEYS = {
	SPAN_ID: "spanID",
	TRACE_ID: "traceID",
	DURATION_NANO: "durationNano",
	TIMESTAMP: "timestamp",
	HAS_ERROR: "hasError",
	STATUS_MESSAGE: "status_message",
	OTEL_STATUS_CODE: "otel.status_code",
	OTEL_STATUS_DESCRIPTION: "otel.status_description",
	AGENT_ID: "agent.id",
	AGENT_NAME: "agent.name",
	TENANT_ID: "tenant.id",
	PROJECT_ID: "project.id",
	SUB_AGENT_NAME: "subAgent.name",
	SUB_AGENT_ID: "subAgent.id",
	AI_OPERATION_ID: "ai.operationId",
	AI_RESPONSE_TIMESTAMP: "ai.response.timestamp",
	AI_RESPONSE_CONTENT: "ai.response.content",
	AI_RESPONSE_TEXT: "ai.response.text",
	AI_RESPONSE_OBJECT: "ai.response.object",
	AI_RESPONSE_MODEL: "ai.response.model",
	AI_RESPONSE_TOOL_CALLS: "ai.response.toolCalls",
	AI_PROMPT_MESSAGES: "ai.prompt.messages",
	AI_MODEL_PROVIDER: "ai.model.provider",
	AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId",
	AI_TELEMETRY_SUB_AGENT_ID: "ai.telemetry.metadata.subAgentId",
	AI_TELEMETRY_SUB_AGENT_NAME: "ai.telemetry.metadata.subAgentName",
	AI_MODEL_ID: "ai.model.id",
	AI_TOOL_CALL_NAME: "ai.toolCall.name",
	AI_TOOL_CALL_RESULT: "ai.toolCall.result",
	AI_TOOL_CALL_ARGS: "ai.toolCall.args",
	AI_TOOL_CALL_ID: "ai.toolCall.id",
	AI_TOOL_TYPE: "ai.toolType",
	AI_TOOL_CALL_MCP_SERVER_ID: "ai.toolCall.mcpServerId",
	AI_TOOL_CALL_MCP_SERVER_NAME: "ai.toolCall.mcpServerName",
	TOOL_PURPOSE: "tool.purpose",
	TOOL_NAME: "tool.name",
	TOOL_CALL_ID: "tool.callId",
	GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens",
	GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens",
	CONTEXT_URL: "context.url",
	CONTEXT_CONFIG_ID: "context.context_config_id",
	CONTEXT_AGENT_ID: "context.agent_id",
	CONTEXT_HEADERS_KEYS: "context.headers_keys",
	MESSAGE_CONTENT: "message.content",
	MESSAGE_TIMESTAMP: "message.timestamp",
	MCP_TOOL_DESCRIPTION: "mcp.tool.description",
	DELEGATION_FROM_SUB_AGENT_ID,
	DELEGATION_TO_SUB_AGENT_ID,
	DELEGATION_ID,
	TRANSFER_FROM_SUB_AGENT_ID,
	TRANSFER_TO_SUB_AGENT_ID,
	HTTP_URL: "http.url",
	HTTP_STATUS_CODE: "http.status_code",
	HTTP_RESPONSE_BODY_SIZE: "http.response.body_size",
	NAME: "name",
	PARENT_SPAN_ID: "parentSpanID",
	CONVERSATION_ID: "conversation.id",
	ARTIFACT_ID: "artifact.id",
	ARTIFACT_TYPE: "artifact.type",
	ARTIFACT_TOOL_CALL_ID: "artifact.tool_call_id",
	ARTIFACT_DATA: "artifact.data",
	ARTIFACT_NAME: "artifact.name",
	ARTIFACT_DESCRIPTION: "artifact.description"
};
const UNKNOWN_VALUE = "unknown";
/** Activity Types */
const ACTIVITY_TYPES = {
	TOOL_CALL: "tool_call",
	AI_GENERATION: "ai_generation",
	AGENT_GENERATION: "agent_generation",
	CONTEXT_FETCH: "context_fetch",
	CONTEXT_RESOLUTION: "context_resolution",
	USER_MESSAGE: "user_message",
	AI_ASSISTANT_MESSAGE: "ai_assistant_message",
	AI_MODEL_STREAMED_TEXT: "ai_model_streamed_text",
	AI_MODEL_STREAMED_OBJECT: "ai_model_streamed_object",
	TOOL_APPROVAL_REQUESTED: "tool_approval_requested",
	TOOL_APPROVAL_APPROVED: "tool_approval_approved",
	TOOL_APPROVAL_DENIED: "tool_approval_denied"
};
/** Activity Status Values */
const ACTIVITY_STATUS = {
	SUCCESS: "success",
	ERROR: "error",
	PENDING: "pending",
	WARNING: "warning"
};
/** Agent IDs */
const AGENT_IDS = {
	USER: "user",
	AI_ASSISTANT: "ai-assistant"
};
/** Activity Names */
const ACTIVITY_NAMES = {
	CONTEXT_FETCH: "Context Fetch",
	USER_MESSAGE: "User Message",
	AI_ASSISTANT_MESSAGE: "AI Assistant Message",
	AI_TEXT_GENERATION: "AI Text Generation",
	AI_STREAMING_TEXT: "AI Streaming Text",
	AI_STREAMING_OBJECT: "AI Streaming Object",
	UNKNOWN_AGENT: "Unknown Agent",
	USER: "User"
};
/** AI Tool Types */
const AI_TOOL_TYPES = {
	MCP: "mcp",
	TRANSFER: "transfer",
	DELEGATION: "delegation"
};

//#endregion
//#region src/constants/signoz-queries.ts
/** SigNoz query data types */
const DATA_TYPES = {
	STRING: "string",
	INT64: "int64",
	FLOAT64: "float64",
	BOOL: "bool"
};
/** SigNoz query field types */
const FIELD_TYPES = {
	TAG: "tag",
	RESOURCE: "resource"
};
/** Common SigNoz query property combinations */
const QUERY_FIELD_CONFIGS = {
	STRING_TAG: {
		dataType: DATA_TYPES.STRING,
		type: FIELD_TYPES.TAG,
		isColumn: false
	},
	STRING_TAG_COLUMN: {
		dataType: DATA_TYPES.STRING,
		type: FIELD_TYPES.TAG,
		isColumn: true
	},
	INT64_TAG: {
		dataType: DATA_TYPES.INT64,
		type: FIELD_TYPES.TAG,
		isColumn: false
	},
	INT64_TAG_COLUMN: {
		dataType: DATA_TYPES.INT64,
		type: FIELD_TYPES.TAG,
		isColumn: true
	},
	FLOAT64_TAG: {
		dataType: DATA_TYPES.FLOAT64,
		type: FIELD_TYPES.TAG,
		isColumn: false
	},
	FLOAT64_TAG_COLUMN: {
		dataType: DATA_TYPES.FLOAT64,
		type: FIELD_TYPES.TAG,
		isColumn: true
	},
	BOOL_TAG: {
		dataType: DATA_TYPES.BOOL,
		type: FIELD_TYPES.TAG,
		isColumn: false
	},
	BOOL_TAG_COLUMN: {
		dataType: DATA_TYPES.BOOL,
		type: FIELD_TYPES.TAG,
		isColumn: true
	}
};
/** Query Operators */
const OPERATORS = {
	EQUALS: "=",
	NOT_EQUALS: "!=",
	LESS_THAN: "<",
	GREATER_THAN: ">",
	LESS_THAN_OR_EQUAL: "<=",
	GREATER_THAN_OR_EQUAL: ">=",
	LIKE: "like",
	NOT_LIKE: "nlike",
	EXISTS: "exists",
	NOT_EXISTS: "nexists",
	IN: "in",
	NOT_IN: "nin",
	AND: "AND",
	OR: "OR"
};
/** Query Expressions */
const QUERY_EXPRESSIONS = {
	SPAN_NAMES: "spanNames",
	AGENT_MODEL_CALLS: "agentModelCalls",
	MODEL_CALLS: "modelCalls",
	LAST_ACTIVITY: "lastActivity",
	CONVERSATION_METADATA: "conversationMetadata",
	FILTERED_CONVERSATIONS: "filteredConversations",
	TOOLS: "tools",
	TRANSFERS: "transfers",
	DELEGATIONS: "delegations",
	AI_CALLS: "aiCalls",
	CONTEXT_ERRORS: "contextErrors",
	AGENT_GENERATION_ERRORS: "agentGenerationErrors",
	USER_MESSAGES: "userMessages",
	UNIQUE_AGENTS: "uniqueAgents",
	UNIQUE_MODELS: "uniqueModels",
	TOOL_CALLS: "toolCalls",
	CONTEXT_RESOLUTION: "contextResolution",
	CONTEXT_HANDLE: "contextHandle",
	AI_ASSISTANT_MESSAGES: "aiAssistantMessages",
	AI_GENERATIONS: "aiGenerations",
	AI_STREAMING_TEXT: "aiStreamingText",
	AI_STREAMING_OBJECT: "aiStreamingObject",
	CONTEXT_FETCHERS: "contextFetchers",
	DURATION_SPANS: "durationSpans",
	AGENT_GENERATIONS: "agentGenerations",
	SPANS_WITH_ERRORS: "spansWithErrors",
	ARTIFACT_PROCESSING: "artifactProcessing",
	TOOL_APPROVAL_REQUESTED: "toolApprovalRequested",
	TOOL_APPROVAL_APPROVED: "toolApprovalApproved",
	TOOL_APPROVAL_DENIED: "toolApprovalDenied"
};
/** Query Reduce Operations */
const REDUCE_OPERATIONS = {
	SUM: "sum",
	MAX: "max",
	MIN: "min",
	AVG: "avg",
	COUNT: "count"
};
/** Query Order Directions */
const ORDER_DIRECTIONS = {
	ASC: "asc",
	DESC: "desc"
};
/** Query Types */
const QUERY_TYPES = {
	BUILDER: "builder",
	CLICKHOUSE: "clickhouse",
	PROMQL: "promql"
};
/** Panel Types */
const PANEL_TYPES = {
	LIST: "list",
	TABLE: "table",
	AGENT: "agent",
	VALUE: "value"
};
/** Query Data Sources */
const DATA_SOURCES = {
	TRACES: "traces",
	METRICS: "metrics",
	LOGS: "logs"
};
/** Aggregate Operators */
const AGGREGATE_OPERATORS = {
	COUNT: "count",
	COUNT_DISTINCT: "count_distinct",
	SUM: "sum",
	AVG: "avg",
	MIN: "min",
	MAX: "max",
	NOOP: "noop"
};
/** Query Default Values */
const QUERY_DEFAULTS = {
	STEP: 60,
	STEP_INTERVAL: 60,
	OFFSET: 0,
	DISABLED: false,
	HAVING: [],
	LEGEND: "",
	LIMIT_UNLIMITED: 1e4,
	EMPTY_GROUP_BY: []
};

//#endregion
export { SPAN_NAMES as C, UNKNOWN_VALUE as E, SPAN_KEYS as S, TRANSFER_TO_SUB_AGENT_ID as T, AI_OPERATIONS as _, OPERATORS as a, DELEGATION_ID as b, QUERY_DEFAULTS as c, QUERY_TYPES as d, REDUCE_OPERATIONS as f, AGENT_IDS as g, ACTIVITY_TYPES as h, FIELD_TYPES as i, QUERY_EXPRESSIONS as l, ACTIVITY_STATUS as m, DATA_SOURCES as n, ORDER_DIRECTIONS as o, ACTIVITY_NAMES as p, DATA_TYPES as r, PANEL_TYPES as s, AGGREGATE_OPERATORS as t, QUERY_FIELD_CONFIGS as u, AI_TOOL_TYPES as v, TRANSFER_FROM_SUB_AGENT_ID as w, DELEGATION_TO_SUB_AGENT_ID as x, DELEGATION_FROM_SUB_AGENT_ID as y };
//# sourceMappingURL=signoz-queries.js.map