@openvtc/trust-tasks 0.28.13 → 0.28.15

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 (319) hide show
  1. package/CHANGELOG.md +122 -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 +344 -1
  6. package/dist/_shared/components.d.ts.map +1 -1
  7. package/dist/did-management/stats/set-resolution/0.1/payload.d.ts +398 -0
  8. package/dist/did-management/stats/set-resolution/0.1/payload.d.ts.map +1 -0
  9. package/dist/did-management/stats/set-resolution/0.1/payload.js +247 -0
  10. package/dist/did-management/stats/set-resolution/0.1/payload.js.map +1 -0
  11. package/dist/index.d.ts +76 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +76 -0
  14. package/dist/index.js.map +1 -1
  15. package/dist/process-attestation/0.1/payload.d.ts +73 -7
  16. package/dist/process-attestation/0.1/payload.d.ts.map +1 -1
  17. package/dist/process-attestation/0.1/payload.js +40 -6
  18. package/dist/process-attestation/0.1/payload.js.map +1 -1
  19. package/dist/rooms/_shared/0.1/room.d.ts +1 -1
  20. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
  21. package/dist/rooms/_shared/0.2/room.d.ts +1 -1
  22. package/dist/rooms/_shared/0.2/room.d.ts.map +1 -1
  23. package/dist/rooms/_shared/0.3/member-profile.d.ts +11 -0
  24. package/dist/rooms/_shared/0.3/member-profile.d.ts.map +1 -0
  25. package/dist/rooms/_shared/0.3/member-profile.js +6 -0
  26. package/dist/rooms/_shared/0.3/member-profile.js.map +1 -0
  27. package/dist/rooms/changed/0.1/payload.d.ts +139 -0
  28. package/dist/rooms/changed/0.1/payload.d.ts.map +1 -0
  29. package/dist/rooms/changed/0.1/payload.js +84 -0
  30. package/dist/rooms/changed/0.1/payload.js.map +1 -0
  31. package/dist/rooms/keys/act/0.1/payload.d.ts +4 -4
  32. package/dist/rooms/keys/act/0.1/payload.js +1 -1
  33. package/dist/rooms/keys/act/0.10/payload.d.ts +14 -2
  34. package/dist/rooms/keys/act/0.10/payload.d.ts.map +1 -1
  35. package/dist/rooms/keys/act/0.10/payload.js +1 -1
  36. package/dist/rooms/keys/act/0.10/payload.js.map +1 -1
  37. package/dist/rooms/keys/act/0.11/payload.d.ts +572 -0
  38. package/dist/rooms/keys/act/0.11/payload.d.ts.map +1 -0
  39. package/dist/rooms/keys/act/0.11/payload.js +319 -0
  40. package/dist/rooms/keys/act/0.11/payload.js.map +1 -0
  41. package/dist/rooms/keys/act/0.12/payload.d.ts +560 -0
  42. package/dist/rooms/keys/act/0.12/payload.d.ts.map +1 -0
  43. package/dist/rooms/keys/act/0.12/payload.js +319 -0
  44. package/dist/rooms/keys/act/0.12/payload.js.map +1 -0
  45. package/dist/rooms/keys/act/0.2/payload.d.ts +4 -4
  46. package/dist/rooms/keys/act/0.2/payload.js +1 -1
  47. package/dist/rooms/keys/act/0.3/payload.d.ts +4 -4
  48. package/dist/rooms/keys/act/0.3/payload.js +1 -1
  49. package/dist/rooms/keys/act/0.4/payload.d.ts +4 -4
  50. package/dist/rooms/keys/act/0.4/payload.js +1 -1
  51. package/dist/rooms/keys/act/0.5/payload.d.ts +4 -4
  52. package/dist/rooms/keys/act/0.5/payload.js +1 -1
  53. package/dist/rooms/keys/act/0.6/payload.d.ts +4 -4
  54. package/dist/rooms/keys/act/0.6/payload.js +1 -1
  55. package/dist/rooms/keys/act/0.7/payload.d.ts +4 -4
  56. package/dist/rooms/keys/act/0.7/payload.js +1 -1
  57. package/dist/rooms/keys/act/0.8/payload.d.ts +4 -4
  58. package/dist/rooms/keys/act/0.8/payload.js +1 -1
  59. package/dist/rooms/keys/act/0.9/payload.d.ts +4 -4
  60. package/dist/rooms/keys/act/0.9/payload.js +1 -1
  61. package/dist/rooms/keys/browse/0.1/payload.d.ts +4 -4
  62. package/dist/rooms/keys/browse/0.1/payload.js +1 -1
  63. package/dist/rooms/keys/browse/0.2/payload.d.ts +4 -4
  64. package/dist/rooms/keys/browse/0.2/payload.js +1 -1
  65. package/dist/rooms/keys/browse/0.3/payload.d.ts +14 -2
  66. package/dist/rooms/keys/browse/0.3/payload.d.ts.map +1 -1
  67. package/dist/rooms/keys/browse/0.3/payload.js +1 -1
  68. package/dist/rooms/keys/browse/0.3/payload.js.map +1 -1
  69. package/dist/rooms/keys/browse/0.4/payload.d.ts +1127 -0
  70. package/dist/rooms/keys/browse/0.4/payload.d.ts.map +1 -0
  71. package/dist/rooms/keys/browse/0.4/payload.js +658 -0
  72. package/dist/rooms/keys/browse/0.4/payload.js.map +1 -0
  73. package/dist/rooms/keys/changed/0.1/payload.d.ts +173 -0
  74. package/dist/rooms/keys/changed/0.1/payload.d.ts.map +1 -0
  75. package/dist/rooms/keys/changed/0.1/payload.js +99 -0
  76. package/dist/rooms/keys/changed/0.1/payload.js.map +1 -0
  77. package/dist/rooms/keys/profile/read/0.1/payload.d.ts +56 -4
  78. package/dist/rooms/keys/profile/read/0.1/payload.d.ts.map +1 -1
  79. package/dist/rooms/keys/profile/read/0.1/payload.js +28 -2
  80. package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -1
  81. package/dist/rooms/keys/profile/write/0.1/payload.d.ts +56 -4
  82. package/dist/rooms/keys/profile/write/0.1/payload.d.ts.map +1 -1
  83. package/dist/rooms/keys/profile/write/0.1/payload.js +28 -2
  84. package/dist/rooms/keys/profile/write/0.1/payload.js.map +1 -1
  85. package/dist/rooms/keys/read/0.1/payload.d.ts +14 -2
  86. package/dist/rooms/keys/read/0.1/payload.d.ts.map +1 -1
  87. package/dist/rooms/keys/read/0.1/payload.js +1 -1
  88. package/dist/rooms/keys/read/0.1/payload.js.map +1 -1
  89. package/dist/rooms/keys/read/0.2/payload.d.ts +1287 -0
  90. package/dist/rooms/keys/read/0.2/payload.d.ts.map +1 -0
  91. package/dist/rooms/keys/read/0.2/payload.js +689 -0
  92. package/dist/rooms/keys/read/0.2/payload.js.map +1 -0
  93. package/dist/rooms/keys/seal/0.1/payload.d.ts +4 -4
  94. package/dist/rooms/keys/seal/0.1/payload.js +1 -1
  95. package/dist/rooms/keys/seal/0.2/payload.d.ts +13 -2
  96. package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
  97. package/dist/rooms/keys/seal/0.2/payload.js +1 -1
  98. package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
  99. package/dist/rooms/keys/seal/0.3/payload.d.ts +402 -0
  100. package/dist/rooms/keys/seal/0.3/payload.d.ts.map +1 -0
  101. package/dist/rooms/keys/seal/0.3/payload.js +229 -0
  102. package/dist/rooms/keys/seal/0.3/payload.js.map +1 -0
  103. package/dist/rooms/keys/watch/0.1/payload.d.ts +652 -0
  104. package/dist/rooms/keys/watch/0.1/payload.d.ts.map +1 -0
  105. package/dist/rooms/keys/watch/0.1/payload.js +343 -0
  106. package/dist/rooms/keys/watch/0.1/payload.js.map +1 -0
  107. package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
  108. package/dist/rooms/records/get/0.1/payload.js +1 -1
  109. package/dist/rooms/records/get/0.2/payload.d.ts +13 -2
  110. package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
  111. package/dist/rooms/records/get/0.2/payload.js +1 -1
  112. package/dist/rooms/records/get/0.2/payload.js.map +1 -1
  113. package/dist/rooms/records/get/0.3/payload.d.ts +1064 -0
  114. package/dist/rooms/records/get/0.3/payload.d.ts.map +1 -0
  115. package/dist/rooms/records/get/0.3/payload.js +571 -0
  116. package/dist/rooms/records/get/0.3/payload.js.map +1 -0
  117. package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
  118. package/dist/rooms/records/list/0.1/payload.js +1 -1
  119. package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
  120. package/dist/rooms/records/list/0.2/payload.js +1 -1
  121. package/dist/rooms/records/list/0.3/payload.d.ts +4 -4
  122. package/dist/rooms/records/list/0.3/payload.js +1 -1
  123. package/dist/rooms/records/list/0.4/payload.d.ts +4 -4
  124. package/dist/rooms/records/list/0.4/payload.js +1 -1
  125. package/dist/rooms/records/list/0.5/payload.d.ts +13 -2
  126. package/dist/rooms/records/list/0.5/payload.d.ts.map +1 -1
  127. package/dist/rooms/records/list/0.5/payload.js +1 -1
  128. package/dist/rooms/records/list/0.5/payload.js.map +1 -1
  129. package/dist/rooms/records/list/0.6/payload.d.ts +1096 -0
  130. package/dist/rooms/records/list/0.6/payload.d.ts.map +1 -0
  131. package/dist/rooms/records/list/0.6/payload.js +596 -0
  132. package/dist/rooms/records/list/0.6/payload.js.map +1 -0
  133. package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
  134. package/dist/rooms/records/put/0.1/payload.js +1 -1
  135. package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
  136. package/dist/rooms/records/put/0.2/payload.js +1 -1
  137. package/dist/rooms/records/put/0.3/payload.d.ts +4 -4
  138. package/dist/rooms/records/put/0.3/payload.js +1 -1
  139. package/dist/rooms/records/put/0.4/payload.d.ts +146 -6
  140. package/dist/rooms/records/put/0.4/payload.d.ts.map +1 -1
  141. package/dist/rooms/records/put/0.4/payload.js +81 -3
  142. package/dist/rooms/records/put/0.4/payload.js.map +1 -1
  143. package/dist/rooms/records/put/0.5/payload.d.ts +1808 -0
  144. package/dist/rooms/records/put/0.5/payload.d.ts.map +1 -0
  145. package/dist/rooms/records/put/0.5/payload.js +984 -0
  146. package/dist/rooms/records/put/0.5/payload.js.map +1 -0
  147. package/dist/rooms/watch/0.1/payload.d.ts +497 -0
  148. package/dist/rooms/watch/0.1/payload.d.ts.map +1 -0
  149. package/dist/rooms/watch/0.1/payload.js +268 -0
  150. package/dist/rooms/watch/0.1/payload.js.map +1 -0
  151. package/dist/trust-task-discovery/0.1/payload.d.ts +4 -4
  152. package/dist/trust-task-discovery/0.1/payload.js +1 -1
  153. package/dist/trust-task-discovery/0.2/payload.d.ts +4 -4
  154. package/dist/trust-task-discovery/0.2/payload.js +1 -1
  155. package/dist/trust-task-discovery/0.3/payload.d.ts +14 -2
  156. package/dist/trust-task-discovery/0.3/payload.d.ts.map +1 -1
  157. package/dist/trust-task-discovery/0.3/payload.js +1 -1
  158. package/dist/trust-task-discovery/0.3/payload.js.map +1 -1
  159. package/dist/trust-task-discovery/0.4/payload.d.ts +521 -0
  160. package/dist/trust-task-discovery/0.4/payload.d.ts.map +1 -0
  161. package/dist/trust-task-discovery/0.4/payload.js +266 -0
  162. package/dist/trust-task-discovery/0.4/payload.js.map +1 -0
  163. package/dist/vtc/_shared/0.7/network-membership.d.ts +16 -0
  164. package/dist/vtc/_shared/0.7/network-membership.d.ts.map +1 -0
  165. package/dist/vtc/_shared/0.7/network-membership.js +6 -0
  166. package/dist/vtc/_shared/0.7/network-membership.js.map +1 -0
  167. package/dist/vtc/boards/delete/0.1/payload.d.ts +416 -0
  168. package/dist/vtc/boards/delete/0.1/payload.d.ts.map +1 -0
  169. package/dist/vtc/boards/delete/0.1/payload.js +236 -0
  170. package/dist/vtc/boards/delete/0.1/payload.js.map +1 -0
  171. package/dist/vtc/boards/update/0.1/payload.d.ts +147 -2
  172. package/dist/vtc/boards/update/0.1/payload.d.ts.map +1 -1
  173. package/dist/vtc/boards/update/0.1/payload.js +72 -0
  174. package/dist/vtc/boards/update/0.1/payload.js.map +1 -1
  175. package/dist/vtc/elections/list/0.5/payload.d.ts +3 -3
  176. package/dist/vtc/elections/list/0.5/payload.js +1 -1
  177. package/dist/vtc/elections/list/0.5/payload.js.map +1 -1
  178. package/dist/vtc/elections/show/0.6/payload.d.ts +3 -3
  179. package/dist/vtc/elections/show/0.6/payload.js +1 -1
  180. package/dist/vtc/elections/show/0.6/payload.js.map +1 -1
  181. package/dist/vtc/elections/tombstones/show/0.1/payload.d.ts +593 -0
  182. package/dist/vtc/elections/tombstones/show/0.1/payload.d.ts.map +1 -0
  183. package/dist/vtc/elections/tombstones/show/0.1/payload.js +335 -0
  184. package/dist/vtc/elections/tombstones/show/0.1/payload.js.map +1 -0
  185. package/dist/vtc/networks/deliver/0.1/payload.d.ts +354 -0
  186. package/dist/vtc/networks/deliver/0.1/payload.d.ts.map +1 -0
  187. package/dist/vtc/networks/deliver/0.1/payload.js +213 -0
  188. package/dist/vtc/networks/deliver/0.1/payload.js.map +1 -0
  189. package/dist/vtc/networks/evidence/0.1/payload.d.ts +14 -2
  190. package/dist/vtc/networks/evidence/0.1/payload.d.ts.map +1 -1
  191. package/dist/vtc/networks/evidence/0.1/payload.js +1 -1
  192. package/dist/vtc/networks/evidence/0.1/payload.js.map +1 -1
  193. package/dist/vtc/networks/evidence/0.2/payload.d.ts +412 -0
  194. package/dist/vtc/networks/evidence/0.2/payload.d.ts.map +1 -0
  195. package/dist/vtc/networks/evidence/0.2/payload.js +233 -0
  196. package/dist/vtc/networks/evidence/0.2/payload.js.map +1 -0
  197. package/dist/vtc/networks/groups/register/0.1/payload.d.ts +14 -2
  198. package/dist/vtc/networks/groups/register/0.1/payload.d.ts.map +1 -1
  199. package/dist/vtc/networks/groups/register/0.1/payload.js +1 -1
  200. package/dist/vtc/networks/groups/register/0.1/payload.js.map +1 -1
  201. package/dist/vtc/networks/groups/register/0.2/payload.d.ts +680 -0
  202. package/dist/vtc/networks/groups/register/0.2/payload.d.ts.map +1 -0
  203. package/dist/vtc/networks/groups/register/0.2/payload.js +401 -0
  204. package/dist/vtc/networks/groups/register/0.2/payload.js.map +1 -0
  205. package/dist/vtc/networks/join/0.1/payload.d.ts +14 -2
  206. package/dist/vtc/networks/join/0.1/payload.d.ts.map +1 -1
  207. package/dist/vtc/networks/join/0.1/payload.js +1 -1
  208. package/dist/vtc/networks/join/0.1/payload.js.map +1 -1
  209. package/dist/vtc/networks/join/0.2/payload.d.ts +760 -0
  210. package/dist/vtc/networks/join/0.2/payload.d.ts.map +1 -0
  211. package/dist/vtc/networks/join/0.2/payload.js +445 -0
  212. package/dist/vtc/networks/join/0.2/payload.js.map +1 -0
  213. package/dist/vtc/networks/leave/0.1/payload.d.ts +14 -2
  214. package/dist/vtc/networks/leave/0.1/payload.d.ts.map +1 -1
  215. package/dist/vtc/networks/leave/0.1/payload.js +1 -1
  216. package/dist/vtc/networks/leave/0.1/payload.js.map +1 -1
  217. package/dist/vtc/networks/leave/0.2/payload.d.ts +664 -0
  218. package/dist/vtc/networks/leave/0.2/payload.d.ts.map +1 -0
  219. package/dist/vtc/networks/leave/0.2/payload.js +393 -0
  220. package/dist/vtc/networks/leave/0.2/payload.js.map +1 -0
  221. package/dist/vtc/networks/list/0.1/payload.d.ts +14 -2
  222. package/dist/vtc/networks/list/0.1/payload.d.ts.map +1 -1
  223. package/dist/vtc/networks/list/0.1/payload.js +1 -1
  224. package/dist/vtc/networks/list/0.1/payload.js.map +1 -1
  225. package/dist/vtc/networks/list/0.2/payload.d.ts +713 -0
  226. package/dist/vtc/networks/list/0.2/payload.d.ts.map +1 -0
  227. package/dist/vtc/networks/list/0.2/payload.js +417 -0
  228. package/dist/vtc/networks/list/0.2/payload.js.map +1 -0
  229. package/dist/vtc/networks/repudiate/0.1/payload.d.ts +14 -2
  230. package/dist/vtc/networks/repudiate/0.1/payload.d.ts.map +1 -1
  231. package/dist/vtc/networks/repudiate/0.1/payload.js +1 -1
  232. package/dist/vtc/networks/repudiate/0.1/payload.js.map +1 -1
  233. package/dist/vtc/networks/repudiate/0.2/payload.d.ts +680 -0
  234. package/dist/vtc/networks/repudiate/0.2/payload.d.ts.map +1 -0
  235. package/dist/vtc/networks/repudiate/0.2/payload.js +400 -0
  236. package/dist/vtc/networks/repudiate/0.2/payload.js.map +1 -0
  237. package/dist/vtc/networks/show/0.1/payload.d.ts +14 -2
  238. package/dist/vtc/networks/show/0.1/payload.d.ts.map +1 -1
  239. package/dist/vtc/networks/show/0.1/payload.js +1 -1
  240. package/dist/vtc/networks/show/0.1/payload.js.map +1 -1
  241. package/dist/vtc/networks/show/0.2/payload.d.ts +650 -0
  242. package/dist/vtc/networks/show/0.2/payload.d.ts.map +1 -0
  243. package/dist/vtc/networks/show/0.2/payload.js +388 -0
  244. package/dist/vtc/networks/show/0.2/payload.js.map +1 -0
  245. package/package.json +1 -1
  246. package/src/_extends.ts +5 -0
  247. package/src/_shared/components.ts +352 -1
  248. package/src/did-management/stats/set-resolution/0.1/payload.ts +312 -0
  249. package/src/index.ts +76 -0
  250. package/src/process-attestation/0.1/payload.ts +53 -9
  251. package/src/rooms/_shared/0.1/room.ts +1 -1
  252. package/src/rooms/_shared/0.2/room.ts +1 -1
  253. package/src/rooms/_shared/0.3/member-profile.ts +11 -0
  254. package/src/rooms/changed/0.1/payload.ts +115 -0
  255. package/src/rooms/keys/act/0.1/payload.ts +5 -5
  256. package/src/rooms/keys/act/0.10/payload.ts +15 -3
  257. package/src/rooms/keys/act/0.11/payload.ts +408 -0
  258. package/src/rooms/keys/act/0.12/payload.ts +396 -0
  259. package/src/rooms/keys/act/0.2/payload.ts +5 -5
  260. package/src/rooms/keys/act/0.3/payload.ts +5 -5
  261. package/src/rooms/keys/act/0.4/payload.ts +5 -5
  262. package/src/rooms/keys/act/0.5/payload.ts +5 -5
  263. package/src/rooms/keys/act/0.6/payload.ts +5 -5
  264. package/src/rooms/keys/act/0.7/payload.ts +5 -5
  265. package/src/rooms/keys/act/0.8/payload.ts +5 -5
  266. package/src/rooms/keys/act/0.9/payload.ts +5 -5
  267. package/src/rooms/keys/browse/0.1/payload.ts +5 -5
  268. package/src/rooms/keys/browse/0.2/payload.ts +5 -5
  269. package/src/rooms/keys/browse/0.3/payload.ts +15 -3
  270. package/src/rooms/keys/browse/0.4/payload.ts +730 -0
  271. package/src/rooms/keys/changed/0.1/payload.ts +138 -0
  272. package/src/rooms/keys/profile/read/0.1/payload.ts +28 -2
  273. package/src/rooms/keys/profile/write/0.1/payload.ts +28 -2
  274. package/src/rooms/keys/read/0.1/payload.ts +15 -3
  275. package/src/rooms/keys/read/0.2/payload.ts +855 -0
  276. package/src/rooms/keys/seal/0.1/payload.ts +5 -5
  277. package/src/rooms/keys/seal/0.2/payload.ts +14 -3
  278. package/src/rooms/keys/seal/0.3/payload.ts +282 -0
  279. package/src/rooms/keys/watch/0.1/payload.ts +452 -0
  280. package/src/rooms/records/get/0.1/payload.ts +5 -5
  281. package/src/rooms/records/get/0.2/payload.ts +14 -3
  282. package/src/rooms/records/get/0.3/payload.ts +684 -0
  283. package/src/rooms/records/list/0.1/payload.ts +5 -5
  284. package/src/rooms/records/list/0.2/payload.ts +5 -5
  285. package/src/rooms/records/list/0.3/payload.ts +5 -5
  286. package/src/rooms/records/list/0.4/payload.ts +5 -5
  287. package/src/rooms/records/list/0.5/payload.ts +14 -3
  288. package/src/rooms/records/list/0.6/payload.ts +673 -0
  289. package/src/rooms/records/put/0.1/payload.ts +5 -5
  290. package/src/rooms/records/put/0.2/payload.ts +5 -5
  291. package/src/rooms/records/put/0.3/payload.ts +5 -5
  292. package/src/rooms/records/put/0.4/payload.ts +95 -5
  293. package/src/rooms/records/put/0.5/payload.ts +1095 -0
  294. package/src/rooms/watch/0.1/payload.ts +340 -0
  295. package/src/trust-task-discovery/0.1/payload.ts +5 -5
  296. package/src/trust-task-discovery/0.2/payload.ts +5 -5
  297. package/src/trust-task-discovery/0.3/payload.ts +15 -3
  298. package/src/trust-task-discovery/0.4/payload.ts +387 -0
  299. package/src/vtc/_shared/0.7/network-membership.ts +17 -0
  300. package/src/vtc/boards/delete/0.1/payload.ts +293 -0
  301. package/src/vtc/boards/update/0.1/payload.ts +91 -2
  302. package/src/vtc/elections/list/0.5/payload.ts +2 -2
  303. package/src/vtc/elections/show/0.6/payload.ts +2 -2
  304. package/src/vtc/elections/tombstones/show/0.1/payload.ts +401 -0
  305. package/src/vtc/networks/deliver/0.1/payload.ts +254 -0
  306. package/src/vtc/networks/evidence/0.1/payload.ts +15 -3
  307. package/src/vtc/networks/evidence/0.2/payload.ts +290 -0
  308. package/src/vtc/networks/groups/register/0.1/payload.ts +15 -3
  309. package/src/vtc/networks/groups/register/0.2/payload.ts +446 -0
  310. package/src/vtc/networks/join/0.1/payload.ts +15 -3
  311. package/src/vtc/networks/join/0.2/payload.ts +492 -0
  312. package/src/vtc/networks/leave/0.1/payload.ts +15 -3
  313. package/src/vtc/networks/leave/0.2/payload.ts +434 -0
  314. package/src/vtc/networks/list/0.1/payload.ts +15 -3
  315. package/src/vtc/networks/list/0.2/payload.ts +463 -0
  316. package/src/vtc/networks/repudiate/0.1/payload.ts +15 -3
  317. package/src/vtc/networks/repudiate/0.2/payload.ts +445 -0
  318. package/src/vtc/networks/show/0.1/payload.ts +15 -3
  319. package/src/vtc/networks/show/0.2/payload.ts +425 -0
