@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,248 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/oob/redeem/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, RequestId } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * The starter turns an approved out-of-band request into the outcome its purpose defines — for `login`, a session bound to the starter key. Issued and signed by the starter key; held as a long poll until the request is approved. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface AuthOOBRedeemPayload {
13
+ requestId: RequestId;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * For `login`: who is now signed in, for the starter's "Continue as …?" confirmation. Never tokens: over HTTPS the session itself is delivered as HttpOnly cookies.
18
+ */
19
+ export interface AuthOOBRedeemResponsePayload {
20
+ /**
21
+ * The approving DID — the grant's issuer — now the session's subject.
22
+ */
23
+ subject: string;
24
+ /**
25
+ * A name for the signed-in identity, for the confirmation step. Untrusted wherever rendered.
26
+ */
27
+ displayName: string;
28
+ /**
29
+ * When the session ends, as integer UTC epoch seconds: the earlier of the grant's `notAfter` and the service's session limit.
30
+ */
31
+ notAfter: number;
32
+ /**
33
+ * Authentication Methods References (RFC 8176) for the session. For this family: `["did", "oob", "uv"]`.
34
+ *
35
+ * @minItems 1
36
+ */
37
+ amr: [string, ...string[]];
38
+ ext?: Ext;
39
+ }
40
+
41
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
42
+ export type { Ext, RequestId };
43
+
44
+ /** Trust Task type URI. */
45
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/oob/redeem/0.1" as const;
46
+
47
+ /** Stable alias for this specification's request payload shape. */
48
+ export type Payload = AuthOOBRedeemPayload;
49
+
50
+ /** Trust Task response type URI (request type URI + "#response"). */
51
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/oob/redeem/0.1#response" as const;
52
+
53
+ /** Stable alias for this specification's success-response payload shape. */
54
+ export type Response = AuthOOBRedeemResponsePayload;
55
+
56
+ /**
57
+ * This specification's payload schema, as a value.
58
+ *
59
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
60
+ * rather than only as a `.json` file because TypeScript types are erased
61
+ * at runtime: without a schema a consumer has nothing to validate, and
62
+ * every REQUIRED payload member is optional in practice. Cross-file
63
+ * `$ref`s are already inlined, so it needs no resolver.
64
+ */
65
+ export const PAYLOAD_SCHEMA = {
66
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
67
+ "$id": "https://trusttasks.org/spec/auth/oob/redeem/0.1",
68
+ "title": "Auth — OOB Redeem — payload",
69
+ "description": "The starter turns an approved out-of-band request into the outcome its purpose defines — for `login`, a session bound to the starter key. Issued and signed by the starter key; held as a long poll until the request is approved. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "required": [
73
+ "requestId"
74
+ ],
75
+ "properties": {
76
+ "requestId": {
77
+ "$ref": "#/$defs/RequestId"
78
+ },
79
+ "ext": {
80
+ "$ref": "#/$defs/Ext"
81
+ }
82
+ },
83
+ "$defs": {
84
+ "Response": {
85
+ "$anchor": "response",
86
+ "title": "Auth — OOB Redeem — response payload",
87
+ "description": "For `login`: who is now signed in, for the starter's \"Continue as …?\" confirmation. Never tokens: over HTTPS the session itself is delivered as HttpOnly cookies.",
88
+ "type": "object",
89
+ "additionalProperties": false,
90
+ "required": [
91
+ "subject",
92
+ "displayName",
93
+ "notAfter",
94
+ "amr"
95
+ ],
96
+ "properties": {
97
+ "subject": {
98
+ "type": "string",
99
+ "pattern": "^did:",
100
+ "minLength": 5,
101
+ "maxLength": 2048,
102
+ "description": "The approving DID — the grant's issuer — now the session's subject."
103
+ },
104
+ "displayName": {
105
+ "type": "string",
106
+ "minLength": 1,
107
+ "maxLength": 128,
108
+ "description": "A name for the signed-in identity, for the confirmation step. Untrusted wherever rendered."
109
+ },
110
+ "notAfter": {
111
+ "type": "integer",
112
+ "minimum": 0,
113
+ "description": "When the session ends, as integer UTC epoch seconds: the earlier of the grant's `notAfter` and the service's session limit."
114
+ },
115
+ "amr": {
116
+ "type": "array",
117
+ "minItems": 1,
118
+ "items": {
119
+ "type": "string",
120
+ "minLength": 1
121
+ },
122
+ "description": "Authentication Methods References (RFC 8176) for the session. For this family: `[\"did\", \"oob\", \"uv\"]`."
123
+ },
124
+ "ext": {
125
+ "$ref": "#/$defs/Ext"
126
+ }
127
+ }
128
+ },
129
+ "Ext": {
130
+ "title": "Ext",
131
+ "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.",
132
+ "type": "object",
133
+ "minProperties": 1,
134
+ "additionalProperties": true,
135
+ "propertyNames": {
136
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
137
+ }
138
+ },
139
+ "RequestId": {
140
+ "title": "RequestId",
141
+ "type": "string",
142
+ "minLength": 22,
143
+ "maxLength": 43,
144
+ "pattern": "^[A-Za-z0-9_-]{22,43}$",
145
+ "description": "The service-generated handle of one request: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is RECOMMENDED). It is also the nonce of the exchange, so the family needs no separate challenge, and it is the `_id` of the trigger link (VTI-LNK-033). Compared as a string. It confers no authority on its holder."
146
+ }
147
+ }
148
+ } as const;
149
+
150
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
151
+ export const RESPONSE_PAYLOAD_SCHEMA = {
152
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
153
+ "$ref": "#/$defs/Response",
154
+ "$defs": {
155
+ "Response": {
156
+ "$anchor": "response",
157
+ "title": "Auth — OOB Redeem — response payload",
158
+ "description": "For `login`: who is now signed in, for the starter's \"Continue as …?\" confirmation. Never tokens: over HTTPS the session itself is delivered as HttpOnly cookies.",
159
+ "type": "object",
160
+ "additionalProperties": false,
161
+ "required": [
162
+ "subject",
163
+ "displayName",
164
+ "notAfter",
165
+ "amr"
166
+ ],
167
+ "properties": {
168
+ "subject": {
169
+ "type": "string",
170
+ "pattern": "^did:",
171
+ "minLength": 5,
172
+ "maxLength": 2048,
173
+ "description": "The approving DID — the grant's issuer — now the session's subject."
174
+ },
175
+ "displayName": {
176
+ "type": "string",
177
+ "minLength": 1,
178
+ "maxLength": 128,
179
+ "description": "A name for the signed-in identity, for the confirmation step. Untrusted wherever rendered."
180
+ },
181
+ "notAfter": {
182
+ "type": "integer",
183
+ "minimum": 0,
184
+ "description": "When the session ends, as integer UTC epoch seconds: the earlier of the grant's `notAfter` and the service's session limit."
185
+ },
186
+ "amr": {
187
+ "type": "array",
188
+ "minItems": 1,
189
+ "items": {
190
+ "type": "string",
191
+ "minLength": 1
192
+ },
193
+ "description": "Authentication Methods References (RFC 8176) for the session. For this family: `[\"did\", \"oob\", \"uv\"]`."
194
+ },
195
+ "ext": {
196
+ "$ref": "#/$defs/Ext"
197
+ }
198
+ }
199
+ },
200
+ "Ext": {
201
+ "title": "Ext",
202
+ "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.",
203
+ "type": "object",
204
+ "minProperties": 1,
205
+ "additionalProperties": true,
206
+ "propertyNames": {
207
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
208
+ }
209
+ },
210
+ "RequestId": {
211
+ "title": "RequestId",
212
+ "type": "string",
213
+ "minLength": 22,
214
+ "maxLength": 43,
215
+ "pattern": "^[A-Za-z0-9_-]{22,43}$",
216
+ "description": "The service-generated handle of one request: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is RECOMMENDED). It is also the nonce of the exchange, so the family needs no separate challenge, and it is the `_id` of the trigger link (VTI-LNK-033). Compared as a string. It confers no authority on its holder."
217
+ }
218
+ }
219
+ } as const;
220
+
221
+ /**
222
+ * SPEC.md §7.2 policy for the request variant, from this specification's
223
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
224
+ * per-specification and cannot be derived from the document alone, and
225
+ * item 2 needs the schema this carries.
226
+ */
227
+ export const SPEC = {
228
+ typeUri: TYPE_URI,
229
+ isBearer: false,
230
+ isProofRequired: true,
231
+ isRecipientRequired: true,
232
+ isIssuedAtRequired: true,
233
+ payloadSchema: PAYLOAD_SCHEMA,
234
+ } as const;
235
+
236
+ /**
237
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
238
+ * tracks the *issuer* party's requirement because a response swaps the
239
+ * parties (§7.3 item 5).
240
+ */
241
+ export const RESPONSE_SPEC = {
242
+ typeUri: RESPONSE_TYPE_URI,
243
+ isBearer: false,
244
+ isProofRequired: true,
245
+ isRecipientRequired: true,
246
+ isIssuedAtRequired: true,
247
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
248
+ } as const;
@@ -0,0 +1,230 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/oob/request/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, Mode, Purpose, RequestId } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A starter asks a service to open an out-of-band request that an approver will decide on another device. The document is issued and signed by the starter's fresh Ed25519 key, which is fixed for the life of the request. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface AuthOOBRequestPayload {
13
+ purpose: Purpose;
14
+ mode: Mode;
15
+ ext?: Ext;
16
+ }
17
+ /**
18
+ * The handle of the new request and its claim deadline. The starter builds the trigger link from these and the service's DID.
19
+ */
20
+ export interface AuthOOBRequestResponsePayload {
21
+ requestId: RequestId;
22
+ /**
23
+ * The instant by which the request must be claimed, as integer UTC epoch seconds — the same unit as the trigger link's `_exp`, into which it is written unchanged. At most 180 s after the request was accepted; 120 s is RECOMMENDED.
24
+ */
25
+ claimDeadline: number;
26
+ ext?: Ext;
27
+ }
28
+
29
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
30
+ export type { Ext, Mode, Purpose, RequestId };
31
+
32
+ /** Trust Task type URI. */
33
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/oob/request/0.1" as const;
34
+
35
+ /** Stable alias for this specification's request payload shape. */
36
+ export type Payload = AuthOOBRequestPayload;
37
+
38
+ /** Trust Task response type URI (request type URI + "#response"). */
39
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/oob/request/0.1#response" as const;
40
+
41
+ /** Stable alias for this specification's success-response payload shape. */
42
+ export type Response = AuthOOBRequestResponsePayload;
43
+
44
+ /**
45
+ * This specification's payload schema, as a value.
46
+ *
47
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
48
+ * rather than only as a `.json` file because TypeScript types are erased
49
+ * at runtime: without a schema a consumer has nothing to validate, and
50
+ * every REQUIRED payload member is optional in practice. Cross-file
51
+ * `$ref`s are already inlined, so it needs no resolver.
52
+ */
53
+ export const PAYLOAD_SCHEMA = {
54
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
55
+ "$id": "https://trusttasks.org/spec/auth/oob/request/0.1",
56
+ "title": "Auth — OOB Request — payload",
57
+ "description": "A starter asks a service to open an out-of-band request that an approver will decide on another device. The document is issued and signed by the starter's fresh Ed25519 key, which is fixed for the life of the request. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": [
61
+ "purpose",
62
+ "mode"
63
+ ],
64
+ "properties": {
65
+ "purpose": {
66
+ "$ref": "#/$defs/Purpose"
67
+ },
68
+ "mode": {
69
+ "$ref": "#/$defs/Mode"
70
+ },
71
+ "ext": {
72
+ "$ref": "#/$defs/Ext"
73
+ }
74
+ },
75
+ "$defs": {
76
+ "Response": {
77
+ "$anchor": "response",
78
+ "title": "Auth — OOB Request — response payload",
79
+ "description": "The handle of the new request and its claim deadline. The starter builds the trigger link from these and the service's DID.",
80
+ "type": "object",
81
+ "additionalProperties": false,
82
+ "required": [
83
+ "requestId",
84
+ "claimDeadline"
85
+ ],
86
+ "properties": {
87
+ "requestId": {
88
+ "$ref": "#/$defs/RequestId"
89
+ },
90
+ "claimDeadline": {
91
+ "type": "integer",
92
+ "minimum": 0,
93
+ "description": "The instant by which the request must be claimed, as integer UTC epoch seconds — the same unit as the trigger link's `_exp`, into which it is written unchanged. At most 180 s after the request was accepted; 120 s is RECOMMENDED."
94
+ },
95
+ "ext": {
96
+ "$ref": "#/$defs/Ext"
97
+ }
98
+ }
99
+ },
100
+ "Ext": {
101
+ "title": "Ext",
102
+ "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.",
103
+ "type": "object",
104
+ "minProperties": 1,
105
+ "additionalProperties": true,
106
+ "propertyNames": {
107
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
108
+ }
109
+ },
110
+ "RequestId": {
111
+ "title": "RequestId",
112
+ "type": "string",
113
+ "minLength": 22,
114
+ "maxLength": 43,
115
+ "pattern": "^[A-Za-z0-9_-]{22,43}$",
116
+ "description": "The service-generated handle of one request: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is RECOMMENDED). It is also the nonce of the exchange, so the family needs no separate challenge, and it is the `_id` of the trigger link (VTI-LNK-033). Compared as a string. It confers no authority on its holder."
117
+ },
118
+ "Mode": {
119
+ "title": "Mode",
120
+ "type": "string",
121
+ "enum": [
122
+ "scan"
123
+ ],
124
+ "description": "How the request reaches the approver. A CLOSED list. Version 0.1 defines `scan`: the starter shows a trigger link (as a QR code that is also a clickable link, TRIGGER-LINK.md) and the approver's wallet reads it. `code` (a typed code of at least 8 characters, under strict rate limits) and `push` (sent to the approver's enrolled devices) are reserved names."
125
+ },
126
+ "Purpose": {
127
+ "title": "Purpose",
128
+ "type": "string",
129
+ "enum": [
130
+ "login"
131
+ ],
132
+ "description": "What the request is for. A CLOSED list: each purpose has a fixed row in CONVENTIONS.md §3 stating what is revealed at each step, what the grant contains, what redeem returns and the window lengths. Version 0.1 defines `login` only. `stepUp` and `deviceEnrol` are reserved names; adding one is a new version of this component and of every task that references it, never an in-place edit."
133
+ }
134
+ }
135
+ } as const;
136
+
137
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
138
+ export const RESPONSE_PAYLOAD_SCHEMA = {
139
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
140
+ "$ref": "#/$defs/Response",
141
+ "$defs": {
142
+ "Response": {
143
+ "$anchor": "response",
144
+ "title": "Auth — OOB Request — response payload",
145
+ "description": "The handle of the new request and its claim deadline. The starter builds the trigger link from these and the service's DID.",
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "required": [
149
+ "requestId",
150
+ "claimDeadline"
151
+ ],
152
+ "properties": {
153
+ "requestId": {
154
+ "$ref": "#/$defs/RequestId"
155
+ },
156
+ "claimDeadline": {
157
+ "type": "integer",
158
+ "minimum": 0,
159
+ "description": "The instant by which the request must be claimed, as integer UTC epoch seconds — the same unit as the trigger link's `_exp`, into which it is written unchanged. At most 180 s after the request was accepted; 120 s is RECOMMENDED."
160
+ },
161
+ "ext": {
162
+ "$ref": "#/$defs/Ext"
163
+ }
164
+ }
165
+ },
166
+ "Ext": {
167
+ "title": "Ext",
168
+ "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.",
169
+ "type": "object",
170
+ "minProperties": 1,
171
+ "additionalProperties": true,
172
+ "propertyNames": {
173
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
174
+ }
175
+ },
176
+ "RequestId": {
177
+ "title": "RequestId",
178
+ "type": "string",
179
+ "minLength": 22,
180
+ "maxLength": 43,
181
+ "pattern": "^[A-Za-z0-9_-]{22,43}$",
182
+ "description": "The service-generated handle of one request: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is RECOMMENDED). It is also the nonce of the exchange, so the family needs no separate challenge, and it is the `_id` of the trigger link (VTI-LNK-033). Compared as a string. It confers no authority on its holder."
183
+ },
184
+ "Mode": {
185
+ "title": "Mode",
186
+ "type": "string",
187
+ "enum": [
188
+ "scan"
189
+ ],
190
+ "description": "How the request reaches the approver. A CLOSED list. Version 0.1 defines `scan`: the starter shows a trigger link (as a QR code that is also a clickable link, TRIGGER-LINK.md) and the approver's wallet reads it. `code` (a typed code of at least 8 characters, under strict rate limits) and `push` (sent to the approver's enrolled devices) are reserved names."
191
+ },
192
+ "Purpose": {
193
+ "title": "Purpose",
194
+ "type": "string",
195
+ "enum": [
196
+ "login"
197
+ ],
198
+ "description": "What the request is for. A CLOSED list: each purpose has a fixed row in CONVENTIONS.md §3 stating what is revealed at each step, what the grant contains, what redeem returns and the window lengths. Version 0.1 defines `login` only. `stepUp` and `deviceEnrol` are reserved names; adding one is a new version of this component and of every task that references it, never an in-place edit."
199
+ }
200
+ }
201
+ } as const;
202
+
203
+ /**
204
+ * SPEC.md §7.2 policy for the request variant, from this specification's
205
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
206
+ * per-specification and cannot be derived from the document alone, and
207
+ * item 2 needs the schema this carries.
208
+ */
209
+ export const SPEC = {
210
+ typeUri: TYPE_URI,
211
+ isBearer: false,
212
+ isProofRequired: true,
213
+ isRecipientRequired: true,
214
+ isIssuedAtRequired: true,
215
+ payloadSchema: PAYLOAD_SCHEMA,
216
+ } as const;
217
+
218
+ /**
219
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
220
+ * tracks the *issuer* party's requirement because a response swaps the
221
+ * parties (§7.3 item 5).
222
+ */
223
+ export const RESPONSE_SPEC = {
224
+ typeUri: RESPONSE_TYPE_URI,
225
+ isBearer: false,
226
+ isProofRequired: true,
227
+ isRecipientRequired: true,
228
+ isIssuedAtRequired: true,
229
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
230
+ } as const;
@@ -0,0 +1,178 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/oob/respond/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * The lock holder delivers the member's signed decision on an out-of-band request by carrying a signed auth/oob/grant document. Issued and signed by the lock key `K_a`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, parentThreadId, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface AuthOOBRespondPayload {
13
+ /**
14
+ * A complete, signed auth/oob/grant/0.1 Trust Task document, issued by the identified DID and signed by its VTA for `assertionMethod`. The service verifies it as a document in its own right — envelope, proof and payload against that specification's schema — over the members exactly as received: its proof covers every member, so it is deliberately an open object here rather than a typed one a binding could narrow.
15
+ */
16
+ grant: {};
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * The outcome the service recorded. It never contains session material: authority goes to the starter key, through auth/oob/redeem only.
21
+ */
22
+ export interface AuthOOBRespondResponsePayload {
23
+ /**
24
+ * `approved` when the grant approved and every check passed; `declined` when the grant declined.
25
+ */
26
+ status: "approved" | "declined";
27
+ ext?: Ext;
28
+ }
29
+
30
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
31
+ export type { Ext };
32
+
33
+ /** Trust Task type URI. */
34
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/oob/respond/0.1" as const;
35
+
36
+ /** Stable alias for this specification's request payload shape. */
37
+ export type Payload = AuthOOBRespondPayload;
38
+
39
+ /** Trust Task response type URI (request type URI + "#response"). */
40
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/oob/respond/0.1#response" as const;
41
+
42
+ /** Stable alias for this specification's success-response payload shape. */
43
+ export type Response = AuthOOBRespondResponsePayload;
44
+
45
+ /**
46
+ * This specification's payload schema, as a value.
47
+ *
48
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
49
+ * rather than only as a `.json` file because TypeScript types are erased
50
+ * at runtime: without a schema a consumer has nothing to validate, and
51
+ * every REQUIRED payload member is optional in practice. Cross-file
52
+ * `$ref`s are already inlined, so it needs no resolver.
53
+ */
54
+ export const PAYLOAD_SCHEMA = {
55
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
56
+ "$id": "https://trusttasks.org/spec/auth/oob/respond/0.1",
57
+ "title": "Auth — OOB Respond — payload",
58
+ "description": "The lock holder delivers the member's signed decision on an out-of-band request by carrying a signed auth/oob/grant document. Issued and signed by the lock key `K_a`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, parentThreadId, proof) are owned by the framework — SPEC §6.3.",
59
+ "type": "object",
60
+ "additionalProperties": false,
61
+ "required": [
62
+ "grant"
63
+ ],
64
+ "properties": {
65
+ "grant": {
66
+ "type": "object",
67
+ "description": "A complete, signed auth/oob/grant/0.1 Trust Task document, issued by the identified DID and signed by its VTA for `assertionMethod`. The service verifies it as a document in its own right — envelope, proof and payload against that specification's schema — over the members exactly as received: its proof covers every member, so it is deliberately an open object here rather than a typed one a binding could narrow."
68
+ },
69
+ "ext": {
70
+ "$ref": "#/$defs/Ext"
71
+ }
72
+ },
73
+ "$defs": {
74
+ "Response": {
75
+ "$anchor": "response",
76
+ "title": "Auth — OOB Respond — response payload",
77
+ "description": "The outcome the service recorded. It never contains session material: authority goes to the starter key, through auth/oob/redeem only.",
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "required": [
81
+ "status"
82
+ ],
83
+ "properties": {
84
+ "status": {
85
+ "type": "string",
86
+ "enum": [
87
+ "approved",
88
+ "declined"
89
+ ],
90
+ "description": "`approved` when the grant approved and every check passed; `declined` when the grant declined."
91
+ },
92
+ "ext": {
93
+ "$ref": "#/$defs/Ext"
94
+ }
95
+ }
96
+ },
97
+ "Ext": {
98
+ "title": "Ext",
99
+ "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.",
100
+ "type": "object",
101
+ "minProperties": 1,
102
+ "additionalProperties": true,
103
+ "propertyNames": {
104
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
105
+ }
106
+ }
107
+ }
108
+ } as const;
109
+
110
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
111
+ export const RESPONSE_PAYLOAD_SCHEMA = {
112
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
113
+ "$ref": "#/$defs/Response",
114
+ "$defs": {
115
+ "Response": {
116
+ "$anchor": "response",
117
+ "title": "Auth — OOB Respond — response payload",
118
+ "description": "The outcome the service recorded. It never contains session material: authority goes to the starter key, through auth/oob/redeem only.",
119
+ "type": "object",
120
+ "additionalProperties": false,
121
+ "required": [
122
+ "status"
123
+ ],
124
+ "properties": {
125
+ "status": {
126
+ "type": "string",
127
+ "enum": [
128
+ "approved",
129
+ "declined"
130
+ ],
131
+ "description": "`approved` when the grant approved and every check passed; `declined` when the grant declined."
132
+ },
133
+ "ext": {
134
+ "$ref": "#/$defs/Ext"
135
+ }
136
+ }
137
+ },
138
+ "Ext": {
139
+ "title": "Ext",
140
+ "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.",
141
+ "type": "object",
142
+ "minProperties": 1,
143
+ "additionalProperties": true,
144
+ "propertyNames": {
145
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
146
+ }
147
+ }
148
+ }
149
+ } as const;
150
+
151
+ /**
152
+ * SPEC.md §7.2 policy for the request variant, from this specification's
153
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
154
+ * per-specification and cannot be derived from the document alone, and
155
+ * item 2 needs the schema this carries.
156
+ */
157
+ export const SPEC = {
158
+ typeUri: TYPE_URI,
159
+ isBearer: false,
160
+ isProofRequired: true,
161
+ isRecipientRequired: true,
162
+ isIssuedAtRequired: true,
163
+ payloadSchema: PAYLOAD_SCHEMA,
164
+ } as const;
165
+
166
+ /**
167
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
168
+ * tracks the *issuer* party's requirement because a response swaps the
169
+ * parties (§7.3 item 5).
170
+ */
171
+ export const RESPONSE_SPEC = {
172
+ typeUri: RESPONSE_TYPE_URI,
173
+ isBearer: false,
174
+ isProofRequired: true,
175
+ isRecipientRequired: true,
176
+ isIssuedAtRequired: true,
177
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
178
+ } as const;
@@ -249,7 +249,9 @@ export const PAYLOAD_SCHEMA = {
249
249
  "room-present",
250
250
  "room-open",
251
251
  "key-export",
252
- "sign-sshsig"
252
+ "sign-sshsig",
253
+ "external-accounts-manage",
254
+ "external-auth-use"
253
255
  ],
254
256
  "description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
255
257
  },
@@ -589,7 +591,9 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
589
591
  "room-present",
590
592
  "room-open",
591
593
  "key-export",
592
- "sign-sshsig"
594
+ "sign-sshsig",
595
+ "external-accounts-manage",
596
+ "external-auth-use"
593
597
  ],
594
598
  "description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
595
599
  },