UNPKG

@jupiterone/jupiterone-mcp

Version:

Model Context Protocol server for JupiterOne account rules and rule details

16 lines 1.03 kB
import type { ToolResult } from './types.js'; /** * Redacts string literals in a J1QL query, preserving structure (entity types, operators, * property names) so query *shape* is captured for usage analytics without literal values. * * Ported from query-engine's `redactCypher` (sdk-graph/src/cypher/redact.ts), adapted for J1QL * (single- and double-quoted literals). The patterns span escaped quotes (`\'` / `\"`) so a * literal is always replaced in full; imperfect boundaries only ever over-redact, never leak. */ export declare function redactJ1ql(query: string): string; export declare function truncateReason(reason: string): string; /** Allowlisted, sanitized summary of tool inputs for usage telemetry. */ export declare function summarizeInput(params: Record<string, unknown>): Record<string, unknown>; /** Result metadata (counts, pagination, status) derived from the structured payload. */ export declare function summarizeResult(result: ToolResult): Record<string, unknown>; //# sourceMappingURL=usage.d.ts.map