@@ -0,0 +1,596 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/records/list/0.6/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/rooms/records/list/0.6";
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/rooms/records/list/0.6#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/rooms/records/list/0.6",
35
+ "title": "Rooms Records List — payload",
36
+ "type": "object",
37
+ "additionalProperties": false,
38
+ "required": [
39
+ "roomId",
40
+ "presentation"
41
+ ],
42
+ "properties": {
43
+ "roomId": {
44
+ "type": "string",
45
+ "description": "The room's identifier."
46
+ },
47
+ "presentation": {
48
+ "$ref": "#/$defs/AuthorityPresentation",
49
+ "description": "Must confer the `read` action at this room's scope."
50
+ },
51
+ "prefix": {
52
+ "type": "string",
53
+ "maxLength": 512,
54
+ "description": "Return only records whose key starts with this. On an `attributed` or `private` room keys are opaque, so a prefix is only useful where the client assigned structure to them."
55
+ },
56
+ "sinceVersion": {
57
+ "type": "integer",
58
+ "minimum": 0,
59
+ "description": "Return only records changed after this version — the watermark that makes incremental sync possible. Tombstones are returned too: without them a puller learns of every create and update and never of a delete, so deleted records resurrect on the next full rebuild."
60
+ },
61
+ "cursor": {
62
+ "type": "string",
63
+ "maxLength": 4096,
64
+ "description": "An opaque continuation token from a previous response's `nextCursor`. A host MUST NOT accept a cursor it did not issue."
65
+ },
66
+ "limit": {
67
+ "type": "integer",
68
+ "minimum": 1,
69
+ "maximum": 500,
70
+ "description": "The most records to return; the host chooses a default and MAY return fewer."
71
+ },
72
+ "ext": {
73
+ "$ref": "#/$defs/Ext",
74
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
75
+ }
76
+ },
77
+ "$defs": {
78
+ "Response": {
79
+ "$anchor": "response",
80
+ "title": "Rooms Records List — response payload",
81
+ "description": "Success response to rooms/records/list. Type https://trusttasks.org/spec/rooms/records/list/0.6#response.",
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": [
85
+ "records"
86
+ ],
87
+ "properties": {
88
+ "records": {
89
+ "type": "array",
90
+ "items": {
91
+ "$ref": "#/$defs/RecordMetadataV3"
92
+ }
93
+ },
94
+ "nextCursor": {
95
+ "type": "string",
96
+ "maxLength": 4096,
97
+ "description": "Opaque continuation token, present when more records remain; pass it back as the request's `cursor`. Absent on the last page."
98
+ },
99
+ "dataCommitment": {
100
+ "$ref": "#/$defs/DataCommitment",
101
+ "description": "The room's data commitment at the moment this listing was taken. OPTIONAL because a host that does not maintain the tree cannot honestly assert one, and a fabricated root is worse than an absent one — its absence says 'this host offers no completeness guarantee', which is true and useful. Present, it is signed along with the rest of the response, which is what makes it evidence rather than a claim."
102
+ },
103
+ "recordCount": {
104
+ "$ref": "#/$defs/RecordCount",
105
+ "description": "How many records the room holds, as of `dataCommitment`. Present only beside `dataCommitment`, and computed from the same snapshot: it describes the state that root was taken over, and a head that does not belong to that root is worse than none. A reader holding this listing **read to the end** with no `prefix` and no `sinceVersion` can compare its length against this; against a page, a filtered listing or a watermarked one it is a discrepancy the reader manufactured."
106
+ },
107
+ "headVersion": {
108
+ "$ref": "#/$defs/HeadVersion",
109
+ "description": "The room's highest assigned record version, as of `dataCommitment`. Present only beside `dataCommitment`, and computed from the same snapshot: it describes the state that root was taken over, and a head that does not belong to that root is worse than none. Without it two roots are not comparable at all: a host shown to have served two different ones answers that the room moved, and nothing contradicts it."
110
+ },
111
+ "lastPrune": {
112
+ "$ref": "#/$defs/RecordPrune",
113
+ "description": "The room's latest record prune (`rooms/records/prune`), on every page of every listing — filtered, incremental or not — whenever the room's records have ever been pruned; absent when they never have. A reader whose copy of the room was synchronised to a version below `lastPrune.version` MUST NOT merge this page into it as though it were complete: it rebuilds from a listing with no `sinceVersion` and drops every record that listing no longer holds. A prune removes tombstones too, so this is the only way an incremental reader learns of it."
114
+ },
115
+ "ext": {
116
+ "$ref": "#/$defs/Ext"
117
+ }
118
+ },
119
+ "dependentRequired": {
120
+ "recordCount": [
121
+ "dataCommitment"
122
+ ],
123
+ "headVersion": [
124
+ "dataCommitment"
125
+ ]
126
+ }
127
+ },
128
+ "Ext": {
129
+ "title": "Ext",
130
+ "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.",
131
+ "type": "object",
132
+ "minProperties": 1,
133
+ "additionalProperties": true,
134
+ "propertyNames": {
135
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
136
+ }
137
+ },
138
+ "RecordPrune": {
139
+ "title": "RecordPrune",
140
+ "type": "object",
141
+ "additionalProperties": false,
142
+ "required": [
143
+ "version",
144
+ "prunedAt",
145
+ "removed"
146
+ ],
147
+ "description": "The mark a prune leaves: **that** records were removed, when, and how many — never which, and never anything they said.\n\nA prune removes records outright, tombstones included, so the room's record tree loses leaves and an incremental reader has nothing left to learn the removal from. This is what it learns from instead. A host keeps the latest one per room and serves it with every listing that can carry it (`rooms/records/list` 0.3, as `lastPrune`); a reader whose own copy of the room was synchronised to a version below `version` MUST rebuild that copy from a full listing — no `sinceVersion` — and drop every record the full listing no longer holds. Without that, a record the room removed lives on in every cache that synchronised before the prune, and a record retracted while the reader was away comes back as current.\n\n**What a host keeps and what it does not.** A host keeps this marker, and in its audit trail the prune's `reason`, its requester where the tier discloses one, and the retention it was made under. It MUST NOT keep anything a pruned record said — body, ciphertext, cleartext, title, description, file or blob — and SHOULD NOT keep pruned records' keys: the count is the audit, and a list of keys on an `open` room, where keys may be descriptive, is content by another name.",
148
+ "properties": {
149
+ "version": {
150
+ "type": "integer",
151
+ "minimum": 1,
152
+ "description": "The version the prune took from the room's counter, as a put or a curation would. No record carries it; it is what moves `HeadVersion` past the removal, so that a root taken before and a root taken after are never labelled with one version."
153
+ },
154
+ "prunedAt": {
155
+ "type": "string",
156
+ "format": "date-time",
157
+ "description": "When the host performed it."
158
+ },
159
+ "removed": {
160
+ "type": "integer",
161
+ "minimum": 1,
162
+ "description": "How many records were removed, tombstones included. A prune that removed nothing leaves no mark."
163
+ }
164
+ }
165
+ },
166
+ "HeadVersion": {
167
+ "title": "HeadVersion",
168
+ "type": "integer",
169
+ "minimum": 0,
170
+ "description": "The highest version among the records `DataCommitment` covers. `0` for a room that holds none.\n\n**Derived from the same set as the root, and not read from the room's own counter.** The two agree for any host that has never erased a record — versions are assigned strictly increasing and a retraction keeps its tombstone — but they are not interchangeable, because a root and a counter are *two reads*, and two reads are not a snapshot. A write landing between them yields a pair that is individually correct and jointly false: two members holding roots taken over different trees, labelled with one version. That reads as equivocation and is not, and a **false accusation discredits the mechanism rather than the host** — the worst outcome available here. Taken from the committed set, the version cannot disagree with the root it labels, whatever else is happening to the room.\n\n**A prune is the one mutation that removes leaves, and it takes a version too.** A host that **erases** records — as distinct from retracting them, which leaves a tombstone in the tree — moves the root, and taken from the records alone this value need not move with it: it would stay put, or even fall if the erased record held the highest version, and two members straddling the erasure would see one version over two roots, which reads as equivocation and is not. So on a room whose records have been pruned (`rooms/records/prune`), this value is the higher of the highest version among the records the tree covers and the `version` of the room's latest `RecordPrune`, computed from the same snapshot as the root. A prune takes the next version from the room's counter exactly as a put or a curation does, so the pair stays a snapshot: a root and a head that agree before a prune and a root and a head that agree after it, never one head over two roots. A room that has never been pruned is unaffected.\n\n**This is what makes two roots comparable at all**, and without it the comparison this family is built on cannot be performed. A room moves: every put, curate and retraction assigns a new version, so two roots taken at two moments differ legitimately and a reader learns nothing from the difference. Shown two different roots, a host that equivocated and a host that was merely written to are indistinguishable — the first can always answer *the room moved between your reads*, and nothing contradicts it.\n\nA version is assigned by exactly the mutations that change the tree — every put, curate and retraction takes the next one — so the highest of them names the **state** the root describes. Two roots carrying the same `headVersion` and differing is a host caught: there is no write to attribute the difference to. Two roots carrying different ones are simply two moments, and a reader should draw nothing from them.\n\nA host can lie about this number too, and it is then lying about the counter it also uses for optimistic concurrency (`expectedVersion`) and for incremental sync (`sinceVersion`) — so a member holding a signed acknowledgement of a write at version `V` contradicts any head below `V` directly.\n\n**Not a timestamp.** A time is host-asserted, unverifiable and useless for this: two roots a second apart are not evidence of anything, while two roots at one version are."
171
+ },
172
+ "RecordCount": {
173
+ "title": "RecordCount",
174
+ "type": "integer",
175
+ "minimum": 0,
176
+ "description": "How many records the room held when `DataCommitment` was computed — the number of leaves in that tree, tombstones included, since a tombstone is a record.\n\n**Why a root needs this.** Certificate Transparency's signed tree head is a root *and a tree size*; this family shipped the root alone, and the half that was dropped is the half that makes a listing checkable. A reader holding a **complete, unfiltered** listing cannot recompute the root — a leaf commits to a whole record and a listing returns a projection without the body — but it can count. A host that omits a record from a listing while committing to a tree that holds it now contradicts itself in the same response, with no second party and no anchor involved.\n\nA host can of course understate both together. That is the point rather than a hole: the omission stops being silence and becomes a **specific claim about how many records the room holds**, which any other member's view, or any writer's signed put acknowledgement, contradicts. Making an omission attributable is the whole of what this machinery buys; it never claimed to make one impossible.\n\n**It counts the room, never the page.** The same rule `DataCommitment` states, and the same trap: a count scoped to what was returned is one a host satisfies by construction. So this is only comparable against a listing read to the end with **no** `prefix` and **no** `sinceVersion` — a filtered listing legitimately holds fewer, and a reader that compares one against this has found a discrepancy it created itself."
177
+ },
178
+ "DataCommitment": {
179
+ "title": "DataCommitment",
180
+ "$ref": "#/$defs/DigestMultibase",
181
+ "description": "The root of the room's record tree — a host's commitment to *which records the room holds*, as distinct from what any one of them says.\n\nA room's records are already signed and room-bound, so a host cannot forge, alter or relocate one. What it can do for free is stay silent: a listing that omits a record is indistinguishable from a room that never held it. This value is what makes that omission detectable, so it is only worth anything when the reader can compare it against a copy the host did not choose for them — one it gave another member, one it gave the same member earlier, or the witnessed anchor. A commitment read once, in isolation, proves nothing.\n\n**A root on its own is not comparable, and an earlier revision of this description said it was.** It claimed a host showing two members two different roots had been caught, which is false while a room can move between two reads: the host answers *there was a write*, and nothing contradicts it. Comparison needs the state each root describes, which is what `HeadVersion` names — and `RecordCount` is the other half of the same omission, since Certificate Transparency's signed tree head is a root *and a size* and this family shipped only the root. A reader that receives a `dataCommitment` **without** them can use it against a witnessed anchor, where the epoch pins the state, and **MUST NOT** compare it against another root.\n\n**The construction is normative**, because two hosts that compute different roots over the same room make every comparison meaningless:\n 1. Take every record the room holds — including tombstones, which are records — and order them by `key` using unsigned byte order.\n 2. Leaf: `SHA-256(0x00 || JCS(record))`, where the record is a `CommittedRecord` — that definition fixes the members exactly, and this step used to name a *projection* instead, which two implementations could read two ways — JCS is its RFC 8785 canonicalization, and `0x00` is RFC 6962's leaf-domain prefix.\n 3. Internal node: `SHA-256(0x01 || left || right)`.\n 4. A level with an odd number of nodes promotes the last one unchanged. It MUST NOT be duplicated: duplicating makes a tree of n leaves collide with one of n+1 whose last is repeated, so two different rooms commit to the same root.\n 5. A room holding no records commits to `SHA-256(\"\")`, a distinguished value rather than zeroes — a root of zeroes is what an uninitialised buffer looks like, and an empty room is a real state a host must be able to commit to honestly.\n\nThe leaf covers the whole record rather than its body, and that is deliberate: a host that could flip `status` from active to retracted, move `pinned`, or rewrite `author` on an `attributed` room would rewrite what the room means without touching a byte of ciphertext. The **plaintext is never involved** — on the sealed tiers the host holds ciphertext and commits to exactly what it stores.\n\nThe commitment is over the **whole room**, never over the page being returned. A page-scoped root is one a host satisfies by construction and could never fail.\n\nProving that a *particular* record sits under this root is a separate question, answered by `RecordTrace` on a single-record read. A commitment catches a host that equivocates; a trace binds one record to what the host committed to. Neither is the other, and a reader wanting completeness needs both plus a root it did not get from the host it is checking."
182
+ },
183
+ "DigestMultibase": {
184
+ "title": "DigestMultibase",
185
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
186
+ "type": "string",
187
+ "minLength": 16,
188
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
189
+ "examples": [
190
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
191
+ ]
192
+ },
193
+ "RecordMetadataV3": {
194
+ "title": "RecordMetadataV3",
195
+ "type": "object",
196
+ "additionalProperties": false,
197
+ "required": [
198
+ "key",
199
+ "version",
200
+ "updatedAt"
201
+ ],
202
+ "description": "What `rooms/records/list/0.6` returns, and `rooms/keys/browse/0.4` passes through: `RecordMetadataV2` plus `kind` on an `open` room, `createdAt` and `bodyStoredAt` on every tier and `createdBy` on `open` and `attributed`. A separate definition, not a change to `RecordMetadataV2`, so that `rooms/records/list/0.2` to `0.5` keep the exact shape they published. Never the body.",
203
+ "properties": {
204
+ "key": {
205
+ "type": "string",
206
+ "description": "The record's key within the room. On `attributed` and `private` rooms this MUST be opaque — a random identifier, never a descriptive slug. A key reading `decision/acquire-northwind` defeats the encryption sitting beside it; structured naming belongs inside the sealed body."
207
+ },
208
+ "version": {
209
+ "type": "integer",
210
+ "minimum": 1,
211
+ "description": "Server-assigned, monotonic per room."
212
+ },
213
+ "epoch": {
214
+ "type": "integer",
215
+ "minimum": 1,
216
+ "description": "The epoch the record was sealed under. Absent on an `open` room."
217
+ },
218
+ "status": {
219
+ "type": "string",
220
+ "enum": [
221
+ "active",
222
+ "deprecated",
223
+ "retracted"
224
+ ],
225
+ "description": "Curation state. `retracted` is a tombstone: the body is gone, the key and version remain so incremental sync converges and the audit chain stays intact."
226
+ },
227
+ "updatedAt": {
228
+ "type": "string",
229
+ "format": "date-time"
230
+ },
231
+ "createdAt": {
232
+ "type": "string",
233
+ "format": "date-time",
234
+ "description": "When the host stored the record's first version: RFC 3339, set by the host, never by a writer. Host metadata, not body, so it is served on every tier. A host MUST set it when it stores a record's first version and MUST keep it unchanged for as long as it holds the record — across every later version, every curation, retraction included, and a member's withdrawal — so that it says when the room received the record, which `updatedAt` cannot once the record has been edited or curated. A host that stored a record before it kept `createdAt` MUST omit it for that record rather than supply a guess such as the earliest `updatedAt` it still holds; a reader then falls back to `updatedAt` (`SealedRecordBody`, *When it was written*). Readers order messages and judge `writtenAt` by it."
235
+ },
236
+ "createdBy": {
237
+ "type": "string",
238
+ "pattern": "^did:",
239
+ "maxLength": 2048,
240
+ "description": "The author of the record's first version, as the host recorded it when it stored that version: the DID it authenticated for the write on an `open` room, and on an `attributed` one the author it records for every write. Set by the host, never by a writer, and kept unchanged for as long as it holds the record — across every later version, every curation and a retraction — like `createdAt`. Served on `open` and `attributed` rooms only: a `private` room's host records no author, and MUST NOT serve this. Omitted for a record stored before the host kept it, rather than guessed. Readers use it to apply the rules about a rewrite by another member to a record they see for the first time (`SealedRecordBody`, *The record's original author*)."
241
+ },
242
+ "bodyStoredAt": {
243
+ "type": "string",
244
+ "format": "date-time",
245
+ "description": "When the host stored the body the record's current version carries: the time of the `rooms/records/put` that wrote that body. Set by the host, never by a writer. A curation (`rooms/records/curate`), and anything else that moves the version without writing a new author-signed body, leaves it unchanged; for the first version it equals `createdAt`. The host knows which task wrote each version, so it is served on every tier, `private` included, and says nothing about the body. Readers verify the current version's proof against the author's DID document as it stood at this time (`SealedRecordBody`, *Which DID document*). Omitted for a version stored before the host kept it, rather than guessed."
246
+ },
247
+ "title": {
248
+ "type": "string",
249
+ "maxLength": 512,
250
+ "description": "Present only on an `open` room; sealed with the body otherwise."
251
+ },
252
+ "description": {
253
+ "type": "string",
254
+ "maxLength": 2048,
255
+ "description": "Present only on an `open` room; sealed with the body otherwise."
256
+ },
257
+ "author": {
258
+ "type": "string",
259
+ "description": "The member who wrote it. Present on `open` and `attributed`; on `private` the author is inside the sealed body, where only members can read it."
260
+ },
261
+ "blobs": {
262
+ "type": "array",
263
+ "minItems": 1,
264
+ "maxItems": 1,
265
+ "uniqueItems": true,
266
+ "items": {
267
+ "$ref": "#/$defs/BlobRef"
268
+ },
269
+ "description": "The stored blobs this record names, as rooms/records/put/0.2 wrote them. Absent when it names none, when it is retracted, and on records written by put 0.1. Cleartext on every tier, as on the write, so a listing discloses which records carry files, never anything about the files beyond the blobs' sizes."
270
+ },
271
+ "kind": {
272
+ "$ref": "#/$defs/RecordKind",
273
+ "description": "The record's `kind` as its current version's `cleartext` carries it. Present only on an `open` room, where the host reads the body anyway; on `attributed` and `private` rooms `kind` is sealed with the body and a host MUST NOT serve it, nor anything from which it could be inferred. Absent on a record that carries none — which a reader reads as `note` — and on a tombstone, which keeps nothing of its body."
274
+ }
275
+ }
276
+ },
277
+ "RecordKind": {
278
+ "title": "RecordKind",
279
+ "type": "string",
280
+ "minLength": 1,
281
+ "maxLength": 64,
282
+ "pattern": "^[a-z][A-Za-z0-9]*$",
283
+ "description": "What a reader shows a record as. Defined values: `note` — something kept in the room's library, titled or not, its `body` markdown; `message` — a turn in the room's conversation, its words in `body` as plain text; `reaction` — a short response to another record, its value in `body` (`SealedRecordBody`, *Reactions*). An open set, not an enumeration, so a new kind needs no new version of any schema: a reader MUST present a record whose kind it does not know as a note, and MUST NOT refuse a record for its kind. Absent means `note`, though a reader that keeps a conversation apart MAY show an untitled record without a kind as a message (*Untitled records*). A new version of a record MUST keep its kind. lowerCamelCase, at most 64 characters."
284
+ },
285
+ "BlobRef": {
286
+ "title": "BlobRef",
287
+ "description": "The name of one blob: the digest of its BlobManifest, taken over the manifest's RFC 8785 (JCS) canonicalization. sha2-256 is RECOMMENDED and MUST be implemented. Content addressing over ciphertext, never plaintext, so a BlobRef says nothing about what the file contains, and two uploads of one file have different BlobRefs (a fresh `fileId` gives a different key, and so different ciphertext). Rooms cannot be correlated by the files they share. Compared as decoded multihash bytes, never as encoded strings. A BlobRef is defined over the manifest's JSON, as this schema states it and RFC 8785 canonicalizes it, never over any binding's generated type: two bindings that model the manifest as distinct types still compute the same BlobRef from the same JSON.",
288
+ "$ref": "#/$defs/DigestMultibase"
289
+ },
290
+ "AuthorityPresentation": {
291
+ "title": "AuthorityPresentation",
292
+ "type": "object",
293
+ "additionalProperties": false,
294
+ "required": [
295
+ "membership",
296
+ "authority"
297
+ ],
298
+ "description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.",
299
+ "properties": {
300
+ "membership": {
301
+ "type": "string",
302
+ "description": "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile."
303
+ },
304
+ "authority": {
305
+ "type": "array",
306
+ "minItems": 1,
307
+ "maxItems": 8,
308
+ "items": {
309
+ "type": "string"
310
+ },
311
+ "description": "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent."
312
+ },
313
+ "subjectBinding": {
314
+ "type": "string",
315
+ "description": "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this."
316
+ }
317
+ }
318
+ }
319
+ }
320
+ };
321
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
322
+ export const RESPONSE_PAYLOAD_SCHEMA = {
323
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
324
+ "$ref": "#/$defs/Response",
325
+ "$defs": {
326
+ "Response": {
327
+ "$anchor": "response",
328
+ "title": "Rooms Records List — response payload",
329
+ "description": "Success response to rooms/records/list. Type https://trusttasks.org/spec/rooms/records/list/0.6#response.",
330
+ "type": "object",
331
+ "additionalProperties": false,
332
+ "required": [
333
+ "records"
334
+ ],
335
+ "properties": {
336
+ "records": {
337
+ "type": "array",
338
+ "items": {
339
+ "$ref": "#/$defs/RecordMetadataV3"
340
+ }
341
+ },
342
+ "nextCursor": {
343
+ "type": "string",
344
+ "maxLength": 4096,
345
+ "description": "Opaque continuation token, present when more records remain; pass it back as the request's `cursor`. Absent on the last page."
346
+ },
347
+ "dataCommitment": {
348
+ "$ref": "#/$defs/DataCommitment",
349
+ "description": "The room's data commitment at the moment this listing was taken. OPTIONAL because a host that does not maintain the tree cannot honestly assert one, and a fabricated root is worse than an absent one — its absence says 'this host offers no completeness guarantee', which is true and useful. Present, it is signed along with the rest of the response, which is what makes it evidence rather than a claim."
350
+ },
351
+ "recordCount": {
352
+ "$ref": "#/$defs/RecordCount",
353
+ "description": "How many records the room holds, as of `dataCommitment`. Present only beside `dataCommitment`, and computed from the same snapshot: it describes the state that root was taken over, and a head that does not belong to that root is worse than none. A reader holding this listing **read to the end** with no `prefix` and no `sinceVersion` can compare its length against this; against a page, a filtered listing or a watermarked one it is a discrepancy the reader manufactured."
354
+ },
355
+ "headVersion": {
356
+ "$ref": "#/$defs/HeadVersion",
357
+ "description": "The room's highest assigned record version, as of `dataCommitment`. Present only beside `dataCommitment`, and computed from the same snapshot: it describes the state that root was taken over, and a head that does not belong to that root is worse than none. Without it two roots are not comparable at all: a host shown to have served two different ones answers that the room moved, and nothing contradicts it."
358
+ },
359
+ "lastPrune": {
360
+ "$ref": "#/$defs/RecordPrune",
361
+ "description": "The room's latest record prune (`rooms/records/prune`), on every page of every listing — filtered, incremental or not — whenever the room's records have ever been pruned; absent when they never have. A reader whose copy of the room was synchronised to a version below `lastPrune.version` MUST NOT merge this page into it as though it were complete: it rebuilds from a listing with no `sinceVersion` and drops every record that listing no longer holds. A prune removes tombstones too, so this is the only way an incremental reader learns of it."
362
+ },
363
+ "ext": {
364
+ "$ref": "#/$defs/Ext"
365
+ }
366
+ },
367
+ "dependentRequired": {
368
+ "recordCount": [
369
+ "dataCommitment"
370
+ ],
371
+ "headVersion": [
372
+ "dataCommitment"
373
+ ]
374
+ }
375
+ },
376
+ "Ext": {
377
+ "title": "Ext",
378
+ "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.",
379
+ "type": "object",
380
+ "minProperties": 1,
381
+ "additionalProperties": true,
382
+ "propertyNames": {
383
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
384
+ }
385
+ },
386
+ "RecordPrune": {
387
+ "title": "RecordPrune",
388
+ "type": "object",
389
+ "additionalProperties": false,
390
+ "required": [
391
+ "version",
392
+ "prunedAt",
393
+ "removed"
394
+ ],
395
+ "description": "The mark a prune leaves: **that** records were removed, when, and how many — never which, and never anything they said.\n\nA prune removes records outright, tombstones included, so the room's record tree loses leaves and an incremental reader has nothing left to learn the removal from. This is what it learns from instead. A host keeps the latest one per room and serves it with every listing that can carry it (`rooms/records/list` 0.3, as `lastPrune`); a reader whose own copy of the room was synchronised to a version below `version` MUST rebuild that copy from a full listing — no `sinceVersion` — and drop every record the full listing no longer holds. Without that, a record the room removed lives on in every cache that synchronised before the prune, and a record retracted while the reader was away comes back as current.\n\n**What a host keeps and what it does not.** A host keeps this marker, and in its audit trail the prune's `reason`, its requester where the tier discloses one, and the retention it was made under. It MUST NOT keep anything a pruned record said — body, ciphertext, cleartext, title, description, file or blob — and SHOULD NOT keep pruned records' keys: the count is the audit, and a list of keys on an `open` room, where keys may be descriptive, is content by another name.",
396
+ "properties": {
397
+ "version": {
398
+ "type": "integer",
399
+ "minimum": 1,
400
+ "description": "The version the prune took from the room's counter, as a put or a curation would. No record carries it; it is what moves `HeadVersion` past the removal, so that a root taken before and a root taken after are never labelled with one version."
401
+ },
402
+ "prunedAt": {
403
+ "type": "string",
404
+ "format": "date-time",
405
+ "description": "When the host performed it."
406
+ },
407
+ "removed": {
408
+ "type": "integer",
409
+ "minimum": 1,
410
+ "description": "How many records were removed, tombstones included. A prune that removed nothing leaves no mark."
411
+ }
412
+ }
413
+ },
414
+ "HeadVersion": {
415
+ "title": "HeadVersion",
416
+ "type": "integer",
417
+ "minimum": 0,
418
+ "description": "The highest version among the records `DataCommitment` covers. `0` for a room that holds none.\n\n**Derived from the same set as the root, and not read from the room's own counter.** The two agree for any host that has never erased a record — versions are assigned strictly increasing and a retraction keeps its tombstone — but they are not interchangeable, because a root and a counter are *two reads*, and two reads are not a snapshot. A write landing between them yields a pair that is individually correct and jointly false: two members holding roots taken over different trees, labelled with one version. That reads as equivocation and is not, and a **false accusation discredits the mechanism rather than the host** — the worst outcome available here. Taken from the committed set, the version cannot disagree with the root it labels, whatever else is happening to the room.\n\n**A prune is the one mutation that removes leaves, and it takes a version too.** A host that **erases** records — as distinct from retracting them, which leaves a tombstone in the tree — moves the root, and taken from the records alone this value need not move with it: it would stay put, or even fall if the erased record held the highest version, and two members straddling the erasure would see one version over two roots, which reads as equivocation and is not. So on a room whose records have been pruned (`rooms/records/prune`), this value is the higher of the highest version among the records the tree covers and the `version` of the room's latest `RecordPrune`, computed from the same snapshot as the root. A prune takes the next version from the room's counter exactly as a put or a curation does, so the pair stays a snapshot: a root and a head that agree before a prune and a root and a head that agree after it, never one head over two roots. A room that has never been pruned is unaffected.\n\n**This is what makes two roots comparable at all**, and without it the comparison this family is built on cannot be performed. A room moves: every put, curate and retraction assigns a new version, so two roots taken at two moments differ legitimately and a reader learns nothing from the difference. Shown two different roots, a host that equivocated and a host that was merely written to are indistinguishable — the first can always answer *the room moved between your reads*, and nothing contradicts it.\n\nA version is assigned by exactly the mutations that change the tree — every put, curate and retraction takes the next one — so the highest of them names the **state** the root describes. Two roots carrying the same `headVersion` and differing is a host caught: there is no write to attribute the difference to. Two roots carrying different ones are simply two moments, and a reader should draw nothing from them.\n\nA host can lie about this number too, and it is then lying about the counter it also uses for optimistic concurrency (`expectedVersion`) and for incremental sync (`sinceVersion`) — so a member holding a signed acknowledgement of a write at version `V` contradicts any head below `V` directly.\n\n**Not a timestamp.** A time is host-asserted, unverifiable and useless for this: two roots a second apart are not evidence of anything, while two roots at one version are."
419
+ },
420
+ "RecordCount": {
421
+ "title": "RecordCount",
422
+ "type": "integer",
423
+ "minimum": 0,
424
+ "description": "How many records the room held when `DataCommitment` was computed — the number of leaves in that tree, tombstones included, since a tombstone is a record.\n\n**Why a root needs this.** Certificate Transparency's signed tree head is a root *and a tree size*; this family shipped the root alone, and the half that was dropped is the half that makes a listing checkable. A reader holding a **complete, unfiltered** listing cannot recompute the root — a leaf commits to a whole record and a listing returns a projection without the body — but it can count. A host that omits a record from a listing while committing to a tree that holds it now contradicts itself in the same response, with no second party and no anchor involved.\n\nA host can of course understate both together. That is the point rather than a hole: the omission stops being silence and becomes a **specific claim about how many records the room holds**, which any other member's view, or any writer's signed put acknowledgement, contradicts. Making an omission attributable is the whole of what this machinery buys; it never claimed to make one impossible.\n\n**It counts the room, never the page.** The same rule `DataCommitment` states, and the same trap: a count scoped to what was returned is one a host satisfies by construction. So this is only comparable against a listing read to the end with **no** `prefix` and **no** `sinceVersion` — a filtered listing legitimately holds fewer, and a reader that compares one against this has found a discrepancy it created itself."
425
+ },
426
+ "DataCommitment": {
427
+ "title": "DataCommitment",
428
+ "$ref": "#/$defs/DigestMultibase",
429
+ "description": "The root of the room's record tree — a host's commitment to *which records the room holds*, as distinct from what any one of them says.\n\nA room's records are already signed and room-bound, so a host cannot forge, alter or relocate one. What it can do for free is stay silent: a listing that omits a record is indistinguishable from a room that never held it. This value is what makes that omission detectable, so it is only worth anything when the reader can compare it against a copy the host did not choose for them — one it gave another member, one it gave the same member earlier, or the witnessed anchor. A commitment read once, in isolation, proves nothing.\n\n**A root on its own is not comparable, and an earlier revision of this description said it was.** It claimed a host showing two members two different roots had been caught, which is false while a room can move between two reads: the host answers *there was a write*, and nothing contradicts it. Comparison needs the state each root describes, which is what `HeadVersion` names — and `RecordCount` is the other half of the same omission, since Certificate Transparency's signed tree head is a root *and a size* and this family shipped only the root. A reader that receives a `dataCommitment` **without** them can use it against a witnessed anchor, where the epoch pins the state, and **MUST NOT** compare it against another root.\n\n**The construction is normative**, because two hosts that compute different roots over the same room make every comparison meaningless:\n 1. Take every record the room holds — including tombstones, which are records — and order them by `key` using unsigned byte order.\n 2. Leaf: `SHA-256(0x00 || JCS(record))`, where the record is a `CommittedRecord` — that definition fixes the members exactly, and this step used to name a *projection* instead, which two implementations could read two ways — JCS is its RFC 8785 canonicalization, and `0x00` is RFC 6962's leaf-domain prefix.\n 3. Internal node: `SHA-256(0x01 || left || right)`.\n 4. A level with an odd number of nodes promotes the last one unchanged. It MUST NOT be duplicated: duplicating makes a tree of n leaves collide with one of n+1 whose last is repeated, so two different rooms commit to the same root.\n 5. A room holding no records commits to `SHA-256(\"\")`, a distinguished value rather than zeroes — a root of zeroes is what an uninitialised buffer looks like, and an empty room is a real state a host must be able to commit to honestly.\n\nThe leaf covers the whole record rather than its body, and that is deliberate: a host that could flip `status` from active to retracted, move `pinned`, or rewrite `author` on an `attributed` room would rewrite what the room means without touching a byte of ciphertext. The **plaintext is never involved** — on the sealed tiers the host holds ciphertext and commits to exactly what it stores.\n\nThe commitment is over the **whole room**, never over the page being returned. A page-scoped root is one a host satisfies by construction and could never fail.\n\nProving that a *particular* record sits under this root is a separate question, answered by `RecordTrace` on a single-record read. A commitment catches a host that equivocates; a trace binds one record to what the host committed to. Neither is the other, and a reader wanting completeness needs both plus a root it did not get from the host it is checking."
430
+ },
431
+ "DigestMultibase": {
432
+ "title": "DigestMultibase",
433
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
434
+ "type": "string",
435
+ "minLength": 16,
436
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
437
+ "examples": [
438
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
439
+ ]
440
+ },
441
+ "RecordMetadataV3": {
442
+ "title": "RecordMetadataV3",
443
+ "type": "object",
444
+ "additionalProperties": false,
445
+ "required": [
446
+ "key",
447
+ "version",
448
+ "updatedAt"
449
+ ],
450
+ "description": "What `rooms/records/list/0.6` returns, and `rooms/keys/browse/0.4` passes through: `RecordMetadataV2` plus `kind` on an `open` room, `createdAt` and `bodyStoredAt` on every tier and `createdBy` on `open` and `attributed`. A separate definition, not a change to `RecordMetadataV2`, so that `rooms/records/list/0.2` to `0.5` keep the exact shape they published. Never the body.",
451
+ "properties": {
452
+ "key": {
453
+ "type": "string",
454
+ "description": "The record's key within the room. On `attributed` and `private` rooms this MUST be opaque — a random identifier, never a descriptive slug. A key reading `decision/acquire-northwind` defeats the encryption sitting beside it; structured naming belongs inside the sealed body."
455
+ },
456
+ "version": {
457
+ "type": "integer",
458
+ "minimum": 1,
459
+ "description": "Server-assigned, monotonic per room."
460
+ },
461
+ "epoch": {
462
+ "type": "integer",
463
+ "minimum": 1,
464
+ "description": "The epoch the record was sealed under. Absent on an `open` room."
465
+ },
466
+ "status": {
467
+ "type": "string",
468
+ "enum": [
469
+ "active",
470
+ "deprecated",
471
+ "retracted"
472
+ ],
473
+ "description": "Curation state. `retracted` is a tombstone: the body is gone, the key and version remain so incremental sync converges and the audit chain stays intact."
474
+ },
475
+ "updatedAt": {
476
+ "type": "string",
477
+ "format": "date-time"
478
+ },
479
+ "createdAt": {
480
+ "type": "string",
481
+ "format": "date-time",
482
+ "description": "When the host stored the record's first version: RFC 3339, set by the host, never by a writer. Host metadata, not body, so it is served on every tier. A host MUST set it when it stores a record's first version and MUST keep it unchanged for as long as it holds the record — across every later version, every curation, retraction included, and a member's withdrawal — so that it says when the room received the record, which `updatedAt` cannot once the record has been edited or curated. A host that stored a record before it kept `createdAt` MUST omit it for that record rather than supply a guess such as the earliest `updatedAt` it still holds; a reader then falls back to `updatedAt` (`SealedRecordBody`, *When it was written*). Readers order messages and judge `writtenAt` by it."
483
+ },
484
+ "createdBy": {
485
+ "type": "string",
486
+ "pattern": "^did:",
487
+ "maxLength": 2048,
488
+ "description": "The author of the record's first version, as the host recorded it when it stored that version: the DID it authenticated for the write on an `open` room, and on an `attributed` one the author it records for every write. Set by the host, never by a writer, and kept unchanged for as long as it holds the record — across every later version, every curation and a retraction — like `createdAt`. Served on `open` and `attributed` rooms only: a `private` room's host records no author, and MUST NOT serve this. Omitted for a record stored before the host kept it, rather than guessed. Readers use it to apply the rules about a rewrite by another member to a record they see for the first time (`SealedRecordBody`, *The record's original author*)."
489
+ },
490
+ "bodyStoredAt": {
491
+ "type": "string",
492
+ "format": "date-time",
493
+ "description": "When the host stored the body the record's current version carries: the time of the `rooms/records/put` that wrote that body. Set by the host, never by a writer. A curation (`rooms/records/curate`), and anything else that moves the version without writing a new author-signed body, leaves it unchanged; for the first version it equals `createdAt`. The host knows which task wrote each version, so it is served on every tier, `private` included, and says nothing about the body. Readers verify the current version's proof against the author's DID document as it stood at this time (`SealedRecordBody`, *Which DID document*). Omitted for a version stored before the host kept it, rather than guessed."
494
+ },
495
+ "title": {
496
+ "type": "string",
497
+ "maxLength": 512,
498
+ "description": "Present only on an `open` room; sealed with the body otherwise."
499
+ },
500
+ "description": {
501
+ "type": "string",
502
+ "maxLength": 2048,
503
+ "description": "Present only on an `open` room; sealed with the body otherwise."
504
+ },
505
+ "author": {
506
+ "type": "string",
507
+ "description": "The member who wrote it. Present on `open` and `attributed`; on `private` the author is inside the sealed body, where only members can read it."
508
+ },
509
+ "blobs": {
510
+ "type": "array",
511
+ "minItems": 1,
512
+ "maxItems": 1,
513
+ "uniqueItems": true,
514
+ "items": {
515
+ "$ref": "#/$defs/BlobRef"
516
+ },
517
+ "description": "The stored blobs this record names, as rooms/records/put/0.2 wrote them. Absent when it names none, when it is retracted, and on records written by put 0.1. Cleartext on every tier, as on the write, so a listing discloses which records carry files, never anything about the files beyond the blobs' sizes."
518
+ },
519
+ "kind": {
520
+ "$ref": "#/$defs/RecordKind",
521
+ "description": "The record's `kind` as its current version's `cleartext` carries it. Present only on an `open` room, where the host reads the body anyway; on `attributed` and `private` rooms `kind` is sealed with the body and a host MUST NOT serve it, nor anything from which it could be inferred. Absent on a record that carries none — which a reader reads as `note` — and on a tombstone, which keeps nothing of its body."
522
+ }
523
+ }
524
+ },
525
+ "RecordKind": {
526
+ "title": "RecordKind",
527
+ "type": "string",
528
+ "minLength": 1,
529
+ "maxLength": 64,
530
+ "pattern": "^[a-z][A-Za-z0-9]*$",
531
+ "description": "What a reader shows a record as. Defined values: `note` — something kept in the room's library, titled or not, its `body` markdown; `message` — a turn in the room's conversation, its words in `body` as plain text; `reaction` — a short response to another record, its value in `body` (`SealedRecordBody`, *Reactions*). An open set, not an enumeration, so a new kind needs no new version of any schema: a reader MUST present a record whose kind it does not know as a note, and MUST NOT refuse a record for its kind. Absent means `note`, though a reader that keeps a conversation apart MAY show an untitled record without a kind as a message (*Untitled records*). A new version of a record MUST keep its kind. lowerCamelCase, at most 64 characters."
532
+ },
533
+ "BlobRef": {
534
+ "title": "BlobRef",
535
+ "description": "The name of one blob: the digest of its BlobManifest, taken over the manifest's RFC 8785 (JCS) canonicalization. sha2-256 is RECOMMENDED and MUST be implemented. Content addressing over ciphertext, never plaintext, so a BlobRef says nothing about what the file contains, and two uploads of one file have different BlobRefs (a fresh `fileId` gives a different key, and so different ciphertext). Rooms cannot be correlated by the files they share. Compared as decoded multihash bytes, never as encoded strings. A BlobRef is defined over the manifest's JSON, as this schema states it and RFC 8785 canonicalizes it, never over any binding's generated type: two bindings that model the manifest as distinct types still compute the same BlobRef from the same JSON.",
536
+ "$ref": "#/$defs/DigestMultibase"
537
+ },
538
+ "AuthorityPresentation": {
539
+ "title": "AuthorityPresentation",
540
+ "type": "object",
541
+ "additionalProperties": false,
542
+ "required": [
543
+ "membership",
544
+ "authority"
545
+ ],
546
+ "description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.",
547
+ "properties": {
548
+ "membership": {
549
+ "type": "string",
550
+ "description": "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile."
551
+ },
552
+ "authority": {
553
+ "type": "array",
554
+ "minItems": 1,
555
+ "maxItems": 8,
556
+ "items": {
557
+ "type": "string"
558
+ },
559
+ "description": "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent."
560
+ },
561
+ "subjectBinding": {
562
+ "type": "string",
563
+ "description": "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this."
564
+ }
565
+ }
566
+ }
567
+ }
568
+ };
569
+ /**
570
+ * SPEC.md §7.2 policy for the request variant, from this specification's
571
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
572
+ * per-specification and cannot be derived from the document alone, and
573
+ * item 2 needs the schema this carries.
574
+ */
575
+ export const SPEC = {
576
+ typeUri: TYPE_URI,
577
+ isBearer: false,
578
+ isProofRequired: true,
579
+ isRecipientRequired: true,
580
+ isIssuedAtRequired: true,
581
+ payloadSchema: PAYLOAD_SCHEMA,
582
+ };
583
+ /**
584
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
585
+ * tracks the *issuer* party's requirement because a response swaps the
586
+ * parties (§7.3 item 5).
587
+ */
588
+ export const RESPONSE_SPEC = {
589
+ typeUri: RESPONSE_TYPE_URI,
590
+ isBearer: false,
591
+ isProofRequired: true,
592
+ isRecipientRequired: true,
593
+ isIssuedAtRequired: true,
594
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
595
+ };
596
+ //# sourceMappingURL=payload.js.map