@openvtc/trust-tasks 0.28.8 → 0.28.10

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