@openvtc/trust-tasks 0.23.7 → 0.23.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/CHANGELOG.md +65 -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/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts +69 -8
  239. package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts.map +1 -1
  240. package/dist/vtc/vetting/hidden/publish/0.1/payload.js +31 -0
  241. package/dist/vtc/vetting/hidden/publish/0.1/payload.js.map +1 -1
  242. package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts +62 -8
  243. package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts.map +1 -1
  244. package/dist/vtc/vetting/hidden/show/0.1/payload.js +28 -0
  245. package/dist/vtc/vetting/hidden/show/0.1/payload.js.map +1 -1
  246. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.d.ts +3 -3
  247. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.js +1 -1
  248. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.js.map +1 -1
  249. package/package.json +1 -1
  250. package/src/_shared/components.ts +2539 -4
  251. package/src/auth/oob/_shared/0.1/oob.ts +17 -0
  252. package/src/auth/oob/cancel/0.1/payload.ts +188 -0
  253. package/src/auth/oob/claim/0.1/payload.ts +306 -0
  254. package/src/auth/oob/grant/0.1/payload.ts +159 -0
  255. package/src/auth/oob/identify/0.1/payload.ts +110 -0
  256. package/src/auth/oob/prove/0.1/payload.ts +473 -0
  257. package/src/auth/oob/redeem/0.1/payload.ts +248 -0
  258. package/src/auth/oob/request/0.1/payload.ts +230 -0
  259. package/src/auth/oob/respond/0.1/payload.ts +178 -0
  260. package/src/device/list/0.1/payload.ts +6 -2
  261. package/src/device/list/0.2/payload.ts +6 -2
  262. package/src/device/register/0.1/payload.ts +6 -2
  263. package/src/device/register/0.2/payload.ts +6 -2
  264. package/src/external/_shared/0.1/accounts.ts +19 -0
  265. package/src/external/accounts/archive/0.1/payload.ts +1770 -0
  266. package/src/external/accounts/bindings/grant/0.1/payload.ts +1766 -0
  267. package/src/external/accounts/bindings/revoke/0.1/payload.ts +1778 -0
  268. package/src/external/accounts/create/0.1/payload.ts +1777 -0
  269. package/src/external/accounts/delete/0.1/payload.ts +211 -0
  270. package/src/external/accounts/get/0.1/payload.ts +1761 -0
  271. package/src/external/accounts/keys/rotate/0.1/payload.ts +1947 -0
  272. package/src/external/accounts/list/0.1/payload.ts +1834 -0
  273. package/src/external/accounts/probe/0.1/payload.ts +337 -0
  274. package/src/external/accounts/restore/0.1/payload.ts +1770 -0
  275. package/src/external/accounts/resume/0.1/payload.ts +1770 -0
  276. package/src/external/accounts/secret/set/0.1/payload.ts +248 -0
  277. package/src/external/accounts/setup/0.1/payload.ts +355 -0
  278. package/src/external/accounts/suspend/0.1/payload.ts +1770 -0
  279. package/src/external/accounts/update/0.1/payload.ts +1771 -0
  280. package/src/external/credentials/issue/0.1/payload.ts +365 -0
  281. package/src/external/sign/0.1/payload.ts +234 -0
  282. package/src/index.ts +53 -0
  283. package/src/rooms/_shared/0.1/blobs.ts +17 -0
  284. package/src/rooms/_shared/0.1/room.ts +1 -1
  285. package/src/rooms/blobs/chunk/0.1/payload.ts +251 -0
  286. package/src/rooms/blobs/get/0.1/payload.ts +463 -0
  287. package/src/rooms/blobs/upload/abort/0.1/payload.ts +187 -0
  288. package/src/rooms/blobs/upload/begin/0.1/payload.ts +491 -0
  289. package/src/rooms/blobs/upload/chunk/0.1/payload.ts +304 -0
  290. package/src/rooms/blobs/upload/commit/0.1/payload.ts +224 -0
  291. package/src/rooms/info/0.1/payload.ts +572 -0
  292. package/src/rooms/keys/file-key/0.1/payload.ts +224 -0
  293. package/src/rooms/records/get/0.2/payload.ts +614 -0
  294. package/src/rooms/records/list/0.2/payload.ts +533 -0
  295. package/src/rooms/records/put/0.2/payload.ts +441 -0
  296. package/src/rooms/usage/0.1/payload.ts +499 -0
  297. package/src/vtc/_shared/0.1/room-storage.ts +17 -0
  298. package/src/vtc/rooms/get/0.1/payload.ts +1275 -0
  299. package/src/vtc/rooms/limits/set/0.1/payload.ts +555 -0
  300. package/src/vtc/rooms/storage/assign/0.1/payload.ts +237 -0
  301. package/src/vtc/rooms/storage/migrate/0.1/payload.ts +317 -0
  302. package/src/vtc/rooms/usage/0.1/payload.ts +568 -0
  303. package/src/vtc/storage/configs/create/0.1/payload.ts +784 -0
  304. package/src/vtc/storage/configs/get/0.1/payload.ts +1054 -0
  305. package/src/vtc/storage/configs/list/0.1/payload.ts +1121 -0
  306. package/src/vtc/storage/configs/probe/0.1/payload.ts +329 -0
  307. package/src/vtc/storage/configs/retire/0.1/payload.ts +211 -0
  308. package/src/vtc/storage/configs/update/0.1/payload.ts +783 -0
  309. package/src/vtc/storage/credentials/set/0.1/payload.ts +339 -0
  310. package/src/vtc/vetting/hidden/publish/0.1/payload.ts +39 -0
  311. package/src/vtc/vetting/hidden/show/0.1/payload.ts +35 -0
  312. package/src/vtc/vetting/vetters/pcs-tokens/0.1/payload.ts +2 -2
