@openvtc/trust-tasks 0.23.8 → 0.24.0

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 (298) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/_shared/components.d.ts +2451 -4
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/oob/_shared/0.1/oob.d.ts +16 -0
  5. package/dist/auth/oob/_shared/0.1/oob.d.ts.map +1 -0
  6. package/dist/auth/oob/_shared/0.1/oob.js +6 -0
  7. package/dist/auth/oob/_shared/0.1/oob.js.map +1 -0
  8. package/dist/auth/oob/cancel/0.1/payload.d.ts +262 -0
  9. package/dist/auth/oob/cancel/0.1/payload.d.ts.map +1 -0
  10. package/dist/auth/oob/cancel/0.1/payload.js +153 -0
  11. package/dist/auth/oob/cancel/0.1/payload.js.map +1 -0
  12. package/dist/auth/oob/claim/0.1/payload.d.ts +463 -0
  13. package/dist/auth/oob/claim/0.1/payload.d.ts.map +1 -0
  14. package/dist/auth/oob/claim/0.1/payload.js +264 -0
  15. package/dist/auth/oob/claim/0.1/payload.js.map +1 -0
  16. package/dist/auth/oob/grant/0.1/payload.d.ts +212 -0
  17. package/dist/auth/oob/grant/0.1/payload.d.ts.map +1 -0
  18. package/dist/auth/oob/grant/0.1/payload.js +117 -0
  19. package/dist/auth/oob/grant/0.1/payload.js.map +1 -0
  20. package/dist/auth/oob/identify/0.1/payload.d.ts +145 -0
  21. package/dist/auth/oob/identify/0.1/payload.d.ts.map +1 -0
  22. package/dist/auth/oob/identify/0.1/payload.js +81 -0
  23. package/dist/auth/oob/identify/0.1/payload.js.map +1 -0
  24. package/dist/auth/oob/prove/0.1/payload.d.ts +740 -0
  25. package/dist/auth/oob/prove/0.1/payload.d.ts.map +1 -0
  26. package/dist/auth/oob/prove/0.1/payload.js +422 -0
  27. package/dist/auth/oob/prove/0.1/payload.js.map +1 -0
  28. package/dist/auth/oob/redeem/0.1/payload.d.ts +364 -0
  29. package/dist/auth/oob/redeem/0.1/payload.d.ts.map +1 -0
  30. package/dist/auth/oob/redeem/0.1/payload.js +199 -0
  31. package/dist/auth/oob/redeem/0.1/payload.js.map +1 -0
  32. package/dist/auth/oob/request/0.1/payload.d.ts +330 -0
  33. package/dist/auth/oob/request/0.1/payload.d.ts.map +1 -0
  34. package/dist/auth/oob/request/0.1/payload.js +193 -0
  35. package/dist/auth/oob/request/0.1/payload.js.map +1 -0
  36. package/dist/auth/oob/respond/0.1/payload.d.ts +235 -0
  37. package/dist/auth/oob/respond/0.1/payload.d.ts.map +1 -0
  38. package/dist/auth/oob/respond/0.1/payload.js +140 -0
  39. package/dist/auth/oob/respond/0.1/payload.js.map +1 -0
  40. package/dist/device/list/0.1/payload.d.ts +4 -4
  41. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  42. package/dist/device/list/0.1/payload.js +6 -2
  43. package/dist/device/list/0.1/payload.js.map +1 -1
  44. package/dist/device/list/0.2/payload.d.ts +4 -4
  45. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  46. package/dist/device/list/0.2/payload.js +6 -2
  47. package/dist/device/list/0.2/payload.js.map +1 -1
  48. package/dist/device/register/0.1/payload.d.ts +4 -4
  49. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  50. package/dist/device/register/0.1/payload.js +6 -2
  51. package/dist/device/register/0.1/payload.js.map +1 -1
  52. package/dist/device/register/0.2/payload.d.ts +4 -4
  53. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  54. package/dist/device/register/0.2/payload.js +6 -2
  55. package/dist/device/register/0.2/payload.js.map +1 -1
  56. package/dist/external/_shared/0.1/accounts.d.ts +18 -0
  57. package/dist/external/_shared/0.1/accounts.d.ts.map +1 -0
  58. package/dist/external/_shared/0.1/accounts.js +6 -0
  59. package/dist/external/_shared/0.1/accounts.js.map +1 -0
  60. package/dist/external/accounts/archive/0.1/payload.d.ts +2945 -0
  61. package/dist/external/accounts/archive/0.1/payload.d.ts.map +1 -0
  62. package/dist/external/accounts/archive/0.1/payload.js +1736 -0
  63. package/dist/external/accounts/archive/0.1/payload.js.map +1 -0
  64. package/dist/external/accounts/bindings/grant/0.1/payload.d.ts +2938 -0
  65. package/dist/external/accounts/bindings/grant/0.1/payload.d.ts.map +1 -0
  66. package/dist/external/accounts/bindings/grant/0.1/payload.js +1735 -0
  67. package/dist/external/accounts/bindings/grant/0.1/payload.js.map +1 -0
  68. package/dist/external/accounts/bindings/revoke/0.1/payload.d.ts +2958 -0
  69. package/dist/external/accounts/bindings/revoke/0.1/payload.d.ts.map +1 -0
  70. package/dist/external/accounts/bindings/revoke/0.1/payload.js +1743 -0
  71. package/dist/external/accounts/bindings/revoke/0.1/payload.js.map +1 -0
  72. package/dist/external/accounts/create/0.1/payload.d.ts +2954 -0
  73. package/dist/external/accounts/create/0.1/payload.d.ts.map +1 -0
  74. package/dist/external/accounts/create/0.1/payload.js +1742 -0
  75. package/dist/external/accounts/create/0.1/payload.js.map +1 -0
  76. package/dist/external/accounts/delete/0.1/payload.d.ts +310 -0
  77. package/dist/external/accounts/delete/0.1/payload.d.ts.map +1 -0
  78. package/dist/external/accounts/delete/0.1/payload.js +176 -0
  79. package/dist/external/accounts/delete/0.1/payload.js.map +1 -0
  80. package/dist/external/accounts/get/0.1/payload.d.ts +2931 -0
  81. package/dist/external/accounts/get/0.1/payload.d.ts.map +1 -0
  82. package/dist/external/accounts/get/0.1/payload.js +1731 -0
  83. package/dist/external/accounts/get/0.1/payload.js.map +1 -0
  84. package/dist/external/accounts/keys/rotate/0.1/payload.d.ts +3216 -0
  85. package/dist/external/accounts/keys/rotate/0.1/payload.d.ts.map +1 -0
  86. package/dist/external/accounts/keys/rotate/0.1/payload.js +1912 -0
  87. package/dist/external/accounts/keys/rotate/0.1/payload.js.map +1 -0
  88. package/dist/external/accounts/list/0.1/payload.d.ts +3034 -0
  89. package/dist/external/accounts/list/0.1/payload.d.ts.map +1 -0
  90. package/dist/external/accounts/list/0.1/payload.js +1791 -0
  91. package/dist/external/accounts/list/0.1/payload.js.map +1 -0
  92. package/dist/external/accounts/probe/0.1/payload.d.ts +511 -0
  93. package/dist/external/accounts/probe/0.1/payload.d.ts.map +1 -0
  94. package/dist/external/accounts/probe/0.1/payload.js +307 -0
  95. package/dist/external/accounts/probe/0.1/payload.js.map +1 -0
  96. package/dist/external/accounts/restore/0.1/payload.d.ts +2945 -0
  97. package/dist/external/accounts/restore/0.1/payload.d.ts.map +1 -0
  98. package/dist/external/accounts/restore/0.1/payload.js +1736 -0
  99. package/dist/external/accounts/restore/0.1/payload.js.map +1 -0
  100. package/dist/external/accounts/resume/0.1/payload.d.ts +2945 -0
  101. package/dist/external/accounts/resume/0.1/payload.d.ts.map +1 -0
  102. package/dist/external/accounts/resume/0.1/payload.js +1736 -0
  103. package/dist/external/accounts/resume/0.1/payload.js.map +1 -0
  104. package/dist/external/accounts/secret/set/0.1/payload.d.ts +379 -0
  105. package/dist/external/accounts/secret/set/0.1/payload.d.ts.map +1 -0
  106. package/dist/external/accounts/secret/set/0.1/payload.js +212 -0
  107. package/dist/external/accounts/secret/set/0.1/payload.js.map +1 -0
  108. package/dist/external/accounts/setup/0.1/payload.d.ts +535 -0
  109. package/dist/external/accounts/setup/0.1/payload.d.ts.map +1 -0
  110. package/dist/external/accounts/setup/0.1/payload.js +325 -0
  111. package/dist/external/accounts/setup/0.1/payload.js.map +1 -0
  112. package/dist/external/accounts/suspend/0.1/payload.d.ts +2945 -0
  113. package/dist/external/accounts/suspend/0.1/payload.d.ts.map +1 -0
  114. package/dist/external/accounts/suspend/0.1/payload.js +1736 -0
  115. package/dist/external/accounts/suspend/0.1/payload.js.map +1 -0
  116. package/dist/external/accounts/update/0.1/payload.d.ts +2949 -0
  117. package/dist/external/accounts/update/0.1/payload.d.ts.map +1 -0
  118. package/dist/external/accounts/update/0.1/payload.js +1739 -0
  119. package/dist/external/accounts/update/0.1/payload.js.map +1 -0
  120. package/dist/external/credentials/issue/0.1/payload.d.ts +586 -0
  121. package/dist/external/credentials/issue/0.1/payload.d.ts.map +1 -0
  122. package/dist/external/credentials/issue/0.1/payload.js +322 -0
  123. package/dist/external/credentials/issue/0.1/payload.js.map +1 -0
  124. package/dist/external/sign/0.1/payload.d.ts +348 -0
  125. package/dist/external/sign/0.1/payload.d.ts.map +1 -0
  126. package/dist/external/sign/0.1/payload.js +193 -0
  127. package/dist/external/sign/0.1/payload.js.map +1 -0
  128. package/dist/index.d.ts +53 -0
  129. package/dist/index.d.ts.map +1 -1
  130. package/dist/index.js +53 -0
  131. package/dist/index.js.map +1 -1
  132. package/dist/rooms/_shared/0.1/blobs.d.ts +16 -0
  133. package/dist/rooms/_shared/0.1/blobs.d.ts.map +1 -0
  134. package/dist/rooms/_shared/0.1/blobs.js +6 -0
  135. package/dist/rooms/_shared/0.1/blobs.js.map +1 -0
  136. package/dist/rooms/_shared/0.1/room.d.ts +1 -1
  137. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
  138. package/dist/rooms/blobs/chunk/0.1/payload.d.ts +375 -0
  139. package/dist/rooms/blobs/chunk/0.1/payload.d.ts.map +1 -0
  140. package/dist/rooms/blobs/chunk/0.1/payload.js +213 -0
  141. package/dist/rooms/blobs/chunk/0.1/payload.js.map +1 -0
  142. package/dist/rooms/blobs/get/0.1/payload.d.ts +743 -0
  143. package/dist/rooms/blobs/get/0.1/payload.d.ts.map +1 -0
  144. package/dist/rooms/blobs/get/0.1/payload.js +415 -0
  145. package/dist/rooms/blobs/get/0.1/payload.js.map +1 -0
  146. package/dist/rooms/blobs/upload/abort/0.1/payload.d.ts +263 -0
  147. package/dist/rooms/blobs/upload/abort/0.1/payload.d.ts.map +1 -0
  148. package/dist/rooms/blobs/upload/abort/0.1/payload.js +151 -0
  149. package/dist/rooms/blobs/upload/abort/0.1/payload.js.map +1 -0
  150. package/dist/rooms/blobs/upload/begin/0.1/payload.d.ts +793 -0
  151. package/dist/rooms/blobs/upload/begin/0.1/payload.d.ts.map +1 -0
  152. package/dist/rooms/blobs/upload/begin/0.1/payload.js +437 -0
  153. package/dist/rooms/blobs/upload/begin/0.1/payload.js.map +1 -0
  154. package/dist/rooms/blobs/upload/chunk/0.1/payload.d.ts +459 -0
  155. package/dist/rooms/blobs/upload/chunk/0.1/payload.d.ts.map +1 -0
  156. package/dist/rooms/blobs/upload/chunk/0.1/payload.js +256 -0
  157. package/dist/rooms/blobs/upload/chunk/0.1/payload.js.map +1 -0
  158. package/dist/rooms/blobs/upload/commit/0.1/payload.d.ts +326 -0
  159. package/dist/rooms/blobs/upload/commit/0.1/payload.d.ts.map +1 -0
  160. package/dist/rooms/blobs/upload/commit/0.1/payload.js +185 -0
  161. package/dist/rooms/blobs/upload/commit/0.1/payload.js.map +1 -0
  162. package/dist/rooms/info/0.1/payload.d.ts +897 -0
  163. package/dist/rooms/info/0.1/payload.d.ts.map +1 -0
  164. package/dist/rooms/info/0.1/payload.js +498 -0
  165. package/dist/rooms/info/0.1/payload.js.map +1 -0
  166. package/dist/rooms/keys/file-key/0.1/payload.d.ts +306 -0
  167. package/dist/rooms/keys/file-key/0.1/payload.d.ts.map +1 -0
  168. package/dist/rooms/keys/file-key/0.1/payload.js +167 -0
  169. package/dist/rooms/keys/file-key/0.1/payload.js.map +1 -0
  170. package/dist/rooms/records/get/0.2/payload.d.ts +954 -0
  171. package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -0
  172. package/dist/rooms/records/get/0.2/payload.js +515 -0
  173. package/dist/rooms/records/get/0.2/payload.js.map +1 -0
  174. package/dist/rooms/records/list/0.2/payload.d.ts +854 -0
  175. package/dist/rooms/records/list/0.2/payload.d.ts.map +1 -0
  176. package/dist/rooms/records/list/0.2/payload.js +462 -0
  177. package/dist/rooms/records/list/0.2/payload.js.map +1 -0
  178. package/dist/rooms/records/put/0.2/payload.d.ts +679 -0
  179. package/dist/rooms/records/put/0.2/payload.d.ts.map +1 -0
  180. package/dist/rooms/records/put/0.2/payload.js +357 -0
  181. package/dist/rooms/records/put/0.2/payload.js.map +1 -0
  182. package/dist/rooms/usage/0.1/payload.d.ts +795 -0
  183. package/dist/rooms/usage/0.1/payload.d.ts.map +1 -0
  184. package/dist/rooms/usage/0.1/payload.js +417 -0
  185. package/dist/rooms/usage/0.1/payload.js.map +1 -0
  186. package/dist/vtc/_shared/0.1/room-storage.d.ts +16 -0
  187. package/dist/vtc/_shared/0.1/room-storage.d.ts.map +1 -0
  188. package/dist/vtc/_shared/0.1/room-storage.js +6 -0
  189. package/dist/vtc/_shared/0.1/room-storage.js.map +1 -0
  190. package/dist/vtc/rooms/get/0.1/payload.d.ts +1813 -0
  191. package/dist/vtc/rooms/get/0.1/payload.d.ts.map +1 -0
  192. package/dist/vtc/rooms/get/0.1/payload.js +892 -0
  193. package/dist/vtc/rooms/get/0.1/payload.js.map +1 -0
  194. package/dist/vtc/rooms/limits/set/0.1/payload.d.ts +873 -0
  195. package/dist/vtc/rooms/limits/set/0.1/payload.d.ts.map +1 -0
  196. package/dist/vtc/rooms/limits/set/0.1/payload.js +489 -0
  197. package/dist/vtc/rooms/limits/set/0.1/payload.js.map +1 -0
  198. package/dist/vtc/rooms/storage/assign/0.1/payload.d.ts +341 -0
  199. package/dist/vtc/rooms/storage/assign/0.1/payload.d.ts.map +1 -0
  200. package/dist/vtc/rooms/storage/assign/0.1/payload.js +191 -0
  201. package/dist/vtc/rooms/storage/assign/0.1/payload.js.map +1 -0
  202. package/dist/vtc/rooms/storage/migrate/0.1/payload.d.ts +452 -0
  203. package/dist/vtc/rooms/storage/migrate/0.1/payload.d.ts.map +1 -0
  204. package/dist/vtc/rooms/storage/migrate/0.1/payload.js +260 -0
  205. package/dist/vtc/rooms/storage/migrate/0.1/payload.js.map +1 -0
  206. package/dist/vtc/rooms/usage/0.1/payload.d.ts +880 -0
  207. package/dist/vtc/rooms/usage/0.1/payload.d.ts.map +1 -0
  208. package/dist/vtc/rooms/usage/0.1/payload.js +457 -0
  209. package/dist/vtc/rooms/usage/0.1/payload.js.map +1 -0
  210. package/dist/vtc/storage/configs/create/0.1/payload.d.ts +1272 -0
  211. package/dist/vtc/storage/configs/create/0.1/payload.d.ts.map +1 -0
  212. package/dist/vtc/storage/configs/create/0.1/payload.js +737 -0
  213. package/dist/vtc/storage/configs/create/0.1/payload.js.map +1 -0
  214. package/dist/vtc/storage/configs/get/0.1/payload.d.ts +1750 -0
  215. package/dist/vtc/storage/configs/get/0.1/payload.d.ts.map +1 -0
  216. package/dist/vtc/storage/configs/get/0.1/payload.js +1019 -0
  217. package/dist/vtc/storage/configs/get/0.1/payload.js.map +1 -0
  218. package/dist/vtc/storage/configs/list/0.1/payload.d.ts +1851 -0
  219. package/dist/vtc/storage/configs/list/0.1/payload.d.ts.map +1 -0
  220. package/dist/vtc/storage/configs/list/0.1/payload.js +1069 -0
  221. package/dist/vtc/storage/configs/list/0.1/payload.js.map +1 -0
  222. package/dist/vtc/storage/configs/probe/0.1/payload.d.ts +459 -0
  223. package/dist/vtc/storage/configs/probe/0.1/payload.d.ts.map +1 -0
  224. package/dist/vtc/storage/configs/probe/0.1/payload.js +267 -0
  225. package/dist/vtc/storage/configs/probe/0.1/payload.js.map +1 -0
  226. package/dist/vtc/storage/configs/retire/0.1/payload.d.ts +294 -0
  227. package/dist/vtc/storage/configs/retire/0.1/payload.d.ts.map +1 -0
  228. package/dist/vtc/storage/configs/retire/0.1/payload.js +176 -0
  229. package/dist/vtc/storage/configs/retire/0.1/payload.js.map +1 -0
  230. package/dist/vtc/storage/configs/update/0.1/payload.d.ts +1274 -0
  231. package/dist/vtc/storage/configs/update/0.1/payload.d.ts.map +1 -0
  232. package/dist/vtc/storage/configs/update/0.1/payload.js +736 -0
  233. package/dist/vtc/storage/configs/update/0.1/payload.js.map +1 -0
  234. package/dist/vtc/storage/credentials/set/0.1/payload.d.ts +511 -0
  235. package/dist/vtc/storage/credentials/set/0.1/payload.d.ts.map +1 -0
  236. package/dist/vtc/storage/credentials/set/0.1/payload.js +293 -0
  237. package/dist/vtc/storage/credentials/set/0.1/payload.js.map +1 -0
  238. package/package.json +1 -1
  239. package/src/_shared/components.ts +2539 -4
  240. package/src/auth/oob/_shared/0.1/oob.ts +17 -0
  241. package/src/auth/oob/cancel/0.1/payload.ts +188 -0
  242. package/src/auth/oob/claim/0.1/payload.ts +306 -0
  243. package/src/auth/oob/grant/0.1/payload.ts +159 -0
  244. package/src/auth/oob/identify/0.1/payload.ts +110 -0
  245. package/src/auth/oob/prove/0.1/payload.ts +473 -0
  246. package/src/auth/oob/redeem/0.1/payload.ts +248 -0
  247. package/src/auth/oob/request/0.1/payload.ts +230 -0
  248. package/src/auth/oob/respond/0.1/payload.ts +178 -0
  249. package/src/device/list/0.1/payload.ts +6 -2
  250. package/src/device/list/0.2/payload.ts +6 -2
  251. package/src/device/register/0.1/payload.ts +6 -2
  252. package/src/device/register/0.2/payload.ts +6 -2
  253. package/src/external/_shared/0.1/accounts.ts +19 -0
  254. package/src/external/accounts/archive/0.1/payload.ts +1770 -0
  255. package/src/external/accounts/bindings/grant/0.1/payload.ts +1766 -0
  256. package/src/external/accounts/bindings/revoke/0.1/payload.ts +1778 -0
  257. package/src/external/accounts/create/0.1/payload.ts +1777 -0
  258. package/src/external/accounts/delete/0.1/payload.ts +211 -0
  259. package/src/external/accounts/get/0.1/payload.ts +1761 -0
  260. package/src/external/accounts/keys/rotate/0.1/payload.ts +1947 -0
  261. package/src/external/accounts/list/0.1/payload.ts +1834 -0
  262. package/src/external/accounts/probe/0.1/payload.ts +337 -0
  263. package/src/external/accounts/restore/0.1/payload.ts +1770 -0
  264. package/src/external/accounts/resume/0.1/payload.ts +1770 -0
  265. package/src/external/accounts/secret/set/0.1/payload.ts +248 -0
  266. package/src/external/accounts/setup/0.1/payload.ts +355 -0
  267. package/src/external/accounts/suspend/0.1/payload.ts +1770 -0
  268. package/src/external/accounts/update/0.1/payload.ts +1771 -0
  269. package/src/external/credentials/issue/0.1/payload.ts +365 -0
  270. package/src/external/sign/0.1/payload.ts +234 -0
  271. package/src/index.ts +53 -0
  272. package/src/rooms/_shared/0.1/blobs.ts +17 -0
  273. package/src/rooms/_shared/0.1/room.ts +1 -1
  274. package/src/rooms/blobs/chunk/0.1/payload.ts +251 -0
  275. package/src/rooms/blobs/get/0.1/payload.ts +463 -0
  276. package/src/rooms/blobs/upload/abort/0.1/payload.ts +187 -0
  277. package/src/rooms/blobs/upload/begin/0.1/payload.ts +491 -0
  278. package/src/rooms/blobs/upload/chunk/0.1/payload.ts +304 -0
  279. package/src/rooms/blobs/upload/commit/0.1/payload.ts +224 -0
  280. package/src/rooms/info/0.1/payload.ts +572 -0
  281. package/src/rooms/keys/file-key/0.1/payload.ts +224 -0
  282. package/src/rooms/records/get/0.2/payload.ts +614 -0
  283. package/src/rooms/records/list/0.2/payload.ts +533 -0
  284. package/src/rooms/records/put/0.2/payload.ts +441 -0
  285. package/src/rooms/usage/0.1/payload.ts +499 -0
  286. package/src/vtc/_shared/0.1/room-storage.ts +17 -0
  287. package/src/vtc/rooms/get/0.1/payload.ts +1275 -0
  288. package/src/vtc/rooms/limits/set/0.1/payload.ts +555 -0
  289. package/src/vtc/rooms/storage/assign/0.1/payload.ts +237 -0
  290. package/src/vtc/rooms/storage/migrate/0.1/payload.ts +317 -0
  291. package/src/vtc/rooms/usage/0.1/payload.ts +568 -0
  292. package/src/vtc/storage/configs/create/0.1/payload.ts +784 -0
  293. package/src/vtc/storage/configs/get/0.1/payload.ts +1054 -0
  294. package/src/vtc/storage/configs/list/0.1/payload.ts +1121 -0
  295. package/src/vtc/storage/configs/probe/0.1/payload.ts +329 -0
  296. package/src/vtc/storage/configs/retire/0.1/payload.ts +211 -0
  297. package/src/vtc/storage/configs/update/0.1/payload.ts +783 -0
  298. package/src/vtc/storage/credentials/set/0.1/payload.ts +339 -0
