techne-sdk 0.3.3 → 0.3.8

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 (66) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/README.md +5 -4
  3. package/dist/auth/app-key.js +2 -2
  4. package/dist/auth/index.js +1 -1
  5. package/dist/catalog/catalog.gen.d.ts +24 -24
  6. package/dist/catalog/catalog.gen.js +356 -66
  7. package/dist/connect.d.ts +96 -12
  8. package/dist/connect.js +83 -12
  9. package/dist/generated/lexicons.d.ts +140 -36
  10. package/dist/generated/lexicons.js +77 -18
  11. package/dist/generated/nsid.d.ts +4 -0
  12. package/dist/generated/nsid.js +4 -0
  13. package/dist/generated/nsid.json +4 -0
  14. package/dist/generated/types/pub/techne/draft/beacon.d.ts +2 -0
  15. package/dist/generated/types/pub/techne/draft/collective.d.ts +1 -1
  16. package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +3 -0
  17. package/dist/generated/types/pub/techne/draft/identity/attest.js +7 -0
  18. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +3 -0
  19. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +7 -0
  20. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +6 -0
  21. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +14 -0
  22. package/dist/generated/types/pub/techne/draft/identity/resolve.d.ts +6 -0
  23. package/dist/generated/types/pub/techne/draft/membership.d.ts +1 -1
  24. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +3 -0
  25. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +7 -0
  26. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +3 -0
  27. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.js +7 -0
  28. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +4 -1
  29. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.js +7 -0
  30. package/dist/generated/types/pub/techne/draft/summary.d.ts +2 -0
  31. package/dist/item.d.ts +130 -0
  32. package/dist/item.js +74 -0
  33. package/dist/links/index.d.ts +15 -8
  34. package/dist/links/index.js +18 -0
  35. package/dist/put/contacts.d.ts +2 -2
  36. package/dist/put/index.d.ts +6 -9
  37. package/dist/put/index.js +8 -166
  38. package/dist/put/put.d.ts +14 -0
  39. package/dist/put/put.js +206 -0
  40. package/dist/query/compose.d.ts +246 -0
  41. package/dist/query/compose.js +572 -0
  42. package/dist/query/hosts.d.ts +98 -1
  43. package/dist/query/hosts.js +143 -2
  44. package/dist/query/index.d.ts +60 -29
  45. package/dist/query/index.js +55 -26
  46. package/dist/react/context.d.ts +18 -0
  47. package/dist/react/context.js +19 -0
  48. package/dist/react/index.d.ts +14 -0
  49. package/dist/react/index.js +14 -0
  50. package/dist/react/query.d.ts +75 -0
  51. package/dist/react/query.js +116 -0
  52. package/dist/read/index.d.ts +60 -0
  53. package/dist/read/index.js +107 -0
  54. package/dist/resend.d.ts +25 -0
  55. package/dist/resend.js +52 -0
  56. package/dist/versions/entities.gen.d.ts +8 -0
  57. package/dist/versions/entities.gen.js +9 -0
  58. package/dist/versions/index.d.ts +59 -17
  59. package/dist/versions/index.js +156 -22
  60. package/dist/versions/react.d.ts +1 -1
  61. package/dist/versions/react.js +1 -1
  62. package/dist/versions/text.d.ts +19 -0
  63. package/dist/versions/text.js +73 -0
  64. package/dist/wasm/techne-wasm.gen.js +1 -1
  65. package/dist/wasm/techne-wasm2js.gen.js +8928 -8927
  66. package/package.json +17 -5
@@ -1471,6 +1471,16 @@ export const schemaDict = {
1471
1471
  maxLength: 64,
1472
1472
  description: 'Optional: one emoji the lighter picked for this beacon (its card mark and map pin glyph).',
1473
1473
  },
