techne-sdk 0.12.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 (39) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/auth/placement.gen.d.ts +1 -1
  3. package/dist/auth/placement.gen.js +3 -0
  4. package/dist/catalog/catalog.gen.d.ts +22 -0
  5. package/dist/catalog/catalog.gen.js +1522 -44
  6. package/dist/generated/index.d.ts +141 -0
  7. package/dist/generated/index.js +186 -0
  8. package/dist/generated/lexicons.d.ts +840 -54
  9. package/dist/generated/lexicons.js +466 -18
  10. package/dist/generated/nsid.d.ts +41 -0
  11. package/dist/generated/nsid.js +41 -0
  12. package/dist/generated/nsid.json +41 -0
  13. package/dist/generated/records.d.ts +134 -124
  14. package/dist/generated/types/pub/techne/draft/beaconSpotV2.d.ts +23 -0
  15. package/dist/generated/types/pub/techne/draft/beaconSpotV2.js +12 -0
  16. package/dist/generated/types/pub/techne/draft/collectiveV2.d.ts +31 -0
  17. package/dist/generated/types/pub/techne/draft/collectiveV2.js +12 -0
  18. package/dist/generated/types/pub/techne/draft/locationEntry.d.ts +23 -0
  19. package/dist/generated/types/pub/techne/draft/locationEntry.js +11 -0
  20. package/dist/generated/types/pub/techne/draft/org.d.ts +6 -4
  21. package/dist/generated/types/pub/techne/draft/pendingBeaconSpotV2.d.ts +24 -0
  22. package/dist/generated/types/pub/techne/draft/pendingBeaconSpotV2.js +12 -0
  23. package/dist/generated/types/pub/techne/draft/placeV2.d.ts +42 -0
  24. package/dist/generated/types/pub/techne/draft/placeV2.js +12 -0
  25. package/dist/generated/types/pub/techne/draft/query/composeRecords.d.ts +6 -2
  26. package/dist/generated/types/pub/techne/draft/query/countRecords.d.ts +2 -0
  27. package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +34 -0
  28. package/dist/generated/types/pub/techne/draft/query/listRecords.js +14 -0
  29. package/dist/generated/types/pub/techne/draft/region.d.ts +20 -0
  30. package/dist/generated/types/pub/techne/draft/region.js +12 -0
  31. package/dist/generated/types/pub/techne/draft/statement.d.ts +15 -1
  32. package/dist/generated/types/pub/techne/draft/statement.js +7 -0
  33. package/dist/query/compose.d.ts +2 -2
  34. package/dist/query/compose.js +1 -1
  35. package/dist/query/index.d.ts +19 -1
  36. package/dist/query/index.js +2 -0
  37. package/dist/wasm/techne-wasm.gen.js +1 -1
  38. package/dist/wasm/techne-wasm2js.gen.js +20452 -20454
  39. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,46 @@
3
3
  `techne-sdk` on npm and the `techne-sdk` crate share a version. Each entry names what changes for an app or
4
4
  a crate user.
5
5
 
