import type { Database } from "./database.js"; /** * "Always allow for this Site": one person's standing consent for one Site to * run one tool on one connection. Personal (RLS: own subject only). The * connector is the canonical server, never an account route, and a tool * without a connection uses the empty connection id. */ export type SiteToolAllowanceKey = { accountId: string; workspaceId: string; subjectId: string; siteId: string; serverId: string; toolName: string; connectionId: string | null; }; export type SiteToolAllowance = Omit & { createdAt: string; }; export declare function recordSiteToolAllowance(db: Database, input: SiteToolAllowanceKey): Promise; export declare function hasSiteToolAllowance(db: Database, input: SiteToolAllowanceKey): Promise; export declare function listSiteToolAllowances(db: Database, input: { workspaceId: string; subjectId: string; siteId: string; }): Promise; /** Removes every standing consent this person gave the Site. */ export declare function clearSiteToolAllowances(db: Database, input: { workspaceId: string; subjectId: string; siteId: string; }): Promise;