techne-sdk 0.3.8 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +97 -0
  2. package/README.md +3 -1
  3. package/dist/auth/account.d.ts +67 -0
  4. package/dist/auth/account.js +136 -0
  5. package/dist/auth/hosts.d.ts +4 -0
  6. package/dist/auth/hosts.js +4 -0
  7. package/dist/auth/index.d.ts +30 -5
  8. package/dist/auth/index.js +80 -12
  9. package/dist/catalog/catalog.gen.js +1332 -205
  10. package/dist/generated/index.d.ts +9 -0
  11. package/dist/generated/index.js +27 -0
  12. package/dist/generated/lexicons.d.ts +1797 -227
  13. package/dist/generated/lexicons.js +1147 -224
  14. package/dist/generated/nsid.d.ts +16 -0
  15. package/dist/generated/nsid.js +16 -0
  16. package/dist/generated/nsid.json +16 -0
  17. package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.d.ts +3 -0
  18. package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.js +7 -0
  19. package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +5 -0
  20. package/dist/generated/types/pub/techne/draft/identity/attest.js +7 -0
  21. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +3 -0
  22. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +7 -0
  23. package/dist/generated/types/pub/techne/draft/identity/cancelPendingChange.d.ts +29 -0
  24. package/dist/generated/types/pub/techne/draft/identity/cancelPendingChange.js +27 -0
  25. package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +41 -7
  26. package/dist/generated/types/pub/techne/draft/identity/defs.js +14 -0
  27. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +9 -0
  28. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +14 -0
  29. package/dist/generated/types/pub/techne/draft/identity/fold.d.ts +3 -0
  30. package/dist/generated/types/pub/techne/draft/identity/fold.js +7 -0
  31. package/dist/generated/types/pub/techne/draft/identity/holdForPhone.d.ts +1 -1
  32. package/dist/generated/types/pub/techne/draft/identity/link.d.ts +3 -0
  33. package/dist/generated/types/pub/techne/draft/identity/link.js +7 -0
  34. package/dist/generated/types/pub/techne/draft/identity/listMethods.d.ts +7 -1
  35. package/dist/generated/types/pub/techne/draft/identity/manageMethods.d.ts +267 -0
  36. package/dist/generated/types/pub/techne/draft/identity/manageMethods.js +265 -0
  37. package/dist/generated/types/pub/techne/draft/identity/openAccountPage.d.ts +40 -0
  38. package/dist/generated/types/pub/techne/draft/identity/openAccountPage.js +55 -0
  39. package/dist/generated/types/pub/techne/draft/identity/resolve.d.ts +4 -0
  40. package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.d.ts +6 -0
  41. package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.js +7 -0
  42. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +2 -2
  43. package/dist/generated/types/pub/techne/draft/query/getRecords.d.ts +11 -0
  44. package/dist/generated/types/pub/techne/draft/query/getRecords.js +7 -0
  45. package/dist/generated/types/pub/techne/draft/registry/blockIndex.d.ts +7 -1
  46. package/dist/generated/types/pub/techne/draft/registry/blockIndex.js +17 -3
  47. package/dist/generated/types/pub/techne/draft/registry/purgeType.d.ts +7 -1
  48. package/dist/generated/types/pub/techne/draft/registry/purgeType.js +17 -3
  49. package/dist/query/compose.d.ts +1 -1
  50. package/dist/query/compose.js +1 -1
  51. package/dist/query/index.d.ts +7 -0
  52. package/dist/query/index.js +28 -1
  53. package/dist/versions/react.js +19 -6
  54. package/dist/wasm/techne-wasm.gen.js +1 -1
  55. package/dist/wasm/techne-wasm2js.gen.js +8361 -8359
  56. package/package.json +2 -1
