@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,420 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/notifications/notify/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Did_NotificationsV0_1 as Did, Ext, Kind_NotificationsV0_1 as Kind, Notification, NotificationId, Status, Subject } from "../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * An originator tells the party a DID names — an individual, a group, a community or a network — that a thing exists which that party, or the parties it stands for, may act on or take part in: where it is held, its identifier there, the task that opens it, and the audience it concerns. Nothing of the thing's content. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface NotificationsNotifyPayload {
13
+ notification: Notification;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * Receipt of a notification the recipient verified. The same whether the recipient held it, declined it under its acceptance policy, or relayed it on, and never saying which (VTI-NTF-023).
18
+ */
19
+ export interface NotificationsNotifyResponsePayload {
20
+ notificationId: NotificationId;
21
+ /**
22
+ * The revision received, echoed.
23
+ */
24
+ revision: number;
25
+ }
26
+
27
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
28
+ export type { Did, Ext, Kind, Notification, NotificationId, Status, Subject };
29
+
30
+ /** Trust Task type URI. */
31
+ export const TYPE_URI = "https://trusttasks.org/spec/notifications/notify/0.1" as const;
32
+
33
+ /**
34
+ * The earlier version of this specification that this one declares it
35
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
36
+ * `null`. Only the direct declaration — follow the chain with
37
+ * `extendsChain` / `readForSpec`.
38
+ */
39
+ export const EXTENDS: string | null = null;
40
+
41
+ /**
42
+ * Why this version is deprecated, or `null` while it is current. A
43
+ * superseded or retired version is still supported, and is withdrawn from
44
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
45
+ * Versions").
46
+ */
47
+ export const DEPRECATION: string | null = null;
48
+
49
+ /** Stable alias for this specification's request payload shape. */
50
+ export type Payload = NotificationsNotifyPayload;
51
+
52
+ /** Trust Task response type URI (request type URI + "#response"). */
53
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/notifications/notify/0.1#response" as const;
54
+
55
+ /** Stable alias for this specification's success-response payload shape. */
56
+ export type Response = NotificationsNotifyResponsePayload;
57
+
58
+ /**
59
+ * This specification's payload schema, as a value.
60
+ *
61
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
62
+ * rather than only as a `.json` file because TypeScript types are erased
63
+ * at runtime: without a schema a consumer has nothing to validate, and
64
+ * every REQUIRED payload member is optional in practice. Cross-file
65
+ * `$ref`s are already inlined, so it needs no resolver.
66
+ */
67
+ export const PAYLOAD_SCHEMA = {
68
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
69
+ "$id": "https://trusttasks.org/spec/notifications/notify/0.1",
70
+ "title": "Notifications — Notify — payload",
71
+ "description": "An originator tells the party a DID names — an individual, a group, a community or a network — that a thing exists which that party, or the parties it stands for, may act on or take part in: where it is held, its identifier there, the task that opens it, and the audience it concerns. Nothing of the thing's content. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": [
75
+ "notification"
76
+ ],
77
+ "properties": {
78
+ "notification": {
79
+ "$ref": "#/$defs/Notification"
80
+ },
81
+ "ext": {
82
+ "$ref": "#/$defs/Ext"
83
+ }
84
+ },
85
+ "$defs": {
86
+ "Response": {
87
+ "$anchor": "response",
88
+ "title": "Notifications — Notify — response payload",
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": [
92
+ "notificationId",
93
+ "revision"
94
+ ],
95
+ "description": "Receipt of a notification the recipient verified. The same whether the recipient held it, declined it under its acceptance policy, or relayed it on, and never saying which (VTI-NTF-023).",
96
+ "properties": {
97
+ "notificationId": {
98
+ "$ref": "#/$defs/NotificationId"
99
+ },
100
+ "revision": {
101
+ "type": "integer",
102
+ "minimum": 1,
103
+ "maximum": 1000000,
104
+ "description": "The revision received, echoed."
105
+ }
106
+ }
107
+ },
108
+ "NotificationId": {
109
+ "title": "NotificationId",
110
+ "description": "The originator's identifier for one notification, unique among the notifications that originator issues and the same in every document that carries it — retries, re-issued documents and relayed copies alike. It is the notification's idempotency key (VTI-NTF-021). Compared for equality only. An originator SHOULD make it unguessable and SHOULD NOT make it descriptive: it travels as far as the notification does.",
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "maxLength": 256,
114
+ "pattern": "^[A-Za-z0-9._~:-]+$"
115
+ },
116
+ "Ext": {
117
+ "title": "Ext",
118
+ "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.",
119
+ "type": "object",
120
+ "minProperties": 1,
121
+ "additionalProperties": true,
122
+ "propertyNames": {
123
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
124
+ }
125
+ },
126
+ "Notification": {
127
+ "title": "Notification",
128
+ "description": "The members of one notification, as notifications/notify carries them and as a recipient's agent records them. The originator is the `issuer` of the notifications/notify document and the addressee its `recipient`; neither is repeated here, because the originator's proof covers both.",
129
+ "type": "object",
130
+ "additionalProperties": false,
131
+ "required": [
132
+ "notificationId",
133
+ "revision",
134
+ "kind",
135
+ "subject",
136
+ "audience",
137
+ "status",
138
+ "relayable"
139
+ ],
140
+ "properties": {
141
+ "notificationId": {
142
+ "$ref": "#/$defs/NotificationId"
143
+ },
144
+ "revision": {
145
+ "type": "integer",
146
+ "minimum": 1,
147
+ "maximum": 1000000,
148
+ "description": "The revision of this notification. A recipient replaces the record it holds with a higher revision and leaves it unchanged for an equal or lower one (VTI-NTF-022). The first revision is 1."
149
+ },
150
+ "kind": {
151
+ "$ref": "#/$defs/Kind"
152
+ },
153
+ "subject": {
154
+ "$ref": "#/$defs/Subject"
155
+ },
156
+ "audience": {
157
+ "$ref": "#/$defs/Did",
158
+ "description": "The DID whose holders or members the thing concerns — for an election under a credential roll, the DID the roll names (`roll.memberOf`); otherwise the community's own. It says whom the thing is for, not that the recipient is one of them: a recipient may be the audience itself, or a party the audience relayed the notification to."
159
+ },
160
+ "status": {
161
+ "$ref": "#/$defs/Status"
162
+ },
163
+ "relayable": {
164
+ "type": "boolean",
165
+ "description": "Whether the addressee may relay this notification to the parties it stands for (notifications/relay). The originator states it explicitly; an addressee MUST NOT relay a notification whose `relayable` is false, or whose kind may not be relayed (VTI-NTF-041)."
166
+ },
167
+ "validFrom": {
168
+ "type": "string",
169
+ "format": "date-time",
170
+ "description": "When the thing can first be acted on — for an election, when voting opens. Absent: it can be acted on now."
171
+ },
172
+ "validUntil": {
173
+ "type": "string",
174
+ "format": "date-time",
175
+ "description": "When the thing can no longer be acted on, and the notification lapses — for an election, when voting closes. A recipient discards a notification received after it (VTI-NTF-032). Absent: the kind's definition says when it lapses."
176
+ }
177
+ }
178
+ },
179
+ "Status": {
180
+ "title": "Status",
181
+ "description": "Whether the thing is still open to the audience: `available`, or `withdrawn` — cancelled by its holder, or no longer open to the audience — in which case the recipient keeps the record only to show that it was withdrawn (VTI-NTF-024).",
182
+ "type": "string",
183
+ "enum": [
184
+ "available",
185
+ "withdrawn"
186
+ ]
187
+ },
188
+ "Did": {
189
+ "title": "Did",
190
+ "description": "A DID.",
191
+ "type": "string",
192
+ "minLength": 8,
193
+ "maxLength": 2048,
194
+ "pattern": "^did:[a-z0-9]+:\\S+$"
195
+ },
196
+ "Subject": {
197
+ "title": "Subject",
198
+ "description": "Where the thing is and how to open it. Only these three members: what the thing contains is shown by its holder, to a reader it admits, when the thing is opened with `openWith`.",
199
+ "type": "object",
200
+ "additionalProperties": false,
201
+ "required": [
202
+ "heldBy",
203
+ "id",
204
+ "openWith"
205
+ ],
206
+ "properties": {
207
+ "heldBy": {
208
+ "$ref": "#/$defs/Did",
209
+ "description": "The DID of the party holding the thing — for an election, the community. The party a recipient sends `openWith` to."
210
+ },
211
+ "id": {
212
+ "type": "string",
213
+ "minLength": 1,
214
+ "maxLength": 256,
215
+ "description": "The thing's identifier at `heldBy`, in the form the `openWith` task takes it — for an election, its `electionId`."
216
+ },
217
+ "openWith": {
218
+ "type": "string",
219
+ "minLength": 1,
220
+ "maxLength": 512,
221
+ "pattern": "^https://\\S+$",
222
+ "description": "The Type URI of the Trust Task by which a recipient opens the thing at `heldBy` — for an election, `https://trusttasks.org/spec/vtc/elections/show/0.6`. A recipient opens it only at its principal's choice (VTI-NTF-053), and only by a version of that task it and `heldBy` both serve."
223
+ }
224
+ }
225
+ },
226
+ "Kind": {
227
+ "title": "Kind",
228
+ "description": "What the thing is. Either a registered kind — one lowerCamelCase name in the VTI specification's notification kind registry (Appendix G), such as `election` — or an unregistered kind, written `<reverse-DNS domain>:<name>` under a domain its definer controls, such as `org.example:meetingInvite`. A recipient that does not recognise a kind holds, lists and discards it and does nothing else with it (VTI-NTF-012).",
229
+ "type": "string",
230
+ "minLength": 1,
231
+ "maxLength": 256,
232
+ "pattern": "^([a-z][a-zA-Z0-9]{0,63}|[a-z0-9]+(-[a-z0-9]+)*(\\.[a-z0-9]+(-[a-z0-9]+)*)+:[a-z][a-zA-Z0-9]{0,63})$"
233
+ }
234
+ }
235
+ } as const;
236
+
237
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
238
+ export const RESPONSE_PAYLOAD_SCHEMA = {
239
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
240
+ "$ref": "#/$defs/Response",
241
+ "$defs": {
242
+ "Response": {
243
+ "$anchor": "response",
244
+ "title": "Notifications — Notify — response payload",
245
+ "type": "object",
246
+ "additionalProperties": false,
247
+ "required": [
248
+ "notificationId",
249
+ "revision"
250
+ ],
251
+ "description": "Receipt of a notification the recipient verified. The same whether the recipient held it, declined it under its acceptance policy, or relayed it on, and never saying which (VTI-NTF-023).",
252
+ "properties": {
253
+ "notificationId": {
254
+ "$ref": "#/$defs/NotificationId"
255
+ },
256
+ "revision": {
257
+ "type": "integer",
258
+ "minimum": 1,
259
+ "maximum": 1000000,
260
+ "description": "The revision received, echoed."
261
+ }
262
+ }
263
+ },
264
+ "NotificationId": {
265
+ "title": "NotificationId",
266
+ "description": "The originator's identifier for one notification, unique among the notifications that originator issues and the same in every document that carries it — retries, re-issued documents and relayed copies alike. It is the notification's idempotency key (VTI-NTF-021). Compared for equality only. An originator SHOULD make it unguessable and SHOULD NOT make it descriptive: it travels as far as the notification does.",
267
+ "type": "string",
268
+ "minLength": 1,
269
+ "maxLength": 256,
270
+ "pattern": "^[A-Za-z0-9._~:-]+$"
271
+ },
272
+ "Ext": {
273
+ "title": "Ext",
274
+ "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.",
275
+ "type": "object",
276
+ "minProperties": 1,
277
+ "additionalProperties": true,
278
+ "propertyNames": {
279
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
280
+ }
281
+ },
282
+ "Notification": {
283
+ "title": "Notification",
284
+ "description": "The members of one notification, as notifications/notify carries them and as a recipient's agent records them. The originator is the `issuer` of the notifications/notify document and the addressee its `recipient`; neither is repeated here, because the originator's proof covers both.",
285
+ "type": "object",
286
+ "additionalProperties": false,
287
+ "required": [
288
+ "notificationId",
289
+ "revision",
290
+ "kind",
291
+ "subject",
292
+ "audience",
293
+ "status",
294
+ "relayable"
295
+ ],
296
+ "properties": {
297
+ "notificationId": {
298
+ "$ref": "#/$defs/NotificationId"
299
+ },
300
+ "revision": {
301
+ "type": "integer",
302
+ "minimum": 1,
303
+ "maximum": 1000000,
304
+ "description": "The revision of this notification. A recipient replaces the record it holds with a higher revision and leaves it unchanged for an equal or lower one (VTI-NTF-022). The first revision is 1."
305
+ },
306
+ "kind": {
307
+ "$ref": "#/$defs/Kind"
308
+ },
309
+ "subject": {
310
+ "$ref": "#/$defs/Subject"
311
+ },
312
+ "audience": {
313
+ "$ref": "#/$defs/Did",
314
+ "description": "The DID whose holders or members the thing concerns — for an election under a credential roll, the DID the roll names (`roll.memberOf`); otherwise the community's own. It says whom the thing is for, not that the recipient is one of them: a recipient may be the audience itself, or a party the audience relayed the notification to."
315
+ },
316
+ "status": {
317
+ "$ref": "#/$defs/Status"
318
+ },
319
+ "relayable": {
320
+ "type": "boolean",
321
+ "description": "Whether the addressee may relay this notification to the parties it stands for (notifications/relay). The originator states it explicitly; an addressee MUST NOT relay a notification whose `relayable` is false, or whose kind may not be relayed (VTI-NTF-041)."
322
+ },
323
+ "validFrom": {
324
+ "type": "string",
325
+ "format": "date-time",
326
+ "description": "When the thing can first be acted on — for an election, when voting opens. Absent: it can be acted on now."
327
+ },
328
+ "validUntil": {
329
+ "type": "string",
330
+ "format": "date-time",
331
+ "description": "When the thing can no longer be acted on, and the notification lapses — for an election, when voting closes. A recipient discards a notification received after it (VTI-NTF-032). Absent: the kind's definition says when it lapses."
332
+ }
333
+ }
334
+ },
335
+ "Status": {
336
+ "title": "Status",
337
+ "description": "Whether the thing is still open to the audience: `available`, or `withdrawn` — cancelled by its holder, or no longer open to the audience — in which case the recipient keeps the record only to show that it was withdrawn (VTI-NTF-024).",
338
+ "type": "string",
339
+ "enum": [
340
+ "available",
341
+ "withdrawn"
342
+ ]
343
+ },
344
+ "Did": {
345
+ "title": "Did",
346
+ "description": "A DID.",
347
+ "type": "string",
348
+ "minLength": 8,
349
+ "maxLength": 2048,
350
+ "pattern": "^did:[a-z0-9]+:\\S+$"
351
+ },
352
+ "Subject": {
353
+ "title": "Subject",
354
+ "description": "Where the thing is and how to open it. Only these three members: what the thing contains is shown by its holder, to a reader it admits, when the thing is opened with `openWith`.",
355
+ "type": "object",
356
+ "additionalProperties": false,
357
+ "required": [
358
+ "heldBy",
359
+ "id",
360
+ "openWith"
361
+ ],
362
+ "properties": {
363
+ "heldBy": {
364
+ "$ref": "#/$defs/Did",
365
+ "description": "The DID of the party holding the thing — for an election, the community. The party a recipient sends `openWith` to."
366
+ },
367
+ "id": {
368
+ "type": "string",
369
+ "minLength": 1,
370
+ "maxLength": 256,
371
+ "description": "The thing's identifier at `heldBy`, in the form the `openWith` task takes it — for an election, its `electionId`."
372
+ },
373
+ "openWith": {
374
+ "type": "string",
375
+ "minLength": 1,
376
+ "maxLength": 512,
377
+ "pattern": "^https://\\S+$",
378
+ "description": "The Type URI of the Trust Task by which a recipient opens the thing at `heldBy` — for an election, `https://trusttasks.org/spec/vtc/elections/show/0.6`. A recipient opens it only at its principal's choice (VTI-NTF-053), and only by a version of that task it and `heldBy` both serve."
379
+ }
380
+ }
381
+ },
382
+ "Kind": {
383
+ "title": "Kind",
384
+ "description": "What the thing is. Either a registered kind — one lowerCamelCase name in the VTI specification's notification kind registry (Appendix G), such as `election` — or an unregistered kind, written `<reverse-DNS domain>:<name>` under a domain its definer controls, such as `org.example:meetingInvite`. A recipient that does not recognise a kind holds, lists and discards it and does nothing else with it (VTI-NTF-012).",
385
+ "type": "string",
386
+ "minLength": 1,
387
+ "maxLength": 256,
388
+ "pattern": "^([a-z][a-zA-Z0-9]{0,63}|[a-z0-9]+(-[a-z0-9]+)*(\\.[a-z0-9]+(-[a-z0-9]+)*)+:[a-z][a-zA-Z0-9]{0,63})$"
389
+ }
390
+ }
391
+ } as const;
392
+
393
+ /**
394
+ * SPEC.md §7.2 policy for the request variant, from this specification's
395
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
396
+ * per-specification and cannot be derived from the document alone, and
397
+ * item 2 needs the schema this carries.
398
+ */
399
+ export const SPEC = {
400
+ typeUri: TYPE_URI,
401
+ isBearer: false,
402
+ isProofRequired: true,
403
+ isRecipientRequired: true,
404
+ isIssuedAtRequired: true,
405
+ payloadSchema: PAYLOAD_SCHEMA,
406
+ } as const;
407
+
408
+ /**
409
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
410
+ * tracks the *issuer* party's requirement because a response swaps the
411
+ * parties (§7.3 item 5).
412
+ */
413
+ export const RESPONSE_SPEC = {
414
+ typeUri: RESPONSE_TYPE_URI,
415
+ isBearer: false,
416
+ isProofRequired: false,
417
+ isRecipientRequired: true,
418
+ isIssuedAtRequired: true,
419
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
420
+ } as const;
@@ -0,0 +1,220 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/notifications/relay/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, NotificationId } from "../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A party that stands for others — a group, a community, a network — passes a notification it was addressed to on to one of them, carrying the document it received exactly as received, proof included, so the final recipient verifies the originator's own signature. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface NotificationsRelayPayload {
13
+ forwarded: ForwardedDocument;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * The Trust Task document the relayer received, kept whole and exactly as received — proof included — never restated, re-serialised from a typed form, or re-signed: a notifications/notify/0.1 document, or a notifications/relay/0.1 document whose own `forwarded` carries the next layer in. Deliberately an opaque object, so that every member the originator signed — `issuedAt`, `expiresAt`, `threadId` and any other envelope member — survives every relay byte for byte. Its `recipient` MUST be this relay's `issuer`, because only the addressee of a notification may relay it (VTI-NTF-041). The recipient validates each layer as a document of its own `type`, to at most four relays in all (VTI-NTF-042).
18
+ */
19
+ export interface ForwardedDocument {}
20
+ /**
21
+ * Receipt of a relay the recipient verified, naming the innermost notification. The same whether the recipient held it, declined it under its acceptance policy, or relayed it on, and never saying which (VTI-NTF-023).
22
+ */
23
+ export interface NotificationsRelayResponsePayload {
24
+ notificationId: NotificationId;
25
+ /**
26
+ * The revision of the innermost notification, echoed.
27
+ */
28
+ revision: number;
29
+ }
30
+
31
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
32
+ export type { Ext, NotificationId };
33
+
34
+ /** Trust Task type URI. */
35
+ export const TYPE_URI = "https://trusttasks.org/spec/notifications/relay/0.1" as const;
36
+
37
+ /**
38
+ * The earlier version of this specification that this one declares it
39
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
40
+ * `null`. Only the direct declaration — follow the chain with
41
+ * `extendsChain` / `readForSpec`.
42
+ */
43
+ export const EXTENDS: string | null = null;
44
+
45
+ /**
46
+ * Why this version is deprecated, or `null` while it is current. A
47
+ * superseded or retired version is still supported, and is withdrawn from
48
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
49
+ * Versions").
50
+ */
51
+ export const DEPRECATION: string | null = null;
52
+
53
+ /** Stable alias for this specification's request payload shape. */
54
+ export type Payload = NotificationsRelayPayload;
55
+
56
+ /** Trust Task response type URI (request type URI + "#response"). */
57
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/notifications/relay/0.1#response" as const;
58
+
59
+ /** Stable alias for this specification's success-response payload shape. */
60
+ export type Response = NotificationsRelayResponsePayload;
61
+
62
+ /**
63
+ * This specification's payload schema, as a value.
64
+ *
65
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
66
+ * rather than only as a `.json` file because TypeScript types are erased
67
+ * at runtime: without a schema a consumer has nothing to validate, and
68
+ * every REQUIRED payload member is optional in practice. Cross-file
69
+ * `$ref`s are already inlined, so it needs no resolver.
70
+ */
71
+ export const PAYLOAD_SCHEMA = {
72
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
73
+ "$id": "https://trusttasks.org/spec/notifications/relay/0.1",
74
+ "title": "Notifications — Relay — payload",
75
+ "description": "A party that stands for others — a group, a community, a network — passes a notification it was addressed to on to one of them, carrying the document it received exactly as received, proof included, so the final recipient verifies the originator's own signature. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
76
+ "type": "object",
77
+ "additionalProperties": false,
78
+ "required": [
79
+ "forwarded"
80
+ ],
81
+ "properties": {
82
+ "forwarded": {
83
+ "$ref": "#/$defs/ForwardedDocument"
84
+ },
85
+ "ext": {
86
+ "$ref": "#/$defs/Ext"
87
+ }
88
+ },
89
+ "$defs": {
90
+ "ForwardedDocument": {
91
+ "title": "ForwardedDocument",
92
+ "description": "The Trust Task document the relayer received, kept whole and exactly as received — proof included — never restated, re-serialised from a typed form, or re-signed: a notifications/notify/0.1 document, or a notifications/relay/0.1 document whose own `forwarded` carries the next layer in. Deliberately an opaque object, so that every member the originator signed — `issuedAt`, `expiresAt`, `threadId` and any other envelope member — survives every relay byte for byte. Its `recipient` MUST be this relay's `issuer`, because only the addressee of a notification may relay it (VTI-NTF-041). The recipient validates each layer as a document of its own `type`, to at most four relays in all (VTI-NTF-042).",
93
+ "type": "object",
94
+ "minProperties": 1
95
+ },
96
+ "Response": {
97
+ "$anchor": "response",
98
+ "title": "Notifications — Relay — response payload",
99
+ "type": "object",
100
+ "additionalProperties": false,
101
+ "required": [
102
+ "notificationId",
103
+ "revision"
104
+ ],
105
+ "description": "Receipt of a relay the recipient verified, naming the innermost notification. The same whether the recipient held it, declined it under its acceptance policy, or relayed it on, and never saying which (VTI-NTF-023).",
106
+ "properties": {
107
+ "notificationId": {
108
+ "$ref": "#/$defs/NotificationId"
109
+ },
110
+ "revision": {
111
+ "type": "integer",
112
+ "minimum": 1,
113
+ "maximum": 1000000,
114
+ "description": "The revision of the innermost notification, echoed."
115
+ }
116
+ }
117
+ },
118
+ "NotificationId": {
119
+ "title": "NotificationId",
120
+ "description": "The originator's identifier for one notification, unique among the notifications that originator issues and the same in every document that carries it — retries, re-issued documents and relayed copies alike. It is the notification's idempotency key (VTI-NTF-021). Compared for equality only. An originator SHOULD make it unguessable and SHOULD NOT make it descriptive: it travels as far as the notification does.",
121
+ "type": "string",
122
+ "minLength": 1,
123
+ "maxLength": 256,
124
+ "pattern": "^[A-Za-z0-9._~:-]+$"
125
+ },
126
+ "Ext": {
127
+ "title": "Ext",
128
+ "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.",
129
+ "type": "object",
130
+ "minProperties": 1,
131
+ "additionalProperties": true,
132
+ "propertyNames": {
133
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
134
+ }
135
+ }
136
+ }
137
+ } as const;
138
+
139
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
140
+ export const RESPONSE_PAYLOAD_SCHEMA = {
141
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
142
+ "$ref": "#/$defs/Response",
143
+ "$defs": {
144
+ "ForwardedDocument": {
145
+ "title": "ForwardedDocument",
146
+ "description": "The Trust Task document the relayer received, kept whole and exactly as received — proof included — never restated, re-serialised from a typed form, or re-signed: a notifications/notify/0.1 document, or a notifications/relay/0.1 document whose own `forwarded` carries the next layer in. Deliberately an opaque object, so that every member the originator signed — `issuedAt`, `expiresAt`, `threadId` and any other envelope member — survives every relay byte for byte. Its `recipient` MUST be this relay's `issuer`, because only the addressee of a notification may relay it (VTI-NTF-041). The recipient validates each layer as a document of its own `type`, to at most four relays in all (VTI-NTF-042).",
147
+ "type": "object",
148
+ "minProperties": 1
149
+ },
150
+ "Response": {
151
+ "$anchor": "response",
152
+ "title": "Notifications — Relay — response payload",
153
+ "type": "object",
154
+ "additionalProperties": false,
155
+ "required": [
156
+ "notificationId",
157
+ "revision"
158
+ ],
159
+ "description": "Receipt of a relay the recipient verified, naming the innermost notification. The same whether the recipient held it, declined it under its acceptance policy, or relayed it on, and never saying which (VTI-NTF-023).",
160
+ "properties": {
161
+ "notificationId": {
162
+ "$ref": "#/$defs/NotificationId"
163
+ },
164
+ "revision": {
165
+ "type": "integer",
166
+ "minimum": 1,
167
+ "maximum": 1000000,
168
+ "description": "The revision of the innermost notification, echoed."
169
+ }
170
+ }
171
+ },
172
+ "NotificationId": {
173
+ "title": "NotificationId",
174
+ "description": "The originator's identifier for one notification, unique among the notifications that originator issues and the same in every document that carries it — retries, re-issued documents and relayed copies alike. It is the notification's idempotency key (VTI-NTF-021). Compared for equality only. An originator SHOULD make it unguessable and SHOULD NOT make it descriptive: it travels as far as the notification does.",
175
+ "type": "string",
176
+ "minLength": 1,
177
+ "maxLength": 256,
178
+ "pattern": "^[A-Za-z0-9._~:-]+$"
179
+ },
180
+ "Ext": {
181
+ "title": "Ext",
182
+ "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.",
183
+ "type": "object",
184
+ "minProperties": 1,
185
+ "additionalProperties": true,
186
+ "propertyNames": {
187
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
188
+ }
189
+ }
190
+ }
191
+ } as const;
192
+
193
+ /**
194
+ * SPEC.md §7.2 policy for the request variant, from this specification's
195
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
196
+ * per-specification and cannot be derived from the document alone, and
197
+ * item 2 needs the schema this carries.
198
+ */
199
+ export const SPEC = {
200
+ typeUri: TYPE_URI,
201
+ isBearer: false,
202
+ isProofRequired: true,
203
+ isRecipientRequired: true,
204
+ isIssuedAtRequired: true,
205
+ payloadSchema: PAYLOAD_SCHEMA,
206
+ } as const;
207
+
208
+ /**
209
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
210
+ * tracks the *issuer* party's requirement because a response swaps the
211
+ * parties (§7.3 item 5).
212
+ */
213
+ export const RESPONSE_SPEC = {
214
+ typeUri: RESPONSE_TYPE_URI,
215
+ isBearer: false,
216
+ isProofRequired: false,
217
+ isRecipientRequired: true,
218
+ isIssuedAtRequired: true,
219
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
220
+ } as const;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/voting/_shared/0.4/voting.schema.json
4
+ */
5
+
6
+ /**
7
+ * Reusable $defs for the voting/*, vtc/elections/* and vta/pcs/voter/* task families. Not itself a Trust Task specification. The conventions these shapes serve are in ../0.1/CONVENTIONS.md, which describes these definitions by their 0.2 member names (unchanged in 0.3 and 0.4) and notes the 0.1 names; the normative requirements are VTI-VOT-001 – 100 of the VTI specification.
8
+ */
9
+ export interface CommunityVotingSharedDefinitions {
10
+ [k: string]: unknown | undefined;
11
+ }
12
+
13
+ /**
14
+ * The definitions this shared schema publishes, hoisted to one declaration each.
15
+ * See "../../../_shared/components.js".
16
+ */
17
+ export type { Answer, Ballot, BoardHead, BoardVisibility, Disclosure_VotingV0_4 as Disclosure, ElectionId, ElectionKey, ElectionResult, ElectionState, ElectionSummary, GroupElement, Key_VotingV0_1 as Key, Manifest_VotingV0_4 as Manifest, Multibase_VotingV0_1 as Multibase, Question, QuestionOption, QuestionResult, Revote, RollCredentialDisclosure, RollRule_VotingV0_4 as RollRule, SecrecyLevel, SignedRequest, TrusteeCeremony, TrusteeIndex, Trustees, VotingParameters } from "../../../_shared/components.js";