@openvtc/trust-tasks 0.27.0 → 0.27.2

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 (261) hide show
  1. package/CHANGELOG.md +267 -0
  2. package/dist/_runtime/freshness.d.ts +3 -1
  3. package/dist/_runtime/freshness.d.ts.map +1 -1
  4. package/dist/_runtime/freshness.js +4 -2
  5. package/dist/_runtime/freshness.js.map +1 -1
  6. package/dist/_shared/components.d.ts +361 -24
  7. package/dist/_shared/components.d.ts.map +1 -1
  8. package/dist/device/list/0.1/payload.d.ts +4 -4
  9. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  10. package/dist/device/list/0.1/payload.js +4 -2
  11. package/dist/device/list/0.1/payload.js.map +1 -1
  12. package/dist/device/list/0.2/payload.d.ts +4 -4
  13. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  14. package/dist/device/list/0.2/payload.js +4 -2
  15. package/dist/device/list/0.2/payload.js.map +1 -1
  16. package/dist/device/register/0.1/payload.d.ts +4 -4
  17. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  18. package/dist/device/register/0.1/payload.js +4 -2
  19. package/dist/device/register/0.1/payload.js.map +1 -1
  20. package/dist/device/register/0.2/payload.d.ts +4 -4
  21. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  22. package/dist/device/register/0.2/payload.js +4 -2
  23. package/dist/device/register/0.2/payload.js.map +1 -1
  24. package/dist/index.d.ts +31 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +31 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/rooms/_shared/0.1/room.d.ts +1 -1
  29. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
  30. package/dist/rooms/create/0.2/payload.d.ts +534 -0
  31. package/dist/rooms/create/0.2/payload.d.ts.map +1 -0
  32. package/dist/rooms/create/0.2/payload.js +293 -0
  33. package/dist/rooms/create/0.2/payload.js.map +1 -0
  34. package/dist/rooms/epoch/chain/0.2/payload.d.ts +534 -0
  35. package/dist/rooms/epoch/chain/0.2/payload.d.ts.map +1 -0
  36. package/dist/rooms/epoch/chain/0.2/payload.js +292 -0
  37. package/dist/rooms/epoch/chain/0.2/payload.js.map +1 -0
  38. package/dist/rooms/epoch/prune/0.2/payload.d.ts +467 -0
  39. package/dist/rooms/epoch/prune/0.2/payload.d.ts.map +1 -0
  40. package/dist/rooms/epoch/prune/0.2/payload.js +251 -0
  41. package/dist/rooms/epoch/prune/0.2/payload.js.map +1 -0
  42. package/dist/rooms/info/0.2/payload.d.ts +1129 -0
  43. package/dist/rooms/info/0.2/payload.d.ts.map +1 -0
  44. package/dist/rooms/info/0.2/payload.js +618 -0
  45. package/dist/rooms/info/0.2/payload.js.map +1 -0
  46. package/dist/rooms/keys/backfill/0.2/payload.d.ts +380 -0
  47. package/dist/rooms/keys/backfill/0.2/payload.d.ts.map +1 -0
  48. package/dist/rooms/keys/backfill/0.2/payload.js +197 -0
  49. package/dist/rooms/keys/backfill/0.2/payload.js.map +1 -0
  50. package/dist/rooms/keys/browse/0.1/payload.d.ts +4 -4
  51. package/dist/rooms/keys/browse/0.1/payload.js +2 -2
  52. package/dist/rooms/keys/browse/0.1/payload.js.map +1 -1
  53. package/dist/rooms/keys/browse/0.2/payload.d.ts +941 -0
  54. package/dist/rooms/keys/browse/0.2/payload.d.ts.map +1 -0
  55. package/dist/rooms/keys/browse/0.2/payload.js +558 -0
  56. package/dist/rooms/keys/browse/0.2/payload.js.map +1 -0
  57. package/dist/rooms/keys/chain/0.2/payload.d.ts +450 -0
  58. package/dist/rooms/keys/chain/0.2/payload.d.ts.map +1 -0
  59. package/dist/rooms/keys/chain/0.2/payload.js +248 -0
  60. package/dist/rooms/keys/chain/0.2/payload.js.map +1 -0
  61. package/dist/rooms/keys/profile/read/0.1/payload.d.ts +4 -4
  62. package/dist/rooms/keys/profile/read/0.1/payload.js +2 -2
  63. package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -1
  64. package/dist/rooms/keys/read/0.1/payload.d.ts +4 -4
  65. package/dist/rooms/keys/read/0.1/payload.js +2 -2
  66. package/dist/rooms/keys/read/0.1/payload.js.map +1 -1
  67. package/dist/rooms/owner/anchor/0.1/payload.d.ts +4 -4
  68. package/dist/rooms/owner/anchor/0.1/payload.js +2 -2
  69. package/dist/rooms/owner/anchor/0.1/payload.js.map +1 -1
  70. package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
  71. package/dist/rooms/records/get/0.1/payload.js +2 -2
  72. package/dist/rooms/records/get/0.1/payload.js.map +1 -1
  73. package/dist/rooms/records/get/0.2/payload.d.ts +4 -4
  74. package/dist/rooms/records/get/0.2/payload.js +2 -2
  75. package/dist/rooms/records/get/0.2/payload.js.map +1 -1
  76. package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
  77. package/dist/rooms/records/list/0.1/payload.js +2 -2
  78. package/dist/rooms/records/list/0.1/payload.js.map +1 -1
  79. package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
  80. package/dist/rooms/records/list/0.2/payload.js +2 -2
  81. package/dist/rooms/records/list/0.2/payload.js.map +1 -1
  82. package/dist/rooms/records/list/0.3/payload.d.ts +970 -0
  83. package/dist/rooms/records/list/0.3/payload.d.ts.map +1 -0
  84. package/dist/rooms/records/list/0.3/payload.js +526 -0
  85. package/dist/rooms/records/list/0.3/payload.js.map +1 -0
  86. package/dist/rooms/records/prune/0.1/payload.d.ts +706 -0
  87. package/dist/rooms/records/prune/0.1/payload.d.ts.map +1 -0
  88. package/dist/rooms/records/prune/0.1/payload.js +374 -0
  89. package/dist/rooms/records/prune/0.1/payload.js.map +1 -0
  90. package/dist/rooms/records/put/0.3/payload.d.ts +1212 -0
  91. package/dist/rooms/records/put/0.3/payload.d.ts.map +1 -0
  92. package/dist/rooms/records/put/0.3/payload.js +646 -0
  93. package/dist/rooms/records/put/0.3/payload.js.map +1 -0
  94. package/dist/rooms/records/retention/set/0.1/payload.d.ts +521 -0
  95. package/dist/rooms/records/retention/set/0.1/payload.d.ts.map +1 -0
  96. package/dist/rooms/records/retention/set/0.1/payload.js +276 -0
  97. package/dist/rooms/records/retention/set/0.1/payload.js.map +1 -0
  98. package/dist/vault/credentials/present/0.1/payload.d.ts +407 -0
  99. package/dist/vault/credentials/present/0.1/payload.d.ts.map +1 -0
  100. package/dist/vault/credentials/present/0.1/payload.js +217 -0
  101. package/dist/vault/credentials/present/0.1/payload.js.map +1 -0
  102. package/dist/voting/_shared/0.1/voting.d.ts +1 -1
  103. package/dist/voting/_shared/0.1/voting.d.ts.map +1 -1
  104. package/dist/voting/board/read/0.1/payload.d.ts +58 -2
  105. package/dist/voting/board/read/0.1/payload.d.ts.map +1 -1
  106. package/dist/voting/board/read/0.1/payload.js +36 -0
  107. package/dist/voting/board/read/0.1/payload.js.map +1 -1
  108. package/dist/voting/trustees/authorize/0.1/payload.d.ts +617 -0
  109. package/dist/voting/trustees/authorize/0.1/payload.d.ts.map +1 -0
  110. package/dist/voting/trustees/authorize/0.1/payload.js +386 -0
  111. package/dist/voting/trustees/authorize/0.1/payload.js.map +1 -0
  112. package/dist/voting/trustees/status/0.1/payload.d.ts +106 -2
  113. package/dist/voting/trustees/status/0.1/payload.d.ts.map +1 -1
  114. package/dist/voting/trustees/status/0.1/payload.js +48 -0
  115. package/dist/voting/trustees/status/0.1/payload.js.map +1 -1
  116. package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts +1832 -0
  117. package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts.map +1 -0
  118. package/dist/vta/pcs/trustee/deal/0.2/payload.js +1077 -0
  119. package/dist/vta/pcs/trustee/deal/0.2/payload.js.map +1 -0
  120. package/dist/vta/pcs/trustee/decrypt/0.2/payload.d.ts +758 -0
  121. package/dist/vta/pcs/trustee/decrypt/0.2/payload.d.ts.map +1 -0
  122. package/dist/vta/pcs/trustee/decrypt/0.2/payload.js +423 -0
  123. package/dist/vta/pcs/trustee/decrypt/0.2/payload.js.map +1 -0
  124. package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts +1867 -0
  125. package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts.map +1 -0
  126. package/dist/vta/pcs/trustee/justify/0.2/payload.js +1095 -0
  127. package/dist/vta/pcs/trustee/justify/0.2/payload.js.map +1 -0
  128. package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts +1912 -0
  129. package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts.map +1 -0
  130. package/dist/vta/pcs/trustee/keys/0.2/payload.js +1115 -0
  131. package/dist/vta/pcs/trustee/keys/0.2/payload.js.map +1 -0
  132. package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts +2228 -0
  133. package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts.map +1 -0
  134. package/dist/vta/pcs/vote-encrypted/0.2/payload.js +1300 -0
  135. package/dist/vta/pcs/vote-encrypted/0.2/payload.js.map +1 -0
  136. package/dist/vta/webvh/dids/create/1.2/payload.d.ts +961 -0
  137. package/dist/vta/webvh/dids/create/1.2/payload.d.ts.map +1 -0
  138. package/dist/vta/webvh/dids/create/1.2/payload.js +480 -0
  139. package/dist/vta/webvh/dids/create/1.2/payload.js.map +1 -0
  140. package/dist/vtc/_shared/0.1/room-migration.d.ts +16 -0
  141. package/dist/vtc/_shared/0.1/room-migration.d.ts.map +1 -0
  142. package/dist/vtc/_shared/0.1/room-migration.js +6 -0
  143. package/dist/vtc/_shared/0.1/room-migration.js.map +1 -0
  144. package/dist/vtc/_shared/0.1/room-storage.d.ts +1 -1
  145. package/dist/vtc/_shared/0.1/room-storage.d.ts.map +1 -1
  146. package/dist/vtc/_shared/0.2/room-storage.d.ts +16 -0
  147. package/dist/vtc/_shared/0.2/room-storage.d.ts.map +1 -0
  148. package/dist/vtc/_shared/0.2/room-storage.js +6 -0
  149. package/dist/vtc/_shared/0.2/room-storage.js.map +1 -0
  150. package/dist/vtc/admin/events/_shared/0.4/topic.d.ts +31 -0
  151. package/dist/vtc/admin/events/_shared/0.4/topic.d.ts.map +1 -0
  152. package/dist/vtc/admin/events/_shared/0.4/topic.js +6 -0
  153. package/dist/vtc/admin/events/_shared/0.4/topic.js.map +1 -0
  154. package/dist/vtc/admin/events/event/0.4/payload.d.ts +172 -0
  155. package/dist/vtc/admin/events/event/0.4/payload.d.ts.map +1 -0
  156. package/dist/vtc/admin/events/event/0.4/payload.js +103 -0
  157. package/dist/vtc/admin/events/event/0.4/payload.js.map +1 -0
  158. package/dist/vtc/admin/events/subscribe/0.4/payload.d.ts +409 -0
  159. package/dist/vtc/admin/events/subscribe/0.4/payload.d.ts.map +1 -0
  160. package/dist/vtc/admin/events/subscribe/0.4/payload.js +238 -0
  161. package/dist/vtc/admin/events/subscribe/0.4/payload.js.map +1 -0
  162. package/dist/vtc/elections/show/0.1/payload.d.ts +86 -2
  163. package/dist/vtc/elections/show/0.1/payload.d.ts.map +1 -1
  164. package/dist/vtc/elections/show/0.1/payload.js +40 -0
  165. package/dist/vtc/elections/show/0.1/payload.js.map +1 -1
  166. package/dist/vtc/rooms/get/0.2/payload.d.ts +1966 -0
  167. package/dist/vtc/rooms/get/0.2/payload.d.ts.map +1 -0
  168. package/dist/vtc/rooms/get/0.2/payload.js +976 -0
  169. package/dist/vtc/rooms/get/0.2/payload.js.map +1 -0
  170. package/dist/vtc/rooms/storage/migrate/0.2/payload.d.ts +595 -0
  171. package/dist/vtc/rooms/storage/migrate/0.2/payload.d.ts.map +1 -0
  172. package/dist/vtc/rooms/storage/migrate/0.2/payload.js +336 -0
  173. package/dist/vtc/rooms/storage/migrate/0.2/payload.js.map +1 -0
  174. package/dist/vtc/storage/configs/create/0.1/payload.d.ts +1 -1
  175. package/dist/vtc/storage/configs/create/0.1/payload.d.ts.map +1 -1
  176. package/dist/vtc/storage/configs/create/0.2/payload.d.ts +1360 -0
  177. package/dist/vtc/storage/configs/create/0.2/payload.d.ts.map +1 -0
  178. package/dist/vtc/storage/configs/create/0.2/payload.js +783 -0
  179. package/dist/vtc/storage/configs/create/0.2/payload.js.map +1 -0
  180. package/dist/vtc/storage/configs/get/0.1/payload.d.ts +1 -1
  181. package/dist/vtc/storage/configs/get/0.1/payload.d.ts.map +1 -1
  182. package/dist/vtc/storage/configs/get/0.2/payload.d.ts +1854 -0
  183. package/dist/vtc/storage/configs/get/0.2/payload.d.ts.map +1 -0
  184. package/dist/vtc/storage/configs/get/0.2/payload.js +1075 -0
  185. package/dist/vtc/storage/configs/get/0.2/payload.js.map +1 -0
  186. package/dist/vtc/storage/configs/list/0.1/payload.d.ts +1 -1
  187. package/dist/vtc/storage/configs/list/0.1/payload.d.ts.map +1 -1
  188. package/dist/vtc/storage/configs/list/0.2/payload.d.ts +1955 -0
  189. package/dist/vtc/storage/configs/list/0.2/payload.d.ts.map +1 -0
  190. package/dist/vtc/storage/configs/list/0.2/payload.js +1125 -0
  191. package/dist/vtc/storage/configs/list/0.2/payload.js.map +1 -0
  192. package/dist/vtc/storage/configs/update/0.1/payload.d.ts +1 -1
  193. package/dist/vtc/storage/configs/update/0.1/payload.d.ts.map +1 -1
  194. package/dist/vtc/storage/configs/update/0.2/payload.d.ts +1362 -0
  195. package/dist/vtc/storage/configs/update/0.2/payload.d.ts.map +1 -0
  196. package/dist/vtc/storage/configs/update/0.2/payload.js +782 -0
  197. package/dist/vtc/storage/configs/update/0.2/payload.js.map +1 -0
  198. package/dist/vtc/storage/credentials/set/0.1/payload.d.ts +1 -1
  199. package/dist/vtc/storage/credentials/set/0.1/payload.d.ts.map +1 -1
  200. package/dist/vtc/storage/credentials/set/0.2/payload.d.ts +979 -0
  201. package/dist/vtc/storage/credentials/set/0.2/payload.d.ts.map +1 -0
  202. package/dist/vtc/storage/credentials/set/0.2/payload.js +573 -0
  203. package/dist/vtc/storage/credentials/set/0.2/payload.js.map +1 -0
  204. package/package.json +1 -1
  205. package/src/_runtime/freshness.ts +4 -2
  206. package/src/_shared/components.ts +388 -24
  207. package/src/device/list/0.1/payload.ts +4 -2
  208. package/src/device/list/0.2/payload.ts +4 -2
  209. package/src/device/register/0.1/payload.ts +4 -2
  210. package/src/device/register/0.2/payload.ts +4 -2
  211. package/src/index.ts +31 -0
  212. package/src/rooms/_shared/0.1/room.ts +1 -1
  213. package/src/rooms/create/0.2/payload.ts +364 -0
  214. package/src/rooms/epoch/chain/0.2/payload.ts +347 -0
  215. package/src/rooms/epoch/prune/0.2/payload.ts +315 -0
  216. package/src/rooms/info/0.2/payload.ts +700 -0
  217. package/src/rooms/keys/backfill/0.2/payload.ts +260 -0
  218. package/src/rooms/keys/browse/0.1/payload.ts +2 -2
  219. package/src/rooms/keys/browse/0.2/payload.ts +628 -0
  220. package/src/rooms/keys/chain/0.2/payload.ts +308 -0
  221. package/src/rooms/keys/profile/read/0.1/payload.ts +2 -2
  222. package/src/rooms/keys/read/0.1/payload.ts +2 -2
  223. package/src/rooms/owner/anchor/0.1/payload.ts +2 -2
  224. package/src/rooms/records/get/0.1/payload.ts +2 -2
  225. package/src/rooms/records/get/0.2/payload.ts +2 -2
  226. package/src/rooms/records/list/0.1/payload.ts +2 -2
  227. package/src/rooms/records/list/0.2/payload.ts +2 -2
  228. package/src/rooms/records/list/0.3/payload.ts +601 -0
  229. package/src/rooms/records/prune/0.1/payload.ts +451 -0
  230. package/src/rooms/records/put/0.3/payload.ts +741 -0
  231. package/src/rooms/records/retention/set/0.1/payload.ts +338 -0
  232. package/src/vault/credentials/present/0.1/payload.ts +283 -0
  233. package/src/voting/_shared/0.1/voting.ts +1 -1
  234. package/src/voting/board/read/0.1/payload.ts +38 -2
  235. package/src/voting/trustees/authorize/0.1/payload.ts +434 -0
  236. package/src/voting/trustees/status/0.1/payload.ts +58 -2
  237. package/src/vta/pcs/trustee/deal/0.2/payload.ts +1148 -0
  238. package/src/vta/pcs/trustee/decrypt/0.2/payload.ts +500 -0
  239. package/src/vta/pcs/trustee/justify/0.2/payload.ts +1167 -0
  240. package/src/vta/pcs/trustee/keys/0.2/payload.ts +1194 -0
  241. package/src/vta/pcs/vote-encrypted/0.2/payload.ts +1369 -0
  242. package/src/vta/webvh/dids/create/1.2/payload.ts +660 -0
  243. package/src/vtc/_shared/0.1/room-migration.ts +17 -0
  244. package/src/vtc/_shared/0.1/room-storage.ts +1 -1
  245. package/src/vtc/_shared/0.2/room-storage.ts +17 -0
  246. package/src/vtc/admin/events/_shared/0.4/topic.ts +32 -0
  247. package/src/vtc/admin/events/event/0.4/payload.ts +137 -0
  248. package/src/vtc/admin/events/subscribe/0.4/payload.ts +318 -0
  249. package/src/vtc/elections/show/0.1/payload.ts +46 -2
  250. package/src/vtc/rooms/get/0.2/payload.ts +1372 -0
  251. package/src/vtc/rooms/storage/migrate/0.2/payload.ts +408 -0
  252. package/src/vtc/storage/configs/create/0.1/payload.ts +1 -1
  253. package/src/vtc/storage/configs/create/0.2/payload.ts +830 -0
  254. package/src/vtc/storage/configs/get/0.1/payload.ts +1 -1
  255. package/src/vtc/storage/configs/get/0.2/payload.ts +1110 -0
  256. package/src/vtc/storage/configs/list/0.1/payload.ts +1 -1
  257. package/src/vtc/storage/configs/list/0.2/payload.ts +1177 -0
  258. package/src/vtc/storage/configs/update/0.1/payload.ts +1 -1
  259. package/src/vtc/storage/configs/update/0.2/payload.ts +829 -0
  260. package/src/vtc/storage/credentials/set/0.1/payload.ts +1 -1
  261. package/src/vtc/storage/credentials/set/0.2/payload.ts +619 -0
