@openvtc/trust-tasks 0.28.6 → 0.28.8

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 (328) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/dist/_extends.d.ts.map +1 -1
  3. package/dist/_extends.js +1 -0
  4. package/dist/_extends.js.map +1 -1
  5. package/dist/_shared/components.d.ts +249 -0
  6. package/dist/_shared/components.d.ts.map +1 -1
  7. package/dist/index.d.ts +75 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +75 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/rooms/keys/act/0.1/payload.d.ts +4 -4
  12. package/dist/rooms/keys/act/0.1/payload.d.ts.map +1 -1
  13. package/dist/rooms/keys/act/0.1/payload.js +1 -1
  14. package/dist/rooms/keys/act/0.1/payload.js.map +1 -1
  15. package/dist/rooms/keys/act/0.10/payload.d.ts +560 -0
  16. package/dist/rooms/keys/act/0.10/payload.d.ts.map +1 -0
  17. package/dist/rooms/keys/act/0.10/payload.js +319 -0
  18. package/dist/rooms/keys/act/0.10/payload.js.map +1 -0
  19. package/dist/rooms/keys/act/0.2/payload.d.ts +4 -4
  20. package/dist/rooms/keys/act/0.2/payload.d.ts.map +1 -1
  21. package/dist/rooms/keys/act/0.2/payload.js +1 -1
  22. package/dist/rooms/keys/act/0.2/payload.js.map +1 -1
  23. package/dist/rooms/keys/act/0.3/payload.d.ts +4 -4
  24. package/dist/rooms/keys/act/0.3/payload.d.ts.map +1 -1
  25. package/dist/rooms/keys/act/0.3/payload.js +1 -1
  26. package/dist/rooms/keys/act/0.3/payload.js.map +1 -1
  27. package/dist/rooms/keys/act/0.4/payload.d.ts +4 -4
  28. package/dist/rooms/keys/act/0.4/payload.d.ts.map +1 -1
  29. package/dist/rooms/keys/act/0.4/payload.js +1 -1
  30. package/dist/rooms/keys/act/0.4/payload.js.map +1 -1
  31. package/dist/rooms/keys/act/0.5/payload.d.ts +4 -4
  32. package/dist/rooms/keys/act/0.5/payload.d.ts.map +1 -1
  33. package/dist/rooms/keys/act/0.5/payload.js +1 -1
  34. package/dist/rooms/keys/act/0.5/payload.js.map +1 -1
  35. package/dist/rooms/keys/act/0.6/payload.d.ts +4 -4
  36. package/dist/rooms/keys/act/0.6/payload.d.ts.map +1 -1
  37. package/dist/rooms/keys/act/0.6/payload.js +1 -1
  38. package/dist/rooms/keys/act/0.6/payload.js.map +1 -1
  39. package/dist/rooms/keys/act/0.7/payload.d.ts +4 -4
  40. package/dist/rooms/keys/act/0.7/payload.d.ts.map +1 -1
  41. package/dist/rooms/keys/act/0.7/payload.js +1 -1
  42. package/dist/rooms/keys/act/0.7/payload.js.map +1 -1
  43. package/dist/rooms/keys/act/0.8/payload.d.ts +4 -4
  44. package/dist/rooms/keys/act/0.8/payload.d.ts.map +1 -1
  45. package/dist/rooms/keys/act/0.8/payload.js +1 -1
  46. package/dist/rooms/keys/act/0.8/payload.js.map +1 -1
  47. package/dist/rooms/keys/act/0.9/payload.d.ts +14 -2
  48. package/dist/rooms/keys/act/0.9/payload.d.ts.map +1 -1
  49. package/dist/rooms/keys/act/0.9/payload.js +1 -1
  50. package/dist/rooms/keys/act/0.9/payload.js.map +1 -1
  51. package/dist/voting/_shared/0.3/voting.d.ts +16 -0
  52. package/dist/voting/_shared/0.3/voting.d.ts.map +1 -0
  53. package/dist/voting/_shared/0.3/voting.js +6 -0
  54. package/dist/voting/_shared/0.3/voting.js.map +1 -0
  55. package/dist/voting/election/register/0.1/payload.d.ts +4 -4
  56. package/dist/voting/election/register/0.1/payload.js +1 -1
  57. package/dist/voting/election/register/0.2/payload.d.ts +13 -2
  58. package/dist/voting/election/register/0.2/payload.d.ts.map +1 -1
  59. package/dist/voting/election/register/0.2/payload.js +1 -1
  60. package/dist/voting/election/register/0.2/payload.js.map +1 -1
  61. package/dist/voting/election/register/0.3/payload.d.ts +1934 -0
  62. package/dist/voting/election/register/0.3/payload.d.ts.map +1 -0
  63. package/dist/voting/election/register/0.3/payload.js +1180 -0
  64. package/dist/voting/election/register/0.3/payload.js.map +1 -0
  65. package/dist/voting/election/show/0.1/payload.d.ts +4 -4
  66. package/dist/voting/election/show/0.1/payload.js +1 -1
  67. package/dist/voting/election/show/0.2/payload.d.ts +13 -2
  68. package/dist/voting/election/show/0.2/payload.d.ts.map +1 -1
  69. package/dist/voting/election/show/0.2/payload.js +1 -1
  70. package/dist/voting/election/show/0.2/payload.js.map +1 -1
  71. package/dist/voting/election/show/0.3/payload.d.ts +1838 -0
  72. package/dist/voting/election/show/0.3/payload.d.ts.map +1 -0
  73. package/dist/voting/election/show/0.3/payload.js +1126 -0
  74. package/dist/voting/election/show/0.3/payload.js.map +1 -0
  75. package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts +4 -4
  76. package/dist/vta/pcs/trustee/deal/0.2/payload.js +1 -1
  77. package/dist/vta/pcs/trustee/deal/0.3/payload.d.ts +13 -2
  78. package/dist/vta/pcs/trustee/deal/0.3/payload.d.ts.map +1 -1
  79. package/dist/vta/pcs/trustee/deal/0.3/payload.js +1 -1
  80. package/dist/vta/pcs/trustee/deal/0.3/payload.js.map +1 -1
  81. package/dist/vta/pcs/trustee/deal/0.4/payload.d.ts +1846 -0
  82. package/dist/vta/pcs/trustee/deal/0.4/payload.d.ts.map +1 -0
  83. package/dist/vta/pcs/trustee/deal/0.4/payload.js +1091 -0
  84. package/dist/vta/pcs/trustee/deal/0.4/payload.js.map +1 -0
  85. package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts +4 -4
  86. package/dist/vta/pcs/trustee/enrol/0.1/payload.js +1 -1
  87. package/dist/vta/pcs/trustee/enrol/0.2/payload.d.ts +13 -2
  88. package/dist/vta/pcs/trustee/enrol/0.2/payload.d.ts.map +1 -1
  89. package/dist/vta/pcs/trustee/enrol/0.2/payload.js +1 -1
  90. package/dist/vta/pcs/trustee/enrol/0.2/payload.js.map +1 -1
  91. package/dist/vta/pcs/trustee/enrol/0.3/payload.d.ts +1770 -0
  92. package/dist/vta/pcs/trustee/enrol/0.3/payload.d.ts.map +1 -0
  93. package/dist/vta/pcs/trustee/enrol/0.3/payload.js +1054 -0
  94. package/dist/vta/pcs/trustee/enrol/0.3/payload.js.map +1 -0
  95. package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts +4 -4
  96. package/dist/vta/pcs/trustee/justify/0.2/payload.js +1 -1
  97. package/dist/vta/pcs/trustee/justify/0.3/payload.d.ts +13 -2
  98. package/dist/vta/pcs/trustee/justify/0.3/payload.d.ts.map +1 -1
  99. package/dist/vta/pcs/trustee/justify/0.3/payload.js +1 -1
  100. package/dist/vta/pcs/trustee/justify/0.3/payload.js.map +1 -1
  101. package/dist/vta/pcs/trustee/justify/0.4/payload.d.ts +1881 -0
  102. package/dist/vta/pcs/trustee/justify/0.4/payload.d.ts.map +1 -0
  103. package/dist/vta/pcs/trustee/justify/0.4/payload.js +1109 -0
  104. package/dist/vta/pcs/trustee/justify/0.4/payload.js.map +1 -0
  105. package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts +4 -4
  106. package/dist/vta/pcs/trustee/keys/0.2/payload.js +1 -1
  107. package/dist/vta/pcs/trustee/keys/0.3/payload.d.ts +13 -2
  108. package/dist/vta/pcs/trustee/keys/0.3/payload.d.ts.map +1 -1
  109. package/dist/vta/pcs/trustee/keys/0.3/payload.js +1 -1
  110. package/dist/vta/pcs/trustee/keys/0.3/payload.js.map +1 -1
  111. package/dist/vta/pcs/trustee/keys/0.4/payload.d.ts +1926 -0
  112. package/dist/vta/pcs/trustee/keys/0.4/payload.d.ts.map +1 -0
  113. package/dist/vta/pcs/trustee/keys/0.4/payload.js +1129 -0
  114. package/dist/vta/pcs/trustee/keys/0.4/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 +14 -2
  118. package/dist/vta/pcs/trustee/read/0.2/payload.d.ts.map +1 -1
  119. package/dist/vta/pcs/trustee/read/0.2/payload.js +1 -1
  120. package/dist/vta/pcs/trustee/read/0.2/payload.js.map +1 -1
  121. package/dist/vta/pcs/trustee/read/0.3/payload.d.ts +540 -0
  122. package/dist/vta/pcs/trustee/read/0.3/payload.d.ts.map +1 -0
  123. package/dist/vta/pcs/trustee/read/0.3/payload.js +304 -0
  124. package/dist/vta/pcs/trustee/read/0.3/payload.js.map +1 -0
  125. package/dist/vta/pcs/vote/0.1/payload.d.ts +4 -4
  126. package/dist/vta/pcs/vote/0.1/payload.js +1 -1
  127. package/dist/vta/pcs/vote/0.2/payload.d.ts +13 -2
  128. package/dist/vta/pcs/vote/0.2/payload.d.ts.map +1 -1
  129. package/dist/vta/pcs/vote/0.2/payload.js +1 -1
  130. package/dist/vta/pcs/vote/0.2/payload.js.map +1 -1
  131. package/dist/vta/pcs/vote/0.3/payload.d.ts +2222 -0
  132. package/dist/vta/pcs/vote/0.3/payload.d.ts.map +1 -0
  133. package/dist/vta/pcs/vote/0.3/payload.js +1296 -0
  134. package/dist/vta/pcs/vote/0.3/payload.js.map +1 -0
  135. package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts +4 -4
  136. package/dist/vta/pcs/vote-encrypted/0.2/payload.js +1 -1
  137. package/dist/vta/pcs/vote-encrypted/0.3/payload.d.ts +13 -2
  138. package/dist/vta/pcs/vote-encrypted/0.3/payload.d.ts.map +1 -1
  139. package/dist/vta/pcs/vote-encrypted/0.3/payload.js +1 -1
  140. package/dist/vta/pcs/vote-encrypted/0.3/payload.js.map +1 -1
  141. package/dist/vta/pcs/vote-encrypted/0.4/payload.d.ts +2242 -0
  142. package/dist/vta/pcs/vote-encrypted/0.4/payload.d.ts.map +1 -0
  143. package/dist/vta/pcs/vote-encrypted/0.4/payload.js +1314 -0
  144. package/dist/vta/pcs/vote-encrypted/0.4/payload.js.map +1 -0
  145. package/dist/vta/pcs/voter/read/0.1/payload.d.ts +4 -4
  146. package/dist/vta/pcs/voter/read/0.1/payload.js +1 -1
  147. package/dist/vta/pcs/voter/read/0.2/payload.d.ts +14 -2
  148. package/dist/vta/pcs/voter/read/0.2/payload.d.ts.map +1 -1
  149. package/dist/vta/pcs/voter/read/0.2/payload.js +1 -1
  150. package/dist/vta/pcs/voter/read/0.2/payload.js.map +1 -1
  151. package/dist/vta/pcs/voter/read/0.3/payload.d.ts +503 -0
  152. package/dist/vta/pcs/voter/read/0.3/payload.d.ts.map +1 -0
  153. package/dist/vta/pcs/voter/read/0.3/payload.js +285 -0
  154. package/dist/vta/pcs/voter/read/0.3/payload.js.map +1 -0
  155. package/dist/vta/pcs/voter/register/0.1/payload.d.ts +4 -4
  156. package/dist/vta/pcs/voter/register/0.1/payload.js +1 -1
  157. package/dist/vta/pcs/voter/register/0.2/payload.d.ts +14 -2
  158. package/dist/vta/pcs/voter/register/0.2/payload.d.ts.map +1 -1
  159. package/dist/vta/pcs/voter/register/0.2/payload.js +1 -1
  160. package/dist/vta/pcs/voter/register/0.2/payload.js.map +1 -1
  161. package/dist/vta/pcs/voter/register/0.3/payload.d.ts +2176 -0
  162. package/dist/vta/pcs/voter/register/0.3/payload.d.ts.map +1 -0
  163. package/dist/vta/pcs/voter/register/0.3/payload.js +1262 -0
  164. package/dist/vta/pcs/voter/register/0.3/payload.js.map +1 -0
  165. package/dist/vtc/_shared/0.5/community-room.d.ts +16 -0
  166. package/dist/vtc/_shared/0.5/community-room.d.ts.map +1 -0
  167. package/dist/vtc/_shared/0.5/community-room.js +6 -0
  168. package/dist/vtc/_shared/0.5/community-room.js.map +1 -0
  169. package/dist/vtc/elections/create/0.1/payload.d.ts +4 -4
  170. package/dist/vtc/elections/create/0.1/payload.js +1 -1
  171. package/dist/vtc/elections/create/0.2/payload.d.ts +4 -4
  172. package/dist/vtc/elections/create/0.2/payload.js +1 -1
  173. package/dist/vtc/elections/create/0.3/payload.d.ts +14 -2
  174. package/dist/vtc/elections/create/0.3/payload.d.ts.map +1 -1
  175. package/dist/vtc/elections/create/0.3/payload.js +1 -1
  176. package/dist/vtc/elections/create/0.3/payload.js.map +1 -1
  177. package/dist/vtc/elections/create/0.4/payload.d.ts +1670 -0
  178. package/dist/vtc/elections/create/0.4/payload.d.ts.map +1 -0
  179. package/dist/vtc/elections/create/0.4/payload.js +1008 -0
  180. package/dist/vtc/elections/create/0.4/payload.js.map +1 -0
  181. package/dist/vtc/elections/show/0.1/payload.d.ts +4 -4
  182. package/dist/vtc/elections/show/0.1/payload.js +1 -1
  183. package/dist/vtc/elections/show/0.2/payload.d.ts +14 -2
  184. package/dist/vtc/elections/show/0.2/payload.d.ts.map +1 -1
  185. package/dist/vtc/elections/show/0.2/payload.js +1 -1
  186. package/dist/vtc/elections/show/0.2/payload.js.map +1 -1
  187. package/dist/vtc/elections/show/0.3/payload.d.ts +3022 -0
  188. package/dist/vtc/elections/show/0.3/payload.d.ts.map +1 -0
  189. package/dist/vtc/elections/show/0.3/payload.js +1765 -0
  190. package/dist/vtc/elections/show/0.3/payload.js.map +1 -0
  191. package/dist/vtc/rooms/community/archive/0.1/payload.d.ts +1644 -0
  192. package/dist/vtc/rooms/community/archive/0.1/payload.d.ts.map +1 -0
  193. package/dist/vtc/rooms/community/archive/0.1/payload.js +940 -0
  194. package/dist/vtc/rooms/community/archive/0.1/payload.js.map +1 -0
  195. package/dist/vtc/rooms/community/get/0.1/payload.d.ts +4 -4
  196. package/dist/vtc/rooms/community/get/0.1/payload.js +1 -1
  197. package/dist/vtc/rooms/community/get/0.2/payload.d.ts +4 -4
  198. package/dist/vtc/rooms/community/get/0.2/payload.js +1 -1
  199. package/dist/vtc/rooms/community/get/0.3/payload.d.ts +13 -2
  200. package/dist/vtc/rooms/community/get/0.3/payload.d.ts.map +1 -1
  201. package/dist/vtc/rooms/community/get/0.3/payload.js +1 -1
  202. package/dist/vtc/rooms/community/get/0.3/payload.js.map +1 -1
  203. package/dist/vtc/rooms/community/get/0.4/payload.d.ts +1405 -0
  204. package/dist/vtc/rooms/community/get/0.4/payload.d.ts.map +1 -0
  205. package/dist/vtc/rooms/community/get/0.4/payload.js +817 -0
  206. package/dist/vtc/rooms/community/get/0.4/payload.js.map +1 -0
  207. package/dist/vtc/rooms/community/list/0.1/payload.d.ts +4 -4
  208. package/dist/vtc/rooms/community/list/0.1/payload.js +1 -1
  209. package/dist/vtc/rooms/community/list/0.2/payload.d.ts +4 -4
  210. package/dist/vtc/rooms/community/list/0.2/payload.js +1 -1
  211. package/dist/vtc/rooms/community/list/0.3/payload.d.ts +13 -2
  212. package/dist/vtc/rooms/community/list/0.3/payload.d.ts.map +1 -1
  213. package/dist/vtc/rooms/community/list/0.3/payload.js +1 -1
  214. package/dist/vtc/rooms/community/list/0.3/payload.js.map +1 -1
  215. package/dist/vtc/rooms/community/list/0.4/payload.d.ts +1505 -0
  216. package/dist/vtc/rooms/community/list/0.4/payload.d.ts.map +1 -0
  217. package/dist/vtc/rooms/community/list/0.4/payload.js +854 -0
  218. package/dist/vtc/rooms/community/list/0.4/payload.js.map +1 -0
  219. package/dist/vtc/rooms/community/members/add/0.1/payload.d.ts +13 -2
  220. package/dist/vtc/rooms/community/members/add/0.1/payload.d.ts.map +1 -1
  221. package/dist/vtc/rooms/community/members/add/0.1/payload.js +1 -1
  222. package/dist/vtc/rooms/community/members/add/0.1/payload.js.map +1 -1
  223. package/dist/vtc/rooms/community/members/add/0.2/payload.d.ts +569 -0
  224. package/dist/vtc/rooms/community/members/add/0.2/payload.d.ts.map +1 -0
  225. package/dist/vtc/rooms/community/members/add/0.2/payload.js +340 -0
  226. package/dist/vtc/rooms/community/members/add/0.2/payload.js.map +1 -0
  227. package/dist/vtc/rooms/community/members/list/0.1/payload.d.ts +13 -2
  228. package/dist/vtc/rooms/community/members/list/0.1/payload.d.ts.map +1 -1
  229. package/dist/vtc/rooms/community/members/list/0.1/payload.js +1 -1
  230. package/dist/vtc/rooms/community/members/list/0.1/payload.js.map +1 -1
  231. package/dist/vtc/rooms/community/members/list/0.2/payload.d.ts +588 -0
  232. package/dist/vtc/rooms/community/members/list/0.2/payload.d.ts.map +1 -0
  233. package/dist/vtc/rooms/community/members/list/0.2/payload.js +341 -0
  234. package/dist/vtc/rooms/community/members/list/0.2/payload.js.map +1 -0
  235. package/dist/vtc/rooms/community/removal/cancel/0.1/payload.d.ts +1440 -0
  236. package/dist/vtc/rooms/community/removal/cancel/0.1/payload.d.ts.map +1 -0
  237. package/dist/vtc/rooms/community/removal/cancel/0.1/payload.js +835 -0
  238. package/dist/vtc/rooms/community/removal/cancel/0.1/payload.js.map +1 -0
  239. package/dist/vtc/rooms/community/remove/0.1/payload.d.ts +1604 -0
  240. package/dist/vtc/rooms/community/remove/0.1/payload.d.ts.map +1 -0
  241. package/dist/vtc/rooms/community/remove/0.1/payload.js +921 -0
  242. package/dist/vtc/rooms/community/remove/0.1/payload.js.map +1 -0
  243. package/dist/vtc/rooms/community/unarchive/0.1/payload.d.ts +1460 -0
  244. package/dist/vtc/rooms/community/unarchive/0.1/payload.d.ts.map +1 -0
  245. package/dist/vtc/rooms/community/unarchive/0.1/payload.js +845 -0
  246. package/dist/vtc/rooms/community/unarchive/0.1/payload.js.map +1 -0
  247. package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts +13 -2
  248. package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts.map +1 -1
  249. package/dist/vtc/rooms/memberships/list/0.1/payload.js +1 -1
  250. package/dist/vtc/rooms/memberships/list/0.1/payload.js.map +1 -1
  251. package/dist/vtc/rooms/memberships/list/0.2/payload.d.ts +830 -0
  252. package/dist/vtc/rooms/memberships/list/0.2/payload.d.ts.map +1 -0
  253. package/dist/vtc/rooms/memberships/list/0.2/payload.js +498 -0
  254. package/dist/vtc/rooms/memberships/list/0.2/payload.js.map +1 -0
  255. package/package.json +1 -1
  256. package/src/_extends.ts +1 -0
  257. package/src/_shared/components.ts +249 -0
  258. package/src/index.ts +75 -0
  259. package/src/rooms/keys/act/0.1/payload.ts +5 -5
  260. package/src/rooms/keys/act/0.10/payload.ts +396 -0
  261. package/src/rooms/keys/act/0.2/payload.ts +5 -5
  262. package/src/rooms/keys/act/0.3/payload.ts +5 -5
  263. package/src/rooms/keys/act/0.4/payload.ts +5 -5
  264. package/src/rooms/keys/act/0.5/payload.ts +5 -5
  265. package/src/rooms/keys/act/0.6/payload.ts +5 -5
  266. package/src/rooms/keys/act/0.7/payload.ts +5 -5
  267. package/src/rooms/keys/act/0.8/payload.ts +5 -5
  268. package/src/rooms/keys/act/0.9/payload.ts +15 -3
  269. package/src/voting/_shared/0.3/voting.ts +17 -0
  270. package/src/voting/election/register/0.1/payload.ts +5 -5
  271. package/src/voting/election/register/0.2/payload.ts +14 -3
  272. package/src/voting/election/register/0.3/payload.ts +1223 -0
  273. package/src/voting/election/show/0.1/payload.ts +5 -5
  274. package/src/voting/election/show/0.2/payload.ts +14 -3
  275. package/src/voting/election/show/0.3/payload.ts +1165 -0
  276. package/src/vta/pcs/trustee/deal/0.2/payload.ts +5 -5
  277. package/src/vta/pcs/trustee/deal/0.3/payload.ts +14 -3
  278. package/src/vta/pcs/trustee/deal/0.4/payload.ts +1164 -0
  279. package/src/vta/pcs/trustee/enrol/0.1/payload.ts +5 -5
  280. package/src/vta/pcs/trustee/enrol/0.2/payload.ts +14 -3
  281. package/src/vta/pcs/trustee/enrol/0.3/payload.ts +1123 -0
  282. package/src/vta/pcs/trustee/justify/0.2/payload.ts +5 -5
  283. package/src/vta/pcs/trustee/justify/0.3/payload.ts +14 -3
  284. package/src/vta/pcs/trustee/justify/0.4/payload.ts +1183 -0
  285. package/src/vta/pcs/trustee/keys/0.2/payload.ts +5 -5
  286. package/src/vta/pcs/trustee/keys/0.3/payload.ts +14 -3
  287. package/src/vta/pcs/trustee/keys/0.4/payload.ts +1210 -0
  288. package/src/vta/pcs/trustee/read/0.1/payload.ts +5 -5
  289. package/src/vta/pcs/trustee/read/0.2/payload.ts +15 -3
  290. package/src/vta/pcs/trustee/read/0.3/payload.ts +385 -0
  291. package/src/vta/pcs/vote/0.1/payload.ts +5 -5
  292. package/src/vta/pcs/vote/0.2/payload.ts +14 -3
  293. package/src/vta/pcs/vote/0.3/payload.ts +1381 -0
  294. package/src/vta/pcs/vote-encrypted/0.2/payload.ts +5 -5
  295. package/src/vta/pcs/vote-encrypted/0.3/payload.ts +14 -3
  296. package/src/vta/pcs/vote-encrypted/0.4/payload.ts +1385 -0
  297. package/src/vta/pcs/voter/read/0.1/payload.ts +5 -5
  298. package/src/vta/pcs/voter/read/0.2/payload.ts +15 -3
  299. package/src/vta/pcs/voter/read/0.3/payload.ts +363 -0
  300. package/src/vta/pcs/voter/register/0.1/payload.ts +5 -5
  301. package/src/vta/pcs/voter/register/0.2/payload.ts +15 -3
  302. package/src/vta/pcs/voter/register/0.3/payload.ts +1372 -0
  303. package/src/vtc/_shared/0.5/community-room.ts +17 -0
  304. package/src/vtc/elections/create/0.1/payload.ts +5 -5
  305. package/src/vtc/elections/create/0.2/payload.ts +5 -5
  306. package/src/vtc/elections/create/0.3/payload.ts +15 -3
  307. package/src/vtc/elections/create/0.4/payload.ts +1057 -0
  308. package/src/vtc/elections/show/0.1/payload.ts +5 -5
  309. package/src/vtc/elections/show/0.2/payload.ts +15 -3
  310. package/src/vtc/elections/show/0.3/payload.ts +1865 -0
  311. package/src/vtc/rooms/community/archive/0.1/payload.ts +995 -0
  312. package/src/vtc/rooms/community/get/0.1/payload.ts +5 -5
  313. package/src/vtc/rooms/community/get/0.2/payload.ts +5 -5
  314. package/src/vtc/rooms/community/get/0.3/payload.ts +14 -3
  315. package/src/vtc/rooms/community/get/0.4/payload.ts +851 -0
  316. package/src/vtc/rooms/community/list/0.1/payload.ts +5 -5
  317. package/src/vtc/rooms/community/list/0.2/payload.ts +5 -5
  318. package/src/vtc/rooms/community/list/0.3/payload.ts +14 -3
  319. package/src/vtc/rooms/community/list/0.4/payload.ts +915 -0
  320. package/src/vtc/rooms/community/members/add/0.1/payload.ts +14 -3
  321. package/src/vtc/rooms/community/members/add/0.2/payload.ts +384 -0
  322. package/src/vtc/rooms/community/members/list/0.1/payload.ts +14 -3
  323. package/src/vtc/rooms/community/members/list/0.2/payload.ts +394 -0
  324. package/src/vtc/rooms/community/removal/cancel/0.1/payload.ts +870 -0
  325. package/src/vtc/rooms/community/remove/0.1/payload.ts +968 -0
  326. package/src/vtc/rooms/community/unarchive/0.1/payload.ts +884 -0
  327. package/src/vtc/rooms/memberships/list/0.1/payload.ts +14 -3
  328. package/src/vtc/rooms/memberships/list/0.2/payload.ts +543 -0
