AutoBE
    Preparing search index...

    An authenticated user type used for authorization throughout the app.

    interface IActor {
        description: string;
        kind: "guest" | "member" | "admin";
        name: string & CamelCasePattern & MinLength<1>;
        roles: IActorRole[];
    }
    Index

    Properties

    description: string

    Description of this actor's permissions and capabilities.

    kind: "guest" | "member" | "admin"

    Permission level:

    • "guest": Unauthenticated, limited to public resources.
    • "member": Authenticated with standard access.
    • "admin": Elevated permissions, can manage users and system settings.
    name: string & CamelCasePattern & MinLength<1>

    MUST use camelCase. Referenced in schema models and auth decorators.

    roles: IActorRole[]

    Business roles, titles, or positions that share this actor's login and account lifecycle.

    Keep kind for coarse authentication class only. Use roles when the product has an internal hierarchy such as owner > manager > staff, or when a single authenticated actor can operate under multiple business positions. Use an empty array when no internal role distinction is needed.