@@ -1154,7 +1154,7 @@ export const schemaDict = {
1154
1154
  PubTechneDraftAppAccess: {
1155
1155
  lexicon: 1,
1156
1156
  id: 'pub.techne.draft.appAccess',
1157
- description: "A space's authority lets one app (an OAuth client) read one space: our published form of atproto 0016's simplespace `appAccess`. 0016 ANDs two axes for a read: the reader passes the space's read policy, and the app has appAccess for the space. Authored by the space's AUTHORITY, in its own repo, placed IN the space it names (as a `share` is), so the space's readers see which apps may read it. Approved by whoever passes the space type's published `manage` leg (the owner of a personal space; Facilitator and up for a collective's), written with the authority's pen. Approval is per space. `criteria` is a stated rule for future spaces, stored and shown in social.scenius.listAppAccess; nothing evaluates it yet: future-space coverage is evaluated when `space:` grant enforcement exists. Deleting it withdraws the approval for future reads. Nothing stores a denial. Enforcement arrives with `space:` OAuth grants: before Spaces a proxied read carries no client identity.",
1157
+ description: "A space's authority lets one app (an OAuth client) read one space: our published form of atproto 0016's simplespace `appAccess`. 0016 ANDs two axes for a read: the reader passes the space's read policy, and the app has appAccess for the space. Authored by the space's AUTHORITY, in its own repo, placed IN the space it names (as a `share` is), so the space's readers see which apps may read it. Approved by whoever passes the space type's published `manage` leg (the owner of a personal space itself, never another account linked to it; Facilitator and up for a collective's, a role held by any of the caller's linked accounts included), written with the authority's pen. Approval is per space. `criteria` is a stated rule for future spaces, stored and shown in social.scenius.listAppAccess; nothing evaluates it yet: future-space coverage is evaluated when `space:` grant enforcement exists. Deleting it withdraws the approval for future reads. Nothing stores a denial. Enforcement arrives with `space:` OAuth grants: before Spaces a proxied read carries no client identity.",
1158
1158
  defs: {
1159
1159
  main: {
1160
1160
  type: 'record',
@@ -1207,7 +1207,7 @@ export const schemaDict = {
1207
1207
  PubTechneDraftAppAccessRequest: {
1208
1208
  lexicon: 1,
1209
1209
  id: 'pub.techne.draft.appAccessRequest',
1210
- description: "A member asks a space's authority to let one app read the space: the member is using the app and the space has not approved it. Authored by the member (the requester is the author), in their own repo, placed in their own `pub.techne.draft.space.personal/self`: it is the member's own intent, it names a space that may be private, and a member below the space's write policy could not place it in the space itself. When the requester can read the space and is not an approver, every holder of the space type's `manage` leg is notified and can approve (writing a `pub.techne.draft.appAccess`) or let it be; a requester who is an approver is notified of nothing and approves in one tap. Status is derived: approved when an appAccess exists, pending while a request counts without one, none otherwise; nothing stores a denial. A request counts only while its requester can read the space, and a caller who is not an approver sees only their own request. Deleting it withdraws the request.",
1210
+ description: "A member asks a space's authority to let one app read the space: the member is using the app and the space has not approved it. Authored by the member (the requester is the author), in their own repo, placed in their own `pub.techne.draft.space.personal/self`: it is the member's own intent, it names a space that may be private, and a member below the space's write policy could not place it in the space itself. When the requester can read the space and is not an approver, every approver social.scenius.getAppAccess lists (the owner of a personal space itself, never an account linked to it; a collective's members who pass the space type's `manage` leg) is notified and can approve (writing a `pub.techne.draft.appAccess`) or let it be; a requester who is an approver is notified of nothing and approves in one tap. Status is derived: approved when an appAccess exists, pending while a request counts without one, none otherwise; nothing stores a denial. A request counts only while its requester can read the space, and a caller who is not an approver sees only requests by their own accounts (their person). Deleting it withdraws the request.",
1211
1211
  defs: {
1212
1212
  main: {
1213
1213
  type: 'record',
@@ -1326,7 +1326,7 @@ export const schemaDict = {
1326
1326
  main: {
1327
1327
  type: 'record',
1328
1328
  key: 'any',
1329
- description: "Publishers use sidecar_rkey(subject AT-URI + '#' + questionSet name) so a new question bank replaces the assessment in place. `any` permits that convention but cannot enforce it.",
1329
+ description: "Publishers use sidecar_rkey(subject AT-URI + '#' + questionSet name) so a new question bank replaces the assessment in place. Readers do not depend on the key: the AppView finds assessments by `subject` and its cid and uses the newest.",
1330
1330
  record: {
1331
1331
  type: 'object',
1332
1332
  required: [
@@ -1940,7 +1940,7 @@ export const schemaDict = {
1940
1940
  defs: {
1941
1941
  main: {
1942
1942
  type: 'procedure',
1943
- description: "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only (the caller's DID is one of OPERATOR_DIDS). Keeps the account's label unless `label` is given; updates the handle on the PDS and in the AppView. An account has one valid handle at a time: the previous one is retired, never issued again, and links that carry it redirect to the account's DID route. Everything else already refers to the account by DID and does not change.",
1943
+ description: "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only: the caller's DID is one of OPERATOR_DIDS and the call carries the moderate scope. Keeps the account's label unless `label` is given; updates the handle on the PDS and in the AppView. An account has one valid handle at a time: the previous one is retired, never issued again, and links that carry it redirect to the account's DID route. Everything else already refers to the account by DID and does not change.",
1944
1944
  input: {
1945
1945
  encoding: 'application/json',
1946
1946
  schema: {
@@ -1990,7 +1990,11 @@ export const schemaDict = {
1990
1990
  },
1991
1991
  {
1992
1992
  name: 'NotAuthorized',
1993
- description: 'The caller is not an operator.',
1993
+ description: 'The caller is not an operator, or the call does not carry the moderate scope (HTTP 403).',
1994
+ },
1995
+ {
1996
+ name: 'ProgramRefused',
1997
+ description: "The caller is a program's token: a program never reaches an operator method (HTTP 403).",
1994
1998
  },
1995
1999
  {
1996
2000
  name: 'InvalidRequest',
@@ -2248,7 +2252,7 @@ export const schemaDict = {
2248
2252
  main: {
2249
2253
  type: 'record',
2250
2254
  key: 'any',
2251
- description: 'Publishers use sidecar_rkey(subject AT-URI), one per place per writer. `any` permits that convention but cannot enforce it.',
2255
+ description: 'Publishers use sidecar_rkey(subject AT-URI), one per place per writer. Readers do not depend on the key: they read every containedIn about a place.',
2252
2256
  record: {
2253
2257
  type: 'object',
2254
2258
  required: ['subject', 'container', 'createdAt'],
@@ -2420,7 +2424,7 @@ export const schemaDict = {
2420
2424
  main: {
2421
2425
  type: 'record',
2422
2426
  key: 'any',
2423
- description: 'Publishers use sidecar_rkey(claim AT-URI), one derivation per claim per writer. `any` permits that convention but cannot enforce it.',
2427
+ description: 'Publishers use sidecar_rkey(claim AT-URI), one derivation per claim per writer. Readers do not depend on the key: they find a derivation by the claim it names.',
2424
2428
  record: {
2425
2429
  type: 'object',
2426
2430
  required: ['subject', 'method', 'createdAt'],
@@ -2573,7 +2577,7 @@ export const schemaDict = {
2573
2577
  main: {
2574
2578
  type: 'record',
2575
2579
  key: 'any',
2576
- description: "The rkey is sidecar_rkey(subject.uri) (regenos-lexicons `sidecar`): lowercase base32 of the sha256 of the subject's AT-URI, so a rewrite updates this record in place and a subject has at most one description per author. `any` permits that convention but cannot enforce it.",
2580
+ description: "The rkey is sidecar_rkey(subject.uri) (regenos-lexicons `sidecar`): lowercase base32 of the sha256 of the subject's AT-URI, so a rewrite updates this record in place and a subject has at most one description per author. Enforced by its readers: the commons rules fetch only the record at sidecar_rkey(subject), so a description at any other key is not read.",
2577
2581
  record: {
2578
2582
  type: 'object',
2579
2583
  required: ['subject', 'text', 'createdAt'],
@@ -2607,7 +2611,7 @@ export const schemaDict = {
2607
2611
  main: {
2608
2612
  type: 'record',
2609
2613
  key: 'any',
2610
- description: 'One record per pair: publishers put the lower AT-URI in `subject` and use pair_rkey(subject, other) (regenos_lexicons::sidecar), so the reversed pair cannot get a second record. `any` permits that convention but cannot enforce it. A pair asserted both sameAs and distinctFrom by writers a reader trusts is a conflict that reader resolves.',
2614
+ description: 'One record per pair: publishers put the lower AT-URI in `subject` and use pair_rkey(subject, other) (regenos_lexicons::sidecar), so the reversed pair cannot get a second record. Readers do not depend on the key: the commons curator reads a pair from both ends, so a reversed or repeated pair is the same wall. A pair asserted both sameAs and distinctFrom by writers a reader trusts is a conflict that reader resolves.',
2611
2615
  record: {
2612
2616
  type: 'object',
2613
2617
  required: ['subject', 'other', 'createdAt'],
@@ -2909,7 +2913,7 @@ export const schemaDict = {
2909
2913
  main: {
2910
2914
  type: 'record',
2911
2915
  key: 'any',
2912
- description: 'Publishers use sidecar_rkey(subject AT-URI) (regenos_lexicons::sidecar), so a rewrite for the same subject updates this record. `any` permits that convention but cannot enforce it.',
2916
+ description: 'Publishers use sidecar_rkey(subject AT-URI) (regenos_lexicons::sidecar), so a rewrite for the same subject updates this record. Readers do not depend on the key: they take a trusted geo about the subject at any key.',
2913
2917
  record: {
2914
2918
  type: 'object',
2915
2919
  required: ['subject', 'location', 'createdAt'],
@@ -2947,7 +2951,7 @@ export const schemaDict = {
2947
2951
  main: {
2948
2952
  type: 'record',
2949
2953
  key: 'any',
2950
- description: 'Publishers use sidecar_rkey(subject AT-URI), one per event per writer. `any` permits that convention but cannot enforce it.',
2954
+ description: 'Publishers use sidecar_rkey(subject AT-URI), one per event per writer. Readers do not depend on the key: the AppView reads every trusted heldAt about an event.',
2951
2955
  record: {
2952
2956
  type: 'object',
2953
2957
  required: ['subject', 'place', 'createdAt'],
@@ -3057,7 +3061,7 @@ export const schemaDict = {
3057
3061
  defs: {
3058
3062
  main: {
3059
3063
  type: 'procedure',
3060
- description: "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. It never moves a bound channel, never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
3064
+ description: "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. A phone it binds or re-binds releases the invitations and holds waiting on that number to the account (as a sign-in on the platform does). It never moves a bound channel, never signs in a frozen method (`MethodFrozen`), never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
3061
3065
  input: {
3062
3066
  encoding: 'application/json',
3063
3067
  schema: {
@@ -3087,6 +3091,10 @@ export const schemaDict = {
3087
3091
  type: 'boolean',
3088
3092
  description: 'The PDS created the account in this sign-in.',
3089
3093
  },
3094
+ termsShown: {
3095
+ type: 'boolean',
3096
+ description: "Optional; sent only as true, and only with `newAccount`. The PDS's sign-in page named its Terms of Use and Privacy Policy when this account was made there, so the issuer records the person's assent. Absent: nothing to record (a returning sign-in, a page without the line, an older PDS, or a first-party app that shows its own terms).",
3097
+ },
3090
3098
  },
3091
3099
  },
3092
3100
  },
@@ -3130,6 +3138,10 @@ export const schemaDict = {
3130
3138
  name: 'ChannelReleased',
3131
3139
  description: 'The account named by `did` removed this phone number (identity.unlinkMethod) and nobody has bound it since (HTTP 409). Never retried: the account gets the number back only by adding it again (identity.finishAddMethod).',
3132
3140
  },
3141
+ {
3142
+ name: 'MethodFrozen',
3143
+ description: 'This channel is a frozen method of the account (identity.manageMethods `freeze`; HTTP 403): it does not sign in until the freeze ends. Not retried.',
3144
+ },
3133
3145
  {
3134
3146
  name: 'RateLimitExceeded',
3135
3147
  description: 'As identity.resolve (HTTP 429).',
@@ -3189,6 +3201,10 @@ export const schemaDict = {
3189
3201
  name: 'RateLimitExceeded',
3190
3202
  description: 'Too many codes sent to this address (HTTP 429).',
3191
3203
  },
3204
+ {
3205
+ name: 'MethodFrozen',
3206
+ description: "The channel is a frozen sign-in method of an account (HTTP 403); it can't be proved anywhere until the freeze ends.",
3207
+ },
3192
3208
  {
3193
3209
  name: 'SendFailed',
3194
3210
  description: 'The code could not be texted to that phone number (HTTP 502). Try again.',
@@ -3197,6 +3213,51 @@ export const schemaDict = {
3197
3213
  },
3198
3214
  },
3199
3215
  },
3216
+ PubTechneDraftIdentityCancelPendingChange: {
3217
+ lexicon: 1,
3218
+ id: 'pub.techne.draft.identity.cancelPendingChange',
3219
+ defs: {
3220
+ main: {
3221
+ type: 'procedure',
3222
+ description: "Cancel one of the caller's pending sign-in changes (a method removal, an account deletion or a first recovery mark that waits; its `id` is the `pending` identity.listMethods, identity.unlinkMethod or deleteAccount answered), by the sign-in method rules: any of the account's methods may cancel a wait, so a signed-in session may, with no step-up. For an account whose PDS has no account page of its own; the identity PDS cancels through identity.manageMethods `cancel`. A frozen method may cancel too, its own removal included. Nothing else changes.",
3223
+ input: {
3224
+ encoding: 'application/json',
3225
+ schema: {
3226
+ type: 'object',
3227
+ required: ['id'],
3228
+ properties: {
3229
+ id: {
3230
+ type: 'string',
3231
+ maxLength: 64,
3232
+ },
3233
+ },
3234
+ },
3235
+ },
3236
+ output: {
3237
+ encoding: 'application/json',
3238
+ schema: {
3239
+ type: 'object',
3240
+ required: ['ok'],
3241
+ properties: {
3242
+ ok: {
3243
+ type: 'boolean',
3244
+ },
3245
+ },
3246
+ },
3247
+ },
3248
+ errors: [
3249
+ {
3250
+ name: 'AuthenticationRequired',
3251
+ description: 'No signed-in caller.',
3252
+ },
3253
+ {
3254
+ name: 'NotFound',
3255
+ description: "No such pending change on the caller's account, or it already completed or was cancelled.",
3256
+ },
3257
+ ],
3258
+ },
3259
+ },
3260
+ },
3200
3261
  PubTechneDraftIdentityCheckLinkToken: {
3201
3262
  lexicon: 1,
3202
3263
  id: 'pub.techne.draft.identity.checkLinkToken',
@@ -3319,7 +3380,7 @@ export const schemaDict = {
3319
3380
  defs: {
3320
3381
  main: {
3321
3382
  type: 'procedure',
3322
- description: "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 \"$subject\" slot, exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.",
3383
+ description: "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 \"$subject\" slot (and their name in every \"$name\" slot), exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. A pub.techne.draft.contact grant is likewise not made when any active contact of `actAs` already names the redeemer, by its `did` or by a saved number that resolves to them (an archived one does not count), so a grant like {name: \"$name\", did: \"$subject\"} adds each person to the owner's People once. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.",
3323
3384
  input: {
3324
3385
  encoding: 'application/json',
3325
3386
  schema: {
@@ -3416,33 +3477,95 @@ export const schemaDict = {
3416
3477
  },
3417
3478
  methodView: {
3418
3479
  type: 'object',
3419
- description: "One sign-in method bound to the caller's account, masked.",
3480
+ description: "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.",
3420
3481
  required: ['bid', 'type', 'masked', 'boundAt'],
3421
3482
  properties: {
3422
3483
  bid: {
3423
3484
  type: 'string',
3424
3485
  maxLength: 64,
3425
- description: "The binding id (the credential's record key). Names the method in unlinkMethod.",
3486
+ description: "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.",
3426
3487
  },
3427
3488
  type: {
3428
3489
  type: 'string',
3429
- knownValues: ['email', 'phone'],
3490
+ knownValues: [
3491
+ 'email',
3492
+ 'phone',
3493
+ 'passkey',
3494
+ 'nostr',
3495
+ 'recoveryCodes',
3496
+ ],
3430
3497
  },
3431
3498
  masked: {
3432
3499
  type: 'string',
3433
3500
  maxLength: 320,
3434
- description: 'The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`.',
3501
+ description: "The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`; a passkey's or Nostr key's label; `Recovery codes (n left)`.",
3502
+ },
3503
+ value: {
3504
+ type: 'string',
3505
+ maxLength: 320,
3506
+ description: "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.",
3435
3507
  },
3436
3508
  boundAt: {
3437
3509
  type: 'string',
3438
3510
  format: 'datetime',
3439
3511
  },
3512
+ recovery: {
3513
+ type: 'boolean',
3514
+ description: 'A recovery method of this account. Private: only the account sees it.',
3515
+ },
3516
+ frozenUntil: {
3517
+ type: 'string',
3518
+ format: 'datetime',
3519
+ description: 'Frozen: it signs in nowhere until then, or until a recovery method lifts it.',
3520
+ },
3521
+ programs: {
3522
+ type: 'boolean',
3523
+ description: '"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.',
3524
+ },
3525
+ },
3526
+ },
3527
+ pendingChange: {
3528
+ type: 'object',
3529
+ description: "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.",
3530
+ required: ['id', 'kind', 'createdAt', 'dueAt'],
3531
+ properties: {
3532
+ id: {
3533
+ type: 'string',
3534
+ maxLength: 64,
3535
+ },
3536
+ kind: {
3537
+ type: 'string',
3538
+ knownValues: [
3539
+ 'removeMethod',
3540
+ 'deleteAccount',
3541
+ 'markRecovery',
3542
+ 'moveMethod',
3543
+ ],
3544
+ },
3545
+ method: {
3546
+ type: 'string',
3547
+ maxLength: 64,
3548
+ description: "The method it removes, marks or moves (for an incoming move, the other account's method).",
3549
+ },
3550
+ other: {
3551
+ type: 'string',
3552
+ format: 'did',
3553
+ description: '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.',
3554
+ },
3555
+ createdAt: {
3556
+ type: 'string',
3557
+ format: 'datetime',
3558
+ },
3559
+ dueAt: {
3560
+ type: 'string',
3561
+ format: 'datetime',
3562
+ },
3440
3563
  },
3441
3564
  },
3442
3565
  linkView: {
3443
3566
  type: 'object',
3444
- description: "An alias link between the caller's account and another.",
3445
- required: ['did', 'primary', 'mutual'],
3567
+ description: "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.",
3568
+ required: ['did', 'mutual'],
3446
3569
  properties: {
3447
3570
  did: {
3448
3571
  type: 'string',
@@ -3453,13 +3576,35 @@ export const schemaDict = {
3453
3576
  type: 'string',
3454
3577
  format: 'handle',
3455
3578
  },
3456
- primary: {
3579
+ mutual: {
3580
+ type: 'boolean',
3581
+ description: 'Retired: a link is always mutual, and identity.listMethods sends `true` (it was: both accounts hold a matching pub.techne.draft.accountLink).',
3582
+ },
3583
+ since: {
3584
+ type: 'string',
3585
+ format: 'datetime',
3586
+ description: 'When the two accounts became one person.',
3587
+ },
3588
+ },
3589
+ },
3590
+ personMember: {
3591
+ type: 'object',
3592
+ description: "Another account of an account's person (identity.manageMethods `list` and moveMethod).",
3593
+ required: ['did'],
3594
+ properties: {
3595
+ did: {
3457
3596
  type: 'string',
3458
3597
  format: 'did',
3459
3598
  },
3460
- mutual: {
3461
- type: 'boolean',
3462
- description: 'Both accounts hold a matching pub.techne.draft.accountLink; a link counts only when true.',
3599
+ since: {
3600
+ type: 'string',
3601
+ format: 'datetime',
3602
+ description: 'When it joined the person. Sent by `list`.',
3603
+ },
3604
+ handle: {
3605
+ type: 'string',
3606
+ format: 'handle',
3607
+ description: "Its handle, when the platform knows one. Sent in addChannel's `otherPerson`.",
3463
3608
  },
3464
3609
  },
3465
3610
  },
@@ -3550,7 +3695,7 @@ export const schemaDict = {
3550
3695
  defs: {
3551
3696
  main: {
3552
3697
  type: 'procedure',
3553
- description: "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; `offer` says what the caller can do: `fold` (one of the two accounts is empty and new, so it can be folded into the other with identity.fold) or `link` (both have history; identity.link records that they are the same person). The offer's token is single-use, bound to both accounts, the channel and this session, and lasts 10 minutes. `unavailable`: the method cannot be added right now.",
3698
+ description: "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, on the identity PDS's account page). The `link` offer is retired. The offer's token is single-use, bound to both accounts, the channel and this session, and lasts 10 minutes. `unavailable`: the method cannot be added right now.",
3554
3699
  input: {
3555
3700
  encoding: 'application/json',
3556
3701
  schema: {
@@ -3586,11 +3731,17 @@ export const schemaDict = {
3586
3731
  method: {
3587
3732
  type: 'ref',
3588
3733
  ref: 'lex:pub.techne.draft.identity.defs#methodView',
3734
+ description: "`added` / `alreadyYours`: the method. Absent on `boundElsewhere`: the other account's method is named only to the identity PDS (identity.manageMethods addChannel).",
3589
3735
  },
3590
3736
  offer: {
3591
3737
  type: 'ref',
3592
3738
  ref: 'lex:pub.techne.draft.identity.finishAddMethod#offer',
3593
3739
  },
3740
+ other: {
3741
+ type: 'string',
3742
+ format: 'did',
3743
+ description: '`boundElsewhere` when both accounts hold something: the account the method signs in to (no `offer`).',
3744
+ },
3594
3745
  },
3595
3746
  },
3596
3747
  },
@@ -3607,6 +3758,14 @@ export const schemaDict = {
3607
3758
  name: 'RateLimitExceeded',
3608
3759
  description: 'A phone code: the provider that sent it is refusing more checks for this number for now (HTTP 429). Wait a few minutes.',
3609
3760
  },
3761
+ {
3762
+ name: 'MethodFrozen',
3763
+ description: "The channel was frozen on its account since the code was sent, or it would be new to the caller's account while one of its methods is frozen (HTTP 403).",
3764
+ },
3765
+ {
3766
+ name: 'ProtectedAccount',
3767
+ description: 'The channel signs in to another account, and one of the two has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes (HTTP 409): no fold or link is offered, and the other account is not named (no `boundElsewhere`).',
3768
+ },
3610
3769
  {
3611
3770
  name: 'UpstreamFailure',
3612
3771
  description: 'A phone code: the provider that sent it could not be asked whether it matches (HTTP 502). The code is not spent; try again.',
@@ -3620,6 +3779,7 @@ export const schemaDict = {
3620
3779
  action: {
3621
3780
  type: 'string',
3622
3781
  knownValues: ['fold', 'link'],
3782
+ description: '`fold`. (`link` is retired and no longer offered.)',
3623
3783
  },
3624
3784
  token: {
3625
3785
  type: 'string',
@@ -3699,6 +3859,10 @@ export const schemaDict = {
3699
3859
  name: 'InvalidToken',
3700
3860
  description: 'The token is unknown, used, expired, or was issued to another session.',
3701
3861
  },
3862
+ {
3863
+ name: 'ProtectedAccount',
3864
+ description: 'One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409).',
3865
+ },
3702
3866
  {
3703
3867
  name: 'NotEmpty',
3704
3868
  description: 'The account to fold gained a record or is 7 days old or more; link instead.',
@@ -3713,7 +3877,7 @@ export const schemaDict = {
3713
3877
  defs: {
3714
3878
  main: {
3715
3879
  type: 'procedure',
3716
- description: '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 and every value exactly "$now" in the record with the time, and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number\'s keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller\'s DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller\'s writes.',
3880
+ description: '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` in `write.space` with what it holds for that account. Only the number\'s keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller\'s DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller\'s writes.',
3717
3881
  input: {
3718
3882
  encoding: 'application/json',
3719
3883
  schema: {
@@ -3788,7 +3952,7 @@ export const schemaDict = {
3788
3952
  },
3789
3953
  record: {
3790
3954
  type: 'unknown',
3791
- description: 'The record, with the "$subject" (and optionally "$now") slots as string values.',
3955
+ description: 'The record, with the "$subject" (and optionally "$now" and "$name") slots as string values.',
3792
3956
  },
3793
3957
  },
3794
3958
  },
@@ -3800,7 +3964,7 @@ export const schemaDict = {
3800
3964
  defs: {
3801
3965
  main: {
3802
3966
  type: 'procedure',
3803
- description: "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, where this host holds the account's PLC rotation key, `alsoKnownAs` gains `at://{other}` after the handle. Nothing moves. v1 links only accounts whose keys this host holds.",
3967
+ description: "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 account's `alsoKnownAs` gains `at://{other}` after the handle: signed here where this host holds the account's PLC rotation key, else by the identity PDS that made and hosts it. Nothing moves. v1 links only accounts this host or its identity PDS holds.",
3804
3968
  input: {
3805
3969
  encoding: 'application/json',
3806
3970
  schema: {
@@ -3841,9 +4005,13 @@ export const schemaDict = {
3841
4005
  name: 'InvalidToken',
3842
4006
  description: 'The token is unknown, used, expired, or was issued to another session.',
3843
4007
  },
4008
+ {
4009
+ name: 'ProtectedAccount',
4010
+ description: 'One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409).',
4011
+ },
3844
4012
  {
3845
4013
  name: 'InvalidRequest',
3846
- description: "`primary` names neither account, or the other account's keys are not held here (sign in to it and link from there).",
4014
+ description: '`primary` names neither account, or the other account is held neither here nor by the identity PDS (sign in to it and link from there).',
3847
4015
  },
3848
4016
  ],
3849
4017
  },
@@ -4040,101 +4208,867 @@ export const schemaDict = {
4040
4208
  name: 'UpstreamFailure',
4041
4209
  description: 'HTTP 502: the identity PDS could not be reached, refused the credential the platform holds for the caller, or answered with a failure; try again.',
4042
4210
  },
4043
- ],
4211
+ ],
4212
+ },
4213
+ },
4214
+ },
4215
+ PubTechneDraftIdentityListLinkTokens: {
4216
+ lexicon: 1,
4217
+ id: 'pub.techne.draft.identity.listLinkTokens',
4218
+ defs: {
4219
+ main: {
4220
+ type: 'procedure',
4221
+ description: "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.",
4222
+ input: {
4223
+ encoding: 'application/json',
4224
+ schema: {
4225
+ type: 'object',
4226
+ required: ['app', 'target'],
4227
+ properties: {
4228
+ app: {
4229
+ type: 'string',
4230
+ minLength: 1,
4231
+ maxLength: 64,
4232
+ description: 'The app the link is for, a label the caller gives itself (unverified).',
4233
+ },
4234
+ target: {
4235
+ type: 'string',
4236
+ minLength: 1,
4237
+ maxLength: 2048,
4238
+ description: 'What the link is for, as a URI with a scheme (at://, https://, did:...).',
4239
+ },
4240
+ },
4241
+ },
4242
+ },
4243
+ output: {
4244
+ encoding: 'application/json',
4245
+ schema: {
4246
+ type: 'object',
4247
+ required: ['links'],
4248
+ properties: {
4249
+ links: {
4250
+ type: 'array',
4251
+ items: {
4252
+ type: 'ref',
4253
+ ref: 'lex:pub.techne.draft.identity.defs#linkTokenListed',
4254
+ },
4255
+ },
4256
+ },
4257
+ },
4258
+ },
4259
+ errors: [
4260
+ {
4261
+ name: 'InvalidRequest',
4262
+ description: "HTTP 400: a field out of bounds, or a body that is not JSON; 415: not application/json; 422: not the input's shape.",
4263
+ },
4264
+ {
4265
+ name: 'NotSupported',
4266
+ description: "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there.",
4267
+ },
4268
+ {
4269
+ name: 'RateLimitExceeded',
4270
+ description: 'Too many writes from this DID (HTTP 429).',
4271
+ },
4272
+ {
4273
+ name: 'UpstreamFailure',
4274
+ description: 'HTTP 502: the identity PDS could not be reached, refused the credential the platform holds for the caller, or answered with a failure; try again.',
4275
+ },
4276
+ ],
4277
+ },
4278
+ },
4279
+ },
4280
+ PubTechneDraftIdentityListMethods: {
4281
+ lexicon: 1,
4282
+ id: 'pub.techne.draft.identity.listMethods',
4283
+ defs: {
4284
+ main: {
4285
+ type: 'query',
4286
+ description: "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.",
4287
+ parameters: {
4288
+ type: 'params',
4289
+ properties: {
4290
+ allTypes: {
4291
+ type: 'boolean',
4292
+ description: 'Also list passkeys, Nostr keys and the recovery-code set.',
4293
+ },
4294
+ },
4295
+ },
4296
+ output: {
4297
+ encoding: 'application/json',
4298
+ schema: {
4299
+ type: 'object',
4300
+ required: ['methods', 'links'],
4301
+ properties: {
4302
+ methods: {
4303
+ type: 'array',
4304
+ items: {
4305
+ type: 'ref',
4306
+ ref: 'lex:pub.techne.draft.identity.defs#methodView',
4307
+ },
4308
+ },
4309
+ links: {
4310
+ type: 'array',
4311
+ description: "The other accounts of the caller's person (linked with identity.manageMethods moveMethod), each with `did`, `since` and `mutual` (always true); linked accounts have no primary. Empty when it is alone.",
4312
+ items: {
4313
+ type: 'ref',
4314
+ ref: 'lex:pub.techne.draft.identity.defs#linkView',
4315
+ },
4316
+ },
4317
+ pending: {
4318
+ type: 'array',
4319
+ description: "The account's pending changes, soonest first (the account page shows them at the top, with Cancel), a move of one of its methods onto another account included.",
4320
+ items: {
4321
+ type: 'ref',
4322
+ ref: 'lex:pub.techne.draft.identity.defs#pendingChange',
4323
+ },
4324
+ },
4325
+ },
4326
+ },
4327
+ },
4328
+ errors: [
4329
+ {
4330
+ name: 'AuthenticationRequired',
4331
+ description: 'No signed-in caller.',
4332
+ },
4333
+ ],
4334
+ },
4335
+ },
4336
+ },
4337
+ PubTechneDraftIdentityListPhoneHolds: {
4338
+ lexicon: 1,
4339
+ id: 'pub.techne.draft.identity.listPhoneHolds',
4340
+ defs: {
4341
+ main: {
4342
+ type: 'query',
4343
+ description: 'The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle\'s pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon\'s circle template carries `addedBy`, so a circle shows "1 pending, added by <member>"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.',
4344
+ parameters: {
4345
+ type: 'params',
4346
+ required: ['actAs'],
4347
+ properties: {
4348
+ actAs: {
4349
+ type: 'string',
4350
+ format: 'did',
4351
+ },
4352
+ alsoActAs: {
4353
+ type: 'array',
4354
+ maxLength: 99,
4355
+ description: 'More accounts whose holds to list in the same call, after `actAs` (repeat the parameter).',
4356
+ items: {
4357
+ type: 'string',
4358
+ format: 'did',
4359
+ },
4360
+ },
4361
+ },
4362
+ },
4363
+ output: {
4364
+ encoding: 'application/json',
4365
+ schema: {
4366
+ type: 'object',
4367
+ required: ['holds'],
4368
+ properties: {
4369
+ holds: {
4370
+ type: 'array',
4371
+ items: {
4372
+ type: 'ref',
4373
+ ref: 'lex:pub.techne.draft.identity.listPhoneHolds#holdView',
4374
+ },
4375
+ },
4376
+ },
4377
+ },
4378
+ },
4379
+ errors: [
4380
+ {
4381
+ name: 'InvalidRequest',
4382
+ description: 'HTTP 400: `actAs` or one of `alsoActAs` is not a DID, or more than 99 `alsoActAs`.',
4383
+ },
4384
+ {
4385
+ name: 'Forbidden',
4386
+ description: 'HTTP 403: the caller may not write as `actAs` (with `alsoActAs`: as any of them).',
4387
+ },
4388
+ ],
4389
+ },
4390
+ holdView: {
4391
+ type: 'object',
4392
+ required: ['id', 'askedBy', 'collection', 'record', 'createdAt'],
4393
+ properties: {
4394
+ id: {
4395
+ type: 'string',
4396
+ },
4397
+ actAs: {
4398
+ type: 'string',
4399
+ format: 'did',
4400
+ description: 'The account the hold would write as.',
4401
+ },
4402
+ askedBy: {
4403
+ type: 'string',
4404
+ format: 'did',
4405
+ },
4406
+ app: {
4407
+ type: 'string',
4408
+ },
4409
+ collection: {
4410
+ type: 'string',
4411
+ format: 'nsid',
4412
+ },
4413
+ rkey: {
4414
+ type: 'string',
4415
+ description: 'The record key template.',
4416
+ },
4417
+ space: {
4418
+ type: 'string',
4419
+ },
4420
+ record: {
4421
+ type: 'unknown',
4422
+ description: 'The record template, slots unfilled.',
4423
+ },
4424
+ createdAt: {
4425
+ type: 'string',
4426
+ format: 'datetime',
4427
+ },
4428
+ name: {
4429
+ type: 'string',
4430
+ description: "On a hold the caller asked for, the name the caller saved for its number: the `name` of the caller's own active `contact` on that number (the newest, when there are several), read when the listing is made. Never on a hold someone else asked for, and nothing of it is stored on the hold.",
4431
+ },
4432
+ },
4433
+ },
4434
+ },
4435
+ },
4436
+ PubTechneDraftIdentityManageMethods: {
4437
+ lexicon: 1,
4438
+ id: 'pub.techne.draft.identity.manageMethods',
4439
+ defs: {
4440
+ main: {
4441
+ type: 'procedure',
4442
+ description: "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 method, when; it counts for 10 minutes). Rules: a recovery method acting with a fresh step-up acts at once; anything else removes a method or deletes the account after a 7-day wait with an email notice, if it has any email method, cancellable by any of the account's methods, a frozen one too (`cancel`); a wait re-checks these rules when it runs out (a method marked for recovery meanwhile is not removed; a first mark is dropped once another method is marked; a wait during which any of the account's methods was frozen, even if a recovery method lifted the freeze early or removed the method, is dropped, not completed, since a frozen method can't sign in to cancel it, and every email method gets a `waitDropped` notice naming the change); a freeze is immediate, from a different method with a fresh step-up, and lasts 7 days or until a recovery method lifts it (`unfreeze`); a recovery method is never frozen, removed or unmarked by an unmarked one; the last way to sign in is never removed; marking a recovery method needs a fresh step-up of one, except the account's first, which needs a fresh step-up of any of its methods (else StepUpRequired) and waits 24 hours with an email notice, if the account has any email method. Notices are email only: the platform sends every one itself, wherever the account is hosted, to each of the account's email methods (never by phone or Nostr); the PDS sends none. Ops: `list` (the account's methods, each email and phone also with its full `value` for the owner's own account page, pending changes (an open `moveMethod` onto the account included), `hasRecovery`, and `person`, the other accounts of its person), `signInMethods` (for a sign-in page that knows only the account, \"Sign in as @handle\": the methods that can sign in now, each a `display` only, never its full value; no step-up, recovery marks or pending changes), `sendTo` (the full email or phone of one of them, for the PDS to send a sign-in code to; never shown), `remove`, `cancel`, `freeze` (with `signOut`), `unfreeze`, `mark`, `unmark`, `signOut` (sign out everywhere the platform holds a session; the PDS revokes its own), `delete`, `addExternal` (a passkey or Nostr key the PDS proved; always a fresh step-up of one of the account's methods, StepUpRequired without one, and never a program's, ProgramRefused), `newRecoveryCodes` (returned once; a new set ends the old; always a fresh step-up, and on an account with no recovery method the set is its first mark, which waits 24 hours; a first set is refused, MethodFrozen, while one of the account's methods is frozen), `redeemCode`, `setPrograms` (\"Programs can sign in with this key\" on or off, `on`, for a Nostr key, the only type that supports it: on and off both need a fresh step-up of one of the account's methods that is not a program, not frozen (a step-up by a key with programs on is ProgramRefused, so that key never switches itself off); on is also refused from the key itself, SameMethod, for a recovery method or one whose first mark is waiting, IsRecovery, and while a method of the account is frozen, MethodFrozen), `addChannel` (a `channel` the PDS just proved for `did`, as identity.finishAddMethod does for a session: `added`, `alreadyYours`, or `boundElsewhere`: when both accounts hold something, with the `other` account and its `method` (the account page offers `moveMethod`), else with a fold `offer` (identity.finishAddMethod#offer), single use, 10 minutes, bound to `did` on this hook and to no session; MethodFrozen when the channel is frozen on any account, MethodFrozen when `did` itself has a frozen method and the channel would be new to it (no method is added past a freeze; `addExternal` likewise), and, on the fold path only (one of the two accounts holds nothing, so an `offer` would be made), ProtectedAccount when either account has a recovery mark, a freeze, a pending change, or a passkey, Nostr key or recovery codes; when both hold something the answer names `other` and `method` and moveMethod's own refusals apply), `fold` (take that offer: `token`; needs a fresh step-up of `did`; ProtectedAccount (a live freeze included) and NotEmpty, checked again; `folded` with the kept `did` and the `emptied` one, which is deleted (on the identity PDS too, by `dueDeletes`)), `moveMethod` (link two accounts: move an email or phone method of account `from` onto `did` and make the two accounts one person, every DID of each linked to every other in `alsoKnownAs`; needs a fresh step-up of `did` and one of `from` (`fromStepUp`, else FromStepUpRequired); refused, nothing scheduled, when a method of either person is frozen (Frozen), either has a pending change (PendingChange), the person would hold more than 4 accounts (TooMany), the two are already one person or the same account (Same), or no key can write `alsoKnownAs` for one of their DIDs (NoKey); a method marked for recovery on `from` moves only with a `fromStepUp` of a recovery method of `from` (RecoveryProtected); it is never done inside the call: the answer is `pending` (the change, a pending change of `from`, as a defs#pendingChange as `did`'s `list` shows it) with `due`, its `dueAt`: now for a move such a step-up proved, else 7 days on, a wait `from` is told about by email (a recovery-proven move is told only when it completes), which any method of either account can `cancel`, and which a freeze of either person's methods drops (`waitDropped` to `from`); the platform completes it once due: a move whose key check or `alsoKnownAs` writes fail is tried again after a backoff (2^tries minutes, at most an hour), one refused for good (no key we can ask holds it, or the identity PDS refuses the account) is dropped with a `moveDropped` email to both accounts, one still failing 24 hours past `due` is dropped with `moveTimedOut`, one whose accounts changed meanwhile (the method gone, or marked for recovery since unless a recovery method proved the move; a refusal above other than a freeze; or a recovery-proven requester no longer a recovery method) is dropped with `moveCancelled` to both, and a completed one sends every account of the person a `linked` email), `unlink` (account `other` leaves `did`'s person at once; the removal of the `alsoKnownAs` entries between it and the rest is queued, tried again after a failure, and given up after about a day, or at once when refused for good, with an `akaLeft` email to both accounts of the entry; needs a fresh step-up of `did`; when `other` would be left with no way to sign in, `method`, one of `did`'s email or phone methods, is required (else NeedsMethod) and moves to `other`, which needs a step-up of a recovery method of `did` or of that method itself (NeedsRecoveryMethod), a recovery method's step-up for a method marked for recovery (RecoveryProtected), a method that is not frozen (MethodFrozen) and not `did`'s last way to sign in (LastMethod); NotLinked when `other` is not in `did`'s person; an email handed to `other` is released from `did`'s identity-PDS account, tried again after a failure and given up after about a day with an `emailLeft` email to `did`; both accounts get an `unlinked` email), `link` (retired, answers 400 InvalidRequest: a link is `moveMethod` now), `importBackupEmails` (once per account, recorded: a second call answers `alreadyImported` even after every mark is taken off; the move of the PDS's verified backup emails, `backupEmails`, each with when the PDS verified it: one verified before 2026-11-13T00:00:00Z becomes an email method marked for recovery at once, without step-up or wait, and one verified at or after it is skipped, `afterCutoff`, since only the holder could have added one before these rules; only an account with no recovery method takes one, all of its addresses in one call (each address once, else 400 InvalidRequest), else `hasRecovery`, nothing changes and the import is spent; a call that marks none of them spends it too; MethodFrozen while one of the account's methods is frozen, not spent; `indexOff` while the identity index is off), `notices` and `noticesSent` (no `did`; unused, kept for older clients: `notices` always answers an empty list and `noticesSent` `count: 0`, since the platform sends every notice itself), for a login service that just checked a signature by a Nostr key and knows no account yet (no `did`) `findKey` (`external`, type `nostr` and the 64-character lowercase hex key: `none` when no account the calling PDS hosts has it, else `done` with the account's `did`, the key's `method`, whether that method is `frozen` now, and whether `programs` may sign in with it), and for scheduled account deletions that came due (no `did`; only the accounts the calling PDS hosts) `dueDeletes` (up to 100 accounts the platform has deleted on its side, which the PDS deletes too; one taken and not confirmed is offered again after 5 minutes, without limit) and `dueDeletesDone` (`dids` the PDS deleted), and for a consent screen after sign-in `operator` (`operator`: whether `did` is one of the platform's operators, so the PDS offers the moderate scope, `include:pub.techne.draft.authModerate`, to operators only and drops it from everyone else's grant). Programs: a key with programs on can't be marked (ProgramsOn), and a program never touches account security: when the PDS says a program made the request (`program`), or the step-up names a key with programs on, every op but `list`, `signInMethods` and `sendTo` is 403 ProgramRefused (`operator` included: a program never moderates), `setPrograms` included: such a key's programs are turned off by a step-up of another of the account's methods.",
4443
+ input: {
4444
+ encoding: 'application/json',
4445
+ schema: {
4446
+ type: 'object',
4447
+ required: ['v', 'op'],
4448
+ properties: {
4449
+ v: {
4450
+ type: 'integer',
4451
+ const: 1,
4452
+ },
4453
+ op: {
4454
+ type: 'string',
4455
+ knownValues: [
4456
+ 'list',
4457
+ 'signInMethods',
4458
+ 'sendTo',
4459
+ 'remove',
4460
+ 'cancel',
4461
+ 'freeze',
4462
+ 'unfreeze',
4463
+ 'mark',
4464
+ 'unmark',
4465
+ 'signOut',
4466
+ 'delete',
4467
+ 'addExternal',
4468
+ 'newRecoveryCodes',
4469
+ 'redeemCode',
4470
+ 'setPrograms',
4471
+ 'importBackupEmails',
4472
+ 'findKey',
4473
+ 'notices',
4474
+ 'noticesSent',
4475
+ 'dueDeletes',
4476
+ 'dueDeletesDone',
4477
+ 'addChannel',
4478
+ 'fold',
4479
+ 'link',
4480
+ 'moveMethod',
4481
+ 'unlink',
4482
+ 'operator',
4483
+ ],
4484
+ description: 'The op. `link` is retired: it answers 400 InvalidRequest; `moveMethod` links two accounts now.',
4485
+ },
4486
+ did: {
4487
+ type: 'string',
4488
+ format: 'did',
4489
+ description: 'The signed-in account. Required for every op but `notices`, `noticesSent`, `dueDeletes` and `dueDeletesDone`.',
4490
+ },
4491
+ stepUp: {
4492
+ type: 'ref',
4493
+ ref: 'lex:pub.techne.draft.identity.manageMethods#stepUp',
4494
+ },
4495
+ method: {
4496
+ type: 'string',
4497
+ maxLength: 64,
4498
+ description: 'The method acted on (its `id` in `list` or `signInMethods`). moveMethod: the method of `from` that moves onto `did`. unlink: the method of `did` handed to `other` when `other` would have none left.',
4499
+ },
4500
+ pending: {
4501
+ type: 'string',
4502
+ maxLength: 64,
4503
+ description: 'The pending change `cancel` cancels.',
4504
+ },
4505
+ signOut: {
4506
+ type: 'boolean',
4507
+ description: 'With `freeze`: also sign out everywhere.',
4508
+ },
4509
+ external: {
4510
+ type: 'ref',
4511
+ ref: 'lex:pub.techne.draft.identity.manageMethods#external',
4512
+ },
4513
+ code: {
4514
+ type: 'string',
4515
+ maxLength: 64,
4516
+ description: 'A recovery code, for `redeemCode`.',
4517
+ },
4518
+ ids: {
4519
+ type: 'array',
4520
+ maxLength: 100,
4521
+ items: {
4522
+ type: 'integer',
4523
+ },
4524
+ description: 'Unused, kept for older clients: notice ids for `noticesSent`, which confirms none.',
4525
+ },
4526
+ emails: {
4527
+ type: 'array',
4528
+ maxLength: 10,
4529
+ items: {
4530
+ type: 'string',
4531
+ maxLength: 320,
4532
+ },
4533
+ description: "Retired, not read: a bare list has no verification dates, so the cutoff can't hold. importBackupEmails without `backupEmails` is 400 InvalidRequest.",
4534
+ },
4535
+ backupEmails: {
4536
+ type: 'array',
4537
+ maxLength: 10,
4538
+ items: {
4539
+ type: 'ref',
4540
+ ref: 'lex:pub.techne.draft.identity.manageMethods#backupEmail',
4541
+ },
4542
+ description: "importBackupEmails: the account's verified backup email addresses, all of them, each with when the PDS verified it.",
4543
+ },
4544
+ dids: {
4545
+ type: 'array',
4546
+ maxLength: 100,
4547
+ items: {
4548
+ type: 'string',
4549
+ format: 'did',
4550
+ },
4551
+ description: 'dueDeletesDone: the accounts whose PDS account was deleted.',
4552
+ },
4553
+ channel: {
4554
+ type: 'ref',
4555
+ ref: 'lex:pub.techne.draft.identity.defs#channel',
4556
+ description: 'addChannel: the email or phone the PDS just proved (a code it sent and checked).',
4557
+ },
4558
+ token: {
4559
+ type: 'string',
4560
+ maxLength: 128,
4561
+ description: "fold: the offer's token from addChannel. (link, retired, took one too.)",
4562
+ },
4563
+ from: {
4564
+ type: 'string',
4565
+ format: 'did',
4566
+ description: 'moveMethod: the account the method leaves.',
4567
+ },
4568
+ fromStepUp: {
4569
+ type: 'ref',
4570
+ ref: 'lex:pub.techne.draft.identity.manageMethods#stepUp',
4571
+ description: "moveMethod: what the PDS's step-up of `from` proved (fresh, one of `from`'s methods).",
4572
+ },
4573
+ other: {
4574
+ type: 'string',
4575
+ format: 'did',
4576
+ description: "unlink: the account that leaves `did`'s person.",
4577
+ },
4578
+ primary: {
4579
+ type: 'string',
4580
+ format: 'did',
4581
+ description: "Retired, not read: it was the retired `link` op's primary account. Linked accounts have no primary.",
4582
+ },
4583
+ on: {
4584
+ type: 'boolean',
4585
+ description: 'setPrograms: on or off.',
4586
+ },
4587
+ program: {
4588
+ type: 'boolean',
4589
+ description: "A program made this request: a session or token the PDS's programmatic sign-in opened. Account security is refused (ProgramRefused).",
4590
+ },
4591
+ },
4592
+ },
4593
+ },
4594
+ output: {
4595
+ encoding: 'application/json',
4596
+ schema: {
4597
+ type: 'object',
4598
+ required: ['v'],
4599
+ properties: {
4600
+ v: {
4601
+ type: 'integer',
4602
+ const: 1,
4603
+ },
4604
+ status: {
4605
+ type: 'string',
4606
+ knownValues: [
4607
+ 'done',
4608
+ 'pending',
4609
+ 'deleted',
4610
+ 'deleting',
4611
+ 'bound',
4612
+ 'invalid',
4613
+ 'hasRecovery',
4614
+ 'indexOff',
4615
+ 'alreadyImported',
4616
+ 'added',
4617
+ 'alreadyYours',
4618
+ 'boundElsewhere',
4619
+ 'unavailable',
4620
+ 'folded',
4621
+ 'linked',
4622
+ 'none',
4623
+ ],
4624
+ description: "`done`: it happened now. `pending`: it waits (`pending`). `deleted` / `deleting` (`delete` done now): the account is gone / its local half is gone and a sweep finishes the rest (deleteAccount's `deleted` / `pending`; a deletion that could not start answers 503 Unavailable, try again). `bound`: addExternal's key is on another account. `invalid`: redeemCode's code is wrong, used, or the set is not a recovery method or is frozen. `hasRecovery`: importBackupEmails found a recovery method on the account; nothing changed. `indexOff`: importBackupEmails can't mark anything while the identity index is off; nothing changed. `alreadyImported`: importBackupEmails ran for this account before; nothing changed. `added` / `alreadyYours` / `boundElsewhere` / `unavailable`: addChannel, as identity.finishAddMethod. `folded`: fold done. `linked`: retired (the retired `link` op's answer). moveMethod answers `pending` only, with `pending` (the change, a defs#pendingChange) and `due`. `none`: findKey's key is no method of an account the calling PDS hosts.",
4625
+ },
4626
+ pending: {
4627
+ type: 'ref',
4628
+ ref: 'lex:pub.techne.draft.identity.defs#pendingChange',
4629
+ description: "The change that waits. moveMethod's `pending` answer carries the change here, as `did`'s `list` shows it (`other` and `method`: the account the method comes from and that method), with `due`; `list` answers every pending change of the account as an array.",
4630
+ },
4631
+ due: {
4632
+ type: 'string',
4633
+ format: 'datetime',
4634
+ description: 'moveMethod `pending`: when the move is due (now for one a recovery method of `from` proved, else 7 days on). The platform completes it then or after a failed try, unless it is cancelled or dropped.',
4635
+ },
4636
+ method: {
4637
+ type: 'string',
4638
+ description: "addExternal's new method id, the recovery-code set redeemCode used, or addChannel's method id when `added` or `alreadyYours` (empty while the identity index is off); findKey's method id of the key. addChannel `boundElsewhere` when both accounts hold something: the other account's method id, for `moveMethod` (identity.finishAddMethod's session answer leaves it out).",
4639
+ },
4640
+ codes: {
4641
+ type: 'array',
4642
+ items: {
4643
+ type: 'string',
4644
+ },
4645
+ description: 'newRecoveryCodes: the codes, shown once.',
4646
+ },
4647
+ methods: {
4648
+ type: 'array',
4649
+ items: {
4650
+ type: 'ref',
4651
+ ref: 'lex:pub.techne.draft.identity.defs#methodView',
4652
+ },
4653
+ description: "list: the account's methods (`value` on emails and phones; see defs#methodView).",
4654
+ },
4655
+ hasRecovery: {
4656
+ type: 'boolean',
4657
+ },
4658
+ notices: {
4659
+ type: 'array',
4660
+ items: {
4661
+ type: 'ref',
4662
+ ref: 'lex:pub.techne.draft.identity.manageMethods#notice',
4663
+ },
4664
+ description: 'Unused, kept for older clients: always empty. The platform emails every notice itself.',
4665
+ },
4666
+ count: {
4667
+ type: 'integer',
4668
+ description: 'dueDeletesDone: how many were confirmed. noticesSent (unused, kept for older clients): always 0.',
4669
+ },
4670
+ signInMethods: {
4671
+ type: 'array',
4672
+ items: {
4673
+ type: 'ref',
4674
+ ref: 'lex:pub.techne.draft.identity.manageMethods#signInMethod',
4675
+ },
4676
+ description: "signInMethods: the account's methods that can sign in now (not frozen), oldest first.",
4677
+ },
4678
+ to: {
4679
+ type: 'ref',
4680
+ ref: 'lex:pub.techne.draft.identity.manageMethods#noticeTo',
4681
+ description: 'sendTo: where the code goes, in full.',
4682
+ },
4683
+ imported: {
4684
+ type: 'array',
4685
+ items: {
4686
+ type: 'ref',
4687
+ ref: 'lex:pub.techne.draft.identity.manageMethods#importedEmail',
4688
+ },
4689
+ description: 'importBackupEmails: each address sent, with what happened to it.',
4690
+ },
4691
+ dueDeletes: {
4692
+ type: 'array',
4693
+ items: {
4694
+ type: 'ref',
4695
+ ref: 'lex:pub.techne.draft.identity.manageMethods#dueDelete',
4696
+ },
4697
+ description: 'dueDeletes: accounts to delete on the PDS, oldest first.',
4698
+ },
4699
+ offer: {
4700
+ type: 'ref',
4701
+ ref: 'lex:pub.techne.draft.identity.finishAddMethod#offer',
4702
+ description: 'addChannel `boundElsewhere`: what `did` can do, with `fold` or `link`.',
4703
+ },
4704
+ did: {
4705
+ type: 'string',
4706
+ format: 'did',
4707
+ description: 'fold: the kept account. findKey: the account the key signs in to.',
4708
+ },
4709
+ other: {
4710
+ type: 'string',
4711
+ format: 'did',
4712
+ description: "addChannel `boundElsewhere` when both accounts hold something: the account the channel signs in to (for `moveMethod`'s `from`).",
4713
+ },
4714
+ otherPerson: {
4715
+ type: 'array',
4716
+ items: {
4717
+ type: 'ref',
4718
+ ref: 'lex:pub.techne.draft.identity.defs#personMember',
4719
+ },
4720
+ description: 'addChannel `boundElsewhere` (either form): the other accounts of the person of the account the channel signs in to, now (`did`, `handle` when known), that account itself left out; empty when it is alone.',
4721
+ },
4722
+ emptied: {
4723
+ type: 'string',
4724
+ format: 'did',
4725
+ description: 'fold: the account folded in and deleted.',
4726
+ },
4727
+ person: {
4728
+ type: 'array',
4729
+ items: {
4730
+ type: 'ref',
4731
+ ref: 'lex:pub.techne.draft.identity.defs#personMember',
4732
+ },
4733
+ description: "list: the other accounts of `did`'s person (empty when it is alone). moveMethod no longer answers `done`, which carried the person's accounts here.",
4734
+ },
4735
+ link: {
4736
+ type: 'ref',
4737
+ ref: 'lex:pub.techne.draft.identity.defs#linkView',
4738
+ description: "Retired: the retired `link` op's answer.",
4739
+ },
4740
+ frozen: {
4741
+ type: 'boolean',
4742
+ description: "findKey: the key's method is frozen now and can't sign in.",
4743
+ },
4744
+ programs: {
4745
+ type: 'boolean',
4746
+ description: 'findKey: "Programs can sign in with this key" is on.',
4747
+ },
4748
+ operator: {
4749
+ type: 'boolean',
4750
+ description: "operator: whether `did` is one of the platform's operators.",
4751
+ },
4752
+ },
4753
+ },
4754
+ },
4755
+ errors: [
4756
+ {
4757
+ name: 'BadSignature',
4758
+ },
4759
+ {
4760
+ name: 'InvalidRequest',
4761
+ },
4762
+ {
4763
+ name: 'UnknownAccount',
4764
+ },
4765
+ {
4766
+ name: 'RateLimitExceeded',
4767
+ },
4768
+ {
4769
+ name: 'Unavailable',
4770
+ description: "Try again (`redeemCode` and `newRecoveryCodes` also while the platform's identity keys are not loaded).",
4771
+ },
4772
+ {
4773
+ name: 'NotFound',
4774
+ description: 'No such method or pending change on the account (moveMethod: `from` has no such method).',
4775
+ },
4776
+ {
4777
+ name: 'NotYourMethod',
4778
+ description: "The step-up names a method that is not the account's.",
4779
+ },
4780
+ {
4781
+ name: 'LastMethod',
4782
+ description: "It would leave no way to sign in (unlink: the method handed to `other` is `did`'s only one).",
4783
+ },
4784
+ {
4785
+ name: 'RecoveryProtected',
4786
+ description: 'Only a recovery method can do this to a recovery method (moveMethod: of `from`; unlink: of `did`).',
4787
+ },
4788
+ {
4789
+ name: 'NeedsRecoveryMethod',
4790
+ description: 'Needs a fresh step-up of a recovery method (unlink: or of the method handed to `other` itself).',
4791
+ },
4792
+ {
4793
+ name: 'StepUpRequired',
4794
+ description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold`, `moveMethod` and `unlink` included).",
4795
+ },
4796
+ {
4797
+ name: 'SameMethod',
4798
+ description: 'A method cannot freeze itself.',
4799
+ },
4800
+ {
4801
+ name: 'MethodFrozen',
4802
+ description: "The acting method is frozen (for `sendTo`: the method named is; for `addChannel`: the channel is, on whichever account, or the channel would be new to `did` while one of its methods is frozen; for `addExternal`, a first `newRecoveryCodes` set and `importBackupEmails`: one of `did`'s methods is frozen, and the message says so; for `unlink`: the method handed to `other` is).",
4803
+ },
4804
+ {
4805
+ name: 'InvalidToken',
4806
+ description: 'fold: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook.',
4807
+ },
4808
+ {
4809
+ name: 'ProtectedAccount',
4810
+ description: 'addChannel / fold: one of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes; it is never folded, and addChannel answers this before any `boundElsewhere`, so nothing about the other account is sent (HTTP 409).',
4811
+ },
4812
+ {
4813
+ name: 'NotEmpty',
4814
+ description: 'fold: the account to fold gained a record or is 7 days old or more; link it with `moveMethod` instead (HTTP 409).',
4815
+ },
4816
+ {
4817
+ name: 'ProgramRefused',
4818
+ description: 'A program asked (`program`, or a step-up by a key with programs on): account security needs a person on a method no program holds.',
4819
+ },
4820
+ {
4821
+ name: 'ProgramsOn',
4822
+ description: 'mark: the key has programs on; turn that off first (HTTP 409).',
4823
+ },
4824
+ {
4825
+ name: 'IsRecovery',
4826
+ description: 'setPrograms on: the method is a recovery method, or its first mark is waiting (HTTP 409).',
4827
+ },
4828
+ {
4829
+ name: 'FromStepUpRequired',
4830
+ description: "moveMethod: `fromStepUp` is missing, malformed, not fresh, or names none of `from`'s methods (HTTP 403).",
4831
+ },
4832
+ {
4833
+ name: 'Frozen',
4834
+ description: 'moveMethod: a method of an account of either person is frozen; nothing is scheduled (HTTP 409).',
4835
+ },
4836
+ {
4837
+ name: 'PendingChange',
4838
+ description: 'moveMethod: an account of either person has a pending change, a move included; nothing is scheduled (HTTP 409).',
4839
+ },
4840
+ {
4841
+ name: 'TooMany',
4842
+ description: 'moveMethod: the person would hold more than 4 accounts (HTTP 409).',
4843
+ },
4844
+ {
4845
+ name: 'Same',
4846
+ description: 'moveMethod: the two accounts are already one person, or the same account (HTTP 409).',
4847
+ },
4848
+ {
4849
+ name: 'NoKey',
4850
+ description: 'moveMethod: no key this platform or the identity PDS holds can write `alsoKnownAs` for an account of either person; nothing is scheduled (HTTP 409).',
4851
+ },
4852
+ {
4853
+ name: 'NeedsMethod',
4854
+ description: "unlink: `other` would be left with no way to sign in; name one of `did`'s email or phone methods to hand it (`method`) (HTTP 409).",
4855
+ },
4856
+ {
4857
+ name: 'NotLinked',
4858
+ description: "unlink: `other` is not in `did`'s person, or is `did` (HTTP 404).",
4859
+ },
4860
+ ],
4861
+ },
4862
+ stepUp: {
4863
+ type: 'object',
4864
+ description: "What the PDS's step-up proved.",
4865
+ required: ['method', 'provedAt'],
4866
+ properties: {
4867
+ method: {
4868
+ type: 'ref',
4869
+ ref: 'lex:pub.techne.draft.identity.manageMethods#provedMethod',
4870
+ },
4871
+ provedAt: {
4872
+ type: 'string',
4873
+ format: 'datetime',
4874
+ },
4875
+ },
4876
+ },
4877
+ external: {
4878
+ type: 'object',
4879
+ required: ['type', 'ref'],
4880
+ properties: {
4881
+ type: {
4882
+ type: 'string',
4883
+ knownValues: ['passkey', 'nostr'],
4884
+ },
4885
+ ref: {
4886
+ type: 'string',
4887
+ maxLength: 512,
4888
+ description: 'The passkey credential id, or the Nostr key (hex).',
4889
+ },
4890
+ label: {
4891
+ type: 'string',
4892
+ maxLength: 128,
4893
+ },
4894
+ },
4895
+ },
4896
+ notice: {
4897
+ type: 'object',
4898
+ description: "Unused, kept for older clients: `notices` always answers an empty list. The platform emails every notice itself, to the account's email methods only.",
4899
+ required: ['id', 'did', 'event', 'to', 'createdAt'],
4900
+ properties: {
4901
+ id: {
4902
+ type: 'integer',
4903
+ },
4904
+ did: {
4905
+ type: 'string',
4906
+ format: 'did',
4907
+ },
4908
+ event: {
4909
+ type: 'string',
4910
+ knownValues: [
4911
+ 'removeMethod',
4912
+ 'deleteAccount',
4913
+ 'markRecovery',
4914
+ 'freeze',
4915
+ 'waitDropped',
4916
+ 'programsOn',
4917
+ 'moveMethod',
4918
+ 'linked',
4919
+ 'unlinked',
4920
+ 'moveDropped',
4921
+ 'moveTimedOut',
4922
+ 'moveCancelled',
4923
+ 'akaLeft',
4924
+ 'emailLeft',
4925
+ ],
4926
+ description: "What the notice is about: a change that started to wait (`removeMethod`, `deleteAccount`, `markRecovery`, `moveMethod`), a `freeze`, `waitDropped`: the change in `pending` was not completed because one of the account's methods was frozen during its wait, `programsOn`: programs can now sign in with one of the account's Nostr keys (`setPrograms` on; no `pending`), `linked` / `unlinked`: a link (moveMethod completed) or an unlink changed the account's person, `moveDropped` / `moveTimedOut` / `moveCancelled`: a move was dropped because a key can't be used or the identity PDS refused it for good, because it still could not be written 24 hours past due, or because something changed on one of its accounts, or `akaLeft` / `emailLeft`: an `alsoKnownAs` entry or an identity-PDS account email the platform owed removing was given up and is left.",
4927
+ },
4928
+ to: {
4929
+ type: 'ref',
4930
+ ref: 'lex:pub.techne.draft.identity.manageMethods#noticeTo',
4931
+ },
4932
+ pending: {
4933
+ type: 'ref',
4934
+ ref: 'lex:pub.techne.draft.identity.defs#pendingChange',
4935
+ },
4936
+ createdAt: {
4937
+ type: 'string',
4938
+ format: 'datetime',
4939
+ },
4940
+ },
4941
+ },
4942
+ provedMethod: {
4943
+ type: 'object',
4944
+ required: ['type'],
4945
+ properties: {
4946
+ type: {
4947
+ type: 'string',
4948
+ knownValues: [
4949
+ 'email',
4950
+ 'phone',
4951
+ 'passkey',
4952
+ 'nostr',
4953
+ 'recoveryCodes',
4954
+ ],
4955
+ },
4956
+ value: {
4957
+ type: 'string',
4958
+ maxLength: 512,
4959
+ description: 'The email or E.164 phone, the passkey credential id, or the Nostr key (hex). None for recoveryCodes.',
4960
+ },
4961
+ },
4962
+ },
4963
+ noticeTo: {
4964
+ type: 'object',
4965
+ description: "An email or phone number in full: `sendTo`'s `to`. Also the shape of #notice's `to`, which is unused and kept for older clients (notices go to email methods only).",
4966
+ required: ['type', 'value'],
4967
+ properties: {
4968
+ type: {
4969
+ type: 'string',
4970
+ knownValues: ['email', 'phone', 'nostr'],
4971
+ },
4972
+ value: {
4973
+ type: 'string',
4974
+ },
4975
+ },
4976
+ },
4977
+ signInMethod: {
4978
+ type: 'object',
4979
+ description: 'One way to sign in, as a page may show it before anyone has signed in: an email as `***a@***e.***m` (the last character of each dot-separated part), a phone as `•••• 97` (its last two digits), a passkey or Nostr key by its label.',
4980
+ required: ['id', 'type', 'display'],
4981
+ properties: {
4982
+ id: {
4983
+ type: 'string',
4984
+ description: "The method id (for `sendTo`, and the PDS's own passkey or Nostr challenge).",
4985
+ },
4986
+ type: {
4987
+ type: 'string',
4988
+ knownValues: ['email', 'phone', 'passkey', 'nostr'],
4989
+ },
4990
+ display: {
4991
+ type: 'string',
4992
+ },
4993
+ },
4044
4994
  },
4045
- },
4046
- },
4047
- PubTechneDraftIdentityListLinkTokens: {
4048
- lexicon: 1,
4049
- id: 'pub.techne.draft.identity.listLinkTokens',
4050
- defs: {
4051
- main: {
4052
- type: 'procedure',
4053
- description: "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.",
4054
- input: {
4055
- encoding: 'application/json',
4056
- schema: {
4057
- type: 'object',
4058
- required: ['app', 'target'],
4059
- properties: {
4060
- app: {
4061
- type: 'string',
4062
- minLength: 1,
4063
- maxLength: 64,
4064
- description: 'The app the link is for, a label the caller gives itself (unverified).',
4065
- },
4066
- target: {
4067
- type: 'string',
4068
- minLength: 1,
4069
- maxLength: 2048,
4070
- description: 'What the link is for, as a URI with a scheme (at://, https://, did:...).',
4071
- },
4072
- },
4995
+ importedEmail: {
4996
+ type: 'object',
4997
+ required: ['email', 'status'],
4998
+ properties: {
4999
+ email: {
5000
+ type: 'string',
4073
5001
  },
4074
- },
4075
- output: {
4076
- encoding: 'application/json',
4077
- schema: {
4078
- type: 'object',
4079
- required: ['links'],
4080
- properties: {
4081
- links: {
4082
- type: 'array',
4083
- items: {
4084
- type: 'ref',
4085
- ref: 'lex:pub.techne.draft.identity.defs#linkTokenListed',
4086
- },
4087
- },
4088
- },
5002
+ status: {
5003
+ type: 'string',
5004
+ knownValues: [
5005
+ 'marked',
5006
+ 'boundElsewhere',
5007
+ 'released',
5008
+ 'invalid',
5009
+ 'afterCutoff',
5010
+ ],
5011
+ description: '`marked`: an email method of the account now, marked for recovery. `boundElsewhere`: on another account, left there. `released`: the account removed it; only adding it again binds it back. `invalid`: not an email address. `afterCutoff`: verified at or after 2026-11-13T00:00:00Z, not imported (add it and mark it under the rules).',
4089
5012
  },
4090
5013
  },
4091
- errors: [
4092
- {
4093
- name: 'InvalidRequest',
4094
- description: "HTTP 400: a field out of bounds, or a body that is not JSON; 415: not application/json; 422: not the input's shape.",
5014
+ description: 'One address importBackupEmails was sent, with what happened to it.',
5015
+ },
5016
+ backupEmail: {
5017
+ type: 'object',
5018
+ description: 'One backup email importBackupEmails moves, with when the PDS verified it.',
5019
+ required: ['email', 'verifiedAt'],
5020
+ properties: {
5021
+ email: {
5022
+ type: 'string',
5023
+ maxLength: 320,
4095
5024
  },
4096
- {
4097
- name: 'NotSupported',
4098
- description: "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there.",
5025
+ verifiedAt: {
5026
+ type: 'string',
5027
+ format: 'datetime',
5028
+ description: 'When the PDS verified the address. Only one verified before 2026-11-13T00:00:00Z is imported.',
4099
5029
  },
4100
- {
4101
- name: 'RateLimitExceeded',
4102
- description: 'Too many writes from this DID (HTTP 429).',
5030
+ },
5031
+ },
5032
+ dueDelete: {
5033
+ type: 'object',
5034
+ description: 'An account whose scheduled deletion ran on the platform: the PDS deletes its PDS account, then confirms (`dueDeletesDone`). An account already gone from the PDS counts as deleted.',
5035
+ required: ['did', 'deletedAt'],
5036
+ properties: {
5037
+ did: {
5038
+ type: 'string',
5039
+ format: 'did',
4103
5040
  },
4104
- {
4105
- name: 'UpstreamFailure',
4106
- description: 'HTTP 502: the identity PDS could not be reached, refused the credential the platform holds for the caller, or answered with a failure; try again.',
5041
+ deletedAt: {
5042
+ type: 'string',
5043
+ format: 'datetime',
5044
+ description: 'When the platform deleted its side.',
4107
5045
  },
4108
- ],
5046
+ },
4109
5047
  },
4110
5048
  },
4111
5049
  },
4112
- PubTechneDraftIdentityListMethods: {
5050
+ PubTechneDraftIdentityOpenAccountPage: {
4113
5051
  lexicon: 1,
4114
- id: 'pub.techne.draft.identity.listMethods',
5052
+ id: 'pub.techne.draft.identity.openAccountPage',
4115
5053
  defs: {
4116
5054
  main: {
4117
- type: 'query',
4118
- description: "The caller's sign-in methods (masked) and the account's alias links. Signed-in members only.",
5055
+ type: 'procedure',
5056
+ description: "A link that opens the caller's account page on their PDS already signed in, for an app to open in the system browser. The link works once, until `expiresAt` (60 seconds today). It signs in to view the page only: changing a sign-in method or deleting the account there still asks for a code or a passkey. Signed-in members only, from a browser or device session: any other bearer token (an agent token, an app's OAuth token, a program's token) is refused.",
4119
5057
  output: {
4120
5058
  encoding: 'application/json',
4121
5059
  schema: {
4122
5060
  type: 'object',
4123
- required: ['methods', 'links'],
5061
+ required: ['url', 'expiresAt'],
4124
5062
  properties: {
4125
- methods: {
4126
- type: 'array',
4127
- items: {
4128
- type: 'ref',
4129
- ref: 'lex:pub.techne.draft.identity.defs#methodView',
4130
- },
5063
+ url: {
5064
+ type: 'string',
5065
+ format: 'uri',
5066
+ maxLength: 2048,
5067
+ description: 'Open it once, before expiresAt.',
4131
5068
  },
4132
- links: {
4133
- type: 'array',
4134
- items: {
4135
- type: 'ref',
4136
- ref: 'lex:pub.techne.draft.identity.defs#linkView',
4137
- },
5069
+ expiresAt: {
5070
+ type: 'string',
5071
+ format: 'datetime',
4138
5072
  },
4139
5073
  },
4140
5074
  },
@@ -4144,106 +5078,27 @@ export const schemaDict = {
4144
5078
  name: 'AuthenticationRequired',
4145
5079
  description: 'No signed-in caller.',
4146
5080
  },
4147
- ],
4148
- },
4149
- },
4150
- },
4151
- PubTechneDraftIdentityListPhoneHolds: {
4152
- lexicon: 1,
4153
- id: 'pub.techne.draft.identity.listPhoneHolds',
4154
- defs: {
4155
- main: {
4156
- type: 'query',
4157
- description: 'The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle\'s pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon\'s circle template carries `addedBy`, so a circle shows "1 pending, added by <member>"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.',
4158
- parameters: {
4159
- type: 'params',
4160
- required: ['actAs'],
4161
- properties: {
4162
- actAs: {
4163
- type: 'string',
4164
- format: 'did',
4165
- },
4166
- alsoActAs: {
4167
- type: 'array',
4168
- maxLength: 99,
4169
- description: 'More accounts whose holds to list in the same call, after `actAs` (repeat the parameter).',
4170
- items: {
4171
- type: 'string',
4172
- format: 'did',
4173
- },
4174
- },
4175
- },
4176
- },
4177
- output: {
4178
- encoding: 'application/json',
4179
- schema: {
4180
- type: 'object',
4181
- required: ['holds'],
4182
- properties: {
4183
- holds: {
4184
- type: 'array',
4185
- items: {
4186
- type: 'ref',
4187
- ref: 'lex:pub.techne.draft.identity.listPhoneHolds#holdView',
4188
- },
4189
- },
4190
- },
4191
- },
4192
- },
4193
- errors: [
4194
5081
  {
4195
- name: 'InvalidRequest',
4196
- description: 'HTTP 400: `actAs` or one of `alsoActAs` is not a DID, or more than 99 `alsoActAs`.',
5082
+ name: 'NotAuthorized',
5083
+ description: "The caller's bearer token is neither a device session nor an agent token, such as an app's OAuth token (HTTP 403).",
4197
5084
  },
4198
5085
  {
4199
- name: 'Forbidden',
4200
- description: 'HTTP 403: the caller may not write as `actAs` (with `alsoActAs`: as any of them).',
4201
- },
4202
- ],
4203
- },
4204
- holdView: {
4205
- type: 'object',
4206
- required: ['id', 'askedBy', 'collection', 'record', 'createdAt'],
4207
- properties: {
4208
- id: {
4209
- type: 'string',
4210
- },
4211
- actAs: {
4212
- type: 'string',
4213
- format: 'did',
4214
- description: 'The account the hold would write as.',
4215
- },
4216
- askedBy: {
4217
- type: 'string',
4218
- format: 'did',
4219
- },
4220
- app: {
4221
- type: 'string',
4222
- },
4223
- collection: {
4224
- type: 'string',
4225
- format: 'nsid',
5086
+ name: 'ProgramRefused',
5087
+ description: "The caller is an agent token or a program's token: neither opens the account page (HTTP 403).",
4226
5088
  },
4227
- rkey: {
4228
- type: 'string',
4229
- description: 'The record key template.',
4230
- },
4231
- space: {
4232
- type: 'string',
4233
- },
4234
- record: {
4235
- type: 'unknown',
4236
- description: 'The record template, slots unfilled.',
5089
+ {
5090
+ name: 'NotFound',
5091
+ description: 'This server has no account page for the caller: its PDS is not ours, or none is set up (HTTP 404). Open the account page without a link.',
4237
5092
  },
4238
- createdAt: {
4239
- type: 'string',
4240
- format: 'datetime',
5093
+ {
5094
+ name: 'RateLimitExceeded',
5095
+ description: 'Too many links for this account (HTTP 429).',
4241
5096
  },
4242
- name: {
4243
- type: 'string',
4244
- description: "On a hold the caller asked for, the name the caller saved for its number: the `name` of the caller's own active `contact` on that number (the newest, when there are several), read when the listing is made. Never on a hold someone else asked for, and nothing of it is stored on the hold.",
5097
+ {
5098
+ name: 'Unavailable',
5099
+ description: 'The PDS did not answer (HTTP 502). Open the account page without a link.',
4245
5100
  },
4246
- },
5101
+ ],
4247
5102
  },
4248
5103
  },
4249
5104
  },
@@ -4514,6 +5369,15 @@ export const schemaDict = {
4514
5369
  format: 'did',
4515
5370
  description: "Present only with `released`, and only when the calling PDS hosts the account that removed the number: that account's DID. A PDS that keeps an account per phone number (a placeholder) uses it to tell two placeholders apart: the old account's, which must not sign in with this number again, and the one it started for the number's new holder after the removal, which it finds by this DID and `releaseId` and signs in until the number is bound to it. Binding the number back to this account through identity.attest is refused (`ChannelReleased`).",
4516
5371
  },
5372
+ frozen: {
5373
+ type: 'boolean',
5374
+ description: "Present (true) only with `did`: this method of the account is frozen (identity.manageMethods `freeze`). The PDS refuses the sign-in and creates nothing; the account's other methods still sign in.",
5375
+ },
5376
+ frozenUntil: {
5377
+ type: 'string',
5378
+ format: 'datetime',
5379
+ description: 'Present only with `frozen`: when the freeze ends, unless a recovery method lifts it sooner.',
5380
+ },
4517
5381
  releaseId: {
4518
5382
  type: 'string',
4519
5383
  minLength: 1,
@@ -4600,7 +5464,7 @@ export const schemaDict = {
4600
5464
  defs: {
4601
5465
  main: {
4602
5466
  type: 'procedure',
4603
- description: "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 this host added.",
5467
+ description: "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).",
4604
5468
  input: {
4605
5469
  encoding: 'application/json',
4606
5470
  schema: {
@@ -4645,7 +5509,7 @@ export const schemaDict = {
4645
5509
  defs: {
4646
5510
  main: {
4647
5511
  type: 'procedure',
4648
- description: "Remove a sign-in method from the caller's account: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. A removed phone number is marked released: identity.resolve answers `unbound` with `released` and `releasedFrom` (this account) until someone binds it, so a PDS never signs it in to this account again through a placeholder it kept, and identity.attest refuses binding it back here (`ChannelReleased`); only adding it again (identity.finishAddMethod) does. Refused for the account's last method.",
5512
+ description: "Remove a sign-in method from the caller's account, by the sign-in method rules (identity.manageMethods): this method carries no step-up, so the removal always waits 7 days, with an email notice to each of the account's email methods, and any of its methods can cancel it (`status: pending`, `pending`); a recovery method is not removed this way (`RecoveryProtected`), and the last way to sign in never is. When it completes: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. A removed phone number is marked released: identity.resolve answers `unbound` with `released` and `releasedFrom` (this account) until someone binds it, so a PDS never signs it in to this account again through a placeholder it kept, and identity.attest refuses binding it back here (`ChannelReleased`); only adding it again (identity.finishAddMethod) does. Refused for the account's last method.",
4649
5513
  input: {
4650
5514
  encoding: 'application/json',
4651
5515
  schema: {
@@ -4668,6 +5532,14 @@ export const schemaDict = {
4668
5532
  ok: {
4669
5533
  type: 'boolean',
4670
5534
  },
5535
+ status: {
5536
+ type: 'string',
5537
+ knownValues: ['pending'],
5538
+ },
5539
+ pending: {
5540
+ type: 'ref',
5541
+ ref: 'lex:pub.techne.draft.identity.defs#pendingChange',
5542
+ },
4671
5543
  },
4672
5544
  },
4673
5545
  },
@@ -4682,7 +5554,11 @@ export const schemaDict = {
4682
5554
  },
4683
5555
  {
4684
5556
  name: 'LastMethod',
4685
- description: "It is the account's only sign-in method.",
5557
+ description: "It is the account's only sign-in method (counting those already waiting to be removed).",
5558
+ },
5559
+ {
5560
+ name: 'RecoveryProtected',
5561
+ description: 'It is a recovery method; only a recovery method removes it (identity.manageMethods).',
4686
5562
  },
4687
5563
  ],
4688
5564
  },
@@ -4966,7 +5842,7 @@ export const schemaDict = {
4966
5842
  main: {
4967
5843
  type: 'record',
4968
5844
  key: 'any',
4969
- description: "The rkey is the operator's DID, or `{did}-{millis}` for a later period after one has ended, so each period keeps its own record. Readers count a record only at one of those rkeys and only with `subject` = that DID. `any` permits the convention but cannot enforce it.",
5845
+ description: "The rkey is the operator's DID, or `{did}-{millis}` for a later period after one has ended, so each period keeps its own record. Enforced by the AppView on read: a record counts only at one of those rkeys and only with `subject` = that DID.",
4970
5846
  record: {
4971
5847
  type: 'object',
4972
5848
  required: ['subject', 'createdAt'],
@@ -5734,11 +6610,11 @@ export const schemaDict = {
5734
6610
  PubTechneDraftPermissionedPutRecords: {
5735
6611
  lexicon: 1,
5736
6612
  id: 'pub.techne.draft.permissioned.putRecords',
5737
- description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only for its app or under `space:` scopes covering it; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) by a caller that is neither the app its key names nor holds `space:` scopes covering a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied. A first write is never refused for its space. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.",
6613
+ description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only for its app or under `space:` scopes covering it; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) by a caller that is neither the app its key names nor holds `space:` scopes covering a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused for its space. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.",
5738
6614
  defs: {
5739
6615
  main: {
5740
6616
  type: 'procedure',
5741
- description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.",
6617
+ description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.",
5742
6618
  input: {
5743
6619
  encoding: 'application/json',
5744
6620
  schema: {
@@ -5795,7 +6671,7 @@ export const schemaDict = {
5795
6671
  },
5796
6672
  {
5797
6673
  name: 'LastManager',
5798
- description: 'HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.',
6674
+ description: 'HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30, after the whole batch or after any prefix of its membership writes (a roster batch stops at its first refused write, so any prefix may be what is left written). Make someone else manager first. Nothing is written.',
5799
6675
  },
5800
6676
  {
5801
6677
  name: 'AccountDeleting',
@@ -5882,13 +6758,15 @@ export const schemaDict = {
5882
6758
  properties: {
5883
6759
  error: {
5884
6760
  type: 'string',
5885
- description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space and the caller is neither the app its key names nor holds `space:` scopes covering it; see putRecord).",
6761
+ description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord), RateLimitExceeded (a contact write that binds a number to an account found the caller's phone lookups spent; retry it in a minute) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space and the caller is neither the app its key names nor holds `space:` scopes covering it; see putRecord).",
5886
6762
  knownValues: [
5887
6763
  'InvalidRequest',
5888
6764
  'InvalidSwap',
5889
6765
  'Conflict',
5890
6766
  'IdentityConflict',
5891
6767
  'DuplicatePhone',
6768
+ 'RateLimitExceeded',
6769
+ 'Forbidden',
5892
6770
  ],
5893
6771
  },
5894
6772
  message: {
@@ -5984,7 +6862,7 @@ export const schemaDict = {
5984
6862
  main: {
5985
6863
  type: 'record',
5986
6864
  key: 'any',
5987
- description: 'Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. `any` permits that convention but cannot enforce it.',
6865
+ description: 'Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. Readers do not depend on the key: the AppView uses the newest research record about a place from a trusted writer.',
5988
6866
  record: {
5989
6867
  type: 'object',
5990
6868
  required: ['subject', 'createdAt'],
@@ -6407,7 +7285,7 @@ export const schemaDict = {
6407
7285
  main: {
6408
7286
  type: 'record',
6409
7287
  key: 'any',
6410
- description: 'Publishers use sidecar_rkey(curated record AT-URI), so each curated record has one provenance per curator. `any` permits that convention but cannot enforce it.',
7288
+ description: "Publishers use sidecar_rkey(curated record AT-URI), so each curated record has one provenance per curator. Readers do not depend on the key: the AppView finds a curated record's provenance by `subject` in the curator's repo.",
6411
7289
  record: {
6412
7290
  type: 'object',
6413
7291
  required: ['subject', 'sources', 'readiness', 'createdAt'],
@@ -7153,6 +8031,32 @@ export const schemaDict = {
7153
8031
  type: 'string',
7154
8032
  format: 'handle',
7155
8033
  },
8034
+ linked: {
8035
+ type: 'array',
8036
+ items: {
8037
+ type: 'ref',
8038
+ ref: 'lex:pub.techne.draft.query.getRecords#linkedHandle',
8039
+ },
8040
+ description: 'The other accounts linked to this one now (the same person; links are public, alsoKnownAs on both DIDs). Absent when none, and while a sign-in method of any account of the person is frozen (a freeze pauses the link). A linked account that is not active or is suspended is left out.',
8041
+ },
8042
+ },
8043
+ },
8044
+ linkedHandle: {
8045
+ type: 'object',
8046
+ required: ['did'],
8047
+ properties: {
8048
+ did: {
8049
+ type: 'string',
8050
+ format: 'did',
8051
+ },
8052
+ handle: {
8053
+ type: 'string',
8054
+ format: 'handle',
8055
+ },
8056
+ displayName: {
8057
+ type: 'string',
8058
+ description: "The linked account's public profile name, when it has one.",
8059
+ },
7156
8060
  },
7157
8061
  },
7158
8062
  resolved: {
@@ -7574,7 +8478,7 @@ export const schemaDict = {
7574
8478
  main: {
7575
8479
  type: 'record',
7576
8480
  key: 'any',
7577
- description: 'Publishers use sidecar_rkey(subject AT-URI), so a rule holds one receipt per record, updated when it reprocesses. `any` permits that convention but cannot enforce it.',
8481
+ description: "Publishers use sidecar_rkey(subject AT-URI), so a rule holds one receipt per record, updated when it reprocesses. Readers do not depend on the key: the AppView counts a receipt from the rule's account about the record's current cid.",
7578
8482
  record: {
7579
8483
  type: 'object',
7580
8484
  required: ['subject', 'createdAt'],
@@ -7649,7 +8553,7 @@ export const schemaDict = {
7649
8553
  defs: {
7650
8554
  main: {
7651
8555
  type: 'procedure',
7652
- description: "Operator only. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
8556
+ description: "Operator only, with the moderate scope. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
7653
8557
  input: {
7654
8558
  encoding: 'application/json',
7655
8559
  schema: {
@@ -7708,13 +8612,21 @@ export const schemaDict = {
7708
8612
  description: 'Blocking is a signed-in act.',
7709
8613
  },
7710
8614
  {
7711
- name: 'Forbidden',
7712
- description: 'The caller is not an operator of this platform.',
8615
+ name: 'NotAuthorized',
8616
+ description: 'The caller is not an operator of this platform, or the call does not carry the moderate scope (HTTP 403).',
8617
+ },
8618
+ {
8619
+ name: 'ProgramRefused',
8620
+ description: "The caller is a program's token: a program never reaches an operator method (HTTP 403).",
7713
8621
  },
7714
8622
  {
7715
8623
  name: 'UnknownType',
7716
8624
  description: '`nsid` names no community or requested type (our own types are not limited).',
7717
8625
  },
8626
+ {
8627
+ name: 'InvalidRequest',
8628
+ description: '`reason` is blank or over 1000 characters, or `author` is not a DID (HTTP 400).',
8629
+ },
7718
8630
  ],
7719
8631
  },
7720
8632
  },
@@ -8334,7 +9246,7 @@ export const schemaDict = {
8334
9246
  defs: {
8335
9247
  main: {
8336
9248
  type: 'procedure',
8337
- description: "Operator only. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
9249
+ description: "Operator only, with the moderate scope. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
8338
9250
  input: {
8339
9251
  encoding: 'application/json',
8340
9252
  schema: {
@@ -8384,13 +9296,21 @@ export const schemaDict = {
8384
9296
  description: 'Purging is a signed-in act.',
8385
9297
  },
8386
9298
  {
8387
- name: 'Forbidden',
8388
- description: 'The caller is not an operator of this platform.',
9299
+ name: 'NotAuthorized',
9300
+ description: 'The caller is not an operator of this platform, or the call does not carry the moderate scope (HTTP 403).',
9301
+ },
9302
+ {
9303
+ name: 'ProgramRefused',
9304
+ description: "The caller is a program's token: a program never reaches an operator method (HTTP 403).",
8389
9305
  },
8390
9306
  {
8391
9307
  name: 'UnknownType',
8392
9308
  description: '`nsid` names no community or requested type (our own types cannot be purged).',
8393
9309
  },
9310
+ {
9311
+ name: 'InvalidRequest',
9312
+ description: '`reason` is blank or over 1000 characters (HTTP 400).',
9313
+ },
8394
9314
  ],
8395
9315
  },
8396
9316
  },
@@ -8515,7 +9435,7 @@ export const schemaDict = {
8515
9435
  main: {
8516
9436
  type: 'record',
8517
9437
  key: 'any',
8518
- description: "Writers use the retired identity's DID as the rkey, so each writer holds at most one per identity. `any` permits that convention but cannot enforce it, so readers count a retirement only at rkey = its subject.",
9438
+ description: "Writers use the retired identity's DID as the rkey, so each writer holds at most one per identity. Enforced by the AppView on read: a retirement at any other key is not counted.",
8519
9439
  record: {
8520
9440
  type: 'object',
8521
9441
  required: ['subject', 'createdAt'],
@@ -8579,7 +9499,7 @@ export const schemaDict = {
8579
9499
  main: {
8580
9500
  type: 'record',
8581
9501
  key: 'any',
8582
- description: 'One record per pair: publishers put the lower AT-URI in `subject` and use pair_rkey(subject, other) (regenos_lexicons::sidecar), so the reversed pair cannot get a second record. `any` permits that convention but cannot enforce it. A pair asserted both sameAs and distinctFrom by writers a reader trusts is a conflict that reader resolves.',
9502
+ description: 'One record per pair: publishers put the lower AT-URI in `subject` and use pair_rkey(subject, other) (regenos_lexicons::sidecar), so the reversed pair cannot get a second record. Readers do not depend on the key: the AppView walks pairs from both ends, so a reversed or repeated pair is the same link. A pair asserted both sameAs and distinctFrom by writers a reader trusts is a conflict that reader resolves.',
8583
9503
  record: {
8584
9504
  type: 'object',
8585
9505
  required: ['subject', 'other', 'createdAt'],
@@ -8745,7 +9665,7 @@ export const schemaDict = {
8745
9665
  main: {
8746
9666
  type: 'record',
8747
9667
  key: 'any',
8748
- description: 'Publishers use sidecar_rkey(subject AT-URI), one per record. `any` permits that convention but cannot enforce it.',
9668
+ description: 'Publishers use sidecar_rkey(subject AT-URI), one per record. Readers mostly find source sidecars by `subject` at any key; the commons curator reads only this key to tell whether a source item is gone upstream.',
8749
9669
  record: {
8750
9670
  type: 'object',
8751
9671
  required: ['subject', 'sourceStatus', 'lastSeenAt', 'createdAt'],
@@ -8853,7 +9773,7 @@ export const schemaDict = {
8853
9773
  },
8854
9774
  },
8855
9775
  },
8856
- description: 'Publishers use an immutable content-derived rkey: changed credit or license content creates a new record and CID; existing content keys are never rewritten. The key:any schema permits this convention but cannot enforce immutability.',
9776
+ description: 'Publishers use an immutable content-derived rkey: changed credit or license content creates a new record and CID; existing content keys are never rewritten. Readers do not depend on the key: a sourceAttribution is read only through a strongRef (uri and cid) that names it.',
8857
9777
  },
8858
9778
  },
8859
9779
  },
@@ -8949,7 +9869,7 @@ export const schemaDict = {
8949
9869
  main: {
8950
9870
  type: 'record',
8951
9871
  key: 'any',
8952
- description: 'Publishers use sidecar_rkey(subject AT-URI), one summary per record per writer. `any` permits that convention but cannot enforce it.',
9872
+ description: "Publishers use sidecar_rkey(subject AT-URI), so a writer's rewrite replaces its one summary. Readers do not depend on the key: the AppView finds summaries by `subject` and its cid and uses the newest from a trusted writer.",
8953
9873
  record: {
8954
9874
  type: 'object',
8955
9875
  required: ['subject', 'text', 'createdAt'],
@@ -9065,7 +9985,7 @@ export const schemaDict = {
9065
9985
  main: {
9066
9986
  type: 'record',
9067
9987
  key: 'any',
9068
- description: 'Publishers use sidecar_rkey(subject AT-URI), so a writer holds one verdict per record, updated when a new version is judged. `any` permits that convention but cannot enforce it.',
9988
+ description: 'Publishers use sidecar_rkey(subject AT-URI), so a writer holds one verdict per record, updated when a new version is judged. Readers do not depend on the key: any trusted verdict naming the subject counts.',
9069
9989
  record: {
9070
9990
  type: 'object',
9071
9991
  required: ['subject', 'values', 'createdAt'],
@@ -9103,7 +10023,7 @@ export const schemaDict = {
9103
10023
  main: {
9104
10024
  type: 'record',
9105
10025
  key: 'any',
9106
- description: 'The record key is the subject DID, so an issuer holds at most one per account. `any` permits that convention but cannot enforce it, so readers count a verification only at rkey = its subject DID.',
10026
+ description: 'The record key is the subject DID, so an issuer holds at most one per account. Enforced by the AppView on read: a verification at any other key is not counted.',
9107
10027
  record: {
9108
10028
  type: 'object',
9109
10029
  required: ['subject', 'createdAt'],
@@ -9181,7 +10101,7 @@ export const schemaDict = {
9181
10101
  defs: {
9182
10102
  main: {
9183
10103
  type: 'procedure',
9184
- description: "Let an app read a space: writes the space authority's pub.techne.draft.appAccess for the space and the app, placed in the space. Whoever passes the space type's published manage leg may call it (the owner of a personal space; Facilitator and up for a collective's): the record is written with the authority's pen, which is what the manage leg grants. Approving again is a no-op. A member's request (pub.techne.draft.appAccessRequest) for the same space and app becomes approved. Its only other effect is clearing the request from the approvers' inboxes.",
10104
+ description: "Let an app read a space: writes the space authority's pub.techne.draft.appAccess for the space and the app, placed in the space. Whoever passes the space type's published manage leg may call it (the owner of a personal space itself, never another account linked to it; Facilitator and up for a collective's, a role held by any of the caller's linked accounts included): the record is written into the authority's repo with the authority's pen, which is what the manage leg grants. Approving again is a no-op. A member's request (pub.techne.draft.appAccessRequest) for the same space and app becomes approved. Its only other effect is clearing the request from the approvers' inboxes.",
9185
10105
  input: {
9186
10106
  encoding: 'application/json',
9187
10107
  schema: {
@@ -9231,7 +10151,7 @@ export const schemaDict = {
9231
10151
  },
9232
10152
  {
9233
10153
  name: 'NotAuthorized',
9234
- description: "The caller does not pass the space type's manage leg.",
10154
+ description: "The caller does not pass the space type's manage leg: for a personal space, the caller is not its owner (an account linked to the owner is refused too).",
9235
10155
  },
9236
10156
  ],
9237
10157
  },
@@ -9471,7 +10391,7 @@ export const schemaDict = {
9471
10391
  defs: {
9472
10392
  main: {
9473
10393
  type: 'query',
9474
- description: "Whether an app may read a space, derived and never stored: `approved` when the authority's pub.techne.draft.appAccess exists, `pending` when a pub.techne.draft.appAccessRequest counts without one, `none` otherwise. A request counts only while its requester can read the space, and for a caller who is not an approver only the caller's own request counts (an approver sees every request). Nothing stores a denial. `approvers` are who can approve it: the manage-leg holders, or the owner of a personal space. `requesterIsApprover` says the caller is one of them, so approving is one tap and sends no notification. Approvers are notified of a request only when its requester can read the space and is not an approver. Only a reader of the space may ask.",
10394
+ description: "Whether an app may read a space, derived and never stored: `approved` when the authority's pub.techne.draft.appAccess exists, `pending` when a pub.techne.draft.appAccessRequest counts without one, `none` otherwise. A request counts only while its requester can read the space, and for a caller who is not an approver only requests by the caller's own accounts (its person) count (an approver sees every request). Nothing stores a denial. `approvers` are who can approve it, each an account social.scenius.approveAppAccess accepts: the manage-leg holders, or the owner of a personal space itself (never another account linked to it). `requesterIsApprover` says the caller's own account is one of them, so approving is one tap and sends no notification. Approvers are notified of a request only when its requester can read the space and is not an approver. Only a reader of the space may ask.",
9475
10395
  parameters: {
9476
10396
  type: 'params',
9477
10397
  properties: {
@@ -9726,7 +10646,7 @@ export const schemaDict = {
9726
10646
  defs: {
9727
10647
  main: {
9728
10648
  type: 'query',
9729
- description: 'What an app gets from the caller, for its sign-in to list: every space the caller passes the manage leg of (their own included) whose authority has approved the app, each with the criteria that approval states for future spaces.',
10649
+ description: "What an app gets from the caller, for its sign-in to list: every space the caller's person passes the manage leg of (the caller's own, and its linked accounts' spaces, included) whose authority has approved the app, each with the criteria that approval states for future spaces.",
9730
10650
  parameters: {
9731
10651
  type: 'params',
9732
10652
  properties: {
@@ -10579,6 +11499,7 @@ export const ids = {
10579
11499
  PubTechneDraftIdentityAccountsForPhones: 'pub.techne.draft.identity.accountsForPhones',
10580
11500
  PubTechneDraftIdentityAttest: 'pub.techne.draft.identity.attest',
10581
11501
  PubTechneDraftIdentityBeginAddMethod: 'pub.techne.draft.identity.beginAddMethod',
11502
+ PubTechneDraftIdentityCancelPendingChange: 'pub.techne.draft.identity.cancelPendingChange',
10582
11503
  PubTechneDraftIdentityCheckLinkToken: 'pub.techne.draft.identity.checkLinkToken',
10583
11504
  PubTechneDraftIdentityCreateCollective: 'pub.techne.draft.identity.createCollective',
10584
11505
  PubTechneDraftIdentityCreateLinkToken: 'pub.techne.draft.identity.createLinkToken',
@@ -10593,6 +11514,8 @@ export const ids = {
10593
11514
  PubTechneDraftIdentityListLinkTokens: 'pub.techne.draft.identity.listLinkTokens',
10594
11515
  PubTechneDraftIdentityListMethods: 'pub.techne.draft.identity.listMethods',
10595
11516
  PubTechneDraftIdentityListPhoneHolds: 'pub.techne.draft.identity.listPhoneHolds',
11517
+ PubTechneDraftIdentityManageMethods: 'pub.techne.draft.identity.manageMethods',
11518
+ PubTechneDraftIdentityOpenAccountPage: 'pub.techne.draft.identity.openAccountPage',
10596
11519
  PubTechneDraftIdentityRedeemLinkToken: 'pub.techne.draft.identity.redeemLinkToken',
10597
11520
  PubTechneDraftIdentityReleasePhoneHold: 'pub.techne.draft.identity.releasePhoneHold',
10598
11521
  PubTechneDraftIdentityResetLinkToken: 'pub.techne.draft.identity.resetLinkToken',