full diff

pub.chive.governance.listProposals

From
bafyreidkbwm2miua7son67njn6ise4vghfoge5ilh62fbtnk3vdcyp467u indexed 2026-06-18 13:14 UTC View this version
To
bafyreidkbwm2miua7son67njn6ise4vghfoge5ilh62fbtnk3vdcyp467u indexed 2026-06-18 13:14 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "consensusProgress": {
55 "properties": {
66 "approvalPercentage": {
77 "description": "Current approval percentage (0-100)",
88 "maximum": 100,
99 "minimum": 0,
1010 "type": "integer"
1111 },
1212 "consensusReached": {
1313 "description": "Whether consensus has been reached",
1414 "type": "boolean"
1515 },
1616 "minimumVotes": {
1717 "description": "Minimum votes required",
1818 "minimum": 0,
1919 "type": "integer"
2020 },
2121 "recommendedStatus": {
2222 "description": "Recommended status based on votes",
2323 "knownValues": [
2424 "approved",
2525 "rejected",
2626 "pending"
2727 ],
2828 "type": "string"
2929 },
3030 "threshold": {
3131 "description": "Required threshold for approval (0-100)",
3232 "maximum": 100,
3333 "minimum": 0,
3434 "type": "integer"
3535 },
3636 "voterCount": {
3737 "description": "Number of voters",
3838 "minimum": 0,
3939 "type": "integer"
4040 }
4141 },
4242 "required": [
4343 "approvalPercentage",
4444 "threshold",
4545 "voterCount",
4646 "minimumVotes",
4747 "consensusReached",
4848 "recommendedStatus"
4949 ],
5050 "type": "object"
5151 },
5252 "externalId": {
5353 "properties": {
5454 "identifier": {
5555 "description": "Identifier in external system",
5656 "type": "string"
5757 },
5858 "matchType": {
5959 "description": "Match type",
6060 "knownValues": [
6161 "exact",
6262 "close",
6363 "broader",
6464 "narrower",
6565 "related"
6666 ],
6767 "type": "string"
6868 },
6969 "system": {
7070 "description": "External system name",
7171 "type": "string"
7272 },
7373 "uri": {
7474 "description": "URI in external system",
7575 "format": "uri",
7676 "type": "string"
7777 }
7878 },
7979 "required": [
8080 "system",
8181 "identifier"
8282 ],
8383 "type": "object"
8484 },
8585 "main": {
8686 "description": "List governance proposals with optional filtering by status, type, and other criteria",
8787 "errors": [],
8888 "output": {
8989 "encoding": "application/json",
9090 "schema": {
9191 "properties": {
9292 "cursor": {
9393 "description": "Cursor for next page",
9494 "type": "string"
9595 },
9696 "proposals": {
9797 "description": "List of proposals",
9898 "items": {
9999 "ref": "#proposalView",
100100 "type": "ref"
101101 },
102102 "type": "array"
103103 },
104104 "total": {
105105 "description": "Total number of proposals matching filters",
106106 "type": "integer"
107107 }
108108 },
109109 "required": [
110110 "proposals",
111111 "total"
112112 ],
113113 "type": "object"
114114 }
115115 },
116116 "parameters": {
117117 "properties": {
118118 "cursor": {
119119 "description": "Pagination cursor for next page",
120120 "type": "string"
121121 },
122122 "kind": {
123123 "description": "Filter by node kind",
124124 "knownValues": [
125125 "type",
126126 "object"
127127 ],
128128 "type": "string"
129129 },
130130 "limit": {
131131 "default": 50,
132132 "description": "Maximum number of results to return",
133133 "maximum": 100,
134134 "minimum": 1,
135135 "type": "integer"
136136 },
137137 "nodeUri": {
138138 "description": "Filter by target node URI",
139139 "format": "at-uri",
140140 "type": "string"
141141 },
142142 "proposedBy": {
143143 "description": "Filter by proposer DID",
144144 "format": "did",
145145 "type": "string"
146146 },
147147 "status": {
148148 "description": "Filter by proposal status",
149149 "knownValues": [
150150 "pending",
151151 "approved",
152152 "rejected",
153153 "expired"
154154 ],
155155 "type": "string"
156156 },
157157 "subkind": {
158158 "description": "Filter by subkind (field, institution, etc.)",
159159 "type": "string"
160160 },
161161 "type": {
162162 "description": "Filter by proposal type",
163163 "knownValues": [
164164 "create",
165165 "update",
166166 "merge",
167167 "deprecate"
168168 ],
169169 "type": "string"
170170 }
171171 },
172172 "type": "params"
173173 },
174174 "type": "query"
175175 },
176176 "proposalChanges": {
177177 "description": "Proposed changes to a node",
178178 "properties": {
179179 "alternateLabels": {
180180 "description": "Alternate labels",
181181 "items": {
182182 "type": "string"
183183 },
184184 "type": "array"
185185 },
186186 "description": {
187187 "description": "Node description",
188188 "type": "string"
189189 },
190190 "externalIds": {
191191 "description": "External identifiers",
192192 "items": {
193193 "ref": "#externalId",
194194 "type": "ref"
195195 },
196196 "type": "array"
197197 },
198198 "kind": {
199199 "description": "Node kind",
200200 "knownValues": [
201201 "type",
202202 "object"
203203 ],
204204 "type": "string"
205205 },
206206 "label": {
207207 "description": "Node label",
208208 "type": "string"
209209 },
210210 "mergeIntoUri": {
211211 "description": "Merge target URI",
212212 "format": "at-uri",
213213 "type": "string"
214214 },
215215 "metadata": {
216216 "description": "Additional metadata",
217217 "type": "unknown"
218218 },
219219 "subkind": {
220220 "description": "Node subkind",
221221 "type": "string"
222222 },
223223 "targetUri": {
224224 "description": "Target URI for update/deprecate",
225225 "format": "at-uri",
226226 "type": "string"
227227 }
228228 },
229229 "type": "object"
230230 },
231231 "proposalView": {
232232 "description": "View of a governance proposal",
233233 "properties": {
234234 "changes": {
235235 "description": "Proposed changes",
236236 "ref": "#proposalChanges",
237237 "type": "ref"
238238 },
239239 "cid": {
240240 "description": "Content identifier",
241241 "type": "string"
242242 },
243243 "consensus": {
244244 "ref": "#consensusProgress",
245245 "type": "ref"
246246 },
247247 "createdAt": {
248248 "description": "Creation timestamp",
249249 "format": "datetime",
250250 "type": "string"
251251 },
252252 "expiresAt": {
253253 "description": "Expiration timestamp",
254254 "format": "datetime",
255255 "type": "string"
256256 },
257257 "id": {
258258 "description": "Proposal identifier",
259259 "type": "string"
260260 },
261261 "label": {
262262 "description": "Node label (from target node or proposed changes)",
263263 "type": "string"
264264 },
265265 "nodeUri": {
266266 "description": "Target node URI (for update/merge/deprecate)",
267267 "format": "at-uri",
268268 "type": "string"
269269 },
270270 "proposedBy": {
271271 "description": "DID of the proposer",
272272 "format": "did",
273273 "type": "string"
274274 },
275275 "proposerName": {
276276 "description": "Display name of the proposer",
277277 "type": "string"
278278 },
279279 "rationale": {
280280 "description": "Rationale for the proposal",
281281 "type": "string"
282282 },
283283 "status": {
284284 "description": "Current proposal status",
285285 "knownValues": [
286286 "pending",
287287 "approved",
288288 "rejected",
289289 "expired"
290290 ],
291291 "type": "string"
292292 },
293293 "type": {
294294 "description": "Proposal type",
295295 "knownValues": [
296296 "create",
297297 "update",
298298 "merge",
299299 "deprecate"
300300 ],
301301 "type": "string"
302302 },
303303 "updatedAt": {
304304 "description": "Last update timestamp",
305305 "format": "datetime",
306306 "type": "string"
307307 },
308308 "uri": {
309309 "description": "Proposal AT-URI",
310310 "format": "at-uri",
311311 "type": "string"
312312 },
313313 "votes": {
314314 "ref": "#voteCounts",
315315 "type": "ref"
316316 }
317317 },
318318 "required": [
319319 "id",
320320 "uri",
321321 "cid",
322322 "type",
323323 "changes",
324324 "status",
325325 "proposedBy",
326326 "votes",
327327 "consensus",
328328 "createdAt"
329329 ],
330330 "type": "object"
331331 },
332332 "voteCounts": {
333333 "properties": {
334334 "abstain": {
335335 "description": "Number of abstain votes",
336336 "minimum": 0,
337337 "type": "integer"
338338 },
339339 "approve": {
340340 "description": "Number of approve votes",
341341 "minimum": 0,
342342 "type": "integer"
343343 },
344344 "reject": {
345345 "description": "Number of reject votes",
346346 "minimum": 0,
347347 "type": "integer"
348348 }
349349 },
350350 "required": [
351351 "approve",
352352 "reject",
353353 "abstain"
354354 ],
355355 "type": "object"
356356 }
357357 },
358358 "id": "pub.chive.governance.listProposals",
359359 "lexicon": 1,
360360 "revision": 1
361361}