6
+ ## 0.13.0 (unreleased)
7
+
8
+ Location queries. Nothing is removed or renamed. Ship after the platform that answers `in`/`covers` (platform
9
+ `main` `c9c85f31b`) is on prod: an older platform refuses those conditions and never sends `matched` or
10
+ `notServedHere`.
11
+
12
+ npm 0.13.0 and crate 0.13.0 are built from the same commit. The crate's code is unchanged; it moves to check
13
+ 0.3.36, the check that knows the new location types.
14
+
15
+ ### Added
16
+
17
+ - **Location queries.** The `location` role takes `in` (a list of area URIs, `placeV2` areas) and `covers` (a
18
+ point: an area the record states that contains it), each with an optional `kind` (`at` by default, or `serves`, `registered`, ...) and
19
+ `followed` (match through the record's subject). Both match public records only. Conditions are data, so no new helper: write
20
+ `{ location: { in: [area], kind: 'serves' } }` in a `where`.
21
+ - **`QueryRecord.matched`** (type `MatchedLocation`): with `in` or `covers`, the stated locations that matched,
22
+ at most 8, each with its `kind`, `asserter`, `source` record and `entry`.
23
+ - **`'matched'` in `ENVELOPE_FIELDS`**, so a compose step can keep or drop it like any other record field.
24
+ - **`notServedHere` on `ListPage` and `CountAnswer`** (type `NotServedHere`, `{ reason, message }`), and on a
25
+ compose list step's page. An empty list or a zero count with it set means this platform does not serve
26
+ that place (`outsideCoverage`: a `near` or `covers` point outside its areas; `areaNotHeld`: an `in` area it
27
+ does not hold, or one outside its areas), not that nothing is there. `listAllRecords` and `listAllRecordsFor`
28
+ return records only and do not carry it: read a location query that may fall outside with `listRecords`.
29
+ - Generated types for the new lexicons: `pub.techne.draft.placeV2`, `region`, `locationEntry`, `beaconSpotV2`,
30
+ `collectiveV2`, `pendingBeaconSpotV2`, and the query documents the location work added.
31
+ - `pub.techne.draft.org` `locations` also takes `community.lexicon.location.hthree` and
32
+ `pub.techne.draft.locationEntry` (at most 256), and `pub.techne.draft.statement` `fields` gains `#locations`.
33
+ The V2 types are declared in the beacon, personal and collective member spaces.
34
+
35
+ ### Deprecated
36
+
37
+ - `place`, `collective`, `beaconSpot`, `pendingBeaconSpot`, `geo`, `heldAt`, `containedIn` and `orgAtPlace` are
38
+ SUPERSEDED in their lexicons by their V2 types or by `locations` on a record or a statement. Existing records
39
+ stay readable and the types stay exported.
40
+
41
+ ### Inputs
42
+
43
+ - **Lexicons `v0.1.22-techne.100`, check crate `techne-lexicon-check` 0.3.36** (the crate's dependency, exact).
44
+ - **Platform API at platform `main` `c9c85f31b`**, the location batch. Its method lexicons are unchanged.
45
+
6
46
  ## 0.12.0 (2026-11-26)
7
47
 
8
48
  A `Query` names its view: a break, so this is a major-line version (RELEASING.md). Ship after the platform
@@ -1 +1 @@
1
- export declare const PUBLIC_HOMES: readonly ["pub.techne.draft.appConfig", "pub.techne.draft.approval", "pub.techne.draft.connection", "pub.techne.draft.contactChannel", "pub.techne.draft.channelVerification", "pub.techne.draft.containedIn", "pub.techne.draft.derivation", "pub.techne.draft.distinctFrom", "pub.techne.draft.geo", "pub.techne.draft.heldAt", "pub.techne.draft.operator", "pub.techne.draft.org", "pub.techne.draft.orgAtPlace", "pub.techne.draft.financials", "pub.techne.draft.statement", "pub.techne.draft.profile", "pub.techne.draft.assessment", "pub.techne.draft.placeResearch", "pub.techne.draft.summary", "pub.techne.draft.tagFeedback", "pub.techne.draft.provenance", "pub.techne.draft.questionSet", "pub.techne.draft.receipt", "pub.techne.draft.registry.typeRequest", "pub.techne.draft.verdict", "pub.techne.draft.verification", "pub.techne.draft.retirement", "pub.techne.draft.credential", "pub.techne.draft.credentialRevocation", "pub.techne.draft.publisher", "pub.techne.draft.sameAs", "pub.techne.draft.source", "pub.techne.draft.sourceAttribution", "pub.techne.draft.sourceRef", "pub.techne.draft.evaluation", "pub.techne.draft.event.config", "pub.techne.draft.event.listing", "pub.techne.draft.feed.recipe", "pub.techne.draft.query", "pub.techne.draft.invite", "pub.techne.draft.market.ask", "pub.techne.draft.market.offer", "pub.techne.draft.membership", "pub.techne.draft.place", "pub.techne.draft.presence", "pub.techne.draft.actor.profile", "pub.techne.draft.collective", "community.lexicon.calendar.event", "community.lexicon.calendar.rsvp", "org.hypercerts.funding.receipt"];
1
+ export declare const PUBLIC_HOMES: readonly ["pub.techne.draft.appConfig", "pub.techne.draft.approval", "pub.techne.draft.connection", "pub.techne.draft.contactChannel", "pub.techne.draft.channelVerification", "pub.techne.draft.containedIn", "pub.techne.draft.derivation", "pub.techne.draft.distinctFrom", "pub.techne.draft.geo", "pub.techne.draft.heldAt", "pub.techne.draft.operator", "pub.techne.draft.region", "pub.techne.draft.org", "pub.techne.draft.orgAtPlace", "pub.techne.draft.financials", "pub.techne.draft.statement", "pub.techne.draft.profile", "pub.techne.draft.assessment", "pub.techne.draft.placeResearch", "pub.techne.draft.summary", "pub.techne.draft.tagFeedback", "pub.techne.draft.provenance", "pub.techne.draft.questionSet", "pub.techne.draft.receipt", "pub.techne.draft.registry.typeRequest", "pub.techne.draft.verdict", "pub.techne.draft.verification", "pub.techne.draft.retirement", "pub.techne.draft.credential", "pub.techne.draft.credentialRevocation", "pub.techne.draft.publisher", "pub.techne.draft.sameAs", "pub.techne.draft.source", "pub.techne.draft.sourceAttribution", "pub.techne.draft.sourceRef", "pub.techne.draft.evaluation", "pub.techne.draft.event.config", "pub.techne.draft.event.listing", "pub.techne.draft.feed.recipe", "pub.techne.draft.query", "pub.techne.draft.invite", "pub.techne.draft.market.ask", "pub.techne.draft.market.offer", "pub.techne.draft.membership", "pub.techne.draft.place", "pub.techne.draft.placeV2", "pub.techne.draft.presence", "pub.techne.draft.actor.profile", "pub.techne.draft.collective", "pub.techne.draft.collectiveV2", "community.lexicon.calendar.event", "community.lexicon.calendar.rsvp", "org.hypercerts.funding.receipt"];
@@ -15,6 +15,7 @@ export const PUBLIC_HOMES = [
15
15
  NSID.GEO,
16
16
  NSID.HELD_AT,
17
17
  NSID.OPERATOR,
18
+ NSID.REGION,
18
19
  NSID.ORG,
19
20
  NSID.ORG_AT_PLACE,
20
21
  NSID.FINANCIALS,
@@ -48,9 +49,11 @@ export const PUBLIC_HOMES = [
48
49
  NSID.MARKET_OFFER,
49
50
  NSID.MEMBERSHIP,
50
51
  NSID.PLACE,
52
+ NSID.PLACE_V2,
51
53
  NSID.PRESENCE,
52
54
  NSID.ACTOR_PROFILE,
53
55
  NSID.COLLECTIVE,
56
+ NSID.COLLECTIVE_V2,
54
57
  NSID.CALENDAR_EVENT,
55
58
  NSID.CALENDAR_RSVP,
56
59
  NSID.FUNDING_RECEIPT,
@@ -101,6 +101,28 @@ export declare const catalog: {
101
101
  space: string;
102
102
  unbuilt: boolean;
103
103
  }[];
104
+ } | {
105
+ nsid: string;
106
+ name: string;
107
+ group: string;
108
+ kind: string;
109
+ description: string;
110
+ fields: ({
111
+ name: string;
112
+ type: string;
113
+ required: boolean;
114
+ description: string;
115
+ knownValues: string[];
116
+ } | {
117
+ name: string;
118
+ type: string;
119
+ required: boolean;
120
+ description: string;
121
+ knownValues?: undefined;
122
+ })[];
123
+ doc: unknown;
124
+ key?: undefined;
125
+ homes?: undefined;
104
126
  })[];
105
127
  spaces: ({
106
128
  nsid: string;