Policies are grouped by target. This page lists common keys so you can find the right block quickly.

Backend

backend.core, backend.auth, backend.logging, backend.health, backend.interfaces, backend.pagination, backend.envelope.

1policies: {
2  backend: {
3    core: { generateId: "uuid_v4" },
4    auth: { jwt: { enabled: true, secret: "..." } },
5    logging: { enabled: true, level: "info" },
6    health: { enabled: true, metrics: { enabled: true } },
7    interfaces: { rest: { basePath: "/api" } },
8    pagination: { type: "page_limit", defaults: { limit: 20 } },
9    envelope: { type: "standard_v1", keys: { data: "data" } }
10  }
11}

Frontend

frontend.framework, frontend.auth, frontend.errorBoundary, frontend.visual, frontend.styling, frontend.build.

1policies: {
2  frontend: {
3    framework: { rendering: { mode: "csr", basePath: "/" } },
4    auth: { enabled: true, loginPath: "/login" },
5    errorBoundary: { enabled: true, fallback: "detailed" },
6    styling: { themePack: "admin", theme: { primaryColor: "#0ea5e9" } },
7    visual: { navLayout: "sidebar", contentWidth: "wide" },
8    build: { copyTo: { enabled: true, targetRoot: "..." } }
9  }
10}

Static Site

staticSite.enhancements, staticSite.search, staticSite.codeHighlight, staticSite.assets, staticSite.seo, staticSite.theme, staticSite.navbar.

1policies: {
2  staticSite: {
3    enhancements: { enabled: true, features: ["search"] },
4    codeHighlight: { mode: "pre" }
5  }
6}

Electron

electron.security, electron.loading, electron.packaging, electron.autoUpdate, electron.reliability.

1policies: {
2  electron: {
3    security: { contextIsolation: true },
4    packaging: { tool: "electron-builder" }
5  }
6}

CLI

cli has an empty policy schema today (no special knobs).