{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/matchers/leak.matcher.ts",
          "name": "leaksIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/content#file-content-core-matchers-leak-matcher-ts",
            "json": "https://banes-lab.com/json/source/content/core/matchers/leak.matcher.ts",
            "label": "core/matchers/leak.matcher.ts",
            "markdown": "https://banes-lab.com/source/content/core/matchers/leak.matcher.ts.md",
            "ref": "anatomy:file-content-core-matchers-leak-matcher-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "runtime/entrypoints/leak.entrypoint.ts",
          "name": "validate",
          "source": {
            "href": "https://banes-lab.com/anatomy/content#file-content-runtime-entrypoints-leak-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/content/runtime/entrypoints/leak.entrypoint.ts",
            "label": "runtime/entrypoints/leak.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/content/runtime/entrypoints/leak.entrypoint.ts.md",
            "ref": "anatomy:file-content-runtime-entrypoints-leak-entrypoint-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "validatePayload",
      "signature": "export const validatePayload = function validatePayload("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "runtime/entrypoints/leak.entrypoint.ts",
          "name": "validate",
          "source": {
            "href": "https://banes-lab.com/anatomy/content#file-content-runtime-entrypoints-leak-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/content/runtime/entrypoints/leak.entrypoint.ts",
            "label": "runtime/entrypoints/leak.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/content/runtime/entrypoints/leak.entrypoint.ts.md",
            "ref": "anatomy:file-content-runtime-entrypoints-leak-entrypoint-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "validatePublished",
      "signature": "export const validatePublished = function validatePublished("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "NEWLINE",
      "signature": "const NEWLINE = \"\\n\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "lineAt",
      "signature": "const lineAt = function lineAt(text: string, at: number): number {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "terms",
      "signature": "const terms = scan(published.text).map((hit) => ({"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "paths",
      "signature": "const paths = machinePaths.flatMap((path) => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "at",
      "signature": "const at = published.text.indexOf(path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "REASON_LEADS",
      "signature": "const REASON_LEADS: Readonly<Record<LeakReason, string>> = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "tokens",
      "signature": "const tokens = new Set(leaks.tokens);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "findings",
      "signature": "const findings: Finding[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "seen",
      "signature": "const seen = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "key",
      "signature": "const key = match.reason + match.token;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/content#file-content-core-validators-leak-validator-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "leak.validator.ts",
  "path": "core/validators/leak.validator.ts",
  "ref": "anatomy:file-content-core-validators-leak-validator-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/content#folder-content-core-validators",
          "json": "https://banes-lab.com/json/anatomy/content/folder-content-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/content/folder-content-core-validators.md",
          "ref": "chapter:/anatomy/content#folder-content-core-validators"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/content#file-content-core-matchers-leak-matcher-ts",
          "json": "https://banes-lab.com/json/source/content/core/matchers/leak.matcher.ts",
          "label": "core/matchers/leak.matcher.ts",
          "markdown": "https://banes-lab.com/source/content/core/matchers/leak.matcher.ts.md",
          "ref": "anatomy:file-content-core-matchers-leak-matcher-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/content#file-content-runtime-entrypoints-leak-entrypoint-ts",
          "json": "https://banes-lab.com/json/source/content/runtime/entrypoints/leak.entrypoint.ts",
          "label": "runtime/entrypoints/leak.entrypoint.ts",
          "markdown": "https://banes-lab.com/source/content/runtime/entrypoints/leak.entrypoint.ts.md",
          "ref": "anatomy:file-content-runtime-entrypoints-leak-entrypoint-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/content#folder-content-core-matchers",
          "json": "https://banes-lab.com/json/anatomy/content/folder-content-core-matchers",
          "label": "core/matchers",
          "markdown": "https://banes-lab.com/anatomy/content/folder-content-core-matchers.md",
          "ref": "chapter:/anatomy/content#folder-content-core-matchers"
        },
        {
          "href": "https://banes-lab.com/anatomy/content#folder-content-runtime-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/content/folder-content-runtime-entrypoints",
          "label": "runtime/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/content/folder-content-runtime-entrypoints.md",
          "ref": "chapter:/anatomy/content#folder-content-runtime-entrypoints"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "validator",
    "subject": "leak",
    "variant": null
  },
  "stats": {
    "bytes": 1907,
    "callable": 3,
    "definitions": 12,
    "edges": 1,
    "exported": 9,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "leaf": 1,
      "isolated": 10
    },
    "lines": {
      "blank": 5,
      "code": 53,
      "total": 58
    }
  },
  "summary": "53 lines of code and 12 definitions.",
  "text": "https://banes-lab.com/source/content/core/validators/leak.validator.ts.txt",
  "tree": "content",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/content#file-content-core-validators-link-validator-ts",
      "json": "https://banes-lab.com/json/source/content/core/validators/link.validator.ts",
      "label": "core/validators/link.validator.ts",
      "markdown": "https://banes-lab.com/source/content/core/validators/link.validator.ts.md",
      "ref": "anatomy:file-content-core-validators-link-validator-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/content#file-content-core-validators-evidence-validator-ts",
      "json": "https://banes-lab.com/json/source/content/core/validators/evidence.validator.ts",
      "label": "core/validators/evidence.validator.ts",
      "markdown": "https://banes-lab.com/source/content/core/validators/evidence.validator.ts.md",
      "ref": "anatomy:file-content-core-validators-evidence-validator-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/content/core/validators",
    "label": "core/validators",
    "markdown": "https://banes-lab.com/api/source/content/core/validators.md",
    "ref": "api:source/content/core/validators"
  }
}
