Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
TypeScript
12345678910111213141516171819202122/** * API key scopes. * * `'read'` and `'write'` are the only values a public caller can set when * creating a key. `'*'` is internal-only โ synthesized by middleware for * super-admin and dev fallbacks. The matcher treats it uniformly so there * is no hardcoded bypass anywhere else in the stack. * * The shape is JSON-array forward compatible: when per-resource scopes * land (`'monitor.read'`, `'page.write'`), they extend this union without * a column migration. */export const apiKeyScopes = ["read", "write", "*"] as const;export type Scope = (typeof apiKeyScopes)[number];
/** * The subset of scopes a caller may set via the create-key API. `'*'` is * filtered out at the parse boundary so it can never ride in on the wire. */export const apiKeySettableScopes = ["read", "write"] as const;export type SettableScope = (typeof apiKeySettableScopes)[number];