techne-sdk 0.3.8 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +97 -0
  2. package/README.md +3 -1
  3. package/dist/auth/account.d.ts +67 -0
  4. package/dist/auth/account.js +136 -0
  5. package/dist/auth/hosts.d.ts +4 -0
  6. package/dist/auth/hosts.js +4 -0
  7. package/dist/auth/index.d.ts +30 -5
  8. package/dist/auth/index.js +80 -12
  9. package/dist/catalog/catalog.gen.js +1332 -205
  10. package/dist/generated/index.d.ts +9 -0
  11. package/dist/generated/index.js +27 -0
  12. package/dist/generated/lexicons.d.ts +1797 -227
  13. package/dist/generated/lexicons.js +1147 -224
  14. package/dist/generated/nsid.d.ts +16 -0
  15. package/dist/generated/nsid.js +16 -0
  16. package/dist/generated/nsid.json +16 -0
  17. package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.d.ts +3 -0
  18. package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.js +7 -0
  19. package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +5 -0
  20. package/dist/generated/types/pub/techne/draft/identity/attest.js +7 -0
  21. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +3 -0
  22. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +7 -0
  23. package/dist/generated/types/pub/techne/draft/identity/cancelPendingChange.d.ts +29 -0
  24. package/dist/generated/types/pub/techne/draft/identity/cancelPendingChange.js +27 -0
  25. package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +41 -7
  26. package/dist/generated/types/pub/techne/draft/identity/defs.js +14 -0
  27. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +9 -0
  28. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +14 -0
  29. package/dist/generated/types/pub/techne/draft/identity/fold.d.ts +3 -0
  30. package/dist/generated/types/pub/techne/draft/identity/fold.js +7 -0
  31. package/dist/generated/types/pub/techne/draft/identity/holdForPhone.d.ts +1 -1
  32. package/dist/generated/types/pub/techne/draft/identity/link.d.ts +3 -0
  33. package/dist/generated/types/pub/techne/draft/identity/link.js +7 -0
  34. package/dist/generated/types/pub/techne/draft/identity/listMethods.d.ts +7 -1
  35. package/dist/generated/types/pub/techne/draft/identity/manageMethods.d.ts +267 -0
  36. package/dist/generated/types/pub/techne/draft/identity/manageMethods.js +265 -0
  37. package/dist/generated/types/pub/techne/draft/identity/openAccountPage.d.ts +40 -0
  38. package/dist/generated/types/pub/techne/draft/identity/openAccountPage.js +55 -0
  39. package/dist/generated/types/pub/techne/draft/identity/resolve.d.ts +4 -0
  40. package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.d.ts +6 -0
  41. package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.js +7 -0
  42. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +2 -2
  43. package/dist/generated/types/pub/techne/draft/query/getRecords.d.ts +11 -0
  44. package/dist/generated/types/pub/techne/draft/query/getRecords.js +7 -0
  45. package/dist/generated/types/pub/techne/draft/registry/blockIndex.d.ts +7 -1
  46. package/dist/generated/types/pub/techne/draft/registry/blockIndex.js +17 -3
  47. package/dist/generated/types/pub/techne/draft/registry/purgeType.d.ts +7 -1
  48. package/dist/generated/types/pub/techne/draft/registry/purgeType.js +17 -3
  49. package/dist/query/compose.d.ts +1 -1
  50. package/dist/query/compose.js +1 -1
  51. package/dist/query/index.d.ts +7 -0
  52. package/dist/query/index.js +28 -1
  53. package/dist/versions/react.js +19 -6
  54. package/dist/wasm/techne-wasm.gen.js +1 -1
  55. package/dist/wasm/techne-wasm2js.gen.js +8361 -8359
  56. package/package.json +2 -1
