Static ReadonlyORIGINSStatic ReadonlyPATH_StaticbaseThe base a new address is built on, or a refusal: an address goes into a
token, so in product mode a Host header never becomes part of one.
the request
{ base }, or { base: '', why }
StaticcheckedChecks a file against the limits and rewrites it for keeping.
the file
the shortest side allowed
{ ok, bytes, type, width, height }, or { ok: false, code, status, error }
StaticcopyWhether a federated sign-in should dial this address now.
the person's record
the partner's address
the instant
the reason not to, or ''
StaticdirectoryThe directory, lazily: it is loaded long after this library.
the module
StaticforgetRemoves the row of a directory entry being deleted. The directory calls this from the deletion's own bookkeeping, with what the entry held.
the entry's stsProfilePhoto values
StaticlimitsWhat a person choosing a photo is held to, for the page and the refusals.
{ maxFileBytes, maxStoredBytes, minPixels, maxPixels, types }
StaticmovingKeeps an image that arrived with a moved entry, under an id of this cell.
the values movingOut() sent
the address the entry arrived with
{ values, pictureUrl }; pictureUrl empty when no image came
StaticmovingThe entry's attribute value with the image inside it, for the transfer.
the entry's stsProfilePhoto values
the values to send
StaticnoteCopies a partner's photo after a federated sign-in. Never awaited by the sign-in, and it never rejects: a photo is not a reason for a sign-in to fail or to wait, and the next sign-in tries again.
the request, for the base URL
the person
the partner's picture, already on pictureUrl
the relationship's id
a promise of what happened, for a test
StaticparsedOne stored attribute value as a record.
the JSON text, or nothing
the record, {} for none or for a value that does not parse
StaticpathThe realm-relative path a person's own photo is drawn from, for a menu.
Only this realm's own copy: a URL on pictureUrl that names somewhere
else is not admitted by any surface's img-src, and fetching one would
tell that party who is looking at a console.
the person
the path including the realm's prefix, or ''
StaticrecordA person's record: which row is theirs, whose it was, and whether a copy was declined.
the person
the record, {} for none, or null with no directory entry
StaticregisterRegisters GET /web/photo/{rid}.
the express app
StaticremoveA person removing their photo. A copy from a partner is remembered as declined, so that the next sign-in through that partner does not put it back; setting one of their own later clears that.
the person, from the token
{ ok, removed }
StaticservableThe row to answer with, or null where this address answers nothing: no such row, a person who is gone, or a disabled account.
the address's id
the row, or null
StaticsetA person setting their own photo on the portal.
the request
the person, from the token
the file
{ ok, path }, or { ok: false, code, status, error }
StaticsettingReads a setting with a fallback for a realm that cannot be asked.
the setting
what to answer when it cannot be read
the value
StaticsniffA JPEG or PNG's type and sides, decided by its bytes.
the file
{ type, width, height }, type empty for anything else
StaticstoreKeeps a checked image as a person's photo: a new row under a new address,
the record and pictureUrl on the entry, then the old row gone.
the person
what checked() answered
the base the address is built on
the record's other members: origin and, for a copy,
source, relationship and fetchedAt
{ ok, path }, or a refusal
StaticviewWhat the portal draws the photo card from.
the person
{ path, origin, selfService, limits }
A person's profile photo. A static utility class; its one store is declared above.