@@ -0,0 +1,845 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/rooms/community/unarchive/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/community/unarchive/0.1";
7
+ /**
8
+ * The earlier version of this specification that this one declares it
9
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
10
+ * `null`. Only the direct declaration — follow the chain with
11
+ * `extendsChain` / `readForSpec`.
12
+ */
13
+ export const EXTENDS = null;
14
+ /**
15
+ * Why this version is deprecated, or `null` while it is current. A
16
+ * superseded or retired version is still supported, and is withdrawn from
17
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
+ * Versions").
19
+ */
20
+ export const DEPRECATION = null;
21
+ /** Trust Task response type URI (request type URI + "#response"). */
22
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/community/unarchive/0.1#response";
23
+ /**
24
+ * This specification's payload schema, as a value.
25
+ *
26
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
27
+ * rather than only as a `.json` file because TypeScript types are erased
28
+ * at runtime: without a schema a consumer has nothing to validate, and
29
+ * every REQUIRED payload member is optional in practice. Cross-file
30
+ * `$ref`s are already inlined, so it needs no resolver.
31
+ */
32
+ export const PAYLOAD_SCHEMA = {
33
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
34
+ "$id": "https://trusttasks.org/spec/vtc/rooms/community/unarchive/0.1",
35
+ "title": "VTC Rooms Community Unarchive — payload",
36
+ "type": "object",
37
+ "additionalProperties": false,
38
+ "required": [
39
+ "roomId",
40
+ "reason"
41
+ ],
42
+ "properties": {
43
+ "roomId": {
44
+ "type": "string",
45
+ "minLength": 1,
46
+ "maxLength": 512,
47
+ "description": "The room's identifier: its DID."
48
+ },
49
+ "reason": {
50
+ "$ref": "#/$defs/Reason"
51
+ },
52
+ "ext": {
53
+ "$ref": "#/$defs/Ext"
54
+ }
55
+ },
56
+ "$defs": {
57
+ "Response": {
58
+ "$anchor": "response",
59
+ "title": "VTC Rooms Community Unarchive — response payload",
60
+ "description": "Success response to vtc/rooms/community/unarchive. Type https://trusttasks.org/spec/vtc/rooms/community/unarchive/0.1#response. The room as it now stands, `active`, and whether anything changed. Suspended members still being restored are counted in `room.status.restoring`.",
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "required": [
64
+ "room",
65
+ "changed"
66
+ ],
67
+ "properties": {
68
+ "room": {
69
+ "$ref": "#/$defs/CommunityRoomV3"
70
+ },
71
+ "changed": {
72
+ "type": "boolean",
73
+ "description": "`false` when the room was already `active` with no change pending: nothing was written or audited."
74
+ },
75
+ "ext": {
76
+ "$ref": "#/$defs/Ext"
77
+ }
78
+ }
79
+ },
80
+ "Ext": {
81
+ "title": "Ext",
82
+ "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.",
83
+ "type": "object",
84
+ "minProperties": 1,
85
+ "additionalProperties": true,
86
+ "propertyNames": {
87
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
88
+ }
89
+ },
90
+ "CommunityRoomV3": {
91
+ "title": "CommunityRoomV3",
92
+ "type": "object",
93
+ "additionalProperties": false,
94
+ "required": [
95
+ "room",
96
+ "label",
97
+ "admitted",
98
+ "offered",
99
+ "status"
100
+ ],
101
+ "description": "What vtc/rooms/community/{get,list}/0.4 and vtc/rooms/community/{archive,unarchive,remove,removal/cancel}/0.1 return: `CommunityRoomV2` plus the room's `status` in its owner's lifecycle and the count of `suspended` admissions. A separate definition, not a change to `CommunityRoomV2`, so that the versions returning that keep the exact shape they published. For a room in state `purging` or `removed`, whose host record a purge deletes, `room` is the host record as it last stood before the purge began — the community keeps that snapshot with the room's record when the purge starts — and its `lifecycle` is what was computed then.",
102
+ "properties": {
103
+ "room": {
104
+ "$ref": "#/$defs/HostedRoom"
105
+ },
106
+ "label": {
107
+ "$ref": "#/$defs/RoomLabel"
108
+ },
109
+ "status": {
110
+ "$ref": "#/$defs/RoomStatus"
111
+ },
112
+ "description": {
113
+ "$ref": "#/$defs/RoomDescription",
114
+ "description": "Absent when the room has none."
115
+ },
116
+ "tags": {
117
+ "$ref": "#/$defs/RoomTags",
118
+ "description": "Absent or empty when the room has none."
119
+ },
120
+ "storageConfig": {
121
+ "$ref": "#/$defs/StorageConfigId",
122
+ "description": "The storage config receiving the room's new uploads."
123
+ },
124
+ "admitted": {
125
+ "type": "integer",
126
+ "minimum": 0,
127
+ "description": "Members in state `admitted`."
128
+ },
129
+ "offered": {
130
+ "type": "integer",
131
+ "minimum": 0,
132
+ "description": "Offers not yet accepted or withdrawn."
133
+ },
134
+ "suspended": {
135
+ "type": "integer",
136
+ "minimum": 0,
137
+ "description": "Admissions in state `suspended`: withdrawn while the room was archived with `noAccess`, and restored when it leaves that state. Absent when zero."
138
+ },
139
+ "ownerAuthorityValidUntil": {
140
+ "type": "string",
141
+ "format": "date-time",
142
+ "description": "When the community's own `admin` authority over the room expires. A room whose owner's authority lapses can no longer advance its epoch, admit or remove; a community SHOULD renew it well before."
143
+ },
144
+ "createdBy": {
145
+ "type": "string",
146
+ "pattern": "^did:",
147
+ "maxLength": 2048,
148
+ "description": "The administrator who created it."
149
+ },
150
+ "detailsUpdatedAt": {
151
+ "type": "string",
152
+ "format": "date-time",
153
+ "description": "When `label`, `description` or `tags` last changed. Absent until the first change after creation. Distinct from `room.updatedAt`, which is the host record's and moves with the room's epoch and lifecycle."
154
+ },
155
+ "detailsUpdatedBy": {
156
+ "type": "string",
157
+ "pattern": "^did:",
158
+ "maxLength": 2048,
159
+ "description": "The administrator who made that change. Present exactly when `detailsUpdatedAt` is. The earlier values and who set them are in the community's audit trail, not here."
160
+ }
161
+ }
162
+ },
163
+ "RoomTags": {
164
+ "title": "RoomTags",
165
+ "type": "array",
166
+ "maxItems": 8,
167
+ "uniqueItems": true,
168
+ "items": {
169
+ "$ref": "#/$defs/RoomTag"
170
+ },
171
+ "description": "The room's tags, at most eight, as a set: order carries no meaning. An empty list means the room has none — a tag grants nothing, so empty has no more dangerous reading."
172
+ },
173
+ "RoomTag": {
174
+ "title": "RoomTag",
175
+ "type": "string",
176
+ "minLength": 1,
177
+ "maxLength": 32,
178
+ "pattern": "^[a-z0-9][a-z0-9-]{0,31}$",
179
+ "description": "A short identifier an administrator files a community-owned room under — `board`, `working-group`, `finance` — so the room list can be filtered. Lower-case letters, digits and hyphens, starting with a letter or digit. Owner-side tracking metadata for holders of `vtc.rooms.manage` only: never shown to members, never sent on the room's host path, and it confers nothing."
180
+ },
181
+ "RoomDescription": {
182
+ "title": "RoomDescription",
183
+ "type": "string",
184
+ "minLength": 1,
185
+ "maxLength": 1000,
186
+ "description": "What the room is for, in a sentence or a short paragraph, written by an administrator: shown to administrators holding `vtc.rooms.manage` and to the members the room is offered to. Plain text — a consumer renders it as text, never as markup. Like `RoomLabel`, it is the community's own record as the room's owner: not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `description` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. It MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
187
+ },
188
+ "RoomStatus": {
189
+ "title": "RoomStatus",
190
+ "type": "object",
191
+ "additionalProperties": false,
192
+ "required": [
193
+ "state"
194
+ ],
195
+ "description": "A room's state in its owner's lifecycle, and what that state needs to be understood.",
196
+ "properties": {
197
+ "state": {
198
+ "$ref": "#/$defs/RoomState"
199
+ },
200
+ "access": {
201
+ "$ref": "#/$defs/ArchiveAccess",
202
+ "description": "Present exactly when `state` is `archived` or `removalScheduled`; always `noAccess` for `removalScheduled`."
203
+ },
204
+ "changedAt": {
205
+ "type": "string",
206
+ "format": "date-time",
207
+ "description": "When the room entered `state`. Absent for a room that has been `active` since it was created."
208
+ },
209
+ "changedBy": {
210
+ "type": "string",
211
+ "pattern": "^did:",
212
+ "maxLength": 2048,
213
+ "description": "The administrator whose act put the room in `state`. Present exactly when `changedAt` is, except for `purging` and `removed` reached when a grace period ended, which no one did at that moment: then the administrator who scheduled the removal. The reason each gave is in the community's audit trail, not here."
214
+ },
215
+ "purgeAt": {
216
+ "type": "string",
217
+ "format": "date-time",
218
+ "description": "Present when `state` is `removalScheduled`: when the grace period ends and the purge begins. Kept when `state` is `purging` or `removed`, as when it became due."
219
+ },
220
+ "purge": {
221
+ "$ref": "#/$defs/PurgeProgress",
222
+ "description": "Present exactly when `state` is `purging`."
223
+ },
224
+ "removedAt": {
225
+ "type": "string",
226
+ "format": "date-time",
227
+ "description": "Present exactly when `state` is `removed`: when the last of the room's content was deleted."
228
+ },
229
+ "restoring": {
230
+ "type": "integer",
231
+ "minimum": 1,
232
+ "description": "Admissions still `suspended` that the community is restoring, after the room left `noAccess` — the room re-issues each member's credentials and the member collects them as a renewal. Absent when there are none."
233
+ },
234
+ "pendingChange": {
235
+ "$ref": "#/$defs/PendingChange",
236
+ "description": "Present while a change of state is begun and not finished."
237
+ }
238
+ }
239
+ },
240
+ "PendingChange": {
241
+ "title": "PendingChange",
242
+ "type": "object",
243
+ "additionalProperties": false,
244
+ "required": [
245
+ "state",
246
+ "beganAt"
247
+ ],
248
+ "description": "A change of state the community began and has not finished, because a step at its VTA did not complete — most often a room reset the host accepted, after which the community's own credentials must be re-issued before it can act on the room again. `RoomStatus.state` stays what it was until the change finishes, but what the room's host enforces may already be the new state's: a pending move to `noAccess` means members' credentials may already be refused. The community finishes it by itself, retrying with backoff, and repeating the request that began it finishes it too; nothing else changes the room until it is finished.",
249
+ "properties": {
250
+ "state": {
251
+ "$ref": "#/$defs/RoomState",
252
+ "description": "The state the change leads to."
253
+ },
254
+ "access": {
255
+ "$ref": "#/$defs/ArchiveAccess",
256
+ "description": "The access it leads to, where `state` has one."
257
+ },
258
+ "beganAt": {
259
+ "type": "string",
260
+ "format": "date-time"
261
+ },
262
+ "lastError": {
263
+ "type": "string",
264
+ "minLength": 1,
265
+ "maxLength": 500,
266
+ "description": "What stopped the last attempt, for an administrator. Plain text; it names no member and carries no credential."
267
+ }
268
+ }
269
+ },
270
+ "ArchiveAccess": {
271
+ "title": "ArchiveAccess",
272
+ "type": "string",
273
+ "enum": [
274
+ "readOnly",
275
+ "noAccess"
276
+ ],
277
+ "description": "What an archived room's members may still do. `readOnly`: their credentials stand and they keep reading what the room holds; the room's host refuses every write, upload and curation from a member. `noAccess`: every credential the room issued before the archival is withdrawn at its host — a room reset — so the host refuses every member's every task; the content is kept intact, and each withdrawn admission is `suspended`, restored when the room is unarchived or made `readOnly`. Neither recalls what a member already read or saved, and on a sealed tier neither removes anyone from the room's group."
278
+ },
279
+ "RoomState": {
280
+ "title": "RoomState",
281
+ "type": "string",
282
+ "enum": [
283
+ "active",
284
+ "archived",
285
+ "removalScheduled",
286
+ "purging",
287
+ "removed"
288
+ ],
289
+ "description": "Where a room the community owns stands in its owner's lifecycle — distinct from `HostedRoom.lifecycle`, which is the host's clock (`live`, `lapsed`, `dormant`, `reclaimable`) and is computed from the room's epoch, never set. `active`: open to change. `archived`: closed to change by an administrator — no admissions, and the room's host accepts no writes from its members; what members may still do is `ArchiveAccess`. Reversible with vtc/rooms/community/unarchive. `removalScheduled`: an administrator removed the room with a grace period; it admits nobody and its content is kept until `purgeAt`, and vtc/rooms/community/removal/cancel returns it to `archived`. `purging`: the grace period ended (or there was none) and the community is deleting the room's content from its host and storage; not reversible. `removed`: the content is gone; the community keeps only this record of the room, for its history."
290
+ },
291
+ "PurgeProgress": {
292
+ "title": "PurgeProgress",
293
+ "type": "object",
294
+ "additionalProperties": false,
295
+ "required": [
296
+ "attempts"
297
+ ],
298
+ "description": "How a purge is going. A purge deletes at the room's host and at each storage config holding its files, and some of those are remote; a step that fails is retried with backoff until it succeeds, and nothing is reported removed until every step has.",
299
+ "properties": {
300
+ "attempts": {
301
+ "type": "integer",
302
+ "minimum": 0,
303
+ "description": "Passes made so far; 0 until the first."
304
+ },
305
+ "lastAttemptAt": {
306
+ "type": "string",
307
+ "format": "date-time"
308
+ },
309
+ "nextAttemptAt": {
310
+ "type": "string",
311
+ "format": "date-time",
312
+ "description": "When the next pass is due. Absent while one runs."
313
+ },
314
+ "lastError": {
315
+ "type": "string",
316
+ "minLength": 1,
317
+ "maxLength": 500,
318
+ "description": "What stopped the last pass, for an administrator. Present only after a pass failed. Plain text, written by the community; it names no member and carries no credential."
319
+ }
320
+ }
321
+ },
322
+ "RoomLabel": {
323
+ "title": "RoomLabel",
324
+ "type": "string",
325
+ "minLength": 1,
326
+ "maxLength": 128,
327
+ "description": "A name for the room, chosen by an administrator: shown to administrators and to the members a room is offered to. Not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `name` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. MUST NOT carry personal data."
328
+ },
329
+ "StorageConfigId": {
330
+ "title": "StorageConfigId",
331
+ "type": "string",
332
+ "minLength": 1,
333
+ "maxLength": 64,
334
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",
335
+ "description": "A storage config's identifier, chosen by the administrator who creates it and immutable thereafter: lowercase letters, digits and inner hyphens, at most 64 characters (`eu-s3-primary`, `walrus-main`). Unique within the community. Never reused after a config is retired, because blobs name their config by this value."
336
+ },
337
+ "HostedRoom": {
338
+ "title": "HostedRoom",
339
+ "type": "object",
340
+ "additionalProperties": false,
341
+ "required": [
342
+ "roomId",
343
+ "ownerDid",
344
+ "visibility",
345
+ "retentionPolicy",
346
+ "epoch",
347
+ "lifecycle",
348
+ "retentionDays",
349
+ "createdAt",
350
+ "updatedAt"
351
+ ],
352
+ "description": "One room, as its host holds it — member for member the `HostedRoom` of vtc/rooms/list/0.2, which defines it inside its own payload schema. Nothing derived from the room's contents, and no member list: the host has none.",
353
+ "properties": {
354
+ "roomId": {
355
+ "type": "string",
356
+ "minLength": 1,
357
+ "maxLength": 512
358
+ },
359
+ "ownerDid": {
360
+ "type": "string",
361
+ "pattern": "^did:",
362
+ "maxLength": 2048
363
+ },
364
+ "visibility": {
365
+ "$ref": "#/$defs/Visibility"
366
+ },
367
+ "retentionPolicy": {
368
+ "$ref": "#/$defs/RetentionPolicy"
369
+ },
370
+ "epoch": {
371
+ "type": "integer",
372
+ "minimum": 0
373
+ },
374
+ "lifecycle": {
375
+ "type": "string",
376
+ "enum": [
377
+ "live",
378
+ "lapsed",
379
+ "dormant",
380
+ "reclaimable"
381
+ ]
382
+ },
383
+ "epochExpiresAt": {
384
+ "type": "string",
385
+ "format": "date-time"
386
+ },
387
+ "retentionDays": {
388
+ "type": "integer",
389
+ "minimum": 0
390
+ },
391
+ "mirrorOf": {
392
+ "type": "string",
393
+ "minLength": 1,
394
+ "maxLength": 2048
395
+ },
396
+ "createdAt": {
397
+ "type": "string",
398
+ "format": "date-time"
399
+ },
400
+ "updatedAt": {
401
+ "type": "string",
402
+ "format": "date-time"
403
+ }
404
+ }
405
+ },
406
+ "RetentionPolicy": {
407
+ "title": "RetentionPolicy",
408
+ "type": "string",
409
+ "enum": [
410
+ "chained",
411
+ "fromJoin"
412
+ ],
413
+ "description": "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.",
414
+ "$comment": "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it."
415
+ },
416
+ "Visibility": {
417
+ "title": "Visibility",
418
+ "type": "string",
419
+ "enum": [
420
+ "open",
421
+ "attributed",
422
+ "private"
423
+ ],
424
+ "description": "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything."
425
+ },
426
+ "Reason": {
427
+ "title": "Reason",
428
+ "type": "string",
429
+ "minLength": 1,
430
+ "maxLength": 500,
431
+ "description": "Why the administrator is making this change. Recorded with it in the audit trail. Attributed to its author on every surface and untrusted: it MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
432
+ }
433
+ }
434
+ };
435
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
436
+ export const RESPONSE_PAYLOAD_SCHEMA = {
437
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
438
+ "$ref": "#/$defs/Response",
439
+ "$defs": {
440
+ "Response": {
441
+ "$anchor": "response",
442
+ "title": "VTC Rooms Community Unarchive — response payload",
443
+ "description": "Success response to vtc/rooms/community/unarchive. Type https://trusttasks.org/spec/vtc/rooms/community/unarchive/0.1#response. The room as it now stands, `active`, and whether anything changed. Suspended members still being restored are counted in `room.status.restoring`.",
444
+ "type": "object",
445
+ "additionalProperties": false,
446
+ "required": [
447
+ "room",
448
+ "changed"
449
+ ],
450
+ "properties": {
451
+ "room": {
452
+ "$ref": "#/$defs/CommunityRoomV3"
453
+ },
454
+ "changed": {
455
+ "type": "boolean",
456
+ "description": "`false` when the room was already `active` with no change pending: nothing was written or audited."
457
+ },
458
+ "ext": {
459
+ "$ref": "#/$defs/Ext"
460
+ }
461
+ }
462
+ },
463
+ "Ext": {
464
+ "title": "Ext",
465
+ "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.",
466
+ "type": "object",
467
+ "minProperties": 1,
468
+ "additionalProperties": true,
469
+ "propertyNames": {
470
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
471
+ }
472
+ },
473
+ "CommunityRoomV3": {
474
+ "title": "CommunityRoomV3",
475
+ "type": "object",
476
+ "additionalProperties": false,
477
+ "required": [
478
+ "room",
479
+ "label",
480
+ "admitted",
481
+ "offered",
482
+ "status"
483
+ ],
484
+ "description": "What vtc/rooms/community/{get,list}/0.4 and vtc/rooms/community/{archive,unarchive,remove,removal/cancel}/0.1 return: `CommunityRoomV2` plus the room's `status` in its owner's lifecycle and the count of `suspended` admissions. A separate definition, not a change to `CommunityRoomV2`, so that the versions returning that keep the exact shape they published. For a room in state `purging` or `removed`, whose host record a purge deletes, `room` is the host record as it last stood before the purge began — the community keeps that snapshot with the room's record when the purge starts — and its `lifecycle` is what was computed then.",
485
+ "properties": {
486
+ "room": {
487
+ "$ref": "#/$defs/HostedRoom"
488
+ },
489
+ "label": {
490
+ "$ref": "#/$defs/RoomLabel"
491
+ },
492
+ "status": {
493
+ "$ref": "#/$defs/RoomStatus"
494
+ },
495
+ "description": {
496
+ "$ref": "#/$defs/RoomDescription",
497
+ "description": "Absent when the room has none."
498
+ },
499
+ "tags": {
500
+ "$ref": "#/$defs/RoomTags",
501
+ "description": "Absent or empty when the room has none."
502
+ },
503
+ "storageConfig": {
504
+ "$ref": "#/$defs/StorageConfigId",
505
+ "description": "The storage config receiving the room's new uploads."
506
+ },
507
+ "admitted": {
508
+ "type": "integer",
509
+ "minimum": 0,
510
+ "description": "Members in state `admitted`."
511
+ },
512
+ "offered": {
513
+ "type": "integer",
514
+ "minimum": 0,
515
+ "description": "Offers not yet accepted or withdrawn."
516
+ },
517
+ "suspended": {
518
+ "type": "integer",
519
+ "minimum": 0,
520
+ "description": "Admissions in state `suspended`: withdrawn while the room was archived with `noAccess`, and restored when it leaves that state. Absent when zero."
521
+ },
522
+ "ownerAuthorityValidUntil": {
523
+ "type": "string",
524
+ "format": "date-time",
525
+ "description": "When the community's own `admin` authority over the room expires. A room whose owner's authority lapses can no longer advance its epoch, admit or remove; a community SHOULD renew it well before."
526
+ },
527
+ "createdBy": {
528
+ "type": "string",
529
+ "pattern": "^did:",
530
+ "maxLength": 2048,
531
+ "description": "The administrator who created it."
532
+ },
533
+ "detailsUpdatedAt": {
534
+ "type": "string",
535
+ "format": "date-time",
536
+ "description": "When `label`, `description` or `tags` last changed. Absent until the first change after creation. Distinct from `room.updatedAt`, which is the host record's and moves with the room's epoch and lifecycle."
537
+ },
538
+ "detailsUpdatedBy": {
539
+ "type": "string",
540
+ "pattern": "^did:",
541
+ "maxLength": 2048,
542
+ "description": "The administrator who made that change. Present exactly when `detailsUpdatedAt` is. The earlier values and who set them are in the community's audit trail, not here."
543
+ }
544
+ }
545
+ },
546
+ "RoomTags": {
547
+ "title": "RoomTags",
548
+ "type": "array",
549
+ "maxItems": 8,
550
+ "uniqueItems": true,
551
+ "items": {
552
+ "$ref": "#/$defs/RoomTag"
553
+ },
554
+ "description": "The room's tags, at most eight, as a set: order carries no meaning. An empty list means the room has none — a tag grants nothing, so empty has no more dangerous reading."
555
+ },
556
+ "RoomTag": {
557
+ "title": "RoomTag",
558
+ "type": "string",
559
+ "minLength": 1,
560
+ "maxLength": 32,
561
+ "pattern": "^[a-z0-9][a-z0-9-]{0,31}$",
562
+ "description": "A short identifier an administrator files a community-owned room under — `board`, `working-group`, `finance` — so the room list can be filtered. Lower-case letters, digits and hyphens, starting with a letter or digit. Owner-side tracking metadata for holders of `vtc.rooms.manage` only: never shown to members, never sent on the room's host path, and it confers nothing."
563
+ },
564
+ "RoomDescription": {
565
+ "title": "RoomDescription",
566
+ "type": "string",
567
+ "minLength": 1,
568
+ "maxLength": 1000,
569
+ "description": "What the room is for, in a sentence or a short paragraph, written by an administrator: shown to administrators holding `vtc.rooms.manage` and to the members the room is offered to. Plain text — a consumer renders it as text, never as markup. Like `RoomLabel`, it is the community's own record as the room's owner: not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `description` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. It MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
570
+ },
571
+ "RoomStatus": {
572
+ "title": "RoomStatus",
573
+ "type": "object",
574
+ "additionalProperties": false,
575
+ "required": [
576
+ "state"
577
+ ],
578
+ "description": "A room's state in its owner's lifecycle, and what that state needs to be understood.",
579
+ "properties": {
580
+ "state": {
581
+ "$ref": "#/$defs/RoomState"
582
+ },
583
+ "access": {
584
+ "$ref": "#/$defs/ArchiveAccess",
585
+ "description": "Present exactly when `state` is `archived` or `removalScheduled`; always `noAccess` for `removalScheduled`."
586
+ },
587
+ "changedAt": {
588
+ "type": "string",
589
+ "format": "date-time",
590
+ "description": "When the room entered `state`. Absent for a room that has been `active` since it was created."
591
+ },
592
+ "changedBy": {
593
+ "type": "string",
594
+ "pattern": "^did:",
595
+ "maxLength": 2048,
596
+ "description": "The administrator whose act put the room in `state`. Present exactly when `changedAt` is, except for `purging` and `removed` reached when a grace period ended, which no one did at that moment: then the administrator who scheduled the removal. The reason each gave is in the community's audit trail, not here."
597
+ },
598
+ "purgeAt": {
599
+ "type": "string",
600
+ "format": "date-time",
601
+ "description": "Present when `state` is `removalScheduled`: when the grace period ends and the purge begins. Kept when `state` is `purging` or `removed`, as when it became due."
602
+ },
603
+ "purge": {
604
+ "$ref": "#/$defs/PurgeProgress",
605
+ "description": "Present exactly when `state` is `purging`."
606
+ },
607
+ "removedAt": {
608
+ "type": "string",
609
+ "format": "date-time",
610
+ "description": "Present exactly when `state` is `removed`: when the last of the room's content was deleted."
611
+ },
612
+ "restoring": {
613
+ "type": "integer",
614
+ "minimum": 1,
615
+ "description": "Admissions still `suspended` that the community is restoring, after the room left `noAccess` — the room re-issues each member's credentials and the member collects them as a renewal. Absent when there are none."
616
+ },
617
+ "pendingChange": {
618
+ "$ref": "#/$defs/PendingChange",
619
+ "description": "Present while a change of state is begun and not finished."
620
+ }
621
+ }
622
+ },
623
+ "PendingChange": {
624
+ "title": "PendingChange",
625
+ "type": "object",
626
+ "additionalProperties": false,
627
+ "required": [
628
+ "state",
629
+ "beganAt"
630
+ ],
631
+ "description": "A change of state the community began and has not finished, because a step at its VTA did not complete — most often a room reset the host accepted, after which the community's own credentials must be re-issued before it can act on the room again. `RoomStatus.state` stays what it was until the change finishes, but what the room's host enforces may already be the new state's: a pending move to `noAccess` means members' credentials may already be refused. The community finishes it by itself, retrying with backoff, and repeating the request that began it finishes it too; nothing else changes the room until it is finished.",
632
+ "properties": {
633
+ "state": {
634
+ "$ref": "#/$defs/RoomState",
635
+ "description": "The state the change leads to."
636
+ },
637
+ "access": {
638
+ "$ref": "#/$defs/ArchiveAccess",
639
+ "description": "The access it leads to, where `state` has one."
640
+ },
641
+ "beganAt": {
642
+ "type": "string",
643
+ "format": "date-time"
644
+ },
645
+ "lastError": {
646
+ "type": "string",
647
+ "minLength": 1,
648
+ "maxLength": 500,
649
+ "description": "What stopped the last attempt, for an administrator. Plain text; it names no member and carries no credential."
650
+ }
651
+ }
652
+ },
653
+ "ArchiveAccess": {
654
+ "title": "ArchiveAccess",
655
+ "type": "string",
656
+ "enum": [
657
+ "readOnly",
658
+ "noAccess"
659
+ ],
660
+ "description": "What an archived room's members may still do. `readOnly`: their credentials stand and they keep reading what the room holds; the room's host refuses every write, upload and curation from a member. `noAccess`: every credential the room issued before the archival is withdrawn at its host — a room reset — so the host refuses every member's every task; the content is kept intact, and each withdrawn admission is `suspended`, restored when the room is unarchived or made `readOnly`. Neither recalls what a member already read or saved, and on a sealed tier neither removes anyone from the room's group."
661
+ },
662
+ "RoomState": {
663
+ "title": "RoomState",
664
+ "type": "string",
665
+ "enum": [
666
+ "active",
667
+ "archived",
668
+ "removalScheduled",
669
+ "purging",
670
+ "removed"
671
+ ],
672
+ "description": "Where a room the community owns stands in its owner's lifecycle — distinct from `HostedRoom.lifecycle`, which is the host's clock (`live`, `lapsed`, `dormant`, `reclaimable`) and is computed from the room's epoch, never set. `active`: open to change. `archived`: closed to change by an administrator — no admissions, and the room's host accepts no writes from its members; what members may still do is `ArchiveAccess`. Reversible with vtc/rooms/community/unarchive. `removalScheduled`: an administrator removed the room with a grace period; it admits nobody and its content is kept until `purgeAt`, and vtc/rooms/community/removal/cancel returns it to `archived`. `purging`: the grace period ended (or there was none) and the community is deleting the room's content from its host and storage; not reversible. `removed`: the content is gone; the community keeps only this record of the room, for its history."
673
+ },
674
+ "PurgeProgress": {
675
+ "title": "PurgeProgress",
676
+ "type": "object",
677
+ "additionalProperties": false,
678
+ "required": [
679
+ "attempts"
680
+ ],
681
+ "description": "How a purge is going. A purge deletes at the room's host and at each storage config holding its files, and some of those are remote; a step that fails is retried with backoff until it succeeds, and nothing is reported removed until every step has.",
682
+ "properties": {
683
+ "attempts": {
684
+ "type": "integer",
685
+ "minimum": 0,
686
+ "description": "Passes made so far; 0 until the first."
687
+ },
688
+ "lastAttemptAt": {
689
+ "type": "string",
690
+ "format": "date-time"
691
+ },
692
+ "nextAttemptAt": {
693
+ "type": "string",
694
+ "format": "date-time",
695
+ "description": "When the next pass is due. Absent while one runs."
696
+ },
697
+ "lastError": {
698
+ "type": "string",
699
+ "minLength": 1,
700
+ "maxLength": 500,
701
+ "description": "What stopped the last pass, for an administrator. Present only after a pass failed. Plain text, written by the community; it names no member and carries no credential."
702
+ }
703
+ }
704
+ },
705
+ "RoomLabel": {
706
+ "title": "RoomLabel",
707
+ "type": "string",
708
+ "minLength": 1,
709
+ "maxLength": 128,
710
+ "description": "A name for the room, chosen by an administrator: shown to administrators and to the members a room is offered to. Not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `name` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. MUST NOT carry personal data."
711
+ },
712
+ "StorageConfigId": {
713
+ "title": "StorageConfigId",
714
+ "type": "string",
715
+ "minLength": 1,
716
+ "maxLength": 64,
717
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",
718
+ "description": "A storage config's identifier, chosen by the administrator who creates it and immutable thereafter: lowercase letters, digits and inner hyphens, at most 64 characters (`eu-s3-primary`, `walrus-main`). Unique within the community. Never reused after a config is retired, because blobs name their config by this value."
719
+ },
720
+ "HostedRoom": {
721
+ "title": "HostedRoom",
722
+ "type": "object",
723
+ "additionalProperties": false,
724
+ "required": [
725
+ "roomId",
726
+ "ownerDid",
727
+ "visibility",
728
+ "retentionPolicy",
729
+ "epoch",
730
+ "lifecycle",
731
+ "retentionDays",
732
+ "createdAt",
733
+ "updatedAt"
734
+ ],
735
+ "description": "One room, as its host holds it — member for member the `HostedRoom` of vtc/rooms/list/0.2, which defines it inside its own payload schema. Nothing derived from the room's contents, and no member list: the host has none.",
736
+ "properties": {
737
+ "roomId": {
738
+ "type": "string",
739
+ "minLength": 1,
740
+ "maxLength": 512
741
+ },
742
+ "ownerDid": {
743
+ "type": "string",
744
+ "pattern": "^did:",
745
+ "maxLength": 2048
746
+ },
747
+ "visibility": {
748
+ "$ref": "#/$defs/Visibility"
749
+ },
750
+ "retentionPolicy": {
751
+ "$ref": "#/$defs/RetentionPolicy"
752
+ },
753
+ "epoch": {
754
+ "type": "integer",
755
+ "minimum": 0
756
+ },
757
+ "lifecycle": {
758
+ "type": "string",
759
+ "enum": [
760
+ "live",
761
+ "lapsed",
762
+ "dormant",
763
+ "reclaimable"
764
+ ]
765
+ },
766
+ "epochExpiresAt": {
767
+ "type": "string",
768
+ "format": "date-time"
769
+ },
770
+ "retentionDays": {
771
+ "type": "integer",
772
+ "minimum": 0
773
+ },
774
+ "mirrorOf": {
775
+ "type": "string",
776
+ "minLength": 1,
777
+ "maxLength": 2048
778
+ },
779
+ "createdAt": {
780
+ "type": "string",
781
+ "format": "date-time"
782
+ },
783
+ "updatedAt": {
784
+ "type": "string",
785
+ "format": "date-time"
786
+ }
787
+ }
788
+ },
789
+ "RetentionPolicy": {
790
+ "title": "RetentionPolicy",
791
+ "type": "string",
792
+ "enum": [
793
+ "chained",
794
+ "fromJoin"
795
+ ],
796
+ "description": "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.",
797
+ "$comment": "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it."
798
+ },
799
+ "Visibility": {
800
+ "title": "Visibility",
801
+ "type": "string",
802
+ "enum": [
803
+ "open",
804
+ "attributed",
805
+ "private"
806
+ ],
807
+ "description": "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything."
808
+ },
809
+ "Reason": {
810
+ "title": "Reason",
811
+ "type": "string",
812
+ "minLength": 1,
813
+ "maxLength": 500,
814
+ "description": "Why the administrator is making this change. Recorded with it in the audit trail. Attributed to its author on every surface and untrusted: it MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
815
+ }
816
+ }
817
+ };
818
+ /**
819
+ * SPEC.md §7.2 policy for the request variant, from this specification's
820
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
821
+ * per-specification and cannot be derived from the document alone, and
822
+ * item 2 needs the schema this carries.
823
+ */
824
+ export const SPEC = {
825
+ typeUri: TYPE_URI,
826
+ isBearer: false,
827
+ isProofRequired: true,
828
+ isRecipientRequired: true,
829
+ isIssuedAtRequired: true,
830
+ payloadSchema: PAYLOAD_SCHEMA,
831
+ };
832
+ /**
833
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
834
+ * tracks the *issuer* party's requirement because a response swaps the
835
+ * parties (§7.3 item 5).
836
+ */
837
+ export const RESPONSE_SPEC = {
838
+ typeUri: RESPONSE_TYPE_URI,
839
+ isBearer: false,
840
+ isProofRequired: true,
841
+ isRecipientRequired: true,
842
+ isIssuedAtRequired: true,
843
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
844
+ };
845
+ //# sourceMappingURL=payload.js.map