1474
+ answerEmojis: {
1475
+ type: 'array',
1476
+ maxLength: 3,
1477
+ items: {
1478
+ type: 'string',
1479
+ maxGraphemes: 1,
1480
+ maxLength: 64,
1481
+ },
1482
+ description: "Optional: the emoji the lighter picked for the answers, in this order: going (I'm in), interested (Maybe), notgoing (Can't go). A missing or empty entry means the app's own emoji for that answer.",
1483
+ },
1474
1484
  createdAt: {
1475
1485
  type: 'string',
1476
1486
  format: 'datetime',
@@ -1655,7 +1665,7 @@ export const schemaDict = {
1655
1665
  },
1656
1666
  collectiveType: {
1657
1667
  type: 'string',
1658
- description: 'Free-form collective type/category label. The value "beacon.circle" marks a Beacon circle on a descriptor placed in its own DID\'s pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, where every member holds role 40 (where the platform holds the circle\'s credential, any member may add, remove and rename and nobody deletes it; a circle whose DID someone else holds is managed by its holder), and which a pub.techne.draft.accessRule#groupTarget may name.',
1668
+ description: "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, and which a pub.techne.draft.accessRule#groupTarget may name. Roles: a member holds 20 and the manager 40 (the founder, until they make someone else manager). Where the platform holds the circle's credential, any member may add people and leave; only the manager renames, sets the emoji, removes people and makes someone manager (one putRecords: that member at 40, the manager's own claim at 20). A write that would leave members with nobody at >= 30 is refused (LastManager). A circle whose last member leaves is deleted, and so is one whose only member deletes their account; an account that alone manages a circle hands it to the longest-standing other member when it is deleted. Circles made before these roles hold every member at 40 until the operator lowers them. A circle whose DID someone else holds is managed by its holder.",
1659
1669
  maxLength: 64,
1660
1670
  },
1661
1671
  sceneType: {
@@ -3047,7 +3057,7 @@ export const schemaDict = {
3047
3057
  defs: {
3048
3058
  main: {
3049
3059
  type: 'procedure',
3050
- 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, 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).",
3060
+ description: "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. It never moves a bound channel, never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
3051
3061
  input: {
3052
3062
  encoding: 'application/json',
3053
3063
  schema: {
@@ -3116,6 +3126,10 @@ export const schemaDict = {
3116
3126
  name: 'ChannelBound',
3117
3127
  description: 'The channel is bound to another account (HTTP 409). Never retried.',
3118
3128
  },
3129
+ {
3130
+ name: 'ChannelReleased',
3131
+ description: 'The account named by `did` removed this phone number (identity.unlinkMethod) and nobody has bound it since (HTTP 409). Never retried: the account gets the number back only by adding it again (identity.finishAddMethod).',
3132
+ },
3119
3133
  {
3120
3134
  name: 'RateLimitExceeded',
3121
3135
  description: 'As identity.resolve (HTTP 429).',
@@ -3130,7 +3144,7 @@ export const schemaDict = {
3130
3144
  defs: {
3131
3145
  main: {
3132
3146
  type: 'procedure',
3133
- description: "Start adding a sign-in method to the caller's account: sends a 6-digit code to the channel (email in v1). The code is good for 10 minutes and 5 attempts; finish with identity.finishAddMethod. Signed-in members only.",
3147
+ description: "Start adding a sign-in method to the caller's account: sends a 6-digit code to the channel: an email, or a phone by SMS. To change a phone number, add the new one, then remove the old one with identity.unlinkMethod. The code is good for 10 minutes and 5 attempts; finish with identity.finishAddMethod. Signed-in members only.",
3134
3148
  input: {
3135
3149
  encoding: 'application/json',
3136
3150
  schema: {
@@ -3169,12 +3183,16 @@ export const schemaDict = {
3169
3183
  },
3170
3184
  {
3171
3185
  name: 'InvalidRequest',
3172
- description: 'The channel is not a valid email, or its type cannot be added yet.',
3186
+ description: 'The channel is not a valid email or E.164 phone number, or its type cannot be added on this server.',
3173
3187
  },
3174
3188
  {
3175
3189
  name: 'RateLimitExceeded',
3176
3190
  description: 'Too many codes sent to this address (HTTP 429).',
3177
3191
  },
3192
+ {
3193
+ name: 'SendFailed',
3194
+ description: 'The code could not be texted to that phone number (HTTP 502). Try again.',
3195
+ },
3178
3196
  ],
3179
3197
  },
3180
3198
  },
@@ -3585,6 +3603,14 @@ export const schemaDict = {
3585
3603
  name: 'InvalidCode',
3586
3604
  description: "The code is wrong, expired or used up, or the challenge is not the caller's.",
3587
3605
  },
3606
+ {
3607
+ name: 'RateLimitExceeded',
3608
+ description: 'A phone code: the provider that sent it is refusing more checks for this number for now (HTTP 429). Wait a few minutes.',
3609
+ },
3610
+ {
3611
+ name: 'UpstreamFailure',
3612
+ 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.',
3613
+ },
3588
3614
  ],
3589
3615
  },
3590
3616
  offer: {
@@ -4438,7 +4464,7 @@ export const schemaDict = {
4438
4464
  defs: {
4439
4465
  main: {
4440
4466
  type: 'procedure',
4441
- description: "A PDS's identity-resolver hook: which account, if any, a verified channel is bound to. Asked after the PDS has verified a one-time code for the channel and before it creates any account. Authenticated only by the `epds-signature` header (HMAC-SHA256 over `<t>\\n req\\n <path>\\n <body>` with the PDS's hook secret); no session, OAuth or service token is accepted. The response carries its own `epds-signature` (direction `res`), and a caller treats an unsigned or badly signed response as a failure. `bound` carries `did` only when the calling PDS hosts that account; otherwise the PDS must not create an account. `unavailable` (the account is deleted or taken down, or the issuer is not endorsed) never leads to creation.",
4467
+ description: "A PDS's identity-resolver hook: which account, if any, a verified channel is bound to. Asked after the PDS has verified a one-time code for the channel and before it creates any account. Authenticated only by the `epds-signature` header (HMAC-SHA256 over `<t>\\n req\\n <path>\\n <body>` with the PDS's hook secret); no session, OAuth or service token is accepted. The response carries its own `epds-signature` (direction `res`), and a caller treats an unsigned or badly signed response as a failure. `bound` carries `did` only when the calling PDS hosts that account; otherwise the PDS must not create an account. `unavailable` (the account is deleted or taken down, or the issuer is not endorsed) never leads to creation. `unbound` with `released` names a phone number its account removed: see `released`.",
4442
4468
  input: {
4443
4469
  encoding: 'application/json',
4444
4470
  schema: {
@@ -4479,6 +4505,21 @@ export const schemaDict = {
4479
4505
  format: 'did',
4480
4506
  description: 'Present only with `bound`, and only when the calling PDS hosts the account.',
4481
4507
  },
4508
+ released: {
4509
+ type: 'boolean',
4510
+ description: 'Present (true) only with `unbound`: the phone number was removed from an account (identity.unlinkMethod) and nobody has bound it since. The PDS must not sign the number in to an account it kept for it before (a placeholder from an earlier sign-in); it starts a new account instead. Email channels never carry it.',
4511
+ },
4512
+ releasedFrom: {
4513
+ type: 'string',
4514
+ format: 'did',
4515
+ description: "Present only with `released`, and only when the calling PDS hosts the account that removed the number: that account's DID. A PDS that keeps an account per phone number (a placeholder) uses it to tell two placeholders apart: the old account's, which must not sign in with this number again, and the one it started for the number's new holder after the removal, which it finds by this DID and `releaseId` and signs in until the number is bound to it. Binding the number back to this account through identity.attest is refused (`ChannelReleased`).",
4516
+ },
4517
+ releaseId: {
4518
+ type: 'string',
4519
+ minLength: 1,
4520
+ maxLength: 64,
4521
+ description: "Present only with `releasedFrom`: the platform's id for that removal, fresh each time the number is removed. A PDS keys the number's next holder's account on `releasedFrom` and `releaseId` together, so an account that later removed the number itself is never handed on to the holder after it.",
4522
+ },
4482
4523
  },
4483
4524
  },
4484
4525
  },
@@ -4604,7 +4645,7 @@ export const schemaDict = {
4604
4645
  defs: {
4605
4646
  main: {
4606
4647
  type: 'procedure',
4607
- 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. Refused for the account's last method.",
4648
+ description: "Remove a sign-in method from the caller's account: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. A removed phone number is marked released: identity.resolve answers `unbound` with `released` and `releasedFrom` (this account) until someone binds it, so a PDS never signs it in to this account again through a placeholder it kept, and identity.attest refuses binding it back here (`ChannelReleased`); only adding it again (identity.finishAddMethod) does. Refused for the account's last method.",
4608
4649
  input: {
4609
4650
  encoding: 'application/json',
4610
4651
  schema: {
@@ -4869,7 +4910,7 @@ export const schemaDict = {
4869
4910
  addedBy: {
4870
4911
  type: 'string',
4871
4912
  format: 'did',
4872
- description: "The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body — stamped by the handler from the authenticated caller who passed the space's `manage` check, NEVER client-supplied, and read by NO policy predicate (the boundedness invariant is untouched: nothing evaluates access from this field). Meant for in-space (permissioned) rosters only; a firehose membership claim's `addedBy` would publish \"who recruited whom\" as a new world-readable social edge with no surface asking anyone's consent for that, so no PUBLIC-collective writer stamps it. Stamped by `proposeInvite` (`xrpc/invite.rs`) on in-space rosters only — carried forward from the pending claim at bind, never re-derived; never on a firehose claim. CAVEAT: deriving meaning from this field's ABSENCE would be fragile — any legacy or imported claim satisfies \"absent addedBy\" without having founded anything — so a future reader must not lean on absence; the intended fix, the day one is needed, is a positive `founder` marker, not stronger inference over this field's absence.",
4913
+ description: "The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body, read by NO policy predicate (the boundedness invariant is untouched: nothing evaluates access from this field). Who sets it: whoever writes the claim with the authority's pen. A writer holding only the write leg of a circle's member space (role 20-29, who may write adds and their own claim, nothing else) must name themselves or nobody on an add, and a re-put of their own claim keeps the stored value. A writer holding manage may put any DID here (the platform checks only that it is a DID); `proposeInvite` (`xrpc/invite.rs`) stamps the caller who passed `manage` and carries it forward from the pending claim at bind. A circle founder's own claim names themself (\"Started by\"); a collective made with identity.createCollective writes its founder's claim without addedBy. Meant for in-space (permissioned) rosters only; a firehose membership claim's `addedBy` would publish \"who recruited whom\" as a new world-readable social edge with no surface asking anyone's consent for that, so no PUBLIC-collective writer stamps it. CAVEAT: deriving meaning from this field's ABSENCE would be fragile (any legacy or imported claim satisfies \"absent addedBy\" without having founded anything), so a reader must not lean on absence; the intended fix, the day one is needed, is a positive `founder` marker.",
4873
4914
  },
4874
4915
  createdAt: {
4875
4916
  type: 'string',
@@ -5129,11 +5170,11 @@ export const schemaDict = {
5129
5170
  PubTechneDraftPermissionedDeleteRecord: {
5130
5171
  lexicon: 1,
5131
5172
  id: 'pub.techne.draft.permissioned.deleteRecord',
5132
- description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.",
5173
+ description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by the app its key names or a caller whose `space:` scopes cover a delete there; any other caller is refused 403 Forbidden and nothing is deleted, the record's own writer included when the record counted in no space, and even when nothing is at the key. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. Draft tier.",
5133
5174
  defs: {
5134
5175
  main: {
5135
5176
  type: 'procedure',
5136
- description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.",
5177
+ description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only by the app its key names or under `space:` scopes covering it: anyone else, its writer included, is 403 Forbidden. Draft tier.",
5137
5178
  input: {
5138
5179
  encoding: 'application/json',
5139
5180
  schema: {
@@ -5187,7 +5228,11 @@ export const schemaDict = {
5187
5228
  },
5188
5229
  {
5189
5230
  name: 'Forbidden',
5190
- description: "HTTP 403. repo is not the caller's own.",
5231
+ description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a delete there. Nothing is deleted.",
5232
+ },
5233
+ {
5234
+ name: 'LastManager',
5235
+ 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.',
5191
5236
  },
5192
5237
  {
5193
5238
  name: 'AccountDeleting',
@@ -5562,11 +5607,11 @@ export const schemaDict = {
5562
5607
  PubTechneDraftPermissionedPutRecord: {
5563
5608
  lexicon: 1,
5564
5609
  id: 'pub.techne.draft.permissioned.putRecord',
5565
- description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate and no collection check: any collection may be written, for any space. A write is never refused for its space. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space counts there only when written by the app its key names (the managing app); written by any other app it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; write it again to ask again. A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.",
5610
+ description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused for its space. Replacing a record already written for an app's space (a pub.techne.draft.space.private space) is: only the app its key names, or a caller whose `space:` scopes cover a put there, may replace it; any other caller is refused 403 Forbidden and nothing is written, the record's own writer included when the record counted in no space. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space counts there only when written by the app its key names (the managing app) or by a caller whose `space:` scopes cover that space; written by anyone else it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; write it again to ask again (for an app's space only the callers that may replace a record there can). A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.",
5566
5611
  defs: {
5567
5612
  main: {
5568
5613
  type: 'procedure',
5569
- description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names; else it counts in no space. The output's `space` says where it counts. Writing the current version again is a no-op. One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.",
5614
+ description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names (or under `space:` scopes covering it); else it counts in no space. Replacing a record already written there needs that app or those scopes: anyone else, its writer included, is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only for that app or under covering scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.",
5570
5615
  input: {
5571
5616
  encoding: 'application/json',
5572
5617
  schema: {
@@ -5648,7 +5693,11 @@ export const schemaDict = {
5648
5693
  },
5649
5694
  {
5650
5695
  name: 'Forbidden',
5651
- description: "HTTP 403. repo is not the caller's own.",
5696
+ description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a put there. A first write is never refused for its space. Nothing is written.",
5697
+ },
5698
+ {
5699
+ name: 'LastManager',
5700
+ 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.',
5652
5701
  },
5653
5702
  {
5654
5703
  name: 'AccountDeleting',
@@ -5685,11 +5734,11 @@ export const schemaDict = {
5685
5734
  PubTechneDraftPermissionedPutRecords: {
5686
5735
  lexicon: 1,
5687
5736
  id: 'pub.techne.draft.permissioned.putRecords',
5688
- 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), 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, 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. `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.",
5737
+ description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only for its app or under `space:` scopes covering it; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) by a caller that is neither the app its key names nor holds `space:` scopes covering a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied. A first write is never refused for its space. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.",
5689
5738
  defs: {
5690
5739
  main: {
5691
5740
  type: 'procedure',
5692
- 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. Space scopes and space.private apply to each write as in putRecord. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.",
5741
+ description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.",
5693
5742
  input: {
5694
5743
  encoding: 'application/json',
5695
5744
  schema: {
@@ -5742,7 +5791,11 @@ export const schemaDict = {
5742
5791
  },
5743
5792
  {
5744
5793
  name: 'Forbidden',
5745
- description: "HTTP 403. repo is not the caller's own. Nothing is written.",
5794
+ description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description). Nothing is written.",
5795
+ },
5796
+ {
5797
+ name: 'LastManager',
5798
+ description: 'HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.',
5746
5799
  },
5747
5800
  {
5748
5801
  name: 'AccountDeleting',
@@ -5829,7 +5882,7 @@ export const schemaDict = {
5829
5882
  properties: {
5830
5883
  error: {
5831
5884
  type: 'string',
5832
- 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) or DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord).",
5885
+ description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space and the caller is neither the app its key names nor holds `space:` scopes covering it; see putRecord).",
5833
5886
  knownValues: [
5834
5887
  'InvalidRequest',
5835
5888
  'InvalidSwap',
@@ -8489,7 +8542,7 @@ export const schemaDict = {
8489
8542
  PubTechneDraftRsvpNote: {
8490
8543
  lexicon: 1,
8491
8544
  id: 'pub.techne.draft.rsvpNote',
8492
- description: "A short note a person writes with their response to a beacon (\"running 15 late\"). Authored by the responder, rkey = the rkey of the responder's own community.lexicon.calendar.rsvp, so there is at most one note per response and an edit is a re-put. Placed ONLY in the beacon's pub.techne.draft.space.beacon, beside the RSVP it annotates, so it has exactly the RSVP's audience. A separate record rather than a field on the community RSVP, which we adopt and never extend.",
8545
+ description: "A short note a person writes with their response to a beacon (\"running 15 late\"). Authored by the responder, rkey = the rkey of the responder's own community.lexicon.calendar.rsvp, so there is at most one note per response and an edit is a re-put. Placed beside the RSVP it annotates, so it has exactly the RSVP's audience: in the beacon's pub.techne.draft.space.beacon for a going or interested answer, or in the responder's own pub.techne.draft.space.beaconDecline for a #notgoing one; when the answer changes it moves with the RSVP into the beaconDecline space, and is deleted when the answer leaves that space (never re-published to the beacon's audience). A separate record rather than a field on the community RSVP, which we adopt and never extend.",
8493
8546
  defs: {
8494
8547
  main: {
8495
8548
  type: 'record',
@@ -8912,6 +8965,12 @@ export const schemaDict = {
8912
8965
  maxGraphemes: 100,
8913
8966
  description: 'The line, as plain text.',
8914
8967
  },
8968
+ emoji: {
8969
+ type: 'string',
8970
+ maxGraphemes: 1,
8971
+ maxLength: 64,
8972
+ description: 'Optional: one emoji for the record (a card mark and map pin glyph). A single emoji, no flags; readers fall back to their own when absent.',
8973
+ },
8915
8974
  createdAt: {
8916
8975
  type: 'string',
8917
8976
  format: 'datetime',
@@ -82,6 +82,7 @@ export declare const NSID: {
82
82
  readonly FEED_RECIPE_SIGNAL_WEIGHT: "pub.techne.draft.feed.recipe#signalWeight";
83
83
  readonly GEO: "pub.techne.draft.geo";
84
84
  readonly HELD_AT: "pub.techne.draft.heldAt";
85
+ readonly HELD_AT_QUERY: "pub.techne.draft.heldAt.query";
85
86
  readonly IDENTITY_ACCOUNTS_FOR_PHONES: "pub.techne.draft.identity.accountsForPhones";
86
87
  readonly IDENTITY_ACCOUNTS_FOR_PHONES_ACCOUNT: "pub.techne.draft.identity.accountsForPhones#account";
87
88
  readonly IDENTITY_ATTEST: "pub.techne.draft.identity.attest";
@@ -238,6 +239,8 @@ export declare const NSID: {
238
239
  readonly SOURCE_ATTRIBUTION: "pub.techne.draft.sourceAttribution";
239
240
  readonly SOURCE_REF: "pub.techne.draft.sourceRef";
240
241
  readonly SPACE_BEACON: "pub.techne.draft.space.beacon";
242
+ readonly SPACE_BEACON_DECLINE: "pub.techne.draft.space.beaconDecline";
243
+ readonly SPACE_BEACON_DECLINE_POLICY: "pub.techne.draft.space.beaconDecline.policy";
241
244
  readonly SPACE_BEACON_POLICY: "pub.techne.draft.space.beacon.policy";
242
245
  readonly SPACE_CIRCLE: "pub.techne.draft.space.circle";
243
246
  readonly SPACE_CIRCLE_POLICY: "pub.techne.draft.space.circle.policy";
@@ -489,6 +492,7 @@ export declare const METHOD: {
489
492
  readonly REGISTER_WEB_PUSH: "social.scenius.registerWebPush";
490
493
  readonly REMOVE_CONTENT: "social.scenius.removeContent";
491
494
  readonly REMOVE_GROUP_MEMBER: "social.scenius.removeGroupMember";
495
+ readonly REMOVE_PERSON: "social.scenius.removePerson";
492
496
  readonly RENAME_GROUP: "social.scenius.renameGroup";
493
497
  readonly RENAME_GROUP_DID_MEMBER: "social.scenius.renameGroup#didMember";
494
498
  readonly RENAME_GROUP_GROUP_VIEW: "social.scenius.renameGroup#groupView";
@@ -86,6 +86,7 @@ export const NSID = {
86
86
  FEED_RECIPE_SIGNAL_WEIGHT: 'pub.techne.draft.feed.recipe#signalWeight',
87
87
  GEO: 'pub.techne.draft.geo',
88
88
  HELD_AT: 'pub.techne.draft.heldAt',
89
+ HELD_AT_QUERY: 'pub.techne.draft.heldAt.query',
89
90
  IDENTITY_ACCOUNTS_FOR_PHONES: 'pub.techne.draft.identity.accountsForPhones',
90
91
  IDENTITY_ACCOUNTS_FOR_PHONES_ACCOUNT: 'pub.techne.draft.identity.accountsForPhones#account',
91
92
  IDENTITY_ATTEST: 'pub.techne.draft.identity.attest',
@@ -242,6 +243,8 @@ export const NSID = {
242
243
  SOURCE_ATTRIBUTION: 'pub.techne.draft.sourceAttribution',
243
244
  SOURCE_REF: 'pub.techne.draft.sourceRef',
244
245
  SPACE_BEACON: 'pub.techne.draft.space.beacon',
246
+ SPACE_BEACON_DECLINE: 'pub.techne.draft.space.beaconDecline',
247
+ SPACE_BEACON_DECLINE_POLICY: 'pub.techne.draft.space.beaconDecline.policy',
245
248
  SPACE_BEACON_POLICY: 'pub.techne.draft.space.beacon.policy',
246
249
  SPACE_CIRCLE: 'pub.techne.draft.space.circle',
247
250
  SPACE_CIRCLE_POLICY: 'pub.techne.draft.space.circle.policy',
@@ -493,6 +496,7 @@ export const METHOD = {
493
496
  REGISTER_WEB_PUSH: 'social.scenius.registerWebPush',
494
497
  REMOVE_CONTENT: 'social.scenius.removeContent',
495
498
  REMOVE_GROUP_MEMBER: 'social.scenius.removeGroupMember',
499
+ REMOVE_PERSON: 'social.scenius.removePerson',
496
500
  RENAME_GROUP: 'social.scenius.renameGroup',
497
501
  RENAME_GROUP_DID_MEMBER: 'social.scenius.renameGroup#didMember',
498
502
  RENAME_GROUP_GROUP_VIEW: 'social.scenius.renameGroup#groupView',
@@ -82,6 +82,7 @@
82
82
  "FEED_RECIPE_SIGNAL_WEIGHT": "pub.techne.draft.feed.recipe#signalWeight",
83
83
  "GEO": "pub.techne.draft.geo",
84
84
  "HELD_AT": "pub.techne.draft.heldAt",
85
+ "HELD_AT_QUERY": "pub.techne.draft.heldAt.query",
85
86
  "IDENTITY_ACCOUNTS_FOR_PHONES": "pub.techne.draft.identity.accountsForPhones",
86
87
  "IDENTITY_ACCOUNTS_FOR_PHONES_ACCOUNT": "pub.techne.draft.identity.accountsForPhones#account",
87
88
  "IDENTITY_ATTEST": "pub.techne.draft.identity.attest",
@@ -238,6 +239,8 @@
238
239
  "SOURCE_ATTRIBUTION": "pub.techne.draft.sourceAttribution",
239
240
  "SOURCE_REF": "pub.techne.draft.sourceRef",
240
241
  "SPACE_BEACON": "pub.techne.draft.space.beacon",
242
+ "SPACE_BEACON_DECLINE": "pub.techne.draft.space.beaconDecline",
243
+ "SPACE_BEACON_DECLINE_POLICY": "pub.techne.draft.space.beaconDecline.policy",
241
244
  "SPACE_BEACON_POLICY": "pub.techne.draft.space.beacon.policy",
242
245
  "SPACE_CIRCLE": "pub.techne.draft.space.circle",
243
246
  "SPACE_CIRCLE_POLICY": "pub.techne.draft.space.circle.policy",
@@ -488,6 +491,7 @@
488
491
  "REGISTER_WEB_PUSH": "social.scenius.registerWebPush",
489
492
  "REMOVE_CONTENT": "social.scenius.removeContent",
490
493
  "REMOVE_GROUP_MEMBER": "social.scenius.removeGroupMember",
494
+ "REMOVE_PERSON": "social.scenius.removePerson",
491
495
  "RENAME_GROUP": "social.scenius.renameGroup",
492
496
  "RENAME_GROUP_DID_MEMBER": "social.scenius.renameGroup#didMember",
493
497
  "RENAME_GROUP_GROUP_VIEW": "social.scenius.renameGroup#groupView",
@@ -9,6 +9,8 @@ export interface Main {
9
9
  note?: string;
10
10
  /** Optional: one emoji the lighter picked for this beacon (its card mark and map pin glyph). */
11
11
  emoji?: string;
12
+ /** Optional: the emoji the lighter picked for the answers, in this order: going (I'm in), interested (Maybe), notgoing (Can't go). A missing or empty entry means the app's own emoji for that answer. */
13
+ answerEmojis?: string[];
12
14
  createdAt: string;
13
15
  [k: string]: unknown;
14
16
  }
@@ -15,7 +15,7 @@ export interface Main {
15
15
  description?: string;
16
16
  /** Optional: one emoji (one grapheme cluster), the collective's mark. A client shows the avatar if there is one, else this emoji, else the first letter of the name. No color is stored; a client may derive one from the collective's DID. */
17
17
  emoji?: string;
18
- /** Free-form collective type/category label. The value "beacon.circle" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, where every member holds role 40 (where the platform holds the circle's credential, any member may add, remove and rename and nobody deletes it; a circle whose DID someone else holds is managed by its holder), and which a pub.techne.draft.accessRule#groupTarget may name. */
18
+ /** Free-form collective type/category label. The value "beacon.circle" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, and which a pub.techne.draft.accessRule#groupTarget may name. Roles: a member holds 20 and the manager 40 (the founder, until they make someone else manager). Where the platform holds the circle's credential, any member may add people and leave; only the manager renames, sets the emoji, removes people and makes someone manager (one putRecords: that member at 40, the manager's own claim at 20). A write that would leave members with nobody at >= 30 is refused (LastManager). A circle whose last member leaves is deleted, and so is one whose only member deletes their account; an account that alone manages a circle hands it to the longest-standing other member when it is deleted. Circles made before these roles hold every member at 40 until the operator lowers them. A circle whose DID someone else holds is managed by its holder. */
19
19
  collectiveType?: string;
20
20
  /** Deprecated: the old name of collectiveType, kept so records written before 2026-10-09 still read. Writers set collectiveType only. Readers take collectiveType and fall back to sceneType when it is absent. */
21
21
  sceneType?: string;
@@ -42,6 +42,9 @@ export declare class UnknownAccountError extends XRPCError {
42
42
  export declare class ChannelBoundError extends XRPCError {
43
43
  constructor(src: XRPCError);
44
44
  }
45
+ export declare class ChannelReleasedError extends XRPCError {
46
+ constructor(src: XRPCError);
47
+ }
45
48
  export declare class RateLimitExceededError extends XRPCError {
46
49
  constructor(src: XRPCError);
47
50
  }
@@ -26,6 +26,11 @@ export class ChannelBoundError extends XRPCError {
26
26
  super(src.status, src.error, src.message, src.headers, { cause: src });
27
27
  }
28
28
  }
29
+ export class ChannelReleasedError extends XRPCError {
30
+ constructor(src) {
31
+ super(src.status, src.error, src.message, src.headers, { cause: src });
32
+ }
33
+ }
29
34
  export class RateLimitExceededError extends XRPCError {
30
35
  constructor(src) {
31
36
  super(src.status, src.error, src.message, src.headers, { cause: src });
@@ -41,6 +46,8 @@ export function toKnownErr(e) {
41
46
  return new UnknownAccountError(e);
42
47
  if (e.error === 'ChannelBound')
43
48
  return new ChannelBoundError(e);
49
+ if (e.error === 'ChannelReleased')
50
+ return new ChannelReleasedError(e);
44
51
  if (e.error === 'RateLimitExceeded')
45
52
  return new RateLimitExceededError(e);
46
53
  }
@@ -32,4 +32,7 @@ export declare class InvalidRequestError extends XRPCError {
32
32
  export declare class RateLimitExceededError extends XRPCError {
33
33
  constructor(src: XRPCError);
34
34
  }
35
+ export declare class SendFailedError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
35
38
  export declare function toKnownErr(e: any): any;
@@ -21,6 +21,11 @@ export class RateLimitExceededError extends XRPCError {
21
21
  super(src.status, src.error, src.message, src.headers, { cause: src });
22
22
  }
23
23
  }
24
+ export class SendFailedError extends XRPCError {
25
+ constructor(src) {
26
+ super(src.status, src.error, src.message, src.headers, { cause: src });
27
+ }
28
+ }
24
29
  export function toKnownErr(e) {
25
30
  if (e instanceof XRPCError) {
26
31
  if (e.error === 'AuthenticationRequired')
@@ -29,6 +34,8 @@ export function toKnownErr(e) {
29
34
  return new InvalidRequestError(e);
30
35
  if (e.error === 'RateLimitExceeded')
31
36
  return new RateLimitExceededError(e);
37
+ if (e.error === 'SendFailed')
38
+ return new SendFailedError(e);
32
39
  }
33
40
  return e;
34
41
  }
@@ -31,6 +31,12 @@ export declare class AuthenticationRequiredError extends XRPCError {
31
31
  export declare class InvalidCodeError extends XRPCError {
32
32
  constructor(src: XRPCError);
33
33
  }
34
+ export declare class RateLimitExceededError extends XRPCError {
35
+ constructor(src: XRPCError);
36
+ }
37
+ export declare class UpstreamFailureError extends XRPCError {
38
+ constructor(src: XRPCError);
39
+ }
34
40
  export declare function toKnownErr(e: any): any;
35
41
  export interface Offer {
36
42
  $type?: 'pub.techne.draft.identity.finishAddMethod#offer';
@@ -16,12 +16,26 @@ export class InvalidCodeError extends XRPCError {
16
16
  super(src.status, src.error, src.message, src.headers, { cause: src });
17
17
  }
18
18
  }
19
+ export class RateLimitExceededError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
24
+ export class UpstreamFailureError extends XRPCError {
25
+ constructor(src) {
26
+ super(src.status, src.error, src.message, src.headers, { cause: src });
27
+ }
28
+ }
19
29
  export function toKnownErr(e) {
20
30
  if (e instanceof XRPCError) {
21
31
  if (e.error === 'AuthenticationRequired')
22
32
  return new AuthenticationRequiredError(e);
23
33
  if (e.error === 'InvalidCode')
24
34
  return new InvalidCodeError(e);
35
+ if (e.error === 'RateLimitExceeded')
36
+ return new RateLimitExceededError(e);
37
+ if (e.error === 'UpstreamFailure')
38
+ return new UpstreamFailureError(e);
25
39
  }
26
40
  return e;
27
41
  }
@@ -15,6 +15,12 @@ export interface OutputSchema {
15
15
  status: 'bound' | 'unbound' | 'unavailable' | (string & {});
16
16
  /** Present only with `bound`, and only when the calling PDS hosts the account. */
17
17
  did?: string;
18
+ /** Present (true) only with `unbound`: the phone number was removed from an account (identity.unlinkMethod) and nobody has bound it since. The PDS must not sign the number in to an account it kept for it before (a placeholder from an earlier sign-in); it starts a new account instead. Email channels never carry it. */
19
+ released?: boolean;
20
+ /** 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`). */
21
+ releasedFrom?: string;
22
+ /** Present only with `releasedFrom`: the platform's id for that removal, fresh each time the number is removed. A PDS keys the number's next holder's account on `releasedFrom` and `releaseId` together, so an account that later removed the number itself is never handed on to the holder after it. */
23
+ releaseId?: string;
18
24
  }
19
25
  export interface CallOptions {
20
26
  signal?: AbortSignal;
@@ -12,7 +12,7 @@ export interface Main {
12
12
  validFrom?: string;
13
13
  /** Optional expiry; an expired claim grants nothing at policy evaluation. Our remove and leave set it to now: the membership ends, and what the member wrote while it held still counts. */
14
14
  validUntil?: string;
15
- /** The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body — stamped by the handler from the authenticated caller who passed the space's `manage` check, NEVER client-supplied, and read by NO policy predicate (the boundedness invariant is untouched: nothing evaluates access from this field). Meant for in-space (permissioned) rosters only; a firehose membership claim's `addedBy` would publish "who recruited whom" as a new world-readable social edge with no surface asking anyone's consent for that, so no PUBLIC-collective writer stamps it. Stamped by `proposeInvite` (`xrpc/invite.rs`) on in-space rosters only — carried forward from the pending claim at bind, never re-derived; never on a firehose claim. CAVEAT: deriving meaning from this field's ABSENCE would be fragile — any legacy or imported claim satisfies "absent addedBy" without having founded anything — so a future reader must not lean on absence; the intended fix, the day one is needed, is a positive `founder` marker, not stronger inference over this field's absence. */
15
+ /** The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body, read by NO policy predicate (the boundedness invariant is untouched: nothing evaluates access from this field). Who sets it: whoever writes the claim with the authority's pen. A writer holding only the write leg of a circle's member space (role 20-29, who may write adds and their own claim, nothing else) must name themselves or nobody on an add, and a re-put of their own claim keeps the stored value. A writer holding manage may put any DID here (the platform checks only that it is a DID); `proposeInvite` (`xrpc/invite.rs`) stamps the caller who passed `manage` and carries it forward from the pending claim at bind. A circle founder's own claim names themself ("Started by"); a collective made with identity.createCollective writes its founder's claim without addedBy. Meant for in-space (permissioned) rosters only; a firehose membership claim's `addedBy` would publish "who recruited whom" as a new world-readable social edge with no surface asking anyone's consent for that, so no PUBLIC-collective writer stamps it. CAVEAT: deriving meaning from this field's ABSENCE would be fragile (any legacy or imported claim satisfies "absent addedBy" without having founded anything), so a reader must not lean on absence; the intended fix, the day one is needed, is a positive `founder` marker. */
16
16
  addedBy?: string;
17
17
  createdAt: string;
18
18
  [k: string]: unknown;
@@ -34,6 +34,9 @@ export declare class InvalidRequestError extends XRPCError {
34
34
  export declare class ForbiddenError extends XRPCError {
35
35
  constructor(src: XRPCError);
36
36
  }
37
+ export declare class LastManagerError extends XRPCError {
38
+ constructor(src: XRPCError);
39
+ }
37
40
  export declare class AccountDeletingError extends XRPCError {
38
41
  constructor(src: XRPCError);
39
42
  }
@@ -16,6 +16,11 @@ export class ForbiddenError extends XRPCError {
16
16
  super(src.status, src.error, src.message, src.headers, { cause: src });
17
17
  }
18
18
  }
19
+ export class LastManagerError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
19
24
  export class AccountDeletingError extends XRPCError {
20
25
  constructor(src) {
21
26
  super(src.status, src.error, src.message, src.headers, { cause: src });
@@ -47,6 +52,8 @@ export function toKnownErr(e) {
47
52
  return new InvalidRequestError(e);
48
53
  if (e.error === 'Forbidden')
49
54
  return new ForbiddenError(e);
55
+ if (e.error === 'LastManager')
56
+ return new LastManagerError(e);
50
57
  if (e.error === 'AccountDeleting')
51
58
  return new AccountDeletingError(e);
52
59
  if (e.error === 'InvalidSwap')
@@ -46,6 +46,9 @@ export declare class InvalidRequestError extends XRPCError {
46
46
  export declare class ForbiddenError extends XRPCError {
47
47
  constructor(src: XRPCError);
48
48
  }
49
+ export declare class LastManagerError extends XRPCError {
50
+ constructor(src: XRPCError);
51
+ }
49
52
  export declare class AccountDeletingError extends XRPCError {
50
53
  constructor(src: XRPCError);
51
54
  }
@@ -16,6 +16,11 @@ export class ForbiddenError extends XRPCError {
16
16
  super(src.status, src.error, src.message, src.headers, { cause: src });
17
17
  }
18
18
  }
19
+ export class LastManagerError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
19
24
  export class AccountDeletingError extends XRPCError {
20
25
  constructor(src) {
21
26
  super(src.status, src.error, src.message, src.headers, { cause: src });
@@ -57,6 +62,8 @@ export function toKnownErr(e) {
57
62
  return new InvalidRequestError(e);
58
63
  if (e.error === 'Forbidden')
59
64
  return new ForbiddenError(e);
65
+ if (e.error === 'LastManager')
66
+ return new LastManagerError(e);
60
67
  if (e.error === 'AccountDeleting')
61
68
  return new AccountDeletingError(e);
62
69
  if (e.error === 'InvalidSwap')