redactPersonalconstconst redactPersonal: (mask?: string) => (column: string, value: unknown) => unknownOsquery's machine facts (commons data 0058-sql-osquery): the published schema of a version of osquery imported through 0055 into a logical schema (never written by hand) with platform availability on its tables, classification on its columns and the version stamped, and a read-only driver that runs osqueryi --json on demand for a SELECT. The osquery-atc extension (0027) goes the other way and is not changed; osqueryd and fleet TLS are out of scope.
const schema = must(readSchema(JSON.parse(readFileSync("osquery-5.24.1.auto.json", "utf8"))));
const logical = must(importSchema(schema, "linux"));
const driver = osqueryDriver({ run: (argv) => proc.run(argv), schema, platform: "linux" });
const users = await driver.query("SELECT uid, username FROM users");redactPersonalconstconst redactPersonal: (mask?: string) => (column: string, value: unknown) => unknown