techne-sdk 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/README.md +12 -3
  3. package/dist/auth/app-key.d.ts +5 -0
  4. package/dist/auth/app-key.js +7 -0
  5. package/dist/auth/index.d.ts +19 -11
  6. package/dist/auth/index.js +21 -13
  7. package/dist/catalog/catalog.gen.js +499 -139
  8. package/dist/connect.d.ts +18 -3
  9. package/dist/connect.js +2 -0
  10. package/dist/generated/index.d.ts +3 -0
  11. package/dist/generated/index.js +9 -0
  12. package/dist/generated/lexicons.d.ts +590 -146
  13. package/dist/generated/lexicons.js +332 -71
  14. package/dist/generated/nsid.d.ts +3 -0
  15. package/dist/generated/nsid.js +3 -0
  16. package/dist/generated/nsid.json +3 -0
  17. package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +2 -0
  18. package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +23 -7
  19. package/dist/generated/types/pub/techne/draft/identity/defs.js +7 -0
  20. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +3 -0
  21. package/dist/generated/types/pub/techne/draft/identity/listMethods.d.ts +2 -1
  22. package/dist/generated/types/pub/techne/draft/identity/manageMethods.d.ts +52 -10
  23. package/dist/generated/types/pub/techne/draft/identity/manageMethods.js +56 -0
  24. package/dist/generated/types/pub/techne/draft/identity/writeAsCollective.d.ts +51 -0
  25. package/dist/generated/types/pub/techne/draft/identity/writeAsCollective.js +55 -0
  26. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +1 -1
  27. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +1 -1
  28. package/dist/generated/types/pub/techne/draft/query/getRecords.d.ts +11 -0
  29. package/dist/generated/types/pub/techne/draft/query/getRecords.js +7 -0
  30. package/dist/query/compose.d.ts +1 -1
  31. package/dist/query/compose.js +1 -1
  32. package/dist/query/index.d.ts +7 -0
  33. package/dist/query/index.js +28 -1
  34. package/dist/versions/react.js +19 -6
  35. package/dist/wasm/techne-wasm.gen.js +1 -1
  36. package/dist/wasm/techne-wasm2js.gen.js +16836 -16838
  37. package/package.json +3 -2
@@ -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: {
@@ -5048,6 +5163,87 @@ export declare const schemaDict: {
5048
5163
  };
5049
5164
  };
5050
5165
  };
