@openvtc/trust-tasks 0.28.12 → 0.28.13

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 (80) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/_shared/components.d.ts +458 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +42 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +42 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/vtc/boards/_shared/0.1/board.d.ts +22 -0
  9. package/dist/vtc/boards/_shared/0.1/board.d.ts.map +1 -0
  10. package/dist/vtc/boards/_shared/0.1/board.js +6 -0
  11. package/dist/vtc/boards/_shared/0.1/board.js.map +1 -0
  12. package/dist/vtc/boards/create/0.1/payload.d.ts +2402 -0
  13. package/dist/vtc/boards/create/0.1/payload.d.ts.map +1 -0
  14. package/dist/vtc/boards/create/0.1/payload.js +1349 -0
  15. package/dist/vtc/boards/create/0.1/payload.js.map +1 -0
  16. package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts +1781 -0
  17. package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts.map +1 -0
  18. package/dist/vtc/boards/ideas/decide/0.1/payload.js +1028 -0
  19. package/dist/vtc/boards/ideas/decide/0.1/payload.js.map +1 -0
  20. package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts +1781 -0
  21. package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts.map +1 -0
  22. package/dist/vtc/boards/ideas/propose/0.1/payload.js +1025 -0
  23. package/dist/vtc/boards/ideas/propose/0.1/payload.js.map +1 -0
  24. package/dist/vtc/boards/ideas/select/0.1/payload.d.ts +1788 -0
  25. package/dist/vtc/boards/ideas/select/0.1/payload.d.ts.map +1 -0
  26. package/dist/vtc/boards/ideas/select/0.1/payload.js +1029 -0
  27. package/dist/vtc/boards/ideas/select/0.1/payload.js.map +1 -0
  28. package/dist/vtc/boards/ideas/update/0.1/payload.d.ts +1781 -0
  29. package/dist/vtc/boards/ideas/update/0.1/payload.d.ts.map +1 -0
  30. package/dist/vtc/boards/ideas/update/0.1/payload.js +1023 -0
  31. package/dist/vtc/boards/ideas/update/0.1/payload.js.map +1 -0
  32. package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts +1753 -0
  33. package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts.map +1 -0
  34. package/dist/vtc/boards/ideas/withdraw/0.1/payload.js +1011 -0
  35. package/dist/vtc/boards/ideas/withdraw/0.1/payload.js.map +1 -0
  36. package/dist/vtc/boards/list/0.1/payload.d.ts +2267 -0
  37. package/dist/vtc/boards/list/0.1/payload.d.ts.map +1 -0
  38. package/dist/vtc/boards/list/0.1/payload.js +1326 -0
  39. package/dist/vtc/boards/list/0.1/payload.js.map +1 -0
  40. package/dist/vtc/boards/notes/add/0.1/payload.d.ts +655 -0
  41. package/dist/vtc/boards/notes/add/0.1/payload.d.ts.map +1 -0
  42. package/dist/vtc/boards/notes/add/0.1/payload.js +374 -0
  43. package/dist/vtc/boards/notes/add/0.1/payload.js.map +1 -0
  44. package/dist/vtc/boards/notes/hide/0.1/payload.d.ts +657 -0
  45. package/dist/vtc/boards/notes/hide/0.1/payload.d.ts.map +1 -0
  46. package/dist/vtc/boards/notes/hide/0.1/payload.js +378 -0
  47. package/dist/vtc/boards/notes/hide/0.1/payload.js.map +1 -0
  48. package/dist/vtc/boards/notes/list/0.1/payload.d.ts +730 -0
  49. package/dist/vtc/boards/notes/list/0.1/payload.d.ts.map +1 -0
  50. package/dist/vtc/boards/notes/list/0.1/payload.js +406 -0
  51. package/dist/vtc/boards/notes/list/0.1/payload.js.map +1 -0
  52. package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts +641 -0
  53. package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts.map +1 -0
  54. package/dist/vtc/boards/notes/withdraw/0.1/payload.js +367 -0
  55. package/dist/vtc/boards/notes/withdraw/0.1/payload.js.map +1 -0
  56. package/dist/vtc/boards/show/0.1/payload.d.ts +3713 -0
  57. package/dist/vtc/boards/show/0.1/payload.d.ts.map +1 -0
  58. package/dist/vtc/boards/show/0.1/payload.js +2160 -0
  59. package/dist/vtc/boards/show/0.1/payload.js.map +1 -0
  60. package/dist/vtc/boards/update/0.1/payload.d.ts +2423 -0
  61. package/dist/vtc/boards/update/0.1/payload.d.ts.map +1 -0
  62. package/dist/vtc/boards/update/0.1/payload.js +1356 -0
  63. package/dist/vtc/boards/update/0.1/payload.js.map +1 -0
  64. package/package.json +1 -1
  65. package/src/_shared/components.ts +493 -0
  66. package/src/index.ts +42 -0
  67. package/src/vtc/boards/_shared/0.1/board.ts +23 -0
  68. package/src/vtc/boards/create/0.1/payload.ts +1517 -0
  69. package/src/vtc/boards/ideas/decide/0.1/payload.ts +1068 -0
  70. package/src/vtc/boards/ideas/propose/0.1/payload.ts +1063 -0
  71. package/src/vtc/boards/ideas/select/0.1/payload.ts +1070 -0
  72. package/src/vtc/boards/ideas/update/0.1/payload.ts +1061 -0
  73. package/src/vtc/boards/ideas/withdraw/0.1/payload.ts +1045 -0
  74. package/src/vtc/boards/list/0.1/payload.ts +1376 -0
  75. package/src/vtc/boards/notes/add/0.1/payload.ts +410 -0
  76. package/src/vtc/boards/notes/hide/0.1/payload.ts +414 -0
  77. package/src/vtc/boards/notes/list/0.1/payload.ts +457 -0
  78. package/src/vtc/boards/notes/withdraw/0.1/payload.ts +401 -0
  79. package/src/vtc/boards/show/0.1/payload.ts +2212 -0
  80. package/src/vtc/boards/update/0.1/payload.ts +1529 -0
