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
|
@@ -13,68 +13,73 @@ import type * as R11 from './types/pub/techne/draft/attentionPrefs.js';
|
|
|
13
13
|
import type * as R12 from './types/pub/techne/draft/beacon.js';
|
|
14
14
|
import type * as R13 from './types/pub/techne/draft/beaconLists.js';
|
|
15
15
|
import type * as R14 from './types/pub/techne/draft/beaconSpot.js';
|
|
16
|
-
import type * as R15 from './types/pub/techne/draft/
|
|
17
|
-
import type * as R16 from './types/pub/techne/draft/
|
|
18
|
-
import type * as R17 from './types/pub/techne/draft/
|
|
19
|
-
import type * as R18 from './types/pub/techne/draft/
|
|
20
|
-
import type * as R19 from './types/pub/techne/draft/
|
|
21
|
-
import type * as R20 from './types/pub/techne/draft/
|
|
22
|
-
import type * as R21 from './types/pub/techne/draft/
|
|
23
|
-
import type * as R22 from './types/pub/techne/draft/
|
|
24
|
-
import type * as R23 from './types/pub/techne/draft/
|
|
25
|
-
import type * as R24 from './types/pub/techne/draft/
|
|
26
|
-
import type * as R25 from './types/pub/techne/draft/
|
|
27
|
-
import type * as R26 from './types/pub/techne/draft/
|
|
28
|
-
import type * as R27 from './types/pub/techne/draft/
|
|
29
|
-
import type * as R28 from './types/pub/techne/draft/
|
|
30
|
-
import type * as R29 from './types/pub/techne/draft/
|
|
31
|
-
import type * as R30 from './types/pub/techne/draft/
|
|
32
|
-
import type * as R31 from './types/pub/techne/draft/
|
|
33
|
-
import type * as R32 from './types/pub/techne/draft/event/
|
|
34
|
-
import type * as R33 from './types/pub/techne/draft/
|
|
35
|
-
import type * as R34 from './types/pub/techne/draft/
|
|
36
|
-
import type * as R35 from './types/pub/techne/draft/
|
|
37
|
-
import type * as R36 from './types/pub/techne/draft/
|
|
38
|
-
import type * as R37 from './types/pub/techne/draft/
|
|
39
|
-
import type * as R38 from './types/pub/techne/draft/
|
|
40
|
-
import type * as R39 from './types/pub/techne/draft/
|
|
41
|
-
import type * as R40 from './types/pub/techne/draft/
|
|
42
|
-
import type * as R41 from './types/pub/techne/draft/
|
|
43
|
-
import type * as R42 from './types/pub/techne/draft/
|
|
44
|
-
import type * as R43 from './types/pub/techne/draft/
|
|
45
|
-
import type * as R44 from './types/pub/techne/draft/
|
|
46
|
-
import type * as R45 from './types/pub/techne/draft/
|
|
47
|
-
import type * as R46 from './types/pub/techne/draft/
|
|
48
|
-
import type * as R47 from './types/pub/techne/draft/
|
|
49
|
-
import type * as R48 from './types/pub/techne/draft/
|
|
50
|
-
import type * as R49 from './types/pub/techne/draft/
|
|
51
|
-
import type * as R50 from './types/pub/techne/draft/
|
|
52
|
-
import type * as R51 from './types/pub/techne/draft/
|
|
53
|
-
import type * as R52 from './types/pub/techne/draft/
|
|
54
|
-
import type * as R53 from './types/pub/techne/draft/
|
|
55
|
-
import type * as R54 from './types/pub/techne/draft/
|
|
56
|
-
import type * as R55 from './types/pub/techne/draft/
|
|
57
|
-
import type * as R56 from './types/pub/techne/draft/
|
|
58
|
-
import type * as R57 from './types/pub/techne/draft/
|
|
59
|
-
import type * as R58 from './types/pub/techne/draft/
|
|
60
|
-
import type * as R59 from './types/pub/techne/draft/
|
|
61
|
-
import type * as R60 from './types/pub/techne/draft/
|
|
62
|
-
import type * as R61 from './types/pub/techne/draft/
|
|
63
|
-
import type * as R62 from './types/pub/techne/draft/
|
|
64
|
-
import type * as R63 from './types/pub/techne/draft/
|
|
65
|
-
import type * as R64 from './types/pub/techne/draft/
|
|
66
|
-
import type * as R65 from './types/pub/techne/draft/
|
|
67
|
-
import type * as R66 from './types/pub/techne/draft/
|
|
68
|
-
import type * as R67 from './types/pub/techne/draft/
|
|
69
|
-
import type * as R68 from './types/pub/techne/draft/
|
|
70
|
-
import type * as R69 from './types/pub/techne/draft/
|
|
71
|
-
import type * as R70 from './types/pub/techne/draft/
|
|
72
|
-
import type * as R71 from './types/pub/techne/draft/
|
|
73
|
-
import type * as R72 from './types/pub/techne/draft/
|
|
74
|
-
import type * as R73 from './types/pub/techne/draft/
|
|
75
|
-
import type * as R74 from './types/pub/techne/draft/
|
|
76
|
-
import type * as R75 from './types/pub/techne/draft/
|
|
77
|
-
import type * as R76 from './types/pub/techne/draft/
|
|
16
|
+
import type * as R15 from './types/pub/techne/draft/beaconSpotV2.js';
|
|
17
|
+
import type * as R16 from './types/pub/techne/draft/block.js';
|
|
18
|
+
import type * as R17 from './types/pub/techne/draft/channelVerification.js';
|
|
19
|
+
import type * as R18 from './types/pub/techne/draft/circleBeacon.js';
|
|
20
|
+
import type * as R19 from './types/pub/techne/draft/collective.js';
|
|
21
|
+
import type * as R20 from './types/pub/techne/draft/collectiveV2.js';
|
|
22
|
+
import type * as R21 from './types/pub/techne/draft/connection.js';
|
|
23
|
+
import type * as R22 from './types/pub/techne/draft/contact.js';
|
|
24
|
+
import type * as R23 from './types/pub/techne/draft/contactChannel.js';
|
|
25
|
+
import type * as R24 from './types/pub/techne/draft/contactList.js';
|
|
26
|
+
import type * as R25 from './types/pub/techne/draft/containedIn.js';
|
|
27
|
+
import type * as R26 from './types/pub/techne/draft/credential.js';
|
|
28
|
+
import type * as R27 from './types/pub/techne/draft/credentialRevocation.js';
|
|
29
|
+
import type * as R28 from './types/pub/techne/draft/derivation.js';
|
|
30
|
+
import type * as R29 from './types/pub/techne/draft/description.js';
|
|
31
|
+
import type * as R30 from './types/pub/techne/draft/distinctFrom.js';
|
|
32
|
+
import type * as R31 from './types/pub/techne/draft/evaluation.js';
|
|
33
|
+
import type * as R32 from './types/pub/techne/draft/event/config.js';
|
|
34
|
+
import type * as R33 from './types/pub/techne/draft/event/detail.js';
|
|
35
|
+
import type * as R34 from './types/pub/techne/draft/event/listing.js';
|
|
36
|
+
import type * as R35 from './types/pub/techne/draft/feed/recipe.js';
|
|
37
|
+
import type * as R36 from './types/pub/techne/draft/financials.js';
|
|
38
|
+
import type * as R37 from './types/pub/techne/draft/geo.js';
|
|
39
|
+
import type * as R38 from './types/pub/techne/draft/heldAt.js';
|
|
40
|
+
import type * as R39 from './types/pub/techne/draft/identity/linkRedemption.js';
|
|
41
|
+
import type * as R40 from './types/pub/techne/draft/interest.js';
|
|
42
|
+
import type * as R41 from './types/pub/techne/draft/introProposal.js';
|
|
43
|
+
import type * as R42 from './types/pub/techne/draft/invite.js';
|
|
44
|
+
import type * as R43 from './types/pub/techne/draft/market/ask.js';
|
|
45
|
+
import type * as R44 from './types/pub/techne/draft/market/offer.js';
|
|
46
|
+
import type * as R45 from './types/pub/techne/draft/membership.js';
|
|
47
|
+
import type * as R46 from './types/pub/techne/draft/notificationState.js';
|
|
48
|
+
import type * as R47 from './types/pub/techne/draft/operator.js';
|
|
49
|
+
import type * as R48 from './types/pub/techne/draft/org.js';
|
|
50
|
+
import type * as R49 from './types/pub/techne/draft/orgAtPlace.js';
|
|
51
|
+
import type * as R50 from './types/pub/techne/draft/passage.js';
|
|
52
|
+
import type * as R51 from './types/pub/techne/draft/pendingBeaconSpot.js';
|
|
53
|
+
import type * as R52 from './types/pub/techne/draft/pendingBeaconSpotV2.js';
|
|
54
|
+
import type * as R53 from './types/pub/techne/draft/place.js';
|
|
55
|
+
import type * as R54 from './types/pub/techne/draft/placeResearch.js';
|
|
56
|
+
import type * as R55 from './types/pub/techne/draft/placeV2.js';
|
|
57
|
+
import type * as R56 from './types/pub/techne/draft/post.js';
|
|
58
|
+
import type * as R57 from './types/pub/techne/draft/presence.js';
|
|
59
|
+
import type * as R58 from './types/pub/techne/draft/profile.js';
|
|
60
|
+
import type * as R59 from './types/pub/techne/draft/provenance.js';
|
|
61
|
+
import type * as R60 from './types/pub/techne/draft/publisher.js';
|
|
62
|
+
import type * as R61 from './types/pub/techne/draft/questionSet.js';
|
|
63
|
+
import type * as R62 from './types/pub/techne/draft/receipt.js';
|
|
64
|
+
import type * as R63 from './types/pub/techne/draft/reflection.js';
|
|
65
|
+
import type * as R64 from './types/pub/techne/draft/region.js';
|
|
66
|
+
import type * as R65 from './types/pub/techne/draft/registry/typeRequest.js';
|
|
67
|
+
import type * as R66 from './types/pub/techne/draft/retirement.js';
|
|
68
|
+
import type * as R67 from './types/pub/techne/draft/rsvpNote.js';
|
|
69
|
+
import type * as R68 from './types/pub/techne/draft/sameAs.js';
|
|
70
|
+
import type * as R69 from './types/pub/techne/draft/scraper/cursor.js';
|
|
71
|
+
import type * as R70 from './types/pub/techne/draft/scraper/raw.js';
|
|
72
|
+
import type * as R71 from './types/pub/techne/draft/share.js';
|
|
73
|
+
import type * as R72 from './types/pub/techne/draft/source.js';
|
|
74
|
+
import type * as R73 from './types/pub/techne/draft/sourceAttribution.js';
|
|
75
|
+
import type * as R74 from './types/pub/techne/draft/sourceRef.js';
|
|
76
|
+
import type * as R75 from './types/pub/techne/draft/statement.js';
|
|
77
|
+
import type * as R76 from './types/pub/techne/draft/subjectPrefs.js';
|
|
78
|
+
import type * as R77 from './types/pub/techne/draft/summary.js';
|
|
79
|
+
import type * as R78 from './types/pub/techne/draft/tagFeedback.js';
|
|
80
|
+
import type * as R79 from './types/pub/techne/draft/verdict.js';
|
|
81
|
+
import type * as R80 from './types/pub/techne/draft/verification.js';
|
|
82
|
+
import type * as R81 from './types/pub/techne/draft/weeklyCheckIn.js';
|
|
78
83
|
/** Every record type the lexicons define, by collection. */
|
|
79
84
|
export interface Records {
|
|
80
85
|
'community.lexicon.calendar.event': R0.Record;
|
|
@@ -92,68 +97,73 @@ export interface Records {
|
|
|
92
97
|
'pub.techne.draft.beacon': R12.Record;
|
|
93
98
|
'pub.techne.draft.beaconLists': R13.Record;
|
|
94
99
|
'pub.techne.draft.beaconSpot': R14.Record;
|
|
95
|
-
'pub.techne.draft.
|
|
96
|
-
'pub.techne.draft.
|
|
97
|
-
'pub.techne.draft.
|
|
98
|
-
'pub.techne.draft.
|
|
99
|
-
'pub.techne.draft.
|
|
100
|
-
'pub.techne.draft.
|
|
101
|
-
'pub.techne.draft.
|
|
102
|
-
'pub.techne.draft.
|
|
103
|
-
'pub.techne.draft.
|
|
104
|
-
'pub.techne.draft.
|
|
105
|
-
'pub.techne.draft.
|
|
106
|
-
'pub.techne.draft.
|
|
107
|
-
'pub.techne.draft.
|
|
108
|
-
'pub.techne.draft.
|
|
109
|
-
'pub.techne.draft.
|
|
110
|
-
'pub.techne.draft.
|
|
111
|
-
'pub.techne.draft.
|
|
112
|
-
'pub.techne.draft.event.
|
|
113
|
-
'pub.techne.draft.
|
|
114
|
-
'pub.techne.draft.
|
|
115
|
-
'pub.techne.draft.
|
|
116
|
-
'pub.techne.draft.
|
|
117
|
-
'pub.techne.draft.
|
|
118
|
-
'pub.techne.draft.
|
|
119
|
-
'pub.techne.draft.
|
|
120
|
-
'pub.techne.draft.
|
|
121
|
-
'pub.techne.draft.
|
|
122
|
-
'pub.techne.draft.
|
|
123
|
-
'pub.techne.draft.
|
|
124
|
-
'pub.techne.draft.
|
|
125
|
-
'pub.techne.draft.
|
|
126
|
-
'pub.techne.draft.
|
|
127
|
-
'pub.techne.draft.
|
|
128
|
-
'pub.techne.draft.
|
|
129
|
-
'pub.techne.draft.
|
|
130
|
-
'pub.techne.draft.
|
|
131
|
-
'pub.techne.draft.
|
|
132
|
-
'pub.techne.draft.
|
|
133
|
-
'pub.techne.draft.
|
|
134
|
-
'pub.techne.draft.
|
|
135
|
-
'pub.techne.draft.
|
|
136
|
-
'pub.techne.draft.
|
|
137
|
-
'pub.techne.draft.
|
|
138
|
-
'pub.techne.draft.
|
|
139
|
-
'pub.techne.draft.
|
|
140
|
-
'pub.techne.draft.
|
|
141
|
-
'pub.techne.draft.
|
|
142
|
-
'pub.techne.draft.
|
|
143
|
-
'pub.techne.draft.
|
|
144
|
-
'pub.techne.draft.
|
|
145
|
-
'pub.techne.draft.
|
|
146
|
-
'pub.techne.draft.
|
|
147
|
-
'pub.techne.draft.
|
|
148
|
-
'pub.techne.draft.
|
|
149
|
-
'pub.techne.draft.
|
|
150
|
-
'pub.techne.draft.
|
|
151
|
-
'pub.techne.draft.
|
|
152
|
-
'pub.techne.draft.
|
|
153
|
-
'pub.techne.draft.
|
|
154
|
-
'pub.techne.draft.
|
|
155
|
-
'pub.techne.draft.
|
|
156
|
-
'pub.techne.draft.
|
|
100
|
+
'pub.techne.draft.beaconSpotV2': R15.Record;
|
|
101
|
+
'pub.techne.draft.block': R16.Record;
|
|
102
|
+
'pub.techne.draft.channelVerification': R17.Record;
|
|
103
|
+
'pub.techne.draft.circleBeacon': R18.Record;
|
|
104
|
+
'pub.techne.draft.collective': R19.Record;
|
|
105
|
+
'pub.techne.draft.collectiveV2': R20.Record;
|
|
106
|
+
'pub.techne.draft.connection': R21.Record;
|
|
107
|
+
'pub.techne.draft.contact': R22.Record;
|
|
108
|
+
'pub.techne.draft.contactChannel': R23.Record;
|
|
109
|
+
'pub.techne.draft.contactList': R24.Record;
|
|
110
|
+
'pub.techne.draft.containedIn': R25.Record;
|
|
111
|
+
'pub.techne.draft.credential': R26.Record;
|
|
112
|
+
'pub.techne.draft.credentialRevocation': R27.Record;
|
|
113
|
+
'pub.techne.draft.derivation': R28.Record;
|
|
114
|
+
'pub.techne.draft.description': R29.Record;
|
|
115
|
+
'pub.techne.draft.distinctFrom': R30.Record;
|
|
116
|
+
'pub.techne.draft.evaluation': R31.Record;
|
|
117
|
+
'pub.techne.draft.event.config': R32.Record;
|
|
118
|
+
'pub.techne.draft.event.detail': R33.Record;
|
|
119
|
+
'pub.techne.draft.event.listing': R34.Record;
|
|
120
|
+
'pub.techne.draft.feed.recipe': R35.Record;
|
|
121
|
+
'pub.techne.draft.financials': R36.Record;
|
|
122
|
+
'pub.techne.draft.geo': R37.Record;
|
|
123
|
+
'pub.techne.draft.heldAt': R38.Record;
|
|
124
|
+
'pub.techne.draft.identity.linkRedemption': R39.Record;
|
|
125
|
+
'pub.techne.draft.interest': R40.Record;
|
|
126
|
+
'pub.techne.draft.introProposal': R41.Record;
|
|
127
|
+
'pub.techne.draft.invite': R42.Record;
|
|
128
|
+
'pub.techne.draft.market.ask': R43.Record;
|
|
129
|
+
'pub.techne.draft.market.offer': R44.Record;
|
|
130
|
+
'pub.techne.draft.membership': R45.Record;
|
|
131
|
+
'pub.techne.draft.notificationState': R46.Record;
|
|
132
|
+
'pub.techne.draft.operator': R47.Record;
|
|
133
|
+
'pub.techne.draft.org': R48.Record;
|
|
134
|
+
'pub.techne.draft.orgAtPlace': R49.Record;
|
|
135
|
+
'pub.techne.draft.passage': R50.Record;
|
|
136
|
+
'pub.techne.draft.pendingBeaconSpot': R51.Record;
|
|
137
|
+
'pub.techne.draft.pendingBeaconSpotV2': R52.Record;
|
|
138
|
+
'pub.techne.draft.place': R53.Record;
|
|
139
|
+
'pub.techne.draft.placeResearch': R54.Record;
|
|
140
|
+
'pub.techne.draft.placeV2': R55.Record;
|
|
141
|
+
'pub.techne.draft.post': R56.Record;
|
|
142
|
+
'pub.techne.draft.presence': R57.Record;
|
|
143
|
+
'pub.techne.draft.profile': R58.Record;
|
|
144
|
+
'pub.techne.draft.provenance': R59.Record;
|
|
145
|
+
'pub.techne.draft.publisher': R60.Record;
|
|
146
|
+
'pub.techne.draft.questionSet': R61.Record;
|
|
147
|
+
'pub.techne.draft.receipt': R62.Record;
|
|
148
|
+
'pub.techne.draft.reflection': R63.Record;
|
|
149
|
+
'pub.techne.draft.region': R64.Record;
|
|
150
|
+
'pub.techne.draft.registry.typeRequest': R65.Record;
|
|
151
|
+
'pub.techne.draft.retirement': R66.Record;
|
|
152
|
+
'pub.techne.draft.rsvpNote': R67.Record;
|
|
153
|
+
'pub.techne.draft.sameAs': R68.Record;
|
|
154
|
+
'pub.techne.draft.scraper.cursor': R69.Record;
|
|
155
|
+
'pub.techne.draft.scraper.raw': R70.Record;
|
|
156
|
+
'pub.techne.draft.share': R71.Record;
|
|
157
|
+
'pub.techne.draft.source': R72.Record;
|
|
158
|
+
'pub.techne.draft.sourceAttribution': R73.Record;
|
|
159
|
+
'pub.techne.draft.sourceRef': R74.Record;
|
|
160
|
+
'pub.techne.draft.statement': R75.Record;
|
|
161
|
+
'pub.techne.draft.subjectPrefs': R76.Record;
|
|
162
|
+
'pub.techne.draft.summary': R77.Record;
|
|
163
|
+
'pub.techne.draft.tagFeedback': R78.Record;
|
|
164
|
+
'pub.techne.draft.verdict': R79.Record;
|
|
165
|
+
'pub.techne.draft.verification': R80.Record;
|
|
166
|
+
'pub.techne.draft.weeklyCheckIn': R81.Record;
|
|
157
167
|
}
|
|
158
168
|
/** Any one record the lexicons define (its `$type` says which). */
|
|
159
169
|
export type AnyRecord = Records[keyof Records];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util.js';
|
|
6
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
7
|
+
import type * as CommunityLexiconLocationGeo from '../../../community/lexicon/location/geo.js';
|
|
8
|
+
import type * as CommunityLexiconLocationHthree from '../../../community/lexicon/location/hthree.js';
|
|
9
|
+
import type * as CommunityLexiconLocationAddress from '../../../community/lexicon/location/address.js';
|
|
10
|
+
import type * as PubTechneDraftLocationEntry from './locationEntry.js';
|
|
11
|
+
export interface Main {
|
|
12
|
+
$type: 'pub.techne.draft.beaconSpotV2';
|
|
13
|
+
subject: ComAtprotoRepoStrongRef.Main;
|
|
14
|
+
/** 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`. */
|
|
15
|
+
locations: ($Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationHthree.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<PubTechneDraftLocationEntry.Main> | {
|
|
16
|
+
$type: string;
|
|
17
|
+
})[];
|
|
18
|
+
createdAt: string;
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.beaconSpotV2", "main">;
|
|
22
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
23
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
2
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
3
|
+
const is$typed = _is$typed, validate = _validate;
|
|
4
|
+
const id = 'pub.techne.draft.beaconSpotV2';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain, true);
|
|
11
|
+
}
|
|
12
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util.js';
|
|
6
|
+
import type * as CommunityLexiconLocationGeo from '../../../community/lexicon/location/geo.js';
|
|
7
|
+
import type * as CommunityLexiconLocationHthree from '../../../community/lexicon/location/hthree.js';
|
|
8
|
+
import type * as CommunityLexiconLocationAddress from '../../../community/lexicon/location/address.js';
|
|
9
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
10
|
+
import type * as PubTechneDraftLocationEntry from './locationEntry.js';
|
|
11
|
+
export interface Main {
|
|
12
|
+
$type: 'pub.techne.draft.collectiveV2';
|
|
13
|
+
/** The display name of the collective. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** A free-form description of the collective. */
|
|
16
|
+
description?: string;
|
|
17
|
+
/** 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. */
|
|
18
|
+
emoji?: string;
|
|
19
|
+
/** 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. */
|
|
20
|
+
collectiveType?: string;
|
|
21
|
+
/** 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`. */
|
|
22
|
+
locations?: ($Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationHthree.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<PubTechneDraftLocationEntry.Main> | {
|
|
23
|
+
$type: string;
|
|
24
|
+
})[];
|
|
25
|
+
avatar?: BlobRef;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
[k: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.collectiveV2", "main">;
|
|
30
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
31
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
2
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
3
|
+
const is$typed = _is$typed, validate = _validate;
|
|
4
|
+
const id = 'pub.techne.draft.collectiveV2';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain, true);
|
|
11
|
+
}
|
|
12
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
@@ -43,7 +43,7 @@ export declare function isMethod<V>(v: V): v is import("../../../../util.js").$T
|
|
|
43
43
|
export declare function validateMethod<V>(v: V): ValidationResult<Method & V>;
|
|
44
44
|
export interface Signal {
|
|
45
45
|
$type?: 'pub.techne.draft.derivation#signal';
|
|
46
|
-
name: 'titleSimilarity' | 'nameSimilarity' | 'nameContainment' | 'titleFrequency' | 'startDelta' | 'endDelta' | 'samePlaceCluster' | 'distance' | 'placePrecision' | 'sameAddress' | 'addressGeoConflict' | 'categoryConflict' | 'sameUrl' | 'venueNameConflict' | 'placeNameInTitle' | 'placeNameTokens' | (string & {});
|
|
46
|
+
name: 'titleSimilarity' | 'nameSimilarity' | 'nameContainment' | 'titleFrequency' | 'startDelta' | 'endDelta' | 'samePlaceCluster' | 'distance' | 'placePrecision' | 'sameAddress' | 'addressGeoConflict' | 'categoryConflict' | 'sameUrl' | 'venueNameConflict' | 'placeNameInTitle' | 'placeNameTokens' | 'edgeResolution' | (string & {});
|
|
47
47
|
value: number;
|
|
48
48
|
}
|
|
49
49
|
export declare function isSignal<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.derivation", "signal">;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util.js';
|
|
6
|
+
import type * as CommunityLexiconLocationGeo from '../../../community/lexicon/location/geo.js';
|
|
7
|
+
import type * as CommunityLexiconLocationHthree from '../../../community/lexicon/location/hthree.js';
|
|
8
|
+
import type * as CommunityLexiconLocationAddress from '../../../community/lexicon/location/address.js';
|
|
9
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
10
|
+
export interface Main {
|
|
11
|
+
$type?: 'pub.techne.draft.locationEntry';
|
|
12
|
+
/** 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. */
|
|
13
|
+
kind?: 'at' | 'serves' | 'registered' | (string & {});
|
|
14
|
+
at: $Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationHthree.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | {
|
|
15
|
+
$type: string;
|
|
16
|
+
};
|
|
17
|
+
/** A short label for the entry as the writer would show it, such as "Main office" or "Filing city (IRS)". */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** 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. */
|
|
20
|
+
basis?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.locationEntry", "main">;
|
|
23
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
2
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
3
|
+
const is$typed = _is$typed, validate = _validate;
|
|
4
|
+
const id = 'pub.techne.draft.locationEntry';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain);
|
|
11
|
+
}
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
import { type $Typed } from '../../../../util.js';
|
|
6
6
|
import type * as CommunityLexiconLocationGeo from '../../../community/lexicon/location/geo.js';
|
|
7
|
+
import type * as CommunityLexiconLocationHthree from '../../../community/lexicon/location/hthree.js';
|
|
7
8
|
import type * as CommunityLexiconLocationAddress from '../../../community/lexicon/location/address.js';
|
|
8
9
|
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
10
|
+
import type * as PubTechneDraftLocationEntry from './locationEntry.js';
|
|
9
11
|
export interface Main {
|
|
10
12
|
$type: 'pub.techne.draft.org';
|
|
11
13
|
/** The organization's name as its registry records it. */
|
|
@@ -24,8 +26,8 @@ export interface Main {
|
|
|
24
26
|
url?: string;
|
|
25
27
|
/** Public phone number, E.164. */
|
|
26
28
|
phone?: string;
|
|
27
|
-
/** 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.
|
|
28
|
-
locations?: ($Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | {
|
|
29
|
+
/** 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`. */
|
|
30
|
+
locations?: ($Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationHthree.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<PubTechneDraftLocationEntry.Main> | {
|
|
29
31
|
$type: string;
|
|
30
32
|
})[];
|
|
31
33
|
createdAt: string;
|
|
@@ -53,8 +55,8 @@ export interface Fields {
|
|
|
53
55
|
url?: string;
|
|
54
56
|
/** Public phone number, E.164. */
|
|
55
57
|
phone?: string;
|
|
56
|
-
/** 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.
|
|
57
|
-
locations?: ($Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | {
|
|
58
|
+
/** 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`. */
|
|
59
|
+
locations?: ($Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationHthree.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<PubTechneDraftLocationEntry.Main> | {
|
|
58
60
|
$type: string;
|
|
59
61
|
})[];
|
|
60
62
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util.js';
|
|
6
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
7
|
+
import type * as CommunityLexiconLocationGeo from '../../../community/lexicon/location/geo.js';
|
|
8
|
+
import type * as CommunityLexiconLocationHthree from '../../../community/lexicon/location/hthree.js';
|
|
9
|
+
import type * as CommunityLexiconLocationAddress from '../../../community/lexicon/location/address.js';
|
|
10
|
+
import type * as PubTechneDraftLocationEntry from './locationEntry.js';
|
|
11
|
+
export interface Main {
|
|
12
|
+
$type: 'pub.techne.draft.pendingBeaconSpotV2';
|
|
13
|
+
subject: ComAtprotoRepoStrongRef.Main;
|
|
14
|
+
/** 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`. */
|
|
15
|
+
locations: ($Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationHthree.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<PubTechneDraftLocationEntry.Main> | {
|
|
16
|
+
$type: string;
|
|
17
|
+
})[];
|
|
18
|
+
/** When this was last written. Read to delete a copy no beacon took up within a day. */
|
|
19
|
+
createdAt: string;
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.pendingBeaconSpotV2", "main">;
|
|
23
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
24
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
2
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
3
|
+
const is$typed = _is$typed, validate = _validate;
|
|
4
|
+
const id = 'pub.techne.draft.pendingBeaconSpotV2';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain, true);
|
|
11
|
+
}
|
|
12
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util.js';
|
|
6
|
+
import type * as CommunityLexiconLocationGeo from '../../../community/lexicon/location/geo.js';
|
|
7
|
+
import type * as CommunityLexiconLocationHthree from '../../../community/lexicon/location/hthree.js';
|
|
8
|
+
import type * as CommunityLexiconLocationAddress from '../../../community/lexicon/location/address.js';
|
|
9
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
10
|
+
import type * as PubTechneDraftLocationEntry from './locationEntry.js';
|
|
11
|
+
import type * as CommunityLexiconCalendarEvent from '../../../community/lexicon/calendar/event.js';
|
|
12
|
+
import type * as PubTechneDraftOrg from './org.js';
|
|
13
|
+
export interface Main {
|
|
14
|
+
$type: 'pub.techne.draft.placeV2';
|
|
15
|
+
/** The place/group's display name. */
|
|
16
|
+
name: string;
|
|
17
|
+
/** What kind of directory entry this is. `area`: a named area (a city, county, ZIP or parish) whose extent is `cells`. */
|
|
18
|
+
kind: 'business' | 'publicSpace' | 'group' | 'area' | (string & {});
|
|
19
|
+
/** 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. */
|
|
20
|
+
category?: string;
|
|
21
|
+
/** 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. */
|
|
22
|
+
locations?: ($Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationHthree.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<PubTechneDraftLocationEntry.Main> | {
|
|
23
|
+
$type: string;
|
|
24
|
+
})[];
|
|
25
|
+
/** 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. */
|
|
26
|
+
cells?: string[];
|
|
27
|
+
/** 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. */
|
|
28
|
+
timeZone?: string;
|
|
29
|
+
/** Named links associated with this place, such as its website. Data-source credits belong in a separate attribution record. */
|
|
30
|
+
uris?: CommunityLexiconCalendarEvent.Uri[];
|
|
31
|
+
/** 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. */
|
|
32
|
+
openingHours?: string;
|
|
33
|
+
/** 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. */
|
|
34
|
+
description?: string;
|
|
35
|
+
/** 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. */
|
|
36
|
+
identifiers?: PubTechneDraftOrg.SchemeValue[];
|
|
37
|
+
createdAt: string;
|
|
38
|
+
[k: string]: unknown;
|
|
39
|
+
}
|
|
40
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.placeV2", "main">;
|
|
41
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
42
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
2
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
3
|
+
const is$typed = _is$typed, validate = _validate;
|
|
4
|
+
const id = 'pub.techne.draft.placeV2';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain, true);
|
|
11
|
+
}
|
|
12
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
5
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import type * as PubTechneDraftQueryListRecords from './listRecords.js';
|
|
6
7
|
import type * as PubTechneDraftQueryGetRecords from './getRecords.js';
|
|
7
8
|
export type QueryParams = {};
|
|
8
9
|
export interface InputSchema {
|
|
@@ -74,8 +75,8 @@ export interface Step {
|
|
|
74
75
|
return: boolean;
|
|
75
76
|
/** Value paths (`a`, `a.b`, `a[].b`): each answered record's `value` keeps only these. Bindings read the whole value, before this selection. The record's other fields come back as `envelope` says, and its `uri` as `uri` says. */
|
|
76
77
|
fields?: string[];
|
|
77
|
-
/** 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. */
|
|
78
|
-
envelope?: ('cid' | 'author' | 'collection' | 'time' | 'space' | 'source' | 'curated' | 'held' | 'measures' | 'signals' | (string & {}))[];
|
|
78
|
+
/** 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. */
|
|
79
|
+
envelope?: ('cid' | 'author' | 'collection' | 'time' | 'space' | 'source' | 'curated' | 'held' | 'measures' | 'signals' | 'matched' | (string & {}))[];
|
|
79
80
|
/** False: each answered record comes back without its `uri`, for a step whose records nobody reads by URI. Bindings read it, before this cut: `$<step>.uri` stands for the step's records' URIs either way. A get step's `resolved`, `curation` and `defaults` still name records by URI, so with `uri: false` they cannot be matched to the records answered. */
|
|
80
81
|
uri: boolean;
|
|
81
82
|
}
|
|
@@ -92,6 +93,7 @@ export interface StepResult {
|
|
|
92
93
|
count?: number;
|
|
93
94
|
/** List step, asked with `count`: as listRecords' `capped`. */
|
|
94
95
|
capped?: boolean;
|
|
96
|
+
notServedHere?: PubTechneDraftQueryListRecords.NotServedHere;
|
|
95
97
|
/** Get step: as getRecords' `withheld`. */
|
|
96
98
|
withheld?: string[];
|
|
97
99
|
/** Asked with `handles`: as getRecords' `handles`. */
|
|
@@ -135,6 +137,8 @@ export interface Record {
|
|
|
135
137
|
signals?: {
|
|
136
138
|
[_ in string]: unknown;
|
|
137
139
|
};
|
|
140
|
+
/** As listRecords#record has it: with a `location` `in` or `covers` condition, the stated locations that matched, at most 8. */
|
|
141
|
+
matched?: PubTechneDraftQueryListRecords.MatchedLocation[];
|
|
138
142
|
}
|
|
139
143
|
export declare function isRecord<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.query.composeRecords", "record">;
|
|
140
144
|
export declare function validateRecord<V>(v: V): ValidationResult<Record & V>;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
5
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import type * as PubTechneDraftQueryListRecords from './listRecords.js';
|
|
6
7
|
export type QueryParams = {
|
|
7
8
|
/** A pub.techne.draft.query object, as JSON. Give this or `queryUri`. */
|
|
8
9
|
query?: string;
|
|
@@ -21,6 +22,7 @@ export interface OutputSchema {
|
|
|
21
22
|
capped: boolean;
|
|
22
23
|
/** With groupBy: the count per key, largest first. */
|
|
23
24
|
groups?: Group[];
|
|
25
|
+
notServedHere?: PubTechneDraftQueryListRecords.NotServedHere;
|
|
24
26
|
}
|
|
25
27
|
export interface CallOptions {
|
|
26
28
|
signal?: AbortSignal;
|