@openvtc/trust-tasks 0.28.7 → 0.28.9

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 (511) hide show
  1. package/CHANGELOG.md +157 -0
  2. package/dist/_extends.d.ts.map +1 -1
  3. package/dist/_extends.js +6 -0
  4. package/dist/_extends.js.map +1 -1
  5. package/dist/_shared/components.d.ts +492 -0
  6. package/dist/_shared/components.d.ts.map +1 -1
  7. package/dist/index.d.ts +150 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +150 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/notifications/_shared/0.1/notification.d.ts +22 -0
  12. package/dist/notifications/_shared/0.1/notification.d.ts.map +1 -0
  13. package/dist/notifications/_shared/0.1/notification.js +6 -0
  14. package/dist/notifications/_shared/0.1/notification.js.map +1 -0
  15. package/dist/notifications/notify/0.1/payload.d.ts +652 -0
  16. package/dist/notifications/notify/0.1/payload.d.ts.map +1 -0
  17. package/dist/notifications/notify/0.1/payload.js +383 -0
  18. package/dist/notifications/notify/0.1/payload.js.map +1 -0
  19. package/dist/notifications/relay/0.1/payload.d.ts +309 -0
  20. package/dist/notifications/relay/0.1/payload.d.ts.map +1 -0
  21. package/dist/notifications/relay/0.1/payload.js +179 -0
  22. package/dist/notifications/relay/0.1/payload.js.map +1 -0
  23. package/dist/rooms/keys/act/0.1/payload.d.ts +4 -4
  24. package/dist/rooms/keys/act/0.1/payload.d.ts.map +1 -1
  25. package/dist/rooms/keys/act/0.1/payload.js +1 -1
  26. package/dist/rooms/keys/act/0.1/payload.js.map +1 -1
  27. package/dist/rooms/keys/act/0.10/payload.d.ts +560 -0
  28. package/dist/rooms/keys/act/0.10/payload.d.ts.map +1 -0
  29. package/dist/rooms/keys/act/0.10/payload.js +319 -0
  30. package/dist/rooms/keys/act/0.10/payload.js.map +1 -0
  31. package/dist/rooms/keys/act/0.2/payload.d.ts +4 -4
  32. package/dist/rooms/keys/act/0.2/payload.d.ts.map +1 -1
  33. package/dist/rooms/keys/act/0.2/payload.js +1 -1
  34. package/dist/rooms/keys/act/0.2/payload.js.map +1 -1
  35. package/dist/rooms/keys/act/0.3/payload.d.ts +4 -4
  36. package/dist/rooms/keys/act/0.3/payload.d.ts.map +1 -1
  37. package/dist/rooms/keys/act/0.3/payload.js +1 -1
  38. package/dist/rooms/keys/act/0.3/payload.js.map +1 -1
  39. package/dist/rooms/keys/act/0.4/payload.d.ts +4 -4
  40. package/dist/rooms/keys/act/0.4/payload.d.ts.map +1 -1
  41. package/dist/rooms/keys/act/0.4/payload.js +1 -1
  42. package/dist/rooms/keys/act/0.4/payload.js.map +1 -1
  43. package/dist/rooms/keys/act/0.5/payload.d.ts +4 -4
  44. package/dist/rooms/keys/act/0.5/payload.d.ts.map +1 -1
  45. package/dist/rooms/keys/act/0.5/payload.js +1 -1
  46. package/dist/rooms/keys/act/0.5/payload.js.map +1 -1
  47. package/dist/rooms/keys/act/0.6/payload.d.ts +4 -4
  48. package/dist/rooms/keys/act/0.6/payload.d.ts.map +1 -1
  49. package/dist/rooms/keys/act/0.6/payload.js +1 -1
  50. package/dist/rooms/keys/act/0.6/payload.js.map +1 -1
  51. package/dist/rooms/keys/act/0.7/payload.d.ts +4 -4
  52. package/dist/rooms/keys/act/0.7/payload.d.ts.map +1 -1
  53. package/dist/rooms/keys/act/0.7/payload.js +1 -1
  54. package/dist/rooms/keys/act/0.7/payload.js.map +1 -1
  55. package/dist/rooms/keys/act/0.8/payload.d.ts +4 -4
  56. package/dist/rooms/keys/act/0.8/payload.d.ts.map +1 -1
  57. package/dist/rooms/keys/act/0.8/payload.js +1 -1
  58. package/dist/rooms/keys/act/0.8/payload.js.map +1 -1
  59. package/dist/rooms/keys/act/0.9/payload.d.ts +14 -2
  60. package/dist/rooms/keys/act/0.9/payload.d.ts.map +1 -1
  61. package/dist/rooms/keys/act/0.9/payload.js +1 -1
  62. package/dist/rooms/keys/act/0.9/payload.js.map +1 -1
  63. package/dist/voting/_shared/0.4/voting.d.ts +16 -0
  64. package/dist/voting/_shared/0.4/voting.d.ts.map +1 -0
  65. package/dist/voting/_shared/0.4/voting.js +6 -0
  66. package/dist/voting/_shared/0.4/voting.js.map +1 -0
  67. package/dist/voting/election/register/0.1/payload.d.ts +4 -4
  68. package/dist/voting/election/register/0.1/payload.js +1 -1
  69. package/dist/voting/election/register/0.2/payload.d.ts +4 -4
  70. package/dist/voting/election/register/0.2/payload.js +1 -1
  71. package/dist/voting/election/register/0.3/payload.d.ts +13 -2
  72. package/dist/voting/election/register/0.3/payload.d.ts.map +1 -1
  73. package/dist/voting/election/register/0.3/payload.js +1 -1
  74. package/dist/voting/election/register/0.3/payload.js.map +1 -1
  75. package/dist/voting/election/register/0.4/payload.d.ts +2054 -0
  76. package/dist/voting/election/register/0.4/payload.d.ts.map +1 -0
  77. package/dist/voting/election/register/0.4/payload.js +1264 -0
  78. package/dist/voting/election/register/0.4/payload.js.map +1 -0
  79. package/dist/voting/election/show/0.1/payload.d.ts +4 -4
  80. package/dist/voting/election/show/0.1/payload.js +1 -1
  81. package/dist/voting/election/show/0.2/payload.d.ts +4 -4
  82. package/dist/voting/election/show/0.2/payload.js +1 -1
  83. package/dist/voting/election/show/0.3/payload.d.ts +13 -2
  84. package/dist/voting/election/show/0.3/payload.d.ts.map +1 -1
  85. package/dist/voting/election/show/0.3/payload.js +1 -1
  86. package/dist/voting/election/show/0.3/payload.js.map +1 -1
  87. package/dist/voting/election/show/0.4/payload.d.ts +1958 -0
  88. package/dist/voting/election/show/0.4/payload.d.ts.map +1 -0
  89. package/dist/voting/election/show/0.4/payload.js +1210 -0
  90. package/dist/voting/election/show/0.4/payload.js.map +1 -0
  91. package/dist/vta/notifications/_shared/0.1/held-notification.d.ts +16 -0
  92. package/dist/vta/notifications/_shared/0.1/held-notification.d.ts.map +1 -0
  93. package/dist/vta/notifications/_shared/0.1/held-notification.js +6 -0
  94. package/dist/vta/notifications/_shared/0.1/held-notification.js.map +1 -0
  95. package/dist/vta/notifications/dismiss/0.1/payload.d.ts +300 -0
  96. package/dist/vta/notifications/dismiss/0.1/payload.d.ts.map +1 -0
  97. package/dist/vta/notifications/dismiss/0.1/payload.js +179 -0
  98. package/dist/vta/notifications/dismiss/0.1/payload.js.map +1 -0
  99. package/dist/vta/notifications/list/0.1/payload.d.ts +1100 -0
  100. package/dist/vta/notifications/list/0.1/payload.d.ts.map +1 -0
  101. package/dist/vta/notifications/list/0.1/payload.js +627 -0
  102. package/dist/vta/notifications/list/0.1/payload.js.map +1 -0
  103. package/dist/vta/notifications/show/0.1/payload.d.ts +1004 -0
  104. package/dist/vta/notifications/show/0.1/payload.d.ts.map +1 -0
  105. package/dist/vta/notifications/show/0.1/payload.js +595 -0
  106. package/dist/vta/notifications/show/0.1/payload.js.map +1 -0
  107. package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts +4 -4
  108. package/dist/vta/pcs/trustee/deal/0.2/payload.js +1 -1
  109. package/dist/vta/pcs/trustee/deal/0.3/payload.d.ts +4 -4
  110. package/dist/vta/pcs/trustee/deal/0.3/payload.js +1 -1
  111. package/dist/vta/pcs/trustee/deal/0.4/payload.d.ts +13 -2
  112. package/dist/vta/pcs/trustee/deal/0.4/payload.d.ts.map +1 -1
  113. package/dist/vta/pcs/trustee/deal/0.4/payload.js +1 -1
  114. package/dist/vta/pcs/trustee/deal/0.4/payload.js.map +1 -1
  115. package/dist/vta/pcs/trustee/deal/0.5/payload.d.ts +1966 -0
  116. package/dist/vta/pcs/trustee/deal/0.5/payload.d.ts.map +1 -0
  117. package/dist/vta/pcs/trustee/deal/0.5/payload.js +1175 -0
  118. package/dist/vta/pcs/trustee/deal/0.5/payload.js.map +1 -0
  119. package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts +4 -4
  120. package/dist/vta/pcs/trustee/enrol/0.1/payload.js +1 -1
  121. package/dist/vta/pcs/trustee/enrol/0.2/payload.d.ts +4 -4
  122. package/dist/vta/pcs/trustee/enrol/0.2/payload.js +1 -1
  123. package/dist/vta/pcs/trustee/enrol/0.3/payload.d.ts +13 -2
  124. package/dist/vta/pcs/trustee/enrol/0.3/payload.d.ts.map +1 -1
  125. package/dist/vta/pcs/trustee/enrol/0.3/payload.js +1 -1
  126. package/dist/vta/pcs/trustee/enrol/0.3/payload.js.map +1 -1
  127. package/dist/vta/pcs/trustee/enrol/0.4/payload.d.ts +1890 -0
  128. package/dist/vta/pcs/trustee/enrol/0.4/payload.d.ts.map +1 -0
  129. package/dist/vta/pcs/trustee/enrol/0.4/payload.js +1138 -0
  130. package/dist/vta/pcs/trustee/enrol/0.4/payload.js.map +1 -0
  131. package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts +4 -4
  132. package/dist/vta/pcs/trustee/justify/0.2/payload.js +1 -1
  133. package/dist/vta/pcs/trustee/justify/0.3/payload.d.ts +4 -4
  134. package/dist/vta/pcs/trustee/justify/0.3/payload.js +1 -1
  135. package/dist/vta/pcs/trustee/justify/0.4/payload.d.ts +13 -2
  136. package/dist/vta/pcs/trustee/justify/0.4/payload.d.ts.map +1 -1
  137. package/dist/vta/pcs/trustee/justify/0.4/payload.js +1 -1
  138. package/dist/vta/pcs/trustee/justify/0.4/payload.js.map +1 -1
  139. package/dist/vta/pcs/trustee/justify/0.5/payload.d.ts +2001 -0
  140. package/dist/vta/pcs/trustee/justify/0.5/payload.d.ts.map +1 -0
  141. package/dist/vta/pcs/trustee/justify/0.5/payload.js +1193 -0
  142. package/dist/vta/pcs/trustee/justify/0.5/payload.js.map +1 -0
  143. package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts +4 -4
  144. package/dist/vta/pcs/trustee/keys/0.2/payload.js +1 -1
  145. package/dist/vta/pcs/trustee/keys/0.3/payload.d.ts +4 -4
  146. package/dist/vta/pcs/trustee/keys/0.3/payload.js +1 -1
  147. package/dist/vta/pcs/trustee/keys/0.4/payload.d.ts +13 -2
  148. package/dist/vta/pcs/trustee/keys/0.4/payload.d.ts.map +1 -1
  149. package/dist/vta/pcs/trustee/keys/0.4/payload.js +1 -1
  150. package/dist/vta/pcs/trustee/keys/0.4/payload.js.map +1 -1
  151. package/dist/vta/pcs/trustee/keys/0.5/payload.d.ts +2046 -0
  152. package/dist/vta/pcs/trustee/keys/0.5/payload.d.ts.map +1 -0
  153. package/dist/vta/pcs/trustee/keys/0.5/payload.js +1213 -0
  154. package/dist/vta/pcs/trustee/keys/0.5/payload.js.map +1 -0
  155. package/dist/vta/pcs/trustee/read/0.1/payload.d.ts +4 -4
  156. package/dist/vta/pcs/trustee/read/0.1/payload.js +1 -1
  157. package/dist/vta/pcs/trustee/read/0.2/payload.d.ts +4 -4
  158. package/dist/vta/pcs/trustee/read/0.2/payload.js +1 -1
  159. package/dist/vta/pcs/trustee/read/0.3/payload.d.ts +14 -2
  160. package/dist/vta/pcs/trustee/read/0.3/payload.d.ts.map +1 -1
  161. package/dist/vta/pcs/trustee/read/0.3/payload.js +1 -1
  162. package/dist/vta/pcs/trustee/read/0.3/payload.js.map +1 -1
  163. package/dist/vta/pcs/trustee/read/0.4/payload.d.ts +540 -0
  164. package/dist/vta/pcs/trustee/read/0.4/payload.d.ts.map +1 -0
  165. package/dist/vta/pcs/trustee/read/0.4/payload.js +304 -0
  166. package/dist/vta/pcs/trustee/read/0.4/payload.js.map +1 -0
  167. package/dist/vta/pcs/vote/0.1/payload.d.ts +4 -4
  168. package/dist/vta/pcs/vote/0.1/payload.js +1 -1
  169. package/dist/vta/pcs/vote/0.2/payload.d.ts +4 -4
  170. package/dist/vta/pcs/vote/0.2/payload.js +1 -1
  171. package/dist/vta/pcs/vote/0.3/payload.d.ts +13 -2
  172. package/dist/vta/pcs/vote/0.3/payload.d.ts.map +1 -1
  173. package/dist/vta/pcs/vote/0.3/payload.js +1 -1
  174. package/dist/vta/pcs/vote/0.3/payload.js.map +1 -1
  175. package/dist/vta/pcs/vote/0.4/payload.d.ts +2342 -0
  176. package/dist/vta/pcs/vote/0.4/payload.d.ts.map +1 -0
  177. package/dist/vta/pcs/vote/0.4/payload.js +1380 -0
  178. package/dist/vta/pcs/vote/0.4/payload.js.map +1 -0
  179. package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts +4 -4
  180. package/dist/vta/pcs/vote-encrypted/0.2/payload.js +1 -1
  181. package/dist/vta/pcs/vote-encrypted/0.3/payload.d.ts +4 -4
  182. package/dist/vta/pcs/vote-encrypted/0.3/payload.js +1 -1
  183. package/dist/vta/pcs/vote-encrypted/0.4/payload.d.ts +13 -2
  184. package/dist/vta/pcs/vote-encrypted/0.4/payload.d.ts.map +1 -1
  185. package/dist/vta/pcs/vote-encrypted/0.4/payload.js +1 -1
  186. package/dist/vta/pcs/vote-encrypted/0.4/payload.js.map +1 -1
  187. package/dist/vta/pcs/vote-encrypted/0.5/payload.d.ts +2362 -0
  188. package/dist/vta/pcs/vote-encrypted/0.5/payload.d.ts.map +1 -0
  189. package/dist/vta/pcs/vote-encrypted/0.5/payload.js +1398 -0
  190. package/dist/vta/pcs/vote-encrypted/0.5/payload.js.map +1 -0
  191. package/dist/vta/pcs/voter/accept/0.1/payload.d.ts +3 -3
  192. package/dist/vta/pcs/voter/accept/0.1/payload.js +1 -1
  193. package/dist/vta/pcs/voter/read/0.1/payload.d.ts +4 -4
  194. package/dist/vta/pcs/voter/read/0.1/payload.js +1 -1
  195. package/dist/vta/pcs/voter/read/0.2/payload.d.ts +4 -4
  196. package/dist/vta/pcs/voter/read/0.2/payload.js +1 -1
  197. package/dist/vta/pcs/voter/read/0.3/payload.d.ts +14 -2
  198. package/dist/vta/pcs/voter/read/0.3/payload.d.ts.map +1 -1
  199. package/dist/vta/pcs/voter/read/0.3/payload.js +1 -1
  200. package/dist/vta/pcs/voter/read/0.3/payload.js.map +1 -1
  201. package/dist/vta/pcs/voter/read/0.4/payload.d.ts +515 -0
  202. package/dist/vta/pcs/voter/read/0.4/payload.d.ts.map +1 -0
  203. package/dist/vta/pcs/voter/read/0.4/payload.js +285 -0
  204. package/dist/vta/pcs/voter/read/0.4/payload.js.map +1 -0
  205. package/dist/vta/pcs/voter/read/0.5/payload.d.ts +549 -0
  206. package/dist/vta/pcs/voter/read/0.5/payload.d.ts.map +1 -0
  207. package/dist/vta/pcs/voter/read/0.5/payload.js +300 -0
  208. package/dist/vta/pcs/voter/read/0.5/payload.js.map +1 -0
  209. package/dist/vta/pcs/voter/read/0.6/payload.d.ts +561 -0
  210. package/dist/vta/pcs/voter/read/0.6/payload.d.ts.map +1 -0
  211. package/dist/vta/pcs/voter/read/0.6/payload.js +312 -0
  212. package/dist/vta/pcs/voter/read/0.6/payload.js.map +1 -0
  213. package/dist/vta/pcs/voter/register/0.1/payload.d.ts +4 -4
  214. package/dist/vta/pcs/voter/register/0.1/payload.js +1 -1
  215. package/dist/vta/pcs/voter/register/0.2/payload.d.ts +4 -4
  216. package/dist/vta/pcs/voter/register/0.2/payload.js +1 -1
  217. package/dist/vta/pcs/voter/register/0.3/payload.d.ts +14 -2
  218. package/dist/vta/pcs/voter/register/0.3/payload.d.ts.map +1 -1
  219. package/dist/vta/pcs/voter/register/0.3/payload.js +1 -1
  220. package/dist/vta/pcs/voter/register/0.3/payload.js.map +1 -1
  221. package/dist/vta/pcs/voter/register/0.4/payload.d.ts +2324 -0
  222. package/dist/vta/pcs/voter/register/0.4/payload.d.ts.map +1 -0
  223. package/dist/vta/pcs/voter/register/0.4/payload.js +1352 -0
  224. package/dist/vta/pcs/voter/register/0.4/payload.js.map +1 -0
  225. package/dist/vta/pcs/voter/register/0.5/payload.d.ts +2312 -0
  226. package/dist/vta/pcs/voter/register/0.5/payload.d.ts.map +1 -0
  227. package/dist/vta/pcs/voter/register/0.5/payload.js +1352 -0
  228. package/dist/vta/pcs/voter/register/0.5/payload.js.map +1 -0
  229. package/dist/vtc/_shared/0.5/community-room.d.ts +16 -0
  230. package/dist/vtc/_shared/0.5/community-room.d.ts.map +1 -0
  231. package/dist/vtc/_shared/0.5/community-room.js +6 -0
  232. package/dist/vtc/_shared/0.5/community-room.js.map +1 -0
  233. package/dist/vtc/_shared/0.6/network-membership.d.ts +16 -0
  234. package/dist/vtc/_shared/0.6/network-membership.d.ts.map +1 -0
  235. package/dist/vtc/_shared/0.6/network-membership.js +6 -0
  236. package/dist/vtc/_shared/0.6/network-membership.js.map +1 -0
  237. package/dist/vtc/elections/create/0.1/payload.d.ts +4 -4
  238. package/dist/vtc/elections/create/0.1/payload.js +1 -1
  239. package/dist/vtc/elections/create/0.2/payload.d.ts +4 -4
  240. package/dist/vtc/elections/create/0.2/payload.js +1 -1
  241. package/dist/vtc/elections/create/0.3/payload.d.ts +4 -4
  242. package/dist/vtc/elections/create/0.3/payload.js +1 -1
  243. package/dist/vtc/elections/create/0.4/payload.d.ts +14 -2
  244. package/dist/vtc/elections/create/0.4/payload.d.ts.map +1 -1
  245. package/dist/vtc/elections/create/0.4/payload.js +1 -1
  246. package/dist/vtc/elections/create/0.4/payload.js.map +1 -1
  247. package/dist/vtc/elections/create/0.5/payload.d.ts +1790 -0
  248. package/dist/vtc/elections/create/0.5/payload.d.ts.map +1 -0
  249. package/dist/vtc/elections/create/0.5/payload.js +1092 -0
  250. package/dist/vtc/elections/create/0.5/payload.js.map +1 -0
  251. package/dist/vtc/elections/list/0.1/payload.d.ts +4 -4
  252. package/dist/vtc/elections/list/0.1/payload.js +1 -1
  253. package/dist/vtc/elections/list/0.2/payload.d.ts +4 -4
  254. package/dist/vtc/elections/list/0.2/payload.js +1 -1
  255. package/dist/vtc/elections/list/0.3/payload.d.ts +14 -2
  256. package/dist/vtc/elections/list/0.3/payload.d.ts.map +1 -1
  257. package/dist/vtc/elections/list/0.3/payload.js +1 -1
  258. package/dist/vtc/elections/list/0.3/payload.js.map +1 -1
  259. package/dist/vtc/elections/list/0.4/payload.d.ts +547 -0
  260. package/dist/vtc/elections/list/0.4/payload.d.ts.map +1 -0
  261. package/dist/vtc/elections/list/0.4/payload.js +304 -0
  262. package/dist/vtc/elections/list/0.4/payload.js.map +1 -0
  263. package/dist/vtc/elections/list/0.5/payload.d.ts +535 -0
  264. package/dist/vtc/elections/list/0.5/payload.d.ts.map +1 -0
  265. package/dist/vtc/elections/list/0.5/payload.js +304 -0
  266. package/dist/vtc/elections/list/0.5/payload.js.map +1 -0
  267. package/dist/vtc/elections/show/0.1/payload.d.ts +4 -4
  268. package/dist/vtc/elections/show/0.1/payload.js +1 -1
  269. package/dist/vtc/elections/show/0.2/payload.d.ts +4 -4
  270. package/dist/vtc/elections/show/0.2/payload.js +1 -1
  271. package/dist/vtc/elections/show/0.3/payload.d.ts +14 -2
  272. package/dist/vtc/elections/show/0.3/payload.d.ts.map +1 -1
  273. package/dist/vtc/elections/show/0.3/payload.js +1 -1
  274. package/dist/vtc/elections/show/0.3/payload.js.map +1 -1
  275. package/dist/vtc/elections/show/0.4/payload.d.ts +3290 -0
  276. package/dist/vtc/elections/show/0.4/payload.d.ts.map +1 -0
  277. package/dist/vtc/elections/show/0.4/payload.js +1931 -0
  278. package/dist/vtc/elections/show/0.4/payload.js.map +1 -0
  279. package/dist/vtc/elections/show/0.5/payload.d.ts +3318 -0
  280. package/dist/vtc/elections/show/0.5/payload.d.ts.map +1 -0
  281. package/dist/vtc/elections/show/0.5/payload.js +1946 -0
  282. package/dist/vtc/elections/show/0.5/payload.js.map +1 -0
  283. package/dist/vtc/elections/show/0.6/payload.d.ts +3306 -0
  284. package/dist/vtc/elections/show/0.6/payload.d.ts.map +1 -0
  285. package/dist/vtc/elections/show/0.6/payload.js +1946 -0
  286. package/dist/vtc/elections/show/0.6/payload.js.map +1 -0
  287. package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts +14 -2
  288. package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts.map +1 -1
  289. package/dist/vtc/elections/tickets/issue/0.1/payload.js +1 -1
  290. package/dist/vtc/elections/tickets/issue/0.1/payload.js.map +1 -1
  291. package/dist/vtc/elections/tickets/issue/0.2/payload.d.ts +651 -0
  292. package/dist/vtc/elections/tickets/issue/0.2/payload.d.ts.map +1 -0
  293. package/dist/vtc/elections/tickets/issue/0.2/payload.js +347 -0
  294. package/dist/vtc/elections/tickets/issue/0.2/payload.js.map +1 -0
  295. package/dist/vtc/elections/tickets/issue/0.3/payload.d.ts +639 -0
  296. package/dist/vtc/elections/tickets/issue/0.3/payload.d.ts.map +1 -0
  297. package/dist/vtc/elections/tickets/issue/0.3/payload.js +347 -0
  298. package/dist/vtc/elections/tickets/issue/0.3/payload.js.map +1 -0
  299. package/dist/vtc/networks/evidence/0.1/payload.d.ts +412 -0
  300. package/dist/vtc/networks/evidence/0.1/payload.d.ts.map +1 -0
  301. package/dist/vtc/networks/evidence/0.1/payload.js +233 -0
  302. package/dist/vtc/networks/evidence/0.1/payload.js.map +1 -0
  303. package/dist/vtc/networks/groups/register/0.1/payload.d.ts +680 -0
  304. package/dist/vtc/networks/groups/register/0.1/payload.d.ts.map +1 -0
  305. package/dist/vtc/networks/groups/register/0.1/payload.js +401 -0
  306. package/dist/vtc/networks/groups/register/0.1/payload.js.map +1 -0
  307. package/dist/vtc/networks/join/0.1/payload.d.ts +760 -0
  308. package/dist/vtc/networks/join/0.1/payload.d.ts.map +1 -0
  309. package/dist/vtc/networks/join/0.1/payload.js +445 -0
  310. package/dist/vtc/networks/join/0.1/payload.js.map +1 -0
  311. package/dist/vtc/networks/leave/0.1/payload.d.ts +664 -0
  312. package/dist/vtc/networks/leave/0.1/payload.d.ts.map +1 -0
  313. package/dist/vtc/networks/leave/0.1/payload.js +393 -0
  314. package/dist/vtc/networks/leave/0.1/payload.js.map +1 -0
  315. package/dist/vtc/networks/list/0.1/payload.d.ts +713 -0
  316. package/dist/vtc/networks/list/0.1/payload.d.ts.map +1 -0
  317. package/dist/vtc/networks/list/0.1/payload.js +417 -0
  318. package/dist/vtc/networks/list/0.1/payload.js.map +1 -0
  319. package/dist/vtc/networks/notice/0.1/payload.d.ts +210 -0
  320. package/dist/vtc/networks/notice/0.1/payload.d.ts.map +1 -0
  321. package/dist/vtc/networks/notice/0.1/payload.js +116 -0
  322. package/dist/vtc/networks/notice/0.1/payload.js.map +1 -0
  323. package/dist/vtc/networks/repudiate/0.1/payload.d.ts +680 -0
  324. package/dist/vtc/networks/repudiate/0.1/payload.d.ts.map +1 -0
  325. package/dist/vtc/networks/repudiate/0.1/payload.js +400 -0
  326. package/dist/vtc/networks/repudiate/0.1/payload.js.map +1 -0
  327. package/dist/vtc/networks/show/0.1/payload.d.ts +650 -0
  328. package/dist/vtc/networks/show/0.1/payload.d.ts.map +1 -0
  329. package/dist/vtc/networks/show/0.1/payload.js +388 -0
  330. package/dist/vtc/networks/show/0.1/payload.js.map +1 -0
  331. package/dist/vtc/rooms/community/archive/0.1/payload.d.ts +1644 -0
  332. package/dist/vtc/rooms/community/archive/0.1/payload.d.ts.map +1 -0
  333. package/dist/vtc/rooms/community/archive/0.1/payload.js +940 -0
  334. package/dist/vtc/rooms/community/archive/0.1/payload.js.map +1 -0
  335. package/dist/vtc/rooms/community/get/0.1/payload.d.ts +4 -4
  336. package/dist/vtc/rooms/community/get/0.1/payload.js +1 -1
  337. package/dist/vtc/rooms/community/get/0.2/payload.d.ts +4 -4
  338. package/dist/vtc/rooms/community/get/0.2/payload.js +1 -1
  339. package/dist/vtc/rooms/community/get/0.3/payload.d.ts +13 -2
  340. package/dist/vtc/rooms/community/get/0.3/payload.d.ts.map +1 -1
  341. package/dist/vtc/rooms/community/get/0.3/payload.js +1 -1
  342. package/dist/vtc/rooms/community/get/0.3/payload.js.map +1 -1
  343. package/dist/vtc/rooms/community/get/0.4/payload.d.ts +1405 -0
  344. package/dist/vtc/rooms/community/get/0.4/payload.d.ts.map +1 -0
  345. package/dist/vtc/rooms/community/get/0.4/payload.js +817 -0
  346. package/dist/vtc/rooms/community/get/0.4/payload.js.map +1 -0
  347. package/dist/vtc/rooms/community/list/0.1/payload.d.ts +4 -4
  348. package/dist/vtc/rooms/community/list/0.1/payload.js +1 -1
  349. package/dist/vtc/rooms/community/list/0.2/payload.d.ts +4 -4
  350. package/dist/vtc/rooms/community/list/0.2/payload.js +1 -1
  351. package/dist/vtc/rooms/community/list/0.3/payload.d.ts +13 -2
  352. package/dist/vtc/rooms/community/list/0.3/payload.d.ts.map +1 -1
  353. package/dist/vtc/rooms/community/list/0.3/payload.js +1 -1
  354. package/dist/vtc/rooms/community/list/0.3/payload.js.map +1 -1
  355. package/dist/vtc/rooms/community/list/0.4/payload.d.ts +1505 -0
  356. package/dist/vtc/rooms/community/list/0.4/payload.d.ts.map +1 -0
  357. package/dist/vtc/rooms/community/list/0.4/payload.js +854 -0
  358. package/dist/vtc/rooms/community/list/0.4/payload.js.map +1 -0
  359. package/dist/vtc/rooms/community/members/add/0.1/payload.d.ts +13 -2
  360. package/dist/vtc/rooms/community/members/add/0.1/payload.d.ts.map +1 -1
  361. package/dist/vtc/rooms/community/members/add/0.1/payload.js +1 -1
  362. package/dist/vtc/rooms/community/members/add/0.1/payload.js.map +1 -1
  363. package/dist/vtc/rooms/community/members/add/0.2/payload.d.ts +569 -0
  364. package/dist/vtc/rooms/community/members/add/0.2/payload.d.ts.map +1 -0
  365. package/dist/vtc/rooms/community/members/add/0.2/payload.js +340 -0
  366. package/dist/vtc/rooms/community/members/add/0.2/payload.js.map +1 -0
  367. package/dist/vtc/rooms/community/members/list/0.1/payload.d.ts +13 -2
  368. package/dist/vtc/rooms/community/members/list/0.1/payload.d.ts.map +1 -1
  369. package/dist/vtc/rooms/community/members/list/0.1/payload.js +1 -1
  370. package/dist/vtc/rooms/community/members/list/0.1/payload.js.map +1 -1
  371. package/dist/vtc/rooms/community/members/list/0.2/payload.d.ts +588 -0
  372. package/dist/vtc/rooms/community/members/list/0.2/payload.d.ts.map +1 -0
  373. package/dist/vtc/rooms/community/members/list/0.2/payload.js +341 -0
  374. package/dist/vtc/rooms/community/members/list/0.2/payload.js.map +1 -0
  375. package/dist/vtc/rooms/community/removal/cancel/0.1/payload.d.ts +1440 -0
  376. package/dist/vtc/rooms/community/removal/cancel/0.1/payload.d.ts.map +1 -0
  377. package/dist/vtc/rooms/community/removal/cancel/0.1/payload.js +835 -0
  378. package/dist/vtc/rooms/community/removal/cancel/0.1/payload.js.map +1 -0
  379. package/dist/vtc/rooms/community/remove/0.1/payload.d.ts +1604 -0
  380. package/dist/vtc/rooms/community/remove/0.1/payload.d.ts.map +1 -0
  381. package/dist/vtc/rooms/community/remove/0.1/payload.js +921 -0
  382. package/dist/vtc/rooms/community/remove/0.1/payload.js.map +1 -0
  383. package/dist/vtc/rooms/community/unarchive/0.1/payload.d.ts +1460 -0
  384. package/dist/vtc/rooms/community/unarchive/0.1/payload.d.ts.map +1 -0
  385. package/dist/vtc/rooms/community/unarchive/0.1/payload.js +845 -0
  386. package/dist/vtc/rooms/community/unarchive/0.1/payload.js.map +1 -0
  387. package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts +13 -2
  388. package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts.map +1 -1
  389. package/dist/vtc/rooms/memberships/list/0.1/payload.js +1 -1
  390. package/dist/vtc/rooms/memberships/list/0.1/payload.js.map +1 -1
  391. package/dist/vtc/rooms/memberships/list/0.2/payload.d.ts +830 -0
  392. package/dist/vtc/rooms/memberships/list/0.2/payload.d.ts.map +1 -0
  393. package/dist/vtc/rooms/memberships/list/0.2/payload.js +498 -0
  394. package/dist/vtc/rooms/memberships/list/0.2/payload.js.map +1 -0
  395. package/package.json +1 -1
  396. package/src/_extends.ts +6 -0
  397. package/src/_shared/components.ts +497 -0
  398. package/src/index.ts +150 -0
  399. package/src/notifications/_shared/0.1/notification.ts +23 -0
  400. package/src/notifications/notify/0.1/payload.ts +420 -0
  401. package/src/notifications/relay/0.1/payload.ts +220 -0
  402. package/src/rooms/keys/act/0.1/payload.ts +5 -5
  403. package/src/rooms/keys/act/0.10/payload.ts +396 -0
  404. package/src/rooms/keys/act/0.2/payload.ts +5 -5
  405. package/src/rooms/keys/act/0.3/payload.ts +5 -5
  406. package/src/rooms/keys/act/0.4/payload.ts +5 -5
  407. package/src/rooms/keys/act/0.5/payload.ts +5 -5
  408. package/src/rooms/keys/act/0.6/payload.ts +5 -5
  409. package/src/rooms/keys/act/0.7/payload.ts +5 -5
  410. package/src/rooms/keys/act/0.8/payload.ts +5 -5
  411. package/src/rooms/keys/act/0.9/payload.ts +15 -3
  412. package/src/voting/_shared/0.4/voting.ts +17 -0
  413. package/src/voting/election/register/0.1/payload.ts +5 -5
  414. package/src/voting/election/register/0.2/payload.ts +5 -5
  415. package/src/voting/election/register/0.3/payload.ts +14 -3
  416. package/src/voting/election/register/0.4/payload.ts +1307 -0
  417. package/src/voting/election/show/0.1/payload.ts +5 -5
  418. package/src/voting/election/show/0.2/payload.ts +5 -5
  419. package/src/voting/election/show/0.3/payload.ts +14 -3
  420. package/src/voting/election/show/0.4/payload.ts +1249 -0
  421. package/src/vta/notifications/_shared/0.1/held-notification.ts +17 -0
  422. package/src/vta/notifications/dismiss/0.1/payload.ts +214 -0
  423. package/src/vta/notifications/list/0.1/payload.ts +688 -0
  424. package/src/vta/notifications/show/0.1/payload.ts +630 -0
  425. package/src/vta/pcs/trustee/deal/0.2/payload.ts +5 -5
  426. package/src/vta/pcs/trustee/deal/0.3/payload.ts +5 -5
  427. package/src/vta/pcs/trustee/deal/0.4/payload.ts +14 -3
  428. package/src/vta/pcs/trustee/deal/0.5/payload.ts +1248 -0
  429. package/src/vta/pcs/trustee/enrol/0.1/payload.ts +5 -5
  430. package/src/vta/pcs/trustee/enrol/0.2/payload.ts +5 -5
  431. package/src/vta/pcs/trustee/enrol/0.3/payload.ts +14 -3
  432. package/src/vta/pcs/trustee/enrol/0.4/payload.ts +1207 -0
  433. package/src/vta/pcs/trustee/justify/0.2/payload.ts +5 -5
  434. package/src/vta/pcs/trustee/justify/0.3/payload.ts +5 -5
  435. package/src/vta/pcs/trustee/justify/0.4/payload.ts +14 -3
  436. package/src/vta/pcs/trustee/justify/0.5/payload.ts +1267 -0
  437. package/src/vta/pcs/trustee/keys/0.2/payload.ts +5 -5
  438. package/src/vta/pcs/trustee/keys/0.3/payload.ts +5 -5
  439. package/src/vta/pcs/trustee/keys/0.4/payload.ts +14 -3
  440. package/src/vta/pcs/trustee/keys/0.5/payload.ts +1294 -0
  441. package/src/vta/pcs/trustee/read/0.1/payload.ts +5 -5
  442. package/src/vta/pcs/trustee/read/0.2/payload.ts +5 -5
  443. package/src/vta/pcs/trustee/read/0.3/payload.ts +15 -3
  444. package/src/vta/pcs/trustee/read/0.4/payload.ts +385 -0
  445. package/src/vta/pcs/vote/0.1/payload.ts +5 -5
  446. package/src/vta/pcs/vote/0.2/payload.ts +5 -5
  447. package/src/vta/pcs/vote/0.3/payload.ts +14 -3
  448. package/src/vta/pcs/vote/0.4/payload.ts +1465 -0
  449. package/src/vta/pcs/vote-encrypted/0.2/payload.ts +5 -5
  450. package/src/vta/pcs/vote-encrypted/0.3/payload.ts +5 -5
  451. package/src/vta/pcs/vote-encrypted/0.4/payload.ts +14 -3
  452. package/src/vta/pcs/vote-encrypted/0.5/payload.ts +1469 -0
  453. package/src/vta/pcs/voter/accept/0.1/payload.ts +2 -2
  454. package/src/vta/pcs/voter/read/0.1/payload.ts +5 -5
  455. package/src/vta/pcs/voter/read/0.2/payload.ts +5 -5
  456. package/src/vta/pcs/voter/read/0.3/payload.ts +15 -3
  457. package/src/vta/pcs/voter/read/0.4/payload.ts +375 -0
  458. package/src/vta/pcs/voter/read/0.5/payload.ts +394 -0
  459. package/src/vta/pcs/voter/read/0.6/payload.ts +398 -0
  460. package/src/vta/pcs/voter/register/0.1/payload.ts +5 -5
  461. package/src/vta/pcs/voter/register/0.2/payload.ts +5 -5
  462. package/src/vta/pcs/voter/register/0.3/payload.ts +15 -3
  463. package/src/vta/pcs/voter/register/0.4/payload.ts +1478 -0
  464. package/src/vta/pcs/voter/register/0.5/payload.ts +1466 -0
  465. package/src/vtc/_shared/0.5/community-room.ts +17 -0
  466. package/src/vtc/_shared/0.6/network-membership.ts +17 -0
  467. package/src/vtc/elections/create/0.1/payload.ts +5 -5
  468. package/src/vtc/elections/create/0.2/payload.ts +5 -5
  469. package/src/vtc/elections/create/0.3/payload.ts +5 -5
  470. package/src/vtc/elections/create/0.4/payload.ts +15 -3
  471. package/src/vtc/elections/create/0.5/payload.ts +1141 -0
  472. package/src/vtc/elections/list/0.1/payload.ts +5 -5
  473. package/src/vtc/elections/list/0.2/payload.ts +5 -5
  474. package/src/vtc/elections/list/0.3/payload.ts +15 -3
  475. package/src/vtc/elections/list/0.4/payload.ts +399 -0
  476. package/src/vtc/elections/list/0.5/payload.ts +387 -0
  477. package/src/vtc/elections/show/0.1/payload.ts +5 -5
  478. package/src/vtc/elections/show/0.2/payload.ts +5 -5
  479. package/src/vtc/elections/show/0.3/payload.ts +15 -3
  480. package/src/vtc/elections/show/0.4/payload.ts +2043 -0
  481. package/src/vtc/elections/show/0.5/payload.ts +2062 -0
  482. package/src/vtc/elections/show/0.6/payload.ts +2050 -0
  483. package/src/vtc/elections/tickets/issue/0.1/payload.ts +15 -3
  484. package/src/vtc/elections/tickets/issue/0.2/payload.ts +441 -0
  485. package/src/vtc/elections/tickets/issue/0.3/payload.ts +429 -0
  486. package/src/vtc/networks/evidence/0.1/payload.ts +290 -0
  487. package/src/vtc/networks/groups/register/0.1/payload.ts +446 -0
  488. package/src/vtc/networks/join/0.1/payload.ts +492 -0
  489. package/src/vtc/networks/leave/0.1/payload.ts +434 -0
  490. package/src/vtc/networks/list/0.1/payload.ts +463 -0
  491. package/src/vtc/networks/notice/0.1/payload.ts +172 -0
  492. package/src/vtc/networks/repudiate/0.1/payload.ts +445 -0
  493. package/src/vtc/networks/show/0.1/payload.ts +425 -0
  494. package/src/vtc/rooms/community/archive/0.1/payload.ts +995 -0
  495. package/src/vtc/rooms/community/get/0.1/payload.ts +5 -5
  496. package/src/vtc/rooms/community/get/0.2/payload.ts +5 -5
  497. package/src/vtc/rooms/community/get/0.3/payload.ts +14 -3
  498. package/src/vtc/rooms/community/get/0.4/payload.ts +851 -0
  499. package/src/vtc/rooms/community/list/0.1/payload.ts +5 -5
  500. package/src/vtc/rooms/community/list/0.2/payload.ts +5 -5
  501. package/src/vtc/rooms/community/list/0.3/payload.ts +14 -3
  502. package/src/vtc/rooms/community/list/0.4/payload.ts +915 -0
  503. package/src/vtc/rooms/community/members/add/0.1/payload.ts +14 -3
  504. package/src/vtc/rooms/community/members/add/0.2/payload.ts +384 -0
  505. package/src/vtc/rooms/community/members/list/0.1/payload.ts +14 -3
  506. package/src/vtc/rooms/community/members/list/0.2/payload.ts +394 -0
  507. package/src/vtc/rooms/community/removal/cancel/0.1/payload.ts +870 -0
  508. package/src/vtc/rooms/community/remove/0.1/payload.ts +968 -0
  509. package/src/vtc/rooms/community/unarchive/0.1/payload.ts +884 -0
  510. package/src/vtc/rooms/memberships/list/0.1/payload.ts +14 -3
  511. package/src/vtc/rooms/memberships/list/0.2/payload.ts +543 -0
