techne-sdk 0.3.1 → 0.3.3

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 (28) hide show
  1. package/CHANGELOG.md +40 -3
  2. package/README.md +4 -14
  3. package/dist/auth/placement.gen.d.ts +1 -1
  4. package/dist/auth/placement.gen.js +2 -0
  5. package/dist/catalog/catalog.gen.d.ts +6 -33
  6. package/dist/catalog/catalog.gen.js +570 -34
  7. package/dist/generated/index.d.ts +56 -0
  8. package/dist/generated/index.js +72 -0
  9. package/dist/generated/lexicons.d.ts +372 -42
  10. package/dist/generated/lexicons.js +223 -21
  11. package/dist/generated/nsid.d.ts +7 -0
  12. package/dist/generated/nsid.js +7 -0
  13. package/dist/generated/nsid.json +7 -0
  14. package/dist/generated/records.d.ts +48 -44
  15. package/dist/generated/types/pub/techne/draft/collective.d.ts +2 -0
  16. package/dist/generated/types/pub/techne/draft/identity/listPhoneHolds.d.ts +2 -0
  17. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +3 -3
  18. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +2 -2
  19. package/dist/generated/types/pub/techne/draft/placeResearch.d.ts +47 -0
  20. package/dist/generated/types/pub/techne/draft/placeResearch.js +26 -0
  21. package/dist/generated/types/pub/techne/draft/query/composeRecords.d.ts +1 -1
  22. package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +1 -1
  23. package/dist/generated/types/pub/techne/draft/questionSet.d.ts +3 -0
  24. package/dist/generated/types/pub/techne/draft/summary.d.ts +16 -0
  25. package/dist/generated/types/pub/techne/draft/summary.js +12 -0
  26. package/dist/wasm/techne-wasm.gen.js +1 -1
  27. package/dist/wasm/techne-wasm2js.gen.js +17633 -16383
  28. package/package.json +1 -1
@@ -1271,7 +1271,7 @@ export declare const schemaDict: {
1271
1271
  };