@@ -0,0 +1,572 @@
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
+
6
+ import type { AuthorityPresentation, Ext, RetentionPolicy, RoomLimits, ScopeLimits, Usage, Visibility } from "../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * 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.
11
+ */
12
+ export interface RoomsInfoPayload {
13
+ /**
14
+ * The room's identifier. The host verifies the presentation against credentials issued by this identifier, never against a member list of its own.
15
+ */
16
+ roomId: string;
17
+ /**
18
+ * Must confer the `read` action at this room's scope.
19
+ */
20
+ presentation: AuthorityPresentation;
21
+ /**
22
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
23
+ */
24
+ ext?: Ext;
25
+ }
26
+ /**
27
+ * Success response to rooms/info. Type https://trusttasks.org/spec/rooms/info/0.1#response.
28
+ */
29
+ export interface RoomsInfoResponsePayload {
30
+ /**
31
+ * The room this describes, echoed so a response cannot be mistaken for another room's.
32
+ */
33
+ roomId: string;
34
+ visibility: Visibility;
35
+ /**
36
+ * Absent means `chained`, as everywhere in this family.
37
+ */
38
+ retentionPolicy?: RetentionPolicy;
39
+ /**
40
+ * The room's current epoch as the host knows it: the one a record or file must be sealed under to be accepted now.
41
+ */
42
+ epoch: number;
43
+ /**
44
+ * 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`.
45
+ */
46
+ limits: RoomLimits;
47
+ usage: {
48
+ /**
49
+ * The room as a whole.
50
+ */
51
+ room: Usage;
52
+ /**
53
+ * 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.
54
+ */
55
+ member?: {
56
+ usage: Usage;
57
+ /**
58
+ * 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.
59
+ */
60
+ limits: ScopeLimits;
61
+ };
62
+ };
63
+ ext?: Ext;
64
+ }
65
+
66
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
67
+ export type { AuthorityPresentation, Ext, RetentionPolicy, RoomLimits, ScopeLimits, Usage, Visibility };
68
+
69
+ /** Trust Task type URI. */
70
+ export const TYPE_URI = "https://trusttasks.org/spec/rooms/info/0.1" as const;
71
+
72
+ /** Stable alias for this specification's request payload shape. */
73
+ export type Payload = RoomsInfoPayload;
74
+
75
+ /** Trust Task response type URI (request type URI + "#response"). */
76
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/info/0.1#response" as const;
77
+
78
+ /** Stable alias for this specification's success-response payload shape. */
79
+ export type Response = RoomsInfoResponsePayload;
80
+
81
+ /**
82
+ * This specification's payload schema, as a value.
83
+ *
84
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
85
+ * rather than only as a `.json` file because TypeScript types are erased
86
+ * at runtime: without a schema a consumer has nothing to validate, and
87
+ * every REQUIRED payload member is optional in practice. Cross-file
88
+ * `$ref`s are already inlined, so it needs no resolver.
89
+ */
90
+ export const PAYLOAD_SCHEMA = {
91
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
92
+ "$id": "https://trusttasks.org/spec/rooms/info/0.1",
93
+ "title": "Rooms Info — payload",
94
+ "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.",
95
+ "type": "object",
96
+ "additionalProperties": false,
97
+ "required": [
98
+ "roomId",
99
+ "presentation"
100
+ ],
101
+ "properties": {
102
+ "roomId": {
103
+ "type": "string",
104
+ "description": "The room's identifier. The host verifies the presentation against credentials issued by this identifier, never against a member list of its own."
105
+ },
106
+ "presentation": {
107
+ "$ref": "#/$defs/AuthorityPresentation",
108
+ "description": "Must confer the `read` action at this room's scope."
109
+ },
110
+ "ext": {
111
+ "$ref": "#/$defs/Ext",
112
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
113
+ }
114
+ },
115
+ "$defs": {
116
+ "Response": {
117
+ "$anchor": "response",
118
+ "title": "Rooms Info — response payload",
119
+ "description": "Success response to rooms/info. Type https://trusttasks.org/spec/rooms/info/0.1#response.",
120
+ "type": "object",
121
+ "additionalProperties": false,
122
+ "required": [
123
+ "roomId",
124
+ "visibility",
125
+ "epoch",
126
+ "limits",
127
+ "usage"
128
+ ],
129
+ "properties": {
130
+ "roomId": {
131
+ "type": "string",
132
+ "description": "The room this describes, echoed so a response cannot be mistaken for another room's."
133
+ },
134
+ "visibility": {
135
+ "$ref": "#/$defs/Visibility"
136
+ },
137
+ "retentionPolicy": {
138
+ "$ref": "#/$defs/RetentionPolicy",
139
+ "description": "Absent means `chained`, as everywhere in this family."
140
+ },
141
+ "epoch": {
142
+ "type": "integer",
143
+ "minimum": 1,
144
+ "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."
145
+ },
146
+ "limits": {
147
+ "$ref": "#/$defs/RoomLimits",
148
+ "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`."
149
+ },
150
+ "usage": {
151
+ "type": "object",
152
+ "additionalProperties": false,
153
+ "required": [
154
+ "room"
155
+ ],
156
+ "properties": {
157
+ "room": {
158
+ "$ref": "#/$defs/Usage",
159
+ "description": "The room as a whole."
160
+ },
161
+ "member": {
162
+ "type": "object",
163
+ "additionalProperties": false,
164
+ "required": [
165
+ "usage",
166
+ "limits"
167
+ ],
168
+ "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.",
169
+ "properties": {
170
+ "usage": {
171
+ "$ref": "#/$defs/Usage"
172
+ },
173
+ "limits": {
174
+ "$ref": "#/$defs/ScopeLimits",
175
+ "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."
176
+ }
177
+ }
178
+ }
179
+ }
180
+ },
181
+ "ext": {
182
+ "$ref": "#/$defs/Ext"
183
+ }
184
+ }
185
+ },
186
+ "Ext": {
187
+ "title": "Ext",
188
+ "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.",
189
+ "type": "object",
190
+ "minProperties": 1,
191
+ "additionalProperties": true,
192
+ "propertyNames": {
193
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
194
+ }
195
+ },
196
+ "ScopeLimits": {
197
+ "title": "ScopeLimits",
198
+ "type": "object",
199
+ "additionalProperties": false,
200
+ "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.",
201
+ "properties": {
202
+ "maxFiles": {
203
+ "type": "integer",
204
+ "minimum": 0,
205
+ "description": "The number of committed blobs the scope may hold. 0 refuses every upload at this scope."
206
+ },
207
+ "maxFileBytes": {
208
+ "type": "integer",
209
+ "minimum": 0,
210
+ "maximum": 1073741824,
211
+ "description": "The largest single blob the scope accepts. Never above 1 GiB, the transfer ceiling (BlobManifest)."
212
+ },
213
+ "maxBytes": {
214
+ "type": "integer",
215
+ "minimum": 0,
216
+ "description": "The total size of the committed and reserved blobs the scope may hold."
217
+ }
218
+ }
219
+ },
220
+ "Usage": {
221
+ "title": "Usage",
222
+ "type": "object",
223
+ "additionalProperties": false,
224
+ "required": [
225
+ "files",
226
+ "bytes",
227
+ "reservedBytes"
228
+ ],
229
+ "description": "What one scope holds now. Ciphertext bytes throughout.",
230
+ "properties": {
231
+ "files": {
232
+ "type": "integer",
233
+ "minimum": 0,
234
+ "description": "Committed blobs that are not orphaned."
235
+ },
236
+ "bytes": {
237
+ "type": "integer",
238
+ "minimum": 0,
239
+ "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."
240
+ },
241
+ "reservedBytes": {
242
+ "type": "integer",
243
+ "minimum": 0,
244
+ "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."
245
+ },
246
+ "reservedFiles": {
247
+ "type": "integer",
248
+ "minimum": 0,
249
+ "description": "Uploads begun and not yet committed, aborted or expired. Counted against `maxFiles`."
250
+ }
251
+ }
252
+ },
253
+ "RoomLimits": {
254
+ "title": "RoomLimits",
255
+ "type": "object",
256
+ "additionalProperties": false,
257
+ "required": [
258
+ "filesEnabled"
259
+ ],
260
+ "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.",
261
+ "properties": {
262
+ "filesEnabled": {
263
+ "type": "boolean",
264
+ "description": "False refuses every rooms/blobs/* upload for the room. Reads of blobs already stored continue."
265
+ },
266
+ "room": {
267
+ "$ref": "#/$defs/ScopeLimits",
268
+ "description": "Limits on the room as a whole."
269
+ },
270
+ "member": {
271
+ "$ref": "#/$defs/ScopeLimits",
272
+ "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."
273
+ }
274
+ }
275
+ },
276
+ "RetentionPolicy": {
277
+ "title": "RetentionPolicy",
278
+ "type": "string",
279
+ "enum": [
280
+ "chained",
281
+ "fromJoin"
282
+ ],
283
+ "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.",
284
+ "$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."
285
+ },
286
+ "Visibility": {
287
+ "title": "Visibility",
288
+ "type": "string",
289
+ "enum": [
290
+ "open",
291
+ "attributed",
292
+ "private"
293
+ ],
294
+ "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."
295
+ },
296
+ "AuthorityPresentation": {
297
+ "title": "AuthorityPresentation",
298
+ "type": "object",
299
+ "additionalProperties": false,
300
+ "required": [
301
+ "membership",
302
+ "authority"
303
+ ],
304
+ "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.",
305
+ "properties": {
306
+ "membership": {
307
+ "type": "string",
308
+ "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."
309
+ },
310
+ "authority": {
311
+ "type": "array",
312
+ "minItems": 1,
313
+ "maxItems": 8,
314
+ "items": {
315
+ "type": "string"
316
+ },
317
+ "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."
318
+ },
319
+ "subjectBinding": {
320
+ "type": "string",
321
+ "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."
322
+ }
323
+ }
324
+ }
325
+ }
326
+ } as const;
327
+
328
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
329
+ export const RESPONSE_PAYLOAD_SCHEMA = {
330
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
331
+ "$ref": "#/$defs/Response",
332
+ "$defs": {
333
+ "Response": {
334
+ "$anchor": "response",
335
+ "title": "Rooms Info — response payload",
336
+ "description": "Success response to rooms/info. Type https://trusttasks.org/spec/rooms/info/0.1#response.",
337
+ "type": "object",
338
+ "additionalProperties": false,
339
+ "required": [
340
+ "roomId",
341
+ "visibility",
342
+ "epoch",
343
+ "limits",
344
+ "usage"
345
+ ],
346
+ "properties": {
347
+ "roomId": {
348
+ "type": "string",
349
+ "description": "The room this describes, echoed so a response cannot be mistaken for another room's."
350
+ },
351
+ "visibility": {
352
+ "$ref": "#/$defs/Visibility"
353
+ },
354
+ "retentionPolicy": {
355
+ "$ref": "#/$defs/RetentionPolicy",
356
+ "description": "Absent means `chained`, as everywhere in this family."
357
+ },
358
+ "epoch": {
359
+ "type": "integer",
360
+ "minimum": 1,
361
+ "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."
362
+ },
363
+ "limits": {
364
+ "$ref": "#/$defs/RoomLimits",
365
+ "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`."
366
+ },
367
+ "usage": {
368
+ "type": "object",
369
+ "additionalProperties": false,
370
+ "required": [
371
+ "room"
372
+ ],
373
+ "properties": {
374
+ "room": {
375
+ "$ref": "#/$defs/Usage",
376
+ "description": "The room as a whole."
377
+ },
378
+ "member": {
379
+ "type": "object",
380
+ "additionalProperties": false,
381
+ "required": [
382
+ "usage",
383
+ "limits"
384
+ ],
385
+ "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.",
386
+ "properties": {
387
+ "usage": {
388
+ "$ref": "#/$defs/Usage"
389
+ },
390
+ "limits": {
391
+ "$ref": "#/$defs/ScopeLimits",
392
+ "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."
393
+ }
394
+ }
395
+ }
396
+ }
397
+ },
398
+ "ext": {
399
+ "$ref": "#/$defs/Ext"
400
+ }
401
+ }
402
+ },
403
+ "Ext": {
404
+ "title": "Ext",
405
+ "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.",
406
+ "type": "object",
407
+ "minProperties": 1,
408
+ "additionalProperties": true,
409
+ "propertyNames": {
410
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
411
+ }
412
+ },
413
+ "ScopeLimits": {
414
+ "title": "ScopeLimits",
415
+ "type": "object",
416
+ "additionalProperties": false,
417
+ "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.",
418
+ "properties": {
419
+ "maxFiles": {
420
+ "type": "integer",
421
+ "minimum": 0,
422
+ "description": "The number of committed blobs the scope may hold. 0 refuses every upload at this scope."
423
+ },
424
+ "maxFileBytes": {
425
+ "type": "integer",
426
+ "minimum": 0,
427
+ "maximum": 1073741824,
428
+ "description": "The largest single blob the scope accepts. Never above 1 GiB, the transfer ceiling (BlobManifest)."
429
+ },
430
+ "maxBytes": {
431
+ "type": "integer",
432
+ "minimum": 0,
433
+ "description": "The total size of the committed and reserved blobs the scope may hold."
434
+ }
435
+ }
436
+ },
437
+ "Usage": {
438
+ "title": "Usage",
439
+ "type": "object",
440
+ "additionalProperties": false,
441
+ "required": [
442
+ "files",
443
+ "bytes",
444
+ "reservedBytes"
445
+ ],
446
+ "description": "What one scope holds now. Ciphertext bytes throughout.",
447
+ "properties": {
448
+ "files": {
449
+ "type": "integer",
450
+ "minimum": 0,
451
+ "description": "Committed blobs that are not orphaned."
452
+ },
453
+ "bytes": {
454
+ "type": "integer",
455
+ "minimum": 0,
456
+ "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."
457
+ },
458
+ "reservedBytes": {
459
+ "type": "integer",
460
+ "minimum": 0,
461
+ "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."
462
+ },
463
+ "reservedFiles": {
464
+ "type": "integer",
465
+ "minimum": 0,
466
+ "description": "Uploads begun and not yet committed, aborted or expired. Counted against `maxFiles`."
467
+ }
468
+ }
469
+ },
470
+ "RoomLimits": {
471
+ "title": "RoomLimits",
472
+ "type": "object",
473
+ "additionalProperties": false,
474
+ "required": [
475
+ "filesEnabled"
476
+ ],
477
+ "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.",
478
+ "properties": {
479
+ "filesEnabled": {
480
+ "type": "boolean",
481
+ "description": "False refuses every rooms/blobs/* upload for the room. Reads of blobs already stored continue."
482
+ },
483
+ "room": {
484
+ "$ref": "#/$defs/ScopeLimits",
485
+ "description": "Limits on the room as a whole."
486
+ },
487
+ "member": {
488
+ "$ref": "#/$defs/ScopeLimits",
489
+ "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."
490
+ }
491
+ }
492
+ },
493
+ "RetentionPolicy": {
494
+ "title": "RetentionPolicy",
495
+ "type": "string",
496
+ "enum": [
497
+ "chained",
498
+ "fromJoin"
499
+ ],
500
+ "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.",
501
+ "$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."
502
+ },
503
+ "Visibility": {
504
+ "title": "Visibility",
505
+ "type": "string",
506
+ "enum": [
507
+ "open",
508
+ "attributed",
509
+ "private"
510
+ ],
511
+ "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."
512
+ },
513
+ "AuthorityPresentation": {
514
+ "title": "AuthorityPresentation",
515
+ "type": "object",
516
+ "additionalProperties": false,
517
+ "required": [
518
+ "membership",
519
+ "authority"
520
+ ],
521
+ "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.",
522
+ "properties": {
523
+ "membership": {
524
+ "type": "string",
525
+ "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."
526
+ },
527
+ "authority": {
528
+ "type": "array",
529
+ "minItems": 1,
530
+ "maxItems": 8,
531
+ "items": {
532
+ "type": "string"
533
+ },
534
+ "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."
535
+ },
536
+ "subjectBinding": {
537
+ "type": "string",
538
+ "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."
539
+ }
540
+ }
541
+ }
542
+ }
543
+ } as const;
544
+
545
+ /**
546
+ * SPEC.md §7.2 policy for the request variant, from this specification's
547
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
548
+ * per-specification and cannot be derived from the document alone, and
549
+ * item 2 needs the schema this carries.
550
+ */
551
+ export const SPEC = {
552
+ typeUri: TYPE_URI,
553
+ isBearer: false,
554
+ isProofRequired: false,
555
+ isRecipientRequired: true,
556
+ isIssuedAtRequired: false,
557
+ payloadSchema: PAYLOAD_SCHEMA,
558
+ } as const;
559
+
560
+ /**
561
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
562
+ * tracks the *issuer* party's requirement because a response swaps the
563
+ * parties (§7.3 item 5).
564
+ */
565
+ export const RESPONSE_SPEC = {
566
+ typeUri: RESPONSE_TYPE_URI,
567
+ isBearer: false,
568
+ isProofRequired: false,
569
+ isRecipientRequired: true,
570
+ isIssuedAtRequired: false,
571
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
572
+ } as const;