Interface NpmAuthenticatedUser

Authenticated npm user profile returned by the registry user endpoint.

interface NpmAuthenticatedUser {
    _id: string;
    _rev?: string;
    created?: string;
    email?: string;
    fullname?: string;
    github?: string;
    homepage?: string;
    name: string;
    roles?: string[];
    twitter?: string;
    type?: string;
    updated?: string;
    [key: string]: unknown;
}

Indexable

  • [key: string]: unknown

    Additional registry fields not modeled by this client yet

Properties

_id: string

CouchDB document id, usually org.couchdb.user:{username}

_rev?: string

CouchDB document revision

created?: string

Creation timestamp when returned by the registry

email?: string

Account email address

fullname?: string

Profile display name

github?: string

Profile GitHub username

homepage?: string

Profile homepage URL

name: string

npm username

roles?: string[]

npm roles assigned to the account

twitter?: string

Profile Twitter/X username

type?: string

Document type, usually user

updated?: string

Update timestamp when returned by the registry