At this level
pub.techne.draft.identity ยท 17- pub.techne.draft.identity.attachLinkGrant procedure Attach a grant to a link token the caller made on their own identity PDS (an app holding its own session calls createLinkToken or resetLinkToken there, then this through its PDS). The platform asks the identity PDS (checkLinkToken) whether `token` is live and the caller's; it then keeps `grant` for that link as createLinkToken with `grant` does. `grant.actAs` must be a collective (`ActAsPerson` otherwise): a person's records are written by their own app, never by the platform for someone else's
- pub.techne.draft.identity.claimLinkGrant procedure Release, now, the grant of a link the caller redeemed on their own identity PDS (an app holding its own session calls redeemLinkToken there, then this through its PDS, in the same user action). The platform needs the redemption the identity PDS reported for the caller; it writes the grant's record as the grant's `actAs` in this request, under the grant's rules (the link's owner may still write as `actAs`, no block between owner and redeemer). The platform never releases such a grant in the backg
- pub.techne.draft.identity.createCollective procedure Make a collective account: a new DID whose credential the platform holds, with a random handle, and its founding membership, which the platform writes as the collective: the caller at role 40 (Steward), placed in the collective's own member space (`pub.techne.draft.space.collective.member/self`) with `addedBy` the caller (`founderMembershipVisibility: "members"`, the default), or public with no `addedBy` (`"public"`); a collective that will keep its roster private (a circle) keeps the default, s
- pub.techne.draft.identity.createLinkToken procedure Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every
- pub.techne.draft.identity.defs defs A sign-in channel, normalized: a phone is E.164 (`+` and 7 to 15 digits); an email is trimmed and lower-cased.
- pub.techne.draft.identity.finishAddMethod procedure Finish adding a sign-in method with the code identity.beginAddMethod sent. `added`: the method is now bound to the caller's account. `alreadyYours`: it already was (re-issued). `boundElsewhere`: it signs in to another account. When one of the two accounts is empty and new, `offer` (`fold`) says it can be folded into the other with identity.fold; when both hold something, `other` names that account and no offer is made: the two are linked by moving the method (identity.manageMethods moveMethod, o
- pub.techne.draft.identity.holdForPhone procedure Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly "$subject" in `write.record` (and "$subject" in `write.rkey`) with that account's DID, every value exactly "$now" in the record with the time and every value exactly "$name" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` i
- pub.techne.draft.identity.link procedure Retired (Linking v2): the platform no longer serves it, and no client should call it. Two accounts are linked with identity.manageMethods `moveMethod` now, which makes them one person (no accountLink records, no primary). Kept so the name and its shapes stay published. It was: link the caller's account with the other account named by the token identity.finishAddMethod offered: both accounts get a pub.techne.draft.accountLink in their space.personal naming the other and the primary, and each acco
- pub.techne.draft.identity.listLinkRedemptions procedure Who redeemed one of the caller's links, and when. Empty for a link that is not the caller's. One call spends one of the caller's writes.
- pub.techne.draft.identity.listLinkTokens procedure The caller's live links for `app` and `target`, each with its token, in no promised order. A procedure so the token never rides a URL. One call spends one of the caller's writes.
- pub.techne.draft.identity.listMethods query 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 procedure 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
- pub.techne.draft.identity.redeemLinkToken procedure Redeem a link token as the caller. The identity PDS records it and reports it to the platform, which writes the caller's linkRedemption record and the link's grant, usually before this answers. Redeeming again a link the caller already redeemed answers `repeat` and changes nothing. One call spends one of the caller's writes. An older link (one the served app made before link tokens) writes no linkRedemption record. A caller that holds its own session redeems at its identity PDS and then calls cl
- pub.techne.draft.identity.resetLinkToken procedure Revoke the caller's live reusable links for `app` and `target` and make a new reusable one. Its grant is `grant` when given (checked as for createLinkToken), else a copy of the newest unrevoked grant the caller made for a reusable link with the same `app` and `target` (a one-time link's grant is never carried); with neither, the new link has no grant. One call spends one of the caller's writes.
- pub.techne.draft.identity.revokeLinkToken procedure Revoke one of the caller's links: it no longer redeems. A redemption the identity PDS took before the revoke still gets its grant. One call spends one of the caller's writes.
- pub.techne.draft.identity.unlinkAccount procedure Retired (Linking v2): the platform no longer serves it, and no client should call it. An account leaves its person with identity.manageMethods `unlink` now. Kept so the name and its shapes stay published. It was: end an alias link: deletes the caller's pub.techne.draft.accountLink naming `other`, and the other account's too when this host holds it, and removes the `alsoKnownAs` entries the link added (signed here, or by the identity PDS for accounts it made).
- pub.techne.draft.identity.writeAsCollective procedure Write as a collective: a batch of creates, updates and deletes applied atomically to the repo of a collective account whose credential this service holds, written with that credential. The same input and output as com.atproto.repo.applyWrites, with `repo` the collective's DID; each write is a com.atproto.repo.applyWrites#create, #update or #delete. The service checks the caller's role in the collective first: whoever manages the collective's own member space (`pub.techne.draft.space.collective.m