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
@@ -1388,6 +1388,16 @@ export declare const schemaDict: {
1388
1388
  readonly maxLength: 64;
1389
1389
  readonly description: "Optional: one emoji the lighter picked for this beacon (its card mark and map pin glyph).";
1390
1390
  };
1391
+ readonly answerEmojis: {
1392
+ readonly type: "array";
1393
+ readonly maxLength: 3;
1394
+ readonly items: {
1395
+ readonly type: "string";
1396
+ readonly maxGraphemes: 1;
1397
+ readonly maxLength: 64;
1398
+ };
1399
+ readonly 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.";
1400
+ };
1391
1401
  readonly createdAt: {
1392
1402
  readonly type: "string";
1393
1403
  readonly format: "datetime";
@@ -1572,7 +1582,7 @@ export declare const schemaDict: {
1572
1582
  };
1573
1583
  readonly collectiveType: {
1574
1584
  readonly type: "string";
1575
- readonly 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.";
1585
+ readonly 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.";
1576
1586
  readonly maxLength: 64;
1577
1587
  };
1578
1588
  readonly sceneType: {
@@ -2893,7 +2903,7 @@ export declare const schemaDict: {
2893
2903
  readonly defs: {
2894
2904
  readonly main: {
2895
2905
  readonly type: "procedure";
2896
- readonly 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).";
2906
+ readonly 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).";
2897
2907
  readonly input: {
2898
2908
  readonly encoding: "application/json";
2899
2909
  readonly schema: {
@@ -2957,6 +2967,9 @@ export declare const schemaDict: {
2957
2967
  }, {
2958
2968
  readonly name: "ChannelBound";
2959
2969
  readonly description: "The channel is bound to another account (HTTP 409). Never retried.";
2970
+ }, {
2971
+ readonly name: "ChannelReleased";
2972
+ readonly 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).";
2960
2973
  }, {
2961
2974
  readonly name: "RateLimitExceeded";
2962
2975
  readonly description: "As identity.resolve (HTTP 429).";
@@ -2970,7 +2983,7 @@ export declare const schemaDict: {
2970
2983
  readonly defs: {
2971
2984
  readonly main: {
2972
2985
  readonly type: "procedure";
2973
- readonly 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.";
2986
+ readonly 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.";
2974
2987
  readonly input: {
2975
2988
  readonly encoding: "application/json";
2976
2989
  readonly schema: {
@@ -3007,10 +3020,13 @@ export declare const schemaDict: {
3007
3020
  readonly description: "No signed-in caller.";
3008
3021
  }, {
3009
3022
  readonly name: "InvalidRequest";
3010
- readonly description: "The channel is not a valid email, or its type cannot be added yet.";
3023
+ readonly description: "The channel is not a valid email or E.164 phone number, or its type cannot be added on this server.";
3011
3024
  }, {
3012
3025
  readonly name: "RateLimitExceeded";
3013
3026
  readonly description: "Too many codes sent to this address (HTTP 429).";
3027
+ }, {
3028
+ readonly name: "SendFailed";
3029
+ readonly description: "The code could not be texted to that phone number (HTTP 502). Try again.";
3014
3030
  }];
3015
3031
  };
3016
3032
  };
@@ -3400,6 +3416,12 @@ export declare const schemaDict: {
3400
3416
  }, {
3401
3417
  readonly name: "InvalidCode";
3402
3418
  readonly description: "The code is wrong, expired or used up, or the challenge is not the caller's.";
3419
+ }, {
3420
+ readonly name: "RateLimitExceeded";
3421
+ readonly description: "A phone code: the provider that sent it is refusing more checks for this number for now (HTTP 429). Wait a few minutes.";
3422
+ }, {
3423
+ readonly name: "UpstreamFailure";
3424
+ readonly description: "A phone code: the provider that sent it could not be asked whether it matches (HTTP 502). The code is not spent; try again.";
3403
3425
  }];
3404
3426
  };
3405
3427
  readonly offer: {
@@ -4186,7 +4208,7 @@ export declare const schemaDict: {
4186
4208
  readonly defs: {
4187
4209
  readonly main: {
4188
4210
  readonly type: "procedure";
4189
- readonly 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.";
4211
+ readonly 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`.";
4190
4212
  readonly input: {
4191
4213
  readonly encoding: "application/json";
4192
4214
  readonly schema: {
@@ -4227,6 +4249,21 @@ export declare const schemaDict: {
4227
4249
  readonly format: "did";
4228
4250
  readonly description: "Present only with `bound`, and only when the calling PDS hosts the account.";
4229
4251
  };
4252
+ readonly released: {
4253
+ readonly type: "boolean";
4254
+ readonly 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.";
4255
+ };
4256
+ readonly releasedFrom: {
4257
+ readonly type: "string";
4258
+ readonly format: "did";
4259
+ readonly 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`).";
4260
+ };
4261
+ readonly releaseId: {
4262
+ readonly type: "string";
4263
+ readonly minLength: 1;
4264
+ readonly maxLength: 64;
4265
+ readonly 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.";
4266
+ };
4230
4267
  };
4231
4268
  };
4232
4269
  };
@@ -4340,7 +4377,7 @@ export declare const schemaDict: {
4340
4377
  readonly defs: {
4341
4378
  readonly main: {
4342
4379
  readonly type: "procedure";
4343
- readonly 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.";
4380
+ readonly 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.";
4344
4381
  readonly input: {
4345
4382
  readonly encoding: "application/json";
4346
4383
  readonly schema: {
@@ -4601,7 +4638,7 @@ export declare const schemaDict: {
4601
4638
  readonly addedBy: {
4602
4639
  readonly type: "string";
4603
4640
  readonly format: "did";
4604
- readonly 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.";
4641
+ readonly 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.";
4605
4642
  };
4606
4643
  readonly createdAt: {
4607
4644
  readonly type: "string";
@@ -4861,11 +4898,11 @@ export declare const schemaDict: {
4861
4898
  readonly PubTechneDraftPermissionedDeleteRecord: {
4862
4899
  readonly lexicon: 1;
4863
4900
  readonly id: "pub.techne.draft.permissioned.deleteRecord";
4864
- readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), 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.";
4901
+ readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by the app its key names or a caller whose `space:` scopes cover a delete there; any other caller is refused 403 Forbidden and nothing is deleted, the record's own writer included when the record counted in no space, and even when nothing is at the key. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. Draft tier.";
4865
4902
  readonly defs: {
4866
4903
  readonly main: {
4867
4904
  readonly type: "procedure";
4868
- readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap). 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.";
4905
+ readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only by the app its key names or under `space:` scopes covering it: anyone else, its writer included, is 403 Forbidden. Draft tier.";
4869
4906
  readonly input: {
4870
4907
  readonly encoding: "application/json";
4871
4908
  readonly schema: {
@@ -4917,7 +4954,10 @@ export declare const schemaDict: {
4917
4954
  readonly description: "HTTP 400. Malformed parameters. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
4918
4955
  }, {
4919
4956
  readonly name: "Forbidden";
4920
- readonly description: "HTTP 403. repo is not the caller's own.";
4957
+ readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a delete there. Nothing is deleted.";
4958
+ }, {
4959
+ readonly name: "LastManager";
4960
+ readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
4921
4961
  }, {
4922
4962
  readonly name: "AccountDeleting";
4923
4963
  readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing is written.";
@@ -5269,11 +5309,11 @@ export declare const schemaDict: {
5269
5309
  readonly PubTechneDraftPermissionedPutRecord: {
5270
5310
  readonly lexicon: 1;
5271
5311
  readonly id: "pub.techne.draft.permissioned.putRecord";
5272
- readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), 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.";
5312
+ readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused for its space. Replacing a record already written for an app's space (a pub.techne.draft.space.private space) is: only the app its key names, or a caller whose `space:` scopes cover a put there, may replace it; any other caller is refused 403 Forbidden and nothing is written, the record's own writer included when the record counted in no space. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space counts there only when written by the app its key names (the managing app) or by a caller whose `space:` scopes cover that space; written by anyone else it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; write it again to ask again (for an app's space only the callers that may replace a record there can). A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
5273
5313
  readonly defs: {
5274
5314
  readonly main: {
5275
5315
  readonly type: "procedure";
5276
- readonly 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.";
5316
+ readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names (or under `space:` scopes covering it); else it counts in no space. Replacing a record already written there needs that app or those scopes: anyone else, its writer included, is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only for that app or under covering scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.";
5277
5317
  readonly input: {
5278
5318
  readonly encoding: "application/json";
5279
5319
  readonly schema: {
@@ -5353,7 +5393,10 @@ export declare const schemaDict: {
5353
5393
  readonly description: "HTTP 400. Malformed input (no `space`: name one, since public records go through com.atproto.repo.putRecord; a bad DID, NSID, record key or space address, a record whose $type is not collection, or one with no DAG-CBOR form), or a body that fails its collection's published lexicon. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
5354
5394
  }, {
5355
5395
  readonly name: "Forbidden";
5356
- readonly description: "HTTP 403. repo is not the caller's own.";
5396
+ readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a put there. A first write is never refused for its space. Nothing is written.";
5397
+ }, {
5398
+ readonly name: "LastManager";
5399
+ readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
5357
5400
  }, {
5358
5401
  readonly name: "AccountDeleting";
5359
5402
  readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing is written.";
@@ -5382,11 +5425,11 @@ export declare const schemaDict: {
5382
5425
  readonly PubTechneDraftPermissionedPutRecords: {
5383
5426
  readonly lexicon: 1;
5384
5427
  readonly id: "pub.techne.draft.permissioned.putRecords";
5385
- readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), 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.";
5428
+ readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. 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.";
5386
5429
  readonly defs: {
5387
5430
  readonly main: {
5388
5431
  readonly type: "procedure";
5389
- readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). 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.";
5432
+ readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). 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.";
5390
5433
  readonly input: {
5391
5434
  readonly encoding: "application/json";
5392
5435
  readonly schema: {
@@ -5434,7 +5477,10 @@ export declare const schemaDict: {
5434
5477
  readonly description: "HTTP 400. Malformed input (a bad repo DID, no writes or more than 200, or a write with no `space`: name one, since public records go through com.atproto.repo.putRecord; nothing is written). Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description). A write that is malformed on its own is reported in its result instead.";
5435
5478
  }, {
5436
5479
  readonly name: "Forbidden";
5437
- readonly description: "HTTP 403. repo is not the caller's own. Nothing is written.";
5480
+ readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description). Nothing is written.";
5481
+ }, {
5482
+ readonly name: "LastManager";
5483
+ readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
5438
5484
  }, {
5439
5485
  readonly name: "AccountDeleting";
5440
5486
  readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing more is written; writes applied before the deletion began go with the account.";
@@ -5517,7 +5563,7 @@ export declare const schemaDict: {
5517
5563
  readonly properties: {
5518
5564
  readonly error: {
5519
5565
  readonly type: "string";
5520
- readonly description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord) or DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord).";
5566
+ readonly description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord) 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).";
5521
5567
  readonly knownValues: ["InvalidRequest", "InvalidSwap", "Conflict", "IdentityConflict", "DuplicatePhone"];
5522
5568
  };
5523
5569
  readonly message: {
@@ -8032,7 +8078,7 @@ export declare const schemaDict: {
8032
8078
  readonly PubTechneDraftRsvpNote: {
8033
8079
  readonly lexicon: 1;
8034
8080
  readonly id: "pub.techne.draft.rsvpNote";
8035
- readonly 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.";
8081
+ readonly 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.";
8036
8082
  readonly defs: {
8037
8083
  readonly main: {
8038
8084
  readonly type: "record";
@@ -8440,6 +8486,12 @@ export declare const schemaDict: {
8440
8486
  readonly maxGraphemes: 100;
8441
8487
  readonly description: "The line, as plain text.";
8442
8488
  };
8489
+ readonly emoji: {
8490
+ readonly type: "string";
8491
+ readonly maxGraphemes: 1;
8492
+ readonly maxLength: 64;
8493
+ readonly 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.";
8494
+ };
8443
8495
  readonly createdAt: {
8444
8496
  readonly type: "string";
8445
8497
  readonly format: "datetime";
@@ -11268,6 +11320,16 @@ export declare const schemas: ({
11268
11320
  readonly maxLength: 64;
11269
11321
  readonly description: "Optional: one emoji the lighter picked for this beacon (its card mark and map pin glyph).";
11270
11322
  };
11323
+ readonly answerEmojis: {
11324
+ readonly type: "array";
11325
+ readonly maxLength: 3;
11326
+ readonly items: {
11327
+ readonly type: "string";
11328
+ readonly maxGraphemes: 1;
11329
+ readonly maxLength: 64;
11330
+ };
11331
+ readonly 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.";
11332
+ };
11271
11333
  readonly createdAt: {
11272
11334
  readonly type: "string";
11273
11335
  readonly format: "datetime";
@@ -11446,7 +11508,7 @@ export declare const schemas: ({
11446
11508
  };
11447
11509
  readonly collectiveType: {
11448
11510
  readonly type: "string";
11449
- readonly 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.";
11511
+ readonly 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.";
11450
11512
  readonly maxLength: 64;
11451
11513
  };
11452
11514
  readonly sceneType: {
@@ -12744,7 +12806,7 @@ export declare const schemas: ({
12744
12806
  readonly defs: {
12745
12807
  readonly main: {
12746
12808
  readonly type: "procedure";
12747
- readonly 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).";
12809
+ readonly 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).";
12748
12810
  readonly input: {
12749
12811
  readonly encoding: "application/json";
12750
12812
  readonly schema: {
@@ -12808,6 +12870,9 @@ export declare const schemas: ({
12808
12870
  }, {
12809
12871
  readonly name: "ChannelBound";
12810
12872
  readonly description: "The channel is bound to another account (HTTP 409). Never retried.";
12873
+ }, {
12874
+ readonly name: "ChannelReleased";
12875
+ readonly 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).";
12811
12876
  }, {
12812
12877
  readonly name: "RateLimitExceeded";
12813
12878
  readonly description: "As identity.resolve (HTTP 429).";
@@ -12820,7 +12885,7 @@ export declare const schemas: ({
12820
12885
  readonly defs: {
12821
12886
  readonly main: {
12822
12887
  readonly type: "procedure";
12823
- readonly 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.";
12888
+ readonly 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.";
12824
12889
  readonly input: {
12825
12890
  readonly encoding: "application/json";
12826
12891
  readonly schema: {
@@ -12857,10 +12922,13 @@ export declare const schemas: ({
12857
12922
  readonly description: "No signed-in caller.";
12858
12923
  }, {
12859
12924
  readonly name: "InvalidRequest";
12860
- readonly description: "The channel is not a valid email, or its type cannot be added yet.";
12925
+ readonly description: "The channel is not a valid email or E.164 phone number, or its type cannot be added on this server.";
12861
12926
  }, {
12862
12927
  readonly name: "RateLimitExceeded";
12863
12928
  readonly description: "Too many codes sent to this address (HTTP 429).";
12929
+ }, {
12930
+ readonly name: "SendFailed";
12931
+ readonly description: "The code could not be texted to that phone number (HTTP 502). Try again.";
12864
12932
  }];
12865
12933
  };
12866
12934
  };
@@ -13245,6 +13313,12 @@ export declare const schemas: ({
13245
13313
  }, {
13246
13314
  readonly name: "InvalidCode";
13247
13315
  readonly description: "The code is wrong, expired or used up, or the challenge is not the caller's.";
13316
+ }, {
13317
+ readonly name: "RateLimitExceeded";
13318
+ readonly description: "A phone code: the provider that sent it is refusing more checks for this number for now (HTTP 429). Wait a few minutes.";
13319
+ }, {
13320
+ readonly name: "UpstreamFailure";
13321
+ readonly description: "A phone code: the provider that sent it could not be asked whether it matches (HTTP 502). The code is not spent; try again.";
13248
13322
  }];
13249
13323
  };
13250
13324
  readonly offer: {
@@ -14018,7 +14092,7 @@ export declare const schemas: ({
14018
14092
  readonly defs: {
14019
14093
  readonly main: {
14020
14094
  readonly type: "procedure";
14021
- readonly 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.";
14095
+ readonly 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`.";
14022
14096
  readonly input: {
14023
14097
  readonly encoding: "application/json";
14024
14098
  readonly schema: {
@@ -14059,6 +14133,21 @@ export declare const schemas: ({
14059
14133
  readonly format: "did";
14060
14134
  readonly description: "Present only with `bound`, and only when the calling PDS hosts the account.";
14061
14135
  };
14136
+ readonly released: {
14137
+ readonly type: "boolean";
14138
+ readonly 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.";
14139
+ };
14140
+ readonly releasedFrom: {
14141
+ readonly type: "string";
14142
+ readonly format: "did";
14143
+ readonly 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`).";
14144
+ };
14145
+ readonly releaseId: {
14146
+ readonly type: "string";
14147
+ readonly minLength: 1;
14148
+ readonly maxLength: 64;
14149
+ readonly 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.";
14150
+ };
14062
14151
  };
14063
14152
  };
14064
14153
  };
@@ -14169,7 +14258,7 @@ export declare const schemas: ({
14169
14258
  readonly defs: {
14170
14259
  readonly main: {
14171
14260
  readonly type: "procedure";
14172
- readonly 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.";
14261
+ readonly 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.";
14173
14262
  readonly input: {
14174
14263
  readonly encoding: "application/json";
14175
14264
  readonly schema: {
@@ -14424,7 +14513,7 @@ export declare const schemas: ({
14424
14513
  readonly addedBy: {
14425
14514
  readonly type: "string";
14426
14515
  readonly format: "did";
14427
- readonly 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.";
14516
+ readonly 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.";
14428
14517
  };
14429
14518
  readonly createdAt: {
14430
14519
  readonly type: "string";
@@ -14678,11 +14767,11 @@ export declare const schemas: ({
14678
14767
  } | {
14679
14768
  readonly lexicon: 1;
14680
14769
  readonly id: "pub.techne.draft.permissioned.deleteRecord";
14681
- readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), 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.";
14770
+ readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by the app its key names or a caller whose `space:` scopes cover a delete there; any other caller is refused 403 Forbidden and nothing is deleted, the record's own writer included when the record counted in no space, and even when nothing is at the key. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. Draft tier.";
14682
14771
  readonly defs: {
14683
14772
  readonly main: {
14684
14773
  readonly type: "procedure";
14685
- readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap). 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.";
14774
+ readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only by the app its key names or under `space:` scopes covering it: anyone else, its writer included, is 403 Forbidden. Draft tier.";
14686
14775
  readonly input: {
14687
14776
  readonly encoding: "application/json";
14688
14777
  readonly schema: {
@@ -14734,7 +14823,10 @@ export declare const schemas: ({
14734
14823
  readonly description: "HTTP 400. Malformed parameters. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
14735
14824
  }, {
14736
14825
  readonly name: "Forbidden";
14737
- readonly description: "HTTP 403. repo is not the caller's own.";
14826
+ readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a delete there. Nothing is deleted.";
14827
+ }, {
14828
+ readonly name: "LastManager";
14829
+ readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
14738
14830
  }, {
14739
14831
  readonly name: "AccountDeleting";
14740
14832
  readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing is written.";
@@ -15081,11 +15173,11 @@ export declare const schemas: ({
15081
15173
  } | {
15082
15174
  readonly lexicon: 1;
15083
15175
  readonly id: "pub.techne.draft.permissioned.putRecord";
15084
- readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), 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.";
15176
+ readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused for its space. Replacing a record already written for an app's space (a pub.techne.draft.space.private space) is: only the app its key names, or a caller whose `space:` scopes cover a put there, may replace it; any other caller is refused 403 Forbidden and nothing is written, the record's own writer included when the record counted in no space. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space counts there only when written by the app its key names (the managing app) or by a caller whose `space:` scopes cover that space; written by anyone else it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; write it again to ask again (for an app's space only the callers that may replace a record there can). A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
15085
15177
  readonly defs: {
15086
15178
  readonly main: {
15087
15179
  readonly type: "procedure";
15088
- readonly 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.";
15180
+ readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names (or under `space:` scopes covering it); else it counts in no space. Replacing a record already written there needs that app or those scopes: anyone else, its writer included, is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only for that app or under covering scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.";
15089
15181
  readonly input: {
15090
15182
  readonly encoding: "application/json";
15091
15183
  readonly schema: {
@@ -15165,7 +15257,10 @@ export declare const schemas: ({
15165
15257
  readonly description: "HTTP 400. Malformed input (no `space`: name one, since public records go through com.atproto.repo.putRecord; a bad DID, NSID, record key or space address, a record whose $type is not collection, or one with no DAG-CBOR form), or a body that fails its collection's published lexicon. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
15166
15258
  }, {
15167
15259
  readonly name: "Forbidden";
15168
- readonly description: "HTTP 403. repo is not the caller's own.";
15260
+ readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a put there. A first write is never refused for its space. Nothing is written.";
15261
+ }, {
15262
+ readonly name: "LastManager";
15263
+ readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
15169
15264
  }, {
15170
15265
  readonly name: "AccountDeleting";
15171
15266
  readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing is written.";
@@ -15193,11 +15288,11 @@ export declare const schemas: ({
15193
15288
  } | {
15194
15289
  readonly lexicon: 1;
15195
15290
  readonly id: "pub.techne.draft.permissioned.putRecords";
15196
- readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), 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.";
15291
+ readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. 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.";
15197
15292
  readonly defs: {
15198
15293
  readonly main: {
15199
15294
  readonly type: "procedure";
15200
- readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). 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.";
15295
+ readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). 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.";
15201
15296
  readonly input: {
15202
15297
  readonly encoding: "application/json";
15203
15298
  readonly schema: {
@@ -15245,7 +15340,10 @@ export declare const schemas: ({
15245
15340
  readonly description: "HTTP 400. Malformed input (a bad repo DID, no writes or more than 200, or a write with no `space`: name one, since public records go through com.atproto.repo.putRecord; nothing is written). Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description). A write that is malformed on its own is reported in its result instead.";
15246
15341
  }, {
15247
15342
  readonly name: "Forbidden";
15248
- readonly description: "HTTP 403. repo is not the caller's own. Nothing is written.";
15343
+ readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description). Nothing is written.";
15344
+ }, {
15345
+ readonly name: "LastManager";
15346
+ readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
15249
15347
  }, {
15250
15348
  readonly name: "AccountDeleting";
15251
15349
  readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing more is written; writes applied before the deletion began go with the account.";
@@ -15328,7 +15426,7 @@ export declare const schemas: ({
15328
15426
  readonly properties: {
15329
15427
  readonly error: {
15330
15428
  readonly type: "string";
15331
- readonly description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord) or DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord).";
15429
+ readonly description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord) 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).";
15332
15430
  readonly knownValues: ["InvalidRequest", "InvalidSwap", "Conflict", "IdentityConflict", "DuplicatePhone"];
15333
15431
  };
15334
15432
  readonly message: {
@@ -17816,7 +17914,7 @@ export declare const schemas: ({
17816
17914
  } | {
17817
17915
  readonly lexicon: 1;
17818
17916
  readonly id: "pub.techne.draft.rsvpNote";
17819
- readonly 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.";
17917
+ readonly 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.";
17820
17918
  readonly defs: {
17821
17919
  readonly main: {
17822
17920
  readonly type: "record";
@@ -18215,6 +18313,12 @@ export declare const schemas: ({
18215
18313
  readonly maxGraphemes: 100;
18216
18314
  readonly description: "The line, as plain text.";
18217
18315
  };
18316
+ readonly emoji: {
18317
+ readonly type: "string";
18318
+ readonly maxGraphemes: 1;
18319
+ readonly maxLength: 64;
18320
+ readonly 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.";
18321
+ };
18218
18322
  readonly createdAt: {
18219
18323
  readonly type: "string";
18220
18324
  readonly format: "datetime";