@@ -0,0 +1,2362 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/pcs/vote-encrypted/0.5/payload.schema.json
4
+ */
5
+ import type { Answer, Ballot, BoardVisibility, ChoiceQuestion, DigestMultibase, ElectionId, Ext, Key_VotingV0_1 as Key, Manifest_VotingV0_4 as Manifest, Multibase_VotingV0_1 as Multibase, Question, QuestionOption, RankingQuestion, Revote, RollRule_VotingV0_4 as RollRule, ScoreQuestion, SecrecyLevel, SignedRequest, TextQuestion, TrusteeCeremony, Trustees, VotingParameters } from "../../../../_shared/components.js";
6
+ /**
7
+ * The voter's VTA checks a ballot against the manifest, encrypts it to the election key as the election's level requires, and returns the cast signed by a key made for it alone.
8
+ */
9
+ export interface VTAPCSVoteEncryptedPayload {
10
+ /**
11
+ * The context the voter belongs to.
12
+ */
13
+ contextId: string;
14
+ /**
15
+ * The community's DID.
16
+ */
17
+ community: string;
18
+ parameters: VotingParameters;
19
+ manifest: Manifest;
20
+ ballot: Ballot;
21
+ /**
22
+ * 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.
23
+ */
24
+ ceremony: TrusteeCeremony;
25
+ ext?: Ext;
26
+ }
27
+ export interface VTAPCSVoteEncryptedResponsePayload {
28
+ castDocument: CastDocument;
29
+ tag: Multibase;
30
+ ext?: Ext;
31
+ }
32
+ /**
33
+ * The voting/ballot/cast-encrypted request, signed by a key made for this cast alone (VTI-VOT-003).
34
+ */
35
+ export interface CastDocument {
36
+ id: string;
37
+ type: "https://trusttasks.org/spec/voting/ballot/cast-encrypted/0.1";
38
+ /**
39
+ * The signer.
40
+ */
41
+ issuer: string;
42
+ /**
43
+ * The ballot box.
44
+ */
45
+ recipient: string;
46
+ issuedAt: string;
47
+ expiresAt?: string;
48
+ /**
49
+ * That task's request payload.
50
+ */
51
+ payload: {};
52
+ /**
53
+ * A Data Integrity proof by an `authentication` key of `issuer`.
54
+ */
55
+ proof: {};
56
+ }
57
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
58
+ export type { Answer, Ballot, BoardVisibility, ChoiceQuestion, DigestMultibase, ElectionId, Ext, Key, Manifest, Multibase, Question, QuestionOption, RankingQuestion, Revote, RollRule, ScoreQuestion, SecrecyLevel, SignedRequest, TextQuestion, TrusteeCeremony, Trustees, VotingParameters };
59
+ /** Trust Task type URI. */
60
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/pcs/vote-encrypted/0.5";
61
+ /**
62
+ * The earlier version of this specification that this one declares it
63
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
64
+ * `null`. Only the direct declaration — follow the chain with
65
+ * `extendsChain` / `readForSpec`.
66
+ */
67
+ export declare const EXTENDS: string | null;
68
+ /**
69
+ * Why this version is deprecated, or `null` while it is current. A
70
+ * superseded or retired version is still supported, and is withdrawn from
71
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
72
+ * Versions").
73
+ */
74
+ export declare const DEPRECATION: string | null;
75
+ /** Stable alias for this specification's request payload shape. */
76
+ export type Payload = VTAPCSVoteEncryptedPayload;
77
+ /** Trust Task response type URI (request type URI + "#response"). */
78
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/pcs/vote-encrypted/0.5#response";
79
+ /** Stable alias for this specification's success-response payload shape. */
80
+ export type Response = VTAPCSVoteEncryptedResponsePayload;
81
+ /**
82
+ * This specification's payload schema, as a value.
83
+ *
84
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
85
+ * rather than only as a `.json` file because TypeScript types are erased
86
+ * at runtime: without a schema a consumer has nothing to validate, and
87
+ * every REQUIRED payload member is optional in practice. Cross-file
88
+ * `$ref`s are already inlined, so it needs no resolver.
89
+ */
90
+ export declare const PAYLOAD_SCHEMA: {
91
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
92
+ readonly $id: "https://trusttasks.org/spec/vta/pcs/vote-encrypted/0.5";
93
+ readonly title: "VTA PCS — Vote Encrypted — payload";
94
+ readonly description: "The voter's VTA checks a ballot against the manifest, encrypts it to the election key as the election's level requires, and returns the cast signed by a key made for it alone.";
95
+ readonly type: "object";
96
+ readonly additionalProperties: false;
97
+ readonly required: readonly ["contextId", "community", "parameters", "manifest", "ballot", "ceremony"];
98
+ readonly properties: {
99
+ readonly contextId: {
100
+ readonly type: "string";
101
+ readonly minLength: 1;
102
+ readonly maxLength: 256;
103
+ readonly description: "The context the voter belongs to.";
104
+ };
105
+ readonly community: {
106
+ readonly type: "string";
107
+ readonly minLength: 1;
108
+ readonly maxLength: 2048;
109
+ readonly description: "The community's DID.";
110
+ };
111
+ readonly parameters: {
112
+ readonly $ref: "#/$defs/VotingParameters";
113
+ };
114
+ readonly manifest: {
115
+ readonly $ref: "#/$defs/Manifest";
116
+ };
117
+ readonly ballot: {
118
+ readonly $ref: "#/$defs/Ballot";
119
+ };
120
+ readonly ceremony: {
121
+ readonly $ref: "#/$defs/TrusteeCeremony";
122
+ 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.";
123
+ };
124
+ readonly ext: {
125
+ readonly $ref: "#/$defs/Ext";
126
+ };
127
+ };
128
+ readonly $defs: {
129
+ readonly Response: {
130
+ readonly $anchor: "response";
131
+ readonly title: "VTA PCS — Vote Encrypted — response payload";
132
+ readonly type: "object";
133
+ readonly additionalProperties: false;
134
+ readonly required: readonly ["castDocument", "tag"];
135
+ readonly properties: {
136
+ readonly castDocument: {
137
+ readonly title: "CastDocument";
138
+ readonly description: "The voting/ballot/cast-encrypted request, signed by a key made for this cast alone (VTI-VOT-003).";
139
+ readonly type: "object";
140
+ readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
141
+ readonly properties: {
142
+ readonly id: {
143
+ readonly type: "string";
144
+ 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}$";
145
+ };
146
+ readonly type: {
147
+ readonly const: "https://trusttasks.org/spec/voting/ballot/cast-encrypted/0.1";
148
+ };
149
+ readonly issuer: {
150
+ readonly type: "string";
151
+ readonly minLength: 1;
152
+ readonly maxLength: 2048;
153
+ readonly description: "The signer.";
154
+ };
155
+ readonly recipient: {
156
+ readonly type: "string";
157
+ readonly minLength: 1;
158
+ readonly maxLength: 2048;
159
+ readonly description: "The ballot box.";
160
+ };
161
+ readonly issuedAt: {
162
+ readonly type: "string";
163
+ readonly format: "date-time";
164
+ };
165
+ readonly expiresAt: {
166
+ readonly type: "string";
167
+ readonly format: "date-time";
168
+ };
169
+ readonly payload: {
170
+ readonly type: "object";
171
+ readonly description: "That task's request payload.";
172
+ };
173
+ readonly proof: {
174
+ readonly type: "object";
175
+ readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
176
+ };
177
+ };
178
+ };
179
+ readonly tag: {
180
+ readonly $ref: "#/$defs/Multibase";
181
+ };
182
+ readonly ext: {
183
+ readonly $ref: "#/$defs/Ext";
184
+ };
185
+ };
186
+ };
187
+ readonly Ext: {
188
+ readonly title: "Ext";
189
+ 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.";
190
+ readonly type: "object";
191
+ readonly minProperties: 1;
192
+ readonly additionalProperties: true;
193
+ readonly propertyNames: {
194
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
195
+ };
196
+ };
197
+ readonly Multibase: {
198
+ readonly title: "Multibase";
199
+ readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
200
+ readonly type: "string";
201
+ readonly maxLength: 16384;
202
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
203
+ };
204
+ readonly TrusteeCeremony: {
205
+ readonly title: "TrusteeCeremony";
206
+ 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.";
207
+ readonly type: "array";
208
+ readonly minItems: 1;
209
+ readonly maxItems: 4224;
210
+ readonly items: {
211
+ readonly $ref: "#/$defs/SignedRequest";
212
+ };
213
+ };
214
+ readonly SignedRequest: {
215
+ readonly title: "SignedRequest";
216
+ 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.";
217
+ readonly type: "object";
218
+ readonly minProperties: 1;
219
+ };
220
+ readonly Ballot: {
221
+ readonly title: "Ballot";
222
+ readonly description: "An open ballot: one answer per question of the manifest, in any order. The bytes a cast's proof binds are the RFC 8785 (JCS) canonicalization of this object as received.";
223
+ readonly type: "object";
224
+ readonly additionalProperties: false;
225
+ readonly required: readonly ["electionId", "manifestDigest", "answers"];
226
+ readonly properties: {
227
+ readonly electionId: {
228
+ readonly $ref: "#/$defs/ElectionId";
229
+ };
230
+ readonly manifestDigest: {
231
+ readonly $ref: "#/$defs/DigestMultibase";
232
+ };
233
+ readonly answers: {
234
+ readonly type: "array";
235
+ readonly minItems: 1;
236
+ readonly maxItems: 128;
237
+ readonly items: {
238
+ readonly $ref: "#/$defs/Answer";
239
+ };
240
+ };
241
+ };
242
+ };
243
+ readonly Answer: {
244
+ readonly title: "Answer";
245
+ readonly description: "The answer to one question. Exactly one member besides `question` is present, matching the question's type, or `abstain` for an optional question left unanswered.";
246
+ readonly type: "object";
247
+ readonly additionalProperties: false;
248
+ readonly required: readonly ["question"];
249
+ readonly minProperties: 2;
250
+ readonly maxProperties: 2;
251
+ readonly properties: {
252
+ readonly question: {
253
+ readonly $ref: "#/$defs/Key";
254
+ };
255
+ readonly choice: {
256
+ readonly type: "array";
257
+ readonly items: {
258
+ readonly $ref: "#/$defs/Key";
259
+ };
260
+ readonly uniqueItems: true;
261
+ };
262
+ readonly ranking: {
263
+ readonly type: "array";
264
+ readonly items: {
265
+ readonly $ref: "#/$defs/Key";
266
+ };
267
+ readonly uniqueItems: true;
268
+ };
269
+ readonly scores: {
270
+ readonly type: "object";
271
+ readonly propertyNames: {
272
+ readonly $ref: "#/$defs/Key";
273
+ };
274
+ readonly additionalProperties: {
275
+ readonly type: "integer";
276
+ };
277
+ };
278
+ readonly text: {
279
+ readonly type: "string";
280
+ readonly maxLength: 4096;
281
+ };
282
+ readonly abstain: {
283
+ readonly const: true;
284
+ };
285
+ };
286
+ };
287
+ readonly Key: {
288
+ readonly title: "Key";
289
+ readonly description: "A question or option key, unique within its manifest or question.";
290
+ readonly type: "string";
291
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
292
+ };
293
+ readonly ElectionId: {
294
+ readonly title: "ElectionId";
295
+ 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.";
296
+ readonly type: "string";
297
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
298
+ };
299
+ readonly DigestMultibase: {
300
+ readonly title: "DigestMultibase";
301
+ 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`.";
302
+ readonly type: "string";
303
+ readonly minLength: 16;
304
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
305
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
306
+ };
307
+ readonly Manifest: {
308
+ readonly title: "Manifest";
309
+ 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).";
310
+ readonly type: "object";
311
+ readonly additionalProperties: false;
312
+ readonly required: readonly ["electionId", "community", "questions", "secrecy", "roll", "registrationOpensAt", "votingOpensAt", "votingClosesAt", "revote", "board", "ballotBox", "binding", "allowEarlyClose", "resultsBeforeClose", "textReleaseThreshold"];
313
+ readonly properties: {
314
+ readonly electionId: {
315
+ readonly $ref: "#/$defs/ElectionId";
316
+ };
317
+ readonly community: {
318
+ readonly type: "string";
319
+ readonly minLength: 1;
320
+ readonly maxLength: 2048;
321
+ readonly description: "The community's DID.";
322
+ };
323
+ readonly title: {
324
+ readonly type: "string";
325
+ readonly maxLength: 512;
326
+ };
327
+ readonly description: {
328
+ readonly type: "string";
329
+ readonly maxLength: 8192;
330
+ };
331
+ readonly questions: {
332
+ readonly type: "array";
333
+ readonly minItems: 1;
334
+ readonly maxItems: 128;
335
+ readonly items: {
336
+ readonly $ref: "#/$defs/Question";
337
+ };
338
+ };
339
+ readonly secrecy: {
340
+ readonly $ref: "#/$defs/SecrecyLevel";
341
+ };
342
+ readonly roll: {
343
+ readonly $ref: "#/$defs/RollRule";
344
+ };
345
+ readonly registrationOpensAt: {
346
+ readonly type: "string";
347
+ readonly format: "date-time";
348
+ };
349
+ readonly votingOpensAt: {
350
+ readonly type: "string";
351
+ readonly format: "date-time";
352
+ };
353
+ readonly votingClosesAt: {
354
+ readonly type: "string";
355
+ readonly format: "date-time";
356
+ };
357
+ readonly revote: {
358
+ readonly $ref: "#/$defs/Revote";
359
+ };
360
+ readonly board: {
361
+ readonly type: "object";
362
+ readonly additionalProperties: false;
363
+ readonly required: readonly ["visibility", "auditors"];
364
+ readonly properties: {
365
+ readonly visibility: {
366
+ readonly $ref: "#/$defs/BoardVisibility";
367
+ };
368
+ readonly auditors: {
369
+ readonly type: "array";
370
+ readonly items: {
371
+ readonly type: "string";
372
+ readonly minLength: 1;
373
+ readonly maxLength: 2048;
374
+ };
375
+ readonly uniqueItems: true;
376
+ };
377
+ };
378
+ };
379
+ readonly ballotBox: {
380
+ readonly type: "string";
381
+ readonly minLength: 1;
382
+ readonly maxLength: 2048;
383
+ readonly description: "The DID of the voting service that holds the board.";
384
+ };
385
+ readonly trustees: {
386
+ readonly $ref: "#/$defs/Trustees";
387
+ };
388
+ readonly binding: {
389
+ readonly type: "boolean";
390
+ readonly description: "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081).";
391
+ };
392
+ readonly allowEarlyClose: {
393
+ readonly type: "boolean";
394
+ };
395
+ readonly resultsBeforeClose: {
396
+ readonly type: "boolean";
397
+ readonly description: "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061).";
398
+ };
399
+ readonly textReleaseThreshold: {
400
+ readonly type: "integer";
401
+ readonly minimum: 1;
402
+ readonly description: "Counted ballots required before any text answer is disclosed (VTI-VOT-065). At least 1, and SHOULD be at least 10: a written answer can identify its author by what it says or how it is phrased, and the fewer the ballots released together, the easier that is. Where it is below 10, the disclosure a member is shown before they request a ticket MUST say so, and MUST say that a written answer may identify its author (VTI-VOT-090).";
403
+ };
404
+ };
405
+ };
406
+ readonly Trustees: {
407
+ readonly title: "Trustees";
408
+ 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.";
409
+ readonly type: "object";
410
+ readonly additionalProperties: false;
411
+ readonly required: readonly ["dids", "threshold"];
412
+ readonly properties: {
413
+ readonly dids: {
414
+ readonly type: "array";
415
+ readonly minItems: 2;
416
+ readonly items: {
417
+ readonly type: "string";
418
+ readonly minLength: 1;
419
+ readonly maxLength: 2048;
420
+ };
421
+ readonly uniqueItems: true;
422
+ };
423
+ readonly threshold: {
424
+ readonly type: "integer";
425
+ readonly minimum: 2;
426
+ };
427
+ };
428
+ };
429
+ readonly BoardVisibility: {
430
+ readonly title: "BoardVisibility";
431
+ 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).";
432
+ readonly type: "string";
433
+ readonly enum: readonly ["public", "private"];
434
+ };
435
+ readonly Revote: {
436
+ readonly title: "Revote";
437
+ readonly description: "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).";
438
+ readonly type: "string";
439
+ readonly enum: readonly ["replace", "refuse"];
440
+ };
441
+ readonly RollRule: {
442
+ readonly title: "RollRule";
443
+ readonly description: "Who may be issued a ticket (VTI-VOT-021): the community's active members (`members`), its active members and the parties `listed` names (`membersAndListed`), only the parties `listed` names (`listed`), or the holders of a membership credential for the one DID `memberOf` names (`credential`), proven by presentation when the holder claims their ticket and never resolved when the election is created (VTI-VOT-025). `memberOf` is present exactly when `rule` is `credential`, and `listed` is never present with it.";
444
+ readonly type: "object";
445
+ readonly additionalProperties: false;
446
+ readonly required: readonly ["rule"];
447
+ readonly properties: {
448
+ readonly rule: {
449
+ readonly type: "string";
450
+ readonly enum: readonly ["members", "membersAndListed", "listed", "credential"];
451
+ };
452
+ readonly listed: {
453
+ readonly type: "array";
454
+ readonly items: {
455
+ readonly type: "string";
456
+ readonly minLength: 1;
457
+ readonly maxLength: 2048;
458
+ readonly description: "A DID enfranchised by name.";
459
+ };
460
+ readonly uniqueItems: true;
461
+ };
462
+ readonly memberOf: {
463
+ readonly type: "string";
464
+ readonly minLength: 8;
465
+ readonly maxLength: 2048;
466
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
467
+ readonly description: "The DID whose membership credential admits its holder, under the `credential` rule: this community, one of its groups, or a party that is itself an active member of this community — holding a membership credential this community issued it — such as another community, a group of another community, or a network (VTI-VOT-026). Always a DID, never a group's local identifier or name. A community refuses to create an election naming any other DID (vtc/elections/create:rollUntrusted).";
468
+ };
469
+ };
470
+ readonly dependentSchemas: {
471
+ readonly rule: {
472
+ readonly anyOf: readonly [{
473
+ readonly required: readonly ["memberOf"];
474
+ }, {
475
+ readonly properties: {
476
+ readonly rule: {
477
+ readonly enum: readonly ["members", "membersAndListed", "listed"];
478
+ };
479
+ };
480
+ }];
481
+ };
482
+ readonly memberOf: {
483
+ readonly properties: {
484
+ readonly rule: {
485
+ readonly const: "credential";
486
+ };
487
+ };
488
+ readonly not: {
489
+ readonly required: readonly ["listed"];
490
+ };
491
+ };
492
+ };
493
+ };
494
+ readonly SecrecyLevel: {
495
+ readonly title: "SecrecyLevel";
496
+ 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).";
497
+ readonly type: "string";
498
+ readonly enum: readonly ["open", "sealed", "talliedEncrypted"];
499
+ };
500
+ readonly Question: {
501
+ readonly title: "Question";
502
+ readonly description: "One question. Tagged union over `type`.";
503
+ readonly oneOf: readonly [{
504
+ readonly title: "ChoiceQuestion";
505
+ readonly description: "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.";
506
+ readonly type: "object";
507
+ readonly additionalProperties: false;
508
+ readonly required: readonly ["key", "type", "options", "minSelections", "maxSelections", "optional"];
509
+ readonly properties: {
510
+ readonly key: {
511
+ readonly $ref: "#/$defs/Key";
512
+ };
513
+ readonly type: {
514
+ readonly const: "choice";
515
+ };
516
+ readonly text: {
517
+ readonly type: "string";
518
+ readonly maxLength: 2048;
519
+ };
520
+ readonly options: {
521
+ readonly type: "array";
522
+ readonly minItems: 2;
523
+ readonly maxItems: 256;
524
+ readonly items: {
525
+ readonly $ref: "#/$defs/QuestionOption";
526
+ };
527
+ };
528
+ readonly minSelections: {
529
+ readonly type: "integer";
530
+ readonly minimum: 0;
531
+ };
532
+ readonly maxSelections: {
533
+ readonly type: "integer";
534
+ readonly minimum: 1;
535
+ };
536
+ readonly optional: {
537
+ readonly type: "boolean";
538
+ };
539
+ };
540
+ }, {
541
+ readonly title: "RankingQuestion";
542
+ readonly description: "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.";
543
+ readonly type: "object";
544
+ readonly additionalProperties: false;
545
+ readonly required: readonly ["key", "type", "options", "partial", "optional"];
546
+ readonly properties: {
547
+ readonly key: {
548
+ readonly $ref: "#/$defs/Key";
549
+ };
550
+ readonly type: {
551
+ readonly const: "ranking";
552
+ };
553
+ readonly text: {
554
+ readonly type: "string";
555
+ readonly maxLength: 2048;
556
+ };
557
+ readonly options: {
558
+ readonly type: "array";
559
+ readonly minItems: 2;
560
+ readonly maxItems: 64;
561
+ readonly items: {
562
+ readonly $ref: "#/$defs/QuestionOption";
563
+ };
564
+ };
565
+ readonly partial: {
566
+ readonly type: "boolean";
567
+ };
568
+ readonly optional: {
569
+ readonly type: "boolean";
570
+ };
571
+ };
572
+ }, {
573
+ readonly title: "ScoreQuestion";
574
+ readonly description: "Give each option an integer score within [min, max].";
575
+ readonly type: "object";
576
+ readonly additionalProperties: false;
577
+ readonly required: readonly ["key", "type", "options", "min", "max", "optional"];
578
+ readonly properties: {
579
+ readonly key: {
580
+ readonly $ref: "#/$defs/Key";
581
+ };
582
+ readonly type: {
583
+ readonly const: "score";
584
+ };
585
+ readonly text: {
586
+ readonly type: "string";
587
+ readonly maxLength: 2048;
588
+ };
589
+ readonly options: {
590
+ readonly type: "array";
591
+ readonly minItems: 1;
592
+ readonly maxItems: 256;
593
+ readonly items: {
594
+ readonly $ref: "#/$defs/QuestionOption";
595
+ };
596
+ };
597
+ readonly min: {
598
+ readonly type: "integer";
599
+ };
600
+ readonly max: {
601
+ readonly type: "integer";
602
+ };
603
+ readonly optional: {
604
+ readonly type: "boolean";
605
+ };
606
+ };
607
+ }, {
608
+ readonly title: "TextQuestion";
609
+ readonly description: "Free text of at most `maxLength` characters.";
610
+ readonly type: "object";
611
+ readonly additionalProperties: false;
612
+ readonly required: readonly ["key", "type", "maxLength", "optional"];
613
+ readonly properties: {
614
+ readonly key: {
615
+ readonly $ref: "#/$defs/Key";
616
+ };
617
+ readonly type: {
618
+ readonly const: "text";
619
+ };
620
+ readonly text: {
621
+ readonly type: "string";
622
+ readonly maxLength: 2048;
623
+ };
624
+ readonly maxLength: {
625
+ readonly type: "integer";
626
+ readonly minimum: 1;
627
+ readonly maximum: 4096;
628
+ };
629
+ readonly optional: {
630
+ readonly type: "boolean";
631
+ };
632
+ };
633
+ }];
634
+ };
635
+ readonly QuestionOption: {
636
+ readonly title: "QuestionOption";
637
+ readonly type: "object";
638
+ readonly additionalProperties: false;
639
+ readonly required: readonly ["key"];
640
+ readonly properties: {
641
+ readonly key: {
642
+ readonly $ref: "#/$defs/Key";
643
+ };
644
+ readonly label: {
645
+ readonly type: "string";
646
+ readonly maxLength: 512;
647
+ readonly description: "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014).";
648
+ };
649
+ };
650
+ };
651
+ readonly VotingParameters: {
652
+ readonly title: "VotingParameters";
653
+ readonly description: "The community's published voting parameters: the PCS suite and the voting verification key tickets are issued under (VTI-VOT-020). Distinct from its hidden-vetting helper key.";
654
+ readonly type: "object";
655
+ readonly additionalProperties: false;
656
+ readonly required: readonly ["suite", "votingKey"];
657
+ readonly properties: {
658
+ readonly suite: {
659
+ readonly type: "string";
660
+ readonly const: "ps-ddh-bls12381";
661
+ };
662
+ readonly votingKey: {
663
+ readonly $ref: "#/$defs/Multibase";
664
+ };
665
+ };
666
+ };
667
+ };
668
+ };
669
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
670
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
671
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
672
+ readonly $ref: "#/$defs/Response";
673
+ readonly $defs: {
674
+ readonly Response: {
675
+ readonly $anchor: "response";
676
+ readonly title: "VTA PCS — Vote Encrypted — response payload";
677
+ readonly type: "object";
678
+ readonly additionalProperties: false;
679
+ readonly required: readonly ["castDocument", "tag"];
680
+ readonly properties: {
681
+ readonly castDocument: {
682
+ readonly title: "CastDocument";
683
+ readonly description: "The voting/ballot/cast-encrypted request, signed by a key made for this cast alone (VTI-VOT-003).";
684
+ readonly type: "object";
685
+ readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
686
+ readonly properties: {
687
+ readonly id: {
688
+ readonly type: "string";
689
+ 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}$";
690
+ };
691
+ readonly type: {
692
+ readonly const: "https://trusttasks.org/spec/voting/ballot/cast-encrypted/0.1";
693
+ };
694
+ readonly issuer: {
695
+ readonly type: "string";
696
+ readonly minLength: 1;
697
+ readonly maxLength: 2048;
698
+ readonly description: "The signer.";
699
+ };
700
+ readonly recipient: {
701
+ readonly type: "string";
702
+ readonly minLength: 1;
703
+ readonly maxLength: 2048;
704
+ readonly description: "The ballot box.";
705
+ };
706
+ readonly issuedAt: {
707
+ readonly type: "string";
708
+ readonly format: "date-time";
709
+ };
710
+ readonly expiresAt: {
711
+ readonly type: "string";
712
+ readonly format: "date-time";
713
+ };
714
+ readonly payload: {
715
+ readonly type: "object";
716
+ readonly description: "That task's request payload.";
717
+ };
718
+ readonly proof: {
719
+ readonly type: "object";
720
+ readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
721
+ };
722
+ };
723
+ };
724
+ readonly tag: {
725
+ readonly $ref: "#/$defs/Multibase";
726
+ };
727
+ readonly ext: {
728
+ readonly $ref: "#/$defs/Ext";
729
+ };
730
+ };
731
+ };
732
+ readonly Ext: {
733
+ readonly title: "Ext";
734
+ 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.";
735
+ readonly type: "object";
736
+ readonly minProperties: 1;
737
+ readonly additionalProperties: true;
738
+ readonly propertyNames: {
739
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
740
+ };
741
+ };
742
+ readonly Multibase: {
743
+ readonly title: "Multibase";
744
+ readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
745
+ readonly type: "string";
746
+ readonly maxLength: 16384;
747
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
748
+ };
749
+ readonly TrusteeCeremony: {
750
+ readonly title: "TrusteeCeremony";
751
+ 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.";
752
+ readonly type: "array";
753
+ readonly minItems: 1;
754
+ readonly maxItems: 4224;
755
+ readonly items: {
756
+ readonly $ref: "#/$defs/SignedRequest";
757
+ };
758
+ };
759
+ readonly SignedRequest: {
760
+ readonly title: "SignedRequest";
761
+ 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.";
762
+ readonly type: "object";
763
+ readonly minProperties: 1;
764
+ };
765
+ readonly Ballot: {
766
+ readonly title: "Ballot";
767
+ readonly description: "An open ballot: one answer per question of the manifest, in any order. The bytes a cast's proof binds are the RFC 8785 (JCS) canonicalization of this object as received.";
768
+ readonly type: "object";
769
+ readonly additionalProperties: false;
770
+ readonly required: readonly ["electionId", "manifestDigest", "answers"];
771
+ readonly properties: {
772
+ readonly electionId: {
773
+ readonly $ref: "#/$defs/ElectionId";
774
+ };
775
+ readonly manifestDigest: {
776
+ readonly $ref: "#/$defs/DigestMultibase";
777
+ };
778
+ readonly answers: {
779
+ readonly type: "array";
780
+ readonly minItems: 1;
781
+ readonly maxItems: 128;
782
+ readonly items: {
783
+ readonly $ref: "#/$defs/Answer";
784
+ };
785
+ };
786
+ };
787
+ };
788
+ readonly Answer: {
789
+ readonly title: "Answer";
790
+ readonly description: "The answer to one question. Exactly one member besides `question` is present, matching the question's type, or `abstain` for an optional question left unanswered.";
791
+ readonly type: "object";
792
+ readonly additionalProperties: false;
793
+ readonly required: readonly ["question"];
794
+ readonly minProperties: 2;
795
+ readonly maxProperties: 2;
796
+ readonly properties: {
797
+ readonly question: {
798
+ readonly $ref: "#/$defs/Key";
799
+ };
800
+ readonly choice: {
801
+ readonly type: "array";
802
+ readonly items: {
803
+ readonly $ref: "#/$defs/Key";
804
+ };
805
+ readonly uniqueItems: true;
806
+ };
807
+ readonly ranking: {
808
+ readonly type: "array";
809
+ readonly items: {
810
+ readonly $ref: "#/$defs/Key";
811
+ };
812
+ readonly uniqueItems: true;
813
+ };
814
+ readonly scores: {
815
+ readonly type: "object";
816
+ readonly propertyNames: {
817
+ readonly $ref: "#/$defs/Key";
818
+ };
819
+ readonly additionalProperties: {
820
+ readonly type: "integer";
821
+ };
822
+ };
823
+ readonly text: {
824
+ readonly type: "string";
825
+ readonly maxLength: 4096;
826
+ };
827
+ readonly abstain: {
828
+ readonly const: true;
829
+ };
830
+ };
831
+ };
832
+ readonly Key: {
833
+ readonly title: "Key";
834
+ readonly description: "A question or option key, unique within its manifest or question.";
835
+ readonly type: "string";
836
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
837
+ };
838
+ readonly ElectionId: {
839
+ readonly title: "ElectionId";
840
+ 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.";
841
+ readonly type: "string";
842
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
843
+ };
844
+ readonly DigestMultibase: {
845
+ readonly title: "DigestMultibase";
846
+ 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`.";
847
+ readonly type: "string";
848
+ readonly minLength: 16;
849
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
850
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
851
+ };
852
+ readonly Manifest: {
853
+ readonly title: "Manifest";
854
+ 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).";
855
+ readonly type: "object";
856
+ readonly additionalProperties: false;
857
+ readonly required: readonly ["electionId", "community", "questions", "secrecy", "roll", "registrationOpensAt", "votingOpensAt", "votingClosesAt", "revote", "board", "ballotBox", "binding", "allowEarlyClose", "resultsBeforeClose", "textReleaseThreshold"];
858
+ readonly properties: {
859
+ readonly electionId: {
860
+ readonly $ref: "#/$defs/ElectionId";
861
+ };
862
+ readonly community: {
863
+ readonly type: "string";
864
+ readonly minLength: 1;
865
+ readonly maxLength: 2048;
866
+ readonly description: "The community's DID.";
867
+ };
868
+ readonly title: {
869
+ readonly type: "string";
870
+ readonly maxLength: 512;
871
+ };
872
+ readonly description: {
873
+ readonly type: "string";
874
+ readonly maxLength: 8192;
875
+ };
876
+ readonly questions: {
877
+ readonly type: "array";
878
+ readonly minItems: 1;
879
+ readonly maxItems: 128;
880
+ readonly items: {
881
+ readonly $ref: "#/$defs/Question";
882
+ };
883
+ };
884
+ readonly secrecy: {
885
+ readonly $ref: "#/$defs/SecrecyLevel";
886
+ };
887
+ readonly roll: {
888
+ readonly $ref: "#/$defs/RollRule";
889
+ };
890
+ readonly registrationOpensAt: {
891
+ readonly type: "string";
892
+ readonly format: "date-time";
893
+ };
894
+ readonly votingOpensAt: {
895
+ readonly type: "string";
896
+ readonly format: "date-time";
897
+ };
898
+ readonly votingClosesAt: {
899
+ readonly type: "string";
900
+ readonly format: "date-time";
901
+ };
902
+ readonly revote: {
903
+ readonly $ref: "#/$defs/Revote";
904
+ };
905
+ readonly board: {
906
+ readonly type: "object";
907
+ readonly additionalProperties: false;
908
+ readonly required: readonly ["visibility", "auditors"];
909
+ readonly properties: {
910
+ readonly visibility: {
911
+ readonly $ref: "#/$defs/BoardVisibility";
912
+ };
913
+ readonly auditors: {
914
+ readonly type: "array";
915
+ readonly items: {
916
+ readonly type: "string";
917
+ readonly minLength: 1;
918
+ readonly maxLength: 2048;
919
+ };
920
+ readonly uniqueItems: true;
921
+ };
922
+ };
923
+ };
924
+ readonly ballotBox: {
925
+ readonly type: "string";
926
+ readonly minLength: 1;
927
+ readonly maxLength: 2048;
928
+ readonly description: "The DID of the voting service that holds the board.";
929
+ };
930
+ readonly trustees: {
931
+ readonly $ref: "#/$defs/Trustees";
932
+ };
933
+ readonly binding: {
934
+ readonly type: "boolean";
935
+ readonly description: "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081).";
936
+ };
937
+ readonly allowEarlyClose: {
938
+ readonly type: "boolean";
939
+ };
940
+ readonly resultsBeforeClose: {
941
+ readonly type: "boolean";
942
+ readonly description: "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061).";
943
+ };
944
+ readonly textReleaseThreshold: {
945
+ readonly type: "integer";
946
+ readonly minimum: 1;
947
+ readonly description: "Counted ballots required before any text answer is disclosed (VTI-VOT-065). At least 1, and SHOULD be at least 10: a written answer can identify its author by what it says or how it is phrased, and the fewer the ballots released together, the easier that is. Where it is below 10, the disclosure a member is shown before they request a ticket MUST say so, and MUST say that a written answer may identify its author (VTI-VOT-090).";
948
+ };
949
+ };
950
+ };
951
+ readonly Trustees: {
952
+ readonly title: "Trustees";
953
+ 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.";
954
+ readonly type: "object";
955
+ readonly additionalProperties: false;
956
+ readonly required: readonly ["dids", "threshold"];
957
+ readonly properties: {
958
+ readonly dids: {
959
+ readonly type: "array";
960
+ readonly minItems: 2;
961
+ readonly items: {
962
+ readonly type: "string";
963
+ readonly minLength: 1;
964
+ readonly maxLength: 2048;
965
+ };
966
+ readonly uniqueItems: true;
967
+ };
968
+ readonly threshold: {
969
+ readonly type: "integer";
970
+ readonly minimum: 2;
971
+ };
972
+ };
973
+ };
974
+ readonly BoardVisibility: {
975
+ readonly title: "BoardVisibility";
976
+ 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).";
977
+ readonly type: "string";
978
+ readonly enum: readonly ["public", "private"];
979
+ };
980
+ readonly Revote: {
981
+ readonly title: "Revote";
982
+ readonly description: "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).";
983
+ readonly type: "string";
984
+ readonly enum: readonly ["replace", "refuse"];
985
+ };
986
+ readonly RollRule: {
987
+ readonly title: "RollRule";
988
+ readonly description: "Who may be issued a ticket (VTI-VOT-021): the community's active members (`members`), its active members and the parties `listed` names (`membersAndListed`), only the parties `listed` names (`listed`), or the holders of a membership credential for the one DID `memberOf` names (`credential`), proven by presentation when the holder claims their ticket and never resolved when the election is created (VTI-VOT-025). `memberOf` is present exactly when `rule` is `credential`, and `listed` is never present with it.";
989
+ readonly type: "object";
990
+ readonly additionalProperties: false;
991
+ readonly required: readonly ["rule"];
992
+ readonly properties: {
993
+ readonly rule: {
994
+ readonly type: "string";
995
+ readonly enum: readonly ["members", "membersAndListed", "listed", "credential"];
996
+ };
997
+ readonly listed: {
998
+ readonly type: "array";
999
+ readonly items: {
1000
+ readonly type: "string";
1001
+ readonly minLength: 1;
1002
+ readonly maxLength: 2048;
1003
+ readonly description: "A DID enfranchised by name.";
1004
+ };
1005
+ readonly uniqueItems: true;
1006
+ };
1007
+ readonly memberOf: {
1008
+ readonly type: "string";
1009
+ readonly minLength: 8;
1010
+ readonly maxLength: 2048;
1011
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
1012
+ readonly description: "The DID whose membership credential admits its holder, under the `credential` rule: this community, one of its groups, or a party that is itself an active member of this community — holding a membership credential this community issued it — such as another community, a group of another community, or a network (VTI-VOT-026). Always a DID, never a group's local identifier or name. A community refuses to create an election naming any other DID (vtc/elections/create:rollUntrusted).";
1013
+ };
1014
+ };
1015
+ readonly dependentSchemas: {
1016
+ readonly rule: {
1017
+ readonly anyOf: readonly [{
1018
+ readonly required: readonly ["memberOf"];
1019
+ }, {
1020
+ readonly properties: {
1021
+ readonly rule: {
1022
+ readonly enum: readonly ["members", "membersAndListed", "listed"];
1023
+ };
1024
+ };
1025
+ }];
1026
+ };
1027
+ readonly memberOf: {
1028
+ readonly properties: {
1029
+ readonly rule: {
1030
+ readonly const: "credential";
1031
+ };
1032
+ };
1033
+ readonly not: {
1034
+ readonly required: readonly ["listed"];
1035
+ };
1036
+ };
1037
+ };
1038
+ };
1039
+ readonly SecrecyLevel: {
1040
+ readonly title: "SecrecyLevel";
1041
+ 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).";
1042
+ readonly type: "string";
1043
+ readonly enum: readonly ["open", "sealed", "talliedEncrypted"];
1044
+ };
1045
+ readonly Question: {
1046
+ readonly title: "Question";
1047
+ readonly description: "One question. Tagged union over `type`.";
1048
+ readonly oneOf: readonly [{
1049
+ readonly title: "ChoiceQuestion";
1050
+ readonly description: "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.";
1051
+ readonly type: "object";
1052
+ readonly additionalProperties: false;
1053
+ readonly required: readonly ["key", "type", "options", "minSelections", "maxSelections", "optional"];
1054
+ readonly properties: {
1055
+ readonly key: {
1056
+ readonly $ref: "#/$defs/Key";
1057
+ };
1058
+ readonly type: {
1059
+ readonly const: "choice";
1060
+ };
1061
+ readonly text: {
1062
+ readonly type: "string";
1063
+ readonly maxLength: 2048;
1064
+ };
1065
+ readonly options: {
1066
+ readonly type: "array";
1067
+ readonly minItems: 2;
1068
+ readonly maxItems: 256;
1069
+ readonly items: {
1070
+ readonly $ref: "#/$defs/QuestionOption";
1071
+ };
1072
+ };
1073
+ readonly minSelections: {
1074
+ readonly type: "integer";
1075
+ readonly minimum: 0;
1076
+ };
1077
+ readonly maxSelections: {
1078
+ readonly type: "integer";
1079
+ readonly minimum: 1;
1080
+ };
1081
+ readonly optional: {
1082
+ readonly type: "boolean";
1083
+ };
1084
+ };
1085
+ }, {
1086
+ readonly title: "RankingQuestion";
1087
+ readonly description: "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.";
1088
+ readonly type: "object";
1089
+ readonly additionalProperties: false;
1090
+ readonly required: readonly ["key", "type", "options", "partial", "optional"];
1091
+ readonly properties: {
1092
+ readonly key: {
1093
+ readonly $ref: "#/$defs/Key";
1094
+ };
1095
+ readonly type: {
1096
+ readonly const: "ranking";
1097
+ };
1098
+ readonly text: {
1099
+ readonly type: "string";
1100
+ readonly maxLength: 2048;
1101
+ };
1102
+ readonly options: {
1103
+ readonly type: "array";
1104
+ readonly minItems: 2;
1105
+ readonly maxItems: 64;
1106
+ readonly items: {
1107
+ readonly $ref: "#/$defs/QuestionOption";
1108
+ };
1109
+ };
1110
+ readonly partial: {
1111
+ readonly type: "boolean";
1112
+ };
1113
+ readonly optional: {
1114
+ readonly type: "boolean";
1115
+ };
1116
+ };
1117
+ }, {
1118
+ readonly title: "ScoreQuestion";
1119
+ readonly description: "Give each option an integer score within [min, max].";
1120
+ readonly type: "object";
1121
+ readonly additionalProperties: false;
1122
+ readonly required: readonly ["key", "type", "options", "min", "max", "optional"];
1123
+ readonly properties: {
1124
+ readonly key: {
1125
+ readonly $ref: "#/$defs/Key";
1126
+ };
1127
+ readonly type: {
1128
+ readonly const: "score";
1129
+ };
1130
+ readonly text: {
1131
+ readonly type: "string";
1132
+ readonly maxLength: 2048;
1133
+ };
1134
+ readonly options: {
1135
+ readonly type: "array";
1136
+ readonly minItems: 1;
1137
+ readonly maxItems: 256;
1138
+ readonly items: {
1139
+ readonly $ref: "#/$defs/QuestionOption";
1140
+ };
1141
+ };
1142
+ readonly min: {
1143
+ readonly type: "integer";
1144
+ };
1145
+ readonly max: {
1146
+ readonly type: "integer";
1147
+ };
1148
+ readonly optional: {
1149
+ readonly type: "boolean";
1150
+ };
1151
+ };
1152
+ }, {
1153
+ readonly title: "TextQuestion";
1154
+ readonly description: "Free text of at most `maxLength` characters.";
1155
+ readonly type: "object";
1156
+ readonly additionalProperties: false;
1157
+ readonly required: readonly ["key", "type", "maxLength", "optional"];
1158
+ readonly properties: {
1159
+ readonly key: {
1160
+ readonly $ref: "#/$defs/Key";
1161
+ };
1162
+ readonly type: {
1163
+ readonly const: "text";
1164
+ };
1165
+ readonly text: {
1166
+ readonly type: "string";
1167
+ readonly maxLength: 2048;
1168
+ };
1169
+ readonly maxLength: {
1170
+ readonly type: "integer";
1171
+ readonly minimum: 1;
1172
+ readonly maximum: 4096;
1173
+ };
1174
+ readonly optional: {
1175
+ readonly type: "boolean";
1176
+ };
1177
+ };
1178
+ }];
1179
+ };
1180
+ readonly QuestionOption: {
1181
+ readonly title: "QuestionOption";
1182
+ readonly type: "object";
1183
+ readonly additionalProperties: false;
1184
+ readonly required: readonly ["key"];
1185
+ readonly properties: {
1186
+ readonly key: {
1187
+ readonly $ref: "#/$defs/Key";
1188
+ };
1189
+ readonly label: {
1190
+ readonly type: "string";
1191
+ readonly maxLength: 512;
1192
+ readonly description: "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014).";
1193
+ };
1194
+ };
1195
+ };
1196
+ readonly VotingParameters: {
1197
+ readonly title: "VotingParameters";
1198
+ readonly description: "The community's published voting parameters: the PCS suite and the voting verification key tickets are issued under (VTI-VOT-020). Distinct from its hidden-vetting helper key.";
1199
+ readonly type: "object";
1200
+ readonly additionalProperties: false;
1201
+ readonly required: readonly ["suite", "votingKey"];
1202
+ readonly properties: {
1203
+ readonly suite: {
1204
+ readonly type: "string";
1205
+ readonly const: "ps-ddh-bls12381";
1206
+ };
1207
+ readonly votingKey: {
1208
+ readonly $ref: "#/$defs/Multibase";
1209
+ };
1210
+ };
1211
+ };
1212
+ };
1213
+ };
1214
+ /**
1215
+ * SPEC.md §7.2 policy for the request variant, from this specification's
1216
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
1217
+ * per-specification and cannot be derived from the document alone, and
1218
+ * item 2 needs the schema this carries.
1219
+ */
1220
+ export declare const SPEC: {
1221
+ readonly typeUri: "https://trusttasks.org/spec/vta/pcs/vote-encrypted/0.5";
1222
+ readonly isBearer: false;
1223
+ readonly isProofRequired: true;
1224
+ readonly isRecipientRequired: true;
1225
+ readonly isIssuedAtRequired: true;
1226
+ readonly payloadSchema: {
1227
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1228
+ readonly $id: "https://trusttasks.org/spec/vta/pcs/vote-encrypted/0.5";
1229
+ readonly title: "VTA PCS — Vote Encrypted — payload";
1230
+ readonly description: "The voter's VTA checks a ballot against the manifest, encrypts it to the election key as the election's level requires, and returns the cast signed by a key made for it alone.";
1231
+ readonly type: "object";
1232
+ readonly additionalProperties: false;
1233
+ readonly required: readonly ["contextId", "community", "parameters", "manifest", "ballot", "ceremony"];
1234
+ readonly properties: {
1235
+ readonly contextId: {
1236
+ readonly type: "string";
1237
+ readonly minLength: 1;
1238
+ readonly maxLength: 256;
1239
+ readonly description: "The context the voter belongs to.";
1240
+ };
1241
+ readonly community: {
1242
+ readonly type: "string";
1243
+ readonly minLength: 1;
1244
+ readonly maxLength: 2048;
1245
+ readonly description: "The community's DID.";
1246
+ };
1247
+ readonly parameters: {
1248
+ readonly $ref: "#/$defs/VotingParameters";
1249
+ };
1250
+ readonly manifest: {
1251
+ readonly $ref: "#/$defs/Manifest";
1252
+ };
1253
+ readonly ballot: {
1254
+ readonly $ref: "#/$defs/Ballot";
1255
+ };
1256
+ readonly ceremony: {
1257
+ readonly $ref: "#/$defs/TrusteeCeremony";
1258
+ 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.";
1259
+ };
1260
+ readonly ext: {
1261
+ readonly $ref: "#/$defs/Ext";
1262
+ };
1263
+ };
1264
+ readonly $defs: {
1265
+ readonly Response: {
1266
+ readonly $anchor: "response";
1267
+ readonly title: "VTA PCS — Vote Encrypted — response payload";
1268
+ readonly type: "object";
1269
+ readonly additionalProperties: false;
1270
+ readonly required: readonly ["castDocument", "tag"];
1271
+ readonly properties: {
1272
+ readonly castDocument: {
1273
+ readonly title: "CastDocument";
1274
+ readonly description: "The voting/ballot/cast-encrypted request, signed by a key made for this cast alone (VTI-VOT-003).";
1275
+ readonly type: "object";
1276
+ readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
1277
+ readonly properties: {
1278
+ readonly id: {
1279
+ readonly type: "string";
1280
+ 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}$";
1281
+ };
1282
+ readonly type: {
1283
+ readonly const: "https://trusttasks.org/spec/voting/ballot/cast-encrypted/0.1";
1284
+ };
1285
+ readonly issuer: {
1286
+ readonly type: "string";
1287
+ readonly minLength: 1;
1288
+ readonly maxLength: 2048;
1289
+ readonly description: "The signer.";
1290
+ };
1291
+ readonly recipient: {
1292
+ readonly type: "string";
1293
+ readonly minLength: 1;
1294
+ readonly maxLength: 2048;
1295
+ readonly description: "The ballot box.";
1296
+ };
1297
+ readonly issuedAt: {
1298
+ readonly type: "string";
1299
+ readonly format: "date-time";
1300
+ };
1301
+ readonly expiresAt: {
1302
+ readonly type: "string";
1303
+ readonly format: "date-time";
1304
+ };
1305
+ readonly payload: {
1306
+ readonly type: "object";
1307
+ readonly description: "That task's request payload.";
1308
+ };
1309
+ readonly proof: {
1310
+ readonly type: "object";
1311
+ readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
1312
+ };
1313
+ };
1314
+ };
1315
+ readonly tag: {
1316
+ readonly $ref: "#/$defs/Multibase";
1317
+ };
1318
+ readonly ext: {
1319
+ readonly $ref: "#/$defs/Ext";
1320
+ };
1321
+ };
1322
+ };
1323
+ readonly Ext: {
1324
+ readonly title: "Ext";
1325
+ 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.";
1326
+ readonly type: "object";
1327
+ readonly minProperties: 1;
1328
+ readonly additionalProperties: true;
1329
+ readonly propertyNames: {
1330
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
1331
+ };
1332
+ };
1333
+ readonly Multibase: {
1334
+ readonly title: "Multibase";
1335
+ readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
1336
+ readonly type: "string";
1337
+ readonly maxLength: 16384;
1338
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
1339
+ };
1340
+ readonly TrusteeCeremony: {
1341
+ readonly title: "TrusteeCeremony";
1342
+ 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.";
1343
+ readonly type: "array";
1344
+ readonly minItems: 1;
1345
+ readonly maxItems: 4224;
1346
+ readonly items: {
1347
+ readonly $ref: "#/$defs/SignedRequest";
1348
+ };
1349
+ };
1350
+ readonly SignedRequest: {
1351
+ readonly title: "SignedRequest";
1352
+ 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.";
1353
+ readonly type: "object";
1354
+ readonly minProperties: 1;
1355
+ };
1356
+ readonly Ballot: {
1357
+ readonly title: "Ballot";
1358
+ readonly description: "An open ballot: one answer per question of the manifest, in any order. The bytes a cast's proof binds are the RFC 8785 (JCS) canonicalization of this object as received.";
1359
+ readonly type: "object";
1360
+ readonly additionalProperties: false;
1361
+ readonly required: readonly ["electionId", "manifestDigest", "answers"];
1362
+ readonly properties: {
1363
+ readonly electionId: {
1364
+ readonly $ref: "#/$defs/ElectionId";
1365
+ };
1366
+ readonly manifestDigest: {
1367
+ readonly $ref: "#/$defs/DigestMultibase";
1368
+ };
1369
+ readonly answers: {
1370
+ readonly type: "array";
1371
+ readonly minItems: 1;
1372
+ readonly maxItems: 128;
1373
+ readonly items: {
1374
+ readonly $ref: "#/$defs/Answer";
1375
+ };
1376
+ };
1377
+ };
1378
+ };
1379
+ readonly Answer: {
1380
+ readonly title: "Answer";
1381
+ readonly description: "The answer to one question. Exactly one member besides `question` is present, matching the question's type, or `abstain` for an optional question left unanswered.";
1382
+ readonly type: "object";
1383
+ readonly additionalProperties: false;
1384
+ readonly required: readonly ["question"];
1385
+ readonly minProperties: 2;
1386
+ readonly maxProperties: 2;
1387
+ readonly properties: {
1388
+ readonly question: {
1389
+ readonly $ref: "#/$defs/Key";
1390
+ };
1391
+ readonly choice: {
1392
+ readonly type: "array";
1393
+ readonly items: {
1394
+ readonly $ref: "#/$defs/Key";
1395
+ };
1396
+ readonly uniqueItems: true;
1397
+ };
1398
+ readonly ranking: {
1399
+ readonly type: "array";
1400
+ readonly items: {
1401
+ readonly $ref: "#/$defs/Key";
1402
+ };
1403
+ readonly uniqueItems: true;
1404
+ };
1405
+ readonly scores: {
1406
+ readonly type: "object";
1407
+ readonly propertyNames: {
1408
+ readonly $ref: "#/$defs/Key";
1409
+ };
1410
+ readonly additionalProperties: {
1411
+ readonly type: "integer";
1412
+ };
1413
+ };
1414
+ readonly text: {
1415
+ readonly type: "string";
1416
+ readonly maxLength: 4096;
1417
+ };
1418
+ readonly abstain: {
1419
+ readonly const: true;
1420
+ };
1421
+ };
1422
+ };
1423
+ readonly Key: {
1424
+ readonly title: "Key";
1425
+ readonly description: "A question or option key, unique within its manifest or question.";
1426
+ readonly type: "string";
1427
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
1428
+ };
1429
+ readonly ElectionId: {
1430
+ readonly title: "ElectionId";
1431
+ 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.";
1432
+ readonly type: "string";
1433
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
1434
+ };
1435
+ readonly DigestMultibase: {
1436
+ readonly title: "DigestMultibase";
1437
+ 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`.";
1438
+ readonly type: "string";
1439
+ readonly minLength: 16;
1440
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
1441
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
1442
+ };
1443
+ readonly Manifest: {
1444
+ readonly title: "Manifest";
1445
+ 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).";
1446
+ readonly type: "object";
1447
+ readonly additionalProperties: false;
1448
+ readonly required: readonly ["electionId", "community", "questions", "secrecy", "roll", "registrationOpensAt", "votingOpensAt", "votingClosesAt", "revote", "board", "ballotBox", "binding", "allowEarlyClose", "resultsBeforeClose", "textReleaseThreshold"];
1449
+ readonly properties: {
1450
+ readonly electionId: {
1451
+ readonly $ref: "#/$defs/ElectionId";
1452
+ };
1453
+ readonly community: {
1454
+ readonly type: "string";
1455
+ readonly minLength: 1;
1456
+ readonly maxLength: 2048;
1457
+ readonly description: "The community's DID.";
1458
+ };
1459
+ readonly title: {
1460
+ readonly type: "string";
1461
+ readonly maxLength: 512;
1462
+ };
1463
+ readonly description: {
1464
+ readonly type: "string";
1465
+ readonly maxLength: 8192;
1466
+ };
1467
+ readonly questions: {
1468
+ readonly type: "array";
1469
+ readonly minItems: 1;
1470
+ readonly maxItems: 128;
1471
+ readonly items: {
1472
+ readonly $ref: "#/$defs/Question";
1473
+ };
1474
+ };
1475
+ readonly secrecy: {
1476
+ readonly $ref: "#/$defs/SecrecyLevel";
1477
+ };
1478
+ readonly roll: {
1479
+ readonly $ref: "#/$defs/RollRule";
1480
+ };
1481
+ readonly registrationOpensAt: {
1482
+ readonly type: "string";
1483
+ readonly format: "date-time";
1484
+ };
1485
+ readonly votingOpensAt: {
1486
+ readonly type: "string";
1487
+ readonly format: "date-time";
1488
+ };
1489
+ readonly votingClosesAt: {
1490
+ readonly type: "string";
1491
+ readonly format: "date-time";
1492
+ };
1493
+ readonly revote: {
1494
+ readonly $ref: "#/$defs/Revote";
1495
+ };
1496
+ readonly board: {
1497
+ readonly type: "object";
1498
+ readonly additionalProperties: false;
1499
+ readonly required: readonly ["visibility", "auditors"];
1500
+ readonly properties: {
1501
+ readonly visibility: {
1502
+ readonly $ref: "#/$defs/BoardVisibility";
1503
+ };
1504
+ readonly auditors: {
1505
+ readonly type: "array";
1506
+ readonly items: {
1507
+ readonly type: "string";
1508
+ readonly minLength: 1;
1509
+ readonly maxLength: 2048;
1510
+ };
1511
+ readonly uniqueItems: true;
1512
+ };
1513
+ };
1514
+ };
1515
+ readonly ballotBox: {
1516
+ readonly type: "string";
1517
+ readonly minLength: 1;
1518
+ readonly maxLength: 2048;
1519
+ readonly description: "The DID of the voting service that holds the board.";
1520
+ };
1521
+ readonly trustees: {
1522
+ readonly $ref: "#/$defs/Trustees";
1523
+ };
1524
+ readonly binding: {
1525
+ readonly type: "boolean";
1526
+ readonly description: "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081).";
1527
+ };
1528
+ readonly allowEarlyClose: {
1529
+ readonly type: "boolean";
1530
+ };
1531
+ readonly resultsBeforeClose: {
1532
+ readonly type: "boolean";
1533
+ readonly description: "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061).";
1534
+ };
1535
+ readonly textReleaseThreshold: {
1536
+ readonly type: "integer";
1537
+ readonly minimum: 1;
1538
+ readonly description: "Counted ballots required before any text answer is disclosed (VTI-VOT-065). At least 1, and SHOULD be at least 10: a written answer can identify its author by what it says or how it is phrased, and the fewer the ballots released together, the easier that is. Where it is below 10, the disclosure a member is shown before they request a ticket MUST say so, and MUST say that a written answer may identify its author (VTI-VOT-090).";
1539
+ };
1540
+ };
1541
+ };
1542
+ readonly Trustees: {
1543
+ readonly title: "Trustees";
1544
+ 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.";
1545
+ readonly type: "object";
1546
+ readonly additionalProperties: false;
1547
+ readonly required: readonly ["dids", "threshold"];
1548
+ readonly properties: {
1549
+ readonly dids: {
1550
+ readonly type: "array";
1551
+ readonly minItems: 2;
1552
+ readonly items: {
1553
+ readonly type: "string";
1554
+ readonly minLength: 1;
1555
+ readonly maxLength: 2048;
1556
+ };
1557
+ readonly uniqueItems: true;
1558
+ };
1559
+ readonly threshold: {
1560
+ readonly type: "integer";
1561
+ readonly minimum: 2;
1562
+ };
1563
+ };
1564
+ };
1565
+ readonly BoardVisibility: {
1566
+ readonly title: "BoardVisibility";
1567
+ 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).";
1568
+ readonly type: "string";
1569
+ readonly enum: readonly ["public", "private"];
1570
+ };
1571
+ readonly Revote: {
1572
+ readonly title: "Revote";
1573
+ readonly description: "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).";
1574
+ readonly type: "string";
1575
+ readonly enum: readonly ["replace", "refuse"];
1576
+ };
1577
+ readonly RollRule: {
1578
+ readonly title: "RollRule";
1579
+ readonly description: "Who may be issued a ticket (VTI-VOT-021): the community's active members (`members`), its active members and the parties `listed` names (`membersAndListed`), only the parties `listed` names (`listed`), or the holders of a membership credential for the one DID `memberOf` names (`credential`), proven by presentation when the holder claims their ticket and never resolved when the election is created (VTI-VOT-025). `memberOf` is present exactly when `rule` is `credential`, and `listed` is never present with it.";
1580
+ readonly type: "object";
1581
+ readonly additionalProperties: false;
1582
+ readonly required: readonly ["rule"];
1583
+ readonly properties: {
1584
+ readonly rule: {
1585
+ readonly type: "string";
1586
+ readonly enum: readonly ["members", "membersAndListed", "listed", "credential"];
1587
+ };
1588
+ readonly listed: {
1589
+ readonly type: "array";
1590
+ readonly items: {
1591
+ readonly type: "string";
1592
+ readonly minLength: 1;
1593
+ readonly maxLength: 2048;
1594
+ readonly description: "A DID enfranchised by name.";
1595
+ };
1596
+ readonly uniqueItems: true;
1597
+ };
1598
+ readonly memberOf: {
1599
+ readonly type: "string";
1600
+ readonly minLength: 8;
1601
+ readonly maxLength: 2048;
1602
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
1603
+ readonly description: "The DID whose membership credential admits its holder, under the `credential` rule: this community, one of its groups, or a party that is itself an active member of this community — holding a membership credential this community issued it — such as another community, a group of another community, or a network (VTI-VOT-026). Always a DID, never a group's local identifier or name. A community refuses to create an election naming any other DID (vtc/elections/create:rollUntrusted).";
1604
+ };
1605
+ };
1606
+ readonly dependentSchemas: {
1607
+ readonly rule: {
1608
+ readonly anyOf: readonly [{
1609
+ readonly required: readonly ["memberOf"];
1610
+ }, {
1611
+ readonly properties: {
1612
+ readonly rule: {
1613
+ readonly enum: readonly ["members", "membersAndListed", "listed"];
1614
+ };
1615
+ };
1616
+ }];
1617
+ };
1618
+ readonly memberOf: {
1619
+ readonly properties: {
1620
+ readonly rule: {
1621
+ readonly const: "credential";
1622
+ };
1623
+ };
1624
+ readonly not: {
1625
+ readonly required: readonly ["listed"];
1626
+ };
1627
+ };
1628
+ };
1629
+ };
1630
+ readonly SecrecyLevel: {
1631
+ readonly title: "SecrecyLevel";
1632
+ 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).";
1633
+ readonly type: "string";
1634
+ readonly enum: readonly ["open", "sealed", "talliedEncrypted"];
1635
+ };
1636
+ readonly Question: {
1637
+ readonly title: "Question";
1638
+ readonly description: "One question. Tagged union over `type`.";
1639
+ readonly oneOf: readonly [{
1640
+ readonly title: "ChoiceQuestion";
1641
+ readonly description: "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.";
1642
+ readonly type: "object";
1643
+ readonly additionalProperties: false;
1644
+ readonly required: readonly ["key", "type", "options", "minSelections", "maxSelections", "optional"];
1645
+ readonly properties: {
1646
+ readonly key: {
1647
+ readonly $ref: "#/$defs/Key";
1648
+ };
1649
+ readonly type: {
1650
+ readonly const: "choice";
1651
+ };
1652
+ readonly text: {
1653
+ readonly type: "string";
1654
+ readonly maxLength: 2048;
1655
+ };
1656
+ readonly options: {
1657
+ readonly type: "array";
1658
+ readonly minItems: 2;
1659
+ readonly maxItems: 256;
1660
+ readonly items: {
1661
+ readonly $ref: "#/$defs/QuestionOption";
1662
+ };
1663
+ };
1664
+ readonly minSelections: {
1665
+ readonly type: "integer";
1666
+ readonly minimum: 0;
1667
+ };
1668
+ readonly maxSelections: {
1669
+ readonly type: "integer";
1670
+ readonly minimum: 1;
1671
+ };
1672
+ readonly optional: {
1673
+ readonly type: "boolean";
1674
+ };
1675
+ };
1676
+ }, {
1677
+ readonly title: "RankingQuestion";
1678
+ readonly description: "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.";
1679
+ readonly type: "object";
1680
+ readonly additionalProperties: false;
1681
+ readonly required: readonly ["key", "type", "options", "partial", "optional"];
1682
+ readonly properties: {
1683
+ readonly key: {
1684
+ readonly $ref: "#/$defs/Key";
1685
+ };
1686
+ readonly type: {
1687
+ readonly const: "ranking";
1688
+ };
1689
+ readonly text: {
1690
+ readonly type: "string";
1691
+ readonly maxLength: 2048;
1692
+ };
1693
+ readonly options: {
1694
+ readonly type: "array";
1695
+ readonly minItems: 2;
1696
+ readonly maxItems: 64;
1697
+ readonly items: {
1698
+ readonly $ref: "#/$defs/QuestionOption";
1699
+ };
1700
+ };
1701
+ readonly partial: {
1702
+ readonly type: "boolean";
1703
+ };
1704
+ readonly optional: {
1705
+ readonly type: "boolean";
1706
+ };
1707
+ };
1708
+ }, {
1709
+ readonly title: "ScoreQuestion";
1710
+ readonly description: "Give each option an integer score within [min, max].";
1711
+ readonly type: "object";
1712
+ readonly additionalProperties: false;
1713
+ readonly required: readonly ["key", "type", "options", "min", "max", "optional"];
1714
+ readonly properties: {
1715
+ readonly key: {
1716
+ readonly $ref: "#/$defs/Key";
1717
+ };
1718
+ readonly type: {
1719
+ readonly const: "score";
1720
+ };
1721
+ readonly text: {
1722
+ readonly type: "string";
1723
+ readonly maxLength: 2048;
1724
+ };
1725
+ readonly options: {
1726
+ readonly type: "array";
1727
+ readonly minItems: 1;
1728
+ readonly maxItems: 256;
1729
+ readonly items: {
1730
+ readonly $ref: "#/$defs/QuestionOption";
1731
+ };
1732
+ };
1733
+ readonly min: {
1734
+ readonly type: "integer";
1735
+ };
1736
+ readonly max: {
1737
+ readonly type: "integer";
1738
+ };
1739
+ readonly optional: {
1740
+ readonly type: "boolean";
1741
+ };
1742
+ };
1743
+ }, {
1744
+ readonly title: "TextQuestion";
1745
+ readonly description: "Free text of at most `maxLength` characters.";
1746
+ readonly type: "object";
1747
+ readonly additionalProperties: false;
1748
+ readonly required: readonly ["key", "type", "maxLength", "optional"];
1749
+ readonly properties: {
1750
+ readonly key: {
1751
+ readonly $ref: "#/$defs/Key";
1752
+ };
1753
+ readonly type: {
1754
+ readonly const: "text";
1755
+ };
1756
+ readonly text: {
1757
+ readonly type: "string";
1758
+ readonly maxLength: 2048;
1759
+ };
1760
+ readonly maxLength: {
1761
+ readonly type: "integer";
1762
+ readonly minimum: 1;
1763
+ readonly maximum: 4096;
1764
+ };
1765
+ readonly optional: {
1766
+ readonly type: "boolean";
1767
+ };
1768
+ };
1769
+ }];
1770
+ };
1771
+ readonly QuestionOption: {
1772
+ readonly title: "QuestionOption";
1773
+ readonly type: "object";
1774
+ readonly additionalProperties: false;
1775
+ readonly required: readonly ["key"];
1776
+ readonly properties: {
1777
+ readonly key: {
1778
+ readonly $ref: "#/$defs/Key";
1779
+ };
1780
+ readonly label: {
1781
+ readonly type: "string";
1782
+ readonly maxLength: 512;
1783
+ readonly description: "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014).";
1784
+ };
1785
+ };
1786
+ };
1787
+ readonly VotingParameters: {
1788
+ readonly title: "VotingParameters";
1789
+ readonly description: "The community's published voting parameters: the PCS suite and the voting verification key tickets are issued under (VTI-VOT-020). Distinct from its hidden-vetting helper key.";
1790
+ readonly type: "object";
1791
+ readonly additionalProperties: false;
1792
+ readonly required: readonly ["suite", "votingKey"];
1793
+ readonly properties: {
1794
+ readonly suite: {
1795
+ readonly type: "string";
1796
+ readonly const: "ps-ddh-bls12381";
1797
+ };
1798
+ readonly votingKey: {
1799
+ readonly $ref: "#/$defs/Multibase";
1800
+ };
1801
+ };
1802
+ };
1803
+ };
1804
+ };
1805
+ };
1806
+ /**
1807
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
1808
+ * tracks the *issuer* party's requirement because a response swaps the
1809
+ * parties (§7.3 item 5).
1810
+ */
1811
+ export declare const RESPONSE_SPEC: {
1812
+ readonly typeUri: "https://trusttasks.org/spec/vta/pcs/vote-encrypted/0.5#response";
1813
+ readonly isBearer: false;
1814
+ readonly isProofRequired: false;
1815
+ readonly isRecipientRequired: true;
1816
+ readonly isIssuedAtRequired: true;
1817
+ readonly payloadSchema: {
1818
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1819
+ readonly $ref: "#/$defs/Response";
1820
+ readonly $defs: {
1821
+ readonly Response: {
1822
+ readonly $anchor: "response";
1823
+ readonly title: "VTA PCS — Vote Encrypted — response payload";
1824
+ readonly type: "object";
1825
+ readonly additionalProperties: false;
1826
+ readonly required: readonly ["castDocument", "tag"];
1827
+ readonly properties: {
1828
+ readonly castDocument: {
1829
+ readonly title: "CastDocument";
1830
+ readonly description: "The voting/ballot/cast-encrypted request, signed by a key made for this cast alone (VTI-VOT-003).";
1831
+ readonly type: "object";
1832
+ readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
1833
+ readonly properties: {
1834
+ readonly id: {
1835
+ readonly type: "string";
1836
+ 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}$";
1837
+ };
1838
+ readonly type: {
1839
+ readonly const: "https://trusttasks.org/spec/voting/ballot/cast-encrypted/0.1";
1840
+ };
1841
+ readonly issuer: {
1842
+ readonly type: "string";
1843
+ readonly minLength: 1;
1844
+ readonly maxLength: 2048;
1845
+ readonly description: "The signer.";
1846
+ };
1847
+ readonly recipient: {
1848
+ readonly type: "string";
1849
+ readonly minLength: 1;
1850
+ readonly maxLength: 2048;
1851
+ readonly description: "The ballot box.";
1852
+ };
1853
+ readonly issuedAt: {
1854
+ readonly type: "string";
1855
+ readonly format: "date-time";
1856
+ };
1857
+ readonly expiresAt: {
1858
+ readonly type: "string";
1859
+ readonly format: "date-time";
1860
+ };
1861
+ readonly payload: {
1862
+ readonly type: "object";
1863
+ readonly description: "That task's request payload.";
1864
+ };
1865
+ readonly proof: {
1866
+ readonly type: "object";
1867
+ readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
1868
+ };
1869
+ };
1870
+ };
1871
+ readonly tag: {
1872
+ readonly $ref: "#/$defs/Multibase";
1873
+ };
1874
+ readonly ext: {
1875
+ readonly $ref: "#/$defs/Ext";
1876
+ };
1877
+ };
1878
+ };
1879
+ readonly Ext: {
1880
+ readonly title: "Ext";
1881
+ 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.";
1882
+ readonly type: "object";
1883
+ readonly minProperties: 1;
1884
+ readonly additionalProperties: true;
1885
+ readonly propertyNames: {
1886
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
1887
+ };
1888
+ };
1889
+ readonly Multibase: {
1890
+ readonly title: "Multibase";
1891
+ readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
1892
+ readonly type: "string";
1893
+ readonly maxLength: 16384;
1894
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
1895
+ };
1896
+ readonly TrusteeCeremony: {
1897
+ readonly title: "TrusteeCeremony";
1898
+ 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.";
1899
+ readonly type: "array";
1900
+ readonly minItems: 1;
1901
+ readonly maxItems: 4224;
1902
+ readonly items: {
1903
+ readonly $ref: "#/$defs/SignedRequest";
1904
+ };
1905
+ };
1906
+ readonly SignedRequest: {
1907
+ readonly title: "SignedRequest";
1908
+ 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.";
1909
+ readonly type: "object";
1910
+ readonly minProperties: 1;
1911
+ };
1912
+ readonly Ballot: {
1913
+ readonly title: "Ballot";
1914
+ readonly description: "An open ballot: one answer per question of the manifest, in any order. The bytes a cast's proof binds are the RFC 8785 (JCS) canonicalization of this object as received.";
1915
+ readonly type: "object";
1916
+ readonly additionalProperties: false;
1917
+ readonly required: readonly ["electionId", "manifestDigest", "answers"];
1918
+ readonly properties: {
1919
+ readonly electionId: {
1920
+ readonly $ref: "#/$defs/ElectionId";
1921
+ };
1922
+ readonly manifestDigest: {
1923
+ readonly $ref: "#/$defs/DigestMultibase";
1924
+ };
1925
+ readonly answers: {
1926
+ readonly type: "array";
1927
+ readonly minItems: 1;
1928
+ readonly maxItems: 128;
1929
+ readonly items: {
1930
+ readonly $ref: "#/$defs/Answer";
1931
+ };
1932
+ };
1933
+ };
1934
+ };
1935
+ readonly Answer: {
1936
+ readonly title: "Answer";
1937
+ readonly description: "The answer to one question. Exactly one member besides `question` is present, matching the question's type, or `abstain` for an optional question left unanswered.";
1938
+ readonly type: "object";
1939
+ readonly additionalProperties: false;
1940
+ readonly required: readonly ["question"];
1941
+ readonly minProperties: 2;
1942
+ readonly maxProperties: 2;
1943
+ readonly properties: {
1944
+ readonly question: {
1945
+ readonly $ref: "#/$defs/Key";
1946
+ };
1947
+ readonly choice: {
1948
+ readonly type: "array";
1949
+ readonly items: {
1950
+ readonly $ref: "#/$defs/Key";
1951
+ };
1952
+ readonly uniqueItems: true;
1953
+ };
1954
+ readonly ranking: {
1955
+ readonly type: "array";
1956
+ readonly items: {
1957
+ readonly $ref: "#/$defs/Key";
1958
+ };
1959
+ readonly uniqueItems: true;
1960
+ };
1961
+ readonly scores: {
1962
+ readonly type: "object";
1963
+ readonly propertyNames: {
1964
+ readonly $ref: "#/$defs/Key";
1965
+ };
1966
+ readonly additionalProperties: {
1967
+ readonly type: "integer";
1968
+ };
1969
+ };
1970
+ readonly text: {
1971
+ readonly type: "string";
1972
+ readonly maxLength: 4096;
1973
+ };
1974
+ readonly abstain: {
1975
+ readonly const: true;
1976
+ };
1977
+ };
1978
+ };
1979
+ readonly Key: {
1980
+ readonly title: "Key";
1981
+ readonly description: "A question or option key, unique within its manifest or question.";
1982
+ readonly type: "string";
1983
+ readonly pattern: "^[A-Za-z0-9._-]{1,64}$";
1984
+ };
1985
+ readonly ElectionId: {
1986
+ readonly title: "ElectionId";
1987
+ 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.";
1988
+ readonly type: "string";
1989
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
1990
+ };
1991
+ readonly DigestMultibase: {
1992
+ readonly title: "DigestMultibase";
1993
+ 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`.";
1994
+ readonly type: "string";
1995
+ readonly minLength: 16;
1996
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
1997
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
1998
+ };
1999
+ readonly Manifest: {
2000
+ readonly title: "Manifest";
2001
+ 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).";
2002
+ readonly type: "object";
2003
+ readonly additionalProperties: false;
2004
+ readonly required: readonly ["electionId", "community", "questions", "secrecy", "roll", "registrationOpensAt", "votingOpensAt", "votingClosesAt", "revote", "board", "ballotBox", "binding", "allowEarlyClose", "resultsBeforeClose", "textReleaseThreshold"];
2005
+ readonly properties: {
2006
+ readonly electionId: {
2007
+ readonly $ref: "#/$defs/ElectionId";
2008
+ };
2009
+ readonly community: {
2010
+ readonly type: "string";
2011
+ readonly minLength: 1;
2012
+ readonly maxLength: 2048;
2013
+ readonly description: "The community's DID.";
2014
+ };
2015
+ readonly title: {
2016
+ readonly type: "string";
2017
+ readonly maxLength: 512;
2018
+ };
2019
+ readonly description: {
2020
+ readonly type: "string";
2021
+ readonly maxLength: 8192;
2022
+ };
2023
+ readonly questions: {
2024
+ readonly type: "array";
2025
+ readonly minItems: 1;
2026
+ readonly maxItems: 128;
2027
+ readonly items: {
2028
+ readonly $ref: "#/$defs/Question";
2029
+ };
2030
+ };
2031
+ readonly secrecy: {
2032
+ readonly $ref: "#/$defs/SecrecyLevel";
2033
+ };
2034
+ readonly roll: {
2035
+ readonly $ref: "#/$defs/RollRule";
2036
+ };
2037
+ readonly registrationOpensAt: {
2038
+ readonly type: "string";
2039
+ readonly format: "date-time";
2040
+ };
2041
+ readonly votingOpensAt: {
2042
+ readonly type: "string";
2043
+ readonly format: "date-time";
2044
+ };
2045
+ readonly votingClosesAt: {
2046
+ readonly type: "string";
2047
+ readonly format: "date-time";
2048
+ };
2049
+ readonly revote: {
2050
+ readonly $ref: "#/$defs/Revote";
2051
+ };
2052
+ readonly board: {
2053
+ readonly type: "object";
2054
+ readonly additionalProperties: false;
2055
+ readonly required: readonly ["visibility", "auditors"];
2056
+ readonly properties: {
2057
+ readonly visibility: {
2058
+ readonly $ref: "#/$defs/BoardVisibility";
2059
+ };
2060
+ readonly auditors: {
2061
+ readonly type: "array";
2062
+ readonly items: {
2063
+ readonly type: "string";
2064
+ readonly minLength: 1;
2065
+ readonly maxLength: 2048;
2066
+ };
2067
+ readonly uniqueItems: true;
2068
+ };
2069
+ };
2070
+ };
2071
+ readonly ballotBox: {
2072
+ readonly type: "string";
2073
+ readonly minLength: 1;
2074
+ readonly maxLength: 2048;
2075
+ readonly description: "The DID of the voting service that holds the board.";
2076
+ };
2077
+ readonly trustees: {
2078
+ readonly $ref: "#/$defs/Trustees";
2079
+ };
2080
+ readonly binding: {
2081
+ readonly type: "boolean";
2082
+ readonly description: "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081).";
2083
+ };
2084
+ readonly allowEarlyClose: {
2085
+ readonly type: "boolean";
2086
+ };
2087
+ readonly resultsBeforeClose: {
2088
+ readonly type: "boolean";
2089
+ readonly description: "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061).";
2090
+ };
2091
+ readonly textReleaseThreshold: {
2092
+ readonly type: "integer";
2093
+ readonly minimum: 1;
2094
+ readonly description: "Counted ballots required before any text answer is disclosed (VTI-VOT-065). At least 1, and SHOULD be at least 10: a written answer can identify its author by what it says or how it is phrased, and the fewer the ballots released together, the easier that is. Where it is below 10, the disclosure a member is shown before they request a ticket MUST say so, and MUST say that a written answer may identify its author (VTI-VOT-090).";
2095
+ };
2096
+ };
2097
+ };
2098
+ readonly Trustees: {
2099
+ readonly title: "Trustees";
2100
+ 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.";
2101
+ readonly type: "object";
2102
+ readonly additionalProperties: false;
2103
+ readonly required: readonly ["dids", "threshold"];
2104
+ readonly properties: {
2105
+ readonly dids: {
2106
+ readonly type: "array";
2107
+ readonly minItems: 2;
2108
+ readonly items: {
2109
+ readonly type: "string";
2110
+ readonly minLength: 1;
2111
+ readonly maxLength: 2048;
2112
+ };
2113
+ readonly uniqueItems: true;
2114
+ };
2115
+ readonly threshold: {
2116
+ readonly type: "integer";
2117
+ readonly minimum: 2;
2118
+ };
2119
+ };
2120
+ };
2121
+ readonly BoardVisibility: {
2122
+ readonly title: "BoardVisibility";
2123
+ 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).";
2124
+ readonly type: "string";
2125
+ readonly enum: readonly ["public", "private"];
2126
+ };
2127
+ readonly Revote: {
2128
+ readonly title: "Revote";
2129
+ readonly description: "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).";
2130
+ readonly type: "string";
2131
+ readonly enum: readonly ["replace", "refuse"];
2132
+ };
2133
+ readonly RollRule: {
2134
+ readonly title: "RollRule";
2135
+ readonly description: "Who may be issued a ticket (VTI-VOT-021): the community's active members (`members`), its active members and the parties `listed` names (`membersAndListed`), only the parties `listed` names (`listed`), or the holders of a membership credential for the one DID `memberOf` names (`credential`), proven by presentation when the holder claims their ticket and never resolved when the election is created (VTI-VOT-025). `memberOf` is present exactly when `rule` is `credential`, and `listed` is never present with it.";
2136
+ readonly type: "object";
2137
+ readonly additionalProperties: false;
2138
+ readonly required: readonly ["rule"];
2139
+ readonly properties: {
2140
+ readonly rule: {
2141
+ readonly type: "string";
2142
+ readonly enum: readonly ["members", "membersAndListed", "listed", "credential"];
2143
+ };
2144
+ readonly listed: {
2145
+ readonly type: "array";
2146
+ readonly items: {
2147
+ readonly type: "string";
2148
+ readonly minLength: 1;
2149
+ readonly maxLength: 2048;
2150
+ readonly description: "A DID enfranchised by name.";
2151
+ };
2152
+ readonly uniqueItems: true;
2153
+ };
2154
+ readonly memberOf: {
2155
+ readonly type: "string";
2156
+ readonly minLength: 8;
2157
+ readonly maxLength: 2048;
2158
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
2159
+ readonly description: "The DID whose membership credential admits its holder, under the `credential` rule: this community, one of its groups, or a party that is itself an active member of this community — holding a membership credential this community issued it — such as another community, a group of another community, or a network (VTI-VOT-026). Always a DID, never a group's local identifier or name. A community refuses to create an election naming any other DID (vtc/elections/create:rollUntrusted).";
2160
+ };
2161
+ };
2162
+ readonly dependentSchemas: {
2163
+ readonly rule: {
2164
+ readonly anyOf: readonly [{
2165
+ readonly required: readonly ["memberOf"];
2166
+ }, {
2167
+ readonly properties: {
2168
+ readonly rule: {
2169
+ readonly enum: readonly ["members", "membersAndListed", "listed"];
2170
+ };
2171
+ };
2172
+ }];
2173
+ };
2174
+ readonly memberOf: {
2175
+ readonly properties: {
2176
+ readonly rule: {
2177
+ readonly const: "credential";
2178
+ };
2179
+ };
2180
+ readonly not: {
2181
+ readonly required: readonly ["listed"];
2182
+ };
2183
+ };
2184
+ };
2185
+ };
2186
+ readonly SecrecyLevel: {
2187
+ readonly title: "SecrecyLevel";
2188
+ 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).";
2189
+ readonly type: "string";
2190
+ readonly enum: readonly ["open", "sealed", "talliedEncrypted"];
2191
+ };
2192
+ readonly Question: {
2193
+ readonly title: "Question";
2194
+ readonly description: "One question. Tagged union over `type`.";
2195
+ readonly oneOf: readonly [{
2196
+ readonly title: "ChoiceQuestion";
2197
+ readonly description: "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.";
2198
+ readonly type: "object";
2199
+ readonly additionalProperties: false;
2200
+ readonly required: readonly ["key", "type", "options", "minSelections", "maxSelections", "optional"];
2201
+ readonly properties: {
2202
+ readonly key: {
2203
+ readonly $ref: "#/$defs/Key";
2204
+ };
2205
+ readonly type: {
2206
+ readonly const: "choice";
2207
+ };
2208
+ readonly text: {
2209
+ readonly type: "string";
2210
+ readonly maxLength: 2048;
2211
+ };
2212
+ readonly options: {
2213
+ readonly type: "array";
2214
+ readonly minItems: 2;
2215
+ readonly maxItems: 256;
2216
+ readonly items: {
2217
+ readonly $ref: "#/$defs/QuestionOption";
2218
+ };
2219
+ };
2220
+ readonly minSelections: {
2221
+ readonly type: "integer";
2222
+ readonly minimum: 0;
2223
+ };
2224
+ readonly maxSelections: {
2225
+ readonly type: "integer";
2226
+ readonly minimum: 1;
2227
+ };
2228
+ readonly optional: {
2229
+ readonly type: "boolean";
2230
+ };
2231
+ };
2232
+ }, {
2233
+ readonly title: "RankingQuestion";
2234
+ readonly description: "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.";
2235
+ readonly type: "object";
2236
+ readonly additionalProperties: false;
2237
+ readonly required: readonly ["key", "type", "options", "partial", "optional"];
2238
+ readonly properties: {
2239
+ readonly key: {
2240
+ readonly $ref: "#/$defs/Key";
2241
+ };
2242
+ readonly type: {
2243
+ readonly const: "ranking";
2244
+ };
2245
+ readonly text: {
2246
+ readonly type: "string";
2247
+ readonly maxLength: 2048;
2248
+ };
2249
+ readonly options: {
2250
+ readonly type: "array";
2251
+ readonly minItems: 2;
2252
+ readonly maxItems: 64;
2253
+ readonly items: {
2254
+ readonly $ref: "#/$defs/QuestionOption";
2255
+ };
2256
+ };
2257
+ readonly partial: {
2258
+ readonly type: "boolean";
2259
+ };
2260
+ readonly optional: {
2261
+ readonly type: "boolean";
2262
+ };
2263
+ };
2264
+ }, {
2265
+ readonly title: "ScoreQuestion";
2266
+ readonly description: "Give each option an integer score within [min, max].";
2267
+ readonly type: "object";
2268
+ readonly additionalProperties: false;
2269
+ readonly required: readonly ["key", "type", "options", "min", "max", "optional"];
2270
+ readonly properties: {
2271
+ readonly key: {
2272
+ readonly $ref: "#/$defs/Key";
2273
+ };
2274
+ readonly type: {
2275
+ readonly const: "score";
2276
+ };
2277
+ readonly text: {
2278
+ readonly type: "string";
2279
+ readonly maxLength: 2048;
2280
+ };
2281
+ readonly options: {
2282
+ readonly type: "array";
2283
+ readonly minItems: 1;
2284
+ readonly maxItems: 256;
2285
+ readonly items: {
2286
+ readonly $ref: "#/$defs/QuestionOption";
2287
+ };
2288
+ };
2289
+ readonly min: {
2290
+ readonly type: "integer";
2291
+ };
2292
+ readonly max: {
2293
+ readonly type: "integer";
2294
+ };
2295
+ readonly optional: {
2296
+ readonly type: "boolean";
2297
+ };
2298
+ };
2299
+ }, {
2300
+ readonly title: "TextQuestion";
2301
+ readonly description: "Free text of at most `maxLength` characters.";
2302
+ readonly type: "object";
2303
+ readonly additionalProperties: false;
2304
+ readonly required: readonly ["key", "type", "maxLength", "optional"];
2305
+ readonly properties: {
2306
+ readonly key: {
2307
+ readonly $ref: "#/$defs/Key";
2308
+ };
2309
+ readonly type: {
2310
+ readonly const: "text";
2311
+ };
2312
+ readonly text: {
2313
+ readonly type: "string";
2314
+ readonly maxLength: 2048;
2315
+ };
2316
+ readonly maxLength: {
2317
+ readonly type: "integer";
2318
+ readonly minimum: 1;
2319
+ readonly maximum: 4096;
2320
+ };
2321
+ readonly optional: {
2322
+ readonly type: "boolean";
2323
+ };
2324
+ };
2325
+ }];
2326
+ };
2327
+ readonly QuestionOption: {
2328
+ readonly title: "QuestionOption";
2329
+ readonly type: "object";
2330
+ readonly additionalProperties: false;
2331
+ readonly required: readonly ["key"];
2332
+ readonly properties: {
2333
+ readonly key: {
2334
+ readonly $ref: "#/$defs/Key";
2335
+ };
2336
+ readonly label: {
2337
+ readonly type: "string";
2338
+ readonly maxLength: 512;
2339
+ readonly description: "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014).";
2340
+ };
2341
+ };
2342
+ };
2343
+ readonly VotingParameters: {
2344
+ readonly title: "VotingParameters";
2345
+ readonly description: "The community's published voting parameters: the PCS suite and the voting verification key tickets are issued under (VTI-VOT-020). Distinct from its hidden-vetting helper key.";
2346
+ readonly type: "object";
2347
+ readonly additionalProperties: false;
2348
+ readonly required: readonly ["suite", "votingKey"];
2349
+ readonly properties: {
2350
+ readonly suite: {
2351
+ readonly type: "string";
2352
+ readonly const: "ps-ddh-bls12381";
2353
+ };
2354
+ readonly votingKey: {
2355
+ readonly $ref: "#/$defs/Multibase";
2356
+ };
2357
+ };
2358
+ };
2359
+ };
2360
+ };
2361
+ };
2362
+ //# sourceMappingURL=payload.d.ts.map