@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,17 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/oob/_shared/0.1/oob.schema.json
4
+ */
5
+
6
+ /**
7
+ * Shared types for the auth/oob/* family: a starter asks a service to open a request, and an approver decides it on another device. Defined once so request, claim, prove, identify, respond, grant, redeem and cancel describe the same handle, keys, closed lists and disclosure records. The family rules are in CONVENTIONS.md beside this file. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
8
+ */
9
+ export interface AuthSharedOutOfBandRequestDefinitions {
10
+ [k: string]: unknown | undefined;
11
+ }
12
+
13
+ /**
14
+ * The definitions this shared schema publishes, hoisted to one declaration each.
15
+ * See "../../../../_shared/components.js".
16
+ */
17
+ export type { MatchNumber, Mode, OobKey, Origin, Purpose, Requester, RequestId, SameNetwork, Service } from "../../../../_shared/components.js";
@@ -0,0 +1,188 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/oob/cancel/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, RequestId } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * The starter or the lock holder ends an out-of-band request. Issued and signed by the starter key or by the lock key. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, parentThreadId, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface AuthOOBCancelPayload {
13
+ requestId: RequestId;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * Confirms the request is cancelled. Cancelling an already-cancelled request answers the same way.
18
+ */
19
+ export interface AuthOOBCancelResponsePayload {
20
+ /**
21
+ * The request's final state.
22
+ */
23
+ status: "cancelled";
24
+ ext?: Ext;
25
+ }
26
+
27
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
28
+ export type { Ext, RequestId };
29
+
30
+ /** Trust Task type URI. */
31
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/oob/cancel/0.1" as const;
32
+
33
+ /** Stable alias for this specification's request payload shape. */
34
+ export type Payload = AuthOOBCancelPayload;
35
+
36
+ /** Trust Task response type URI (request type URI + "#response"). */
37
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/oob/cancel/0.1#response" as const;
38
+
39
+ /** Stable alias for this specification's success-response payload shape. */
40
+ export type Response = AuthOOBCancelResponsePayload;
41
+
42
+ /**
43
+ * This specification's payload schema, as a value.
44
+ *
45
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
46
+ * rather than only as a `.json` file because TypeScript types are erased
47
+ * at runtime: without a schema a consumer has nothing to validate, and
48
+ * every REQUIRED payload member is optional in practice. Cross-file
49
+ * `$ref`s are already inlined, so it needs no resolver.
50
+ */
51
+ export const PAYLOAD_SCHEMA = {
52
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
53
+ "$id": "https://trusttasks.org/spec/auth/oob/cancel/0.1",
54
+ "title": "Auth — OOB Cancel — payload",
55
+ "description": "The starter or the lock holder ends an out-of-band request. Issued and signed by the starter key or by the lock key. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, parentThreadId, proof) are owned by the framework — SPEC §6.3.",
56
+ "type": "object",
57
+ "additionalProperties": false,
58
+ "required": [
59
+ "requestId"
60
+ ],
61
+ "properties": {
62
+ "requestId": {
63
+ "$ref": "#/$defs/RequestId"
64
+ },
65
+ "ext": {
66
+ "$ref": "#/$defs/Ext"
67
+ }
68
+ },
69
+ "$defs": {
70
+ "Response": {
71
+ "$anchor": "response",
72
+ "title": "Auth — OOB Cancel — response payload",
73
+ "description": "Confirms the request is cancelled. Cancelling an already-cancelled request answers the same way.",
74
+ "type": "object",
75
+ "additionalProperties": false,
76
+ "required": [
77
+ "status"
78
+ ],
79
+ "properties": {
80
+ "status": {
81
+ "type": "string",
82
+ "enum": [
83
+ "cancelled"
84
+ ],
85
+ "description": "The request's final state."
86
+ },
87
+ "ext": {
88
+ "$ref": "#/$defs/Ext"
89
+ }
90
+ }
91
+ },
92
+ "Ext": {
93
+ "title": "Ext",
94
+ "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.",
95
+ "type": "object",
96
+ "minProperties": 1,
97
+ "additionalProperties": true,
98
+ "propertyNames": {
99
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
100
+ }
101
+ },
102
+ "RequestId": {
103
+ "title": "RequestId",
104
+ "type": "string",
105
+ "minLength": 22,
106
+ "maxLength": 43,
107
+ "pattern": "^[A-Za-z0-9_-]{22,43}$",
108
+ "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."
109
+ }
110
+ }
111
+ } as const;
112
+
113
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
114
+ export const RESPONSE_PAYLOAD_SCHEMA = {
115
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
116
+ "$ref": "#/$defs/Response",
117
+ "$defs": {
118
+ "Response": {
119
+ "$anchor": "response",
120
+ "title": "Auth — OOB Cancel — response payload",
121
+ "description": "Confirms the request is cancelled. Cancelling an already-cancelled request answers the same way.",
122
+ "type": "object",
123
+ "additionalProperties": false,
124
+ "required": [
125
+ "status"
126
+ ],
127
+ "properties": {
128
+ "status": {
129
+ "type": "string",
130
+ "enum": [
131
+ "cancelled"
132
+ ],
133
+ "description": "The request's final state."
134
+ },
135
+ "ext": {
136
+ "$ref": "#/$defs/Ext"
137
+ }
138
+ }
139
+ },
140
+ "Ext": {
141
+ "title": "Ext",
142
+ "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.",
143
+ "type": "object",
144
+ "minProperties": 1,
145
+ "additionalProperties": true,
146
+ "propertyNames": {
147
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
148
+ }
149
+ },
150
+ "RequestId": {
151
+ "title": "RequestId",
152
+ "type": "string",
153
+ "minLength": 22,
154
+ "maxLength": 43,
155
+ "pattern": "^[A-Za-z0-9_-]{22,43}$",
156
+ "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."
157
+ }
158
+ }
159
+ } as const;
160
+
161
+ /**
162
+ * SPEC.md §7.2 policy for the request variant, from this specification's
163
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
164
+ * per-specification and cannot be derived from the document alone, and
165
+ * item 2 needs the schema this carries.
166
+ */
167
+ export const SPEC = {
168
+ typeUri: TYPE_URI,
169
+ isBearer: false,
170
+ isProofRequired: true,
171
+ isRecipientRequired: true,
172
+ isIssuedAtRequired: true,
173
+ payloadSchema: PAYLOAD_SCHEMA,
174
+ } as const;
175
+
176
+ /**
177
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
178
+ * tracks the *issuer* party's requirement because a response swaps the
179
+ * parties (§7.3 item 5).
180
+ */
181
+ export const RESPONSE_SPEC = {
182
+ typeUri: RESPONSE_TYPE_URI,
183
+ isBearer: false,
184
+ isProofRequired: true,
185
+ isRecipientRequired: true,
186
+ isIssuedAtRequired: true,
187
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
188
+ } as const;
@@ -0,0 +1,306 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/oob/claim/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, Origin, Purpose, RequestId, Service } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * An approver claims a pending out-of-band request, locking it to a throwaway Ed25519 key (`K_a`) generated for this one exchange. The document is the first request of a trigger-link exchange (VTI-LNK-054): issued and signed by `K_a`, addressed to the service, and carrying the request's handle both here and as the envelope's `parentThreadId`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, parentThreadId, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface AuthOOBClaimPayload {
13
+ /**
14
+ * The handle read from the trigger link's `_id`. MUST equal the document's `parentThreadId`.
15
+ */
16
+ requestId: RequestId;
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * Step 1 of the disclosure ladder, signed by the service's assertionMethod key: who the service is, where the request will be used and for what, and when the decision window closes. It MUST contain nothing about the starter.
21
+ */
22
+ export interface AuthOOBClaimResponsePayloadStep1 {
23
+ requestId: RequestId;
24
+ service: Service;
25
+ origin: Origin;
26
+ purpose: Purpose;
27
+ /**
28
+ * When the decision window, started by the claim, closes, as integer UTC epoch seconds. Prove, respond and redeem must all complete before it. At most 180 s after the claim; 120 s RECOMMENDED.
29
+ */
30
+ decisionDeadline: number;
31
+ ext?: Ext;
32
+ }
33
+
34
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
35
+ export type { Ext, Origin, Purpose, RequestId, Service };
36
+
37
+ /** Trust Task type URI. */
38
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/oob/claim/0.1" as const;
39
+
40
+ /** Stable alias for this specification's request payload shape. */
41
+ export type Payload = AuthOOBClaimPayload;
42
+
43
+ /** Trust Task response type URI (request type URI + "#response"). */
44
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/oob/claim/0.1#response" as const;
45
+
46
+ /** Stable alias for this specification's success-response payload shape. */
47
+ export type Response = AuthOOBClaimResponsePayloadStep1;
48
+
49
+ /**
50
+ * This specification's payload schema, as a value.
51
+ *
52
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
53
+ * rather than only as a `.json` file because TypeScript types are erased
54
+ * at runtime: without a schema a consumer has nothing to validate, and
55
+ * every REQUIRED payload member is optional in practice. Cross-file
56
+ * `$ref`s are already inlined, so it needs no resolver.
57
+ */
58
+ export const PAYLOAD_SCHEMA = {
59
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
60
+ "$id": "https://trusttasks.org/spec/auth/oob/claim/0.1",
61
+ "title": "Auth — OOB Claim — payload",
62
+ "description": "An approver claims a pending out-of-band request, locking it to a throwaway Ed25519 key (`K_a`) generated for this one exchange. The document is the first request of a trigger-link exchange (VTI-LNK-054): issued and signed by `K_a`, addressed to the service, and carrying the request's handle both here and as the envelope's `parentThreadId`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, parentThreadId, proof) are owned by the framework — SPEC §6.3.",
63
+ "type": "object",
64
+ "additionalProperties": false,
65
+ "required": [
66
+ "requestId"
67
+ ],
68
+ "properties": {
69
+ "requestId": {
70
+ "$ref": "#/$defs/RequestId",
71
+ "description": "The handle read from the trigger link's `_id`. MUST equal the document's `parentThreadId`."
72
+ },
73
+ "ext": {
74
+ "$ref": "#/$defs/Ext"
75
+ }
76
+ },
77
+ "$defs": {
78
+ "Response": {
79
+ "$anchor": "response",
80
+ "title": "Auth — OOB Claim — response payload (step 1)",
81
+ "description": "Step 1 of the disclosure ladder, signed by the service's assertionMethod key: who the service is, where the request will be used and for what, and when the decision window closes. It MUST contain nothing about the starter.",
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": [
85
+ "requestId",
86
+ "service",
87
+ "origin",
88
+ "purpose",
89
+ "decisionDeadline"
90
+ ],
91
+ "properties": {
92
+ "requestId": {
93
+ "$ref": "#/$defs/RequestId"
94
+ },
95
+ "service": {
96
+ "$ref": "#/$defs/Service"
97
+ },
98
+ "origin": {
99
+ "$ref": "#/$defs/Origin"
100
+ },
101
+ "purpose": {
102
+ "$ref": "#/$defs/Purpose"
103
+ },
104
+ "decisionDeadline": {
105
+ "type": "integer",
106
+ "minimum": 0,
107
+ "description": "When the decision window, started by the claim, closes, as integer UTC epoch seconds. Prove, respond and redeem must all complete before it. At most 180 s after the claim; 120 s RECOMMENDED."
108
+ },
109
+ "ext": {
110
+ "$ref": "#/$defs/Ext"
111
+ }
112
+ }
113
+ },
114
+ "Ext": {
115
+ "title": "Ext",
116
+ "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.",
117
+ "type": "object",
118
+ "minProperties": 1,
119
+ "additionalProperties": true,
120
+ "propertyNames": {
121
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
122
+ }
123
+ },
124
+ "Purpose": {
125
+ "title": "Purpose",
126
+ "type": "string",
127
+ "enum": [
128
+ "login"
129
+ ],
130
+ "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."
131
+ },
132
+ "Origin": {
133
+ "title": "Origin",
134
+ "type": "string",
135
+ "minLength": 9,
136
+ "maxLength": 2048,
137
+ "pattern": "^https://[^/?#\\s]+$",
138
+ "description": "A web origin (`https://host[:port]`, no path, no trailing slash) — for `login`, the origin of the portal where the starter runs, which is the origin of the `serviceEndpoint` of the service's `SignInPortal` service in its DID document."
139
+ },
140
+ "Service": {
141
+ "title": "Service",
142
+ "type": "object",
143
+ "additionalProperties": false,
144
+ "required": [
145
+ "did",
146
+ "name"
147
+ ],
148
+ "properties": {
149
+ "did": {
150
+ "type": "string",
151
+ "pattern": "^did:",
152
+ "minLength": 5,
153
+ "maxLength": 2048,
154
+ "description": "The service's DID: the `recipient` of every request in the family, and the `_from` of the trigger link."
155
+ },
156
+ "name": {
157
+ "type": "string",
158
+ "minLength": 1,
159
+ "maxLength": 128,
160
+ "description": "The name the service calls itself. Supplied by the service: an approver shows the name from its OWN records and flags a difference from this one (VTI-LNK-104); it never shows this value as the community's name on its own authority."
161
+ }
162
+ },
163
+ "description": "Who the service says it is."
164
+ },
165
+ "RequestId": {
166
+ "title": "RequestId",
167
+ "type": "string",
168
+ "minLength": 22,
169
+ "maxLength": 43,
170
+ "pattern": "^[A-Za-z0-9_-]{22,43}$",
171
+ "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."
172
+ }
173
+ }
174
+ } as const;
175
+
176
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
177
+ export const RESPONSE_PAYLOAD_SCHEMA = {
178
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
179
+ "$ref": "#/$defs/Response",
180
+ "$defs": {
181
+ "Response": {
182
+ "$anchor": "response",
183
+ "title": "Auth — OOB Claim — response payload (step 1)",
184
+ "description": "Step 1 of the disclosure ladder, signed by the service's assertionMethod key: who the service is, where the request will be used and for what, and when the decision window closes. It MUST contain nothing about the starter.",
185
+ "type": "object",
186
+ "additionalProperties": false,
187
+ "required": [
188
+ "requestId",
189
+ "service",
190
+ "origin",
191
+ "purpose",
192
+ "decisionDeadline"
193
+ ],
194
+ "properties": {
195
+ "requestId": {
196
+ "$ref": "#/$defs/RequestId"
197
+ },
198
+ "service": {
199
+ "$ref": "#/$defs/Service"
200
+ },
201
+ "origin": {
202
+ "$ref": "#/$defs/Origin"
203
+ },
204
+ "purpose": {
205
+ "$ref": "#/$defs/Purpose"
206
+ },
207
+ "decisionDeadline": {
208
+ "type": "integer",
209
+ "minimum": 0,
210
+ "description": "When the decision window, started by the claim, closes, as integer UTC epoch seconds. Prove, respond and redeem must all complete before it. At most 180 s after the claim; 120 s RECOMMENDED."
211
+ },
212
+ "ext": {
213
+ "$ref": "#/$defs/Ext"
214
+ }
215
+ }
216
+ },
217
+ "Ext": {
218
+ "title": "Ext",
219
+ "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.",
220
+ "type": "object",
221
+ "minProperties": 1,
222
+ "additionalProperties": true,
223
+ "propertyNames": {
224
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
225
+ }
226
+ },
227
+ "Purpose": {
228
+ "title": "Purpose",
229
+ "type": "string",
230
+ "enum": [
231
+ "login"
232
+ ],
233
+ "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."
234
+ },
235
+ "Origin": {
236
+ "title": "Origin",
237
+ "type": "string",
238
+ "minLength": 9,
239
+ "maxLength": 2048,
240
+ "pattern": "^https://[^/?#\\s]+$",
241
+ "description": "A web origin (`https://host[:port]`, no path, no trailing slash) — for `login`, the origin of the portal where the starter runs, which is the origin of the `serviceEndpoint` of the service's `SignInPortal` service in its DID document."
242
+ },
243
+ "Service": {
244
+ "title": "Service",
245
+ "type": "object",
246
+ "additionalProperties": false,
247
+ "required": [
248
+ "did",
249
+ "name"
250
+ ],
251
+ "properties": {
252
+ "did": {
253
+ "type": "string",
254
+ "pattern": "^did:",
255
+ "minLength": 5,
256
+ "maxLength": 2048,
257
+ "description": "The service's DID: the `recipient` of every request in the family, and the `_from` of the trigger link."
258
+ },
259
+ "name": {
260
+ "type": "string",
261
+ "minLength": 1,
262
+ "maxLength": 128,
263
+ "description": "The name the service calls itself. Supplied by the service: an approver shows the name from its OWN records and flags a difference from this one (VTI-LNK-104); it never shows this value as the community's name on its own authority."
264
+ }
265
+ },
266
+ "description": "Who the service says it is."
267
+ },
268
+ "RequestId": {
269
+ "title": "RequestId",
270
+ "type": "string",
271
+ "minLength": 22,
272
+ "maxLength": 43,
273
+ "pattern": "^[A-Za-z0-9_-]{22,43}$",
274
+ "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."
275
+ }
276
+ }
277
+ } as const;
278
+
279
+ /**
280
+ * SPEC.md §7.2 policy for the request variant, from this specification's
281
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
282
+ * per-specification and cannot be derived from the document alone, and
283
+ * item 2 needs the schema this carries.
284
+ */
285
+ export const SPEC = {
286
+ typeUri: TYPE_URI,
287
+ isBearer: false,
288
+ isProofRequired: true,
289
+ isRecipientRequired: true,
290
+ isIssuedAtRequired: true,
291
+ payloadSchema: PAYLOAD_SCHEMA,
292
+ } as const;
293
+
294
+ /**
295
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
296
+ * tracks the *issuer* party's requirement because a response swaps the
297
+ * parties (§7.3 item 5).
298
+ */
299
+ export const RESPONSE_SPEC = {
300
+ typeUri: RESPONSE_TYPE_URI,
301
+ isBearer: false,
302
+ isProofRequired: true,
303
+ isRecipientRequired: true,
304
+ isIssuedAtRequired: true,
305
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
306
+ } as const;
@@ -0,0 +1,159 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/oob/grant/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { DigestMultibase, OobKey, Origin, RequestId } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * The member's decision on one out-of-band request, as an attestation: "let this starter key act as me at this origin until notAfter, having seen this context", or a decline. Issued by the DID that proved membership and signed by its VTA for `assertionMethod`, only after user verification. Never sent on its own, only carried inside auth/oob/respond. Closed: additionalProperties false and no `ext`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface AuthOOBGrantPayload {
13
+ requestId: RequestId;
14
+ /**
15
+ * The member's decision. A decline still names the context it declines, and needs no user verification.
16
+ */
17
+ decision: "approve" | "decline";
18
+ /**
19
+ * The starter key `K_b`, from step 2. On approve, the only key the grant lets act as the issuer.
20
+ */
21
+ sessionKey: OobKey;
22
+ /**
23
+ * The lock key `K_a`. MUST equal the issuer of the respond that carries this document.
24
+ */
25
+ approverKey: OobKey;
26
+ /**
27
+ * The portal origin from step 2, at which the session key may act.
28
+ */
29
+ origin: Origin;
30
+ /**
31
+ * SHA-256 multihash over the RFC 8785 (JCS) canonical form of the signed step 2 response document (the auth/oob/prove response), proof included, written as multibase. Producers emit base58btc (`z…`). Binds the decision to exactly what the member was shown.
32
+ */
33
+ contextDigest: DigestMultibase;
34
+ /**
35
+ * The latest instant the session key may act as the issuer, as integer UTC epoch seconds. The service ends the session at the earlier of this and its own session limit.
36
+ */
37
+ notAfter: number;
38
+ }
39
+
40
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
41
+ export type { DigestMultibase, OobKey, Origin, RequestId };
42
+
43
+ /** Trust Task type URI. */
44
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/oob/grant/0.1" as const;
45
+
46
+ /** Stable alias for this specification's request payload shape. */
47
+ export type Payload = AuthOOBGrantPayload;
48
+
49
+ /**
50
+ * This specification's payload schema, as a value.
51
+ *
52
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
53
+ * rather than only as a `.json` file because TypeScript types are erased
54
+ * at runtime: without a schema a consumer has nothing to validate, and
55
+ * every REQUIRED payload member is optional in practice. Cross-file
56
+ * `$ref`s are already inlined, so it needs no resolver.
57
+ */
58
+ export const PAYLOAD_SCHEMA = {
59
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
60
+ "$id": "https://trusttasks.org/spec/auth/oob/grant/0.1",
61
+ "title": "Auth — OOB Grant — payload",
62
+ "description": "The member's decision on one out-of-band request, as an attestation: \"let this starter key act as me at this origin until notAfter, having seen this context\", or a decline. Issued by the DID that proved membership and signed by its VTA for `assertionMethod`, only after user verification. Never sent on its own, only carried inside auth/oob/respond. Closed: additionalProperties false and no `ext`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
63
+ "type": "object",
64
+ "additionalProperties": false,
65
+ "required": [
66
+ "requestId",
67
+ "decision",
68
+ "sessionKey",
69
+ "approverKey",
70
+ "origin",
71
+ "contextDigest",
72
+ "notAfter"
73
+ ],
74
+ "properties": {
75
+ "requestId": {
76
+ "$ref": "#/$defs/RequestId"
77
+ },
78
+ "decision": {
79
+ "type": "string",
80
+ "enum": [
81
+ "approve",
82
+ "decline"
83
+ ],
84
+ "description": "The member's decision. A decline still names the context it declines, and needs no user verification."
85
+ },
86
+ "sessionKey": {
87
+ "$ref": "#/$defs/OobKey",
88
+ "description": "The starter key `K_b`, from step 2. On approve, the only key the grant lets act as the issuer."
89
+ },
90
+ "approverKey": {
91
+ "$ref": "#/$defs/OobKey",
92
+ "description": "The lock key `K_a`. MUST equal the issuer of the respond that carries this document."
93
+ },
94
+ "origin": {
95
+ "$ref": "#/$defs/Origin",
96
+ "description": "The portal origin from step 2, at which the session key may act."
97
+ },
98
+ "contextDigest": {
99
+ "$ref": "#/$defs/DigestMultibase",
100
+ "description": "SHA-256 multihash over the RFC 8785 (JCS) canonical form of the signed step 2 response document (the auth/oob/prove response), proof included, written as multibase. Producers emit base58btc (`z…`). Binds the decision to exactly what the member was shown."
101
+ },
102
+ "notAfter": {
103
+ "type": "integer",
104
+ "minimum": 0,
105
+ "description": "The latest instant the session key may act as the issuer, as integer UTC epoch seconds. The service ends the session at the earlier of this and its own session limit."
106
+ }
107
+ },
108
+ "$defs": {
109
+ "DigestMultibase": {
110
+ "title": "DigestMultibase",
111
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
112
+ "type": "string",
113
+ "minLength": 16,
114
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
115
+ "examples": [
116
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
117
+ ]
118
+ },
119
+ "Origin": {
120
+ "title": "Origin",
121
+ "type": "string",
122
+ "minLength": 9,
123
+ "maxLength": 2048,
124
+ "pattern": "^https://[^/?#\\s]+$",
125
+ "description": "A web origin (`https://host[:port]`, no path, no trailing slash) — for `login`, the origin of the portal where the starter runs, which is the origin of the `serviceEndpoint` of the service's `SignInPortal` service in its DID document."
126
+ },
127
+ "OobKey": {
128
+ "title": "OobKey",
129
+ "type": "string",
130
+ "minLength": 48,
131
+ "maxLength": 64,
132
+ "pattern": "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$",
133
+ "description": "A starter key (`K_b`) or an approver lock key (`K_a`), as an Ed25519 `did:key` (`z6Mk…`) generated for this one request and used nowhere else. Ed25519 only: a service refuses any other key type with `auth/oob:keyUnsupported` before parsing beyond the multicodec prefix."
134
+ },
135
+ "RequestId": {
136
+ "title": "RequestId",
137
+ "type": "string",
138
+ "minLength": 22,
139
+ "maxLength": 43,
140
+ "pattern": "^[A-Za-z0-9_-]{22,43}$",
141
+ "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."
142
+ }
143
+ }
144
+ } as const;
145
+
146
+ /**
147
+ * SPEC.md §7.2 policy for the request variant, from this specification's
148
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
149
+ * per-specification and cannot be derived from the document alone, and
150
+ * item 2 needs the schema this carries.
151
+ */
152
+ export const SPEC = {
153
+ typeUri: TYPE_URI,
154
+ isBearer: false,
155
+ isProofRequired: true,
156
+ isRecipientRequired: true,
157
+ isIssuedAtRequired: true,
158
+ payloadSchema: PAYLOAD_SCHEMA,
159
+ } as const;