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