@@ -1120,11 +1120,11 @@ export const catalog = {
1120
1120
  "name": "calendar.event.query",
1121
1121
  "group": "community.lexicon",
1122
1122
  "kind": "queryDocument",
1123
- "description": "Which fields of a calendar event fill the shared query roles. An event that states no end is taken to end two hours after it starts.",
1123
+ "description": "Which fields of a calendar event fill the shared query roles. An event that states no end is taken to end two hours after it starts, except one that starts at a midnight in its own stated offset (the older all-day shape): that one runs to the next midnight in that offset, a day.",
1124
1124
  "doc": ({
1125
1125
  "lexicon": 1,
1126
1126
  "id": "community.lexicon.calendar.event.query",
1127
- "description": "Which fields of a calendar event fill the shared query roles. An event that states no end is taken to end two hours after it starts.",
1127
+ "description": "Which fields of a calendar event fill the shared query roles. An event that states no end is taken to end two hours after it starts, except one that starts at a midnight in its own stated offset (the older all-day shape): that one runs to the next midnight in that offset, a day.",
1128
1128
  "defs": {
1129
1129
  "main": {
1130
1130
  "type": "queryDocument",
@@ -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": [
@@ -3197,14 +3197,14 @@ export const catalog = {
3197
3197
  "name": "draft.commons.moveAccountHandle",
3198
3198
  "group": "pub.techne",
3199
3199
  "kind": "procedure",
3200
- "description": "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only (the caller's DID is one of OPERATOR_DIDS). Keeps the account's label unless `label` is given; updates the handle on the PDS and in the AppView. An account has one valid handle at a time: the previous one is retired, never issued again, and links that carry it redirect to the account's DID route. Everything else already refers to the account by DID and does not change.",
3200
+ "description": "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only: the caller's DID is one of OPERATOR_DIDS and the call carries the moderate scope. Keeps the account's label unless `label` is given; updates the handle on the PDS and in the AppView. An account has one valid handle at a time: the previous one is retired, never issued again, and links that carry it redirect to the account's DID route. Everything else already refers to the account by DID and does not change.",
3201
3201
  "doc": ({
3202
3202
  "lexicon": 1,
3203
3203
  "id": "pub.techne.draft.commons.moveAccountHandle",
3204
3204
  "defs": {
3205
3205
  "main": {
3206
3206
  "type": "procedure",
3207
- "description": "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only (the caller's DID is one of OPERATOR_DIDS). Keeps the account's label unless `label` is given; updates the handle on the PDS and in the AppView. An account has one valid handle at a time: the previous one is retired, never issued again, and links that carry it redirect to the account's DID route. Everything else already refers to the account by DID and does not change.",
3207
+ "description": "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only: the caller's DID is one of OPERATOR_DIDS and the call carries the moderate scope. Keeps the account's label unless `label` is given; updates the handle on the PDS and in the AppView. An account has one valid handle at a time: the previous one is retired, never issued again, and links that carry it redirect to the account's DID route. Everything else already refers to the account by DID and does not change.",
3208
3208
  "input": {
3209
3209
  "encoding": "application/json",
3210
3210
  "schema": {
@@ -3259,7 +3259,11 @@ export const catalog = {
3259
3259
  },
3260
3260
  {
3261
3261
  "name": "NotAuthorized",
3262
- "description": "The caller is not an operator."
3262
+ "description": "The caller is not an operator, or the call does not carry the moderate scope (HTTP 403)."
3263
+ },
3264
+ {
3265
+ "name": "ProgramRefused",
3266
+ "description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
3263
3267
  },
3264
3268
  {
3265
3269
  "name": "InvalidRequest",
@@ -3711,7 +3715,7 @@ export const catalog = {
3711
3715
  "group": "pub.techne",
3712
3716
  "kind": "record",
3713
3717
  "key": "any",
3714
- "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.",
3715
3719
  "fields": [
3716
3720
  {
3717
3721
  "name": "subject",
@@ -3745,7 +3749,7 @@ export const catalog = {
3745
3749
  "main": {
3746
3750
  "type": "record",
3747
3751
  "key": "any",
3748
- "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.",
3749
3753
  "record": {
3750
3754
  "type": "object",
3751
3755
  "required": [
@@ -4075,7 +4079,7 @@ export const catalog = {
4075
4079
  "group": "pub.techne",
4076
4080
  "kind": "record",
4077
4081
  "key": "any",
4078
- "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.",
4079
4083
  "fields": [
4080
4084
  {
4081
4085
  "name": "subject",
@@ -4177,7 +4181,7 @@ export const catalog = {
4177
4181
  "main": {
4178
4182
  "type": "record",
4179
4183
  "key": "any",
4180
- "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.",
4181
4185
  "record": {
4182
4186
  "type": "object",
4183
4187
  "required": [
@@ -4381,7 +4385,7 @@ export const catalog = {
4381
4385
  "group": "pub.techne",
4382
4386
  "kind": "record",
4383
4387
  "key": "any",
4384
- "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.",
4385
4389
  "fields": [
4386
4390
  {
4387
4391
  "name": "subject",
@@ -4410,7 +4414,7 @@ export const catalog = {
4410
4414
  "main": {
4411
4415
  "type": "record",
4412
4416
  "key": "any",
4413
- "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.",
4414
4418
  "record": {
4415
4419
  "type": "object",
4416
4420
  "required": [
@@ -4453,7 +4457,7 @@ export const catalog = {
4453
4457
  "group": "pub.techne",
4454
4458
  "kind": "record",
4455
4459
  "key": "any",
4456
- "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.",
4457
4461
  "fields": [
4458
4462
  {
4459
4463
  "name": "subject",
@@ -4481,7 +4485,7 @@ export const catalog = {
4481
4485
  "main": {
4482
4486
  "type": "record",
4483
4487
  "key": "any",
4484
- "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.",
4485
4489
  "record": {
4486
4490
  "type": "object",
4487
4491
  "required": [
@@ -5113,7 +5117,7 @@ export const catalog = {
5113
5117
  "group": "pub.techne",
5114
5118
  "kind": "record",
5115
5119
  "key": "any",
5116
- "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.",
5117
5121
  "fields": [
5118
5122
  {
5119
5123
  "name": "subject",
@@ -5148,7 +5152,7 @@ export const catalog = {
5148
5152
  "main": {
5149
5153
  "type": "record",
5150
5154
  "key": "any",
5151
- "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.",
5152
5156
  "record": {
5153
5157
  "type": "object",
5154
5158
  "required": [
@@ -5195,7 +5199,7 @@ export const catalog = {
5195
5199
  "group": "pub.techne",
5196
5200
  "kind": "record",
5197
5201
  "key": "any",
5198
- "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.",
5199
5203
  "fields": [
5200
5204
  {
5201
5205
  "name": "subject",
@@ -5229,7 +5233,7 @@ export const catalog = {
5229
5233
  "main": {
5230
5234
  "type": "record",
5231
5235
  "key": "any",
5232
- "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.",
5233
5237
  "record": {
5234
5238
  "type": "object",
5235
5239
  "required": [
@@ -5385,14 +5389,14 @@ export const catalog = {
5385
5389
  "name": "draft.identity.attest",
5386
5390
  "group": "pub.techne",
5387
5391
  "kind": "procedure",
5388
- "description": "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. It never moves a bound channel, never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
5392
+ "description": "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. A phone it binds or re-binds releases the invitations and holds waiting on that number to the account (as a sign-in on the platform does). It never moves a bound channel, never signs in a frozen method (`MethodFrozen`), never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
5389
5393
  "doc": ({
5390
5394
  "lexicon": 1,
5391
5395
  "id": "pub.techne.draft.identity.attest",
5392
5396
  "defs": {
5393
5397
  "main": {
5394
5398
  "type": "procedure",
5395
- "description": "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. It never moves a bound channel, never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
5399
+ "description": "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. A phone it binds or re-binds releases the invitations and holds waiting on that number to the account (as a sign-in on the platform does). It never moves a bound channel, never signs in a frozen method (`MethodFrozen`), never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
5396
5400
  "input": {
5397
5401
  "encoding": "application/json",
5398
5402
  "schema": {
@@ -5427,6 +5431,10 @@ export const catalog = {
5427
5431
  "newAccount": {
5428
5432
  "type": "boolean",
5429
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)."
5430
5438
  }
5431
5439
  }
5432
5440
  }
@@ -5477,6 +5485,10 @@ export const catalog = {
5477
5485
  "name": "ChannelReleased",
5478
5486
  "description": "The account named by `did` removed this phone number (identity.unlinkMethod) and nobody has bound it since (HTTP 409). Never retried: the account gets the number back only by adding it again (identity.finishAddMethod)."
5479
5487
  },
5488
+ {
5489
+ "name": "MethodFrozen",
5490
+ "description": "This channel is a frozen method of the account (identity.manageMethods `freeze`; HTTP 403): it does not sign in until the freeze ends. Not retried."
5491
+ },
5480
5492
  {
5481
5493
  "name": "RateLimitExceeded",
5482
5494
  "description": "As identity.resolve (HTTP 429)."
@@ -5548,6 +5560,10 @@ export const catalog = {
5548
5560
  "name": "RateLimitExceeded",
5549
5561
  "description": "Too many codes sent to this address (HTTP 429)."
5550
5562
  },
5563
+ {
5564
+ "name": "MethodFrozen",
5565
+ "description": "The channel is a frozen sign-in method of an account (HTTP 403); it can't be proved anywhere until the freeze ends."
5566
+ },
5551
5567
  {
5552
5568
  "name": "SendFailed",
5553
5569
  "description": "The code could not be texted to that phone number (HTTP 502). Try again."
@@ -5557,6 +5573,62 @@ export const catalog = {
5557
5573
  }
5558
5574
  })
5559
5575
  },
5576
+ {
5577
+ "nsid": "pub.techne.draft.identity.cancelPendingChange",
5578
+ "name": "draft.identity.cancelPendingChange",
5579
+ "group": "pub.techne",
5580
+ "kind": "procedure",
5581
+ "description": "Cancel one of the caller's pending sign-in changes (a method removal, an account deletion or a first recovery mark that waits; its `id` is the `pending` identity.listMethods, identity.unlinkMethod or deleteAccount answered), by the sign-in method rules: any of the account's methods may cancel a wait, so a signed-in session may, with no step-up. For an account whose PDS has no account page of its own; the identity PDS cancels through identity.manageMethods `cancel`. A frozen method may cancel too, its own removal included. Nothing else changes.",
5582
+ "doc": ({
5583
+ "lexicon": 1,
5584
+ "id": "pub.techne.draft.identity.cancelPendingChange",
5585
+ "defs": {
5586
+ "main": {
5587
+ "type": "procedure",
5588
+ "description": "Cancel one of the caller's pending sign-in changes (a method removal, an account deletion or a first recovery mark that waits; its `id` is the `pending` identity.listMethods, identity.unlinkMethod or deleteAccount answered), by the sign-in method rules: any of the account's methods may cancel a wait, so a signed-in session may, with no step-up. For an account whose PDS has no account page of its own; the identity PDS cancels through identity.manageMethods `cancel`. A frozen method may cancel too, its own removal included. Nothing else changes.",
5589
+ "input": {
5590
+ "encoding": "application/json",
5591
+ "schema": {
5592
+ "type": "object",
5593
+ "required": [
5594
+ "id"
5595
+ ],
5596
+ "properties": {
5597
+ "id": {
5598
+ "type": "string",
5599
+ "maxLength": 64
5600
+ }
5601
+ }
5602
+ }
5603
+ },
5604
+ "output": {
5605
+ "encoding": "application/json",
5606
+ "schema": {
5607
+ "type": "object",
5608
+ "required": [
5609
+ "ok"
5610
+ ],
5611
+ "properties": {
5612
+ "ok": {
5613
+ "type": "boolean"
5614
+ }
5615
+ }
5616
+ }
5617
+ },
5618
+ "errors": [
5619
+ {
5620
+ "name": "AuthenticationRequired",
5621
+ "description": "No signed-in caller."
5622
+ },
5623
+ {
5624
+ "name": "NotFound",
5625
+ "description": "No such pending change on the caller's account, or it already completed or was cancelled."
5626
+ }
5627
+ ]
5628
+ }
5629
+ }
5630
+ })
5631
+ },
5560
5632
  {
5561
5633
  "nsid": "pub.techne.draft.identity.checkLinkToken",
5562
5634
  "name": "draft.identity.checkLinkToken",
@@ -5699,14 +5771,14 @@ export const catalog = {
5699
5771
  "name": "draft.identity.createLinkToken",
5700
5772
  "group": "pub.techne",
5701
5773
  "kind": "procedure",
5702
- "description": "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot, exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.",
5774
+ "description": "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot (and their name in every \"$name\" slot), exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. A pub.techne.draft.contact grant is likewise not made when any active contact of `actAs` already names the redeemer, by its `did` or by a saved number that resolves to them (an archived one does not count), so a grant like {name: \"$name\", did: \"$subject\"} adds each person to the owner's People once. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.",
5703
5775
  "doc": ({
5704
5776
  "lexicon": 1,
5705
5777
  "id": "pub.techne.draft.identity.createLinkToken",
5706
5778
  "defs": {
5707
5779
  "main": {
5708
5780
  "type": "procedure",
5709
- "description": "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot, exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.",
5781
+ "description": "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot (and their name in every \"$name\" slot), exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. A pub.techne.draft.contact grant is likewise not made when any active contact of `actAs` already names the redeemer, by its `did` or by a saved number that resolves to them (an archived one does not count), so a grant like {name: \"$name\", did: \"$subject\"} adds each person to the owner's People once. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.",
5710
5782
  "input": {
5711
5783
  "encoding": "application/json",
5712
5784
  "schema": {
@@ -5821,7 +5893,7 @@ export const catalog = {
5821
5893
  },
5822
5894
  "methodView": {
5823
5895
  "type": "object",
5824
- "description": "One sign-in method bound to 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.",
5825
5897
  "required": [
5826
5898
  "bid",
5827
5899
  "type",
@@ -5832,32 +5904,95 @@ export const catalog = {
5832
5904
  "bid": {
5833
5905
  "type": "string",
5834
5906
  "maxLength": 64,
5835
- "description": "The binding id (the credential's record key). Names the method in unlinkMethod."
5907
+ "description": "The method's id: the binding id (the credential's record key) of an email or phone, else the platform's id for it. Names the method in unlinkMethod and manageMethods."
5836
5908
  },
5837
5909
  "type": {
5838
5910
  "type": "string",
5839
5911
  "knownValues": [
5840
5912
  "email",
5841
- "phone"
5913
+ "phone",
5914
+ "passkey",
5915
+ "nostr",
5916
+ "recoveryCodes"
5842
5917
  ]
5843
5918
  },
5844
5919
  "masked": {
5845
5920
  "type": "string",
5846
5921
  "maxLength": 320,
5847
- "description": "The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`."
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)`."
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."
5848
5928
  },
5849
5929
  "boundAt": {
5850
5930
  "type": "string",
5851
5931
  "format": "datetime"
5932
+ },
5933
+ "recovery": {
5934
+ "type": "boolean",
5935
+ "description": "A recovery method of this account. Private: only the account sees it."
5936
+ },
5937
+ "frozenUntil": {
5938
+ "type": "string",
5939
+ "format": "datetime",
5940
+ "description": "Frozen: it signs in nowhere until then, or until a recovery method lifts it."
5941
+ },
5942
+ "programs": {
5943
+ "type": "boolean",
5944
+ "description": "\"Programs can sign in with this key\" (identity.manageMethods setPrograms). Present on the types that support it (a Nostr key), off by default. Never on for a recovery method."
5945
+ }
5946
+ }
5947
+ },
5948
+ "pendingChange": {
5949
+ "type": "object",
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.",
5951
+ "required": [
5952
+ "id",
5953
+ "kind",
5954
+ "createdAt",
5955
+ "dueAt"
5956
+ ],
5957
+ "properties": {
5958
+ "id": {
5959
+ "type": "string",
5960
+ "maxLength": 64
5961
+ },
5962
+ "kind": {
5963
+ "type": "string",
5964
+ "knownValues": [
5965
+ "removeMethod",
5966
+ "deleteAccount",
5967
+ "markRecovery",
5968
+ "moveMethod"
5969
+ ]
5970
+ },
5971
+ "method": {
5972
+ "type": "string",
5973
+ "maxLength": 64,
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."
5980
+ },
5981
+ "createdAt": {
5982
+ "type": "string",
5983
+ "format": "datetime"
5984
+ },
5985
+ "dueAt": {
5986
+ "type": "string",
5987
+ "format": "datetime"
5852
5988
  }
5853
5989
  }
5854
5990
  },
5855
5991
  "linkView": {
5856
5992
  "type": "object",
5857
- "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.",
5858
5994
  "required": [
5859
5995
  "did",
5860
- "primary",
5861
5996
  "mutual"
5862
5997
  ],
5863
5998
  "properties": {
@@ -5870,13 +6005,37 @@ export const catalog = {
5870
6005
  "type": "string",
5871
6006
  "format": "handle"
5872
6007
  },
5873
- "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": {
5874
6027
  "type": "string",
5875
6028
  "format": "did"
5876
6029
  },
5877
- "mutual": {
5878
- "type": "boolean",
5879
- "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`."
5880
6039
  }
5881
6040
  }
5882
6041
  },
@@ -5981,14 +6140,14 @@ export const catalog = {
5981
6140
  "name": "draft.identity.finishAddMethod",
5982
6141
  "group": "pub.techne",
5983
6142
  "kind": "procedure",
5984
- "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.",
5985
6144
  "doc": ({
5986
6145
  "lexicon": 1,
5987
6146
  "id": "pub.techne.draft.identity.finishAddMethod",
5988
6147
  "defs": {
5989
6148
  "main": {
5990
6149
  "type": "procedure",
5991
- "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.",
5992
6151
  "input": {
5993
6152
  "encoding": "application/json",
5994
6153
  "schema": {
@@ -6028,11 +6187,17 @@ export const catalog = {
6028
6187
  },
6029
6188
  "method": {
6030
6189
  "type": "ref",
6031
- "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)."
6032
6192
  },
6033
6193
  "offer": {
6034
6194
  "type": "ref",
6035
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`)."
6036
6201
  }
6037
6202
  }
6038
6203
  }
@@ -6050,6 +6215,14 @@ export const catalog = {
6050
6215
  "name": "RateLimitExceeded",
6051
6216
  "description": "A phone code: the provider that sent it is refusing more checks for this number for now (HTTP 429). Wait a few minutes."
6052
6217
  },
6218
+ {
6219
+ "name": "MethodFrozen",
6220
+ "description": "The channel was frozen on its account since the code was sent, or it would be new to the caller's account while one of its methods is frozen (HTTP 403)."
6221
+ },
6222
+ {
6223
+ "name": "ProtectedAccount",
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`)."
6225
+ },
6053
6226
  {
6054
6227
  "name": "UpstreamFailure",
6055
6228
  "description": "A phone code: the provider that sent it could not be asked whether it matches (HTTP 502). The code is not spent; try again."
@@ -6070,7 +6243,8 @@ export const catalog = {
6070
6243
  "knownValues": [
6071
6244
  "fold",
6072
6245
  "link"
6073
- ]
6246
+ ],
6247
+ "description": "`fold`. (`link` is retired and no longer offered.)"
6074
6248
  },
6075
6249
  "token": {
6076
6250
  "type": "string",
@@ -6161,6 +6335,10 @@ export const catalog = {
6161
6335
  "name": "InvalidToken",
6162
6336
  "description": "The token is unknown, used, expired, or was issued to another session."
6163
6337
  },
6338
+ {
6339
+ "name": "ProtectedAccount",
6340
+ "description": "One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409)."
6341
+ },
6164
6342
  {
6165
6343
  "name": "NotEmpty",
6166
6344
  "description": "The account to fold gained a record or is 7 days old or more; link instead."
@@ -6175,14 +6353,14 @@ export const catalog = {
6175
6353
  "name": "draft.identity.holdForPhone",
6176
6354
  "group": "pub.techne",
6177
6355
  "kind": "procedure",
6178
- "description": "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID and every value exactly \"$now\" in the record with the time, and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.",
6356
+ "description": "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID, every value exactly \"$now\" in the record with the time and every value exactly \"$name\" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.",
6179
6357
  "doc": ({
6180
6358
  "lexicon": 1,
6181
6359
  "id": "pub.techne.draft.identity.holdForPhone",
6182
6360
  "defs": {
6183
6361
  "main": {
6184
6362
  "type": "procedure",
6185
- "description": "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID and every value exactly \"$now\" in the record with the time, and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.",
6363
+ "description": "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID, every value exactly \"$now\" in the record with the time and every value exactly \"$name\" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.",
6186
6364
  "input": {
6187
6365
  "encoding": "application/json",
6188
6366
  "schema": {
@@ -6267,7 +6445,7 @@ export const catalog = {
6267
6445
  },
6268
6446
  "record": {
6269
6447
  "type": "unknown",
6270
- "description": "The record, with the \"$subject\" (and optionally \"$now\") slots as string values."
6448
+ "description": "The record, with the \"$subject\" (and optionally \"$now\" and \"$name\") slots as string values."
6271
6449
  }
6272
6450
  }
6273
6451
  }
@@ -6279,14 +6457,14 @@ export const catalog = {
6279
6457
  "name": "draft.identity.link",
6280
6458
  "group": "pub.techne",
6281
6459
  "kind": "procedure",
6282
- "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.",
6283
6461
  "doc": ({
6284
6462
  "lexicon": 1,
6285
6463
  "id": "pub.techne.draft.identity.link",
6286
6464
  "defs": {
6287
6465
  "main": {
6288
6466
  "type": "procedure",
6289
- "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.",
6290
6468
  "input": {
6291
6469
  "encoding": "application/json",
6292
6470
  "schema": {
@@ -6332,9 +6510,13 @@ export const catalog = {
6332
6510
  "name": "InvalidToken",
6333
6511
  "description": "The token is unknown, used, expired, or was issued to another session."
6334
6512
  },
6513
+ {
6514
+ "name": "ProtectedAccount",
6515
+ "description": "One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409)."
6516
+ },
6335
6517
  {
6336
6518
  "name": "InvalidRequest",
6337
- "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)."
6338
6520
  }
6339
6521
  ]
6340
6522
  }
@@ -6690,14 +6872,23 @@ export const catalog = {
6690
6872
  "name": "draft.identity.listMethods",
6691
6873
  "group": "pub.techne",
6692
6874
  "kind": "query",
6693
- "description": "The caller's sign-in methods (masked) and the account's alias links. 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.",
6694
6876
  "doc": ({
6695
6877
  "lexicon": 1,
6696
6878
  "id": "pub.techne.draft.identity.listMethods",
6697
6879
  "defs": {
6698
6880
  "main": {
6699
6881
  "type": "query",
6700
- "description": "The caller's sign-in methods (masked) and the account's alias links. 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.",
6883
+ "parameters": {
6884
+ "type": "params",
6885
+ "properties": {
6886
+ "allTypes": {
6887
+ "type": "boolean",
6888
+ "description": "Also list passkeys, Nostr keys and the recovery-code set."
6889
+ }
6890
+ }
6891
+ },
6701
6892
  "output": {
6702
6893
  "encoding": "application/json",
6703
6894
  "schema": {
@@ -6716,10 +6907,19 @@ export const catalog = {
6716
6907
  },
6717
6908
  "links": {
6718
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.",
6719
6911
  "items": {
6720
6912
  "type": "ref",
6721
6913
  "ref": "pub.techne.draft.identity.defs#linkView"
6722
6914
  }
6915
+ },
6916
+ "pending": {
6917
+ "type": "array",
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.",
6919
+ "items": {
6920
+ "type": "ref",
6921
+ "ref": "pub.techne.draft.identity.defs#pendingChange"
6922
+ }
6723
6923
  }
6724
6924
  }
6725
6925
  }
@@ -6742,110 +6942,843 @@ export const catalog = {
6742
6942
  "description": "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.",
6743
6943
  "doc": ({
6744
6944
  "lexicon": 1,
6745
- "id": "pub.techne.draft.identity.listPhoneHolds",
6945
+ "id": "pub.techne.draft.identity.listPhoneHolds",
6946
+ "defs": {
6947
+ "main": {
6948
+ "type": "query",
6949
+ "description": "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.",
6950
+ "parameters": {
6951
+ "type": "params",
6952
+ "required": [
6953
+ "actAs"
6954
+ ],
6955
+ "properties": {
6956
+ "actAs": {
6957
+ "type": "string",
6958
+ "format": "did"
6959
+ },
6960
+ "alsoActAs": {
6961
+ "type": "array",
6962
+ "maxLength": 99,
6963
+ "description": "More accounts whose holds to list in the same call, after `actAs` (repeat the parameter).",
6964
+ "items": {
6965
+ "type": "string",
6966
+ "format": "did"
6967
+ }
6968
+ }
6969
+ }
6970
+ },
6971
+ "output": {
6972
+ "encoding": "application/json",
6973
+ "schema": {
6974
+ "type": "object",
6975
+ "required": [
6976
+ "holds"
6977
+ ],
6978
+ "properties": {
6979
+ "holds": {
6980
+ "type": "array",
6981
+ "items": {
6982
+ "type": "ref",
6983
+ "ref": "#holdView"
6984
+ }
6985
+ }
6986
+ }
6987
+ }
6988
+ },
6989
+ "errors": [
6990
+ {
6991
+ "name": "InvalidRequest",
6992
+ "description": "HTTP 400: `actAs` or one of `alsoActAs` is not a DID, or more than 99 `alsoActAs`."
6993
+ },
6994
+ {
6995
+ "name": "Forbidden",
6996
+ "description": "HTTP 403: the caller may not write as `actAs` (with `alsoActAs`: as any of them)."
6997
+ }
6998
+ ]
6999
+ },
7000
+ "holdView": {
7001
+ "type": "object",
7002
+ "required": [
7003
+ "id",
7004
+ "askedBy",
7005
+ "collection",
7006
+ "record",
7007
+ "createdAt"
7008
+ ],
7009
+ "properties": {
7010
+ "id": {
7011
+ "type": "string"
7012
+ },
7013
+ "actAs": {
7014
+ "type": "string",
7015
+ "format": "did",
7016
+ "description": "The account the hold would write as."
7017
+ },
7018
+ "askedBy": {
7019
+ "type": "string",
7020
+ "format": "did"
7021
+ },
7022
+ "app": {
7023
+ "type": "string"
7024
+ },
7025
+ "collection": {
7026
+ "type": "string",
7027
+ "format": "nsid"
7028
+ },
7029
+ "rkey": {
7030
+ "type": "string",
7031
+ "description": "The record key template."
7032
+ },
7033
+ "space": {
7034
+ "type": "string"
7035
+ },
7036
+ "record": {
7037
+ "type": "unknown",
7038
+ "description": "The record template, slots unfilled."
7039
+ },
7040
+ "createdAt": {
7041
+ "type": "string",
7042
+ "format": "datetime"
7043
+ },
7044
+ "name": {
7045
+ "type": "string",
7046
+ "description": "On a hold the caller asked for, the name the caller saved for its number: the `name` of the caller's own active `contact` on that number (the newest, when there are several), read when the listing is made. Never on a hold someone else asked for, and nothing of it is stored on the hold."
7047
+ }
7048
+ }
7049
+ }
7050
+ }
7051
+ })
7052
+ },
7053
+ {
7054
+ "nsid": "pub.techne.draft.identity.manageMethods",
7055
+ "name": "draft.identity.manageMethods",
7056
+ "group": "pub.techne",
7057
+ "kind": "procedure",
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.",
7059
+ "doc": ({
7060
+ "lexicon": 1,
7061
+ "id": "pub.techne.draft.identity.manageMethods",
7062
+ "defs": {
7063
+ "main": {
7064
+ "type": "procedure",
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.",
7066
+ "input": {
7067
+ "encoding": "application/json",
7068
+ "schema": {
7069
+ "type": "object",
7070
+ "required": [
7071
+ "v",
7072
+ "op"
7073
+ ],
7074
+ "properties": {
7075
+ "v": {
7076
+ "type": "integer",
7077
+ "const": 1
7078
+ },
7079
+ "op": {
7080
+ "type": "string",
7081
+ "knownValues": [
7082
+ "list",
7083
+ "signInMethods",
7084
+ "sendTo",
7085
+ "remove",
7086
+ "cancel",
7087
+ "freeze",
7088
+ "unfreeze",
7089
+ "mark",
7090
+ "unmark",
7091
+ "signOut",
7092
+ "delete",
7093
+ "addExternal",
7094
+ "newRecoveryCodes",
7095
+ "redeemCode",
7096
+ "setPrograms",
7097
+ "importBackupEmails",
7098
+ "findKey",
7099
+ "notices",
7100
+ "noticesSent",
7101
+ "dueDeletes",
7102
+ "dueDeletesDone",
7103
+ "addChannel",
7104
+ "fold",
7105
+ "link",
7106
+ "moveMethod",
7107
+ "unlink",
7108
+ "operator"
7109
+ ],
7110
+ "description": "The op. `link` is retired: it answers 400 InvalidRequest; `moveMethod` links two accounts now."
7111
+ },
7112
+ "did": {
7113
+ "type": "string",
7114
+ "format": "did",
7115
+ "description": "The signed-in account. Required for every op but `notices`, `noticesSent`, `dueDeletes` and `dueDeletesDone`."
7116
+ },
7117
+ "stepUp": {
7118
+ "type": "ref",
7119
+ "ref": "#stepUp"
7120
+ },
7121
+ "method": {
7122
+ "type": "string",
7123
+ "maxLength": 64,
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."
7125
+ },
7126
+ "pending": {
7127
+ "type": "string",
7128
+ "maxLength": 64,
7129
+ "description": "The pending change `cancel` cancels."
7130
+ },
7131
+ "signOut": {
7132
+ "type": "boolean",
7133
+ "description": "With `freeze`: also sign out everywhere."
7134
+ },
7135
+ "external": {
7136
+ "type": "ref",
7137
+ "ref": "#external"
7138
+ },
7139
+ "code": {
7140
+ "type": "string",
7141
+ "maxLength": 64,
7142
+ "description": "A recovery code, for `redeemCode`."
7143
+ },
7144
+ "ids": {
7145
+ "type": "array",
7146
+ "maxLength": 100,
7147
+ "items": {
7148
+ "type": "integer"
7149
+ },
7150
+ "description": "Unused, kept for older clients: notice ids for `noticesSent`, which confirms none."
7151
+ },
7152
+ "emails": {
7153
+ "type": "array",
7154
+ "maxLength": 10,
7155
+ "items": {
7156
+ "type": "string",
7157
+ "maxLength": 320
7158
+ },
7159
+ "description": "Retired, not read: a bare list has no verification dates, so the cutoff can't hold. importBackupEmails without `backupEmails` is 400 InvalidRequest."
7160
+ },
7161
+ "backupEmails": {
7162
+ "type": "array",
7163
+ "maxLength": 10,
7164
+ "items": {
7165
+ "type": "ref",
7166
+ "ref": "#backupEmail"
7167
+ },
7168
+ "description": "importBackupEmails: the account's verified backup email addresses, all of them, each with when the PDS verified it."
7169
+ },
7170
+ "dids": {
7171
+ "type": "array",
7172
+ "maxLength": 100,
7173
+ "items": {
7174
+ "type": "string",
7175
+ "format": "did"
7176
+ },
7177
+ "description": "dueDeletesDone: the accounts whose PDS account was deleted."
7178
+ },
7179
+ "channel": {
7180
+ "type": "ref",
7181
+ "ref": "pub.techne.draft.identity.defs#channel",
7182
+ "description": "addChannel: the email or phone the PDS just proved (a code it sent and checked)."
7183
+ },
7184
+ "token": {
7185
+ "type": "string",
7186
+ "maxLength": 128,
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."
7203
+ },
7204
+ "primary": {
7205
+ "type": "string",
7206
+ "format": "did",
7207
+ "description": "Retired, not read: it was the retired `link` op's primary account. Linked accounts have no primary."
7208
+ },
7209
+ "on": {
7210
+ "type": "boolean",
7211
+ "description": "setPrograms: on or off."
7212
+ },
7213
+ "program": {
7214
+ "type": "boolean",
7215
+ "description": "A program made this request: a session or token the PDS's programmatic sign-in opened. Account security is refused (ProgramRefused)."
7216
+ }
7217
+ }
7218
+ }
7219
+ },
7220
+ "output": {
7221
+ "encoding": "application/json",
7222
+ "schema": {
7223
+ "type": "object",
7224
+ "required": [
7225
+ "v"
7226
+ ],
7227
+ "properties": {
7228
+ "v": {
7229
+ "type": "integer",
7230
+ "const": 1
7231
+ },
7232
+ "status": {
7233
+ "type": "string",
7234
+ "knownValues": [
7235
+ "done",
7236
+ "pending",
7237
+ "deleted",
7238
+ "deleting",
7239
+ "bound",
7240
+ "invalid",
7241
+ "hasRecovery",
7242
+ "indexOff",
7243
+ "alreadyImported",
7244
+ "added",
7245
+ "alreadyYours",
7246
+ "boundElsewhere",
7247
+ "unavailable",
7248
+ "folded",
7249
+ "linked",
7250
+ "none"
7251
+ ],
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."
7253
+ },
7254
+ "pending": {
7255
+ "type": "ref",
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."
7263
+ },
7264
+ "method": {
7265
+ "type": "string",
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)."
7267
+ },
7268
+ "codes": {
7269
+ "type": "array",
7270
+ "items": {
7271
+ "type": "string"
7272
+ },
7273
+ "description": "newRecoveryCodes: the codes, shown once."
7274
+ },
7275
+ "methods": {
7276
+ "type": "array",
7277
+ "items": {
7278
+ "type": "ref",
7279
+ "ref": "pub.techne.draft.identity.defs#methodView"
7280
+ },
7281
+ "description": "list: the account's methods (`value` on emails and phones; see defs#methodView)."
7282
+ },
7283
+ "hasRecovery": {
7284
+ "type": "boolean"
7285
+ },
7286
+ "notices": {
7287
+ "type": "array",
7288
+ "items": {
7289
+ "type": "ref",
7290
+ "ref": "#notice"
7291
+ },
7292
+ "description": "Unused, kept for older clients: always empty. The platform emails every notice itself."
7293
+ },
7294
+ "count": {
7295
+ "type": "integer",
7296
+ "description": "dueDeletesDone: how many were confirmed. noticesSent (unused, kept for older clients): always 0."
7297
+ },
7298
+ "signInMethods": {
7299
+ "type": "array",
7300
+ "items": {
7301
+ "type": "ref",
7302
+ "ref": "#signInMethod"
7303
+ },
7304
+ "description": "signInMethods: the account's methods that can sign in now (not frozen), oldest first."
7305
+ },
7306
+ "to": {
7307
+ "type": "ref",
7308
+ "ref": "#noticeTo",
7309
+ "description": "sendTo: where the code goes, in full."
7310
+ },
7311
+ "imported": {
7312
+ "type": "array",
7313
+ "items": {
7314
+ "type": "ref",
7315
+ "ref": "#importedEmail"
7316
+ },
7317
+ "description": "importBackupEmails: each address sent, with what happened to it."
7318
+ },
7319
+ "dueDeletes": {
7320
+ "type": "array",
7321
+ "items": {
7322
+ "type": "ref",
7323
+ "ref": "#dueDelete"
7324
+ },
7325
+ "description": "dueDeletes: accounts to delete on the PDS, oldest first."
7326
+ },
7327
+ "offer": {
7328
+ "type": "ref",
7329
+ "ref": "pub.techne.draft.identity.finishAddMethod#offer",
7330
+ "description": "addChannel `boundElsewhere`: what `did` can do, with `fold` or `link`."
7331
+ },
7332
+ "did": {
7333
+ "type": "string",
7334
+ "format": "did",
7335
+ "description": "fold: the kept account. findKey: the account the key signs in to."
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
+ },
7350
+ "emptied": {
7351
+ "type": "string",
7352
+ "format": "did",
7353
+ "description": "fold: the account folded in and deleted."
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
+ },
7363
+ "link": {
7364
+ "type": "ref",
7365
+ "ref": "pub.techne.draft.identity.defs#linkView",
7366
+ "description": "Retired: the retired `link` op's answer."
7367
+ },
7368
+ "frozen": {
7369
+ "type": "boolean",
7370
+ "description": "findKey: the key's method is frozen now and can't sign in."
7371
+ },
7372
+ "programs": {
7373
+ "type": "boolean",
7374
+ "description": "findKey: \"Programs can sign in with this key\" is on."
7375
+ },
7376
+ "operator": {
7377
+ "type": "boolean",
7378
+ "description": "operator: whether `did` is one of the platform's operators."
7379
+ }
7380
+ }
7381
+ }
7382
+ },
7383
+ "errors": [
7384
+ {
7385
+ "name": "BadSignature"
7386
+ },
7387
+ {
7388
+ "name": "InvalidRequest"
7389
+ },
7390
+ {
7391
+ "name": "UnknownAccount"
7392
+ },
7393
+ {
7394
+ "name": "RateLimitExceeded"
7395
+ },
7396
+ {
7397
+ "name": "Unavailable",
7398
+ "description": "Try again (`redeemCode` and `newRecoveryCodes` also while the platform's identity keys are not loaded)."
7399
+ },
7400
+ {
7401
+ "name": "NotFound",
7402
+ "description": "No such method or pending change on the account (moveMethod: `from` has no such method)."
7403
+ },
7404
+ {
7405
+ "name": "NotYourMethod",
7406
+ "description": "The step-up names a method that is not the account's."
7407
+ },
7408
+ {
7409
+ "name": "LastMethod",
7410
+ "description": "It would leave no way to sign in (unlink: the method handed to `other` is `did`'s only one)."
7411
+ },
7412
+ {
7413
+ "name": "RecoveryProtected",
7414
+ "description": "Only a recovery method can do this to a recovery method (moveMethod: of `from`; unlink: of `did`)."
7415
+ },
7416
+ {
7417
+ "name": "NeedsRecoveryMethod",
7418
+ "description": "Needs a fresh step-up of a recovery method (unlink: or of the method handed to `other` itself)."
7419
+ },
7420
+ {
7421
+ "name": "StepUpRequired",
7422
+ "description": "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold`, `moveMethod` and `unlink` included)."
7423
+ },
7424
+ {
7425
+ "name": "SameMethod",
7426
+ "description": "A method cannot freeze itself."
7427
+ },
7428
+ {
7429
+ "name": "MethodFrozen",
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)."
7431
+ },
7432
+ {
7433
+ "name": "InvalidToken",
7434
+ "description": "fold: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook."
7435
+ },
7436
+ {
7437
+ "name": "ProtectedAccount",
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)."
7439
+ },
7440
+ {
7441
+ "name": "NotEmpty",
7442
+ "description": "fold: the account to fold gained a record or is 7 days old or more; link it with `moveMethod` instead (HTTP 409)."
7443
+ },
7444
+ {
7445
+ "name": "ProgramRefused",
7446
+ "description": "A program asked (`program`, or a step-up by a key with programs on): account security needs a person on a method no program holds."
7447
+ },
7448
+ {
7449
+ "name": "ProgramsOn",
7450
+ "description": "mark: the key has programs on; turn that off first (HTTP 409)."
7451
+ },
7452
+ {
7453
+ "name": "IsRecovery",
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)."
7487
+ }
7488
+ ]
7489
+ },
7490
+ "stepUp": {
7491
+ "type": "object",
7492
+ "description": "What the PDS's step-up proved.",
7493
+ "required": [
7494
+ "method",
7495
+ "provedAt"
7496
+ ],
7497
+ "properties": {
7498
+ "method": {
7499
+ "type": "ref",
7500
+ "ref": "#provedMethod"
7501
+ },
7502
+ "provedAt": {
7503
+ "type": "string",
7504
+ "format": "datetime"
7505
+ }
7506
+ }
7507
+ },
7508
+ "external": {
7509
+ "type": "object",
7510
+ "required": [
7511
+ "type",
7512
+ "ref"
7513
+ ],
7514
+ "properties": {
7515
+ "type": {
7516
+ "type": "string",
7517
+ "knownValues": [
7518
+ "passkey",
7519
+ "nostr"
7520
+ ]
7521
+ },
7522
+ "ref": {
7523
+ "type": "string",
7524
+ "maxLength": 512,
7525
+ "description": "The passkey credential id, or the Nostr key (hex)."
7526
+ },
7527
+ "label": {
7528
+ "type": "string",
7529
+ "maxLength": 128
7530
+ }
7531
+ }
7532
+ },
7533
+ "notice": {
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.",
7536
+ "required": [
7537
+ "id",
7538
+ "did",
7539
+ "event",
7540
+ "to",
7541
+ "createdAt"
7542
+ ],
7543
+ "properties": {
7544
+ "id": {
7545
+ "type": "integer"
7546
+ },
7547
+ "did": {
7548
+ "type": "string",
7549
+ "format": "did"
7550
+ },
7551
+ "event": {
7552
+ "type": "string",
7553
+ "knownValues": [
7554
+ "removeMethod",
7555
+ "deleteAccount",
7556
+ "markRecovery",
7557
+ "freeze",
7558
+ "waitDropped",
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."
7570
+ },
7571
+ "to": {
7572
+ "type": "ref",
7573
+ "ref": "#noticeTo"
7574
+ },
7575
+ "pending": {
7576
+ "type": "ref",
7577
+ "ref": "pub.techne.draft.identity.defs#pendingChange"
7578
+ },
7579
+ "createdAt": {
7580
+ "type": "string",
7581
+ "format": "datetime"
7582
+ }
7583
+ }
7584
+ },
7585
+ "provedMethod": {
7586
+ "type": "object",
7587
+ "required": [
7588
+ "type"
7589
+ ],
7590
+ "properties": {
7591
+ "type": {
7592
+ "type": "string",
7593
+ "knownValues": [
7594
+ "email",
7595
+ "phone",
7596
+ "passkey",
7597
+ "nostr",
7598
+ "recoveryCodes"
7599
+ ]
7600
+ },
7601
+ "value": {
7602
+ "type": "string",
7603
+ "maxLength": 512,
7604
+ "description": "The email or E.164 phone, the passkey credential id, or the Nostr key (hex). None for recoveryCodes."
7605
+ }
7606
+ }
7607
+ },
7608
+ "noticeTo": {
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).",
7611
+ "required": [
7612
+ "type",
7613
+ "value"
7614
+ ],
7615
+ "properties": {
7616
+ "type": {
7617
+ "type": "string",
7618
+ "knownValues": [
7619
+ "email",
7620
+ "phone",
7621
+ "nostr"
7622
+ ]
7623
+ },
7624
+ "value": {
7625
+ "type": "string"
7626
+ }
7627
+ }
7628
+ },
7629
+ "signInMethod": {
7630
+ "type": "object",
7631
+ "description": "One way to sign in, as a page may show it before anyone has signed in: an email as `***a@***e.***m` (the last character of each dot-separated part), a phone as `•••• 97` (its last two digits), a passkey or Nostr key by its label.",
7632
+ "required": [
7633
+ "id",
7634
+ "type",
7635
+ "display"
7636
+ ],
7637
+ "properties": {
7638
+ "id": {
7639
+ "type": "string",
7640
+ "description": "The method id (for `sendTo`, and the PDS's own passkey or Nostr challenge)."
7641
+ },
7642
+ "type": {
7643
+ "type": "string",
7644
+ "knownValues": [
7645
+ "email",
7646
+ "phone",
7647
+ "passkey",
7648
+ "nostr"
7649
+ ]
7650
+ },
7651
+ "display": {
7652
+ "type": "string"
7653
+ }
7654
+ }
7655
+ },
7656
+ "importedEmail": {
7657
+ "type": "object",
7658
+ "required": [
7659
+ "email",
7660
+ "status"
7661
+ ],
7662
+ "properties": {
7663
+ "email": {
7664
+ "type": "string"
7665
+ },
7666
+ "status": {
7667
+ "type": "string",
7668
+ "knownValues": [
7669
+ "marked",
7670
+ "boundElsewhere",
7671
+ "released",
7672
+ "invalid",
7673
+ "afterCutoff"
7674
+ ],
7675
+ "description": "`marked`: an email method of the account now, marked for recovery. `boundElsewhere`: on another account, left there. `released`: the account removed it; only adding it again binds it back. `invalid`: not an email address. `afterCutoff`: verified at or after 2026-11-13T00:00:00Z, not imported (add it and mark it under the rules)."
7676
+ }
7677
+ },
7678
+ "description": "One address importBackupEmails was sent, with what happened to it."
7679
+ },
7680
+ "backupEmail": {
7681
+ "type": "object",
7682
+ "description": "One backup email importBackupEmails moves, with when the PDS verified it.",
7683
+ "required": [
7684
+ "email",
7685
+ "verifiedAt"
7686
+ ],
7687
+ "properties": {
7688
+ "email": {
7689
+ "type": "string",
7690
+ "maxLength": 320
7691
+ },
7692
+ "verifiedAt": {
7693
+ "type": "string",
7694
+ "format": "datetime",
7695
+ "description": "When the PDS verified the address. Only one verified before 2026-11-13T00:00:00Z is imported."
7696
+ }
7697
+ }
7698
+ },
7699
+ "dueDelete": {
7700
+ "type": "object",
7701
+ "description": "An account whose scheduled deletion ran on the platform: the PDS deletes its PDS account, then confirms (`dueDeletesDone`). An account already gone from the PDS counts as deleted.",
7702
+ "required": [
7703
+ "did",
7704
+ "deletedAt"
7705
+ ],
7706
+ "properties": {
7707
+ "did": {
7708
+ "type": "string",
7709
+ "format": "did"
7710
+ },
7711
+ "deletedAt": {
7712
+ "type": "string",
7713
+ "format": "datetime",
7714
+ "description": "When the platform deleted its side."
7715
+ }
7716
+ }
7717
+ }
7718
+ }
7719
+ })
7720
+ },
7721
+ {
7722
+ "nsid": "pub.techne.draft.identity.openAccountPage",
7723
+ "name": "draft.identity.openAccountPage",
7724
+ "group": "pub.techne",
7725
+ "kind": "procedure",
7726
+ "description": "A link that opens the caller's account page on their PDS already signed in, for an app to open in the system browser. The link works once, until `expiresAt` (60 seconds today). It signs in to view the page only: changing a sign-in method or deleting the account there still asks for a code or a passkey. Signed-in members only, from a browser or device session: any other bearer token (an agent token, an app's OAuth token, a program's token) is refused.",
7727
+ "doc": ({
7728
+ "lexicon": 1,
7729
+ "id": "pub.techne.draft.identity.openAccountPage",
6746
7730
  "defs": {
6747
7731
  "main": {
6748
- "type": "query",
6749
- "description": "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.",
6750
- "parameters": {
6751
- "type": "params",
6752
- "required": [
6753
- "actAs"
6754
- ],
6755
- "properties": {
6756
- "actAs": {
6757
- "type": "string",
6758
- "format": "did"
6759
- },
6760
- "alsoActAs": {
6761
- "type": "array",
6762
- "maxLength": 99,
6763
- "description": "More accounts whose holds to list in the same call, after `actAs` (repeat the parameter).",
6764
- "items": {
6765
- "type": "string",
6766
- "format": "did"
6767
- }
6768
- }
6769
- }
6770
- },
7732
+ "type": "procedure",
7733
+ "description": "A link that opens the caller's account page on their PDS already signed in, for an app to open in the system browser. The link works once, until `expiresAt` (60 seconds today). It signs in to view the page only: changing a sign-in method or deleting the account there still asks for a code or a passkey. Signed-in members only, from a browser or device session: any other bearer token (an agent token, an app's OAuth token, a program's token) is refused.",
6771
7734
  "output": {
6772
7735
  "encoding": "application/json",
6773
7736
  "schema": {
6774
7737
  "type": "object",
6775
7738
  "required": [
6776
- "holds"
7739
+ "url",
7740
+ "expiresAt"
6777
7741
  ],
6778
7742
  "properties": {
6779
- "holds": {
6780
- "type": "array",
6781
- "items": {
6782
- "type": "ref",
6783
- "ref": "#holdView"
6784
- }
7743
+ "url": {
7744
+ "type": "string",
7745
+ "format": "uri",
7746
+ "maxLength": 2048,
7747
+ "description": "Open it once, before expiresAt."
7748
+ },
7749
+ "expiresAt": {
7750
+ "type": "string",
7751
+ "format": "datetime"
6785
7752
  }
6786
7753
  }
6787
7754
  }
6788
7755
  },
6789
7756
  "errors": [
6790
7757
  {
6791
- "name": "InvalidRequest",
6792
- "description": "HTTP 400: `actAs` or one of `alsoActAs` is not a DID, or more than 99 `alsoActAs`."
7758
+ "name": "AuthenticationRequired",
7759
+ "description": "No signed-in caller."
6793
7760
  },
6794
7761
  {
6795
- "name": "Forbidden",
6796
- "description": "HTTP 403: the caller may not write as `actAs` (with `alsoActAs`: as any of them)."
6797
- }
6798
- ]
6799
- },
6800
- "holdView": {
6801
- "type": "object",
6802
- "required": [
6803
- "id",
6804
- "askedBy",
6805
- "collection",
6806
- "record",
6807
- "createdAt"
6808
- ],
6809
- "properties": {
6810
- "id": {
6811
- "type": "string"
6812
- },
6813
- "actAs": {
6814
- "type": "string",
6815
- "format": "did",
6816
- "description": "The account the hold would write as."
6817
- },
6818
- "askedBy": {
6819
- "type": "string",
6820
- "format": "did"
6821
- },
6822
- "app": {
6823
- "type": "string"
6824
- },
6825
- "collection": {
6826
- "type": "string",
6827
- "format": "nsid"
6828
- },
6829
- "rkey": {
6830
- "type": "string",
6831
- "description": "The record key template."
7762
+ "name": "NotAuthorized",
7763
+ "description": "The caller's bearer token is neither a device session nor an agent token, such as an app's OAuth token (HTTP 403)."
6832
7764
  },
6833
- "space": {
6834
- "type": "string"
7765
+ {
7766
+ "name": "ProgramRefused",
7767
+ "description": "The caller is an agent token or a program's token: neither opens the account page (HTTP 403)."
6835
7768
  },
6836
- "record": {
6837
- "type": "unknown",
6838
- "description": "The record template, slots unfilled."
7769
+ {
7770
+ "name": "NotFound",
7771
+ "description": "This server has no account page for the caller: its PDS is not ours, or none is set up (HTTP 404). Open the account page without a link."
6839
7772
  },
6840
- "createdAt": {
6841
- "type": "string",
6842
- "format": "datetime"
7773
+ {
7774
+ "name": "RateLimitExceeded",
7775
+ "description": "Too many links for this account (HTTP 429)."
6843
7776
  },
6844
- "name": {
6845
- "type": "string",
6846
- "description": "On a hold the caller asked for, the name the caller saved for its number: the `name` of the caller's own active `contact` on that number (the newest, when there are several), read when the listing is made. Never on a hold someone else asked for, and nothing of it is stored on the hold."
7777
+ {
7778
+ "name": "Unavailable",
7779
+ "description": "The PDS did not answer (HTTP 502). Open the account page without a link."
6847
7780
  }
6848
- }
7781
+ ]
6849
7782
  }
6850
7783
  }
6851
7784
  })
@@ -7166,6 +8099,15 @@ export const catalog = {
7166
8099
  "format": "did",
7167
8100
  "description": "Present only with `released`, and only when the calling PDS hosts the account that removed the number: that account's DID. A PDS that keeps an account per phone number (a placeholder) uses it to tell two placeholders apart: the old account's, which must not sign in with this number again, and the one it started for the number's new holder after the removal, which it finds by this DID and `releaseId` and signs in until the number is bound to it. Binding the number back to this account through identity.attest is refused (`ChannelReleased`)."
7168
8101
  },
8102
+ "frozen": {
8103
+ "type": "boolean",
8104
+ "description": "Present (true) only with `did`: this method of the account is frozen (identity.manageMethods `freeze`). The PDS refuses the sign-in and creates nothing; the account's other methods still sign in."
8105
+ },
8106
+ "frozenUntil": {
8107
+ "type": "string",
8108
+ "format": "datetime",
8109
+ "description": "Present only with `frozen`: when the freeze ends, unless a recovery method lifts it sooner."
8110
+ },
7169
8111
  "releaseId": {
7170
8112
  "type": "string",
7171
8113
  "minLength": 1,
@@ -7263,14 +8205,14 @@ export const catalog = {
7263
8205
  "name": "draft.identity.unlinkAccount",
7264
8206
  "group": "pub.techne",
7265
8207
  "kind": "procedure",
7266
- "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).",
7267
8209
  "doc": ({
7268
8210
  "lexicon": 1,
7269
8211
  "id": "pub.techne.draft.identity.unlinkAccount",
7270
8212
  "defs": {
7271
8213
  "main": {
7272
8214
  "type": "procedure",
7273
- "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).",
7274
8216
  "input": {
7275
8217
  "encoding": "application/json",
7276
8218
  "schema": {
@@ -7319,14 +8261,14 @@ export const catalog = {
7319
8261
  "name": "draft.identity.unlinkMethod",
7320
8262
  "group": "pub.techne",
7321
8263
  "kind": "procedure",
7322
- "description": "Remove a sign-in method from the caller's account: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. A removed phone number is marked released: identity.resolve answers `unbound` with `released` and `releasedFrom` (this account) until someone binds it, so a PDS never signs it in to this account again through a placeholder it kept, and identity.attest refuses binding it back here (`ChannelReleased`); only adding it again (identity.finishAddMethod) does. Refused for the account's last method.",
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.",
7323
8265
  "doc": ({
7324
8266
  "lexicon": 1,
7325
8267
  "id": "pub.techne.draft.identity.unlinkMethod",
7326
8268
  "defs": {
7327
8269
  "main": {
7328
8270
  "type": "procedure",
7329
- "description": "Remove a sign-in method from the caller's account: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. A removed phone number is marked released: identity.resolve answers `unbound` with `released` and `releasedFrom` (this account) until someone binds it, so a PDS never signs it in to this account again through a placeholder it kept, and identity.attest refuses binding it back here (`ChannelReleased`); only adding it again (identity.finishAddMethod) does. Refused for the account's last method.",
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.",
7330
8272
  "input": {
7331
8273
  "encoding": "application/json",
7332
8274
  "schema": {
@@ -7352,6 +8294,16 @@ export const catalog = {
7352
8294
  "properties": {
7353
8295
  "ok": {
7354
8296
  "type": "boolean"
8297
+ },
8298
+ "status": {
8299
+ "type": "string",
8300
+ "knownValues": [
8301
+ "pending"
8302
+ ]
8303
+ },
8304
+ "pending": {
8305
+ "type": "ref",
8306
+ "ref": "pub.techne.draft.identity.defs#pendingChange"
7355
8307
  }
7356
8308
  }
7357
8309
  }
@@ -7367,7 +8319,11 @@ export const catalog = {
7367
8319
  },
7368
8320
  {
7369
8321
  "name": "LastMethod",
7370
- "description": "It is the account's only sign-in method."
8322
+ "description": "It is the account's only sign-in method (counting those already waiting to be removed)."
8323
+ },
8324
+ {
8325
+ "name": "RecoveryProtected",
8326
+ "description": "It is a recovery method; only a recovery method removes it (identity.manageMethods)."
7371
8327
  }
7372
8328
  ]
7373
8329
  }
@@ -7973,7 +8929,7 @@ export const catalog = {
7973
8929
  "group": "pub.techne",
7974
8930
  "kind": "record",
7975
8931
  "key": "any",
7976
- "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.",
8932
+ "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.",
7977
8933
  "fields": [
7978
8934
  {
7979
8935
  "name": "subject",
@@ -8013,7 +8969,7 @@ export const catalog = {
8013
8969
  "main": {
8014
8970
  "type": "record",
8015
8971
  "key": "any",
8016
- "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.",
8972
+ "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.",
8017
8973
  "record": {
8018
8974
  "type": "object",
8019
8975
  "required": [
@@ -9091,15 +10047,15 @@ export const catalog = {
9091
10047
  "name": "draft.permissioned.putRecords",
9092
10048
  "group": "pub.techne",
9093
10049
  "kind": "procedure",
9094
- "description": "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.",
10050
+ "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.",
9095
10051
  "doc": ({
9096
10052
  "lexicon": 1,
9097
10053
  "id": "pub.techne.draft.permissioned.putRecords",
9098
- "description": "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only for its app or under `space:` scopes covering it; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) by a caller that is neither the app its key names nor holds `space:` scopes covering a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied. A first write is never refused for its space. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.",
10054
+ "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.",
9099
10055
  "defs": {
9100
10056
  "main": {
9101
10057
  "type": "procedure",
9102
- "description": "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.",
10058
+ "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.",
9103
10059
  "input": {
9104
10060
  "encoding": "application/json",
9105
10061
  "schema": {
@@ -9161,7 +10117,7 @@ export const catalog = {
9161
10117
  },
9162
10118
  {
9163
10119
  "name": "LastManager",
9164
- "description": "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written."
10120
+ "description": "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30, after the whole batch or after any prefix of its membership writes (a roster batch stops at its first refused write, so any prefix may be what is left written). Make someone else manager first. Nothing is written."
9165
10121
  },
9166
10122
  {
9167
10123
  "name": "AccountDeleting",
@@ -9261,13 +10217,15 @@ export const catalog = {
9261
10217
  "properties": {
9262
10218
  "error": {
9263
10219
  "type": "string",
9264
- "description": "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space and the caller is neither the app its key names nor holds `space:` scopes covering it; see putRecord).",
10220
+ "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).",
9265
10221
  "knownValues": [
9266
10222
  "InvalidRequest",
9267
10223
  "InvalidSwap",
9268
10224
  "Conflict",
9269
10225
  "IdentityConflict",
9270
- "DuplicatePhone"
10226
+ "DuplicatePhone",
10227
+ "RateLimitExceeded",
10228
+ "Forbidden"
9271
10229
  ]
9272
10230
  },
9273
10231
  "message": {
@@ -9468,7 +10426,7 @@ export const catalog = {
9468
10426
  "group": "pub.techne",
9469
10427
  "kind": "record",
9470
10428
  "key": "any",
9471
- "description": "Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. `any` permits that convention but cannot enforce it.",
10429
+ "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.",
9472
10430
  "fields": [
9473
10431
  {
9474
10432
  "name": "subject",
@@ -9559,7 +10517,7 @@ export const catalog = {
9559
10517
  "main": {
9560
10518
  "type": "record",
9561
10519
  "key": "any",
9562
- "description": "Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. `any` permits that convention but cannot enforce it.",
10520
+ "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.",
9563
10521
  "record": {
9564
10522
  "type": "object",
9565
10523
  "required": [
@@ -10210,7 +11168,7 @@ export const catalog = {
10210
11168
  "group": "pub.techne",
10211
11169
  "kind": "record",
10212
11170
  "key": "any",
10213
- "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.",
11171
+ "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.",
10214
11172
  "fields": [
10215
11173
  {
10216
11174
  "name": "subject",
@@ -10260,7 +11218,7 @@ export const catalog = {
10260
11218
  "main": {
10261
11219
  "type": "record",
10262
11220
  "key": "any",
10263
- "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.",
11221
+ "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.",
10264
11222
  "record": {
10265
11223
  "type": "object",
10266
11224
  "required": [
@@ -10651,7 +11609,7 @@ export const catalog = {
10651
11609
  "group": "pub.techne",
10652
11610
  "kind": "record",
10653
11611
  "key": "any",
10654
- "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.",
11612
+ "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.",
10655
11613
  "fields": [
10656
11614
  {
10657
11615
  "name": "where",
@@ -10709,7 +11667,7 @@ export const catalog = {
10709
11667
  "doc": ({
10710
11668
  "lexicon": 1,
10711
11669
  "id": "pub.techne.draft.query",
10712
- "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.",
11670
+ "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.",
10713
11671
  "defs": {
10714
11672
  "main": {
10715
11673
  "type": "record",
@@ -10850,7 +11808,7 @@ export const catalog = {
10850
11808
  "end": {
10851
11809
  "type": "ref",
10852
11810
  "ref": "#condition",
10853
- "description": "When it ends (declared per type; a type may assume a duration when the end is not stated). Operators: before, after."
11811
+ "description": "When it ends (declared per type; a type may assume a duration when the end is not stated, and then a start at a midnight in its own stated offset, never the reader's zone, runs at least to the next midnight in that offset, a day). Operators: before, after."
10854
11812
  },
10855
11813
  "location": {
10856
11814
  "type": "ref",
@@ -10983,7 +11941,7 @@ export const catalog = {
10983
11941
  "required": [
10984
11942
  "from"
10985
11943
  ],
10986
- "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.",
11944
+ "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.",
10987
11945
  "properties": {
10988
11946
  "from": {
10989
11947
  "type": "string",
@@ -11689,6 +12647,34 @@ export const catalog = {
11689
12647
  "handle": {
11690
12648
  "type": "string",
11691
12649
  "format": "handle"
12650
+ },
12651
+ "linked": {
12652
+ "type": "array",
12653
+ "items": {
12654
+ "type": "ref",
12655
+ "ref": "#linkedHandle"
12656
+ },
12657
+ "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."
12658
+ }
12659
+ }
12660
+ },
12661
+ "linkedHandle": {
12662
+ "type": "object",
12663
+ "required": [
12664
+ "did"
12665
+ ],
12666
+ "properties": {
12667
+ "did": {
12668
+ "type": "string",
12669
+ "format": "did"
12670
+ },
12671
+ "handle": {
12672
+ "type": "string",
12673
+ "format": "handle"
12674
+ },
12675
+ "displayName": {
12676
+ "type": "string",
12677
+ "description": "The linked account's public profile name, when it has one."
11692
12678
  }
11693
12679
  }
11694
12680
  },
@@ -12197,7 +13183,7 @@ export const catalog = {
12197
13183
  "group": "pub.techne",
12198
13184
  "kind": "record",
12199
13185
  "key": "any",
12200
- "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.",
13186
+ "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.",
12201
13187
  "fields": [
12202
13188
  {
12203
13189
  "name": "subject",
@@ -12225,7 +13211,7 @@ export const catalog = {
12225
13211
  "main": {
12226
13212
  "type": "record",
12227
13213
  "key": "any",
12228
- "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.",
13214
+ "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.",
12229
13215
  "record": {
12230
13216
  "type": "object",
12231
13217
  "required": [
@@ -12387,14 +13373,14 @@ export const catalog = {
12387
13373
  "name": "draft.registry.blockIndex",
12388
13374
  "group": "pub.techne",
12389
13375
  "kind": "procedure",
12390
- "description": "Operator only. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
13376
+ "description": "Operator only, with the moderate scope. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
12391
13377
  "doc": ({
12392
13378
  "lexicon": 1,
12393
13379
  "id": "pub.techne.draft.registry.blockIndex",
12394
13380
  "defs": {
12395
13381
  "main": {
12396
13382
  "type": "procedure",
12397
- "description": "Operator only. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
13383
+ "description": "Operator only, with the moderate scope. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
12398
13384
  "input": {
12399
13385
  "encoding": "application/json",
12400
13386
  "schema": {
@@ -12462,12 +13448,20 @@ export const catalog = {
12462
13448
  "description": "Blocking is a signed-in act."
12463
13449
  },
12464
13450
  {
12465
- "name": "Forbidden",
12466
- "description": "The caller is not an operator of this platform."
13451
+ "name": "NotAuthorized",
13452
+ "description": "The caller is not an operator of this platform, or the call does not carry the moderate scope (HTTP 403)."
13453
+ },
13454
+ {
13455
+ "name": "ProgramRefused",
13456
+ "description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
12467
13457
  },
12468
13458
  {
12469
13459
  "name": "UnknownType",
12470
13460
  "description": "`nsid` names no community or requested type (our own types are not limited)."
13461
+ },
13462
+ {
13463
+ "name": "InvalidRequest",
13464
+ "description": "`reason` is blank or over 1000 characters, or `author` is not a DID (HTTP 400)."
12471
13465
  }
12472
13466
  ]
12473
13467
  }
@@ -13192,14 +14186,14 @@ export const catalog = {
13192
14186
  "name": "draft.registry.purgeType",
13193
14187
  "group": "pub.techne",
13194
14188
  "kind": "procedure",
13195
- "description": "Operator only. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
14189
+ "description": "Operator only, with the moderate scope. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
13196
14190
  "doc": ({
13197
14191
  "lexicon": 1,
13198
14192
  "id": "pub.techne.draft.registry.purgeType",
13199
14193
  "defs": {
13200
14194
  "main": {
13201
14195
  "type": "procedure",
13202
- "description": "Operator only. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
14196
+ "description": "Operator only, with the moderate scope. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
13203
14197
  "input": {
13204
14198
  "encoding": "application/json",
13205
14199
  "schema": {
@@ -13256,12 +14250,20 @@ export const catalog = {
13256
14250
  "description": "Purging is a signed-in act."
13257
14251
  },
13258
14252
  {
13259
- "name": "Forbidden",
13260
- "description": "The caller is not an operator of this platform."
14253
+ "name": "NotAuthorized",
14254
+ "description": "The caller is not an operator of this platform, or the call does not carry the moderate scope (HTTP 403)."
14255
+ },
14256
+ {
14257
+ "name": "ProgramRefused",
14258
+ "description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
13261
14259
  },
13262
14260
  {
13263
14261
  "name": "UnknownType",
13264
14262
  "description": "`nsid` names no community or requested type (our own types cannot be purged)."
14263
+ },
14264
+ {
14265
+ "name": "InvalidRequest",
14266
+ "description": "`reason` is blank or over 1000 characters (HTTP 400)."
13265
14267
  }
13266
14268
  ]
13267
14269
  }
@@ -13445,7 +14447,7 @@ export const catalog = {
13445
14447
  "group": "pub.techne",
13446
14448
  "kind": "record",
13447
14449
  "key": "any",
13448
- "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.",
14450
+ "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.",
13449
14451
  "fields": [
13450
14452
  {
13451
14453
  "name": "subject",
@@ -13473,7 +14475,7 @@ export const catalog = {
13473
14475
  "main": {
13474
14476
  "type": "record",
13475
14477
  "key": "any",
13476
- "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.",
14478
+ "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.",
13477
14479
  "record": {
13478
14480
  "type": "object",
13479
14481
  "required": [
@@ -13608,7 +14610,7 @@ export const catalog = {
13608
14610
  "group": "pub.techne",
13609
14611
  "kind": "record",
13610
14612
  "key": "any",
13611
- "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.",
14613
+ "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.",
13612
14614
  "fields": [
13613
14615
  {
13614
14616
  "name": "subject",
@@ -13636,7 +14638,7 @@ export const catalog = {
13636
14638
  "main": {
13637
14639
  "type": "record",
13638
14640
  "key": "any",
13639
- "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.",
14641
+ "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.",
13640
14642
  "record": {
13641
14643
  "type": "object",
13642
14644
  "required": [
@@ -14003,7 +15005,7 @@ export const catalog = {
14003
15005
  "group": "pub.techne",
14004
15006
  "kind": "record",
14005
15007
  "key": "any",
14006
- "description": "Publishers use sidecar_rkey(subject AT-URI), one per record. `any` permits that convention but cannot enforce it.",
15008
+ "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.",
14007
15009
  "fields": [
14008
15010
  {
14009
15011
  "name": "subject",
@@ -14053,7 +15055,7 @@ export const catalog = {
14053
15055
  "main": {
14054
15056
  "type": "record",
14055
15057
  "key": "any",
14056
- "description": "Publishers use sidecar_rkey(subject AT-URI), one per record. `any` permits that convention but cannot enforce it.",
15058
+ "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.",
14057
15059
  "record": {
14058
15060
  "type": "object",
14059
15061
  "required": [
@@ -14119,7 +15121,7 @@ export const catalog = {
14119
15121
  "group": "pub.techne",
14120
15122
  "kind": "record",
14121
15123
  "key": "any",
14122
- "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.",
15124
+ "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.",
14123
15125
  "fields": [
14124
15126
  {
14125
15127
  "name": "createdAt",
@@ -14227,7 +15229,7 @@ export const catalog = {
14227
15229
  }
14228
15230
  }
14229
15231
  },
14230
- "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."
15232
+ "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."
14231
15233
  }
14232
15234
  }
14233
15235
  }),
@@ -14428,7 +15430,7 @@ export const catalog = {
14428
15430
  "group": "pub.techne",
14429
15431
  "kind": "record",
14430
15432
  "key": "any",
14431
- "description": "Publishers use sidecar_rkey(subject AT-URI), one summary per record per writer. `any` permits that convention but cannot enforce it.",
15433
+ "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.",
14432
15434
  "fields": [
14433
15435
  {
14434
15436
  "name": "subject",
@@ -14462,7 +15464,7 @@ export const catalog = {
14462
15464
  "main": {
14463
15465
  "type": "record",
14464
15466
  "key": "any",
14465
- "description": "Publishers use sidecar_rkey(subject AT-URI), one summary per record per writer. `any` permits that convention but cannot enforce it.",
15467
+ "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.",
14466
15468
  "record": {
14467
15469
  "type": "object",
14468
15470
  "required": [
@@ -14604,7 +15606,7 @@ export const catalog = {
14604
15606
  "group": "pub.techne",
14605
15607
  "kind": "record",
14606
15608
  "key": "any",
14607
- "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.",
15609
+ "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.",
14608
15610
  "fields": [
14609
15611
  {
14610
15612
  "name": "subject",
@@ -14632,7 +15634,7 @@ export const catalog = {
14632
15634
  "main": {
14633
15635
  "type": "record",
14634
15636
  "key": "any",
14635
- "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.",
15637
+ "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.",
14636
15638
  "record": {
14637
15639
  "type": "object",
14638
15640
  "required": [
@@ -14684,7 +15686,7 @@ export const catalog = {
14684
15686
  "group": "pub.techne",
14685
15687
  "kind": "record",
14686
15688
  "key": "any",
14687
- "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.",
15689
+ "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.",
14688
15690
  "fields": [
14689
15691
  {
14690
15692
  "name": "subject",
@@ -14706,7 +15708,7 @@ export const catalog = {
14706
15708
  "main": {
14707
15709
  "type": "record",
14708
15710
  "key": "any",
14709
- "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.",
15711
+ "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.",
14710
15712
  "record": {
14711
15713
  "type": "object",
14712
15714
  "required": [
@@ -16315,6 +17317,11 @@ export const catalog = {
16315
17317
  "community.lexicon.calendar.rsvp"
16316
17318
  ],
16317
17319
  "unbuilt": [
17320
+ {
17321
+ "collection": "pub.techne.draft.accountLink",
17322
+ "space": "pub.techne.draft.space.personal",
17323
+ "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."
17324
+ },
16318
17325
  {
16319
17326
  "collection": "pub.techne.draft.channelVerification",
16320
17327
  "space": "pub.techne.draft.space.personal",
@@ -16414,6 +17421,11 @@ export const catalog = {
16414
17421
  "pub.techne.draft.space.private"
16415
17422
  ],
16416
17423
  "unbuilt": [
17424
+ {
17425
+ "collection": "pub.techne.draft.accountLink",
17426
+ "space": "pub.techne.draft.space.personal",
17427
+ "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."
17428
+ },
16417
17429
  {
16418
17430
  "collection": "pub.techne.draft.channelVerification",
16419
17431
  "space": "pub.techne.draft.space.personal",
@@ -17515,7 +18527,7 @@ export const catalog = {
17515
18527
  "group": "social.scenius",
17516
18528
  "kind": "procedure",
17517
18529
  "class": "write",
17518
- "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.",
18530
+ "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.",
17519
18531
  "input": [
17520
18532
  {
17521
18533
  "name": "space",
@@ -17554,7 +18566,7 @@ export const catalog = {
17554
18566
  "defs": {
17555
18567
  "main": {
17556
18568
  "type": "procedure",
17557
- "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.",
18569
+ "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.",
17558
18570
  "input": {
17559
18571
  "encoding": "application/json",
17560
18572
  "schema": {
@@ -17610,7 +18622,7 @@ export const catalog = {
17610
18622
  },
17611
18623
  {
17612
18624
  "name": "NotAuthorized",
17613
- "description": "The caller does not pass the space type's manage leg."
18625
+ "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)."
17614
18626
  }
17615
18627
  ]
17616
18628
  }
@@ -18188,6 +19200,12 @@ export const catalog = {
18188
19200
  "type": "string",
18189
19201
  "required": true,
18190
19202
  "description": "The app-binding secret — pass it verbatim to completeMobileOAuth (the login-CSRF binding)."
19203
+ },
19204
+ {
19205
+ "name": "state",
19206
+ "type": "string",
19207
+ "required": false,
19208
+ "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."
18191
19209
  }
18192
19210
  ],
18193
19211
  "doc": ({
@@ -18237,6 +19255,10 @@ export const catalog = {
18237
19255
  "appBinding": {
18238
19256
  "type": "string",
18239
19257
  "description": "The app-binding secret — pass it verbatim to completeMobileOAuth (the login-CSRF binding)."
19258
+ },
19259
+ "state": {
19260
+ "type": "string",
19261
+ "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."
18240
19262
  }
18241
19263
  }
18242
19264
  }
@@ -18671,7 +19693,13 @@ export const catalog = {
18671
19693
  }
18672
19694
  }
18673
19695
  }
18674
- }
19696
+ },
19697
+ "errors": [
19698
+ {
19699
+ "name": "MethodFrozen",
19700
+ "description": "The email is a sign-in method its account froze (until the time in the message); it signs in nowhere until then."
19701
+ }
19702
+ ]
18675
19703
  },
18676
19704
  "device": {
18677
19705
  "type": "object",
@@ -19849,7 +20877,7 @@ export const catalog = {
19849
20877
  "group": "social.scenius",
19850
20878
  "kind": "procedure",
19851
20879
  "class": "write",
19852
- "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 cases 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. Available through the standard write scope, including the generic MCP door; authentication alone is insufficient because the out-of-band phone code remains mandatory.",
20880
+ "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.",
19853
20881
  "input": [
19854
20882
  {
19855
20883
  "name": "code",
@@ -19867,6 +20895,17 @@ export const catalog = {
19867
20895
  "deleted",
19868
20896
  "pending"
19869
20897
  ]
20898
+ },
20899
+ {
20900
+ "name": "scheduledFor",
20901
+ "type": "string<datetime>",
20902
+ "required": false,
20903
+ "description": "When a waiting deletion runs; present only when it waits."
20904
+ },
20905
+ {
20906
+ "name": "pending",
20907
+ "type": "→ pub.techne.draft.identity.defs#pendingChange",
20908
+ "required": false
19870
20909
  }
19871
20910
  ],
19872
20911
  "doc": ({
@@ -19875,7 +20914,7 @@ export const catalog = {
19875
20914
  "defs": {
19876
20915
  "main": {
19877
20916
  "type": "procedure",
19878
- "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 cases 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. Available through the standard write scope, including the generic MCP door; authentication alone is insufficient because the out-of-band phone code remains mandatory.",
20917
+ "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.",
19879
20918
  "input": {
19880
20919
  "encoding": "application/json",
19881
20920
  "schema": {
@@ -19905,6 +20944,15 @@ export const catalog = {
19905
20944
  "deleted",
19906
20945
  "pending"
19907
20946
  ]
20947
+ },
20948
+ "scheduledFor": {
20949
+ "type": "string",
20950
+ "format": "datetime",
20951
+ "description": "When a waiting deletion runs; present only when it waits."
20952
+ },
20953
+ "pending": {
20954
+ "type": "ref",
20955
+ "ref": "pub.techne.draft.identity.defs#pendingChange"
19908
20956
  }
19909
20957
  }
19910
20958
  }
@@ -19918,6 +20966,10 @@ export const catalog = {
19918
20966
  },
19919
20967
  {
19920
20968
  "name": "InvalidCode"
20969
+ },
20970
+ {
20971
+ "name": "MethodFrozen",
20972
+ "description": "The method the code went to is frozen; confirm with another of the account's methods."
19921
20973
  }
19922
20974
  ]
19923
20975
  }
@@ -20217,7 +21269,7 @@ export const catalog = {
20217
21269
  "group": "social.scenius",
20218
21270
  "kind": "procedure",
20219
21271
  "class": "write",
20220
- "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.",
21272
+ "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.",
20221
21273
  "input": [
20222
21274
  {
20223
21275
  "name": "authority",
@@ -20238,6 +21290,12 @@ export const catalog = {
20238
21290
  "type": "boolean",
20239
21291
  "required": true,
20240
21292
  "description": "Whether an event was found and tombstoned."
21293
+ },
21294
+ {
21295
+ "name": "remaining",
21296
+ "type": "array<string>",
21297
+ "required": false,
21298
+ "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."
20241
21299
  }
20242
21300
  ],
20243
21301
  "doc": ({
@@ -20246,7 +21304,7 @@ export const catalog = {
20246
21304
  "defs": {
20247
21305
  "main": {
20248
21306
  "type": "procedure",
20249
- "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.",
21307
+ "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.",
20250
21308
  "input": {
20251
21309
  "encoding": "application/json",
20252
21310
  "schema": {
@@ -20278,6 +21336,14 @@ export const catalog = {
20278
21336
  "deleted": {
20279
21337
  "type": "boolean",
20280
21338
  "description": "Whether an event was found and tombstoned."
21339
+ },
21340
+ "remaining": {
21341
+ "type": "array",
21342
+ "items": {
21343
+ "type": "string",
21344
+ "format": "at-uri"
21345
+ },
21346
+ "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."
20281
21347
  }
20282
21348
  }
20283
21349
  }
@@ -21028,6 +22094,10 @@ export const catalog = {
21028
22094
  {
21029
22095
  "name": "NewCodeSent",
21030
22096
  "description": "The number's account lives on another server; the platform texted a new code that signs it in. Enter that one."
22097
+ },
22098
+ {
22099
+ "name": "MethodFrozen",
22100
+ "description": "The number is a sign-in method its account froze (until the time in the message); it signs in nowhere until then. Use another of the account's methods."
21031
22101
  }
21032
22102
  ]
21033
22103
  },
@@ -21051,7 +22121,7 @@ export const catalog = {
21051
22121
  "group": "social.scenius",
21052
22122
  "kind": "query",
21053
22123
  "class": "read",
21054
- "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.",
22124
+ "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.",
21055
22125
  "params": [
21056
22126
  {
21057
22127
  "name": "space",
@@ -21092,7 +22162,7 @@ export const catalog = {
21092
22162
  "defs": {
21093
22163
  "main": {
21094
22164
  "type": "query",
21095
- "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.",
22165
+ "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.",
21096
22166
  "parameters": {
21097
22167
  "type": "params",
21098
22168
  "properties": {
@@ -24857,6 +25927,12 @@ export const catalog = {
24857
25927
  "type": "boolean",
24858
25928
  "required": true
24859
25929
  },
25930
+ {
25931
+ "name": "blockedBy",
25932
+ "type": "string<did>",
25933
+ "required": false,
25934
+ "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."
25935
+ },
24860
25936
  {
24861
25937
  "name": "hasYourLink",
24862
25938
  "type": "boolean",
@@ -24923,6 +25999,11 @@ export const catalog = {
24923
25999
  "blocked": {
24924
26000
  "type": "boolean"
24925
26001
  },
26002
+ "blockedBy": {
26003
+ "type": "string",
26004
+ "format": "did",
26005
+ "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."
26006
+ },
24926
26007
  "hasYourLink": {
24927
26008
  "type": "boolean"
24928
26009
  },
@@ -26228,7 +27309,7 @@ export const catalog = {
26228
27309
  "group": "social.scenius",
26229
27310
  "kind": "query",
26230
27311
  "class": "read",
26231
- "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.",
27312
+ "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.",
26232
27313
  "params": [
26233
27314
  {
26234
27315
  "name": "client",
@@ -26249,7 +27330,7 @@ export const catalog = {
26249
27330
  "defs": {
26250
27331
  "main": {
26251
27332
  "type": "query",
26252
- "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.",
27333
+ "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.",
26253
27334
  "parameters": {
26254
27335
  "type": "params",
26255
27336
  "properties": {
@@ -26372,6 +27453,11 @@ export const catalog = {
26372
27453
  "createdAt": {
26373
27454
  "type": "string",
26374
27455
  "format": "datetime"
27456
+ },
27457
+ "blockedBy": {
27458
+ "type": "string",
27459
+ "format": "did",
27460
+ "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."
26375
27461
  }
26376
27462
  }
26377
27463
  }
@@ -27704,7 +28790,7 @@ export const catalog = {
27704
28790
  "group": "social.scenius",
27705
28791
  "kind": "procedure",
27706
28792
  "class": "write",
27707
- "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).",
28793
+ "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).",
27708
28794
  "input": [
27709
28795
  {
27710
28796
  "name": "space",
@@ -27799,7 +28885,7 @@ export const catalog = {
27799
28885
  "defs": {
27800
28886
  "main": {
27801
28887
  "type": "procedure",
27802
- "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).",
28888
+ "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).",
27803
28889
  "input": {
27804
28890
  "encoding": "application/json",
27805
28891
  "schema": {
@@ -27887,7 +28973,8 @@ export const catalog = {
27887
28973
  "name": "InvalidRequest"
27888
28974
  },
27889
28975
  {
27890
- "name": "NotAuthorized"
28976
+ "name": "NotAuthorized",
28977
+ "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)."
27891
28978
  }
27892
28979
  ]
27893
28980
  }
@@ -28609,7 +29696,7 @@ export const catalog = {
28609
29696
  "group": "social.scenius",
28610
29697
  "kind": "procedure",
28611
29698
  "class": "write",
28612
- "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.",
29699
+ "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.",
28613
29700
  "input": [
28614
29701
  {
28615
29702
  "name": "subject",
@@ -28648,7 +29735,7 @@ export const catalog = {
28648
29735
  "defs": {
28649
29736
  "main": {
28650
29737
  "type": "procedure",
28651
- "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.",
29738
+ "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.",
28652
29739
  "input": {
28653
29740
  "encoding": "application/json",
28654
29741
  "schema": {
@@ -28695,7 +29782,20 @@ export const catalog = {
28695
29782
  },
28696
29783
  "errors": [
28697
29784
  {
28698
- "name": "NotAuthorized"
29785
+ "name": "AuthenticationRequired",
29786
+ "description": "No signed-in caller."
29787
+ },
29788
+ {
29789
+ "name": "NotAuthorized",
29790
+ "description": "The caller is not an operator, or the call does not carry the moderate scope (HTTP 403)."
29791
+ },
29792
+ {
29793
+ "name": "ProgramRefused",
29794
+ "description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
29795
+ },
29796
+ {
29797
+ "name": "InvalidRequest",
29798
+ "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)."
28699
29799
  }
28700
29800
  ]
28701
29801
  }
@@ -29633,7 +30733,7 @@ export const catalog = {
29633
30733
  "group": "social.scenius",
29634
30734
  "kind": "procedure",
29635
30735
  "class": "write",
29636
- "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.",
30736
+ "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.",
29637
30737
  "input": [
29638
30738
  {
29639
30739
  "name": "dryRun",
@@ -29714,7 +30814,7 @@ export const catalog = {
29714
30814
  "defs": {
29715
30815
  "main": {
29716
30816
  "type": "procedure",
29717
- "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.",
30817
+ "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.",
29718
30818
  "input": {
29719
30819
  "encoding": "application/json",
29720
30820
  "schema": {
@@ -29796,7 +30896,16 @@ export const catalog = {
29796
30896
  },
29797
30897
  "errors": [
29798
30898
  {
29799
- "name": "NotAuthorized"
30899
+ "name": "AuthenticationRequired",
30900
+ "description": "No signed-in caller."
30901
+ },
30902
+ {
30903
+ "name": "NotAuthorized",
30904
+ "description": "The caller is not an operator, or the call does not carry the moderate scope (HTTP 403)."
30905
+ },
30906
+ {
30907
+ "name": "ProgramRefused",
30908
+ "description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
29800
30909
  }
29801
30910
  ]
29802
30911
  },
@@ -31235,7 +32344,7 @@ export const catalog = {
31235
32344
  "group": "social.scenius",
31236
32345
  "kind": "procedure",
31237
32346
  "class": "write",
31238
- "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.",
32347
+ "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.",
31239
32348
  "input": [
31240
32349
  {
31241
32350
  "name": "subject",
@@ -31274,7 +32383,7 @@ export const catalog = {
31274
32383
  "defs": {
31275
32384
  "main": {
31276
32385
  "type": "procedure",
31277
- "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.",
32386
+ "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.",
31278
32387
  "input": {
31279
32388
  "encoding": "application/json",
31280
32389
  "schema": {
@@ -31321,7 +32430,20 @@ export const catalog = {
31321
32430
  },
31322
32431
  "errors": [
31323
32432
  {
31324
- "name": "NotAuthorized"
32433
+ "name": "AuthenticationRequired",
32434
+ "description": "No signed-in caller."
32435
+ },
32436
+ {
32437
+ "name": "NotAuthorized",
32438
+ "description": "The caller is not an operator, or the call does not carry the moderate scope (HTTP 403)."
32439
+ },
32440
+ {
32441
+ "name": "ProgramRefused",
32442
+ "description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
32443
+ },
32444
+ {
32445
+ "name": "InvalidRequest",
32446
+ "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)."
31325
32447
  }
31326
32448
  ]
31327
32449
  }
@@ -31334,7 +32456,7 @@ export const catalog = {
31334
32456
  "group": "social.scenius",
31335
32457
  "kind": "procedure",
31336
32458
  "class": "write",
31337
- "description": "Delete the caller's private block claim for a DID. Previously withdrawn shares and contacts are not restored. Idempotent.",
32459
+ "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).",
31338
32460
  "input": [
31339
32461
  {
31340
32462
  "name": "subject",
@@ -31355,7 +32477,7 @@ export const catalog = {
31355
32477
  "defs": {
31356
32478
  "main": {
31357
32479
  "type": "procedure",
31358
- "description": "Delete the caller's private block claim for a DID. Previously withdrawn shares and contacts are not restored. Idempotent.",
32480
+ "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).",
31359
32481
  "input": {
31360
32482
  "encoding": "application/json",
31361
32483
  "schema": {
@@ -31384,7 +32506,12 @@ export const catalog = {
31384
32506
  }
31385
32507
  }
31386
32508
  }
31387
- }
32509
+ },
32510
+ "errors": [
32511
+ {
32512
+ "name": "BlockedByOtherAccount"
32513
+ }
32514
+ ]
31388
32515
  }
31389
32516
  }
31390
32517
  })
@@ -31994,7 +33121,7 @@ export const catalog = {
31994
33121
  }
31995
33122
  ],
31996
33123
  "counts": {
31997
- "records": 149,
33124
+ "records": 152,
31998
33125
  "spaces": 13,
31999
33126
  "predicates": 9,
32000
33127
  "methods": 127