techne-sdk 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/README.md +78 -2
  3. package/dist/auth/app-key.d.ts +2 -1
  4. package/dist/auth/app-key.js +2 -1
  5. package/dist/auth/placement.gen.d.ts +1 -1
  6. package/dist/auth/placement.gen.js +3 -0
  7. package/dist/catalog/catalog.gen.d.ts +22 -0
  8. package/dist/catalog/catalog.gen.js +1839 -66
  9. package/dist/connect.d.ts +5 -2
  10. package/dist/generated/index.d.ts +141 -0
  11. package/dist/generated/index.js +186 -0
  12. package/dist/generated/lexicons.d.ts +910 -70
  13. package/dist/generated/lexicons.js +506 -26
  14. package/dist/generated/nsid.d.ts +46 -0
  15. package/dist/generated/nsid.js +46 -0
  16. package/dist/generated/nsid.json +46 -0
  17. package/dist/generated/records.d.ts +134 -124
  18. package/dist/generated/types/pub/techne/draft/beaconSpotV2.d.ts +23 -0
  19. package/dist/generated/types/pub/techne/draft/beaconSpotV2.js +12 -0
  20. package/dist/generated/types/pub/techne/draft/collectiveV2.d.ts +31 -0
  21. package/dist/generated/types/pub/techne/draft/collectiveV2.js +12 -0
  22. package/dist/generated/types/pub/techne/draft/identity/createCollective.d.ts +4 -1
  23. package/dist/generated/types/pub/techne/draft/identity/createCollective.js +7 -0
  24. package/dist/generated/types/pub/techne/draft/locationEntry.d.ts +23 -0
  25. package/dist/generated/types/pub/techne/draft/locationEntry.js +11 -0
  26. package/dist/generated/types/pub/techne/draft/org.d.ts +6 -4
  27. package/dist/generated/types/pub/techne/draft/orgAtPlace.d.ts +2 -2
  28. package/dist/generated/types/pub/techne/draft/pendingBeaconSpotV2.d.ts +24 -0
  29. package/dist/generated/types/pub/techne/draft/pendingBeaconSpotV2.js +12 -0
  30. package/dist/generated/types/pub/techne/draft/place.d.ts +4 -0
  31. package/dist/generated/types/pub/techne/draft/placeV2.d.ts +42 -0
  32. package/dist/generated/types/pub/techne/draft/placeV2.js +12 -0
  33. package/dist/generated/types/pub/techne/draft/query/composeRecords.d.ts +8 -4
  34. package/dist/generated/types/pub/techne/draft/query/countRecords.d.ts +8 -0
  35. package/dist/generated/types/pub/techne/draft/query/countRecords.js +14 -0
  36. package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +41 -1
  37. package/dist/generated/types/pub/techne/draft/query/listRecords.js +28 -0
  38. package/dist/generated/types/pub/techne/draft/region.d.ts +20 -0
  39. package/dist/generated/types/pub/techne/draft/region.js +12 -0
  40. package/dist/generated/types/pub/techne/draft/statement.d.ts +15 -1
  41. package/dist/generated/types/pub/techne/draft/statement.js +7 -0
  42. package/dist/item.d.ts +3 -1
  43. package/dist/item.js +1 -1
  44. package/dist/query/compose.d.ts +2 -2
  45. package/dist/query/compose.js +1 -1
  46. package/dist/query/hosts.d.ts +1 -1
  47. package/dist/query/hosts.js +5 -3
  48. package/dist/query/index.d.ts +51 -6
  49. package/dist/query/index.js +2 -0
  50. package/dist/read/index.js +5 -4
  51. package/dist/wasm/techne-wasm.gen.js +1 -1
  52. package/dist/wasm/techne-wasm2js.gen.js +8576 -8578
  53. package/package.json +1 -1
