techne-sdk 0.12.0 → 0.13.1
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.
- package/CHANGELOG.md +55 -0
- package/dist/auth/placement.gen.d.ts +1 -1
- package/dist/auth/placement.gen.js +3 -0
- package/dist/catalog/catalog.gen.d.ts +22 -0
- package/dist/catalog/catalog.gen.js +1524 -45
- package/dist/generated/index.d.ts +141 -0
- package/dist/generated/index.js +186 -0
- package/dist/generated/lexicons.d.ts +842 -56
- package/dist/generated/lexicons.js +467 -18
- package/dist/generated/nsid.d.ts +41 -0
- package/dist/generated/nsid.js +41 -0
- package/dist/generated/nsid.json +41 -0
- package/dist/generated/records.d.ts +134 -124
- package/dist/generated/types/pub/techne/draft/beaconSpotV2.d.ts +23 -0
- package/dist/generated/types/pub/techne/draft/beaconSpotV2.js +12 -0
- package/dist/generated/types/pub/techne/draft/collectiveV2.d.ts +31 -0
- package/dist/generated/types/pub/techne/draft/collectiveV2.js +12 -0
- package/dist/generated/types/pub/techne/draft/derivation.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/locationEntry.d.ts +23 -0
- package/dist/generated/types/pub/techne/draft/locationEntry.js +11 -0
- package/dist/generated/types/pub/techne/draft/org.d.ts +6 -4
- package/dist/generated/types/pub/techne/draft/pendingBeaconSpotV2.d.ts +24 -0
- package/dist/generated/types/pub/techne/draft/pendingBeaconSpotV2.js +12 -0
- package/dist/generated/types/pub/techne/draft/placeV2.d.ts +42 -0
- package/dist/generated/types/pub/techne/draft/placeV2.js +12 -0
- package/dist/generated/types/pub/techne/draft/query/composeRecords.d.ts +6 -2
- package/dist/generated/types/pub/techne/draft/query/countRecords.d.ts +2 -0
- package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +34 -0
- package/dist/generated/types/pub/techne/draft/query/listRecords.js +14 -0
- package/dist/generated/types/pub/techne/draft/region.d.ts +20 -0
- package/dist/generated/types/pub/techne/draft/region.js +12 -0
- package/dist/generated/types/pub/techne/draft/statement.d.ts +15 -1
- package/dist/generated/types/pub/techne/draft/statement.js +7 -0
- package/dist/query/compose.d.ts +2 -2
- package/dist/query/compose.js +1 -1
- package/dist/query/index.d.ts +19 -1
- package/dist/query/index.js +2 -0
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +22019 -22019
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,61 @@
|
|
|
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.1 (unreleased)
|
|
7
|
+
|
|
8
|
+
Inputs only. No export is added, removed or renamed, and no function changes. npm 0.13.1 and crate 0.13.1 are
|
|
9
|
+
built from the same commit; the crate's code is unchanged and moves to check 0.3.37.
|
|
10
|
+
|
|
11
|
+
### Inputs
|
|
12
|
+
|
|
13
|
+
- **Lexicons `v0.1.22-techne.101`, check crate `techne-lexicon-check` 0.3.37** (the crate's dependency, exact;
|
|
14
|
+
its code is unchanged). Description fixes to `geo`, `orgAtPlace` and `statement#locations` (who writes the
|
|
15
|
+
superseded types now; how a statement's claim counts on a type whose entries are sites, as on an org).
|
|
16
|
+
`pub.techne.draft.derivation` signal `name` gains the known value `edgeResolution` (the field stays open).
|
|
17
|
+
- **Platform API at platform `main` `d28c1574e`.** Its method lexicons are unchanged. Reads on that platform
|
|
18
|
+
take `place` and `placeV2` side by side, count each claim entry that names no own entry as its own site on a
|
|
19
|
+
sites type, and count curated only from the types' curators' rows.
|
|
20
|
+
|
|
21
|
+
## 0.13.0 (2026-11-28)
|
|
22
|
+
|
|
23
|
+
Location queries. Nothing is removed or renamed. Ship after the platform that answers `in`/`covers` (platform
|
|
24
|
+
`main` `c9c85f31b`) is on prod: an older platform refuses those conditions and never sends `matched` or
|
|
25
|
+
`notServedHere`.
|
|
26
|
+
|
|
27
|
+
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
|
|
28
|
+
0.3.36, the check that knows the new location types.
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- **Location queries.** The `location` role takes `in` (a list of area URIs, `placeV2` areas) and `covers` (a
|
|
33
|
+
point: an area the record states that contains it), each with an optional `kind` (`at` by default, or `serves`, `registered`, ...) and
|
|
34
|
+
`followed` (match through the record's subject). Both match public records only. Conditions are data, so no new helper: write
|
|
35
|
+
`{ location: { in: [area], kind: 'serves' } }` in a `where`.
|
|
36
|
+
- **`QueryRecord.matched`** (type `MatchedLocation`): with `in` or `covers`, the stated locations that matched,
|
|
37
|
+
at most 8, each with its `kind`, `asserter`, `source` record and `entry`.
|
|
38
|
+
- **`'matched'` in `ENVELOPE_FIELDS`**, so a compose step can keep or drop it like any other record field.
|
|
39
|
+
- **`notServedHere` on `ListPage` and `CountAnswer`** (type `NotServedHere`, `{ reason, message }`), and on a
|
|
40
|
+
compose list step's page. An empty list or a zero count with it set means this platform does not serve
|
|
41
|
+
that place (`outsideCoverage`: a `near` or `covers` point outside its areas; `areaNotHeld`: an `in` area it
|
|
42
|
+
does not hold, or one outside its areas), not that nothing is there. `listAllRecords` and `listAllRecordsFor`
|
|
43
|
+
return records only and do not carry it: read a location query that may fall outside with `listRecords`.
|
|
44
|
+
- Generated types for the new lexicons: `pub.techne.draft.placeV2`, `region`, `locationEntry`, `beaconSpotV2`,
|
|
45
|
+
`collectiveV2`, `pendingBeaconSpotV2`, and the query documents the location work added.
|
|
46
|
+
- `pub.techne.draft.org` `locations` also takes `community.lexicon.location.hthree` and
|
|
47
|
+
`pub.techne.draft.locationEntry` (at most 256), and `pub.techne.draft.statement` `fields` gains `#locations`.
|
|
48
|
+
The V2 types are declared in the beacon, personal and collective member spaces.
|
|
49
|
+
|
|
50
|
+
### Deprecated
|
|
51
|
+
|
|
52
|
+
- `place`, `collective`, `beaconSpot`, `pendingBeaconSpot`, `geo`, `heldAt`, `containedIn` and `orgAtPlace` are
|
|
53
|
+
SUPERSEDED in their lexicons by their V2 types or by `locations` on a record or a statement. Existing records
|
|
54
|
+
stay readable and the types stay exported.
|
|
55
|
+
|
|
56
|
+
### Inputs
|
|
57
|
+
|
|
58
|
+
- **Lexicons `v0.1.22-techne.100`, check crate `techne-lexicon-check` 0.3.36** (the crate's dependency, exact).
|
|
59
|
+
- **Platform API at platform `main` `c9c85f31b`**, the location batch. Its method lexicons are unchanged.
|
|
60
|
+
|
|
6
61
|
## 0.12.0 (2026-11-26)
|
|
7
62
|
|
|
8
63
|
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;
|