@suluk/cockpit - v0.2.0
    Preparing search index...

    Interface Viewer

    A viewer to project for. scopes: undefined ⇒ the full/operator view; [] ⇒ no scopes. authenticated distinguishes a logged-in viewer from a truly anonymous one — an auth-only operation (security: [{ bearer: [] }], a requirement with zero scopes) is reachable by any AUTHENTICATED viewer but NOT by anonymous. (This is more precise than the cockpit's single-principal "View as", which keys on scopes alone; the cross-cut is the purpose-built security view.)

    interface Viewer {
        label: string;
        scopes: string[] | undefined;
        authenticated?: boolean;
    }
    Index

    Properties

    label: string
    scopes: string[] | undefined
    authenticated?: boolean

    does this viewer hold a credential? defaults to "holds at least one scope".