@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,1004 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/notifications/show/0.1/payload.schema.json
4
+ */
5
+ import type { ContextId, Did_NotificationsV0_1 as Did, Ext, HeldNotification, Kind_NotificationsV0_1 as Kind, Notification, NotificationId, RecordId, State, Status, Subject } from "../../../../_shared/components.js";
6
+ /**
7
+ * A client with standing in a trust context reads one notification its VTA holds there, with the document that delivered it exactly as received — the notifications/notify document, or the notifications/relay document carrying it — so the client can verify the originator's proof and every relay itself rather than take the VTA's word (VTI-NTF-050). A read changes nothing, and sends nothing to anyone. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTANotificationsShowPayload {
10
+ contextId: ContextId;
11
+ recordId: RecordId;
12
+ ext?: Ext;
13
+ }
14
+ export interface VTANotificationsShowResponsePayload {
15
+ item: HeldNotification;
16
+ /**
17
+ * The document that delivered the revision held, kept whole and exactly as received — proof included: the notifications/notify/0.1 document, or the outermost notifications/relay/0.1 document. An opaque object, so that every member its issuer signed survives unchanged for the client to verify.
18
+ */
19
+ document: {};
20
+ }
21
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
22
+ export type { ContextId, Did, Ext, HeldNotification, Kind, Notification, NotificationId, RecordId, State, Status, Subject };
23
+ /** Trust Task type URI. */
24
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/notifications/show/0.1";
25
+ /**
26
+ * The earlier version of this specification that this one declares it
27
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
28
+ * `null`. Only the direct declaration — follow the chain with
29
+ * `extendsChain` / `readForSpec`.
30
+ */
31
+ export declare const EXTENDS: string | null;
32
+ /**
33
+ * Why this version is deprecated, or `null` while it is current. A
34
+ * superseded or retired version is still supported, and is withdrawn from
35
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
36
+ * Versions").
37
+ */
38
+ export declare const DEPRECATION: string | null;
39
+ /** Stable alias for this specification's request payload shape. */
40
+ export type Payload = VTANotificationsShowPayload;
41
+ /** Trust Task response type URI (request type URI + "#response"). */
42
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/notifications/show/0.1#response";
43
+ /** Stable alias for this specification's success-response payload shape. */
44
+ export type Response = VTANotificationsShowResponsePayload;
45
+ /**
46
+ * This specification's payload schema, as a value.
47
+ *
48
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
49
+ * rather than only as a `.json` file because TypeScript types are erased
50
+ * at runtime: without a schema a consumer has nothing to validate, and
51
+ * every REQUIRED payload member is optional in practice. Cross-file
52
+ * `$ref`s are already inlined, so it needs no resolver.
53
+ */
54
+ export declare const PAYLOAD_SCHEMA: {
55
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
56
+ readonly $id: "https://trusttasks.org/spec/vta/notifications/show/0.1";
57
+ readonly title: "VTA Notifications — Show — payload";
58
+ readonly description: "A client with standing in a trust context reads one notification its VTA holds there, with the document that delivered it exactly as received — the notifications/notify document, or the notifications/relay document carrying it — so the client can verify the originator's proof and every relay itself rather than take the VTA's word (VTI-NTF-050). A read changes nothing, and sends nothing to anyone. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
59
+ readonly type: "object";
60
+ readonly additionalProperties: false;
61
+ readonly required: readonly ["contextId", "recordId"];
62
+ readonly properties: {
63
+ readonly contextId: {
64
+ readonly $ref: "#/$defs/ContextId";
65
+ };
66
+ readonly recordId: {
67
+ readonly $ref: "#/$defs/RecordId";
68
+ };
69
+ readonly ext: {
70
+ readonly $ref: "#/$defs/Ext";
71
+ };
72
+ };
73
+ readonly $defs: {
74
+ readonly Response: {
75
+ readonly $anchor: "response";
76
+ readonly title: "VTA Notifications — Show — response payload";
77
+ readonly type: "object";
78
+ readonly additionalProperties: false;
79
+ readonly required: readonly ["item", "document"];
80
+ readonly properties: {
81
+ readonly item: {
82
+ readonly $ref: "#/$defs/HeldNotification";
83
+ };
84
+ readonly document: {
85
+ readonly type: "object";
86
+ readonly minProperties: 1;
87
+ readonly description: "The document that delivered the revision held, kept whole and exactly as received — proof included: the notifications/notify/0.1 document, or the outermost notifications/relay/0.1 document. An opaque object, so that every member its issuer signed survives unchanged for the client to verify.";
88
+ };
89
+ };
90
+ };
91
+ readonly HeldNotification: {
92
+ readonly title: "HeldNotification";
93
+ readonly description: "One notification the VTA holds, as a client with standing in its context sees it. `originator` and every entry of `relayedBy` were verified by the VTA when it accepted the notification (VTI-NTF-042); a client that does not take the VTA's word for them reads the document with vta/notifications/show and verifies it itself.";
94
+ readonly type: "object";
95
+ readonly additionalProperties: false;
96
+ readonly required: readonly ["recordId", "contextId", "addressee", "originator", "relayedBy", "notification", "state", "receivedAt"];
97
+ readonly properties: {
98
+ readonly recordId: {
99
+ readonly $ref: "#/$defs/RecordId";
100
+ };
101
+ readonly contextId: {
102
+ readonly $ref: "#/$defs/ContextId";
103
+ };
104
+ readonly addressee: {
105
+ readonly $ref: "#/$defs/Did";
106
+ readonly description: "The principal's DID the notification, or the relay that delivered it, was addressed to.";
107
+ };
108
+ readonly originator: {
109
+ readonly $ref: "#/$defs/Did";
110
+ readonly description: "The issuer of the notifications/notify document: who said the thing exists.";
111
+ };
112
+ readonly relayedBy: {
113
+ readonly type: "array";
114
+ readonly maxItems: 4;
115
+ readonly items: {
116
+ readonly $ref: "#/$defs/Did";
117
+ };
118
+ readonly description: "The relayers the held revision passed through, in the order they relayed it: the first is the notification's own addressee, the last the relayer that delivered it to `addressee`. Empty for a notification the originator sent to `addressee` directly. The acceptance policy counted the last one (VTI-NTF-031).";
119
+ };
120
+ readonly notification: {
121
+ readonly $ref: "#/$defs/Notification";
122
+ readonly description: "The notification's members at the revision held.";
123
+ };
124
+ readonly state: {
125
+ readonly $ref: "#/$defs/State";
126
+ };
127
+ readonly receivedAt: {
128
+ readonly type: "string";
129
+ readonly format: "date-time";
130
+ readonly description: "When the VTA accepted the revision held.";
131
+ };
132
+ readonly dismissedAt: {
133
+ readonly type: "string";
134
+ readonly format: "date-time";
135
+ readonly description: "When the principal dismissed it. Present exactly when `state` is `dismissed`.";
136
+ };
137
+ };
138
+ readonly dependentSchemas: {
139
+ readonly state: {
140
+ readonly anyOf: readonly [{
141
+ readonly required: readonly ["dismissedAt"];
142
+ }, {
143
+ readonly properties: {
144
+ readonly state: {
145
+ readonly const: "active";
146
+ };
147
+ };
148
+ }];
149
+ };
150
+ readonly dismissedAt: {
151
+ readonly properties: {
152
+ readonly state: {
153
+ readonly const: "dismissed";
154
+ };
155
+ };
156
+ };
157
+ };
158
+ };
159
+ readonly State: {
160
+ readonly title: "State";
161
+ readonly description: "The principal's disposition of a held notification: `active`, or `dismissed` by vta/notifications/dismiss. Dismissal is the principal's alone and changes nothing outside the VTA (VTI-NTF-052).";
162
+ readonly type: "string";
163
+ readonly enum: readonly ["active", "dismissed"];
164
+ };
165
+ readonly ContextId: {
166
+ readonly title: "ContextId";
167
+ readonly description: "The trust context the notification is held in: the one the addressed DID belongs to.";
168
+ readonly type: "string";
169
+ readonly minLength: 1;
170
+ readonly maxLength: 256;
171
+ };
172
+ readonly RecordId: {
173
+ readonly title: "RecordId";
174
+ readonly description: "The VTA's own identifier for one held notification, stable across the revisions that replace it. Opaque and compared for equality only; unguessable, because a show of a record in a context the caller may not read is refused and an enumerable identifier would turn the refusal into an oracle.";
175
+ readonly type: "string";
176
+ readonly minLength: 16;
177
+ readonly maxLength: 128;
178
+ readonly pattern: "^[A-Za-z0-9._~:-]+$";
179
+ };
180
+ readonly Notification: {
181
+ readonly title: "Notification";
182
+ readonly 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.";
183
+ readonly type: "object";
184
+ readonly additionalProperties: false;
185
+ readonly required: readonly ["notificationId", "revision", "kind", "subject", "audience", "status", "relayable"];
186
+ readonly properties: {
187
+ readonly notificationId: {
188
+ readonly $ref: "#/$defs/NotificationId";
189
+ };
190
+ readonly revision: {
191
+ readonly type: "integer";
192
+ readonly minimum: 1;
193
+ readonly maximum: 1000000;
194
+ readonly 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.";
195
+ };
196
+ readonly kind: {
197
+ readonly $ref: "#/$defs/Kind";
198
+ };
199
+ readonly subject: {
200
+ readonly $ref: "#/$defs/Subject";
201
+ };
202
+ readonly audience: {
203
+ readonly $ref: "#/$defs/Did";
204
+ readonly 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.";
205
+ };
206
+ readonly status: {
207
+ readonly $ref: "#/$defs/Status";
208
+ };
209
+ readonly relayable: {
210
+ readonly type: "boolean";
211
+ readonly 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).";
212
+ };
213
+ readonly validFrom: {
214
+ readonly type: "string";
215
+ readonly format: "date-time";
216
+ readonly description: "When the thing can first be acted on — for an election, when voting opens. Absent: it can be acted on now.";
217
+ };
218
+ readonly validUntil: {
219
+ readonly type: "string";
220
+ readonly format: "date-time";
221
+ readonly 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.";
222
+ };
223
+ };
224
+ };
225
+ readonly Status: {
226
+ readonly title: "Status";
227
+ readonly 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).";
228
+ readonly type: "string";
229
+ readonly enum: readonly ["available", "withdrawn"];
230
+ };
231
+ readonly Did: {
232
+ readonly title: "Did";
233
+ readonly description: "A DID.";
234
+ readonly type: "string";
235
+ readonly minLength: 8;
236
+ readonly maxLength: 2048;
237
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
238
+ };
239
+ readonly Subject: {
240
+ readonly title: "Subject";
241
+ readonly 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`.";
242
+ readonly type: "object";
243
+ readonly additionalProperties: false;
244
+ readonly required: readonly ["heldBy", "id", "openWith"];
245
+ readonly properties: {
246
+ readonly heldBy: {
247
+ readonly $ref: "#/$defs/Did";
248
+ readonly description: "The DID of the party holding the thing — for an election, the community. The party a recipient sends `openWith` to.";
249
+ };
250
+ readonly id: {
251
+ readonly type: "string";
252
+ readonly minLength: 1;
253
+ readonly maxLength: 256;
254
+ readonly description: "The thing's identifier at `heldBy`, in the form the `openWith` task takes it — for an election, its `electionId`.";
255
+ };
256
+ readonly openWith: {
257
+ readonly type: "string";
258
+ readonly minLength: 1;
259
+ readonly maxLength: 512;
260
+ readonly pattern: "^https://\\S+$";
261
+ readonly 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.";
262
+ };
263
+ };
264
+ };
265
+ readonly Kind: {
266
+ readonly title: "Kind";
267
+ readonly 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).";
268
+ readonly type: "string";
269
+ readonly minLength: 1;
270
+ readonly maxLength: 256;
271
+ readonly 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})$";
272
+ };
273
+ readonly NotificationId: {
274
+ readonly title: "NotificationId";
275
+ readonly 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.";
276
+ readonly type: "string";
277
+ readonly minLength: 1;
278
+ readonly maxLength: 256;
279
+ readonly pattern: "^[A-Za-z0-9._~:-]+$";
280
+ };
281
+ readonly Ext: {
282
+ readonly title: "Ext";
283
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
284
+ readonly type: "object";
285
+ readonly minProperties: 1;
286
+ readonly additionalProperties: true;
287
+ readonly propertyNames: {
288
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
289
+ };
290
+ };
291
+ };
292
+ };
293
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
294
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
295
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
296
+ readonly $ref: "#/$defs/Response";
297
+ readonly $defs: {
298
+ readonly Response: {
299
+ readonly $anchor: "response";
300
+ readonly title: "VTA Notifications — Show — response payload";
301
+ readonly type: "object";
302
+ readonly additionalProperties: false;
303
+ readonly required: readonly ["item", "document"];
304
+ readonly properties: {
305
+ readonly item: {
306
+ readonly $ref: "#/$defs/HeldNotification";
307
+ };
308
+ readonly document: {
309
+ readonly type: "object";
310
+ readonly minProperties: 1;
311
+ readonly description: "The document that delivered the revision held, kept whole and exactly as received — proof included: the notifications/notify/0.1 document, or the outermost notifications/relay/0.1 document. An opaque object, so that every member its issuer signed survives unchanged for the client to verify.";
312
+ };
313
+ };
314
+ };
315
+ readonly HeldNotification: {
316
+ readonly title: "HeldNotification";
317
+ readonly description: "One notification the VTA holds, as a client with standing in its context sees it. `originator` and every entry of `relayedBy` were verified by the VTA when it accepted the notification (VTI-NTF-042); a client that does not take the VTA's word for them reads the document with vta/notifications/show and verifies it itself.";
318
+ readonly type: "object";
319
+ readonly additionalProperties: false;
320
+ readonly required: readonly ["recordId", "contextId", "addressee", "originator", "relayedBy", "notification", "state", "receivedAt"];
321
+ readonly properties: {
322
+ readonly recordId: {
323
+ readonly $ref: "#/$defs/RecordId";
324
+ };
325
+ readonly contextId: {
326
+ readonly $ref: "#/$defs/ContextId";
327
+ };
328
+ readonly addressee: {
329
+ readonly $ref: "#/$defs/Did";
330
+ readonly description: "The principal's DID the notification, or the relay that delivered it, was addressed to.";
331
+ };
332
+ readonly originator: {
333
+ readonly $ref: "#/$defs/Did";
334
+ readonly description: "The issuer of the notifications/notify document: who said the thing exists.";
335
+ };
336
+ readonly relayedBy: {
337
+ readonly type: "array";
338
+ readonly maxItems: 4;
339
+ readonly items: {
340
+ readonly $ref: "#/$defs/Did";
341
+ };
342
+ readonly description: "The relayers the held revision passed through, in the order they relayed it: the first is the notification's own addressee, the last the relayer that delivered it to `addressee`. Empty for a notification the originator sent to `addressee` directly. The acceptance policy counted the last one (VTI-NTF-031).";
343
+ };
344
+ readonly notification: {
345
+ readonly $ref: "#/$defs/Notification";
346
+ readonly description: "The notification's members at the revision held.";
347
+ };
348
+ readonly state: {
349
+ readonly $ref: "#/$defs/State";
350
+ };
351
+ readonly receivedAt: {
352
+ readonly type: "string";
353
+ readonly format: "date-time";
354
+ readonly description: "When the VTA accepted the revision held.";
355
+ };
356
+ readonly dismissedAt: {
357
+ readonly type: "string";
358
+ readonly format: "date-time";
359
+ readonly description: "When the principal dismissed it. Present exactly when `state` is `dismissed`.";
360
+ };
361
+ };
362
+ readonly dependentSchemas: {
363
+ readonly state: {
364
+ readonly anyOf: readonly [{
365
+ readonly required: readonly ["dismissedAt"];
366
+ }, {
367
+ readonly properties: {
368
+ readonly state: {
369
+ readonly const: "active";
370
+ };
371
+ };
372
+ }];
373
+ };
374
+ readonly dismissedAt: {
375
+ readonly properties: {
376
+ readonly state: {
377
+ readonly const: "dismissed";
378
+ };
379
+ };
380
+ };
381
+ };
382
+ };
383
+ readonly State: {
384
+ readonly title: "State";
385
+ readonly description: "The principal's disposition of a held notification: `active`, or `dismissed` by vta/notifications/dismiss. Dismissal is the principal's alone and changes nothing outside the VTA (VTI-NTF-052).";
386
+ readonly type: "string";
387
+ readonly enum: readonly ["active", "dismissed"];
388
+ };
389
+ readonly ContextId: {
390
+ readonly title: "ContextId";
391
+ readonly description: "The trust context the notification is held in: the one the addressed DID belongs to.";
392
+ readonly type: "string";
393
+ readonly minLength: 1;
394
+ readonly maxLength: 256;
395
+ };
396
+ readonly RecordId: {
397
+ readonly title: "RecordId";
398
+ readonly description: "The VTA's own identifier for one held notification, stable across the revisions that replace it. Opaque and compared for equality only; unguessable, because a show of a record in a context the caller may not read is refused and an enumerable identifier would turn the refusal into an oracle.";
399
+ readonly type: "string";
400
+ readonly minLength: 16;
401
+ readonly maxLength: 128;
402
+ readonly pattern: "^[A-Za-z0-9._~:-]+$";
403
+ };
404
+ readonly Notification: {
405
+ readonly title: "Notification";
406
+ readonly 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.";
407
+ readonly type: "object";
408
+ readonly additionalProperties: false;
409
+ readonly required: readonly ["notificationId", "revision", "kind", "subject", "audience", "status", "relayable"];
410
+ readonly properties: {
411
+ readonly notificationId: {
412
+ readonly $ref: "#/$defs/NotificationId";
413
+ };
414
+ readonly revision: {
415
+ readonly type: "integer";
416
+ readonly minimum: 1;
417
+ readonly maximum: 1000000;
418
+ readonly 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.";
419
+ };
420
+ readonly kind: {
421
+ readonly $ref: "#/$defs/Kind";
422
+ };
423
+ readonly subject: {
424
+ readonly $ref: "#/$defs/Subject";
425
+ };
426
+ readonly audience: {
427
+ readonly $ref: "#/$defs/Did";
428
+ readonly 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.";
429
+ };
430
+ readonly status: {
431
+ readonly $ref: "#/$defs/Status";
432
+ };
433
+ readonly relayable: {
434
+ readonly type: "boolean";
435
+ readonly 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).";
436
+ };
437
+ readonly validFrom: {
438
+ readonly type: "string";
439
+ readonly format: "date-time";
440
+ readonly description: "When the thing can first be acted on — for an election, when voting opens. Absent: it can be acted on now.";
441
+ };
442
+ readonly validUntil: {
443
+ readonly type: "string";
444
+ readonly format: "date-time";
445
+ readonly 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.";
446
+ };
447
+ };
448
+ };
449
+ readonly Status: {
450
+ readonly title: "Status";
451
+ readonly 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).";
452
+ readonly type: "string";
453
+ readonly enum: readonly ["available", "withdrawn"];
454
+ };
455
+ readonly Did: {
456
+ readonly title: "Did";
457
+ readonly description: "A DID.";
458
+ readonly type: "string";
459
+ readonly minLength: 8;
460
+ readonly maxLength: 2048;
461
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
462
+ };
463
+ readonly Subject: {
464
+ readonly title: "Subject";
465
+ readonly 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`.";
466
+ readonly type: "object";
467
+ readonly additionalProperties: false;
468
+ readonly required: readonly ["heldBy", "id", "openWith"];
469
+ readonly properties: {
470
+ readonly heldBy: {
471
+ readonly $ref: "#/$defs/Did";
472
+ readonly description: "The DID of the party holding the thing — for an election, the community. The party a recipient sends `openWith` to.";
473
+ };
474
+ readonly id: {
475
+ readonly type: "string";
476
+ readonly minLength: 1;
477
+ readonly maxLength: 256;
478
+ readonly description: "The thing's identifier at `heldBy`, in the form the `openWith` task takes it — for an election, its `electionId`.";
479
+ };
480
+ readonly openWith: {
481
+ readonly type: "string";
482
+ readonly minLength: 1;
483
+ readonly maxLength: 512;
484
+ readonly pattern: "^https://\\S+$";
485
+ readonly 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.";
486
+ };
487
+ };
488
+ };
489
+ readonly Kind: {
490
+ readonly title: "Kind";
491
+ readonly 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).";
492
+ readonly type: "string";
493
+ readonly minLength: 1;
494
+ readonly maxLength: 256;
495
+ readonly 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})$";
496
+ };
497
+ readonly NotificationId: {
498
+ readonly title: "NotificationId";
499
+ readonly 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.";
500
+ readonly type: "string";
501
+ readonly minLength: 1;
502
+ readonly maxLength: 256;
503
+ readonly pattern: "^[A-Za-z0-9._~:-]+$";
504
+ };
505
+ readonly Ext: {
506
+ readonly title: "Ext";
507
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
508
+ readonly type: "object";
509
+ readonly minProperties: 1;
510
+ readonly additionalProperties: true;
511
+ readonly propertyNames: {
512
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
513
+ };
514
+ };
515
+ };
516
+ };
517
+ /**
518
+ * SPEC.md §7.2 policy for the request variant, from this specification's
519
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
520
+ * per-specification and cannot be derived from the document alone, and
521
+ * item 2 needs the schema this carries.
522
+ */
523
+ export declare const SPEC: {
524
+ readonly typeUri: "https://trusttasks.org/spec/vta/notifications/show/0.1";
525
+ readonly isBearer: false;
526
+ readonly isProofRequired: false;
527
+ readonly isRecipientRequired: true;
528
+ readonly isIssuedAtRequired: false;
529
+ readonly payloadSchema: {
530
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
531
+ readonly $id: "https://trusttasks.org/spec/vta/notifications/show/0.1";
532
+ readonly title: "VTA Notifications — Show — payload";
533
+ readonly description: "A client with standing in a trust context reads one notification its VTA holds there, with the document that delivered it exactly as received — the notifications/notify document, or the notifications/relay document carrying it — so the client can verify the originator's proof and every relay itself rather than take the VTA's word (VTI-NTF-050). A read changes nothing, and sends nothing to anyone. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
534
+ readonly type: "object";
535
+ readonly additionalProperties: false;
536
+ readonly required: readonly ["contextId", "recordId"];
537
+ readonly properties: {
538
+ readonly contextId: {
539
+ readonly $ref: "#/$defs/ContextId";
540
+ };
541
+ readonly recordId: {
542
+ readonly $ref: "#/$defs/RecordId";
543
+ };
544
+ readonly ext: {
545
+ readonly $ref: "#/$defs/Ext";
546
+ };
547
+ };
548
+ readonly $defs: {
549
+ readonly Response: {
550
+ readonly $anchor: "response";
551
+ readonly title: "VTA Notifications — Show — response payload";
552
+ readonly type: "object";
553
+ readonly additionalProperties: false;
554
+ readonly required: readonly ["item", "document"];
555
+ readonly properties: {
556
+ readonly item: {
557
+ readonly $ref: "#/$defs/HeldNotification";
558
+ };
559
+ readonly document: {
560
+ readonly type: "object";
561
+ readonly minProperties: 1;
562
+ readonly description: "The document that delivered the revision held, kept whole and exactly as received — proof included: the notifications/notify/0.1 document, or the outermost notifications/relay/0.1 document. An opaque object, so that every member its issuer signed survives unchanged for the client to verify.";
563
+ };
564
+ };
565
+ };
566
+ readonly HeldNotification: {
567
+ readonly title: "HeldNotification";
568
+ readonly description: "One notification the VTA holds, as a client with standing in its context sees it. `originator` and every entry of `relayedBy` were verified by the VTA when it accepted the notification (VTI-NTF-042); a client that does not take the VTA's word for them reads the document with vta/notifications/show and verifies it itself.";
569
+ readonly type: "object";
570
+ readonly additionalProperties: false;
571
+ readonly required: readonly ["recordId", "contextId", "addressee", "originator", "relayedBy", "notification", "state", "receivedAt"];
572
+ readonly properties: {
573
+ readonly recordId: {
574
+ readonly $ref: "#/$defs/RecordId";
575
+ };
576
+ readonly contextId: {
577
+ readonly $ref: "#/$defs/ContextId";
578
+ };
579
+ readonly addressee: {
580
+ readonly $ref: "#/$defs/Did";
581
+ readonly description: "The principal's DID the notification, or the relay that delivered it, was addressed to.";
582
+ };
583
+ readonly originator: {
584
+ readonly $ref: "#/$defs/Did";
585
+ readonly description: "The issuer of the notifications/notify document: who said the thing exists.";
586
+ };
587
+ readonly relayedBy: {
588
+ readonly type: "array";
589
+ readonly maxItems: 4;
590
+ readonly items: {
591
+ readonly $ref: "#/$defs/Did";
592
+ };
593
+ readonly description: "The relayers the held revision passed through, in the order they relayed it: the first is the notification's own addressee, the last the relayer that delivered it to `addressee`. Empty for a notification the originator sent to `addressee` directly. The acceptance policy counted the last one (VTI-NTF-031).";
594
+ };
595
+ readonly notification: {
596
+ readonly $ref: "#/$defs/Notification";
597
+ readonly description: "The notification's members at the revision held.";
598
+ };
599
+ readonly state: {
600
+ readonly $ref: "#/$defs/State";
601
+ };
602
+ readonly receivedAt: {
603
+ readonly type: "string";
604
+ readonly format: "date-time";
605
+ readonly description: "When the VTA accepted the revision held.";
606
+ };
607
+ readonly dismissedAt: {
608
+ readonly type: "string";
609
+ readonly format: "date-time";
610
+ readonly description: "When the principal dismissed it. Present exactly when `state` is `dismissed`.";
611
+ };
612
+ };
613
+ readonly dependentSchemas: {
614
+ readonly state: {
615
+ readonly anyOf: readonly [{
616
+ readonly required: readonly ["dismissedAt"];
617
+ }, {
618
+ readonly properties: {
619
+ readonly state: {
620
+ readonly const: "active";
621
+ };
622
+ };
623
+ }];
624
+ };
625
+ readonly dismissedAt: {
626
+ readonly properties: {
627
+ readonly state: {
628
+ readonly const: "dismissed";
629
+ };
630
+ };
631
+ };
632
+ };
633
+ };
634
+ readonly State: {
635
+ readonly title: "State";
636
+ readonly description: "The principal's disposition of a held notification: `active`, or `dismissed` by vta/notifications/dismiss. Dismissal is the principal's alone and changes nothing outside the VTA (VTI-NTF-052).";
637
+ readonly type: "string";
638
+ readonly enum: readonly ["active", "dismissed"];
639
+ };
640
+ readonly ContextId: {
641
+ readonly title: "ContextId";
642
+ readonly description: "The trust context the notification is held in: the one the addressed DID belongs to.";
643
+ readonly type: "string";
644
+ readonly minLength: 1;
645
+ readonly maxLength: 256;
646
+ };
647
+ readonly RecordId: {
648
+ readonly title: "RecordId";
649
+ readonly description: "The VTA's own identifier for one held notification, stable across the revisions that replace it. Opaque and compared for equality only; unguessable, because a show of a record in a context the caller may not read is refused and an enumerable identifier would turn the refusal into an oracle.";
650
+ readonly type: "string";
651
+ readonly minLength: 16;
652
+ readonly maxLength: 128;
653
+ readonly pattern: "^[A-Za-z0-9._~:-]+$";
654
+ };
655
+ readonly Notification: {
656
+ readonly title: "Notification";
657
+ readonly 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.";
658
+ readonly type: "object";
659
+ readonly additionalProperties: false;
660
+ readonly required: readonly ["notificationId", "revision", "kind", "subject", "audience", "status", "relayable"];
661
+ readonly properties: {
662
+ readonly notificationId: {
663
+ readonly $ref: "#/$defs/NotificationId";
664
+ };
665
+ readonly revision: {
666
+ readonly type: "integer";
667
+ readonly minimum: 1;
668
+ readonly maximum: 1000000;
669
+ readonly 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.";
670
+ };
671
+ readonly kind: {
672
+ readonly $ref: "#/$defs/Kind";
673
+ };
674
+ readonly subject: {
675
+ readonly $ref: "#/$defs/Subject";
676
+ };
677
+ readonly audience: {
678
+ readonly $ref: "#/$defs/Did";
679
+ readonly 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.";
680
+ };
681
+ readonly status: {
682
+ readonly $ref: "#/$defs/Status";
683
+ };
684
+ readonly relayable: {
685
+ readonly type: "boolean";
686
+ readonly 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).";
687
+ };
688
+ readonly validFrom: {
689
+ readonly type: "string";
690
+ readonly format: "date-time";
691
+ readonly description: "When the thing can first be acted on — for an election, when voting opens. Absent: it can be acted on now.";
692
+ };
693
+ readonly validUntil: {
694
+ readonly type: "string";
695
+ readonly format: "date-time";
696
+ readonly 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.";
697
+ };
698
+ };
699
+ };
700
+ readonly Status: {
701
+ readonly title: "Status";
702
+ readonly 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).";
703
+ readonly type: "string";
704
+ readonly enum: readonly ["available", "withdrawn"];
705
+ };
706
+ readonly Did: {
707
+ readonly title: "Did";
708
+ readonly description: "A DID.";
709
+ readonly type: "string";
710
+ readonly minLength: 8;
711
+ readonly maxLength: 2048;
712
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
713
+ };
714
+ readonly Subject: {
715
+ readonly title: "Subject";
716
+ readonly 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`.";
717
+ readonly type: "object";
718
+ readonly additionalProperties: false;
719
+ readonly required: readonly ["heldBy", "id", "openWith"];
720
+ readonly properties: {
721
+ readonly heldBy: {
722
+ readonly $ref: "#/$defs/Did";
723
+ readonly description: "The DID of the party holding the thing — for an election, the community. The party a recipient sends `openWith` to.";
724
+ };
725
+ readonly id: {
726
+ readonly type: "string";
727
+ readonly minLength: 1;
728
+ readonly maxLength: 256;
729
+ readonly description: "The thing's identifier at `heldBy`, in the form the `openWith` task takes it — for an election, its `electionId`.";
730
+ };
731
+ readonly openWith: {
732
+ readonly type: "string";
733
+ readonly minLength: 1;
734
+ readonly maxLength: 512;
735
+ readonly pattern: "^https://\\S+$";
736
+ readonly 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.";
737
+ };
738
+ };
739
+ };
740
+ readonly Kind: {
741
+ readonly title: "Kind";
742
+ readonly 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).";
743
+ readonly type: "string";
744
+ readonly minLength: 1;
745
+ readonly maxLength: 256;
746
+ readonly 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})$";
747
+ };
748
+ readonly NotificationId: {
749
+ readonly title: "NotificationId";
750
+ readonly 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.";
751
+ readonly type: "string";
752
+ readonly minLength: 1;
753
+ readonly maxLength: 256;
754
+ readonly pattern: "^[A-Za-z0-9._~:-]+$";
755
+ };
756
+ readonly Ext: {
757
+ readonly title: "Ext";
758
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
759
+ readonly type: "object";
760
+ readonly minProperties: 1;
761
+ readonly additionalProperties: true;
762
+ readonly propertyNames: {
763
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
764
+ };
765
+ };
766
+ };
767
+ };
768
+ };
769
+ /**
770
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
771
+ * tracks the *issuer* party's requirement because a response swaps the
772
+ * parties (§7.3 item 5).
773
+ */
774
+ export declare const RESPONSE_SPEC: {
775
+ readonly typeUri: "https://trusttasks.org/spec/vta/notifications/show/0.1#response";
776
+ readonly isBearer: false;
777
+ readonly isProofRequired: false;
778
+ readonly isRecipientRequired: true;
779
+ readonly isIssuedAtRequired: false;
780
+ readonly payloadSchema: {
781
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
782
+ readonly $ref: "#/$defs/Response";
783
+ readonly $defs: {
784
+ readonly Response: {
785
+ readonly $anchor: "response";
786
+ readonly title: "VTA Notifications — Show — response payload";
787
+ readonly type: "object";
788
+ readonly additionalProperties: false;
789
+ readonly required: readonly ["item", "document"];
790
+ readonly properties: {
791
+ readonly item: {
792
+ readonly $ref: "#/$defs/HeldNotification";
793
+ };
794
+ readonly document: {
795
+ readonly type: "object";
796
+ readonly minProperties: 1;
797
+ readonly description: "The document that delivered the revision held, kept whole and exactly as received — proof included: the notifications/notify/0.1 document, or the outermost notifications/relay/0.1 document. An opaque object, so that every member its issuer signed survives unchanged for the client to verify.";
798
+ };
799
+ };
800
+ };
801
+ readonly HeldNotification: {
802
+ readonly title: "HeldNotification";
803
+ readonly description: "One notification the VTA holds, as a client with standing in its context sees it. `originator` and every entry of `relayedBy` were verified by the VTA when it accepted the notification (VTI-NTF-042); a client that does not take the VTA's word for them reads the document with vta/notifications/show and verifies it itself.";
804
+ readonly type: "object";
805
+ readonly additionalProperties: false;
806
+ readonly required: readonly ["recordId", "contextId", "addressee", "originator", "relayedBy", "notification", "state", "receivedAt"];
807
+ readonly properties: {
808
+ readonly recordId: {
809
+ readonly $ref: "#/$defs/RecordId";
810
+ };
811
+ readonly contextId: {
812
+ readonly $ref: "#/$defs/ContextId";
813
+ };
814
+ readonly addressee: {
815
+ readonly $ref: "#/$defs/Did";
816
+ readonly description: "The principal's DID the notification, or the relay that delivered it, was addressed to.";
817
+ };
818
+ readonly originator: {
819
+ readonly $ref: "#/$defs/Did";
820
+ readonly description: "The issuer of the notifications/notify document: who said the thing exists.";
821
+ };
822
+ readonly relayedBy: {
823
+ readonly type: "array";
824
+ readonly maxItems: 4;
825
+ readonly items: {
826
+ readonly $ref: "#/$defs/Did";
827
+ };
828
+ readonly description: "The relayers the held revision passed through, in the order they relayed it: the first is the notification's own addressee, the last the relayer that delivered it to `addressee`. Empty for a notification the originator sent to `addressee` directly. The acceptance policy counted the last one (VTI-NTF-031).";
829
+ };
830
+ readonly notification: {
831
+ readonly $ref: "#/$defs/Notification";
832
+ readonly description: "The notification's members at the revision held.";
833
+ };
834
+ readonly state: {
835
+ readonly $ref: "#/$defs/State";
836
+ };
837
+ readonly receivedAt: {
838
+ readonly type: "string";
839
+ readonly format: "date-time";
840
+ readonly description: "When the VTA accepted the revision held.";
841
+ };
842
+ readonly dismissedAt: {
843
+ readonly type: "string";
844
+ readonly format: "date-time";
845
+ readonly description: "When the principal dismissed it. Present exactly when `state` is `dismissed`.";
846
+ };
847
+ };
848
+ readonly dependentSchemas: {
849
+ readonly state: {
850
+ readonly anyOf: readonly [{
851
+ readonly required: readonly ["dismissedAt"];
852
+ }, {
853
+ readonly properties: {
854
+ readonly state: {
855
+ readonly const: "active";
856
+ };
857
+ };
858
+ }];
859
+ };
860
+ readonly dismissedAt: {
861
+ readonly properties: {
862
+ readonly state: {
863
+ readonly const: "dismissed";
864
+ };
865
+ };
866
+ };
867
+ };
868
+ };
869
+ readonly State: {
870
+ readonly title: "State";
871
+ readonly description: "The principal's disposition of a held notification: `active`, or `dismissed` by vta/notifications/dismiss. Dismissal is the principal's alone and changes nothing outside the VTA (VTI-NTF-052).";
872
+ readonly type: "string";
873
+ readonly enum: readonly ["active", "dismissed"];
874
+ };
875
+ readonly ContextId: {
876
+ readonly title: "ContextId";
877
+ readonly description: "The trust context the notification is held in: the one the addressed DID belongs to.";
878
+ readonly type: "string";
879
+ readonly minLength: 1;
880
+ readonly maxLength: 256;
881
+ };
882
+ readonly RecordId: {
883
+ readonly title: "RecordId";
884
+ readonly description: "The VTA's own identifier for one held notification, stable across the revisions that replace it. Opaque and compared for equality only; unguessable, because a show of a record in a context the caller may not read is refused and an enumerable identifier would turn the refusal into an oracle.";
885
+ readonly type: "string";
886
+ readonly minLength: 16;
887
+ readonly maxLength: 128;
888
+ readonly pattern: "^[A-Za-z0-9._~:-]+$";
889
+ };
890
+ readonly Notification: {
891
+ readonly title: "Notification";
892
+ readonly 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.";
893
+ readonly type: "object";
894
+ readonly additionalProperties: false;
895
+ readonly required: readonly ["notificationId", "revision", "kind", "subject", "audience", "status", "relayable"];
896
+ readonly properties: {
897
+ readonly notificationId: {
898
+ readonly $ref: "#/$defs/NotificationId";
899
+ };
900
+ readonly revision: {
901
+ readonly type: "integer";
902
+ readonly minimum: 1;
903
+ readonly maximum: 1000000;
904
+ readonly 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.";
905
+ };
906
+ readonly kind: {
907
+ readonly $ref: "#/$defs/Kind";
908
+ };
909
+ readonly subject: {
910
+ readonly $ref: "#/$defs/Subject";
911
+ };
912
+ readonly audience: {
913
+ readonly $ref: "#/$defs/Did";
914
+ readonly 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.";
915
+ };
916
+ readonly status: {
917
+ readonly $ref: "#/$defs/Status";
918
+ };
919
+ readonly relayable: {
920
+ readonly type: "boolean";
921
+ readonly 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).";
922
+ };
923
+ readonly validFrom: {
924
+ readonly type: "string";
925
+ readonly format: "date-time";
926
+ readonly description: "When the thing can first be acted on — for an election, when voting opens. Absent: it can be acted on now.";
927
+ };
928
+ readonly validUntil: {
929
+ readonly type: "string";
930
+ readonly format: "date-time";
931
+ readonly 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.";
932
+ };
933
+ };
934
+ };
935
+ readonly Status: {
936
+ readonly title: "Status";
937
+ readonly 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).";
938
+ readonly type: "string";
939
+ readonly enum: readonly ["available", "withdrawn"];
940
+ };
941
+ readonly Did: {
942
+ readonly title: "Did";
943
+ readonly description: "A DID.";
944
+ readonly type: "string";
945
+ readonly minLength: 8;
946
+ readonly maxLength: 2048;
947
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
948
+ };
949
+ readonly Subject: {
950
+ readonly title: "Subject";
951
+ readonly 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`.";
952
+ readonly type: "object";
953
+ readonly additionalProperties: false;
954
+ readonly required: readonly ["heldBy", "id", "openWith"];
955
+ readonly properties: {
956
+ readonly heldBy: {
957
+ readonly $ref: "#/$defs/Did";
958
+ readonly description: "The DID of the party holding the thing — for an election, the community. The party a recipient sends `openWith` to.";
959
+ };
960
+ readonly id: {
961
+ readonly type: "string";
962
+ readonly minLength: 1;
963
+ readonly maxLength: 256;
964
+ readonly description: "The thing's identifier at `heldBy`, in the form the `openWith` task takes it — for an election, its `electionId`.";
965
+ };
966
+ readonly openWith: {
967
+ readonly type: "string";
968
+ readonly minLength: 1;
969
+ readonly maxLength: 512;
970
+ readonly pattern: "^https://\\S+$";
971
+ readonly 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.";
972
+ };
973
+ };
974
+ };
975
+ readonly Kind: {
976
+ readonly title: "Kind";
977
+ readonly 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).";
978
+ readonly type: "string";
979
+ readonly minLength: 1;
980
+ readonly maxLength: 256;
981
+ readonly 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})$";
982
+ };
983
+ readonly NotificationId: {
984
+ readonly title: "NotificationId";
985
+ readonly 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.";
986
+ readonly type: "string";
987
+ readonly minLength: 1;
988
+ readonly maxLength: 256;
989
+ readonly pattern: "^[A-Za-z0-9._~:-]+$";
990
+ };
991
+ readonly Ext: {
992
+ readonly title: "Ext";
993
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
994
+ readonly type: "object";
995
+ readonly minProperties: 1;
996
+ readonly additionalProperties: true;
997
+ readonly propertyNames: {
998
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
999
+ };
1000
+ };
1001
+ };
1002
+ };
1003
+ };
1004
+ //# sourceMappingURL=payload.d.ts.map