pub.techne.draft.identity.defs
Details · defs
| Kind | defs |
|---|---|
| Authority | identity.draft.techne.pub |
| Commit rev | 3n3iob5a47o2u |
| Indexed |
#channel
objectA sign-in channel, normalized: a phone is E.164 (`+` and 7 to 15 digits); an email is trimmed and lower-cased.
#linkGrant
objectA write the platform makes as `actAs` for each account that redeems the link, as identity.holdForPhone's held write.
Properties
The account the record is written as; the caller must be able to write as it.
#linkRedemptionView
objectProperties
#linkTokenListed
objectA live link token of the caller's, with its token when the identity PDS can derive it again.
Properties
token
string#linkTokenView
objectA link token as its owner sees it, without the token.
#linkView
objectAnother 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
#methodView
objectOne 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
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
frozenUntil
string · datetimeFrozen: it signs in nowhere until then, or until a recovery method lifts it.
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
booleanA recovery method of this account. Private: only the account sees it.
knownValues: email | phone | passkey | nostr | recoveryCodes
value
stringAn 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
objectA 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
maxLength: 64
knownValues: removeMethod | deleteAccount | markRecovery | moveMethod
method
stringThe method it removes, marks or moves (for an incoming move, the other account's method).
maxLength: 64
other
string · didmoveMethod: 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
objectAnother account of an account's person (identity.manageMethods `list` and moveMethod).
Similar lexicons
semantic matchLexicons 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.
-
pub.techne.draft.identity.manageMethods
procedureThe 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