5166
+ readonly PubTechneDraftIdentityWriteAsCollective: {
5167
+ readonly lexicon: 1;
5168
+ readonly id: "pub.techne.draft.identity.writeAsCollective";
5169
+ readonly defs: {
5170
+ readonly main: {
5171
+ readonly type: "procedure";
5172
+ readonly description: "Write as a collective: a batch of creates, updates and deletes applied atomically to the repo of a collective account whose credential this service holds, written with that credential. The same input and output as com.atproto.repo.applyWrites, with `repo` the collective's DID; each write is a com.atproto.repo.applyWrites#create, #update or #delete. The service checks the caller's role in the collective first: whoever manages the collective's own member space (`pub.techne.draft.space.collective.member/self`) writes as it; a member of a circle who only writes there deletes its own membership; a new collective's creator writes its first records; a collective that lets every signed-in account post a type takes one such create. A collective that keeps its memberships and descriptor in its member space (a circle) has them created and updated there with pub.techne.draft.permissioned.putRecords, never here (a delete is applied here), and a `block` is never created or updated as a collective. An app reaches it through the caller's own PDS (`atproto-proxy: <service DID>#atproto_appview`), which forwards it with the caller's service-auth token; the app's OAuth scope needs `rpc:pub.techne.draft.identity.writeAsCollective?aud=<service DID>%23atproto_appview`. An agent's token from this service, or a session with it, calls it directly. Its writes are public records in the collective's repo, and the caller's authority is its role there, so the app's `space:` scopes need not reach them (the `rpc:` scope above is enough). It places nothing in a space: a write that names a `space` is refused, and pub.techne.draft.permissioned.putRecords writes into a collective's space. Your own repo is not written here: write it at your PDS with com.atproto.repo.applyWrites. One call spends one of the caller's writes.";
5173
+ readonly input: {
5174
+ readonly encoding: "application/json";
5175
+ readonly schema: {
5176
+ readonly type: "object";
5177
+ readonly required: ["repo", "writes"];
5178
+ readonly properties: {
5179
+ readonly repo: {
5180
+ readonly type: "string";
5181
+ readonly format: "did";
5182
+ readonly description: "The collective's DID. Not the caller's own.";
5183
+ };
5184
+ readonly validate: {
5185
+ readonly type: "boolean";
5186
+ readonly description: "As com.atproto.repo.applyWrites: passed to the collective's PDS.";
5187
+ };
5188
+ readonly writes: {
5189
+ readonly type: "array";
5190
+ readonly items: {
5191
+ readonly type: "union";
5192
+ readonly refs: ["lex:com.atproto.repo.applyWrites#create", "lex:com.atproto.repo.applyWrites#update", "lex:com.atproto.repo.applyWrites#delete"];
5193
+ readonly closed: true;
5194
+ };
5195
+ };
5196
+ readonly swapCommit: {
5197
+ readonly type: "string";
5198
+ readonly format: "cid";
5199
+ readonly description: "As com.atproto.repo.applyWrites: the whole batch fails unless the collective's repo is at this commit.";
5200
+ };
5201
+ };
5202
+ };
5203
+ };
5204
+ readonly output: {
5205
+ readonly encoding: "application/json";
5206
+ readonly schema: {
5207
+ readonly type: "object";
5208
+ readonly required: [];
5209
+ readonly properties: {
5210
+ readonly commit: {
5211
+ readonly type: "ref";
5212
+ readonly ref: "lex:com.atproto.repo.defs#commitMeta";
5213
+ };
5214
+ readonly results: {
5215
+ readonly type: "array";
5216
+ readonly items: {
5217
+ readonly type: "union";
5218
+ readonly refs: ["lex:com.atproto.repo.applyWrites#createResult", "lex:com.atproto.repo.applyWrites#updateResult", "lex:com.atproto.repo.applyWrites#deleteResult"];
5219
+ readonly closed: true;
5220
+ };
5221
+ };
5222
+ };
5223
+ };
5224
+ };
5225
+ readonly errors: [{
5226
+ readonly name: "InvalidRequest";
5227
+ readonly description: "HTTP 400 (or the body extractor's 413, 415 or 422 for a body that is not JSON). Malformed input; `repo` is the caller's own DID (write your own repo at your PDS); a write names a `space` the app's `space:` scopes cover, or the token carries none (write it there with pub.techne.draft.permissioned.putRecords); or the collective's PDS refused the writes (its reason in the message, e.g. InvalidSwap when `swapCommit` did not match).";
5228
+ }, {
5229
+ readonly name: "Forbidden";
5230
+ readonly description: "HTTP 403. The caller may not write as `repo`, or not this write: a record above its own role, a `block`, or a membership or descriptor the collective keeps in its member space.";
5231
+ }, {
5232
+ readonly name: "NotAuthorized";
5233
+ readonly description: "HTTP 403. A write names a `space` the app's `space:` scopes do not cover writing to.";
5234
+ }, {
5235
+ readonly name: "LastManager";
5236
+ readonly description: "HTTP 409. The writes would leave a circle's members with no manager.";
5237
+ }, {
5238
+ readonly name: "PayloadTooLarge";
5239
+ readonly description: "HTTP 413, from the collective's PDS.";
5240
+ }, {
5241
+ readonly name: "RateLimitExceeded";
5242
+ readonly description: "HTTP 429. Too many writes from this DID, or the collective's PDS is rate-limiting.";
5243
+ }];
5244
+ };
5245
+ };
5246
+ };
5051
5247
  readonly PubTechneDraftInterest: {
5052
5248
  readonly lexicon: 1;
5053
5249
  readonly id: "pub.techne.draft.interest";
@@ -5326,7 +5522,7 @@ export declare const schemaDict: {
5326
5522
  readonly main: {
5327
5523
  readonly type: "record";
5328
5524
  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.";
5525
+ 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
5526
  readonly record: {
5331
5527
  readonly type: "object";
5332
5528
  readonly required: ["subject", "createdAt"];
@@ -5530,11 +5726,11 @@ export declare const schemaDict: {
5530
5726
  readonly PubTechneDraftPermissionedDeleteRecord: {
5531
5727
  readonly lexicon: 1;
5532
5728
  readonly id: "pub.techne.draft.permissioned.deleteRecord";
5533
- readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by the app its key names or a caller whose `space:` scopes cover a delete there; any other caller is refused 403 Forbidden and nothing is deleted, the record's own writer included when the record counted in no space, and even when nothing is at the key. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. Draft tier.";
5729
+ readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by a caller whose `space:` scopes cover a delete there or whose token carries no `space:` scopes; any other caller is refused 403 Forbidden and nothing is deleted, even when nothing is at the key. Draft tier.";
5534
5730
  readonly defs: {
5535
5731
  readonly main: {
5536
5732
  readonly type: "procedure";
5537
- readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only by the app its key names or under `space:` scopes covering it: anyone else, its writer included, is 403 Forbidden. Draft tier.";
5733
+ readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only under `space:` scopes covering it or with no `space:` scopes: anyone else is 403 Forbidden. Draft tier.";
5538
5734
  readonly input: {
5539
5735
  readonly encoding: "application/json";
5540
5736
  readonly schema: {
@@ -5586,7 +5782,7 @@ export declare const schemaDict: {
5586
5782
  readonly description: "HTTP 400. Malformed parameters. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
5587
5783
  }, {
5588
5784
  readonly name: "Forbidden";
5589
- readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a delete there. Nothing is deleted.";
5785
+ readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) under `space:` scopes that do not cover a delete there. Nothing is deleted.";
5590
5786
  }, {
5591
5787
  readonly name: "LastManager";
5592
5788
  readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
@@ -5941,11 +6137,11 @@ export declare const schemaDict: {
5941
6137
  readonly PubTechneDraftPermissionedPutRecord: {
5942
6138
  readonly lexicon: 1;
5943
6139
  readonly id: "pub.techne.draft.permissioned.putRecord";
5944
- readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused for its space. Replacing a record already written for an app's space (a pub.techne.draft.space.private space) is: only the app its key names, or a caller whose `space:` scopes cover a put there, may replace it; any other caller is refused 403 Forbidden and nothing is written, the record's own writer included when the record counted in no space. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space counts there only when written by the app its key names (the managing app) or by a caller whose `space:` scopes cover that space; written by anyone else it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; write it again to ask again (for an app's space only the callers that may replace a record there can). A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
6140
+ readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused by its space's policy (only by the token's `space:` scopes). Replacing a record already written for an app's space (a pub.techne.draft.space.private space): only a caller whose `space:` scopes cover a put there, or whose token carries no `space:` scopes, may replace it; any other caller is refused 403 Forbidden and nothing is written. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space is a space like any other: a write there counts when its owner writes it under `space:` scopes covering it or with no `space:` scopes (which app is calling is not asked); a write under scopes that do not cover it is refused like any write out of scope. Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it (a record written for an app's space and not admitted there is read by no one); write it again to ask again (for an app's space only the callers that may replace a record there can). A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
5945
6141
  readonly defs: {
5946
6142
  readonly main: {
5947
6143
  readonly type: "procedure";
5948
- readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names (or under `space:` scopes covering it); else it counts in no space. Replacing a record already written there needs that app or those scopes: anyone else, its writer included, is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only for that app or under covering scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.";
6144
+ readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused by its space's policy (only by your token's `space:` scopes). A pub.techne.draft.space.private record counts there when written under `space:` scopes covering it or with no `space:` scopes; which app is calling is not asked. Replacing a record already written there needs `space:` scopes covering it, or none; anyone else is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only under covering scopes or with no `space:` scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.";
5949
6145
  readonly input: {
5950
6146
  readonly encoding: "application/json";
5951
6147
  readonly schema: {
@@ -6015,7 +6211,7 @@ export declare const schemaDict: {
6015
6211
  readonly space: {
6016
6212
  readonly type: "string";
6017
6213
  readonly format: "at-uri";
6018
- readonly description: "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer, or a space.private space written by an app other than the one its key names).";
6214
+ readonly description: "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer).";
6019
6215
  };
6020
6216
  };
6021
6217
  };
@@ -6025,7 +6221,7 @@ export declare const schemaDict: {
6025
6221
  readonly description: "HTTP 400. Malformed input (no `space`: name one, since public records go through com.atproto.repo.putRecord; a bad DID, NSID, record key or space address, a record whose $type is not collection, or one with no DAG-CBOR form), or a body that fails its collection's published lexicon. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
6026
6222
  }, {
6027
6223
  readonly name: "Forbidden";
6028
- readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a put there. A first write is never refused for its space. Nothing is written.";
6224
+ readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) under `space:` scopes that do not cover a put there. A first write is never refused by its space's policy (only by the token's `space:` scopes). Nothing is written.";
6029
6225
  }, {
6030
6226
  readonly name: "LastManager";
6031
6227
  readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
@@ -6057,11 +6253,11 @@ export declare const schemaDict: {
6057
6253
  readonly PubTechneDraftPermissionedPutRecords: {
6058
6254
  readonly lexicon: 1;
6059
6255
  readonly id: "pub.techne.draft.permissioned.putRecords";
6060
- readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only for its app or under `space:` scopes covering it; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) by a caller that is neither the app its key names nor holds `space:` scopes covering a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused for its space. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
6256
+ readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only under `space:` scopes covering it or with no `space:` scopes; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) under `space:` scopes that do not cover a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused by its space's policy (only by the token's `space:` scopes). `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
6061
6257
  readonly defs: {
6062
6258
  readonly main: {
6063
6259
  readonly type: "procedure";
6064
- readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
6260
+ readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only under covering scopes or with no `space:` scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused by its space's policy (only by the token's `space:` scopes), but replacing a record already written for an app's space needs `space:` scopes covering it or no `space:` scopes, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
6065
6261
  readonly input: {
6066
6262
  readonly encoding: "application/json";
6067
6263
  readonly schema: {
@@ -6195,7 +6391,7 @@ export declare const schemaDict: {
6195
6391
  readonly properties: {
6196
6392
  readonly error: {
6197
6393
  readonly type: "string";
6198
- readonly description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord), RateLimitExceeded (a contact write that binds a number to an account found the caller's phone lookups spent; retry it in a minute) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space and the caller is neither the app its key names nor holds `space:` scopes covering it; see putRecord).";
6394
+ readonly description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord), RateLimitExceeded (a contact write that binds a number to an account found the caller's phone lookups spent; retry it in a minute) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space under `space:` scopes that do not cover it; see putRecord).";
6199
6395
  readonly knownValues: ["InvalidRequest", "InvalidSwap", "Conflict", "IdentityConflict", "DuplicatePhone", "RateLimitExceeded", "Forbidden"];
6200
6396
  };
6201
6397
  readonly message: {
@@ -6291,7 +6487,7 @@ export declare const schemaDict: {
6291
6487
  readonly main: {
6292
6488
  readonly type: "record";
6293
6489
  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.";
6490
+ 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
6491
  readonly record: {
6296
6492
  readonly type: "object";
6297
6493
  readonly required: ["subject", "createdAt"];
@@ -6664,7 +6860,7 @@ export declare const schemaDict: {
6664
6860
  readonly main: {
6665
6861
  readonly type: "record";
6666
6862
  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.";
6863
+ 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
6864
  readonly record: {
6669
6865
  readonly type: "object";
6670
6866
  readonly required: ["subject", "sources", "readiness", "createdAt"];
@@ -7391,6 +7587,32 @@ export declare const schemaDict: {
7391
7587
  readonly type: "string";
7392
7588
  readonly format: "handle";
7393
7589
  };
7590
+ readonly linked: {
7591
+ readonly type: "array";
7592
+ readonly items: {
7593
+ readonly type: "ref";
7594
+ readonly ref: "lex:pub.techne.draft.query.getRecords#linkedHandle";
7595
+ };
7596
+ 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.";
7597
+ };
7598
+ };
7599
+ };
7600
+ readonly linkedHandle: {
7601
+ readonly type: "object";
7602
+ readonly required: ["did"];
7603
+ readonly properties: {
7604
+ readonly did: {
7605
+ readonly type: "string";
7606
+ readonly format: "did";
7607
+ };
7608
+ readonly handle: {
7609
+ readonly type: "string";
7610
+ readonly format: "handle";
7611
+ };
7612
+ readonly displayName: {
7613
+ readonly type: "string";
7614
+ readonly description: "The linked account's public profile name, when it has one.";
7615
+ };
7394
7616
  };
7395
7617
  };
7396
7618
  readonly resolved: {
@@ -7791,7 +8013,7 @@ export declare const schemaDict: {
7791
8013
  readonly main: {
7792
8014
  readonly type: "record";
7793
8015
  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.";
8016
+ 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
8017
  readonly record: {
7796
8018
  readonly type: "object";
7797
8019
  readonly required: ["subject", "createdAt"];
@@ -8695,7 +8917,7 @@ export declare const schemaDict: {
8695
8917
  readonly main: {
8696
8918
  readonly type: "record";
8697
8919
  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.";
8920
+ 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
8921
  readonly record: {
8700
8922
  readonly type: "object";
8701
8923
  readonly required: ["subject", "createdAt"];
@@ -8759,7 +8981,7 @@ export declare const schemaDict: {
8759
8981
  readonly main: {
8760
8982
  readonly type: "record";
8761
8983
  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.";
8984
+ 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
8985
  readonly record: {
8764
8986
  readonly type: "object";
8765
8987
  readonly required: ["subject", "other", "createdAt"];
@@ -8917,7 +9139,7 @@ export declare const schemaDict: {
8917
9139
  readonly main: {
8918
9140
  readonly type: "record";
8919
9141
  readonly key: "any";
8920
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one per record. `any` permits that convention but cannot enforce it.";
9142
+ 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
9143
  readonly record: {
8922
9144
  readonly type: "object";
8923
9145
  readonly required: ["subject", "sourceStatus", "lastSeenAt", "createdAt"];
@@ -9018,7 +9240,7 @@ export declare const schemaDict: {
9018
9240
  };
9019
9241
  };
9020
9242
  };
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.";
9243
+ 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
9244
  };
9023
9245
  };
9024
9246
  };
@@ -9114,7 +9336,7 @@ export declare const schemaDict: {
9114
9336
  readonly main: {
9115
9337
  readonly type: "record";
9116
9338
  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.";
9339
+ 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
9340
  readonly record: {
9119
9341
  readonly type: "object";
9120
9342
  readonly required: ["subject", "text", "createdAt"];
@@ -9223,7 +9445,7 @@ export declare const schemaDict: {
9223
9445
  readonly main: {
9224
9446
  readonly type: "record";
9225
9447
  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.";
9448
+ 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
9449
  readonly record: {
9228
9450
  readonly type: "object";
9229
9451
  readonly required: ["subject", "values", "createdAt"];
@@ -9261,7 +9483,7 @@ export declare const schemaDict: {
9261
9483
  readonly main: {
9262
9484
  readonly type: "record";
9263
9485
  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.";
9486
+ 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
9487
  readonly record: {
9266
9488
  readonly type: "object";
9267
9489
  readonly required: ["subject", "createdAt"];
@@ -9334,7 +9556,7 @@ export declare const schemaDict: {
9334
9556
  readonly defs: {
9335
9557
  readonly main: {
9336
9558
  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.";
9559
+ 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
9560
  readonly input: {
9339
9561
  readonly encoding: "application/json";
9340
9562
  readonly schema: {
@@ -9382,7 +9604,7 @@ export declare const schemaDict: {
9382
9604
  readonly description: "Malformed input, or a space type that takes no app approvals yet.";
9383
9605
  }, {
9384
9606
  readonly name: "NotAuthorized";
9385
- readonly description: "The caller does not pass the space type's manage leg.";
9607
+ 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
9608
  }];
9387
9609
  };
9388
9610
  };
@@ -9604,7 +9826,7 @@ export declare const schemaDict: {
9604
9826
  readonly defs: {
9605
9827
  readonly main: {
9606
9828
  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.";
9829
+ 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
9830
  readonly parameters: {
9609
9831
  readonly type: "params";
9610
9832
  readonly properties: {
@@ -9850,7 +10072,7 @@ export declare const schemaDict: {
9850
10072
  readonly defs: {
9851
10073
  readonly main: {
9852
10074
  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.";
10075
+ 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
10076
  readonly parameters: {
9855
10077
  readonly type: "params";
9856
10078
  readonly properties: {
@@ -11664,7 +11886,7 @@ export declare const schemas: ({
11664
11886
  } | {
11665
11887
  readonly lexicon: 1;
11666
11888
  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.";
11889
+ 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
11890
  readonly defs: {
11669
11891
  readonly main: {
11670
11892
  readonly type: "record";
@@ -11716,7 +11938,7 @@ export declare const schemas: ({
11716
11938
  } | {
11717
11939
  readonly lexicon: 1;
11718
11940
  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.";
11941
+ 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
11942
  readonly defs: {
11721
11943
  readonly main: {
11722
11944
  readonly type: "record";
@@ -11832,7 +12054,7 @@ export declare const schemas: ({
11832
12054
  readonly main: {
11833
12055
  readonly type: "record";
11834
12056
  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.";
12057
+ 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
12058
  readonly record: {
11837
12059
  readonly type: "object";
11838
12060
  readonly required: ["subject", "questionSet", "answers", "complete", "createdAt"];
@@ -12706,7 +12928,7 @@ export declare const schemas: ({
12706
12928
  readonly main: {
12707
12929
  readonly type: "record";
12708
12930
  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.";
12931
+ 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
12932
  readonly record: {
12711
12933
  readonly type: "object";
12712
12934
  readonly required: ["subject", "container", "createdAt"];
@@ -12860,7 +13082,7 @@ export declare const schemas: ({
12860
13082
  readonly main: {
12861
13083
  readonly type: "record";
12862
13084
  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.";
13085
+ 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
13086
  readonly record: {
12865
13087
  readonly type: "object";
12866
13088
  readonly required: ["subject", "method", "createdAt"];
@@ -12995,7 +13217,7 @@ export declare const schemas: ({
12995
13217
  readonly main: {
12996
13218
  readonly type: "record";
12997
13219
  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.";
13220
+ 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
13221
  readonly record: {
13000
13222
  readonly type: "object";
13001
13223
  readonly required: ["subject", "text", "createdAt"];
@@ -13028,7 +13250,7 @@ export declare const schemas: ({
13028
13250
  readonly main: {
13029
13251
  readonly type: "record";
13030
13252
  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.";
13253
+ 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
13254
  readonly record: {
13033
13255
  readonly type: "object";
13034
13256
  readonly required: ["subject", "other", "createdAt"];
@@ -13312,7 +13534,7 @@ export declare const schemas: ({
13312
13534
  readonly main: {
13313
13535
  readonly type: "record";
13314
13536
  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.";
13537
+ 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
13538
  readonly record: {
13317
13539
  readonly type: "object";
13318
13540
  readonly required: ["subject", "location", "createdAt"];
@@ -13349,7 +13571,7 @@ export declare const schemas: ({
13349
13571
  readonly main: {
13350
13572
  readonly type: "record";
13351
13573
  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.";
13574
+ 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
13575
  readonly record: {
13354
13576
  readonly type: "object";
13355
13577
  readonly required: ["subject", "place", "createdAt"];
@@ -13483,6 +13705,10 @@ export declare const schemas: ({
13483
13705
  readonly type: "boolean";
13484
13706
  readonly description: "The PDS created the account in this sign-in.";
13485
13707
  };
13708
+ readonly termsShown: {
13709
+ readonly type: "boolean";
13710
+ 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).";
13711
+ };
13486
13712
  };
13487
13713
  };
13488
13714
  };
@@ -13829,7 +14055,7 @@ export declare const schemas: ({
13829
14055
  };
13830
14056
  readonly methodView: {
13831
14057
  readonly type: "object";
13832
- readonly description: "One sign-in method of the caller's account, masked.";
14058
+ 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
14059
  readonly required: ["bid", "type", "masked", "boundAt"];
13834
14060
  readonly properties: {
13835
14061
  readonly bid: {
@@ -13846,6 +14072,11 @@ export declare const schemas: ({
13846
14072
  readonly maxLength: 320;
13847
14073
  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
14074
  };
14075
+ readonly value: {
14076
+ readonly type: "string";
14077
+ readonly maxLength: 320;
14078
+ 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.";
14079
+ };
13849
14080
  readonly boundAt: {
13850
14081
  readonly type: "string";
13851
14082
  readonly format: "datetime";
@@ -13867,7 +14098,7 @@ export declare const schemas: ({
13867
14098
  };
13868
14099
  readonly pendingChange: {
13869
14100
  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.";
14101
+ 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
14102
  readonly required: ["id", "kind", "createdAt", "dueAt"];
13872
14103
  readonly properties: {
13873
14104
  readonly id: {
@@ -13876,12 +14107,17 @@ export declare const schemas: ({
13876
14107
  };
13877
14108
  readonly kind: {
13878
14109
  readonly type: "string";
13879
- readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery"];
14110
+ readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery", "moveMethod"];
13880
14111
  };
13881
14112
  readonly method: {
13882
14113
  readonly type: "string";
13883
14114
  readonly maxLength: 64;
13884
- readonly description: "The method it removes or marks.";
14115
+ readonly description: "The method it removes, marks or moves (for an incoming move, the other account's method).";
14116
+ };
14117
+ readonly other: {
14118
+ readonly type: "string";
14119
+ readonly format: "did";
14120
+ 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
14121
  };
13886
14122
  readonly createdAt: {
13887
14123
  readonly type: "string";
@@ -13895,8 +14131,8 @@ export declare const schemas: ({
13895
14131
  };
13896
14132
  readonly linkView: {
13897
14133
  readonly type: "object";
13898
- readonly description: "An alias link between the caller's account and another.";
13899
- readonly required: ["did", "primary", "mutual"];
14134
+ 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.";
14135
+ readonly required: ["did", "mutual"];
13900
14136
  readonly properties: {
13901
14137
  readonly did: {
13902
14138
  readonly type: "string";
@@ -13907,13 +14143,35 @@ export declare const schemas: ({
13907
14143
  readonly type: "string";
13908
14144
  readonly format: "handle";
13909
14145
  };
13910
- readonly primary: {
14146
+ readonly mutual: {
14147
+ readonly type: "boolean";
14148
+ readonly description: "Retired: a link is always mutual, and identity.listMethods sends `true` (it was: both accounts hold a matching pub.techne.draft.accountLink).";
14149
+ };
14150
+ readonly since: {
14151
+ readonly type: "string";
14152
+ readonly format: "datetime";
14153
+ readonly description: "When the two accounts became one person.";
14154
+ };
14155
+ };
14156
+ };
14157
+ readonly personMember: {
14158
+ readonly type: "object";
14159
+ readonly description: "Another account of an account's person (identity.manageMethods `list` and moveMethod).";
14160
+ readonly required: ["did"];
14161
+ readonly properties: {
14162
+ readonly did: {
13911
14163
  readonly type: "string";
13912
14164
  readonly format: "did";
13913
14165
  };
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.";
14166
+ readonly since: {
14167
+ readonly type: "string";
14168
+ readonly format: "datetime";
14169
+ readonly description: "When it joined the person. Sent by `list`.";
14170
+ };
14171
+ readonly handle: {
14172
+ readonly type: "string";
14173
+ readonly format: "handle";
14174
+ readonly description: "Its handle, when the platform knows one. Sent in addChannel's `otherPerson`.";
13917
14175
  };
13918
14176
  };
13919
14177
  };
@@ -14003,7 +14261,7 @@ export declare const schemas: ({
14003
14261
  readonly defs: {
14004
14262
  readonly main: {
14005
14263
  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.";
14264
+ 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
14265
  readonly input: {
14008
14266
  readonly encoding: "application/json";
14009
14267
  readonly schema: {
@@ -14034,11 +14292,17 @@ export declare const schemas: ({
14034
14292
  readonly method: {
14035
14293
  readonly type: "ref";
14036
14294
  readonly ref: "lex:pub.techne.draft.identity.defs#methodView";
14295
+ 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
14296
  };
14038
14297
  readonly offer: {
14039
14298
  readonly type: "ref";
14040
14299
  readonly ref: "lex:pub.techne.draft.identity.finishAddMethod#offer";
14041
14300
  };
14301
+ readonly other: {
14302
+ readonly type: "string";
14303
+ readonly format: "did";
14304
+ readonly description: "`boundElsewhere` when both accounts hold something: the account the method signs in to (no `offer`).";
14305
+ };
14042
14306
  };
14043
14307
  };
14044
14308
  };
@@ -14056,7 +14320,7 @@ export declare const schemas: ({
14056
14320
  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
14321
  }, {
14058
14322
  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.";
14323
+ 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
14324
  }, {
14061
14325
  readonly name: "UpstreamFailure";
14062
14326
  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 +14333,7 @@ export declare const schemas: ({
14069
14333
  readonly action: {
14070
14334
  readonly type: "string";
14071
14335
  readonly knownValues: ["fold", "link"];
14336
+ readonly description: "`fold`. (`link` is retired and no longer offered.)";
14072
14337
  };
14073
14338
  readonly token: {
14074
14339
  readonly type: "string";
@@ -14241,7 +14506,7 @@ export declare const schemas: ({
14241
14506
  readonly defs: {
14242
14507
  readonly main: {
14243
14508
  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.";
14509
+ 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
14510
  readonly input: {
14246
14511
  readonly encoding: "application/json";
14247
14512
  readonly schema: {
@@ -14284,7 +14549,7 @@ export declare const schemas: ({
14284
14549
  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
14550
  }, {
14286
14551
  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).";
14552
+ 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
14553
  }];
14289
14554
  };
14290
14555
  };
@@ -14525,7 +14790,7 @@ export declare const schemas: ({
14525
14790
  readonly defs: {
14526
14791
  readonly main: {
14527
14792
  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.";
14793
+ 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
14794
  readonly parameters: {
14530
14795
  readonly type: "params";
14531
14796
  readonly properties: {
@@ -14550,6 +14815,7 @@ export declare const schemas: ({
14550
14815
  };
14551
14816
  readonly links: {
14552
14817
  readonly type: "array";
14818
+ 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
14819
  readonly items: {
14554
14820
  readonly type: "ref";
14555
14821
  readonly ref: "lex:pub.techne.draft.identity.defs#linkView";
@@ -14557,7 +14823,7 @@ export declare const schemas: ({
14557
14823
  };
14558
14824
  readonly pending: {
14559
14825
  readonly type: "array";
14560
- readonly description: "The account's pending changes, soonest first (the account page shows them at the top, with Cancel).";
14826
+ 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
14827
  readonly items: {
14562
14828
  readonly type: "ref";
14563
14829
  readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
@@ -14673,7 +14939,7 @@ export declare const schemas: ({
14673
14939
  readonly defs: {
14674
14940
  readonly main: {
14675
14941
  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.";
14942
+ 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
14943
  readonly input: {
14678
14944
  readonly encoding: "application/json";
14679
14945
  readonly schema: {
@@ -14686,7 +14952,8 @@ export declare const schemas: ({
14686
14952
  };
14687
14953
  readonly op: {
14688
14954
  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"];
14955
+ 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"];
14956
+ readonly description: "The op. `link` is retired: it answers 400 InvalidRequest; `moveMethod` links two accounts now.";
14690
14957
  };
14691
14958
  readonly did: {
14692
14959
  readonly type: "string";
@@ -14700,7 +14967,7 @@ export declare const schemas: ({
14700
14967
  readonly method: {
14701
14968
  readonly type: "string";
14702
14969
  readonly maxLength: 64;
14703
- readonly description: "The method acted on (its `id` in `list` or `signInMethods`).";
14970
+ 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
14971
  };
14705
14972
  readonly pending: {
14706
14973
  readonly type: "string";
@@ -14726,7 +14993,7 @@ export declare const schemas: ({
14726
14993
  readonly items: {
14727
14994
  readonly type: "integer";
14728
14995
  };
14729
- readonly description: "Notice ids, for `noticesSent`.";
14996
+ readonly description: "Unused, kept for older clients: notice ids for `noticesSent`, which confirms none.";
14730
14997
  };
14731
14998
  readonly emails: {
14732
14999
  readonly type: "array";
@@ -14763,12 +15030,27 @@ export declare const schemas: ({
14763
15030
  readonly token: {
14764
15031
  readonly type: "string";
14765
15032
  readonly maxLength: 128;
14766
- readonly description: "fold / link: the offer's token from addChannel.";
15033
+ readonly description: "fold: the offer's token from addChannel. (link, retired, took one too.)";
15034
+ };
15035
+ readonly from: {
15036
+ readonly type: "string";
15037
+ readonly format: "did";
15038
+ readonly description: "moveMethod: the account the method leaves.";
15039
+ };
15040
+ readonly fromStepUp: {
15041
+ readonly type: "ref";
15042
+ readonly ref: "lex:pub.techne.draft.identity.manageMethods#stepUp";
15043
+ readonly description: "moveMethod: what the PDS's step-up of `from` proved (fresh, one of `from`'s methods).";
15044
+ };
15045
+ readonly other: {
15046
+ readonly type: "string";
15047
+ readonly format: "did";
15048
+ readonly description: "unlink: the account that leaves `did`'s person.";
14767
15049
  };
14768
15050
  readonly primary: {
14769
15051
  readonly type: "string";
14770
15052
  readonly format: "did";
14771
- readonly description: "link: which of the two accounts is the primary.";
15053
+ readonly description: "Retired, not read: it was the retired `link` op's primary account. Linked accounts have no primary.";
14772
15054
  };
14773
15055
  readonly on: {
14774
15056
  readonly type: "boolean";
@@ -14794,15 +15076,21 @@ export declare const schemas: ({
14794
15076
  readonly status: {
14795
15077
  readonly type: "string";
14796
15078
  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.";
15079
+ 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
15080
  };
14799
15081
  readonly pending: {
14800
15082
  readonly type: "ref";
14801
15083
  readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
15084
+ 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.";
15085
+ };
15086
+ readonly due: {
15087
+ readonly type: "string";
15088
+ readonly format: "datetime";
15089
+ 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
15090
  };
14803
15091
  readonly method: {
14804
15092
  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.";
15093
+ 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
15094
  };
14807
15095
  readonly codes: {
14808
15096
  readonly type: "array";
@@ -14817,6 +15105,7 @@ export declare const schemas: ({
14817
15105
  readonly type: "ref";
14818
15106
  readonly ref: "lex:pub.techne.draft.identity.defs#methodView";
14819
15107
  };
15108
+ readonly description: "list: the account's methods (`value` on emails and phones; see defs#methodView).";
14820
15109
  };
14821
15110
  readonly hasRecovery: {
14822
15111
  readonly type: "boolean";
@@ -14827,10 +15116,11 @@ export declare const schemas: ({
14827
15116
  readonly type: "ref";
14828
15117
  readonly ref: "lex:pub.techne.draft.identity.manageMethods#notice";
14829
15118
  };
15119
+ readonly description: "Unused, kept for older clients: always empty. The platform emails every notice itself.";
14830
15120
  };
14831
15121
  readonly count: {
14832
15122
  readonly type: "integer";
14833
- readonly description: "noticesSent / dueDeletesDone: how many were confirmed.";
15123
+ readonly description: "dueDeletesDone: how many were confirmed. noticesSent (unused, kept for older clients): always 0.";
14834
15124
  };
14835
15125
  readonly signInMethods: {
14836
15126
  readonly type: "array";
@@ -14871,15 +15161,36 @@ export declare const schemas: ({
14871
15161
  readonly format: "did";
14872
15162
  readonly description: "fold: the kept account. findKey: the account the key signs in to.";
14873
15163
  };
15164
+ readonly other: {
15165
+ readonly type: "string";
15166
+ readonly format: "did";
15167
+ readonly description: "addChannel `boundElsewhere` when both accounts hold something: the account the channel signs in to (for `moveMethod`'s `from`).";
15168
+ };
15169
+ readonly otherPerson: {
15170
+ readonly type: "array";
15171
+ readonly items: {
15172
+ readonly type: "ref";
15173
+ readonly ref: "lex:pub.techne.draft.identity.defs#personMember";
15174
+ };
15175
+ 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.";
15176
+ };
14874
15177
  readonly emptied: {
14875
15178
  readonly type: "string";
14876
15179
  readonly format: "did";
14877
15180
  readonly description: "fold: the account folded in and deleted.";
14878
15181
  };
15182
+ readonly person: {
15183
+ readonly type: "array";
15184
+ readonly items: {
15185
+ readonly type: "ref";
15186
+ readonly ref: "lex:pub.techne.draft.identity.defs#personMember";
15187
+ };
15188
+ 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.";
15189
+ };
14879
15190
  readonly link: {
14880
15191
  readonly type: "ref";
14881
15192
  readonly ref: "lex:pub.techne.draft.identity.defs#linkView";
14882
- readonly description: "link: the link, from `did`'s side.";
15193
+ readonly description: "Retired: the retired `link` op's answer.";
14883
15194
  };
14884
15195
  readonly frozen: {
14885
15196
  readonly type: "boolean";
@@ -14909,37 +15220,37 @@ export declare const schemas: ({
14909
15220
  readonly description: "Try again (`redeemCode` and `newRecoveryCodes` also while the platform's identity keys are not loaded).";
14910
15221
  }, {
14911
15222
  readonly name: "NotFound";
14912
- readonly description: "No such method or pending change on the account.";
15223
+ readonly description: "No such method or pending change on the account (moveMethod: `from` has no such method).";
14913
15224
  }, {
14914
15225
  readonly name: "NotYourMethod";
14915
15226
  readonly description: "The step-up names a method that is not the account's.";
14916
15227
  }, {
14917
15228
  readonly name: "LastMethod";
14918
- readonly description: "It would leave no way to sign in.";
15229
+ readonly description: "It would leave no way to sign in (unlink: the method handed to `other` is `did`'s only one).";
14919
15230
  }, {
14920
15231
  readonly name: "RecoveryProtected";
14921
- readonly description: "Only a recovery method can do this to a recovery method.";
15232
+ readonly description: "Only a recovery method can do this to a recovery method (moveMethod: of `from`; unlink: of `did`).";
14922
15233
  }, {
14923
15234
  readonly name: "NeedsRecoveryMethod";
14924
- readonly description: "Needs a fresh step-up of a recovery method.";
15235
+ readonly description: "Needs a fresh step-up of a recovery method (unlink: or of the method handed to `other` itself).";
14925
15236
  }, {
14926
15237
  readonly name: "StepUpRequired";
14927
- readonly description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold` and `link` included).";
15238
+ readonly description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold`, `moveMethod` and `unlink` included).";
14928
15239
  }, {
14929
15240
  readonly name: "SameMethod";
14930
15241
  readonly description: "A method cannot freeze itself.";
14931
15242
  }, {
14932
15243
  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).";
15244
+ 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
15245
  }, {
14935
15246
  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.";
15247
+ readonly description: "fold: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook.";
14937
15248
  }, {
14938
15249
  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).";
15250
+ 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
15251
  }, {
14941
15252
  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).";
15253
+ 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
15254
  }, {
14944
15255
  readonly name: "ProgramRefused";
14945
15256
  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 +15260,30 @@ export declare const schemas: ({
14949
15260
  }, {
14950
15261
  readonly name: "IsRecovery";
14951
15262
  readonly description: "setPrograms on: the method is a recovery method, or its first mark is waiting (HTTP 409).";
15263
+ }, {
15264
+ readonly name: "FromStepUpRequired";
15265
+ readonly description: "moveMethod: `fromStepUp` is missing, malformed, not fresh, or names none of `from`'s methods (HTTP 403).";
15266
+ }, {
15267
+ readonly name: "Frozen";
15268
+ readonly description: "moveMethod: a method of an account of either person is frozen; nothing is scheduled (HTTP 409).";
15269
+ }, {
15270
+ readonly name: "PendingChange";
15271
+ readonly description: "moveMethod: an account of either person has a pending change, a move included; nothing is scheduled (HTTP 409).";
15272
+ }, {
15273
+ readonly name: "TooMany";
15274
+ readonly description: "moveMethod: the person would hold more than 4 accounts (HTTP 409).";
15275
+ }, {
15276
+ readonly name: "Same";
15277
+ readonly description: "moveMethod: the two accounts are already one person, or the same account (HTTP 409).";
15278
+ }, {
15279
+ readonly name: "NoKey";
15280
+ 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).";
15281
+ }, {
15282
+ readonly name: "NeedsMethod";
15283
+ 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).";
15284
+ }, {
15285
+ readonly name: "NotLinked";
15286
+ readonly description: "unlink: `other` is not in `did`'s person, or is `did` (HTTP 404).";
14952
15287
  }];
14953
15288
  };
14954
15289
  readonly stepUp: {
@@ -14987,6 +15322,7 @@ export declare const schemas: ({
14987
15322
  };
14988
15323
  readonly notice: {
14989
15324
  readonly type: "object";
15325
+ 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
15326
  readonly required: ["id", "did", "event", "to", "createdAt"];
14991
15327
  readonly properties: {
14992
15328
  readonly id: {
@@ -14998,8 +15334,8 @@ export declare const schemas: ({
14998
15334
  };
14999
15335
  readonly event: {
15000
15336
  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`).";
15337
+ readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery", "freeze", "waitDropped", "programsOn", "moveMethod", "linked", "unlinked", "moveDropped", "moveTimedOut", "moveCancelled", "akaLeft", "emailLeft"];
15338
+ 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
15339
  };
15004
15340
  readonly to: {
15005
15341
  readonly type: "ref";
@@ -15032,6 +15368,7 @@ export declare const schemas: ({
15032
15368
  };
15033
15369
  readonly noticeTo: {
15034
15370
  readonly type: "object";
15371
+ 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
15372
  readonly required: ["type", "value"];
15036
15373
  readonly properties: {
15037
15374
  readonly type: {
@@ -15479,7 +15816,7 @@ export declare const schemas: ({
15479
15816
  readonly defs: {
15480
15817
  readonly main: {
15481
15818
  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.";
15819
+ 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
15820
  readonly input: {
15484
15821
  readonly encoding: "application/json";
15485
15822
  readonly schema: {
@@ -15520,7 +15857,7 @@ export declare const schemas: ({
15520
15857
  readonly defs: {
15521
15858
  readonly main: {
15522
15859
  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.";
15860
+ 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
15861
  readonly input: {
15525
15862
  readonly encoding: "application/json";
15526
15863
  readonly schema: {
@@ -15569,6 +15906,86 @@ export declare const schemas: ({
15569
15906
  }];
15570
15907
  };
15571
15908
  };
15909
+ } | {
15910
+ readonly lexicon: 1;
15911
+ readonly id: "pub.techne.draft.identity.writeAsCollective";
15912
+ readonly defs: {
15913
+ readonly main: {
15914
+ readonly type: "procedure";
15915
+ readonly description: "Write as a collective: a batch of creates, updates and deletes applied atomically to the repo of a collective account whose credential this service holds, written with that credential. The same input and output as com.atproto.repo.applyWrites, with `repo` the collective's DID; each write is a com.atproto.repo.applyWrites#create, #update or #delete. The service checks the caller's role in the collective first: whoever manages the collective's own member space (`pub.techne.draft.space.collective.member/self`) writes as it; a member of a circle who only writes there deletes its own membership; a new collective's creator writes its first records; a collective that lets every signed-in account post a type takes one such create. A collective that keeps its memberships and descriptor in its member space (a circle) has them created and updated there with pub.techne.draft.permissioned.putRecords, never here (a delete is applied here), and a `block` is never created or updated as a collective. An app reaches it through the caller's own PDS (`atproto-proxy: <service DID>#atproto_appview`), which forwards it with the caller's service-auth token; the app's OAuth scope needs `rpc:pub.techne.draft.identity.writeAsCollective?aud=<service DID>%23atproto_appview`. An agent's token from this service, or a session with it, calls it directly. Its writes are public records in the collective's repo, and the caller's authority is its role there, so the app's `space:` scopes need not reach them (the `rpc:` scope above is enough). It places nothing in a space: a write that names a `space` is refused, and pub.techne.draft.permissioned.putRecords writes into a collective's space. Your own repo is not written here: write it at your PDS with com.atproto.repo.applyWrites. One call spends one of the caller's writes.";
15916
+ readonly input: {
15917
+ readonly encoding: "application/json";
15918
+ readonly schema: {
15919
+ readonly type: "object";
15920
+ readonly required: ["repo", "writes"];
15921
+ readonly properties: {
15922
+ readonly repo: {
15923
+ readonly type: "string";
15924
+ readonly format: "did";
15925
+ readonly description: "The collective's DID. Not the caller's own.";
15926
+ };
15927
+ readonly validate: {
15928
+ readonly type: "boolean";
15929
+ readonly description: "As com.atproto.repo.applyWrites: passed to the collective's PDS.";
15930
+ };
15931
+ readonly writes: {
15932
+ readonly type: "array";
15933
+ readonly items: {
15934
+ readonly type: "union";
15935
+ readonly refs: ["lex:com.atproto.repo.applyWrites#create", "lex:com.atproto.repo.applyWrites#update", "lex:com.atproto.repo.applyWrites#delete"];
15936
+ readonly closed: true;
15937
+ };
15938
+ };
15939
+ readonly swapCommit: {
15940
+ readonly type: "string";
15941
+ readonly format: "cid";
15942
+ readonly description: "As com.atproto.repo.applyWrites: the whole batch fails unless the collective's repo is at this commit.";
15943
+ };
15944
+ };
15945
+ };
15946
+ };
15947
+ readonly output: {
15948
+ readonly encoding: "application/json";
15949
+ readonly schema: {
15950
+ readonly type: "object";
15951
+ readonly required: [];
15952
+ readonly properties: {
15953
+ readonly commit: {
15954
+ readonly type: "ref";
15955
+ readonly ref: "lex:com.atproto.repo.defs#commitMeta";
15956
+ };
15957
+ readonly results: {
15958
+ readonly type: "array";
15959
+ readonly items: {
15960
+ readonly type: "union";
15961
+ readonly refs: ["lex:com.atproto.repo.applyWrites#createResult", "lex:com.atproto.repo.applyWrites#updateResult", "lex:com.atproto.repo.applyWrites#deleteResult"];
15962
+ readonly closed: true;
15963
+ };
15964
+ };
15965
+ };
15966
+ };
15967
+ };
15968
+ readonly errors: [{
15969
+ readonly name: "InvalidRequest";
15970
+ readonly description: "HTTP 400 (or the body extractor's 413, 415 or 422 for a body that is not JSON). Malformed input; `repo` is the caller's own DID (write your own repo at your PDS); a write names a `space` the app's `space:` scopes cover, or the token carries none (write it there with pub.techne.draft.permissioned.putRecords); or the collective's PDS refused the writes (its reason in the message, e.g. InvalidSwap when `swapCommit` did not match).";
15971
+ }, {
15972
+ readonly name: "Forbidden";
15973
+ readonly description: "HTTP 403. The caller may not write as `repo`, or not this write: a record above its own role, a `block`, or a membership or descriptor the collective keeps in its member space.";
15974
+ }, {
15975
+ readonly name: "NotAuthorized";
15976
+ readonly description: "HTTP 403. A write names a `space` the app's `space:` scopes do not cover writing to.";
15977
+ }, {
15978
+ readonly name: "LastManager";
15979
+ readonly description: "HTTP 409. The writes would leave a circle's members with no manager.";
15980
+ }, {
15981
+ readonly name: "PayloadTooLarge";
15982
+ readonly description: "HTTP 413, from the collective's PDS.";
15983
+ }, {
15984
+ readonly name: "RateLimitExceeded";
15985
+ readonly description: "HTTP 429. Too many writes from this DID, or the collective's PDS is rate-limiting.";
15986
+ }];
15987
+ };
15988
+ };
15572
15989
  } | {
15573
15990
  readonly lexicon: 1;
15574
15991
  readonly id: "pub.techne.draft.interest";
@@ -15840,7 +16257,7 @@ export declare const schemas: ({
15840
16257
  readonly main: {
15841
16258
  readonly type: "record";
15842
16259
  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.";
16260
+ 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
16261
  readonly record: {
15845
16262
  readonly type: "object";
15846
16263
  readonly required: ["subject", "createdAt"];
@@ -16040,11 +16457,11 @@ export declare const schemas: ({
16040
16457
  } | {
16041
16458
  readonly lexicon: 1;
16042
16459
  readonly id: "pub.techne.draft.permissioned.deleteRecord";
16043
- readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by the app its key names or a caller whose `space:` scopes cover a delete there; any other caller is refused 403 Forbidden and nothing is deleted, the record's own writer included when the record counted in no space, and even when nothing is at the key. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. Draft tier.";
16460
+ readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by a caller whose `space:` scopes cover a delete there or whose token carries no `space:` scopes; any other caller is refused 403 Forbidden and nothing is deleted, even when nothing is at the key. Draft tier.";
16044
16461
  readonly defs: {
16045
16462
  readonly main: {
16046
16463
  readonly type: "procedure";
16047
- readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only by the app its key names or under `space:` scopes covering it: anyone else, its writer included, is 403 Forbidden. Draft tier.";
16464
+ readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only under `space:` scopes covering it or with no `space:` scopes: anyone else is 403 Forbidden. Draft tier.";
16048
16465
  readonly input: {
16049
16466
  readonly encoding: "application/json";
16050
16467
  readonly schema: {
@@ -16096,7 +16513,7 @@ export declare const schemas: ({
16096
16513
  readonly description: "HTTP 400. Malformed parameters. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
16097
16514
  }, {
16098
16515
  readonly name: "Forbidden";
16099
- readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a delete there. Nothing is deleted.";
16516
+ readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) under `space:` scopes that do not cover a delete there. Nothing is deleted.";
16100
16517
  }, {
16101
16518
  readonly name: "LastManager";
16102
16519
  readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
@@ -16446,11 +16863,11 @@ export declare const schemas: ({
16446
16863
  } | {
16447
16864
  readonly lexicon: 1;
16448
16865
  readonly id: "pub.techne.draft.permissioned.putRecord";
16449
- readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused for its space. Replacing a record already written for an app's space (a pub.techne.draft.space.private space) is: only the app its key names, or a caller whose `space:` scopes cover a put there, may replace it; any other caller is refused 403 Forbidden and nothing is written, the record's own writer included when the record counted in no space. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space counts there only when written by the app its key names (the managing app) or by a caller whose `space:` scopes cover that space; written by anyone else it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; write it again to ask again (for an app's space only the callers that may replace a record there can). A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
16866
+ readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused by its space's policy (only by the token's `space:` scopes). Replacing a record already written for an app's space (a pub.techne.draft.space.private space): only a caller whose `space:` scopes cover a put there, or whose token carries no `space:` scopes, may replace it; any other caller is refused 403 Forbidden and nothing is written. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space is a space like any other: a write there counts when its owner writes it under `space:` scopes covering it or with no `space:` scopes (which app is calling is not asked); a write under scopes that do not cover it is refused like any write out of scope. Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it (a record written for an app's space and not admitted there is read by no one); write it again to ask again (for an app's space only the callers that may replace a record there can). A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
16450
16867
  readonly defs: {
16451
16868
  readonly main: {
16452
16869
  readonly type: "procedure";
16453
- readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names (or under `space:` scopes covering it); else it counts in no space. Replacing a record already written there needs that app or those scopes: anyone else, its writer included, is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only for that app or under covering scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.";
16870
+ readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused by its space's policy (only by your token's `space:` scopes). A pub.techne.draft.space.private record counts there when written under `space:` scopes covering it or with no `space:` scopes; which app is calling is not asked. Replacing a record already written there needs `space:` scopes covering it, or none; anyone else is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only under covering scopes or with no `space:` scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.";
16454
16871
  readonly input: {
16455
16872
  readonly encoding: "application/json";
16456
16873
  readonly schema: {
@@ -16520,7 +16937,7 @@ export declare const schemas: ({
16520
16937
  readonly space: {
16521
16938
  readonly type: "string";
16522
16939
  readonly format: "at-uri";
16523
- readonly description: "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer, or a space.private space written by an app other than the one its key names).";
16940
+ readonly description: "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer).";
16524
16941
  };
16525
16942
  };
16526
16943
  };
@@ -16530,7 +16947,7 @@ export declare const schemas: ({
16530
16947
  readonly description: "HTTP 400. Malformed input (no `space`: name one, since public records go through com.atproto.repo.putRecord; a bad DID, NSID, record key or space address, a record whose $type is not collection, or one with no DAG-CBOR form), or a body that fails its collection's published lexicon. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
16531
16948
  }, {
16532
16949
  readonly name: "Forbidden";
16533
- readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a put there. A first write is never refused for its space. Nothing is written.";
16950
+ readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) under `space:` scopes that do not cover a put there. A first write is never refused by its space's policy (only by the token's `space:` scopes). Nothing is written.";
16534
16951
  }, {
16535
16952
  readonly name: "LastManager";
16536
16953
  readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
@@ -16561,11 +16978,11 @@ export declare const schemas: ({
16561
16978
  } | {
16562
16979
  readonly lexicon: 1;
16563
16980
  readonly id: "pub.techne.draft.permissioned.putRecords";
16564
- readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only for its app or under `space:` scopes covering it; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) by a caller that is neither the app its key names nor holds `space:` scopes covering a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused for its space. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
16981
+ readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only under `space:` scopes covering it or with no `space:` scopes; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) under `space:` scopes that do not cover a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused by its space's policy (only by the token's `space:` scopes). `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
16565
16982
  readonly defs: {
16566
16983
  readonly main: {
16567
16984
  readonly type: "procedure";
16568
- readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
16985
+ readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only under covering scopes or with no `space:` scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused by its space's policy (only by the token's `space:` scopes), but replacing a record already written for an app's space needs `space:` scopes covering it or no `space:` scopes, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
16569
16986
  readonly input: {
16570
16987
  readonly encoding: "application/json";
16571
16988
  readonly schema: {
@@ -16699,7 +17116,7 @@ export declare const schemas: ({
16699
17116
  readonly properties: {
16700
17117
  readonly error: {
16701
17118
  readonly type: "string";
16702
- readonly description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord), RateLimitExceeded (a contact write that binds a number to an account found the caller's phone lookups spent; retry it in a minute) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space and the caller is neither the app its key names nor holds `space:` scopes covering it; see putRecord).";
17119
+ readonly description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord), RateLimitExceeded (a contact write that binds a number to an account found the caller's phone lookups spent; retry it in a minute) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space under `space:` scopes that do not cover it; see putRecord).";
16703
17120
  readonly knownValues: ["InvalidRequest", "InvalidSwap", "Conflict", "IdentityConflict", "DuplicatePhone", "RateLimitExceeded", "Forbidden"];
16704
17121
  };
16705
17122
  readonly message: {
@@ -16793,7 +17210,7 @@ export declare const schemas: ({
16793
17210
  readonly main: {
16794
17211
  readonly type: "record";
16795
17212
  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.";
17213
+ 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
17214
  readonly record: {
16798
17215
  readonly type: "object";
16799
17216
  readonly required: ["subject", "createdAt"];
@@ -17162,7 +17579,7 @@ export declare const schemas: ({
17162
17579
  readonly main: {
17163
17580
  readonly type: "record";
17164
17581
  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.";
17582
+ 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
17583
  readonly record: {
17167
17584
  readonly type: "object";
17168
17585
  readonly required: ["subject", "sources", "readiness", "createdAt"];
@@ -17885,6 +18302,32 @@ export declare const schemas: ({
17885
18302
  readonly type: "string";
17886
18303
  readonly format: "handle";
17887
18304
  };
18305
+ readonly linked: {
18306
+ readonly type: "array";
18307
+ readonly items: {
18308
+ readonly type: "ref";
18309
+ readonly ref: "lex:pub.techne.draft.query.getRecords#linkedHandle";
18310
+ };
18311
+ 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.";
18312
+ };
18313
+ };
18314
+ };
18315
+ readonly linkedHandle: {
18316
+ readonly type: "object";
18317
+ readonly required: ["did"];
18318
+ readonly properties: {
18319
+ readonly did: {
18320
+ readonly type: "string";
18321
+ readonly format: "did";
18322
+ };
18323
+ readonly handle: {
18324
+ readonly type: "string";
18325
+ readonly format: "handle";
18326
+ };
18327
+ readonly displayName: {
18328
+ readonly type: "string";
18329
+ readonly description: "The linked account's public profile name, when it has one.";
18330
+ };
17888
18331
  };
17889
18332
  };
17890
18333
  readonly resolved: {
@@ -18281,7 +18724,7 @@ export declare const schemas: ({
18281
18724
  readonly main: {
18282
18725
  readonly type: "record";
18283
18726
  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.";
18727
+ 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
18728
  readonly record: {
18286
18729
  readonly type: "object";
18287
18730
  readonly required: ["subject", "createdAt"];
@@ -19173,7 +19616,7 @@ export declare const schemas: ({
19173
19616
  readonly main: {
19174
19617
  readonly type: "record";
19175
19618
  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.";
19619
+ 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
19620
  readonly record: {
19178
19621
  readonly type: "object";
19179
19622
  readonly required: ["subject", "createdAt"];
@@ -19235,7 +19678,7 @@ export declare const schemas: ({
19235
19678
  readonly main: {
19236
19679
  readonly type: "record";
19237
19680
  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.";
19681
+ 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
19682
  readonly record: {
19240
19683
  readonly type: "object";
19241
19684
  readonly required: ["subject", "other", "createdAt"];
@@ -19389,7 +19832,7 @@ export declare const schemas: ({
19389
19832
  readonly main: {
19390
19833
  readonly type: "record";
19391
19834
  readonly key: "any";
19392
- readonly description: "Publishers use sidecar_rkey(subject AT-URI), one per record. `any` permits that convention but cannot enforce it.";
19835
+ 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
19836
  readonly record: {
19394
19837
  readonly type: "object";
19395
19838
  readonly required: ["subject", "sourceStatus", "lastSeenAt", "createdAt"];
@@ -19489,7 +19932,7 @@ export declare const schemas: ({
19489
19932
  };
19490
19933
  };
19491
19934
  };
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.";
19935
+ 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
19936
  };
19494
19937
  };
19495
19938
  } | {
@@ -19582,7 +20025,7 @@ export declare const schemas: ({
19582
20025
  readonly main: {
19583
20026
  readonly type: "record";
19584
20027
  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.";
20028
+ 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
20029
  readonly record: {
19587
20030
  readonly type: "object";
19588
20031
  readonly required: ["subject", "text", "createdAt"];
@@ -19689,7 +20132,7 @@ export declare const schemas: ({
19689
20132
  readonly main: {
19690
20133
  readonly type: "record";
19691
20134
  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.";
20135
+ 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
20136
  readonly record: {
19694
20137
  readonly type: "object";
19695
20138
  readonly required: ["subject", "values", "createdAt"];
@@ -19726,7 +20169,7 @@ export declare const schemas: ({
19726
20169
  readonly main: {
19727
20170
  readonly type: "record";
19728
20171
  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.";
20172
+ 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
20173
  readonly record: {
19731
20174
  readonly type: "object";
19732
20175
  readonly required: ["subject", "createdAt"];
@@ -19797,7 +20240,7 @@ export declare const schemas: ({
19797
20240
  readonly defs: {
19798
20241
  readonly main: {
19799
20242
  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.";
20243
+ 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
20244
  readonly input: {
19802
20245
  readonly encoding: "application/json";
19803
20246
  readonly schema: {
@@ -19845,7 +20288,7 @@ export declare const schemas: ({
19845
20288
  readonly description: "Malformed input, or a space type that takes no app approvals yet.";
19846
20289
  }, {
19847
20290
  readonly name: "NotAuthorized";
19848
- readonly description: "The caller does not pass the space type's manage leg.";
20291
+ 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
20292
  }];
19850
20293
  };
19851
20294
  };
@@ -20062,7 +20505,7 @@ export declare const schemas: ({
20062
20505
  readonly defs: {
20063
20506
  readonly main: {
20064
20507
  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.";
20508
+ 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
20509
  readonly parameters: {
20067
20510
  readonly type: "params";
20068
20511
  readonly properties: {
@@ -20304,7 +20747,7 @@ export declare const schemas: ({
20304
20747
  readonly defs: {
20305
20748
  readonly main: {
20306
20749
  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.";
20750
+ 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
20751
  readonly parameters: {
20309
20752
  readonly type: "params";
20310
20753
  readonly properties: {
@@ -21135,6 +21578,7 @@ export declare const ids: {
21135
21578
  readonly PubTechneDraftIdentityRevokeLinkToken: "pub.techne.draft.identity.revokeLinkToken";
21136
21579
  readonly PubTechneDraftIdentityUnlinkAccount: "pub.techne.draft.identity.unlinkAccount";
21137
21580
  readonly PubTechneDraftIdentityUnlinkMethod: "pub.techne.draft.identity.unlinkMethod";
21581
+ readonly PubTechneDraftIdentityWriteAsCollective: "pub.techne.draft.identity.writeAsCollective";
21138
21582
  readonly PubTechneDraftInterest: "pub.techne.draft.interest";
21139
21583
  readonly PubTechneDraftIntroProposal: "pub.techne.draft.introProposal";
21140
21584
  readonly PubTechneDraftInvite: "pub.techne.draft.invite";