/** * TypeBox schema for the `GET /audit` query string. * * All Fastify query-string values arrive as strings. Integer fields * (`min_duration_ms`, `max_duration_ms`, `limit`, `offset`) and the `success` * boolean are declared as strings here so TypeBox validation passes on the raw * HTTP input. The route handler coerces them to the appropriate types before * forwarding to `auditHandler`. * * Fields excluded from the caller-visible surface (per plan Section 6): * - `resource_type` — always `"strategy"`, set by `RuntimeHandle.auditQuery`. * - `resource_id` — resolved wallet → strategyId, set by the handle. * - `user_ids` — server-controlled (the MCP API-key user). * - `usernames` — server-controlled (the MCP API-key user). * * @see senpi-hyperliquid-mcp/src/tools/audit.tools.ts `auditQueryInputSchema` * for the upstream MCP Zod schema this mirrors. */ import { type Static } from "@sinclair/typebox"; /** TypeBox schema for `GET /audit` query-string parameters. */ export declare const AuditQuery: import("@sinclair/typebox").TObject<{ /** * Wallet address to scope the audit query. * Required — used to look up the matching runtime handle. */ address: import("@sinclair/typebox").TString; /** Filter by exact tool name (e.g. `create_position`). */ tool_name: import("@sinclair/typebox").TOptional; /** * Filter by action classification. * One of: `read`, `create`, `update`, `delete`. */ action_type: import("@sinclair/typebox").TOptional, import("@sinclair/typebox").TLiteral<"create">, import("@sinclair/typebox").TLiteral<"update">, import("@sinclair/typebox").TLiteral<"delete">]>>; /** * Filter by success/failure. * Query strings arrive as text — coerce `"true"` / `"false"` in the route. */ success: import("@sinclair/typebox").TOptional, import("@sinclair/typebox").TLiteral<"false">]>>; /** ISO 8601 inclusive lower bound on `requested_at`. */ start_time: import("@sinclair/typebox").TOptional; /** ISO 8601 inclusive upper bound on `requested_at`. */ end_time: import("@sinclair/typebox").TOptional; /** * Minimum end-to-end duration in ms. * Arrives as a string; pattern restricts to non-negative integers so * `parseInt` never produces NaN. Coerced to integer in the route handler. */ min_duration_ms: import("@sinclair/typebox").TOptional; /** * Maximum end-to-end duration in ms. * Arrives as a string; pattern restricts to non-negative integers so * `parseInt` never produces NaN. Coerced to integer in the route handler. */ max_duration_ms: import("@sinclair/typebox").TOptional; /** * Page size (1–1000, MCP default 100). * Arrives as a string; pattern restricts to non-negative integers. * Coerced to integer in the route handler. Default `100` applied on * missing value. MCP enforces the 1–1000 range. */ limit: import("@sinclair/typebox").TOptional; /** * Offset-based pagination skip count (≥0, MCP default 0). * Arrives as a string; pattern restricts to non-negative integers. * Coerced to integer in the route handler. */ offset: import("@sinclair/typebox").TOptional; /** Cursor timestamp for keyset pagination (ISO 8601). Must pair with `cursor_id`. */ cursor_requested_at: import("@sinclair/typebox").TOptional; /** Cursor UUID for keyset pagination. Must pair with `cursor_requested_at`. */ cursor_id: import("@sinclair/typebox").TOptional; }>; /** TypeScript type for the `GET /audit` query string. */ export type AuditQueryT = Static; //# sourceMappingURL=audit.schema.d.ts.map