1272
1272
  readonly answers: {
1273
1273
  readonly type: "array";
1274
- readonly maxLength: 200;
1274
+ readonly maxLength: 1000;
1275
1275
  readonly items: {
1276
1276
  readonly type: "ref";
1277
1277
  readonly ref: "lex:pub.techne.draft.assessment#answer";
@@ -1279,7 +1279,7 @@ export declare const schemaDict: {
1279
1279
  };
1280
1280
  readonly missing: {
1281
1281
  readonly type: "array";
1282
- readonly maxLength: 200;
1282
+ readonly maxLength: 1000;
1283
1283
  readonly items: {
1284
1284
  readonly type: "ref";
1285
1285
  readonly ref: "lex:pub.techne.draft.assessment#missingAnswer";
@@ -1564,6 +1564,12 @@ export declare const schemaDict: {
1564
1564
  readonly maxGraphemes: 256;
1565
1565
  readonly description: "A free-form description of the collective.";
1566
1566
  };
1567
+ readonly emoji: {
1568
+ readonly type: "string";
1569
+ readonly maxLength: 64;
1570
+ readonly maxGraphemes: 1;
1571
+ readonly description: "Optional: one emoji (one grapheme cluster), the collective's mark. A client shows the avatar if there is one, else this emoji, else the first letter of the name. No color is stored; a client may derive one from the collective's DID.";
1572
+ };
1567
1573
  readonly collectiveType: {
1568
1574
  readonly type: "string";
1569
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.";
@@ -3084,7 +3090,7 @@ export declare const schemaDict: {
3084
3090
  readonly defs: {
3085
3091
  readonly main: {
3086
3092
  readonly type: "procedure";
3087
- readonly description: "Make a collective account: a new DID whose credential the platform holds, with a random handle and no records. Nothing is placed or published: the caller then writes as the collective (permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), deciding where its descriptor and memberships live. Until the collective's first record is placed in a space (and for at most a day), its creator may write as it; from then on, whoever passes the manage leg of one of its spaces may, so a creator who will manage it writes its own membership in the first batch. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another, empty, collective.";
3093
+ readonly description: "Make a collective account: a new DID whose credential the platform holds, with a random handle and no records. Nothing is placed or published: the caller then writes as the collective (permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), deciding where its descriptor and memberships live. Until the collective's first record is placed in a space (and for at most a day), its creator may write as it; from then on, only whoever manages its own member space (`pub.techne.draft.space.collective.member/self`) may; managing another of its spaces (an event's invite space, say) gives no pen. So a creator who will manage it writes its own membership in the first batch. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another, empty, collective.";
3088
3094
  readonly input: {
3089
3095
  readonly encoding: "application/json";
3090
3096
  readonly schema: {
@@ -3492,7 +3498,7 @@ export declare const schemaDict: {
3492
3498
  readonly defs: {
3493
3499
  readonly main: {
3494
3500
  readonly type: "procedure";
3495
- readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID and every value exactly \"$now\" in the record with the time, and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose space it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.";
3501
+ readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID and every value exactly \"$now\" in the record with the time, and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.";
3496
3502
  readonly input: {
3497
3503
  readonly encoding: "application/json";
3498
3504
  readonly schema: {
@@ -3898,7 +3904,7 @@ export declare const schemaDict: {
3898
3904
  readonly defs: {
3899
3905
  readonly main: {
3900
3906
  readonly type: "query";
3901
- readonly description: "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). Holds are identity state, not records, so they are listed here and not through the generic query.";
3907
+ readonly description: "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.";
3902
3908
  readonly parameters: {
3903
3909
  readonly type: "params";
3904
3910
  readonly required: ["actAs"];
@@ -3980,6 +3986,10 @@ export declare const schemaDict: {
3980
3986
  readonly type: "string";
3981
3987
  readonly format: "datetime";
3982
3988
  };
3989
+ readonly name: {
3990
+ readonly type: "string";
3991
+ readonly description: "On a hold the caller asked for, the name the caller saved for its number: the `name` of the caller's own active `contact` on that number (the newest, when there are several), read when the listing is made. Never on a hold someone else asked for, and nothing of it is stored on the hold.";
3992
+ };
3983
3993
  };
3984
3994
  };
3985
3995
  };
@@ -4851,11 +4861,11 @@ export declare const schemaDict: {
4851
4861
  readonly PubTechneDraftPermissionedDeleteRecord: {
4852
4862
  readonly lexicon: 1;
4853
4863
  readonly id: "pub.techne.draft.permissioned.deleteRecord";
4854
- 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 space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), 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.";
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.";
4855
4865
  readonly defs: {
4856
4866
  readonly main: {
4857
4867
  readonly type: "procedure";
4858
- readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose 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.";
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.";
4859
4869
  readonly input: {
4860
4870
  readonly encoding: "application/json";
4861
4871
  readonly schema: {
@@ -5259,16 +5269,16 @@ export declare const schemaDict: {
5259
5269
  readonly PubTechneDraftPermissionedPutRecord: {
5260
5270
  readonly lexicon: 1;
5261
5271
  readonly id: "pub.techne.draft.permissioned.putRecord";
5262
- 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 space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), 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. Draft tier.";
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.";
5263
5273
  readonly defs: {
5264
5274
  readonly main: {
5265
5275
  readonly type: "procedure";
5266
- readonly description: "Write one record into your own repo (or a collective's or circle's whose space you manage) as a permissioned record, for the `space` it names. 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.";
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.";
5267
5277
  readonly input: {
5268
5278
  readonly encoding: "application/json";
5269
5279
  readonly schema: {
5270
5280
  readonly type: "object";
5271
- readonly required: ["repo", "collection", "rkey", "record"];
5281
+ readonly required: ["repo", "collection", "rkey", "record", "space"];
5272
5282
  readonly properties: {
5273
5283
  readonly repo: {
5274
5284
  readonly type: "string";
@@ -5297,7 +5307,7 @@ export declare const schemaDict: {
5297
5307
  readonly space: {
5298
5308
  readonly type: "string";
5299
5309
  readonly format: "at-uri";
5300
- readonly description: "The space the record is for: at://{authority}/{spaceType}/{skey} (for a source's own records, at://{repo}/pub.techne.draft.space.source/self). Absent: the record is for no space, and only its writer reads it. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again.";
5310
+ readonly description: "The space this record is for. Public records are written with com.atproto.repo.putRecord, not here. Required: at://{authority}/{spaceType}/{skey} (a record only you read goes in your own pub.techne.draft.space.personal, at://{you}/pub.techne.draft.space.personal/self; a source's own records in at://{repo}/pub.techne.draft.space.source/self). A write naming no space is refused as InvalidRequest. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again.";
5301
5311
  };
5302
5312
  };
5303
5313
  };
@@ -5333,14 +5343,14 @@ export declare const schemaDict: {
5333
5343
  readonly space: {
5334
5344
  readonly type: "string";
5335
5345
  readonly format: "at-uri";
5336
- readonly description: "The space the record counts in now. Absent when it counts in none (no space was named, or the space's write policy does not admit the writer, or a space.private space written by an app other than the one its key names).";
5346
+ readonly description: "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer, or a space.private space written by an app other than the one its key names).";
5337
5347
  };
5338
5348
  };
5339
5349
  };
5340
5350
  };
5341
5351
  readonly errors: [{
5342
5352
  readonly name: "InvalidRequest";
5343
- readonly description: "HTTP 400. Malformed input (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).";
5353
+ 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).";
5344
5354
  }, {
5345
5355
  readonly name: "Forbidden";
5346
5356
  readonly description: "HTTP 403. repo is not the caller's own.";
@@ -5372,11 +5382,11 @@ export declare const schemaDict: {
5372
5382
  readonly PubTechneDraftPermissionedPutRecords: {
5373
5383
  readonly lexicon: 1;
5374
5384
  readonly id: "pub.techne.draft.permissioned.putRecords";
5375
- 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 space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), 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. Draft tier.";
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.";
5376
5386
  readonly defs: {
5377
5387
  readonly main: {
5378
5388
  readonly type: "procedure";
5379
- 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. Draft tier.";
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.";
5380
5390
  readonly input: {
5381
5391
  readonly encoding: "application/json";
5382
5392
  readonly schema: {
@@ -5421,7 +5431,7 @@ export declare const schemaDict: {
5421
5431
  };
5422
5432
  readonly errors: [{
5423
5433
  readonly name: "InvalidRequest";
5424
- readonly description: "HTTP 400. Malformed input (a bad repo DID, no writes or more than 200). 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.";
5434
+ 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.";
5425
5435
  }, {
5426
5436
  readonly name: "Forbidden";
5427
5437
  readonly description: "HTTP 403. repo is not the caller's own. Nothing is written.";
@@ -5439,7 +5449,7 @@ export declare const schemaDict: {
5439
5449
  readonly write: {
5440
5450
  readonly type: "object";
5441
5451
  readonly description: "One write: a putRecord input without repo.";
5442
- readonly required: ["collection", "rkey", "record"];
5452
+ readonly required: ["collection", "rkey", "record", "space"];
5443
5453
  readonly properties: {
5444
5454
  readonly collection: {
5445
5455
  readonly type: "string";
@@ -5462,7 +5472,7 @@ export declare const schemaDict: {
5462
5472
  readonly space: {
5463
5473
  readonly type: "string";
5464
5474
  readonly format: "at-uri";
5465
- readonly description: "The space the record is for, as putRecord's `space`. Absent: the record is for no space, and only its writer reads it.";
5475
+ readonly description: "The space this record is for. Public records are written with com.atproto.repo.putRecord, not here. Required: at://{authority}/{spaceType}/{skey} (a record only you read goes in your own pub.techne.draft.space.personal, at://{you}/pub.techne.draft.space.personal/self; a source's own records in at://{repo}/pub.techne.draft.space.source/self). A write naming no space refuses the whole call as InvalidRequest, and nothing is written. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again.";
5466
5476
  };
5467
5477
  };
5468
5478
  };
@@ -5595,6 +5605,122 @@ export declare const schemaDict: {
5595
5605
  };
5596
5606
  };
5597
5607
  };
5608
+ readonly PubTechneDraftPlaceResearch: {
5609
+ readonly lexicon: 1;
5610
+ readonly id: "pub.techne.draft.placeResearch";
5611
+ readonly description: "What open-web research found about a place: its kind, a short description of what going there is like, facts such as alcohol, food, step-free access and dogs, venue-level tags, and the sources read. A sidecar about the place; its derivation names the method and model. Written by a research rule in its own repo. PUBLIC.";
5612
+ readonly defs: {
5613
+ readonly main: {
5614
+ readonly type: "record";
5615
+ readonly key: "any";
5616
+ readonly description: "Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. `any` permits that convention but cannot enforce it.";
5617
+ readonly record: {
5618
+ readonly type: "object";
5619
+ readonly required: ["subject", "createdAt"];
5620
+ readonly properties: {
5621
+ readonly subject: {
5622
+ readonly type: "ref";
5623
+ readonly ref: "lex:com.atproto.repo.strongRef";
5624
+ readonly description: "The curated place this is about.";
5625
+ };
5626
+ readonly kind: {
5627
+ readonly type: "string";
5628
+ readonly maxLength: 64;
5629
+ readonly knownValues: ["bar", "music_venue", "comedy_club", "theatre", "cinema", "gallery_museum", "library", "park", "community_centre", "cafe", "restaurant", "place_of_worship", "school_campus", "sports_venue", "shop", "outdoor_space", "event_space", "hotel", "farm", "not_a_venue", "other"];
5630
+ readonly description: "What kind of place it is. not_a_venue: the place is not somewhere people go for events (an address, a region, an online-only organiser).";
5631
+ };
5632
+ readonly about: {
5633
+ readonly type: "string";
5634
+ readonly maxLength: 2000;
5635
+ readonly maxGraphemes: 600;
5636
+ readonly description: "Two or three plain sentences on what going there is like.";
5637
+ };
5638
+ readonly website: {
5639
+ readonly type: "string";
5640
+ readonly format: "uri";
5641
+ readonly description: "The place's own website, when research found one.";
5642
+ };
5643
+ readonly facts: {
5644
+ readonly type: "array";
5645
+ readonly maxLength: 32;
5646
+ readonly items: {
5647
+ readonly type: "ref";
5648
+ readonly ref: "lex:pub.techne.draft.placeResearch#fact";
5649
+ };
5650
+ };
5651
+ readonly tags: {
5652
+ readonly type: "array";
5653
+ readonly maxLength: 200;
5654
+ readonly items: {
5655
+ readonly type: "ref";
5656
+ readonly ref: "lex:pub.techne.draft.placeResearch#tag";
5657
+ };
5658
+ readonly description: "Venue-level tags: whether each applies to the place as a whole.";
5659
+ };
5660
+ readonly sources: {
5661
+ readonly type: "array";
5662
+ readonly maxLength: 16;
5663
+ readonly items: {
5664
+ readonly type: "string";
5665
+ readonly format: "uri";
5666
+ };
5667
+ readonly description: "The pages research read.";
5668
+ };
5669
+ readonly confidence: {
5670
+ readonly type: "string";
5671
+ readonly knownValues: ["high", "medium", "low"];
5672
+ readonly description: "How sure the research is, overall.";
5673
+ };
5674
+ readonly createdAt: {
5675
+ readonly type: "string";
5676
+ readonly format: "datetime";
5677
+ };
5678
+ };
5679
+ };
5680
+ };
5681
+ readonly fact: {
5682
+ readonly type: "object";
5683
+ readonly required: ["name", "value"];
5684
+ readonly properties: {
5685
+ readonly name: {
5686
+ readonly type: "string";
5687
+ readonly maxLength: 64;
5688
+ readonly knownValues: ["serves_alcohol", "serves_food", "step_free_entrance", "wheelchair_accessible", "accessible_toilet", "dog_friendly", "outdoor_area", "seated", "kid_friendly", "drink_minimum", "door_policy", "typical_price"];
5689
+ };
5690
+ readonly value: {
5691
+ readonly type: "string";
5692
+ readonly maxLength: 32;
5693
+ readonly description: "yes, no or unknown; for door_policy one of all_ages, 18_plus, 21_plus, varies, unknown; for typical_price one of free, under_20, 20_50, 50_plus, varies, unknown.";
5694
+ };
5695
+ readonly evidence: {
5696
+ readonly type: "string";
5697
+ readonly maxLength: 400;
5698
+ readonly description: "What the source said, briefly.";
5699
+ };
5700
+ readonly source: {
5701
+ readonly type: "string";
5702
+ readonly format: "uri";
5703
+ readonly description: "The page the evidence is from.";
5704
+ };
5705
+ };
5706
+ };
5707
+ readonly tag: {
5708
+ readonly type: "object";
5709
+ readonly required: ["id", "value"];
5710
+ readonly properties: {
5711
+ readonly id: {
5712
+ readonly type: "string";
5713
+ readonly maxLength: 128;
5714
+ readonly description: "The tag's id.";
5715
+ };
5716
+ readonly value: {
5717
+ readonly type: "string";
5718
+ readonly knownValues: ["yes", "no"];
5719
+ };
5720
+ };
5721
+ };
5722
+ };
5723
+ };
5598
5724
  readonly PubTechneDraftPost: {
5599
5725
  readonly lexicon: 1;
5600
5726
  readonly id: "pub.techne.draft.post";
@@ -6361,7 +6487,7 @@ export declare const schemaDict: {
6361
6487
  };
6362
6488
  readonly held: {
6363
6489
  readonly type: "boolean";
6364
- readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a held share, answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.";
6490
+ readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a withheld act (a share or a circle add), answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.";
6365
6491
  };
6366
6492
  readonly measures: {
6367
6493
  readonly type: "unknown";
@@ -6773,7 +6899,7 @@ export declare const schemaDict: {
6773
6899
  };
6774
6900
  readonly held: {
6775
6901
  readonly type: "boolean";
6776
- readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a held share, answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.";
6902
+ readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a withheld act (a share or a circle add), answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.";
6777
6903
  };
6778
6904
  readonly measures: {
6779
6905
  readonly type: "unknown";
@@ -6908,6 +7034,11 @@ export declare const schemaDict: {
6908
7034
  readonly type: "string";
6909
7035
  readonly maxLength: 256;
6910
7036
  };
7037
+ readonly howToAnswer: {
7038
+ readonly type: "string";
7039
+ readonly maxLength: 8192;
7040
+ readonly description: "Answering instructions shared by every question in this set, stated once. Each question's prompt is then its own text, asked under these instructions.";
7041
+ };
6911
7042
  readonly questions: {
6912
7043
  readonly type: "array";
6913
7044
  readonly items: {
@@ -6915,7 +7046,7 @@ export declare const schemaDict: {
6915
7046
  readonly ref: "lex:pub.techne.draft.questionSet#question";
6916
7047
  };
6917
7048
  readonly minLength: 1;
6918
- readonly maxLength: 200;
7049
+ readonly maxLength: 1000;
6919
7050
  };
6920
7051
  };
6921
7052
  };
@@ -6940,6 +7071,7 @@ export declare const schemaDict: {
6940
7071
  readonly prompt: {
6941
7072
  readonly type: "string";
6942
7073
  readonly maxLength: 8192;
7074
+ readonly description: "What is asked for this question. With a set's howToAnswer, it is the question's own text and the shared instructions are howToAnswer's.";
6943
7075
  };
6944
7076
  readonly criteria: {
6945
7077
  readonly type: "array";
@@ -8284,6 +8416,39 @@ export declare const schemaDict: {
8284
8416
  };
8285
8417
  };
8286
8418
  };
8419
+ readonly PubTechneDraftSummary: {
8420
+ readonly lexicon: 1;
8421
+ readonly id: "pub.techne.draft.summary";
8422
+ readonly description: "A short factual line saying what a record is, for a card. Facts only; it names no venue, town, date or time, which the card shows from the record itself. Its derivation names the method and model. A sidecar about a curated record, written by a rule in its own repo. PUBLIC.";
8423
+ readonly defs: {
8424
+ readonly main: {
8425
+ readonly type: "record";
8426
+ readonly key: "any";
8427
+ readonly description: "Publishers use sidecar_rkey(subject AT-URI), one summary per record per writer. `any` permits that convention but cannot enforce it.";
8428
+ readonly record: {
8429
+ readonly type: "object";
8430
+ readonly required: ["subject", "text", "createdAt"];
8431
+ readonly properties: {
8432
+ readonly subject: {
8433
+ readonly type: "ref";
8434
+ readonly ref: "lex:com.atproto.repo.strongRef";
8435
+ readonly description: "The record this summarises.";
8436
+ };
8437
+ readonly text: {
8438
+ readonly type: "string";
8439
+ readonly maxLength: 400;
8440
+ readonly maxGraphemes: 100;
8441
+ readonly description: "The line, as plain text.";
8442
+ };
8443
+ readonly createdAt: {
8444
+ readonly type: "string";
8445
+ readonly format: "datetime";
8446
+ };
8447
+ };
8448
+ };
8449
+ };
8450
+ };
8451
+ };
8287
8452
  readonly PubTechneDraftSyncIndexRecord: {
8288
8453
  readonly lexicon: 1;
8289
8454
  readonly id: "pub.techne.draft.sync.indexRecord";
@@ -10988,7 +11153,7 @@ export declare const schemas: ({
10988
11153
  };
10989
11154
  readonly answers: {
10990
11155
  readonly type: "array";
10991
- readonly maxLength: 200;
11156
+ readonly maxLength: 1000;
10992
11157
  readonly items: {
10993
11158
  readonly type: "ref";
10994
11159
  readonly ref: "lex:pub.techne.draft.assessment#answer";
@@ -10996,7 +11161,7 @@ export declare const schemas: ({
10996
11161
  };
10997
11162
  readonly missing: {
10998
11163
  readonly type: "array";
10999
- readonly maxLength: 200;
11164
+ readonly maxLength: 1000;
11000
11165
  readonly items: {
11001
11166
  readonly type: "ref";
11002
11167
  readonly ref: "lex:pub.techne.draft.assessment#missingAnswer";
@@ -11273,6 +11438,12 @@ export declare const schemas: ({
11273
11438
  readonly maxGraphemes: 256;
11274
11439
  readonly description: "A free-form description of the collective.";
11275
11440
  };
11441
+ readonly emoji: {
11442
+ readonly type: "string";
11443
+ readonly maxLength: 64;
11444
+ readonly maxGraphemes: 1;
11445
+ readonly description: "Optional: one emoji (one grapheme cluster), the collective's mark. A client shows the avatar if there is one, else this emoji, else the first letter of the name. No color is stored; a client may derive one from the collective's DID.";
11446
+ };
11276
11447
  readonly collectiveType: {
11277
11448
  readonly type: "string";
11278
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.";
@@ -12767,7 +12938,7 @@ export declare const schemas: ({
12767
12938
  readonly defs: {
12768
12939
  readonly main: {
12769
12940
  readonly type: "procedure";
12770
- readonly description: "Make a collective account: a new DID whose credential the platform holds, with a random handle and no records. Nothing is placed or published: the caller then writes as the collective (permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), deciding where its descriptor and memberships live. Until the collective's first record is placed in a space (and for at most a day), its creator may write as it; from then on, whoever passes the manage leg of one of its spaces may, so a creator who will manage it writes its own membership in the first batch. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another, empty, collective.";
12941
+ readonly description: "Make a collective account: a new DID whose credential the platform holds, with a random handle and no records. Nothing is placed or published: the caller then writes as the collective (permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), deciding where its descriptor and memberships live. Until the collective's first record is placed in a space (and for at most a day), its creator may write as it; from then on, only whoever manages its own member space (`pub.techne.draft.space.collective.member/self`) may; managing another of its spaces (an event's invite space, say) gives no pen. So a creator who will manage it writes its own membership in the first batch. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another, empty, collective.";
12771
12942
  readonly input: {
12772
12943
  readonly encoding: "application/json";
12773
12944
  readonly schema: {
@@ -13170,7 +13341,7 @@ export declare const schemas: ({
13170
13341
  readonly defs: {
13171
13342
  readonly main: {
13172
13343
  readonly type: "procedure";
13173
- readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID and every value exactly \"$now\" in the record with the time, and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose space it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.";
13344
+ readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID and every value exactly \"$now\" in the record with the time, and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.";
13174
13345
  readonly input: {
13175
13346
  readonly encoding: "application/json";
13176
13347
  readonly schema: {
@@ -13569,7 +13740,7 @@ export declare const schemas: ({
13569
13740
  readonly defs: {
13570
13741
  readonly main: {
13571
13742
  readonly type: "query";
13572
- readonly description: "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). Holds are identity state, not records, so they are listed here and not through the generic query.";
13743
+ readonly description: "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.";
13573
13744
  readonly parameters: {
13574
13745
  readonly type: "params";
13575
13746
  readonly required: ["actAs"];
@@ -13651,6 +13822,10 @@ export declare const schemas: ({
13651
13822
  readonly type: "string";
13652
13823
  readonly format: "datetime";
13653
13824
  };
13825
+ readonly name: {
13826
+ readonly type: "string";
13827
+ readonly description: "On a hold the caller asked for, the name the caller saved for its number: the `name` of the caller's own active `contact` on that number (the newest, when there are several), read when the listing is made. Never on a hold someone else asked for, and nothing of it is stored on the hold.";
13828
+ };
13654
13829
  };
13655
13830
  };
13656
13831
  };
@@ -14503,11 +14678,11 @@ export declare const schemas: ({
14503
14678
  } | {
14504
14679
  readonly lexicon: 1;
14505
14680
  readonly id: "pub.techne.draft.permissioned.deleteRecord";
14506
- 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 space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), 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.";
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.";
14507
14682
  readonly defs: {
14508
14683
  readonly main: {
14509
14684
  readonly type: "procedure";
14510
- readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose 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.";
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.";
14511
14686
  readonly input: {
14512
14687
  readonly encoding: "application/json";
14513
14688
  readonly schema: {
@@ -14906,16 +15081,16 @@ export declare const schemas: ({
14906
15081
  } | {
14907
15082
  readonly lexicon: 1;
14908
15083
  readonly id: "pub.techne.draft.permissioned.putRecord";
14909
- 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 space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), 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. Draft tier.";
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.";
14910
15085
  readonly defs: {
14911
15086
  readonly main: {
14912
15087
  readonly type: "procedure";
14913
- readonly description: "Write one record into your own repo (or a collective's or circle's whose space you manage) as a permissioned record, for the `space` it names. 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.";
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.";
14914
15089
  readonly input: {
14915
15090
  readonly encoding: "application/json";
14916
15091
  readonly schema: {
14917
15092
  readonly type: "object";
14918
- readonly required: ["repo", "collection", "rkey", "record"];
15093
+ readonly required: ["repo", "collection", "rkey", "record", "space"];
14919
15094
  readonly properties: {
14920
15095
  readonly repo: {
14921
15096
  readonly type: "string";
@@ -14944,7 +15119,7 @@ export declare const schemas: ({
14944
15119
  readonly space: {
14945
15120
  readonly type: "string";
14946
15121
  readonly format: "at-uri";
14947
- readonly description: "The space the record is for: at://{authority}/{spaceType}/{skey} (for a source's own records, at://{repo}/pub.techne.draft.space.source/self). Absent: the record is for no space, and only its writer reads it. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again.";
15122
+ readonly description: "The space this record is for. Public records are written with com.atproto.repo.putRecord, not here. Required: at://{authority}/{spaceType}/{skey} (a record only you read goes in your own pub.techne.draft.space.personal, at://{you}/pub.techne.draft.space.personal/self; a source's own records in at://{repo}/pub.techne.draft.space.source/self). A write naming no space is refused as InvalidRequest. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again.";
14948
15123
  };
14949
15124
  };
14950
15125
  };
@@ -14980,14 +15155,14 @@ export declare const schemas: ({
14980
15155
  readonly space: {
14981
15156
  readonly type: "string";
14982
15157
  readonly format: "at-uri";
14983
- readonly description: "The space the record counts in now. Absent when it counts in none (no space was named, or the space's write policy does not admit the writer, or a space.private space written by an app other than the one its key names).";
15158
+ readonly description: "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer, or a space.private space written by an app other than the one its key names).";
14984
15159
  };
14985
15160
  };
14986
15161
  };
14987
15162
  };
14988
15163
  readonly errors: [{
14989
15164
  readonly name: "InvalidRequest";
14990
- readonly description: "HTTP 400. Malformed input (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).";
15165
+ 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).";
14991
15166
  }, {
14992
15167
  readonly name: "Forbidden";
14993
15168
  readonly description: "HTTP 403. repo is not the caller's own.";
@@ -15018,11 +15193,11 @@ export declare const schemas: ({
15018
15193
  } | {
15019
15194
  readonly lexicon: 1;
15020
15195
  readonly id: "pub.techne.draft.permissioned.putRecords";
15021
- 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 space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), 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. Draft tier.";
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.";
15022
15197
  readonly defs: {
15023
15198
  readonly main: {
15024
15199
  readonly type: "procedure";
15025
- 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. Draft tier.";
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.";
15026
15201
  readonly input: {
15027
15202
  readonly encoding: "application/json";
15028
15203
  readonly schema: {
@@ -15067,7 +15242,7 @@ export declare const schemas: ({
15067
15242
  };
15068
15243
  readonly errors: [{
15069
15244
  readonly name: "InvalidRequest";
15070
- readonly description: "HTTP 400. Malformed input (a bad repo DID, no writes or more than 200). 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.";
15245
+ 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.";
15071
15246
  }, {
15072
15247
  readonly name: "Forbidden";
15073
15248
  readonly description: "HTTP 403. repo is not the caller's own. Nothing is written.";
@@ -15085,7 +15260,7 @@ export declare const schemas: ({
15085
15260
  readonly write: {
15086
15261
  readonly type: "object";
15087
15262
  readonly description: "One write: a putRecord input without repo.";
15088
- readonly required: ["collection", "rkey", "record"];
15263
+ readonly required: ["collection", "rkey", "record", "space"];
15089
15264
  readonly properties: {
15090
15265
  readonly collection: {
15091
15266
  readonly type: "string";
@@ -15108,7 +15283,7 @@ export declare const schemas: ({
15108
15283
  readonly space: {
15109
15284
  readonly type: "string";
15110
15285
  readonly format: "at-uri";
15111
- readonly description: "The space the record is for, as putRecord's `space`. Absent: the record is for no space, and only its writer reads it.";
15286
+ readonly description: "The space this record is for. Public records are written with com.atproto.repo.putRecord, not here. Required: at://{authority}/{spaceType}/{skey} (a record only you read goes in your own pub.techne.draft.space.personal, at://{you}/pub.techne.draft.space.personal/self; a source's own records in at://{repo}/pub.techne.draft.space.source/self). A write naming no space refuses the whole call as InvalidRequest, and nothing is written. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again.";
15112
15287
  };
15113
15288
  };
15114
15289
  };
@@ -15239,6 +15414,121 @@ export declare const schemas: ({
15239
15414
  };
15240
15415
  };
15241
15416
  };
15417
+ } | {
15418
+ readonly lexicon: 1;
15419
+ readonly id: "pub.techne.draft.placeResearch";
15420
+ readonly description: "What open-web research found about a place: its kind, a short description of what going there is like, facts such as alcohol, food, step-free access and dogs, venue-level tags, and the sources read. A sidecar about the place; its derivation names the method and model. Written by a research rule in its own repo. PUBLIC.";
15421
+ readonly defs: {
15422
+ readonly main: {
15423
+ readonly type: "record";
15424
+ readonly key: "any";
15425
+ readonly description: "Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. `any` permits that convention but cannot enforce it.";
15426
+ readonly record: {
15427
+ readonly type: "object";
15428
+ readonly required: ["subject", "createdAt"];
15429
+ readonly properties: {
15430
+ readonly subject: {
15431
+ readonly type: "ref";
15432
+ readonly ref: "lex:com.atproto.repo.strongRef";
15433
+ readonly description: "The curated place this is about.";
15434
+ };
15435
+ readonly kind: {
15436
+ readonly type: "string";
15437
+ readonly maxLength: 64;
15438
+ readonly knownValues: ["bar", "music_venue", "comedy_club", "theatre", "cinema", "gallery_museum", "library", "park", "community_centre", "cafe", "restaurant", "place_of_worship", "school_campus", "sports_venue", "shop", "outdoor_space", "event_space", "hotel", "farm", "not_a_venue", "other"];
15439
+ readonly description: "What kind of place it is. not_a_venue: the place is not somewhere people go for events (an address, a region, an online-only organiser).";
15440
+ };
15441
+ readonly about: {
15442
+ readonly type: "string";
15443
+ readonly maxLength: 2000;
15444
+ readonly maxGraphemes: 600;
15445
+ readonly description: "Two or three plain sentences on what going there is like.";
15446
+ };
15447
+ readonly website: {
15448
+ readonly type: "string";
15449
+ readonly format: "uri";
15450
+ readonly description: "The place's own website, when research found one.";
15451
+ };
15452
+ readonly facts: {
15453
+ readonly type: "array";
15454
+ readonly maxLength: 32;
15455
+ readonly items: {
15456
+ readonly type: "ref";
15457
+ readonly ref: "lex:pub.techne.draft.placeResearch#fact";
15458
+ };
15459
+ };
15460
+ readonly tags: {
15461
+ readonly type: "array";
15462
+ readonly maxLength: 200;
15463
+ readonly items: {
15464
+ readonly type: "ref";
15465
+ readonly ref: "lex:pub.techne.draft.placeResearch#tag";
15466
+ };
15467
+ readonly description: "Venue-level tags: whether each applies to the place as a whole.";
15468
+ };
15469
+ readonly sources: {
15470
+ readonly type: "array";
15471
+ readonly maxLength: 16;
15472
+ readonly items: {
15473
+ readonly type: "string";
15474
+ readonly format: "uri";
15475
+ };
15476
+ readonly description: "The pages research read.";
15477
+ };
15478
+ readonly confidence: {
15479
+ readonly type: "string";
15480
+ readonly knownValues: ["high", "medium", "low"];
15481
+ readonly description: "How sure the research is, overall.";
15482
+ };
15483
+ readonly createdAt: {
15484
+ readonly type: "string";
15485
+ readonly format: "datetime";
15486
+ };
15487
+ };
15488
+ };
15489
+ };
15490
+ readonly fact: {
15491
+ readonly type: "object";
15492
+ readonly required: ["name", "value"];
15493
+ readonly properties: {
15494
+ readonly name: {
15495
+ readonly type: "string";
15496
+ readonly maxLength: 64;
15497
+ readonly knownValues: ["serves_alcohol", "serves_food", "step_free_entrance", "wheelchair_accessible", "accessible_toilet", "dog_friendly", "outdoor_area", "seated", "kid_friendly", "drink_minimum", "door_policy", "typical_price"];
15498
+ };
15499
+ readonly value: {
15500
+ readonly type: "string";
15501
+ readonly maxLength: 32;
15502
+ readonly description: "yes, no or unknown; for door_policy one of all_ages, 18_plus, 21_plus, varies, unknown; for typical_price one of free, under_20, 20_50, 50_plus, varies, unknown.";
15503
+ };
15504
+ readonly evidence: {
15505
+ readonly type: "string";
15506
+ readonly maxLength: 400;
15507
+ readonly description: "What the source said, briefly.";
15508
+ };
15509
+ readonly source: {
15510
+ readonly type: "string";
15511
+ readonly format: "uri";
15512
+ readonly description: "The page the evidence is from.";
15513
+ };
15514
+ };
15515
+ };
15516
+ readonly tag: {
15517
+ readonly type: "object";
15518
+ readonly required: ["id", "value"];
15519
+ readonly properties: {
15520
+ readonly id: {
15521
+ readonly type: "string";
15522
+ readonly maxLength: 128;
15523
+ readonly description: "The tag's id.";
15524
+ };
15525
+ readonly value: {
15526
+ readonly type: "string";
15527
+ readonly knownValues: ["yes", "no"];
15528
+ };
15529
+ };
15530
+ };
15531
+ };
15242
15532
  } | {
15243
15533
  readonly lexicon: 1;
15244
15534
  readonly id: "pub.techne.draft.post";
@@ -16000,7 +16290,7 @@ export declare const schemas: ({
16000
16290
  };
16001
16291
  readonly held: {
16002
16292
  readonly type: "boolean";
16003
- readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a held share, answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.";
16293
+ readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a withheld act (a share or a circle add), answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.";
16004
16294
  };
16005
16295
  readonly measures: {
16006
16296
  readonly type: "unknown";
@@ -16409,7 +16699,7 @@ export declare const schemas: ({
16409
16699
  };
16410
16700
  readonly held: {
16411
16701
  readonly type: "boolean";
16412
- readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a held share, answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.";
16702
+ readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a withheld act (a share or a circle add), answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.";
16413
16703
  };
16414
16704
  readonly measures: {
16415
16705
  readonly type: "unknown";
@@ -16542,6 +16832,11 @@ export declare const schemas: ({
16542
16832
  readonly type: "string";
16543
16833
  readonly maxLength: 256;
16544
16834
  };
16835
+ readonly howToAnswer: {
16836
+ readonly type: "string";
16837
+ readonly maxLength: 8192;
16838
+ readonly description: "Answering instructions shared by every question in this set, stated once. Each question's prompt is then its own text, asked under these instructions.";
16839
+ };
16545
16840
  readonly questions: {
16546
16841
  readonly type: "array";
16547
16842
  readonly items: {
@@ -16549,7 +16844,7 @@ export declare const schemas: ({
16549
16844
  readonly ref: "lex:pub.techne.draft.questionSet#question";
16550
16845
  };
16551
16846
  readonly minLength: 1;
16552
- readonly maxLength: 200;
16847
+ readonly maxLength: 1000;
16553
16848
  };
16554
16849
  };
16555
16850
  };
@@ -16574,6 +16869,7 @@ export declare const schemas: ({
16574
16869
  readonly prompt: {
16575
16870
  readonly type: "string";
16576
16871
  readonly maxLength: 8192;
16872
+ readonly description: "What is asked for this question. With a set's howToAnswer, it is the question's own text and the shared instructions are howToAnswer's.";
16577
16873
  };
16578
16874
  readonly criteria: {
16579
16875
  readonly type: "array";
@@ -17895,6 +18191,38 @@ export declare const schemas: ({
17895
18191
  };
17896
18192
  };
17897
18193
  };
18194
+ } | {
18195
+ readonly lexicon: 1;
18196
+ readonly id: "pub.techne.draft.summary";
18197
+ readonly description: "A short factual line saying what a record is, for a card. Facts only; it names no venue, town, date or time, which the card shows from the record itself. Its derivation names the method and model. A sidecar about a curated record, written by a rule in its own repo. PUBLIC.";
18198
+ readonly defs: {
18199
+ readonly main: {
18200
+ readonly type: "record";
18201
+ readonly key: "any";
18202
+ readonly description: "Publishers use sidecar_rkey(subject AT-URI), one summary per record per writer. `any` permits that convention but cannot enforce it.";
18203
+ readonly record: {
18204
+ readonly type: "object";
18205
+ readonly required: ["subject", "text", "createdAt"];
18206
+ readonly properties: {
18207
+ readonly subject: {
18208
+ readonly type: "ref";
18209
+ readonly ref: "lex:com.atproto.repo.strongRef";
18210
+ readonly description: "The record this summarises.";
18211
+ };
18212
+ readonly text: {
18213
+ readonly type: "string";
18214
+ readonly maxLength: 400;
18215
+ readonly maxGraphemes: 100;
18216
+ readonly description: "The line, as plain text.";
18217
+ };
18218
+ readonly createdAt: {
18219
+ readonly type: "string";
18220
+ readonly format: "datetime";
18221
+ };
18222
+ };
18223
+ };
18224
+ };
18225
+ };
17898
18226
  } | {
17899
18227
  readonly lexicon: 1;
17900
18228
  readonly id: "pub.techne.draft.sync.indexRecord";
@@ -19434,6 +19762,7 @@ export declare const ids: {
19434
19762
  readonly PubTechneDraftPermissionedPutRecord: "pub.techne.draft.permissioned.putRecord";
19435
19763
  readonly PubTechneDraftPermissionedPutRecords: "pub.techne.draft.permissioned.putRecords";
19436
19764
  readonly PubTechneDraftPlace: "pub.techne.draft.place";
19765
+ readonly PubTechneDraftPlaceResearch: "pub.techne.draft.placeResearch";
19437
19766
  readonly PubTechneDraftPost: "pub.techne.draft.post";
19438
19767
  readonly PubTechneDraftPresence: "pub.techne.draft.presence";
19439
19768
  readonly PubTechneDraftProfile: "pub.techne.draft.profile";
@@ -19467,6 +19796,7 @@ export declare const ids: {
19467
19796
  readonly PubTechneDraftSourceAttribution: "pub.techne.draft.sourceAttribution";
19468
19797
  readonly PubTechneDraftSourceRef: "pub.techne.draft.sourceRef";
19469
19798
  readonly PubTechneDraftSubjectPrefs: "pub.techne.draft.subjectPrefs";
19799
+ readonly PubTechneDraftSummary: "pub.techne.draft.summary";
19470
19800
  readonly PubTechneDraftSyncIndexRecord: "pub.techne.draft.sync.indexRecord";
19471
19801
  readonly PubTechneDraftVerdict: "pub.techne.draft.verdict";
19472
19802
  readonly PubTechneDraftVerification: "pub.techne.draft.verification";