techne-sdk 0.4.0 → 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.
@@ -1082,7 +1082,7 @@ export declare const schemaDict: {
1082
1082
  readonly PubTechneDraftAppAccess: {
1083
1083
  readonly lexicon: 1;
1084
1084
  readonly id: "pub.techne.draft.appAccess";
1085
- readonly 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.";
1085
+ readonly 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.";
1086
1086
  readonly defs: {
1087
1087
  readonly main: {
1088
1088
  readonly type: "record";
@@ -1135,7 +1135,7 @@ export declare const schemaDict: {
1135
1135
  readonly PubTechneDraftAppAccessRequest: {
1136
1136
  readonly lexicon: 1;
1137
1137
  readonly id: "pub.techne.draft.appAccessRequest";
1138
- readonly 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.";
1138
+ readonly 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.";
1139
1139
  readonly defs: {
1140
1140
  readonly main: {
1141
1141
  readonly type: "record";
@@ -1254,7 +1254,7 @@ export declare const schemaDict: {
1254
1254
  readonly main: {
1255
1255
  readonly type: "record";
1256
1256
  readonly key: "any";
1257
- readonly 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.";
1257
+ readonly 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.";
1258
1258
  readonly record: {
1259
1259
  readonly type: "object";
1260
1260
  readonly required: ["subject", "questionSet", "answers", "complete", "createdAt"];
@@ -2145,7 +2145,7 @@ export declare const schemaDict: {
2145
2145
  readonly main: {
2146
2146
  readonly type: "record";
2147
2147
  readonly key: "any";
2148
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one per place per writer. `any` permits that convention but cannot enforce it.";
2148
+ readonly 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.";
2149
2149
  readonly record: {
2150
2150
  readonly type: "object";
2151
2151
  readonly required: ["subject", "container", "createdAt"];
@@ -2302,7 +2302,7 @@ export declare const schemaDict: {
2302
2302
  readonly main: {
2303
2303
  readonly type: "record";
2304
2304
  readonly key: "any";
2305
- readonly description: "Publishers use sidecar_rkey(claim AT-URI), one derivation per claim per writer. `any` permits that convention but cannot enforce it.";
2305
+ readonly 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.";
2306
2306
  readonly record: {
2307
2307
  readonly type: "object";
2308
2308
  readonly required: ["subject", "method", "createdAt"];
@@ -2438,7 +2438,7 @@ export declare const schemaDict: {
2438
2438
  readonly main: {
2439
2439
  readonly type: "record";
2440
2440
  readonly key: "any";
2441
- readonly 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.";
2441
+ readonly 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.";
2442
2442
  readonly record: {
2443
2443
  readonly type: "object";
2444
2444
  readonly required: ["subject", "text", "createdAt"];
@@ -2472,7 +2472,7 @@ export declare const schemaDict: {
2472
2472
  readonly main: {
2473
2473
  readonly type: "record";
2474
2474
  readonly key: "any";
2475
- readonly 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.";
2475
+ readonly 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.";
2476
2476
  readonly record: {
2477
2477
  readonly type: "object";
2478
2478
  readonly required: ["subject", "other", "createdAt"];
@@ -2762,7 +2762,7 @@ export declare const schemaDict: {
2762
2762
  readonly main: {
2763
2763
  readonly type: "record";
2764
2764
  readonly key: "any";
2765
- readonly 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.";
2765
+ readonly 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.";
2766
2766
  readonly record: {
2767
2767
  readonly type: "object";
2768
2768
  readonly required: ["subject", "location", "createdAt"];
@@ -2800,7 +2800,7 @@ export declare const schemaDict: {
2800
2800
  readonly main: {
2801
2801
  readonly type: "record";
2802
2802
  readonly key: "any";
2803
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one per event per writer. `any` permits that convention but cannot enforce it.";
2803
+ readonly 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.";
2804
2804
  readonly record: {
2805
2805
  readonly type: "object";
2806
2806
  readonly required: ["subject", "place", "createdAt"];
@@ -2936,6 +2936,10 @@ export declare const schemaDict: {
2936
2936
  readonly type: "boolean";
2937
2937
  readonly description: "The PDS created the account in this sign-in.";
2938
2938
  };
2939
+ readonly termsShown: {
2940
+ readonly type: "boolean";
2941
+ readonly 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).";
2942
+ };
2939
2943
  };
2940
2944
  };
2941
2945
  };
@@ -3288,7 +3292,7 @@ export declare const schemaDict: {
3288
3292
  };
3289
3293
  readonly methodView: {
3290
3294
  readonly type: "object";
3291
- readonly description: "One sign-in method of the caller's account, masked.";
3295
+ readonly 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.";
3292
3296
  readonly required: ["bid", "type", "masked", "boundAt"];
3293
3297
  readonly properties: {
3294
3298
  readonly bid: {
@@ -3305,6 +3309,11 @@ export declare const schemaDict: {
3305
3309
  readonly maxLength: 320;
3306
3310
  readonly 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)`.";
3307
3311
  };
3312
+ readonly value: {
3313
+ readonly type: "string";
3314
+ readonly maxLength: 320;
3315
+ readonly 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.";
3316
+ };
3308
3317
  readonly boundAt: {
3309
3318
  readonly type: "string";
3310
3319
  readonly format: "datetime";
@@ -3326,7 +3335,7 @@ export declare const schemaDict: {
3326
3335
  };
3327
3336
  readonly pendingChange: {
3328
3337
  readonly type: "object";
3329
- readonly description: "A change that waits for its time (a method's removal or the account's deletion, 7 days; the account's first recovery mark, 24 hours). 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 (and not lifted early by a recovery method) is dropped when it runs out, not completed.";
3338
+ readonly 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.";
3330
3339
  readonly required: ["id", "kind", "createdAt", "dueAt"];
3331
3340
  readonly properties: {
3332
3341
  readonly id: {
@@ -3335,12 +3344,17 @@ export declare const schemaDict: {
3335
3344
  };
3336
3345
  readonly kind: {
3337
3346
  readonly type: "string";
3338
- readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery"];
3347
+ readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery", "moveMethod"];
3339
3348
  };
3340
3349
  readonly method: {
3341
3350
  readonly type: "string";
3342
3351
  readonly maxLength: 64;
3343
- readonly description: "The method it removes or marks.";
3352
+ readonly description: "The method it removes, marks or moves (for an incoming move, the other account's method).";
3353
+ };
3354
+ readonly other: {
3355
+ readonly type: "string";
3356
+ readonly format: "did";
3357
+ readonly 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.";
3344
3358
  };
3345
3359
  readonly createdAt: {
3346
3360
  readonly type: "string";
@@ -3354,8 +3368,8 @@ export declare const schemaDict: {
3354
3368
  };
3355
3369
  readonly linkView: {
3356
3370
  readonly type: "object";
3357
- readonly description: "An alias link between the caller's account and another.";
3358
- readonly required: ["did", "primary", "mutual"];
3371
+ readonly 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.";
3372
+ readonly required: ["did", "mutual"];
3359
3373
  readonly properties: {
3360
3374
  readonly did: {
3361
3375
  readonly type: "string";
@@ -3366,13 +3380,35 @@ export declare const schemaDict: {
3366
3380
  readonly type: "string";
3367
3381
  readonly format: "handle";
3368
3382
  };
3369
- readonly primary: {
3383
+ readonly mutual: {
3384
+ readonly type: "boolean";
3385
+ readonly description: "Retired: a link is always mutual, and identity.listMethods sends `true` (it was: both accounts hold a matching pub.techne.draft.accountLink).";
3386
+ };
3387
+ readonly since: {
3388
+ readonly type: "string";
3389
+ readonly format: "datetime";
3390
+ readonly description: "When the two accounts became one person.";
3391
+ };
3392
+ };
3393
+ };
3394
+ readonly personMember: {
3395
+ readonly type: "object";
3396
+ readonly description: "Another account of an account's person (identity.manageMethods `list` and moveMethod).";
3397
+ readonly required: ["did"];
3398
+ readonly properties: {
3399
+ readonly did: {
3370
3400
  readonly type: "string";
3371
3401
  readonly format: "did";
3372
3402
  };
3373
- readonly mutual: {
3374
- readonly type: "boolean";
3375
- readonly description: "Both accounts hold a matching pub.techne.draft.accountLink; a link counts only when true.";
3403
+ readonly since: {
3404
+ readonly type: "string";
3405
+ readonly format: "datetime";
3406
+ readonly description: "When it joined the person. Sent by `list`.";
3407
+ };
3408
+ readonly handle: {
3409
+ readonly type: "string";
3410
+ readonly format: "handle";
3411
+ readonly description: "Its handle, when the platform knows one. Sent in addChannel's `otherPerson`.";
3376
3412
  };
3377
3413
  };
3378
3414
  };
@@ -3463,7 +3499,7 @@ export declare const schemaDict: {
3463
3499
  readonly defs: {
3464
3500
  readonly main: {
3465
3501
  readonly type: "procedure";
3466
- readonly 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.";
3502
+ readonly 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.";
3467
3503
  readonly input: {
3468
3504
  readonly encoding: "application/json";
3469
3505
  readonly schema: {
@@ -3494,11 +3530,17 @@ export declare const schemaDict: {
3494
3530
  readonly method: {
3495
3531
  readonly type: "ref";
3496
3532
  readonly ref: "lex:pub.techne.draft.identity.defs#methodView";
3533
+ readonly description: "`added` / `alreadyYours`: the method. Absent on `boundElsewhere`: the other account's method is named only to the identity PDS (identity.manageMethods addChannel).";
3497
3534
  };
3498
3535
  readonly offer: {
3499
3536
  readonly type: "ref";
3500
3537
  readonly ref: "lex:pub.techne.draft.identity.finishAddMethod#offer";
3501
3538
  };
3539
+ readonly other: {
3540
+ readonly type: "string";
3541
+ readonly format: "did";
3542
+ readonly description: "`boundElsewhere` when both accounts hold something: the account the method signs in to (no `offer`).";
3543
+ };
3502
3544
  };
3503
3545
  };
3504
3546
  };
@@ -3516,7 +3558,7 @@ export declare const schemaDict: {
3516
3558
  readonly 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).";
3517
3559
  }, {
3518
3560
  readonly name: "ProtectedAccount";
3519
- readonly 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.";
3561
+ readonly 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`).";
3520
3562
  }, {
3521
3563
  readonly name: "UpstreamFailure";
3522
3564
  readonly 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.";
@@ -3529,6 +3571,7 @@ export declare const schemaDict: {
3529
3571
  readonly action: {
3530
3572
  readonly type: "string";
3531
3573
  readonly knownValues: ["fold", "link"];
3574
+ readonly description: "`fold`. (`link` is retired and no longer offered.)";
3532
3575
  };
3533
3576
  readonly token: {
3534
3577
  readonly type: "string";
@@ -3704,7 +3747,7 @@ export declare const schemaDict: {
3704
3747
  readonly defs: {
3705
3748
  readonly main: {
3706
3749
  readonly type: "procedure";
3707
- readonly 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.";
3750
+ readonly 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.";
3708
3751
  readonly input: {
3709
3752
  readonly encoding: "application/json";
3710
3753
  readonly schema: {
@@ -3747,7 +3790,7 @@ export declare const schemaDict: {
3747
3790
  readonly 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).";
3748
3791
  }, {
3749
3792
  readonly name: "InvalidRequest";
3750
- readonly description: "`primary` names neither account, or the other account's keys are not held here (sign in to it and link from there).";
3793
+ readonly 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).";
3751
3794
  }];
3752
3795
  };
3753
3796
  };
@@ -3993,7 +4036,7 @@ export declare const schemaDict: {
3993
4036
  readonly defs: {
3994
4037
  readonly main: {
3995
4038
  readonly type: "query";
3996
- readonly description: "The caller's sign-in methods (masked, with their recovery mark and freeze), its pending changes, and the account's alias links. Emails and phones only unless `allTypes` (shipped clients label every row as an email). Signed-in members only.";
4039
+ readonly 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.";
3997
4040
  readonly parameters: {
3998
4041
  readonly type: "params";
3999
4042
  readonly properties: {
@@ -4018,6 +4061,7 @@ export declare const schemaDict: {
4018
4061
  };
4019
4062
  readonly links: {
4020
4063
  readonly type: "array";
4064
+ readonly 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.";
4021
4065
  readonly items: {
4022
4066
  readonly type: "ref";
4023
4067
  readonly ref: "lex:pub.techne.draft.identity.defs#linkView";
@@ -4025,7 +4069,7 @@ export declare const schemaDict: {
4025
4069
  };
4026
4070
  readonly pending: {
4027
4071
  readonly type: "array";
4028
- readonly description: "The account's pending changes, soonest first (the account page shows them at the top, with Cancel).";
4072
+ readonly 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.";
4029
4073
  readonly items: {
4030
4074
  readonly type: "ref";
4031
4075
  readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
@@ -4143,7 +4187,7 @@ export declare const schemaDict: {
4143
4187
  readonly defs: {
4144
4188
  readonly main: {
4145
4189
  readonly type: "procedure";
4146
- readonly 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 notice to every method, cancellable by any of them, 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 notice. Ops: `list` (methods, pending changes, `hasRecovery`), `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` with an `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), ProtectedAccount when either account has a recovery mark, a freeze, a pending change, or a passkey, Nostr key or recovery codes), `fold` and `link` (take that offer: `token`, and for `link` the `primary`; need 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`), or `linked` with `link`), `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), for the notice queue (no `did`; only the accounts the calling PDS hosts; the platform emails those of accounts hosted elsewhere itself) `notices` (up to 100 to deliver; one taken and not confirmed is offered again after 5 minutes, at most 10 times) and `noticesSent`, 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.";
4190
+ readonly 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.";
4147
4191
  readonly input: {
4148
4192
  readonly encoding: "application/json";
4149
4193
  readonly schema: {
@@ -4156,7 +4200,8 @@ export declare const schemaDict: {
4156
4200
  };
4157
4201
  readonly op: {
4158
4202
  readonly type: "string";
4159
- readonly knownValues: ["list", "signInMethods", "sendTo", "remove", "cancel", "freeze", "unfreeze", "mark", "unmark", "signOut", "delete", "addExternal", "newRecoveryCodes", "redeemCode", "setPrograms", "importBackupEmails", "findKey", "notices", "noticesSent", "dueDeletes", "dueDeletesDone", "addChannel", "fold", "link", "operator"];
4203
+ readonly knownValues: ["list", "signInMethods", "sendTo", "remove", "cancel", "freeze", "unfreeze", "mark", "unmark", "signOut", "delete", "addExternal", "newRecoveryCodes", "redeemCode", "setPrograms", "importBackupEmails", "findKey", "notices", "noticesSent", "dueDeletes", "dueDeletesDone", "addChannel", "fold", "link", "moveMethod", "unlink", "operator"];
4204
+ readonly description: "The op. `link` is retired: it answers 400 InvalidRequest; `moveMethod` links two accounts now.";
4160
4205
  };
4161
4206
  readonly did: {
4162
4207
  readonly type: "string";
@@ -4170,7 +4215,7 @@ export declare const schemaDict: {
4170
4215
  readonly method: {
4171
4216
  readonly type: "string";
4172
4217
  readonly maxLength: 64;
4173
- readonly description: "The method acted on (its `id` in `list` or `signInMethods`).";
4218
+ readonly 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.";
4174
4219
  };
4175
4220
  readonly pending: {
4176
4221
  readonly type: "string";
@@ -4196,7 +4241,7 @@ export declare const schemaDict: {
4196
4241
  readonly items: {
4197
4242
  readonly type: "integer";
4198
4243
  };
4199
- readonly description: "Notice ids, for `noticesSent`.";
4244
+ readonly description: "Unused, kept for older clients: notice ids for `noticesSent`, which confirms none.";
4200
4245
  };
4201
4246
  readonly emails: {
4202
4247
  readonly type: "array";
@@ -4233,12 +4278,27 @@ export declare const schemaDict: {
4233
4278
  readonly token: {
4234
4279
  readonly type: "string";
4235
4280
  readonly maxLength: 128;
4236
- readonly description: "fold / link: the offer's token from addChannel.";
4281
+ readonly description: "fold: the offer's token from addChannel. (link, retired, took one too.)";
4282
+ };
4283
+ readonly from: {
4284
+ readonly type: "string";
4285
+ readonly format: "did";
4286
+ readonly description: "moveMethod: the account the method leaves.";
4287
+ };
4288
+ readonly fromStepUp: {
4289
+ readonly type: "ref";
4290
+ readonly ref: "lex:pub.techne.draft.identity.manageMethods#stepUp";
4291
+ readonly description: "moveMethod: what the PDS's step-up of `from` proved (fresh, one of `from`'s methods).";
4292
+ };
4293
+ readonly other: {
4294
+ readonly type: "string";
4295
+ readonly format: "did";
4296
+ readonly description: "unlink: the account that leaves `did`'s person.";
4237
4297
  };
4238
4298
  readonly primary: {
4239
4299
  readonly type: "string";
4240
4300
  readonly format: "did";
4241
- readonly description: "link: which of the two accounts is the primary.";
4301
+ readonly description: "Retired, not read: it was the retired `link` op's primary account. Linked accounts have no primary.";
4242
4302
  };
4243
4303
  readonly on: {
4244
4304
  readonly type: "boolean";
@@ -4264,15 +4324,21 @@ export declare const schemaDict: {
4264
4324
  readonly status: {
4265
4325
  readonly type: "string";
4266
4326
  readonly knownValues: ["done", "pending", "deleted", "deleting", "bound", "invalid", "hasRecovery", "indexOff", "alreadyImported", "added", "alreadyYours", "boundElsewhere", "unavailable", "folded", "linked", "none"];
4267
- readonly 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` / `linked`: fold / link done. `none`: findKey's key is no method of an account the calling PDS hosts.";
4327
+ readonly 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.";
4268
4328
  };
4269
4329
  readonly pending: {
4270
4330
  readonly type: "ref";
4271
4331
  readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
4332
+ readonly 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.";
4333
+ };
4334
+ readonly due: {
4335
+ readonly type: "string";
4336
+ readonly format: "datetime";
4337
+ readonly 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.";
4272
4338
  };
4273
4339
  readonly method: {
4274
4340
  readonly type: "string";
4275
- readonly 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.";
4341
+ readonly 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).";
4276
4342
  };
4277
4343
  readonly codes: {
4278
4344
  readonly type: "array";
@@ -4287,6 +4353,7 @@ export declare const schemaDict: {
4287
4353
  readonly type: "ref";
4288
4354
  readonly ref: "lex:pub.techne.draft.identity.defs#methodView";
4289
4355
  };
4356
+ readonly description: "list: the account's methods (`value` on emails and phones; see defs#methodView).";
4290
4357
  };
4291
4358
  readonly hasRecovery: {
4292
4359
  readonly type: "boolean";
@@ -4297,10 +4364,11 @@ export declare const schemaDict: {
4297
4364
  readonly type: "ref";
4298
4365
  readonly ref: "lex:pub.techne.draft.identity.manageMethods#notice";
4299
4366
  };
4367
+ readonly description: "Unused, kept for older clients: always empty. The platform emails every notice itself.";
4300
4368
  };
4301
4369
  readonly count: {
4302
4370
  readonly type: "integer";
4303
- readonly description: "noticesSent / dueDeletesDone: how many were confirmed.";
4371
+ readonly description: "dueDeletesDone: how many were confirmed. noticesSent (unused, kept for older clients): always 0.";
4304
4372
  };
4305
4373
  readonly signInMethods: {
4306
4374
  readonly type: "array";
@@ -4341,15 +4409,36 @@ export declare const schemaDict: {
4341
4409
  readonly format: "did";
4342
4410
  readonly description: "fold: the kept account. findKey: the account the key signs in to.";
4343
4411
  };
4412
+ readonly other: {
4413
+ readonly type: "string";
4414
+ readonly format: "did";
4415
+ readonly description: "addChannel `boundElsewhere` when both accounts hold something: the account the channel signs in to (for `moveMethod`'s `from`).";
4416
+ };
4417
+ readonly otherPerson: {
4418
+ readonly type: "array";
4419
+ readonly items: {
4420
+ readonly type: "ref";
4421
+ readonly ref: "lex:pub.techne.draft.identity.defs#personMember";
4422
+ };
4423
+ readonly 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.";
4424
+ };
4344
4425
  readonly emptied: {
4345
4426
  readonly type: "string";
4346
4427
  readonly format: "did";
4347
4428
  readonly description: "fold: the account folded in and deleted.";
4348
4429
  };
4430
+ readonly person: {
4431
+ readonly type: "array";
4432
+ readonly items: {
4433
+ readonly type: "ref";
4434
+ readonly ref: "lex:pub.techne.draft.identity.defs#personMember";
4435
+ };
4436
+ readonly 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.";
4437
+ };
4349
4438
  readonly link: {
4350
4439
  readonly type: "ref";
4351
4440
  readonly ref: "lex:pub.techne.draft.identity.defs#linkView";
4352
- readonly description: "link: the link, from `did`'s side.";
4441
+ readonly description: "Retired: the retired `link` op's answer.";
4353
4442
  };
4354
4443
  readonly frozen: {
4355
4444
  readonly type: "boolean";
@@ -4379,37 +4468,37 @@ export declare const schemaDict: {
4379
4468
  readonly description: "Try again (`redeemCode` and `newRecoveryCodes` also while the platform's identity keys are not loaded).";
4380
4469
  }, {
4381
4470
  readonly name: "NotFound";
4382
- readonly description: "No such method or pending change on the account.";
4471
+ readonly description: "No such method or pending change on the account (moveMethod: `from` has no such method).";
4383
4472
  }, {
4384
4473
  readonly name: "NotYourMethod";
4385
4474
  readonly description: "The step-up names a method that is not the account's.";
4386
4475
  }, {
4387
4476
  readonly name: "LastMethod";
4388
- readonly description: "It would leave no way to sign in.";
4477
+ readonly description: "It would leave no way to sign in (unlink: the method handed to `other` is `did`'s only one).";
4389
4478
  }, {
4390
4479
  readonly name: "RecoveryProtected";
4391
- readonly description: "Only a recovery method can do this to a recovery method.";
4480
+ readonly description: "Only a recovery method can do this to a recovery method (moveMethod: of `from`; unlink: of `did`).";
4392
4481
  }, {
4393
4482
  readonly name: "NeedsRecoveryMethod";
4394
- readonly description: "Needs a fresh step-up of a recovery method.";
4483
+ readonly description: "Needs a fresh step-up of a recovery method (unlink: or of the method handed to `other` itself).";
4395
4484
  }, {
4396
4485
  readonly name: "StepUpRequired";
4397
- readonly description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold` and `link` included).";
4486
+ readonly description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold`, `moveMethod` and `unlink` included).";
4398
4487
  }, {
4399
4488
  readonly name: "SameMethod";
4400
4489
  readonly description: "A method cannot freeze itself.";
4401
4490
  }, {
4402
4491
  readonly name: "MethodFrozen";
4403
- readonly 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).";
4492
+ readonly 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).";
4404
4493
  }, {
4405
4494
  readonly name: "InvalidToken";
4406
- readonly description: "fold / link: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook.";
4495
+ readonly description: "fold: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook.";
4407
4496
  }, {
4408
4497
  readonly name: "ProtectedAccount";
4409
- readonly description: "addChannel / fold / link: 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 or linked (HTTP 409).";
4498
+ readonly 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).";
4410
4499
  }, {
4411
4500
  readonly name: "NotEmpty";
4412
- readonly description: "fold: the account to fold gained a record or is 7 days old or more; link instead (HTTP 409).";
4501
+ readonly description: "fold: the account to fold gained a record or is 7 days old or more; link it with `moveMethod` instead (HTTP 409).";
4413
4502
  }, {
4414
4503
  readonly name: "ProgramRefused";
4415
4504
  readonly 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.";
@@ -4419,6 +4508,30 @@ export declare const schemaDict: {
4419
4508
  }, {
4420
4509
  readonly name: "IsRecovery";
4421
4510
  readonly description: "setPrograms on: the method is a recovery method, or its first mark is waiting (HTTP 409).";
4511
+ }, {
4512
+ readonly name: "FromStepUpRequired";
4513
+ readonly description: "moveMethod: `fromStepUp` is missing, malformed, not fresh, or names none of `from`'s methods (HTTP 403).";
4514
+ }, {
4515
+ readonly name: "Frozen";
4516
+ readonly description: "moveMethod: a method of an account of either person is frozen; nothing is scheduled (HTTP 409).";
4517
+ }, {
4518
+ readonly name: "PendingChange";
4519
+ readonly description: "moveMethod: an account of either person has a pending change, a move included; nothing is scheduled (HTTP 409).";
4520
+ }, {
4521
+ readonly name: "TooMany";
4522
+ readonly description: "moveMethod: the person would hold more than 4 accounts (HTTP 409).";
4523
+ }, {
4524
+ readonly name: "Same";
4525
+ readonly description: "moveMethod: the two accounts are already one person, or the same account (HTTP 409).";
4526
+ }, {
4527
+ readonly name: "NoKey";
4528
+ readonly 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).";
4529
+ }, {
4530
+ readonly name: "NeedsMethod";
4531
+ readonly 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).";
4532
+ }, {
4533
+ readonly name: "NotLinked";
4534
+ readonly description: "unlink: `other` is not in `did`'s person, or is `did` (HTTP 404).";
4422
4535
  }];
4423
4536
  };
4424
4537
  readonly stepUp: {
@@ -4457,6 +4570,7 @@ export declare const schemaDict: {
4457
4570
  };
4458
4571
  readonly notice: {
4459
4572
  readonly type: "object";
4573
+ readonly 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.";
4460
4574
  readonly required: ["id", "did", "event", "to", "createdAt"];
4461
4575
  readonly properties: {
4462
4576
  readonly id: {
@@ -4468,8 +4582,8 @@ export declare const schemaDict: {
4468
4582
  };
4469
4583
  readonly event: {
4470
4584
  readonly type: "string";
4471
- readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery", "freeze", "waitDropped", "programsOn"];
4472
- readonly description: "What the notice is about: a change that started to wait (`removeMethod`, `deleteAccount`, `markRecovery`), a `freeze`, `waitDropped`: the change in `pending` was not completed because one of the account's methods was frozen during its wait, or `programsOn`: programs can now sign in with one of the account's Nostr keys (`setPrograms` on; no `pending`).";
4585
+ readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery", "freeze", "waitDropped", "programsOn", "moveMethod", "linked", "unlinked", "moveDropped", "moveTimedOut", "moveCancelled", "akaLeft", "emailLeft"];
4586
+ readonly 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.";
4473
4587
  };
4474
4588
  readonly to: {
4475
4589
  readonly type: "ref";
@@ -4502,6 +4616,7 @@ export declare const schemaDict: {
4502
4616
  };
4503
4617
  readonly noticeTo: {
4504
4618
  readonly type: "object";
4619
+ readonly 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).";
4505
4620
  readonly required: ["type", "value"];
4506
4621
  readonly properties: {
4507
4622
  readonly type: {
@@ -4956,7 +5071,7 @@ export declare const schemaDict: {
4956
5071
  readonly defs: {
4957
5072
  readonly main: {
4958
5073
  readonly type: "procedure";
4959
- readonly 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.";
5074
+ readonly 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).";
4960
5075
  readonly input: {
4961
5076
  readonly encoding: "application/json";
4962
5077
  readonly schema: {
@@ -4998,7 +5113,7 @@ export declare const schemaDict: {
4998
5113
  readonly defs: {
4999
5114
  readonly main: {
5000
5115
  readonly type: "procedure";
5001
- readonly 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 notice to every method and any of them 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.";
5116
+ readonly 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.";
5002
5117
  readonly input: {
5003
5118
  readonly encoding: "application/json";
5004
5119
  readonly schema: {
@@ -5326,7 +5441,7 @@ export declare const schemaDict: {
5326
5441
  readonly main: {
5327
5442
  readonly type: "record";
5328
5443
  readonly key: "any";
5329
- readonly 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.";
5444
+ readonly 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.";
5330
5445
  readonly record: {
5331
5446
  readonly type: "object";
5332
5447
  readonly required: ["subject", "createdAt"];
@@ -6291,7 +6406,7 @@ export declare const schemaDict: {
6291
6406
  readonly main: {
6292
6407
  readonly type: "record";
6293
6408
  readonly key: "any";
6294
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. `any` permits that convention but cannot enforce it.";
6409
+ readonly 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.";
6295
6410
  readonly record: {
6296
6411
  readonly type: "object";
6297
6412
  readonly required: ["subject", "createdAt"];
@@ -6664,7 +6779,7 @@ export declare const schemaDict: {
6664
6779
  readonly main: {
6665
6780
  readonly type: "record";
6666
6781
  readonly key: "any";
6667
- readonly 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.";
6782
+ readonly 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.";
6668
6783
  readonly record: {
6669
6784
  readonly type: "object";
6670
6785
  readonly required: ["subject", "sources", "readiness", "createdAt"];
@@ -7391,6 +7506,32 @@ export declare const schemaDict: {
7391
7506
  readonly type: "string";
7392
7507
  readonly format: "handle";
7393
7508
  };
7509
+ readonly linked: {
7510
+ readonly type: "array";
7511
+ readonly items: {
7512
+ readonly type: "ref";
7513
+ readonly ref: "lex:pub.techne.draft.query.getRecords#linkedHandle";
7514
+ };
7515
+ readonly 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.";
7516
+ };
7517
+ };
7518
+ };
7519
+ readonly linkedHandle: {
7520
+ readonly type: "object";
7521
+ readonly required: ["did"];
7522
+ readonly properties: {
7523
+ readonly did: {
7524
+ readonly type: "string";
7525
+ readonly format: "did";
7526
+ };
7527
+ readonly handle: {
7528
+ readonly type: "string";
7529
+ readonly format: "handle";
7530
+ };
7531
+ readonly displayName: {
7532
+ readonly type: "string";
7533
+ readonly description: "The linked account's public profile name, when it has one.";
7534
+ };
7394
7535
  };
7395
7536
  };
7396
7537
  readonly resolved: {
@@ -7791,7 +7932,7 @@ export declare const schemaDict: {
7791
7932
  readonly main: {
7792
7933
  readonly type: "record";
7793
7934
  readonly key: "any";
7794
- readonly 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.";
7935
+ readonly 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.";
7795
7936
  readonly record: {
7796
7937
  readonly type: "object";
7797
7938
  readonly required: ["subject", "createdAt"];
@@ -8695,7 +8836,7 @@ export declare const schemaDict: {
8695
8836
  readonly main: {
8696
8837
  readonly type: "record";
8697
8838
  readonly key: "any";
8698
- readonly 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.";
8839
+ readonly 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.";
8699
8840
  readonly record: {
8700
8841
  readonly type: "object";
8701
8842
  readonly required: ["subject", "createdAt"];
@@ -8759,7 +8900,7 @@ export declare const schemaDict: {
8759
8900
  readonly main: {
8760
8901
  readonly type: "record";
8761
8902
  readonly key: "any";
8762
- readonly 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.";
8903
+ readonly 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.";
8763
8904
  readonly record: {
8764
8905
  readonly type: "object";
8765
8906
  readonly required: ["subject", "other", "createdAt"];
@@ -8917,7 +9058,7 @@ export declare const schemaDict: {
8917
9058
  readonly main: {
8918
9059
  readonly type: "record";
8919
9060
  readonly key: "any";
8920
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one per record. `any` permits that convention but cannot enforce it.";
9061
+ readonly 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.";
8921
9062
  readonly record: {
8922
9063
  readonly type: "object";
8923
9064
  readonly required: ["subject", "sourceStatus", "lastSeenAt", "createdAt"];
@@ -9018,7 +9159,7 @@ export declare const schemaDict: {
9018
9159
  };
9019
9160
  };
9020
9161
  };
9021
- readonly 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.";
9162
+ readonly 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.";
9022
9163
  };
9023
9164
  };
9024
9165
  };
@@ -9114,7 +9255,7 @@ export declare const schemaDict: {
9114
9255
  readonly main: {
9115
9256
  readonly type: "record";
9116
9257
  readonly key: "any";
9117
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one summary per record per writer. `any` permits that convention but cannot enforce it.";
9258
+ readonly 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.";
9118
9259
  readonly record: {
9119
9260
  readonly type: "object";
9120
9261
  readonly required: ["subject", "text", "createdAt"];
@@ -9223,7 +9364,7 @@ export declare const schemaDict: {
9223
9364
  readonly main: {
9224
9365
  readonly type: "record";
9225
9366
  readonly key: "any";
9226
- readonly 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.";
9367
+ readonly 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.";
9227
9368
  readonly record: {
9228
9369
  readonly type: "object";
9229
9370
  readonly required: ["subject", "values", "createdAt"];
@@ -9261,7 +9402,7 @@ export declare const schemaDict: {
9261
9402
  readonly main: {
9262
9403
  readonly type: "record";
9263
9404
  readonly key: "any";
9264
- readonly 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.";
9405
+ readonly 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.";
9265
9406
  readonly record: {
9266
9407
  readonly type: "object";
9267
9408
  readonly required: ["subject", "createdAt"];
@@ -9334,7 +9475,7 @@ export declare const schemaDict: {
9334
9475
  readonly defs: {
9335
9476
  readonly main: {
9336
9477
  readonly type: "procedure";
9337
- readonly 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.";
9478
+ readonly 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.";
9338
9479
  readonly input: {
9339
9480
  readonly encoding: "application/json";
9340
9481
  readonly schema: {
@@ -9382,7 +9523,7 @@ export declare const schemaDict: {
9382
9523
  readonly description: "Malformed input, or a space type that takes no app approvals yet.";
9383
9524
  }, {
9384
9525
  readonly name: "NotAuthorized";
9385
- readonly description: "The caller does not pass the space type's manage leg.";
9526
+ readonly 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).";
9386
9527
  }];
9387
9528
  };
9388
9529
  };
@@ -9604,7 +9745,7 @@ export declare const schemaDict: {
9604
9745
  readonly defs: {
9605
9746
  readonly main: {
9606
9747
  readonly type: "query";
9607
- readonly 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.";
9748
+ readonly 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.";
9608
9749
  readonly parameters: {
9609
9750
  readonly type: "params";
9610
9751
  readonly properties: {
@@ -9850,7 +9991,7 @@ export declare const schemaDict: {
9850
9991
  readonly defs: {
9851
9992
  readonly main: {
9852
9993
  readonly type: "query";
9853
- readonly 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.";
9994
+ readonly 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.";
9854
9995
  readonly parameters: {
9855
9996
  readonly type: "params";
9856
9997
  readonly properties: {
@@ -11664,7 +11805,7 @@ export declare const schemas: ({
11664
11805
  } | {
11665
11806
  readonly lexicon: 1;
11666
11807
  readonly id: "pub.techne.draft.appAccess";
11667
- readonly 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.";
11808
+ readonly 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.";
11668
11809
  readonly defs: {
11669
11810
  readonly main: {
11670
11811
  readonly type: "record";
@@ -11716,7 +11857,7 @@ export declare const schemas: ({
11716
11857
  } | {
11717
11858
  readonly lexicon: 1;
11718
11859
  readonly id: "pub.techne.draft.appAccessRequest";
11719
- readonly 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.";
11860
+ readonly 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.";
11720
11861
  readonly defs: {
11721
11862
  readonly main: {
11722
11863
  readonly type: "record";
@@ -11832,7 +11973,7 @@ export declare const schemas: ({
11832
11973
  readonly main: {
11833
11974
  readonly type: "record";
11834
11975
  readonly key: "any";
11835
- readonly 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.";
11976
+ readonly 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.";
11836
11977
  readonly record: {
11837
11978
  readonly type: "object";
11838
11979
  readonly required: ["subject", "questionSet", "answers", "complete", "createdAt"];
@@ -12706,7 +12847,7 @@ export declare const schemas: ({
12706
12847
  readonly main: {
12707
12848
  readonly type: "record";
12708
12849
  readonly key: "any";
12709
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one per place per writer. `any` permits that convention but cannot enforce it.";
12850
+ readonly 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.";
12710
12851
  readonly record: {
12711
12852
  readonly type: "object";
12712
12853
  readonly required: ["subject", "container", "createdAt"];
@@ -12860,7 +13001,7 @@ export declare const schemas: ({
12860
13001
  readonly main: {
12861
13002
  readonly type: "record";
12862
13003
  readonly key: "any";
12863
- readonly description: "Publishers use sidecar_rkey(claim AT-URI), one derivation per claim per writer. `any` permits that convention but cannot enforce it.";
13004
+ readonly 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.";
12864
13005
  readonly record: {
12865
13006
  readonly type: "object";
12866
13007
  readonly required: ["subject", "method", "createdAt"];
@@ -12995,7 +13136,7 @@ export declare const schemas: ({
12995
13136
  readonly main: {
12996
13137
  readonly type: "record";
12997
13138
  readonly key: "any";
12998
- readonly 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.";
13139
+ readonly 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.";
12999
13140
  readonly record: {
13000
13141
  readonly type: "object";
13001
13142
  readonly required: ["subject", "text", "createdAt"];
@@ -13028,7 +13169,7 @@ export declare const schemas: ({
13028
13169
  readonly main: {
13029
13170
  readonly type: "record";
13030
13171
  readonly key: "any";
13031
- readonly 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.";
13172
+ readonly 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.";
13032
13173
  readonly record: {
13033
13174
  readonly type: "object";
13034
13175
  readonly required: ["subject", "other", "createdAt"];
@@ -13312,7 +13453,7 @@ export declare const schemas: ({
13312
13453
  readonly main: {
13313
13454
  readonly type: "record";
13314
13455
  readonly key: "any";
13315
- readonly 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.";
13456
+ readonly 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.";
13316
13457
  readonly record: {
13317
13458
  readonly type: "object";
13318
13459
  readonly required: ["subject", "location", "createdAt"];
@@ -13349,7 +13490,7 @@ export declare const schemas: ({
13349
13490
  readonly main: {
13350
13491
  readonly type: "record";
13351
13492
  readonly key: "any";
13352
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one per event per writer. `any` permits that convention but cannot enforce it.";
13493
+ readonly 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.";
13353
13494
  readonly record: {
13354
13495
  readonly type: "object";
13355
13496
  readonly required: ["subject", "place", "createdAt"];
@@ -13483,6 +13624,10 @@ export declare const schemas: ({
13483
13624
  readonly type: "boolean";
13484
13625
  readonly description: "The PDS created the account in this sign-in.";
13485
13626
  };
13627
+ readonly termsShown: {
13628
+ readonly type: "boolean";
13629
+ readonly 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).";
13630
+ };
13486
13631
  };
13487
13632
  };
13488
13633
  };
@@ -13829,7 +13974,7 @@ export declare const schemas: ({
13829
13974
  };
13830
13975
  readonly methodView: {
13831
13976
  readonly type: "object";
13832
- readonly description: "One sign-in method of the caller's account, masked.";
13977
+ readonly 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.";
13833
13978
  readonly required: ["bid", "type", "masked", "boundAt"];
13834
13979
  readonly properties: {
13835
13980
  readonly bid: {
@@ -13846,6 +13991,11 @@ export declare const schemas: ({
13846
13991
  readonly maxLength: 320;
13847
13992
  readonly 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)`.";
13848
13993
  };
13994
+ readonly value: {
13995
+ readonly type: "string";
13996
+ readonly maxLength: 320;
13997
+ readonly 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.";
13998
+ };
13849
13999
  readonly boundAt: {
13850
14000
  readonly type: "string";
13851
14001
  readonly format: "datetime";
@@ -13867,7 +14017,7 @@ export declare const schemas: ({
13867
14017
  };
13868
14018
  readonly pendingChange: {
13869
14019
  readonly type: "object";
13870
- readonly description: "A change that waits for its time (a method's removal or the account's deletion, 7 days; the account's first recovery mark, 24 hours). 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 (and not lifted early by a recovery method) is dropped when it runs out, not completed.";
14020
+ readonly 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.";
13871
14021
  readonly required: ["id", "kind", "createdAt", "dueAt"];
13872
14022
  readonly properties: {
13873
14023
  readonly id: {
@@ -13876,12 +14026,17 @@ export declare const schemas: ({
13876
14026
  };
13877
14027
  readonly kind: {
13878
14028
  readonly type: "string";
13879
- readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery"];
14029
+ readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery", "moveMethod"];
13880
14030
  };
13881
14031
  readonly method: {
13882
14032
  readonly type: "string";
13883
14033
  readonly maxLength: 64;
13884
- readonly description: "The method it removes or marks.";
14034
+ readonly description: "The method it removes, marks or moves (for an incoming move, the other account's method).";
14035
+ };
14036
+ readonly other: {
14037
+ readonly type: "string";
14038
+ readonly format: "did";
14039
+ readonly 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.";
13885
14040
  };
13886
14041
  readonly createdAt: {
13887
14042
  readonly type: "string";
@@ -13895,8 +14050,8 @@ export declare const schemas: ({
13895
14050
  };
13896
14051
  readonly linkView: {
13897
14052
  readonly type: "object";
13898
- readonly description: "An alias link between the caller's account and another.";
13899
- readonly required: ["did", "primary", "mutual"];
14053
+ readonly 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.";
14054
+ readonly required: ["did", "mutual"];
13900
14055
  readonly properties: {
13901
14056
  readonly did: {
13902
14057
  readonly type: "string";
@@ -13907,13 +14062,35 @@ export declare const schemas: ({
13907
14062
  readonly type: "string";
13908
14063
  readonly format: "handle";
13909
14064
  };
13910
- readonly primary: {
14065
+ readonly mutual: {
14066
+ readonly type: "boolean";
14067
+ readonly description: "Retired: a link is always mutual, and identity.listMethods sends `true` (it was: both accounts hold a matching pub.techne.draft.accountLink).";
14068
+ };
14069
+ readonly since: {
14070
+ readonly type: "string";
14071
+ readonly format: "datetime";
14072
+ readonly description: "When the two accounts became one person.";
14073
+ };
14074
+ };
14075
+ };
14076
+ readonly personMember: {
14077
+ readonly type: "object";
14078
+ readonly description: "Another account of an account's person (identity.manageMethods `list` and moveMethod).";
14079
+ readonly required: ["did"];
14080
+ readonly properties: {
14081
+ readonly did: {
13911
14082
  readonly type: "string";
13912
14083
  readonly format: "did";
13913
14084
  };
13914
- readonly mutual: {
13915
- readonly type: "boolean";
13916
- readonly description: "Both accounts hold a matching pub.techne.draft.accountLink; a link counts only when true.";
14085
+ readonly since: {
14086
+ readonly type: "string";
14087
+ readonly format: "datetime";
14088
+ readonly description: "When it joined the person. Sent by `list`.";
14089
+ };
14090
+ readonly handle: {
14091
+ readonly type: "string";
14092
+ readonly format: "handle";
14093
+ readonly description: "Its handle, when the platform knows one. Sent in addChannel's `otherPerson`.";
13917
14094
  };
13918
14095
  };
13919
14096
  };
@@ -14003,7 +14180,7 @@ export declare const schemas: ({
14003
14180
  readonly defs: {
14004
14181
  readonly main: {
14005
14182
  readonly type: "procedure";
14006
- readonly 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.";
14183
+ readonly 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.";
14007
14184
  readonly input: {
14008
14185
  readonly encoding: "application/json";
14009
14186
  readonly schema: {
@@ -14034,11 +14211,17 @@ export declare const schemas: ({
14034
14211
  readonly method: {
14035
14212
  readonly type: "ref";
14036
14213
  readonly ref: "lex:pub.techne.draft.identity.defs#methodView";
14214
+ readonly description: "`added` / `alreadyYours`: the method. Absent on `boundElsewhere`: the other account's method is named only to the identity PDS (identity.manageMethods addChannel).";
14037
14215
  };
14038
14216
  readonly offer: {
14039
14217
  readonly type: "ref";
14040
14218
  readonly ref: "lex:pub.techne.draft.identity.finishAddMethod#offer";
14041
14219
  };
14220
+ readonly other: {
14221
+ readonly type: "string";
14222
+ readonly format: "did";
14223
+ readonly description: "`boundElsewhere` when both accounts hold something: the account the method signs in to (no `offer`).";
14224
+ };
14042
14225
  };
14043
14226
  };
14044
14227
  };
@@ -14056,7 +14239,7 @@ export declare const schemas: ({
14056
14239
  readonly 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).";
14057
14240
  }, {
14058
14241
  readonly name: "ProtectedAccount";
14059
- readonly 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.";
14242
+ readonly 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`).";
14060
14243
  }, {
14061
14244
  readonly name: "UpstreamFailure";
14062
14245
  readonly 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.";
@@ -14069,6 +14252,7 @@ export declare const schemas: ({
14069
14252
  readonly action: {
14070
14253
  readonly type: "string";
14071
14254
  readonly knownValues: ["fold", "link"];
14255
+ readonly description: "`fold`. (`link` is retired and no longer offered.)";
14072
14256
  };
14073
14257
  readonly token: {
14074
14258
  readonly type: "string";
@@ -14241,7 +14425,7 @@ export declare const schemas: ({
14241
14425
  readonly defs: {
14242
14426
  readonly main: {
14243
14427
  readonly type: "procedure";
14244
- readonly 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.";
14428
+ readonly 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.";
14245
14429
  readonly input: {
14246
14430
  readonly encoding: "application/json";
14247
14431
  readonly schema: {
@@ -14284,7 +14468,7 @@ export declare const schemas: ({
14284
14468
  readonly 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).";
14285
14469
  }, {
14286
14470
  readonly name: "InvalidRequest";
14287
- readonly description: "`primary` names neither account, or the other account's keys are not held here (sign in to it and link from there).";
14471
+ readonly 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).";
14288
14472
  }];
14289
14473
  };
14290
14474
  };
@@ -14525,7 +14709,7 @@ export declare const schemas: ({
14525
14709
  readonly defs: {
14526
14710
  readonly main: {
14527
14711
  readonly type: "query";
14528
- readonly description: "The caller's sign-in methods (masked, with their recovery mark and freeze), its pending changes, and the account's alias links. Emails and phones only unless `allTypes` (shipped clients label every row as an email). Signed-in members only.";
14712
+ readonly 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.";
14529
14713
  readonly parameters: {
14530
14714
  readonly type: "params";
14531
14715
  readonly properties: {
@@ -14550,6 +14734,7 @@ export declare const schemas: ({
14550
14734
  };
14551
14735
  readonly links: {
14552
14736
  readonly type: "array";
14737
+ readonly 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.";
14553
14738
  readonly items: {
14554
14739
  readonly type: "ref";
14555
14740
  readonly ref: "lex:pub.techne.draft.identity.defs#linkView";
@@ -14557,7 +14742,7 @@ export declare const schemas: ({
14557
14742
  };
14558
14743
  readonly pending: {
14559
14744
  readonly type: "array";
14560
- readonly description: "The account's pending changes, soonest first (the account page shows them at the top, with Cancel).";
14745
+ readonly 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.";
14561
14746
  readonly items: {
14562
14747
  readonly type: "ref";
14563
14748
  readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
@@ -14673,7 +14858,7 @@ export declare const schemas: ({
14673
14858
  readonly defs: {
14674
14859
  readonly main: {
14675
14860
  readonly type: "procedure";
14676
- readonly 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 notice to every method, cancellable by any of them, 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 notice. Ops: `list` (methods, pending changes, `hasRecovery`), `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` with an `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), ProtectedAccount when either account has a recovery mark, a freeze, a pending change, or a passkey, Nostr key or recovery codes), `fold` and `link` (take that offer: `token`, and for `link` the `primary`; need 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`), or `linked` with `link`), `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), for the notice queue (no `did`; only the accounts the calling PDS hosts; the platform emails those of accounts hosted elsewhere itself) `notices` (up to 100 to deliver; one taken and not confirmed is offered again after 5 minutes, at most 10 times) and `noticesSent`, 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.";
14861
+ readonly 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.";
14677
14862
  readonly input: {
14678
14863
  readonly encoding: "application/json";
14679
14864
  readonly schema: {
@@ -14686,7 +14871,8 @@ export declare const schemas: ({
14686
14871
  };
14687
14872
  readonly op: {
14688
14873
  readonly type: "string";
14689
- readonly knownValues: ["list", "signInMethods", "sendTo", "remove", "cancel", "freeze", "unfreeze", "mark", "unmark", "signOut", "delete", "addExternal", "newRecoveryCodes", "redeemCode", "setPrograms", "importBackupEmails", "findKey", "notices", "noticesSent", "dueDeletes", "dueDeletesDone", "addChannel", "fold", "link", "operator"];
14874
+ readonly knownValues: ["list", "signInMethods", "sendTo", "remove", "cancel", "freeze", "unfreeze", "mark", "unmark", "signOut", "delete", "addExternal", "newRecoveryCodes", "redeemCode", "setPrograms", "importBackupEmails", "findKey", "notices", "noticesSent", "dueDeletes", "dueDeletesDone", "addChannel", "fold", "link", "moveMethod", "unlink", "operator"];
14875
+ readonly description: "The op. `link` is retired: it answers 400 InvalidRequest; `moveMethod` links two accounts now.";
14690
14876
  };
14691
14877
  readonly did: {
14692
14878
  readonly type: "string";
@@ -14700,7 +14886,7 @@ export declare const schemas: ({
14700
14886
  readonly method: {
14701
14887
  readonly type: "string";
14702
14888
  readonly maxLength: 64;
14703
- readonly description: "The method acted on (its `id` in `list` or `signInMethods`).";
14889
+ readonly 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.";
14704
14890
  };
14705
14891
  readonly pending: {
14706
14892
  readonly type: "string";
@@ -14726,7 +14912,7 @@ export declare const schemas: ({
14726
14912
  readonly items: {
14727
14913
  readonly type: "integer";
14728
14914
  };
14729
- readonly description: "Notice ids, for `noticesSent`.";
14915
+ readonly description: "Unused, kept for older clients: notice ids for `noticesSent`, which confirms none.";
14730
14916
  };
14731
14917
  readonly emails: {
14732
14918
  readonly type: "array";
@@ -14763,12 +14949,27 @@ export declare const schemas: ({
14763
14949
  readonly token: {
14764
14950
  readonly type: "string";
14765
14951
  readonly maxLength: 128;
14766
- readonly description: "fold / link: the offer's token from addChannel.";
14952
+ readonly description: "fold: the offer's token from addChannel. (link, retired, took one too.)";
14953
+ };
14954
+ readonly from: {
14955
+ readonly type: "string";
14956
+ readonly format: "did";
14957
+ readonly description: "moveMethod: the account the method leaves.";
14958
+ };
14959
+ readonly fromStepUp: {
14960
+ readonly type: "ref";
14961
+ readonly ref: "lex:pub.techne.draft.identity.manageMethods#stepUp";
14962
+ readonly description: "moveMethod: what the PDS's step-up of `from` proved (fresh, one of `from`'s methods).";
14963
+ };
14964
+ readonly other: {
14965
+ readonly type: "string";
14966
+ readonly format: "did";
14967
+ readonly description: "unlink: the account that leaves `did`'s person.";
14767
14968
  };
14768
14969
  readonly primary: {
14769
14970
  readonly type: "string";
14770
14971
  readonly format: "did";
14771
- readonly description: "link: which of the two accounts is the primary.";
14972
+ readonly description: "Retired, not read: it was the retired `link` op's primary account. Linked accounts have no primary.";
14772
14973
  };
14773
14974
  readonly on: {
14774
14975
  readonly type: "boolean";
@@ -14794,15 +14995,21 @@ export declare const schemas: ({
14794
14995
  readonly status: {
14795
14996
  readonly type: "string";
14796
14997
  readonly knownValues: ["done", "pending", "deleted", "deleting", "bound", "invalid", "hasRecovery", "indexOff", "alreadyImported", "added", "alreadyYours", "boundElsewhere", "unavailable", "folded", "linked", "none"];
14797
- readonly 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` / `linked`: fold / link done. `none`: findKey's key is no method of an account the calling PDS hosts.";
14998
+ readonly 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.";
14798
14999
  };
14799
15000
  readonly pending: {
14800
15001
  readonly type: "ref";
14801
15002
  readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
15003
+ readonly 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.";
15004
+ };
15005
+ readonly due: {
15006
+ readonly type: "string";
15007
+ readonly format: "datetime";
15008
+ readonly 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.";
14802
15009
  };
14803
15010
  readonly method: {
14804
15011
  readonly type: "string";
14805
- readonly 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.";
15012
+ readonly 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).";
14806
15013
  };
14807
15014
  readonly codes: {
14808
15015
  readonly type: "array";
@@ -14817,6 +15024,7 @@ export declare const schemas: ({
14817
15024
  readonly type: "ref";
14818
15025
  readonly ref: "lex:pub.techne.draft.identity.defs#methodView";
14819
15026
  };
15027
+ readonly description: "list: the account's methods (`value` on emails and phones; see defs#methodView).";
14820
15028
  };
14821
15029
  readonly hasRecovery: {
14822
15030
  readonly type: "boolean";
@@ -14827,10 +15035,11 @@ export declare const schemas: ({
14827
15035
  readonly type: "ref";
14828
15036
  readonly ref: "lex:pub.techne.draft.identity.manageMethods#notice";
14829
15037
  };
15038
+ readonly description: "Unused, kept for older clients: always empty. The platform emails every notice itself.";
14830
15039
  };
14831
15040
  readonly count: {
14832
15041
  readonly type: "integer";
14833
- readonly description: "noticesSent / dueDeletesDone: how many were confirmed.";
15042
+ readonly description: "dueDeletesDone: how many were confirmed. noticesSent (unused, kept for older clients): always 0.";
14834
15043
  };
14835
15044
  readonly signInMethods: {
14836
15045
  readonly type: "array";
@@ -14871,15 +15080,36 @@ export declare const schemas: ({
14871
15080
  readonly format: "did";
14872
15081
  readonly description: "fold: the kept account. findKey: the account the key signs in to.";
14873
15082
  };
15083
+ readonly other: {
15084
+ readonly type: "string";
15085
+ readonly format: "did";
15086
+ readonly description: "addChannel `boundElsewhere` when both accounts hold something: the account the channel signs in to (for `moveMethod`'s `from`).";
15087
+ };
15088
+ readonly otherPerson: {
15089
+ readonly type: "array";
15090
+ readonly items: {
15091
+ readonly type: "ref";
15092
+ readonly ref: "lex:pub.techne.draft.identity.defs#personMember";
15093
+ };
15094
+ readonly 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.";
15095
+ };
14874
15096
  readonly emptied: {
14875
15097
  readonly type: "string";
14876
15098
  readonly format: "did";
14877
15099
  readonly description: "fold: the account folded in and deleted.";
14878
15100
  };
15101
+ readonly person: {
15102
+ readonly type: "array";
15103
+ readonly items: {
15104
+ readonly type: "ref";
15105
+ readonly ref: "lex:pub.techne.draft.identity.defs#personMember";
15106
+ };
15107
+ readonly 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.";
15108
+ };
14879
15109
  readonly link: {
14880
15110
  readonly type: "ref";
14881
15111
  readonly ref: "lex:pub.techne.draft.identity.defs#linkView";
14882
- readonly description: "link: the link, from `did`'s side.";
15112
+ readonly description: "Retired: the retired `link` op's answer.";
14883
15113
  };
14884
15114
  readonly frozen: {
14885
15115
  readonly type: "boolean";
@@ -14909,37 +15139,37 @@ export declare const schemas: ({
14909
15139
  readonly description: "Try again (`redeemCode` and `newRecoveryCodes` also while the platform's identity keys are not loaded).";
14910
15140
  }, {
14911
15141
  readonly name: "NotFound";
14912
- readonly description: "No such method or pending change on the account.";
15142
+ readonly description: "No such method or pending change on the account (moveMethod: `from` has no such method).";
14913
15143
  }, {
14914
15144
  readonly name: "NotYourMethod";
14915
15145
  readonly description: "The step-up names a method that is not the account's.";
14916
15146
  }, {
14917
15147
  readonly name: "LastMethod";
14918
- readonly description: "It would leave no way to sign in.";
15148
+ readonly description: "It would leave no way to sign in (unlink: the method handed to `other` is `did`'s only one).";
14919
15149
  }, {
14920
15150
  readonly name: "RecoveryProtected";
14921
- readonly description: "Only a recovery method can do this to a recovery method.";
15151
+ readonly description: "Only a recovery method can do this to a recovery method (moveMethod: of `from`; unlink: of `did`).";
14922
15152
  }, {
14923
15153
  readonly name: "NeedsRecoveryMethod";
14924
- readonly description: "Needs a fresh step-up of a recovery method.";
15154
+ readonly description: "Needs a fresh step-up of a recovery method (unlink: or of the method handed to `other` itself).";
14925
15155
  }, {
14926
15156
  readonly name: "StepUpRequired";
14927
- readonly description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold` and `link` included).";
15157
+ readonly description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold`, `moveMethod` and `unlink` included).";
14928
15158
  }, {
14929
15159
  readonly name: "SameMethod";
14930
15160
  readonly description: "A method cannot freeze itself.";
14931
15161
  }, {
14932
15162
  readonly name: "MethodFrozen";
14933
- readonly 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).";
15163
+ readonly 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).";
14934
15164
  }, {
14935
15165
  readonly name: "InvalidToken";
14936
- readonly description: "fold / link: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook.";
15166
+ readonly description: "fold: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook.";
14937
15167
  }, {
14938
15168
  readonly name: "ProtectedAccount";
14939
- readonly description: "addChannel / fold / link: 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 or linked (HTTP 409).";
15169
+ readonly 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).";
14940
15170
  }, {
14941
15171
  readonly name: "NotEmpty";
14942
- readonly description: "fold: the account to fold gained a record or is 7 days old or more; link instead (HTTP 409).";
15172
+ readonly description: "fold: the account to fold gained a record or is 7 days old or more; link it with `moveMethod` instead (HTTP 409).";
14943
15173
  }, {
14944
15174
  readonly name: "ProgramRefused";
14945
15175
  readonly 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.";
@@ -14949,6 +15179,30 @@ export declare const schemas: ({
14949
15179
  }, {
14950
15180
  readonly name: "IsRecovery";
14951
15181
  readonly description: "setPrograms on: the method is a recovery method, or its first mark is waiting (HTTP 409).";
15182
+ }, {
15183
+ readonly name: "FromStepUpRequired";
15184
+ readonly description: "moveMethod: `fromStepUp` is missing, malformed, not fresh, or names none of `from`'s methods (HTTP 403).";
15185
+ }, {
15186
+ readonly name: "Frozen";
15187
+ readonly description: "moveMethod: a method of an account of either person is frozen; nothing is scheduled (HTTP 409).";
15188
+ }, {
15189
+ readonly name: "PendingChange";
15190
+ readonly description: "moveMethod: an account of either person has a pending change, a move included; nothing is scheduled (HTTP 409).";
15191
+ }, {
15192
+ readonly name: "TooMany";
15193
+ readonly description: "moveMethod: the person would hold more than 4 accounts (HTTP 409).";
15194
+ }, {
15195
+ readonly name: "Same";
15196
+ readonly description: "moveMethod: the two accounts are already one person, or the same account (HTTP 409).";
15197
+ }, {
15198
+ readonly name: "NoKey";
15199
+ readonly 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).";
15200
+ }, {
15201
+ readonly name: "NeedsMethod";
15202
+ readonly 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).";
15203
+ }, {
15204
+ readonly name: "NotLinked";
15205
+ readonly description: "unlink: `other` is not in `did`'s person, or is `did` (HTTP 404).";
14952
15206
  }];
14953
15207
  };
14954
15208
  readonly stepUp: {
@@ -14987,6 +15241,7 @@ export declare const schemas: ({
14987
15241
  };
14988
15242
  readonly notice: {
14989
15243
  readonly type: "object";
15244
+ readonly 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.";
14990
15245
  readonly required: ["id", "did", "event", "to", "createdAt"];
14991
15246
  readonly properties: {
14992
15247
  readonly id: {
@@ -14998,8 +15253,8 @@ export declare const schemas: ({
14998
15253
  };
14999
15254
  readonly event: {
15000
15255
  readonly type: "string";
15001
- readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery", "freeze", "waitDropped", "programsOn"];
15002
- readonly description: "What the notice is about: a change that started to wait (`removeMethod`, `deleteAccount`, `markRecovery`), a `freeze`, `waitDropped`: the change in `pending` was not completed because one of the account's methods was frozen during its wait, or `programsOn`: programs can now sign in with one of the account's Nostr keys (`setPrograms` on; no `pending`).";
15256
+ readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery", "freeze", "waitDropped", "programsOn", "moveMethod", "linked", "unlinked", "moveDropped", "moveTimedOut", "moveCancelled", "akaLeft", "emailLeft"];
15257
+ readonly 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.";
15003
15258
  };
15004
15259
  readonly to: {
15005
15260
  readonly type: "ref";
@@ -15032,6 +15287,7 @@ export declare const schemas: ({
15032
15287
  };
15033
15288
  readonly noticeTo: {
15034
15289
  readonly type: "object";
15290
+ readonly 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).";
15035
15291
  readonly required: ["type", "value"];
15036
15292
  readonly properties: {
15037
15293
  readonly type: {
@@ -15479,7 +15735,7 @@ export declare const schemas: ({
15479
15735
  readonly defs: {
15480
15736
  readonly main: {
15481
15737
  readonly type: "procedure";
15482
- readonly 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.";
15738
+ readonly 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).";
15483
15739
  readonly input: {
15484
15740
  readonly encoding: "application/json";
15485
15741
  readonly schema: {
@@ -15520,7 +15776,7 @@ export declare const schemas: ({
15520
15776
  readonly defs: {
15521
15777
  readonly main: {
15522
15778
  readonly type: "procedure";
15523
- readonly 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 notice to every method and any of them 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.";
15779
+ readonly 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.";
15524
15780
  readonly input: {
15525
15781
  readonly encoding: "application/json";
15526
15782
  readonly schema: {
@@ -15840,7 +16096,7 @@ export declare const schemas: ({
15840
16096
  readonly main: {
15841
16097
  readonly type: "record";
15842
16098
  readonly key: "any";
15843
- readonly 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.";
16099
+ readonly 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.";
15844
16100
  readonly record: {
15845
16101
  readonly type: "object";
15846
16102
  readonly required: ["subject", "createdAt"];
@@ -16793,7 +17049,7 @@ export declare const schemas: ({
16793
17049
  readonly main: {
16794
17050
  readonly type: "record";
16795
17051
  readonly key: "any";
16796
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. `any` permits that convention but cannot enforce it.";
17052
+ readonly 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.";
16797
17053
  readonly record: {
16798
17054
  readonly type: "object";
16799
17055
  readonly required: ["subject", "createdAt"];
@@ -17162,7 +17418,7 @@ export declare const schemas: ({
17162
17418
  readonly main: {
17163
17419
  readonly type: "record";
17164
17420
  readonly key: "any";
17165
- readonly 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.";
17421
+ readonly 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.";
17166
17422
  readonly record: {
17167
17423
  readonly type: "object";
17168
17424
  readonly required: ["subject", "sources", "readiness", "createdAt"];
@@ -17885,6 +18141,32 @@ export declare const schemas: ({
17885
18141
  readonly type: "string";
17886
18142
  readonly format: "handle";
17887
18143
  };
18144
+ readonly linked: {
18145
+ readonly type: "array";
18146
+ readonly items: {
18147
+ readonly type: "ref";
18148
+ readonly ref: "lex:pub.techne.draft.query.getRecords#linkedHandle";
18149
+ };
18150
+ readonly 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.";
18151
+ };
18152
+ };
18153
+ };
18154
+ readonly linkedHandle: {
18155
+ readonly type: "object";
18156
+ readonly required: ["did"];
18157
+ readonly properties: {
18158
+ readonly did: {
18159
+ readonly type: "string";
18160
+ readonly format: "did";
18161
+ };
18162
+ readonly handle: {
18163
+ readonly type: "string";
18164
+ readonly format: "handle";
18165
+ };
18166
+ readonly displayName: {
18167
+ readonly type: "string";
18168
+ readonly description: "The linked account's public profile name, when it has one.";
18169
+ };
17888
18170
  };
17889
18171
  };
17890
18172
  readonly resolved: {
@@ -18281,7 +18563,7 @@ export declare const schemas: ({
18281
18563
  readonly main: {
18282
18564
  readonly type: "record";
18283
18565
  readonly key: "any";
18284
- readonly 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.";
18566
+ readonly 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.";
18285
18567
  readonly record: {
18286
18568
  readonly type: "object";
18287
18569
  readonly required: ["subject", "createdAt"];
@@ -19173,7 +19455,7 @@ export declare const schemas: ({
19173
19455
  readonly main: {
19174
19456
  readonly type: "record";
19175
19457
  readonly key: "any";
19176
- readonly 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.";
19458
+ readonly 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.";
19177
19459
  readonly record: {
19178
19460
  readonly type: "object";
19179
19461
  readonly required: ["subject", "createdAt"];
@@ -19235,7 +19517,7 @@ export declare const schemas: ({
19235
19517
  readonly main: {
19236
19518
  readonly type: "record";
19237
19519
  readonly key: "any";
19238
- readonly 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.";
19520
+ readonly 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.";
19239
19521
  readonly record: {
19240
19522
  readonly type: "object";
19241
19523
  readonly required: ["subject", "other", "createdAt"];
@@ -19389,7 +19671,7 @@ export declare const schemas: ({
19389
19671
  readonly main: {
19390
19672
  readonly type: "record";
19391
19673
  readonly key: "any";
19392
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one per record. `any` permits that convention but cannot enforce it.";
19674
+ readonly 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.";
19393
19675
  readonly record: {
19394
19676
  readonly type: "object";
19395
19677
  readonly required: ["subject", "sourceStatus", "lastSeenAt", "createdAt"];
@@ -19489,7 +19771,7 @@ export declare const schemas: ({
19489
19771
  };
19490
19772
  };
19491
19773
  };
19492
- readonly 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.";
19774
+ readonly 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.";
19493
19775
  };
19494
19776
  };
19495
19777
  } | {
@@ -19582,7 +19864,7 @@ export declare const schemas: ({
19582
19864
  readonly main: {
19583
19865
  readonly type: "record";
19584
19866
  readonly key: "any";
19585
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one summary per record per writer. `any` permits that convention but cannot enforce it.";
19867
+ readonly 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.";
19586
19868
  readonly record: {
19587
19869
  readonly type: "object";
19588
19870
  readonly required: ["subject", "text", "createdAt"];
@@ -19689,7 +19971,7 @@ export declare const schemas: ({
19689
19971
  readonly main: {
19690
19972
  readonly type: "record";
19691
19973
  readonly key: "any";
19692
- readonly 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.";
19974
+ readonly 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.";
19693
19975
  readonly record: {
19694
19976
  readonly type: "object";
19695
19977
  readonly required: ["subject", "values", "createdAt"];
@@ -19726,7 +20008,7 @@ export declare const schemas: ({
19726
20008
  readonly main: {
19727
20009
  readonly type: "record";
19728
20010
  readonly key: "any";
19729
- readonly 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.";
20011
+ readonly 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.";
19730
20012
  readonly record: {
19731
20013
  readonly type: "object";
19732
20014
  readonly required: ["subject", "createdAt"];
@@ -19797,7 +20079,7 @@ export declare const schemas: ({
19797
20079
  readonly defs: {
19798
20080
  readonly main: {
19799
20081
  readonly type: "procedure";
19800
- readonly 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.";
20082
+ readonly 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.";
19801
20083
  readonly input: {
19802
20084
  readonly encoding: "application/json";
19803
20085
  readonly schema: {
@@ -19845,7 +20127,7 @@ export declare const schemas: ({
19845
20127
  readonly description: "Malformed input, or a space type that takes no app approvals yet.";
19846
20128
  }, {
19847
20129
  readonly name: "NotAuthorized";
19848
- readonly description: "The caller does not pass the space type's manage leg.";
20130
+ readonly 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).";
19849
20131
  }];
19850
20132
  };
19851
20133
  };
@@ -20062,7 +20344,7 @@ export declare const schemas: ({
20062
20344
  readonly defs: {
20063
20345
  readonly main: {
20064
20346
  readonly type: "query";
20065
- readonly 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.";
20347
+ readonly 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.";
20066
20348
  readonly parameters: {
20067
20349
  readonly type: "params";
20068
20350
  readonly properties: {
@@ -20304,7 +20586,7 @@ export declare const schemas: ({
20304
20586
  readonly defs: {
20305
20587
  readonly main: {
20306
20588
  readonly type: "query";
20307
- readonly 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.";
20589
+ readonly 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.";
20308
20590
  readonly parameters: {
20309
20591
  readonly type: "params";
20310
20592
  readonly properties: {