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
@@ -1672,7 +1672,7 @@ export const catalog = {
1672
1672
  "homes": [
1673
1673
  {
1674
1674
  "space": "pub.techne.draft.space.personal",
1675
- "unbuilt": false
1675
+ "unbuilt": true
1676
1676
  }
1677
1677
  ]
1678
1678
  },
@@ -1807,7 +1807,7 @@ export const catalog = {
1807
1807
  "group": "pub.techne",
1808
1808
  "kind": "record",
1809
1809
  "key": "any",
1810
- "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.",
1810
+ "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.",
1811
1811
  "fields": [
1812
1812
  {
1813
1813
  "name": "space",
@@ -1836,7 +1836,7 @@ export const catalog = {
1836
1836
  "doc": ({
1837
1837
  "lexicon": 1,
1838
1838
  "id": "pub.techne.draft.appAccess",
1839
- "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.",
1839
+ "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.",
1840
1840
  "defs": {
1841
1841
  "main": {
1842
1842
  "type": "record",
@@ -1909,7 +1909,7 @@ export const catalog = {
1909
1909
  "group": "pub.techne",
1910
1910
  "kind": "record",
1911
1911
  "key": "tid",
1912
- "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.",
1912
+ "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.",
1913
1913
  "fields": [
1914
1914
  {
1915
1915
  "name": "space",
@@ -1932,7 +1932,7 @@ export const catalog = {
1932
1932
  "doc": ({
1933
1933
  "lexicon": 1,
1934
1934
  "id": "pub.techne.draft.appAccessRequest",
1935
- "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.",
1935
+ "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.",
1936
1936
  "defs": {
1937
1937
  "main": {
1938
1938
  "type": "record",
@@ -2156,7 +2156,7 @@ export const catalog = {
2156
2156
  "group": "pub.techne",
2157
2157
  "kind": "record",
2158
2158
  "key": "any",
2159
- "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.",
2159
+ "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.",
2160
2160
  "fields": [
2161
2161
  {
2162
2162
  "name": "subject",
@@ -2200,7 +2200,7 @@ export const catalog = {
2200
2200
  "main": {
2201
2201
  "type": "record",
2202
2202
  "key": "any",
2203
- "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.",
2203
+ "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.",
2204
2204
  "record": {
2205
2205
  "type": "object",
2206
2206
  "required": [
@@ -3715,7 +3715,7 @@ export const catalog = {
3715
3715
  "group": "pub.techne",
3716
3716
  "kind": "record",
3717
3717
  "key": "any",
3718
- "description": "Publishers use sidecar_rkey(subject AT-URI), one per place per writer. `any` permits that convention but cannot enforce it.",
3718
+ "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.",
3719
3719
  "fields": [
3720
3720
  {
3721
3721
  "name": "subject",
@@ -3749,7 +3749,7 @@ export const catalog = {
3749
3749
  "main": {
3750
3750
  "type": "record",
3751
3751
  "key": "any",
3752
- "description": "Publishers use sidecar_rkey(subject AT-URI), one per place per writer. `any` permits that convention but cannot enforce it.",
3752
+ "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.",
3753
3753
  "record": {
3754
3754
  "type": "object",
3755
3755
  "required": [
@@ -4079,7 +4079,7 @@ export const catalog = {
4079
4079
  "group": "pub.techne",
4080
4080
  "kind": "record",
4081
4081
  "key": "any",
4082
- "description": "Publishers use sidecar_rkey(claim AT-URI), one derivation per claim per writer. `any` permits that convention but cannot enforce it.",
4082
+ "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.",
4083
4083
  "fields": [
4084
4084
  {
4085
4085
  "name": "subject",
@@ -4181,7 +4181,7 @@ export const catalog = {
4181
4181
  "main": {
4182
4182
  "type": "record",
4183
4183
  "key": "any",
4184
- "description": "Publishers use sidecar_rkey(claim AT-URI), one derivation per claim per writer. `any` permits that convention but cannot enforce it.",
4184
+ "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.",
4185
4185
  "record": {
4186
4186
  "type": "object",
4187
4187
  "required": [
@@ -4385,7 +4385,7 @@ export const catalog = {
4385
4385
  "group": "pub.techne",
4386
4386
  "kind": "record",
4387
4387
  "key": "any",
4388
- "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.",
4388
+ "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.",
4389
4389
  "fields": [
4390
4390
  {
4391
4391
  "name": "subject",
@@ -4414,7 +4414,7 @@ export const catalog = {
4414
4414
  "main": {
4415
4415
  "type": "record",
4416
4416
  "key": "any",
4417
- "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.",
4417
+ "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.",
4418
4418
  "record": {
4419
4419
  "type": "object",
4420
4420
  "required": [
@@ -4457,7 +4457,7 @@ export const catalog = {
4457
4457
  "group": "pub.techne",
4458
4458
  "kind": "record",
4459
4459
  "key": "any",
4460
- "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.",
4460
+ "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.",
4461
4461
  "fields": [
4462
4462
  {
4463
4463
  "name": "subject",
@@ -4485,7 +4485,7 @@ export const catalog = {
4485
4485
  "main": {
4486
4486
  "type": "record",
4487
4487
  "key": "any",
4488
- "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.",
4488
+ "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.",
4489
4489
  "record": {
4490
4490
  "type": "object",
4491
4491
  "required": [
@@ -5117,7 +5117,7 @@ export const catalog = {
5117
5117
  "group": "pub.techne",
5118
5118
  "kind": "record",
5119
5119
  "key": "any",
5120
- "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.",
5120
+ "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.",
5121
5121
  "fields": [
5122
5122
  {
5123
5123
  "name": "subject",
@@ -5152,7 +5152,7 @@ export const catalog = {
5152
5152
  "main": {
5153
5153
  "type": "record",
5154
5154
  "key": "any",
5155
- "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.",
5155
+ "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.",
5156
5156
  "record": {
5157
5157
  "type": "object",
5158
5158
  "required": [
@@ -5199,7 +5199,7 @@ export const catalog = {
5199
5199
  "group": "pub.techne",
5200
5200
  "kind": "record",
5201
5201
  "key": "any",
5202
- "description": "Publishers use sidecar_rkey(subject AT-URI), one per event per writer. `any` permits that convention but cannot enforce it.",
5202
+ "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.",
5203
5203
  "fields": [
5204
5204
  {
5205
5205
  "name": "subject",
@@ -5233,7 +5233,7 @@ export const catalog = {
5233
5233
  "main": {
5234
5234
  "type": "record",
5235
5235
  "key": "any",
5236
- "description": "Publishers use sidecar_rkey(subject AT-URI), one per event per writer. `any` permits that convention but cannot enforce it.",
5236
+ "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.",
5237
5237
  "record": {
5238
5238
  "type": "object",
5239
5239
  "required": [
@@ -5431,6 +5431,10 @@ export const catalog = {
5431
5431
  "newAccount": {
5432
5432
  "type": "boolean",
5433
5433
  "description": "The PDS created the account in this sign-in."
5434
+ },
5435
+ "termsShown": {
5436
+ "type": "boolean",
5437
+ "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)."
5434
5438
  }
5435
5439
  }
5436
5440
  }
@@ -5889,7 +5893,7 @@ export const catalog = {
5889
5893
  },
5890
5894
  "methodView": {
5891
5895
  "type": "object",
5892
- "description": "One sign-in method of the caller's account, masked.",
5896
+ "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.",
5893
5897
  "required": [
5894
5898
  "bid",
5895
5899
  "type",
@@ -5917,6 +5921,11 @@ export const catalog = {
5917
5921
  "maxLength": 320,
5918
5922
  "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)`."
5919
5923
  },
5924
+ "value": {
5925
+ "type": "string",
5926
+ "maxLength": 320,
5927
+ "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."
5928
+ },
5920
5929
  "boundAt": {
5921
5930
  "type": "string",
5922
5931
  "format": "datetime"
@@ -5938,7 +5947,7 @@ export const catalog = {
5938
5947
  },
5939
5948
  "pendingChange": {
5940
5949
  "type": "object",
5941
- "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.",
5950
+ "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.",
5942
5951
  "required": [
5943
5952
  "id",
5944
5953
  "kind",
@@ -5955,13 +5964,19 @@ export const catalog = {
5955
5964
  "knownValues": [
5956
5965
  "removeMethod",
5957
5966
  "deleteAccount",
5958
- "markRecovery"
5967
+ "markRecovery",
5968
+ "moveMethod"
5959
5969
  ]
5960
5970
  },
5961
5971
  "method": {
5962
5972
  "type": "string",
5963
5973
  "maxLength": 64,
5964
- "description": "The method it removes or marks."
5974
+ "description": "The method it removes, marks or moves (for an incoming move, the other account's method)."
5975
+ },
5976
+ "other": {
5977
+ "type": "string",
5978
+ "format": "did",
5979
+ "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."
5965
5980
  },
5966
5981
  "createdAt": {
5967
5982
  "type": "string",
@@ -5975,10 +5990,9 @@ export const catalog = {
5975
5990
  },
5976
5991
  "linkView": {
5977
5992
  "type": "object",
5978
- "description": "An alias link between the caller's account and another.",
5993
+ "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.",
5979
5994
  "required": [
5980
5995
  "did",
5981
- "primary",
5982
5996
  "mutual"
5983
5997
  ],
5984
5998
  "properties": {
@@ -5991,13 +6005,37 @@ export const catalog = {
5991
6005
  "type": "string",
5992
6006
  "format": "handle"
5993
6007
  },
5994
- "primary": {
6008
+ "mutual": {
6009
+ "type": "boolean",
6010
+ "description": "Retired: a link is always mutual, and identity.listMethods sends `true` (it was: both accounts hold a matching pub.techne.draft.accountLink)."
6011
+ },
6012
+ "since": {
6013
+ "type": "string",
6014
+ "format": "datetime",
6015
+ "description": "When the two accounts became one person."
6016
+ }
6017
+ }
6018
+ },
6019
+ "personMember": {
6020
+ "type": "object",
6021
+ "description": "Another account of an account's person (identity.manageMethods `list` and moveMethod).",
6022
+ "required": [
6023
+ "did"
6024
+ ],
6025
+ "properties": {
6026
+ "did": {
5995
6027
  "type": "string",
5996
6028
  "format": "did"
5997
6029
  },
5998
- "mutual": {
5999
- "type": "boolean",
6000
- "description": "Both accounts hold a matching pub.techne.draft.accountLink; a link counts only when true."
6030
+ "since": {
6031
+ "type": "string",
6032
+ "format": "datetime",
6033
+ "description": "When it joined the person. Sent by `list`."
6034
+ },
6035
+ "handle": {
6036
+ "type": "string",
6037
+ "format": "handle",
6038
+ "description": "Its handle, when the platform knows one. Sent in addChannel's `otherPerson`."
6001
6039
  }
6002
6040
  }
6003
6041
  },
@@ -6102,14 +6140,14 @@ export const catalog = {
6102
6140
  "name": "draft.identity.finishAddMethod",
6103
6141
  "group": "pub.techne",
6104
6142
  "kind": "procedure",
6105
- "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.",
6143
+ "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.",
6106
6144
  "doc": ({
6107
6145
  "lexicon": 1,
6108
6146
  "id": "pub.techne.draft.identity.finishAddMethod",
6109
6147
  "defs": {
6110
6148
  "main": {
6111
6149
  "type": "procedure",
6112
- "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.",
6150
+ "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.",
6113
6151
  "input": {
6114
6152
  "encoding": "application/json",
6115
6153
  "schema": {
@@ -6149,11 +6187,17 @@ export const catalog = {
6149
6187
  },
6150
6188
  "method": {
6151
6189
  "type": "ref",
6152
- "ref": "pub.techne.draft.identity.defs#methodView"
6190
+ "ref": "pub.techne.draft.identity.defs#methodView",
6191
+ "description": "`added` / `alreadyYours`: the method. Absent on `boundElsewhere`: the other account's method is named only to the identity PDS (identity.manageMethods addChannel)."
6153
6192
  },
6154
6193
  "offer": {
6155
6194
  "type": "ref",
6156
6195
  "ref": "#offer"
6196
+ },
6197
+ "other": {
6198
+ "type": "string",
6199
+ "format": "did",
6200
+ "description": "`boundElsewhere` when both accounts hold something: the account the method signs in to (no `offer`)."
6157
6201
  }
6158
6202
  }
6159
6203
  }
@@ -6177,7 +6221,7 @@ export const catalog = {
6177
6221
  },
6178
6222
  {
6179
6223
  "name": "ProtectedAccount",
6180
- "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."
6224
+ "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`)."
6181
6225
  },
6182
6226
  {
6183
6227
  "name": "UpstreamFailure",
@@ -6199,7 +6243,8 @@ export const catalog = {
6199
6243
  "knownValues": [
6200
6244
  "fold",
6201
6245
  "link"
6202
- ]
6246
+ ],
6247
+ "description": "`fold`. (`link` is retired and no longer offered.)"
6203
6248
  },
6204
6249
  "token": {
6205
6250
  "type": "string",
@@ -6412,14 +6457,14 @@ export const catalog = {
6412
6457
  "name": "draft.identity.link",
6413
6458
  "group": "pub.techne",
6414
6459
  "kind": "procedure",
6415
- "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.",
6460
+ "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.",
6416
6461
  "doc": ({
6417
6462
  "lexicon": 1,
6418
6463
  "id": "pub.techne.draft.identity.link",
6419
6464
  "defs": {
6420
6465
  "main": {
6421
6466
  "type": "procedure",
6422
- "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.",
6467
+ "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.",
6423
6468
  "input": {
6424
6469
  "encoding": "application/json",
6425
6470
  "schema": {
@@ -6471,7 +6516,7 @@ export const catalog = {
6471
6516
  },
6472
6517
  {
6473
6518
  "name": "InvalidRequest",
6474
- "description": "`primary` names neither account, or the other account's keys are not held here (sign in to it and link from there)."
6519
+ "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)."
6475
6520
  }
6476
6521
  ]
6477
6522
  }
@@ -6827,14 +6872,14 @@ export const catalog = {
6827
6872
  "name": "draft.identity.listMethods",
6828
6873
  "group": "pub.techne",
6829
6874
  "kind": "query",
6830
- "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.",
6875
+ "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.",
6831
6876
  "doc": ({
6832
6877
  "lexicon": 1,
6833
6878
  "id": "pub.techne.draft.identity.listMethods",
6834
6879
  "defs": {
6835
6880
  "main": {
6836
6881
  "type": "query",
6837
- "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.",
6882
+ "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.",
6838
6883
  "parameters": {
6839
6884
  "type": "params",
6840
6885
  "properties": {
@@ -6862,6 +6907,7 @@ export const catalog = {
6862
6907
  },
6863
6908
  "links": {
6864
6909
  "type": "array",
6910
+ "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.",
6865
6911
  "items": {
6866
6912
  "type": "ref",
6867
6913
  "ref": "pub.techne.draft.identity.defs#linkView"
@@ -6869,7 +6915,7 @@ export const catalog = {
6869
6915
  },
6870
6916
  "pending": {
6871
6917
  "type": "array",
6872
- "description": "The account's pending changes, soonest first (the account page shows them at the top, with Cancel).",
6918
+ "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.",
6873
6919
  "items": {
6874
6920
  "type": "ref",
6875
6921
  "ref": "pub.techne.draft.identity.defs#pendingChange"
@@ -7009,14 +7055,14 @@ export const catalog = {
7009
7055
  "name": "draft.identity.manageMethods",
7010
7056
  "group": "pub.techne",
7011
7057
  "kind": "procedure",
7012
- "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.",
7058
+ "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.",
7013
7059
  "doc": ({
7014
7060
  "lexicon": 1,
7015
7061
  "id": "pub.techne.draft.identity.manageMethods",
7016
7062
  "defs": {
7017
7063
  "main": {
7018
7064
  "type": "procedure",
7019
- "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.",
7065
+ "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.",
7020
7066
  "input": {
7021
7067
  "encoding": "application/json",
7022
7068
  "schema": {
@@ -7057,8 +7103,11 @@ export const catalog = {
7057
7103
  "addChannel",
7058
7104
  "fold",
7059
7105
  "link",
7106
+ "moveMethod",
7107
+ "unlink",
7060
7108
  "operator"
7061
- ]
7109
+ ],
7110
+ "description": "The op. `link` is retired: it answers 400 InvalidRequest; `moveMethod` links two accounts now."
7062
7111
  },
7063
7112
  "did": {
7064
7113
  "type": "string",
@@ -7072,7 +7121,7 @@ export const catalog = {
7072
7121
  "method": {
7073
7122
  "type": "string",
7074
7123
  "maxLength": 64,
7075
- "description": "The method acted on (its `id` in `list` or `signInMethods`)."
7124
+ "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."
7076
7125
  },
7077
7126
  "pending": {
7078
7127
  "type": "string",
@@ -7098,7 +7147,7 @@ export const catalog = {
7098
7147
  "items": {
7099
7148
  "type": "integer"
7100
7149
  },
7101
- "description": "Notice ids, for `noticesSent`."
7150
+ "description": "Unused, kept for older clients: notice ids for `noticesSent`, which confirms none."
7102
7151
  },
7103
7152
  "emails": {
7104
7153
  "type": "array",
@@ -7135,12 +7184,27 @@ export const catalog = {
7135
7184
  "token": {
7136
7185
  "type": "string",
7137
7186
  "maxLength": 128,
7138
- "description": "fold / link: the offer's token from addChannel."
7187
+ "description": "fold: the offer's token from addChannel. (link, retired, took one too.)"
7188
+ },
7189
+ "from": {
7190
+ "type": "string",
7191
+ "format": "did",
7192
+ "description": "moveMethod: the account the method leaves."
7193
+ },
7194
+ "fromStepUp": {
7195
+ "type": "ref",
7196
+ "ref": "#stepUp",
7197
+ "description": "moveMethod: what the PDS's step-up of `from` proved (fresh, one of `from`'s methods)."
7198
+ },
7199
+ "other": {
7200
+ "type": "string",
7201
+ "format": "did",
7202
+ "description": "unlink: the account that leaves `did`'s person."
7139
7203
  },
7140
7204
  "primary": {
7141
7205
  "type": "string",
7142
7206
  "format": "did",
7143
- "description": "link: which of the two accounts is the primary."
7207
+ "description": "Retired, not read: it was the retired `link` op's primary account. Linked accounts have no primary."
7144
7208
  },
7145
7209
  "on": {
7146
7210
  "type": "boolean",
@@ -7185,15 +7249,21 @@ export const catalog = {
7185
7249
  "linked",
7186
7250
  "none"
7187
7251
  ],
7188
- "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."
7252
+ "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."
7189
7253
  },
7190
7254
  "pending": {
7191
7255
  "type": "ref",
7192
- "ref": "pub.techne.draft.identity.defs#pendingChange"
7256
+ "ref": "pub.techne.draft.identity.defs#pendingChange",
7257
+ "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."
7258
+ },
7259
+ "due": {
7260
+ "type": "string",
7261
+ "format": "datetime",
7262
+ "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."
7193
7263
  },
7194
7264
  "method": {
7195
7265
  "type": "string",
7196
- "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."
7266
+ "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)."
7197
7267
  },
7198
7268
  "codes": {
7199
7269
  "type": "array",
@@ -7207,7 +7277,8 @@ export const catalog = {
7207
7277
  "items": {
7208
7278
  "type": "ref",
7209
7279
  "ref": "pub.techne.draft.identity.defs#methodView"
7210
- }
7280
+ },
7281
+ "description": "list: the account's methods (`value` on emails and phones; see defs#methodView)."
7211
7282
  },
7212
7283
  "hasRecovery": {
7213
7284
  "type": "boolean"
@@ -7217,11 +7288,12 @@ export const catalog = {
7217
7288
  "items": {
7218
7289
  "type": "ref",
7219
7290
  "ref": "#notice"
7220
- }
7291
+ },
7292
+ "description": "Unused, kept for older clients: always empty. The platform emails every notice itself."
7221
7293
  },
7222
7294
  "count": {
7223
7295
  "type": "integer",
7224
- "description": "noticesSent / dueDeletesDone: how many were confirmed."
7296
+ "description": "dueDeletesDone: how many were confirmed. noticesSent (unused, kept for older clients): always 0."
7225
7297
  },
7226
7298
  "signInMethods": {
7227
7299
  "type": "array",
@@ -7262,15 +7334,36 @@ export const catalog = {
7262
7334
  "format": "did",
7263
7335
  "description": "fold: the kept account. findKey: the account the key signs in to."
7264
7336
  },
7337
+ "other": {
7338
+ "type": "string",
7339
+ "format": "did",
7340
+ "description": "addChannel `boundElsewhere` when both accounts hold something: the account the channel signs in to (for `moveMethod`'s `from`)."
7341
+ },
7342
+ "otherPerson": {
7343
+ "type": "array",
7344
+ "items": {
7345
+ "type": "ref",
7346
+ "ref": "pub.techne.draft.identity.defs#personMember"
7347
+ },
7348
+ "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."
7349
+ },
7265
7350
  "emptied": {
7266
7351
  "type": "string",
7267
7352
  "format": "did",
7268
7353
  "description": "fold: the account folded in and deleted."
7269
7354
  },
7355
+ "person": {
7356
+ "type": "array",
7357
+ "items": {
7358
+ "type": "ref",
7359
+ "ref": "pub.techne.draft.identity.defs#personMember"
7360
+ },
7361
+ "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."
7362
+ },
7270
7363
  "link": {
7271
7364
  "type": "ref",
7272
7365
  "ref": "pub.techne.draft.identity.defs#linkView",
7273
- "description": "link: the link, from `did`'s side."
7366
+ "description": "Retired: the retired `link` op's answer."
7274
7367
  },
7275
7368
  "frozen": {
7276
7369
  "type": "boolean",
@@ -7306,7 +7399,7 @@ export const catalog = {
7306
7399
  },
7307
7400
  {
7308
7401
  "name": "NotFound",
7309
- "description": "No such method or pending change on the account."
7402
+ "description": "No such method or pending change on the account (moveMethod: `from` has no such method)."
7310
7403
  },
7311
7404
  {
7312
7405
  "name": "NotYourMethod",
@@ -7314,19 +7407,19 @@ export const catalog = {
7314
7407
  },
7315
7408
  {
7316
7409
  "name": "LastMethod",
7317
- "description": "It would leave no way to sign in."
7410
+ "description": "It would leave no way to sign in (unlink: the method handed to `other` is `did`'s only one)."
7318
7411
  },
7319
7412
  {
7320
7413
  "name": "RecoveryProtected",
7321
- "description": "Only a recovery method can do this to a recovery method."
7414
+ "description": "Only a recovery method can do this to a recovery method (moveMethod: of `from`; unlink: of `did`)."
7322
7415
  },
7323
7416
  {
7324
7417
  "name": "NeedsRecoveryMethod",
7325
- "description": "Needs a fresh step-up of a recovery method."
7418
+ "description": "Needs a fresh step-up of a recovery method (unlink: or of the method handed to `other` itself)."
7326
7419
  },
7327
7420
  {
7328
7421
  "name": "StepUpRequired",
7329
- "description": "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold` and `link` included)."
7422
+ "description": "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold`, `moveMethod` and `unlink` included)."
7330
7423
  },
7331
7424
  {
7332
7425
  "name": "SameMethod",
@@ -7334,19 +7427,19 @@ export const catalog = {
7334
7427
  },
7335
7428
  {
7336
7429
  "name": "MethodFrozen",
7337
- "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)."
7430
+ "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)."
7338
7431
  },
7339
7432
  {
7340
7433
  "name": "InvalidToken",
7341
- "description": "fold / link: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook."
7434
+ "description": "fold: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook."
7342
7435
  },
7343
7436
  {
7344
7437
  "name": "ProtectedAccount",
7345
- "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)."
7438
+ "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)."
7346
7439
  },
7347
7440
  {
7348
7441
  "name": "NotEmpty",
7349
- "description": "fold: the account to fold gained a record or is 7 days old or more; link instead (HTTP 409)."
7442
+ "description": "fold: the account to fold gained a record or is 7 days old or more; link it with `moveMethod` instead (HTTP 409)."
7350
7443
  },
7351
7444
  {
7352
7445
  "name": "ProgramRefused",
@@ -7359,6 +7452,38 @@ export const catalog = {
7359
7452
  {
7360
7453
  "name": "IsRecovery",
7361
7454
  "description": "setPrograms on: the method is a recovery method, or its first mark is waiting (HTTP 409)."
7455
+ },
7456
+ {
7457
+ "name": "FromStepUpRequired",
7458
+ "description": "moveMethod: `fromStepUp` is missing, malformed, not fresh, or names none of `from`'s methods (HTTP 403)."
7459
+ },
7460
+ {
7461
+ "name": "Frozen",
7462
+ "description": "moveMethod: a method of an account of either person is frozen; nothing is scheduled (HTTP 409)."
7463
+ },
7464
+ {
7465
+ "name": "PendingChange",
7466
+ "description": "moveMethod: an account of either person has a pending change, a move included; nothing is scheduled (HTTP 409)."
7467
+ },
7468
+ {
7469
+ "name": "TooMany",
7470
+ "description": "moveMethod: the person would hold more than 4 accounts (HTTP 409)."
7471
+ },
7472
+ {
7473
+ "name": "Same",
7474
+ "description": "moveMethod: the two accounts are already one person, or the same account (HTTP 409)."
7475
+ },
7476
+ {
7477
+ "name": "NoKey",
7478
+ "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)."
7479
+ },
7480
+ {
7481
+ "name": "NeedsMethod",
7482
+ "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)."
7483
+ },
7484
+ {
7485
+ "name": "NotLinked",
7486
+ "description": "unlink: `other` is not in `did`'s person, or is `did` (HTTP 404)."
7362
7487
  }
7363
7488
  ]
7364
7489
  },
@@ -7407,6 +7532,7 @@ export const catalog = {
7407
7532
  },
7408
7533
  "notice": {
7409
7534
  "type": "object",
7535
+ "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.",
7410
7536
  "required": [
7411
7537
  "id",
7412
7538
  "did",
@@ -7430,9 +7556,17 @@ export const catalog = {
7430
7556
  "markRecovery",
7431
7557
  "freeze",
7432
7558
  "waitDropped",
7433
- "programsOn"
7434
- ],
7435
- "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`)."
7559
+ "programsOn",
7560
+ "moveMethod",
7561
+ "linked",
7562
+ "unlinked",
7563
+ "moveDropped",
7564
+ "moveTimedOut",
7565
+ "moveCancelled",
7566
+ "akaLeft",
7567
+ "emailLeft"
7568
+ ],
7569
+ "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."
7436
7570
  },
7437
7571
  "to": {
7438
7572
  "type": "ref",
@@ -7473,6 +7607,7 @@ export const catalog = {
7473
7607
  },
7474
7608
  "noticeTo": {
7475
7609
  "type": "object",
7610
+ "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).",
7476
7611
  "required": [
7477
7612
  "type",
7478
7613
  "value"
@@ -8070,14 +8205,14 @@ export const catalog = {
8070
8205
  "name": "draft.identity.unlinkAccount",
8071
8206
  "group": "pub.techne",
8072
8207
  "kind": "procedure",
8073
- "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.",
8208
+ "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).",
8074
8209
  "doc": ({
8075
8210
  "lexicon": 1,
8076
8211
  "id": "pub.techne.draft.identity.unlinkAccount",
8077
8212
  "defs": {
8078
8213
  "main": {
8079
8214
  "type": "procedure",
8080
- "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.",
8215
+ "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).",
8081
8216
  "input": {
8082
8217
  "encoding": "application/json",
8083
8218
  "schema": {
@@ -8126,14 +8261,14 @@ export const catalog = {
8126
8261
  "name": "draft.identity.unlinkMethod",
8127
8262
  "group": "pub.techne",
8128
8263
  "kind": "procedure",
8129
- "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.",
8264
+ "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.",
8130
8265
  "doc": ({
8131
8266
  "lexicon": 1,
8132
8267
  "id": "pub.techne.draft.identity.unlinkMethod",
8133
8268
  "defs": {
8134
8269
  "main": {
8135
8270
  "type": "procedure",
8136
- "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.",
8271
+ "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.",
8137
8272
  "input": {
8138
8273
  "encoding": "application/json",
8139
8274
  "schema": {
@@ -8195,6 +8330,112 @@ export const catalog = {
8195
8330
  }
8196
8331
  })
8197
8332
  },
8333
+ {
8334
+ "nsid": "pub.techne.draft.identity.writeAsCollective",
8335
+ "name": "draft.identity.writeAsCollective",
8336
+ "group": "pub.techne",
8337
+ "kind": "procedure",
8338
+ "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.",
8339
+ "doc": ({
8340
+ "lexicon": 1,
8341
+ "id": "pub.techne.draft.identity.writeAsCollective",
8342
+ "defs": {
8343
+ "main": {
8344
+ "type": "procedure",
8345
+ "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.",
8346
+ "input": {
8347
+ "encoding": "application/json",
8348
+ "schema": {
8349
+ "type": "object",
8350
+ "required": [
8351
+ "repo",
8352
+ "writes"
8353
+ ],
8354
+ "properties": {
8355
+ "repo": {
8356
+ "type": "string",
8357
+ "format": "did",
8358
+ "description": "The collective's DID. Not the caller's own."
8359
+ },
8360
+ "validate": {
8361
+ "type": "boolean",
8362
+ "description": "As com.atproto.repo.applyWrites: passed to the collective's PDS."
8363
+ },
8364
+ "writes": {
8365
+ "type": "array",
8366
+ "items": {
8367
+ "type": "union",
8368
+ "refs": [
8369
+ "com.atproto.repo.applyWrites#create",
8370
+ "com.atproto.repo.applyWrites#update",
8371
+ "com.atproto.repo.applyWrites#delete"
8372
+ ],
8373
+ "closed": true
8374
+ }
8375
+ },
8376
+ "swapCommit": {
8377
+ "type": "string",
8378
+ "format": "cid",
8379
+ "description": "As com.atproto.repo.applyWrites: the whole batch fails unless the collective's repo is at this commit."
8380
+ }
8381
+ }
8382
+ }
8383
+ },
8384
+ "output": {
8385
+ "encoding": "application/json",
8386
+ "schema": {
8387
+ "type": "object",
8388
+ "required": [],
8389
+ "properties": {
8390
+ "commit": {
8391
+ "type": "ref",
8392
+ "ref": "com.atproto.repo.defs#commitMeta"
8393
+ },
8394
+ "results": {
8395
+ "type": "array",
8396
+ "items": {
8397
+ "type": "union",
8398
+ "refs": [
8399
+ "com.atproto.repo.applyWrites#createResult",
8400
+ "com.atproto.repo.applyWrites#updateResult",
8401
+ "com.atproto.repo.applyWrites#deleteResult"
8402
+ ],
8403
+ "closed": true
8404
+ }
8405
+ }
8406
+ }
8407
+ }
8408
+ },
8409
+ "errors": [
8410
+ {
8411
+ "name": "InvalidRequest",
8412
+ "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)."
8413
+ },
8414
+ {
8415
+ "name": "Forbidden",
8416
+ "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."
8417
+ },
8418
+ {
8419
+ "name": "NotAuthorized",
8420
+ "description": "HTTP 403. A write names a `space` the app's `space:` scopes do not cover writing to."
8421
+ },
8422
+ {
8423
+ "name": "LastManager",
8424
+ "description": "HTTP 409. The writes would leave a circle's members with no manager."
8425
+ },
8426
+ {
8427
+ "name": "PayloadTooLarge",
8428
+ "description": "HTTP 413, from the collective's PDS."
8429
+ },
8430
+ {
8431
+ "name": "RateLimitExceeded",
8432
+ "description": "HTTP 429. Too many writes from this DID, or the collective's PDS is rate-limiting."
8433
+ }
8434
+ ]
8435
+ }
8436
+ }
8437
+ })
8438
+ },
8198
8439
  {
8199
8440
  "nsid": "pub.techne.draft.interest",
8200
8441
  "name": "draft.interest",
@@ -8794,7 +9035,7 @@ export const catalog = {
8794
9035
  "group": "pub.techne",
8795
9036
  "kind": "record",
8796
9037
  "key": "any",
8797
- "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.",
9038
+ "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.",
8798
9039
  "fields": [
8799
9040
  {
8800
9041
  "name": "subject",
@@ -8834,7 +9075,7 @@ export const catalog = {
8834
9075
  "main": {
8835
9076
  "type": "record",
8836
9077
  "key": "any",
8837
- "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.",
9078
+ "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.",
8838
9079
  "record": {
8839
9080
  "type": "object",
8840
9081
  "required": [
@@ -9250,15 +9491,15 @@ export const catalog = {
9250
9491
  "name": "draft.permissioned.deleteRecord",
9251
9492
  "group": "pub.techne",
9252
9493
  "kind": "procedure",
9253
- "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.",
9494
+ "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.",
9254
9495
  "doc": ({
9255
9496
  "lexicon": 1,
9256
9497
  "id": "pub.techne.draft.permissioned.deleteRecord",
9257
- "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.",
9498
+ "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.",
9258
9499
  "defs": {
9259
9500
  "main": {
9260
9501
  "type": "procedure",
9261
- "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.",
9502
+ "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.",
9262
9503
  "input": {
9263
9504
  "encoding": "application/json",
9264
9505
  "schema": {
@@ -9316,7 +9557,7 @@ export const catalog = {
9316
9557
  },
9317
9558
  {
9318
9559
  "name": "Forbidden",
9319
- "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."
9560
+ "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."
9320
9561
  },
9321
9562
  {
9322
9563
  "name": "LastManager",
@@ -9767,15 +10008,15 @@ export const catalog = {
9767
10008
  "name": "draft.permissioned.putRecord",
9768
10009
  "group": "pub.techne",
9769
10010
  "kind": "procedure",
9770
- "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.",
10011
+ "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.",
9771
10012
  "doc": ({
9772
10013
  "lexicon": 1,
9773
10014
  "id": "pub.techne.draft.permissioned.putRecord",
9774
- "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.",
10015
+ "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.",
9775
10016
  "defs": {
9776
10017
  "main": {
9777
10018
  "type": "procedure",
9778
- "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.",
10019
+ "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.",
9779
10020
  "input": {
9780
10021
  "encoding": "application/json",
9781
10022
  "schema": {
@@ -9856,7 +10097,7 @@ export const catalog = {
9856
10097
  "space": {
9857
10098
  "type": "string",
9858
10099
  "format": "at-uri",
9859
- "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)."
10100
+ "description": "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer)."
9860
10101
  }
9861
10102
  }
9862
10103
  }
@@ -9868,7 +10109,7 @@ export const catalog = {
9868
10109
  },
9869
10110
  {
9870
10111
  "name": "Forbidden",
9871
- "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."
10112
+ "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."
9872
10113
  },
9873
10114
  {
9874
10115
  "name": "LastManager",
@@ -9912,15 +10153,15 @@ export const catalog = {
9912
10153
  "name": "draft.permissioned.putRecords",
9913
10154
  "group": "pub.techne",
9914
10155
  "kind": "procedure",
9915
- "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.",
10156
+ "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.",
9916
10157
  "doc": ({
9917
10158
  "lexicon": 1,
9918
10159
  "id": "pub.techne.draft.permissioned.putRecords",
9919
- "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.",
10160
+ "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.",
9920
10161
  "defs": {
9921
10162
  "main": {
9922
10163
  "type": "procedure",
9923
- "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.",
10164
+ "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.",
9924
10165
  "input": {
9925
10166
  "encoding": "application/json",
9926
10167
  "schema": {
@@ -10082,7 +10323,7 @@ export const catalog = {
10082
10323
  "properties": {
10083
10324
  "error": {
10084
10325
  "type": "string",
10085
- "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).",
10326
+ "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).",
10086
10327
  "knownValues": [
10087
10328
  "InvalidRequest",
10088
10329
  "InvalidSwap",
@@ -10291,7 +10532,7 @@ export const catalog = {
10291
10532
  "group": "pub.techne",
10292
10533
  "kind": "record",
10293
10534
  "key": "any",
10294
- "description": "Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. `any` permits that convention but cannot enforce it.",
10535
+ "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.",
10295
10536
  "fields": [
10296
10537
  {
10297
10538
  "name": "subject",
@@ -10382,7 +10623,7 @@ export const catalog = {
10382
10623
  "main": {
10383
10624
  "type": "record",
10384
10625
  "key": "any",
10385
- "description": "Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. `any` permits that convention but cannot enforce it.",
10626
+ "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.",
10386
10627
  "record": {
10387
10628
  "type": "object",
10388
10629
  "required": [
@@ -11033,7 +11274,7 @@ export const catalog = {
11033
11274
  "group": "pub.techne",
11034
11275
  "kind": "record",
11035
11276
  "key": "any",
11036
- "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.",
11277
+ "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.",
11037
11278
  "fields": [
11038
11279
  {
11039
11280
  "name": "subject",
@@ -11083,7 +11324,7 @@ export const catalog = {
11083
11324
  "main": {
11084
11325
  "type": "record",
11085
11326
  "key": "any",
11086
- "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.",
11327
+ "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.",
11087
11328
  "record": {
11088
11329
  "type": "object",
11089
11330
  "required": [
@@ -11474,7 +11715,7 @@ export const catalog = {
11474
11715
  "group": "pub.techne",
11475
11716
  "kind": "record",
11476
11717
  "key": "any",
11477
- "description": "A query over indexed records, as data: sent inline to pub.techne.draft.query.listRecords or countRecords, or published as a record in an app's own repo and run by its URI, so what an app reads is public. The platform runs it only over what the caller may read: every query is scoped to the viewer by the platform (public records not hidden; permissioned records the caller's own, or in a space whose read policy admits the caller now and not an act the reach limit withholds for its author: a held share or circle add), so there is no operator for access. Values that start with `$` are parameters: `$viewer` (the caller's DID) and `$now` (the instant of the call) are filled by the platform, any other the caller passes in `params`; a published query is a template. Each record type declares which of its fields fill the shared roles in its `{collection}.query` document; a type with none is still listable by the roles every record has (`type`, `author`, `space`, `subject`, `written`, `uri`). Before running, the platform checks that every top-level `any` branch is driven by an index and refuses, naming the branch, if not. A feed is a query plus the signals it asks for plus its `weights`, which only the client applies. Draft tier.",
11718
+ "description": "A query over indexed records, as data: sent inline to pub.techne.draft.query.listRecords or countRecords, or published as a record in an app's own repo and run by its URI, so what an app reads is public. The platform runs it only over what the caller may read: every query is scoped to the viewer by the platform (public records not hidden; permissioned records the caller's own, or in a space whose read policy admits the caller now and not an act the reach limit withholds for its author: a held share or circle add), so there is no operator for access. Values that start with `$` are parameters: `$viewer` (the caller: compared with a DID, it matches any DID of the caller's person now, every account linked with the signed-in one, or only the signed-in DID while a sign-in method of one of them is frozen) and `$now` (the instant of the call) are filled by the platform, any other the caller passes in `params`; a published query is a template. Each record type declares which of its fields fill the shared roles in its `{collection}.query` document; a type with none is still listable by the roles every record has (`type`, `author`, `space`, `subject`, `written`, `uri`). Before running, the platform checks that every top-level `any` branch is driven by an index and refuses, naming the branch, if not. A feed is a query plus the signals it asks for plus its `weights`, which only the client applies. Draft tier.",
11478
11719
  "fields": [
11479
11720
  {
11480
11721
  "name": "where",
@@ -11532,7 +11773,7 @@ export const catalog = {
11532
11773
  "doc": ({
11533
11774
  "lexicon": 1,
11534
11775
  "id": "pub.techne.draft.query",
11535
- "description": "A query over indexed records, as data: sent inline to pub.techne.draft.query.listRecords or countRecords, or published as a record in an app's own repo and run by its URI, so what an app reads is public. The platform runs it only over what the caller may read: every query is scoped to the viewer by the platform (public records not hidden; permissioned records the caller's own, or in a space whose read policy admits the caller now and not an act the reach limit withholds for its author: a held share or circle add), so there is no operator for access. Values that start with `$` are parameters: `$viewer` (the caller's DID) and `$now` (the instant of the call) are filled by the platform, any other the caller passes in `params`; a published query is a template. Each record type declares which of its fields fill the shared roles in its `{collection}.query` document; a type with none is still listable by the roles every record has (`type`, `author`, `space`, `subject`, `written`, `uri`). Before running, the platform checks that every top-level `any` branch is driven by an index and refuses, naming the branch, if not. A feed is a query plus the signals it asks for plus its `weights`, which only the client applies. Draft tier.",
11776
+ "description": "A query over indexed records, as data: sent inline to pub.techne.draft.query.listRecords or countRecords, or published as a record in an app's own repo and run by its URI, so what an app reads is public. The platform runs it only over what the caller may read: every query is scoped to the viewer by the platform (public records not hidden; permissioned records the caller's own, or in a space whose read policy admits the caller now and not an act the reach limit withholds for its author: a held share or circle add), so there is no operator for access. Values that start with `$` are parameters: `$viewer` (the caller: compared with a DID, it matches any DID of the caller's person now, every account linked with the signed-in one, or only the signed-in DID while a sign-in method of one of them is frozen) and `$now` (the instant of the call) are filled by the platform, any other the caller passes in `params`; a published query is a template. Each record type declares which of its fields fill the shared roles in its `{collection}.query` document; a type with none is still listable by the roles every record has (`type`, `author`, `space`, `subject`, `written`, `uri`). Before running, the platform checks that every top-level `any` branch is driven by an index and refuses, naming the branch, if not. A feed is a query plus the signals it asks for plus its `weights`, which only the client applies. Draft tier.",
11536
11777
  "defs": {
11537
11778
  "main": {
11538
11779
  "type": "record",
@@ -11806,7 +12047,7 @@ export const catalog = {
11806
12047
  "required": [
11807
12048
  "from"
11808
12049
  ],
11809
- "description": "Graph hops from `from` (only `$viewer` today) to the result's author over the viewer-scoped graph walk: 0 for the viewer's own records; absent when the walk does not reach the author, and for an anonymous caller.",
12050
+ "description": "Graph hops from `from` (only `$viewer` today) to the result's author over the viewer-scoped graph walk: 0 for the viewer's own records (any DID of the viewer's person now); absent when the walk does not reach the author, and for an anonymous caller.",
11810
12051
  "properties": {
11811
12052
  "from": {
11812
12053
  "type": "string",
@@ -12512,6 +12753,34 @@ export const catalog = {
12512
12753
  "handle": {
12513
12754
  "type": "string",
12514
12755
  "format": "handle"
12756
+ },
12757
+ "linked": {
12758
+ "type": "array",
12759
+ "items": {
12760
+ "type": "ref",
12761
+ "ref": "#linkedHandle"
12762
+ },
12763
+ "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."
12764
+ }
12765
+ }
12766
+ },
12767
+ "linkedHandle": {
12768
+ "type": "object",
12769
+ "required": [
12770
+ "did"
12771
+ ],
12772
+ "properties": {
12773
+ "did": {
12774
+ "type": "string",
12775
+ "format": "did"
12776
+ },
12777
+ "handle": {
12778
+ "type": "string",
12779
+ "format": "handle"
12780
+ },
12781
+ "displayName": {
12782
+ "type": "string",
12783
+ "description": "The linked account's public profile name, when it has one."
12515
12784
  }
12516
12785
  }
12517
12786
  },
@@ -13020,7 +13289,7 @@ export const catalog = {
13020
13289
  "group": "pub.techne",
13021
13290
  "kind": "record",
13022
13291
  "key": "any",
13023
- "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.",
13292
+ "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.",
13024
13293
  "fields": [
13025
13294
  {
13026
13295
  "name": "subject",
@@ -13048,7 +13317,7 @@ export const catalog = {
13048
13317
  "main": {
13049
13318
  "type": "record",
13050
13319
  "key": "any",
13051
- "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.",
13320
+ "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.",
13052
13321
  "record": {
13053
13322
  "type": "object",
13054
13323
  "required": [
@@ -14284,7 +14553,7 @@ export const catalog = {
14284
14553
  "group": "pub.techne",
14285
14554
  "kind": "record",
14286
14555
  "key": "any",
14287
- "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.",
14556
+ "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.",
14288
14557
  "fields": [
14289
14558
  {
14290
14559
  "name": "subject",
@@ -14312,7 +14581,7 @@ export const catalog = {
14312
14581
  "main": {
14313
14582
  "type": "record",
14314
14583
  "key": "any",
14315
- "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.",
14584
+ "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.",
14316
14585
  "record": {
14317
14586
  "type": "object",
14318
14587
  "required": [
@@ -14447,7 +14716,7 @@ export const catalog = {
14447
14716
  "group": "pub.techne",
14448
14717
  "kind": "record",
14449
14718
  "key": "any",
14450
- "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.",
14719
+ "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.",
14451
14720
  "fields": [
14452
14721
  {
14453
14722
  "name": "subject",
@@ -14475,7 +14744,7 @@ export const catalog = {
14475
14744
  "main": {
14476
14745
  "type": "record",
14477
14746
  "key": "any",
14478
- "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.",
14747
+ "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.",
14479
14748
  "record": {
14480
14749
  "type": "object",
14481
14750
  "required": [
@@ -14842,7 +15111,7 @@ export const catalog = {
14842
15111
  "group": "pub.techne",
14843
15112
  "kind": "record",
14844
15113
  "key": "any",
14845
- "description": "Publishers use sidecar_rkey(subject AT-URI), one per record. `any` permits that convention but cannot enforce it.",
15114
+ "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.",
14846
15115
  "fields": [
14847
15116
  {
14848
15117
  "name": "subject",
@@ -14892,7 +15161,7 @@ export const catalog = {
14892
15161
  "main": {
14893
15162
  "type": "record",
14894
15163
  "key": "any",
14895
- "description": "Publishers use sidecar_rkey(subject AT-URI), one per record. `any` permits that convention but cannot enforce it.",
15164
+ "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.",
14896
15165
  "record": {
14897
15166
  "type": "object",
14898
15167
  "required": [
@@ -14958,7 +15227,7 @@ export const catalog = {
14958
15227
  "group": "pub.techne",
14959
15228
  "kind": "record",
14960
15229
  "key": "any",
14961
- "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.",
15230
+ "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.",
14962
15231
  "fields": [
14963
15232
  {
14964
15233
  "name": "createdAt",
@@ -15066,7 +15335,7 @@ export const catalog = {
15066
15335
  }
15067
15336
  }
15068
15337
  },
15069
- "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."
15338
+ "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."
15070
15339
  }
15071
15340
  }
15072
15341
  }),
@@ -15267,7 +15536,7 @@ export const catalog = {
15267
15536
  "group": "pub.techne",
15268
15537
  "kind": "record",
15269
15538
  "key": "any",
15270
- "description": "Publishers use sidecar_rkey(subject AT-URI), one summary per record per writer. `any` permits that convention but cannot enforce it.",
15539
+ "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.",
15271
15540
  "fields": [
15272
15541
  {
15273
15542
  "name": "subject",
@@ -15301,7 +15570,7 @@ export const catalog = {
15301
15570
  "main": {
15302
15571
  "type": "record",
15303
15572
  "key": "any",
15304
- "description": "Publishers use sidecar_rkey(subject AT-URI), one summary per record per writer. `any` permits that convention but cannot enforce it.",
15573
+ "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.",
15305
15574
  "record": {
15306
15575
  "type": "object",
15307
15576
  "required": [
@@ -15443,7 +15712,7 @@ export const catalog = {
15443
15712
  "group": "pub.techne",
15444
15713
  "kind": "record",
15445
15714
  "key": "any",
15446
- "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.",
15715
+ "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.",
15447
15716
  "fields": [
15448
15717
  {
15449
15718
  "name": "subject",
@@ -15471,7 +15740,7 @@ export const catalog = {
15471
15740
  "main": {
15472
15741
  "type": "record",
15473
15742
  "key": "any",
15474
- "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.",
15743
+ "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.",
15475
15744
  "record": {
15476
15745
  "type": "object",
15477
15746
  "required": [
@@ -15523,7 +15792,7 @@ export const catalog = {
15523
15792
  "group": "pub.techne",
15524
15793
  "kind": "record",
15525
15794
  "key": "any",
15526
- "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.",
15795
+ "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.",
15527
15796
  "fields": [
15528
15797
  {
15529
15798
  "name": "subject",
@@ -15545,7 +15814,7 @@ export const catalog = {
15545
15814
  "main": {
15546
15815
  "type": "record",
15547
15816
  "key": "any",
15548
- "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.",
15817
+ "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.",
15549
15818
  "record": {
15550
15819
  "type": "object",
15551
15820
  "required": [
@@ -16670,7 +16939,7 @@ export const catalog = {
16670
16939
  "name": "App private space",
16671
16940
  "kind": "space",
16672
16941
  "key": "any",
16673
- "description": "An app's private space for one person: owner-only, one instance per app, keyed by the app (at://{owner}/pub.techne.draft.space.private/{appKey}, appKey = sidecar_rkey(client_id)). An ordinary space type: apps use it through the permissioned.* methods, naming it as the space. It holds records of any type that is not one of the platform's own, community drafts included (0016: every space may contain records of any type), so it declares no collections and is on the placement manifest's `open` list; the platform's own record types keep their declared homes, and a write of one here is refused. The adopted calendar types (community.lexicon.calendar.event and .rsvp) are held here as the app's own data: an RSVP here projects no claim, and neither counts as the platform's event or RSVP at its key. The platform is the managing app and admits and serves an instance's records only when the call comes through the app its key names (known from the client_id claim our ePDS puts on the service token). A write from any other app, or with no claim, is stored but not admitted: it counts in no space. An app asks for narrow access with the 0016 scope space:pub.techne.draft.space.private?skey={appKey}.",
16942
+ "description": "An app's private space for one person: owner-only, one instance per app, keyed by the app (at://{owner}/pub.techne.draft.space.private/{appKey}, appKey = sidecar_rkey(client_id)). An ordinary space type: apps use it through the permissioned.* methods, naming it as the space. It holds records of any type that is not one of the platform's own, community drafts included (0016: every space may contain records of any type), so it declares no collections and is on the placement manifest's `open` list; the platform's own record types keep their declared homes, and a write of one here is refused. The adopted calendar types (community.lexicon.calendar.event and .rsvp) are held here as the app's own data: an RSVP here projects no claim, and neither counts as the platform's event or RSVP at its key. The key names the app the space is for, but which app is calling is not asked: like any space, an instance is reached by a caller whose 0016 `space:` scopes cover it, and by one whose token carries no `space:` scopes (the owner's own sessions included); a write under scopes that do not cover it is refused. An app asks for narrow access with the scope space:pub.techne.draft.space.private?skey={appKey}.",
16674
16943
  "collections": [],
16675
16944
  "policy": {
16676
16945
  "read": {
@@ -16689,7 +16958,7 @@ export const catalog = {
16689
16958
  "defs": {
16690
16959
  "main": {
16691
16960
  "type": "space",
16692
- "description": "An app's private space for one person: owner-only, one instance per app, keyed by the app (at://{owner}/pub.techne.draft.space.private/{appKey}, appKey = sidecar_rkey(client_id)). An ordinary space type: apps use it through the permissioned.* methods, naming it as the space. It holds records of any type that is not one of the platform's own, community drafts included (0016: every space may contain records of any type), so it declares no collections and is on the placement manifest's `open` list; the platform's own record types keep their declared homes, and a write of one here is refused. The adopted calendar types (community.lexicon.calendar.event and .rsvp) are held here as the app's own data: an RSVP here projects no claim, and neither counts as the platform's event or RSVP at its key. The platform is the managing app and admits and serves an instance's records only when the call comes through the app its key names (known from the client_id claim our ePDS puts on the service token). A write from any other app, or with no claim, is stored but not admitted: it counts in no space. An app asks for narrow access with the 0016 scope space:pub.techne.draft.space.private?skey={appKey}.",
16961
+ "description": "An app's private space for one person: owner-only, one instance per app, keyed by the app (at://{owner}/pub.techne.draft.space.private/{appKey}, appKey = sidecar_rkey(client_id)). An ordinary space type: apps use it through the permissioned.* methods, naming it as the space. It holds records of any type that is not one of the platform's own, community drafts included (0016: every space may contain records of any type), so it declares no collections and is on the placement manifest's `open` list; the platform's own record types keep their declared homes, and a write of one here is refused. The adopted calendar types (community.lexicon.calendar.event and .rsvp) are held here as the app's own data: an RSVP here projects no claim, and neither counts as the platform's event or RSVP at its key. The key names the app the space is for, but which app is calling is not asked: like any space, an instance is reached by a caller whose 0016 `space:` scopes cover it, and by one whose token carries no `space:` scopes (the owner's own sessions included); a write under scopes that do not cover it is refused. An app asks for narrow access with the scope space:pub.techne.draft.space.private?skey={appKey}.",
16693
16962
  "key": "any",
16694
16963
  "name": "App private space",
16695
16964
  "collections": []
@@ -16697,14 +16966,14 @@ export const catalog = {
16697
16966
  }
16698
16967
  }),
16699
16968
  "policyNsid": "pub.techne.draft.space.private.policy",
16700
- "policyDescription": "Access policy for pub.techne.draft.space.private: owner only, all capabilities. Which app may reach an instance is decided at read time from the app's identity, not by this policy.",
16969
+ "policyDescription": "Access policy for pub.techne.draft.space.private: owner only, all capabilities. Which of the owner's apps reach an instance follows from the call's `space:` scopes (a caller with none reaches every one), not from this policy.",
16701
16970
  "policyDoc": ({
16702
16971
  "lexicon": 1,
16703
16972
  "id": "pub.techne.draft.space.private.policy",
16704
16973
  "defs": {
16705
16974
  "main": {
16706
16975
  "type": "spacePolicy",
16707
- "description": "Access policy for pub.techne.draft.space.private: owner only, all capabilities. Which app may reach an instance is decided at read time from the app's identity, not by this policy.",
16976
+ "description": "Access policy for pub.techne.draft.space.private: owner only, all capabilities. Which of the owner's apps reach an instance follows from the call's `space:` scopes (a caller with none reaches every one), not from this policy.",
16708
16977
  "policy": {
16709
16978
  "read": {
16710
16979
  "$type": "pub.techne.draft.policy#authorityOnly"
@@ -17154,6 +17423,11 @@ export const catalog = {
17154
17423
  "community.lexicon.calendar.rsvp"
17155
17424
  ],
17156
17425
  "unbuilt": [
17426
+ {
17427
+ "collection": "pub.techne.draft.accountLink",
17428
+ "space": "pub.techne.draft.space.personal",
17429
+ "cite": "docs/linking-v2.md (b4dfa043): retired. A link is a person row the manageMethods moveMethod op writes, echoed by PLC alsoKnownAs; nothing writes accountLink. Existing records (lucian 2026-11-16: probably none) stay readable by their owner; delete this entry with the lexicon."
17430
+ },
17157
17431
  {
17158
17432
  "collection": "pub.techne.draft.channelVerification",
17159
17433
  "space": "pub.techne.draft.space.personal",
@@ -17253,6 +17527,11 @@ export const catalog = {
17253
17527
  "pub.techne.draft.space.private"
17254
17528
  ],
17255
17529
  "unbuilt": [
17530
+ {
17531
+ "collection": "pub.techne.draft.accountLink",
17532
+ "space": "pub.techne.draft.space.personal",
17533
+ "cite": "docs/linking-v2.md (b4dfa043): retired. A link is a person row the manageMethods moveMethod op writes, echoed by PLC alsoKnownAs; nothing writes accountLink. Existing records (lucian 2026-11-16: probably none) stay readable by their owner; delete this entry with the lexicon."
17534
+ },
17256
17535
  {
17257
17536
  "collection": "pub.techne.draft.channelVerification",
17258
17537
  "space": "pub.techne.draft.space.personal",
@@ -18354,7 +18633,7 @@ export const catalog = {
18354
18633
  "group": "social.scenius",
18355
18634
  "kind": "procedure",
18356
18635
  "class": "write",
18357
- "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.",
18636
+ "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.",
18358
18637
  "input": [
18359
18638
  {
18360
18639
  "name": "space",
@@ -18393,7 +18672,7 @@ export const catalog = {
18393
18672
  "defs": {
18394
18673
  "main": {
18395
18674
  "type": "procedure",
18396
- "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.",
18675
+ "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.",
18397
18676
  "input": {
18398
18677
  "encoding": "application/json",
18399
18678
  "schema": {
@@ -18449,7 +18728,7 @@ export const catalog = {
18449
18728
  },
18450
18729
  {
18451
18730
  "name": "NotAuthorized",
18452
- "description": "The caller does not pass the space type's manage leg."
18731
+ "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)."
18453
18732
  }
18454
18733
  ]
18455
18734
  }
@@ -19027,6 +19306,12 @@ export const catalog = {
19027
19306
  "type": "string",
19028
19307
  "required": true,
19029
19308
  "description": "The app-binding secret — pass it verbatim to completeMobileOAuth (the login-CSRF binding)."
19309
+ },
19310
+ {
19311
+ "name": "state",
19312
+ "type": "string",
19313
+ "required": false,
19314
+ "description": "The OAuth state this sign-in was begun with (not a secret: the authorization server sends it back on its redirect to redirectUri). An authorization server's hand-back (error=login_required with login_hint) carries it, so the app can act only on a hand-back from its own sign-in. Absent from an AppView older than this field."
19030
19315
  }
19031
19316
  ],
19032
19317
  "doc": ({
@@ -19076,6 +19361,10 @@ export const catalog = {
19076
19361
  "appBinding": {
19077
19362
  "type": "string",
19078
19363
  "description": "The app-binding secret — pass it verbatim to completeMobileOAuth (the login-CSRF binding)."
19364
+ },
19365
+ "state": {
19366
+ "type": "string",
19367
+ "description": "The OAuth state this sign-in was begun with (not a secret: the authorization server sends it back on its redirect to redirectUri). An authorization server's hand-back (error=login_required with login_hint) carries it, so the app can act only on a hand-back from its own sign-in. Absent from an AppView older than this field."
19079
19368
  }
19080
19369
  }
19081
19370
  }
@@ -20694,7 +20983,7 @@ export const catalog = {
20694
20983
  "group": "social.scenius",
20695
20984
  "kind": "procedure",
20696
20985
  "class": "write",
20697
- "description": "Delete the caller's account after checking the code `startAccountDeletion` sent to its own number (or bound email). Removes every row the account owns, the phone anchor, every session and token, the mcp-bridge OAuth vault entries, then the PDS repo and the PLC tombstone for a custodial account. `status` is `deleted` when the whole routine finished and `pending` when the local half committed and the network half has not — in both of these cases (no `scheduledFor`) the caller is signed out everywhere, the account has no public face, and a nightly sweep finishes what is left. The deletion is not undoable. It follows the sign-in method rules (pub.techne.draft.identity.manageMethods): when the method the code proved is not a recovery method, nothing is deleted yet: `status` is `pending` (so a client that knows only `deleted` and `pending` reads it as accepted), `scheduledFor` says when the deletion runs (in 7 days) and `pending` is the waiting change, with notice, cancellable by any of the account's methods; nobody is signed out. `scheduledFor` is present only then. Available through the standard write scope, including the generic MCP door; authentication alone is insufficient because the out-of-band phone code remains mandatory.",
20986
+ "description": "Delete the caller's account after checking the code `startAccountDeletion` sent to its own number (or bound email). Removes every row the account owns, the phone anchor, every session and token, the mcp-bridge OAuth vault entries, then the PDS repo and the PLC tombstone for a custodial account. `status` is `deleted` when the whole routine finished and `pending` when the local half committed and the network half has not — in both of these cases (no `scheduledFor`) the caller is signed out everywhere, the account has no public face, and a nightly sweep finishes what is left. The deletion is not undoable. It follows the sign-in method rules (pub.techne.draft.identity.manageMethods): when the method the code proved is not a recovery method, nothing is deleted yet: `status` is `pending` (so a client that knows only `deleted` and `pending` reads it as accepted), `scheduledFor` says when the deletion runs (in 7 days) and `pending` is the waiting change, with an email notice, if the account has any email method, cancellable by any of the account's methods; nobody is signed out. `scheduledFor` is present only then. Available through the standard write scope, including the generic MCP door; authentication alone is insufficient because the out-of-band phone code remains mandatory.",
20698
20987
  "input": [
20699
20988
  {
20700
20989
  "name": "code",
@@ -20731,7 +21020,7 @@ export const catalog = {
20731
21020
  "defs": {
20732
21021
  "main": {
20733
21022
  "type": "procedure",
20734
- "description": "Delete the caller's account after checking the code `startAccountDeletion` sent to its own number (or bound email). Removes every row the account owns, the phone anchor, every session and token, the mcp-bridge OAuth vault entries, then the PDS repo and the PLC tombstone for a custodial account. `status` is `deleted` when the whole routine finished and `pending` when the local half committed and the network half has not — in both of these cases (no `scheduledFor`) the caller is signed out everywhere, the account has no public face, and a nightly sweep finishes what is left. The deletion is not undoable. It follows the sign-in method rules (pub.techne.draft.identity.manageMethods): when the method the code proved is not a recovery method, nothing is deleted yet: `status` is `pending` (so a client that knows only `deleted` and `pending` reads it as accepted), `scheduledFor` says when the deletion runs (in 7 days) and `pending` is the waiting change, with notice, cancellable by any of the account's methods; nobody is signed out. `scheduledFor` is present only then. Available through the standard write scope, including the generic MCP door; authentication alone is insufficient because the out-of-band phone code remains mandatory.",
21023
+ "description": "Delete the caller's account after checking the code `startAccountDeletion` sent to its own number (or bound email). Removes every row the account owns, the phone anchor, every session and token, the mcp-bridge OAuth vault entries, then the PDS repo and the PLC tombstone for a custodial account. `status` is `deleted` when the whole routine finished and `pending` when the local half committed and the network half has not — in both of these cases (no `scheduledFor`) the caller is signed out everywhere, the account has no public face, and a nightly sweep finishes what is left. The deletion is not undoable. It follows the sign-in method rules (pub.techne.draft.identity.manageMethods): when the method the code proved is not a recovery method, nothing is deleted yet: `status` is `pending` (so a client that knows only `deleted` and `pending` reads it as accepted), `scheduledFor` says when the deletion runs (in 7 days) and `pending` is the waiting change, with an email notice, if the account has any email method, cancellable by any of the account's methods; nobody is signed out. `scheduledFor` is present only then. Available through the standard write scope, including the generic MCP door; authentication alone is insufficient because the out-of-band phone code remains mandatory.",
20735
21024
  "input": {
20736
21025
  "encoding": "application/json",
20737
21026
  "schema": {
@@ -21086,7 +21375,7 @@ export const catalog = {
21086
21375
  "group": "social.scenius",
21087
21376
  "kind": "procedure",
21088
21377
  "class": "write",
21089
- "description": "Tombstone an existing event: the calendar.event record and its config/listing/detail siblings are removed from the event's store. No new record lexicon. Author + authority gated. Idempotent (a missing event returns deleted:false). Confirmed seat-holders are told the event was called off.",
21378
+ "description": "Tombstone an existing event: the calendar.event record and its config/listing/detail siblings are removed from the event's store, and each delete is hinted so a curator following this AppView's stream sees it ahead of the relay; for a public event the call waits up to CURATED_WAIT_MS for the commons' curated copy to go. No new record lexicon. Author + authority gated. Idempotent (a missing event returns deleted:false). Confirmed seat-holders are told the event was called off.",
21090
21379
  "input": [
21091
21380
  {
21092
21381
  "name": "authority",
@@ -21107,6 +21396,12 @@ export const catalog = {
21107
21396
  "type": "boolean",
21108
21397
  "required": true,
21109
21398
  "description": "Whether an event was found and tombstoned."
21399
+ },
21400
+ {
21401
+ "name": "remaining",
21402
+ "type": "array<string>",
21403
+ "required": false,
21404
+ "description": "Copies of the event this call could not remove and did not see go within its wait: the commons' curated copy of a public event, in its curator's repo. The curator withdraws it once it sees the delete, unless another source still lists the same event. Omitted when none is left. Reported only by the call that deleted the event; a repeat call (deleted:false) reports none."
21110
21405
  }
21111
21406
  ],
21112
21407
  "doc": ({
@@ -21115,7 +21410,7 @@ export const catalog = {
21115
21410
  "defs": {
21116
21411
  "main": {
21117
21412
  "type": "procedure",
21118
- "description": "Tombstone an existing event: the calendar.event record and its config/listing/detail siblings are removed from the event's store. No new record lexicon. Author + authority gated. Idempotent (a missing event returns deleted:false). Confirmed seat-holders are told the event was called off.",
21413
+ "description": "Tombstone an existing event: the calendar.event record and its config/listing/detail siblings are removed from the event's store, and each delete is hinted so a curator following this AppView's stream sees it ahead of the relay; for a public event the call waits up to CURATED_WAIT_MS for the commons' curated copy to go. No new record lexicon. Author + authority gated. Idempotent (a missing event returns deleted:false). Confirmed seat-holders are told the event was called off.",
21119
21414
  "input": {
21120
21415
  "encoding": "application/json",
21121
21416
  "schema": {
@@ -21147,6 +21442,14 @@ export const catalog = {
21147
21442
  "deleted": {
21148
21443
  "type": "boolean",
21149
21444
  "description": "Whether an event was found and tombstoned."
21445
+ },
21446
+ "remaining": {
21447
+ "type": "array",
21448
+ "items": {
21449
+ "type": "string",
21450
+ "format": "at-uri"
21451
+ },
21452
+ "description": "Copies of the event this call could not remove and did not see go within its wait: the commons' curated copy of a public event, in its curator's repo. The curator withdraws it once it sees the delete, unless another source still lists the same event. Omitted when none is left. Reported only by the call that deleted the event; a repeat call (deleted:false) reports none."
21150
21453
  }
21151
21454
  }
21152
21455
  }
@@ -21924,7 +22227,7 @@ export const catalog = {
21924
22227
  "group": "social.scenius",
21925
22228
  "kind": "query",
21926
22229
  "class": "read",
21927
- "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.",
22230
+ "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.",
21928
22231
  "params": [
21929
22232
  {
21930
22233
  "name": "space",
@@ -21965,7 +22268,7 @@ export const catalog = {
21965
22268
  "defs": {
21966
22269
  "main": {
21967
22270
  "type": "query",
21968
- "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.",
22271
+ "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.",
21969
22272
  "parameters": {
21970
22273
  "type": "params",
21971
22274
  "properties": {
@@ -25730,6 +26033,12 @@ export const catalog = {
25730
26033
  "type": "boolean",
25731
26034
  "required": true
25732
26035
  },
26036
+ {
26037
+ "name": "blockedBy",
26038
+ "type": "string<did>",
26039
+ "required": false,
26040
+ "description": "Another account of the caller's person (linked, now or before) whose block this is; absent when the block is the caller's own or there is none. Unblock from that account."
26041
+ },
25733
26042
  {
25734
26043
  "name": "hasYourLink",
25735
26044
  "type": "boolean",
@@ -25796,6 +26105,11 @@ export const catalog = {
25796
26105
  "blocked": {
25797
26106
  "type": "boolean"
25798
26107
  },
26108
+ "blockedBy": {
26109
+ "type": "string",
26110
+ "format": "did",
26111
+ "description": "Another account of the caller's person (linked, now or before) whose block this is; absent when the block is the caller's own or there is none. Unblock from that account."
26112
+ },
25799
26113
  "hasYourLink": {
25800
26114
  "type": "boolean"
25801
26115
  },
@@ -27101,7 +27415,7 @@ export const catalog = {
27101
27415
  "group": "social.scenius",
27102
27416
  "kind": "query",
27103
27417
  "class": "read",
27104
- "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.",
27418
+ "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.",
27105
27419
  "params": [
27106
27420
  {
27107
27421
  "name": "client",
@@ -27122,7 +27436,7 @@ export const catalog = {
27122
27436
  "defs": {
27123
27437
  "main": {
27124
27438
  "type": "query",
27125
- "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.",
27439
+ "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.",
27126
27440
  "parameters": {
27127
27441
  "type": "params",
27128
27442
  "properties": {
@@ -27245,6 +27559,11 @@ export const catalog = {
27245
27559
  "createdAt": {
27246
27560
  "type": "string",
27247
27561
  "format": "datetime"
27562
+ },
27563
+ "blockedBy": {
27564
+ "type": "string",
27565
+ "format": "did",
27566
+ "description": "Another account of the caller's person (linked, now or before) that made this block; absent for the caller's own. Unblock from that account."
27248
27567
  }
27249
27568
  }
27250
27569
  }
@@ -28577,7 +28896,7 @@ export const catalog = {
28577
28896
  "group": "social.scenius",
28578
28897
  "kind": "procedure",
28579
28898
  "class": "write",
28580
- "description": "Invite a subject into a space, at a conferred role, via an opaque single-use claim token — a warm, information-free surface over the invitee's existence (byte-identical `\"sent\"` response regardless of whether the invitee exists, is already a member, or the caller can even see them). The write rule is no-escalation: the caller must hold >= confersRole over the space, read live off claims, or the call is 403 (an authorization failure, distinct from the uniform success surface).",
28899
+ "description": "Invite a subject into a space, at a conferred role, via an opaque single-use claim token — a warm, information-free surface over the invitee's existence (byte-identical `\"sent\"` response regardless of whether the invitee exists, is already a member, or the caller can even see them). The write rule is no-escalation: the caller must hold >= confersRole over the space, read live off claims, and pass the space type's manage leg (the claim is written as the space's authority, so another account linked to the authority never counts as the authority; a role the caller's linked accounts hold in a collective still counts), or the call is 403 (an authorization failure, distinct from the uniform success surface).",
28581
28900
  "input": [
28582
28901
  {
28583
28902
  "name": "space",
@@ -28672,7 +28991,7 @@ export const catalog = {
28672
28991
  "defs": {
28673
28992
  "main": {
28674
28993
  "type": "procedure",
28675
- "description": "Invite a subject into a space, at a conferred role, via an opaque single-use claim token — a warm, information-free surface over the invitee's existence (byte-identical `\"sent\"` response regardless of whether the invitee exists, is already a member, or the caller can even see them). The write rule is no-escalation: the caller must hold >= confersRole over the space, read live off claims, or the call is 403 (an authorization failure, distinct from the uniform success surface).",
28994
+ "description": "Invite a subject into a space, at a conferred role, via an opaque single-use claim token — a warm, information-free surface over the invitee's existence (byte-identical `\"sent\"` response regardless of whether the invitee exists, is already a member, or the caller can even see them). The write rule is no-escalation: the caller must hold >= confersRole over the space, read live off claims, and pass the space type's manage leg (the claim is written as the space's authority, so another account linked to the authority never counts as the authority; a role the caller's linked accounts hold in a collective still counts), or the call is 403 (an authorization failure, distinct from the uniform success surface).",
28676
28995
  "input": {
28677
28996
  "encoding": "application/json",
28678
28997
  "schema": {
@@ -28760,7 +29079,8 @@ export const catalog = {
28760
29079
  "name": "InvalidRequest"
28761
29080
  },
28762
29081
  {
28763
- "name": "NotAuthorized"
29082
+ "name": "NotAuthorized",
29083
+ "description": "The caller holds less than confersRole over the space, or does not pass its manage leg; an account linked to the space's authority does not count as the authority (HTTP 403)."
28764
29084
  }
28765
29085
  ]
28766
29086
  }
@@ -29482,7 +29802,7 @@ export const catalog = {
29482
29802
  "group": "social.scenius",
29483
29803
  "kind": "procedure",
29484
29804
  "class": "write",
29485
- "description": "Operator-only removal of an app's moderated record (one an app registered) and every access/link carrier attached to its space. Closes the named report, or records a closed moderation case when no report ID is supplied. Excluded from every delegable scope class.",
29805
+ "description": "Operator-only removal of an app's moderated record (one an app registered) and every access/link carrier attached to its space. Closes the named report, or records a closed moderation case when no report ID is supplied. Reached only by a call that carries the moderate scope (an operator's sign-in that granted it, or a token such a session minted with it), never by a program's token or another agent token.",
29486
29806
  "input": [
29487
29807
  {
29488
29808
  "name": "subject",
@@ -29521,7 +29841,7 @@ export const catalog = {
29521
29841
  "defs": {
29522
29842
  "main": {
29523
29843
  "type": "procedure",
29524
- "description": "Operator-only removal of an app's moderated record (one an app registered) and every access/link carrier attached to its space. Closes the named report, or records a closed moderation case when no report ID is supplied. Excluded from every delegable scope class.",
29844
+ "description": "Operator-only removal of an app's moderated record (one an app registered) and every access/link carrier attached to its space. Closes the named report, or records a closed moderation case when no report ID is supplied. Reached only by a call that carries the moderate scope (an operator's sign-in that granted it, or a token such a session minted with it), never by a program's token or another agent token.",
29525
29845
  "input": {
29526
29846
  "encoding": "application/json",
29527
29847
  "schema": {
@@ -29568,7 +29888,20 @@ export const catalog = {
29568
29888
  },
29569
29889
  "errors": [
29570
29890
  {
29571
- "name": "NotAuthorized"
29891
+ "name": "AuthenticationRequired",
29892
+ "description": "No signed-in caller."
29893
+ },
29894
+ {
29895
+ "name": "NotAuthorized",
29896
+ "description": "The caller is not an operator, or the call does not carry the moderate scope (HTTP 403)."
29897
+ },
29898
+ {
29899
+ "name": "ProgramRefused",
29900
+ "description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
29901
+ },
29902
+ {
29903
+ "name": "InvalidRequest",
29904
+ "description": "`reason` is not a report reason, `subject` is not a record of a type an app registered for moderation, or `reportId` does not name an open report for this subject (HTTP 400)."
29572
29905
  }
29573
29906
  ]
29574
29907
  }
@@ -30506,7 +30839,7 @@ export const catalog = {
30506
30839
  "group": "social.scenius",
30507
30840
  "kind": "procedure",
30508
30841
  "class": "write",
30509
- "description": "Operator-only. Moves one batch of custodial accounts' records from the old lexicon names to the new ones (the platform's dated mapping of old names to new): per account, lists the records under every old name, puts each under its new name with the same rkey, then deletes the old copy only while it is still the copy that was listed and the same record is under the new name; a record edited on either side is left in place and reported. Idempotent and resumable: pass the returned cursor back for the next batch. dryRun (the default) lists and counts only. Excluded from every delegable scope class.",
30842
+ "description": "Operator-only. Moves one batch of custodial accounts' records from the old lexicon names to the new ones (the platform's dated mapping of old names to new): per account, lists the records under every old name, puts each under its new name with the same rkey, then deletes the old copy only while it is still the copy that was listed and the same record is under the new name; a record edited on either side is left in place and reported. Idempotent and resumable: pass the returned cursor back for the next batch. dryRun (the default) lists and counts only. Reached only by a call that carries the moderate scope (an operator's sign-in that granted it, or a token such a session minted with it), never by a program's token or another agent token.",
30510
30843
  "input": [
30511
30844
  {
30512
30845
  "name": "dryRun",
@@ -30587,7 +30920,7 @@ export const catalog = {
30587
30920
  "defs": {
30588
30921
  "main": {
30589
30922
  "type": "procedure",
30590
- "description": "Operator-only. Moves one batch of custodial accounts' records from the old lexicon names to the new ones (the platform's dated mapping of old names to new): per account, lists the records under every old name, puts each under its new name with the same rkey, then deletes the old copy only while it is still the copy that was listed and the same record is under the new name; a record edited on either side is left in place and reported. Idempotent and resumable: pass the returned cursor back for the next batch. dryRun (the default) lists and counts only. Excluded from every delegable scope class.",
30923
+ "description": "Operator-only. Moves one batch of custodial accounts' records from the old lexicon names to the new ones (the platform's dated mapping of old names to new): per account, lists the records under every old name, puts each under its new name with the same rkey, then deletes the old copy only while it is still the copy that was listed and the same record is under the new name; a record edited on either side is left in place and reported. Idempotent and resumable: pass the returned cursor back for the next batch. dryRun (the default) lists and counts only. Reached only by a call that carries the moderate scope (an operator's sign-in that granted it, or a token such a session minted with it), never by a program's token or another agent token.",
30591
30924
  "input": {
30592
30925
  "encoding": "application/json",
30593
30926
  "schema": {
@@ -30669,7 +31002,16 @@ export const catalog = {
30669
31002
  },
30670
31003
  "errors": [
30671
31004
  {
30672
- "name": "NotAuthorized"
31005
+ "name": "AuthenticationRequired",
31006
+ "description": "No signed-in caller."
31007
+ },
31008
+ {
31009
+ "name": "NotAuthorized",
31010
+ "description": "The caller is not an operator, or the call does not carry the moderate scope (HTTP 403)."
31011
+ },
31012
+ {
31013
+ "name": "ProgramRefused",
31014
+ "description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
30673
31015
  }
30674
31016
  ]
30675
31017
  },
@@ -32108,7 +32450,7 @@ export const catalog = {
32108
32450
  "group": "social.scenius",
32109
32451
  "kind": "procedure",
32110
32452
  "class": "write",
32111
- "description": "Operator-only account suspension. Ejects every live session, revokes agent tokens, and prevents every session-mint lane from signing the DID in again while leaving the phone identity available for rights requests. Excluded from every delegable scope class.",
32453
+ "description": "Operator-only account suspension. Ejects every live session, revokes agent tokens, and prevents every session-mint lane from signing the DID in again while leaving the phone identity available for rights requests. Reached only by a call that carries the moderate scope (an operator's sign-in that granted it, or a token such a session minted with it), never by a program's token or another agent token.",
32112
32454
  "input": [
32113
32455
  {
32114
32456
  "name": "subject",
@@ -32147,7 +32489,7 @@ export const catalog = {
32147
32489
  "defs": {
32148
32490
  "main": {
32149
32491
  "type": "procedure",
32150
- "description": "Operator-only account suspension. Ejects every live session, revokes agent tokens, and prevents every session-mint lane from signing the DID in again while leaving the phone identity available for rights requests. Excluded from every delegable scope class.",
32492
+ "description": "Operator-only account suspension. Ejects every live session, revokes agent tokens, and prevents every session-mint lane from signing the DID in again while leaving the phone identity available for rights requests. Reached only by a call that carries the moderate scope (an operator's sign-in that granted it, or a token such a session minted with it), never by a program's token or another agent token.",
32151
32493
  "input": {
32152
32494
  "encoding": "application/json",
32153
32495
  "schema": {
@@ -32194,7 +32536,20 @@ export const catalog = {
32194
32536
  },
32195
32537
  "errors": [
32196
32538
  {
32197
- "name": "NotAuthorized"
32539
+ "name": "AuthenticationRequired",
32540
+ "description": "No signed-in caller."
32541
+ },
32542
+ {
32543
+ "name": "NotAuthorized",
32544
+ "description": "The caller is not an operator, or the call does not carry the moderate scope (HTTP 403)."
32545
+ },
32546
+ {
32547
+ "name": "ProgramRefused",
32548
+ "description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
32549
+ },
32550
+ {
32551
+ "name": "InvalidRequest",
32552
+ "description": "`reason` is not a report reason, `subject` is not a DID, or `reportId` does not name an open report for this subject (HTTP 400)."
32198
32553
  }
32199
32554
  ]
32200
32555
  }
@@ -32207,7 +32562,7 @@ export const catalog = {
32207
32562
  "group": "social.scenius",
32208
32563
  "kind": "procedure",
32209
32564
  "class": "write",
32210
- "description": "Delete the caller's private block claim for a DID. Previously withdrawn shares and contacts are not restored. Idempotent.",
32565
+ "description": "Delete the caller's private block claims for a DID and every DID ever linked with it. Previously withdrawn shares and contacts are not restored. Idempotent. When a block another account of the caller's person made is left, answers 409 BlockedByOtherAccount (the message names that account; unblock from there).",
32211
32566
  "input": [
32212
32567
  {
32213
32568
  "name": "subject",
@@ -32228,7 +32583,7 @@ export const catalog = {
32228
32583
  "defs": {
32229
32584
  "main": {
32230
32585
  "type": "procedure",
32231
- "description": "Delete the caller's private block claim for a DID. Previously withdrawn shares and contacts are not restored. Idempotent.",
32586
+ "description": "Delete the caller's private block claims for a DID and every DID ever linked with it. Previously withdrawn shares and contacts are not restored. Idempotent. When a block another account of the caller's person made is left, answers 409 BlockedByOtherAccount (the message names that account; unblock from there).",
32232
32587
  "input": {
32233
32588
  "encoding": "application/json",
32234
32589
  "schema": {
@@ -32257,7 +32612,12 @@ export const catalog = {
32257
32612
  }
32258
32613
  }
32259
32614
  }
32260
- }
32615
+ },
32616
+ "errors": [
32617
+ {
32618
+ "name": "BlockedByOtherAccount"
32619
+ }
32620
+ ]
32261
32621
  }
32262
32622
  }
32263
32623
  })
@@ -32867,7 +33227,7 @@ export const catalog = {
32867
33227
  }
32868
33228
  ],
32869
33229
  "counts": {
32870
- "records": 152,
33230
+ "records": 153,
32871
33231
  "spaces": 13,
32872
33232
  "predicates": 9,
32873
33233
  "methods": 127