@@ -1737,7 +1737,7 @@ export const schemaDict = {
1737
1737
  PubTechneDraftBeaconSpot: {
1738
1738
  lexicon: 1,
1739
1739
  id: 'pub.techne.draft.beaconSpot',
1740
- description: "The exact spot behind a going-to beacon on a public event. A public event made from a dropped pin or a street address shows only its area (rounded to about 100 m, no street line); this record keeps the exact point for that one beacon's people. At most one per beacon: the record key is the beacon's own record key. Its only declared home is that beacon's pub.techne.draft.space.beacon, written by the space's authority (the lighter), so the people who can read it are exactly the beacon space's published read audience: the lighter and everyone the beacon is shared with, including the people and circles the lighter named and anyone who opened the beacon's link while it was lit (each is admitted by a share in the space). Surfaces that show the beacon overlay it onto the event's location; anyone in that audience can also read the record directly. It has no public home, so the firehose guard withholds it. A reader counts it only when its author is the space's authority and `event` names the event the beacon is going to. Deleted when the beacon is ended, and once its event has ended or been cancelled.",
1740
+ description: "SUPERSEDED by `pub.techne.draft.beaconSpotV2` (linked by `pub.techne.draft.sameAs`), which says where with `locations`. Existing records stay readable. The exact spot behind a going-to beacon on a public event. A public event made from a dropped pin or a street address shows only its area (rounded to about 100 m, no street line); this record keeps the exact point for that one beacon's people. At most one per beacon: the record key is the beacon's own record key. Its only declared home is that beacon's pub.techne.draft.space.beacon, written by the space's authority (the lighter), so the people who can read it are exactly the beacon space's published read audience: the lighter and everyone the beacon is shared with, including the people and circles the lighter named and anyone who opened the beacon's link while it was lit (each is admitted by a share in the space). Surfaces that show the beacon overlay it onto the event's location; anyone in that audience can also read the record directly. It has no public home, so the firehose guard withholds it. A reader counts it only when its author is the space's authority and `event` names the event the beacon is going to. Deleted when the beacon is ended, and once its event has ended or been cancelled.",
1741
1741
  defs: {
1742
1742
  main: {
1743
1743
  type: 'record',
@@ -1766,6 +1766,48 @@ export const schemaDict = {
1766
1766
  },
1767
1767
  },
1768
1768
  },
1769
+ PubTechneDraftBeaconSpotV2: {
1770
+ lexicon: 1,
1771
+ id: 'pub.techne.draft.beaconSpotV2',
1772
+ description: "The exact spot behind a going-to beacon on a public event, replacing `pub.techne.draft.beaconSpot` (lexicon constitution, v2 audit): `subject` names the event (a strongRef, in place of `event`), and `locations` carries the point and the address (in place of `geo` and `address`). Linked to the beaconSpot it replaces by a `pub.techne.draft.sameAs` record. Same key, readers and home as `beaconSpot` (the home is declared `unbuilt` until its writer lands): at most one per beacon at the beacon's own record key, only in that beacon's pub.techne.draft.space.beacon, written by the space's authority (the lighter); a reader counts it only when its author is the space's authority and `subject` names the event the beacon is going to.",
1773
+ defs: {
1774
+ main: {
1775
+ type: 'record',
1776
+ key: 'any',
1777
+ record: {
1778
+ type: 'object',
1779
+ required: ['subject', 'locations', 'createdAt'],
1780
+ properties: {
1781
+ subject: {
1782
+ type: 'ref',
1783
+ ref: 'lex:com.atproto.repo.strongRef',
1784
+ description: 'The public community.lexicon.calendar.event this is the exact spot of.',
1785
+ },
1786
+ locations: {
1787
+ type: 'array',
1788
+ minLength: 1,
1789
+ maxLength: 4,
1790
+ description: 'The exact spot as the person sent it: a point, and the full street address (street line included) when they sent one. Its query document reads the entries as `faces`.',
1791
+ items: {
1792
+ type: 'union',
1793
+ refs: [
1794
+ 'lex:community.lexicon.location.geo',
1795
+ 'lex:community.lexicon.location.hthree',
1796
+ 'lex:community.lexicon.location.address',
1797
+ 'lex:com.atproto.repo.strongRef',
1798
+ 'lex:pub.techne.draft.locationEntry',
1799
+ ],
1800
+ },
1801
+ },
1802
+ createdAt: {
1803
+ type: 'string',
1804
+ format: 'datetime',
1805
+ },
1806
+ },
1807
+ },
1808
+ },
1809
+ },
1810
+ },
1769
1811
  PubTechneDraftBlock: {
1770
1812
  lexicon: 1,
1771
1813
  id: 'pub.techne.draft.block',
@@ -1851,7 +1893,7 @@ export const schemaDict = {
1851
1893
  PubTechneDraftCollective: {
1852
1894
  lexicon: 1,
1853
1895
  id: 'pub.techne.draft.collective',
1854
- description: "A collective's descriptor record. The collective's identity is its DID; this record describes it.",
1896
+ description: "SUPERSEDED by `pub.techne.draft.collectiveV2` (linked by `pub.techne.draft.sameAs`), which says where with `locations`. Existing records stay readable. A collective's descriptor record. The collective's identity is its DID; this record describes it.",
1855
1897
  defs: {
1856
1898
  main: {
1857
1899
  type: 'record',
@@ -1912,6 +1954,70 @@ export const schemaDict = {
1912
1954
  },
1913
1955
  },
1914
1956
  },
1957
+ PubTechneDraftCollectiveV2: {
1958
+ lexicon: 1,
1959
+ id: 'pub.techne.draft.collectiveV2',
1960
+ description: "A collective's descriptor record, replacing `pub.techne.draft.collective` (lexicon constitution, v2 audit, \"Where something is\"): `locations` takes the place of the single `location`, and the deprecated `sceneType` is gone. The collective's identity is its DID; this record describes it. A collectiveV2 and the collective descriptor it replaces are linked by a `pub.techne.draft.sameAs` record. Its homes in the placement manifest are declared `unbuilt` until its writer lands; they will be `collective`'s.",
1961
+ defs: {
1962
+ main: {
1963
+ type: 'record',
1964
+ key: 'literal:self',
1965
+ record: {
1966
+ type: 'object',
1967
+ required: ['name', 'createdAt'],
1968
+ properties: {
1969
+ name: {
1970
+ type: 'string',
1971
+ maxLength: 640,
1972
+ maxGraphemes: 64,
1973
+ description: 'The display name of the collective.',
1974
+ },
1975
+ description: {
1976
+ type: 'string',
1977
+ maxLength: 2560,
1978
+ maxGraphemes: 256,
1979
+ description: 'A free-form description of the collective.',
1980
+ },
1981
+ emoji: {
1982
+ type: 'string',
1983
+ maxLength: 64,
1984
+ maxGraphemes: 1,
1985
+ 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.",
1986
+ },
1987
+ collectiveType: {
1988
+ type: 'string',
1989
+ description: "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, and which a pub.techne.draft.accessRule#groupTarget may name. Roles: a member holds 20 and the manager 40 (the founder, until they make someone else manager). Where the platform holds the circle's credential, any member may add people and leave; only the manager renames, sets the emoji, removes people and makes someone manager (one putRecords: that member at 40, the manager's own claim at 20). A write that would leave members with nobody at >= 30 is refused (LastManager). A circle whose last member leaves is deleted, and so is one whose only member deletes their account; an account that alone manages a circle hands it to the longest-standing other member when it is deleted. Circles made before these roles hold every member at 40 until the operator lowers them. A circle whose DID someone else holds is managed by its holder.",
1990
+ maxLength: 64,
1991
+ },
1992
+ locations: {
1993
+ type: 'array',
1994
+ maxLength: 16,
1995
+ description: 'Where the collective is based: a point, an H3 cell, an address or a place record (lexicon naming register). Its query document reads the entries as `sites`.',
1996
+ items: {
1997
+ type: 'union',
1998
+ refs: [
1999
+ 'lex:community.lexicon.location.geo',
2000
+ 'lex:community.lexicon.location.hthree',
2001
+ 'lex:community.lexicon.location.address',
2002
+ 'lex:com.atproto.repo.strongRef',
2003
+ 'lex:pub.techne.draft.locationEntry',
2004
+ ],
2005
+ },
2006
+ },
2007
+ avatar: {
2008
+ type: 'blob',
2009
+ accept: ['image/png', 'image/jpeg'],
2010
+ maxSize: 1000000,
2011
+ },
2012
+ createdAt: {
2013
+ type: 'string',
2014
+ format: 'datetime',
2015
+ },
2016
+ },
2017
+ },
2018
+ },
2019
+ },
2020
+ },
1915
2021
  PubTechneDraftCommonsCreateServiceAccount: {
1916
2022
  lexicon: 1,
1917
2023
  id: 'pub.techne.draft.commons.createServiceAccount',
@@ -2462,7 +2568,7 @@ export const schemaDict = {
2462
2568
  PubTechneDraftContainedIn: {
2463
2569
  lexicon: 1,
2464
2570
  id: 'pub.techne.draft.containedIn',
2465
- description: 'An assertion that one place is inside another (a room in a building, a stage in a park). It says nothing about who wrote it (the author is the repo it lives in) or how (a `pub.techne.draft.derivation` about it says that), so anyone, not only our rules, can write one honestly. PUBLIC. Written only about public records: no space type declares this collection, so it has no permissioned home. Written by the commons venue rule.',
2571
+ description: 'SUPERSEDED, still written by the commons rules until their writers move to the new shape: a place inside another names it in its own `locations` (a `pub.techne.draft.placeV2`), or a `pub.techne.draft.statement` carrying `#locations` says so. Existing records stay readable. An assertion that one place is inside another (a room in a building, a stage in a park). It says nothing about who wrote it (the author is the repo it lives in) or how (a `pub.techne.draft.derivation` about it says that), so anyone, not only our rules, can write one honestly. PUBLIC. Written only about public records: no space type declares this collection, so it has no permissioned home. Written by the commons venue rule.',
2466
2572
  defs: {
2467
2573
  main: {
2468
2574
  type: 'record',
@@ -3179,7 +3285,7 @@ export const schemaDict = {
3179
3285
  PubTechneDraftGeo: {
3180
3286
  lexicon: 1,
3181
3287
  id: 'pub.techne.draft.geo',
3182
- description: "Where a record is: a coordinate. A sidecar about any record (a place, an event, a later type), written in the writer's own repo, never onto the subject, so the subject's author, audience and lifetime are untouched and a reader chooses which writers it trusts. Written only when it adds a coordinate the subject's own record lacks: when a source gives coordinates they stay in the subject's own `locations`, and no geo record is needed. H3 cells are not stored: readers compute them from `location` at index time. It says nothing about who wrote it (the author is the repo it lives in) or how (a `pub.techne.draft.derivation` about it says that), so anyone, not only our rules, can write one honestly. PUBLIC. Written only about public records: no space type declares this collection, so it has no permissioned home. Written by the commons geocode rule.",
3288
+ description: "SUPERSEDED, still written by the commons rules until their writers move to the new shape: a position for someone else's record is a `pub.techne.draft.statement` carrying `#locations`, with `basis` naming the entry it positions. Existing records stay readable. Where a record is: a coordinate. A sidecar about any record (a place, an event, a later type), written in the writer's own repo, never onto the subject, so the subject's author, audience and lifetime are untouched and a reader chooses which writers it trusts. Written only when it adds a coordinate the subject's own record lacks: when a source gives coordinates they stay in the subject's own `locations`, and no geo record is needed. H3 cells are not stored: readers compute them from `location` at index time. It says nothing about who wrote it (the author is the repo it lives in) or how (a `pub.techne.draft.derivation` about it says that), so anyone, not only our rules, can write one honestly. PUBLIC. Written only about public records: no space type declares this collection, so it has no permissioned home. Written by the commons geocode rule.",
3183
3289
  defs: {
3184
3290
  main: {
3185
3291
  type: 'record',
@@ -3217,7 +3323,7 @@ export const schemaDict = {
3217
3323
  PubTechneDraftHeldAt: {
3218
3324
  lexicon: 1,
3219
3325
  id: 'pub.techne.draft.heldAt',
3220
- description: "The place where an event is held. It names a place record, for an event whose own record names no place record (the main event-to-venue link is the event's own `locations` entry naming its source's place record; this is only for events without one). It says nothing about who wrote it (the author is the repo it lives in) or how (a `pub.techne.draft.derivation` about it says that), so anyone, not only our rules, can write one honestly. PUBLIC. Written only about public records: no space type declares this collection, so it has no permissioned home. Written by the commons venue rule.",
3326
+ description: "SUPERSEDED, still written by the commons rules until their writers move to the new shape: the place an event is held at is a `pub.techne.draft.statement` about the event carrying `#locations` with a place reference. Existing records stay readable. The place where an event is held. It names a place record, for an event whose own record names no place record (the main event-to-venue link is the event's own `locations` entry naming its source's place record; this is only for events without one). It says nothing about who wrote it (the author is the repo it lives in) or how (a `pub.techne.draft.derivation` about it says that), so anyone, not only our rules, can write one honestly. PUBLIC. Written only about public records: no space type declares this collection, so it has no permissioned home. Written by the commons venue rule.",
3221
3327
  defs: {
3222
3328
  main: {
3223
3329
  type: 'record',
@@ -3775,7 +3881,7 @@ export const schemaDict = {
3775
3881
  properties: {
3776
3882
  founderMembershipVisibility: {
3777
3883
  type: 'string',
3778
- knownValues: ['public', 'members'],
3884
+ enum: ['public', 'members'],
3779
3885
  default: 'members',
3780
3886
  description: "Who sees the founding membership: `members` (placed in the collective's member space, `pub.techne.draft.space.collective.member/self`, seen by its members) or `public` (a public record).",
3781
3887
  },
@@ -3804,7 +3910,11 @@ export const schemaDict = {
3804
3910
  errors: [
3805
3911
  {
3806
3912
  name: 'InvalidRequest',
3807
- description: 'HTTP 400. The input is not JSON, or `founderMembershipVisibility` is neither `public` nor `members`.',
3913
+ description: 'HTTP 400, and nothing is made. The input does not parse: it is not JSON, it has a field this input does not name (a `roster` from an older shape, say), or `founderMembershipVisibility` is neither `public` nor `members`. An empty body is the defaults.',
3914
+ },
3915
+ {
3916
+ name: 'PublicWriteFailed',
3917
+ description: 'HTTP 502. The account was made but its founding membership could not be written, so the platform starts deleting the account again before it answers. The caller may retry.',
3808
3918
  },
3809
3919
  {
3810
3920
  name: 'RateLimitExceeded',
@@ -6228,6 +6338,46 @@ export const schemaDict = {
6228
6338
  },
6229
6339
  },
6230
6340
  },
6341
+ PubTechneDraftLocationEntry: {
6342
+ lexicon: 1,
6343
+ id: 'pub.techne.draft.locationEntry',
6344
+ description: 'One entry of a `locations` field that says more than "is at": how the thing relates to the location (`kind`), the location itself (`at`), an optional label and, in a statement about someone else\'s record, the subject\'s own entry it gives a position to (`basis`). A bare entry (a point, a cell, an address or a place reference with no wrapper) means the thing is at that location; wrap an entry to say something else, or to give it a `label` or a `basis` (with no `kind` it still means "is at"). Each type\'s query document says how a reader takes a list of entries: `entries: faces` (several forms of one location, as on events) or `entries: sites` (each entry its own location, as on orgs).',
6345
+ defs: {
6346
+ main: {
6347
+ type: 'object',
6348
+ required: ['at'],
6349
+ properties: {
6350
+ kind: {
6351
+ type: 'string',
6352
+ maxLength: 64,
6353
+ knownValues: ['at', 'serves', 'registered'],
6354
+ description: 'How the thing relates to `at`. `at`: it is at that location, the same as leaving `kind` out (queries and matched locations name "is at" `at`). `serves`: it serves the people in that location (an org\'s service area). `registered`: a registry lists it there (a nonprofit\'s filing city or ZIP), which says nothing about where it works. Open: a reader that does not know a kind skips the entry.',
6355
+ },
6356
+ at: {
6357
+ type: 'union',
6358
+ refs: [
6359
+ 'lex:community.lexicon.location.geo',
6360
+ 'lex:community.lexicon.location.hthree',
6361
+ 'lex:community.lexicon.location.address',
6362
+ 'lex:com.atproto.repo.strongRef',
6363
+ ],
6364
+ description: 'The location: a point, an H3 cell, an address, or a place record (a `pub.techne.draft.placeV2`, such as an area for a city, county or ZIP).',
6365
+ },
6366
+ label: {
6367
+ type: 'string',
6368
+ maxLength: 640,
6369
+ maxGraphemes: 64,
6370
+ description: 'A short label for the entry as the writer would show it, such as "Main office" or "Filing city (IRS)".',
6371
+ },
6372
+ basis: {
6373
+ type: 'string',
6374
+ format: 'cid',
6375
+ description: "Only in a statement about someone else's record: the CID of the subject's own `locations` entry that this entry gives a position to, such as the point a geocoder found for the subject's address. The CID is a CIDv1 (dag-cbor codec, sha2-256) of the entry exactly as the subject states it: the whole item of its `locations` list, its `$type` and any `pub.techne.draft.locationEntry` wrapper included. Two identical entries have the same CID, so one basis names both. It counts while the subject still states that entry and that entry has no position of its own.",
6376
+ },
6377
+ },
6378
+ },
6379
+ },
6380
+ },
6231
6381
  PubTechneDraftMarketAsk: {
6232
6382
  lexicon: 1,
6233
6383
  id: 'pub.techne.draft.market.ask',
@@ -6489,14 +6639,16 @@ export const schemaDict = {
6489
6639
  },
6490
6640
  locations: {
6491
6641
  type: 'array',
6492
- maxLength: 16,
6493
- description: "Where the organization is: a point, an address or a place record. Never a mailing address: a registry's address is often an organizer's home, so it is not published. An organization's office or storefront at a commons place is a `pub.techne.draft.orgAtPlace` record, not an entry here.",
6642
+ maxLength: 256,
6643
+ description: "Where the organization is: a point, an H3 cell, an address or a place record, each bare entry a site of the org (its office, its storefront, a place it runs). A `pub.techne.draft.locationEntry` says something other than \"is at\": `serves` for a service area, `registered` for where a registry lists it (a nonprofit's filing city or ZIP area, never the street address). Never a mailing address: a registry's address is often an organizer's home, so it is not published. Its query document reads the entries as `sites`: each is its own location. This replaces `pub.techne.draft.orgAtPlace`.",
6494
6644
  items: {
6495
6645
  type: 'union',
6496
6646
  refs: [
6497
6647
  'lex:community.lexicon.location.geo',
6648
+ 'lex:community.lexicon.location.hthree',
6498
6649
  'lex:community.lexicon.location.address',
6499
6650
  'lex:com.atproto.repo.strongRef',
6651
+ 'lex:pub.techne.draft.locationEntry',
6500
6652
  ],
6501
6653
  },
6502
6654
  },
@@ -6568,14 +6720,16 @@ export const schemaDict = {
6568
6720
  },
6569
6721
  locations: {
6570
6722
  type: 'array',
6571
- maxLength: 16,
6572
- description: "Where the organization is: a point, an address or a place record. Never a mailing address: a registry's address is often an organizer's home, so it is not published. An organization's office or storefront at a commons place is a `pub.techne.draft.orgAtPlace` record, not an entry here.",
6723
+ maxLength: 256,
6724
+ description: "Where the organization is: a point, an H3 cell, an address or a place record, each bare entry a site of the org (its office, its storefront, a place it runs). A `pub.techne.draft.locationEntry` says something other than \"is at\": `serves` for a service area, `registered` for where a registry lists it (a nonprofit's filing city or ZIP area, never the street address). Never a mailing address: a registry's address is often an organizer's home, so it is not published. Its query document reads the entries as `sites`: each is its own location. This replaces `pub.techne.draft.orgAtPlace`.",
6573
6725
  items: {
6574
6726
  type: 'union',
6575
6727
  refs: [
6576
6728
  'lex:community.lexicon.location.geo',
6729
+ 'lex:community.lexicon.location.hthree',
6577
6730
  'lex:community.lexicon.location.address',
6578
6731
  'lex:com.atproto.repo.strongRef',
6732
+ 'lex:pub.techne.draft.locationEntry',
6579
6733
  ],
6580
6734
  },
6581
6735
  },
@@ -6603,7 +6757,7 @@ export const schemaDict = {
6603
6757
  PubTechneDraftOrgAtPlace: {
6604
6758
  lexicon: 1,
6605
6759
  id: 'pub.techne.draft.orgAtPlace',
6606
- description: 'A relationship: an organization is at a place (its office or its storefront). Draft tier, PUBLIC. Its own record, not a field on either end, because an org can be at many places, a place can hold many orgs, and someone in particular claims each link (lexicon constitution, rule 2).',
6760
+ description: "SUPERSEDED, still written by the commons rules until their writers move to the new shape: an org's sites are entries in its own `locations` (bounded at 256). Existing records stay readable. A relationship: an organization is at a place (its office, its storefront, or a place it operates). Draft tier, PUBLIC. Its own record, not a field on either end, because an org can be at many places, a place can hold many orgs, and someone in particular claims each link (lexicon constitution, rule 2).",
6607
6761
  defs: {
6608
6762
  main: {
6609
6763
  type: 'record',
@@ -6626,8 +6780,8 @@ export const schemaDict = {
6626
6780
  role: {
6627
6781
  type: 'string',
6628
6782
  maxLength: 64,
6629
- knownValues: ['office', 'storefront'],
6630
- description: 'What the place is to the organization. Values beyond the known set are permitted.',
6783
+ knownValues: ['office', 'storefront', 'operator'],
6784
+ description: "What the place is to the organization: `office`, `storefront`, or `operator` (the organization runs or maintains the place, such as a park's conservancy or a community fridge's host). Values beyond the known set are permitted.",
6631
6785
  },
6632
6786
  createdAt: {
6633
6787
  type: 'string',
@@ -6675,7 +6829,7 @@ export const schemaDict = {
6675
6829
  PubTechneDraftPendingBeaconSpot: {
6676
6830
  lexicon: 1,
6677
6831
  id: 'pub.techne.draft.pendingBeaconSpot',
6678
- description: "The exact spot a person picked for a public event they are about to light a beacon on, kept until that beacon exists. Making the public event comes first and rounds a dropped pin or a street address to its area; the beacon, whose space is where the exact spot is shown, is made by a second call. This record carries the exact spot between the two: when the person lights a going-to beacon on `event`, the server copies it into that beacon's space as a pub.techne.draft.beaconSpot and deletes this one. At most one per person per event: the record key is the event's own record key, so a second pick re-puts it. PRIVATE by construction: its only declared home is the author's own pub.techne.draft.space.personal (audience of one), it has no public home, no app surface shows it, and it is readable only by its author (a direct read of their own record). One no beacon took up is deleted after a day.",
6832
+ description: "SUPERSEDED by `pub.techne.draft.pendingBeaconSpotV2` (linked by `pub.techne.draft.sameAs`), which says where with `locations`. Existing records stay readable. The exact spot a person picked for a public event they are about to light a beacon on, kept until that beacon exists. Making the public event comes first and rounds a dropped pin or a street address to its area; the beacon, whose space is where the exact spot is shown, is made by a second call. This record carries the exact spot between the two: when the person lights a going-to beacon on `event`, the server copies it into that beacon's space as a pub.techne.draft.beaconSpot and deletes this one. At most one per person per event: the record key is the event's own record key, so a second pick re-puts it. PRIVATE by construction: its only declared home is the author's own pub.techne.draft.space.personal (audience of one), it has no public home, no app surface shows it, and it is readable only by its author (a direct read of their own record). One no beacon took up is deleted after a day.",
6679
6833
  defs: {
6680
6834
  main: {
6681
6835
  type: 'record',
@@ -6709,6 +6863,49 @@ export const schemaDict = {
6709
6863
  },
6710
6864
  },
6711
6865
  },
6866
+ PubTechneDraftPendingBeaconSpotV2: {
6867
+ lexicon: 1,
6868
+ id: 'pub.techne.draft.pendingBeaconSpotV2',
6869
+ description: "The exact spot a person picked for a public event they are about to light a beacon on, kept until that beacon exists, replacing `pub.techne.draft.pendingBeaconSpot` (lexicon constitution, v2 audit): `subject` names the event (a strongRef, in place of `event`), and `locations` carries the point and the address (in place of `geo` and `address`). Linked to the record it replaces by a `pub.techne.draft.sameAs` record. Same key, lifetime and home as `pendingBeaconSpot` (the home is declared `unbuilt` until its writer lands): at the event's own record key, only in the author's pub.techne.draft.space.personal, deleted when a beacon takes it up or after a day.",
6870
+ defs: {
6871
+ main: {
6872
+ type: 'record',
6873
+ key: 'any',
6874
+ record: {
6875
+ type: 'object',
6876
+ required: ['subject', 'locations', 'createdAt'],
6877
+ properties: {
6878
+ subject: {
6879
+ type: 'ref',
6880
+ ref: 'lex:com.atproto.repo.strongRef',
6881
+ description: 'The public community.lexicon.calendar.event this is the exact spot of.',
6882
+ },
6883
+ locations: {
6884
+ type: 'array',
6885
+ minLength: 1,
6886
+ maxLength: 4,
6887
+ description: 'The exact spot as the person sent it: a point, and the full street address (street line included) when they sent one. Its query document reads the entries as `faces`.',
6888
+ items: {
6889
+ type: 'union',
6890
+ refs: [
6891
+ 'lex:community.lexicon.location.geo',
6892
+ 'lex:community.lexicon.location.hthree',
6893
+ 'lex:community.lexicon.location.address',
6894
+ 'lex:com.atproto.repo.strongRef',
6895
+ 'lex:pub.techne.draft.locationEntry',
6896
+ ],
6897
+ },
6898
+ },
6899
+ createdAt: {
6900
+ type: 'string',
6901
+ format: 'datetime',
6902
+ description: 'When this was last written. Read to delete a copy no beacon took up within a day.',
6903
+ },
6904
+ },
6905
+ },
6906
+ },
6907
+ },
6908
+ },
6712
6909
  PubTechneDraftPermissionedDeleteRecord: {
6713
6910
  lexicon: 1,
6714
6911
  id: 'pub.techne.draft.permissioned.deleteRecord',
@@ -7445,7 +7642,7 @@ export const schemaDict = {
7445
7642
  PubTechneDraftPlace: {
7446
7643
  lexicon: 1,
7447
7644
  id: 'pub.techne.draft.place',
7448
- description: "A place, public space or group in the shared directory. It is a commons directory entry that anyone may reference. PUBLIC content: this collection carries NO PROVENANCE RULE — anyone may author one, and no consumer may condition meaning on who did (default-anonymous is a CUSTODY property of the authoring account, never a schema property; the record body carries no creator field, ever). Convergence is by `sameAs` identity, never by author. Two kinds of record share this collection and this schema: SOURCE places (a mirror's, a person's, the commons collective's), and CURATED places, which the commons curator rule publishes in its own repo, one per cluster of source places that endorsed rules joined with pub.techne.draft.sameAs, under a TID rkey kept through merges, beside a pub.techne.draft.provenance sidecar naming its sources; a place no rule joined to another is a cluster of one and gets a curated place too. A curated event's location names the curated place, never a source place. The record means the same either way; whether it is curated is told by its provenance sidecar (in the author's repo, at sidecar_rkey of the curated record's AT-URI), not by a field.",
7645
+ description: "SUPERSEDED by `pub.techne.draft.placeV2` (linked by `pub.techne.draft.sameAs`): a new writer writes placeV2; the commons rules still write place until their writers move. Existing records stay readable. A place, public space or group in the shared directory. It is a commons directory entry that anyone may reference. PUBLIC content: this collection carries NO PROVENANCE RULE — anyone may author one, and no consumer may condition meaning on who did (default-anonymous is a CUSTODY property of the authoring account, never a schema property; the record body carries no creator field, ever). Convergence is by `sameAs` identity, never by author. Two kinds of record share this collection and this schema: SOURCE places (a mirror's, a person's, the commons collective's), and CURATED places, which the commons curator rule publishes in its own repo, one per cluster of source places that endorsed rules joined with pub.techne.draft.sameAs, under a TID rkey kept through merges, beside a pub.techne.draft.provenance sidecar naming its sources; a place no rule joined to another is a cluster of one and gets a curated place too. A curated event's location names the curated place, never a source place. The record means the same either way; whether it is curated is told by its provenance sidecar (in the author's repo, at sidecar_rkey of the curated record's AT-URI), not by a field.",
7449
7646
  defs: {
7450
7647
  main: {
7451
7648
  type: 'record',
@@ -7488,6 +7685,18 @@ export const schemaDict = {
7488
7685
  ref: 'lex:community.lexicon.calendar.event#uri',
7489
7686
  },
7490
7687
  },
7688
+ openingHours: {
7689
+ type: 'string',
7690
+ maxLength: 1024,
7691
+ maxGraphemes: 512,
7692
+ description: "When the place is open, in OpenStreetMap `opening_hours` syntax (https://wiki.openstreetmap.org/wiki/Key:opening_hours), e.g. `Mo-Fr 09:00-17:00; Sa 10:00-14:00; PH off`. Local time at the place. A source's hours that do not parse as that syntax may be kept as it wrote them; a reader that cannot parse the value shows it as text. Absent when unknown, never a guess.",
7693
+ },
7694
+ description: {
7695
+ type: 'string',
7696
+ maxLength: 30000,
7697
+ maxGraphemes: 3000,
7698
+ description: 'Prose about the place: what it is and what happens there. PUBLIC, like the rest of this record. Text a source allows only behind a permission belongs in the permissioned pub.techne.draft.description, not here.',
7699
+ },
7491
7700
  sameAs: {
7492
7701
  type: 'array',
7493
7702
  description: 'External identity reconciliation — an ARRAY so a provider reissuance (e.g. a GERS id change) appends, never destroys. Absent/empty for app-created entries — NEVER a placeholder id.',
@@ -7671,6 +7880,105 @@ export const schemaDict = {
7671
7880
  },
7672
7881
  },
7673
7882
  },
7883
+ PubTechneDraftPlaceV2: {
7884
+ lexicon: 1,
7885
+ id: 'pub.techne.draft.placeV2',
7886
+ description: 'A place in the shared directory: a venue, public space, group or area. It replaces `pub.techne.draft.place` (lexicon constitution, v2 audit, "Where something is"): `locations` takes the place of `location` and `address`, `identifiers` the place of `sameAs[]`, and an area (`kind: area`) carries its extent as a compacted H3 set in `cells`. A placeV2 and the place it replaces are linked by a `pub.techne.draft.sameAs` record. PUBLIC content with no provenance rule, like `place`: anyone may author one, and convergence is by `sameAs`, never by author. Curated places follow the same rules as on `place`.',
7887
+ defs: {
7888
+ main: {
7889
+ type: 'record',
7890
+ key: 'any',
7891
+ description: '`"key": "any"`: a writer derives a stable rkey from the place\'s identity (a source id, an area\'s registry id) so a re-publish updates the same record.',
7892
+ record: {
7893
+ type: 'object',
7894
+ required: ['name', 'kind', 'createdAt'],
7895
+ properties: {
7896
+ name: {
7897
+ type: 'string',
7898
+ maxLength: 640,
7899
+ maxGraphemes: 128,
7900
+ description: "The place/group's display name.",
7901
+ },
7902
+ kind: {
7903
+ type: 'string',
7904
+ maxLength: 64,
7905
+ knownValues: ['business', 'publicSpace', 'group', 'area'],
7906
+ description: 'What kind of directory entry this is. `area`: a named area (a city, county, ZIP or parish) whose extent is `cells`.',
7907
+ },
7908
+ category: {
7909
+ type: 'string',
7910
+ maxLength: 128,
7911
+ description: "An Overture `categories.primary` string (e.g. `park`, `cafe`, `community_center`). Never a `LIKE '%park%'` match — consumers of the safety/park ladder use an explicit allow-list over this field.",
7912
+ },
7913
+ locations: {
7914
+ type: 'array',
7915
+ maxLength: 16,
7916
+ description: 'Where the place is: a point, an H3 cell, an address, or a place record it is in. Its query document reads the entries as `faces`: several forms of one location, the finest that gives a position is where it is. An area states its centre point here.',
7917
+ items: {
7918
+ type: 'union',
7919
+ refs: [
7920
+ 'lex:community.lexicon.location.geo',
7921
+ 'lex:community.lexicon.location.hthree',
7922
+ 'lex:community.lexicon.location.address',
7923
+ 'lex:com.atproto.repo.strongRef',
7924
+ 'lex:pub.techne.draft.locationEntry',
7925
+ ],
7926
+ },
7927
+ },
7928
+ cells: {
7929
+ type: 'array',
7930
+ maxLength: 20000,
7931
+ description: "Only on an area: the H3 cells that cover it, as a compacted set (a parent cell stands for all its children), each the cell's index as a lowercase hex string of 15 characters. Every cell is at resolution 5 to 9: a writer expands a coarser parent to its resolution-5 children, and the edge resolution is at most 9. Cells mix resolutions; the finest one in the set is the edge resolution, and membership is exact only to it. The writer states the source and the edge resolution in a `pub.techne.draft.derivation` about the record.",
7932
+ items: {
7933
+ type: 'string',
7934
+ minLength: 15,
7935
+ maxLength: 15,
7936
+ },
7937
+ },
7938
+ timeZone: {
7939
+ type: 'string',
7940
+ maxLength: 64,
7941
+ description: "The IANA time zone of the place, such as `America/Denver`. Optional; on an area a reader uses it only to compute a query's day window.",
7942
+ },
7943
+ uris: {
7944
+ type: 'array',
7945
+ maxLength: 16,
7946
+ description: 'Named links associated with this place, such as its website. Data-source credits belong in a separate attribution record.',
7947
+ items: {
7948
+ type: 'ref',
7949
+ ref: 'lex:community.lexicon.calendar.event#uri',
7950
+ },
7951
+ },
7952
+ openingHours: {
7953
+ type: 'string',
7954
+ maxLength: 1024,
7955
+ maxGraphemes: 512,
7956
+ description: "When the place is open, in OpenStreetMap `opening_hours` syntax (https://wiki.openstreetmap.org/wiki/Key:opening_hours), e.g. `Mo-Fr 09:00-17:00; Sa 10:00-14:00; PH off`. Local time at the place. A source's hours that do not parse as that syntax may be kept as it wrote them; a reader that cannot parse the value shows it as text. Absent when unknown, never a guess.",
7957
+ },
7958
+ description: {
7959
+ type: 'string',
7960
+ maxLength: 30000,
7961
+ maxGraphemes: 3000,
7962
+ description: 'Prose about the place: what it is and what happens there. PUBLIC, like the rest of this record. Text a source allows only behind a permission belongs in the permissioned pub.techne.draft.description, not here.',
7963
+ },
7964
+ identifiers: {
7965
+ type: 'array',
7966
+ maxLength: 32,
7967
+ description: 'Ids the place has in other registries (lexicon naming register): `{scheme, value}`, e.g. `overture-gers`, `fsq`, `census-geoid`. An array so a reissued id appends. Absent for app-created entries, never a placeholder.',
7968
+ items: {
7969
+ type: 'ref',
7970
+ ref: 'lex:pub.techne.draft.org#schemeValue',
7971
+ },
7972
+ },
7973
+ createdAt: {
7974
+ type: 'string',
7975
+ format: 'datetime',
7976
+ },
7977
+ },
7978
+ },
7979
+ },
7980
+ },
7981
+ },
7674
7982
  PubTechneDraftPost: {
7675
7983
  lexicon: 1,
7676
7984
  id: 'pub.techne.draft.post',
@@ -8327,7 +8635,7 @@ export const schemaDict = {
8327
8635
  },
8328
8636
  envelope: {
8329
8637
  type: 'array',
8330
- maxLength: 10,
8638
+ maxLength: 11,
8331
8639
  items: {
8332
8640
  type: 'string',
8333
8641
  knownValues: [
@@ -8341,9 +8649,10 @@ export const schemaDict = {
8341
8649
  'held',
8342
8650
  'measures',
8343
8651
  'signals',
8652
+ 'matched',
8344
8653
  ],
8345
8654
  },
8346
- description: 'The record fields (#record) each answered record keeps besides `uri` (kept unless `uri` is false) and `value` (always kept): any of cid, author, collection, time, space, source, curated, held, measures, signals and nothing else: the list is closed to these known values, and another name refuses the call as InvalidRequest. Without it every field comes back; `[]` keeps only `value` and, unless `uri` is false, `uri`. A field left out is absent, so a flag left out (`curated`, `held`) reads as false. Bindings read every field, before this selection.',
8655
+ description: 'The record fields (#record) each answered record keeps besides `uri` (kept unless `uri` is false) and `value` (always kept): any of cid, author, collection, time, space, source, curated, held, measures, signals, matched and nothing else: the list is closed to these known values, and another name refuses the call as InvalidRequest. Without it every field comes back; `[]` keeps only `value` and, unless `uri` is false, `uri`. A field left out is absent, so a flag left out (`curated`, `held`) reads as false. Bindings read every field, before this selection.',
8347
8656
  },
8348
8657
  uri: {
8349
8658
  type: 'boolean',
@@ -8377,6 +8686,11 @@ export const schemaDict = {
8377
8686
  type: 'boolean',
8378
8687
  description: "List step, asked with `count`: as listRecords' `capped`.",
8379
8688
  },
8689
+ notServedHere: {
8690
+ type: 'ref',
8691
+ ref: 'lex:pub.techne.draft.query.listRecords#notServedHere',
8692
+ description: 'List step: as listRecords\' `notServedHere` (an empty list with it set means "not served here", not "nothing there").',
8693
+ },
8380
8694
  withheld: {
8381
8695
  type: 'array',
8382
8696
  items: {
@@ -8462,7 +8776,7 @@ export const schemaDict = {
8462
8776
  },
8463
8777
  curated: {
8464
8778
  type: 'boolean',
8465
- description: 'A public record that is a live curated record: a curator the commons root trusts merged it from its sources, and it is not superseded. Its `pub.techne.draft.provenance` (same author, subject this record) names who it is from. Absent otherwise.',
8779
+ description: "A public record that is a live curated record: a curator the commons root trusts merged it from its sources, and it is not superseded. Its `pub.techne.draft.provenance` (same author, subject this record) names who it is from. Always answered when the step's `envelope` includes it (or names none): false for every other record.",
8466
8780
  },
8467
8781
  held: {
8468
8782
  type: 'boolean',
@@ -8476,6 +8790,15 @@ export const schemaDict = {
8476
8790
  type: 'unknown',
8477
8791
  description: 'The server-side signals the query asked for, by name; a signal with no value for this record is absent.',
8478
8792
  },
8793
+ matched: {
8794
+ type: 'array',
8795
+ maxLength: 8,
8796
+ items: {
8797
+ type: 'ref',
8798
+ ref: 'lex:pub.techne.draft.query.listRecords#matchedLocation',
8799
+ },
8800
+ description: 'As listRecords#record has it: with a `location` `in` or `covers` condition, the stated locations that matched, at most 8.',
8801
+ },
8479
8802
  },
8480
8803
  },
8481
8804
  stepError: {
@@ -8485,7 +8808,7 @@ export const schemaDict = {
8485
8808
  properties: {
8486
8809
  error: {
8487
8810
  type: 'string',
8488
- description: "The error name the step's method would answer (InvalidRequest, NotFound, ...); InvalidRequest for a step past a call limit (#stepError); or `Skipped`: a step it binds to failed.",
8811
+ description: "The error name the step's method would answer (InvalidRequest, NotFound, ViewRequired and NotCurated for a list step, ...); InvalidRequest for a step past a call limit (#stepError); or `Skipped`: a step it binds to failed.",
8489
8812
  },
8490
8813
  message: {
8491
8814
  type: 'string',
@@ -8505,7 +8828,7 @@ export const schemaDict = {
8505
8828
  defs: {
8506
8829
  main: {
8507
8830
  type: 'query',
8508
- description: "How many records a pub.techne.draft.query names: the records listRecords would answer for it (the same read path, and the platform's `decide` on every record answered as written or permissioned), each once. The count stops at 1000 (`capped`). The query's `order`, `limit` and `signals` are ignored, so a record without the role a list is ordered by is still counted. Anyone may call it, signed in or not; an anonymous caller counts public records only. Draft tier.",
8831
+ description: "How many records a pub.techne.draft.query names: the records listRecords would answer for it (the same read path, the platform's `decide` on every record answered as written or permissioned, and a curated `location` `in`/`covers` match settled again over the locations the curated view trusts), each once, so the count is what paging the list to its end would answer. The count stops at 1000 (`capped`). The query's `order`, `limit` and `signals` are ignored, so a record without the role a list is ordered by is still counted. Anyone may call it, signed in or not; an anonymous caller counts public records only. Draft tier.",
8509
8832
  parameters: {
8510
8833
  type: 'params',
8511
8834
  properties: {
@@ -8553,6 +8876,11 @@ export const schemaDict = {
8553
8876
  },
8554
8877
  description: 'With groupBy: the count per key, largest first.',
8555
8878
  },
8879
+ notServedHere: {
8880
+ type: 'ref',
8881
+ ref: 'lex:pub.techne.draft.query.listRecords#notServedHere',
8882
+ description: 'Present when a `near` or `covers` point or an `in` area of the query lies outside this operator\'s coverage, or an `in` area is not held here. The records answered are what this operator holds, not the whole answer: an empty list (or a zero count) with this set means "not served here", not "nothing there". Ask an operator that serves the place.',
8883
+ },
8556
8884
  },
8557
8885
  },
8558
8886
  },
@@ -8561,6 +8889,14 @@ export const schemaDict = {
8561
8889
  name: 'InvalidRequest',
8562
8890
  description: 'HTTP 400. A malformed or refused query or parameter.',
8563
8891
  },
8892
+ {
8893
+ name: 'ViewRequired',
8894
+ description: 'HTTP 400. A branch of the query names no `view` (curated or asWritten): there is no default. The message names the branch.',
8895
+ },
8896
+ {
8897
+ name: 'NotCurated',
8898
+ description: 'HTTP 400. A branch read with view `curated` names a type (`type is`/`type in`) no curator the commons root trusts covers; the message names the type. Read it with view `asWritten`.',
8899
+ },
8564
8900
  {
8565
8901
  name: 'NotFound',
8566
8902
  description: 'HTTP 404. `queryUri` names no query record the caller may read.',
@@ -8587,7 +8923,7 @@ export const schemaDict = {
8587
8923
  defs: {
8588
8924
  main: {
8589
8925
  type: 'query',
8590
- description: 'Records by URI, as listRecords answers them: the query `{"where": {"uri": {"in": uris}}}`, as written (a read scoped to named records), each only if the caller may read it. A URI the caller may not read, or that names nothing, is left out: as in every generic read, that includes a record whose author is blocked either way with a signed-in caller (see `includeBlockedByMe`), or whose account is hidden or suspended. In the order asked. With `curated`, each URI answers as the curated record it resolves to instead (see `curated`). Draft tier.',
8926
+ description: 'Records by URI, as listRecords answers them: the query `{"view": "asWritten", "where": {"uri": {"in": uris}}}`, as written (a read scoped to named records), each only if the caller may read it. A URI the caller may not read, or that names nothing, is left out: as in every generic read, that includes a record whose author is blocked either way with a signed-in caller (see `includeBlockedByMe`), or whose account is hidden or suspended. In the order asked. With `curated`, each URI answers as the curated record it resolves to instead (see `curated`). Draft tier.',
8591
8927
  parameters: {
8592
8928
  type: 'params',
8593
8929
  required: ['uris'],
@@ -8789,7 +9125,7 @@ export const schemaDict = {
8789
9125
  defs: {
8790
9126
  main: {
8791
9127
  type: 'query',
8792
- description: "The platform's generic list query: one page of the records a pub.techne.draft.query names, in its order. Every record is read through the platform's one read path, whatever the query says: no record of a hidden or suspended account is answered, nor, to a signed-in caller, another's record across a block either way (the caller blocked its author, or its author blocked the caller); a public record also leaves out anything moderation holds back (a trusted verdict or `!takedown`); a permissioned record is answered only when it is the caller's own or counts in a space whose read policy admits the caller now, not taken down (in a space whose authority is the caller, a block does not hide its records from them), and (in a member-owned circle space) only while its author is a current member by a claim the caller can read. A branch scoped to named authors, subjects or URIs, and a query with `curated: false`, answers public records as written; any other branch crosses sources and answers curated public records (the commons' listed records). A curated record every source of which is by a hidden or suspended account is left out for everyone, and one every source of which is by an author blocked either way is left out for a signed-in caller. Anyone may call it, signed in or not; an anonymous caller gets public records only. Each top-level `any` branch runs on its own index and the branches are merged in order, so a record that matches two branches comes once. A permissioned record, and a public record answered as written, is answered only while the platform's `decide` calls its version valid, and because that check runs on the page already read, a page can hold fewer records than `limit` and still carry a cursor: keep paging until none comes back. Draft tier.",
9128
+ description: "The platform's generic list query: one page of the records a pub.techne.draft.query names, in its order. Every record is read through the platform's one read path, whatever the query says: no record of a hidden or suspended account is answered, nor, to a signed-in caller, another's record across a block either way (the caller blocked its author, or its author blocked the caller); a public record also leaves out anything moderation holds back (a trusted verdict or `!takedown`); a permissioned record is answered only when it is the caller's own or counts in a space whose read policy admits the caller now, not taken down (in a space whose authority is the caller, a block does not hide its records from them), and (in a member-owned circle space) only while its author is a current member by a claim the caller can read. Each branch reads the public records of the view it names (the query's `view`, or its branch's in `any`, `pub.techne.draft.query#branch`): `asWritten`, every record as its author wrote it, or `curated`, the commons' listed records; there is no default (ViewRequired), and a curated branch naming a type no curator covers is refused (NotCurated). A curated record every source of which is by a hidden or suspended account is left out for everyone, and one every source of which is by an author blocked either way is left out for a signed-in caller. Anyone may call it, signed in or not; an anonymous caller gets public records only. Each top-level `any` branch runs on its own index and the branches are merged in order, so a record that matches two branches comes once. A permissioned record, and a public record answered as written, is answered only while the platform's `decide` calls its version valid; and a record a curated branch finds by `location` `in` or `covers` is answered only while a location the curated view trusts (its author's own, or a writer the commons endorses for the claim's type) still holds its slot once precedence is rerun over those alone. Because these checks run on the page already read, a page can hold fewer records than `limit`, even none, and still carry a cursor: keep paging until none comes back. Draft tier.",
8793
9129
  parameters: {
8794
9130
  type: 'params',
8795
9131
  properties: {
@@ -8851,6 +9187,11 @@ export const schemaDict = {
8851
9187
  type: 'boolean',
8852
9188
  description: "Only when asked with `count=true`: true when there are more than `count` (countRecords' `capped`).",
8853
9189
  },
9190
+ notServedHere: {
9191
+ type: 'ref',
9192
+ ref: 'lex:pub.techne.draft.query.listRecords#notServedHere',
9193
+ description: 'Present when a `near` or `covers` point or an `in` area of the query lies outside this operator\'s coverage, or an `in` area is not held here. The records answered are what this operator holds, not the whole answer: an empty list (or a zero count) with this set means "not served here", not "nothing there". Ask an operator that serves the place.',
9194
+ },
8854
9195
  },
8855
9196
  },
8856
9197
  },
@@ -8859,6 +9200,14 @@ export const schemaDict = {
8859
9200
  name: 'InvalidRequest',
8860
9201
  description: 'HTTP 400. A malformed or refused query (naming the branch or condition), parameter or cursor.',
8861
9202
  },
9203
+ {
9204
+ name: 'ViewRequired',
9205
+ description: 'HTTP 400. A branch of the query names no `view` (curated or asWritten): there is no default. The message names the branch.',
9206
+ },
9207
+ {
9208
+ name: 'NotCurated',
9209
+ description: 'HTTP 400. A branch read with view `curated` names a type (`type is`/`type in`) no curator the commons root trusts covers; the message names the type. Read it with view `asWritten`.',
9210
+ },
8862
9211
  {
8863
9212
  name: 'NotFound',
8864
9213
  description: 'HTTP 404. `queryUri` names no query record the caller may read.',
@@ -8916,7 +9265,7 @@ export const schemaDict = {
8916
9265
  },
8917
9266
  curated: {
8918
9267
  type: 'boolean',
8919
- description: 'A public record that is a live curated record: a curator the commons root trusts merged it from its sources, and it is not superseded. Its `pub.techne.draft.provenance` (same author, subject this record) names who it is from. Absent otherwise.',
9268
+ description: 'A public record that is a live curated record: a curator the commons root trusts merged it from its sources, and it is not superseded. Its `pub.techne.draft.provenance` (same author, subject this record) names who it is from. Always answered: false for every other record (a source copy, a superseded one, a permissioned one).',
8920
9269
  },
8921
9270
  held: {
8922
9271
  type: 'boolean',
@@ -8930,6 +9279,64 @@ export const schemaDict = {
8930
9279
  type: 'unknown',
8931
9280
  description: 'The server-side signals the query asked for, by name; a signal with no value for this record is absent.',
8932
9281
  },
9282
+ matched: {
9283
+ type: 'array',
9284
+ maxLength: 8,
9285
+ items: {
9286
+ type: 'ref',
9287
+ ref: 'lex:pub.techne.draft.query.listRecords#matchedLocation',
9288
+ },
9289
+ description: "With a `location` `in` or `covers` condition: the stated locations that matched (with `followed`, its subject's), at most 8.",
9290
+ },
9291
+ },
9292
+ },
9293
+ matchedLocation: {
9294
+ type: 'object',
9295
+ description: 'One stated location that matched.',
9296
+ required: ['kind', 'asserter', 'source'],
9297
+ properties: {
9298
+ entry: {
9299
+ type: 'union',
9300
+ refs: [
9301
+ 'lex:community.lexicon.location.geo',
9302
+ 'lex:community.lexicon.location.hthree',
9303
+ 'lex:community.lexicon.location.address',
9304
+ 'lex:com.atproto.repo.strongRef',
9305
+ 'lex:pub.techne.draft.locationEntry',
9306
+ ],
9307
+ description: "The location entry as stated, wrapper included (absent for an area's own cells). The union is open: an entry of another `$type` comes back as stated.",
9308
+ },
9309
+ kind: {
9310
+ type: 'string',
9311
+ description: 'How the thing relates to the place (`at`, `serves`, `registered`, ...).',
9312
+ },
9313
+ asserter: {
9314
+ type: 'string',
9315
+ format: 'did',
9316
+ description: "Who stated it: the record's author, or a claim's writer.",
9317
+ },
9318
+ source: {
9319
+ type: 'string',
9320
+ format: 'at-uri',
9321
+ description: 'The record that stated it (the record itself, or a claim about it).',
9322
+ },
9323
+ },
9324
+ },
9325
+ notServedHere: {
9326
+ type: 'object',
9327
+ description: 'Why the answer is not the whole answer: this operator does not serve the place asked about. An empty list (or a zero count) with this set means "not served here", not "nothing there".',
9328
+ required: ['reason', 'message'],
9329
+ properties: {
9330
+ reason: {
9331
+ type: 'string',
9332
+ knownValues: ['outsideCoverage', 'areaNotHeld'],
9333
+ description: '`outsideCoverage`: a `near` or `covers` point lies outside the areas this operator serves. `areaNotHeld`: an `in` area is one this operator does not hold, or lies outside the areas it serves.',
9334
+ },
9335
+ message: {
9336
+ type: 'string',
9337
+ maxLength: 300,
9338
+ description: 'The reason, in words, for a person to read.',
9339
+ },
8933
9340
  },
8934
9341
  },
8935
9342
  },
@@ -9213,6 +9620,48 @@ export const schemaDict = {
9213
9620
  },
9214
9621
  },
9215
9622
  },
9623
+ PubTechneDraftRegion: {
9624
+ lexicon: 1,
9625
+ id: 'pub.techne.draft.region',
9626
+ description: "The commons root's statement that one area is an operator's region for a period: the root asserts that the operator indexes and serves the public records placed in it. The root asserts that regions do not overlap, that an operator may hold any number of them, and that land in no region is remembered and not served. No reader reads regions yet: coverage today is the platform's fixed list of supported areas (regenos_read::areas::SUPPORTED_AREAS). Separate from `pub.techne.draft.operator`, which grants commons admin powers: holding a region grants none. Only the root's own region records count (a `provenancePolicy` gap, like `operator`). A region is ended by setting `validUntil`, never by deleting the record, and a handoff writes a new record for the new period, so each period keeps its own record. PUBLIC. Written in the commons root's repo only.",
9627
+ defs: {
9628
+ main: {
9629
+ type: 'record',
9630
+ key: 'any',
9631
+ description: "The rkey is the area's key (the root derives it from the area), or `{area-key}-{millis}` for a later period after one has ended, so each period keeps its own record and a re-publish of a period updates the same record.",
9632
+ record: {
9633
+ type: 'object',
9634
+ required: ['area', 'operator', 'createdAt'],
9635
+ properties: {
9636
+ area: {
9637
+ type: 'ref',
9638
+ ref: 'lex:com.atproto.repo.strongRef',
9639
+ description: 'The area: a `pub.techne.draft.placeV2` with `kind: area`, pinned to one version. A redrawn boundary is a new area version, so it needs a new region version naming it.',
9640
+ },
9641
+ operator: {
9642
+ type: 'string',
9643
+ format: 'did',
9644
+ description: 'The operator that holds the region: the DID of the account that runs its AppView. Its endpoint is a fact about the operator and is not stored here.',
9645
+ },
9646
+ validFrom: {
9647
+ type: 'string',
9648
+ format: 'datetime',
9649
+ description: 'When the period starts. Absent: from always.',
9650
+ },
9651
+ validUntil: {
9652
+ type: 'string',
9653
+ format: 'datetime',
9654
+ description: 'When the period ends (exclusive). Absent: it has not ended.',
9655
+ },
9656
+ createdAt: {
9657
+ type: 'string',
9658
+ format: 'datetime',
9659
+ },
9660
+ },
9661
+ },
9662
+ },
9663
+ },
9664
+ },
9216
9665
  PubTechneDraftRegistryBlockIndex: {
9217
9666
  lexicon: 1,
9218
9667
  id: 'pub.techne.draft.registry.blockIndex',
@@ -10512,8 +10961,11 @@ export const schemaDict = {
10512
10961
  },
10513
10962
  fields: {
10514
10963
  type: 'union',
10515
- refs: ['lex:pub.techne.draft.org#fields'],
10516
- description: "Some of the subject type's own fields. Each member is the subject type's `#fields` def: the same names and shapes as its main record, none required. Open: a type gains statements by gaining a `#fields` def and a member here.",
10964
+ refs: [
10965
+ 'lex:pub.techne.draft.org#fields',
10966
+ 'lex:pub.techne.draft.statement#locations',
10967
+ ],
10968
+ description: "Some of the subject type's own fields. Each member is the subject type's `#fields` def: the same names and shapes as its main record, none required. Open: a type gains statements by gaining a `#fields` def and a member here. `#locations` is the one member for any type: where the subject is, as the writer says.",
10517
10969
  },
10518
10970
  createdAt: {
10519
10971
  type: 'string',
@@ -10522,6 +10974,28 @@ export const schemaDict = {
10522
10974
  },
10523
10975
  },
10524
10976
  },
10977
+ locations: {
10978
+ type: 'object',
10979
+ description: "Where the subject is, as the writer of the statement says, for a subject of any type. It counts only as the view decides: the subject's own locations win, and a statement fills in only where the subject states no location of that kind, or (with `basis`) gives a position to a subject's entry that has none. A statement the subject's own author writes counts as the subject's own locations. A `basis` equal to the subject record's CID (a legacy claim) counts for any own entry of that kind with no position, while the subject is still that version. When several claims compete for one slot (the same kind, and the same `basis` or none), one counts: the finest grain wins, then the newest, then the lowest source URI; the others are conflicts. Read as written, every writer's claim is weighed; curated, only the subject's author's and those of writers the commons root endorses.",
10980
+ required: ['locations'],
10981
+ properties: {
10982
+ locations: {
10983
+ type: 'array',
10984
+ maxLength: 256,
10985
+ description: "Entries as in the subject's own `locations` field (lexicon naming register).",
10986
+ items: {
10987
+ type: 'union',
10988
+ refs: [
10989
+ 'lex:community.lexicon.location.geo',
10990
+ 'lex:community.lexicon.location.hthree',
10991
+ 'lex:community.lexicon.location.address',
10992
+ 'lex:com.atproto.repo.strongRef',
10993
+ 'lex:pub.techne.draft.locationEntry',
10994
+ ],
10995
+ },
10996
+ },
10997
+ },
10998
+ },
10525
10999
  },
10526
11000
  },
10527
11001
  PubTechneDraftSubjectPrefs: {
@@ -12210,10 +12684,12 @@ export const ids = {
12210
12684
  PubTechneDraftBeacon: 'pub.techne.draft.beacon',
12211
12685
  PubTechneDraftBeaconLists: 'pub.techne.draft.beaconLists',
12212
12686
  PubTechneDraftBeaconSpot: 'pub.techne.draft.beaconSpot',
12687
+ PubTechneDraftBeaconSpotV2: 'pub.techne.draft.beaconSpotV2',
12213
12688
  PubTechneDraftBlock: 'pub.techne.draft.block',
12214
12689
  PubTechneDraftChannelVerification: 'pub.techne.draft.channelVerification',
12215
12690
  PubTechneDraftCircleBeacon: 'pub.techne.draft.circleBeacon',
12216
12691
  PubTechneDraftCollective: 'pub.techne.draft.collective',
12692
+ PubTechneDraftCollectiveV2: 'pub.techne.draft.collectiveV2',
12217
12693
  PubTechneDraftCommonsCreateServiceAccount: 'pub.techne.draft.commons.createServiceAccount',
12218
12694
  PubTechneDraftCommonsGetVersions: 'pub.techne.draft.commons.getVersions',
12219
12695
  PubTechneDraftCommonsMoveAccountHandle: 'pub.techne.draft.commons.moveAccountHandle',
@@ -12269,6 +12745,7 @@ export const ids = {
12269
12745
  PubTechneDraftInterest: 'pub.techne.draft.interest',
12270
12746
  PubTechneDraftIntroProposal: 'pub.techne.draft.introProposal',
12271
12747
  PubTechneDraftInvite: 'pub.techne.draft.invite',
12748
+ PubTechneDraftLocationEntry: 'pub.techne.draft.locationEntry',
12272
12749
  PubTechneDraftMarketAsk: 'pub.techne.draft.market.ask',
12273
12750
  PubTechneDraftMarketOffer: 'pub.techne.draft.market.offer',
12274
12751
  PubTechneDraftMembership: 'pub.techne.draft.membership',
@@ -12278,6 +12755,7 @@ export const ids = {
12278
12755
  PubTechneDraftOrgAtPlace: 'pub.techne.draft.orgAtPlace',
12279
12756
  PubTechneDraftPassage: 'pub.techne.draft.passage',
12280
12757
  PubTechneDraftPendingBeaconSpot: 'pub.techne.draft.pendingBeaconSpot',
12758
+ PubTechneDraftPendingBeaconSpotV2: 'pub.techne.draft.pendingBeaconSpotV2',
12281
12759
  PubTechneDraftPermissionedDeleteRecord: 'pub.techne.draft.permissioned.deleteRecord',
12282
12760
  PubTechneDraftPermissionedGetGrants: 'pub.techne.draft.permissioned.getGrants',
12283
12761
  PubTechneDraftPermissionedGetRecord: 'pub.techne.draft.permissioned.getRecord',
@@ -12287,6 +12765,7 @@ export const ids = {
12287
12765
  PubTechneDraftPermissionedPutRecords: 'pub.techne.draft.permissioned.putRecords',
12288
12766
  PubTechneDraftPlace: 'pub.techne.draft.place',
12289
12767
  PubTechneDraftPlaceResearch: 'pub.techne.draft.placeResearch',
12768
+ PubTechneDraftPlaceV2: 'pub.techne.draft.placeV2',
12290
12769
  PubTechneDraftPost: 'pub.techne.draft.post',
12291
12770
  PubTechneDraftPresence: 'pub.techne.draft.presence',
12292
12771
  PubTechneDraftProfile: 'pub.techne.draft.profile',
@@ -12300,6 +12779,7 @@ export const ids = {
12300
12779
  PubTechneDraftQuestionSet: 'pub.techne.draft.questionSet',
12301
12780
  PubTechneDraftReceipt: 'pub.techne.draft.receipt',
12302
12781
  PubTechneDraftReflection: 'pub.techne.draft.reflection',
12782
+ PubTechneDraftRegion: 'pub.techne.draft.region',
12303
12783
  PubTechneDraftRegistryBlockIndex: 'pub.techne.draft.registry.blockIndex',
12304
12784
  PubTechneDraftRegistryDefs: 'pub.techne.draft.registry.defs',
12305
12785
  PubTechneDraftRegistryGetType: 'pub.techne.draft.registry.getType',