@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,1207 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/pcs/trustee/enrol/0.4/payload.schema.json
4
+ */
5
+
6
+ import type { BoardVisibility, ChoiceQuestion, ElectionId, Ext, Key_VotingV0_1 as Key, Manifest_VotingV0_4 as Manifest, Question, QuestionOption, RankingQuestion, Revote, RollRule_VotingV0_4 as RollRule, ScoreQuestion, SecrecyLevel, TextQuestion, Trustees } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * The trustee's VTA generates the election's transport key and returns the voting/trustees/enrol request signed as the trustee.
11
+ */
12
+ export interface VTAPCSTrusteeEnrolPayload {
13
+ /**
14
+ * The VTA context the trustee's keys live in.
15
+ */
16
+ contextId: string;
17
+ /**
18
+ * The community's DID.
19
+ */
20
+ community: string;
21
+ electionId: ElectionId;
22
+ /**
23
+ * The trustee's DID: a persona this VTA holds, named in the manifest's `trustees.dids`.
24
+ */
25
+ trustee: string;
26
+ manifest: Manifest;
27
+ ext?: Ext;
28
+ }
29
+ export interface VTAPCSTrusteeEnrolResponsePayload {
30
+ document: EnrolDocument;
31
+ ext?: Ext;
32
+ }
33
+ /**
34
+ * The voting/trustees/enrol request, signed as the trustee, to send to the ballot box unchanged.
35
+ */
36
+ export interface EnrolDocument {
37
+ id: string;
38
+ type: "https://trusttasks.org/spec/voting/trustees/enrol/0.1";
39
+ /**
40
+ * The signer.
41
+ */
42
+ issuer: string;
43
+ /**
44
+ * The ballot box.
45
+ */
46
+ recipient: string;
47
+ issuedAt: string;
48
+ expiresAt?: string;
49
+ /**
50
+ * That task's request payload.
51
+ */
52
+ payload: {};
53
+ /**
54
+ * A Data Integrity proof by an `authentication` key of `issuer`.
55
+ */
56
+ proof: {};
57
+ }
58
+
59
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
60
+ export type { BoardVisibility, ChoiceQuestion, ElectionId, Ext, Key, Manifest, Question, QuestionOption, RankingQuestion, Revote, RollRule, ScoreQuestion, SecrecyLevel, TextQuestion, Trustees };
61
+
62
+ /** Trust Task type URI. */
63
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/pcs/trustee/enrol/0.4" as const;
64
+
65
+ /**
66
+ * The earlier version of this specification that this one declares it
67
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
68
+ * `null`. Only the direct declaration — follow the chain with
69
+ * `extendsChain` / `readForSpec`.
70
+ */
71
+ export const EXTENDS: string | null = null;
72
+
73
+ /**
74
+ * Why this version is deprecated, or `null` while it is current. A
75
+ * superseded or retired version is still supported, and is withdrawn from
76
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
77
+ * Versions").
78
+ */
79
+ export const DEPRECATION: string | null = null;
80
+
81
+ /** Stable alias for this specification's request payload shape. */
82
+ export type Payload = VTAPCSTrusteeEnrolPayload;
83
+
84
+ /** Trust Task response type URI (request type URI + "#response"). */
85
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/pcs/trustee/enrol/0.4#response" as const;
86
+
87
+ /** Stable alias for this specification's success-response payload shape. */
88
+ export type Response = VTAPCSTrusteeEnrolResponsePayload;
89
+
90
+ /**
91
+ * This specification's payload schema, as a value.
92
+ *
93
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
94
+ * rather than only as a `.json` file because TypeScript types are erased
95
+ * at runtime: without a schema a consumer has nothing to validate, and
96
+ * every REQUIRED payload member is optional in practice. Cross-file
97
+ * `$ref`s are already inlined, so it needs no resolver.
98
+ */
99
+ export const PAYLOAD_SCHEMA = {
100
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
101
+ "$id": "https://trusttasks.org/spec/vta/pcs/trustee/enrol/0.4",
102
+ "title": "VTA PCS — Trustee Enrol — payload",
103
+ "description": "The trustee's VTA generates the election's transport key and returns the voting/trustees/enrol request signed as the trustee.",
104
+ "type": "object",
105
+ "additionalProperties": false,
106
+ "required": [
107
+ "contextId",
108
+ "community",
109
+ "electionId",
110
+ "trustee",
111
+ "manifest"
112
+ ],
113
+ "properties": {
114
+ "contextId": {
115
+ "type": "string",
116
+ "minLength": 1,
117
+ "maxLength": 256,
118
+ "description": "The VTA context the trustee's keys live in."
119
+ },
120
+ "community": {
121
+ "type": "string",
122
+ "minLength": 1,
123
+ "maxLength": 2048,
124
+ "description": "The community's DID."
125
+ },
126
+ "electionId": {
127
+ "$ref": "#/$defs/ElectionId"
128
+ },
129
+ "trustee": {
130
+ "type": "string",
131
+ "minLength": 1,
132
+ "maxLength": 2048,
133
+ "description": "The trustee's DID: a persona this VTA holds, named in the manifest's `trustees.dids`."
134
+ },
135
+ "manifest": {
136
+ "$ref": "#/$defs/Manifest"
137
+ },
138
+ "ext": {
139
+ "$ref": "#/$defs/Ext"
140
+ }
141
+ },
142
+ "$defs": {
143
+ "Response": {
144
+ "$anchor": "response",
145
+ "title": "VTA PCS — Trustee Enrol — response payload",
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "required": [
149
+ "document"
150
+ ],
151
+ "properties": {
152
+ "document": {
153
+ "title": "EnrolDocument",
154
+ "description": "The voting/trustees/enrol request, signed as the trustee, to send to the ballot box unchanged.",
155
+ "type": "object",
156
+ "required": [
157
+ "id",
158
+ "type",
159
+ "issuer",
160
+ "recipient",
161
+ "issuedAt",
162
+ "payload",
163
+ "proof"
164
+ ],
165
+ "properties": {
166
+ "id": {
167
+ "type": "string",
168
+ "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}$"
169
+ },
170
+ "type": {
171
+ "const": "https://trusttasks.org/spec/voting/trustees/enrol/0.1"
172
+ },
173
+ "issuer": {
174
+ "type": "string",
175
+ "minLength": 1,
176
+ "maxLength": 2048,
177
+ "description": "The signer."
178
+ },
179
+ "recipient": {
180
+ "type": "string",
181
+ "minLength": 1,
182
+ "maxLength": 2048,
183
+ "description": "The ballot box."
184
+ },
185
+ "issuedAt": {
186
+ "type": "string",
187
+ "format": "date-time"
188
+ },
189
+ "expiresAt": {
190
+ "type": "string",
191
+ "format": "date-time"
192
+ },
193
+ "payload": {
194
+ "type": "object",
195
+ "description": "That task's request payload."
196
+ },
197
+ "proof": {
198
+ "type": "object",
199
+ "description": "A Data Integrity proof by an `authentication` key of `issuer`."
200
+ }
201
+ }
202
+ },
203
+ "ext": {
204
+ "$ref": "#/$defs/Ext"
205
+ }
206
+ }
207
+ },
208
+ "Ext": {
209
+ "title": "Ext",
210
+ "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.",
211
+ "type": "object",
212
+ "minProperties": 1,
213
+ "additionalProperties": true,
214
+ "propertyNames": {
215
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
216
+ }
217
+ },
218
+ "Manifest": {
219
+ "title": "Manifest",
220
+ "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).",
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "required": [
224
+ "electionId",
225
+ "community",
226
+ "questions",
227
+ "secrecy",
228
+ "roll",
229
+ "registrationOpensAt",
230
+ "votingOpensAt",
231
+ "votingClosesAt",
232
+ "revote",
233
+ "board",
234
+ "ballotBox",
235
+ "binding",
236
+ "allowEarlyClose",
237
+ "resultsBeforeClose",
238
+ "textReleaseThreshold"
239
+ ],
240
+ "properties": {
241
+ "electionId": {
242
+ "$ref": "#/$defs/ElectionId"
243
+ },
244
+ "community": {
245
+ "type": "string",
246
+ "minLength": 1,
247
+ "maxLength": 2048,
248
+ "description": "The community's DID."
249
+ },
250
+ "title": {
251
+ "type": "string",
252
+ "maxLength": 512
253
+ },
254
+ "description": {
255
+ "type": "string",
256
+ "maxLength": 8192
257
+ },
258
+ "questions": {
259
+ "type": "array",
260
+ "minItems": 1,
261
+ "maxItems": 128,
262
+ "items": {
263
+ "$ref": "#/$defs/Question"
264
+ }
265
+ },
266
+ "secrecy": {
267
+ "$ref": "#/$defs/SecrecyLevel"
268
+ },
269
+ "roll": {
270
+ "$ref": "#/$defs/RollRule"
271
+ },
272
+ "registrationOpensAt": {
273
+ "type": "string",
274
+ "format": "date-time"
275
+ },
276
+ "votingOpensAt": {
277
+ "type": "string",
278
+ "format": "date-time"
279
+ },
280
+ "votingClosesAt": {
281
+ "type": "string",
282
+ "format": "date-time"
283
+ },
284
+ "revote": {
285
+ "$ref": "#/$defs/Revote"
286
+ },
287
+ "board": {
288
+ "type": "object",
289
+ "additionalProperties": false,
290
+ "required": [
291
+ "visibility",
292
+ "auditors"
293
+ ],
294
+ "properties": {
295
+ "visibility": {
296
+ "$ref": "#/$defs/BoardVisibility"
297
+ },
298
+ "auditors": {
299
+ "type": "array",
300
+ "items": {
301
+ "type": "string",
302
+ "minLength": 1,
303
+ "maxLength": 2048
304
+ },
305
+ "uniqueItems": true
306
+ }
307
+ }
308
+ },
309
+ "ballotBox": {
310
+ "type": "string",
311
+ "minLength": 1,
312
+ "maxLength": 2048,
313
+ "description": "The DID of the voting service that holds the board."
314
+ },
315
+ "trustees": {
316
+ "$ref": "#/$defs/Trustees"
317
+ },
318
+ "binding": {
319
+ "type": "boolean",
320
+ "description": "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081)."
321
+ },
322
+ "allowEarlyClose": {
323
+ "type": "boolean"
324
+ },
325
+ "resultsBeforeClose": {
326
+ "type": "boolean",
327
+ "description": "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061)."
328
+ },
329
+ "textReleaseThreshold": {
330
+ "type": "integer",
331
+ "minimum": 1,
332
+ "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)."
333
+ }
334
+ }
335
+ },
336
+ "Trustees": {
337
+ "title": "Trustees",
338
+ "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.",
339
+ "type": "object",
340
+ "additionalProperties": false,
341
+ "required": [
342
+ "dids",
343
+ "threshold"
344
+ ],
345
+ "properties": {
346
+ "dids": {
347
+ "type": "array",
348
+ "minItems": 2,
349
+ "items": {
350
+ "type": "string",
351
+ "minLength": 1,
352
+ "maxLength": 2048
353
+ },
354
+ "uniqueItems": true
355
+ },
356
+ "threshold": {
357
+ "type": "integer",
358
+ "minimum": 2
359
+ }
360
+ }
361
+ },
362
+ "BoardVisibility": {
363
+ "title": "BoardVisibility",
364
+ "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).",
365
+ "type": "string",
366
+ "enum": [
367
+ "public",
368
+ "private"
369
+ ]
370
+ },
371
+ "Revote": {
372
+ "title": "Revote",
373
+ "description": "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).",
374
+ "type": "string",
375
+ "enum": [
376
+ "replace",
377
+ "refuse"
378
+ ]
379
+ },
380
+ "RollRule": {
381
+ "title": "RollRule",
382
+ "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.",
383
+ "type": "object",
384
+ "additionalProperties": false,
385
+ "required": [
386
+ "rule"
387
+ ],
388
+ "properties": {
389
+ "rule": {
390
+ "type": "string",
391
+ "enum": [
392
+ "members",
393
+ "membersAndListed",
394
+ "listed",
395
+ "credential"
396
+ ]
397
+ },
398
+ "listed": {
399
+ "type": "array",
400
+ "items": {
401
+ "type": "string",
402
+ "minLength": 1,
403
+ "maxLength": 2048,
404
+ "description": "A DID enfranchised by name."
405
+ },
406
+ "uniqueItems": true
407
+ },
408
+ "memberOf": {
409
+ "type": "string",
410
+ "minLength": 8,
411
+ "maxLength": 2048,
412
+ "pattern": "^did:[a-z0-9]+:\\S+$",
413
+ "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)."
414
+ }
415
+ },
416
+ "dependentSchemas": {
417
+ "rule": {
418
+ "anyOf": [
419
+ {
420
+ "required": [
421
+ "memberOf"
422
+ ]
423
+ },
424
+ {
425
+ "properties": {
426
+ "rule": {
427
+ "enum": [
428
+ "members",
429
+ "membersAndListed",
430
+ "listed"
431
+ ]
432
+ }
433
+ }
434
+ }
435
+ ]
436
+ },
437
+ "memberOf": {
438
+ "properties": {
439
+ "rule": {
440
+ "const": "credential"
441
+ }
442
+ },
443
+ "not": {
444
+ "required": [
445
+ "listed"
446
+ ]
447
+ }
448
+ }
449
+ }
450
+ },
451
+ "SecrecyLevel": {
452
+ "title": "SecrecyLevel",
453
+ "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).",
454
+ "type": "string",
455
+ "enum": [
456
+ "open",
457
+ "sealed",
458
+ "talliedEncrypted"
459
+ ]
460
+ },
461
+ "Question": {
462
+ "title": "Question",
463
+ "description": "One question. Tagged union over `type`.",
464
+ "oneOf": [
465
+ {
466
+ "title": "ChoiceQuestion",
467
+ "description": "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.",
468
+ "type": "object",
469
+ "additionalProperties": false,
470
+ "required": [
471
+ "key",
472
+ "type",
473
+ "options",
474
+ "minSelections",
475
+ "maxSelections",
476
+ "optional"
477
+ ],
478
+ "properties": {
479
+ "key": {
480
+ "$ref": "#/$defs/Key"
481
+ },
482
+ "type": {
483
+ "const": "choice"
484
+ },
485
+ "text": {
486
+ "type": "string",
487
+ "maxLength": 2048
488
+ },
489
+ "options": {
490
+ "type": "array",
491
+ "minItems": 2,
492
+ "maxItems": 256,
493
+ "items": {
494
+ "$ref": "#/$defs/QuestionOption"
495
+ }
496
+ },
497
+ "minSelections": {
498
+ "type": "integer",
499
+ "minimum": 0
500
+ },
501
+ "maxSelections": {
502
+ "type": "integer",
503
+ "minimum": 1
504
+ },
505
+ "optional": {
506
+ "type": "boolean"
507
+ }
508
+ }
509
+ },
510
+ {
511
+ "title": "RankingQuestion",
512
+ "description": "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.",
513
+ "type": "object",
514
+ "additionalProperties": false,
515
+ "required": [
516
+ "key",
517
+ "type",
518
+ "options",
519
+ "partial",
520
+ "optional"
521
+ ],
522
+ "properties": {
523
+ "key": {
524
+ "$ref": "#/$defs/Key"
525
+ },
526
+ "type": {
527
+ "const": "ranking"
528
+ },
529
+ "text": {
530
+ "type": "string",
531
+ "maxLength": 2048
532
+ },
533
+ "options": {
534
+ "type": "array",
535
+ "minItems": 2,
536
+ "maxItems": 64,
537
+ "items": {
538
+ "$ref": "#/$defs/QuestionOption"
539
+ }
540
+ },
541
+ "partial": {
542
+ "type": "boolean"
543
+ },
544
+ "optional": {
545
+ "type": "boolean"
546
+ }
547
+ }
548
+ },
549
+ {
550
+ "title": "ScoreQuestion",
551
+ "description": "Give each option an integer score within [min, max].",
552
+ "type": "object",
553
+ "additionalProperties": false,
554
+ "required": [
555
+ "key",
556
+ "type",
557
+ "options",
558
+ "min",
559
+ "max",
560
+ "optional"
561
+ ],
562
+ "properties": {
563
+ "key": {
564
+ "$ref": "#/$defs/Key"
565
+ },
566
+ "type": {
567
+ "const": "score"
568
+ },
569
+ "text": {
570
+ "type": "string",
571
+ "maxLength": 2048
572
+ },
573
+ "options": {
574
+ "type": "array",
575
+ "minItems": 1,
576
+ "maxItems": 256,
577
+ "items": {
578
+ "$ref": "#/$defs/QuestionOption"
579
+ }
580
+ },
581
+ "min": {
582
+ "type": "integer"
583
+ },
584
+ "max": {
585
+ "type": "integer"
586
+ },
587
+ "optional": {
588
+ "type": "boolean"
589
+ }
590
+ }
591
+ },
592
+ {
593
+ "title": "TextQuestion",
594
+ "description": "Free text of at most `maxLength` characters.",
595
+ "type": "object",
596
+ "additionalProperties": false,
597
+ "required": [
598
+ "key",
599
+ "type",
600
+ "maxLength",
601
+ "optional"
602
+ ],
603
+ "properties": {
604
+ "key": {
605
+ "$ref": "#/$defs/Key"
606
+ },
607
+ "type": {
608
+ "const": "text"
609
+ },
610
+ "text": {
611
+ "type": "string",
612
+ "maxLength": 2048
613
+ },
614
+ "maxLength": {
615
+ "type": "integer",
616
+ "minimum": 1,
617
+ "maximum": 4096
618
+ },
619
+ "optional": {
620
+ "type": "boolean"
621
+ }
622
+ }
623
+ }
624
+ ]
625
+ },
626
+ "Key": {
627
+ "title": "Key",
628
+ "description": "A question or option key, unique within its manifest or question.",
629
+ "type": "string",
630
+ "pattern": "^[A-Za-z0-9._-]{1,64}$"
631
+ },
632
+ "QuestionOption": {
633
+ "title": "QuestionOption",
634
+ "type": "object",
635
+ "additionalProperties": false,
636
+ "required": [
637
+ "key"
638
+ ],
639
+ "properties": {
640
+ "key": {
641
+ "$ref": "#/$defs/Key"
642
+ },
643
+ "label": {
644
+ "type": "string",
645
+ "maxLength": 512,
646
+ "description": "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014)."
647
+ }
648
+ }
649
+ },
650
+ "ElectionId": {
651
+ "title": "ElectionId",
652
+ "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.",
653
+ "type": "string",
654
+ "pattern": "^[A-Za-z0-9._-]{1,128}$"
655
+ }
656
+ }
657
+ } as const;
658
+
659
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
660
+ export const RESPONSE_PAYLOAD_SCHEMA = {
661
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
662
+ "$ref": "#/$defs/Response",
663
+ "$defs": {
664
+ "Response": {
665
+ "$anchor": "response",
666
+ "title": "VTA PCS — Trustee Enrol — response payload",
667
+ "type": "object",
668
+ "additionalProperties": false,
669
+ "required": [
670
+ "document"
671
+ ],
672
+ "properties": {
673
+ "document": {
674
+ "title": "EnrolDocument",
675
+ "description": "The voting/trustees/enrol request, signed as the trustee, to send to the ballot box unchanged.",
676
+ "type": "object",
677
+ "required": [
678
+ "id",
679
+ "type",
680
+ "issuer",
681
+ "recipient",
682
+ "issuedAt",
683
+ "payload",
684
+ "proof"
685
+ ],
686
+ "properties": {
687
+ "id": {
688
+ "type": "string",
689
+ "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
+ "type": {
692
+ "const": "https://trusttasks.org/spec/voting/trustees/enrol/0.1"
693
+ },
694
+ "issuer": {
695
+ "type": "string",
696
+ "minLength": 1,
697
+ "maxLength": 2048,
698
+ "description": "The signer."
699
+ },
700
+ "recipient": {
701
+ "type": "string",
702
+ "minLength": 1,
703
+ "maxLength": 2048,
704
+ "description": "The ballot box."
705
+ },
706
+ "issuedAt": {
707
+ "type": "string",
708
+ "format": "date-time"
709
+ },
710
+ "expiresAt": {
711
+ "type": "string",
712
+ "format": "date-time"
713
+ },
714
+ "payload": {
715
+ "type": "object",
716
+ "description": "That task's request payload."
717
+ },
718
+ "proof": {
719
+ "type": "object",
720
+ "description": "A Data Integrity proof by an `authentication` key of `issuer`."
721
+ }
722
+ }
723
+ },
724
+ "ext": {
725
+ "$ref": "#/$defs/Ext"
726
+ }
727
+ }
728
+ },
729
+ "Ext": {
730
+ "title": "Ext",
731
+ "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.",
732
+ "type": "object",
733
+ "minProperties": 1,
734
+ "additionalProperties": true,
735
+ "propertyNames": {
736
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
737
+ }
738
+ },
739
+ "Manifest": {
740
+ "title": "Manifest",
741
+ "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).",
742
+ "type": "object",
743
+ "additionalProperties": false,
744
+ "required": [
745
+ "electionId",
746
+ "community",
747
+ "questions",
748
+ "secrecy",
749
+ "roll",
750
+ "registrationOpensAt",
751
+ "votingOpensAt",
752
+ "votingClosesAt",
753
+ "revote",
754
+ "board",
755
+ "ballotBox",
756
+ "binding",
757
+ "allowEarlyClose",
758
+ "resultsBeforeClose",
759
+ "textReleaseThreshold"
760
+ ],
761
+ "properties": {
762
+ "electionId": {
763
+ "$ref": "#/$defs/ElectionId"
764
+ },
765
+ "community": {
766
+ "type": "string",
767
+ "minLength": 1,
768
+ "maxLength": 2048,
769
+ "description": "The community's DID."
770
+ },
771
+ "title": {
772
+ "type": "string",
773
+ "maxLength": 512
774
+ },
775
+ "description": {
776
+ "type": "string",
777
+ "maxLength": 8192
778
+ },
779
+ "questions": {
780
+ "type": "array",
781
+ "minItems": 1,
782
+ "maxItems": 128,
783
+ "items": {
784
+ "$ref": "#/$defs/Question"
785
+ }
786
+ },
787
+ "secrecy": {
788
+ "$ref": "#/$defs/SecrecyLevel"
789
+ },
790
+ "roll": {
791
+ "$ref": "#/$defs/RollRule"
792
+ },
793
+ "registrationOpensAt": {
794
+ "type": "string",
795
+ "format": "date-time"
796
+ },
797
+ "votingOpensAt": {
798
+ "type": "string",
799
+ "format": "date-time"
800
+ },
801
+ "votingClosesAt": {
802
+ "type": "string",
803
+ "format": "date-time"
804
+ },
805
+ "revote": {
806
+ "$ref": "#/$defs/Revote"
807
+ },
808
+ "board": {
809
+ "type": "object",
810
+ "additionalProperties": false,
811
+ "required": [
812
+ "visibility",
813
+ "auditors"
814
+ ],
815
+ "properties": {
816
+ "visibility": {
817
+ "$ref": "#/$defs/BoardVisibility"
818
+ },
819
+ "auditors": {
820
+ "type": "array",
821
+ "items": {
822
+ "type": "string",
823
+ "minLength": 1,
824
+ "maxLength": 2048
825
+ },
826
+ "uniqueItems": true
827
+ }
828
+ }
829
+ },
830
+ "ballotBox": {
831
+ "type": "string",
832
+ "minLength": 1,
833
+ "maxLength": 2048,
834
+ "description": "The DID of the voting service that holds the board."
835
+ },
836
+ "trustees": {
837
+ "$ref": "#/$defs/Trustees"
838
+ },
839
+ "binding": {
840
+ "type": "boolean",
841
+ "description": "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081)."
842
+ },
843
+ "allowEarlyClose": {
844
+ "type": "boolean"
845
+ },
846
+ "resultsBeforeClose": {
847
+ "type": "boolean",
848
+ "description": "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061)."
849
+ },
850
+ "textReleaseThreshold": {
851
+ "type": "integer",
852
+ "minimum": 1,
853
+ "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)."
854
+ }
855
+ }
856
+ },
857
+ "Trustees": {
858
+ "title": "Trustees",
859
+ "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.",
860
+ "type": "object",
861
+ "additionalProperties": false,
862
+ "required": [
863
+ "dids",
864
+ "threshold"
865
+ ],
866
+ "properties": {
867
+ "dids": {
868
+ "type": "array",
869
+ "minItems": 2,
870
+ "items": {
871
+ "type": "string",
872
+ "minLength": 1,
873
+ "maxLength": 2048
874
+ },
875
+ "uniqueItems": true
876
+ },
877
+ "threshold": {
878
+ "type": "integer",
879
+ "minimum": 2
880
+ }
881
+ }
882
+ },
883
+ "BoardVisibility": {
884
+ "title": "BoardVisibility",
885
+ "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).",
886
+ "type": "string",
887
+ "enum": [
888
+ "public",
889
+ "private"
890
+ ]
891
+ },
892
+ "Revote": {
893
+ "title": "Revote",
894
+ "description": "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).",
895
+ "type": "string",
896
+ "enum": [
897
+ "replace",
898
+ "refuse"
899
+ ]
900
+ },
901
+ "RollRule": {
902
+ "title": "RollRule",
903
+ "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.",
904
+ "type": "object",
905
+ "additionalProperties": false,
906
+ "required": [
907
+ "rule"
908
+ ],
909
+ "properties": {
910
+ "rule": {
911
+ "type": "string",
912
+ "enum": [
913
+ "members",
914
+ "membersAndListed",
915
+ "listed",
916
+ "credential"
917
+ ]
918
+ },
919
+ "listed": {
920
+ "type": "array",
921
+ "items": {
922
+ "type": "string",
923
+ "minLength": 1,
924
+ "maxLength": 2048,
925
+ "description": "A DID enfranchised by name."
926
+ },
927
+ "uniqueItems": true
928
+ },
929
+ "memberOf": {
930
+ "type": "string",
931
+ "minLength": 8,
932
+ "maxLength": 2048,
933
+ "pattern": "^did:[a-z0-9]+:\\S+$",
934
+ "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)."
935
+ }
936
+ },
937
+ "dependentSchemas": {
938
+ "rule": {
939
+ "anyOf": [
940
+ {
941
+ "required": [
942
+ "memberOf"
943
+ ]
944
+ },
945
+ {
946
+ "properties": {
947
+ "rule": {
948
+ "enum": [
949
+ "members",
950
+ "membersAndListed",
951
+ "listed"
952
+ ]
953
+ }
954
+ }
955
+ }
956
+ ]
957
+ },
958
+ "memberOf": {
959
+ "properties": {
960
+ "rule": {
961
+ "const": "credential"
962
+ }
963
+ },
964
+ "not": {
965
+ "required": [
966
+ "listed"
967
+ ]
968
+ }
969
+ }
970
+ }
971
+ },
972
+ "SecrecyLevel": {
973
+ "title": "SecrecyLevel",
974
+ "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).",
975
+ "type": "string",
976
+ "enum": [
977
+ "open",
978
+ "sealed",
979
+ "talliedEncrypted"
980
+ ]
981
+ },
982
+ "Question": {
983
+ "title": "Question",
984
+ "description": "One question. Tagged union over `type`.",
985
+ "oneOf": [
986
+ {
987
+ "title": "ChoiceQuestion",
988
+ "description": "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.",
989
+ "type": "object",
990
+ "additionalProperties": false,
991
+ "required": [
992
+ "key",
993
+ "type",
994
+ "options",
995
+ "minSelections",
996
+ "maxSelections",
997
+ "optional"
998
+ ],
999
+ "properties": {
1000
+ "key": {
1001
+ "$ref": "#/$defs/Key"
1002
+ },
1003
+ "type": {
1004
+ "const": "choice"
1005
+ },
1006
+ "text": {
1007
+ "type": "string",
1008
+ "maxLength": 2048
1009
+ },
1010
+ "options": {
1011
+ "type": "array",
1012
+ "minItems": 2,
1013
+ "maxItems": 256,
1014
+ "items": {
1015
+ "$ref": "#/$defs/QuestionOption"
1016
+ }
1017
+ },
1018
+ "minSelections": {
1019
+ "type": "integer",
1020
+ "minimum": 0
1021
+ },
1022
+ "maxSelections": {
1023
+ "type": "integer",
1024
+ "minimum": 1
1025
+ },
1026
+ "optional": {
1027
+ "type": "boolean"
1028
+ }
1029
+ }
1030
+ },
1031
+ {
1032
+ "title": "RankingQuestion",
1033
+ "description": "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.",
1034
+ "type": "object",
1035
+ "additionalProperties": false,
1036
+ "required": [
1037
+ "key",
1038
+ "type",
1039
+ "options",
1040
+ "partial",
1041
+ "optional"
1042
+ ],
1043
+ "properties": {
1044
+ "key": {
1045
+ "$ref": "#/$defs/Key"
1046
+ },
1047
+ "type": {
1048
+ "const": "ranking"
1049
+ },
1050
+ "text": {
1051
+ "type": "string",
1052
+ "maxLength": 2048
1053
+ },
1054
+ "options": {
1055
+ "type": "array",
1056
+ "minItems": 2,
1057
+ "maxItems": 64,
1058
+ "items": {
1059
+ "$ref": "#/$defs/QuestionOption"
1060
+ }
1061
+ },
1062
+ "partial": {
1063
+ "type": "boolean"
1064
+ },
1065
+ "optional": {
1066
+ "type": "boolean"
1067
+ }
1068
+ }
1069
+ },
1070
+ {
1071
+ "title": "ScoreQuestion",
1072
+ "description": "Give each option an integer score within [min, max].",
1073
+ "type": "object",
1074
+ "additionalProperties": false,
1075
+ "required": [
1076
+ "key",
1077
+ "type",
1078
+ "options",
1079
+ "min",
1080
+ "max",
1081
+ "optional"
1082
+ ],
1083
+ "properties": {
1084
+ "key": {
1085
+ "$ref": "#/$defs/Key"
1086
+ },
1087
+ "type": {
1088
+ "const": "score"
1089
+ },
1090
+ "text": {
1091
+ "type": "string",
1092
+ "maxLength": 2048
1093
+ },
1094
+ "options": {
1095
+ "type": "array",
1096
+ "minItems": 1,
1097
+ "maxItems": 256,
1098
+ "items": {
1099
+ "$ref": "#/$defs/QuestionOption"
1100
+ }
1101
+ },
1102
+ "min": {
1103
+ "type": "integer"
1104
+ },
1105
+ "max": {
1106
+ "type": "integer"
1107
+ },
1108
+ "optional": {
1109
+ "type": "boolean"
1110
+ }
1111
+ }
1112
+ },
1113
+ {
1114
+ "title": "TextQuestion",
1115
+ "description": "Free text of at most `maxLength` characters.",
1116
+ "type": "object",
1117
+ "additionalProperties": false,
1118
+ "required": [
1119
+ "key",
1120
+ "type",
1121
+ "maxLength",
1122
+ "optional"
1123
+ ],
1124
+ "properties": {
1125
+ "key": {
1126
+ "$ref": "#/$defs/Key"
1127
+ },
1128
+ "type": {
1129
+ "const": "text"
1130
+ },
1131
+ "text": {
1132
+ "type": "string",
1133
+ "maxLength": 2048
1134
+ },
1135
+ "maxLength": {
1136
+ "type": "integer",
1137
+ "minimum": 1,
1138
+ "maximum": 4096
1139
+ },
1140
+ "optional": {
1141
+ "type": "boolean"
1142
+ }
1143
+ }
1144
+ }
1145
+ ]
1146
+ },
1147
+ "Key": {
1148
+ "title": "Key",
1149
+ "description": "A question or option key, unique within its manifest or question.",
1150
+ "type": "string",
1151
+ "pattern": "^[A-Za-z0-9._-]{1,64}$"
1152
+ },
1153
+ "QuestionOption": {
1154
+ "title": "QuestionOption",
1155
+ "type": "object",
1156
+ "additionalProperties": false,
1157
+ "required": [
1158
+ "key"
1159
+ ],
1160
+ "properties": {
1161
+ "key": {
1162
+ "$ref": "#/$defs/Key"
1163
+ },
1164
+ "label": {
1165
+ "type": "string",
1166
+ "maxLength": 512,
1167
+ "description": "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014)."
1168
+ }
1169
+ }
1170
+ },
1171
+ "ElectionId": {
1172
+ "title": "ElectionId",
1173
+ "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.",
1174
+ "type": "string",
1175
+ "pattern": "^[A-Za-z0-9._-]{1,128}$"
1176
+ }
1177
+ }
1178
+ } as const;
1179
+
1180
+ /**
1181
+ * SPEC.md §7.2 policy for the request variant, from this specification's
1182
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
1183
+ * per-specification and cannot be derived from the document alone, and
1184
+ * item 2 needs the schema this carries.
1185
+ */
1186
+ export const SPEC = {
1187
+ typeUri: TYPE_URI,
1188
+ isBearer: false,
1189
+ isProofRequired: true,
1190
+ isRecipientRequired: true,
1191
+ isIssuedAtRequired: true,
1192
+ payloadSchema: PAYLOAD_SCHEMA,
1193
+ } as const;
1194
+
1195
+ /**
1196
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
1197
+ * tracks the *issuer* party's requirement because a response swaps the
1198
+ * parties (§7.3 item 5).
1199
+ */
1200
+ export const RESPONSE_SPEC = {
1201
+ typeUri: RESPONSE_TYPE_URI,
1202
+ isBearer: false,
1203
+ isProofRequired: false,
1204
+ isRecipientRequired: true,
1205
+ isIssuedAtRequired: true,
1206
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
1207
+ } as const;