pub.techne.draft.identity.defs

Details · defs
Kinddefs
Authorityidentity.draft.techne.pub
Commit rev3n3iob5a47o2u
Indexed

#channel

object

A sign-in channel, normalized: a phone is E.164 (`+` and 7 to 15 digits); an email is trimmed and lower-cased.

Properties

type

requiredstring
  • knownValues: email | phone

value

requiredstring
  • maxLength: 320

#linkGrant

object

A write the platform makes as `actAs` for each account that redeems the link, as identity.holdForPhone's held write.

Properties

actAs

requiredstring · did

The account the record is written as; the caller must be able to write as it.

#linkRedemptionView

object

Properties

redeemedAt

requiredstring · datetime

redeemer

requiredstring · did

#linkTokenListed

object

A live link token of the caller's, with its token when the identity PDS can derive it again.

Properties

#linkTokenView

object

A link token as its owner sees it, without the token.

Properties

app

requiredstring

createdAt

requiredstring · datetime

expiresAt

string · datetime

id

requiredstring

reusable

requiredboolean

revokedAt

string · datetime

target

requiredstring

usedAt

string · datetime

#linkView

object

Another account of the caller's person: the two are linked (identity.manageMethods moveMethod), every DID of the person naming every other in `alsoKnownAs`. Linked accounts have no primary, and a link is always mutual: identity.listMethods sends `mutual` as true.

Properties

did

requiredstring · did

The other account.

handle

string · handle

mutual

requiredboolean

Retired: a link is always mutual, and identity.listMethods sends `true` (it was: both accounts hold a matching pub.techne.draft.accountLink).

since

string · datetime

When the two accounts became one person.

#methodView

object

One sign-in method of an account. `masked` is always masked. Only identity.manageMethods `list` (the identity PDS's signed hook, for the signed-in owner's own account page) adds `value`; identity.listMethods never does.

Properties

bid

requiredstring

The method's id: the binding id (the credential's record key) of an email or phone, else the platform's id for it. Names the method in unlinkMethod and manageMethods.

  • maxLength: 64

boundAt

requiredstring · datetime

frozenUntil

string · datetime

Frozen: it signs in nowhere until then, or until a recovery method lifts it.

masked

requiredstring

The channel with most of it hidden, e.g. `j•••@example.com`, `••• ••• 4567`; a passkey's or Nostr key's label; `Recovery codes (n left)`.

  • maxLength: 320

programs

boolean

"Programs can sign in with this key" (identity.manageMethods setPrograms). Present on the types that support it (a Nostr key), off by default. Never on for a recovery method.

recovery

boolean

A recovery method of this account. Private: only the account sees it.

type

requiredstring
  • knownValues: email | phone | passkey | nostr | recoveryCodes

value

string

An email's full address or a phone's full number (E.164). Sent only by identity.manageMethods `list`, to the identity PDS, for the owner's own account page; never in identity.listMethods, signInMethods or a notice. Absent on a passkey, Nostr key or recovery codes.

  • maxLength: 320

#pendingChange

object

A change that waits for its time (a method's removal, the account's deletion, or a method's move onto another account (identity.manageMethods moveMethod), 7 days, or none for a move a recovery method proved; the account's first recovery mark, 24 hours). A move is completed by the platform once due, tried again after a failed write, and may be dropped instead (identity.manageMethods moveMethod says when). Any of the account's methods, a frozen one too, can cancel it until then; a wait during which one of the account's methods was frozen (even if a recovery method lifted the freeze early) is dropped when it runs out, not completed.

Properties

createdAt

requiredstring · datetime

dueAt

requiredstring · datetime

id

requiredstring
  • maxLength: 64

kind

requiredstring
  • knownValues: removeMethod | deleteAccount | markRecovery | moveMethod

method

string

The method it removes, marks or moves (for an incoming move, the other account's method).

  • maxLength: 64

other

string · did

moveMethod: the other account. On the account the method leaves, where it goes; on the account it joins (identity.manageMethods `list` shows the move there too, and either account can cancel it), where it comes from.

#personMember

object

Another account of an account's person (identity.manageMethods `list` and moveMethod).

Properties

did

requiredstring · did

handle

string · handle

Its handle, when the platform knows one. Sent in addChannel's `otherPerson`.

since

string · datetime

When it joined the person. Sent by `list`.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • The caller's sign-in methods (masked, with their recovery mark and freeze), its pending changes, and the other accounts of its person (`links`, each `did`, `since` and `mutual`, always true; linked accounts have no primary). Emails and phones only unless `allTypes` (shipped clients label every row as an email). Signed-in members only.

  • The identity PDS's signed hook for the sign-in method rules (the account page and sign-in page call it; the rules live on the platform so every client obeys the same ones). Authenticated only by the epds-signature MAC with the identity hook secret; no session, OAuth or service-JWT caller reaches it, and every answer is signed. The PDS vouches for the signed-in account (`did`, which must be hosted on the calling PDS, else 404 UnknownAccount) and for the step-up it just checked (`stepUp`: which me