@@ -0,0 +1,1781 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/boards/ideas/decide/0.1/payload.schema.json
4
+ */
5
+ import type { Author, BoardHead, BoardId, DigestMultibase, ElectionId, ElectionResult, ElectionState, EntryId, Ext, Idea, IdeaDecision, IdeaDescription, IdeaElection, IdeaFormat, IdeaId, IdeaOpening, IdeaState, IdeaTitle, Key_VotingV0_1 as Key, QuestionResult, Reason_VtcBoardsV0_1 as Reason, Topic_VtcBoardsV0_1 as Topic } from "../../../../../_shared/components.js";
6
+ /**
7
+ * A facilitator accepts a proposed idea — opening an election for it from the board's template — declines it, merges it into another, or moves a declined idea back to proposed. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCBoardsIdeasDecidePayload {
10
+ ideaId: IdeaId;
11
+ decision: "accept" | "decline" | "merge" | "reopen";
12
+ reason?: Reason;
13
+ /**
14
+ * `merge` only: the idea this one is folded into.
15
+ */
16
+ mergeInto?: IdeaId;
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * The success response to a vtc/boards/ideas/decide/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1#response.
21
+ */
22
+ export interface VTCBoardsIdeasDecideResponsePayload {
23
+ idea: Idea;
24
+ ext?: Ext;
25
+ }
26
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
27
+ export type { Author, BoardHead, BoardId, DigestMultibase, ElectionId, ElectionResult, ElectionState, EntryId, Ext, Idea, IdeaDecision, IdeaDescription, IdeaElection, IdeaFormat, IdeaId, IdeaOpening, IdeaState, IdeaTitle, Key, QuestionResult, Reason, Topic };
28
+ /** Trust Task type URI. */
29
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1";
30
+ /**
31
+ * The earlier version of this specification that this one declares it
32
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
33
+ * `null`. Only the direct declaration — follow the chain with
34
+ * `extendsChain` / `readForSpec`.
35
+ */
36
+ export declare const EXTENDS: string | null;
37
+ /**
38
+ * Why this version is deprecated, or `null` while it is current. A
39
+ * superseded or retired version is still supported, and is withdrawn from
40
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
41
+ * Versions").
42
+ */
43
+ export declare const DEPRECATION: string | null;
44
+ /** Stable alias for this specification's request payload shape. */
45
+ export type Payload = VTCBoardsIdeasDecidePayload;
46
+ /** Trust Task response type URI (request type URI + "#response"). */
47
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1#response";
48
+ /** Stable alias for this specification's success-response payload shape. */
49
+ export type Response = VTCBoardsIdeasDecideResponsePayload;
50
+ /**
51
+ * This specification's payload schema, as a value.
52
+ *
53
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
54
+ * rather than only as a `.json` file because TypeScript types are erased
55
+ * at runtime: without a schema a consumer has nothing to validate, and
56
+ * every REQUIRED payload member is optional in practice. Cross-file
57
+ * `$ref`s are already inlined, so it needs no resolver.
58
+ */
59
+ export declare const PAYLOAD_SCHEMA: {
60
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
61
+ readonly $id: "https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1";
62
+ readonly title: "VTC Boards — Ideas — Decide — payload";
63
+ readonly description: "A facilitator accepts a proposed idea — opening an election for it from the board's template — declines it, merges it into another, or moves a declined idea back to proposed. The outer document members are owned by the framework — SPEC §6.3.";
64
+ readonly type: "object";
65
+ readonly additionalProperties: false;
66
+ readonly required: readonly ["ideaId", "decision"];
67
+ readonly properties: {
68
+ readonly ideaId: {
69
+ readonly $ref: "#/$defs/IdeaId";
70
+ };
71
+ readonly decision: {
72
+ readonly type: "string";
73
+ readonly enum: readonly ["accept", "decline", "merge", "reopen"];
74
+ };
75
+ readonly reason: {
76
+ readonly $ref: "#/$defs/Reason";
77
+ };
78
+ readonly mergeInto: {
79
+ readonly $ref: "#/$defs/IdeaId";
80
+ readonly description: "`merge` only: the idea this one is folded into.";
81
+ };
82
+ readonly ext: {
83
+ readonly $ref: "#/$defs/Ext";
84
+ };
85
+ };
86
+ readonly $defs: {
87
+ readonly Response: {
88
+ readonly $anchor: "response";
89
+ readonly title: "VTC Boards — Ideas — Decide — response payload";
90
+ readonly description: "The success response to a vtc/boards/ideas/decide/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1#response.";
91
+ readonly type: "object";
92
+ readonly additionalProperties: false;
93
+ readonly required: readonly ["idea"];
94
+ readonly properties: {
95
+ readonly idea: {
96
+ readonly $ref: "#/$defs/Idea";
97
+ };
98
+ readonly ext: {
99
+ readonly $ref: "#/$defs/Ext";
100
+ };
101
+ };
102
+ };
103
+ readonly Ext: {
104
+ readonly title: "Ext";
105
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
106
+ readonly type: "object";
107
+ readonly minProperties: 1;
108
+ readonly additionalProperties: true;
109
+ readonly propertyNames: {
110
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
111
+ };
112
+ };
113
+ readonly Idea: {
114
+ readonly title: "Idea";
115
+ readonly description: "An idea as one caller may see it.";
116
+ readonly type: "object";
117
+ readonly additionalProperties: false;
118
+ readonly required: readonly ["ideaId", "boardId", "state", "title", "description", "proposer", "proposedAt", "noteCount"];
119
+ readonly properties: {
120
+ readonly ideaId: {
121
+ readonly $ref: "#/$defs/IdeaId";
122
+ };
123
+ readonly boardId: {
124
+ readonly $ref: "#/$defs/BoardId";
125
+ };
126
+ readonly state: {
127
+ readonly $ref: "#/$defs/IdeaState";
128
+ };
129
+ readonly title: {
130
+ readonly $ref: "#/$defs/IdeaTitle";
131
+ };
132
+ readonly description: {
133
+ readonly $ref: "#/$defs/IdeaDescription";
134
+ };
135
+ readonly format: {
136
+ readonly $ref: "#/$defs/IdeaFormat";
137
+ };
138
+ readonly topic: {
139
+ readonly $ref: "#/$defs/Topic";
140
+ };
141
+ readonly proposer: {
142
+ readonly $ref: "#/$defs/Author";
143
+ };
144
+ readonly proposedAt: {
145
+ readonly type: "string";
146
+ readonly format: "date-time";
147
+ };
148
+ readonly noteCount: {
149
+ readonly type: "integer";
150
+ readonly minimum: 0;
151
+ readonly description: "Notes on the idea the caller may read.";
152
+ };
153
+ readonly election: {
154
+ readonly $ref: "#/$defs/IdeaElection";
155
+ readonly description: "Present once an election was opened for the idea.";
156
+ };
157
+ readonly opening: {
158
+ readonly $ref: "#/$defs/IdeaOpening";
159
+ };
160
+ readonly decision: {
161
+ readonly $ref: "#/$defs/IdeaDecision";
162
+ readonly description: "Present in `declined`, `merged`, `selected` and `notSelected`.";
163
+ };
164
+ };
165
+ };
166
+ readonly IdeaDecision: {
167
+ readonly title: "IdeaDecision";
168
+ readonly description: "A facilitator's decision on an idea: declining or merging it (VTI-BRD-013), or selecting it or not (VTI-BRD-040). The deciding facilitator is not named to the audience.";
169
+ readonly type: "object";
170
+ readonly additionalProperties: false;
171
+ readonly required: readonly ["decidedAt"];
172
+ readonly properties: {
173
+ readonly decidedAt: {
174
+ readonly type: "string";
175
+ readonly format: "date-time";
176
+ };
177
+ readonly reason: {
178
+ readonly $ref: "#/$defs/Reason";
179
+ };
180
+ readonly mergedInto: {
181
+ readonly $ref: "#/$defs/IdeaId";
182
+ readonly description: "Present exactly when the idea is `merged`.";
183
+ };
184
+ readonly slotId: {
185
+ readonly $ref: "#/$defs/Key";
186
+ readonly description: "A `selected` idea's place in the board's timetable, where it has one.";
187
+ };
188
+ readonly departsFromRule: {
189
+ readonly type: "boolean";
190
+ readonly description: "`selected` or `notSelected` only: whether the facilitator said the decision departs from the board's `selectionRule` (VTI-BRD-041); `reason` then says why.";
191
+ };
192
+ readonly ownIdea: {
193
+ readonly const: true;
194
+ readonly description: "Present when a facilitator decided their own idea because no other facilitator existed (VTI-BRD-013).";
195
+ };
196
+ };
197
+ };
198
+ readonly IdeaId: {
199
+ readonly title: "IdeaId";
200
+ readonly description: "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.";
201
+ readonly type: "string";
202
+ readonly pattern: "^ida_[A-Za-z0-9_-]{16,64}$";
203
+ };
204
+ readonly Reason: {
205
+ readonly title: "Reason";
206
+ readonly type: "string";
207
+ readonly minLength: 1;
208
+ readonly maxLength: 500;
209
+ readonly description: "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text.";
210
+ };
211
+ readonly Key: {
212
+ readonly title: "Key";
213
+ readonly description: "A question or option key, unique within its manifest or question.";
214
+ readonly type: "string";
215
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
216
+ };
217
+ readonly IdeaOpening: {
218
+ readonly title: "IdeaOpening";
219
+ readonly description: "Shown to facilitators only: an accepted idea whose election the ballot box has not yet registered, so the idea is still `proposed` (VTI-BRD-031). `refusal` is the ballot box's or community's refusal of the last attempt, after which the idea is no longer being opened.";
220
+ readonly type: "object";
221
+ readonly additionalProperties: false;
222
+ readonly required: readonly ["electionId", "startedAt"];
223
+ readonly properties: {
224
+ readonly electionId: {
225
+ readonly $ref: "#/$defs/ElectionId";
226
+ };
227
+ readonly startedAt: {
228
+ readonly type: "string";
229
+ readonly format: "date-time";
230
+ readonly description: "When the facilitator accepted the idea.";
231
+ };
232
+ readonly refusal: {
233
+ readonly type: "object";
234
+ readonly additionalProperties: false;
235
+ readonly required: readonly ["code", "refusedAt"];
236
+ readonly properties: {
237
+ readonly code: {
238
+ readonly type: "string";
239
+ readonly minLength: 1;
240
+ readonly maxLength: 200;
241
+ };
242
+ readonly refusedAt: {
243
+ readonly type: "string";
244
+ readonly format: "date-time";
245
+ };
246
+ };
247
+ };
248
+ };
249
+ };
250
+ readonly ElectionId: {
251
+ readonly title: "ElectionId";
252
+ readonly description: "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.";
253
+ readonly type: "string";
254
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
255
+ };
256
+ readonly IdeaElection: {
257
+ readonly title: "IdeaElection";
258
+ readonly description: "An idea's election as a board shows it (VTI-BRD-033): never who took a ticket or cast a ballot.";
259
+ readonly type: "object";
260
+ readonly additionalProperties: false;
261
+ readonly required: readonly ["electionId", "state"];
262
+ readonly properties: {
263
+ readonly electionId: {
264
+ readonly $ref: "#/$defs/ElectionId";
265
+ };
266
+ readonly state: {
267
+ readonly $ref: "#/$defs/ElectionState";
268
+ };
269
+ readonly ballotsOnBoard: {
270
+ readonly type: "integer";
271
+ readonly minimum: 0;
272
+ readonly description: "The ballot box's latest board head's ballot count, where its board is public (VTI-VOT-052); absent otherwise. Counts ballots, not voters, where a later ballot replaces an earlier one.";
273
+ };
274
+ readonly boardHeadIssuedAt: {
275
+ readonly type: "string";
276
+ readonly format: "date-time";
277
+ readonly description: "When the head `ballotsOnBoard` was read from was issued.";
278
+ };
279
+ readonly result: {
280
+ readonly $ref: "#/$defs/ElectionResult";
281
+ readonly description: "Present once the election is tallied.";
282
+ };
283
+ readonly certified: {
284
+ readonly type: "boolean";
285
+ readonly description: "Present with `result`: whether the community certified it (VTI-VOT-071).";
286
+ };
287
+ };
288
+ };
289
+ readonly ElectionResult: {
290
+ readonly title: "ElectionResult";
291
+ readonly description: "An election's result, computable by anyone who can read its board from the board and the registration alone (VTI-VOT-070).";
292
+ readonly type: "object";
293
+ readonly additionalProperties: false;
294
+ readonly required: readonly ["electionId", "manifestDigest", "ballotsCounted", "questions", "head"];
295
+ readonly properties: {
296
+ readonly electionId: {
297
+ readonly $ref: "#/$defs/ElectionId";
298
+ };
299
+ readonly manifestDigest: {
300
+ readonly $ref: "#/$defs/DigestMultibase";
301
+ };
302
+ readonly ballotsCounted: {
303
+ readonly type: "integer";
304
+ readonly minimum: 0;
305
+ };
306
+ readonly questions: {
307
+ readonly type: "array";
308
+ readonly items: {
309
+ readonly $ref: "#/$defs/QuestionResult";
310
+ };
311
+ };
312
+ readonly head: {
313
+ readonly $ref: "#/$defs/BoardHead";
314
+ readonly description: "The head of the board as it stood at close: the result counts exactly its entries.";
315
+ };
316
+ };
317
+ };
318
+ readonly BoardHead: {
319
+ readonly title: "BoardHead";
320
+ readonly description: "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.";
321
+ readonly type: "object";
322
+ readonly additionalProperties: false;
323
+ readonly required: readonly ["electionId", "treeSize", "rootHash", "issuedAt"];
324
+ readonly properties: {
325
+ readonly electionId: {
326
+ readonly $ref: "#/$defs/ElectionId";
327
+ };
328
+ readonly treeSize: {
329
+ readonly type: "integer";
330
+ readonly minimum: 0;
331
+ };
332
+ readonly rootHash: {
333
+ readonly $ref: "#/$defs/DigestMultibase";
334
+ readonly description: "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash.";
335
+ };
336
+ readonly issuedAt: {
337
+ readonly type: "string";
338
+ readonly format: "date-time";
339
+ };
340
+ };
341
+ };
342
+ readonly DigestMultibase: {
343
+ readonly title: "DigestMultibase";
344
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
345
+ readonly type: "string";
346
+ readonly minLength: 16;
347
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
348
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
349
+ };
350
+ readonly QuestionResult: {
351
+ readonly title: "QuestionResult";
352
+ readonly description: "One question's totals. `choice`: selections per option. `ranking`: per option, how many ballots placed it at each position (index 0 = first). `score`: per option, the sum and the number of ballots that scored it. `text`: the answers, in board order, withheld (`withheld: true`) below the manifest's `textReleaseThreshold`. `abstained` counts ballots that left the question unanswered.";
353
+ readonly type: "object";
354
+ readonly additionalProperties: false;
355
+ readonly required: readonly ["question", "abstained"];
356
+ readonly properties: {
357
+ readonly question: {
358
+ readonly $ref: "#/$defs/Key";
359
+ };
360
+ readonly abstained: {
361
+ readonly type: "integer";
362
+ readonly minimum: 0;
363
+ };
364
+ readonly choice: {
365
+ readonly type: "object";
366
+ readonly propertyNames: {
367
+ readonly $ref: "#/$defs/Key";
368
+ };
369
+ readonly additionalProperties: {
370
+ readonly type: "integer";
371
+ readonly minimum: 0;
372
+ };
373
+ };
374
+ readonly ranking: {
375
+ readonly type: "object";
376
+ readonly propertyNames: {
377
+ readonly $ref: "#/$defs/Key";
378
+ };
379
+ readonly additionalProperties: {
380
+ readonly type: "array";
381
+ readonly items: {
382
+ readonly type: "integer";
383
+ readonly minimum: 0;
384
+ };
385
+ };
386
+ };
387
+ readonly score: {
388
+ readonly type: "object";
389
+ readonly propertyNames: {
390
+ readonly $ref: "#/$defs/Key";
391
+ };
392
+ readonly additionalProperties: {
393
+ readonly type: "object";
394
+ readonly additionalProperties: false;
395
+ readonly required: readonly ["sum", "count"];
396
+ readonly properties: {
397
+ readonly sum: {
398
+ readonly type: "integer";
399
+ };
400
+ readonly count: {
401
+ readonly type: "integer";
402
+ readonly minimum: 0;
403
+ };
404
+ };
405
+ };
406
+ };
407
+ readonly text: {
408
+ readonly type: "array";
409
+ readonly items: {
410
+ readonly type: "string";
411
+ readonly maxLength: 4096;
412
+ };
413
+ };
414
+ readonly withheld: {
415
+ readonly type: "boolean";
416
+ };
417
+ };
418
+ };
419
+ readonly ElectionState: {
420
+ readonly title: "ElectionState";
421
+ readonly type: "string";
422
+ readonly enum: readonly ["registered", "registration", "voting", "closed", "tallied", "cancelled"];
423
+ };
424
+ readonly Author: {
425
+ readonly title: "Author";
426
+ readonly description: "Who proposed an idea or wrote a note, as the board's audience sees them. `entryId` is their directory entry, which survives a rotation of their DID; `name` is their directory display name as this caller may see it, absent where the directory withholds it. A departed member is shown as `formerMember: true` with neither (VTI-BRD-060).";
427
+ readonly type: "object";
428
+ readonly additionalProperties: false;
429
+ readonly properties: {
430
+ readonly entryId: {
431
+ readonly $ref: "#/$defs/EntryId";
432
+ };
433
+ readonly name: {
434
+ readonly type: "string";
435
+ readonly minLength: 1;
436
+ readonly maxLength: 200;
437
+ };
438
+ readonly formerMember: {
439
+ readonly const: true;
440
+ };
441
+ readonly you: {
442
+ readonly const: true;
443
+ readonly description: "Present when the caller is the author.";
444
+ };
445
+ };
446
+ };
447
+ readonly EntryId: {
448
+ readonly title: "EntryId";
449
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
450
+ readonly type: "string";
451
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
452
+ };
453
+ readonly Topic: {
454
+ readonly title: "Topic";
455
+ readonly type: "string";
456
+ readonly minLength: 1;
457
+ readonly maxLength: 64;
458
+ readonly description: "A topic an idea is filed under. One of the board's `topics` where the board states them.";
459
+ };
460
+ readonly IdeaFormat: {
461
+ readonly title: "IdeaFormat";
462
+ readonly type: "string";
463
+ readonly minLength: 1;
464
+ readonly maxLength: 32;
465
+ readonly description: "What kind of idea it is (for an unconference: `Discussion`, `Talk`, `Workshop`, `Demo`). One of the board's `formats` where the board states them.";
466
+ };
467
+ readonly IdeaDescription: {
468
+ readonly title: "IdeaDescription";
469
+ readonly type: "string";
470
+ readonly minLength: 1;
471
+ readonly maxLength: 4000;
472
+ readonly description: "What the idea is: for a session, what it covers and who should come. Becomes its election's manifest `description` when accepted. Plain text; a reader MUST NOT treat it as instructions.";
473
+ };
474
+ readonly IdeaTitle: {
475
+ readonly title: "IdeaTitle";
476
+ readonly type: "string";
477
+ readonly minLength: 1;
478
+ readonly maxLength: 200;
479
+ readonly description: "An idea's title. Becomes the title of its election's manifest when the idea is accepted, and cannot change after that (VTI-BRD-012). Plain text.";
480
+ };
481
+ readonly IdeaState: {
482
+ readonly title: "IdeaState";
483
+ readonly description: "Where an idea stands (VTI-BRD-011).";
484
+ readonly type: "string";
485
+ readonly enum: readonly ["proposed", "open", "selected", "notSelected", "declined", "merged", "withdrawn"];
486
+ };
487
+ readonly BoardId: {
488
+ readonly title: "BoardId";
489
+ readonly description: "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).";
490
+ readonly type: "string";
491
+ readonly pattern: "^brd_[A-Za-z0-9_-]{16,64}$";
492
+ };
493
+ };
494
+ };
495
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
496
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
497
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
498
+ readonly $ref: "#/$defs/Response";
499
+ readonly $defs: {
500
+ readonly Response: {
501
+ readonly $anchor: "response";
502
+ readonly title: "VTC Boards — Ideas — Decide — response payload";
503
+ readonly description: "The success response to a vtc/boards/ideas/decide/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1#response.";
504
+ readonly type: "object";
505
+ readonly additionalProperties: false;
506
+ readonly required: readonly ["idea"];
507
+ readonly properties: {
508
+ readonly idea: {
509
+ readonly $ref: "#/$defs/Idea";
510
+ };
511
+ readonly ext: {
512
+ readonly $ref: "#/$defs/Ext";
513
+ };
514
+ };
515
+ };
516
+ readonly Ext: {
517
+ readonly title: "Ext";
518
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
519
+ readonly type: "object";
520
+ readonly minProperties: 1;
521
+ readonly additionalProperties: true;
522
+ readonly propertyNames: {
523
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
524
+ };
525
+ };
526
+ readonly Idea: {
527
+ readonly title: "Idea";
528
+ readonly description: "An idea as one caller may see it.";
529
+ readonly type: "object";
530
+ readonly additionalProperties: false;
531
+ readonly required: readonly ["ideaId", "boardId", "state", "title", "description", "proposer", "proposedAt", "noteCount"];
532
+ readonly properties: {
533
+ readonly ideaId: {
534
+ readonly $ref: "#/$defs/IdeaId";
535
+ };
536
+ readonly boardId: {
537
+ readonly $ref: "#/$defs/BoardId";
538
+ };
539
+ readonly state: {
540
+ readonly $ref: "#/$defs/IdeaState";
541
+ };
542
+ readonly title: {
543
+ readonly $ref: "#/$defs/IdeaTitle";
544
+ };
545
+ readonly description: {
546
+ readonly $ref: "#/$defs/IdeaDescription";
547
+ };
548
+ readonly format: {
549
+ readonly $ref: "#/$defs/IdeaFormat";
550
+ };
551
+ readonly topic: {
552
+ readonly $ref: "#/$defs/Topic";
553
+ };
554
+ readonly proposer: {
555
+ readonly $ref: "#/$defs/Author";
556
+ };
557
+ readonly proposedAt: {
558
+ readonly type: "string";
559
+ readonly format: "date-time";
560
+ };
561
+ readonly noteCount: {
562
+ readonly type: "integer";
563
+ readonly minimum: 0;
564
+ readonly description: "Notes on the idea the caller may read.";
565
+ };
566
+ readonly election: {
567
+ readonly $ref: "#/$defs/IdeaElection";
568
+ readonly description: "Present once an election was opened for the idea.";
569
+ };
570
+ readonly opening: {
571
+ readonly $ref: "#/$defs/IdeaOpening";
572
+ };
573
+ readonly decision: {
574
+ readonly $ref: "#/$defs/IdeaDecision";
575
+ readonly description: "Present in `declined`, `merged`, `selected` and `notSelected`.";
576
+ };
577
+ };
578
+ };
579
+ readonly IdeaDecision: {
580
+ readonly title: "IdeaDecision";
581
+ readonly description: "A facilitator's decision on an idea: declining or merging it (VTI-BRD-013), or selecting it or not (VTI-BRD-040). The deciding facilitator is not named to the audience.";
582
+ readonly type: "object";
583
+ readonly additionalProperties: false;
584
+ readonly required: readonly ["decidedAt"];
585
+ readonly properties: {
586
+ readonly decidedAt: {
587
+ readonly type: "string";
588
+ readonly format: "date-time";
589
+ };
590
+ readonly reason: {
591
+ readonly $ref: "#/$defs/Reason";
592
+ };
593
+ readonly mergedInto: {
594
+ readonly $ref: "#/$defs/IdeaId";
595
+ readonly description: "Present exactly when the idea is `merged`.";
596
+ };
597
+ readonly slotId: {
598
+ readonly $ref: "#/$defs/Key";
599
+ readonly description: "A `selected` idea's place in the board's timetable, where it has one.";
600
+ };
601
+ readonly departsFromRule: {
602
+ readonly type: "boolean";
603
+ readonly description: "`selected` or `notSelected` only: whether the facilitator said the decision departs from the board's `selectionRule` (VTI-BRD-041); `reason` then says why.";
604
+ };
605
+ readonly ownIdea: {
606
+ readonly const: true;
607
+ readonly description: "Present when a facilitator decided their own idea because no other facilitator existed (VTI-BRD-013).";
608
+ };
609
+ };
610
+ };
611
+ readonly IdeaId: {
612
+ readonly title: "IdeaId";
613
+ readonly description: "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.";
614
+ readonly type: "string";
615
+ readonly pattern: "^ida_[A-Za-z0-9_-]{16,64}$";
616
+ };
617
+ readonly Reason: {
618
+ readonly title: "Reason";
619
+ readonly type: "string";
620
+ readonly minLength: 1;
621
+ readonly maxLength: 500;
622
+ readonly description: "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text.";
623
+ };
624
+ readonly Key: {
625
+ readonly title: "Key";
626
+ readonly description: "A question or option key, unique within its manifest or question.";
627
+ readonly type: "string";
628
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
629
+ };
630
+ readonly IdeaOpening: {
631
+ readonly title: "IdeaOpening";
632
+ readonly description: "Shown to facilitators only: an accepted idea whose election the ballot box has not yet registered, so the idea is still `proposed` (VTI-BRD-031). `refusal` is the ballot box's or community's refusal of the last attempt, after which the idea is no longer being opened.";
633
+ readonly type: "object";
634
+ readonly additionalProperties: false;
635
+ readonly required: readonly ["electionId", "startedAt"];
636
+ readonly properties: {
637
+ readonly electionId: {
638
+ readonly $ref: "#/$defs/ElectionId";
639
+ };
640
+ readonly startedAt: {
641
+ readonly type: "string";
642
+ readonly format: "date-time";
643
+ readonly description: "When the facilitator accepted the idea.";
644
+ };
645
+ readonly refusal: {
646
+ readonly type: "object";
647
+ readonly additionalProperties: false;
648
+ readonly required: readonly ["code", "refusedAt"];
649
+ readonly properties: {
650
+ readonly code: {
651
+ readonly type: "string";
652
+ readonly minLength: 1;
653
+ readonly maxLength: 200;
654
+ };
655
+ readonly refusedAt: {
656
+ readonly type: "string";
657
+ readonly format: "date-time";
658
+ };
659
+ };
660
+ };
661
+ };
662
+ };
663
+ readonly ElectionId: {
664
+ readonly title: "ElectionId";
665
+ readonly description: "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.";
666
+ readonly type: "string";
667
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
668
+ };
669
+ readonly IdeaElection: {
670
+ readonly title: "IdeaElection";
671
+ readonly description: "An idea's election as a board shows it (VTI-BRD-033): never who took a ticket or cast a ballot.";
672
+ readonly type: "object";
673
+ readonly additionalProperties: false;
674
+ readonly required: readonly ["electionId", "state"];
675
+ readonly properties: {
676
+ readonly electionId: {
677
+ readonly $ref: "#/$defs/ElectionId";
678
+ };
679
+ readonly state: {
680
+ readonly $ref: "#/$defs/ElectionState";
681
+ };
682
+ readonly ballotsOnBoard: {
683
+ readonly type: "integer";
684
+ readonly minimum: 0;
685
+ readonly description: "The ballot box's latest board head's ballot count, where its board is public (VTI-VOT-052); absent otherwise. Counts ballots, not voters, where a later ballot replaces an earlier one.";
686
+ };
687
+ readonly boardHeadIssuedAt: {
688
+ readonly type: "string";
689
+ readonly format: "date-time";
690
+ readonly description: "When the head `ballotsOnBoard` was read from was issued.";
691
+ };
692
+ readonly result: {
693
+ readonly $ref: "#/$defs/ElectionResult";
694
+ readonly description: "Present once the election is tallied.";
695
+ };
696
+ readonly certified: {
697
+ readonly type: "boolean";
698
+ readonly description: "Present with `result`: whether the community certified it (VTI-VOT-071).";
699
+ };
700
+ };
701
+ };
702
+ readonly ElectionResult: {
703
+ readonly title: "ElectionResult";
704
+ readonly description: "An election's result, computable by anyone who can read its board from the board and the registration alone (VTI-VOT-070).";
705
+ readonly type: "object";
706
+ readonly additionalProperties: false;
707
+ readonly required: readonly ["electionId", "manifestDigest", "ballotsCounted", "questions", "head"];
708
+ readonly properties: {
709
+ readonly electionId: {
710
+ readonly $ref: "#/$defs/ElectionId";
711
+ };
712
+ readonly manifestDigest: {
713
+ readonly $ref: "#/$defs/DigestMultibase";
714
+ };
715
+ readonly ballotsCounted: {
716
+ readonly type: "integer";
717
+ readonly minimum: 0;
718
+ };
719
+ readonly questions: {
720
+ readonly type: "array";
721
+ readonly items: {
722
+ readonly $ref: "#/$defs/QuestionResult";
723
+ };
724
+ };
725
+ readonly head: {
726
+ readonly $ref: "#/$defs/BoardHead";
727
+ readonly description: "The head of the board as it stood at close: the result counts exactly its entries.";
728
+ };
729
+ };
730
+ };
731
+ readonly BoardHead: {
732
+ readonly title: "BoardHead";
733
+ readonly description: "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.";
734
+ readonly type: "object";
735
+ readonly additionalProperties: false;
736
+ readonly required: readonly ["electionId", "treeSize", "rootHash", "issuedAt"];
737
+ readonly properties: {
738
+ readonly electionId: {
739
+ readonly $ref: "#/$defs/ElectionId";
740
+ };
741
+ readonly treeSize: {
742
+ readonly type: "integer";
743
+ readonly minimum: 0;
744
+ };
745
+ readonly rootHash: {
746
+ readonly $ref: "#/$defs/DigestMultibase";
747
+ readonly description: "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash.";
748
+ };
749
+ readonly issuedAt: {
750
+ readonly type: "string";
751
+ readonly format: "date-time";
752
+ };
753
+ };
754
+ };
755
+ readonly DigestMultibase: {
756
+ readonly title: "DigestMultibase";
757
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
758
+ readonly type: "string";
759
+ readonly minLength: 16;
760
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
761
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
762
+ };
763
+ readonly QuestionResult: {
764
+ readonly title: "QuestionResult";
765
+ readonly description: "One question's totals. `choice`: selections per option. `ranking`: per option, how many ballots placed it at each position (index 0 = first). `score`: per option, the sum and the number of ballots that scored it. `text`: the answers, in board order, withheld (`withheld: true`) below the manifest's `textReleaseThreshold`. `abstained` counts ballots that left the question unanswered.";
766
+ readonly type: "object";
767
+ readonly additionalProperties: false;
768
+ readonly required: readonly ["question", "abstained"];
769
+ readonly properties: {
770
+ readonly question: {
771
+ readonly $ref: "#/$defs/Key";
772
+ };
773
+ readonly abstained: {
774
+ readonly type: "integer";
775
+ readonly minimum: 0;
776
+ };
777
+ readonly choice: {
778
+ readonly type: "object";
779
+ readonly propertyNames: {
780
+ readonly $ref: "#/$defs/Key";
781
+ };
782
+ readonly additionalProperties: {
783
+ readonly type: "integer";
784
+ readonly minimum: 0;
785
+ };
786
+ };
787
+ readonly ranking: {
788
+ readonly type: "object";
789
+ readonly propertyNames: {
790
+ readonly $ref: "#/$defs/Key";
791
+ };
792
+ readonly additionalProperties: {
793
+ readonly type: "array";
794
+ readonly items: {
795
+ readonly type: "integer";
796
+ readonly minimum: 0;
797
+ };
798
+ };
799
+ };
800
+ readonly score: {
801
+ readonly type: "object";
802
+ readonly propertyNames: {
803
+ readonly $ref: "#/$defs/Key";
804
+ };
805
+ readonly additionalProperties: {
806
+ readonly type: "object";
807
+ readonly additionalProperties: false;
808
+ readonly required: readonly ["sum", "count"];
809
+ readonly properties: {
810
+ readonly sum: {
811
+ readonly type: "integer";
812
+ };
813
+ readonly count: {
814
+ readonly type: "integer";
815
+ readonly minimum: 0;
816
+ };
817
+ };
818
+ };
819
+ };
820
+ readonly text: {
821
+ readonly type: "array";
822
+ readonly items: {
823
+ readonly type: "string";
824
+ readonly maxLength: 4096;
825
+ };
826
+ };
827
+ readonly withheld: {
828
+ readonly type: "boolean";
829
+ };
830
+ };
831
+ };
832
+ readonly ElectionState: {
833
+ readonly title: "ElectionState";
834
+ readonly type: "string";
835
+ readonly enum: readonly ["registered", "registration", "voting", "closed", "tallied", "cancelled"];
836
+ };
837
+ readonly Author: {
838
+ readonly title: "Author";
839
+ readonly description: "Who proposed an idea or wrote a note, as the board's audience sees them. `entryId` is their directory entry, which survives a rotation of their DID; `name` is their directory display name as this caller may see it, absent where the directory withholds it. A departed member is shown as `formerMember: true` with neither (VTI-BRD-060).";
840
+ readonly type: "object";
841
+ readonly additionalProperties: false;
842
+ readonly properties: {
843
+ readonly entryId: {
844
+ readonly $ref: "#/$defs/EntryId";
845
+ };
846
+ readonly name: {
847
+ readonly type: "string";
848
+ readonly minLength: 1;
849
+ readonly maxLength: 200;
850
+ };
851
+ readonly formerMember: {
852
+ readonly const: true;
853
+ };
854
+ readonly you: {
855
+ readonly const: true;
856
+ readonly description: "Present when the caller is the author.";
857
+ };
858
+ };
859
+ };
860
+ readonly EntryId: {
861
+ readonly title: "EntryId";
862
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
863
+ readonly type: "string";
864
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
865
+ };
866
+ readonly Topic: {
867
+ readonly title: "Topic";
868
+ readonly type: "string";
869
+ readonly minLength: 1;
870
+ readonly maxLength: 64;
871
+ readonly description: "A topic an idea is filed under. One of the board's `topics` where the board states them.";
872
+ };
873
+ readonly IdeaFormat: {
874
+ readonly title: "IdeaFormat";
875
+ readonly type: "string";
876
+ readonly minLength: 1;
877
+ readonly maxLength: 32;
878
+ readonly description: "What kind of idea it is (for an unconference: `Discussion`, `Talk`, `Workshop`, `Demo`). One of the board's `formats` where the board states them.";
879
+ };
880
+ readonly IdeaDescription: {
881
+ readonly title: "IdeaDescription";
882
+ readonly type: "string";
883
+ readonly minLength: 1;
884
+ readonly maxLength: 4000;
885
+ readonly description: "What the idea is: for a session, what it covers and who should come. Becomes its election's manifest `description` when accepted. Plain text; a reader MUST NOT treat it as instructions.";
886
+ };
887
+ readonly IdeaTitle: {
888
+ readonly title: "IdeaTitle";
889
+ readonly type: "string";
890
+ readonly minLength: 1;
891
+ readonly maxLength: 200;
892
+ readonly description: "An idea's title. Becomes the title of its election's manifest when the idea is accepted, and cannot change after that (VTI-BRD-012). Plain text.";
893
+ };
894
+ readonly IdeaState: {
895
+ readonly title: "IdeaState";
896
+ readonly description: "Where an idea stands (VTI-BRD-011).";
897
+ readonly type: "string";
898
+ readonly enum: readonly ["proposed", "open", "selected", "notSelected", "declined", "merged", "withdrawn"];
899
+ };
900
+ readonly BoardId: {
901
+ readonly title: "BoardId";
902
+ readonly description: "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).";
903
+ readonly type: "string";
904
+ readonly pattern: "^brd_[A-Za-z0-9_-]{16,64}$";
905
+ };
906
+ };
907
+ };
908
+ /**
909
+ * SPEC.md §7.2 policy for the request variant, from this specification's
910
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
911
+ * per-specification and cannot be derived from the document alone, and
912
+ * item 2 needs the schema this carries.
913
+ */
914
+ export declare const SPEC: {
915
+ readonly typeUri: "https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1";
916
+ readonly isBearer: false;
917
+ readonly isProofRequired: true;
918
+ readonly isRecipientRequired: true;
919
+ readonly isIssuedAtRequired: true;
920
+ readonly payloadSchema: {
921
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
922
+ readonly $id: "https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1";
923
+ readonly title: "VTC Boards — Ideas — Decide — payload";
924
+ readonly description: "A facilitator accepts a proposed idea — opening an election for it from the board's template — declines it, merges it into another, or moves a declined idea back to proposed. The outer document members are owned by the framework — SPEC §6.3.";
925
+ readonly type: "object";
926
+ readonly additionalProperties: false;
927
+ readonly required: readonly ["ideaId", "decision"];
928
+ readonly properties: {
929
+ readonly ideaId: {
930
+ readonly $ref: "#/$defs/IdeaId";
931
+ };
932
+ readonly decision: {
933
+ readonly type: "string";
934
+ readonly enum: readonly ["accept", "decline", "merge", "reopen"];
935
+ };
936
+ readonly reason: {
937
+ readonly $ref: "#/$defs/Reason";
938
+ };
939
+ readonly mergeInto: {
940
+ readonly $ref: "#/$defs/IdeaId";
941
+ readonly description: "`merge` only: the idea this one is folded into.";
942
+ };
943
+ readonly ext: {
944
+ readonly $ref: "#/$defs/Ext";
945
+ };
946
+ };
947
+ readonly $defs: {
948
+ readonly Response: {
949
+ readonly $anchor: "response";
950
+ readonly title: "VTC Boards — Ideas — Decide — response payload";
951
+ readonly description: "The success response to a vtc/boards/ideas/decide/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1#response.";
952
+ readonly type: "object";
953
+ readonly additionalProperties: false;
954
+ readonly required: readonly ["idea"];
955
+ readonly properties: {
956
+ readonly idea: {
957
+ readonly $ref: "#/$defs/Idea";
958
+ };
959
+ readonly ext: {
960
+ readonly $ref: "#/$defs/Ext";
961
+ };
962
+ };
963
+ };
964
+ readonly Ext: {
965
+ readonly title: "Ext";
966
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
967
+ readonly type: "object";
968
+ readonly minProperties: 1;
969
+ readonly additionalProperties: true;
970
+ readonly propertyNames: {
971
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
972
+ };
973
+ };
974
+ readonly Idea: {
975
+ readonly title: "Idea";
976
+ readonly description: "An idea as one caller may see it.";
977
+ readonly type: "object";
978
+ readonly additionalProperties: false;
979
+ readonly required: readonly ["ideaId", "boardId", "state", "title", "description", "proposer", "proposedAt", "noteCount"];
980
+ readonly properties: {
981
+ readonly ideaId: {
982
+ readonly $ref: "#/$defs/IdeaId";
983
+ };
984
+ readonly boardId: {
985
+ readonly $ref: "#/$defs/BoardId";
986
+ };
987
+ readonly state: {
988
+ readonly $ref: "#/$defs/IdeaState";
989
+ };
990
+ readonly title: {
991
+ readonly $ref: "#/$defs/IdeaTitle";
992
+ };
993
+ readonly description: {
994
+ readonly $ref: "#/$defs/IdeaDescription";
995
+ };
996
+ readonly format: {
997
+ readonly $ref: "#/$defs/IdeaFormat";
998
+ };
999
+ readonly topic: {
1000
+ readonly $ref: "#/$defs/Topic";
1001
+ };
1002
+ readonly proposer: {
1003
+ readonly $ref: "#/$defs/Author";
1004
+ };
1005
+ readonly proposedAt: {
1006
+ readonly type: "string";
1007
+ readonly format: "date-time";
1008
+ };
1009
+ readonly noteCount: {
1010
+ readonly type: "integer";
1011
+ readonly minimum: 0;
1012
+ readonly description: "Notes on the idea the caller may read.";
1013
+ };
1014
+ readonly election: {
1015
+ readonly $ref: "#/$defs/IdeaElection";
1016
+ readonly description: "Present once an election was opened for the idea.";
1017
+ };
1018
+ readonly opening: {
1019
+ readonly $ref: "#/$defs/IdeaOpening";
1020
+ };
1021
+ readonly decision: {
1022
+ readonly $ref: "#/$defs/IdeaDecision";
1023
+ readonly description: "Present in `declined`, `merged`, `selected` and `notSelected`.";
1024
+ };
1025
+ };
1026
+ };
1027
+ readonly IdeaDecision: {
1028
+ readonly title: "IdeaDecision";
1029
+ readonly description: "A facilitator's decision on an idea: declining or merging it (VTI-BRD-013), or selecting it or not (VTI-BRD-040). The deciding facilitator is not named to the audience.";
1030
+ readonly type: "object";
1031
+ readonly additionalProperties: false;
1032
+ readonly required: readonly ["decidedAt"];
1033
+ readonly properties: {
1034
+ readonly decidedAt: {
1035
+ readonly type: "string";
1036
+ readonly format: "date-time";
1037
+ };
1038
+ readonly reason: {
1039
+ readonly $ref: "#/$defs/Reason";
1040
+ };
1041
+ readonly mergedInto: {
1042
+ readonly $ref: "#/$defs/IdeaId";
1043
+ readonly description: "Present exactly when the idea is `merged`.";
1044
+ };
1045
+ readonly slotId: {
1046
+ readonly $ref: "#/$defs/Key";
1047
+ readonly description: "A `selected` idea's place in the board's timetable, where it has one.";
1048
+ };
1049
+ readonly departsFromRule: {
1050
+ readonly type: "boolean";
1051
+ readonly description: "`selected` or `notSelected` only: whether the facilitator said the decision departs from the board's `selectionRule` (VTI-BRD-041); `reason` then says why.";
1052
+ };
1053
+ readonly ownIdea: {
1054
+ readonly const: true;
1055
+ readonly description: "Present when a facilitator decided their own idea because no other facilitator existed (VTI-BRD-013).";
1056
+ };
1057
+ };
1058
+ };
1059
+ readonly IdeaId: {
1060
+ readonly title: "IdeaId";
1061
+ readonly description: "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.";
1062
+ readonly type: "string";
1063
+ readonly pattern: "^ida_[A-Za-z0-9_-]{16,64}$";
1064
+ };
1065
+ readonly Reason: {
1066
+ readonly title: "Reason";
1067
+ readonly type: "string";
1068
+ readonly minLength: 1;
1069
+ readonly maxLength: 500;
1070
+ readonly description: "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text.";
1071
+ };
1072
+ readonly Key: {
1073
+ readonly title: "Key";
1074
+ readonly description: "A question or option key, unique within its manifest or question.";
1075
+ readonly type: "string";
1076
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
1077
+ };
1078
+ readonly IdeaOpening: {
1079
+ readonly title: "IdeaOpening";
1080
+ readonly description: "Shown to facilitators only: an accepted idea whose election the ballot box has not yet registered, so the idea is still `proposed` (VTI-BRD-031). `refusal` is the ballot box's or community's refusal of the last attempt, after which the idea is no longer being opened.";
1081
+ readonly type: "object";
1082
+ readonly additionalProperties: false;
1083
+ readonly required: readonly ["electionId", "startedAt"];
1084
+ readonly properties: {
1085
+ readonly electionId: {
1086
+ readonly $ref: "#/$defs/ElectionId";
1087
+ };
1088
+ readonly startedAt: {
1089
+ readonly type: "string";
1090
+ readonly format: "date-time";
1091
+ readonly description: "When the facilitator accepted the idea.";
1092
+ };
1093
+ readonly refusal: {
1094
+ readonly type: "object";
1095
+ readonly additionalProperties: false;
1096
+ readonly required: readonly ["code", "refusedAt"];
1097
+ readonly properties: {
1098
+ readonly code: {
1099
+ readonly type: "string";
1100
+ readonly minLength: 1;
1101
+ readonly maxLength: 200;
1102
+ };
1103
+ readonly refusedAt: {
1104
+ readonly type: "string";
1105
+ readonly format: "date-time";
1106
+ };
1107
+ };
1108
+ };
1109
+ };
1110
+ };
1111
+ readonly ElectionId: {
1112
+ readonly title: "ElectionId";
1113
+ readonly description: "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.";
1114
+ readonly type: "string";
1115
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
1116
+ };
1117
+ readonly IdeaElection: {
1118
+ readonly title: "IdeaElection";
1119
+ readonly description: "An idea's election as a board shows it (VTI-BRD-033): never who took a ticket or cast a ballot.";
1120
+ readonly type: "object";
1121
+ readonly additionalProperties: false;
1122
+ readonly required: readonly ["electionId", "state"];
1123
+ readonly properties: {
1124
+ readonly electionId: {
1125
+ readonly $ref: "#/$defs/ElectionId";
1126
+ };
1127
+ readonly state: {
1128
+ readonly $ref: "#/$defs/ElectionState";
1129
+ };
1130
+ readonly ballotsOnBoard: {
1131
+ readonly type: "integer";
1132
+ readonly minimum: 0;
1133
+ readonly description: "The ballot box's latest board head's ballot count, where its board is public (VTI-VOT-052); absent otherwise. Counts ballots, not voters, where a later ballot replaces an earlier one.";
1134
+ };
1135
+ readonly boardHeadIssuedAt: {
1136
+ readonly type: "string";
1137
+ readonly format: "date-time";
1138
+ readonly description: "When the head `ballotsOnBoard` was read from was issued.";
1139
+ };
1140
+ readonly result: {
1141
+ readonly $ref: "#/$defs/ElectionResult";
1142
+ readonly description: "Present once the election is tallied.";
1143
+ };
1144
+ readonly certified: {
1145
+ readonly type: "boolean";
1146
+ readonly description: "Present with `result`: whether the community certified it (VTI-VOT-071).";
1147
+ };
1148
+ };
1149
+ };
1150
+ readonly ElectionResult: {
1151
+ readonly title: "ElectionResult";
1152
+ readonly description: "An election's result, computable by anyone who can read its board from the board and the registration alone (VTI-VOT-070).";
1153
+ readonly type: "object";
1154
+ readonly additionalProperties: false;
1155
+ readonly required: readonly ["electionId", "manifestDigest", "ballotsCounted", "questions", "head"];
1156
+ readonly properties: {
1157
+ readonly electionId: {
1158
+ readonly $ref: "#/$defs/ElectionId";
1159
+ };
1160
+ readonly manifestDigest: {
1161
+ readonly $ref: "#/$defs/DigestMultibase";
1162
+ };
1163
+ readonly ballotsCounted: {
1164
+ readonly type: "integer";
1165
+ readonly minimum: 0;
1166
+ };
1167
+ readonly questions: {
1168
+ readonly type: "array";
1169
+ readonly items: {
1170
+ readonly $ref: "#/$defs/QuestionResult";
1171
+ };
1172
+ };
1173
+ readonly head: {
1174
+ readonly $ref: "#/$defs/BoardHead";
1175
+ readonly description: "The head of the board as it stood at close: the result counts exactly its entries.";
1176
+ };
1177
+ };
1178
+ };
1179
+ readonly BoardHead: {
1180
+ readonly title: "BoardHead";
1181
+ readonly description: "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.";
1182
+ readonly type: "object";
1183
+ readonly additionalProperties: false;
1184
+ readonly required: readonly ["electionId", "treeSize", "rootHash", "issuedAt"];
1185
+ readonly properties: {
1186
+ readonly electionId: {
1187
+ readonly $ref: "#/$defs/ElectionId";
1188
+ };
1189
+ readonly treeSize: {
1190
+ readonly type: "integer";
1191
+ readonly minimum: 0;
1192
+ };
1193
+ readonly rootHash: {
1194
+ readonly $ref: "#/$defs/DigestMultibase";
1195
+ readonly description: "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash.";
1196
+ };
1197
+ readonly issuedAt: {
1198
+ readonly type: "string";
1199
+ readonly format: "date-time";
1200
+ };
1201
+ };
1202
+ };
1203
+ readonly DigestMultibase: {
1204
+ readonly title: "DigestMultibase";
1205
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
1206
+ readonly type: "string";
1207
+ readonly minLength: 16;
1208
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
1209
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
1210
+ };
1211
+ readonly QuestionResult: {
1212
+ readonly title: "QuestionResult";
1213
+ readonly description: "One question's totals. `choice`: selections per option. `ranking`: per option, how many ballots placed it at each position (index 0 = first). `score`: per option, the sum and the number of ballots that scored it. `text`: the answers, in board order, withheld (`withheld: true`) below the manifest's `textReleaseThreshold`. `abstained` counts ballots that left the question unanswered.";
1214
+ readonly type: "object";
1215
+ readonly additionalProperties: false;
1216
+ readonly required: readonly ["question", "abstained"];
1217
+ readonly properties: {
1218
+ readonly question: {
1219
+ readonly $ref: "#/$defs/Key";
1220
+ };
1221
+ readonly abstained: {
1222
+ readonly type: "integer";
1223
+ readonly minimum: 0;
1224
+ };
1225
+ readonly choice: {
1226
+ readonly type: "object";
1227
+ readonly propertyNames: {
1228
+ readonly $ref: "#/$defs/Key";
1229
+ };
1230
+ readonly additionalProperties: {
1231
+ readonly type: "integer";
1232
+ readonly minimum: 0;
1233
+ };
1234
+ };
1235
+ readonly ranking: {
1236
+ readonly type: "object";
1237
+ readonly propertyNames: {
1238
+ readonly $ref: "#/$defs/Key";
1239
+ };
1240
+ readonly additionalProperties: {
1241
+ readonly type: "array";
1242
+ readonly items: {
1243
+ readonly type: "integer";
1244
+ readonly minimum: 0;
1245
+ };
1246
+ };
1247
+ };
1248
+ readonly score: {
1249
+ readonly type: "object";
1250
+ readonly propertyNames: {
1251
+ readonly $ref: "#/$defs/Key";
1252
+ };
1253
+ readonly additionalProperties: {
1254
+ readonly type: "object";
1255
+ readonly additionalProperties: false;
1256
+ readonly required: readonly ["sum", "count"];
1257
+ readonly properties: {
1258
+ readonly sum: {
1259
+ readonly type: "integer";
1260
+ };
1261
+ readonly count: {
1262
+ readonly type: "integer";
1263
+ readonly minimum: 0;
1264
+ };
1265
+ };
1266
+ };
1267
+ };
1268
+ readonly text: {
1269
+ readonly type: "array";
1270
+ readonly items: {
1271
+ readonly type: "string";
1272
+ readonly maxLength: 4096;
1273
+ };
1274
+ };
1275
+ readonly withheld: {
1276
+ readonly type: "boolean";
1277
+ };
1278
+ };
1279
+ };
1280
+ readonly ElectionState: {
1281
+ readonly title: "ElectionState";
1282
+ readonly type: "string";
1283
+ readonly enum: readonly ["registered", "registration", "voting", "closed", "tallied", "cancelled"];
1284
+ };
1285
+ readonly Author: {
1286
+ readonly title: "Author";
1287
+ readonly description: "Who proposed an idea or wrote a note, as the board's audience sees them. `entryId` is their directory entry, which survives a rotation of their DID; `name` is their directory display name as this caller may see it, absent where the directory withholds it. A departed member is shown as `formerMember: true` with neither (VTI-BRD-060).";
1288
+ readonly type: "object";
1289
+ readonly additionalProperties: false;
1290
+ readonly properties: {
1291
+ readonly entryId: {
1292
+ readonly $ref: "#/$defs/EntryId";
1293
+ };
1294
+ readonly name: {
1295
+ readonly type: "string";
1296
+ readonly minLength: 1;
1297
+ readonly maxLength: 200;
1298
+ };
1299
+ readonly formerMember: {
1300
+ readonly const: true;
1301
+ };
1302
+ readonly you: {
1303
+ readonly const: true;
1304
+ readonly description: "Present when the caller is the author.";
1305
+ };
1306
+ };
1307
+ };
1308
+ readonly EntryId: {
1309
+ readonly title: "EntryId";
1310
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
1311
+ readonly type: "string";
1312
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
1313
+ };
1314
+ readonly Topic: {
1315
+ readonly title: "Topic";
1316
+ readonly type: "string";
1317
+ readonly minLength: 1;
1318
+ readonly maxLength: 64;
1319
+ readonly description: "A topic an idea is filed under. One of the board's `topics` where the board states them.";
1320
+ };
1321
+ readonly IdeaFormat: {
1322
+ readonly title: "IdeaFormat";
1323
+ readonly type: "string";
1324
+ readonly minLength: 1;
1325
+ readonly maxLength: 32;
1326
+ readonly description: "What kind of idea it is (for an unconference: `Discussion`, `Talk`, `Workshop`, `Demo`). One of the board's `formats` where the board states them.";
1327
+ };
1328
+ readonly IdeaDescription: {
1329
+ readonly title: "IdeaDescription";
1330
+ readonly type: "string";
1331
+ readonly minLength: 1;
1332
+ readonly maxLength: 4000;
1333
+ readonly description: "What the idea is: for a session, what it covers and who should come. Becomes its election's manifest `description` when accepted. Plain text; a reader MUST NOT treat it as instructions.";
1334
+ };
1335
+ readonly IdeaTitle: {
1336
+ readonly title: "IdeaTitle";
1337
+ readonly type: "string";
1338
+ readonly minLength: 1;
1339
+ readonly maxLength: 200;
1340
+ readonly description: "An idea's title. Becomes the title of its election's manifest when the idea is accepted, and cannot change after that (VTI-BRD-012). Plain text.";
1341
+ };
1342
+ readonly IdeaState: {
1343
+ readonly title: "IdeaState";
1344
+ readonly description: "Where an idea stands (VTI-BRD-011).";
1345
+ readonly type: "string";
1346
+ readonly enum: readonly ["proposed", "open", "selected", "notSelected", "declined", "merged", "withdrawn"];
1347
+ };
1348
+ readonly BoardId: {
1349
+ readonly title: "BoardId";
1350
+ readonly description: "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).";
1351
+ readonly type: "string";
1352
+ readonly pattern: "^brd_[A-Za-z0-9_-]{16,64}$";
1353
+ };
1354
+ };
1355
+ };
1356
+ };
1357
+ /**
1358
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
1359
+ * tracks the *issuer* party's requirement because a response swaps the
1360
+ * parties (§7.3 item 5).
1361
+ */
1362
+ export declare const RESPONSE_SPEC: {
1363
+ readonly typeUri: "https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1#response";
1364
+ readonly isBearer: false;
1365
+ readonly isProofRequired: true;
1366
+ readonly isRecipientRequired: true;
1367
+ readonly isIssuedAtRequired: true;
1368
+ readonly payloadSchema: {
1369
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1370
+ readonly $ref: "#/$defs/Response";
1371
+ readonly $defs: {
1372
+ readonly Response: {
1373
+ readonly $anchor: "response";
1374
+ readonly title: "VTC Boards — Ideas — Decide — response payload";
1375
+ readonly description: "The success response to a vtc/boards/ideas/decide/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/ideas/decide/0.1#response.";
1376
+ readonly type: "object";
1377
+ readonly additionalProperties: false;
1378
+ readonly required: readonly ["idea"];
1379
+ readonly properties: {
1380
+ readonly idea: {
1381
+ readonly $ref: "#/$defs/Idea";
1382
+ };
1383
+ readonly ext: {
1384
+ readonly $ref: "#/$defs/Ext";
1385
+ };
1386
+ };
1387
+ };
1388
+ readonly Ext: {
1389
+ readonly title: "Ext";
1390
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
1391
+ readonly type: "object";
1392
+ readonly minProperties: 1;
1393
+ readonly additionalProperties: true;
1394
+ readonly propertyNames: {
1395
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
1396
+ };
1397
+ };
1398
+ readonly Idea: {
1399
+ readonly title: "Idea";
1400
+ readonly description: "An idea as one caller may see it.";
1401
+ readonly type: "object";
1402
+ readonly additionalProperties: false;
1403
+ readonly required: readonly ["ideaId", "boardId", "state", "title", "description", "proposer", "proposedAt", "noteCount"];
1404
+ readonly properties: {
1405
+ readonly ideaId: {
1406
+ readonly $ref: "#/$defs/IdeaId";
1407
+ };
1408
+ readonly boardId: {
1409
+ readonly $ref: "#/$defs/BoardId";
1410
+ };
1411
+ readonly state: {
1412
+ readonly $ref: "#/$defs/IdeaState";
1413
+ };
1414
+ readonly title: {
1415
+ readonly $ref: "#/$defs/IdeaTitle";
1416
+ };
1417
+ readonly description: {
1418
+ readonly $ref: "#/$defs/IdeaDescription";
1419
+ };
1420
+ readonly format: {
1421
+ readonly $ref: "#/$defs/IdeaFormat";
1422
+ };
1423
+ readonly topic: {
1424
+ readonly $ref: "#/$defs/Topic";
1425
+ };
1426
+ readonly proposer: {
1427
+ readonly $ref: "#/$defs/Author";
1428
+ };
1429
+ readonly proposedAt: {
1430
+ readonly type: "string";
1431
+ readonly format: "date-time";
1432
+ };
1433
+ readonly noteCount: {
1434
+ readonly type: "integer";
1435
+ readonly minimum: 0;
1436
+ readonly description: "Notes on the idea the caller may read.";
1437
+ };
1438
+ readonly election: {
1439
+ readonly $ref: "#/$defs/IdeaElection";
1440
+ readonly description: "Present once an election was opened for the idea.";
1441
+ };
1442
+ readonly opening: {
1443
+ readonly $ref: "#/$defs/IdeaOpening";
1444
+ };
1445
+ readonly decision: {
1446
+ readonly $ref: "#/$defs/IdeaDecision";
1447
+ readonly description: "Present in `declined`, `merged`, `selected` and `notSelected`.";
1448
+ };
1449
+ };
1450
+ };
1451
+ readonly IdeaDecision: {
1452
+ readonly title: "IdeaDecision";
1453
+ readonly description: "A facilitator's decision on an idea: declining or merging it (VTI-BRD-013), or selecting it or not (VTI-BRD-040). The deciding facilitator is not named to the audience.";
1454
+ readonly type: "object";
1455
+ readonly additionalProperties: false;
1456
+ readonly required: readonly ["decidedAt"];
1457
+ readonly properties: {
1458
+ readonly decidedAt: {
1459
+ readonly type: "string";
1460
+ readonly format: "date-time";
1461
+ };
1462
+ readonly reason: {
1463
+ readonly $ref: "#/$defs/Reason";
1464
+ };
1465
+ readonly mergedInto: {
1466
+ readonly $ref: "#/$defs/IdeaId";
1467
+ readonly description: "Present exactly when the idea is `merged`.";
1468
+ };
1469
+ readonly slotId: {
1470
+ readonly $ref: "#/$defs/Key";
1471
+ readonly description: "A `selected` idea's place in the board's timetable, where it has one.";
1472
+ };
1473
+ readonly departsFromRule: {
1474
+ readonly type: "boolean";
1475
+ readonly description: "`selected` or `notSelected` only: whether the facilitator said the decision departs from the board's `selectionRule` (VTI-BRD-041); `reason` then says why.";
1476
+ };
1477
+ readonly ownIdea: {
1478
+ readonly const: true;
1479
+ readonly description: "Present when a facilitator decided their own idea because no other facilitator existed (VTI-BRD-013).";
1480
+ };
1481
+ };
1482
+ };
1483
+ readonly IdeaId: {
1484
+ readonly title: "IdeaId";
1485
+ readonly description: "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.";
1486
+ readonly type: "string";
1487
+ readonly pattern: "^ida_[A-Za-z0-9_-]{16,64}$";
1488
+ };
1489
+ readonly Reason: {
1490
+ readonly title: "Reason";
1491
+ readonly type: "string";
1492
+ readonly minLength: 1;
1493
+ readonly maxLength: 500;
1494
+ readonly description: "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text.";
1495
+ };
1496
+ readonly Key: {
1497
+ readonly title: "Key";
1498
+ readonly description: "A question or option key, unique within its manifest or question.";
1499
+ readonly type: "string";
1500
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
1501
+ };
1502
+ readonly IdeaOpening: {
1503
+ readonly title: "IdeaOpening";
1504
+ readonly description: "Shown to facilitators only: an accepted idea whose election the ballot box has not yet registered, so the idea is still `proposed` (VTI-BRD-031). `refusal` is the ballot box's or community's refusal of the last attempt, after which the idea is no longer being opened.";
1505
+ readonly type: "object";
1506
+ readonly additionalProperties: false;
1507
+ readonly required: readonly ["electionId", "startedAt"];
1508
+ readonly properties: {
1509
+ readonly electionId: {
1510
+ readonly $ref: "#/$defs/ElectionId";
1511
+ };
1512
+ readonly startedAt: {
1513
+ readonly type: "string";
1514
+ readonly format: "date-time";
1515
+ readonly description: "When the facilitator accepted the idea.";
1516
+ };
1517
+ readonly refusal: {
1518
+ readonly type: "object";
1519
+ readonly additionalProperties: false;
1520
+ readonly required: readonly ["code", "refusedAt"];
1521
+ readonly properties: {
1522
+ readonly code: {
1523
+ readonly type: "string";
1524
+ readonly minLength: 1;
1525
+ readonly maxLength: 200;
1526
+ };
1527
+ readonly refusedAt: {
1528
+ readonly type: "string";
1529
+ readonly format: "date-time";
1530
+ };
1531
+ };
1532
+ };
1533
+ };
1534
+ };
1535
+ readonly ElectionId: {
1536
+ readonly title: "ElectionId";
1537
+ readonly description: "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.";
1538
+ readonly type: "string";
1539
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
1540
+ };
1541
+ readonly IdeaElection: {
1542
+ readonly title: "IdeaElection";
1543
+ readonly description: "An idea's election as a board shows it (VTI-BRD-033): never who took a ticket or cast a ballot.";
1544
+ readonly type: "object";
1545
+ readonly additionalProperties: false;
1546
+ readonly required: readonly ["electionId", "state"];
1547
+ readonly properties: {
1548
+ readonly electionId: {
1549
+ readonly $ref: "#/$defs/ElectionId";
1550
+ };
1551
+ readonly state: {
1552
+ readonly $ref: "#/$defs/ElectionState";
1553
+ };
1554
+ readonly ballotsOnBoard: {
1555
+ readonly type: "integer";
1556
+ readonly minimum: 0;
1557
+ readonly description: "The ballot box's latest board head's ballot count, where its board is public (VTI-VOT-052); absent otherwise. Counts ballots, not voters, where a later ballot replaces an earlier one.";
1558
+ };
1559
+ readonly boardHeadIssuedAt: {
1560
+ readonly type: "string";
1561
+ readonly format: "date-time";
1562
+ readonly description: "When the head `ballotsOnBoard` was read from was issued.";
1563
+ };
1564
+ readonly result: {
1565
+ readonly $ref: "#/$defs/ElectionResult";
1566
+ readonly description: "Present once the election is tallied.";
1567
+ };
1568
+ readonly certified: {
1569
+ readonly type: "boolean";
1570
+ readonly description: "Present with `result`: whether the community certified it (VTI-VOT-071).";
1571
+ };
1572
+ };
1573
+ };
1574
+ readonly ElectionResult: {
1575
+ readonly title: "ElectionResult";
1576
+ readonly description: "An election's result, computable by anyone who can read its board from the board and the registration alone (VTI-VOT-070).";
1577
+ readonly type: "object";
1578
+ readonly additionalProperties: false;
1579
+ readonly required: readonly ["electionId", "manifestDigest", "ballotsCounted", "questions", "head"];
1580
+ readonly properties: {
1581
+ readonly electionId: {
1582
+ readonly $ref: "#/$defs/ElectionId";
1583
+ };
1584
+ readonly manifestDigest: {
1585
+ readonly $ref: "#/$defs/DigestMultibase";
1586
+ };
1587
+ readonly ballotsCounted: {
1588
+ readonly type: "integer";
1589
+ readonly minimum: 0;
1590
+ };
1591
+ readonly questions: {
1592
+ readonly type: "array";
1593
+ readonly items: {
1594
+ readonly $ref: "#/$defs/QuestionResult";
1595
+ };
1596
+ };
1597
+ readonly head: {
1598
+ readonly $ref: "#/$defs/BoardHead";
1599
+ readonly description: "The head of the board as it stood at close: the result counts exactly its entries.";
1600
+ };
1601
+ };
1602
+ };
1603
+ readonly BoardHead: {
1604
+ readonly title: "BoardHead";
1605
+ readonly description: "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.";
1606
+ readonly type: "object";
1607
+ readonly additionalProperties: false;
1608
+ readonly required: readonly ["electionId", "treeSize", "rootHash", "issuedAt"];
1609
+ readonly properties: {
1610
+ readonly electionId: {
1611
+ readonly $ref: "#/$defs/ElectionId";
1612
+ };
1613
+ readonly treeSize: {
1614
+ readonly type: "integer";
1615
+ readonly minimum: 0;
1616
+ };
1617
+ readonly rootHash: {
1618
+ readonly $ref: "#/$defs/DigestMultibase";
1619
+ readonly description: "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash.";
1620
+ };
1621
+ readonly issuedAt: {
1622
+ readonly type: "string";
1623
+ readonly format: "date-time";
1624
+ };
1625
+ };
1626
+ };
1627
+ readonly DigestMultibase: {
1628
+ readonly title: "DigestMultibase";
1629
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
1630
+ readonly type: "string";
1631
+ readonly minLength: 16;
1632
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
1633
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
1634
+ };
1635
+ readonly QuestionResult: {
1636
+ readonly title: "QuestionResult";
1637
+ readonly description: "One question's totals. `choice`: selections per option. `ranking`: per option, how many ballots placed it at each position (index 0 = first). `score`: per option, the sum and the number of ballots that scored it. `text`: the answers, in board order, withheld (`withheld: true`) below the manifest's `textReleaseThreshold`. `abstained` counts ballots that left the question unanswered.";
1638
+ readonly type: "object";
1639
+ readonly additionalProperties: false;
1640
+ readonly required: readonly ["question", "abstained"];
1641
+ readonly properties: {
1642
+ readonly question: {
1643
+ readonly $ref: "#/$defs/Key";
1644
+ };
1645
+ readonly abstained: {
1646
+ readonly type: "integer";
1647
+ readonly minimum: 0;
1648
+ };
1649
+ readonly choice: {
1650
+ readonly type: "object";
1651
+ readonly propertyNames: {
1652
+ readonly $ref: "#/$defs/Key";
1653
+ };
1654
+ readonly additionalProperties: {
1655
+ readonly type: "integer";
1656
+ readonly minimum: 0;
1657
+ };
1658
+ };
1659
+ readonly ranking: {
1660
+ readonly type: "object";
1661
+ readonly propertyNames: {
1662
+ readonly $ref: "#/$defs/Key";
1663
+ };
1664
+ readonly additionalProperties: {
1665
+ readonly type: "array";
1666
+ readonly items: {
1667
+ readonly type: "integer";
1668
+ readonly minimum: 0;
1669
+ };
1670
+ };
1671
+ };
1672
+ readonly score: {
1673
+ readonly type: "object";
1674
+ readonly propertyNames: {
1675
+ readonly $ref: "#/$defs/Key";
1676
+ };
1677
+ readonly additionalProperties: {
1678
+ readonly type: "object";
1679
+ readonly additionalProperties: false;
1680
+ readonly required: readonly ["sum", "count"];
1681
+ readonly properties: {
1682
+ readonly sum: {
1683
+ readonly type: "integer";
1684
+ };
1685
+ readonly count: {
1686
+ readonly type: "integer";
1687
+ readonly minimum: 0;
1688
+ };
1689
+ };
1690
+ };
1691
+ };
1692
+ readonly text: {
1693
+ readonly type: "array";
1694
+ readonly items: {
1695
+ readonly type: "string";
1696
+ readonly maxLength: 4096;
1697
+ };
1698
+ };
1699
+ readonly withheld: {
1700
+ readonly type: "boolean";
1701
+ };
1702
+ };
1703
+ };
1704
+ readonly ElectionState: {
1705
+ readonly title: "ElectionState";
1706
+ readonly type: "string";
1707
+ readonly enum: readonly ["registered", "registration", "voting", "closed", "tallied", "cancelled"];
1708
+ };
1709
+ readonly Author: {
1710
+ readonly title: "Author";
1711
+ readonly description: "Who proposed an idea or wrote a note, as the board's audience sees them. `entryId` is their directory entry, which survives a rotation of their DID; `name` is their directory display name as this caller may see it, absent where the directory withholds it. A departed member is shown as `formerMember: true` with neither (VTI-BRD-060).";
1712
+ readonly type: "object";
1713
+ readonly additionalProperties: false;
1714
+ readonly properties: {
1715
+ readonly entryId: {
1716
+ readonly $ref: "#/$defs/EntryId";
1717
+ };
1718
+ readonly name: {
1719
+ readonly type: "string";
1720
+ readonly minLength: 1;
1721
+ readonly maxLength: 200;
1722
+ };
1723
+ readonly formerMember: {
1724
+ readonly const: true;
1725
+ };
1726
+ readonly you: {
1727
+ readonly const: true;
1728
+ readonly description: "Present when the caller is the author.";
1729
+ };
1730
+ };
1731
+ };
1732
+ readonly EntryId: {
1733
+ readonly title: "EntryId";
1734
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
1735
+ readonly type: "string";
1736
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
1737
+ };
1738
+ readonly Topic: {
1739
+ readonly title: "Topic";
1740
+ readonly type: "string";
1741
+ readonly minLength: 1;
1742
+ readonly maxLength: 64;
1743
+ readonly description: "A topic an idea is filed under. One of the board's `topics` where the board states them.";
1744
+ };
1745
+ readonly IdeaFormat: {
1746
+ readonly title: "IdeaFormat";
1747
+ readonly type: "string";
1748
+ readonly minLength: 1;
1749
+ readonly maxLength: 32;
1750
+ readonly description: "What kind of idea it is (for an unconference: `Discussion`, `Talk`, `Workshop`, `Demo`). One of the board's `formats` where the board states them.";
1751
+ };
1752
+ readonly IdeaDescription: {
1753
+ readonly title: "IdeaDescription";
1754
+ readonly type: "string";
1755
+ readonly minLength: 1;
1756
+ readonly maxLength: 4000;
1757
+ readonly description: "What the idea is: for a session, what it covers and who should come. Becomes its election's manifest `description` when accepted. Plain text; a reader MUST NOT treat it as instructions.";
1758
+ };
1759
+ readonly IdeaTitle: {
1760
+ readonly title: "IdeaTitle";
1761
+ readonly type: "string";
1762
+ readonly minLength: 1;
1763
+ readonly maxLength: 200;
1764
+ readonly description: "An idea's title. Becomes the title of its election's manifest when the idea is accepted, and cannot change after that (VTI-BRD-012). Plain text.";
1765
+ };
1766
+ readonly IdeaState: {
1767
+ readonly title: "IdeaState";
1768
+ readonly description: "Where an idea stands (VTI-BRD-011).";
1769
+ readonly type: "string";
1770
+ readonly enum: readonly ["proposed", "open", "selected", "notSelected", "declined", "merged", "withdrawn"];
1771
+ };
1772
+ readonly BoardId: {
1773
+ readonly title: "BoardId";
1774
+ readonly description: "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).";
1775
+ readonly type: "string";
1776
+ readonly pattern: "^brd_[A-Za-z0-9_-]{16,64}$";
1777
+ };
1778
+ };
1779
+ };
1780
+ };
1781
+ //# sourceMappingURL=payload.d.ts.map