@@ -0,0 +1,897 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/info/0.1/payload.schema.json
4
+ */
5
+ import type { AuthorityPresentation, Ext, RetentionPolicy, RoomLimits, ScopeLimits, Usage, Visibility } from "../../../_shared/components.js";
6
+ /**
7
+ * A member asks a room's host what it holds about the room: its tier, its current epoch, the limits the host applies to its files, and how much of them the room and the member have used.
8
+ */
9
+ export interface RoomsInfoPayload {
10
+ /**
11
+ * The room's identifier. The host verifies the presentation against credentials issued by this identifier, never against a member list of its own.
12
+ */
13
+ roomId: string;
14
+ /**
15
+ * Must confer the `read` action at this room's scope.
16
+ */
17
+ presentation: AuthorityPresentation;
18
+ /**
19
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
20
+ */
21
+ ext?: Ext;
22
+ }
23
+ /**
24
+ * Success response to rooms/info. Type https://trusttasks.org/spec/rooms/info/0.1#response.
25
+ */
26
+ export interface RoomsInfoResponsePayload {
27
+ /**
28
+ * The room this describes, echoed so a response cannot be mistaken for another room's.
29
+ */
30
+ roomId: string;
31
+ visibility: Visibility;
32
+ /**
33
+ * Absent means `chained`, as everywhere in this family.
34
+ */
35
+ retentionPolicy?: RetentionPolicy;
36
+ /**
37
+ * The room's current epoch as the host knows it: the one a record or file must be sealed under to be accepted now.
38
+ */
39
+ epoch: number;
40
+ /**
41
+ * The limits the host applies to this room, after any override for the room and capped by the host-wide ceiling. `member` here is the room's default per-member allowance; the presenter's own, which may differ, is under `usage.member.limits`.
42
+ */
43
+ limits: RoomLimits;
44
+ usage: {
45
+ /**
46
+ * The room as a whole.
47
+ */
48
+ room: Usage;
49
+ /**
50
+ * The presenter's own use and allowance: charged to the subject at the root of the presented chain, so an agent sees its member's figures. Absent on a `private` room, where the host does not know which member is asking.
51
+ */
52
+ member?: {
53
+ usage: Usage;
54
+ /**
55
+ * The limits that apply to this member in this room: an override set for them by the host's administrators if there is one, else the room's per-member default.
56
+ */
57
+ limits: ScopeLimits;
58
+ };
59
+ };
60
+ ext?: Ext;
61
+ }
62
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
63
+ export type { AuthorityPresentation, Ext, RetentionPolicy, RoomLimits, ScopeLimits, Usage, Visibility };
64
+ /** Trust Task type URI. */
65
+ export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/info/0.1";
66
+ /** Stable alias for this specification's request payload shape. */
67
+ export type Payload = RoomsInfoPayload;
68
+ /** Trust Task response type URI (request type URI + "#response"). */
69
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/info/0.1#response";
70
+ /** Stable alias for this specification's success-response payload shape. */
71
+ export type Response = RoomsInfoResponsePayload;
72
+ /**
73
+ * This specification's payload schema, as a value.
74
+ *
75
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
76
+ * rather than only as a `.json` file because TypeScript types are erased
77
+ * at runtime: without a schema a consumer has nothing to validate, and
78
+ * every REQUIRED payload member is optional in practice. Cross-file
79
+ * `$ref`s are already inlined, so it needs no resolver.
80
+ */
81
+ export declare const PAYLOAD_SCHEMA: {
82
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
83
+ readonly $id: "https://trusttasks.org/spec/rooms/info/0.1";
84
+ readonly title: "Rooms Info — payload";
85
+ readonly description: "A member asks a room's host what it holds about the room: its tier, its current epoch, the limits the host applies to its files, and how much of them the room and the member have used.";
86
+ readonly type: "object";
87
+ readonly additionalProperties: false;
88
+ readonly required: readonly ["roomId", "presentation"];
89
+ readonly properties: {
90
+ readonly roomId: {
91
+ readonly type: "string";
92
+ readonly description: "The room's identifier. The host verifies the presentation against credentials issued by this identifier, never against a member list of its own.";
93
+ };
94
+ readonly presentation: {
95
+ readonly $ref: "#/$defs/AuthorityPresentation";
96
+ readonly description: "Must confer the `read` action at this room's scope.";
97
+ };
98
+ readonly ext: {
99
+ readonly $ref: "#/$defs/Ext";
100
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
101
+ };
102
+ };
103
+ readonly $defs: {
104
+ readonly Response: {
105
+ readonly $anchor: "response";
106
+ readonly title: "Rooms Info — response payload";
107
+ readonly description: "Success response to rooms/info. Type https://trusttasks.org/spec/rooms/info/0.1#response.";
108
+ readonly type: "object";
109
+ readonly additionalProperties: false;
110
+ readonly required: readonly ["roomId", "visibility", "epoch", "limits", "usage"];
111
+ readonly properties: {
112
+ readonly roomId: {
113
+ readonly type: "string";
114
+ readonly description: "The room this describes, echoed so a response cannot be mistaken for another room's.";
115
+ };
116
+ readonly visibility: {
117
+ readonly $ref: "#/$defs/Visibility";
118
+ };
119
+ readonly retentionPolicy: {
120
+ readonly $ref: "#/$defs/RetentionPolicy";
121
+ readonly description: "Absent means `chained`, as everywhere in this family.";
122
+ };
123
+ readonly epoch: {
124
+ readonly type: "integer";
125
+ readonly minimum: 1;
126
+ readonly description: "The room's current epoch as the host knows it: the one a record or file must be sealed under to be accepted now.";
127
+ };
128
+ readonly limits: {
129
+ readonly $ref: "#/$defs/RoomLimits";
130
+ readonly description: "The limits the host applies to this room, after any override for the room and capped by the host-wide ceiling. `member` here is the room's default per-member allowance; the presenter's own, which may differ, is under `usage.member.limits`.";
131
+ };
132
+ readonly usage: {
133
+ readonly type: "object";
134
+ readonly additionalProperties: false;
135
+ readonly required: readonly ["room"];
136
+ readonly properties: {
137
+ readonly room: {
138
+ readonly $ref: "#/$defs/Usage";
139
+ readonly description: "The room as a whole.";
140
+ };
141
+ readonly member: {
142
+ readonly type: "object";
143
+ readonly additionalProperties: false;
144
+ readonly required: readonly ["usage", "limits"];
145
+ readonly description: "The presenter's own use and allowance: charged to the subject at the root of the presented chain, so an agent sees its member's figures. Absent on a `private` room, where the host does not know which member is asking.";
146
+ readonly properties: {
147
+ readonly usage: {
148
+ readonly $ref: "#/$defs/Usage";
149
+ };
150
+ readonly limits: {
151
+ readonly $ref: "#/$defs/ScopeLimits";
152
+ readonly description: "The limits that apply to this member in this room: an override set for them by the host's administrators if there is one, else the room's per-member default.";
153
+ };
154
+ };
155
+ };
156
+ };
157
+ };
158
+ readonly ext: {
159
+ readonly $ref: "#/$defs/Ext";
160
+ };
161
+ };
162
+ };
163
+ readonly Ext: {
164
+ readonly title: "Ext";
165
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
166
+ readonly type: "object";
167
+ readonly minProperties: 1;
168
+ readonly additionalProperties: true;
169
+ readonly propertyNames: {
170
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
171
+ };
172
+ };
173
+ readonly ScopeLimits: {
174
+ readonly title: "ScopeLimits";
175
+ readonly type: "object";
176
+ readonly additionalProperties: false;
177
+ readonly description: "Limits at one scope. Every member is optional: an absent member means the scope sets no limit of that kind, and the next wider scope's limit, or the host's ceiling, governs. All sizes are ciphertext bytes.";
178
+ readonly properties: {
179
+ readonly maxFiles: {
180
+ readonly type: "integer";
181
+ readonly minimum: 0;
182
+ readonly description: "The number of committed blobs the scope may hold. 0 refuses every upload at this scope.";
183
+ };
184
+ readonly maxFileBytes: {
185
+ readonly type: "integer";
186
+ readonly minimum: 0;
187
+ readonly maximum: 1073741824;
188
+ readonly description: "The largest single blob the scope accepts. Never above 1 GiB, the transfer ceiling (BlobManifest).";
189
+ };
190
+ readonly maxBytes: {
191
+ readonly type: "integer";
192
+ readonly minimum: 0;
193
+ readonly description: "The total size of the committed and reserved blobs the scope may hold.";
194
+ };
195
+ };
196
+ };
197
+ readonly Usage: {
198
+ readonly title: "Usage";
199
+ readonly type: "object";
200
+ readonly additionalProperties: false;
201
+ readonly required: readonly ["files", "bytes", "reservedBytes"];
202
+ readonly description: "What one scope holds now. Ciphertext bytes throughout.";
203
+ readonly properties: {
204
+ readonly files: {
205
+ readonly type: "integer";
206
+ readonly minimum: 0;
207
+ readonly description: "Committed blobs that are not orphaned.";
208
+ };
209
+ readonly bytes: {
210
+ readonly type: "integer";
211
+ readonly minimum: 0;
212
+ readonly description: "Their total size. A blob stops counting the moment it is orphaned (its last record dropped it or was retracted), not when the host finally deletes it, so a member who deletes a file has the room back at once.";
213
+ };
214
+ readonly reservedBytes: {
215
+ readonly type: "integer";
216
+ readonly minimum: 0;
217
+ readonly description: "Bytes reserved by uploads begun and not yet committed, aborted or expired. Counted against `maxBytes`, so two concurrent uploads cannot both fit under a limit only one of them fits.";
218
+ };
219
+ readonly reservedFiles: {
220
+ readonly type: "integer";
221
+ readonly minimum: 0;
222
+ readonly description: "Uploads begun and not yet committed, aborted or expired. Counted against `maxFiles`.";
223
+ };
224
+ };
225
+ };
226
+ readonly RoomLimits: {
227
+ readonly title: "RoomLimits";
228
+ readonly type: "object";
229
+ readonly additionalProperties: false;
230
+ readonly required: readonly ["filesEnabled"];
231
+ readonly description: "How much a host is willing to store for one room, at the room and per member. A hosting decision, set by the host and never by anything in the room's credentials. An upload must fit every scope at once: the object against the smallest `maxFileBytes` that applies, and the member and the room with the file added.";
232
+ readonly properties: {
233
+ readonly filesEnabled: {
234
+ readonly type: "boolean";
235
+ readonly description: "False refuses every rooms/blobs/* upload for the room. Reads of blobs already stored continue.";
236
+ };
237
+ readonly room: {
238
+ readonly $ref: "#/$defs/ScopeLimits";
239
+ readonly description: "Limits on the room as a whole.";
240
+ };
241
+ readonly member: {
242
+ readonly $ref: "#/$defs/ScopeLimits";
243
+ readonly description: "Limits on each member's own uploads in this room, unless that member has an override. A member is the subject at the root of the authority chain they present, never the key that signed, so an agent acting on an attenuated chain spends its member's allowance. Not applied on a `private` room, where the host cannot tell members apart; the room and object limits still hold there.";
244
+ };
245
+ };
246
+ };
247
+ readonly RetentionPolicy: {
248
+ readonly title: "RetentionPolicy";
249
+ readonly type: "string";
250
+ readonly enum: readonly ["chained", "fromJoin"];
251
+ readonly 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.";
252
+ readonly $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.";
253
+ };
254
+ readonly Visibility: {
255
+ readonly title: "Visibility";
256
+ readonly type: "string";
257
+ readonly enum: readonly ["open", "attributed", "private"];
258
+ readonly 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.";
259
+ };
260
+ readonly AuthorityPresentation: {
261
+ readonly title: "AuthorityPresentation";
262
+ readonly type: "object";
263
+ readonly additionalProperties: false;
264
+ readonly required: readonly ["membership", "authority"];
265
+ readonly 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.";
266
+ readonly properties: {
267
+ readonly membership: {
268
+ readonly type: "string";
269
+ readonly 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.";
270
+ };
271
+ readonly authority: {
272
+ readonly type: "array";
273
+ readonly minItems: 1;
274
+ readonly maxItems: 8;
275
+ readonly items: {
276
+ readonly type: "string";
277
+ };
278
+ readonly 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.";
279
+ };
280
+ readonly subjectBinding: {
281
+ readonly type: "string";
282
+ readonly 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.";
283
+ };
284
+ };
285
+ };
286
+ };
287
+ };
288
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
289
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
290
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
291
+ readonly $ref: "#/$defs/Response";
292
+ readonly $defs: {
293
+ readonly Response: {
294
+ readonly $anchor: "response";
295
+ readonly title: "Rooms Info — response payload";
296
+ readonly description: "Success response to rooms/info. Type https://trusttasks.org/spec/rooms/info/0.1#response.";
297
+ readonly type: "object";
298
+ readonly additionalProperties: false;
299
+ readonly required: readonly ["roomId", "visibility", "epoch", "limits", "usage"];
300
+ readonly properties: {
301
+ readonly roomId: {
302
+ readonly type: "string";
303
+ readonly description: "The room this describes, echoed so a response cannot be mistaken for another room's.";
304
+ };
305
+ readonly visibility: {
306
+ readonly $ref: "#/$defs/Visibility";
307
+ };
308
+ readonly retentionPolicy: {
309
+ readonly $ref: "#/$defs/RetentionPolicy";
310
+ readonly description: "Absent means `chained`, as everywhere in this family.";
311
+ };
312
+ readonly epoch: {
313
+ readonly type: "integer";
314
+ readonly minimum: 1;
315
+ readonly description: "The room's current epoch as the host knows it: the one a record or file must be sealed under to be accepted now.";
316
+ };
317
+ readonly limits: {
318
+ readonly $ref: "#/$defs/RoomLimits";
319
+ readonly description: "The limits the host applies to this room, after any override for the room and capped by the host-wide ceiling. `member` here is the room's default per-member allowance; the presenter's own, which may differ, is under `usage.member.limits`.";
320
+ };
321
+ readonly usage: {
322
+ readonly type: "object";
323
+ readonly additionalProperties: false;
324
+ readonly required: readonly ["room"];
325
+ readonly properties: {
326
+ readonly room: {
327
+ readonly $ref: "#/$defs/Usage";
328
+ readonly description: "The room as a whole.";
329
+ };
330
+ readonly member: {
331
+ readonly type: "object";
332
+ readonly additionalProperties: false;
333
+ readonly required: readonly ["usage", "limits"];
334
+ readonly description: "The presenter's own use and allowance: charged to the subject at the root of the presented chain, so an agent sees its member's figures. Absent on a `private` room, where the host does not know which member is asking.";
335
+ readonly properties: {
336
+ readonly usage: {
337
+ readonly $ref: "#/$defs/Usage";
338
+ };
339
+ readonly limits: {
340
+ readonly $ref: "#/$defs/ScopeLimits";
341
+ readonly description: "The limits that apply to this member in this room: an override set for them by the host's administrators if there is one, else the room's per-member default.";
342
+ };
343
+ };
344
+ };
345
+ };
346
+ };
347
+ readonly ext: {
348
+ readonly $ref: "#/$defs/Ext";
349
+ };
350
+ };
351
+ };
352
+ readonly Ext: {
353
+ readonly title: "Ext";
354
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
355
+ readonly type: "object";
356
+ readonly minProperties: 1;
357
+ readonly additionalProperties: true;
358
+ readonly propertyNames: {
359
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
360
+ };
361
+ };
362
+ readonly ScopeLimits: {
363
+ readonly title: "ScopeLimits";
364
+ readonly type: "object";
365
+ readonly additionalProperties: false;
366
+ readonly description: "Limits at one scope. Every member is optional: an absent member means the scope sets no limit of that kind, and the next wider scope's limit, or the host's ceiling, governs. All sizes are ciphertext bytes.";
367
+ readonly properties: {
368
+ readonly maxFiles: {
369
+ readonly type: "integer";
370
+ readonly minimum: 0;
371
+ readonly description: "The number of committed blobs the scope may hold. 0 refuses every upload at this scope.";
372
+ };
373
+ readonly maxFileBytes: {
374
+ readonly type: "integer";
375
+ readonly minimum: 0;
376
+ readonly maximum: 1073741824;
377
+ readonly description: "The largest single blob the scope accepts. Never above 1 GiB, the transfer ceiling (BlobManifest).";
378
+ };
379
+ readonly maxBytes: {
380
+ readonly type: "integer";
381
+ readonly minimum: 0;
382
+ readonly description: "The total size of the committed and reserved blobs the scope may hold.";
383
+ };
384
+ };
385
+ };
386
+ readonly Usage: {
387
+ readonly title: "Usage";
388
+ readonly type: "object";
389
+ readonly additionalProperties: false;
390
+ readonly required: readonly ["files", "bytes", "reservedBytes"];
391
+ readonly description: "What one scope holds now. Ciphertext bytes throughout.";
392
+ readonly properties: {
393
+ readonly files: {
394
+ readonly type: "integer";
395
+ readonly minimum: 0;
396
+ readonly description: "Committed blobs that are not orphaned.";
397
+ };
398
+ readonly bytes: {
399
+ readonly type: "integer";
400
+ readonly minimum: 0;
401
+ readonly description: "Their total size. A blob stops counting the moment it is orphaned (its last record dropped it or was retracted), not when the host finally deletes it, so a member who deletes a file has the room back at once.";
402
+ };
403
+ readonly reservedBytes: {
404
+ readonly type: "integer";
405
+ readonly minimum: 0;
406
+ readonly description: "Bytes reserved by uploads begun and not yet committed, aborted or expired. Counted against `maxBytes`, so two concurrent uploads cannot both fit under a limit only one of them fits.";
407
+ };
408
+ readonly reservedFiles: {
409
+ readonly type: "integer";
410
+ readonly minimum: 0;
411
+ readonly description: "Uploads begun and not yet committed, aborted or expired. Counted against `maxFiles`.";
412
+ };
413
+ };
414
+ };
415
+ readonly RoomLimits: {
416
+ readonly title: "RoomLimits";
417
+ readonly type: "object";
418
+ readonly additionalProperties: false;
419
+ readonly required: readonly ["filesEnabled"];
420
+ readonly description: "How much a host is willing to store for one room, at the room and per member. A hosting decision, set by the host and never by anything in the room's credentials. An upload must fit every scope at once: the object against the smallest `maxFileBytes` that applies, and the member and the room with the file added.";
421
+ readonly properties: {
422
+ readonly filesEnabled: {
423
+ readonly type: "boolean";
424
+ readonly description: "False refuses every rooms/blobs/* upload for the room. Reads of blobs already stored continue.";
425
+ };
426
+ readonly room: {
427
+ readonly $ref: "#/$defs/ScopeLimits";
428
+ readonly description: "Limits on the room as a whole.";
429
+ };
430
+ readonly member: {
431
+ readonly $ref: "#/$defs/ScopeLimits";
432
+ readonly description: "Limits on each member's own uploads in this room, unless that member has an override. A member is the subject at the root of the authority chain they present, never the key that signed, so an agent acting on an attenuated chain spends its member's allowance. Not applied on a `private` room, where the host cannot tell members apart; the room and object limits still hold there.";
433
+ };
434
+ };
435
+ };
436
+ readonly RetentionPolicy: {
437
+ readonly title: "RetentionPolicy";
438
+ readonly type: "string";
439
+ readonly enum: readonly ["chained", "fromJoin"];
440
+ readonly 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.";
441
+ readonly $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.";
442
+ };
443
+ readonly Visibility: {
444
+ readonly title: "Visibility";
445
+ readonly type: "string";
446
+ readonly enum: readonly ["open", "attributed", "private"];
447
+ readonly 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.";
448
+ };
449
+ readonly AuthorityPresentation: {
450
+ readonly title: "AuthorityPresentation";
451
+ readonly type: "object";
452
+ readonly additionalProperties: false;
453
+ readonly required: readonly ["membership", "authority"];
454
+ readonly 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.";
455
+ readonly properties: {
456
+ readonly membership: {
457
+ readonly type: "string";
458
+ readonly 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.";
459
+ };
460
+ readonly authority: {
461
+ readonly type: "array";
462
+ readonly minItems: 1;
463
+ readonly maxItems: 8;
464
+ readonly items: {
465
+ readonly type: "string";
466
+ };
467
+ readonly 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.";
468
+ };
469
+ readonly subjectBinding: {
470
+ readonly type: "string";
471
+ readonly 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.";
472
+ };
473
+ };
474
+ };
475
+ };
476
+ };
477
+ /**
478
+ * SPEC.md §7.2 policy for the request variant, from this specification's
479
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
480
+ * per-specification and cannot be derived from the document alone, and
481
+ * item 2 needs the schema this carries.
482
+ */
483
+ export declare const SPEC: {
484
+ readonly typeUri: "https://trusttasks.org/spec/rooms/info/0.1";
485
+ readonly isBearer: false;
486
+ readonly isProofRequired: false;
487
+ readonly isRecipientRequired: true;
488
+ readonly isIssuedAtRequired: false;
489
+ readonly payloadSchema: {
490
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
491
+ readonly $id: "https://trusttasks.org/spec/rooms/info/0.1";
492
+ readonly title: "Rooms Info — payload";
493
+ readonly description: "A member asks a room's host what it holds about the room: its tier, its current epoch, the limits the host applies to its files, and how much of them the room and the member have used.";
494
+ readonly type: "object";
495
+ readonly additionalProperties: false;
496
+ readonly required: readonly ["roomId", "presentation"];
497
+ readonly properties: {
498
+ readonly roomId: {
499
+ readonly type: "string";
500
+ readonly description: "The room's identifier. The host verifies the presentation against credentials issued by this identifier, never against a member list of its own.";
501
+ };
502
+ readonly presentation: {
503
+ readonly $ref: "#/$defs/AuthorityPresentation";
504
+ readonly description: "Must confer the `read` action at this room's scope.";
505
+ };
506
+ readonly ext: {
507
+ readonly $ref: "#/$defs/Ext";
508
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
509
+ };
510
+ };
511
+ readonly $defs: {
512
+ readonly Response: {
513
+ readonly $anchor: "response";
514
+ readonly title: "Rooms Info — response payload";
515
+ readonly description: "Success response to rooms/info. Type https://trusttasks.org/spec/rooms/info/0.1#response.";
516
+ readonly type: "object";
517
+ readonly additionalProperties: false;
518
+ readonly required: readonly ["roomId", "visibility", "epoch", "limits", "usage"];
519
+ readonly properties: {
520
+ readonly roomId: {
521
+ readonly type: "string";
522
+ readonly description: "The room this describes, echoed so a response cannot be mistaken for another room's.";
523
+ };
524
+ readonly visibility: {
525
+ readonly $ref: "#/$defs/Visibility";
526
+ };
527
+ readonly retentionPolicy: {
528
+ readonly $ref: "#/$defs/RetentionPolicy";
529
+ readonly description: "Absent means `chained`, as everywhere in this family.";
530
+ };
531
+ readonly epoch: {
532
+ readonly type: "integer";
533
+ readonly minimum: 1;
534
+ readonly description: "The room's current epoch as the host knows it: the one a record or file must be sealed under to be accepted now.";
535
+ };
536
+ readonly limits: {
537
+ readonly $ref: "#/$defs/RoomLimits";
538
+ readonly description: "The limits the host applies to this room, after any override for the room and capped by the host-wide ceiling. `member` here is the room's default per-member allowance; the presenter's own, which may differ, is under `usage.member.limits`.";
539
+ };
540
+ readonly usage: {
541
+ readonly type: "object";
542
+ readonly additionalProperties: false;
543
+ readonly required: readonly ["room"];
544
+ readonly properties: {
545
+ readonly room: {
546
+ readonly $ref: "#/$defs/Usage";
547
+ readonly description: "The room as a whole.";
548
+ };
549
+ readonly member: {
550
+ readonly type: "object";
551
+ readonly additionalProperties: false;
552
+ readonly required: readonly ["usage", "limits"];
553
+ readonly description: "The presenter's own use and allowance: charged to the subject at the root of the presented chain, so an agent sees its member's figures. Absent on a `private` room, where the host does not know which member is asking.";
554
+ readonly properties: {
555
+ readonly usage: {
556
+ readonly $ref: "#/$defs/Usage";
557
+ };
558
+ readonly limits: {
559
+ readonly $ref: "#/$defs/ScopeLimits";
560
+ readonly description: "The limits that apply to this member in this room: an override set for them by the host's administrators if there is one, else the room's per-member default.";
561
+ };
562
+ };
563
+ };
564
+ };
565
+ };
566
+ readonly ext: {
567
+ readonly $ref: "#/$defs/Ext";
568
+ };
569
+ };
570
+ };
571
+ readonly Ext: {
572
+ readonly title: "Ext";
573
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
574
+ readonly type: "object";
575
+ readonly minProperties: 1;
576
+ readonly additionalProperties: true;
577
+ readonly propertyNames: {
578
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
579
+ };
580
+ };
581
+ readonly ScopeLimits: {
582
+ readonly title: "ScopeLimits";
583
+ readonly type: "object";
584
+ readonly additionalProperties: false;
585
+ readonly description: "Limits at one scope. Every member is optional: an absent member means the scope sets no limit of that kind, and the next wider scope's limit, or the host's ceiling, governs. All sizes are ciphertext bytes.";
586
+ readonly properties: {
587
+ readonly maxFiles: {
588
+ readonly type: "integer";
589
+ readonly minimum: 0;
590
+ readonly description: "The number of committed blobs the scope may hold. 0 refuses every upload at this scope.";
591
+ };
592
+ readonly maxFileBytes: {
593
+ readonly type: "integer";
594
+ readonly minimum: 0;
595
+ readonly maximum: 1073741824;
596
+ readonly description: "The largest single blob the scope accepts. Never above 1 GiB, the transfer ceiling (BlobManifest).";
597
+ };
598
+ readonly maxBytes: {
599
+ readonly type: "integer";
600
+ readonly minimum: 0;
601
+ readonly description: "The total size of the committed and reserved blobs the scope may hold.";
602
+ };
603
+ };
604
+ };
605
+ readonly Usage: {
606
+ readonly title: "Usage";
607
+ readonly type: "object";
608
+ readonly additionalProperties: false;
609
+ readonly required: readonly ["files", "bytes", "reservedBytes"];
610
+ readonly description: "What one scope holds now. Ciphertext bytes throughout.";
611
+ readonly properties: {
612
+ readonly files: {
613
+ readonly type: "integer";
614
+ readonly minimum: 0;
615
+ readonly description: "Committed blobs that are not orphaned.";
616
+ };
617
+ readonly bytes: {
618
+ readonly type: "integer";
619
+ readonly minimum: 0;
620
+ readonly description: "Their total size. A blob stops counting the moment it is orphaned (its last record dropped it or was retracted), not when the host finally deletes it, so a member who deletes a file has the room back at once.";
621
+ };
622
+ readonly reservedBytes: {
623
+ readonly type: "integer";
624
+ readonly minimum: 0;
625
+ readonly description: "Bytes reserved by uploads begun and not yet committed, aborted or expired. Counted against `maxBytes`, so two concurrent uploads cannot both fit under a limit only one of them fits.";
626
+ };
627
+ readonly reservedFiles: {
628
+ readonly type: "integer";
629
+ readonly minimum: 0;
630
+ readonly description: "Uploads begun and not yet committed, aborted or expired. Counted against `maxFiles`.";
631
+ };
632
+ };
633
+ };
634
+ readonly RoomLimits: {
635
+ readonly title: "RoomLimits";
636
+ readonly type: "object";
637
+ readonly additionalProperties: false;
638
+ readonly required: readonly ["filesEnabled"];
639
+ readonly description: "How much a host is willing to store for one room, at the room and per member. A hosting decision, set by the host and never by anything in the room's credentials. An upload must fit every scope at once: the object against the smallest `maxFileBytes` that applies, and the member and the room with the file added.";
640
+ readonly properties: {
641
+ readonly filesEnabled: {
642
+ readonly type: "boolean";
643
+ readonly description: "False refuses every rooms/blobs/* upload for the room. Reads of blobs already stored continue.";
644
+ };
645
+ readonly room: {
646
+ readonly $ref: "#/$defs/ScopeLimits";
647
+ readonly description: "Limits on the room as a whole.";
648
+ };
649
+ readonly member: {
650
+ readonly $ref: "#/$defs/ScopeLimits";
651
+ readonly description: "Limits on each member's own uploads in this room, unless that member has an override. A member is the subject at the root of the authority chain they present, never the key that signed, so an agent acting on an attenuated chain spends its member's allowance. Not applied on a `private` room, where the host cannot tell members apart; the room and object limits still hold there.";
652
+ };
653
+ };
654
+ };
655
+ readonly RetentionPolicy: {
656
+ readonly title: "RetentionPolicy";
657
+ readonly type: "string";
658
+ readonly enum: readonly ["chained", "fromJoin"];
659
+ readonly 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.";
660
+ readonly $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.";
661
+ };
662
+ readonly Visibility: {
663
+ readonly title: "Visibility";
664
+ readonly type: "string";
665
+ readonly enum: readonly ["open", "attributed", "private"];
666
+ readonly 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.";
667
+ };
668
+ readonly AuthorityPresentation: {
669
+ readonly title: "AuthorityPresentation";
670
+ readonly type: "object";
671
+ readonly additionalProperties: false;
672
+ readonly required: readonly ["membership", "authority"];
673
+ readonly 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.";
674
+ readonly properties: {
675
+ readonly membership: {
676
+ readonly type: "string";
677
+ readonly 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.";
678
+ };
679
+ readonly authority: {
680
+ readonly type: "array";
681
+ readonly minItems: 1;
682
+ readonly maxItems: 8;
683
+ readonly items: {
684
+ readonly type: "string";
685
+ };
686
+ readonly 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.";
687
+ };
688
+ readonly subjectBinding: {
689
+ readonly type: "string";
690
+ readonly 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.";
691
+ };
692
+ };
693
+ };
694
+ };
695
+ };
696
+ };
697
+ /**
698
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
699
+ * tracks the *issuer* party's requirement because a response swaps the
700
+ * parties (§7.3 item 5).
701
+ */
702
+ export declare const RESPONSE_SPEC: {
703
+ readonly typeUri: "https://trusttasks.org/spec/rooms/info/0.1#response";
704
+ readonly isBearer: false;
705
+ readonly isProofRequired: false;
706
+ readonly isRecipientRequired: true;
707
+ readonly isIssuedAtRequired: false;
708
+ readonly payloadSchema: {
709
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
710
+ readonly $ref: "#/$defs/Response";
711
+ readonly $defs: {
712
+ readonly Response: {
713
+ readonly $anchor: "response";
714
+ readonly title: "Rooms Info — response payload";
715
+ readonly description: "Success response to rooms/info. Type https://trusttasks.org/spec/rooms/info/0.1#response.";
716
+ readonly type: "object";
717
+ readonly additionalProperties: false;
718
+ readonly required: readonly ["roomId", "visibility", "epoch", "limits", "usage"];
719
+ readonly properties: {
720
+ readonly roomId: {
721
+ readonly type: "string";
722
+ readonly description: "The room this describes, echoed so a response cannot be mistaken for another room's.";
723
+ };
724
+ readonly visibility: {
725
+ readonly $ref: "#/$defs/Visibility";
726
+ };
727
+ readonly retentionPolicy: {
728
+ readonly $ref: "#/$defs/RetentionPolicy";
729
+ readonly description: "Absent means `chained`, as everywhere in this family.";
730
+ };
731
+ readonly epoch: {
732
+ readonly type: "integer";
733
+ readonly minimum: 1;
734
+ readonly description: "The room's current epoch as the host knows it: the one a record or file must be sealed under to be accepted now.";
735
+ };
736
+ readonly limits: {
737
+ readonly $ref: "#/$defs/RoomLimits";
738
+ readonly description: "The limits the host applies to this room, after any override for the room and capped by the host-wide ceiling. `member` here is the room's default per-member allowance; the presenter's own, which may differ, is under `usage.member.limits`.";
739
+ };
740
+ readonly usage: {
741
+ readonly type: "object";
742
+ readonly additionalProperties: false;
743
+ readonly required: readonly ["room"];
744
+ readonly properties: {
745
+ readonly room: {
746
+ readonly $ref: "#/$defs/Usage";
747
+ readonly description: "The room as a whole.";
748
+ };
749
+ readonly member: {
750
+ readonly type: "object";
751
+ readonly additionalProperties: false;
752
+ readonly required: readonly ["usage", "limits"];
753
+ readonly description: "The presenter's own use and allowance: charged to the subject at the root of the presented chain, so an agent sees its member's figures. Absent on a `private` room, where the host does not know which member is asking.";
754
+ readonly properties: {
755
+ readonly usage: {
756
+ readonly $ref: "#/$defs/Usage";
757
+ };
758
+ readonly limits: {
759
+ readonly $ref: "#/$defs/ScopeLimits";
760
+ readonly description: "The limits that apply to this member in this room: an override set for them by the host's administrators if there is one, else the room's per-member default.";
761
+ };
762
+ };
763
+ };
764
+ };
765
+ };
766
+ readonly ext: {
767
+ readonly $ref: "#/$defs/Ext";
768
+ };
769
+ };
770
+ };
771
+ readonly Ext: {
772
+ readonly title: "Ext";
773
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
774
+ readonly type: "object";
775
+ readonly minProperties: 1;
776
+ readonly additionalProperties: true;
777
+ readonly propertyNames: {
778
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
779
+ };
780
+ };
781
+ readonly ScopeLimits: {
782
+ readonly title: "ScopeLimits";
783
+ readonly type: "object";
784
+ readonly additionalProperties: false;
785
+ readonly description: "Limits at one scope. Every member is optional: an absent member means the scope sets no limit of that kind, and the next wider scope's limit, or the host's ceiling, governs. All sizes are ciphertext bytes.";
786
+ readonly properties: {
787
+ readonly maxFiles: {
788
+ readonly type: "integer";
789
+ readonly minimum: 0;
790
+ readonly description: "The number of committed blobs the scope may hold. 0 refuses every upload at this scope.";
791
+ };
792
+ readonly maxFileBytes: {
793
+ readonly type: "integer";
794
+ readonly minimum: 0;
795
+ readonly maximum: 1073741824;
796
+ readonly description: "The largest single blob the scope accepts. Never above 1 GiB, the transfer ceiling (BlobManifest).";
797
+ };
798
+ readonly maxBytes: {
799
+ readonly type: "integer";
800
+ readonly minimum: 0;
801
+ readonly description: "The total size of the committed and reserved blobs the scope may hold.";
802
+ };
803
+ };
804
+ };
805
+ readonly Usage: {
806
+ readonly title: "Usage";
807
+ readonly type: "object";
808
+ readonly additionalProperties: false;
809
+ readonly required: readonly ["files", "bytes", "reservedBytes"];
810
+ readonly description: "What one scope holds now. Ciphertext bytes throughout.";
811
+ readonly properties: {
812
+ readonly files: {
813
+ readonly type: "integer";
814
+ readonly minimum: 0;
815
+ readonly description: "Committed blobs that are not orphaned.";
816
+ };
817
+ readonly bytes: {
818
+ readonly type: "integer";
819
+ readonly minimum: 0;
820
+ readonly description: "Their total size. A blob stops counting the moment it is orphaned (its last record dropped it or was retracted), not when the host finally deletes it, so a member who deletes a file has the room back at once.";
821
+ };
822
+ readonly reservedBytes: {
823
+ readonly type: "integer";
824
+ readonly minimum: 0;
825
+ readonly description: "Bytes reserved by uploads begun and not yet committed, aborted or expired. Counted against `maxBytes`, so two concurrent uploads cannot both fit under a limit only one of them fits.";
826
+ };
827
+ readonly reservedFiles: {
828
+ readonly type: "integer";
829
+ readonly minimum: 0;
830
+ readonly description: "Uploads begun and not yet committed, aborted or expired. Counted against `maxFiles`.";
831
+ };
832
+ };
833
+ };
834
+ readonly RoomLimits: {
835
+ readonly title: "RoomLimits";
836
+ readonly type: "object";
837
+ readonly additionalProperties: false;
838
+ readonly required: readonly ["filesEnabled"];
839
+ readonly description: "How much a host is willing to store for one room, at the room and per member. A hosting decision, set by the host and never by anything in the room's credentials. An upload must fit every scope at once: the object against the smallest `maxFileBytes` that applies, and the member and the room with the file added.";
840
+ readonly properties: {
841
+ readonly filesEnabled: {
842
+ readonly type: "boolean";
843
+ readonly description: "False refuses every rooms/blobs/* upload for the room. Reads of blobs already stored continue.";
844
+ };
845
+ readonly room: {
846
+ readonly $ref: "#/$defs/ScopeLimits";
847
+ readonly description: "Limits on the room as a whole.";
848
+ };
849
+ readonly member: {
850
+ readonly $ref: "#/$defs/ScopeLimits";
851
+ readonly description: "Limits on each member's own uploads in this room, unless that member has an override. A member is the subject at the root of the authority chain they present, never the key that signed, so an agent acting on an attenuated chain spends its member's allowance. Not applied on a `private` room, where the host cannot tell members apart; the room and object limits still hold there.";
852
+ };
853
+ };
854
+ };
855
+ readonly RetentionPolicy: {
856
+ readonly title: "RetentionPolicy";
857
+ readonly type: "string";
858
+ readonly enum: readonly ["chained", "fromJoin"];
859
+ readonly 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.";
860
+ readonly $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.";
861
+ };
862
+ readonly Visibility: {
863
+ readonly title: "Visibility";
864
+ readonly type: "string";
865
+ readonly enum: readonly ["open", "attributed", "private"];
866
+ readonly 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.";
867
+ };
868
+ readonly AuthorityPresentation: {
869
+ readonly title: "AuthorityPresentation";
870
+ readonly type: "object";
871
+ readonly additionalProperties: false;
872
+ readonly required: readonly ["membership", "authority"];
873
+ readonly 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.";
874
+ readonly properties: {
875
+ readonly membership: {
876
+ readonly type: "string";
877
+ readonly 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.";
878
+ };
879
+ readonly authority: {
880
+ readonly type: "array";
881
+ readonly minItems: 1;
882
+ readonly maxItems: 8;
883
+ readonly items: {
884
+ readonly type: "string";
885
+ };
886
+ readonly 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.";
887
+ };
888
+ readonly subjectBinding: {
889
+ readonly type: "string";
890
+ readonly 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.";
891
+ };
892
+ };
893
+ };
894
+ };
895
+ };
896
+ };
897
+ //# sourceMappingURL=payload.d.ts.map