@@ -0,0 +1,1867 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/pcs/trustee/justify/0.2/payload.schema.json
4
+ */
5
+ import type { BoardVisibility, ChoiceQuestion, ElectionId, Ext, Key_VotingV0_1 as Key, Manifest, Question, QuestionOption, RankingQuestion, Revote, RollRule, ScoreQuestion, SecrecyLevel, SignedRequest, TextQuestion, TrusteeCeremony, TrusteeIndex, Trustees } from "../../../../../_shared/components.js";
6
+ /**
7
+ * The dealer's VTA reveals the share it dealt to a trustee that complained, and returns the voting/trustees/justify request signed as the dealer.
8
+ */
9
+ export interface VTAPCSTrusteeJustifyPayload {
10
+ /**
11
+ * The VTA context the trustee's keys live in.
12
+ */
13
+ contextId: string;
14
+ /**
15
+ * The community's DID.
16
+ */
17
+ community: string;
18
+ electionId: ElectionId;
19
+ /**
20
+ * The trustee's DID: a persona this VTA holds, named in the manifest's `trustees.dids`.
21
+ */
22
+ trustee: string;
23
+ manifest: Manifest;
24
+ /**
25
+ * The ceremony as the board holds it: voting/trustees/status's `steps`, passed on unchanged. The VTA verifies every step as its trustee's before taking it.
26
+ */
27
+ ceremony: TrusteeCeremony;
28
+ recipient: TrusteeIndex;
29
+ ext?: Ext;
30
+ }
31
+ export interface VTAPCSTrusteeJustifyResponsePayload {
32
+ document: JustifyDocument;
33
+ ext?: Ext;
34
+ }
35
+ /**
36
+ * The voting/trustees/justify request, signed as the trustee.
37
+ */
38
+ export interface JustifyDocument {
39
+ id: string;
40
+ type: "https://trusttasks.org/spec/voting/trustees/justify/0.1";
41
+ /**
42
+ * The signer.
43
+ */
44
+ issuer: string;
45
+ /**
46
+ * The ballot box.
47
+ */
48
+ recipient: string;
49
+ issuedAt: string;
50
+ expiresAt?: string;
51
+ /**
52
+ * That task's request payload.
53
+ */
54
+ payload: {};
55
+ /**
56
+ * A Data Integrity proof by an `authentication` key of `issuer`.
57
+ */
58
+ proof: {};
59
+ }
60
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
61
+ export type { BoardVisibility, ChoiceQuestion, ElectionId, Ext, Key, Manifest, Question, QuestionOption, RankingQuestion, Revote, RollRule, ScoreQuestion, SecrecyLevel, SignedRequest, TextQuestion, TrusteeCeremony, TrusteeIndex, Trustees };
62
+ /** Trust Task type URI. */
63
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/pcs/trustee/justify/0.2";
64
+ /** Stable alias for this specification's request payload shape. */
65
+ export type Payload = VTAPCSTrusteeJustifyPayload;
66
+ /** Trust Task response type URI (request type URI + "#response"). */
67
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/pcs/trustee/justify/0.2#response";
68
+ /** Stable alias for this specification's success-response payload shape. */
69
+ export type Response = VTAPCSTrusteeJustifyResponsePayload;
70
+ /**
71
+ * This specification's payload schema, as a value.
72
+ *
73
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
74
+ * rather than only as a `.json` file because TypeScript types are erased
75
+ * at runtime: without a schema a consumer has nothing to validate, and
76
+ * every REQUIRED payload member is optional in practice. Cross-file
77
+ * `$ref`s are already inlined, so it needs no resolver.
78
+ */
79
+ export declare const PAYLOAD_SCHEMA: {
80
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
81
+ readonly $id: "https://trusttasks.org/spec/vta/pcs/trustee/justify/0.2";
82
+ readonly title: "VTA PCS — Trustee Justify — payload";
83
+ readonly description: "The dealer's VTA reveals the share it dealt to a trustee that complained, and returns the voting/trustees/justify request signed as the dealer.";
84
+ readonly type: "object";
85
+ readonly additionalProperties: false;
86
+ readonly required: readonly ["contextId", "community", "electionId", "trustee", "manifest", "ceremony", "recipient"];
87
+ readonly properties: {
88
+ readonly contextId: {
89
+ readonly type: "string";
90
+ readonly minLength: 1;
91
+ readonly maxLength: 256;
92
+ readonly description: "The VTA context the trustee's keys live in.";
93
+ };
94
+ readonly community: {
95
+ readonly type: "string";
96
+ readonly minLength: 1;
97
+ readonly maxLength: 2048;
98
+ readonly description: "The community's DID.";
99
+ };
100
+ readonly electionId: {
101
+ readonly $ref: "#/$defs/ElectionId";
102
+ };
103
+ readonly trustee: {
104
+ readonly type: "string";
105
+ readonly minLength: 1;
106
+ readonly maxLength: 2048;
107
+ readonly description: "The trustee's DID: a persona this VTA holds, named in the manifest's `trustees.dids`.";
108
+ };
109
+ readonly manifest: {
110
+ readonly $ref: "#/$defs/Manifest";
111
+ };
112
+ readonly ceremony: {
113
+ readonly $ref: "#/$defs/TrusteeCeremony";
114
+ readonly description: "The ceremony as the board holds it: voting/trustees/status's `steps`, passed on unchanged. The VTA verifies every step as its trustee's before taking it.";
115
+ };
116
+ readonly recipient: {
117
+ readonly $ref: "#/$defs/TrusteeIndex";
118
+ };
119
+ readonly ext: {
120
+ readonly $ref: "#/$defs/Ext";
121
+ };
122
+ };
123
+ readonly $defs: {
124
+ readonly Response: {
125
+ readonly $anchor: "response";
126
+ readonly title: "VTA PCS — Trustee Justify — response payload";
127
+ readonly type: "object";
128
+ readonly additionalProperties: false;
129
+ readonly required: readonly ["document"];
130
+ readonly properties: {
131
+ readonly document: {
132
+ readonly title: "JustifyDocument";
133
+ readonly description: "The voting/trustees/justify request, signed as the trustee.";
134
+ readonly type: "object";
135
+ readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
136
+ readonly properties: {
137
+ readonly id: {
138
+ readonly type: "string";
139
+ readonly pattern: "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$";
140
+ };
141
+ readonly type: {
142
+ readonly const: "https://trusttasks.org/spec/voting/trustees/justify/0.1";
143
+ };
144
+ readonly issuer: {
145
+ readonly type: "string";
146
+ readonly minLength: 1;
147
+ readonly maxLength: 2048;
148
+ readonly description: "The signer.";
149
+ };
150
+ readonly recipient: {
151
+ readonly type: "string";
152
+ readonly minLength: 1;
153
+ readonly maxLength: 2048;
154
+ readonly description: "The ballot box.";
155
+ };
156
+ readonly issuedAt: {
157
+ readonly type: "string";
158
+ readonly format: "date-time";
159
+ };
160
+ readonly expiresAt: {
161
+ readonly type: "string";
162
+ readonly format: "date-time";
163
+ };
164
+ readonly payload: {
165
+ readonly type: "object";
166
+ readonly description: "That task's request payload.";
167
+ };
168
+ readonly proof: {
169
+ readonly type: "object";
170
+ readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
171
+ };
172
+ };
173
+ };
174
+ readonly ext: {
175
+ readonly $ref: "#/$defs/Ext";
176
+ };
177
+ };
178
+ };
179
+ readonly Ext: {
180
+ readonly title: "Ext";
181
+ 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.";
182
+ readonly type: "object";
183
+ readonly minProperties: 1;
184
+ readonly additionalProperties: true;
185
+ readonly propertyNames: {
186
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
187
+ };
188
+ };
189
+ readonly TrusteeIndex: {
190
+ readonly title: "TrusteeIndex";
191
+ readonly description: "A trustee's index: its position in the manifest's `trustees.dids`, counting from 1.";
192
+ readonly type: "integer";
193
+ readonly minimum: 1;
194
+ readonly maximum: 64;
195
+ };
196
+ readonly TrusteeCeremony: {
197
+ readonly title: "TrusteeCeremony";
198
+ readonly description: "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.";
199
+ readonly type: "array";
200
+ readonly minItems: 1;
201
+ readonly maxItems: 4224;
202
+ readonly items: {
203
+ readonly $ref: "#/$defs/SignedRequest";
204
+ };
205
+ };
206
+ readonly SignedRequest: {
207
+ readonly title: "SignedRequest";
208
+ readonly description: "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.";
209
+ readonly type: "object";
210
+ readonly minProperties: 1;
211
+ };
212
+ readonly Manifest: {
213
+ readonly title: "Manifest";
214
+ readonly description: "What an election asks and how it is decided (VTI-VOT-010). Its digest (`manifestDigest`) is the SHA-256 multihash of its RFC 8785 (JCS) canonicalization, and every cast is bound to it (VTI-VOT-011).";
215
+ readonly type: "object";
216
+ readonly additionalProperties: false;
217
+ readonly required: readonly ["electionId", "community", "questions", "secrecy", "roll", "registrationOpens", "votingOpens", "votingCloses", "revote", "board", "ballotBox", "binding", "allowEarlyClose", "resultsBeforeClose", "textReleaseThreshold"];
218
+ readonly properties: {
219
+ readonly electionId: {
220
+ readonly $ref: "#/$defs/ElectionId";
221
+ };
222
+ readonly community: {
223
+ readonly type: "string";
224
+ readonly minLength: 1;
225
+ readonly maxLength: 2048;
226
+ readonly description: "The community's DID.";
227
+ };
228
+ readonly title: {
229
+ readonly type: "string";
230
+ readonly maxLength: 512;
231
+ };
232
+ readonly description: {
233
+ readonly type: "string";
234
+ readonly maxLength: 8192;
235
+ };
236
+ readonly questions: {
237
+ readonly type: "array";
238
+ readonly minItems: 1;
239
+ readonly maxItems: 128;
240
+ readonly items: {
241
+ readonly $ref: "#/$defs/Question";
242
+ };
243
+ };
244
+ readonly secrecy: {
245
+ readonly $ref: "#/$defs/SecrecyLevel";
246
+ };
247
+ readonly roll: {
248
+ readonly $ref: "#/$defs/RollRule";
249
+ };
250
+ readonly registrationOpens: {
251
+ readonly type: "string";
252
+ readonly format: "date-time";
253
+ };
254
+ readonly votingOpens: {
255
+ readonly type: "string";
256
+ readonly format: "date-time";
257
+ };
258
+ readonly votingCloses: {
259
+ readonly type: "string";
260
+ readonly format: "date-time";
261
+ };
262
+ readonly revote: {
263
+ readonly $ref: "#/$defs/Revote";
264
+ };
265
+ readonly board: {
266
+ readonly type: "object";
267
+ readonly additionalProperties: false;
268
+ readonly required: readonly ["visibility", "auditors"];
269
+ readonly properties: {
270
+ readonly visibility: {
271
+ readonly $ref: "#/$defs/BoardVisibility";
272
+ };
273
+ readonly auditors: {
274
+ readonly type: "array";
275
+ readonly items: {
276
+ readonly type: "string";
277
+ readonly minLength: 1;
278
+ readonly maxLength: 2048;
279
+ };
280
+ readonly uniqueItems: true;
281
+ };
282
+ };
283
+ };
284
+ readonly ballotBox: {
285
+ readonly type: "string";
286
+ readonly minLength: 1;
287
+ readonly maxLength: 2048;
288
+ readonly description: "The DID of the voting service that holds the board.";
289
+ };
290
+ readonly trustees: {
291
+ readonly $ref: "#/$defs/Trustees";
292
+ };
293
+ readonly binding: {
294
+ readonly type: "boolean";
295
+ readonly description: "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081).";
296
+ };
297
+ readonly allowEarlyClose: {
298
+ readonly type: "boolean";
299
+ };
300
+ readonly resultsBeforeClose: {
301
+ readonly type: "boolean";
302
+ readonly description: "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061).";
303
+ };
304
+ readonly textReleaseThreshold: {
305
+ readonly type: "integer";
306
+ readonly minimum: 10;
307
+ readonly description: "Counted ballots required before any text answer is disclosed (VTI-VOT-065).";
308
+ };
309
+ };
310
+ };
311
+ readonly Trustees: {
312
+ readonly title: "Trustees";
313
+ readonly description: "The trustees of a sealed or tallied-encrypted election and the number of them decryption needs (VTI-VOT-062). Neither the community nor the ballot box may be one.";
314
+ readonly type: "object";
315
+ readonly additionalProperties: false;
316
+ readonly required: readonly ["dids", "threshold"];
317
+ readonly properties: {
318
+ readonly dids: {
319
+ readonly type: "array";
320
+ readonly minItems: 2;
321
+ readonly items: {
322
+ readonly type: "string";
323
+ readonly minLength: 1;
324
+ readonly maxLength: 2048;
325
+ };
326
+ readonly uniqueItems: true;
327
+ };
328
+ readonly threshold: {
329
+ readonly type: "integer";
330
+ readonly minimum: 2;
331
+ };
332
+ };
333
+ };
334
+ readonly BoardVisibility: {
335
+ readonly title: "BoardVisibility";
336
+ readonly description: "`public`: anyone reads the board. `private`: the community, the auditors the manifest names and, for one cast's inclusion, the holder of its receipt (VTI-VOT-052).";
337
+ readonly type: "string";
338
+ readonly enum: readonly ["public", "private"];
339
+ };
340
+ readonly Revote: {
341
+ readonly title: "Revote";
342
+ readonly description: "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).";
343
+ readonly type: "string";
344
+ readonly enum: readonly ["replace", "refuse"];
345
+ };
346
+ readonly RollRule: {
347
+ readonly title: "RollRule";
348
+ readonly description: "Who may be issued a ticket (VTI-VOT-021): the community's active members, its active members and the parties `listed` names, or only the parties `listed` names.";
349
+ readonly type: "object";
350
+ readonly additionalProperties: false;
351
+ readonly required: readonly ["rule"];
352
+ readonly properties: {
353
+ readonly rule: {
354
+ readonly type: "string";
355
+ readonly enum: readonly ["members", "membersAndListed", "listed"];
356
+ };
357
+ readonly listed: {
358
+ readonly type: "array";
359
+ readonly items: {
360
+ readonly type: "string";
361
+ readonly minLength: 1;
362
+ readonly maxLength: 2048;
363
+ readonly description: "A DID enfranchised by name.";
364
+ };
365
+ readonly uniqueItems: true;
366
+ };
367
+ };
368
+ };
369
+ readonly SecrecyLevel: {
370
+ readonly title: "SecrecyLevel";
371
+ readonly description: "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).";
372
+ readonly type: "string";
373
+ readonly enum: readonly ["open", "sealed", "talliedEncrypted"];
374
+ };
375
+ readonly Question: {
376
+ readonly title: "Question";
377
+ readonly description: "One question. Tagged union over `type`.";
378
+ readonly oneOf: readonly [{
379
+ readonly title: "ChoiceQuestion";
380
+ readonly description: "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.";
381
+ readonly type: "object";
382
+ readonly additionalProperties: false;
383
+ readonly required: readonly ["key", "type", "options", "minSelections", "maxSelections", "optional"];
384
+ readonly properties: {
385
+ readonly key: {
386
+ readonly $ref: "#/$defs/Key";
387
+ };
388
+ readonly type: {
389
+ readonly const: "choice";
390
+ };
391
+ readonly text: {
392
+ readonly type: "string";
393
+ readonly maxLength: 2048;
394
+ };
395
+ readonly options: {
396
+ readonly type: "array";
397
+ readonly minItems: 2;
398
+ readonly maxItems: 256;
399
+ readonly items: {
400
+ readonly $ref: "#/$defs/QuestionOption";
401
+ };
402
+ };
403
+ readonly minSelections: {
404
+ readonly type: "integer";
405
+ readonly minimum: 0;
406
+ };
407
+ readonly maxSelections: {
408
+ readonly type: "integer";
409
+ readonly minimum: 1;
410
+ };
411
+ readonly optional: {
412
+ readonly type: "boolean";
413
+ };
414
+ };
415
+ }, {
416
+ readonly title: "RankingQuestion";
417
+ readonly description: "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.";
418
+ readonly type: "object";
419
+ readonly additionalProperties: false;
420
+ readonly required: readonly ["key", "type", "options", "partial", "optional"];
421
+ readonly properties: {
422
+ readonly key: {
423
+ readonly $ref: "#/$defs/Key";
424
+ };
425
+ readonly type: {
426
+ readonly const: "ranking";
427
+ };
428
+ readonly text: {
429
+ readonly type: "string";
430
+ readonly maxLength: 2048;
431
+ };
432
+ readonly options: {
433
+ readonly type: "array";
434
+ readonly minItems: 2;
435
+ readonly maxItems: 64;
436
+ readonly items: {
437
+ readonly $ref: "#/$defs/QuestionOption";
438
+ };
439
+ };
440
+ readonly partial: {
441
+ readonly type: "boolean";
442
+ };
443
+ readonly optional: {
444
+ readonly type: "boolean";
445
+ };
446
+ };
447
+ }, {
448
+ readonly title: "ScoreQuestion";
449
+ readonly description: "Give each option an integer score within [min, max].";
450
+ readonly type: "object";
451
+ readonly additionalProperties: false;
452
+ readonly required: readonly ["key", "type", "options", "min", "max", "optional"];
453
+ readonly properties: {
454
+ readonly key: {
455
+ readonly $ref: "#/$defs/Key";
456
+ };
457
+ readonly type: {
458
+ readonly const: "score";
459
+ };
460
+ readonly text: {
461
+ readonly type: "string";
462
+ readonly maxLength: 2048;
463
+ };
464
+ readonly options: {
465
+ readonly type: "array";
466
+ readonly minItems: 1;
467
+ readonly maxItems: 256;
468
+ readonly items: {
469
+ readonly $ref: "#/$defs/QuestionOption";
470
+ };
471
+ };
472
+ readonly min: {
473
+ readonly type: "integer";
474
+ };
475
+ readonly max: {
476
+ readonly type: "integer";
477
+ };
478
+ readonly optional: {
479
+ readonly type: "boolean";
480
+ };
481
+ };
482
+ }, {
483
+ readonly title: "TextQuestion";
484
+ readonly description: "Free text of at most `maxLength` characters.";
485
+ readonly type: "object";
486
+ readonly additionalProperties: false;
487
+ readonly required: readonly ["key", "type", "maxLength", "optional"];
488
+ readonly properties: {
489
+ readonly key: {
490
+ readonly $ref: "#/$defs/Key";
491
+ };
492
+ readonly type: {
493
+ readonly const: "text";
494
+ };
495
+ readonly text: {
496
+ readonly type: "string";
497
+ readonly maxLength: 2048;
498
+ };
499
+ readonly maxLength: {
500
+ readonly type: "integer";
501
+ readonly minimum: 1;
502
+ readonly maximum: 4096;
503
+ };
504
+ readonly optional: {
505
+ readonly type: "boolean";
506
+ };
507
+ };
508
+ }];
509
+ };
510
+ readonly Key: {
511
+ readonly title: "Key";
512
+ readonly description: "A question or option key, unique within its manifest or question.";
513
+ readonly type: "string";
514
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
515
+ };
516
+ readonly QuestionOption: {
517
+ readonly title: "QuestionOption";
518
+ readonly type: "object";
519
+ readonly additionalProperties: false;
520
+ readonly required: readonly ["key"];
521
+ readonly properties: {
522
+ readonly key: {
523
+ readonly $ref: "#/$defs/Key";
524
+ };
525
+ readonly label: {
526
+ readonly type: "string";
527
+ readonly maxLength: 512;
528
+ readonly description: "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014).";
529
+ };
530
+ };
531
+ };
532
+ readonly ElectionId: {
533
+ readonly title: "ElectionId";
534
+ 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.";
535
+ readonly type: "string";
536
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
537
+ };
538
+ };
539
+ };
540
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
541
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
542
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
543
+ readonly $ref: "#/$defs/Response";
544
+ readonly $defs: {
545
+ readonly Response: {
546
+ readonly $anchor: "response";
547
+ readonly title: "VTA PCS — Trustee Justify — response payload";
548
+ readonly type: "object";
549
+ readonly additionalProperties: false;
550
+ readonly required: readonly ["document"];
551
+ readonly properties: {
552
+ readonly document: {
553
+ readonly title: "JustifyDocument";
554
+ readonly description: "The voting/trustees/justify request, signed as the trustee.";
555
+ readonly type: "object";
556
+ readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
557
+ readonly properties: {
558
+ readonly id: {
559
+ readonly type: "string";
560
+ readonly pattern: "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$";
561
+ };
562
+ readonly type: {
563
+ readonly const: "https://trusttasks.org/spec/voting/trustees/justify/0.1";
564
+ };
565
+ readonly issuer: {
566
+ readonly type: "string";
567
+ readonly minLength: 1;
568
+ readonly maxLength: 2048;
569
+ readonly description: "The signer.";
570
+ };
571
+ readonly recipient: {
572
+ readonly type: "string";
573
+ readonly minLength: 1;
574
+ readonly maxLength: 2048;
575
+ readonly description: "The ballot box.";
576
+ };
577
+ readonly issuedAt: {
578
+ readonly type: "string";
579
+ readonly format: "date-time";
580
+ };
581
+ readonly expiresAt: {
582
+ readonly type: "string";
583
+ readonly format: "date-time";
584
+ };
585
+ readonly payload: {
586
+ readonly type: "object";
587
+ readonly description: "That task's request payload.";
588
+ };
589
+ readonly proof: {
590
+ readonly type: "object";
591
+ readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
592
+ };
593
+ };
594
+ };
595
+ readonly ext: {
596
+ readonly $ref: "#/$defs/Ext";
597
+ };
598
+ };
599
+ };
600
+ readonly Ext: {
601
+ readonly title: "Ext";
602
+ 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.";
603
+ readonly type: "object";
604
+ readonly minProperties: 1;
605
+ readonly additionalProperties: true;
606
+ readonly propertyNames: {
607
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
608
+ };
609
+ };
610
+ readonly TrusteeIndex: {
611
+ readonly title: "TrusteeIndex";
612
+ readonly description: "A trustee's index: its position in the manifest's `trustees.dids`, counting from 1.";
613
+ readonly type: "integer";
614
+ readonly minimum: 1;
615
+ readonly maximum: 64;
616
+ };
617
+ readonly TrusteeCeremony: {
618
+ readonly title: "TrusteeCeremony";
619
+ readonly description: "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.";
620
+ readonly type: "array";
621
+ readonly minItems: 1;
622
+ readonly maxItems: 4224;
623
+ readonly items: {
624
+ readonly $ref: "#/$defs/SignedRequest";
625
+ };
626
+ };
627
+ readonly SignedRequest: {
628
+ readonly title: "SignedRequest";
629
+ readonly description: "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.";
630
+ readonly type: "object";
631
+ readonly minProperties: 1;
632
+ };
633
+ readonly Manifest: {
634
+ readonly title: "Manifest";
635
+ readonly description: "What an election asks and how it is decided (VTI-VOT-010). Its digest (`manifestDigest`) is the SHA-256 multihash of its RFC 8785 (JCS) canonicalization, and every cast is bound to it (VTI-VOT-011).";
636
+ readonly type: "object";
637
+ readonly additionalProperties: false;
638
+ readonly required: readonly ["electionId", "community", "questions", "secrecy", "roll", "registrationOpens", "votingOpens", "votingCloses", "revote", "board", "ballotBox", "binding", "allowEarlyClose", "resultsBeforeClose", "textReleaseThreshold"];
639
+ readonly properties: {
640
+ readonly electionId: {
641
+ readonly $ref: "#/$defs/ElectionId";
642
+ };
643
+ readonly community: {
644
+ readonly type: "string";
645
+ readonly minLength: 1;
646
+ readonly maxLength: 2048;
647
+ readonly description: "The community's DID.";
648
+ };
649
+ readonly title: {
650
+ readonly type: "string";
651
+ readonly maxLength: 512;
652
+ };
653
+ readonly description: {
654
+ readonly type: "string";
655
+ readonly maxLength: 8192;
656
+ };
657
+ readonly questions: {
658
+ readonly type: "array";
659
+ readonly minItems: 1;
660
+ readonly maxItems: 128;
661
+ readonly items: {
662
+ readonly $ref: "#/$defs/Question";
663
+ };
664
+ };
665
+ readonly secrecy: {
666
+ readonly $ref: "#/$defs/SecrecyLevel";
667
+ };
668
+ readonly roll: {
669
+ readonly $ref: "#/$defs/RollRule";
670
+ };
671
+ readonly registrationOpens: {
672
+ readonly type: "string";
673
+ readonly format: "date-time";
674
+ };
675
+ readonly votingOpens: {
676
+ readonly type: "string";
677
+ readonly format: "date-time";
678
+ };
679
+ readonly votingCloses: {
680
+ readonly type: "string";
681
+ readonly format: "date-time";
682
+ };
683
+ readonly revote: {
684
+ readonly $ref: "#/$defs/Revote";
685
+ };
686
+ readonly board: {
687
+ readonly type: "object";
688
+ readonly additionalProperties: false;
689
+ readonly required: readonly ["visibility", "auditors"];
690
+ readonly properties: {
691
+ readonly visibility: {
692
+ readonly $ref: "#/$defs/BoardVisibility";
693
+ };
694
+ readonly auditors: {
695
+ readonly type: "array";
696
+ readonly items: {
697
+ readonly type: "string";
698
+ readonly minLength: 1;
699
+ readonly maxLength: 2048;
700
+ };
701
+ readonly uniqueItems: true;
702
+ };
703
+ };
704
+ };
705
+ readonly ballotBox: {
706
+ readonly type: "string";
707
+ readonly minLength: 1;
708
+ readonly maxLength: 2048;
709
+ readonly description: "The DID of the voting service that holds the board.";
710
+ };
711
+ readonly trustees: {
712
+ readonly $ref: "#/$defs/Trustees";
713
+ };
714
+ readonly binding: {
715
+ readonly type: "boolean";
716
+ readonly description: "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081).";
717
+ };
718
+ readonly allowEarlyClose: {
719
+ readonly type: "boolean";
720
+ };
721
+ readonly resultsBeforeClose: {
722
+ readonly type: "boolean";
723
+ readonly description: "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061).";
724
+ };
725
+ readonly textReleaseThreshold: {
726
+ readonly type: "integer";
727
+ readonly minimum: 10;
728
+ readonly description: "Counted ballots required before any text answer is disclosed (VTI-VOT-065).";
729
+ };
730
+ };
731
+ };
732
+ readonly Trustees: {
733
+ readonly title: "Trustees";
734
+ readonly description: "The trustees of a sealed or tallied-encrypted election and the number of them decryption needs (VTI-VOT-062). Neither the community nor the ballot box may be one.";
735
+ readonly type: "object";
736
+ readonly additionalProperties: false;
737
+ readonly required: readonly ["dids", "threshold"];
738
+ readonly properties: {
739
+ readonly dids: {
740
+ readonly type: "array";
741
+ readonly minItems: 2;
742
+ readonly items: {
743
+ readonly type: "string";
744
+ readonly minLength: 1;
745
+ readonly maxLength: 2048;
746
+ };
747
+ readonly uniqueItems: true;
748
+ };
749
+ readonly threshold: {
750
+ readonly type: "integer";
751
+ readonly minimum: 2;
752
+ };
753
+ };
754
+ };
755
+ readonly BoardVisibility: {
756
+ readonly title: "BoardVisibility";
757
+ readonly description: "`public`: anyone reads the board. `private`: the community, the auditors the manifest names and, for one cast's inclusion, the holder of its receipt (VTI-VOT-052).";
758
+ readonly type: "string";
759
+ readonly enum: readonly ["public", "private"];
760
+ };
761
+ readonly Revote: {
762
+ readonly title: "Revote";
763
+ readonly description: "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).";
764
+ readonly type: "string";
765
+ readonly enum: readonly ["replace", "refuse"];
766
+ };
767
+ readonly RollRule: {
768
+ readonly title: "RollRule";
769
+ readonly description: "Who may be issued a ticket (VTI-VOT-021): the community's active members, its active members and the parties `listed` names, or only the parties `listed` names.";
770
+ readonly type: "object";
771
+ readonly additionalProperties: false;
772
+ readonly required: readonly ["rule"];
773
+ readonly properties: {
774
+ readonly rule: {
775
+ readonly type: "string";
776
+ readonly enum: readonly ["members", "membersAndListed", "listed"];
777
+ };
778
+ readonly listed: {
779
+ readonly type: "array";
780
+ readonly items: {
781
+ readonly type: "string";
782
+ readonly minLength: 1;
783
+ readonly maxLength: 2048;
784
+ readonly description: "A DID enfranchised by name.";
785
+ };
786
+ readonly uniqueItems: true;
787
+ };
788
+ };
789
+ };
790
+ readonly SecrecyLevel: {
791
+ readonly title: "SecrecyLevel";
792
+ readonly description: "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).";
793
+ readonly type: "string";
794
+ readonly enum: readonly ["open", "sealed", "talliedEncrypted"];
795
+ };
796
+ readonly Question: {
797
+ readonly title: "Question";
798
+ readonly description: "One question. Tagged union over `type`.";
799
+ readonly oneOf: readonly [{
800
+ readonly title: "ChoiceQuestion";
801
+ readonly description: "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.";
802
+ readonly type: "object";
803
+ readonly additionalProperties: false;
804
+ readonly required: readonly ["key", "type", "options", "minSelections", "maxSelections", "optional"];
805
+ readonly properties: {
806
+ readonly key: {
807
+ readonly $ref: "#/$defs/Key";
808
+ };
809
+ readonly type: {
810
+ readonly const: "choice";
811
+ };
812
+ readonly text: {
813
+ readonly type: "string";
814
+ readonly maxLength: 2048;
815
+ };
816
+ readonly options: {
817
+ readonly type: "array";
818
+ readonly minItems: 2;
819
+ readonly maxItems: 256;
820
+ readonly items: {
821
+ readonly $ref: "#/$defs/QuestionOption";
822
+ };
823
+ };
824
+ readonly minSelections: {
825
+ readonly type: "integer";
826
+ readonly minimum: 0;
827
+ };
828
+ readonly maxSelections: {
829
+ readonly type: "integer";
830
+ readonly minimum: 1;
831
+ };
832
+ readonly optional: {
833
+ readonly type: "boolean";
834
+ };
835
+ };
836
+ }, {
837
+ readonly title: "RankingQuestion";
838
+ readonly description: "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.";
839
+ readonly type: "object";
840
+ readonly additionalProperties: false;
841
+ readonly required: readonly ["key", "type", "options", "partial", "optional"];
842
+ readonly properties: {
843
+ readonly key: {
844
+ readonly $ref: "#/$defs/Key";
845
+ };
846
+ readonly type: {
847
+ readonly const: "ranking";
848
+ };
849
+ readonly text: {
850
+ readonly type: "string";
851
+ readonly maxLength: 2048;
852
+ };
853
+ readonly options: {
854
+ readonly type: "array";
855
+ readonly minItems: 2;
856
+ readonly maxItems: 64;
857
+ readonly items: {
858
+ readonly $ref: "#/$defs/QuestionOption";
859
+ };
860
+ };
861
+ readonly partial: {
862
+ readonly type: "boolean";
863
+ };
864
+ readonly optional: {
865
+ readonly type: "boolean";
866
+ };
867
+ };
868
+ }, {
869
+ readonly title: "ScoreQuestion";
870
+ readonly description: "Give each option an integer score within [min, max].";
871
+ readonly type: "object";
872
+ readonly additionalProperties: false;
873
+ readonly required: readonly ["key", "type", "options", "min", "max", "optional"];
874
+ readonly properties: {
875
+ readonly key: {
876
+ readonly $ref: "#/$defs/Key";
877
+ };
878
+ readonly type: {
879
+ readonly const: "score";
880
+ };
881
+ readonly text: {
882
+ readonly type: "string";
883
+ readonly maxLength: 2048;
884
+ };
885
+ readonly options: {
886
+ readonly type: "array";
887
+ readonly minItems: 1;
888
+ readonly maxItems: 256;
889
+ readonly items: {
890
+ readonly $ref: "#/$defs/QuestionOption";
891
+ };
892
+ };
893
+ readonly min: {
894
+ readonly type: "integer";
895
+ };
896
+ readonly max: {
897
+ readonly type: "integer";
898
+ };
899
+ readonly optional: {
900
+ readonly type: "boolean";
901
+ };
902
+ };
903
+ }, {
904
+ readonly title: "TextQuestion";
905
+ readonly description: "Free text of at most `maxLength` characters.";
906
+ readonly type: "object";
907
+ readonly additionalProperties: false;
908
+ readonly required: readonly ["key", "type", "maxLength", "optional"];
909
+ readonly properties: {
910
+ readonly key: {
911
+ readonly $ref: "#/$defs/Key";
912
+ };
913
+ readonly type: {
914
+ readonly const: "text";
915
+ };
916
+ readonly text: {
917
+ readonly type: "string";
918
+ readonly maxLength: 2048;
919
+ };
920
+ readonly maxLength: {
921
+ readonly type: "integer";
922
+ readonly minimum: 1;
923
+ readonly maximum: 4096;
924
+ };
925
+ readonly optional: {
926
+ readonly type: "boolean";
927
+ };
928
+ };
929
+ }];
930
+ };
931
+ readonly Key: {
932
+ readonly title: "Key";
933
+ readonly description: "A question or option key, unique within its manifest or question.";
934
+ readonly type: "string";
935
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
936
+ };
937
+ readonly QuestionOption: {
938
+ readonly title: "QuestionOption";
939
+ readonly type: "object";
940
+ readonly additionalProperties: false;
941
+ readonly required: readonly ["key"];
942
+ readonly properties: {
943
+ readonly key: {
944
+ readonly $ref: "#/$defs/Key";
945
+ };
946
+ readonly label: {
947
+ readonly type: "string";
948
+ readonly maxLength: 512;
949
+ readonly description: "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014).";
950
+ };
951
+ };
952
+ };
953
+ readonly ElectionId: {
954
+ readonly title: "ElectionId";
955
+ 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.";
956
+ readonly type: "string";
957
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
958
+ };
959
+ };
960
+ };
961
+ /**
962
+ * SPEC.md §7.2 policy for the request variant, from this specification's
963
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
964
+ * per-specification and cannot be derived from the document alone, and
965
+ * item 2 needs the schema this carries.
966
+ */
967
+ export declare const SPEC: {
968
+ readonly typeUri: "https://trusttasks.org/spec/vta/pcs/trustee/justify/0.2";
969
+ readonly isBearer: false;
970
+ readonly isProofRequired: true;
971
+ readonly isRecipientRequired: true;
972
+ readonly isIssuedAtRequired: true;
973
+ readonly payloadSchema: {
974
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
975
+ readonly $id: "https://trusttasks.org/spec/vta/pcs/trustee/justify/0.2";
976
+ readonly title: "VTA PCS — Trustee Justify — payload";
977
+ readonly description: "The dealer's VTA reveals the share it dealt to a trustee that complained, and returns the voting/trustees/justify request signed as the dealer.";
978
+ readonly type: "object";
979
+ readonly additionalProperties: false;
980
+ readonly required: readonly ["contextId", "community", "electionId", "trustee", "manifest", "ceremony", "recipient"];
981
+ readonly properties: {
982
+ readonly contextId: {
983
+ readonly type: "string";
984
+ readonly minLength: 1;
985
+ readonly maxLength: 256;
986
+ readonly description: "The VTA context the trustee's keys live in.";
987
+ };
988
+ readonly community: {
989
+ readonly type: "string";
990
+ readonly minLength: 1;
991
+ readonly maxLength: 2048;
992
+ readonly description: "The community's DID.";
993
+ };
994
+ readonly electionId: {
995
+ readonly $ref: "#/$defs/ElectionId";
996
+ };
997
+ readonly trustee: {
998
+ readonly type: "string";
999
+ readonly minLength: 1;
1000
+ readonly maxLength: 2048;
1001
+ readonly description: "The trustee's DID: a persona this VTA holds, named in the manifest's `trustees.dids`.";
1002
+ };
1003
+ readonly manifest: {
1004
+ readonly $ref: "#/$defs/Manifest";
1005
+ };
1006
+ readonly ceremony: {
1007
+ readonly $ref: "#/$defs/TrusteeCeremony";
1008
+ readonly description: "The ceremony as the board holds it: voting/trustees/status's `steps`, passed on unchanged. The VTA verifies every step as its trustee's before taking it.";
1009
+ };
1010
+ readonly recipient: {
1011
+ readonly $ref: "#/$defs/TrusteeIndex";
1012
+ };
1013
+ readonly ext: {
1014
+ readonly $ref: "#/$defs/Ext";
1015
+ };
1016
+ };
1017
+ readonly $defs: {
1018
+ readonly Response: {
1019
+ readonly $anchor: "response";
1020
+ readonly title: "VTA PCS — Trustee Justify — response payload";
1021
+ readonly type: "object";
1022
+ readonly additionalProperties: false;
1023
+ readonly required: readonly ["document"];
1024
+ readonly properties: {
1025
+ readonly document: {
1026
+ readonly title: "JustifyDocument";
1027
+ readonly description: "The voting/trustees/justify request, signed as the trustee.";
1028
+ readonly type: "object";
1029
+ readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
1030
+ readonly properties: {
1031
+ readonly id: {
1032
+ readonly type: "string";
1033
+ readonly pattern: "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$";
1034
+ };
1035
+ readonly type: {
1036
+ readonly const: "https://trusttasks.org/spec/voting/trustees/justify/0.1";
1037
+ };
1038
+ readonly issuer: {
1039
+ readonly type: "string";
1040
+ readonly minLength: 1;
1041
+ readonly maxLength: 2048;
1042
+ readonly description: "The signer.";
1043
+ };
1044
+ readonly recipient: {
1045
+ readonly type: "string";
1046
+ readonly minLength: 1;
1047
+ readonly maxLength: 2048;
1048
+ readonly description: "The ballot box.";
1049
+ };
1050
+ readonly issuedAt: {
1051
+ readonly type: "string";
1052
+ readonly format: "date-time";
1053
+ };
1054
+ readonly expiresAt: {
1055
+ readonly type: "string";
1056
+ readonly format: "date-time";
1057
+ };
1058
+ readonly payload: {
1059
+ readonly type: "object";
1060
+ readonly description: "That task's request payload.";
1061
+ };
1062
+ readonly proof: {
1063
+ readonly type: "object";
1064
+ readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
1065
+ };
1066
+ };
1067
+ };
1068
+ readonly ext: {
1069
+ readonly $ref: "#/$defs/Ext";
1070
+ };
1071
+ };
1072
+ };
1073
+ readonly Ext: {
1074
+ readonly title: "Ext";
1075
+ 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.";
1076
+ readonly type: "object";
1077
+ readonly minProperties: 1;
1078
+ readonly additionalProperties: true;
1079
+ readonly propertyNames: {
1080
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
1081
+ };
1082
+ };
1083
+ readonly TrusteeIndex: {
1084
+ readonly title: "TrusteeIndex";
1085
+ readonly description: "A trustee's index: its position in the manifest's `trustees.dids`, counting from 1.";
1086
+ readonly type: "integer";
1087
+ readonly minimum: 1;
1088
+ readonly maximum: 64;
1089
+ };
1090
+ readonly TrusteeCeremony: {
1091
+ readonly title: "TrusteeCeremony";
1092
+ readonly description: "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.";
1093
+ readonly type: "array";
1094
+ readonly minItems: 1;
1095
+ readonly maxItems: 4224;
1096
+ readonly items: {
1097
+ readonly $ref: "#/$defs/SignedRequest";
1098
+ };
1099
+ };
1100
+ readonly SignedRequest: {
1101
+ readonly title: "SignedRequest";
1102
+ readonly description: "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.";
1103
+ readonly type: "object";
1104
+ readonly minProperties: 1;
1105
+ };
1106
+ readonly Manifest: {
1107
+ readonly title: "Manifest";
1108
+ readonly description: "What an election asks and how it is decided (VTI-VOT-010). Its digest (`manifestDigest`) is the SHA-256 multihash of its RFC 8785 (JCS) canonicalization, and every cast is bound to it (VTI-VOT-011).";
1109
+ readonly type: "object";
1110
+ readonly additionalProperties: false;
1111
+ readonly required: readonly ["electionId", "community", "questions", "secrecy", "roll", "registrationOpens", "votingOpens", "votingCloses", "revote", "board", "ballotBox", "binding", "allowEarlyClose", "resultsBeforeClose", "textReleaseThreshold"];
1112
+ readonly properties: {
1113
+ readonly electionId: {
1114
+ readonly $ref: "#/$defs/ElectionId";
1115
+ };
1116
+ readonly community: {
1117
+ readonly type: "string";
1118
+ readonly minLength: 1;
1119
+ readonly maxLength: 2048;
1120
+ readonly description: "The community's DID.";
1121
+ };
1122
+ readonly title: {
1123
+ readonly type: "string";
1124
+ readonly maxLength: 512;
1125
+ };
1126
+ readonly description: {
1127
+ readonly type: "string";
1128
+ readonly maxLength: 8192;
1129
+ };
1130
+ readonly questions: {
1131
+ readonly type: "array";
1132
+ readonly minItems: 1;
1133
+ readonly maxItems: 128;
1134
+ readonly items: {
1135
+ readonly $ref: "#/$defs/Question";
1136
+ };
1137
+ };
1138
+ readonly secrecy: {
1139
+ readonly $ref: "#/$defs/SecrecyLevel";
1140
+ };
1141
+ readonly roll: {
1142
+ readonly $ref: "#/$defs/RollRule";
1143
+ };
1144
+ readonly registrationOpens: {
1145
+ readonly type: "string";
1146
+ readonly format: "date-time";
1147
+ };
1148
+ readonly votingOpens: {
1149
+ readonly type: "string";
1150
+ readonly format: "date-time";
1151
+ };
1152
+ readonly votingCloses: {
1153
+ readonly type: "string";
1154
+ readonly format: "date-time";
1155
+ };
1156
+ readonly revote: {
1157
+ readonly $ref: "#/$defs/Revote";
1158
+ };
1159
+ readonly board: {
1160
+ readonly type: "object";
1161
+ readonly additionalProperties: false;
1162
+ readonly required: readonly ["visibility", "auditors"];
1163
+ readonly properties: {
1164
+ readonly visibility: {
1165
+ readonly $ref: "#/$defs/BoardVisibility";
1166
+ };
1167
+ readonly auditors: {
1168
+ readonly type: "array";
1169
+ readonly items: {
1170
+ readonly type: "string";
1171
+ readonly minLength: 1;
1172
+ readonly maxLength: 2048;
1173
+ };
1174
+ readonly uniqueItems: true;
1175
+ };
1176
+ };
1177
+ };
1178
+ readonly ballotBox: {
1179
+ readonly type: "string";
1180
+ readonly minLength: 1;
1181
+ readonly maxLength: 2048;
1182
+ readonly description: "The DID of the voting service that holds the board.";
1183
+ };
1184
+ readonly trustees: {
1185
+ readonly $ref: "#/$defs/Trustees";
1186
+ };
1187
+ readonly binding: {
1188
+ readonly type: "boolean";
1189
+ readonly description: "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081).";
1190
+ };
1191
+ readonly allowEarlyClose: {
1192
+ readonly type: "boolean";
1193
+ };
1194
+ readonly resultsBeforeClose: {
1195
+ readonly type: "boolean";
1196
+ readonly description: "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061).";
1197
+ };
1198
+ readonly textReleaseThreshold: {
1199
+ readonly type: "integer";
1200
+ readonly minimum: 10;
1201
+ readonly description: "Counted ballots required before any text answer is disclosed (VTI-VOT-065).";
1202
+ };
1203
+ };
1204
+ };
1205
+ readonly Trustees: {
1206
+ readonly title: "Trustees";
1207
+ readonly description: "The trustees of a sealed or tallied-encrypted election and the number of them decryption needs (VTI-VOT-062). Neither the community nor the ballot box may be one.";
1208
+ readonly type: "object";
1209
+ readonly additionalProperties: false;
1210
+ readonly required: readonly ["dids", "threshold"];
1211
+ readonly properties: {
1212
+ readonly dids: {
1213
+ readonly type: "array";
1214
+ readonly minItems: 2;
1215
+ readonly items: {
1216
+ readonly type: "string";
1217
+ readonly minLength: 1;
1218
+ readonly maxLength: 2048;
1219
+ };
1220
+ readonly uniqueItems: true;
1221
+ };
1222
+ readonly threshold: {
1223
+ readonly type: "integer";
1224
+ readonly minimum: 2;
1225
+ };
1226
+ };
1227
+ };
1228
+ readonly BoardVisibility: {
1229
+ readonly title: "BoardVisibility";
1230
+ readonly description: "`public`: anyone reads the board. `private`: the community, the auditors the manifest names and, for one cast's inclusion, the holder of its receipt (VTI-VOT-052).";
1231
+ readonly type: "string";
1232
+ readonly enum: readonly ["public", "private"];
1233
+ };
1234
+ readonly Revote: {
1235
+ readonly title: "Revote";
1236
+ readonly description: "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).";
1237
+ readonly type: "string";
1238
+ readonly enum: readonly ["replace", "refuse"];
1239
+ };
1240
+ readonly RollRule: {
1241
+ readonly title: "RollRule";
1242
+ readonly description: "Who may be issued a ticket (VTI-VOT-021): the community's active members, its active members and the parties `listed` names, or only the parties `listed` names.";
1243
+ readonly type: "object";
1244
+ readonly additionalProperties: false;
1245
+ readonly required: readonly ["rule"];
1246
+ readonly properties: {
1247
+ readonly rule: {
1248
+ readonly type: "string";
1249
+ readonly enum: readonly ["members", "membersAndListed", "listed"];
1250
+ };
1251
+ readonly listed: {
1252
+ readonly type: "array";
1253
+ readonly items: {
1254
+ readonly type: "string";
1255
+ readonly minLength: 1;
1256
+ readonly maxLength: 2048;
1257
+ readonly description: "A DID enfranchised by name.";
1258
+ };
1259
+ readonly uniqueItems: true;
1260
+ };
1261
+ };
1262
+ };
1263
+ readonly SecrecyLevel: {
1264
+ readonly title: "SecrecyLevel";
1265
+ readonly description: "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).";
1266
+ readonly type: "string";
1267
+ readonly enum: readonly ["open", "sealed", "talliedEncrypted"];
1268
+ };
1269
+ readonly Question: {
1270
+ readonly title: "Question";
1271
+ readonly description: "One question. Tagged union over `type`.";
1272
+ readonly oneOf: readonly [{
1273
+ readonly title: "ChoiceQuestion";
1274
+ readonly description: "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.";
1275
+ readonly type: "object";
1276
+ readonly additionalProperties: false;
1277
+ readonly required: readonly ["key", "type", "options", "minSelections", "maxSelections", "optional"];
1278
+ readonly properties: {
1279
+ readonly key: {
1280
+ readonly $ref: "#/$defs/Key";
1281
+ };
1282
+ readonly type: {
1283
+ readonly const: "choice";
1284
+ };
1285
+ readonly text: {
1286
+ readonly type: "string";
1287
+ readonly maxLength: 2048;
1288
+ };
1289
+ readonly options: {
1290
+ readonly type: "array";
1291
+ readonly minItems: 2;
1292
+ readonly maxItems: 256;
1293
+ readonly items: {
1294
+ readonly $ref: "#/$defs/QuestionOption";
1295
+ };
1296
+ };
1297
+ readonly minSelections: {
1298
+ readonly type: "integer";
1299
+ readonly minimum: 0;
1300
+ };
1301
+ readonly maxSelections: {
1302
+ readonly type: "integer";
1303
+ readonly minimum: 1;
1304
+ };
1305
+ readonly optional: {
1306
+ readonly type: "boolean";
1307
+ };
1308
+ };
1309
+ }, {
1310
+ readonly title: "RankingQuestion";
1311
+ readonly description: "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.";
1312
+ readonly type: "object";
1313
+ readonly additionalProperties: false;
1314
+ readonly required: readonly ["key", "type", "options", "partial", "optional"];
1315
+ readonly properties: {
1316
+ readonly key: {
1317
+ readonly $ref: "#/$defs/Key";
1318
+ };
1319
+ readonly type: {
1320
+ readonly const: "ranking";
1321
+ };
1322
+ readonly text: {
1323
+ readonly type: "string";
1324
+ readonly maxLength: 2048;
1325
+ };
1326
+ readonly options: {
1327
+ readonly type: "array";
1328
+ readonly minItems: 2;
1329
+ readonly maxItems: 64;
1330
+ readonly items: {
1331
+ readonly $ref: "#/$defs/QuestionOption";
1332
+ };
1333
+ };
1334
+ readonly partial: {
1335
+ readonly type: "boolean";
1336
+ };
1337
+ readonly optional: {
1338
+ readonly type: "boolean";
1339
+ };
1340
+ };
1341
+ }, {
1342
+ readonly title: "ScoreQuestion";
1343
+ readonly description: "Give each option an integer score within [min, max].";
1344
+ readonly type: "object";
1345
+ readonly additionalProperties: false;
1346
+ readonly required: readonly ["key", "type", "options", "min", "max", "optional"];
1347
+ readonly properties: {
1348
+ readonly key: {
1349
+ readonly $ref: "#/$defs/Key";
1350
+ };
1351
+ readonly type: {
1352
+ readonly const: "score";
1353
+ };
1354
+ readonly text: {
1355
+ readonly type: "string";
1356
+ readonly maxLength: 2048;
1357
+ };
1358
+ readonly options: {
1359
+ readonly type: "array";
1360
+ readonly minItems: 1;
1361
+ readonly maxItems: 256;
1362
+ readonly items: {
1363
+ readonly $ref: "#/$defs/QuestionOption";
1364
+ };
1365
+ };
1366
+ readonly min: {
1367
+ readonly type: "integer";
1368
+ };
1369
+ readonly max: {
1370
+ readonly type: "integer";
1371
+ };
1372
+ readonly optional: {
1373
+ readonly type: "boolean";
1374
+ };
1375
+ };
1376
+ }, {
1377
+ readonly title: "TextQuestion";
1378
+ readonly description: "Free text of at most `maxLength` characters.";
1379
+ readonly type: "object";
1380
+ readonly additionalProperties: false;
1381
+ readonly required: readonly ["key", "type", "maxLength", "optional"];
1382
+ readonly properties: {
1383
+ readonly key: {
1384
+ readonly $ref: "#/$defs/Key";
1385
+ };
1386
+ readonly type: {
1387
+ readonly const: "text";
1388
+ };
1389
+ readonly text: {
1390
+ readonly type: "string";
1391
+ readonly maxLength: 2048;
1392
+ };
1393
+ readonly maxLength: {
1394
+ readonly type: "integer";
1395
+ readonly minimum: 1;
1396
+ readonly maximum: 4096;
1397
+ };
1398
+ readonly optional: {
1399
+ readonly type: "boolean";
1400
+ };
1401
+ };
1402
+ }];
1403
+ };
1404
+ readonly Key: {
1405
+ readonly title: "Key";
1406
+ readonly description: "A question or option key, unique within its manifest or question.";
1407
+ readonly type: "string";
1408
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
1409
+ };
1410
+ readonly QuestionOption: {
1411
+ readonly title: "QuestionOption";
1412
+ readonly type: "object";
1413
+ readonly additionalProperties: false;
1414
+ readonly required: readonly ["key"];
1415
+ readonly properties: {
1416
+ readonly key: {
1417
+ readonly $ref: "#/$defs/Key";
1418
+ };
1419
+ readonly label: {
1420
+ readonly type: "string";
1421
+ readonly maxLength: 512;
1422
+ readonly description: "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014).";
1423
+ };
1424
+ };
1425
+ };
1426
+ readonly ElectionId: {
1427
+ readonly title: "ElectionId";
1428
+ 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.";
1429
+ readonly type: "string";
1430
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
1431
+ };
1432
+ };
1433
+ };
1434
+ };
1435
+ /**
1436
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
1437
+ * tracks the *issuer* party's requirement because a response swaps the
1438
+ * parties (§7.3 item 5).
1439
+ */
1440
+ export declare const RESPONSE_SPEC: {
1441
+ readonly typeUri: "https://trusttasks.org/spec/vta/pcs/trustee/justify/0.2#response";
1442
+ readonly isBearer: false;
1443
+ readonly isProofRequired: false;
1444
+ readonly isRecipientRequired: true;
1445
+ readonly isIssuedAtRequired: true;
1446
+ readonly payloadSchema: {
1447
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1448
+ readonly $ref: "#/$defs/Response";
1449
+ readonly $defs: {
1450
+ readonly Response: {
1451
+ readonly $anchor: "response";
1452
+ readonly title: "VTA PCS — Trustee Justify — response payload";
1453
+ readonly type: "object";
1454
+ readonly additionalProperties: false;
1455
+ readonly required: readonly ["document"];
1456
+ readonly properties: {
1457
+ readonly document: {
1458
+ readonly title: "JustifyDocument";
1459
+ readonly description: "The voting/trustees/justify request, signed as the trustee.";
1460
+ readonly type: "object";
1461
+ readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
1462
+ readonly properties: {
1463
+ readonly id: {
1464
+ readonly type: "string";
1465
+ readonly pattern: "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$";
1466
+ };
1467
+ readonly type: {
1468
+ readonly const: "https://trusttasks.org/spec/voting/trustees/justify/0.1";
1469
+ };
1470
+ readonly issuer: {
1471
+ readonly type: "string";
1472
+ readonly minLength: 1;
1473
+ readonly maxLength: 2048;
1474
+ readonly description: "The signer.";
1475
+ };
1476
+ readonly recipient: {
1477
+ readonly type: "string";
1478
+ readonly minLength: 1;
1479
+ readonly maxLength: 2048;
1480
+ readonly description: "The ballot box.";
1481
+ };
1482
+ readonly issuedAt: {
1483
+ readonly type: "string";
1484
+ readonly format: "date-time";
1485
+ };
1486
+ readonly expiresAt: {
1487
+ readonly type: "string";
1488
+ readonly format: "date-time";
1489
+ };
1490
+ readonly payload: {
1491
+ readonly type: "object";
1492
+ readonly description: "That task's request payload.";
1493
+ };
1494
+ readonly proof: {
1495
+ readonly type: "object";
1496
+ readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
1497
+ };
1498
+ };
1499
+ };
1500
+ readonly ext: {
1501
+ readonly $ref: "#/$defs/Ext";
1502
+ };
1503
+ };
1504
+ };
1505
+ readonly Ext: {
1506
+ readonly title: "Ext";
1507
+ 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.";
1508
+ readonly type: "object";
1509
+ readonly minProperties: 1;
1510
+ readonly additionalProperties: true;
1511
+ readonly propertyNames: {
1512
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
1513
+ };
1514
+ };
1515
+ readonly TrusteeIndex: {
1516
+ readonly title: "TrusteeIndex";
1517
+ readonly description: "A trustee's index: its position in the manifest's `trustees.dids`, counting from 1.";
1518
+ readonly type: "integer";
1519
+ readonly minimum: 1;
1520
+ readonly maximum: 64;
1521
+ };
1522
+ readonly TrusteeCeremony: {
1523
+ readonly title: "TrusteeCeremony";
1524
+ readonly description: "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.";
1525
+ readonly type: "array";
1526
+ readonly minItems: 1;
1527
+ readonly maxItems: 4224;
1528
+ readonly items: {
1529
+ readonly $ref: "#/$defs/SignedRequest";
1530
+ };
1531
+ };
1532
+ readonly SignedRequest: {
1533
+ readonly title: "SignedRequest";
1534
+ readonly description: "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.";
1535
+ readonly type: "object";
1536
+ readonly minProperties: 1;
1537
+ };
1538
+ readonly Manifest: {
1539
+ readonly title: "Manifest";
1540
+ readonly description: "What an election asks and how it is decided (VTI-VOT-010). Its digest (`manifestDigest`) is the SHA-256 multihash of its RFC 8785 (JCS) canonicalization, and every cast is bound to it (VTI-VOT-011).";
1541
+ readonly type: "object";
1542
+ readonly additionalProperties: false;
1543
+ readonly required: readonly ["electionId", "community", "questions", "secrecy", "roll", "registrationOpens", "votingOpens", "votingCloses", "revote", "board", "ballotBox", "binding", "allowEarlyClose", "resultsBeforeClose", "textReleaseThreshold"];
1544
+ readonly properties: {
1545
+ readonly electionId: {
1546
+ readonly $ref: "#/$defs/ElectionId";
1547
+ };
1548
+ readonly community: {
1549
+ readonly type: "string";
1550
+ readonly minLength: 1;
1551
+ readonly maxLength: 2048;
1552
+ readonly description: "The community's DID.";
1553
+ };
1554
+ readonly title: {
1555
+ readonly type: "string";
1556
+ readonly maxLength: 512;
1557
+ };
1558
+ readonly description: {
1559
+ readonly type: "string";
1560
+ readonly maxLength: 8192;
1561
+ };
1562
+ readonly questions: {
1563
+ readonly type: "array";
1564
+ readonly minItems: 1;
1565
+ readonly maxItems: 128;
1566
+ readonly items: {
1567
+ readonly $ref: "#/$defs/Question";
1568
+ };
1569
+ };
1570
+ readonly secrecy: {
1571
+ readonly $ref: "#/$defs/SecrecyLevel";
1572
+ };
1573
+ readonly roll: {
1574
+ readonly $ref: "#/$defs/RollRule";
1575
+ };
1576
+ readonly registrationOpens: {
1577
+ readonly type: "string";
1578
+ readonly format: "date-time";
1579
+ };
1580
+ readonly votingOpens: {
1581
+ readonly type: "string";
1582
+ readonly format: "date-time";
1583
+ };
1584
+ readonly votingCloses: {
1585
+ readonly type: "string";
1586
+ readonly format: "date-time";
1587
+ };
1588
+ readonly revote: {
1589
+ readonly $ref: "#/$defs/Revote";
1590
+ };
1591
+ readonly board: {
1592
+ readonly type: "object";
1593
+ readonly additionalProperties: false;
1594
+ readonly required: readonly ["visibility", "auditors"];
1595
+ readonly properties: {
1596
+ readonly visibility: {
1597
+ readonly $ref: "#/$defs/BoardVisibility";
1598
+ };
1599
+ readonly auditors: {
1600
+ readonly type: "array";
1601
+ readonly items: {
1602
+ readonly type: "string";
1603
+ readonly minLength: 1;
1604
+ readonly maxLength: 2048;
1605
+ };
1606
+ readonly uniqueItems: true;
1607
+ };
1608
+ };
1609
+ };
1610
+ readonly ballotBox: {
1611
+ readonly type: "string";
1612
+ readonly minLength: 1;
1613
+ readonly maxLength: 2048;
1614
+ readonly description: "The DID of the voting service that holds the board.";
1615
+ };
1616
+ readonly trustees: {
1617
+ readonly $ref: "#/$defs/Trustees";
1618
+ };
1619
+ readonly binding: {
1620
+ readonly type: "boolean";
1621
+ readonly description: "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081).";
1622
+ };
1623
+ readonly allowEarlyClose: {
1624
+ readonly type: "boolean";
1625
+ };
1626
+ readonly resultsBeforeClose: {
1627
+ readonly type: "boolean";
1628
+ readonly description: "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061).";
1629
+ };
1630
+ readonly textReleaseThreshold: {
1631
+ readonly type: "integer";
1632
+ readonly minimum: 10;
1633
+ readonly description: "Counted ballots required before any text answer is disclosed (VTI-VOT-065).";
1634
+ };
1635
+ };
1636
+ };
1637
+ readonly Trustees: {
1638
+ readonly title: "Trustees";
1639
+ readonly description: "The trustees of a sealed or tallied-encrypted election and the number of them decryption needs (VTI-VOT-062). Neither the community nor the ballot box may be one.";
1640
+ readonly type: "object";
1641
+ readonly additionalProperties: false;
1642
+ readonly required: readonly ["dids", "threshold"];
1643
+ readonly properties: {
1644
+ readonly dids: {
1645
+ readonly type: "array";
1646
+ readonly minItems: 2;
1647
+ readonly items: {
1648
+ readonly type: "string";
1649
+ readonly minLength: 1;
1650
+ readonly maxLength: 2048;
1651
+ };
1652
+ readonly uniqueItems: true;
1653
+ };
1654
+ readonly threshold: {
1655
+ readonly type: "integer";
1656
+ readonly minimum: 2;
1657
+ };
1658
+ };
1659
+ };
1660
+ readonly BoardVisibility: {
1661
+ readonly title: "BoardVisibility";
1662
+ readonly description: "`public`: anyone reads the board. `private`: the community, the auditors the manifest names and, for one cast's inclusion, the holder of its receipt (VTI-VOT-052).";
1663
+ readonly type: "string";
1664
+ readonly enum: readonly ["public", "private"];
1665
+ };
1666
+ readonly Revote: {
1667
+ readonly title: "Revote";
1668
+ readonly description: "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).";
1669
+ readonly type: "string";
1670
+ readonly enum: readonly ["replace", "refuse"];
1671
+ };
1672
+ readonly RollRule: {
1673
+ readonly title: "RollRule";
1674
+ readonly description: "Who may be issued a ticket (VTI-VOT-021): the community's active members, its active members and the parties `listed` names, or only the parties `listed` names.";
1675
+ readonly type: "object";
1676
+ readonly additionalProperties: false;
1677
+ readonly required: readonly ["rule"];
1678
+ readonly properties: {
1679
+ readonly rule: {
1680
+ readonly type: "string";
1681
+ readonly enum: readonly ["members", "membersAndListed", "listed"];
1682
+ };
1683
+ readonly listed: {
1684
+ readonly type: "array";
1685
+ readonly items: {
1686
+ readonly type: "string";
1687
+ readonly minLength: 1;
1688
+ readonly maxLength: 2048;
1689
+ readonly description: "A DID enfranchised by name.";
1690
+ };
1691
+ readonly uniqueItems: true;
1692
+ };
1693
+ };
1694
+ };
1695
+ readonly SecrecyLevel: {
1696
+ readonly title: "SecrecyLevel";
1697
+ readonly description: "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).";
1698
+ readonly type: "string";
1699
+ readonly enum: readonly ["open", "sealed", "talliedEncrypted"];
1700
+ };
1701
+ readonly Question: {
1702
+ readonly title: "Question";
1703
+ readonly description: "One question. Tagged union over `type`.";
1704
+ readonly oneOf: readonly [{
1705
+ readonly title: "ChoiceQuestion";
1706
+ readonly description: "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.";
1707
+ readonly type: "object";
1708
+ readonly additionalProperties: false;
1709
+ readonly required: readonly ["key", "type", "options", "minSelections", "maxSelections", "optional"];
1710
+ readonly properties: {
1711
+ readonly key: {
1712
+ readonly $ref: "#/$defs/Key";
1713
+ };
1714
+ readonly type: {
1715
+ readonly const: "choice";
1716
+ };
1717
+ readonly text: {
1718
+ readonly type: "string";
1719
+ readonly maxLength: 2048;
1720
+ };
1721
+ readonly options: {
1722
+ readonly type: "array";
1723
+ readonly minItems: 2;
1724
+ readonly maxItems: 256;
1725
+ readonly items: {
1726
+ readonly $ref: "#/$defs/QuestionOption";
1727
+ };
1728
+ };
1729
+ readonly minSelections: {
1730
+ readonly type: "integer";
1731
+ readonly minimum: 0;
1732
+ };
1733
+ readonly maxSelections: {
1734
+ readonly type: "integer";
1735
+ readonly minimum: 1;
1736
+ };
1737
+ readonly optional: {
1738
+ readonly type: "boolean";
1739
+ };
1740
+ };
1741
+ }, {
1742
+ readonly title: "RankingQuestion";
1743
+ readonly description: "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.";
1744
+ readonly type: "object";
1745
+ readonly additionalProperties: false;
1746
+ readonly required: readonly ["key", "type", "options", "partial", "optional"];
1747
+ readonly properties: {
1748
+ readonly key: {
1749
+ readonly $ref: "#/$defs/Key";
1750
+ };
1751
+ readonly type: {
1752
+ readonly const: "ranking";
1753
+ };
1754
+ readonly text: {
1755
+ readonly type: "string";
1756
+ readonly maxLength: 2048;
1757
+ };
1758
+ readonly options: {
1759
+ readonly type: "array";
1760
+ readonly minItems: 2;
1761
+ readonly maxItems: 64;
1762
+ readonly items: {
1763
+ readonly $ref: "#/$defs/QuestionOption";
1764
+ };
1765
+ };
1766
+ readonly partial: {
1767
+ readonly type: "boolean";
1768
+ };
1769
+ readonly optional: {
1770
+ readonly type: "boolean";
1771
+ };
1772
+ };
1773
+ }, {
1774
+ readonly title: "ScoreQuestion";
1775
+ readonly description: "Give each option an integer score within [min, max].";
1776
+ readonly type: "object";
1777
+ readonly additionalProperties: false;
1778
+ readonly required: readonly ["key", "type", "options", "min", "max", "optional"];
1779
+ readonly properties: {
1780
+ readonly key: {
1781
+ readonly $ref: "#/$defs/Key";
1782
+ };
1783
+ readonly type: {
1784
+ readonly const: "score";
1785
+ };
1786
+ readonly text: {
1787
+ readonly type: "string";
1788
+ readonly maxLength: 2048;
1789
+ };
1790
+ readonly options: {
1791
+ readonly type: "array";
1792
+ readonly minItems: 1;
1793
+ readonly maxItems: 256;
1794
+ readonly items: {
1795
+ readonly $ref: "#/$defs/QuestionOption";
1796
+ };
1797
+ };
1798
+ readonly min: {
1799
+ readonly type: "integer";
1800
+ };
1801
+ readonly max: {
1802
+ readonly type: "integer";
1803
+ };
1804
+ readonly optional: {
1805
+ readonly type: "boolean";
1806
+ };
1807
+ };
1808
+ }, {
1809
+ readonly title: "TextQuestion";
1810
+ readonly description: "Free text of at most `maxLength` characters.";
1811
+ readonly type: "object";
1812
+ readonly additionalProperties: false;
1813
+ readonly required: readonly ["key", "type", "maxLength", "optional"];
1814
+ readonly properties: {
1815
+ readonly key: {
1816
+ readonly $ref: "#/$defs/Key";
1817
+ };
1818
+ readonly type: {
1819
+ readonly const: "text";
1820
+ };
1821
+ readonly text: {
1822
+ readonly type: "string";
1823
+ readonly maxLength: 2048;
1824
+ };
1825
+ readonly maxLength: {
1826
+ readonly type: "integer";
1827
+ readonly minimum: 1;
1828
+ readonly maximum: 4096;
1829
+ };
1830
+ readonly optional: {
1831
+ readonly type: "boolean";
1832
+ };
1833
+ };
1834
+ }];
1835
+ };
1836
+ readonly Key: {
1837
+ readonly title: "Key";
1838
+ readonly description: "A question or option key, unique within its manifest or question.";
1839
+ readonly type: "string";
1840
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
1841
+ };
1842
+ readonly QuestionOption: {
1843
+ readonly title: "QuestionOption";
1844
+ readonly type: "object";
1845
+ readonly additionalProperties: false;
1846
+ readonly required: readonly ["key"];
1847
+ readonly properties: {
1848
+ readonly key: {
1849
+ readonly $ref: "#/$defs/Key";
1850
+ };
1851
+ readonly label: {
1852
+ readonly type: "string";
1853
+ readonly maxLength: 512;
1854
+ readonly description: "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014).";
1855
+ };
1856
+ };
1857
+ };
1858
+ readonly ElectionId: {
1859
+ readonly title: "ElectionId";
1860
+ 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.";
1861
+ readonly type: "string";
1862
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
1863
+ };
1864
+ };
1865
+ };
1866
+ };
1867
+ //# sourceMappingURL=payload.d.ts.map